/* The card viewer's own colours: the app's near-black viewer ground, the
   same in both themes. */
:root {
  --lp-v-ground:   #0d1210;
  --lp-v-panel:    rgba(28, 30, 35, .84);
  --lp-v-ink:      #eff1ef;
  --lp-v-body:     #b3b8b4;
  --lp-v-muted:    #8c938e;
  --lp-v-hair:     rgba(239, 241, 239, .12);
}

/* The live grove: a Mac window with Glade's canvas in it (grove-window.js),
   the groves overview it pulls back into, and an opened card (detail.js). */

.lp-win {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--lp-ground);
  box-shadow: var(--lp-win-lift); container-type: inline-size; container-name: lpwin;
  user-select: none; -webkit-user-select: none; color: var(--ink);
}
.lp-win-inner { position: relative; height: 62.5cqw; min-height: 330px; overflow: hidden; }
.lp-plane {
  position: absolute; inset: 0; z-index: 4; --pt: calc(100cqw / 1400);
  background: var(--lp-ground); transform-origin: 50% 50%;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), border-radius .55s cubic-bezier(.2, .8, .2, 1), box-shadow .55s, opacity .2s;
}
.lp-plane.is-small { border-radius: 2.4cqw; overflow: hidden; box-shadow: var(--lp-win-lift); }
.lp-plane.is-still { transition: none; }
.lp-plane.is-gone { opacity: 0; pointer-events: none; transition: none; }
.lp-dots {
  position: absolute; inset: -40%; pointer-events: none;
  background-image: var(--lp-dotgrid); background-size: 24px 24px;
}

/* Window chrome, as the Mac app's top bar. */
.lp-chrome { position: absolute; left: 0; right: 0; top: 0; z-index: 8; height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.lp-chrome .lp-lights { margin-right: 8px; }
.lp-grovechip, .lp-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 11px;
  border: 0; border-radius: 9px; font: inherit; font-size: 14px; cursor: pointer;
  transition: background .2s, color .2s, opacity .3s;
}
.lp-grovechip { background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-hair); color: var(--ink); font-weight: 600; }
.lp-grovechip:hover { background: var(--lp-card-2); }
.lp-ghost { background: transparent; color: var(--body); font-weight: 500; }
.lp-ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.lp-avatar { width: 30px; height: 30px; border-radius: 99px; flex: none; background: linear-gradient(180deg, #f3c98b 0%, #e9a27a 45%, #7f9d5b 46%, #4d6733 100%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 16%, transparent); }
.lp-menu {
  position: absolute; left: 90px; top: 50px; z-index: 30; width: 250px; padding: 6px;
  border-radius: 14px; background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-hair-2), 0 24px 50px -16px rgba(0, 0, 0, .45);
  animation: lp-pop .18s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 20% 0;
}
.lp-menu .label { padding: 8px 10px 6px; }
.lp-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer;
}
.lp-menu button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lp-menu button.is-on { background: color-mix(in srgb, var(--sage) 18%, transparent); }
.lp-menu small { margin-left: auto; font-size: 13px; color: var(--muted); }
.lp-menu hr { height: 1px; margin: 6px 8px; border: 0; background: var(--lp-hair); }

/* Cards on the canvas: dragged by translate alone, laid out once on release. */
.lp-item { position: absolute; touch-action: none; cursor: grab; }
.lp-item.is-drag { cursor: grabbing; z-index: 60 !important; will-change: translate; }
.lp-item .tilt { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.lp-item:hover .lp-card { box-shadow: var(--lp-lift-hover), inset 0 0 0 1px var(--lp-hair-2); }
.lp-item.is-drag .lp-card { box-shadow: var(--lp-lift-drag), inset 0 0 0 1px var(--lp-hair-2); }
.lp-item.is-landing .tilt { animation: lp-land .7s cubic-bezier(.2, .9, .25, 1.12) both; }
.lp-item.is-dim { opacity: .16; filter: grayscale(.85); }
.lp-item.is-dim { transition: opacity .25s, filter .25s; }
.lp-ring {
  position: absolute; inset: calc(-7 * var(--pt)); border-radius: calc(20 * var(--pt)); pointer-events: none;
  box-shadow: 0 0 0 2px var(--sage), 0 0 44px color-mix(in srgb, var(--sage) 50%, transparent);
  animation: lp-ring 1.4s ease-out 3 both;
}

/* A stack: fanned from the bottom when closed, on a ring when open. */
.lp-stack { cursor: pointer; }
.lp-stack .lp-member { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.2, .9, .25, 1.12); }
.lp-stack.is-open .lp-member { cursor: pointer; }
.lp-badge {
  position: absolute; right: calc(-10 * var(--pt)); bottom: calc(-12 * var(--pt)); z-index: 5;
  min-width: calc(26 * var(--pt)); height: calc(26 * var(--pt)); padding: 0 calc(6 * var(--pt));
  display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--lp-ground);
  font-size: calc(13 * var(--pt)); font-weight: 700; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); transition: opacity .25s;
}
.lp-stack.is-open .lp-badge { opacity: 0; }
.lp-unstack {
  position: absolute; left: 50%; top: 45%; z-index: 6; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; height: calc(32 * var(--pt)); padding: 0 calc(14 * var(--pt));
  border: 0; border-radius: 99px; background: var(--button); color: var(--button-ink);
  font: inherit; font-size: calc(13 * var(--pt)); font-weight: 600; white-space: nowrap; cursor: pointer;
  animation: lp-pop .3s .2s cubic-bezier(.2, .8, .2, 1) both;
}

/* The hint (grove-window.js): a dotted arrow in the launch screen's hand —
   round dots like the Commons trails — drawn in from its caption up to the
   card as soon as the window is full size, its head following the curve. */
.lp-pointer { position: absolute; z-index: 9; width: 130px; height: 74px; margin: -8px 0 0 -16px; pointer-events: none; color: var(--muted); }
.lp-pointer[hidden] { display: none; }
.lp-pointer svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-pointer .trail { stroke-dasharray: 0 5; }
.lp-pointer .reveal { stroke: #fff; stroke-width: 12; stroke-dasharray: 100; stroke-dashoffset: 100; animation: lp-reveal .55s cubic-bezier(.3, 0, .2, 1) forwards; }
.lp-pointer .head { transform-box: view-box; transform-origin: 16px 18px; animation: lp-tip .25s .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.lp-pointer .cap { position: absolute; left: 136px; top: 54px; white-space: nowrap; font-family: var(--font-brand); font-size: 14px; font-weight: 500; letter-spacing: .01em; animation: lp-rise .3s both; }
@keyframes lp-reveal { to { stroke-dashoffset: 0; } }
@keyframes lp-tip { from { opacity: 0; scale: .3; } }


.lp-item:focus-visible { outline: 2px solid var(--sage-text); outline-offset: 4px; border-radius: calc(16 * var(--pt)); }

.lp-zoom {
  position: absolute; left: 16px; bottom: 18px; z-index: 8; display: flex; align-items: center;
  border-radius: 12px; background: var(--lp-chrome); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--lp-hair); transition: opacity .3s;
}
.lp-zoom button { width: 40px; height: 40px; border: 0; border-radius: 12px; display: grid; place-items: center; background: transparent; color: var(--body); cursor: pointer; }
.lp-zoom button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lp-zoom span { min-width: 46px; text-align: center; font-size: 13px; font-weight: 500; color: var(--body); font-variant-numeric: tabular-nums; }

.lp-dock { position: absolute; left: 50%; bottom: 18px; z-index: 12; width: min(46%, 440px); transform: translateX(-50%); transition: opacity .3s; }
.lp-field {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 18px; border-radius: 999px;
  background: var(--lp-chrome); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--lp-hair-2), 0 22px 44px -18px rgba(0, 0, 0, .45); color: var(--body);
}
.lp-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; }
.lp-field input::placeholder { color: var(--muted); }
.lp-field input::-webkit-search-cancel-button { display: none; }
.lp-field:focus-within { box-shadow: 0 0 0 2px var(--sage-text); }
.lp-plus { flex: none; width: 40px; height: 40px; border: 0; border-radius: 99px; display: grid; place-items: center; background: var(--button); color: var(--button-ink); cursor: pointer; transition: transform .25s cubic-bezier(.2, .9, .25, 1.12); }
.lp-plus[aria-expanded="true"] { transform: rotate(45deg); }
.lp-pop {
  position: absolute; bottom: 64px; padding: 8px; border-radius: 18px; background: var(--lp-card);
  box-shadow: inset 0 0 0 1px var(--lp-hair-2), 0 30px 60px -20px rgba(0, 0, 0, .55);
  animation: lp-pop .18s cubic-bezier(.2, .8, .2, 1) both;
}
.lp-found { left: 0; right: 0; max-height: 300px; overflow: auto; transform-origin: 50% 100%; }
.lp-found .head { display: flex; justify-content: space-between; padding: 6px 8px 8px; }
.lp-found .empty { padding: 12px 10px 14px; font-size: 14px; color: var(--muted); }
.lp-hit {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%;
  min-height: 54px; padding: 6px 8px; border: 0; border-radius: 11px; background: transparent; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.lp-hit:hover, .lp-hit:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lp-hit.is-on { background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-hair); }
.lp-hit b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-hit .meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.lp-hit .thumb { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--lp-note); color: var(--muted); }
.lp-hit .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lp-kinds { right: 0; width: 290px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; transform-origin: 90% 100%; }
.lp-kinds button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--body); font: inherit; font-size: 12.5px; cursor: pointer; }
.lp-kinds button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.lp-kinds i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-dark); }

/* The groves overview, inside the same window: the canvas shrinks into the
   middle miniature, the strip slides, the chosen one grows back. */
.lp-fade { opacity: 0; pointer-events: none; }
.lp-deckhead { position: absolute; left: 26px; top: 60px; z-index: 7; transition: opacity .35s; }
.lp-deckhead b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.lp-deckhead small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.lp-strip { position: absolute; left: 0; top: 10.5cqw; z-index: 3; width: 100%; height: 38.75cqw; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.lp-mini {
  position: absolute; top: 0; width: 62cqw; height: 38.75cqw; padding: 0; border: 0; border-radius: 2.4cqw; overflow: hidden;
  background: var(--lp-ground-2); box-shadow: var(--lp-win-lift); container-type: inline-size; cursor: pointer;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s;
}
.lp-mini .lp-plane { pointer-events: none; transition: none; }
.lp-mini.is-side { transform: scale(.9); opacity: .5; }
.lp-mini.is-side:hover { opacity: .75; }
.lp-decklabel { position: absolute; left: 50%; top: 51.5cqw; z-index: 7; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; text-align: center; transition: opacity .35s; }
.lp-decklabel b { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.lp-decklabel small { font-size: 14px; color: var(--muted); }
.lp-gicon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-dark); flex: none; }
.lp-dots-row { display: flex; gap: 5px; margin-top: 6px; }
.lp-dots-row i { width: 6px; height: 6px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 25%, transparent); transition: width .3s, background .3s; }
.lp-dots-row i.is-on { width: 18px; background: var(--ink); }
.lp-arrow {
  position: absolute; top: 28cqw; z-index: 7; width: 44px; height: 44px; border: 0; border-radius: 99px; display: grid; place-items: center;
  background: var(--lp-chrome); box-shadow: inset 0 0 0 1px var(--lp-hair-2); color: var(--ink); cursor: pointer; transition: opacity .3s;
}
.lp-arrow.prev { left: 14px; }
.lp-arrow.next { right: 14px; }

/* An opened card, as the Mac app opens one now (viewer.js): the card flies
   into a rounded frame on a glow of its own colours, over the app's near-black
   viewer ground; its details in a dark glass column beside it. The same in
   both themes, as in the app. */
.lp-viewer { position: absolute; inset: 0; z-index: 40; display: flex; color: var(--lp-v-ink); }
.lp-vground {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
  --g1: #5c6a58; --g2: #6f6a58; --g3: #4f5d6a;
  background:
    radial-gradient(55% 70% at 28% 40%, color-mix(in srgb, var(--g1) 55%, transparent), transparent 72%),
    radial-gradient(50% 60% at 58% 62%, color-mix(in srgb, var(--g2) 45%, transparent), transparent 72%),
    radial-gradient(45% 55% at 40% 20%, color-mix(in srgb, var(--g3) 40%, transparent), transparent 70%),
    var(--lp-v-ground);
}
.lp-viewer.is-open .lp-vground { opacity: 1; }
.lp-vstage { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 64px 32px 40px; container-type: size; }
.lp-vframe {
  position: relative; overflow: hidden; border-radius: 22px; background: var(--lp-raise);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  /* No will-change: a layer kept for the flight would stay rastered at the
     card's small size, and the picture would look soft once it lands. */
  transform-origin: 0 0; transition: transform .48s cubic-bezier(.2, .9, .25, 1);
}
.lp-vframe > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A picture is as large as its shape allows in the stage, room left under it
   for an action; it follows the window as it resizes. */
.lp-vframe.is-picture { aspect-ratio: var(--ar); width: min(100%, 760px, calc((100cqh - 170px) * var(--ar))); }
/* A film: the play button and its length, drawn over the sharp picture. */
.lp-vframe .play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 99px;
  transform: translate(-50%, -50%); padding-left: 4px; background: rgba(255, 255, 255, .88); color: var(--ink-dark);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lp-vframe .len { position: absolute; right: 16px; bottom: 16px; padding: 5px 10px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-vframe.is-face { width: min(100%, 440px); overflow: visible; background: none; box-shadow: none; --pt: 1.7px; }
.lp-vframe.is-face .lp-card { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.lp-vaction {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--lp-v-hair); color: var(--lp-v-ink);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; opacity: 0; transform: translateY(8px);
  transition: opacity .3s .25s, transform .4s .25s cubic-bezier(.2, .8, .2, 1), background .2s;
}
.lp-vaction:hover { background: rgba(255, 255, 255, .16); }
.lp-viewer.is-open .lp-vaction { opacity: 1; transform: none; }
.lp-vclose {
  position: absolute; left: 16px; top: 14px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 99px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: var(--lp-v-ink); cursor: pointer; opacity: 0; transition: opacity .3s, background .2s;
}
.lp-vclose:hover { background: rgba(255, 255, 255, .18); }
.lp-viewer.is-open .lp-vclose { opacity: 1; }
.lp-vinfo {
  position: relative; z-index: 2; display: flex; flex-direction: column; width: min(36%, 380px); padding: 64px 24px 0; overflow: auto;
  background: var(--lp-v-panel); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 1px 0 0 var(--lp-v-hair);
  opacity: 0; transform: translateX(40px); transition: opacity .3s .1s, transform .45s .1s cubic-bezier(.2, .8, .2, 1);
}
.lp-viewer.is-open .lp-vinfo { opacity: 1; transform: none; }
.lp-vinfo > * { flex-shrink: 0; }
.lp-viewer .lp-caps { color: var(--lp-v-muted); }
.lp-vinfo h3 { margin-top: 8px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; color: var(--lp-v-ink); }
.lp-vmeta { margin-top: 8px; font-size: 14px; color: var(--lp-v-muted); }
.lp-vmeta .site { color: #98cbe8; }
.lp-vprogress { margin-top: 16px; }
.lp-vprogress > span { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--lp-v-body); }
.lp-vprogress b { color: var(--lp-v-ink); font-weight: 600; }
.lp-vprogress > i { display: block; height: 6px; margin-top: 8px; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.lp-vprogress > i > i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(135deg, #98cbe8, #a6d07f); }
.lp-vhead { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 8px; }
.lp-vhead .clear { font-size: 13px; color: var(--lp-v-muted); }
.lp-vnotes { padding: 12px 14px; min-height: 66px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--lp-v-hair); font-size: 14.5px; line-height: 1.5; color: var(--lp-v-body); }
.lp-vnotes.is-empty { color: var(--lp-v-muted); }
.lp-vpill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--lp-v-hair); font-size: 14px; font-weight: 600; }
.lp-vtags { display: flex; flex-wrap: wrap; gap: 7px; }
.lp-vtag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1.5px solid currentColor; background: transparent; font: inherit; font-size: 13px; font-weight: 600; }
.lp-viewer { --lp-tag-sky: var(--night-sky); --lp-tag-wheat: var(--night-wheat); --lp-tag-sage: var(--night-sage); --lp-tag-peach: var(--night-peach); --lp-tag-plum: var(--night-plum); }
.lp-vtag.is-add { color: var(--lp-v-ink); border-color: var(--lp-v-hair); }
.lp-vtag.is-suggest { color: var(--lp-v-body); border-style: dashed; border-color: rgba(255, 255, 255, .22); cursor: pointer; }
.lp-vtag.is-suggest:hover { color: var(--lp-v-ink); border-color: #a6d07f; }
.lp-vfoot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 4px; margin: auto -24px 0; padding: 12px 16px; border-top: 1px solid var(--lp-v-hair); background: var(--lp-v-panel); }
.lp-vfoot button { width: 40px; height: 40px; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; color: var(--lp-v-body); cursor: pointer; }
.lp-vfoot button:hover { color: var(--lp-v-ink); background: rgba(255, 255, 255, .08); }
.lp-vfoot button[aria-pressed="true"] { color: #e0607f; }
.lp-flex { flex: 1; }

/* The toast a sorted save leaves above the dock (SortedToast). */
.lp-sorted {
  position: absolute; left: 50%; bottom: 82px; z-index: 11; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px);
  padding: 7px 7px 7px 8px; border-radius: 999px; white-space: nowrap; transform: translateX(-50%);
  background: var(--lp-chrome); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); font-size: 13.5px; color: var(--ink);
}
.lp-sorted .spark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: color-mix(in srgb, var(--sage) 24%, transparent); color: var(--sage-text); animation: lp-badge .5s cubic-bezier(.2, .9, .25, 1.4) both; }
.lp-sorted .words { padding-right: 2px; font-weight: 600; }
.lp-sorted .chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; box-shadow: inset 0 0 0 1.4px currentColor; font-size: 12px; font-weight: 600; animation: lp-tag .4s cubic-bezier(.2, .9, .25, 1.12) both; }
.lp-sorted .undo { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, transparent); font-weight: 600; }
.lp-placeholder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; color: var(--muted); }

/* A narrow window. On a phone it's a picture of the app (grove-window.js:
   .is-static, inert): the same canvas as on a desk, nearer — every card
   where it lies on the Mac, at a size a phone reads well — showing its left
   part. A narrow window at a desk keeps the whole canvas, to play with. */
.lp-win.is-static { pointer-events: none; }
@container lpwin (max-width: 720px) {
  .lp-win.is-static .lp-win-inner { --lp-npt: .66px; height: calc(875 * var(--lp-npt)); min-height: 0; }
  .lp-win.is-static .lp-win-inner > .lp-plane {
    right: auto; bottom: auto; width: calc(1400 * var(--lp-npt)); height: 100%; --pt: var(--lp-npt);
    transform: none !important;
  }
  .lp-chrome { height: 50px; padding: 0 12px; gap: 6px; }
  .lp-chrome .lp-lights { margin-right: 4px; }
  .lp-zoom, .lp-share, .lp-strip, .lp-arrow, .lp-decklabel, .lp-deckhead { display: none; }
  .lp-pointer { margin: -6px 0 0 -14px; }
  .lp-pointer .cap { left: auto; right: 0; top: 78px; }
  .lp-dock { width: calc(100% - 24px); }
  .lp-menu { left: 12px; }
  .lp-viewer { flex-direction: column; overflow: auto; }
  .lp-vstage { flex: none; padding: 56px 16px 16px; container-type: normal; }
  .lp-vframe.is-picture { width: 100%; }
  .lp-vinfo { width: auto; padding-top: 20px; transform: translateY(30px); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-plane, .lp-strip, .lp-mini, .lp-stack .lp-member { transition-duration: .01ms; }
  .lp-ring, .lp-pointer .cap, .lp-pointer .head { animation: none; }
  .lp-pointer .reveal { animation: none; stroke-dashoffset: 0; }
}

@keyframes lp-land { from { opacity: 0; transform: translateY(26px) scale(.94); } }
@keyframes lp-ring { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lp-badge { from { transform: scale(.4); opacity: 0; } }
@keyframes lp-tag { from { opacity: 0; transform: scale(.6); } }
