/* ═══════════════════════════════════════════════════════════════════════════
   lane-keeper.css: the Keeper lane family (desktop fan-out unit KEEPER;
   docs/plans/desktop/audit/keeper-bookings-money.md, build unit K4). Linked
   by the layout.

   One page so far: the Keeper desk (desktop/pages/Keeper-Dashboard.php,
   Browse). Built from the kit (kit.css, prefix k-); this sheet adds the lfk-
   parts. The desk's charts are drawn by desktop/assets/js/kit-charts.js, which
   styles its own marks from the kit's tokens; this sheet only sizes their boxes.

   Rules (kit.css): every selector starts .desktop-surface; no font-weight for
   emphasis (swap the family); fills are full background shorthands; no
   viewport media queries (a part changes form because ITS LANE or ITS PANEL is
   narrow: @container lane, or the panel's own unnamed container); nothing is
   fixed or floats over anything.

   The desk at each width (the same DOM):
     Stage          the greeting (the three headline numbers as tilt cards), then
                    two stacks: the queue and the week; RedTulip Cash, the score,
                    and the checklist and listings where they balance. On a wide
                    lane the second stack is two columns and the week a band
     List (< 46rem) one column, the queue first, the week as a day list
     Spine          the stage's own strip (Keeper-Dashboard.js setSpine)

   Contents
     1  The desk and its greeting
     2  The board: balanced columns
     3  To answer: the queue
     4  Next 7 days
     5  RedTulip Cash
     6  Keeper Score
     7  Getting set up
     8  Your listings
     9  The desk at List
    10  Reduced motion
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── 1. THE DESK AND ITS GREETING ────────────────────────────────────────── */

.desktop-surface .lfk-desk {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
    align-content: start;
    min-width: 0;
}

/* The greeting: the phone's wave behind "Hey, Jules!", the three numbers that
   matter today as the dashboard's tilt cards beside it */
.desktop-surface .lfk-hello {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 27rem);
    align-items: center;
    gap: var(--space-md) var(--space-lg);
    padding: clamp(0.9rem, 0.4rem + 1.5cqi, 1.6rem) clamp(1.1rem, 0.6rem + 2.4cqi, 2.5rem);
    border-radius: var(--r-feature);
    background: var(--wave-mesh);
    box-shadow: var(--shadow-cont);
    color: #fff;
    overflow: hidden;
}

.desktop-surface .lfk-hello::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -30% -10%;
    background:
        radial-gradient(40% 55% at 78% 22%, rgba(245, 158, 11, 0.32) 0%, rgba(245, 158, 11, 0) 70%),
        radial-gradient(38% 50% at 14% 92%, rgba(235, 93, 143, 0.36) 0%, rgba(235, 93, 143, 0) 70%);
    animation: lfk-drift 15s var(--ease-house, ease-in-out) infinite alternate;
    pointer-events: none;
}

@keyframes lfk-drift {
    from { transform: translate3d(-3%, -2%, 0) scale(1); }
    to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

.desktop-surface .lfk-hello-text { display: grid; gap: 0.35rem; min-width: 0; }
.desktop-surface .lfk-hello-eyebrow { color: rgba(255, 255, 255, 0.92); }
.desktop-surface .lfk-hello-eyebrow > i { margin-right: 0.2rem; }
.desktop-surface .lfk-hello-hi {
    margin: 0;
    color: #fff;
    font-size: clamp(2.1rem, 1.1rem + 2.9cqi, calc(4.25rem + 6 * var(--up)));
    text-shadow: var(--shadow-text);
}
.desktop-surface .lfk-hello-say {
    margin: 0;
    max-width: 44ch;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-head);
    font-weight: normal;
}

.desktop-surface .lfk-tilt { max-width: none; justify-self: end; width: 100%; }
.desktop-surface .lfk-tilt .k-tilt-card {
    aspect-ratio: auto;
    min-height: clamp(6.75rem, 5.25rem + 3.6cqi, 9rem);
    gap: 0.25rem;
    border: 0;
    font: inherit;
    cursor: pointer;
}
.desktop-surface .lfk-tilt .k-tilt-card [hidden] { display: none; }

/* "To answer" wears its panel's colour, as "This week" and "Keeper Score" wear
   theirs: the queue head's sunrise, in the tilt's dark-to-deep angle, white on
   it like its neighbours (fixer W, K2: the old light amber card was the loudest
   thing on the desk, louder than the one primary under it). With nothing to
   answer it is a calm green "All caught up". */
.desktop-surface .lfk-tilt .lfk-tilt-answer.k-tone-sunrise {
    background: linear-gradient(-20deg, var(--rt-sun-deep) 0%, var(--rt-pink-deep) 100%);
}
.desktop-surface .lfk-tilt .lfk-tilt-answer.is-calm .k-tilt-icon { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.8cqi, 2.4rem); }
.desktop-surface .lfk-tilt .lfk-tilt-answer .k-tilt-label { text-wrap: balance; }

/* Alerts under the greeting: a pending Keeper's ID, a support reply */
.desktop-surface .lfk-alert { align-items: center; text-decoration: none; color: var(--text); }
.desktop-surface .lfk-alert > div { flex: 1 1 auto; min-width: 0; }
.desktop-surface .lfk-alert-go { flex: none; color: var(--tone-ink, var(--ink-blue)); }
.desktop-surface .lfk-alert:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }

/* The counted panels: a panel the tilt cards jump to takes focus without a ring */
.desktop-surface .lfk-panel { min-width: 0; scroll-margin-top: var(--space-md); }
.desktop-surface .lfk-panel:focus { outline: none; }
.desktop-surface .lfk-panel:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 3px; }


/* ─── 2. THE BOARD: TWO STACKS ────────────────────────────────────────────── */
/* The queue leads the main stack; RedTulip Cash and the score lead the side
   stack; the page puts the checklist and the listings strip in whichever stack
   is shorter (Keeper-Dashboard.php, from the counts it already has), so the two
   end close together and nothing jumps when the queue arrives. On a wide lane
   the side stack is itself two balanced columns. Under 46rem (List) the stacks
   dissolve and the panels take the reading order (section 9). */

.desktop-surface .lfk-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
    align-items: start;
    min-width: 0;
}

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

@container lane (width >= 46rem) {
    .desktop-surface .lfk-board { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
}

/* A wide lane: three columns. The queue runs down the first; RedTulip Cash and
   the score head the other two, the listings strip and the checklist under
   them (fixer W: with the week now a strip, the stacks' estimate no longer
   decides where these go here, so nothing waits far down under a long queue
   while a column stands empty). The last row is 1fr so a long queue's extra
   height lands below everything, not between Cash and the listings. */
@container lane (width >= 100rem) {
    .desktop-surface .lfk-board:not(.lfk-board--short) {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
        grid-template-rows: auto auto 1fr;
    }
    .desktop-surface .lfk-board:not(.lfk-board--short) > .lfk-stack { display: contents; }
    .desktop-surface .lfk-board:not(.lfk-board--short) .lfk-queue    { grid-column: 1; grid-row: 1 / span 3; }
    /* Cash and the score side by side share the row's height (their feet on one line) */
    .desktop-surface .lfk-board:not(.lfk-board--short) .lfk-cash     { grid-column: 2; grid-row: 1; align-self: stretch; }
    .desktop-surface .lfk-board:not(.lfk-board--short) .lfk-score    { grid-column: 3; grid-row: 1; align-self: stretch; }
    .desktop-surface .lfk-board:not(.lfk-board--short) .lfk-listings { grid-column: 2; grid-row: 2; }
    .desktop-surface .lfk-board:not(.lfk-board--short) .lfk-setup    { grid-column: 3; grid-row: 2; }
    .desktop-surface .lfk-board:not(.lfk-board--short) .lfk-cash-foot,
    .desktop-surface .lfk-board:not(.lfk-board--short) .lfk-score > .k-panel-foot { margin-top: auto; }

    /* A short queue (little or nothing to answer): the stacks stay columns, the second one itself
       two balanced columns (the panels there are short, so nothing is pushed out of sight) */
    .desktop-surface .lfk-board--short { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); }
    /* A grid, not CSS multi-column: Safari leaves the second column of a multi-column box blank
       when its children are composited (2026-11-11, found on the Home shelves). */
    .desktop-surface .lfk-board--short > .lfk-stack--side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); align-items: start; }
    .desktop-surface .lfk-board--short > .lfk-stack--side > .lfk-panel { width: 100%; margin: 0; }
}


/* ─── 3. TO ANSWER: THE QUEUE ─────────────────────────────────────────────── */

.desktop-surface .lfk-count {
    display: inline-grid;
    place-items: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.6rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.5rem;
    line-height: 1;
}

.desktop-surface .lfk-verify { margin: var(--space-md) var(--pad-panel) 0; text-decoration: none; color: var(--text); }

.desktop-surface .lfk-reqs { display: grid; min-width: 0; }
.desktop-surface .lfk-reqs:empty { display: none; }

/* A request: the photo, who and what and when, the amount and its action */
.desktop-surface .lfk-req {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-md) var(--pad-panel);
    border-top: 1px solid var(--glass-rule);
    color: var(--text);
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfk-reqs > .lfk-req:first-child { border-top: 0; }

.desktop-surface .lfk-req-photo {
    width: clamp(3.75rem, 2.9rem + 2.6cqi, 5rem);
    aspect-ratio: 1;
    border-radius: 0.9rem;
    background: var(--rt-blue-slt) center / cover no-repeat;
    box-shadow: var(--shadow-cont-sm-lt);
}
.desktop-surface .lfk-req-photo--none { display: grid; place-items: center; color: var(--rt-blue); font-size: 1.25rem; }

.desktop-surface .lfk-req-main { display: grid; gap: 0.2rem; min-width: 0; }
.desktop-surface .lfk-req-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.45rem; }
.desktop-surface .lfk-req-wait {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-head);
    font-size: var(--type-meta);
    color: var(--ink-amber);
    white-space: nowrap;
}
.desktop-surface .lfk-req-title {
    font-family: var(--font-head);
    font-size: clamp(1rem, 0.85rem + 0.6cqi, 1.2rem);
    line-height: 1.22;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.desktop-surface .lfk-req-line {
    font-size: var(--type-meta);
    line-height: 1.35;
    color: var(--text-soft);
    overflow-wrap: anywhere;
}
.desktop-surface .lfk-req-line > i { width: 1.1em; color: var(--text-faint); }
.desktop-surface .lfk-req-who { font-family: var(--font-head); color: var(--text); }

.desktop-surface .lfk-req-end { display: grid; justify-items: end; gap: 0.3rem; text-align: right; }
.desktop-surface .lfk-req-amt {
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 0.95rem + 0.8cqi, 1.5rem);
    letter-spacing: var(--track-snug);
    line-height: 1.05;
    color: var(--text);
    white-space: nowrap;
}
.desktop-surface .lfk-req-amt--quote { font-family: var(--font-head); font-size: var(--type-body); color: var(--ink-purple); }
.desktop-surface .lfk-req-exp { font-size: var(--type-meta); color: var(--ink-pink); white-space: nowrap; }
.desktop-surface .lfk-req .k-btn { pointer-events: none; white-space: nowrap; }

.desktop-surface .lfk-req:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: -3px; border-radius: 0.6rem; }
.desktop-surface .lfk-req:active { background: var(--rt-blue-slt); }
@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lfk-req[href]:hover { background: rgba(224, 237, 255, 0.55); }
    .desktop-surface .lfk-req[href]:hover .lfk-req-photo { transform: scale(1.04) rotate(-1.5deg); }
}
.desktop-surface .lfk-req-photo { transition: transform var(--dur-slow) var(--ease-spring); }

.desktop-surface .lfk-req--skel { grid-template-columns: auto minmax(0, 1fr); }
.desktop-surface .lfk-req--skel .lfk-req-photo { box-shadow: none; }

/* What waits on the Seeker: quieter rows under the queue */
.desktop-surface .lfk-waiting { border-top: 1px solid var(--glass-rule); padding-top: var(--space-sm); }
.desktop-surface .lfk-waiting-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0;
    padding: 0 var(--pad-panel);
    font-size: var(--type-body);
    color: var(--text);
}
.desktop-surface .lfk-req--quiet { padding-block: var(--space-sm); }
.desktop-surface .lfk-req--quiet .lfk-req-photo { width: clamp(2.75rem, 2.2rem + 1.6cqi, 3.5rem); opacity: 0.9; }
.desktop-surface .lfk-req--quiet .lfk-req-title { font-size: var(--type-body); -webkit-line-clamp: 1; }
.desktop-surface .lfk-req--quiet .lfk-req-amt { font-family: var(--font-head); font-size: var(--type-body); color: var(--text-soft); }
.desktop-surface .lfk-req--quiet .lfk-req-when { display: none; }

.desktop-surface .lfk-clear { padding-block: var(--space-lg); }
.desktop-surface .lfk-clear .k-section { margin: 0; color: var(--ink-green); }
.desktop-surface .lfk-queue-foot { justify-content: space-between; }
.desktop-surface .lfk-queue-note { margin: 0; }
.desktop-surface .lfk-queue-note:empty { display: none; }
.desktop-surface .lfk-queue-foot > [data-lfk-more] { margin-left: auto; }

/* A narrow panel: the amount and the action move under the words, and wrap
   rather than run out of the row */
@container (width < 30rem) {
    .desktop-surface .lfk-req { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .desktop-surface .lfk-req-photo { width: 3.25rem; }
    .desktop-surface .lfk-req-end {
        grid-column: 2;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem 0.6rem;
        text-align: left;
    }
    .desktop-surface .lfk-req-end > .k-btn { margin-left: auto; }
}

.desktop-surface .lfk-clear .k-empty-art { width: clamp(4.5rem, 3.5rem + 3cqi, 6rem); font-size: clamp(1.75rem, 1.3rem + 1.6cqi, 2.5rem); }


/* ─── 4. NEXT 7 DAYS ──────────────────────────────────────────────────────── */
/* Each booking titled in its day (the phone paints three dots). In a panel
   under 46rem: a day list, a row a day, its bookings side by side. In a wider
   panel: a band of seven day columns, a busy day wider than a free one. */

.desktop-surface .lfk-today { flex: none; }

.desktop-surface .lfk-days {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0 var(--pad-panel) var(--pad-panel);
    list-style: none;
    gap: 0;
}

.desktop-surface .lfk-day {
    display: grid;
    grid-template-columns: clamp(5.5rem, 4.5rem + 3cqi, 7rem) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--glass-rule);
    min-width: 0;
}
.desktop-surface .lfk-day:first-child { border-top: 0; }

.desktop-surface .lfk-day-head { display: grid; gap: 0.05rem; margin: 0; padding-top: 0.2rem; }
.desktop-surface .lfk-day-dow { font-family: var(--font-head); font-size: var(--type-body); line-height: 1.15; color: var(--text); }
.desktop-surface .lfk-day-date { font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfk-day.is-today .lfk-day-dow { color: var(--ink-blue); }

/* A day's bookings side by side as long as each has room for its title, then one under another */
.desktop-surface .lfk-day-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}
.desktop-surface .lfk-day-list > li { min-width: 0; }
.desktop-surface .lfk-free { padding: 0.35rem 0; font-size: var(--type-meta); color: var(--text-faint); }
.desktop-surface .lfk-slot--skel { padding: 0.5rem 0; }

/* A booking in its day */
.desktop-surface .lfk-slot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.8rem;
    background: rgba(224, 237, 255, 0.55);
    box-shadow: inset 3px 0 0 var(--rt-blue);
    color: var(--text);
    text-decoration: none;
    transition: transform var(--dur-base) var(--ease-spring), background var(--dur-fast) var(--ease-out);
}
.desktop-surface .lfk-slot.is-now { background: rgba(210, 245, 201, 0.7); box-shadow: inset 3px 0 0 var(--rt-success); }
.desktop-surface .lfk-slot--cont { background: rgba(224, 237, 255, 0.3); }
.desktop-surface .lfk-slot-photo {
    width: 2.4rem;
    aspect-ratio: 1;
    border-radius: 0.6rem;
    background: var(--rt-blue-slt) center / cover no-repeat;
}
.desktop-surface .lfk-slot-main { display: grid; gap: 0.1rem; min-width: 0; }
.desktop-surface .lfk-slot-time { font-family: var(--font-head); font-size: var(--type-meta); color: var(--ink-blue); }
.desktop-surface .lfk-slot.is-now .lfk-slot-time { color: var(--ink-green); }
.desktop-surface .lfk-slot-title {
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.25;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.desktop-surface .lfk-slot-who { font-size: var(--type-meta); color: var(--text-soft); overflow-wrap: anywhere; }
.desktop-surface .lfk-slot:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lfk-slot:hover { transform: translateY(-2px); background: rgba(224, 237, 255, 0.95); }
}

/* The band: seven columns, a busy day wider than a free one */
@container (width >= 46rem) {
    .desktop-surface .lfk-days { display: flex; gap: 0.5rem; padding-top: var(--space-sm); }
    .desktop-surface .lfk-day {
        flex: 1.35 1 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.65rem 0.55rem;
        border-top: 0;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.55);
        box-shadow: inset 0 0 0 1px var(--glass-rule);
    }
    .desktop-surface .lfk-day.is-free { flex-grow: 0.75; background: rgba(255, 255, 255, 0.28); }
    .desktop-surface .lfk-day.is-today { box-shadow: inset 0 0 0 2px var(--rt-blue-lt); background: rgba(255, 255, 255, 0.8); }
    .desktop-surface .lfk-day-head { padding: 0 0.1rem; }
    .desktop-surface .lfk-day-dow { letter-spacing: var(--track-snug); }
    .desktop-surface .lfk-slot { grid-template-columns: minmax(0, 1fr); padding: 0.45rem 0.55rem; }
    .desktop-surface .lfk-slot-photo { display: none; }
    .desktop-surface .lfk-free { padding: 0.1rem 0.1rem; }
}

/* A wide band: the listing's photo beside the words */
@container (width >= 70rem) {
    .desktop-surface .lfk-slot { grid-template-columns: 2.4rem minmax(0, 1fr); }
    .desktop-surface .lfk-slot-photo { display: block; width: 2.4rem; }
}

/* THE STRIP (fixer W, K3). At the Stage the week is not a panel at the foot of
   a long queue: it sits directly under the greeting, its blue head a block on
   the left and the seven days beside it, so what is coming is on screen
   without scrolling however busy the desk is. Compact: a day shows its first
   two bookings (time and title) and "+N more"; the Seeker's name waits for
   the booking itself. At List (section 9) it is the day list after the queue. */
.desktop-surface .lfk-day-more { display: none; }

@container lane (width >= 46rem) {
    .desktop-surface .lfk-desk > .lfk-week { flex-direction: row; align-items: stretch; }
    .desktop-surface .lfk-desk > .lfk-week > .k-panel-head {
        flex: 0 0 clamp(11rem, 7.5rem + 6cqi, 14rem);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
        gap: var(--space-sm);
    }
    /* set like its sibling panels' titles, not scaled by the strip's whole width */
    .desktop-surface .lfk-desk > .lfk-week .k-panel-title { font-size: min(var(--type-section), 1.45rem); }
    .desktop-surface .lfk-desk > .lfk-week > .k-panel-head > .k-panel-head-text { flex: 0 0 auto; }
    .desktop-surface .lfk-desk > .lfk-week > .lfk-days { flex: 1 1 auto; min-width: 0; padding: var(--space-sm); }
    .desktop-surface .lfk-desk > .lfk-week .lfk-day { padding: 0.55rem 0.5rem; gap: 0.4rem; }
    .desktop-surface .lfk-desk > .lfk-week .lfk-day-list > li:nth-child(n + 3):not(.lfk-day-more) { display: none; }
    .desktop-surface .lfk-desk > .lfk-week .lfk-day-more {
        display: block;
        padding: 0 0.2rem;
        font-family: var(--font-head);
        font-size: var(--type-meta);
        color: var(--ink-blue);
    }
    .desktop-surface .lfk-desk > .lfk-week .lfk-slot { padding: 0.35rem 0.5rem; }
    .desktop-surface .lfk-desk > .lfk-week .lfk-slot-photo,
    .desktop-surface .lfk-desk > .lfk-week .lfk-slot-who { display: none; }
    .desktop-surface .lfk-desk > .lfk-week .lfk-slot { grid-template-columns: minmax(0, 1fr); }
    .desktop-surface .lfk-desk > .lfk-week .lfk-slot-title { -webkit-line-clamp: 1; }
}

/* A strip with little room per day (a 1100 window): the head a narrower block,
   a booking's start time only (its span is on the booking itself) */
@container lane (width >= 46rem) {
    @container (width < 64rem) {
        .desktop-surface .lfk-desk > .lfk-week > .k-panel-head { flex-basis: 8.75rem; padding-inline: var(--space-md); }
        .desktop-surface .lfk-desk > .lfk-week .lfk-slot-end { display: none; }
    }
}

/* A very wide strip has room for who booked */
@container lane (width >= 100rem) {
    .desktop-surface .lfk-desk > .lfk-week .lfk-slot-who { display: block; }
}


/* ─── 5. REDTULIP CASH ────────────────────────────────────────────────────── */
/* The navy panel: the brand, Available Balance and the amount; Scheduled,
   Pending and All time; the take-home line; the payout account's door. Copy:
   never "automatic"; "You receive" for take-home (audit note A). */

.desktop-surface .lfk-cash { color: #fff; }

.desktop-surface .lfk-cash-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-sm) var(--space-md);
    padding: var(--pad-panel) var(--pad-panel) var(--space-sm);
}
.desktop-surface .lfk-cash-name > p { margin: 0; }
.desktop-surface .lfk-cash-brand { font-family: var(--font-mark); font-size: var(--type-section); letter-spacing: var(--track-snug); line-height: 1.1; }
.desktop-surface .lfk-cash-red { color: var(--rt-pink-lt, #FF99BD); }
.desktop-surface .lfk-cash .k-meta { color: rgba(255, 255, 255, 0.85); }
.desktop-surface .lfk-cash-amt { margin: 0; color: #fff; font-size: clamp(2.2rem, 1.5rem + 2.4cqi, 3.4rem); }
.desktop-surface .lfk-cash-amt > sup { color: #fff; }

.desktop-surface .lfk-cash-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
    padding: 0 var(--pad-panel);
}
.desktop-surface .lfk-cash-stat {
    display: grid;
    justify-items: center;
    gap: 0.1rem;
    margin: 0;
    padding: var(--space-sm) 0.25rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}
.desktop-surface .lfk-cash-num { font-family: var(--font-head); font-size: var(--type-section); line-height: 1.1; letter-spacing: var(--track-snug); }
.desktop-surface .lfk-cash-num > sup { font-size: max(0.5em, 0.8125rem); top: -0.6em; }   /* the symbol never under 13px */
.desktop-surface .lfk-cash-label { font-size: var(--type-meta); letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
/* What each figure is, in a line (the critic: Scheduled and Pending were never explained) */
.desktop-surface .lfk-cash-what { font-size: var(--type-meta); line-height: 1.25; color: rgba(255, 255, 255, 0.72); text-wrap: balance; }
.desktop-surface .lfk-ink-amber { color: var(--rt-amber-lt, #FBBF24); }
.desktop-surface .lfk-ink-blue  { color: var(--rt-blue-lt, #66A6FF); }
.desktop-surface .lfk-ink-green { color: var(--rt-success-lt, #7DE364); }

.desktop-surface .lfk-earn { display: grid; gap: 0.3rem; padding: var(--space-md) var(--pad-panel) 0; }
.desktop-surface .lfk-earn-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem var(--space-md); margin: 0; }
.desktop-surface .lfk-earn-title { font-family: var(--font-head); font-size: var(--type-body); color: #fff; }
.desktop-surface .lfk-earn-total { font-family: var(--font-head); font-size: var(--type-lead); color: var(--rt-success-lt, #7DE364); }
.desktop-surface .lfk-earn-read { margin: 0 0 0.4rem; min-height: 1.35em; }
.desktop-surface .lfk-earn-empty { margin: 0 0 var(--space-sm); }

/* The chart's box: its width is the panel's, its height grows with it. The
   module draws at this size and draws again when it changes. */
.desktop-surface .lfk-chart {
    position: relative;
    min-width: 0;
    color: rgba(255, 255, 255, 0.82);
}
.desktop-surface .lfk-chart--earn { height: clamp(9.5rem, 7rem + 7cqi, 13.5rem); border-radius: 0.6rem; }
.desktop-surface .lfk-chart:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* The axis words (fixer W, K4): the module writes 13px at .78 opacity inline;
   white on navy that reads small, so the desk sets them a step up and solid.
   !important because the module's size is an inline style on each <text>. */
.desktop-surface .lfk-chart--earn svg text { font-size: 14px !important; fill-opacity: 0.9 !important; }

/* The keyboard hint shows only while the line has keyboard focus: a pointer
   needs no instruction, and the resting readout is the best month (a fact). */
.desktop-surface .lfk-earn-hint { display: none; margin: 0.2rem 0 0; color: rgba(255, 255, 255, 0.85); }
.desktop-surface .lfk-earn:has(.lfk-chart:focus-visible) .lfk-earn-hint { display: block; }

.desktop-surface .lfk-cash-foot { display: grid; gap: 0.5rem; padding: var(--space-md) var(--pad-panel) var(--pad-panel); }
.desktop-surface .lfk-cash-foot > .k-btn { text-decoration: none; }
.desktop-surface .lfk-ink-door { color: var(--ink-blue); }
.desktop-surface .lfk-ink-warn { color: var(--rt-amber-ink); }
.desktop-surface .lfk-cash-note { margin: 0; font-family: var(--font-head); color: #fff; }
.desktop-surface .lfk-cash-note--warn { color: var(--rt-pink-lt, #FF99BD); }


/* ─── 6. KEEPER SCORE ─────────────────────────────────────────────────────── */
/* The segmented ring (Reviews 50 gold, Reliability 30 blue, Standing 20
   purple: docs/domain/keeper-score.md section 2), the grade and the total in
   it, the tier, the three lines, and what would raise it. */

.desktop-surface .lfk-score-body { display: grid; gap: var(--space-md); }
.desktop-surface .lfk-score-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-md) var(--space-lg);
}
.desktop-surface .lfk-ring {
    display: grid;
    place-items: center;
    width: clamp(7.5rem, 5.5rem + 7cqi, 10.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--text);
}
.desktop-surface .lfk-ring > * { grid-area: 1 / 1; }
.desktop-surface .lfk-ring-val { display: grid; justify-items: center; line-height: 1; z-index: 1; }
.desktop-surface .lfk-ring-grade { font-family: var(--font-head); font-size: clamp(2.2rem, 1.6rem + 2cqi, 3rem); letter-spacing: var(--track-tight); color: var(--ink-purple); }
.desktop-surface .lfk-ring-num { font-family: var(--font-head); font-size: var(--type-meta); color: var(--text-soft); margin-top: 0.15rem; }
.desktop-surface .lfk-ring:focus-visible { outline: 3px solid var(--rt-purple); outline-offset: 4px; }

.desktop-surface .lfk-score-id { display: grid; gap: 0.35rem; min-width: 0; }
.desktop-surface .lfk-score-id > p { margin: 0; }
.desktop-surface .lfk-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-family: var(--font-head); font-size: var(--type-section); letter-spacing: var(--track-snug); color: var(--text); line-height: 1.1; }
.desktop-surface .lfk-tier > i { color: var(--rt-green-deep); font-size: 0.8em; }
.desktop-surface .lfk-tier-next { color: var(--ink-purple); font-family: var(--font-head); }

.desktop-surface .lfk-comps { display: grid; gap: 0.25rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.desktop-surface .lfk-comp {
    --_dot: var(--tone, var(--rt-blue));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--type-body);
}
.desktop-surface .lfk-comp-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--_dot); }
.desktop-surface .lfk-comp-label { color: var(--text); }
.desktop-surface .lfk-comp-val { font-family: var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }
.desktop-surface .lfk-comp-max { font-family: var(--font-text); color: var(--text-faint); }
.desktop-surface .lfk-comp-build { font-size: var(--type-meta); color: var(--text-faint); font-style: italic; }

.desktop-surface .lfk-nudge {
    display: grid;
    gap: 0.2rem;
    padding: var(--space-md);
    border-radius: 0.9rem;
    background: linear-gradient(160deg, var(--rt-purple-slt, #EEE8FF), rgba(255, 255, 255, 0.6));
    box-shadow: inset 4px 0 0 var(--rt-purple-deep);
}
.desktop-surface .lfk-nudge > p { margin: 0; }
.desktop-surface .lfk-nudge-eyebrow { color: var(--ink-purple); }
.desktop-surface .lfk-nudge-title { font-size: var(--type-body); color: var(--text); }

@container (width < 22rem) {
    .desktop-surface .lfk-score-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .desktop-surface .lfk-tier { justify-content: center; }
    .desktop-surface .lfk-comps { width: 100%; text-align: left; }
}


/* ─── 7. GETTING SET UP ───────────────────────────────────────────────────── */

.desktop-surface .lfk-setup-head { align-items: flex-end; }
.desktop-surface .lfk-setup-meter { flex: 1 1 100%; height: 0.5rem; }
.desktop-surface .lfk-steps { padding-bottom: 0.3rem; }
.desktop-surface .lfk-steps > .lfk-step:first-child { border-top: 0; }
.desktop-surface .lfk-step { color: var(--text); }
.desktop-surface .lfk-step .k-row-title { color: var(--text); }
.desktop-surface .lfk-step-mark { flex: none; width: 1.5rem; font-size: 1.15rem; color: var(--rt-amber-md); }
.desktop-surface .lfk-step.is-done .lfk-step-mark { color: var(--rt-success); }
.desktop-surface .lfk-step.is-done .k-row-title { color: var(--text-soft); }
.desktop-surface .lfk-step-opt { font-family: var(--font-text); font-size: var(--type-meta); color: var(--text-faint); }
.desktop-surface .lfk-step-cta { pointer-events: none; }
.desktop-surface .lfk-step-done { color: var(--ink-green); }


/* ─── 8. YOUR LISTINGS ────────────────────────────────────────────────────── */

.desktop-surface .lfk-listings-body { display: grid; gap: var(--space-md); }
.desktop-surface .lfk-stats .k-stat { margin: 0; }
.desktop-surface .lfk-stats .k-stat-num small { font-family: var(--font-text); font-size: 0.6em; color: var(--text-faint); }
.desktop-surface .lfk-need-head { margin: 0; font-size: var(--type-body); color: var(--text); }
.desktop-surface .lfk-need { display: grid; gap: 0.45rem; }
.desktop-surface .lfk-need-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    padding: 0.55rem 0.7rem 0.55rem 0.55rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px var(--glass-rule);
    color: var(--text);
    text-decoration: none;
    transition: transform var(--dur-base) var(--ease-spring);
}
.desktop-surface .lfk-need-photo { width: 3rem; aspect-ratio: 1; border-radius: 0.65rem; background: var(--rt-blue-slt) center / cover no-repeat; }
.desktop-surface .lfk-need-main { display: grid; gap: 0.1rem; min-width: 0; }
.desktop-surface .lfk-need-title { font-family: var(--font-head); font-size: var(--type-meta); line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.desktop-surface .lfk-need-why { font-size: var(--type-meta); color: var(--ink-pink); }
.desktop-surface .lfk-need-go { font-family: var(--font-head); font-size: var(--type-meta); color: var(--ink-teal); white-space: nowrap; }
.desktop-surface .lfk-need-row:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lfk-need-ok { margin: 0; color: var(--ink-green); }
@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lfk-need-row:hover { transform: translateX(3px); background: #fff; }
}
@container (width < 24rem) {
    .desktop-surface .lfk-need-row { grid-template-columns: auto minmax(0, 1fr); }
    .desktop-surface .lfk-need-go { grid-column: 2; }
}
.desktop-surface .lfk-listings-foot { justify-content: flex-start; }
.desktop-surface .lfk-listings-foot > .k-btn { text-decoration: none; }
.desktop-surface .lfk-score .k-panel-foot > .k-btn { text-decoration: none; }


/* ─── 9. THE DESK AT LIST ─────────────────────────────────────────────────── */
/* Something is open beside the desk (a booking, later): one column, the queue
   first. The board dissolves so the queue can lead the week; the greeting
   folds to its words (the numbers are on the panels). */

@container lane (width < 46rem) {
    .desktop-surface .lfk-hello { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.15rem; }
    .desktop-surface .lfk-hello-hi { font-size: clamp(1.7rem, 1.1rem + 2.6cqi, 2.3rem); }
    .desktop-surface .lfk-hello-say { font-size: var(--type-body); }
    .desktop-surface .lfk-tilt { display: none; }
    .desktop-surface .lfk-board,
    .desktop-surface .lfk-stack { display: contents; }
    .desktop-surface .lfk-queue { order: 1; }
    .desktop-surface .lfk-week { order: 2; }
    .desktop-surface .lfk-cash,
    .desktop-surface .lfk-score,
    .desktop-surface .lfk-setup,
    .desktop-surface .lfk-listings { order: 3; }
}

@container lane (width < 26rem) {
    .desktop-surface .lfk-hello-eyebrow { display: none; }
    .desktop-surface .lfk-req-line.lfk-req-when { display: none; }
}


/* ─── 10. REDUCED MOTION ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .desktop-surface .lfk-hello::before { animation: none; }
    .desktop-surface .lfk-req,
    .desktop-surface .lfk-req-photo,
    .desktop-surface .lfk-slot,
    .desktop-surface .lfk-need-row { transition: none; }
}

/* A narrow queue with nothing in it: the cup shrinks so the week comes up */
@container (width < 30rem) {
    .desktop-surface .lfk-clear { padding-block: var(--space-md); }
    .desktop-surface .lfk-clear .k-empty-art { width: 3.5rem; font-size: 1.5rem; margin-bottom: 0; }
}
