/* ══ The Playground look: the shared kit ══
 * Loaded on every page, the site's look (lib/look.js, views/partials/head.ejs), unless SITE_LOOK=today.
 * Three parts, none of which touches a page that doesn't use it:
 *   1. tokens on :root (light) and html[data-theme="dark"] (account pages only; marketing pages are light);
 *   2. the pieces, all named lk-: a page in the new look uses them inside <body class="lk-page lk-<page>">;
 *   3. the new menu and footer (views/partials/look/nav.ejs and footer.ejs), on every page.
 * The look is the new home's (public/css/home-next.css, home-next2.css): ink outlines, hard offset shadows, bright
 * bands, heavy Outfit headings and the yellow highlighter. /look shows every piece. */

/* ── 1. Tokens ── */

:root {
    --lk-ink: #17131f;
    --lk-muted: #4f4a60;
    --lk-faint: #736d85;
    --lk-bg: #ffffff;
    --lk-surface: #ffffff;
    --lk-surface-2: #f7f5fc;
    --lk-line: #17131f;
    --lk-line-soft: #d9d3e8;
    --lk-shadow: #17131f;
    --lk-ground: #17131f;
    --lk-on-ground: #ffffff;
    --lk-brand: #7c3aed;
    --lk-brand-deep: #5b21b6;
    /* The brand's purple as a ring, an edge, a caret or an icon on the page's grounds (fills keep --lk-brand, which white
       words read on in both themes). The brand itself in light; a lighter tone in dark, where the brand reads 3.1:1 on
       the surface and 2.8:1 on surface-2. */
    --lk-brand-line: #7c3aed;
    --lk-on-brand: #ffffff;
    --lk-y: #ffe234;
    --lk-on-y: #17131f;
    --lk-lilac: #efe8ff;
    --lk-sun: #fff2a1;
    --lk-mint: #d6f5e3;
    --lk-sky: #dbeaff;
    --lk-rose: #ffe1ec;
    --lk-ok: #15803d;
    --lk-ok-bg: #dcfce7;
    --lk-warn: #92400e;
    --lk-warn-bg: #fef3c7;
    --lk-danger: #b91c1c;
    --lk-danger-bg: #fee2e2;
    --lk-info: #1d4ed8;
    --lk-info-bg: #dbeaff;
    --lk-focus: #7c3aed;
    --lk-dots: radial-gradient(circle at 1px 1px, rgba(23, 19, 31, 0.13) 1px, transparent 1.5px) 0 0 / 22px 22px;
    --lk-disp: "Outfit", "DM Sans", system-ui, sans-serif;
    --lk-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lk-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    --lk-r-sm: 10px;
    --lk-r: 14px;
    --lk-r-lg: 20px;
    --lk-bw: 2px;
    --lk-sh-sm: 3px 3px 0 var(--lk-shadow);
    --lk-sh: 4px 4px 0 var(--lk-shadow);
    --lk-sh-lg: 6px 6px 0 var(--lk-shadow);
    --lk-nav-h: 68px;
    --lk-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    /* The frame: the same sizes as site-layout.css's (which only the public pages load), so a page in the new look
       lines up with the home's hero at every width, the account pages included. */
    --lk-gutter: 16px;
    --lk-max: 1120px;
    --lk-inset: 16px;
    --lk-frame: min(var(--lk-max), calc(100% - 2 * var(--lk-gutter)));
    /* What a chosen thing is filled and edged with: a tab, a side link, the menu's page. */
    --lk-pick: var(--lk-sun);
    --lk-pick-line: var(--lk-line);
}

@media (min-width: 641px) {
    :root {
        --lk-gutter: 20px;
        --lk-inset: 36px;
    }
}

@media (min-width: 1024px) {
    :root {
        --lk-gutter: 32px;
        --lk-max: 1152px;
        --lk-inset: 32px;
    }
}

@media (min-width: 1280px) {
    :root {
        --lk-gutter: 40px;
        --lk-inset: 40px;
    }
}

@media (min-width: 1440px) {
    :root {
        --lk-max: 1296px;
        --lk-inset: 44px;
    }
}

@media (min-width: 1920px) {
    :root {
        --lk-gutter: 48px;
        --lk-max: 1440px;
        --lk-inset: 48px;
    }
}

@media (min-width: 2560px) {
    :root {
        --lk-max: 1584px;
        --lk-inset: 56px;
    }
}

/* Dark is for the account pages only: their body says lk-app, and they follow striqr_dark_mode (views/partials/head.ejs
   sets data-theme). A marketing page that sets data-theme dark itself (today's /about) keeps the light menu and footer.
   The outlines turn light, the hard shadows lilac (as on the home's dark bands), the bands deep tints, and what's chosen
   lilac with a lilac edge. */
html[data-theme="dark"] body.lk-app {
    --lk-ink: #f3f0fa;
    --lk-muted: #b8b1ca;
    --lk-faint: #8f88a3;
    --lk-bg: #110e18;
    --lk-surface: #1b1725;
    --lk-surface-2: #241f31;
    --lk-line: #d8d1ea;
    --lk-line-soft: #3a3350;
    --lk-shadow: #8b74e0;
    --lk-ground: #08070c;
    --lk-brand-deep: #c4b5fd;
    --lk-brand-line: #a78bfa;
    --lk-lilac: #2b2244;
    --lk-sun: #383114;
    --lk-mint: #123528;
    --lk-sky: #162b47;
    --lk-rose: #3f1d2e;
    --lk-ok: #86efac;
    --lk-ok-bg: #12301f;
    --lk-warn: #fcd34d;
    --lk-warn-bg: #3a2a0b;
    --lk-danger: #fca5a5;
    --lk-danger-bg: #3f1518;
    --lk-info: #93c5fd;
    --lk-info-bg: #13274a;
    /* Focus is the highlighter's yellow: what's chosen is edged in lilac (--lk-pick-line), and a ring in the same lilac
       vanished on a chosen control. */
    --lk-focus: #ffe234;
    --lk-dots: radial-gradient(circle at 1px 1px, rgba(243, 240, 250, 0.1) 1px, transparent 1.5px) 0 0 / 22px 22px;
    --lk-pick: var(--lk-lilac);
    --lk-pick-line: var(--lk-brand-deep);
    /* A custom property's var() is worked out where it is set, so the shadows are set again with the new colour. */
    --lk-sh-sm: 3px 3px 0 var(--lk-shadow);
    --lk-sh: 4px 4px 0 var(--lk-shadow);
    --lk-sh-lg: 6px 6px 0 var(--lk-shadow);
    color-scheme: dark;
}

/* 3. The highlighter keeps ink words in dark, over the whole line. */
html[data-theme="dark"] body.lk-app .lk-mark {
    padding: 0.04em 0.12em;
    background-size: 100% 100%;
    color: var(--lk-on-y);
}

/* ── 2. The page ── */

/* The sticky menu never hides what has focus: the page scrolls it clear. No weight of its own, so a page with
   taller sticky bars (Settings' chips) sets its own on html and wins. */
:where(html:has(.lk-nav)) {
    scroll-padding-top: calc(var(--lk-nav-h) + 16px);
}

.lk-page {
    margin: 0;
    background: var(--lk-bg);
    color: var(--lk-ink);
    font-family: var(--lk-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    --st-nav-h: var(--lk-nav-h);
}

.lk-page *,
.lk-page *::before,
.lk-page *::after {
    box-sizing: border-box;
}

/* :where() keeps these at the weight of a plain element rule, so any class (the kit's or a page's) wins. */
:where(.lk-page) h1,
:where(.lk-page) h2,
:where(.lk-page) h3,
:where(.lk-page) h4 {
    margin: 0;
    font-family: var(--lk-disp);
    color: inherit;
    text-wrap: balance;
}

:where(.lk-page) p {
    margin: 0;
}

/* The hidden attribute always wins: the pieces set display (a button is inline-flex), which would otherwise show a
   form, a confirm step or a price a page's script has hidden. */
.lk-page [hidden],
.lk-nav [hidden],
.lk-footer [hidden] {
    display: none !important;
}

:where(.lk-page) img,
:where(.lk-page) svg,
:where(.lk-page) video {
    max-width: 100%;
}

:where(.lk-page) :focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 3px;
}

:where(.lk-page) ::selection {
    background: var(--lk-y);
    color: var(--lk-on-y);
}

/* ── Layout ── */

/* The frame (tokens above), as site-layout.css draws today's: 16 px outside it and 16 inside on phones, 20 and 36 on
   tablets, then 1,152 px wide from 1,024, 1,296 from 1,440, 1,440 from 1,920 and 1,584 from 2,560. So every page lines
   up with the menu and the home's hero at every width. */
.lk-wrap {
    width: var(--lk-frame);
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--lk-inset), env(safe-area-inset-left, 0px));
    padding-right: max(var(--lk-inset), env(safe-area-inset-right, 0px));
}

.lk-wrap--narrow {
    width: min(var(--lk-frame), calc(52rem + 2 * var(--lk-inset)));
}

.lk-band {
    position: relative;
    padding: 72px 0;
    background: var(--lk-bg);
    scroll-margin-top: calc(var(--lk-nav-h) + 8px);
}

@media (min-width: 760px) {
    .lk-band {
        padding: 96px 0;
    }
}

.lk-band--lilac,
.lk-band--sun,
.lk-band--mint,
.lk-band--sky,
.lk-band--rose {
    border-block: var(--lk-bw) solid var(--lk-line);
}

.lk-band--lilac { background: var(--lk-lilac); }
.lk-band--sun { background: var(--lk-sun); }
.lk-band--mint { background: var(--lk-mint); }
.lk-band--sky { background: var(--lk-sky); }
.lk-band--rose { background: var(--lk-rose); }
.lk-band--white { background: var(--lk-surface); }
.lk-band--dots { background: var(--lk-dots), var(--lk-bg); }

.lk-band--ink {
    background: var(--lk-ground);
    color: var(--lk-on-ground);
    /* Words on the ground are white; cards and buttons on it stay white with ink words, and their hard shadows turn
       lilac so they keep an edge (the home's dark bands do the same). */
    --lk-muted: rgba(255, 255, 255, 0.74);
    --lk-shadow: #a78bfa;
    --lk-brand-deep: #c4b5fd;
    --lk-sh-sm: 3px 3px 0 var(--lk-shadow);
    --lk-sh: 4px 4px 0 var(--lk-shadow);
    --lk-sh-lg: 6px 6px 0 var(--lk-shadow);
}

.lk-band--ink .lk-card,
.lk-band--ink .lk-window,
.lk-band--ink .lk-btn {
    --lk-muted: #4f4a60;
    --lk-brand-deep: #5b21b6;
}

/* Two bands of the same tint in a row share one edge. */
.lk-band--lilac + .lk-band--lilac,
.lk-band--sun + .lk-band--sun,
.lk-band--mint + .lk-band--mint {
    border-top: 0;
}

.lk-section {
    padding: 48px 0;
}

.lk-stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap, 16px);
}

.lk-stack > * {
    min-width: 0;
}

.lk-grid {
    display: grid;
    gap: var(--gap, 20px);
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .lk-grid--2,
    .lk-grid--3,
    .lk-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .lk-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lk-grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.lk-split {
    display: grid;
    gap: 40px;
    align-items: center;
}

.lk-split > * {
    min-width: 0;
}

@media (min-width: 900px) {
    .lk-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(40px, 5vw, 96px);
    }
}

/* ── Type ── */

.lk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font: 700 13px/1.3 var(--lk-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lk-brand-deep);
}

.lk-eyebrow svg {
    width: 15px;
    height: 15px;
}

.lk-h1 {
    font-family: var(--lk-disp);
    font-size: clamp(38px, 3.9vw, 54px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.lk-h2 {
    font-family: var(--lk-disp);
    font-size: clamp(30px, 3.1vw, 44px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.lk-h3 {
    font-family: var(--lk-disp);
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.lk-eyebrow + .lk-h1,
.lk-eyebrow + .lk-h2 {
    margin-top: 12px;
}

.lk-lead {
    max-width: 38rem;
    font-size: clamp(17px, 1.3vw, 19px);
    line-height: 1.55;
    color: var(--lk-muted);
}

.lk-h1 + .lk-lead,
.lk-h2 + .lk-lead {
    margin-top: 16px;
}

.lk-mark {
    padding: 0 0.08em;
    border-radius: 0.12em;
    background: linear-gradient(var(--lk-y), var(--lk-y)) no-repeat 0 88% / 100% 0.82em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* On an ink band the highlighter covers the whole line, so no letter's top is dark on dark. */
.lk-band--ink .lk-mark {
    padding: 0.04em 0.12em;
    background-size: 100% 100%;
    color: var(--lk-on-y);
}

.lk-muted {
    color: var(--lk-muted);
}

.lk-mono {
    font-family: var(--lk-mono);
}

.lk-prose {
    max-width: 68ch;
    font-size: 17px;
    line-height: 1.7;
}

.lk-prose > * + * {
    margin-top: 1em;
}

.lk-prose h2 {
    margin-top: 2em;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.15;
}

.lk-prose h3 {
    margin-top: 1.6em;
    font-size: 20px;
    font-weight: 800;
}

/* Text links only: a button or a card inside prose keeps its own look. :where() adds no weight, so a page's own
   prose link rules still win. */
.lk-prose a:where(:not(.lk-btn, .lk-card)) {
    color: var(--lk-brand-deep);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.lk-prose ul,
.lk-prose ol {
    padding-left: 1.3em;
}

.lk-prose li + li {
    margin-top: 0.4em;
}

.lk-prose code {
    padding: 0.1em 0.35em;
    border-radius: 6px;
    background: var(--lk-lilac);
    font: 0.88em var(--lk-mono);
}

.lk-link {
    color: var(--lk-brand-deep);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.lk-link:hover {
    text-decoration-color: var(--lk-y);
}

/* ── Actions ── */

.lk-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 0 20px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh);
    color: var(--lk-ink);
    font: 700 15px/1.2 var(--lk-body);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.lk-btn:hover {
    color: var(--lk-ink);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--lk-shadow);
}

.lk-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--lk-shadow);
}

.lk-btn svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.lk-btn--brand,
.lk-btn--brand:hover {
    background: var(--lk-brand);
    color: var(--lk-on-brand);
}

.lk-btn--yellow,
.lk-btn--yellow:hover {
    background: var(--lk-y);
    color: var(--lk-on-y);
}

.lk-btn--ink,
.lk-btn--ink:hover {
    background: var(--lk-ink);
    color: var(--lk-bg);
    box-shadow: 4px 4px 0 var(--lk-brand);
}

.lk-btn--ink:hover {
    box-shadow: 5px 5px 0 var(--lk-brand);
}

/* The quiet one: for a third action beside two loud ones, and for Cancel. */
.lk-btn--quiet {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--lk-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.lk-btn--quiet:hover,
.lk-btn--quiet:active {
    transform: none;
    box-shadow: none;
    text-decoration-color: var(--lk-y);
}

/* Whatever size it is, the quiet one has no shadow. */
.lk-btn.lk-btn--quiet,
.lk-btn.lk-btn--quiet:hover {
    box-shadow: none;
}

.lk-btn--danger,
.lk-btn--danger:hover {
    background: var(--lk-danger-bg);
    color: var(--lk-danger);
}

/* The last step of something that can't be undone (Delete, Unlink, Remove): solid, never a tint, so the safe choice
   beside it never looks like the main one. --danger is for the button that opens that step. */
.lk-btn--danger-solid,
.lk-btn--danger-solid:hover {
    background: var(--lk-danger);
    color: var(--lk-bg);
}

.lk-btn--sm {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    box-shadow: var(--lk-sh-sm);
    font-size: 14px;
}

.lk-btn--sm:hover {
    box-shadow: 4px 4px 0 var(--lk-shadow);
}

.lk-btn--lg {
    min-height: 56px;
    padding: 0 26px;
    font-size: 17px;
}

.lk-btn--block {
    display: flex;
    width: 100%;
}

/* Off: a flat grey button with faint words (4.5:1 or more in both themes), never a see-through one. A busy button is
   working, not off, so it keeps its own colours and its words while it shows the spinner. */
.lk-btn[disabled]:not([aria-busy="true"]),
.lk-btn[aria-disabled="true"]:not([aria-busy="true"]) {
    border-color: var(--lk-faint);
    background: var(--lk-surface-2);
    color: var(--lk-faint);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.lk-btn[aria-busy="true"] {
    transform: none;
    cursor: progress;
}

.lk-btn[aria-busy="true"]::after {
    content: "";
    width: 15px;
    height: 15px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: lk-spin 0.7s linear infinite;
}

@keyframes lk-spin {
    to { transform: rotate(360deg); }
}

.lk-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* ── Pieces ── */

.lk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 11px;
    border: 1.5px solid var(--lk-line);
    border-radius: 999px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    font: 700 13px/1.25 var(--lk-body);
    white-space: nowrap;
}

.lk-chip svg {
    width: 14px;
    height: 14px;
}

.lk-chip--lilac { background: var(--lk-lilac); }
.lk-chip--mint { background: var(--lk-mint); }
.lk-chip--sun { background: var(--lk-sun); }
.lk-chip--sky { background: var(--lk-sky); }
.lk-chip--rose { background: var(--lk-rose); }
.lk-chip--yellow { background: var(--lk-y); color: var(--lk-on-y); }
.lk-chip--ink { background: var(--lk-ink); color: var(--lk-bg); }
.lk-chip--brand { background: var(--lk-brand); border-color: var(--lk-brand); color: var(--lk-on-brand); }

.lk-chip--sm {
    padding: 3px 8px;
    font-size: 11.5px;
    white-space: normal;
}

.lk-card {
    position: relative;
    min-width: 0;
    padding: 24px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-lg);
    color: var(--lk-ink);
}

.lk-card--flat {
    box-shadow: none;
}

.lk-card--soft {
    border-color: transparent;
    background: var(--lk-surface-2);
    box-shadow: none;
}

.lk-card--bare {
    padding: 0;
    overflow: hidden;
}

a.lk-card,
.lk-card--hover {
    display: block;
    text-decoration: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

a.lk-card:hover,
.lk-card--hover:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--lk-shadow);
}

a.lk-card:active,
.lk-card--hover:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--lk-shadow);
}

.lk-window {
    overflow: hidden;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-lg);
}

.lk-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border-bottom: var(--lk-bw) solid var(--lk-line);
    background: var(--lk-surface-2);
}

.lk-window-bar > i {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--lk-line);
    border-radius: 50%;
    background: var(--lk-surface);
}

.lk-window-bar > i:nth-of-type(1) { background: #ff8fa3; }
.lk-window-bar > i:nth-of-type(2) { background: var(--lk-y); }
.lk-window-bar > i:nth-of-type(3) { background: #7ee2a8; }

.lk-window-url {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: 10px;
    padding: 3px 12px;
    overflow: hidden;
    border: 1.5px solid var(--lk-line-soft);
    border-radius: 999px;
    background: var(--lk-surface);
    color: var(--lk-muted);
    font: 500 12.5px var(--lk-mono);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-window-body {
    position: relative;
}

.lk-sticker {
    position: absolute;
    z-index: 3;
    padding: 7px 12px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    box-shadow: var(--lk-sh-sm);
    background: var(--lk-y);
    color: var(--lk-on-y);
    font: 800 14px var(--lk-disp);
    white-space: nowrap;
    pointer-events: none;
    transform: rotate(var(--r, -4deg));
}

.lk-sticker--mint { background: var(--lk-mint); color: var(--lk-ink); }
.lk-sticker--lilac { background: var(--lk-lilac); color: var(--lk-ink); }
.lk-sticker--sky { background: var(--lk-sky); color: var(--lk-ink); }
.lk-sticker--rose { background: var(--lk-rose); color: var(--lk-ink); }

.lk-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 16px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-ink);
    font-size: 15px;
}

.lk-notice > :not(svg) {
    grid-column: 2;
}

.lk-notice > svg {
    grid-row: 1 / span 2;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

/* A notice with no icon: its words take the whole width, with no empty column before them. */
.lk-notice:not(:has(> svg)) {
    grid-template-columns: minmax(0, 1fr);
}

.lk-notice:not(:has(> svg)) > * {
    grid-column: 1;
}

.lk-notice-title {
    font-weight: 800;
}

.lk-notice--info { background: var(--lk-info-bg); }
.lk-notice--ok { background: var(--lk-ok-bg); }
.lk-notice--warn { background: var(--lk-warn-bg); }
.lk-notice--danger { background: var(--lk-danger-bg); }

.lk-notice--info > svg { color: var(--lk-info); }
.lk-notice--ok > svg { color: var(--lk-ok); }
.lk-notice--warn > svg { color: var(--lk-warn); }
.lk-notice--danger > svg { color: var(--lk-danger); }

/* Tabs: role=tablist / role=tab with aria-selected, role=tabpanel. The chosen tab is ink. */
.lk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lk-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    font: 700 14.5px var(--lk-body);
    cursor: pointer;
    text-decoration: none;
}

.lk-tab:hover {
    background: var(--lk-lilac);
}

.lk-tab[aria-selected="true"],
.lk-tab[aria-current="page"] {
    background: var(--lk-ink);
    color: var(--lk-bg);
    box-shadow: 3px 3px 0 var(--lk-brand);
}

.lk-tabpanel[hidden] {
    display: none;
}

/* The home's audience switch: buttons with aria-pressed inside one outlined box. */
.lk-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
}

.lk-seg > button,
.lk-seg > a {
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--lk-ink);
    font: 700 14px var(--lk-body);
    text-decoration: none;
    cursor: pointer;
}

.lk-seg > button:not([aria-pressed="true"]):hover,
.lk-seg > a:not([aria-current="page"]):hover {
    background: var(--lk-lilac);
}

.lk-seg > [aria-pressed="true"],
.lk-seg > [aria-current="page"] {
    background: var(--lk-ink);
    color: var(--lk-bg);
}

.lk-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
}

.lk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.lk-table th,
.lk-table td {
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--lk-line-soft);
    text-align: left;
    vertical-align: top;
}

.lk-table th {
    background: var(--lk-surface-2);
    color: var(--lk-muted);
    font: 700 12px/1.3 var(--lk-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lk-table tr:last-child td {
    border-bottom: 0;
}

/* A settings row: what it is on the left, its control on the right; one column on phones. */
.lk-rows {
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh);
}

.lk-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    align-items: center;
    padding: 18px 20px;
}

.lk-row + .lk-row {
    border-top: 1.5px solid var(--lk-line-soft);
}

.lk-row > * {
    min-width: 0;
}

@media (max-width: 699.98px) {
    .lk-row > :last-child:not(:first-child):not(.lk-switch) {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (min-width: 700px) {
    .lk-row {
        padding: 18px 24px;
    }
}

.lk-row-title {
    font-weight: 800;
}

.lk-row-desc {
    margin-top: 2px;
    color: var(--lk-muted);
    font-size: 14.5px;
}

.lk-app-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 40px 0 28px;
}

.lk-app-head h1 {
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.lk-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lk-side a,
.lk-side button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: var(--lk-bw) solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--lk-muted);
    font: 700 15px var(--lk-body);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lk-side a:hover,
.lk-side button:hover {
    background: var(--lk-surface-2);
    color: var(--lk-ink);
}

.lk-side [aria-current="page"],
.lk-side [aria-current="true"],
.lk-side [aria-selected="true"] {
    border-color: var(--lk-pick-line);
    background: var(--lk-pick);
    color: var(--lk-ink);
}

.lk-side svg {
    width: 18px;
    height: 18px;
}

.lk-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 48px 24px;
    border: var(--lk-bw) dashed var(--lk-line-soft);
    border-radius: var(--lk-r-lg);
    background: var(--lk-dots), var(--lk-surface);
    text-align: center;
}

.lk-empty h2,
.lk-empty h3 {
    font-size: 22px;
    font-weight: 800;
}

.lk-empty p {
    max-width: 30rem;
    color: var(--lk-muted);
}

.lk-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lk-stat b {
    font: 900 clamp(28px, 2.6vw, 38px)/1 var(--lk-disp);
    letter-spacing: -0.02em;
}

.lk-stat span {
    color: var(--lk-muted);
    font-size: 14px;
}

.lk-meter {
    height: 12px;
    overflow: hidden;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 999px;
    background: var(--lk-surface-2);
}

.lk-meter::before {
    content: "";
    display: block;
    width: calc(var(--value, 0) * 100%);
    height: 100%;
    background: var(--lk-brand);
}

.lk-menu {
    min-width: 220px;
    padding: 6px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh);
}

.lk-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--lk-ink);
    font: 600 14.5px var(--lk-body);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lk-menu-item:hover,
.lk-menu-item:focus-visible {
    background: var(--lk-lilac);
    outline-offset: -3px;
}

dialog.lk-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 28px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-lg);
    color: var(--lk-ink);
}

dialog.lk-dialog::backdrop {
    background: rgba(23, 19, 31, 0.55);
}

.lk-kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 1px 6px;
    border: 1.5px solid var(--lk-line);
    border-bottom-width: 3px;
    border-radius: 7px;
    background: var(--lk-surface);
    font: 600 0.82em/1.4 var(--lk-mono);
    text-align: center;
}

.lk-code {
    padding: 0.1em 0.38em;
    border-radius: 6px;
    background: var(--lk-lilac);
    color: var(--lk-ink);
    font: 0.88em var(--lk-mono);
}

.lk-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 50%;
    background: var(--lk-y);
    color: var(--lk-on-y);
    font: 800 15px/1 var(--lk-disp);
    text-transform: uppercase;
}

.lk-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-skel {
    display: block;
    min-height: 1em;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--lk-surface-2) 0%, var(--lk-lilac) 50%, var(--lk-surface-2) 100%) 0 0 / 200% 100%;
    animation: lk-shine 1.4s ease-in-out infinite;
}

@keyframes lk-shine {
    to { background-position: -200% 0; }
}

.lk-divider {
    height: 0;
    margin: 24px 0;
    border: 0;
    border-top: var(--lk-bw) dashed var(--lk-line-soft);
}

.lk-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ── Forms ── */

.lk-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.lk-label {
    color: var(--lk-ink);
    font: 700 14.5px/1.3 var(--lk-body);
}

.lk-input,
.lk-select,
.lk-textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-ink);
    font: 500 16px/1.4 var(--lk-body);
    transition: box-shadow 0.12s ease;
}

.lk-input::placeholder,
.lk-textarea::placeholder {
    color: var(--lk-faint);
}

.lk-input:focus,
.lk-select:focus,
.lk-textarea:focus {
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

.lk-textarea {
    min-height: 120px;
    resize: vertical;
}

.lk-select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%2317131f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

html[data-theme="dark"] body.lk-app .lk-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23f3f0fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lk-input[aria-invalid="true"],
.lk-select[aria-invalid="true"],
.lk-textarea[aria-invalid="true"] {
    border-color: var(--lk-danger);
    box-shadow: 3px 3px 0 var(--lk-danger);
}

.lk-input[disabled],
.lk-select[disabled],
.lk-textarea[disabled],
.lk-input[readonly] {
    background: var(--lk-surface-2);
    box-shadow: none;
    color: var(--lk-muted);
}

.lk-help {
    color: var(--lk-muted);
    font-size: 14px;
}

.lk-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--lk-danger);
    font-size: 14px;
    font-weight: 700;
}

.lk-error:empty {
    display: none;
}

.lk-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--lk-ink);
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}

.lk-check input[type="checkbox"],
.lk-check input[type="radio"] {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 0;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 6px;
    background: var(--lk-surface);
    appearance: none;
    cursor: pointer;
}

.lk-check input[type="radio"] {
    border-radius: 50%;
}

.lk-check input[type="checkbox"]:checked {
    background: var(--lk-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4.5 4.5L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
    border-color: var(--lk-line);
}

.lk-check input[type="radio"]:checked {
    background: radial-gradient(circle, var(--lk-brand) 0 45%, transparent 50%), var(--lk-surface);
}

.lk-check input:focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

/* A checkbox with role=switch: the track and its knob. */
.lk-switch {
    flex: 0 0 auto;
    position: relative;
    width: 50px;
    height: 30px;
    margin: 0;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 999px;
    background: var(--lk-surface-2);
    appearance: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lk-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 50%;
    background: var(--lk-surface);
    transition: transform 0.15s var(--lk-ease);
}

.lk-switch:checked {
    background: var(--lk-brand);
}

.lk-switch:checked::after {
    transform: translateX(20px);
    background: var(--lk-y);
}

.lk-switch:focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

.lk-switch[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.lk-fieldset {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.lk-legend {
    margin-bottom: 4px;
    padding: 0;
    font: 800 16px var(--lk-body);
}

/* ── 3. The menu (views/partials/look/nav.ejs) ── */

.lk-nav :focus-visible,
.lk-footer :focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

/* Every rule here starts with .lk-nav, so the old pages' own rules (home.css, dashboard.css), which pages without a
   view of their own still load, can't reach into it. */
.lk-nav {
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: var(--lk-bw) solid var(--lk-line);
    background: var(--lk-bg);
    color: var(--lk-ink);
    font-family: var(--lk-body);
}

.lk-nav *,
.lk-nav *::before,
.lk-nav *::after {
    box-sizing: border-box;
}

.lk-nav .lk-nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--lk-nav-h);
}

.lk-nav .lk-nav-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-right: 8px;
    color: var(--lk-ink);
    text-decoration: none;
}

.lk-nav .lk-nav-logo {
    display: block;
    width: auto;
    height: 30px;
}

.lk-nav .lk-nav-logo .st-logo-mark {
    color: var(--lk-brand-line);
}

.lk-nav .lk-nav-links {
    display: none;
}

.lk-nav .lk-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: var(--lk-bw) solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--lk-muted);
    font: 700 15px/1 var(--lk-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.lk-nav .lk-nav-link:hover,
.lk-nav .lk-nav-group.is-open > .lk-nav-link {
    background: var(--lk-surface-2);
    color: var(--lk-ink);
}

.lk-nav .lk-nav-link.is-active,
.lk-nav .lk-nav-link[aria-current="page"] {
    border-color: var(--lk-pick-line);
    background: var(--lk-pick);
    color: var(--lk-ink);
}

.lk-nav .lk-nav-chev {
    width: 12px;
    height: 12px;
    transition: transform 0.15s ease;
}

.lk-nav .lk-nav-group.is-open .lk-nav-chev {
    transform: rotate(180deg);
}

.lk-nav .lk-nav-group {
    position: relative;
}

.lk-nav .lk-nav-panel {
    display: none;
}

.lk-nav .lk-nav-group.is-open > .lk-nav-panel {
    display: grid;
}

.lk-nav .lk-nav-col-title {
    margin: 0 0 6px;
    padding: 0 10px;
    color: var(--lk-brand-deep);
    font: 700 12px/1.3 var(--lk-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lk-nav .lk-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lk-nav .lk-nav-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 2px 12px;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--lk-ink);
    text-decoration: none;
}

.lk-nav .lk-nav-item:hover,
.lk-nav .lk-nav-item:focus-visible {
    background: var(--lk-lilac);
}

.lk-nav .lk-nav-item[aria-current="page"] {
    background: var(--lk-pick);
}

.lk-nav .lk-nav-icon {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 38px;
    height: 38px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 11px;
    background: var(--tint, var(--lk-lilac));
    color: var(--lk-ink);
}

.lk-nav .lk-nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-nav .lk-nav-item b {
    font: 800 15px/1.2 var(--lk-body);
}

.lk-nav .lk-nav-item small {
    color: var(--lk-muted);
    font-size: 13.5px;
    line-height: 1.35;
}

.lk-nav .lk-nav-actions {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-left: auto;
}

.lk-nav .lk-nav-login {
    display: none;
    padding: 8px 10px;
    color: var(--lk-ink);
    font: 700 15px var(--lk-body);
    text-decoration: none;
}

.lk-nav .lk-nav-login:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.lk-nav .lk-nav-cta {
    min-height: 42px;
}

.lk-nav .lk-nav-cta-short {
    display: none;
}

/* The burger never shrinks; on small phones Start coding says just Start. */
.lk-nav .lk-nav-burger,
.lk-nav .lk-nav-brand {
    flex-shrink: 0;
}

@media (max-width: 379.98px) {
    .lk-nav .lk-nav-cta-long {
        display: none;
    }

    .lk-nav .lk-nav-cta-short {
        display: inline;
    }
}

.lk-nav .lk-nav-links {
    order: 1;
}

.lk-nav .lk-nav-actions {
    order: 2;
}

/* The burger is just after the brand in the page (so its sheet follows it), and shows last. */
.lk-nav .lk-nav-burger {
    order: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    cursor: pointer;
}

.lk-nav .lk-nav-burger svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.lk-nav .lk-nav-burger .lk-nav-x,
.lk-nav.is-nav-open .lk-nav-burger .lk-nav-bars {
    display: none;
}

.lk-nav.is-nav-open .lk-nav-burger .lk-nav-x {
    display: block;
}

/* Where a page's own account menu goes (navAccount: false, the dashboard): no box of its own. */
.lk-nav .lk-nav-slot {
    display: contents;
}

/* The account button and its menu keep today's ids and classes (public/js/nav-menu.js, dashboard.js). */
header.lk-nav .account-menu {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
}

header.lk-nav .lk-nav-account-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    max-width: 300px;
    margin: 0;
    padding: 3px 12px 3px 3px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 999px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    font: 700 14.5px var(--lk-body);
    cursor: pointer;
}

header.lk-nav .lk-nav-account-btn .lk-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* A long username ends in an ellipsis rather than pushing the bar off the screen. */
header.lk-nav .account-name {
    max-width: 16ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header.lk-nav .lk-nav-unverified {
    padding: 2px 7px;
    border: 1.5px solid var(--lk-warn);
    border-radius: 999px;
    background: var(--lk-warn-bg);
    color: var(--lk-warn);
    font-size: 11.5px;
    font-weight: 800;
}

header.lk-nav .account-chevron {
    flex: 0 0 auto;
}

header.lk-nav .account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 5;
    display: none;
    width: 260px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    color: var(--lk-ink);
    font-family: var(--lk-body);
    padding: 6px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh);
}

header.lk-nav .account-menu.open .account-dropdown {
    display: block;
}

header.lk-nav .dropdown-head {
    padding: 10px 12px 12px;
    border-bottom: 1.5px dashed var(--lk-line-soft);
    margin-bottom: 6px;
}

header.lk-nav .dh-name {
    overflow: hidden;
    font: 800 15px var(--lk-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}

header.lk-nav .dh-unverified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--lk-ink);
    font-size: 0.85rem;
    font-weight: 700;
}

header.lk-nav .dh-unverified::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d97706;
}

header.lk-nav .dh-mail {
    overflow: hidden;
    color: var(--lk-muted);
    font-family: var(--lk-body);
    font-size: 13.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header.lk-nav .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--lk-ink);
    font: 600 14.5px var(--lk-body);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

header.lk-nav .dropdown-item:hover,
header.lk-nav .dropdown-item:focus-visible {
    background: var(--lk-lilac);
}

header.lk-nav .dropdown-item.is-danger {
    color: var(--lk-danger);
}

header.lk-nav .dropdown-divider {
    height: 0;
    margin: 6px 4px;
    border-top: 1.5px dashed var(--lk-line-soft);
}

.lk-nav .lk-nav-sheet-only {
    display: none;
}

/* A school pupil's menu (views/partials/look/nav.ejs): My work, Lessons, New sandbox and Help, and an account button
   that says it's a school account. Every target is 44 px or more. */
.lk-nav.lk-nav--pupil .lk-nav-link {
    min-height: 44px;
}

/* (0,3,0): over header.lk-nav's own (0,2,1). */
.lk-nav.lk-nav--pupil .lk-nav-account-btn {
    min-height: 48px;
}

header.lk-nav .lk-nav-account-who {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.15;
}

header.lk-nav .lk-nav-account-kind {
    color: var(--lk-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.lk-nav.lk-nav--pupil .dropdown-item {
    min-height: 44px;
}

@media (max-width: 479.98px) {
    header.lk-nav .lk-nav-account-kind {
        display: none;
    }
}

/* A school pupil's footer (views/partials/look/footer.ejs): each link a 44 px row. */
.lk-footer .lk-foot-col--pupil a,
.lk-footer .lk-foot-col--pupil .st-cookie-settings-btn {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0;
}

/* And the rest of a pupil's menu and footer: the logos, the language button and Back to top, 44 px too. */
.lk-nav.lk-nav--pupil .lk-nav-brand,
.lk-footer.lk-footer--pupil .lk-foot-logo,
.lk-footer.lk-footer--pupil .lk-foot-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.lk-nav.lk-nav--pupil .st-lang-combo-btn,
.lk-footer.lk-footer--pupil .st-lang-combo-btn {
    min-height: 44px;
}

/* Phones and tablets: the burger opens the links as a sheet under the bar; Product and Schools open in place. */
@media (max-width: 1023.98px) {
    .lk-nav.is-nav-open .lk-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        max-height: calc(100dvh - var(--lk-nav-h));
        overflow-y: auto;
        padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        min-height: calc(100dvh - var(--lk-nav-h));
        border-bottom: var(--lk-bw) solid var(--lk-line);
        background: var(--lk-bg);
        overscroll-behavior: contain;
    }

    .lk-nav .lk-nav-link {
        justify-content: space-between;
        width: 100%;
        min-height: 50px;
        padding: 12px 14px;
        font-size: 17px;
        color: var(--lk-ink);
    }

    .lk-nav .lk-nav-group.is-open > .lk-nav-panel {
        gap: 14px;
        padding: 6px 0 10px;
    }

    .lk-nav .lk-nav-sheet-only {
        display: flex;
    }

    .lk-nav .lk-nav-sheet-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1.5px dashed var(--lk-line-soft);
    }

    .lk-nav .lk-nav-sheet-lang {
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 6px;
        color: var(--lk-muted);
        font-size: 14px;
    }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
    .lk-nav.is-nav-open .lk-nav-links > * {
        width: 100%;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .lk-nav .lk-nav-group.is-open > .lk-nav-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    .lk-nav .lk-nav-group.is-open > .lk-nav-panel > :only-child .lk-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lk-nav .lk-nav-sheet-actions {
        flex-direction: row;
    }
}

@media (max-width: 479.98px) {
    .lk-nav .lk-nav-logo {
        height: 26px;
    }


    .lk-nav .lk-nav-cta {
        padding: 0 12px;
        font-size: 13.5px;
    }

    header.lk-nav .account-name {
        display: none;
    }

    header.lk-nav .lk-nav-account-btn {
        padding-right: 8px;
    }
}

/* Below 1,280 px an unverified account's badge is a dot on the avatar (its word still read out), and a long name is
   cut sooner, so the bar never runs off the screen. */
@media (max-width: 1279.98px) {
    header.lk-nav .lk-nav-unverified {
        position: absolute;
        top: 1px;
        left: 27px;
        width: 13px;
        height: 13px;
        padding: 0;
        overflow: hidden;
        border: 2px solid var(--lk-surface);
        border-radius: 50%;
        background: #d97706;
        color: transparent;
        font-size: 0;
    }

    header.lk-nav .account-name {
        max-width: 12ch;
    }
}

@media (min-width: 1024px) {
    .lk-nav .lk-nav-links {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .lk-nav .lk-nav-burger {
        display: none;
    }

    .lk-nav .lk-nav-login {
        display: inline-flex;
    }

    .lk-nav .lk-nav-group.is-open > .lk-nav-panel {
        position: absolute;
        top: calc(100% + 12px);
        left: -12px;
        z-index: 5;
        grid-auto-flow: column;
        grid-auto-columns: minmax(270px, 1fr);
        gap: 18px;
        padding: 16px 12px;
        border: var(--lk-bw) solid var(--lk-line);
        border-radius: var(--lk-r-lg);
        background: var(--lk-surface);
        box-shadow: var(--lk-sh-lg);
        animation: lk-drop 0.16s var(--lk-ease);
    }

    /* A panel of one list (Schools) is as wide as one column. */
    .lk-nav .lk-nav-group.is-open > .lk-nav-panel:has(> :only-child) {
        grid-auto-columns: minmax(290px, 1fr);
    }

    /* The panel's own little bridge, so a pointer moving down from the button never leaves the menu. */
    .lk-nav .lk-nav-group.is-open > .lk-nav-panel::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }
}

@media (min-width: 1280px) {
    .lk-nav .lk-nav-group.is-open > .lk-nav-panel--wide {
        width: min(880px, calc(100vw - 2 * var(--lk-gutter)));
        grid-auto-flow: row;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }

    .lk-nav .lk-nav-list--two {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 6px;
    }
}

@keyframes lk-drop {
    from { opacity: 0; transform: translateY(-6px); }
}

/* The site's frame lines from today's layout aren't part of the new look. */
body:has(.lk-nav) .st-outline-v,
body:has(.lk-nav) .st-frame-bolt {
    display: none;
}

/* ── Board A ("Getting around Striqr"): Dashboard and New project, for everyone signed in but a pupil ──
   views/partials/look/nav.ejs marks their menu lk-nav--signed. The logo goes Home; Dashboard (marked on the Workshop)
   and New project sit in the bar on every page, then the account button, the avatar alone (its name is still read
   out, and is in its menu). From 1,280 px the section links sit in the bar too, with room left for one more small
   button; below that they fold into the burger's sheet (look-nav.js reads data-nav-wide). Below 768 px Dashboard and
   New project are the sheet's first things, and who they are, Settings and Log out its last. */

.lk-nav .lk-nav-place {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 10px;
    border: var(--lk-bw) solid transparent;
    border-radius: 10px;
    color: var(--lk-ink);
    font: 700 15px/1 var(--lk-body);
    text-decoration: none;
    white-space: nowrap;
}

.lk-nav .lk-nav-place:hover {
    background: var(--lk-surface-2);
}

/* The page you're on: edged and filled, and underlined, so colour isn't the only sign. */
.lk-nav .lk-nav-place[aria-current="page"],
.lk-nav .lk-nav-sheet-place[aria-current="page"] {
    border-color: var(--lk-line);
    background: var(--lk-lilac);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.lk-nav .lk-nav-place-ico {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

/* New project and its picker, which drops from it. */
.lk-nav .lk-nav-new {
    position: relative;
    display: flex;
    flex: 0 0 auto;
}

.lk-nav .lk-nav-newbtn {
    min-height: 42px;
    padding: 0 14px;
    box-shadow: var(--lk-sh-sm);
}

.lk-nav .lk-nav-plus {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

/* The account button: the avatar and its arrow (board A). The name stays for screen readers and scripts. */
.lk-nav.lk-nav--signed .account-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lk-nav.lk-nav--signed .lk-nav-account-btn {
    gap: 6px;
    padding-right: 10px;
}

/* Unverified, without the name beside it: a dot on the avatar. The word is in the button's name and in the menu's
   head (.dh-unverified), so the dot is never the only sign. */
.lk-nav.lk-nav--signed .lk-nav-unverified {
    position: absolute;
    top: 1px;
    left: 27px;
    width: 13px;
    height: 13px;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--lk-surface);
    border-radius: 50%;
    background: #d97706;
    color: transparent;
    font-size: 0;
}

/* The phone sheet's places: New project, then Home and Dashboard, a line under them. */
.lk-nav .lk-nav-sheet-places {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1.5px dashed var(--lk-line-soft);
}

.lk-nav .lk-nav-sheet-new {
    min-height: 52px;
    margin-bottom: 8px;
    font-size: 17px;
}

.lk-nav .lk-nav-sheet-place {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border: var(--lk-bw) solid transparent;
    border-radius: 12px;
    color: var(--lk-ink);
    font: 700 17px/1.2 var(--lk-body);
    text-decoration: none;
}

.lk-nav .lk-nav-sheet-place:hover {
    background: var(--lk-surface-2);
}

.lk-nav .lk-nav-sheet-place .lk-nav-place-ico {
    width: 20px;
    height: 20px;
}

.lk-nav .lk-nav-sheet-place small {
    margin-left: auto;
    color: var(--lk-muted);
    font-size: 13px;
    font-weight: 600;
}

/* Last in the sheet: who you are, Settings and Log out. */
.lk-nav .lk-nav-sheet-account {
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 14px 4px 2px;
    border-top: var(--lk-bw) solid var(--lk-line);
}

.lk-nav .lk-nav-sheet-account .lk-avatar {
    width: 40px;
    height: 40px;
}

.lk-nav .lk-nav-sheet-name {
    min-width: 0;
    overflow: hidden;
    font: 700 16px/1.2 var(--lk-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-nav .lk-nav-sheet-settings,
.lk-nav .lk-nav-sheet-logout {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    background: transparent;
    font: 700 15px/1.2 var(--lk-body);
    cursor: pointer;
}

.lk-nav .lk-nav-sheet-settings {
    margin-left: auto;
    color: var(--lk-ink);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.lk-nav .lk-nav-sheet-logout {
    color: var(--lk-danger);
}

/* From 768 px the bar has Dashboard, New project and the account: the sheet holds the sections only. */
@media (min-width: 768px) {
    .lk-nav.lk-nav--signed .lk-nav-sheet-places,
    .lk-nav.lk-nav--signed .lk-nav-sheet-account {
        display: none;
    }
}

/* Below 768 px they move into the sheet, and while it's open the bar is the logo and the burger alone. */
@media (max-width: 767.98px) {
    .lk-nav.lk-nav--signed .lk-nav-place,
    .lk-nav.lk-nav--signed .lk-nav-newbtn {
        display: none;
    }

    /* Its picker stays: a sheet of its own (below). */
    .lk-nav.lk-nav--signed .lk-nav-new {
        display: contents;
    }

    .lk-nav.lk-nav--signed.is-nav-open .lk-nav-actions {
        visibility: hidden;
    }
}

/* From 1,024 to 1,280 px the bar keeps its places and the account, and the sections fold into the burger's sheet, as
   below 1,024 (the same rules, for lk-nav--signed). */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .lk-nav.lk-nav--signed .lk-nav-links {
        display: none;
    }

    .lk-nav.lk-nav--signed .lk-nav-burger {
        display: grid;
    }

    .lk-nav.lk-nav--signed.is-nav-open .lk-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
        max-height: calc(100dvh - var(--lk-nav-h));
        min-height: calc(100dvh - var(--lk-nav-h));
        overflow-y: auto;
        padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        border-bottom: var(--lk-bw) solid var(--lk-line);
        background: var(--lk-bg);
        overscroll-behavior: contain;
    }

    .lk-nav.lk-nav--signed.is-nav-open .lk-nav-links > * {
        width: 100%;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .lk-nav.lk-nav--signed .lk-nav-link {
        justify-content: space-between;
        width: 100%;
        min-height: 50px;
        padding: 12px 14px;
        font-size: 17px;
        color: var(--lk-ink);
    }

    .lk-nav.lk-nav--signed .lk-nav-group.is-open > .lk-nav-panel {
        position: static;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-columns: auto;
        gap: 14px 16px;
        width: auto;
        padding: 6px 0 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        animation: none;
    }

    .lk-nav.lk-nav--signed .lk-nav-group.is-open > .lk-nav-panel::before {
        content: none;
    }

    .lk-nav.lk-nav--signed .lk-nav-group.is-open > .lk-nav-panel > :only-child .lk-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lk-nav.lk-nav--signed .lk-nav-sheet-lang {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 6px;
        color: var(--lk-muted);
        font-size: 14px;
    }
}

/* ── New project's picker (views/partials/new-project-picker.ejs): under its button in the menu, and in the editor's
   Striqr menu; a sheet from the bottom on a phone, over a scrim. public/js/new-project.js opens it. ── */

.lk-nav .newp,
.lk-editor .newp {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(430px, calc(100vw - 2 * var(--lk-gutter)));
    max-height: calc(100dvh - var(--lk-nav-h) - 32px);
    overflow-y: auto;
    padding: 20px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-lg);
    color: var(--lk-ink);
    font: 400 15px/1.4 var(--lk-body);
    text-align: left;
    overscroll-behavior: contain;
}

.lk-nav .newp-scrim,
.lk-editor .newp-scrim {
    display: none;
}

.lk-nav .newp-head,
.lk-editor .newp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lk-nav .newp-title,
.lk-editor .newp-title {
    margin: 0;
    color: var(--lk-ink);
    font: 800 22px/1.15 var(--lk-disp);
}

/* Escape and a click outside close it; the sheet on a phone has a button too. */
.lk-nav .newp-close,
.lk-editor .newp-close {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -6px -6px -6px 0;
    padding: 0;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    cursor: pointer;
}

.lk-nav .newp-close svg,
.lk-editor .newp-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.lk-nav .newp-starters,
.lk-editor .newp-starters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lk-nav .newp-starter,
.lk-editor .newp-starter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    height: 100%;
    min-height: 76px;
    margin: 0;
    padding: 12px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 14px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    font: 400 14px/1.35 var(--lk-body);
    text-align: left;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lk-nav .newp-starter:hover,
.lk-editor .newp-starter:hover {
    transform: translate(-1px, -1px);
    box-shadow: var(--lk-sh-sm);
}

.lk-nav .newp-starter b,
.lk-editor .newp-starter b {
    font: 700 16px/1.2 var(--lk-body);
}

.lk-nav .newp-starter span,
.lk-editor .newp-starter span {
    color: var(--lk-ink);
}

.lk-nav .newp-starter--plain span,
.lk-editor .newp-starter--plain span {
    color: var(--lk-muted);
}

.lk-nav .newp-starter--mint,
.lk-editor .newp-starter--mint {
    background: var(--lk-mint);
}

.lk-nav .newp-starter--lilac,
.lk-editor .newp-starter--lilac {
    background: var(--lk-lilac);
}

.lk-nav .newp-starter--sun,
.lk-editor .newp-starter--sun {
    background: var(--lk-sun);
}

/* Starting: keeps its colours and words, with the kit's spinner in its corner (public/js/pupil-nav.js sets it). */
.lk-nav .newp-starter[aria-busy="true"],
.lk-editor .newp-starter[aria-busy="true"] {
    transform: none;
    box-shadow: none;
    cursor: progress;
}

.lk-nav .newp-starter[aria-busy="true"]::after,
.lk-editor .newp-starter[aria-busy="true"]::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 15px;
    height: 15px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: lk-spin 0.7s linear infinite;
}

.lk-nav .newp-failed,
.lk-editor .newp-failed {
    margin: 0;
    padding: 10px 12px;
    border: var(--lk-bw) solid var(--lk-warn);
    border-radius: 12px;
    background: var(--lk-warn-bg);
    color: var(--lk-warn);
    font-weight: 700;
}

.lk-nav .newp-recent,
.lk-editor .newp-recent {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lk-nav .newp-sub,
.lk-editor .newp-sub {
    margin: 4px 0 0;
    color: var(--lk-muted);
    font: 700 14px/1.3 var(--lk-body);
}

.lk-nav .newp-rows,
.lk-editor .newp-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lk-nav .newp-row,
.lk-editor .newp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--lk-ink);
    text-decoration: none;
}

.lk-nav .newp-rows li:first-child .newp-row,
.lk-editor .newp-rows li:first-child .newp-row,
.lk-nav .newp-row:hover,
.lk-editor .newp-row:hover {
    background: var(--lk-surface-2);
}

.lk-nav .newp-row-name,
.lk-editor .newp-row-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-nav .newp-row-when,
.lk-editor .newp-row-when {
    flex: 0 0 auto;
    color: var(--lk-muted);
    font-size: 14px;
}

.lk-nav .newp-note,
.lk-editor .newp-note {
    margin: 0;
    padding: 10px 12px;
    border: 1.5px dashed var(--lk-line-soft);
    border-radius: 10px;
    color: var(--lk-muted);
}

.lk-nav .newp-all,
.lk-editor .newp-all {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 32px;
    color: var(--lk-brand-deep);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.lk-nav .newp :focus-visible,
.lk-editor .newp :focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

/* A phone: a sheet from the bottom, over a scrim that a tap closes it on. */
@media (max-width: 767.98px) {
    .lk-nav .newp {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-height: calc(100dvh - 48px);
        padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        border-width: var(--lk-bw) 0 0;
        border-radius: 24px 24px 0 0;
        box-shadow: none;
    }

    .lk-nav .newp-scrim {
        position: fixed;
        inset: 0;
        z-index: 5;
        display: block;
        background: rgba(23, 19, 31, 0.45);
    }

    .lk-nav .newp-close {
        display: grid;
    }

    .lk-nav .newp-all {
        min-height: 44px;
    }
}

/* ── The footer (views/partials/look/footer.ejs): a card on the ink ground ── */

.lk-footer {
    margin: 0;
    padding: 72px 0;
    border: 0;
    background: var(--lk-ground);
    color: var(--lk-ink);
    font-family: var(--lk-body);
}

.lk-footer *,
.lk-footer *::before,
.lk-footer *::after {
    box-sizing: border-box;
}

.lk-footer .lk-foot-card {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: 36px 40px;
    padding: 40px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 22px;
    background: var(--lk-surface);
    box-shadow: 8px 8px 0 var(--lk-brand);
    color: var(--lk-ink);
}

.lk-footer .lk-foot-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.lk-footer .lk-foot-logo {
    display: inline-flex;
    align-self: flex-start;
    color: var(--lk-ink);
}

.lk-footer .lk-foot-logo-svg {
    width: auto;
    height: 40px;
}

/* The cookie banner and its dialog are white in both themes: their buttons ring in the brand, as light's focus does
   (dark's yellow ring read 1.3:1 on them). */
:where(.lk-page) .st-cookie-banner :focus-visible,
:where(.lk-page) .st-cookie-modal :focus-visible {
    outline-color: #7c3aed;
}

.lk-footer .lk-foot-logo .st-logo-mark {
    color: var(--lk-brand-line);
}

.lk-footer .lk-foot-brand > p {
    max-width: 26rem;
    margin: 0;
    color: var(--lk-muted);
    font-size: 16px;
    line-height: 1.5;
}

.lk-footer .lk-foot-trust {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
}

.lk-footer .lk-foot-trust li {
    display: flex;
    gap: 10px;
}

.lk-footer .lk-foot-trust svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    fill: none;
    stroke: var(--lk-brand-deep);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-footer .lk-foot-lang {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--lk-muted);
    font-size: 14px;
}

.lk-footer .lk-foot-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.lk-footer .lk-foot-col h2 {
    margin: 0 0 10px;
    color: var(--lk-brand-deep);
    font: 700 12.5px/1 var(--lk-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lk-footer .lk-foot-col a,
.lk-footer .lk-foot-col .st-cookie-settings-btn {
    margin: 0;
    padding: 5px 0;
    border: 0;
    background: none;
    color: var(--lk-ink);
    font: 15px/1.4 var(--lk-body);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lk-footer .lk-foot-col a:hover,
.lk-footer .lk-foot-col .st-cookie-settings-btn:hover {
    color: var(--lk-brand-deep);
    text-decoration: underline;
}

.lk-footer .lk-foot-note {
    margin: 0 0 6px;
    color: var(--lk-muted);
    font-size: 13px;
}

.lk-footer .lk-foot-bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    border-top: var(--lk-bw) dashed var(--lk-line-soft);
    color: var(--lk-muted);
    font-size: 14px;
}

.lk-footer .lk-foot-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lk-brand-deep);
    font-weight: 700;
    text-decoration: none;
}

.lk-footer .lk-foot-bottom svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1080px) {
    .lk-footer .lk-foot-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lk-footer .lk-foot-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .lk-footer {
        padding: 44px 0 calc(40px + env(safe-area-inset-bottom, 0px));
    }

    .lk-footer .lk-foot-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px 20px;
        padding: 26px 20px;
        box-shadow: 6px 6px 0 var(--lk-brand);
    }

    .lk-footer .lk-foot-col a,
    .lk-footer .lk-foot-col .st-cookie-settings-btn {
        padding: 8px 0;
    }

    .lk-footer .lk-foot-col:last-of-type {
        grid-column: 1 / -1;
    }
}

/* ── The site's own small parts, in the new look: Skip to content, the language picker (public/js/lang-switch.js
   builds it in the footer, the phone sheet and Settings) and the language pop-up. Today's are in home.css, which a
   page in the new look doesn't load; :is() also puts these ahead of home.css's on today's pages with the new menu. ── */

.lk-page .st-skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-y);
    color: var(--lk-on-y);
    font: 700 15px var(--lk-body);
    text-decoration: none;
    transform: translateY(-200%);
}

.lk-page .st-skip-link:focus {
    transform: none;
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo {
    position: relative;
    width: min(100%, 300px);
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-btn {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 9px 34px 9px 12px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    font-family: var(--lk-body);
    text-align: left;
    cursor: pointer;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-native {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-name {
    color: var(--lk-muted);
    font-size: 12px;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo.is-open .st-lang-combo-chevron {
    transform: translateY(-20%) rotate(225deg);
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-drop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    max-height: min(420px, 70vh);
    padding: 8px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh);
    color: var(--lk-ink);
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo.is-up .st-lang-combo-drop {
    top: auto;
    bottom: calc(100% + 8px);
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-drop[hidden] {
    display: none !important;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-search {
    width: 100%;
    height: 44px;
    margin-bottom: 6px;
    padding: 0 12px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 10px;
    background: var(--lk-bg);
    color: var(--lk-ink);
    font: 500 15px var(--lk-body);
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    overflow: auto;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-option-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-option strong {
    font-size: 14px;
    font-weight: 700;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-option small,
:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-code,
:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-empty,
:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-note {
    color: var(--lk-muted);
    font-size: 12px;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-code {
    flex-shrink: 0;
    font-family: var(--lk-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-option.is-active {
    background: var(--lk-pick);
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-option.is-focused,
:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-option:hover {
    background: var(--lk-lilac);
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-empty {
    margin: 8px 4px;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-note {
    margin: 6px 2px 0;
    line-height: 1.4;
}

:is(.lk-page, .lk-nav, .lk-footer) .st-lang-combo-note[hidden] {
    display: none;
}

.lk-page .st-lang-pop {
    position: fixed;
    top: calc(var(--lk-nav-h) + 12px);
    right: max(16px, env(safe-area-inset-right, 0px));
    z-index: 9600;
    width: min(340px, calc(100vw - 24px));
    padding: 18px 44px 18px 18px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-lg);
    color: var(--lk-ink);
    font-family: var(--lk-body);
}

.lk-page .st-lang-pop[hidden] {
    display: none !important;
}

.lk-page .st-lang-pop .st-lang-combo {
    width: 100%;
}

.lk-page .st-lang-pop-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.lk-page .st-lang-pop-x:hover {
    background: var(--lk-surface-2);
}

.lk-page .st-lang-pop-q {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.lk-page .st-lang-pop-stay {
    margin: 16px 0 8px;
    color: var(--lk-muted);
    font-size: 14px;
}

.lk-page .st-lang-pop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 11px;
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-ink);
    font: 700 14px var(--lk-body);
    cursor: pointer;
}

.lk-page .st-lang-pop-btn--primary {
    background: var(--lk-brand);
    color: var(--lk-on-brand);
}

.lk-page .st-lang-pop-or {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    color: var(--lk-muted);
    font-size: 13px;
}

/* ── The editor's Striqr menu (views/partials/editor-menu.ejs, board A): in the logo's place, which goes. Its menu
   drops from it; on a phone it is a sheet from the bottom, above the editor's bar, as the editor's other menus are.
   New project's picker opens where it is (above). The editor's own [hidden] isn't the kit's (its body has no lk-page),
   so these say it themselves. ── */

.lk-editor.lk-app #headerIcon {
    display: none;
}

.lk-editor .edmenu [hidden],
.lk-editor .newp[hidden],
.lk-editor .newp [hidden] {
    display: none !important;
}

.lk-editor .edmenu {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.lk-editor .edmenu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin: 0;
    padding: 0 10px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 10px;
    background: var(--lk-lilac);
    color: var(--lk-ink);
    cursor: pointer;
}

.lk-editor .edmenu-btn:hover,
.lk-editor .edmenu-btn[aria-expanded="true"] {
    background: var(--lk-sun);
}

.lk-editor .edmenu-logo {
    display: block;
    width: auto;
    height: 20px;
}

.lk-editor .edmenu-logo .st-logo-mark {
    color: var(--lk-brand-line);
}

.lk-editor .edmenu-chev {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease;
}

.lk-editor .edmenu-btn[aria-expanded="true"] .edmenu-chev {
    transform: rotate(180deg);
}

.lk-editor .edmenu :focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

.lk-editor .edmenu-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 310px;
    max-height: calc(100dvh - var(--header-h, 56px) - 24px);
    overflow-y: auto;
    padding: 8px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh);
    color: var(--lk-ink);
    font: 400 15px/1.3 var(--lk-body);
    text-align: left;
    overscroll-behavior: contain;
}

.lk-editor .edmenu-scrim {
    display: none;
}

.lk-editor .edmenu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A line before New project, and before Settings and Help. */
.lk-editor .edmenu-list + .edmenu-list,
.lk-editor .edmenu-list--last {
    margin-top: 6px;
    padding-top: 6px;
    border-top: var(--lk-bw) solid var(--lk-line-soft);
}

.lk-editor .edmenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--lk-ink);
    font: 700 15px/1.3 var(--lk-body);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lk-editor .edmenu-item:hover {
    background: var(--lk-surface-2);
}

.lk-editor .edmenu-item--new,
.lk-editor .edmenu-item--new:hover {
    background: var(--lk-lilac);
}

.lk-editor .edmenu-item[aria-busy="true"] {
    cursor: progress;
}

.lk-editor .edmenu-ico {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-editor .edmenu-label {
    margin: 10px 10px 2px;
    color: var(--lk-muted);
    font: 700 13px/1.3 var(--lk-body);
}

.lk-editor .edmenu-row,
.lk-editor .edmenu-list--last .edmenu-item {
    font-weight: 500;
}

.lk-editor .edmenu-row {
    justify-content: space-between;
}

/* The project open now: its words say so, and it's bold. */
.lk-editor .edmenu-row[aria-current="page"] {
    font-weight: 700;
}

.lk-editor .edmenu-row-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-editor .edmenu-when {
    flex: 0 0 auto;
    color: var(--lk-muted);
    font-size: 13px;
    font-weight: 500;
}

.lk-editor .edmenu-note {
    margin: 2px 10px 4px;
    color: var(--lk-muted);
    font-size: 14px;
}

.lk-editor .newp {
    top: calc(100% + 8px);
    right: auto;
    left: 0;
    z-index: 31;
    max-height: calc(100dvh - var(--header-h, 56px) - 24px);
}

/* The editor's phones (loader.css's own query): sheets from the bottom, above its bar, over a scrim. */
@media (max-width: 768px), (max-height: 540px) and (pointer: coarse) {
    .lk-editor .edmenu-btn {
        height: 44px;
        padding: 0 8px;
    }

    .lk-editor .edmenu-logo {
        height: 18px;
    }

    .lk-editor .edmenu-pop,
    .lk-editor .newp {
        position: fixed;
        top: auto;
        right: 0;
        bottom: calc(var(--mobile-bar-h, 0px) + var(--mobile-strip-h, 0px) + var(--vv-bottom-gap, 0px));
        left: 0;
        width: auto;
        max-height: calc(var(--mobile-vv-h, 100dvh) - var(--header-h, 56px) - var(--mobile-bar-h, 0px) - 16px);
        padding: 12px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
        border-width: var(--lk-bw) 0 0;
        border-radius: 24px 24px 0 0;
        box-shadow: none;
    }

    .lk-editor .edmenu-scrim,
    .lk-editor .newp-scrim {
        position: fixed;
        inset: 0;
        z-index: 29;
        display: block;
        background: rgba(23, 19, 31, 0.45);
    }

    .lk-editor .edmenu-item {
        min-height: 48px;
    }

    .lk-editor .edmenu-row {
        min-height: 44px;
    }

    .lk-editor .newp-close {
        display: grid;
    }

    .lk-editor .newp-all {
        min-height: 44px;
    }
}

/* ── Jump to (views/partials/jump-to.ejs, public/js/jump-to.js; board A's search, from board C): its button first on
   the menu's right, the burger's sheet's first row where the bar folds, the Striqr menu's first row in the editor, and
   the launcher they open, a modal dialog. Everything Jump to draws is in this part. ── */

/* The bar's button, for everyone: the search picture alone (42 px square; its name and tooltip say Jump to and the
   keys), and the keys beside it from 1,440 px, as the board draws it. Where the bar folds, the burger's sheet has it
   instead: below 1,280 px for someone signed in, below 1,024 for everyone else. A pupil's bar has it from 1,024; a
   guest's from 1,120, as the Spanish one (Iniciar sesión and Empieza a programar) has no room for it before. */
.lk-nav .lk-nav-jump {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0 10px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 10px;
    background: var(--lk-surface-2);
    color: var(--lk-muted);
    font: 500 12px/1 var(--lk-mono);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

/* A pupil's bar keeps its targets 44 px (docs/look.md). */
.lk-nav.lk-nav--pupil .lk-nav-jump {
    min-width: 44px;
    height: 44px;
    padding: 0 11px;
}

.lk-nav .lk-nav-jump:hover,
.lk-nav .lk-nav-jump[aria-expanded="true"] {
    background: var(--lk-lilac);
    color: var(--lk-ink);
}

.lk-nav .lk-nav-jump-ico,
.lk-nav .lk-nav-sheet-jumpbox .lk-nav-jump-ico {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--lk-ink);
    stroke-width: 2.2;
    stroke-linecap: round;
}

.lk-nav .lk-nav-jump-keys {
    display: none;
    font: inherit;
}

@media (min-width: 1024px) {
    .lk-nav.lk-nav--pupil .lk-nav-jump {
        display: inline-flex;
    }
}

@media (min-width: 1120px) {
    .lk-nav:not(.lk-nav--signed) .lk-nav-jump {
        display: inline-flex;
    }
}

@media (min-width: 1280px) {
    .lk-nav .lk-nav-jump {
        display: inline-flex;
    }
}

@media (min-width: 1440px) {
    .lk-nav .lk-nav-jump-keys {
        display: inline;
    }
}

/* The sheet's first row where the bar folds: what looks like a box to type in, and opens the launcher. */
.lk-nav .lk-nav-sheet-jump {
    margin: 0 0 8px;
}

.lk-nav .lk-nav-sheet-jumpbox {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface-2);
    color: var(--lk-muted);
    font: 600 16px/1.25 var(--lk-body);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lk-nav .lk-nav-sheet-jumpbox:hover {
    background: var(--lk-lilac);
    color: var(--lk-ink);
}

.lk-nav .lk-nav-sheet-jumpkeys {
    display: none;
    margin-left: auto;
    font: 500 12px/1 var(--lk-mono);
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
    .lk-nav.lk-nav--signed .lk-nav-sheet-jump {
        display: flex;
    }

    .lk-nav.lk-nav--signed .lk-nav-sheet-jumpkeys {
        display: inline;
    }
}

/* The editor's Striqr menu: Jump to... first, its keys at the end of the row. */
.lk-editor .edmenu-keys {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--lk-muted);
    font: 500 12px/1 var(--lk-mono);
}

/* The launcher: a dialog over a dim page, near the top, its box first and the list under it. */
.lk-nav .jumpto,
.lk-editor .jumpto {
    box-sizing: border-box;
    width: min(600px, calc(100vw - 32px));
    max-width: none;
    height: fit-content;
    max-height: min(640px, calc(100dvh - 2 * max(40px, 9vh)));
    margin: max(40px, 9vh) auto auto;
    padding: 0;
    overflow: hidden;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-lg);
    color: var(--lk-ink);
    font: 400 15px/1.4 var(--lk-body);
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
}

.lk-editor .jumpto *,
.lk-editor .jumpto *::before,
.lk-editor .jumpto *::after {
    box-sizing: border-box;
}

.lk-nav .jumpto[open],
.lk-editor .jumpto[open] {
    display: flex;
    flex-direction: column;
    animation: lk-drop 0.16s var(--lk-ease);
}

.lk-nav .jumpto::backdrop,
.lk-editor .jumpto::backdrop {
    background: rgba(23, 19, 31, 0.5);
}

/* The editor's own [hidden] isn't the kit's (its body has no lk-page). */
.lk-editor .jumpto [hidden] {
    display: none !important;
}

.lk-nav .jumpto-panel,
.lk-editor .jumpto-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.lk-nav .jumpto-head,
.lk-editor .jumpto-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 8px;
}

.lk-nav .jumpto-label,
.lk-editor .jumpto-label {
    margin: 0;
    color: var(--lk-ink);
    font: 800 18px/1.2 var(--lk-disp);
}

/* Escape and a click outside close it; on a phone, where neither is at hand, a button too. */
.lk-nav .jumpto-close,
.lk-editor .jumpto-close {
    display: none;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -6px -6px -6px 0;
    padding: 0;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    cursor: pointer;
}

.lk-nav .jumpto-close svg,
.lk-editor .jumpto-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.lk-nav .jumpto-field,
.lk-editor .jumpto-field {
    position: relative;
    margin: 0 18px 8px;
}

.lk-nav .jumpto-field-ico,
.lk-editor .jumpto-field-ico {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--lk-ink);
    stroke-width: 2.2;
    stroke-linecap: round;
    pointer-events: none;
}

.lk-nav .jumpto-box,
.lk-editor .jumpto-box {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 14px 0 44px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface);
    box-shadow: none;
    color: var(--lk-ink);
    font: 600 17px/1.2 var(--lk-body);
    caret-color: var(--lk-brand-line);
    appearance: none;
}

.lk-nav .jumpto-list,
.lk-editor .jumpto-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 10px;
    overscroll-behavior: contain;
}

.lk-nav .jumpto-group,
.lk-editor .jumpto-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lk-nav .jumpto-group-head,
.lk-editor .jumpto-group-head {
    margin: 10px 8px 4px;
    color: var(--lk-brand-deep);
    font: 700 12px/1.3 var(--lk-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* A row: its picture, its name, and on the one Enter goes to, the Enter key. That one is edged as well as filled,
   so colour isn't the only sign. */
.lk-nav .jumpto-opt,
.lk-editor .jumpto-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 6px 10px;
    border: var(--lk-bw) solid transparent;
    border-radius: 10px;
    color: var(--lk-ink);
    font: 600 15px/1.25 var(--lk-body);
    text-decoration: none;
    cursor: pointer;
    scroll-margin: 8px;
}

.lk-nav .jumpto-opt[aria-selected="true"],
.lk-editor .jumpto-opt[aria-selected="true"] {
    border-color: var(--lk-line);
    background: var(--lk-lilac);
}

.lk-nav .jumpto-ico,
.lk-editor .jumpto-ico {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-nav .jumpto-name,
.lk-editor .jumpto-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-nav .jumpto-enter,
.lk-editor .jumpto-enter {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--lk-ink);
    font: 600 15px/1 var(--lk-mono);
}

.lk-nav .jumpto-opt[aria-selected="true"] .jumpto-enter,
.lk-editor .jumpto-opt[aria-selected="true"] .jumpto-enter {
    display: inline;
}

/* New sandbox, starting (public/js/pupil-nav.js): the kit's spinner where the Enter key was. */
.lk-nav .jumpto-opt[aria-busy="true"]::after,
.lk-editor .jumpto-opt[aria-busy="true"]::after {
    content: "";
    width: 15px;
    height: 15px;
    margin-left: auto;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: lk-spin 0.7s linear infinite;
}

.lk-nav .jumpto-note,
.lk-editor .jumpto-note {
    margin: 0 18px 12px;
    padding: 10px 12px;
    border: 1.5px dashed var(--lk-line-soft);
    border-radius: 10px;
    color: var(--lk-muted);
    overflow-wrap: anywhere;
}

.lk-nav .jumpto-note b,
.lk-editor .jumpto-note b {
    color: var(--lk-ink);
}

/* The keys, for a keyboard: under the list. */
.lk-nav .jumpto-keys,
.lk-editor .jumpto-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 10px 18px 12px;
    border-top: 1.5px dashed var(--lk-line-soft);
    color: var(--lk-muted);
    font-size: 13px;
}

.lk-nav .jumpto-keys span,
.lk-editor .jumpto-keys span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lk-nav .jumpto-keys kbd,
.lk-editor .jumpto-keys kbd {
    min-width: 22px;
    padding: 1px 5px;
    border: 1.5px solid var(--lk-line);
    border-bottom-width: 3px;
    border-radius: 6px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    font: 600 11.5px/1.4 var(--lk-mono);
    text-align: center;
}

.lk-nav .jumpto :focus-visible,
.lk-editor .jumpto :focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

/* No keyboard at hand: no keys to show. */
@media (hover: none) {
    .lk-nav .jumpto-keys,
    .lk-editor .jumpto-keys {
        display: none;
    }
}

/* A phone: the whole screen, the box at the top (the keyboard comes up with it), a Close, rows of 44 px. */
@media (max-width: 767.98px) {
    .lk-nav .jumpto {
        width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        animation: none;
    }

    .lk-nav .jumpto-head {
        padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
    }

    .lk-nav .jumpto-field,
    .lk-nav .jumpto-note {
        margin-right: max(16px, env(safe-area-inset-right, 0px));
        margin-left: max(16px, env(safe-area-inset-left, 0px));
    }

    .lk-nav .jumpto-list {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .lk-nav .jumpto-close {
        display: grid;
    }

    .lk-nav .jumpto-opt {
        min-height: 48px;
    }

    .lk-nav .jumpto-keys {
        display: none;
    }
}

/* The editor's phones (loader.css's own query): the same. */
@media (max-width: 768px), (max-height: 540px) and (pointer: coarse) {
    .lk-editor .edmenu-keys {
        display: none;
    }

    .lk-editor .jumpto {
        width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        animation: none;
    }

    .lk-editor .jumpto-head {
        padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
    }

    .lk-editor .jumpto-field,
    .lk-editor .jumpto-note {
        margin-right: max(16px, env(safe-area-inset-right, 0px));
        margin-left: max(16px, env(safe-area-inset-left, 0px));
    }

    .lk-editor .jumpto-list {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .lk-editor .jumpto-close {
        display: grid;
    }

    .lk-editor .jumpto-opt {
        min-height: 48px;
    }

    .lk-editor .jumpto-keys {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lk-nav .jumpto[open],
    .lk-editor .jumpto[open],
    .lk-nav .jumpto-opt[aria-busy="true"]::after,
    .lk-editor .jumpto-opt[aria-busy="true"]::after {
        animation: none;
    }
}

/* ── Big monitors: a little more room and type, as on the home ── */

@media (min-width: 1600px) {
    .lk-page {
        font-size: 17px;
    }

    .lk-band {
        padding: clamp(104px, 6vw, 148px) 0;
    }

    .lk-h1 {
        font-size: clamp(54px, 3.2vw, 80px);
    }

    .lk-h2 {
        font-size: clamp(44px, 2.3vw, 58px);
    }

    .lk-lead {
        max-width: 44rem;
        font-size: clamp(19px, 1vw, 22px);
    }

    .lk-btn {
        min-height: 52px;
        padding: 0 22px;
        font-size: 16px;
    }

    .lk-btn--sm {
        min-height: 42px;
        font-size: 14.5px;
    }

    .lk-btn--lg {
        min-height: 60px;
        font-size: 18px;
    }

    :root {
        --lk-nav-h: 76px;
    }

    .lk-nav .lk-nav-link {
        font-size: 16px;
    }

    .lk-nav .lk-nav-logo {
        height: 34px;
    }

    .lk-nav .lk-nav-cta,
    header.lk-nav .lk-nav-account-btn {
        min-height: 46px;
        font-size: 15.5px;
    }

    .lk-nav .lk-nav-login {
        font-size: 16px;
    }

    .lk-footer .lk-foot-card {
        padding: 48px;
    }

    .lk-footer .lk-foot-col a,
    .lk-footer .lk-foot-col .st-cookie-settings-btn {
        font-size: 16px;
    }
}

/* ── Less motion ── */

@media (prefers-reduced-motion: reduce) {
    .lk-btn,
    a.lk-card,
    .lk-card--hover,
    .lk-switch,
    .lk-switch::after,
    .lk-nav .lk-nav-chev,
    .lk-nav .newp-starter,
    .lk-editor .newp-starter,
    .lk-editor .edmenu-chev {
        transition: none;
    }

    .lk-nav .newp-starter:hover,
    .lk-editor .newp-starter:hover {
        transform: none;
    }

    .lk-btn:hover,
    .lk-btn:active,
    a.lk-card:hover,
    .lk-card--hover:hover {
        transform: none;
    }

    .lk-skel,
    .lk-btn[aria-busy="true"]::after,
    .lk-nav .lk-nav-group.is-open > .lk-nav-panel,
    .lk-nav .newp-starter[aria-busy="true"]::after,
    .lk-editor .newp-starter[aria-busy="true"]::after {
        animation: none;
    }
}

/* ══ The Playground look: the shared kit: end ══ */
