/* The three scenes the scroll plays: keep (⌘⇧M), find (words in pictures),
   arrange (10,000 bookmarks). Their stages are built by keep.js, find.js and
   arrange.js; the pinning and the progress come from base.css + scroll.js.
   The other site and the photographed pictures are drawings with their own
   colours, as the site's illustrations always were. */

/* ── Keep ─────────────────────────────────────────────────────────────── */
.lp-keep { aspect-ratio: 16 / 11; }
.lp-browser {
  position: absolute; inset: 6% 6% 16% 6%; border-radius: 14px; overflow: hidden; background: #f6f1e6;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s;
}
.lp-keep.is-landed .lp-browser { transform: translateY(-6%) scale(.92); opacity: 0; filter: blur(4px); }
.lp-browser .bar { display: flex; align-items: center; gap: 10px; height: clamp(30px, 7cqw, 44px); padding: 0 14px; background: #e7e0d1; }
.lp-browser .url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 62%; padding: 0 12px; border-radius: 8px; background: #fbf8f1; color: #6b6353; font-size: clamp(10px, 1.6cqw, 13px); font-weight: 500; }
.lp-browser .url span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lp-browser .page { padding: 3.2cqw 5cqw; color: #3a3328; font-family: "New York", Georgia, serif; will-change: transform; }
.lp-browser .kicker { font-family: -apple-system, system-ui, sans-serif; font-size: clamp(9px, 1.3cqw, 11px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #a05a48; }
.lp-browser h4 { margin: 1cqw 0 0; font-size: clamp(16px, 3.6cqw, 30px); line-height: 1.1; letter-spacing: -.01em; font-weight: 600; color: #3a3328; }
.lp-browser .by { margin-top: .8cqw; font-family: -apple-system, system-ui, sans-serif; font-size: clamp(10px, 1.5cqw, 13px); color: #8a8170; }
.lp-browser .lp-art { height: 15cqw; margin-top: 1.6cqw; border-radius: 10px; overflow: hidden; background: #c98b6a; }
.lp-browser .lp-art img { width: 100%; height: 100%; object-fit: cover; }
.lp-browser p { margin-top: 1.4cqw; font-size: clamp(10px, 1.6cqw, 14px); line-height: 1.6; color: #5c5443; }

.lp-keys { position: absolute; left: 50%; bottom: 4.5%; z-index: 4; display: flex; gap: 8px; transform: translateX(-50%); }
.lp-key {
  display: grid; place-items: center; width: clamp(38px, 6cqw, 52px); height: clamp(38px, 6cqw, 52px); border-radius: 12px;
  background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-hair-2), 0 6px 0 color-mix(in srgb, #000 30%, transparent);
  color: var(--ink); font-size: clamp(15px, 2.4cqw, 20px); font-weight: 600;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.lp-keep.is-pressed .lp-key { transform: translateY(4px); background: var(--sage); color: var(--ink-dark); box-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 0 34px color-mix(in srgb, var(--sage) 60%, transparent); }

.lp-kept {
  position: absolute; top: 9%; right: 8%; z-index: 5; width: 48%; max-width: 420px; padding: 14px; overflow: hidden;
  border-radius: 20px; background: var(--lp-chrome); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: inset 0 0 0 1px var(--lp-hair-2), 0 30px 60px -20px rgba(0, 0, 0, .55); color: var(--ink);
  transform: translateX(130%); opacity: 0; transition: transform .7s cubic-bezier(.2, .9, .25, 1.12), opacity .4s;
}
.lp-keep.is-kept .lp-kept { transform: none; opacity: 1; }
.lp-keep.is-landed .lp-kept { transform: translate(-40%, 60%) scale(.4); opacity: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s .2s; }
.lp-kept .row { display: flex; gap: 14px; }
.lp-kept .words { flex: 1; min-width: 0; }
.lp-kept .head { display: flex; align-items: flex-start; gap: 8px; }
.lp-kept .pic { position: relative; flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #c98b6a; }
.lp-kept .pic img { width: 100%; height: 100%; object-fit: cover; }
.lp-kept .enso { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; background: rgba(23, 25, 29, .78); }
.lp-kept .enso path { stroke-dasharray: 44; stroke-dashoffset: 44; transition: stroke-dashoffset 1.1s .35s cubic-bezier(.2, .8, .2, 1); }
.lp-keep.is-kept .lp-kept .enso path { stroke-dashoffset: 0; }
.lp-kept b.t { flex: 1; font-size: 14.5px; line-height: 1.3; }
.lp-kept .x { flex: none; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--body); }
.lp-kept .dom { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.lp-kept .line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.lp-kept .line > span:first-child { font-size: 12.5px; color: var(--muted); }
.lp-kept .grove {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--lp-hair-2);
  transition: background .35s, box-shadow .35s;
}
.lp-keep.is-sorted .lp-kept .grove { background: color-mix(in srgb, var(--peach) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--peach) 60%, transparent); }
.lp-kept .grove .lp-orb { width: 8px; height: 8px; }
/* Either card's grove wears its colour (keep.js sets --tint). */
.lp-keep .grove .lp-orb { background: var(--tint); }
/* Either card's tags: they pop in, one after the other, once it's sorted. */
.lp-keep .tg { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.lp-keep.is-sorted .tg { animation: lp-tag .45s cubic-bezier(.2, .9, .25, 1.12) both; }
.lp-keep.is-sorted .tg + .tg { animation-delay: .12s; }
.lp-kept .tg { box-shadow: inset 0 0 0 1.5px currentColor; }
.lp-keep:not(.is-sorted) .lp-kept .tg { display: none; }
.lp-kept .addtags { display: inline-flex; height: 28px; padding: 0 10px; border-radius: 99px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--body); box-shadow: inset 0 0 0 1px var(--lp-hair-2); }
.lp-keep.is-sorted .lp-kept .addtags { display: none; }
.lp-kept .ai { display: none; align-items: center; gap: 7px; margin-top: 12px; font-size: 12.5px; color: var(--sage-text); }
.lp-keep.is-sorted .lp-kept .ai { display: flex; animation: lp-rise .4s both; }
.lp-kept .count { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--sage); transform: scaleX(var(--count, 1)); transform-origin: 0 50%; }

/* In the hand (keep.js .is-touch): Glade's own share sheet in place of the
   Kept card, as the app draws it (ShareKept) — the glow ground; a line
   counting down and ×; the ensō drawn in from the top; "Kept."; the grove
   and + Tags; why it went there and the tags, once sorted; Open in Glade
   over a quiet Close. The page steps back under a dim. A tablet's sheet
   floats in the middle; a phone's rises from the foot (below). On a short
   stage its parts come smaller (the container queries after it). */
.lp-sharekept { display: none; }
.lp-keep.is-touch .lp-kept { display: none; }
.lp-keep.is-touch .lp-sharekept {
  position: absolute; z-index: 6; left: 50%; top: 50%; width: min(62%, 400px); height: min(86%, 520px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; color: var(--ink); container-type: size;
  background:
    radial-gradient(75% 45% at 18% 6%, var(--lp-glow-sky), transparent),
    radial-gradient(70% 45% at 90% 50%, var(--lp-glow-sage), transparent),
    radial-gradient(70% 40% at 34% 98%, var(--lp-glow-peach), transparent),
    var(--lp-ground);
  box-shadow: inset 0 0 0 1px var(--lp-hair), 0 30px 70px -20px rgba(0, 0, 0, .55);
  opacity: 0; transform: translate(-50%, -25%); transition: transform .6s cubic-bezier(.2, .9, .25, 1), opacity .4s;
}
.lp-keep.is-touch.is-kept .lp-sharekept { opacity: 1; transform: translate(-50%, -50%); }
.lp-browser::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 14, .42); opacity: 0; transition: opacity .5s; pointer-events: none; }
.lp-keep.is-touch.is-kept .lp-browser { transform: scale(.95); }
.lp-keep.is-touch.is-kept .lp-browser::after { opacity: 1; }
.lp-sharekept .top { display: flex; align-items: center; gap: 12px; padding: 14px 14px 0 18px; }
.lp-sharekept .count { flex: 1; height: 3px; overflow: hidden; border-radius: 9px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.lp-sharekept .count::after { content: ""; display: block; height: 100%; background: color-mix(in srgb, var(--ink) 55%, transparent); transform: scaleX(var(--count, 1)); transform-origin: 0 50%; }
.lp-sharekept .x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--body); }
.lp-sharekept .middle { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; text-align: center; }
.lp-sharekept .ring { flex: none; width: 72px; height: 72px; stroke: var(--ink); stroke-width: 66; stroke-linecap: round; }
.lp-sharekept .ring path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .3, 1); }
.lp-keep.is-kept .lp-sharekept .ring path, .lp-keep.is-sorted .lp-sharekept .ring path { stroke-dashoffset: 0; }
.lp-sharekept .kept { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.lp-sharekept :is(.kept, .controls, .foot) { opacity: 0; transform: translateY(12px); transition: opacity .4s .38s, transform .5s .38s cubic-bezier(.2, .9, .25, 1); }
.lp-sharekept :is(.controls, .foot) { transition-delay: .6s; }
.lp-keep.is-kept .lp-sharekept :is(.kept, .controls, .foot) { opacity: 1; transform: none; }
.lp-sharekept .controls { display: flex; gap: 8px; }
.lp-sharekept .grove, .lp-sharekept .addtags { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lp-sharekept .grove { background: color-mix(in srgb, var(--tint) 16%, transparent); transition: background .35s; }
.lp-sharekept .grove .lp-orb { width: 14px; height: 14px; }
.lp-sharekept .grove svg { color: var(--muted); }
.lp-sharekept .addtags { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lp-sharekept .why { display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.lp-sharekept .why svg { flex: none; color: var(--lp-tag-wheat); }
.lp-sharekept .tags { display: none; gap: 6px; }
.lp-keep.is-sorted .lp-sharekept :is(.why, .tags) { display: flex; animation: lp-rise .4s both; }
.lp-sharekept .tg { background: color-mix(in srgb, currentColor 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 50%, transparent); }
.lp-sharekept .foot { display: grid; justify-items: center; padding: 0 0 12px; }
.lp-sharekept .open { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.lp-sharekept .close { padding: 8px 28px; font-size: 12.5px; color: var(--muted); opacity: .75; }
@container (max-height: 420px) {
  .lp-sharekept .middle { gap: 10px; }
  .lp-sharekept .ring { width: 56px; height: 56px; }
  .lp-sharekept .kept { font-size: 24px; }
  .lp-sharekept .foot { padding-bottom: 6px; }
  .lp-sharekept .close { padding-block: 4px; }
}
@container (max-height: 330px) {
  .lp-sharekept .top { padding-top: 10px; }
  .lp-sharekept .x { width: 26px; height: 26px; }
  .lp-sharekept .middle { gap: 7px; }
  .lp-sharekept .ring { width: 42px; height: 42px; }
  .lp-sharekept .kept { font-size: 20px; }
  .lp-sharekept .grove, .lp-sharekept .addtags { height: 26px; font-size: 11.5px; }
  .lp-sharekept .why { font-size: 11px; }
  .lp-sharekept .tg { height: 22px; font-size: 11px; }
  .lp-sharekept .open { padding: 2px 0; font-size: 13px; }
}
@container (max-height: 260px) {
  .lp-sharekept .middle { gap: 5px; }
  .lp-sharekept .ring { width: 32px; height: 32px; }
  .lp-sharekept .close { display: none; }
}

.lp-keepwin {
  /* Its own container name: the live window's phone layout (lpwin) never applies. */
  position: absolute; inset: 3% 3% 17% 3%; container-name: keepwin; border-radius: 14px;
  opacity: 0; transform: translateY(6%) scale(.96); transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s;
}
.lp-keepwin .lp-win-inner { height: 100%; min-height: 0; }
.lp-keepwin .lp-plane { --pt: calc(100cqw / 1100); }
.lp-keepwin .lp-item { cursor: default; }
.lp-keep.is-landed .lp-keepwin { opacity: 1; transform: none; }
.lp-keepwin .fresh { opacity: 0; transform: translateY(-30%) scale(1.25); transition: opacity .5s .35s, transform .8s .35s cubic-bezier(.2, .9, .25, 1.12); }
.lp-keep.is-landed .lp-keepwin .fresh { opacity: 1; transform: none; }
.lp-keepwin .lp-ring { animation: none; opacity: 0; }
.lp-keep.is-landed .lp-keepwin .lp-ring { animation: lp-ring 1.4s .7s ease-out 2 both; }
.lp-keepwin .lp-sorted { opacity: 0; transform: translate(-50%, 12px); transition: opacity .4s .5s, transform .5s .5s cubic-bezier(.2, .9, .25, 1.12); }
.lp-keep.is-landed .lp-keepwin .lp-sorted { opacity: 1; transform: translate(-50%, 0); }
.lp-keepwin .lp-sorted .spark, .lp-keepwin .lp-sorted .chip { animation: none; }

/* In the hand (keep.js .is-touch): Share at the end of the page's bar, then
   Glade — two caps where the desk has ⌘⇧M; then Glade's sheet (above) and
   the same grove. */
.lp-browser .share {
  display: none; flex: none; place-items: center; width: clamp(26px, 6.5cqw, 32px); height: clamp(26px, 6.5cqw, 32px);
  border-radius: 8px; color: #6b6353; transition: background .2s, color .2s, transform .15s;
}
.lp-keep.is-touch .lp-browser .share { display: grid; }
.lp-keep.is-share .lp-browser .share { background: #3a3328; color: #fbf8f1; transform: scale(.9); }
.lp-then { display: grid; place-items: center; width: 16px; color: var(--muted); }
.lp-key.is-glade { color: var(--sage-text); }
.lp-keep.is-touch.is-pressed .lp-key.is-share { transform: none; background: var(--lp-card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--lp-hair-2), 0 6px 0 color-mix(in srgb, #000 30%, transparent); }
.lp-keep.is-share .lp-key.is-share, .lp-keep.is-touch.is-pressed .lp-key.is-glade {
  transform: translateY(4px); background: var(--sage); color: var(--ink-dark);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 0 34px color-mix(in srgb, var(--sage) 60%, transparent);
}

/* On a phone: a taller stage, so the page reads, the Kept card spans it, and
   the grove has room for its cards; keep.js places them for it (the same
   width, 560). */
@media (max-width: 560px) {
  .lp-keep { aspect-ratio: 4 / 5; }
  .lp-browser { inset: 5% 5% 18% 5%; }
  .lp-browser .bar { height: 38px; padding: 0 10px; gap: 8px; }
  .lp-browser .url { font-size: 11.5px; }
  .lp-browser .page { padding: 16px 18px; }
  .lp-browser .kicker { font-size: 9.5px; }
  .lp-browser h4 { margin-top: 6px; font-size: 21px; line-height: 1.12; }
  .lp-browser .by { margin-top: 5px; font-size: 11px; }
  .lp-browser .lp-art { height: 30cqw; margin-top: 12px; }
  .lp-browser p { margin-top: 12px; font-size: 12.5px; line-height: 1.55; }
  .lp-kept { top: 6%; left: 4%; right: 4%; width: auto; max-width: none; padding: 12px; border-radius: 18px; }
  .lp-kept .row { gap: 12px; }
  .lp-kept .pic { width: 66px; height: 66px; }
  .lp-kept b.t { font-size: 13.5px; }
  .lp-kept .dom { font-size: 12px; }
  .lp-kept .line { gap: 5px; margin-top: 8px; }
  .lp-kept .ai { margin-top: 10px; font-size: 12px; }
  .lp-keep.is-landed .lp-kept { transform: translateY(70%) scale(.5); }
  .lp-keep.is-touch .lp-sharekept { top: 7%; bottom: 0; width: 100%; height: auto; border-radius: 24px 24px 0 0; opacity: 1; transform: translate(-50%, 105%); }
  .lp-keep.is-touch.is-kept .lp-sharekept { transform: translate(-50%, 0); }
  .lp-keepwin { inset: 3% 3% 18% 3%; }
  .lp-keepwin .lp-plane { --pt: calc(100cqw / 600); }
  .lp-keepwin .lp-chrome { height: 46px; padding: 0 12px; gap: 6px; }
  .lp-keepwin .lp-chrome .lp-lights { margin-right: 4px; }
  .lp-keepwin .lp-share, .lp-keepwin .lp-dock { display: none; }
  .lp-keepwin .lp-sorted { bottom: 12px; gap: 6px; padding: 5px 6px; font-size: 12px; }
  .lp-keepwin .lp-sorted .spark { width: 24px; height: 24px; }
  /* The tags are on the new card just above; the toast keeps to its words. */
  .lp-keepwin .lp-sorted .chip { display: none; }
  .lp-keepwin .lp-sorted .words { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* Undo by its arrow alone: the longer words (Ukrainian) still fit. */
  .lp-keepwin .lp-sorted .undo { width: 24px; height: 24px; padding: 0; gap: 0; justify-content: center; font-size: 0; }
}

/* ── Find ─────────────────────────────────────────────────────────────── */
.lp-find { padding: 22px; background: var(--lp-card-2); }
.lp-find .lp-search {
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; border-radius: 999px;
  background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-hair-2); color: var(--body);
}
.lp-find .lp-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 18px; font-weight: 500; }
.lp-find .lp-search:focus-within { box-shadow: 0 0 0 2px var(--sage-text); }
.lp-find .lp-search input::placeholder { color: var(--muted); font-weight: 400; }
.lp-find .lp-search input::-webkit-search-cancel-button { display: none; }
.lp-find .tries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.lp-find .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 18px; min-height: clamp(380px, 42vh, 560px); margin-top: 18px; }
.lp-find .head { display: flex; justify-content: space-between; padding: 4px 10px 10px; }
/* Its result rows are the window's (.lp-hit, window.css), a size up. */
.lp-find .lp-hit { grid-template-columns: 48px minmax(0, 1fr); min-height: 62px; padding: 7px 10px; border-radius: 12px; animation: lp-rise .35s cubic-bezier(.2, .8, .2, 1) both; }
.lp-find .lp-hit b { font-size: 15px; }
.lp-find .lp-hit .meta { gap: 8px; margin-top: 5px; }
.lp-find .lp-hit .thumb { width: 48px; height: 48px; border-radius: 11px; background: none; }
.lp-where { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, currentColor 16%, transparent); }
.lp-preview { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(380px, 42vh, 560px); padding: 22px; border-radius: 18px; overflow: hidden; background: var(--lp-ground); box-shadow: inset 0 0 0 1px var(--lp-hair); }
.lp-preview .empty, .lp-find .none { padding: 40px 10px; font-size: 15px; text-align: center; color: var(--muted); }
.lp-pic { animation: lp-rise .35s cubic-bezier(.2, .8, .2, 1) both; }
.lp-pic.is-ticket { width: min(100%, 300px); padding: 22px 22px 18px; border-radius: 26px; background: #f4f1ea; color: #2b2a26; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.lp-pic.is-board { width: min(100%, 330px); padding: 26px 26px 30px; border-radius: 10px; color: #f1ede0; font-family: "Chalkboard SE", "Bradley Hand", "Comic Sans MS", cursive; background: radial-gradient(120% 100% at 30% 20%, #3a463e, #27302b); box-shadow: inset 0 0 0 10px #7a5b3a, inset 0 0 0 12px #5d4429, 0 30px 60px -20px rgba(0, 0, 0, .5); }
.lp-pic.is-wifi { width: 100%; max-width: 360px; padding: 30px; border-radius: 14px; background: repeating-linear-gradient(95deg, #9c7650 0 7px, #a7805a 7px 15px, #93704b 15px 22px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.lp-pic.is-wifi .lp-wifi-card { padding: 24px 24px 22px; border-radius: 4px; background: #fbf6ea; color: #3a3328; font-family: Georgia, serif; transform: rotate(-1.5deg); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.lp-pic.is-article { width: 100%; max-width: 380px; padding: 24px 26px; border-radius: 16px; background: #f6f1e6; color: #3a3328; font-family: Georgia, serif; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.lp-pic.is-article .lp-label { font-family: -apple-system, system-ui, sans-serif; color: #8a8170; display: block; margin-bottom: 12px; }
.lp-pic.is-note { width: 100%; max-width: 320px; padding: 22px 22px 28px; border-radius: 16px; background: var(--lp-note); color: var(--lp-note-ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.lp-pic.is-book { display: grid; justify-items: center; gap: 14px; }
.lp-pic.is-book img { width: 190px; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lp-pic.is-book p { font-size: 14px; color: var(--sage-text); }
.lp-pic .qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 84px; margin-top: 16px; }
.lp-pic .qr i { aspect-ratio: 1; }
.lp-pic .qr i.on { background: #2b2a26; }
.lp-line { position: relative; margin: 0 -6px; padding: 2px 6px; border-radius: 5px; transition: background .3s, box-shadow .3s; }
.lp-line.is-hit { background: var(--lp-hit); box-shadow: 0 0 0 2px var(--lp-hit-edge); animation: lp-hit .5s .15s cubic-bezier(.2, .9, .25, 1.12) both; }

/* ── Arrange ──────────────────────────────────────────────────────────── */
.lp-arrange-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.lp-arrange-head .lp-lede { max-width: 27em; margin-top: 0; }
.lp-arrange-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.lp-points { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--body); }
.lp-points li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.lp-points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 99px; background: var(--sage); }
.lp-arrange { aspect-ratio: 16 / 9.4; width: min(100%, max(520px, calc((100vh - 370px) * 1.7))); margin: 18px auto 0; }
.lp-tilecanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-glabel {
  position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 2px; text-align: center; white-space: nowrap;
  color: var(--ink); font-size: clamp(11px, 1.35cqw, 15px); font-weight: 600; line-height: 1.2; pointer-events: none;
  transition: opacity .3s;
}
.lp-glabel small { font-size: .86em; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
/* A band's name sits on its left, the count beside it. */
.lp-glabel.is-left { display: flex; align-items: baseline; gap: 6px; text-align: left; }
.lp-hud {
  position: absolute; left: 18px; top: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: var(--lp-chrome); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--lp-hair); font-size: 14px; font-weight: 600;
}
.lp-hud i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; background: var(--brand); color: var(--ink-dark); }
.lp-hud small { font-weight: 500; color: var(--muted); }

@media (max-width: 959px) {
  .lp-find .body { grid-template-columns: minmax(0, 1fr); }
  /* Room kept for a full list, so the self-typing search doesn't move the page. */
  .lp-find .list { min-height: calc(34px + var(--rows, 3) * 66px); }
  .lp-preview { min-height: 300px; }
}
/* Pinned stacked (the same case as base.css and scroll.js): the stage has
   the screen's rest; search, what it found, then the picture taking what's
   left (find.js draws it smaller to fit). A phone's queries and modes slide
   in one row. */
@media (max-width: 959px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .lp-browser .lp-art { height: 30cqw; }
  .lp-find { display: flex; flex-direction: column; }
  .lp-find .body { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); margin-top: 12px; }
  .lp-find .list, .lp-preview { min-height: 0; }
}
@media (max-width: 640px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .lp-find .body { display: flex; flex-direction: column; gap: 8px; }
  /* As tall as the longest sample search's list, so the picture keeps its
     room while the first letters find more. */
  .lp-find .list { flex: none; height: calc(27px + var(--rows, 2) * 59px); overflow: hidden; }
  .lp-find .head { padding: 2px 8px 6px; }
  .lp-find .lp-hit { min-height: 50px; padding: 5px 8px; }
  .lp-find .lp-hit .thumb { width: 40px; height: 40px; border-radius: 10px; }
  .lp-find .lp-hit b { font-size: 14px; }
  .lp-preview { flex: 1; padding: 10px; }
}
@media (max-width: 640px) {
  .lp-find .tries, .lp-arrange-bar .lp-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .lp-find .tries::-webkit-scrollbar, .lp-arrange-bar .lp-seg::-webkit-scrollbar { display: none; }
  .lp-find .tries > *, .lp-arrange-bar .lp-seg > * { flex: none; }
  /* Faded at the end, with room to scroll the last one clear of the fade. */
  .lp-find .tries, .lp-arrange-bar .lp-seg { padding-inline-end: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .lp-arrange-bar .lp-seg { max-width: 100%; }
  .lp-arrange { aspect-ratio: 1; }
  .lp-hud { left: 10px; top: 10px; padding: 6px 10px 6px 7px; gap: 7px; font-size: 12.5px; }
  .lp-hud i { width: 22px; height: 22px; }
  .lp-hud small { display: none; }
  .lp-find { padding: 14px; }
}

@keyframes lp-hit { from { box-shadow: 0 0 0 8px transparent; } }
