/* ═══════════════════════════════════════════════════════════════════════════
   lane-sets.css: the Browse lane's SETS of things (the fan-out's sets unit)

   Two pages, one family:
     .page-storefront  a Keeper's Storefront (desktop/pages/Storefront.php)
     .page-saved       Saved and recently viewed (desktop/pages/Saved.php)

   Both put the results board's cards on the board (kit-card.css re-lays the
   shared RT.ResultCard markup by the lane's width; desktop/assets/js/
   set-board.js builds it). This sheet frames them: the Storefront's Keeper
   band on the wave with its tilt cards and actions, the set header, the group
   headings across the board, the filters' marks, Saved's Keeper chips, doors
   and Recently viewed shelf, the empty and missing states.

   Prefix lf- (lane family); every selector starts .desktop-surface .lf-set,
   .lf-sf or .lf-sv so it outranks the kit's (0,2,0) and never reaches another
   family's page. Fluid by construction: clamp() over cqi, auto-fit grids,
   flex wrap; a part changes FORM because its LANE narrows (`@container lane`
   on the .lane-body): the widths are the result card's own (kit-card.css),
   rows under 26.5rem of lane body (List), a filmstrip under 12rem (a live
   Spine). The only media queries: prefers-reduced-motion, and (hover: hover)
   for the pointer's lift (never the only way to see anything).
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── The family frame ────────────────────────────────────────────────────── */

.desktop-surface .lf-set {
    display: grid;
    gap: clamp(0.9rem, 0.6rem + 1cqi, 1.75rem);
    align-content: start;
    min-width: 0;
    min-height: 100%;
}

.desktop-surface .lf-set [hidden] { display: none !important; }

.desktop-surface .lf-set .searchResult h3 { text-wrap: balance; }

/* The heart is a div, and kit-card.css takes pointer events from every div in a card at (0,3,1),
   which beats its own .img-fav { pointer-events: auto } at (0,3,0): without this the heart's click
   lands on the card and opens the listing. Reported for kit-card.css; remove once fixed there. */
.desktop-surface .lf-set .k-cards .searchResult .img-fav { pointer-events: auto; }

/* A heading across every column of the board (a Storefront group) */
.desktop-surface .lf-set .lf-set-break {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-sm);
}

.desktop-surface .lf-set .lf-set-break > .k-eyebrow {
    flex: none;
    padding: 0.4em 0.95em;
    border-radius: var(--r-pill);
    background: var(--fill-teal);
    color: #fff;
    box-shadow: 0 0.35rem 0.9rem rgba(33, 129, 128, 0.28);
}

.desktop-surface .lf-set .lf-set-break::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(33, 129, 128, 0.35), rgba(33, 129, 128, 0));
}

/* The set's header (Saved): what it is and how many */
.desktop-surface .lf-set .lf-set-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xs) var(--space-lg);
    min-width: 0;
    padding-top: clamp(0.25rem, 1cqi, 1rem);
}

.desktop-surface .lf-set .lf-set-head-main { flex: 1 1 18rem; display: grid; gap: 0.3rem; min-width: 0; }
.desktop-surface .lf-set .lf-set-eyebrow { color: var(--ink-pink); }

.desktop-surface .lf-set .lf-set-title {
    font-size: clamp(1.9rem, 1.1rem + 2.6cqi, calc(3.5rem + 6 * var(--up)));
    line-height: 1.02;
}

.desktop-surface .lf-set .lf-set-sub {
    margin: 0;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-body);
    color: var(--text-soft);
}

.desktop-surface .lf-set .lf-set-sub:empty { display: none; }

.desktop-surface .lf-set .lf-set-head-side { display: grid; justify-items: end; gap: var(--space-xs); }

.desktop-surface .lf-set .lf-set-count { display: flex; align-items: baseline; gap: 0.35em; margin: 0; white-space: nowrap; }

.desktop-surface .lf-set .lf-set-count-n {
    font-family: var(--font-head);
    font-weight: normal;
    font-size: clamp(2.1rem, 1.3rem + 2.4cqi, calc(3.6rem + 5 * var(--up)));
    line-height: 0.9;
    letter-spacing: var(--track-tight);
    color: var(--rt-pink-dk);
}

.desktop-surface .lf-set .lf-set-count-word {
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-lead);
    color: var(--text-soft);
}

/* The bar over a Storefront's board: "Listings", the count line, the filter */
.desktop-surface .lf-set .lf-set-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm) var(--space-lg);
    min-width: 0;
}

.desktop-surface .lf-set .lf-set-bar-text { display: grid; gap: 0.1rem; min-width: 0; }
.desktop-surface .lf-set .lf-set-bar-text > * { margin: 0; }
.desktop-surface .lf-set .lf-set-bar-title { color: var(--ink-blue); }

/* Loading, empty, missing */
.desktop-surface .lf-set .lf-set-skel { min-width: 0; }
.desktop-surface .lf-set .lf-set-skel > .k-skel-card { min-height: clamp(21rem, 19rem + 3cqi, 25rem); }
.desktop-surface .lf-set .lf-set-skel > .k-skel-row,
.desktop-surface .lf-set .lf-set-skel > .lf-set-skel-thumb { display: none; }
.desktop-surface .lf-set .lf-set-skel-thumb { aspect-ratio: 1; border-radius: 0.8rem; }

.desktop-surface .lf-set .lf-set-empty { padding-block: clamp(2rem, 1rem + 4cqi, 5rem); }
.desktop-surface .lf-set .lf-set-empty > .k-meta { max-width: 44ch; font-size: var(--type-body); }
.desktop-surface .lf-set .lf-set-missing { padding-block: clamp(2.5rem, 1rem + 6cqi, 7rem); }


/* ═══ THE STOREFRONT (.lf-sf) ══════════════════════════════════════════════
   The phone's hero on the wave: the Keeper's face, "{name}'s STOREFRONT",
   the badges and the since-date, the three tilt cards hanging off the wave's
   edge, the actions. Centred like the phone in a narrow Stage; the face and
   the words on the left and the cards on the right once the lane is wide. */

.desktop-surface .lf-sf .lf-sf-band {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "who" "stats" "acts" "share";
    justify-items: center;
    gap: var(--space-md);
    min-width: 0;
    padding: clamp(1.5rem, 0.8rem + 2.6cqi, 3.5rem) clamp(1rem, 0.4rem + 3cqi, 4.5rem) var(--space-sm);
    text-align: center;
}

.desktop-surface .lf-sf .lf-sf-who {
    grid-area: who;
    display: grid;
    justify-items: center;
    gap: var(--space-md);
    min-width: 0;
}

.desktop-surface .lf-sf .lf-sf-avatar {
    --k-size: clamp(6rem, 4.6rem + 4.5cqi, 9.5rem);
    outline: 4px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 1.25rem 2.5rem -0.75rem rgba(21, 56, 105, 0.55);
}

.desktop-surface .lf-sf .lf-sf-id { display: grid; justify-items: center; gap: var(--space-sm); min-width: 0; }
.desktop-surface .lf-sf .lf-sf-id > * { margin: 0; }

.desktop-surface .lf-sf .lf-sf-name {
    font-size: clamp(2.4rem, 1.4rem + 3.6cqi, calc(5rem + 8 * var(--up)));
    line-height: 0.98;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.desktop-surface .lf-sf .lf-sf-word {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-head);
    font-size: max(var(--type-meta), 0.28em);
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.desktop-surface .lf-sf .lf-sf-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs) var(--space-sm);
}

.desktop-surface .lf-sf .lf-sf-facts .k-badge--soft { background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-ctl); }

.desktop-surface .lf-sf .lf-sf-since {
    padding: 0.2em 0.6em;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-ctl);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.25;
    color: var(--text-soft);
    white-space: nowrap;
}

.desktop-surface .lf-sf .lf-sf-count { display: none; }
.desktop-surface .lf-sf .lf-sf-widen { display: none; }

/* The three tilt cards: the phone's .savedItem trio, the rating as a ring */
.desktop-surface .lf-sf .lf-sf-stats {
    grid-area: stats;
    width: min(100%, 34rem);
    margin: 0;
}

.desktop-surface .lf-sf .lf-sf-stats .k-tilt-card { gap: 0.35rem; }
.desktop-surface .lf-sf .lf-sf-stats .k-tilt-label { margin-top: 0.35rem; font-size: calc(var(--type-body) * 0.95); }
.desktop-surface .lf-sf .lf-sf-stats .k-tilt-note { opacity: 0.86; }

.desktop-surface .lf-sf .lf-sf-stat-num { overflow-wrap: anywhere; }

.desktop-surface .lf-sf .lf-sf-ring {
    --k-val: 100;
    position: relative;
    display: grid;
    place-content: center;
    justify-items: center;
    width: clamp(4.75rem, 3.6rem + 4cqi, 6.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
}

.desktop-surface .lf-sf .lf-sf-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--rt-purple-dkr) calc(var(--k-val) * 1%), rgba(255, 255, 255, 0.2) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.55rem), #000 calc(100% - 0.5rem));
    mask: radial-gradient(farthest-side, transparent calc(100% - 0.55rem), #000 calc(100% - 0.5rem));
    transform: rotate(189deg);   /* the phone's easypiechart starts low on the left */
}

.desktop-surface .lf-sf .lf-sf-ring > .k-tilt-num { font-size: clamp(1.7rem, 1.2rem + 1.8cqi, 2.6rem); }
.desktop-surface .lf-sf .lf-sf-ring > * { position: relative; }

/* The actions: Bookable Today (a filter), Message Keeper (the one primary), the
   heart and Share. The owner sees a quiet line and Share. */
.desktop-surface .lf-sf .lf-sf-acts {
    grid-area: acts;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-width: 0;
}

.desktop-surface .lf-sf .lf-sf-today { min-height: 2.75rem; padding-inline: 1.2em; }
.desktop-surface .lf-sf .lf-sf-today[aria-busy="true"] { opacity: 0.7; }
.desktop-surface .lf-sf .lf-sf-acts-main { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-sm); min-width: 0; max-width: 100%; }
.desktop-surface .lf-sf .lf-sf-message { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.desktop-surface .lf-sf .lf-sf-acts .k-iconbtn { color: var(--ink-pink); }
.desktop-surface .lf-sf .lf-sf-acts .k-iconbtn[aria-pressed="true"] { color: #fff; }
.desktop-surface .lf-sf .lf-sf-mine { flex: 1 1 18rem; max-width: 30rem; margin: 0; align-items: center; text-align: left; }

/* Share, opened in place */
.desktop-surface .lf-sf .lf-sf-share { grid-area: share; width: min(100%, 44rem); text-align: left; }

.desktop-surface .lf-sf .lf-sf-share-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-md) var(--space-lg);
    margin-top: var(--space-xs);
    padding: var(--pad-panel);
    border-radius: var(--r-panel);
    background: var(--ghost-purple), rgba(255, 255, 255, 0.86);
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
}

.desktop-surface .lf-sf .lf-sf-qr {
    display: block;
    width: clamp(7.5rem, 5rem + 8cqi, 9.5rem);
    height: auto;
    aspect-ratio: 1;
    padding: 0.6rem;
    border-radius: var(--r-tile);
    background: var(--fill-navy);   /* the code is drawn light, for the phone's dark share frame */
    box-shadow: var(--shadow-ctl);
}

.desktop-surface .lf-sf .lf-sf-share-ways { display: grid; justify-items: start; gap: var(--space-sm); min-width: 0; }
.desktop-surface .lf-sf .lf-sf-share-ways > * { margin: 0; }
.desktop-surface .lf-sf .lf-sf-share-link { display: flex; flex-wrap: wrap; gap: var(--space-sm); width: 100%; }
.desktop-surface .lf-sf .lf-sf-share-link > .k-input { flex: 1 1 12rem; min-width: 0; }

/* The space filter and Bookable Today's marks on the cards (the phone's tiles:
   a green ring for bookable today, greyed when not) */
.desktop-surface .lf-sf .lf-set-pills { flex: 0 1 auto; }

.desktop-surface .lf-sf .k-cards > [data-today="yes"] .searchResult {
    box-shadow: 0 0 0 3px var(--rt-success), var(--shadow-cont-sm-lt);
}

.desktop-surface .lf-sf .k-cards > [data-today="no"] .searchResult { opacity: 0.5; }
.desktop-surface .lf-sf .k-cards > [data-today="no"] .result-img { filter: grayscale(1); }
.desktop-surface .lf-sf .k-cards > [data-today] { transition: opacity var(--dur-base) var(--ease-out); }

/* A roomier Stage: the Keeper's row across the band (the face beside the words),
   then the tilt cards with the actions beside them */
@container lane (width >= 44rem) {
    .desktop-surface .lf-sf .lf-sf-band {
        grid-template-columns: minmax(17rem, 27rem) minmax(0, 1fr);
        grid-template-areas: "who who" "stats acts" "share share";
        justify-items: start;
        align-items: center;
        column-gap: var(--space-xl);
        padding-bottom: var(--space-md);
        text-align: left;
    }

    .desktop-surface .lf-sf .lf-sf-who {
        justify-self: stretch;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-items: start;
        gap: var(--space-lg);
    }

    .desktop-surface .lf-sf .lf-sf-id { justify-items: start; }
    .desktop-surface .lf-sf .lf-sf-facts,
    .desktop-surface .lf-sf .lf-sf-acts { justify-content: flex-start; }
    .desktop-surface .lf-sf .lf-sf-acts { justify-self: stretch; }
    .desktop-surface .lf-sf .lf-sf-stats { width: 100%; }
    .desktop-surface .lf-sf .lf-sf-band::before { height: clamp(13rem, 9rem + 10cqi, 19rem); }
}

/* A wide Stage: the face, the words and the actions on the left, the cards on the right */
@container lane (width >= 72rem) {
    .desktop-surface .lf-sf .lf-sf-band {
        grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem);
        grid-template-areas: "who stats" "acts stats" "share share";
    }

    .desktop-surface .lf-sf .lf-sf-acts { align-self: start; }
    .desktop-surface .lf-sf .lf-sf-stats { justify-self: end; align-self: end; }
}


/* ═══ SAVED (.lf-sv) ═══════════════════════════════════════════════════════ */

/* The Keepers you saved: identity chips, each a door to their Storefront */
.desktop-surface .lf-sv .lf-sv-keepers { display: grid; gap: var(--space-sm); min-width: 0; }
.desktop-surface .lf-sv .lf-sv-label { color: var(--ink-purple); }

.desktop-surface .lf-sv .lf-sv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    min-width: 0;
}

.desktop-surface .lf-sv .lf-sv-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.4rem 1.25rem 0.4rem 0.4rem;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--ghost-purple), rgba(255, 255, 255, 0.85);
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}

.desktop-surface .lf-sv .lf-sv-chip:nth-child(odd) { transform: rotate(-1.5deg); }
.desktop-surface .lf-sv .lf-sv-chip:nth-child(even) { transform: rotate(1.5deg); }
.desktop-surface .lf-sv .lf-sv-chip:focus-visible { outline: 3px solid var(--rt-purple); outline-offset: 2px; }
.desktop-surface .lf-sv .lf-sv-chip:active { transform: scale(0.97); }

.desktop-surface .lf-sv .lf-sv-chip-photo { --k-size: clamp(3rem, 2.5rem + 1.6cqi, 3.75rem); }
.desktop-surface .lf-sv .lf-sv-chip-text { display: grid; gap: 0.05rem; min-width: 0; }

.desktop-surface .lf-sv .lf-sv-chip-name {
    font-family: var(--font-head);
    font-size: var(--type-lead);
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-surface .lf-sv .lf-sv-chip-kind {
    font-family: var(--font-head);
    font-size: var(--type-meta);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-purple);
}

/* The doors after the saved cards: the phone's coloured tiles */
.desktop-surface .lf-sv .lf-sv-doors {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    min-width: 0;
    padding: 0.4rem 0.3rem;
}

.desktop-surface .lf-sv .lf-sv-door {
    flex: 1 1 14rem;
    max-width: 24rem;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: clamp(5rem, 4rem + 3cqi, 6.5rem);
    padding: var(--space-md) var(--space-lg);
    border: 0;
    border-radius: var(--r-card);
    background: var(--tone-tilt, var(--tilt-pink));
    outline: 2px solid var(--tone-lt, var(--rt-pink-lt));
    box-shadow: var(--shadow-cont-sm);
    color: #fff;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transform: rotate(-1.5deg);
    transition: transform var(--dur-slow) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}

.desktop-surface .lf-sv .lf-sv-door + .lf-sv-door { transform: rotate(1.5deg); }
.desktop-surface .lf-sv .lf-sv-door > i { font-size: clamp(1.75rem, 1.3rem + 1.6cqi, 2.5rem); color: var(--tone-lt, var(--rt-pink-lt)); }

.desktop-surface .lf-sv .lf-sv-door-text {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 1rem + 0.9cqi, 1.75rem);
    line-height: 1.05;
    letter-spacing: var(--track-snug);
}

.desktop-surface .lf-sv .lf-sv-door:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--tone-ink, var(--ink-pink)); }
.desktop-surface .lf-sv .lf-sv-door:active { transform: scale(0.97); }

/* Recently viewed: every tile, rows of them (the kit shelf shows one row) */
.desktop-surface .lf-sv .lf-sv-recent { margin-top: var(--space-sm); }

.desktop-surface .lf-sv .lf-sv-tiles {
    grid-template-columns: repeat(auto-fill, minmax(var(--k-tile-min), 1fr));
    grid-auto-rows: auto;
    gap: clamp(0.6rem, 0.4rem + 0.8cqi, 1.1rem);
}

.desktop-surface .lf-sv .lf-sv-tile { padding: 0; font: inherit; }

.desktop-surface .lf-sv .lf-sv-tile--keeper {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.5rem;
    background: var(--fill-purple);
    text-align: center;
}

.desktop-surface .lf-sv .lf-sv-tile-avatar { --k-size: 56%; aspect-ratio: 1; height: auto; }
.desktop-surface .lf-sv .lf-sv-tile-keeper { display: grid; gap: 0.1rem; padding: 0 0.4rem; min-width: 0; }

.desktop-surface .lf-sv .lf-sv-tile-name {
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.15;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-surface .lf-sv .lf-sv-tile-kind {
    font-family: var(--font-head);
    font-size: var(--type-meta);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rt-purple-lt);
}

@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lf-sv .lf-sv-chip:hover { transform: translateY(-2px) rotate(0deg); box-shadow: var(--shadow-cont-hover); }
    .desktop-surface .lf-sv .lf-sv-door:hover { transform: translateY(-0.3rem) rotate(0deg) scale(1.02); box-shadow: var(--shadow-cont-hover); }
}


/* ═══ THE STOREFRONT AT LIST: a listing is open beside it ════════════════════
   A small Keeper header, no wave, no cards of numbers, no actions (the listing
   beside has Message Keeper). Keyed to the lane being at List (Storefront.js
   sets data-sf-form from resize()), not to its width: a Storefront that holds
   the Stage in a 900px window is as narrow as a List, and there it keeps the
   whole band, as the phone does at 390px. */

.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-band {
    position: sticky;   /* the Keeper stays on screen while the rows scroll under them */
    top: calc(-1 * var(--lane-pad-now, 0px));   /* sticky measures from the padding edge: held where the band bleeds to, so at rest it covers no card */
    z-index: 2;
    grid-template-areas: "who";
    justify-items: stretch;
    padding: 0.65rem var(--lane-pad-now, 1rem);
    /* solid, the lane's glass made opaque, with a hairline: rows never show through it (fixer Z, item 6) */
    background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 0.5rem 1rem -0.75rem rgba(21, 56, 105, 0.35);
    text-align: left;
}

.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-band::before,
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-stats,
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-acts,
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-share,
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-since,
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-facts .k-status { display: none; }

.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-who {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    gap: 0.75rem;
}

.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-avatar { --k-size: 3.25rem; outline-width: 2px; box-shadow: var(--shadow-cont-sm-lt); }
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-id { justify-items: start; gap: 0.2rem; }

.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-name {
    color: var(--text);
    text-shadow: none;
    font-size: clamp(1.2rem, 1rem + 1.4cqi, 1.5rem);
    line-height: 1.1;
}

.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-word { display: inline; margin: 0; font-size: 1em; letter-spacing: 0; text-transform: none; }
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-facts { justify-content: flex-start; }
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-facts .k-badge--soft { box-shadow: none; }
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-count { display: block; }
.desktop-surface .lf-sf[data-sf-form="list"] .lf-sf-widen { display: inline-grid; color: var(--ink-blue); }
.desktop-surface .lf-sf[data-sf-form="list"] .lf-set-bar { display: none; }
.desktop-surface .lf-sf[data-sf-form="list"] .lf-set-break > .k-eyebrow { padding: 0.3em 0.75em; }

/* The sticky header covers nothing: a card brought into view (the one open beside, an arrow key)
   stops below it, not under it */
.desktop-surface .lane-body:has(> .lf-sf[data-sf-form="list"]) { scroll-padding-top: 6.5rem; }

/* The open listing when it is not on the board (not live), named first and selected, as a row;
   and the quiet door when it is all there is (Storefront.js _beside, _alone) */
.desktop-surface .lf-sf .lf-current {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    min-width: 0;
    padding: 0.6rem 0.9rem 0.6rem 0.6rem;
    border-radius: var(--r-panel);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 3px var(--rt-pink), var(--shadow-cont-sm-lt);
}

.desktop-surface .lf-sf .lf-current-thumb {
    flex: none;
    width: 4.5rem;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    background: var(--tilt-pink, var(--rt-pink-slt)) center / cover no-repeat;
}

.desktop-surface .lf-sf .lf-current-text { display: grid; gap: 0.2rem; min-width: 0; }
.desktop-surface .lf-sf .lf-current-title { font-family: var(--font-head); font-size: var(--type-body); line-height: 1.2; color: var(--text); overflow-wrap: anywhere; }
.desktop-surface .lf-sf .lf-current-note { font-size: var(--type-meta); color: var(--text-soft); }

.desktop-surface .lf-sf .lf-sf-end {
    display: grid;
    justify-items: center;
    gap: var(--space-sm);
    margin: 0;
    padding-block: var(--space-sm) var(--space-lg);
    font-size: var(--type-body);
    text-align: center;
    color: var(--text-soft);
}

.desktop-surface .lf-sf .lf-sf-alone { display: grid; gap: clamp(0.9rem, 0.6rem + 1cqi, 1.75rem); min-width: 0; }


/* ═══ LIST: a listing is open beside the set (under 26.5rem of body) ═══════ */

@container lane (width < 26.5rem) {
    .desktop-surface .lf-set { gap: 0.75rem; }
    .desktop-surface .lf-set .lf-set-break { padding-top: 0.25rem; }
    .desktop-surface .lf-set .lf-set-skels { gap: 0.5rem; }
    .desktop-surface .lf-set .lf-set-skel > .k-skel-card { display: none; }
    .desktop-surface .lf-set .lf-set-skel > .k-skel-row { display: grid; min-height: 6.4rem; }
    .desktop-surface .lf-set .lf-set-empty { padding-block: var(--space-lg); }
    .desktop-surface .lf-set .lf-set-empty .k-empty-art { width: 5rem; }

    .desktop-surface .lf-set .lf-set-head { flex-wrap: nowrap; align-items: flex-start; gap: var(--space-sm); padding-top: 0; }
    .desktop-surface .lf-set .lf-set-head-main { flex: 1 1 auto; gap: 0.15rem; }
    .desktop-surface .lf-set .lf-set-title { font-size: clamp(1.25rem, 1.05rem + 1.4cqi, 1.6rem); line-height: 1.1; }
    .desktop-surface .lf-set .lf-set-sub { font-size: var(--type-meta); }
    .desktop-surface .lf-set .lf-set-count { flex-direction: column; align-items: flex-end; gap: 0.1rem; }
    .desktop-surface .lf-set .lf-set-count-n { font-size: 1.75rem; }
    .desktop-surface .lf-set .lf-set-count-word { font-size: var(--type-meta); }
    .desktop-surface .lf-set .lf-set-bar { gap: 0.4rem; }
    .desktop-surface .lf-set .lf-set-bar-title { font-size: var(--type-lead); }

    /* Saved: the chips in one row that scrolls, smaller doors and tiles */
    .desktop-surface .lf-sv .lf-sv-chips { flex-wrap: nowrap; overflow-x: auto; padding: 0.4rem 0.2rem 0.6rem; scrollbar-width: thin; }
    .desktop-surface .lf-sv .lf-sv-chip { flex: none; padding-right: 0.9rem; transform: none; }
    .desktop-surface .lf-sv .lf-sv-chip-photo { --k-size: 2.5rem; }
    .desktop-surface .lf-sv .lf-sv-chip-name { font-size: var(--type-meta); max-width: 9rem; }
    .desktop-surface .lf-sv .lf-sv-doors { gap: 0.5rem; padding: 0; }
    .desktop-surface .lf-sv .lf-sv-door { flex-basis: 100%; max-width: none; min-height: 3.75rem; padding: 0.6rem 1rem; transform: none; }
    .desktop-surface .lf-sv .lf-sv-door + .lf-sv-door { transform: none; }
    .desktop-surface .lf-sv .lf-sv-door-text { font-size: 1.1rem; }
    .desktop-surface .lf-sv .lf-sv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
}


/* ═══ SPINE: a filmstrip of thumbnails (under 12rem) ═══════════════════════ */

@container lane (width < 12rem) {
    .desktop-surface .lf-set { gap: 0.5rem; }

    .desktop-surface .lf-set .lf-set-head,
    .desktop-surface .lf-set .lf-set-bar,
    .desktop-surface .lf-set .lf-set-break,
    .desktop-surface .lf-set .lf-set-state,
    .desktop-surface .lf-set .lf-set-empty,
    .desktop-surface .lf-sf .lf-sf-band,
    .desktop-surface .lf-sf .lf-sf-end,
    .desktop-surface .lf-sf .lf-current-text,
    .desktop-surface .lf-sv .lf-sv-keepers,
    .desktop-surface .lf-sv .lf-sv-doors,
    .desktop-surface .lf-sv .lf-sv-recent { display: none !important; }

    .desktop-surface .lf-set .lf-set-skel > .k-skel-row { display: none; }
    .desktop-surface .lf-set .lf-set-skel > .lf-set-skel-thumb { display: block; }
}


@media (prefers-reduced-motion: reduce) {
    .desktop-surface .lf-sv .lf-sv-chip,
    .desktop-surface .lf-sv .lf-sv-door,
    .desktop-surface .lf-sf .k-cards > [data-today] { transition: none; }
    .desktop-surface .lf-sv .lf-sv-chip:hover,
    .desktop-surface .lf-sv .lf-sv-door:hover { transform: none; }
}
