/* ═══════════════════════════════════════════════════════════════════════════
   lane-listings.css: the listings lane family (desktop fan-out unit LISTINGS;
   docs/plans/desktop/audit/keeper-listings.md). Linked by the layout.

   Three pages, one journey:
     .lfl-catalog   the Keeper's listings (desktop/pages/Manage-Listings.php, Browse)
     .lfl-preview   a listing as Seekers see it (Listing-Preview.php, Focus); the
                    listing inside is desktop/pages/Details.php, styled by
                    lane-focus.css, which this sheet does not restyle beyond
                    quieting its inert button
     .lfl-editor    the editor: the checklist rail beside one section, and the
                    foot with the listing's state and the Save (Listing-Edit.php,
                    Act; its sections in desktop/partials/listing-edit/)

   Built from the kit (kit.css, prefix k-); this sheet adds the lfl- parts.
   Every selector starts .desktop-surface; no font-weight (swap the family);
   full background shorthands; no viewport media queries: a part changes form
   because its LANE narrows (@container lane on the .lane-body). Nothing is
   fixed or floats over anything: the rail and the foot are sticky inside the
   lane's own scroller, and every confirmation opens in place.

   Contents
     1  Shared bits: inks, states, the week strip, search, switches
     2  The catalog: head, doors, recommendations, tools, the board, its rows
     3  The catalog at List: compact rows
     4  The preview: the bar, the frame, its List form
     5  The editor: the rail, the section, the foot
     6  The sections' parts: rich text, switch sets, category, made to order,
        open hours, fulfillment
     7  The editor in a narrow lane
     8  Reduced motion
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── 1. SHARED ───────────────────────────────────────────────────────────── */

.desktop-surface :is(.lfl-catalog, .lfl-preview, .lfl-editor) [hidden] { display: none !important; }

.desktop-surface .lfl-ink-green  { color: var(--ink-green); }
.desktop-surface .lfl-ink-pink   { color: var(--ink-pink); }
.desktop-surface .lfl-ink-amber  { color: var(--ink-amber); }
.desktop-surface .lfl-ink-purple { color: var(--ink-purple); }
.desktop-surface .lfl-ink-blue   { color: var(--ink-blue); }
.desktop-surface .lfl-ink-slate  { color: var(--ink-slate); }

.desktop-surface .lfl-state { min-height: 60%; align-content: center; }
.desktop-surface .lfl-state .k-meta { max-width: 40ch; text-align: center; }
.desktop-surface .lfl-state--quiet .k-empty-art { width: 5rem; font-size: 1.9rem; }

/* The week: seven small day chips, lit when the listing is open that day (rt_dow_badges' facts) */
.desktop-surface .lfl-week { display: inline-flex; flex-wrap: wrap; gap: 0.15rem; }
.desktop-surface .lfl-cell--days .lfl-week { flex-wrap: nowrap; }
.desktop-surface .lfl-day {
    display: inline-grid;
    place-items: center;
    min-width: 1.55rem;
    padding: 0.12rem 0.15rem;
    border-radius: 0.35rem;
    background: rgba(30, 40, 53, 0.06);
    color: var(--text-faint);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1.2;
}
.desktop-surface .lfl-day.is-open { background: var(--fill-amber); color: var(--rt-amber-ink, #3a2a00); }
.desktop-surface .lfl-week--sm .lfl-day { min-width: 1.6rem; }

/* A search field with its glass and a glyph */
.desktop-surface .lfl-search { position: relative; display: block; min-width: 12rem; margin: 0; }
.desktop-surface .lfl-search > i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
}
.desktop-surface .lfl-search .k-input { padding-left: 2.5rem; }

/* A switch as a row: icon, words, the track at the end (the phone's Basic Search rows) */
.desktop-surface .lfl-switch {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    min-height: 3.5rem;
    padding: 0.65rem var(--space-md);
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-ctl);
}
.desktop-surface .lfl-switch > .k-switch-track { margin-left: auto; }
.desktop-surface .lfl-switch-icon { flex: none; width: 1.5rem; text-align: center; font-size: 1.15rem; }
.desktop-surface .lfl-switch-text {
    display: block;
    min-width: 0;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-body);
    color: var(--text);
}
.desktop-surface .lfl-switch-text small {
    display: block;
    margin-top: 0.1rem;
    font-family: var(--font-text);
    font-size: var(--type-meta);
    color: var(--text-soft);
}
.desktop-surface .lfl-switch--big { min-height: 4.25rem; }
.desktop-surface .lfl-shared { color: var(--ink-purple) !important; }
.desktop-surface .lfl-label-sm { font-size: var(--type-meta); color: var(--text-soft); }


/* ─── 2. THE CATALOG ─────────────────────────────────────────────────────── */

.desktop-surface .lfl-catalog {
    display: grid;
    gap: clamp(0.9rem, 0.5rem + 1.1cqi, 1.6rem);
    align-content: start;
    min-width: 0;
}

.desktop-surface .lfl-cat-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-md) var(--space-lg);
}
.desktop-surface .lfl-cat-eyebrow { color: var(--ink-pink); margin: 0; }
.desktop-surface .lfl-cat-title {
    margin: 0.1rem 0 0;
    color: var(--ink-blue);
    font-size: clamp(2.2rem, 1.4rem + 3cqi, 4.25rem);
}
.desktop-surface .lfl-cat-count { margin: 0.35rem 0 0; font-size: var(--type-body); }
.desktop-surface .lfl-needs { color: var(--ink-purple); font-family: var(--font-head); }

/* The doors: the phone's frosted quick actions, a colour each */
.desktop-surface .lfl-doors { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.desktop-surface .lfl-door {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3.25rem;
    padding: 0.55rem 1.15rem 0.55rem 0.85rem;
    border-radius: var(--r-tile, 1rem);
    background: rgba(255, 255, 255, 0.94);
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
    color: var(--tone-ink, var(--ink-blue));
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-body);
    text-decoration: none;
    transition: transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-door > i { font-size: 1.45rem; color: var(--tone, var(--rt-blue)); }
.desktop-surface .lfl-door:active { transform: scale(0.96); transition-duration: var(--dur-press); }
/* The page's one primary (item L6): New listing in the brand pink; the others step back to quiet pills */
.desktop-surface .lfl-door--primary {
    background: var(--fill-pink);
    outline: 0;
    color: #fff;
    box-shadow: 0 0.7rem 1.4rem -0.7rem rgba(194, 52, 104, 0.7);
}
.desktop-surface .lfl-door--primary > i { color: #fff; }
.desktop-surface .lfl-door--quiet {
    min-height: 2.75rem;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    font-size: var(--type-meta);
}
.desktop-surface .lfl-door--quiet > i { font-size: 1.1rem; }
.desktop-surface .lfl-door:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }

/* Hoku's recommendations: the phone's gradient card, one sentence, clauses as white pills */
.desktop-surface .lfl-rec {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 3rem var(--space-md) var(--space-md);
    border-radius: var(--r-panel);
    background: linear-gradient(120deg, var(--rt-purple, #916df6) 0%, var(--rt-pink, #eb5d8f) 100%);
    outline: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 1rem 2rem -1rem rgba(99, 74, 168, 0.6);
    color: #fff;
}
.desktop-surface .lfl-rec-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    font-size: 1.15rem;
}
.desktop-surface .lfl-rec-body { flex: 1; min-width: 0; }
.desktop-surface .lfl-rec-title {
    margin: 0;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-lead);
    color: #fff;
}
.desktop-surface .lfl-rec-text { margin: 0.15rem 0 0; line-height: 2; font-size: var(--type-body); color: rgba(255, 255, 255, 0.95); }
.desktop-surface .lfl-rec-link {
    display: inline-block;
    margin: 0 0.15rem;
    padding: 0.2rem 0.85rem;
    border: 0;
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--ink-purple);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0.3rem 0.7rem -0.35rem rgba(51, 38, 87, 0.6);
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-rec-link[aria-pressed="true"] { color: var(--ink-pink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 255, 255, 0.45); }
.desktop-surface .lfl-rec-link:active { transform: scale(0.96); }
.desktop-surface .lfl-rec-close {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* The tools: window, chips, search and sort on one glass shelf */
.desktop-surface .lfl-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--r-panel);
    background: var(--glass-bg);
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
}
.desktop-surface .lfl-chips { gap: 0.4rem; }
.desktop-surface .lfl-tools-end { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.desktop-surface .lfl-sortpick { display: none; align-items: center; gap: 0.5rem; margin: 0; }
.desktop-surface .lfl-sortpick .k-label { font-size: var(--type-meta); color: var(--text-soft); }

/* The board: a table that uses the width. Columns: the listing, views, saves, booked, rating,
   the week, the next step. A draft's checklist spans the four stat columns, as on the phone. */
.desktop-surface .lfl-board {
    --lfl-cols: minmax(15rem, 2.4fr) repeat(3, minmax(4.25rem, 0.55fr)) minmax(5.5rem, 0.7fr) minmax(12rem, 1fr) minmax(10.5rem, 1.15fr);
    display: grid;
    align-content: start;
    border-radius: var(--r-panel);
    background: rgba(255, 255, 255, 0.9);
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
    overflow: hidden;
}

.desktop-surface .lfl-cols,
.desktop-surface .lfl-row {
    display: grid;
    grid-template-columns: var(--lfl-cols);
    align-items: center;
    column-gap: clamp(0.6rem, 0.3rem + 0.8cqi, 1.4rem);
    padding-inline: var(--space-md);
}

.desktop-surface .lfl-cols {
    min-height: 2.75rem;
    background: linear-gradient(100deg, rgba(234, 241, 252, 0.95), rgba(244, 238, 255, 0.95));
    border-bottom: 1px solid var(--glass-rule);
}
.desktop-surface .lfl-col {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
    border: 0;
    background: none;
    color: var(--text-soft);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    letter-spacing: 0.02em;
    text-align: left;
}
.desktop-surface .lfl-col--num { justify-content: center; }
.desktop-surface button.lfl-col { cursor: pointer; border-radius: 0.4rem; }
.desktop-surface button.lfl-col > i { opacity: 0.35; font-size: 0.85em; transition: opacity var(--dur-fast) var(--ease-out); }
.desktop-surface button.lfl-col[aria-pressed="true"] { color: var(--ink-blue); }
.desktop-surface button.lfl-col[aria-pressed="true"] > i { opacity: 1; }
.desktop-surface button.lfl-col:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }

.desktop-surface .lfl-row {
    position: relative;
    min-height: 5.75rem;
    padding-block: 0.7rem;
    border-top: 1px solid var(--glass-rule);
    color: var(--text);
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-row:first-of-type { border-top: 0; }
.desktop-surface .lfl-row::before {
    content: "";
    position: absolute;
    inset: 0.6rem auto 0.6rem 0;
    width: 0.3rem;
    border-radius: 0 0.3rem 0.3rem 0;
    background: var(--fill-pink);
    transform: scaleY(0);
    transition: transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-row.is-on { background: linear-gradient(90deg, rgba(235, 93, 143, 0.1), rgba(235, 93, 143, 0.02) 60%); }
.desktop-surface .lfl-row.is-on::before { transform: scaleY(1); }
.desktop-surface .lfl-row:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: -3px; }
.desktop-surface .lfl-row.is-pos { background: linear-gradient(100deg, rgba(10, 20, 40, 0.06), rgba(14, 58, 95, 0.04)); }

.desktop-surface .lfl-cell { min-width: 0; }
.desktop-surface .lfl-cell--listing { display: flex; align-items: center; gap: var(--space-md); }
.desktop-surface .lfl-thumb {
    flex: none;
    width: clamp(4rem, 3rem + 2cqi, 5.25rem);
    aspect-ratio: 1;
    border-radius: 0.85rem;
    background: var(--rt-blue-slt) center / cover no-repeat;
    box-shadow: 0 0.4rem 0.9rem -0.4rem rgba(15, 42, 71, 0.45);
}
.desktop-surface .lfl-id { display: grid; gap: 0.3rem; min-width: 0; }
.desktop-surface .lfl-title {
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-body);
    line-height: 1.25;
    color: var(--rt-ink, var(--text));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.desktop-surface .lfl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-avail { font-family: var(--font-head); }

.desktop-surface .lfl-cell--num { display: grid; justify-items: center; gap: 0.05rem; text-align: center; }
.desktop-surface .lfl-k { display: none; font-size: var(--type-meta); color: var(--text-faint); }
.desktop-surface .lfl-v { font-family: var(--font-head); font-weight: normal; font-size: var(--type-lead); line-height: 1.1; color: var(--rt-ink, var(--text)); }
.desktop-surface .lfl-v > i { color: var(--rt-amber, #fdab29); font-size: 0.8em; }
.desktop-surface .lfl-v--none { font-family: var(--font-text); font-size: var(--type-meta); color: var(--text-faint); }
.desktop-surface .lfl-d { min-height: 1.1em; font-family: var(--font-head); font-size: var(--type-meta); color: var(--text-faint); }
.desktop-surface .lfl-d.is-up { color: var(--ink-green); }
.desktop-surface .lfl-d.is-down { color: var(--ink-pink); }

.desktop-surface .lfl-cell--setup {
    grid-column: 2 / span 4;
    display: grid;
    grid-template-columns: auto minmax(4rem, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--type-meta);
    color: var(--text-soft);
}
.desktop-surface .lfl-setup-pct { font-family: var(--font-head); color: var(--ink-amber); }

.desktop-surface .lfl-cell--days { display: grid; gap: 0.25rem; justify-items: start; }
.desktop-surface .lfl-calkind { font-size: var(--type-meta); color: var(--text-soft); }

.desktop-surface .lfl-cell--next { display: grid; gap: 0.2rem; justify-items: start; font-size: var(--type-meta); }
.desktop-surface .lfl-next { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-head); }
.desktop-surface .lfl-next-act {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: var(--r-pill);
    background: var(--rt-blue-slt);
    color: var(--ink-blue);
    font-family: var(--font-head);
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-next-act:active { transform: scale(0.96); }

.desktop-surface .lfl-catalog[data-sort="views"] [data-lfl-stat="v"] .lfl-v,
.desktop-surface .lfl-catalog[data-sort="saves"] [data-lfl-stat="s"] .lfl-v,
.desktop-surface .lfl-catalog[data-sort="bookings"] [data-lfl-stat="b"] .lfl-v { color: var(--ink-blue); }

@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lfl-row:hover { background: rgba(44, 117, 222, 0.05); }
    .desktop-surface .lfl-row.is-on:hover { background: linear-gradient(90deg, rgba(235, 93, 143, 0.12), rgba(235, 93, 143, 0.03) 60%); }
    .desktop-surface .lfl-door:hover { transform: translateY(-2px); }
    .desktop-surface button.lfl-col:hover { color: var(--ink-blue); }
}


/* ─── 3. THE CATALOG AT LIST ─────────────────────────────────────────────── */
/* A listing is open beside it: one column of compact rows, the open one marked. Same DOM:
   the row's cells re-lay into a card (photo left, title and state, the stats on one line). */

@container lane (width < 46rem) {
    .desktop-surface .lfl-cat-head { align-items: flex-start; }
    .desktop-surface .lfl-cat-title { font-size: var(--type-title); }
    .desktop-surface .lfl-cat-eyebrow { display: none; }
    .desktop-surface .lfl-door { min-height: 2.6rem; padding: 0.4rem 0.85rem 0.4rem 0.65rem; font-size: var(--type-meta); }
    .desktop-surface .lfl-door > i { font-size: 1.15rem; }
    .desktop-surface .lfl-rec { padding: 0.75rem 2.75rem 0.75rem 0.75rem; }
    .desktop-surface .lfl-rec-mark { display: none; }
    .desktop-surface .lfl-rec-text { line-height: 1.85; }
    .desktop-surface .lfl-tools { padding: 0.6rem; }
    .desktop-surface .lfl-tools-end { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .desktop-surface .lfl-tools-end .lfl-search { flex: 1 1 12rem; min-width: 0; }
    .desktop-surface .lfl-sortpick { display: inline-flex; flex: 1 1 10rem; }
    .desktop-surface .lfl-sortpick .k-select { flex: 1; min-width: 0; }

    .desktop-surface .lfl-board { background: none; outline: 0; box-shadow: none; overflow: visible; gap: 0.55rem; }
    .desktop-surface .lfl-cols { display: none; }
    .desktop-surface .lfl-row {
        grid-template-columns: auto auto auto minmax(0, 1fr) auto;
        grid-template-areas:
            "id id id id id"
            "v s b r r"
            "days days days next next";
        align-items: center;
        gap: 0.45rem 0.85rem;
        min-height: 0;
        padding: 0.65rem 0.8rem;
        border: 0;
        border-radius: var(--r-card, 1rem);
        background: rgba(255, 255, 255, 0.94);
        outline: var(--glass-outline);
        box-shadow: var(--shadow-cont-sm-lt);
    }
    .desktop-surface .lfl-row:first-of-type { border-top: 0; }
    .desktop-surface .lfl-row.is-on { background: #fff; box-shadow: 0 0 0 3px var(--rt-pink, #eb5d8f), var(--shadow-cont-sm-lt); }
    .desktop-surface .lfl-row::before { display: none; }
    .desktop-surface .lfl-cell--listing { grid-area: id; gap: 0.75rem; }
    .desktop-surface .lfl-thumb { width: 3.5rem; border-radius: 0.7rem; }
    .desktop-surface .lfl-title { -webkit-line-clamp: 2; }
    /* The stats on one line: "4 views +4 · 0 saves · 0 booked · None yet" */
    .desktop-surface .lfl-cell--num { display: flex; align-items: baseline; gap: 0.25rem; justify-items: start; text-align: left; white-space: nowrap; }
    .desktop-surface [data-lfl-stat="v"] { grid-area: v; }
    .desktop-surface [data-lfl-stat="s"] { grid-area: s; }
    .desktop-surface [data-lfl-stat="b"] { grid-area: b; }
    .desktop-surface .lfl-cell--num:not([data-lfl-stat]) { grid-area: r; justify-self: end; }
    .desktop-surface .lfl-cell--num:not([data-lfl-stat]) .lfl-k { display: none; }
    .desktop-surface .lfl-k { display: inline; order: 2; text-transform: lowercase; }
    .desktop-surface .lfl-v { order: 1; font-size: var(--type-body); }
    .desktop-surface .lfl-d { order: 3; min-height: 0; }
    .desktop-surface .lfl-cell--setup { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto minmax(3rem, 1fr) auto; }
    .desktop-surface .lfl-cell--days { grid-area: days; display: flex; align-items: center; }
    .desktop-surface .lfl-cell--days .lfl-calkind { display: none; }
    .desktop-surface .lfl-cell--days:empty { display: none; }
    .desktop-surface .lfl-cell--next { grid-area: next; justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.3rem 0.5rem; white-space: nowrap; }
    .desktop-surface .lfl-row .lfl-next-act { display: none; }
    .desktop-surface .lfl-row.is-on .lfl-next-act { display: inline-flex; }
}

/* A slim List (a 900 or 1100 window): the rating gives its room to the three counts, the next step
   takes a line of its own under the week */
@container lane (width < 25rem) {
    .desktop-surface .lfl-doors .lfl-door:not(.lfl-door--primary) > span { display: none; }
    /* Search and sort each get a line, so neither is clipped ("Search listing", "Recen") */
    .desktop-surface .lfl-tools-end .lfl-search, .desktop-surface .lfl-sortpick { flex-basis: 100%; }
    .desktop-surface .lfl-door { padding: 0.45rem 0.7rem; }
    .desktop-surface .lfl-row {
        grid-template-areas:
            "id id id id id"
            "v s b b b"
            "days days days days days"
            "next next next next next";
    }
    .desktop-surface .lfl-cell--num:not([data-lfl-stat]) { display: none; }
    .desktop-surface .lfl-cell--next { justify-self: start; justify-content: flex-start; }
    .desktop-surface .lfl-cell--next:not(:has(.lfl-next-act)) .lfl-next.lfl-ink-green { display: none; }
}


/* ─── 4. THE PREVIEW ─────────────────────────────────────────────────────── */

.desktop-surface .lfl-preview {
    display: grid;
    gap: var(--space-md);
    align-content: start;
    min-width: 0;
}

.desktop-surface .lfl-pv-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-lg);
    padding: 0.85rem var(--pad-panel);
    border-radius: var(--r-panel);
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 255, 0.94));
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
}
.desktop-surface .lfl-pv-who { flex: 1 1 16rem; min-width: 0; display: grid; gap: 0.25rem; }
.desktop-surface .lfl-pv-eyebrow { margin: 0; color: var(--ink-pink); }
/* Freshness (item L3): the preview is the SAVED listing; while the editor holds changes, it says so */
.desktop-surface .lfl-pv-fresh {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0;
    font-size: var(--type-meta);
    line-height: 1.35;
    color: var(--text-soft);
}
.desktop-surface .lfl-pv-fresh.is-unsaved {
    padding: 0.25rem 0.55rem;
    border-radius: 0.55rem;
    background: var(--rt-amber-slt, rgba(253, 171, 41, 0.16));
    color: var(--ink-amber);
    font-family: var(--font-head);
}
.desktop-surface .lfl-pv-state { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-pv-check { flex: 0 1 15rem; display: grid; gap: 0.35rem; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-pv-edit { flex: none; }

/* The listing inside is the Seeker page; its own button is inert here, so it steps back */
.desktop-surface .lfl-preview [data-lf-preview] .lf-cta { opacity: 0.55; filter: saturate(0.75); cursor: default; }
.desktop-surface .lfl-preview [data-lf-preview] [inert] { cursor: default; }

/* Beside the editor (the editor holds the Stage): the phone width, the bar steps back */
.desktop-surface .lfl-preview[data-lfl-editing] .lfl-pv-edit { display: none; }
.desktop-surface .lfl-preview[data-lfl-editing] .lfl-pv-bar { background: rgba(255, 255, 255, 0.82); }

@container lane (width < 34rem) {
    .desktop-surface .lfl-pv-bar { padding: 0.7rem 0.8rem; gap: 0.5rem 0.8rem; }
    .desktop-surface .lfl-pv-check { flex: 1 1 100%; }
    .desktop-surface .lfl-pv-line { display: none; }
}


/* ─── 5. THE EDITOR ──────────────────────────────────────────────────────── */

/* The checklist (the rail) BESIDE the open section at every width the editor gets: routes.js gives
   Listing-Edit a stageMin, so the stage folds the preview to its Spine before this lane gets too
   narrow for two columns (fixer L, item L1); under 48rem the rail narrows to names and marks
   (section 7). There is no strip form. The editor is exactly the lane's height: the rail and the
   section scroll inside themselves and the foot is the row UNDER the section, so it never covers a
   field (item L4). */
.desktop-surface .lfl-editor {
    display: grid;
    grid-template-columns: clamp(14.5rem, 9rem + 12cqi, 22rem) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "rail sec" "rail foot";
    gap: var(--space-md) clamp(0.75rem, 0.4rem + 1.2cqi, 1.75rem);
    height: 100%;
    min-height: 0;
}
.desktop-surface .lfl-editor--out { display: block; height: auto; }
/* A section that needs the room (its partial's data-lfl-wide: the week grid, the variant table, the
   photo wall; routes.js stageWide folds the preview for it): the checklist column gives a little
   too, so the grid, the table and the wall appear at a 1440 window (fixer W, item E1). */
@container lane (width >= 48rem) {
    .desktop-surface .lfl-editor:has([data-lfl-wide]) { grid-template-columns: clamp(14.5rem, 7rem + 11cqi, 19rem) minmax(0, 1fr); }
}
.desktop-surface .lfl-ed { display: contents; }

/* The way back to the catalog (fixer W, item E2): only while a narrow window has tucked the Browse
   lane away (app.js data-w="off"; the stage draws no chip of its own while the preview's Spine is the
   leftmost lane). A row of its own above the checklist and the section, so nothing hides it: the
   stage's own back chip, a clear pill with the pink return disc, naming where it goes. */
.desktop-surface .lfl-back { display: none; }
.lane[data-lane="browse"][data-w="off"] ~ .lane[data-lane="act"] .lfl-editor:not(.lfl-editor--out) {
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "back back" "rail sec" "rail foot";
}
.lane[data-lane="browse"][data-w="off"] ~ .lane[data-lane="act"] .lfl-back {
    grid-area: back;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 2.5rem;
    margin: 0;
    padding: 0 1.1rem 0 0.3rem;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-2, #fff) 94%, transparent);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent, #EB5D8F) 55%, transparent), 0 0.45rem 1.1rem -0.5rem rgba(30, 40, 53, 0.4);
    color: var(--text, #1E2835);
    font: inherit;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: 0.9375rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--dur-fast, 160ms) var(--ease-out, ease-out);
}
.desktop-surface .lfl-back > i {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--accent, #EB5D8F);
    color: #fff;
    font-size: 0.8rem;
}
.desktop-surface .lfl-back:active { transform: scale(0.97); }
.desktop-surface .lfl-back:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lfl-rail { grid-area: rail; }
.desktop-surface .lfl-sec { grid-area: sec; }
.desktop-surface .lfl-foot { grid-area: foot; }

/* The rail: the checklist, scrolling by itself when it is longer than the lane */
.desktop-surface .lfl-rail {
    align-self: start;
    display: grid;
    align-content: start;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: var(--r-panel);
    background: var(--glass-bg);
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
    scrollbar-width: thin;
}
.desktop-surface .lfl-rail-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem 0.8rem;
    align-items: center;
    padding: var(--space-md);
    background: var(--head-blue, linear-gradient(135deg, #1e5fc0, #2c75de));
    color: #fff;
}
.desktop-surface .lfl-rail-thumb {
    width: 3.5rem;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.2) center / cover no-repeat;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.desktop-surface .lfl-rail-id { display: grid; gap: 0.3rem; min-width: 0; }
.desktop-surface .lfl-rail-title {
    margin: 0;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-body);
    line-height: 1.2;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.desktop-surface .lfl-rail-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: var(--type-meta); color: rgba(255, 255, 255, 0.85); }
.desktop-surface .lfl-rail-progress { grid-column: 1 / -1; display: grid; gap: 0.35rem; font-size: var(--type-meta); color: rgba(255, 255, 255, 0.9); }
.desktop-surface .lfl-rail-progress .k-strong { color: #fff; }

.desktop-surface .lfl-steps { margin: 0; padding: 0.35rem; list-style: none; display: grid; gap: 0.15rem; }
.desktop-surface .lfl-step {
    position: relative;
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-step-icon { padding-top: 0.1rem; font-size: 1.1rem; text-align: center; }
.desktop-surface .lfl-step.is-done .lfl-step-icon { color: var(--ink-green); }
.desktop-surface .lfl-step.is-todo .lfl-step-icon { color: var(--rt-amber, #fdab29); }
.desktop-surface .lfl-step.is-optional .lfl-step-icon { color: var(--rt-blue-lt, #8ab4f0); }
.desktop-surface .lfl-step-main { display: grid; gap: 0.2rem; min-width: 0; }
.desktop-surface .lfl-step-label { font-family: var(--font-head); font-weight: normal; font-size: var(--type-body); line-height: 1.25; }
.desktop-surface .lfl-step-label small { margin-left: 0.25rem; font-family: var(--font-text); font-size: var(--type-meta); color: var(--text-faint); }
.desktop-surface .lfl-step-why { font-size: var(--type-meta); line-height: 1.35; color: var(--text-soft); }
.desktop-surface .lfl-step.is-todo .lfl-step-why { color: var(--ink-amber); }
.desktop-surface .lfl-step-chev { padding-top: 0.2rem; color: var(--text-faint); font-size: 0.8rem; transition: transform var(--dur-base) var(--ease-spring); }
.desktop-surface .lfl-step[aria-current="step"] {
    background: linear-gradient(90deg, rgba(44, 117, 222, 0.14), rgba(44, 117, 222, 0.04));
    box-shadow: inset 0.25rem 0 0 var(--rt-blue, #2c75de);
}
.desktop-surface .lfl-step[aria-current="step"] .lfl-step-label { color: var(--ink-blue); }
.desktop-surface .lfl-step[aria-current="step"] .lfl-step-chev { color: var(--ink-blue); transform: translateX(0.2rem); }
.desktop-surface .lfl-step:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: -2px; }
.desktop-surface a.lfl-step:active { transform: scale(0.98); }

/* Not here yet (item L2): the steps edited in the app for now, grouped under one quiet heading at
   the END of the checklist. A plain row, not a link: no chevron, no focus, no press, muted; its
   done or to-do mark and its reason still show, and a small "In the app" tag says where it is edited. */
.desktop-surface .lfl-later {
    display: grid;
    gap: 0.15rem;
    margin: 0.35rem 0.35rem 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--glass-rule, rgba(30, 40, 53, 0.14));
}
.desktop-surface .lfl-later-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.1rem 0.7rem 0.2rem;
    font-family: var(--font-head);
    font-size: var(--type-meta);
    color: var(--text-soft);
}
.desktop-surface .lfl-steps--app { padding: 0; }
.desktop-surface .lfl-step.is-app {
    grid-template-columns: 1.6rem minmax(0, 1fr) auto;
    padding-block: 0.5rem;
    cursor: default;
    color: var(--text-soft);
}
.desktop-surface .lfl-step.is-app .lfl-step-label { font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-step.is-app .lfl-step-icon { opacity: 0.8; font-size: 1rem; }
.desktop-surface .lfl-step.is-app .lfl-step-why { color: var(--text-faint); }
.desktop-surface .lfl-step.is-app.is-todo .lfl-step-why { color: var(--ink-amber); opacity: 0.85; }
.desktop-surface .lfl-step-tag {
    align-self: start;
    margin-top: 0.05rem;
    padding: 0.1rem 0.5rem;
    border-radius: var(--r-pill);
    background: rgba(30, 40, 53, 0.06);
    color: var(--text-soft);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.35;
    white-space: nowrap;
}
.desktop-surface .lfl-step.is-app[aria-current="step"] { background: rgba(30, 40, 53, 0.05); box-shadow: inset 0.25rem 0 0 var(--text-faint); }

@media (hover: hover) and (pointer: fine) {
    .desktop-surface a.lfl-step:hover { background: rgba(44, 117, 222, 0.07); }
    .desktop-surface a.lfl-step:hover .lfl-step-chev { transform: translateX(0.2rem); }
}

/* The section: one kit panel, its head in the section's tone */
.desktop-surface .lfl-sec {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.desktop-surface .lfl-sec-head { flex: none; align-items: center; flex-wrap: nowrap; }
/* The open step's reason under the section's name: shown when the checklist is compact (section 7) */
.desktop-surface .lfl-sec-why {
    display: none;
    margin: 0.35rem 0 0;
    padding: 0.3rem 0.65rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-amber);
    font-size: var(--type-meta);
    line-height: 1.35;
}
.desktop-surface .lfl-sec-why > i { color: var(--rt-amber, #fdab29); margin-right: 0.2rem; }
.desktop-surface .lfl-sec-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    font-size: 1.2rem;
}
.desktop-surface .lfl-sec-title { font-size: var(--type-section); }
.desktop-surface .lfl-sec-state {
    flex: none;
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.22);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    white-space: nowrap;
}
/* The section's own scroller: its end is reachable above the foot, with room to spare */
.desktop-surface .lfl-sec-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: var(--space-md);
    overflow: hidden auto;
    overscroll-behavior: contain;
    padding-bottom: calc(var(--space-lg, 1.5rem) + 0.5rem);
    scroll-padding-bottom: var(--space-lg, 1.5rem);
    scrollbar-width: thin;
    container: lfl-sec / inline-size;
}
.desktop-surface .lfl-notice, .desktop-surface .lfl-guard, .desktop-surface .lfl-error { margin: 0; }
.desktop-surface .lfl-guard-btns { margin-top: 0.6rem; }

/* The form and its help (item L7): the form at a reading measure, the step explained beside it when
   the section is wide, under it when not */
.desktop-surface .lfl-work { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-items: start; min-width: 0; }
.desktop-surface .lfl-main { display: grid; gap: var(--space-md); min-width: 0; }
@container lfl-sec (width >= 58rem) {
    .desktop-surface .lfl-work { grid-template-columns: minmax(0, 52rem) minmax(15rem, 30rem); }
    .desktop-surface .lfl-help { position: sticky; top: 0; }
}
.desktop-surface .lfl-help { display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.desktop-surface .lfl-help-card {
    display: grid;
    gap: 0.35rem;
    padding: var(--space-md);
    border-radius: var(--r-panel);
    background: var(--tone-slt, var(--rt-blue-slt));
}
.desktop-surface .lfl-help-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--tone-ink, var(--ink-blue));
    font-family: var(--font-head);
    font-size: var(--type-meta);
}
.desktop-surface .lfl-help-text { margin: 0; font-size: var(--type-body); line-height: 1.5; color: var(--text); }
.desktop-surface .lfl-help-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; margin: 0.2rem 0 0; padding: 0 0.25rem; font-size: var(--type-body); }
.desktop-surface .lfl-help-next a { color: var(--ink-blue); font-family: var(--font-head); text-decoration: none; }
.desktop-surface .lfl-help-next a:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; border-radius: 0.3rem; }

.desktop-surface .lfl-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: var(--space-md) var(--space-lg);
    align-items: start;
}
.desktop-surface .lfl-fields-note { grid-column: 1 / -1; margin: 0; }
.desktop-surface .lfl-count { justify-self: end; }

/* Not built on the desktop yet: what the step needs, in words, and where to edit it */
.desktop-surface .lfl-app { display: grid; justify-items: start; gap: 0.6rem; max-width: 46rem; padding: var(--space-sm) 0; }
.desktop-surface .lfl-app .k-empty-art { width: 3.75rem; font-size: 1.5rem; }
.desktop-surface .lfl-app > p { margin: 0; }
.desktop-surface .lfl-app-title { color: var(--ink-blue); }

/* The foot: the row under the section (never over it), on a solid surface; the listing's life on the
   left, the Save on the right */
.desktop-surface .lfl-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm) var(--space-lg);
    padding: 0.8rem var(--pad-panel);
    border-radius: var(--r-panel);
    background: #fff;
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
}
/* One primary on screen (items L5): while the unsaved-changes prompt or a pause / delete
   confirmation is open, the section's Save and Discard step aside */
.desktop-surface .lfl-editor:is([data-guard], [data-armed]) .lfl-save { display: none; }
.desktop-surface .lfl-life { flex: 1 1 14rem; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.9rem; }
.desktop-surface .lfl-life > :is(.lfl-life-why, .lfl-confirm, .lfl-life-msg) { flex-basis: 100%; }
.desktop-surface .lfl-life-state { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-life-why { margin: 0; font-size: var(--type-meta); color: var(--ink-amber); }
.desktop-surface .lfl-life-why a { color: var(--ink-pink); font-family: var(--font-head); }
.desktop-surface .lfl-life-acts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.desktop-surface .lfl-confirm {
    display: grid;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--r-ctl);
    background: var(--rt-blue-slt, #eef4fd);
    animation: lfl-open var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-confirm-words { margin: 0; font-size: var(--type-meta); color: var(--text); }
.desktop-surface .lfl-confirm-type { display: grid; gap: 0.3rem; max-width: 18rem; margin: 0; }
.desktop-surface .lfl-life-msg { margin: 0; font-size: var(--type-meta); color: var(--ink-pink); }
.desktop-surface .lfl-life-msg a { font-family: var(--font-head); color: var(--ink-blue); }
.desktop-surface .lfl-save { flex: none; display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.desktop-surface .lfl-editor[data-dirty] [data-lfl-save] { box-shadow: 0 0 0 3px rgba(235, 93, 143, 0.25), 0 0.6rem 1.2rem -0.5rem rgba(235, 93, 143, 0.6); }

@keyframes lfl-open {
    from { opacity: 0; transform: translateY(-0.35rem); }
    to   { opacity: 1; transform: none; }
}


/* ─── 6. THE SECTIONS' PARTS ─────────────────────────────────────────────── */

/* Rich text (the phone's lightweight editor; its full-screen mode is not needed here) */
.desktop-surface .lfl-rte {
    border-radius: var(--r-ctl);
    background: #fff;
    box-shadow: var(--shadow-ctl);
    outline: 1px solid rgba(30, 40, 53, 0.1);
    overflow: hidden;
}
.desktop-surface .lfl-rte:focus-within { outline: 3px solid rgba(44, 117, 222, 0.35); }
.desktop-surface .lfl-rte-bar {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
    background: rgba(30, 40, 53, 0.04);
    border-bottom: 1px solid rgba(30, 40, 53, 0.08);
}
.desktop-surface .lfl-rte-btn {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.2rem;
    border: 0;
    border-radius: 0.5rem;
    background: none;
    color: var(--text-soft);
    cursor: pointer;
}
.desktop-surface .lfl-rte-btn:active { background: rgba(30, 40, 53, 0.1); }
.desktop-surface .lfl-rte-btn:focus-visible { outline: 2px solid var(--rt-blue); }
.desktop-surface .lfl-rte-sep { width: 1px; height: 1.4rem; margin: 0 0.3rem; background: rgba(30, 40, 53, 0.14); }
.desktop-surface .lfl-rte-body {
    min-height: clamp(12rem, 30cqb, 22rem);
    max-height: 32rem;
    overflow-y: auto;
    padding: 1rem 1.15rem;
    font-size: var(--type-body);
    line-height: 1.65;
    color: var(--text);
    outline: none;
}
.desktop-surface .lfl-rte-body.is-empty::before { content: attr(data-placeholder); color: var(--text-faint); pointer-events: none; display: block; }
.desktop-surface .lfl-rte-body p { margin: 0 0 0.5em; }
.desktop-surface .lfl-rte-body :is(ul, ol) { margin: 0 0 0.5em; padding-left: 1.5em; }
.desktop-surface .lfl-rte-body b { font-family: var(--font-head); font-weight: normal; }

@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lfl-rte-btn:hover { background: rgba(30, 40, 53, 0.07); color: var(--text); }
}

/* Switch sets (Basic Search Settings): a card per pair, side by side when there is room */
.desktop-surface .lfl-switchsets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.desktop-surface .lfl-switchset {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    margin: 0;
    padding: 0.85rem;
    border: 0;
    border-radius: var(--r-panel);
    background: rgba(30, 40, 53, 0.035);
}
.desktop-surface .lfl-switchset > legend { float: left; width: 100%; margin: 0 0 0.25rem; padding: 0; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-switchset--wide { grid-column: 1 / -1; }

/* Category: who it is for, then two columns (the groups, the categories in the open one) */
.desktop-surface .lfl-category { grid-template-columns: minmax(0, 1fr); }
.desktop-surface .lfl-audience { margin: 0; padding: 0; border: 0; display: grid; gap: 0.6rem; }
.desktop-surface .lfl-audience > legend { margin-bottom: 0.4rem; }
.desktop-surface .lfl-audience-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.6rem; }
.desktop-surface .lfl-audience-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.8rem 0.95rem;
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-ctl), inset 0 0 0 2px transparent;
    cursor: pointer;
    transition: box-shadow var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-audience-opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.desktop-surface .lfl-audience-opt:has(> input:checked) { box-shadow: var(--shadow-ctl), inset 0 0 0 2px var(--tone, var(--rt-blue)); background: #fff; }
.desktop-surface .lfl-audience-opt:has(> input:focus-visible) { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lfl-audience-icon { flex: none; font-size: 1.3rem; color: var(--tone, var(--rt-blue)); }
.desktop-surface .lfl-audience-text { display: grid; gap: 0.1rem; min-width: 0; }
.desktop-surface .lfl-audience-title { font-family: var(--font-head); font-size: var(--type-body); color: var(--tone-ink, var(--ink-blue)); }
.desktop-surface .lfl-audience-sub { font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-audience-warn { animation: lfl-open var(--dur-base) var(--ease-spring); }

.desktop-surface .lfl-cat { display: grid; gap: 0.8rem; min-width: 0; }
.desktop-surface .lfl-cat-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.desktop-surface .lfl-cat-current { margin: 0; font-size: var(--type-body); }
.desktop-surface .lfl-search--sm { min-width: 14rem; }
.desktop-surface .lfl-cat-cols { display: grid; grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.desktop-surface .lfl-cat-groups { display: grid; gap: 0.25rem; max-height: 30rem; overflow: auto; padding: 0.3rem; border-radius: var(--r-panel); background: rgba(30, 40, 53, 0.035); }
.desktop-surface .lfl-cat-group {
    display: grid;
    grid-template-columns: 1.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 0.7rem;
    background: none;
    color: var(--text);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    text-align: left;
    cursor: pointer;
}
.desktop-surface .lfl-cat-group > i { color: var(--ink-purple); }
.desktop-surface .lfl-cat-group[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow-ctl); color: var(--ink-purple); }
.desktop-surface .lfl-cat-group:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: -2px; }
.desktop-surface .lfl-cat-n { font-family: var(--font-text); color: var(--text-faint); }
.desktop-surface .lfl-cat-list { display: grid; gap: 0.8rem; min-width: 0; }
.desktop-surface .lfl-cat-set { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 0.45rem; }
.desktop-surface .lfl-cat-legend { grid-column: 1 / -1; float: left; width: 100%; margin: 0 0 0.3rem; font-family: var(--font-head); font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-cat-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 0.6rem 0.8rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-ctl);
    font-size: var(--type-meta);
    line-height: 1.3;
    cursor: pointer;
}
.desktop-surface .lfl-cat-item > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.desktop-surface .lfl-cat-item > i { opacity: 0; color: #fff; font-size: 0.85rem; }
.desktop-surface .lfl-cat-item:has(> input:checked) { background: var(--fill-purple); color: #fff; font-family: var(--font-head); }
.desktop-surface .lfl-cat-item:has(> input:checked) > i { opacity: 1; }
.desktop-surface .lfl-cat-item:has(> input:focus-visible) { outline: 3px solid var(--rt-blue); outline-offset: 2px; }

/* Made to order */
.desktop-surface .lfl-mto-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--space-md) var(--space-lg); animation: lfl-open var(--dur-base) var(--ease-spring); }
.desktop-surface .lfl-mto-deposit { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 0.75rem; }
.desktop-surface .lfl-or { padding-bottom: 0.8rem; font-family: var(--font-head); font-size: var(--type-meta); color: var(--text-faint); }

/* Open hours: the week side by side when the lane is wide */
.desktop-surface .lfl-hours { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: 0.7rem; }
.desktop-surface .lfl-hours-day {
    display: grid;
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: var(--r-panel);
    background: rgba(30, 40, 53, 0.035);
    transition: background var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-hours-day.is-open { background: rgba(145, 109, 246, 0.09); }
.desktop-surface .lfl-hours-day .lfl-switch { min-height: 3rem; }
.desktop-surface .lfl-hours-times { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* Fulfillment: each option a card; its settings open under it when it is on */
.desktop-surface .lfl-ff-opt { display: grid; gap: 0.7rem; padding: 0.6rem; border-radius: var(--r-panel); background: rgba(30, 40, 53, 0.035); }
.desktop-surface .lfl-ff-more {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.8rem 1.2rem;
    padding: 0.4rem 0.4rem 0.2rem;
    animation: lfl-open var(--dur-base) var(--ease-spring);
}


/* ─── 6b. THE SECOND WAVE OF SECTIONS ────────────────────────────────────── */
/* Availability, Place, Option Sets and Inventory, Add-ons, Photos, Package Components, Documents.
   Each section's rules sit between its own two markers below (one unit edits each block). */

/* The hazard (Listing-Edit.php [data-lfl-hazard]): a Save that changes more than this section asks
   in place first, naming what else changes; its button is the second press and the one primary
   while it is open (the foot's Save steps aside). */
.desktop-surface .lfl-hazard { margin: 0; animation: lfl-open var(--dur-base) var(--ease-spring); }
.desktop-surface .lfl-hazard p { margin: 0; }
.desktop-surface .lfl-hazard-list {
    display: grid;
    gap: 0.3rem;
    margin: 0.55rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.7);
    list-style: none;
    font-size: var(--type-body);
}
.desktop-surface .lfl-hazard-list li { line-height: 1.4; }
.desktop-surface .lfl-hazard-btns { margin-top: 0.65rem; }
.desktop-surface .lfl-editor[data-hazard] .lfl-save { display: none; }
/* A checklist row edited by the same section as the open one (Option Sets with Inventory) */
.desktop-surface .lfl-step.is-joined { box-shadow: inset 0.25rem 0 0 rgba(44, 117, 222, 0.35); }

/* §availability */
/* Availability (desktop/partials/listing-edit/availability.php): the schedule source, the week and
   the exception month. The form takes the section's width (the week and the month side by side is
   the point of this section on a big screen); its help sits beside only when all three fit, under
   it otherwise. Everything re-lays by the section's width (container lfl-sec), never the window. */
.desktop-surface .lfl-editor[data-section="availability"] .lfl-work { grid-template-columns: minmax(0, 1fr); }
@container lfl-sec (width >= 100rem) {
    .desktop-surface .lfl-editor[data-section="availability"] .lfl-work { grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); }
}
.desktop-surface .lfl-av { display: grid; gap: var(--space-md); min-width: 0; max-width: 104rem; }
.desktop-surface .lfl-av p { margin: 0; }

/* A card per question, in the phone's colours: amber for the calendar, purple for the week, teal
   for the exceptions */
.desktop-surface .lfl-av-card {
    display: grid;
    gap: var(--space-sm);
    align-content: start;
    min-width: 0;
    padding: var(--space-md);
    border-radius: var(--r-panel);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0.25rem 0 var(--tone, var(--rt-purple)), var(--shadow-ctl);
}
.desktop-surface .lfl-av-card-head { display: flex; align-items: center; gap: 0.75rem; }
.desktop-surface .lfl-av-card-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--tone-fill, var(--fill-purple));
    color: var(--tone-on, #fff);
    box-shadow: 0 0.3rem 0.7rem var(--tone-glow, transparent);
    font-size: 1.05rem;
}
.desktop-surface .lfl-av-card-title { margin: 0; font-family: var(--font-head); font-weight: normal; font-size: var(--type-section); line-height: 1.1; letter-spacing: -0.02em; color: var(--tone-ink, var(--text)); }
.desktop-surface .lfl-av-note { padding: 0.55rem 0.75rem; border-radius: var(--r-ctl); background: var(--rt-blue-slt, #eef4fd); font-size: var(--type-meta); line-height: 1.45; }

/* Which schedule */
.desktop-surface .lfl-av-using { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.desktop-surface .lfl-av-src-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    background: var(--fill-amber);
    color: #2b1f00;
    font-size: 1.2rem;
    box-shadow: 0 0.3rem 0.7rem var(--glow-amber, transparent);
}
.desktop-surface .lfl-av-using-text { flex: 1 1 auto; display: grid; gap: 0.15rem; min-width: 0; }
.desktop-surface .lfl-av-using-name { font-family: var(--font-head); font-size: calc(var(--type-body) * 1.12); line-height: 1.2; }
.desktop-surface .lfl-av-change { flex: none; }
.desktop-surface .lfl-av-change[aria-expanded="true"] i { transform: rotate(180deg); }
.desktop-surface .lfl-av-sibs { display: grid; gap: 0.5rem; padding: 0.7rem 0.85rem; border-radius: var(--r-ctl); background: #FFF6E4; }
.desktop-surface .lfl-av-sibs-words { font-size: var(--type-meta); line-height: 1.45; color: var(--text); }
.desktop-surface .lfl-av-sib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(11rem, 16cqi, 16rem)), 1fr)); gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.desktop-surface .lfl-av-sib {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.35rem 0.7rem;
    border-radius: var(--r-pill);
    background: #fff;
    box-shadow: var(--shadow-ctl);
    font-size: var(--type-meta);
}
.desktop-surface .lfl-av-sib.is-self { box-shadow: inset 0 0 0 2px var(--rt-amber-md, #f6b544); }
.desktop-surface .lfl-av-sib-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); }
.desktop-surface .lfl-av-sib-self { flex: none; color: var(--ink-amber); }
.desktop-surface .lfl-av-sib-dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--rt-amber-md, #f6b544); }
.desktop-surface .lfl-av-sib-dot--green { background: var(--rt-success, #3cc68a); }
.desktop-surface .lfl-av-sib-dot--amber { background: var(--rt-amber, #fdab29); }
.desktop-surface .lfl-av-sib-dot--slate { background: var(--text-faint); }
.desktop-surface .lfl-av-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.desktop-surface .lfl-av-chooser { display: grid; gap: 0.55rem; animation: lfl-open var(--dur-base) var(--ease-spring); }
.desktop-surface .lfl-av-chooser-note { color: var(--ink-amber); }
.desktop-surface .lfl-av-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.5rem; }
.desktop-surface .lfl-av-opt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: var(--r-ctl);
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(30, 40, 53, 0.1), var(--shadow-ctl);
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-av-opt > i { color: var(--ink-amber); font-size: 1.1rem; }
.desktop-surface .lfl-av-opt-text { display: grid; gap: 0.1rem; min-width: 0; }
.desktop-surface .lfl-av-opt-name { font-family: var(--font-head); font-size: var(--type-body); }
.desktop-surface .lfl-av-opt-mark { font-family: var(--font-head); font-size: var(--type-meta); color: var(--ink-green); white-space: nowrap; }
.desktop-surface .lfl-av-opt[aria-pressed="true"]:not(:disabled) { box-shadow: inset 0 0 0 2px var(--rt-amber-md, #f6b544), 0 0.4rem 1rem var(--glow-amber, transparent); }
.desktop-surface .lfl-av-opt:disabled { cursor: default; background: #FFF6E4; }
.desktop-surface .lfl-av-opt:not(:disabled):active { transform: scale(0.98); }
.desktop-surface .lfl-av-opt:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lfl-av-switch { display: grid; gap: 0.5rem; padding: 0.7rem 0.85rem; border-radius: var(--r-ctl); background: #FFF6E4; animation: lfl-open var(--dur-base) var(--ease-spring); }
.desktop-surface .lfl-av-switch-words { font-size: var(--type-body); line-height: 1.45; }
.desktop-surface .lfl-av-flex { max-width: 52rem; }

/* The week and the month: side by side when the section is wide */
.desktop-surface .lfl-av-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-items: start; }
@container lfl-sec (width >= 72rem) {
    .desktop-surface .lfl-av-body { grid-template-columns: minmax(0, 1fr) clamp(20rem, 30cqi, 30rem); }
}

/* The week: seven columns side by side when there is room, one row per day when not */
.desktop-surface .lfl-av-week { container: lfl-av-week / inline-size; }
.desktop-surface .lfl-av-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.45rem; }
.desktop-surface .lfl-av-day {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: start;
    gap: 0.4rem 0.75rem;
    min-width: 0;
    padding: 0.5rem;
    border-radius: var(--r-ctl);
    background: rgba(30, 40, 53, 0.035);
    transition: background var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-av-day.is-on { background: var(--rt-purple-slt, #f1ecfe); }
.desktop-surface .lfl-av-day-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    margin: 0;
    padding: 0.35rem 0.6rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(145, 109, 246, 0.25);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-av-day-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.desktop-surface .lfl-av-day-name { flex: 1 1 auto; font-family: var(--font-head); font-size: var(--type-body); color: var(--ink-purple); }
.desktop-surface .lfl-av-day-long { display: none; }
.desktop-surface .lfl-av-day-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(145, 109, 246, 0.45);
    color: transparent;
    font-size: 0.8rem;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-av-day.is-on .lfl-av-day-top { background: var(--fill-purple); box-shadow: 0 0.35rem 0.8rem var(--glow-purple, transparent); }
.desktop-surface .lfl-av-day.is-on .lfl-av-day-name { color: #fff; }
.desktop-surface .lfl-av-day.is-on .lfl-av-day-mark { background: #fff; color: var(--rt-purple, #916df6); box-shadow: none; transform: scale(1.06); }
.desktop-surface .lfl-av-day-top:has(input:focus-visible) { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lfl-av-day-top:active { transform: scale(0.97); }
.desktop-surface .lfl-av-day-off { align-self: center; font-size: var(--type-meta); color: var(--text-faint); }
.desktop-surface .lfl-av-day.is-on .lfl-av-day-off { display: none; }
.desktop-surface .lfl-av-day:not(.is-on) :is(.lfl-av-blocks, .lfl-av-segs) { display: none; }
/* Rigid hours or flexible times of day: the form shows the one the switch says */
.desktop-surface .lfl-av[data-mode="flexible"] .lfl-av-blocks,
.desktop-surface .lfl-av:not([data-mode="flexible"]) .lfl-av-segs { display: none !important; }

.desktop-surface .lfl-av-blocks { display: grid; gap: 0.4rem; min-width: 0; }
.desktop-surface .lfl-av-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 2.25rem; align-items: end; gap: 0.4rem; min-width: 0; }
.desktop-surface .lfl-av-block .lfl-av-rm { width: 2.25rem; padding: 0; }
.desktop-surface .lfl-av-rm-word { display: none; }
.desktop-surface .lfl-av-time { display: grid; gap: 0.15rem; min-width: 0; margin: 0; }
.desktop-surface .lfl-av-time .k-input { min-width: 0; min-height: 2.5rem; padding: 0.35rem 0.55rem; font-size: var(--type-meta); }
/* The time is typed or stepped with the arrow keys; the picker's clock glyph would push AM / PM out of a narrow column */
.desktop-surface .lfl-av-time .k-input::-webkit-calendar-picker-indicator { display: none; }
.desktop-surface :is(.lfl-av-rm, .lfl-av-add, .lfl-av-line-act, .lfl-av-mbtn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.65rem;
    border: 0;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-ctl);
    color: var(--ink-slate);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-spring), background var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-av-add { justify-self: start; color: var(--ink-green); }
.desktop-surface .lfl-av-rm { color: var(--ink-pink); }
.desktop-surface :is(.lfl-av-rm, .lfl-av-add, .lfl-av-line-act, .lfl-av-mbtn):active { transform: scale(0.95); }
.desktop-surface :is(.lfl-av-rm, .lfl-av-add, .lfl-av-line-act, .lfl-av-mbtn, .lfl-av-seg, .lfl-av-cell):focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lfl-av-segs { display: flex; flex-wrap: wrap; gap: 0.35rem; min-width: 0; }
.desktop-surface .lfl-av-seg {
    flex: 1 1 6.5rem;
    display: grid;
    gap: 0.05rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.6rem;
    border: 0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(253, 171, 41, 0.35);
    color: var(--text);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    text-align: left;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-av-seg small { font-family: var(--font-text); font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-av-seg[aria-pressed="true"] { background: var(--fill-amber); box-shadow: 0 0.3rem 0.7rem var(--glow-amber, transparent); color: #2b1f00; }
.desktop-surface .lfl-av-seg[aria-pressed="true"] small { color: #3a2a00; }
.desktop-surface .lfl-av-seg:active { transform: scale(0.96); }
.desktop-surface .lfl-av-qty { max-width: 22rem; }

/* Seven columns: the day on top, its hours under it (from 44rem: the width the section gets at a
   1440 window once the preview folds for it, routes.js stageWide; fixer W, item E1) */
@container lfl-av-week (width >= 44rem) {
    .desktop-surface .lfl-av-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
    .desktop-surface .lfl-av-day { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 9rem; }
    .desktop-surface .lfl-av-day-top { flex-direction: column; align-items: center; gap: 0.3rem; min-height: 4.25rem; padding: 0.5rem 0.3rem; }
    .desktop-surface .lfl-av-time .k-input { padding-inline: 0.4rem; text-align: center; }
    .desktop-surface .lfl-av-day-name { flex: none; }
    .desktop-surface .lfl-av-day-off { justify-self: center; padding-top: 1.25rem; }
    .desktop-surface .lfl-av-block { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; padding-bottom: 0.45rem; border-bottom: 1px dashed rgba(145, 109, 246, 0.25); }
    .desktop-surface .lfl-av-block:last-of-type { border-bottom: 0; }
    .desktop-surface .lfl-av-block .lfl-av-rm { justify-self: stretch; width: auto; padding: 0.25rem 0.65rem; }
    .desktop-surface .lfl-av-rm-word { display: inline; }
    .desktop-surface .lfl-av-add { justify-self: stretch; }
    .desktop-surface .lfl-av-segs { flex-direction: column; }
    .desktop-surface .lfl-av-seg { flex: none; }
}
/* A snug week (seven columns of about 6rem): the times keep their whole "08:00 AM" */
@container lfl-av-week (44rem <= width < 56rem) {
    .desktop-surface .lfl-av-days { gap: 0.4rem; }
    .desktop-surface .lfl-av-day { padding: 0.4rem 0.25rem; }
    .desktop-surface .lfl-av-time .k-input { padding-inline: 0.1rem; letter-spacing: -0.01em; }
}
/* A roomy week: the day's whole name */
@container lfl-av-week (width >= 64rem) {
    .desktop-surface .lfl-av-day-short { display: none; }
    .desktop-surface .lfl-av-day-long { display: inline; }
}
/* A narrow week: a day's two times stack under its name */
@container lfl-av-week (width < 24rem) {
    .desktop-surface .lfl-av-day { grid-template-columns: minmax(0, 1fr); }
    .desktop-surface .lfl-av-day-off { display: none; }
}

/* Exceptions: the month, then the chosen date */
.desktop-surface .lfl-av-ex { container: lfl-av-ex / inline-size; }
.desktop-surface .lfl-av-scope { justify-self: stretch; max-width: 30rem; }
.desktop-surface .lfl-av-scope .k-seg-btn { white-space: normal; text-align: center; }
.desktop-surface .lfl-av-month { display: grid; gap: 0.5rem; }
.desktop-surface .lfl-av-mnav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; }
.desktop-surface .lfl-av-mlabel { margin: 0; text-align: center; font-family: var(--font-head); font-weight: normal; font-size: calc(var(--type-body) * 1.1); color: var(--ink-teal); }
.desktop-surface .lfl-av-mbtn { width: 2.5rem; padding: 0; }
.desktop-surface .lfl-av-mbtn:disabled { opacity: 0.35; cursor: default; }
.desktop-surface .lfl-av-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.desktop-surface .lfl-av-mwd { padding-bottom: 0.15rem; text-align: center; font-family: var(--font-head); font-size: var(--type-meta); color: var(--text-faint); }
.desktop-surface .lfl-av-cell {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(2.4rem, 1.2rem + 6cqi, 3.25rem);
    padding: 0;
    border: 0;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(30, 40, 53, 0.08);
    color: var(--text);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-av-cell.is-blank { background: none; box-shadow: none; cursor: default; }
.desktop-surface .lfl-av-cell:disabled { background: none; box-shadow: none; color: var(--text-faint); opacity: 0.55; cursor: default; }
.desktop-surface .lfl-av-cell.is-today { box-shadow: inset 0 0 0 2px var(--rt-teal, #2bc4b6); }
.desktop-surface .lfl-av-cell.is-blocked { background: #FDE4EC; color: var(--ink-pink); }
.desktop-surface .lfl-av-cell.is-open { background: var(--rt-success-slt, #e7f8ee); color: var(--ink-green); }
.desktop-surface .lfl-av-cell.is-inherited { opacity: 0.7; }
.desktop-surface .lfl-av-cell.is-rate::after { content: ''; position: absolute; top: 0.3rem; right: 0.3rem; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--rt-amber, #fdab29); }
.desktop-surface .lfl-av-cell.is-staged::before { content: ''; position: absolute; bottom: 0.25rem; left: 50%; width: 1rem; height: 0.2rem; margin-left: -0.5rem; border-radius: 1rem; background: var(--rt-pink, #eb5d8f); }
.desktop-surface .lfl-av-cell[aria-pressed="true"] { background: var(--fill-teal); color: #fff; box-shadow: 0 0.3rem 0.7rem var(--glow-teal, transparent); }
.desktop-surface .lfl-av-cell.is-range { box-shadow: inset 0 0 0 3px var(--rt-teal, #2bc4b6); }
.desktop-surface .lfl-av-cell:not(:disabled):not(.is-blank):active { transform: scale(0.92); }
.desktop-surface .lfl-av-mtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; }
.desktop-surface .lfl-av-rstatus { flex: 1 1 auto; }
.desktop-surface .lfl-av-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-av-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.desktop-surface .lfl-av-key { width: 0.85rem; height: 0.85rem; border-radius: 0.25rem; }
.desktop-surface .lfl-av-key.is-blocked { background: #FDE4EC; box-shadow: inset 0 0 0 1px var(--ink-pink); }
.desktop-surface .lfl-av-key.is-open { background: var(--rt-success-slt, #e7f8ee); box-shadow: inset 0 0 0 1px var(--ink-green); }
.desktop-surface .lfl-av-key.is-staged { height: 0.25rem; background: var(--rt-pink, #eb5d8f); }

.desktop-surface .lfl-av-detail { display: grid; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid rgba(30, 40, 53, 0.08); }
.desktop-surface .lfl-av-ddate { margin: 0; font-family: var(--font-head); font-weight: normal; font-size: var(--type-body); }
.desktop-surface .lfl-av-lines { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.desktop-surface .lfl-av-line {
    display: grid;
    grid-template-columns: minmax(min(100%, 9.5rem), 1fr) auto;
    align-items: center;
    gap: 0.15rem 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: inset 0.25rem 0 0 var(--_bar, rgba(145, 109, 246, 0.6));
    font-size: var(--type-meta);
}
.desktop-surface .lfl-av-line-time { grid-column: 1; font-family: var(--font-head); font-size: var(--type-body); white-space: nowrap; }
.desktop-surface .lfl-av-line-label { grid-column: 1; color: var(--text-soft); }
.desktop-surface .lfl-av-line-note, .desktop-surface .lfl-av-tag { grid-column: 1 / -1; }
.desktop-surface .lfl-av-line > .lfl-av-line-act, .desktop-surface .lfl-av-line-acts { grid-column: 2; grid-row: 1 / span 2; }
.desktop-surface .lfl-av-line-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3rem; }
.desktop-surface .lfl-av-line-act.is-quiet { color: var(--ink-pink); }
.desktop-surface .lfl-av-line.is-blocked { --_bar: var(--rt-pink, #eb5d8f); }
.desktop-surface .lfl-av-line.is-open { --_bar: var(--rt-success, #3cc68a); }
.desktop-surface .lfl-av-line.is-inherited { opacity: 0.8; background: rgba(255, 255, 255, 0.6); }
.desktop-surface .lfl-av-line.is-removed :is(.lfl-av-line-time, .lfl-av-line-label) { text-decoration: line-through; color: var(--text-faint); }
.desktop-surface .lfl-av-line.is-closed { grid-template-columns: 1fr; color: var(--text-faint); box-shadow: none; background: rgba(30, 40, 53, 0.04); }
.desktop-surface .lfl-av-rate { color: var(--ink-amber); }
.desktop-surface .lfl-av-tag { justify-self: start; padding: 0.05rem 0.5rem; border-radius: var(--r-pill); background: #FDE4EC; color: var(--ink-pink); font-family: var(--font-head); font-size: var(--type-meta); }
.desktop-surface .lfl-av-exadd { justify-self: start; }
.desktop-surface .lfl-av-staged { color: var(--ink-pink); }
.desktop-surface .lfl-av-exform {
    display: grid;
    gap: 0.6rem;
    padding: 0.85rem;
    border-radius: var(--r-ctl);
    background: var(--rt-teal-slt, #e3f8f5);
    animation: lfl-open var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-av-exform-title { font-family: var(--font-head); font-size: var(--type-body); color: var(--ink-teal); }
.desktop-surface .lfl-av-exmodes { flex-wrap: wrap; border-radius: 1rem; }
.desktop-surface .lfl-av-exmodes .k-seg-btn { flex: 1 1 8rem; white-space: normal; text-align: center; }
.desktop-surface .lfl-av-extimes, .desktop-surface .lfl-av-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 0.5rem; }
.desktop-surface .lfl-av-extimes .k-field, .desktop-surface .lfl-av-extras .k-field { margin: 0; gap: 0.2rem; }
.desktop-surface .lfl-av-exerr { color: var(--ink-pink); font-size: var(--type-meta); }
.desktop-surface .lfl-av-exform { max-width: 42rem; }
/* A wide exception card (under the week): the month on the left, the chosen date beside it */
.desktop-surface .lfl-av-exbody { display: grid; gap: var(--space-sm); min-width: 0; }
/* A slim exception card (beside the week): a line's buttons go under its words */
@container lfl-av-ex (width < 27rem) {
    .desktop-surface .lfl-av-line { grid-template-columns: minmax(0, 1fr); }
    .desktop-surface :is(.lfl-av-line > .lfl-av-line-act, .lfl-av-line-acts) { grid-column: 1; grid-row: auto; justify-self: start; justify-content: flex-start; }
}
@container lfl-av-ex (width >= 46rem) {
    .desktop-surface .lfl-av-exbody { grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
    .desktop-surface .lfl-av-detail { padding: 0 0 0 var(--space-lg); border-top: 0; border-left: 1px solid rgba(30, 40, 53, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-surface :is(.lfl-av-chooser, .lfl-av-switch, .lfl-av-exform) { animation: none; }
    .desktop-surface :is(.lfl-av-day, .lfl-av-day-top, .lfl-av-day-mark, .lfl-av-seg, .lfl-av-cell, .lfl-av-opt, .lfl-av-rm, .lfl-av-add, .lfl-av-line-act, .lfl-av-mbtn) { transition: none; }
}
/* §availability:end */

/* §place */
/* Place / Location (desktop/partials/listing-edit/place.php): your places and the four doors as
   radio cards (the audience cards' look), then the address BESIDE the map once the form is wide
   enough (its own container query), the range slider under the map. */
.desktop-surface .lfl-pl { grid-template-columns: minmax(0, 1fr); container: lfl-pl / inline-size; }
.desktop-surface .lfl-pl-set { margin: 0; padding: 0; border: 0; display: grid; gap: 0.55rem; min-width: 0; }
.desktop-surface .lfl-pl-set > legend { margin-bottom: 0.2rem; }
.desktop-surface .lfl-pl-set > .k-hint { margin: -0.2rem 0 0.1rem; }
.desktop-surface :is(.lfl-pl-cards, .lfl-pl-doors) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 0.6rem; }
/* The four doors: one column, then two by two, then all four in a row (never three and an orphan) */
.desktop-surface .lfl-pl-doors { grid-template-columns: minmax(0, 1fr); }
@container lfl-pl (width >= 27rem) { .desktop-surface .lfl-pl-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container lfl-pl (width >= 62rem) { .desktop-surface .lfl-pl-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.desktop-surface .lfl-pl-door { align-items: flex-start; padding-block: 0.85rem; }
.desktop-surface .lfl-pl-door .lfl-audience-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    background: var(--tone, var(--rt-blue));
    color: #fff;
    font-size: 1.1rem;
}
.desktop-surface .lfl-pl-door .lfl-audience-sub { line-height: 1.35; }
.desktop-surface .lfl-pl-card .lfl-audience-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.desktop-surface .lfl-pl-card[hidden] { display: none; }
/* Your places: which one this listing uses, the list opening under it */
.desktop-surface .lfl-pl-mine-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-ctl);
}
.desktop-surface .lfl-pl-mine-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    background: var(--tone, var(--rt-blue));
    color: #fff;
}
.desktop-surface .lfl-pl-mine-now { flex: 1 1 12rem; min-width: 0; margin: 0; font-size: var(--type-body); color: var(--text); }
.desktop-surface .lfl-pl-mine-now .k-strong { color: var(--ink-blue); }
/* The place's town and state under its one name (fixer W, E4) */
.desktop-surface .lfl-pl-mine-town { display: block; margin-top: 0.15rem; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfl-pl-mine-list { display: grid; gap: 0.55rem; animation: lfl-open var(--dur-base) var(--ease-spring); }
.desktop-surface .lfl-pl-mine-list[hidden] { display: none; }
.desktop-surface .lfl-pl-mine-list > .k-hint { margin: 0; }
.desktop-surface .lfl-pl-mine .lfl-pl-cards { max-height: 24rem; overflow: auto; overscroll-behavior: contain; padding: 0.2rem; scrollbar-width: thin; }
.desktop-surface .lfl-pl-filter { max-width: 24rem; }
/* The doors' small caps line is the kit's eyebrow (.k-eyebrow: spaced Soehne caps, never the mono
   face; fixer W, E4); this only places it */
.desktop-surface .lfl-pl-eyebrow { display: block; margin: 0; }
.desktop-surface .lfl-pl-bound, .desktop-surface .lfl-pl-claim { margin: 0; }
.desktop-surface .lfl-pl-claim p { margin: 0; }
.desktop-surface .lfl-pl-claim .k-meta { margin-top: 0.2rem; }
.desktop-surface .lfl-pl-q { margin: 0; font-family: var(--font-head); font-size: var(--type-body); color: var(--ink-blue); }

.desktop-surface .lfl-pl-where {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: start;
    padding: var(--space-md);
    border-radius: var(--r-panel);
    background: rgba(44, 117, 222, 0.05);
    outline: 1px solid rgba(44, 117, 222, 0.1);
    animation: lfl-open var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-pl-where[hidden] { display: none; }
.desktop-surface .lfl-pl-address, .desktop-surface .lfl-pl-mapcol { display: grid; gap: var(--space-sm); min-width: 0; align-content: start; }
.desktop-surface .lfl-pl-address [hidden], .desktop-surface .lfl-pl-mapcol [hidden] { display: none; }
.desktop-surface .lfl-pl-dym { margin: 0; }
.desktop-surface .lfl-pl-dym p { margin: 0; }
.desktop-surface .lfl-pl-dym .k-btns { margin-top: 0.5rem; }
.desktop-surface .lfl-pl-privacy { grid-column: 1 / -1; }   /* under the address and the map, across both */
.desktop-surface .lfl-pl-maphead { display: grid; gap: 0.15rem; }

/* The map: the listing's pin on a soft tile until Google draws it */
.desktop-surface .lfl-pl-map {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 15rem;
    max-height: 30rem;
    overflow: hidden;
    border-radius: var(--r-ctl);
    background:
        radial-gradient(circle at 30% 30%, rgba(44, 117, 222, 0.14), transparent 55%),
        linear-gradient(135deg, #e8f0fb, #f4f1fb);
    box-shadow: var(--shadow-ctl), inset 0 0 0 1px rgba(30, 40, 53, 0.08);
}
.desktop-surface .lfl-pl-map-empty {
    position: absolute;
    inset: auto 1rem 1rem;
    margin: 0;
    padding: 0.5rem 0.8rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-soft);
    font-size: var(--type-meta);
    text-align: center;
}
.desktop-surface .lfl-pl-map-empty[hidden] { display: none; }
.desktop-surface .lfl-pl-pin {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--rt-pink);
    box-shadow: 0 0 0 3px #fff, 0 0 0 0.9rem color-mix(in srgb, var(--rt-pink) 28%, transparent);
    transform: translateY(50%);
    cursor: grab;
}

/* The range: the shared step slider (assets/js/v2/rt-step-slider.js) drawn in the kit's range look */
.desktop-surface .lfl-pl-radius { gap: 0.35rem; }
.desktop-surface .lfl-pl .rt-ss {
    --rt-ss-pct: 0%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    min-height: 2.5rem;
}
.desktop-surface .lfl-pl .rt-ss-track { flex: 1 1 auto; min-width: 0; }
.desktop-surface .lfl-pl .rt-ss-range {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 1.75rem;
    margin: 0;
    background: none;
    cursor: pointer;
}
.desktop-surface .lfl-pl .rt-ss-range::-webkit-slider-runnable-track {
    height: 0.5rem;
    border-radius: 1rem;
    background: linear-gradient(to right, var(--rt-blue-lt), var(--rt-blue)) 0 0 / var(--rt-ss-pct) 100% no-repeat, #D5DAE1;
}
.desktop-surface .lfl-pl .rt-ss.is-zero .rt-ss-range::-webkit-slider-runnable-track { background: #D5DAE1; }
.desktop-surface .lfl-pl .rt-ss-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: -0.55rem;
    border: 2px solid var(--rt-blue);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(21, 56, 105, 0.3);
}
.desktop-surface .lfl-pl .rt-ss-range::-moz-range-track { height: 0.5rem; border-radius: 1rem; background: #D5DAE1; }
.desktop-surface .lfl-pl .rt-ss-range::-moz-range-progress { height: 0.5rem; border-radius: 1rem; background: linear-gradient(to right, var(--rt-blue-lt), var(--rt-blue)); }
.desktop-surface .lfl-pl .rt-ss-range::-moz-range-thumb { width: 1.4rem; height: 1.4rem; border: 2px solid var(--rt-blue); border-radius: 50%; background: #fff; }
.desktop-surface .lfl-pl .rt-ss-range:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 4px; border-radius: 1rem; }
.desktop-surface .lfl-pl .rt-ss-readout { flex: none; min-width: 6.5rem; text-align: right; }
.desktop-surface .lfl-pl .rt-ss-value {
    -webkit-appearance: none;
    appearance: none;
    padding: 0.1rem 0;
    border: 0;
    border-bottom: 1.5px dashed rgba(30, 40, 53, 0.3);
    background: none;
    font-family: var(--font-head);
    font-size: var(--type-body);
    color: var(--ink-blue);
    white-space: nowrap;
    cursor: text;
}
.desktop-surface .lfl-pl .rt-ss-value:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; border-radius: 0.3rem; }
.desktop-surface .lfl-pl .rt-ss-pen { margin-left: 0.4em; font-size: 0.75em; color: var(--text-faint); }
.desktop-surface .lfl-pl .rt-ss-edit {
    width: 6.5rem;
    padding: 0.2rem 0.4rem;
    border: 2px solid var(--rt-blue);
    border-radius: 0.5rem;
    font-family: var(--font-head);
    font-size: var(--type-body);
    text-align: right;
    outline: none;
}
.desktop-surface .lfl-pl .rt-ss-edit[hidden], .desktop-surface .lfl-pl .rt-ss-value[hidden] { display: none; }

/* The address beside the map once the form has the room for both */
@container lfl-pl (width >= 42rem) {
    .desktop-surface .lfl-pl-where { grid-template-columns: minmax(17rem, 1.1fr) minmax(16rem, 1fr); }
}

/* Google's suggestion list (anchored under its field, appended to the body): the kit's look */
.desktop-surface .pac-container {
    margin-top: 0.3rem;
    border: 0;
    border-radius: var(--r-ctl);
    box-shadow: 0 0.75rem 2rem -0.5rem rgba(21, 56, 105, 0.35);
    font-family: var(--font-text);
}
.desktop-surface .pac-item { padding: 0.45rem 0.8rem; font-size: var(--type-meta); line-height: 1.5; cursor: pointer; }
.desktop-surface .pac-item-query { font-family: var(--font-head); font-size: var(--type-meta); }
@media (prefers-reduced-motion: reduce) {
    .desktop-surface :is(.lfl-pl-where, .lfl-pl-mine-list) { animation: none; }
}
/* §place:end */

/* §options */
/* Option Sets and Inventory, ONE section (desktop/partials/listing-edit/options.php): the price on a
   shelf; the option sets BESIDE the variant table when the section is wide, stacked when it is not
   (a container query on the section's own width). The table may use the width it needs, so on a wide
   section the help column beside it narrows instead of the table. */
@container lfl-sec (width >= 58rem) {
    .desktop-surface .lfl-editor:is([data-section="options"], [data-section="inventory"]) .lfl-work { grid-template-columns: minmax(0, 1fr) minmax(14rem, 21rem); }
}
.desktop-surface .lfl-opt { display: grid; gap: var(--space-lg); min-width: 0; max-width: 84rem; container: lfl-opt / inline-size; }

/* The price, and who pays the fee */
.desktop-surface .lfl-opt-price {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--space-md) var(--space-lg);
    align-items: start;
    padding: var(--space-md);
    border-radius: var(--r-panel);
    background: var(--rt-blue-slt, #eef4fd);
}
.desktop-surface .lfl-opt-price .k-field { margin: 0; }
.desktop-surface .lfl-opt-money { display: flex; align-items: center; gap: 0.45rem; max-width: 14rem; }
.desktop-surface .lfl-opt-sym { font-family: var(--font-head); font-size: var(--type-section); color: var(--ink-blue); }
.desktop-surface .lfl-opt-money .k-input { font-family: var(--font-head); font-size: var(--type-lead, var(--type-body)); }
.desktop-surface .lfl-opt-fee .k-seg { max-width: 26rem; }

/* The two halves */
.desktop-surface .lfl-opt-work { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-items: start; min-width: 0; }
/* Side by side from 44rem: the width the section gets at a 1440 window once the preview folds for
   it (routes.js stageWide; fixer W, item E1) */
@container lfl-opt (width >= 44rem) {
    .desktop-surface .lfl-opt-work { grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr); }
}
.desktop-surface :is(.lfl-opt-sets, .lfl-opt-vars) { display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.desktop-surface .lfl-opt-head { display: grid; gap: 0.2rem; }
.desktop-surface .lfl-opt-head .k-meta { margin: 0; }
.desktop-surface .lfl-opt-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
    margin: 0;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-lead, 1.2rem);
    line-height: 1.2;
    color: var(--text);
}
.desktop-surface .lfl-opt-count { font-family: var(--font-text); font-size: var(--type-meta); color: var(--text-soft); }

/* An option set: its name, One choice or Any number, its values each with what it adds */
.desktop-surface .lfl-opt-setlist { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.desktop-surface .lfl-opt-set {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem 0.9rem;
    border-radius: var(--r-panel);
    background: #fff;
    outline: var(--glass-outline);
    box-shadow: inset 0.3rem 0 0 var(--rt-purple, #8b5cf6), var(--shadow-cont-sm-lt);
    animation: lfl-open var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-opt-set-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }
.desktop-surface .lfl-opt-setname { font-family: var(--font-head); }
.desktop-surface .lfl-opt-type { justify-self: start; max-width: 100%; }
.desktop-surface .lfl-opt-values { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.desktop-surface .lfl-opt-value { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 7rem) 2.25rem; gap: 0.4rem; align-items: center; }
.desktop-surface :is(.lfl-opt-value, .lfl-opt-var) .k-input { min-height: 2.6rem; padding: 0.4em 0.75em; }
.desktop-surface .lfl-opt-add { display: flex; align-items: center; gap: 0.3rem; min-width: 0; color: var(--text-soft); font-family: var(--font-head); font-size: var(--type-meta); }
.desktop-surface .lfl-opt-add .k-input { padding-inline: 0.55em; }
.desktop-surface .lfl-opt-x--sm {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text-soft);
    font-size: var(--type-body);
    cursor: pointer;
}
.desktop-surface .lfl-opt-x--sm:active { background: rgba(30, 40, 53, 0.08); }
.desktop-surface .lfl-opt-x--sm:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 1px; }
.desktop-surface .lfl-opt-more { justify-self: start; }
.desktop-surface .lfl-opt-newset { display: grid; gap: 0.55rem; justify-items: start; }
.desktop-surface .lfl-opt-suggest { margin: 0; }

/* The variants: down; price, stock and photo across */
.desktop-surface .lfl-opt-vars {
    padding: var(--space-md);
    border-radius: var(--r-panel);
    background: #fff;
    outline: var(--glass-outline);
    box-shadow: var(--shadow-cont-sm-lt);
}
.desktop-surface .lfl-opt-mass {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-ctl);
    background: var(--rt-blue-slt, #eef4fd);
    font-size: var(--type-meta);
}
.desktop-surface .lfl-opt-mass-label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; color: var(--text); }
.desktop-surface .lfl-opt-mass .lfl-opt-stock { width: 5.5rem; min-height: 2.4rem; padding: 0.3em 0.6em; }
.desktop-surface .lfl-opt-tablewrap { min-width: 0; }
.desktop-surface .lfl-opt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--type-body); }
.desktop-surface .lfl-opt-table thead th {
    padding: 0.3rem 0.5rem 0.45rem;
    border-bottom: 1px solid var(--glass-rule, rgba(30, 40, 53, 0.14));
    color: var(--text-soft);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    text-align: left;
    white-space: nowrap;
}
.desktop-surface .lfl-opt-var > * { padding: 0.45rem 0.5rem; border-bottom: 1px solid rgba(30, 40, 53, 0.07); vertical-align: middle; }
.desktop-surface .lfl-opt-var-name { font-family: var(--font-text); font-weight: normal; text-align: left; line-height: 1.5; }
.desktop-surface .lfl-opt-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    margin: 0.1rem 0.3rem 0.1rem 0;
    padding: 0.15rem 0.6rem;
    border-radius: var(--r-pill);
    background: var(--rt-purple-slt, #f1ecfe);
    color: var(--text);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.35;
}
.desktop-surface .lfl-opt-chip small { color: var(--ink-purple); font-family: var(--font-text); font-size: var(--type-meta); }
.desktop-surface .lfl-opt-state {
    display: inline-block;
    margin: 0.1rem 0;
    padding: 0.1rem 0.55rem;
    border-radius: var(--r-pill);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.35;
    white-space: nowrap;
}
.desktop-surface .lfl-opt-var.is-new .lfl-opt-state { background: var(--rt-success-slt, #e6f6ea); color: var(--ink-green); }
.desktop-surface .lfl-opt-var.is-back .lfl-opt-state { background: var(--rt-blue-slt, #eef4fd); color: var(--ink-blue); }
.desktop-surface .lfl-opt-var.is-removed { background: rgba(235, 93, 143, 0.07); }
.desktop-surface .lfl-opt-var.is-removed .lfl-opt-chip { text-decoration: line-through; opacity: 0.7; }
.desktop-surface .lfl-opt-var.is-removed .lfl-opt-state { background: var(--rt-pink-slt, #fde8f0); color: var(--ink-pink); }
.desktop-surface .lfl-opt-var.is-removed .lfl-opt-var-stock { color: var(--ink-pink); font-family: var(--font-head); font-size: var(--type-meta); }
.desktop-surface .lfl-opt-var-price { font-family: var(--font-head); white-space: nowrap; }
.desktop-surface .lfl-opt-var-price small { display: block; color: var(--text-soft); font-family: var(--font-text); font-size: var(--type-meta); }
.desktop-surface .lfl-opt-var-stock { width: 6.5rem; }
.desktop-surface .lfl-opt-stock { font-family: var(--font-head); text-align: right; }
.desktop-surface .lfl-opt-later { color: var(--text-soft); font-size: var(--type-meta); line-height: 1.3; }
.desktop-surface .lfl-opt-var-photo { width: 3.4rem; }
.desktop-surface .lfl-opt-thumb {
    display: block;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: 0.65rem;
    background: var(--rt-blue-slt, #eef4fd) center / cover no-repeat;
    box-shadow: 0 0 0 1px rgba(30, 40, 53, 0.12);
    cursor: pointer;
}
.desktop-surface .lfl-opt-thumb.is-cover { filter: saturate(0.4); opacity: 0.6; }
.desktop-surface .lfl-opt-thumb[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--rt-blue); filter: none; opacity: 1; }
.desktop-surface .lfl-opt-thumb:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
/* The photo strip under a row: an inline expansion that pushes the rows below it down */
.desktop-surface .lfl-opt-strip > td { padding: 0.55rem 0.5rem 0.7rem; background: var(--rt-blue-slt, #eef4fd); border-bottom: 1px solid rgba(30, 40, 53, 0.07); }
.desktop-surface .lfl-opt-photos { display: flex; flex-wrap: wrap; gap: 0.5rem; animation: lfl-open var(--dur-base) var(--ease-spring); }
.desktop-surface .lfl-opt-photo {
    width: 4.5rem;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: #fff center / cover no-repeat;
    box-shadow: 0 0 0 1px rgba(30, 40, 53, 0.12);
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-opt-photo[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--rt-blue); }
.desktop-surface .lfl-opt-photo:active { transform: scale(0.96); }
.desktop-surface .lfl-opt-photo:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lfl-opt-moreinfo { margin: 0; }
.desktop-surface .lfl-opt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A narrow section: the value rows and the table keep their columns, smaller */
@container lfl-opt (width < 30rem) {
    .desktop-surface .lfl-opt-value { grid-template-columns: minmax(0, 1fr) 5.5rem 2.25rem; }
    .desktop-surface .lfl-opt-var-price small { display: none; }
    .desktop-surface .lfl-opt-var > * { padding-inline: 0.3rem; }
    .desktop-surface .lfl-opt-var-stock { width: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .desktop-surface :is(.lfl-opt-set, .lfl-opt-photos) { animation: none; }
    .desktop-surface .lfl-opt-photo { transition: none; }
}
/* §options:end */

/* §addons */
/* Booking Add-ons: one card per add-on (name, how it is charged, price, then its details), the
   empty card at the end starts the next one (the phone's trailing row). The copy-from expander sits
   under them. The row re-lays as the section narrows (container lfl-sec). */
.desktop-surface .lfl-ao { display: grid; gap: var(--space-md); min-width: 0; container: lfl-ao / inline-size; }
.desktop-surface .lfl-ao-unset { margin: 0; }
.desktop-surface .lfl-ao-head { display: grid; gap: 0.2rem; }
.desktop-surface .lfl-ao-head > p { margin: 0; }
.desktop-surface .lfl-ao-rows { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.desktop-surface .lfl-ao-row {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-ctl);
    animation: lfl-open var(--dur-base) var(--ease-spring);
}
/* The rate is a native select, whose chosen words cannot wrap ("per extra guest per hour (beyond
   those included)"): it always gets a whole row or at least 21rem, never a clipped sliver (fixer W,
   E5). By the add-ons' own width (container lfl-ao; the help may sit beside them): narrow, name,
   then rate, then price with the bin; medium, name, then rate beside price; wide, one line. */
.desktop-surface .lfl-ao-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--space-sm) var(--space-md);
}
.desktop-surface .lfl-ao-main > :is(.lfl-ao-name, .lfl-ao-rate) { grid-column: 1 / -1; }
@container lfl-ao (width >= 34rem) {
    .desktop-surface .lfl-ao-main { grid-template-columns: minmax(0, 1fr) minmax(6rem, 9rem) auto; }
    .desktop-surface .lfl-ao-main > .lfl-ao-rate { grid-column: auto; }
}
@container lfl-ao (width >= 52rem) {
    .desktop-surface .lfl-ao-main { grid-template-columns: minmax(14rem, 1.3fr) minmax(21rem, 1.4fr) minmax(7rem, 0.6fr) auto; }
    .desktop-surface .lfl-ao-main > :is(.lfl-ao-name, .lfl-ao-rate) { grid-column: auto; }
}
.desktop-surface .lfl-ao-main .k-field, .desktop-surface .lfl-ao-more .k-field { margin: 0; min-width: 0; }
.desktop-surface .lfl-ao-del { align-self: end; margin-bottom: 0.2rem; color: var(--ink-pink); }
.desktop-surface .lfl-ao-more {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--space-sm) var(--space-md);
    align-items: end;
}
.desktop-surface .lfl-ao-qty { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.desktop-surface .lfl-ao-inc { display: grid; gap: 0.3rem; }
.desktop-surface .lfl-ao-desc { grid-column: 1 / -1; }
/* The empty card at the end: just the name, on a quiet dashed card, until a name is typed */
.desktop-surface .lfl-ao-row.is-new {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 2px rgba(44, 117, 222, 0.22);
    outline: 2px dashed transparent;
}
.desktop-surface .lfl-ao-row.is-new :is(.lfl-ao-rate, .lfl-ao-price, .lfl-ao-more, .lfl-ao-del) { display: none; }
.desktop-surface .lfl-ao-row.is-new .lfl-ao-main { grid-template-columns: minmax(0, 1fr); }
/* Copy from another listing: an expander under the rows, its listings as choices */
.desktop-surface .lfl-ao-import { border-radius: var(--r-ctl); background: var(--rt-blue-slt, #eef4fd); }
.desktop-surface .lfl-ao-import > .k-disclosure-sum { justify-content: flex-start; gap: 0.5rem; color: var(--ink-blue); }
.desktop-surface .lfl-ao-import .k-disclosure-chev { margin-left: auto; }
.desktop-surface .lfl-ao-import .k-disclosure-body { display: grid; gap: var(--space-sm); }
.desktop-surface .lfl-ao-import .k-disclosure-body > p { margin: 0; }
.desktop-surface .lfl-ao-sources { display: grid; gap: var(--space-xs, 0.4rem); max-height: 22rem; overflow: auto; }
/* §addons:end */

/* §photos */
/* Photos (desktop/partials/listing-edit/photos.php, desktop/assets/js/listing-section-photos.js):
   a wall that uses the section's width (the help narrows beside it), the cover two by two as on the
   phone, every action visible on the photo (no hover-only), files dropped on the section outline it. */
@container lfl-sec (width >= 58rem) {
    .desktop-surface .lfl-editor[data-section="photos"] .lfl-work { grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem); }
}
.desktop-surface .lfl-ph { display: grid; gap: var(--space-md); min-width: 0; }

/* The way in: the one primary, and the words for drop and paste */
.desktop-surface .lfl-ph-add {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-md);
    border-radius: var(--r-panel);
    background: linear-gradient(135deg, var(--rt-pink-slt), #fff 70%);
    box-shadow: inset 0 0 0 2px rgba(235, 93, 143, 0.18);
    transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-ph-add-art {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: var(--rt-pink);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 0.5rem 1rem -0.4rem rgba(235, 93, 143, 0.7);
}
.desktop-surface .lfl-ph-add-text { display: grid; gap: 0.15rem; min-width: 0; }
.desktop-surface .lfl-ph-add-text p { margin: 0; }
.desktop-surface .lfl-ph-add-title { font-family: var(--font-head); font-size: var(--type-body); line-height: 1.3; color: var(--text); }
.desktop-surface .lfl-ph-add-btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
@container lfl-sec (width < 34rem) {
    .desktop-surface .lfl-ph-add { grid-template-columns: auto minmax(0, 1fr); }
    .desktop-surface .lfl-ph-add-btn { grid-column: 1 / -1; justify-self: start; }
}
/* Files over the section: an outline, never a cover; the way in says so */
.desktop-surface .lfl-sec.is-dropping { outline: 3px dashed var(--rt-pink); outline-offset: -0.5rem; }
.desktop-surface .lfl-sec.is-dropping .lfl-ph-add { background: var(--rt-pink-slt); box-shadow: inset 0 0 0 2px var(--rt-pink); }

/* The upload queue: one row a file */
.desktop-surface .lfl-ph-queue { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.desktop-surface .lfl-ph-qrow {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    border-radius: var(--r-ctl);
    background: #fff;
    box-shadow: var(--shadow-cont-sm-lt);
    animation: lfl-open var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-ph-qthumb { display: grid; place-items: center; width: 2.75rem; aspect-ratio: 1; border-radius: 0.6rem; background: var(--rt-paper) center / cover no-repeat; color: var(--text-faint); }
.desktop-surface .lfl-ph-qmain { display: grid; gap: 0.3rem; min-width: 0; }
.desktop-surface .lfl-ph-qname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--type-meta); color: var(--text); }
.desktop-surface .lfl-ph-qwhy { font-size: var(--type-meta); color: var(--ink-pink); }
.desktop-surface .lfl-ph-qtrack { height: 0.35rem; border-radius: var(--r-pill); background: var(--rt-blue-slt); overflow: hidden; }
.desktop-surface .lfl-ph-qbar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rt-pink), var(--rt-purple)); transition: width var(--dur-fast) linear; }
.desktop-surface .lfl-ph-qrow.is-done .lfl-ph-qbar { background: var(--rt-success); }
.desktop-surface .lfl-ph-qrow.is-failed .lfl-ph-qbar { background: var(--rt-pink-lt); }
.desktop-surface .lfl-ph-qmark { color: var(--rt-pink); font-size: 1.05rem; }
.desktop-surface .lfl-ph-qrow.is-done .lfl-ph-qmark { color: var(--ink-green); }

/* The count and the keys */
.desktop-surface .lfl-ph-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem var(--space-md); }
.desktop-surface .lfl-ph-bar p { margin: 0; }
.desktop-surface .lfl-ph-count { font-size: var(--type-body); }
.desktop-surface .lfl-ph-keys { max-width: 40rem; }
/* The keyboard's words show only while the wall has keyboard focus (fixer W) */
.desktop-surface .lfl-ph-keys-kbd { display: none; }
.desktop-surface .lfl-ph:has([data-lfl-ph-wall]:focus-visible, [data-lfl-ph-wall] :focus-visible) .lfl-ph-keys-kbd { display: inline; }

/* The wall */
.desktop-surface .lfl-ph-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(8.5rem, 5.5rem + 12cqi, 19rem), 1fr));
    grid-auto-flow: dense;
    gap: clamp(0.5rem, 0.3rem + 0.6cqi, 0.9rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.desktop-surface .lfl-ph-tile {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--rt-paper);
    box-shadow: var(--shadow-cont-sm-lt);
    cursor: grab;
    outline: none;
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-ph-tile.is-cover { grid-column: span 2; grid-row: span 2; }
@container lfl-sec (width < 20rem) {
    .desktop-surface .lfl-ph-tile.is-cover { grid-column: auto; grid-row: auto; }
}
.desktop-surface .lfl-ph-tile:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--rt-blue); }
.desktop-surface .lfl-ph-wall.is-sorting { cursor: grabbing; }
.desktop-surface .lfl-ph-tile.is-dragging { opacity: 0.35; transform: scale(0.95); }
.desktop-surface .lfl-ph-tile.is-leaving { opacity: 0; transform: scale(0.6); }
.desktop-surface .lfl-ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.desktop-surface .lfl-ph-place {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 1.9rem;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-pill);
    background: var(--glass-bg-dark);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.3;
}
.desktop-surface .lfl-ph-tile.is-cover .lfl-ph-place { background: var(--rt-pink); }
.desktop-surface .lfl-ph-dots { position: absolute; left: 0.6rem; bottom: 0.75rem; display: flex; gap: 0.3rem; }
.desktop-surface .lfl-ph-dot { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
/* The photo's actions: always there (no hover), small glass buttons in a corner */
.desktop-surface .lfl-ph-acts { position: absolute; right: 0.45rem; bottom: 0.45rem; display: flex; gap: 0.3rem; }
.desktop-surface .lfl-ph-act {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 2.25rem;
    height: 2.25rem;
    justify-content: center;
    padding: 0 0.6rem;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--glass-bg-dark);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-head);
    font-size: var(--type-meta);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.desktop-surface .lfl-ph-act[hidden] { display: none; }
.desktop-surface .lfl-ph-act:active { transform: scale(0.94); }
.desktop-surface .lfl-ph-act:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
/* Fewer marks on the wall: the other photos carry their star and bin as icons (named for screen
   readers, explained in the line above the wall); the cover's own buttons keep their words */
.desktop-surface .lfl-ph-tile:not(.is-cover) .lfl-ph-act span { display: none; }
@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lfl-ph-act:hover { background: rgba(0, 0, 0, 0.78); }
    .desktop-surface .lfl-ph-act--del:hover { background: var(--ink-pink); }
}
/* Delete asks in the photo itself: a frosted strip at its foot, the photo still showing above */
.desktop-surface .lfl-ph-confirm {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 0.4rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: lfl-open var(--dur-base) var(--ease-spring);
    cursor: default;
}
.desktop-surface .lfl-ph-confirm[hidden] { display: none; }
.desktop-surface .lfl-ph-confirm-words { font-family: var(--font-head); font-size: var(--type-meta); color: var(--text); }
.desktop-surface .lfl-ph-confirm-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.desktop-surface .lfl-ph-tile.is-arming .lfl-ph-acts { display: none; }
.desktop-surface .lfl-ph-tile.is-arming { cursor: default; box-shadow: 0 0 0 3px var(--rt-pink-lt); }

.desktop-surface .lfl-ph-empty { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); border-radius: var(--r-panel); background: var(--glass-bg-faint); }
.desktop-surface .lfl-ph-empty[hidden] { display: none; }
.desktop-surface .lfl-ph-empty p { margin: 0; }
.desktop-surface .lfl-ph-wait { margin: 0; }
.desktop-surface .lfl-ph-video { display: flex; align-items: center; gap: var(--space-md); padding: 0.75rem; border-radius: var(--r-panel); background: var(--rt-blue-slt); }
.desktop-surface .lfl-ph-video p { margin: 0; }
.desktop-surface .lfl-ph-video-title { font-family: var(--font-head); font-size: var(--type-body); color: var(--ink-blue); }
.desktop-surface .lfl-ph-video-poster {
    flex: none;
    display: grid;
    place-items: center;
    width: 5.5rem;
    aspect-ratio: 16 / 10;
    border-radius: 0.7rem;
    background: var(--rt-blue-dk) center / cover no-repeat;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.desktop-surface .lfl-ph-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
    .desktop-surface :is(.lfl-ph-tile, .lfl-ph-act, .lfl-ph-add, .lfl-ph-qbar) { transition: none; }
    .desktop-surface :is(.lfl-ph-qrow, .lfl-ph-confirm) { animation: none; }
}
/* §photos:end */

/* §dependencies */
/* Package Components: add (search, results in place), the set (a card per component: photo, name,
   Keeper and rate, order; goods' quantity; their add-ons to offer), then the limits and the price
   the server works out, like the booking lane's price lines. */
.desktop-surface .lfl-dep { display: grid; gap: var(--space-lg); min-width: 0; }
.desktop-surface .lfl-dep-carry { margin: 0; }
.desktop-surface .lfl-dep-find { display: grid; gap: var(--space-sm); }
.desktop-surface .lfl-dep-find .k-field { margin: 0; }
.desktop-surface .lfl-dep-results {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-ctl);
    max-height: 22rem;
    overflow: auto;
    animation: lfl-open var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-dep-none { padding: 0.6rem 0.8rem; }
.desktop-surface .lfl-dep-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 0;
    border-radius: 0.8rem;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-dep-result:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: -2px; }
.desktop-surface .lfl-dep-result:active { background: rgba(44, 117, 222, 0.1); }
@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lfl-dep-result:hover { background: rgba(44, 117, 222, 0.07); }
}
.desktop-surface .lfl-dep-add { color: var(--ink-blue); font-family: var(--font-head); font-size: var(--type-meta); white-space: nowrap; }
.desktop-surface .lfl-dep-set { display: grid; gap: var(--space-sm); }
.desktop-surface .lfl-dep-set > .k-label, .desktop-surface .lfl-dep-empty { margin: 0; }
.desktop-surface .lfl-dep-rows { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.desktop-surface .lfl-dep-row {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-ctl);
}
.desktop-surface .lfl-dep-row.is-new { animation: lfl-open var(--dur-base) var(--ease-spring); box-shadow: inset 0 0 0 2px rgba(44, 117, 222, 0.35), var(--shadow-ctl); }
.desktop-surface .lfl-dep-row.is-flagged { box-shadow: inset 0 0 0 2px rgba(235, 93, 143, 0.5), var(--shadow-ctl); }
.desktop-surface .lfl-dep-flag { margin: 0; }
.desktop-surface .lfl-dep-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); }
.desktop-surface .lfl-dep-thumb {
    display: grid;
    place-items: center;
    width: 3.5rem;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    background: var(--rt-blue-slt, #eef4fd) center / cover no-repeat;
    color: var(--ink-blue);
    opacity: 0.9;
}
.desktop-surface .lfl-dep-results .lfl-dep-thumb { width: 2.75rem; }
.desktop-surface .lfl-dep-id { display: grid; gap: 0.15rem; min-width: 0; }
.desktop-surface .lfl-dep-id .k-meta { margin: 0; }
.desktop-surface .lfl-dep-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: var(--type-body);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.desktop-surface .lfl-dep-order { display: flex; gap: 0.3rem; }
.desktop-surface .lfl-dep-order .k-iconbtn:disabled { opacity: 0.35; cursor: default; }
.desktop-surface .lfl-dep-goods { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.desktop-surface .lfl-dep-goods > .k-label { margin: 0; }
.desktop-surface .lfl-dep-addons { display: grid; gap: 0.35rem; }
.desktop-surface .lfl-dep-addons > p { margin: 0; }
.desktop-surface .lfl-dep-addon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.35rem var(--space-md); }
.desktop-surface .lfl-dep-addon { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: var(--type-body); cursor: pointer; }
.desktop-surface .lfl-dep-addon > input { width: 1.1rem; height: 1.1rem; accent-color: var(--rt-blue, #2c75de); }
.desktop-surface .lfl-dep-addon-name { flex: 1 1 auto; min-width: 0; }
.desktop-surface .lfl-dep-foot { display: flex; justify-content: flex-end; }
.desktop-surface .lfl-dep-preview {
    display: grid;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--r-panel);
    background: var(--rt-blue-slt, #eef4fd);
}
.desktop-surface .lfl-dep-preview .k-alert { margin: 0; }
.desktop-surface .lfl-dep-limits, .desktop-surface .lfl-dep-price { display: grid; gap: 0.25rem; }
.desktop-surface :is(.lfl-dep-limits, .lfl-dep-price) > p { margin: 0; }
.desktop-surface .lfl-dep-price .k-line { margin: 0; padding-block: 0.3rem; }
.desktop-surface .lfl-dep-mine .k-line-label { color: var(--ink-blue); font-family: var(--font-head); }
@container lfl-sec (width < 36rem) {
    .desktop-surface .lfl-dep-top { gap: var(--space-sm); }
    .desktop-surface .lfl-dep-thumb { width: 3rem; }
    .desktop-surface .lfl-dep-order { flex-direction: column; gap: 0.15rem; }
}
/* §dependencies:end */

/* §documents */
/* Documents: the responsibility notice, the questions, then the phone's three groups (required,
   may apply, credentials), each a panel of documents that open in place (<details>); a document
   that can take a file has its send area, which also takes a drop (an outline, never a cover). */
.desktop-surface .lfl-docs { display: grid; gap: var(--space-lg); min-width: 0; }
.desktop-surface .lfl-docs-notice { margin: 0; }
.desktop-surface .lfl-docs-notice p { margin: 0 0 0.35rem; }
/* The section's one primary (fixer W, E3): a blue shelf like the other sections' price shelf */
.desktop-surface .lfl-docs-lead {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-md);
    border-radius: var(--r-panel);
    background: var(--rt-blue-slt, #eef4fd);
}
.desktop-surface .lfl-docs-lead-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: var(--head-blue, linear-gradient(135deg, #1e5fc0, #2c75de));
    color: #fff;
    font-size: 1.15rem;
}
.desktop-surface .lfl-docs-lead-text { margin: 0; }
@container lfl-sec (width < 34rem) {
    .desktop-surface .lfl-docs-lead { grid-template-columns: auto minmax(0, 1fr); }
    .desktop-surface .lfl-docs-lead > .k-btn { grid-column: 1 / -1; justify-self: start; }
}
.desktop-surface .lfl-docs-group {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--r-panel);
    background: var(--tone-slt, var(--rt-blue-slt));
}
.desktop-surface .lfl-docs-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-md); padding: 0.15rem 0.2rem 0.35rem; }
.desktop-surface .lfl-docs-head p { margin: 0; }
.desktop-surface .lfl-docs-head-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--tone-fill, var(--fill-blue));
    color: #fff;
    font-size: 1.05rem;
}
.desktop-surface .lfl-docs-title { font-family: var(--font-head); font-size: var(--type-lead, 1.15rem); line-height: 1.2; color: var(--tone-ink, var(--ink-blue)); }
.desktop-surface .lfl-docs-q {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm) var(--space-md);
    padding: 0.75rem var(--space-md);
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-ctl);
}
.desktop-surface .lfl-docs-q > p { margin: 0; flex: 1 1 18rem; }
.desktop-surface .lfl-docs-q > .k-meta { flex-basis: 100%; }
.desktop-surface .lfl-docs-q .k-seg-btn:disabled { cursor: default; opacity: 1; }
.desktop-surface .lfl-doc {
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-ctl);
}
.desktop-surface .lfl-doc-sum {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-md);
    padding: 0.8rem var(--space-md);
    list-style: none;
    cursor: pointer;
    border-radius: var(--r-ctl);
}
.desktop-surface .lfl-doc-sum::-webkit-details-marker { display: none; }
.desktop-surface .lfl-doc-sum:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: -2px; }
.desktop-surface .lfl-doc-icon { font-size: 1.15rem; }
.desktop-surface .lfl-doc-id { display: grid; gap: 0.3rem; min-width: 0; }
.desktop-surface .lfl-doc-name { font-family: var(--font-head); font-size: var(--type-body); line-height: 1.25; color: var(--text); }
.desktop-surface .lfl-doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.desktop-surface .lfl-doc-chev { color: var(--text-faint); transition: transform var(--dur-base) var(--ease-spring); }
.desktop-surface .lfl-doc[open] > .lfl-doc-sum .lfl-doc-chev { transform: rotate(180deg); }
.desktop-surface .lfl-doc-body {
    display: grid;
    gap: var(--space-md);
    padding: 0.2rem var(--space-md) var(--space-md);
    border-top: 1px solid var(--line, rgba(30, 40, 53, 0.08));
    padding-top: var(--space-md);
    animation: lfl-open var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfl-doc-body p { margin: 0; }
.desktop-surface .lfl-doc-body .k-alert { margin: 0; }
.desktop-surface .lfl-doc-body .k-alert p + p { margin-top: 0.3rem; }
.desktop-surface .lfl-doc-what { display: grid; gap: 0.25rem; }
.desktop-surface .lfl-doc-files { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.desktop-surface .lfl-doc-file {
    position: relative;
    display: grid;
    place-items: center;
    width: 5.5rem;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    background: rgba(30, 40, 53, 0.05) center / cover no-repeat;
    box-shadow: inset 0 0 0 2px rgba(30, 40, 53, 0.1);
    color: var(--ink-pink);
    font-size: 1.4rem;
    overflow: hidden;
}
.desktop-surface .lfl-doc-file-name {
    position: absolute;
    inset: auto 0 0;
    padding: 0.15rem 0.35rem;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* The send area: the files as chips, Add as a dashed tile, the note, Send for review */
.desktop-surface .lfl-doc-send {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--r-ctl);
    background: var(--rt-blue-slt, #eef4fd);
    outline: 3px dashed transparent;
    outline-offset: -3px;
    transition: outline-color var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfl-doc-send.is-drop { outline-color: var(--rt-blue, #2c75de); }
.desktop-surface .lfl-doc-send .k-field { margin: 0; }
.desktop-surface .lfl-doc-tray { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.desktop-surface .lfl-doc-add, .desktop-surface .lfl-doc-chip {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.3rem;
    width: 7rem;
    min-height: 6rem;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink-blue);
    font-size: var(--type-meta);
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
}
.desktop-surface .lfl-doc-add { box-shadow: inset 0 0 0 2px rgba(44, 117, 222, 0.35); font-family: var(--font-head); }
.desktop-surface .lfl-doc-add > i { font-size: 1.3rem; }
.desktop-surface :is(.lfl-doc-add, .lfl-doc-chip):focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lfl-doc-chip { box-shadow: inset 0 0 0 2px rgba(30, 40, 53, 0.12); color: var(--text-soft); }
.desktop-surface .lfl-doc-chip-face {
    display: grid;
    place-items: center;
    width: 3.25rem;
    aspect-ratio: 1;
    border-radius: 0.6rem;
    background: rgba(30, 40, 53, 0.05) center / cover no-repeat;
    color: var(--ink-pink);
    font-size: 1.3rem;
}
.desktop-surface .lfl-doc-chip-name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop-surface .lfl-doc-chip-mark {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: rgba(30, 40, 53, 0.6);
    color: #fff;
    font-size: 0.75rem;
}
.desktop-surface .lfl-doc-chip.is-uploading { animation: lfl-doc-pulse 1.1s ease-in-out infinite; }
.desktop-surface .lfl-doc-chip.is-failed { box-shadow: inset 0 0 0 2px #f87171; }
.desktop-surface .lfl-doc-chip.is-failed .lfl-doc-chip-mark { background: var(--ink-pink); }
.desktop-surface .lfl-doc-chip.is-done { box-shadow: inset 0 0 0 2px rgba(52, 211, 153, 0.7); }
@keyframes lfl-doc-pulse {
    0%, 100% { box-shadow: inset 0 0 0 2px rgba(30, 40, 53, 0.12); }
    50%      { box-shadow: inset 0 0 0 2px var(--rt-teal, #69e2e1), 0 0 0 4px rgba(105, 226, 225, 0.25); }
}
.desktop-surface .lfl-doc-more { border-radius: var(--r-ctl); background: rgba(30, 40, 53, 0.03); }
.desktop-surface .lfl-doc-more .k-disclosure-body { display: grid; gap: var(--space-sm); }
.desktop-surface :is(.lfl-doc-steps, .lfl-doc-list) { display: grid; gap: 0.4rem; margin: 0; padding-left: 1.3rem; font-size: var(--type-body); line-height: 1.45; }
.desktop-surface .lfl-doc-url { word-break: break-all; }
.desktop-surface .lfl-docs-answers { border-radius: var(--r-panel); background: rgba(255, 255, 255, 0.7); }
.desktop-surface .lfl-docs-answers .k-disclosure-body { display: grid; gap: var(--space-sm); }
.desktop-surface .lfl-docs-answers .k-disclosure-body > p { margin: 0; }
.desktop-surface .lfl-docs-empty, .desktop-surface .lfl-docs-foot { margin: 0; }
@media (prefers-reduced-motion: reduce) {
    .desktop-surface :is(.lfl-doc-chip.is-uploading, .lfl-doc-body, .lfl-ao-row, .lfl-dep-row.is-new, .lfl-dep-results) { animation: none; }
}
/* §documents:end */


/* ─── 7. THE EDITOR IN A NARROW LANE ─────────────────────────────────────── */
/* The checklist stays a COLUMN beside the section (Joel: "Listing-Edit should be there aside
   whatever module they're editing in"). The stage folds the preview to its Spine first (routes.js
   stageMin); under 48rem of lane the column narrows to each step's name and its mark, and the open
   step's reason moves into the section's own header (.lfl-sec-why). It never becomes a strip. */

@container lane (width < 48rem) {
    .desktop-surface .lfl-editor { grid-template-columns: clamp(10.5rem, 6rem + 9cqi, 12.5rem) minmax(0, 1fr); }
    .desktop-surface .lfl-rail-head { grid-template-columns: minmax(0, 1fr); gap: 0.45rem; padding: 0.7rem 0.75rem; }
    .desktop-surface .lfl-rail-thumb, .desktop-surface .lfl-rail-meta { display: none; }
    .desktop-surface .lfl-rail-title { font-size: var(--type-meta); -webkit-line-clamp: 2; }
    .desktop-surface .lfl-rail-progress { grid-column: auto; }
    .desktop-surface .lfl-steps { padding: 0.3rem; }
    .desktop-surface .lfl-step { grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.45rem; padding: 0.5rem 0.55rem; }
    .desktop-surface .lfl-step-label { font-size: var(--type-meta); }
    .desktop-surface .lfl-step-label small { display: block; margin: 0.05rem 0 0; }
    .desktop-surface :is(.lfl-step-why, .lfl-step .lfl-week, .lfl-step-chev) { display: none; }
    .desktop-surface .lfl-step.is-app { grid-template-columns: 1.3rem minmax(0, 1fr); padding-block: 0.4rem; }
    /* The group's heading says where these are edited; the column keeps one line per step */
    .desktop-surface .lfl-step-tag { display: none; }
    .desktop-surface .lfl-later { margin-inline: 0.3rem; }
    .desktop-surface .lfl-later-head { padding-inline: 0.55rem; }
    .desktop-surface .lfl-sec-why { display: block; }
    .desktop-surface .lfl-cat-cols { grid-template-columns: minmax(0, 1fr); }
    .desktop-surface .lfl-cat-groups { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; max-height: none; }
}

@container lane (width < 36rem) {
    .desktop-surface .lfl-life-line { display: none; }
    .desktop-surface .lfl-foot { padding: 0.65rem 0.8rem; }
    .desktop-surface .lfl-sec-state { display: none; }
    .desktop-surface .lfl-mto-deposit { grid-template-columns: minmax(0, 1fr); }
    .desktop-surface .lfl-or { padding: 0; }
}


/* ─── 8. REDUCED MOTION ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .desktop-surface :is(.lfl-row, .lfl-row::before, .lfl-step, .lfl-step-chev, .lfl-door, .lfl-rec-link, .lfl-next-act) { transition: none; }
    .desktop-surface :is(.lfl-confirm, .lfl-audience-warn, .lfl-mto-body, .lfl-ff-more, .lfl-hazard) { animation: none; }
}
