/* The new teacher's welcome (shared/js/welcome/welcome.js), drawn as the eight screens the teacher was shown on
   15 October 2026 (the mock-ups' own CSS, kit.css, as the app builds it): the front door, Create an account, Check your
   email, Welcome, Add your pupils and Here's your class. One full-screen page over Home, in the sky and grass, with
   the app's own buttons (classlings-controls.css). Laid out for the school laptop first (1366 x 540 to 600), then the
   board (1920 x 1080) and a phone. Only the Classlings (and the boxes) move: every other picture, word and icon is
   simply there from the first frame, and with less motion asked for nothing moves at all. */

.wl {
    --page: #ffffff; --ink: #1e1b3a; --ink-2: #4a4766; --wash: #f3f2f9; --wash-2: #e4e1f1; --line-soft: rgba(30, 27, 58, 0.3);
    --sky: #3aa0ff; --sky-deep: #1b6fcf; --sky-tint: #e1efff;
    --grape: #a07cff; --grape-deep: #6a45dc; --grape-tint: #eee8ff;
    --tangerine: #ff8a3d; --tangerine-deep: #cf5a12; --tangerine-tint: #ffeddf;
    --gold: #f7c230; --gold-deep: #c98a12; --gold-tint: #fff3c4;
    --world: #7cc6f2; --grass: #5fbf5a; --soil: #7a4a26; --logo-ink: #2d3436;
    --display: 'Fredoka', 'Atkinson Hyperlegible', system-ui, sans-serif;
    --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
    --gutter: 32px;
    --r-s: 14px; --r-m: 20px; --r-l: 28px;
    --edge: 3px; --lift: 6px;
    --t-hero: 34px; --t-h1: 32px; --t-ui: 20px; --t-body: 18px; --t-small: 16px;
    --title-scale: 3;
    --tap: 56px; --tap-big: 72px; --square: 84px;
    --ground: 132px; --soil-h: 16px; --px: 4px;
    --art-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 9' width='32' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffffff' d='M11 0h5v1h-5zM9 1h9v1h-9zM5 2h14v1h-14zM20 2h5v1h-5zM3 3h25v1h-25zM2 4h28v1h-28zM1 5h30v1h-30zM0 6h32v1h-32z'/%3E%3Cpath fill='%23d4ecfb' d='M0 7h32v1h-32zM1 8h30v1h-30z'/%3E%3C/svg%3E");
    --art-puff: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 5' width='20' height='5' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffffff' d='M6 0h4v1h-4zM4 1h8v1h-8zM13 1h3v1h-3zM2 2h16v1h-16zM0 3h20v1h-20z'/%3E%3Cpath fill='%23d4ecfb' d='M1 4h18v1h-18z'/%3E%3C/svg%3E");
    --art-tufts: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 3' width='16' height='3' shape-rendering='crispEdges'%3E%3Cpath fill='%235fbf5a' d='M2 0h1v1h-1zM12 0h1v1h-1zM1 1h3v1h-3zM6 1h1v1h-1zM11 1h3v1h-3zM15 1h1v1h-1zM0 2h16v1h-16z'/%3E%3C/svg%3E");
    --art-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 2' width='16' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%233f9a44' d='M0 0h2v1h-2zM5 0h4v1h-4zM11 0h3v1h-3zM0 1h16v1h-16z'/%3E%3C/svg%3E");

    position: fixed;
    inset: 0;
    z-index: 15;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    background: var(--world);
    color: var(--ink);
    font: 400 var(--t-body) / 1.4 var(--body);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}
.wl[hidden] { display: none; }
/* A button pressed before the page's code arrived: it's done as soon as it has (index.html, dashboard.js takeEarlyFrontDoorPress). */
.wl[aria-busy="true"] { cursor: progress; }
.wl *, .wl *::before, .wl *::after { box-sizing: border-box; }
/* The page's resets are the lightest there are (nothing outweighs them), so the app's own buttons keep their own look. */
:where(.wl) :where(h1, h2, h3, p, ul, ol) { margin: 0; }
:where(.wl) :where(ul, ol) { padding: 0; list-style: none; }
:where(.wl) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.wl) :where(button) { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.wl) :where(a) { color: inherit; text-decoration: none; }
.wl canvas, .wl svg { image-rendering: pixelated; }
.wl canvas { display: block; }
.wl [hidden] { display: none !important; }
.wl .wl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Home underneath is out of reach and out of the way while the welcome is on. */
html.wl-on, html.wl-on body { overflow: hidden; }

/* ------------------------------------------------------------------ the world: sky, clouds and grass */

.wl-clouds {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        var(--art-cloud) var(--cloud-a, left 56% top 26px) / calc(var(--px) * 32) calc(var(--px) * 9) no-repeat,
        var(--art-puff) var(--cloud-b, left 72% top 72px) / calc(var(--px) * 20) calc(var(--px) * 5) no-repeat,
        var(--art-puff) var(--cloud-c, left 8% top 120px) / calc(var(--px) * 20) calc(var(--px) * 5) no-repeat;
}
/* The front door's clouds drift (the teacher asked for it, 18 October 2026: nothing but the Classlings and the clouds moves): welcomeDoor.js takes the
   three clouds over at the very place they stand and moves each by whole pixels. They are the same pictures as the still ones above. */
.wl-clouds.is-drifting { background: none; }
.wl-cloud { position: absolute; left: 0; top: 0; display: block; background: no-repeat 0 0 / 100% 100%; image-rendering: pixelated; will-change: transform; }
.wl-cloud.is-big { width: calc(var(--px) * 32); height: calc(var(--px) * 9); background-image: var(--art-cloud); }
.wl-cloud.is-puff { width: calc(var(--px) * 20); height: calc(var(--px) * 5); background-image: var(--art-puff); }
/* A Classling on the front door's grass can be tapped: the pointer says so while it is over one (the grass lets clicks through). */
.wl.is-pointing { cursor: pointer; }
.wl-ground {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: var(--ground);
    background: var(--grass); border-bottom: var(--soil-h) solid var(--soil); pointer-events: none;
}
.wl-ground::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--px) * 3); background: var(--art-tufts) left bottom / calc(var(--px) * 16) calc(var(--px) * 3) repeat-x; }
.wl-ground::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--px) * 2); background: var(--art-edge) left bottom / calc(var(--px) * 16) calc(var(--px) * 2) repeat-x; }
/* Classlings walking along the front of the grass, behind the buttons. */
.wl-walkers { position: absolute; left: 0; right: 0; bottom: calc(var(--soil-h) + 4px); height: 112px; width: 100%; z-index: 0; pointer-events: none; --s: 4; }

/* ------------------------------------------------------------------ the logo and titles */

.wl-logo { flex: none; width: 154px; height: 60px; }
.wl .title-art { display: block; width: calc(var(--title-scale) * var(--w) * 1px); height: calc(var(--title-scale) * var(--h) * 1px); }
.wl-pt { line-height: 0; margin-bottom: calc(var(--title-scale) * -4px); max-width: 100%; }
/* A long name in two lines (titleFit): the two edges overlap by two art pixels, so the lines stand close, and the pair is trimmed as one. */
.wl .title-lines { display: inline-grid; justify-items: center; max-width: 100%; }
.wl .title-lines .title-art + .title-art { margin-top: calc(var(--title-scale) * -2px); }
/* A name the lettering can't draw, or too long for the room, is plain words. */
.wl-pt.is-text, .wl-plate.is-plain { font: 700 var(--t-h1) / 1.15 var(--display); line-height: 1.15; margin-bottom: 0; overflow-wrap: anywhere; color: var(--ink); }
.wl-corner { position: absolute; top: 8px; right: calc(var(--gutter) - 2px); z-index: 2; }

/* The top strip: the page's title in Classlings' lettering, where we are, and the logo. For reading only. */
.wl-strip { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--s-5); padding: var(--s-2) var(--gutter) 0; min-height: 76px; flex: none; }
.wl-strip .wl-logo { margin-left: auto; margin-right: -2px; position: relative; top: -4px; }
.wl-steps { display: flex; align-items: center; gap: var(--s-3); font: 600 var(--t-ui) / 1.2 var(--display); white-space: nowrap; }
.wl-dots { display: flex; gap: 6px; }
.wl-dots i { width: 14px; height: 14px; background: var(--wash-2); border: 2px solid var(--ink-2); border-radius: 4px; }
.wl-dots i.is-done { background: var(--grape-tint); border-color: var(--grape-deep); }
.wl-dots i.is-now { background: var(--grape); border-color: var(--grape-deep); }

.wl .ic, .wl .wl-ic { display: inline-flex; flex: none; width: 24px; height: 24px; align-items: center; justify-content: center; }
.wl .ic svg, .wl .wl-ic svg { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------------------ buttons and the bottom bar */

.wl .cla-btn.is-big .ic { width: 32px; height: 32px; }
.wl .cla-btn.is-small .ic { width: 24px; height: 24px; }
.wl .cla-square .ic { width: 32px; height: 32px; }
/* The kit's squares are Fredoka 600; Home's page rule that makes every button inherit its font (body.cla-home :where(button)) outweighed it,
   so Report and Back came out in the body font. */
.wl .cla-square { width: var(--square); height: var(--square); font: 600 18px / 1 var(--display); }
.wl .cla-btn:disabled, .wl .cla-btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
/* Pupil login, as Home has it: the sky-blue button with its key, on the grass. */
.wl .cla-btn.wl-login { --c: var(--sky); --c-deep: var(--sky-deep); --c-line: var(--sky-deep); --l: 6px; min-height: var(--square); padding: 0 var(--s-6); font-size: 24px; border-radius: var(--r-l); min-width: 226px; }
.wl .cla-btn.wl-login .ic { width: 32px; height: 32px; }
.wl .cla-btn.wl-login .ic svg { height: auto; }
/* Report a problem, for anyone not signed in (Home's Menu, which holds it, is behind the door): a square at the end of the bar, as Menu
   is. Its picture is 12 wide, so a whole-pixel size is 24, 36 or 48. */
.wl .cla-square.wl-report .ic { width: 36px; height: 36px; }
/* The privacy notice and terms, beside it: the kit's padlock (8 x 10), three screen pixels to each of its pixels, in a box as tall
   as Report's picture so the two words line up. */
.wl .cla-square.wl-privacy .ic { width: 24px; height: 36px; padding: 3px 0; }

/* Every control lives along the bottom: Back on the left, the gold one on the right. */
.wl-dock { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--soil-h) + 6px); z-index: 3; display: flex; align-items: flex-end; gap: var(--s-4); pointer-events: none; }
.wl-dock > * { pointer-events: auto; flex: none; }
.wl-end { margin-left: auto; display: flex; align-items: flex-end; gap: var(--s-4); }
.wl-dock .wl-later-btn { margin-bottom: var(--lift); }

/* ------------------------------------------------------------------ panels and fields */

/* A card standing in the world: white, the ink edge and a hard ink base, like Home's boxes. */
.wl-card { position: relative; z-index: 1; background: var(--page); border: var(--edge) solid var(--ink); border-radius: var(--r-l); box-shadow: 0 6px 0 var(--ink); }
/* A quiet panel: white, with a soft ink line on the sky. */
.wl-panel { background: var(--page); border: var(--edge) solid transparent; border-radius: var(--r-l); box-shadow: inset 0 0 0 var(--edge) var(--line-soft); }

.wl .wl-field { display: grid; gap: 6px; min-width: 0; }
.wl .wl-field > span { display: flex; align-items: baseline; gap: var(--s-3); font: 600 18px / 1.2 var(--display); }
.wl .wl-field > span small { font: 400 var(--t-small) / 1.2 var(--body); color: var(--ink-2); }
.wl .wl-box {
    width: 100%; min-width: 0; min-height: 48px; padding: 8px 14px; margin: 0;
    border: var(--edge) solid var(--wash-2); border-radius: var(--r-s); background: var(--page);
    font: 400 var(--t-body) / 1.3 var(--body); color: var(--ink);
}
.wl .wl-box:focus, .wl .wl-box:focus-visible { border-color: var(--ink); outline: none; }
.wl .wl-box[aria-invalid="true"] { border-color: var(--tangerine-deep); background: var(--tangerine-tint); }
.wl .wl-box::placeholder { color: var(--ink-2); opacity: 0.8; }
.wl select.wl-box { appearance: none; padding-right: 44px; }
.wl .wl-select { position: relative; display: block; }
.wl .wl-select .wl-ic { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; pointer-events: none; }
.wl textarea.wl-box { resize: none; }
.wl .wl-names { overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }

/* What went wrong, in a box that stands out (and is read out), and what to do about it. */
.wl-problem { padding: 8px 12px; border: 2px solid var(--tangerine-deep); border-radius: var(--r-s); background: var(--tangerine-tint); font: 600 var(--t-small) / 1.3 var(--display); }
.wl-note { font: 400 var(--t-small) / 1.35 var(--body); color: var(--ink-2); }

/* "You can change this any time." */
.wl-later { display: flex; align-items: center; gap: var(--s-2); font: 600 18px / 1.25 var(--display); color: var(--ink-2); }
.wl-later .ic { width: 24px; height: 24px; }

/* A Classling peeking over a card's top edge: drawn behind the card, so it rises from behind it. */
.wl-peek { position: absolute; z-index: 0; pointer-events: none; }

/* ------------------------------------------------------------------ 1 · the front door */

.wl[data-screen="door"] { --ground: 132px; }
.wl-door {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--s-4); padding: var(--s-4) var(--gutter) calc(var(--ground) + var(--s-2)); text-align: center;
}
.wl-logo-big { --s: 5; width: calc(77px * var(--s)); height: calc(30px * var(--s)); max-width: 100%; }
.wl-line { max-width: 24ch; font: 600 var(--t-hero) / 1.15 var(--display); text-wrap: balance; }
.wl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-5); margin-top: var(--s-3); }
.wl-btns .cla-btn { min-width: 260px; }

/* "One more step": the screen a link from an email opens on (shared/js/emailLinkScreen.js; its markup is in index.html). The door's own
   logo, sky and grass, a title, a line and one gold button. */
.wl-link-title { font: 600 var(--t-hero) / 1.15 var(--display); }
/* The line is the page's reading size, a step up from the usual body text (24px on a laptop, 30 on the board, 23 on a phone): at the body size
   itself it read as small next to the 34px title (the teacher, 19 October 2026). */
.wl-link-line { font: 400 calc(var(--t-body) + 6px) / 1.3 var(--body); color: var(--ink); max-width: 28ch; text-wrap: balance; }
.wl[data-screen="link"] .wl-door { gap: var(--s-3); }
.wl[data-screen="link"] .wl-btns { margin-top: var(--s-3); }

/* ------------------------------------------------------------------ 2 · create an account */

.wl[data-screen="account"] { --cloud-a: left 93% top 100px; --cloud-b: left 3% top 60px; --cloud-c: left 10% top 210px; }
.wl-account { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 28px var(--gutter) 0; }
.wl-account .wl-card { width: min(100%, 740px); padding: 26px 32px 28px; display: grid; gap: 16px; }
.wl-account .wl-pt { --title-scale: 3; justify-self: center; }
.wl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: end; }
.wl-row.is-one { grid-template-columns: minmax(0, 1fr); }
/* The robot check is Cloudflare's own box (300 x 65), as today. */
.wl-robot { min-height: 65px; min-width: 0; display: flex; align-items: center; }
.wl-robot:empty { display: none; }
.wl-have { font: 600 18px / 1.3 var(--display); color: var(--ink-2); align-self: center; }
.wl-have .wl-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font: inherit; background: none; border: 0; padding: 0; min-height: 44px; }
.wl-row:has(> .wl-robot:empty) > .wl-have { grid-column: 1 / -1; }
/* By creating an account you agree…: small and quiet, its two links plain to see. On a laptop or a board it stands beside
   Create my account in a white note on the grass (the card has no room for it on a laptop's page); in a narrower window it
   is under the robot check. */
.wl-agree { font: 400 var(--t-small) / 1.35 var(--body); color: var(--ink-2); }
.wl .wl-agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wl-agree.is-dock { display: none; }
@media (min-width: 900px) {
    .wl-agree.is-card { display: none; }
    .wl-dock > .wl-agree.is-dock {
        display: block; flex: 0 1 540px; min-width: 0; margin: 0 0 var(--lift) auto; padding: 8px 14px;
        background: var(--page); border-radius: var(--r-m); box-shadow: inset 0 0 0 2px var(--line-soft);
    }
    .wl-dock > .wl-agree.is-dock + .wl-end { margin-left: 0; }
}

/* ------------------------------------------------------------------ 3 · check your email */

.wl[data-screen="email"] { --cloud-a: left 93% top 100px; --cloud-b: left 4% top 70px; --cloud-c: left 12% top 230px; }
.wl-email { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 116px var(--gutter) 0; }
.wl-email .wl-card { width: min(100%, 700px); padding: 28px 36px 30px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.wl-head { display: flex; align-items: center; gap: 16px; }
.wl-head .wl-env { width: 54px; height: 39px; flex: none; }
.wl-head .wl-env svg { width: 100%; height: 100%; display: block; }
.wl-email .wl-pt { --title-scale: 3; }
.wl-sent { font: 400 21px / 1.4 var(--body); max-width: 34ch; overflow-wrap: anywhere; }
.wl-sent b { font-weight: 700; }
.wl-hint { font: 400 var(--t-small) / 1.35 var(--body); color: var(--ink-2); }
.wl-card-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 6px; }
.wl-email .wl-peek { --s: 5; left: 50%; bottom: calc(100% + 3px); width: 120px; height: 90px; transform: translateX(-50%); }
.wl-email .wl-status { min-height: 1.35em; font: 600 var(--t-small) / 1.35 var(--display); color: var(--ink-2); }
.wl-email .wl-status.is-bad { color: var(--ink); }
.wl-email .wl-robot { justify-content: center; }

/* ------------------------------------------------------------------ 4 · welcome */

.wl[data-screen="name"] { --cloud-a: left 94% top 104px; --cloud-b: left 3% top 110px; --cloud-c: left 13% top 250px; }
.wl-name { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 84px var(--gutter) 0; }
.wl-name .wl-card { width: min(100%, 720px); padding: 26px 36px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; text-align: center; }
.wl-name h2 { font: 600 var(--t-h1) / 1.15 var(--display); }
.wl-name .wl-nameinput { width: min(100%, 460px); min-height: 64px; padding: 0 20px; text-align: center; font: 600 28px / 1 var(--display); border-radius: var(--r-m); }
.wl-plate { --title-scale: 5; min-height: 84px; width: 100%; min-width: 0; display: grid; place-items: center; line-height: 0; }
.wl-plate > .title-art, .wl-plate > .title-lines { margin-bottom: calc(var(--title-scale) * -4px); }
.wl-plate.is-plain { line-height: 1.1; font-size: 40px; }
.wl-plate.is-ghost { opacity: 0.32; }
.wl-name .wl-peek { --s: 5; left: 50%; bottom: calc(100% + 3px); width: 560px; height: 100px; transform: translateX(-50%); }

/* ------------------------------------------------------------------ 5 · add your pupils */

.wl[data-screen="pupils"] { --ground: 112px; --cloud-a: left 76% top 30px; --cloud-b: left -400px top 0; --cloud-c: left -400px top 0; }
.wl-add { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 10px var(--gutter) calc(var(--square) + var(--soil-h) + 22px); }
.wl-add .wl-top { display: flex; align-items: center; gap: var(--s-5); }
.wl-add h2 { font: 600 var(--t-h1) / 1.1 var(--display); white-space: nowrap; }
.wl-ways { display: flex; gap: 6px; padding: 5px; background: var(--page); border-radius: calc(var(--r-m) + 5px); box-shadow: inset 0 0 0 var(--edge) var(--line-soft); }
.wl-way { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; font: 600 19px / 1 var(--display); color: var(--ink); background: transparent; border: var(--edge) solid transparent; border-radius: var(--r-m); white-space: nowrap; }
.wl-way .ic { width: 24px; height: 24px; }
.wl-way[aria-pressed="true"] { background: var(--grape-tint); border-color: var(--grape-deep); box-shadow: inset 0 0 0 1px var(--grape-deep); }
.wl-cols { min-height: 0; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; }
.wl-cols .wl-panel { min-height: 0; padding: 14px 16px 16px; display: grid; gap: 10px; align-content: start; }
.wl-side { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.wl-side .wl-field > span { font-size: 18px; }
.wl-side .wl-names { height: 100%; min-height: 0; white-space: pre; font: 400 17px / 1.45 var(--body); padding: 8px 14px; }
.wl-side.is-type { grid-template-rows: auto auto auto 1fr auto; }
.wl .wl-order { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 4px 12px 4px 14px; border-color: var(--wash-2); border-radius: var(--r-s); font: 400 17px / 1.2 var(--body); }
.wl .wl-order:focus-within { border-color: var(--ink); }
.wl .wl-order > label { display: grid; gap: 2px; min-width: 0; flex: 1; pointer-events: none; }
.wl .wl-order > label b { font: 600 18px / 1.2 var(--display); }
.wl .wl-order > .wl-ic { position: static; translate: none; flex: none; width: 22px; height: 22px; pointer-events: none; }
.wl .wl-order > select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.wl-photo-note { font: 400 var(--t-small) / 1.35 var(--body); color: var(--ink-2); }
.wl-list { grid-template-rows: auto minmax(0, 1fr); }
.wl-list .wl-listhead { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.wl-list .wl-count { font: 600 24px / 1 var(--display); white-space: nowrap; }
.wl-list .wl-twice { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 4px 6px 4px 14px; background: var(--tangerine-tint); border: 2px solid var(--tangerine-deep); border-radius: var(--r-s); font: 600 17px / 1.2 var(--display); }
.wl-list .wl-twice .cla-btn { min-height: 36px; padding: 0 12px; font-size: 16px; border-radius: 10px; --l: 3px; border-width: 2px; }
.wl-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; align-content: start; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; padding: 3px; margin: -3px; }
.wl-who li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 4px; height: 36px; padding: 0 4px 0 0; background: var(--wash); border-radius: 12px; font: 600 15px / 1.1 var(--display); white-space: nowrap; overflow: hidden; }
.wl-who li:focus-visible { outline: 4px solid var(--ink); outline-offset: 1px; }
.wl-who li canvas { width: 36px; height: 36px; }
.wl-who li span { overflow: hidden; text-overflow: ellipsis; }
.wl-who li.is-same { background: var(--tangerine-tint); box-shadow: inset 0 0 0 2px var(--tangerine-deep); }
/* The cross that takes a pupil off comes up when the pointer is on them (a touch screen always has it; a keyboard uses Delete). */
.wl-who li button { appearance: none; position: absolute; right: 3px; top: 50%; translate: 0 -50%; display: none; place-items: center; width: 28px; height: 28px; padding: 6px; color: var(--ink); background: var(--page); border: 0; border-radius: 8px; box-shadow: -6px 0 6px 0 var(--wash); }
.wl-who li.is-same button { box-shadow: -6px 0 6px 0 var(--tangerine-tint); }
.wl-who li:hover button, .wl-who li:focus-within button { display: grid; }
@media (hover: none) { .wl-who li button { display: grid; background: transparent; box-shadow: none; } }
.wl-who li button svg { width: 100%; height: 100%; display: block; }
/* Nobody yet: one calm line in the middle of the empty list, whole. It is a list item, so it had a pupil's chip look (one small column, a fixed
   height, nothing allowed to run over) and showed as "Their r". */
.wl-who li.wl-empty { display: block; align-self: center; height: auto; padding: 24px 12px; background: none; border-radius: 0; font: 600 20px / 1.35 var(--display); color: var(--ink-2); text-align: center; white-space: normal; overflow: visible; }
.wl-who:has(> .wl-empty) { align-content: center; }
/* On the photo tab the hint has the tip under it: two plain lines, quieter than the hint itself. */
.wl-who li.wl-empty .wl-tip { display: block; margin-top: 6px; font: 400 17px / 1.35 var(--body); }
.wl-who li.wl-empty .wl-tip:first-of-type { margin-top: 12px; }
.wl-more { align-self: end; font: 600 16px / 1.2 var(--display); color: var(--ink-2); }
.wl-add .wl-problem { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ 6 · here's your class */

.wl[data-screen="class"] { --field: 158px; --ground: calc(100% - var(--field)); --cloud-a: left 8% top 34px; --cloud-b: left 88% top 96px; --cloud-c: left -400px top 0; }
.wl-class-head { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 14px; }
.wl-class-head .wl-pt { --title-scale: 4; }
.wl-class-head .wl-pt.is-text { text-align: center; }
.wl-field-box { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--field) - 52px); bottom: calc(var(--square) + var(--soil-h) + 16px); }
.wl-field-box canvas { width: 100%; height: 100%; --s: 4; --tag: 28; --slot: 24; }
.wl[data-screen="class"] .wl-problem { position: absolute; left: 50%; bottom: calc(var(--square) + var(--soil-h) + 20px); translate: -50% 0; z-index: 3; max-width: calc(100% - var(--gutter) * 2); }

/* ------------------------------------------------------------------ laptop pages (540 to 620 high): Create an account

   The card's tighter spacing reaches 580 and 600 high too, so a problem under the robot check never reaches the gold
   button (the school laptop's page is 1366 x about 580). */

@media (max-height: 620px) and (min-width: 600px) {
    .wl-account { padding-top: 18px; }
    .wl-account .wl-card { gap: 10px; padding-block: 16px 18px; }
    .wl-account .wl-row { row-gap: 8px; }
    .wl-account .wl-problem { padding-block: 5px; }
}

/* ------------------------------------------------------------------ shorter laptop pages (540 to 560 high) */

@media (max-height: 560px) and (min-width: 600px) {
    .wl-door { gap: var(--s-3); }
    .wl-logo-big { --s: 4; }
    .wl-email { padding-top: 100px; }
    .wl-email .wl-card { gap: 10px; padding-block: 24px 26px; }
    .wl-name { padding-top: 76px; }
    .wl-name .wl-card { gap: 10px; padding-block: 22px; }
    .wl-plate { --title-scale: 4; min-height: 68px; }
    .wl-add { gap: 8px; padding-top: 4px; }
    .wl-who li { height: 32px; grid-template-columns: 32px minmax(0, 1fr) auto; }
    .wl-who li canvas { width: 32px; height: 32px; }
    .wl-who { gap: 5px 8px; }
    .wl-cols .wl-panel { padding-block: 10px 12px; gap: 8px; }
    .wl[data-screen="class"] { --field: 140px; }
    .wl-class-head { padding-top: 8px; }
}

/* ------------------------------------------------------------------ the board (1920 x 1080) */

@media (min-width: 1600px) and (min-height: 900px) {
    .wl {
        --gutter: 48px;
        --t-hero: 48px; --t-h1: 44px; --t-ui: 26px; --t-body: 24px; --t-small: 20px;
        --title-scale: 4;
        --tap: 72px; --tap-big: 92px; --square: 104px;
        --ground: 184px; --soil-h: 20px; --px: 5px;
        --r-m: 24px; --r-l: 34px;
        --lift: 7px;
    }
    .wl .cla-btn { font-size: var(--t-ui); padding: 0 32px; min-height: var(--tap); border-radius: var(--r-m); --l: var(--lift); }
    .wl .cla-btn .ic { width: 36px; height: 36px; }
    .wl .cla-btn.is-big { --l: 8px; font-size: 36px; padding: 0 44px; border-radius: 34px; min-height: var(--tap-big); }
    .wl .cla-btn.is-big .ic { width: 40px; height: 40px; }
    .wl .cla-btn.is-small { min-height: 60px; font-size: 22px; padding: 0 20px; border-radius: var(--ctl-small-r); --l: 4px; }
    .wl .cla-btn.is-small .ic { width: 36px; height: 36px; }
    .wl .cla-btn.wl-login { font-size: 30px; min-width: 290px; min-height: var(--square); --l: 6px; }
    .wl .cla-btn.wl-login .ic { width: 40px; height: 40px; }
    .wl .cla-square { font-size: 22px; border-radius: 34px; }
    .wl .cla-square .ic { width: 40px; height: 40px; }
    .wl .cla-square.wl-report .ic { width: 48px; height: 48px; }
    .wl .cla-square.wl-privacy .ic { width: 32px; height: 48px; padding: 4px 0; }
    .wl-logo { width: 231px; height: 90px; }
    .wl-strip { min-height: 104px; padding-top: var(--s-4); }
    .wl-steps { font-size: 26px; }
    .wl-dots i { width: 18px; height: 18px; }
    .wl .wl-field > span { font-size: 24px; }
    .wl .wl-box { min-height: 64px; font-size: 24px; padding: 10px 18px; }
    .wl-later { font-size: 24px; }
    .wl-later .ic { width: 30px; height: 30px; }
    .wl-walkers { height: 168px; --s: 6; }
    .wl-problem { font-size: 20px; padding: 10px 16px; }
    .wl-door { gap: var(--s-5); }
    .wl-logo-big { --s: 8; }
    .wl-btns { gap: var(--s-6); margin-top: var(--s-4); }
    .wl-btns .cla-btn { min-width: 360px; }
    .wl[data-screen="account"] { --ground: 200px; }
    .wl-account { padding-top: 140px; }
    .wl-account .wl-card { width: 1020px; padding: 40px 48px 44px; gap: 24px; }
    .wl-account .wl-pt { --title-scale: 4; }
    .wl-row { gap: 20px 28px; }
    .wl-have { font-size: 24px; }
    .wl-have .wl-link { min-height: 56px; }
    .wl[data-screen="email"] { --ground: 200px; --cloud-a: left 92% top 130px; }
    .wl-email { padding-top: 220px; }
    .wl-email .wl-card { width: 980px; padding: 44px 56px 48px; gap: 22px; }
    .wl-head .wl-env { width: 72px; height: 52px; }
    .wl-email .wl-pt { --title-scale: 4; }
    .wl-sent { font-size: 30px; }
    .wl-hint { font-size: 22px; }
    .wl-card-btns { gap: 24px; }
    .wl-email .wl-peek { --s: 7; width: 170px; height: 126px; }
    .wl[data-screen="name"] { --ground: 200px; --cloud-a: left 93% top 150px; }
    .wl-name { padding-top: 230px; }
    .wl-name .wl-card { width: 1000px; padding: 40px 56px; gap: 22px; }
    .wl-name .wl-nameinput { width: 640px; min-height: 84px; font-size: 40px; }
    .wl-plate { --title-scale: 7; min-height: 120px; }
    .wl-name .wl-peek { --s: 7; width: 800px; height: 140px; }
    .wl[data-screen="pupils"] { --ground: 150px; }
    .wl-add { gap: 24px; padding-top: 24px; padding-bottom: calc(var(--square) + var(--soil-h) + 40px); }
    .wl-ways { padding: 6px; }
    .wl-way { min-height: 64px; padding: 0 22px; font-size: 26px; }
    .wl-way .ic { width: 32px; height: 32px; }
    .wl-cols { grid-template-columns: 420px minmax(0, 1fr); gap: 28px; }
    .wl-cols .wl-panel { padding: 22px 24px 24px; gap: 16px; }
    .wl .wl-side .wl-field > span { font-size: 24px; }
    .wl-side .wl-names { font-size: 23px; padding: 12px 18px; }
    .wl .wl-order { min-height: 64px; }
    .wl .wl-order > label { font-size: 22px; }
    .wl .wl-order > label b { font-size: 24px; }
    .wl-photo-note { font-size: 21px; }
    .wl-list .wl-listhead { min-height: 60px; }
    .wl-list .wl-count { font-size: 34px; }
    .wl-list .wl-twice { font-size: 23px; padding: 6px 8px 6px 18px; }
    .wl-list .wl-twice .cla-btn { min-height: 48px; font-size: 21px; padding: 0 16px; }
    .wl-who { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 14px; }
    .wl-who li { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 6px; height: 80px; font-size: 24px; border-radius: 18px; }
    .wl-who li canvas { width: 76px; height: 80px; }
    .wl-who li button { width: 40px; height: 40px; padding: 8px; }
    .wl-who li.wl-empty { font-size: 30px; padding: 40px 24px; }
    .wl-who li.wl-empty .wl-tip { font-size: 24px; margin-top: 10px; }
    .wl-who li.wl-empty .wl-tip:first-of-type { margin-top: 18px; }
    .wl[data-screen="class"] { --field: 300px; }
    .wl-class-head { padding-top: 40px; }
    .wl-class-head .wl-pt { --title-scale: 7; }
    .wl-field-box { top: calc(var(--field) - 100px); }
    .wl-field-box canvas { --s: 7; --tag: 40; }
}

/* ------------------------------------------------------------------ a narrow window (under 900 px: a tablet, half a screen) */

@media (max-width: 899px) {
    .wl .wl-corner { display: none; }
    .wl-add .wl-top { flex-direction: column; align-items: stretch; gap: 10px; }
    .wl-add { padding-bottom: calc(var(--square) + var(--soil-h) + 26px); }
    .wl-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
    .wl-side { grid-template-rows: auto minmax(70px, 140px) auto; }
    .wl-side.is-type { grid-template-rows: auto auto auto; }
    /* The photo tab's note is as tall as its words (it is the reading's status too), so the list under it keeps the room. */
    .wl-side.is-photo { grid-template-rows: none; }
    .wl-side .wl-later { display: none; }
    .wl-list .wl-listhead { flex-wrap: wrap; gap: 8px; }
    .wl-list .wl-twice { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 8px; padding: 8px 10px; font-size: 16px; }
    .wl-list .wl-twice span { width: 100%; }
    .wl[data-screen="class"] .wl-end .cla-btn { padding: 0 var(--s-4); font-size: 22px; white-space: normal; line-height: 1.1; text-align: center; min-height: 64px; }
    .wl[data-screen="class"] .wl-end .cla-btn .ic { display: none; }
    .wl[data-screen="class"] .wl-field-box { bottom: calc(var(--square) + var(--soil-h) + 26px); }
}

/* ------------------------------------------------------------------ a phone (390 x 844) */

@media (max-width: 599px) {
    .wl {
        --gutter: 16px;
        --t-hero: 26px; --t-h1: 26px; --t-ui: 20px; --t-body: 17px; --t-small: 15px;
        --title-scale: 2;
        --tap-big: 64px; --square: 64px;
        --ground: 112px; --soil-h: 12px; --px: 3px;
        --cloud-a: left 70% top 18px; --cloud-b: left 6% top 64px; --cloud-c: left -400px top 0;
    }
    .wl .cla-square { border-radius: var(--r-m); font-size: 14px; gap: 2px; }
    .wl .cla-square .ic { width: 24px; height: 24px; }
    .wl .cla-btn.is-big { font-size: 22px; padding: 0 var(--s-5); border-radius: var(--r-m); }
    .wl .cla-btn.is-big .ic { width: 24px; height: 24px; }
    .wl .cla-square .ic { width: 24px; height: 24px; }
    .wl .cla-square.wl-report .ic { width: 24px; height: 24px; }
    .wl .cla-square.wl-privacy .ic { width: 16px; height: 24px; padding: 2px 0; }
    .wl .cla-btn.wl-login { font-size: 20px; min-width: 0; min-height: 64px; padding: 0 var(--s-4); border-radius: var(--r-m); }
    .wl .cla-btn.wl-login .ic { width: 24px; height: 24px; }
    .wl-strip { min-height: 64px; gap: 6px var(--s-3); flex-wrap: wrap; }
    .wl-strip .wl-steps { order: 3; width: 100%; }
    .wl-steps { font-size: 16px; gap: var(--s-2); }
    .wl-dots i { width: 12px; height: 12px; }
    .wl-later { font-size: 16px; }
    .wl-walkers { height: 80px; --s: 3; }
    .wl .wl-dock .wl-end { flex: 1; }
    .wl .wl-dock .wl-end .cla-btn { flex: 1; }

    .wl[data-screen="door"] { --ground: 196px; }
    .wl-door { justify-content: flex-start; padding-top: 72px; gap: var(--s-4); }
    .wl-logo-big { --s: 4; }
    .wl-line { font-size: 28px; }
    .wl-btns { flex-direction: column; align-self: stretch; gap: var(--s-4); margin-top: var(--s-5); }
    .wl-btns .cla-btn { min-width: 0; width: 100%; }
    .wl[data-screen="door"] .wl-walkers { bottom: 100px; height: 96px; --s: 3; }
    .wl[data-screen="door"] .wl-end { flex: 1; }

    .wl[data-screen="account"], .wl[data-screen="email"], .wl[data-screen="name"] { --ground: 112px; }
    .wl-account { padding-top: 16px; }
    .wl-account .wl-card { padding: 20px 18px 22px; gap: 14px; }
    .wl-account .wl-pt { --title-scale: 2; }
    .wl-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .wl-have { font-size: 16px; }
    .wl[data-screen="account"] .wl-walkers, .wl[data-screen="email"] .wl-walkers { display: none; }
    .wl-email { padding-top: 92px; }
    .wl-email .wl-card { padding: 22px 18px 24px; gap: 12px; }
    .wl-head { flex-direction: column; gap: 10px; }
    .wl-email .wl-pt { --title-scale: 2; }
    .wl-sent { font-size: 18px; }
    .wl-card-btns { flex-direction: column; align-self: stretch; gap: 12px; }
    .wl-email .wl-peek { --s: 4; width: 96px; height: 72px; }
    .wl-name { padding-top: 132px; }
    .wl-name .wl-card { padding: 22px 18px; gap: 12px; }
    .wl-name h2 { font-size: 24px; }
    .wl-name .wl-nameinput { font-size: 24px; min-height: 56px; }
    .wl-plate { --title-scale: 3; min-height: 52px; }
    .wl-plate.is-plain { font-size: 28px; }
    .wl-name .wl-peek { --s: 3; width: 300px; height: 64px; }
    .wl-strip .wl-steps .wl-what { display: none; }
    .wl-dock .wl-later-btn { padding: 0 var(--s-3); }

    .wl[data-screen="pupils"] { --ground: 96px; }
    .wl-add { padding: 4px var(--gutter) calc(var(--square) + var(--soil-h) + 26px); gap: 10px; }
    .wl-add h2 { font-size: 24px; }
    .wl-way { flex: 1; flex-direction: column; justify-content: center; gap: 4px; min-height: 60px; padding: 4px 4px; font-size: 14px; white-space: normal; text-align: center; line-height: 1.1; }
    .wl-side { grid-template-rows: auto 92px auto; }
    .wl-who li { font-size: 15px; }
    .wl-who li.wl-empty { padding: 8px 6px; }
    .wl-who li.wl-empty .wl-tip { font-size: 14px; line-height: 1.3; margin-top: 4px; }
    .wl-who li.wl-empty .wl-tip:first-of-type { margin-top: 8px; }

    .wl[data-screen="class"] { --field: 168px; }
    .wl-class-head { padding-top: 28px; }
    .wl-class-head .wl-pt { --title-scale: 3; }
    .wl-field-box { top: calc(var(--field) - 40px); bottom: calc(var(--square) + var(--soil-h) + 26px); }
    .wl-field-box canvas { --s: 3; --tag: 24; --slot: 23; }
    .wl[data-screen="class"] .wl-end .cla-btn { padding: 0 var(--s-3); font-size: 19px; }
}

/* A short phone (a browser's own bars leave 664 high): the door gives the grass a little less and starts nearer the top, and
   Add your pupils scrolls as one piece (the paste box, then the whole list) instead of squeezing the list to nothing. */
@media (max-width: 599px) and (max-height: 719px) {
    .wl[data-screen="door"] { --ground: 164px; }
    .wl-door { padding-top: 48px; }
    .wl-add { display: block; overflow-y: auto; scrollbar-width: thin; }
    .wl-add .wl-top { margin-bottom: 10px; }
    .wl-cols { grid-template-rows: none; grid-auto-rows: auto; }
    .wl-list { grid-template-rows: none; grid-auto-rows: auto; }
    .wl-who { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
    .wl *, .wl *::before, .wl *::after { transition: none !important; animation: none !important; }
}
