/* THE SHELVES (A2, 2026-11; built F9 2026-11-14 to the owner's picks: board Shelves-2 SH-B on wide
   screens and SH-C on phones, "I'm leaning toward B for wide screens and C for phone screens";
   Shelves-3 for B's other frames, C on a phone and a tablet and the breakpoint; Shelves-4 K3 "Thread"
   for the heads, "I like the strings"). The frame every module's home fills: templates/modules/
   shelves.html, shelf_strand.html, shelf_own.html, shelf_foot.html (and the Lessons strand's own body,
   courses/partials/own_strand.html, whose parts carry the same classes).

   ONE SCREEN, TWO ARRANGEMENTS:
   * B — a landscape window at least 1100px wide. Every part has its place on the board's 1728x1000
     frame, scaled by --u (one board pixel: the smaller of the two ratios, so the whole menu always fits
     one screen; the right-hand parts keep their distance from the right edge).
   * C — everything else (phones, upright tablets, narrow windows): one column, the heads in a row under
     the top row, the shelf on one vertical string whose focus holds the chosen pearl, its line and GO
     on a branch beside it. Only the string scrolls. --k scales the phone board (390 wide) up to an
     upright tablet's 1.25.
   The parts of the open strand are placed against the page itself: the strand's own wrappers
   (.sh-open in B, .sh-body, .sh-own in C) draw nothing. static/js/a2/shelves.js fills the stage (the
   lens, the name, the placeholders), runs the strip and the string, and plays the heads.
   Flat: no nesting (tests/test_stylesheets_are_flat.py). Toggled parts carry their own [hidden] rule. */

/* ===================================================================== both arrangements: the parts' look */

#af-main:has(> .sh){max-width:none;margin:0;padding:0}
body:has(> div > #af-main > .sh){overflow:hidden}
.sh{--u:1px;--k:1px;position:relative;height:100vh;height:100dvh;overflow:hidden;color:var(--ink)}
.sh-nm{margin:0}
/* the page's name is the open head's: the h1 lies, in no colour of its own, over the open head's drawn
   name (a screen reader reads it; the first-run guide's tag finds it there) */
.sh[data-sh-open="missions"]{--hi:0}
.sh[data-sh-open="trips"]{--hi:1}
.sh[data-sh-open="tales"]{--hi:2}
.sh[data-sh-open="own"]{--hi:3}
#sh-name{position:absolute;z-index:1;margin:0;padding:0;overflow:hidden;white-space:nowrap;color:transparent;font:800 1px/1 var(--fd);pointer-events:none;user-select:none}

/* -- THE HEADS (K3 "Thread"): a thread with its name set along it. Closed: slack, in a quiet tone of its
   strand; the open one: taut, heavy, in its strand's colour, with its note. Each is a link (each shelf is
   its own address), 44px and more each way; its name is a real text node (`b`), sized over the drawn name
   (so a tag can point at it) and read in normal order; the drawn name is the SVG's (aria-hidden). ---- */
.sh-heads{display:flex}
.sh-row{position:relative;display:block;flex:none;color:rgb(var(--c));text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sh-st{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.sh-st-th{fill:none;stroke:rgba(var(--c),.62);stroke-width:1.5;stroke-linecap:round;transition:stroke .25s,stroke-width .3s}
.sh-st circle{fill:rgba(var(--c),.85)}
.sh-st-tx{fill:rgba(var(--c),.8);font-family:var(--fd);font-weight:800;font-size:25px;letter-spacing:-.005em;transition:fill .25s}
.sh-st-nt{font-family:var(--fb);font-weight:700;font-size:18px;letter-spacing:0}
.sh-row.on .sh-st-th{stroke:rgb(var(--c));stroke-width:3.2}
.sh-row.on .sh-st-tx{fill:rgb(var(--c));font-size:33px}
.sh-row:hover .sh-st-tx,.sh-row:focus-visible .sh-st-tx,.sh-row.pull .sh-st-tx{fill:rgb(var(--c))}
.sh-row:hover .sh-st-th,.sh-row:focus-visible .sh-st-th{stroke:rgba(var(--c),.95)}
.sh-row.pull .sh-st-th{stroke:rgb(var(--c));stroke-width:3.2}
.sh-row:focus-visible{outline:2px solid rgb(var(--c));outline-offset:2px;border-radius:12px}
.sh-row:focus:not(:focus-visible){outline:none}
/* the name as text: over the drawn name, in no colour of its own (the drawn one is seen) */
.sh-row > b{position:absolute;display:block;color:transparent;font:800 1px/1 var(--fd);overflow:hidden;white-space:nowrap;pointer-events:none;user-select:none}
.sh-row > small{display:block;pointer-events:none}

/* -- THE SEARCH LINE and THE MAKE PRESS: each its own place (owner F3 15c: "the search field is clashing
   with other features"). The line narrows the shelf as the learner writes; the press makes what is not
   there (armed from a few letters: its price shows, PRICE-1). ------------------------------------- */
.sh-ask-l{display:flex;align-items:center;gap:10px;border-bottom:2.5px solid var(--ink)}
.sh-mg{flex:none;width:21px;height:21px;color:var(--ink)}
:where(.a2) .sh-ask{flex:1;min-width:0;width:auto;height:calc(1lh + 17px);margin:0;padding:8px 0 9px;border:0;border-radius:0;background:none;font:700 19px/1.2 var(--fb);color:var(--ink);outline:none;box-shadow:none}
:where(.a2) .sh-ask::placeholder{color:rgba(21,23,30,.55);font-weight:700}
.sh-ask-l:focus-within{border-bottom-color:rgb(var(--c))}
.sh-own.no .sh-ask-l{border-bottom-color:#C4304A}
.sh-ob{position:relative;display:flex;align-items:center;gap:12px;padding:0;border:0;background:none;color:var(--ink);text-decoration:none;cursor:pointer}
.sh-ob[hidden],.sh-why[hidden]{display:none}
/* TW-78/85: the writing line is folded under the make pearl until a press on the pearl unfolds it (shelves.js, `fold`) */
.sh-own.fold:not(.open) .sh-ask-l{display:none}
.sh-ob > canvas,.sh-ob .pp canvas{display:block;width:var(--mk);height:var(--mk);border-radius:50%;filter:drop-shadow(0 6px 6px rgba(20,42,140,.34))}
.sh-ob .pp{order:0}
.sh-ob > canvas,.sh-ob .pp{flex:none;transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.sh-ob:hover > canvas,.sh-ob:hover .pp{transform:scale(1.07)}
.sh-ob-w{font:800 18px/1.05 var(--fd);white-space:nowrap}
.sh-ob:focus-visible{outline:none}
.sh-ob:focus-visible > canvas,.sh-ob:focus-visible .pp canvas{box-shadow:0 0 0 3px #F4EFE6,0 0 0 5.5px var(--ink)}
.sh-own:not(.armed) .pp .pq{opacity:0}
.sh-own.armed .sh-ob > canvas,.sh-own.armed .sh-ob .pp canvas{animation:a2-kpulse 2.2s ease-in-out infinite}
/* its price badge (PRICE-1): the small one, the make pearl being --mk (about 40-60px), not the 124px it is drawn at */
.sh-ob .pp .pq{right:-14px;top:-14px;height:21px;padding:0 7px 0 3px;font-size:13px}
.sh-ob .pp .pq img{width:16px;height:16px}
.sh-own.fog .sh-ob > canvas,.sh-own.grey .sh-ob > canvas{filter:drop-shadow(0 6px 6px rgba(21,23,30,.2));animation:none}
.sh-own.fog .sh-ob-w,.sh-own.grey .sh-ob-w{color:var(--mut)}
.sh-own.grey .sh-ob{cursor:default}
.sh-err{margin:0;font:700 15px/1.3 var(--fb);color:#C4304A;animation:a2-in .3s both}
.sh-why{z-index:44;box-sizing:border-box;margin:0;padding:12px 16px;border-radius:14px;background:var(--ink);color:#fff;font:600 15px/1.35 var(--fb);pointer-events:none;opacity:0;transform:translateY(-4px);transition:opacity .2s,transform .2s}
.sh-ob:hover ~ .sh-why,.sh-ob:focus-visible ~ .sh-why{opacity:1;transform:none}
.sh-own .pr-tag{z-index:60}
.sh-tag.tag4{z-index:30;white-space:normal;animation:a2-pop .4s cubic-bezier(.3,1.5,.5,1) .6s backwards;transition:opacity .5s}
/* TW-91: the pointer sits on the tag's top edge, over nothing it says, aimed up at the pearl it names (the kit's
   side pointer, left:28px, drew a diamond over the title's first letters); it leaves by itself, shelves.js `tagLife` */
.sh-tag.tag4::before{left:28px;top:-6px;margin-top:0}
.sh-tag.tag4.going{opacity:0}
.sh-tag[hidden]{display:none}

/* -- THE FIELD (owner 2026-11-17: "a frosted glass, transluscent text field placed on top left ... it should also have
   a send button"): the Missions and Lessons shelves' line, "Type any topic", on frosted glass in the strand's colour
   (the phone heads' own glass), a send pearl at its end, blue while it holds words not sent yet and breathing while
   they are asked. The make press waits for the words to be sent (`.sh-asks:not(.asked)`), then shows with its
   price. --------------------------------------------------------------------------------------------------- */
.sh-glass{gap:6px;padding:0 5px 0 22px;border:0;border-radius:999px;background-color:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);box-shadow:inset 0 0 0 1px rgba(var(--c),.24),inset 0 1px 0 rgba(255,255,255,.9),0 12px 26px -16px rgba(var(--c),.6);transition:background-color .2s,box-shadow .2s}
.sh-glass:focus-within{background-color:rgba(255,255,255,.72);box-shadow:inset 0 0 0 1.5px rgba(var(--c),.62),inset 0 1px 0 rgba(255,255,255,.9),0 14px 30px -16px rgba(var(--c),.75)}
.sh-own.no .sh-glass{box-shadow:inset 0 0 0 1.5px #C4304A,inset 0 1px 0 rgba(255,255,255,.9),0 12px 26px -16px rgba(196,48,74,.5)}
:where(.a2) .sh-glass .sh-ask{height:1lh;padding:0;font-weight:700}
:where(.a2) .sh-glass .sh-ask::placeholder{color:rgba(21,23,30,.42)}
/* .sh-send (the send pearl): static/css/a2/send.css, loaded with this frame by a2_shelves.shelves_asset */
.sh-own.asking .sh-send canvas{animation:a2-kpulse 1.1s ease-in-out infinite}
.sh-own.sh-asks:not(.asked) .sh-ob,.sh-own.sh-asks:not(.asked) .sh-why,.sh-own.sh-asks:not(.asked) .pr-tag{display:none}
.sh-own.sh-asks.asked .sh-ob{animation:a2-pop .45s cubic-bezier(.3,1.5,.5,1) both}
/* a pearl with no page of its own (a lesson an answer carries, a shared lesson) is a button; its take, the
   line's GO, too */
:where(.a2) button.sh-it{margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer;overflow:visible}
:where(.a2) .sh-dt-post button.go{border:0;background:none;cursor:pointer;font-family:var(--fd);font-weight:800;color:rgb(28,57,187)}

/* -- THE SORTING THREAD: plain small pearls, each as large as what it holds, its label under it; the
   learner's own filter first and bold. It spreads while it fits and scrolls sideways when it does not
   (the thread is the row's own background, so it spans the scrolled width). -------------------------- */
.sh-sorts{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:0 6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;background:linear-gradient(rgba(var(--c),.5),rgba(var(--c),.5)) 0 calc(var(--sy) - .75px)/100% 1.5px no-repeat local}
.sh-sorts::-webkit-scrollbar{display:none}
.sh-sorts > .sh-cl{display:none}
.sh-cb{position:relative;display:flex;flex-direction:column;align-items:center;flex:none;min-width:44px;margin:0;padding:calc(var(--sy) - var(--d) / 2) 0 0;border:0;background:none;color:var(--ink);cursor:pointer;scroll-snap-align:start}
.sh-cb canvas{display:block;width:var(--d);height:var(--d);border-radius:50%;filter:drop-shadow(0 4px 4px rgba(10,14,40,.24));transition:transform .3s cubic-bezier(.3,1.6,.5,1),opacity .25s}
.sh-cb small{margin-top:7px;white-space:nowrap;font:700 13.5px/14px var(--fb);color:var(--mut);transition:color .2s}
.sh-cb:hover canvas,.sh-cb:focus-visible canvas,.sh-cb.on canvas{transform:scale(1.12)}
.sh-cb:hover small{color:var(--ink)}
.sh-cb.on small{color:rgb(var(--c));font-weight:800}
.sh-cb.off canvas{opacity:.62}
.sh-cb.lead small{font-weight:800;color:var(--ink)}
.sh-cb.lead.on small{color:rgb(var(--c))}
.sh-cb:focus-visible{outline:none}
.sh-cb:focus-visible canvas{box-shadow:0 0 0 3px #F4EFE6,0 0 0 5px var(--ink)}

/* -- THE SHELF'S PEARLS: a picture pearl, its kicker and its name under it (B); the chosen one ringed in
   its strand's colour, a done one in gold, a veiled one being written, a fogged one locked. --------- */
.sh-rail{scrollbar-width:none;overscroll-behavior:contain}
.sh-pin{display:none}
.sh-rail::-webkit-scrollbar{display:none}
.sh-it{position:relative;display:flex;flex-direction:column;align-items:center;flex:none;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
.sh-it canvas{display:block;flex:none;width:var(--pz);height:var(--pz);border-radius:50%;filter:drop-shadow(0 8px 8px rgba(10,14,40,.24));transition:transform .45s cubic-bezier(.3,1.25,.5,1),box-shadow .2s}
.sh-it:hover canvas{transform:scale(1.04)}
.sh-it.sel canvas{box-shadow:0 0 0 4px #F4EFE6,0 0 0 8px rgb(var(--c))}
.sh-it.gold canvas{box-shadow:0 0 0 4px #F4EFE6,0 0 0 8px #E8A21A}
.sh-it.gold.sel canvas{box-shadow:0 0 0 4px #F4EFE6,0 0 0 8px #E8A21A,0 0 0 11px #F4EFE6,0 0 0 14px rgb(var(--c))}
.sh-it:focus-visible{outline:none}
.sh-it:focus-visible canvas{box-shadow:0 0 0 4px #F4EFE6,0 0 0 7px var(--ink)}
.sh-it span{display:block;text-align:center;pointer-events:none}
.sh-it span i{display:block;min-height:14px;font:700 11px/14px var(--fd);font-style:normal;letter-spacing:.14em;text-transform:uppercase;color:rgb(var(--c));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-it span b{display:-webkit-box;margin-top:2px;font:700 15.5px/1.22 var(--fb);overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.sh-it.sel span b{font-weight:800}
.sh-it.gold span i{color:#8A5A00}
.sh-it.wip span i,.sh-it.fog span i{color:var(--faint)}
.sh-it.hid,.sh-it.out{display:none}
.sh-it.fresh canvas{animation:a2-pop .5s cubic-bezier(.3,1.5,.5,1) backwards}
/* the string's empty seat while nothing is chosen (C; shelves.js) */
.sh-slot0{display:block;flex:none;pointer-events:none}

/* -- THE BACK AND FORTH PEARLS (owner F4 d09: "give the rail a back and forth button"): small nacre
   pearls with an ink chevron at the shelf's two ends, each shown only while there is something that way. */
.sh-step{position:absolute;z-index:4;display:block;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.sh-step[hidden]{display:none}
.sh-step canvas{display:block;width:100%;height:100%;border-radius:50%;filter:drop-shadow(0 5px 5px rgba(10,14,40,.26));transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.sh-step::after{content:"";position:absolute;z-index:1;left:50%;top:50%;width:10px;height:10px;margin:-6.5px 0 0 -8px;border-top:3px solid var(--ink);border-right:3px solid var(--ink);border-radius:1.5px;transform:rotate(45deg);pointer-events:none;transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.sh-step.prev::after{margin-left:-4px;transform:rotate(-135deg)}
.sh-step:hover canvas,.sh-step:focus-visible canvas{transform:scale(1.1)}
.sh-step:active canvas{transform:scale(.94)}
.sh-step:focus-visible{outline:none;box-shadow:0 0 0 3px #F4EFE6,0 0 0 5px var(--ink)}

/* -- THE STAGE: the chosen pearl's name and line and its GO, in ONE fixed place whatever is chosen (owner
   F5 P22: "this description text positoin and the position of the button in front of it keep changing.
   can you fix their positoin as user selects differetn pearls?"). The line is two lines at most; the
   GO is placed by its own spot, never by the sentence. While nothing is chosen the stage says what to do
   and a grey pearl holds the GO's place. ------------------------------------------------------------ */
/* the big pearl's crescent (TW-80/82/86; static/js/a2/shelves.js `crescent`, the crescent itself is stage.css `mss-`):
   drawn only in B (a wide window); the lens's press and the crescent's holder are placed in the B block below */
.sh-lb,.sh-crh{display:none}
.sh-bl[hidden]{display:none}
/* the narrow layout's bullet list (the crescent's own items, in the shared sheet): shelves.js `crescent` */
.shbl{padding-top:22px}
.shbl h2{margin:0 0 12px;padding-right:48px;font:800 20px/1.2 var(--fd);color:var(--ink)}
.shbl ul{margin:0;padding:0;list-style:none}
.shbl li{padding:9px 0;border-bottom:1.5px solid var(--line)}
.shbl li b{display:block;font:700 16px/1.3 var(--fb);color:var(--ink)}
.shbl li small{display:block;margin-top:2px;font:600 14px/1.3 var(--fb);color:var(--mut)}
.sh-lens{pointer-events:none}
.sh-lens canvas{display:block;width:100%;height:100%;border-radius:50%;filter:drop-shadow(0 18px 22px rgba(10,14,40,.26))}
.sh:not(.sh-has-sel) .sh-lens canvas{visibility:hidden}
.sh:not(.sh-has-sel) .sh-lens{border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(var(--c),.32)}
.sh-hd{margin:0;display:flex;flex-direction:column;justify-content:flex-end;pointer-events:none}
.sh-hd i{display:block;font:700 12.5px/1 var(--fd);font-style:normal;letter-spacing:.16em;text-transform:uppercase;color:rgb(var(--c));margin-bottom:9px}
.sh-hd i:empty{display:none}
.sh-hd b{display:-webkit-box;font:800 40px/1.08 var(--fd);letter-spacing:-.015em;color:var(--ink);overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.sh:not(.sh-has-sel) .sh-hd{visibility:hidden}
.sh-pick{margin:0;font:500 19px/1.4 var(--fb);color:var(--mut)}
.sh.sh-has-line .sh-pick{display:none}
.sh-go0{display:block;pointer-events:none}
.sh-go0 canvas{display:block;width:100%;height:100%;border-radius:50%;filter:drop-shadow(0 6px 8px rgba(21,23,30,.18))}
.sh.sh-has-go .sh-go0,.sh:not(.sh-has-sel) .sh-go0{display:none}
/* TW-92: the big arrow pearl is there only while something is chosen; it fades in on the first choice */
.sh-go0{animation:a2-in .3s both}
.sh-go0::after{content:"";position:absolute;left:50%;top:50%;width:13px;height:13px;margin:-7.5px 0 0 -10.5px;border-top:4px solid rgba(255,255,255,.85);border-right:4px solid rgba(255,255,255,.85);border-radius:2px;transform:rotate(45deg)}
.sh-branch{display:block;pointer-events:none}

/* the line: two lines at most; the chosen pearl's lead is its name, already said by the stage, so it is
   kept for a screen reader only (shelves.js marks it .sh-dup) */
.sh-dt[hidden],.sh-dt [hidden]{display:none}
.sh-dt p{margin:0;font:500 19px/1.45 var(--fb);color:rgba(21,23,30,.84);display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* a pressed crescent bullet teaches (TW7): its whole line shows, not the pearl's two-line summary */
.sh-cr-open .sh-dt p{-webkit-line-clamp:5}
.sh-dt p b{font-weight:800;color:rgb(var(--c))}
/* R4-S1: a clamped line is a press that opens the whole line in the shared sheet (shelves.js `blurb`) */
.sh-dt p.is-more{cursor:pointer;-webkit-tap-highlight-color:transparent}
.sh-dt p.is-more:focus-visible{outline:2px solid rgb(var(--c));outline-offset:3px;border-radius:6px}
.shbt{padding-top:22px}
.shbt .af-sheet-title{margin:0 0 12px;padding-right:48px}
.shbt-text{margin:0;font:500 17px/1.5 var(--fb);color:rgba(21,23,30,.86)}
.shbt-text b{font-weight:800;color:var(--ink)}
.sh-dt p b.sh-dup{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.sh-dt .qa,:where(.a2) .sh-dt-post .qa{border:0;background-color:transparent;font-size:17px;white-space:nowrap;cursor:pointer}
:where(.a2) .sh-dt-post .qa[aria-disabled="true"]{color:var(--faint);cursor:default}
.sh-dt-post{display:inline-flex;margin:0}
/* the GO at its spot: the pearl, no trailing dots; words (a commitment) to its left */
:where(.a2) .sh-dt .go{position:absolute;z-index:3;right:0;height:var(--gz);padding:0;gap:12px;font-size:20px;background:none;white-space:nowrap}
:where(.a2) .sh-dt .go canvas{width:var(--gz);height:var(--gz)}
:where(.a2) .sh-dt .go::before{width:28px}
:where(.a2) .sh-dt .go::after{right:calc(var(--gz) / 2 - 4.5px);width:12px;height:12px;margin-top:-6px;border-top-width:4px;border-right-width:4px}
:where(.a2) .sh-dt .go:hover canvas{transform:translateX(4px) rotate(40deg) scale(1.04)}
:where(.a2) .sh-dt .go:hover::after{transform:translateX(5px) rotate(45deg)}
:where(.a2) .sh-dt .go .pp canvas{width:var(--gz);height:var(--gz)}
/* a GO that carries words (a commitment: "Sign up free", "Add · free", "Try again"): the pearl keeps
   its spot and the words hang under it, so they never sit on the line or the branch */
:where(.a2) .sh-dt .go.won,:where(.a2) .sh-dt button.go,:where(.a2) .sh-dt a.ow-go:not(.bare){flex-direction:column-reverse;align-items:flex-end;height:auto;gap:4px;font-size:16px;line-height:1.1}
:where(.a2) .sh-dt .go.won::after,:where(.a2) .sh-dt button.go::after,:where(.a2) .sh-dt a.ow-go:not(.bare)::after{top:calc(var(--gz) / 2)}
/* the Lessons strand's GO and words (own_acts.html): the GO at the same spot, its words in a row under
   the line */
.sh .ow-acts{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:0 24px;margin:6px 0 0;padding:0}
:where(.a2) .sh .ow-acts .qa{font-size:17px;height:40px}

/* -- THE ACCOUNT: Progress and Publishing, the learner's own (one kind of button: a small pearl with its
   pictogram and its name in a thin outline), apart from Log out and the gear, which are quiet. ------- */
.sh-ft{margin:0}
.sh-abs{display:flex;gap:16px}
.sh-ab{position:relative;display:flex;align-items:center;gap:12px;box-sizing:border-box;height:54px;padding:0 18px 0 7px;border-radius:18px;box-shadow:inset 0 0 0 1.5px rgba(21,23,30,.22);color:var(--ink);transition:box-shadow .2s,background-color .2s}
.sh-ab:hover{box-shadow:inset 0 0 0 1.5px rgba(21,23,30,.5);background-color:rgba(255,255,255,.45)}
.sh-ab-p{position:relative;z-index:1;flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-style:normal;pointer-events:none;transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.sh-ab-p canvas{grid-area:1/1;width:40px;height:40px;filter:drop-shadow(0 4px 4px rgba(10,14,40,.22))}
.sh-ab-p svg{grid-area:1/1;position:relative;width:19px;height:19px;color:var(--ink)}
:where(.a2) .sh-ab-a{font:800 18px/1 var(--fd);color:var(--ink);text-decoration:none;white-space:nowrap}
.sh-ab-a::after{content:"";position:absolute;z-index:2;inset:0;border-radius:18px}
.sh-ab:hover .sh-ab-p{transform:scale(1.1)}
.sh-ab:active .sh-ab-p{transform:scale(.95)}
:where(.a2) .sh-ab-a:focus-visible{outline:none}
.sh-ab:has(.sh-ab-a:focus-visible){box-shadow:inset 0 0 0 1.5px var(--ink),0 0 0 3px #F4EFE6,0 0 0 5px var(--ink)}
.sh-quiet{display:flex;flex-wrap:wrap;align-items:center;gap:4px 22px}
.sh-ft-f{display:contents}
:where(.a2) .sh-ft button.qa{border:0;background-color:transparent;cursor:pointer}
:where(.a2) .sh-ft .sh-ft-out,:where(.a2) .sh-ft .sh-ft-in{font-size:16px;color:var(--mut)}
/* Log out's door-and-arrow, drawn in its own colour (the button's words stay its name) */
.sh-ft-lo::before{content:"";flex:none;width:19px;height:19px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5.5A1.5 1.5 0 0 0 4 5.5v13A1.5 1.5 0 0 0 5.5 20H10'/%3E%3Cpath d='M15 8l4 4-4 4M19 12H9.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5.5A1.5 1.5 0 0 0 4 5.5v13A1.5 1.5 0 0 0 5.5 20H10'/%3E%3Cpath d='M15 8l4 4-4 4M19 12H9.5'/%3E%3C/svg%3E") center/contain no-repeat}
.sh-gear{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;font-size:0;line-height:0;color:var(--mut);text-decoration:none;transition:color .2s,transform .5s cubic-bezier(.3,1.4,.5,1)}
.sh-gear::before{content:"";width:25px;height:25px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M10.3 2.8h3.4l.5 2.6 1.7.9 2.4-1.2 2.4 2.4-1.2 2.4.9 1.7 2.6.5v3.4l-2.6.5-.9 1.7 1.2 2.4-2.4 2.4-2.4-1.2-1.7.9-.5 2.6h-3.4l-.5-2.6-1.7-.9-2.4 1.2-2.4-2.4 1.2-2.4-.9-1.7-2.6-.5v-3.4l2.6-.5.9-1.7-1.2-2.4 2.4-2.4 2.4 1.2 1.7-.9z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M10.3 2.8h3.4l.5 2.6 1.7.9 2.4-1.2 2.4 2.4-1.2 2.4.9 1.7 2.6.5v3.4l-2.6.5-.9 1.7 1.2 2.4-2.4 2.4-2.4-1.2-1.7.9-.5 2.6h-3.4l-.5-2.6-1.7-.9-2.4 1.2-2.4-2.4 1.2-2.4-.9-1.7-2.6-.5v-3.4l2.6-.5.9-1.7-1.2-2.4 2.4-2.4 2.4 1.2 1.7-.9z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E") center/contain no-repeat}
.sh-gear:hover{color:var(--ink);transform:rotate(45deg)}
.sh-gear:focus-visible{outline:none;box-shadow:0 0 0 2px #F4EFE6,0 0 0 4px var(--ink)}
.sh-ft-legal{display:inline-flex;gap:16px}
:where(.a2) .sh-ft-legal .qa{font-size:14px}
.sh-ft-studio{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0 16px}
:where(.a2) .sh-ft-studio .qa{height:32px;font-size:13.5px}

/* ===================================================================== B: index and a lens (wide, landscape) */
@media (min-width:1100px) and (orientation:landscape){
  .sh{--u:min(calc(100vw / 1728), calc(100vh / 1000));--pz:calc(124 * var(--u));--gz:calc(72 * var(--u));--mk:calc(52 * var(--u));--sy:calc(38 * var(--u))}
  .sh-open,.sh-body,.sh-own{display:contents}
  .sh-body > .sh-th,.sh-body > i.sh-th{position:absolute;left:calc(162 * var(--u));right:calc(442 * var(--u));top:calc(759 * var(--u));height:2px;border-radius:1px;background:rgb(var(--c));pointer-events:none}

  /* the heads: four threads down the right edge, 66 apart, 410 long (K3-B) */
  /* TW-93: level with the GO pearl's middle (374 + 72/2 = 410, so 410 - 410/2 = 205), and a little nearer the right edge (the window dots column is at the top right, so not further) */
  .sh-heads{position:absolute;z-index:6;right:calc(96 * var(--u));top:calc(205 * var(--u));width:calc(264 * var(--u));height:calc(410 * var(--u))}
  .sh-row{width:calc(66 * var(--u));height:100%}
  .sh-st-c{display:none}
  .sh-row > b{left:0;bottom:calc(14 * var(--u));width:calc(38 * var(--u));height:calc(130 * var(--u))}
  .sh-row.on > b{height:calc(170 * var(--u))}
  #sh-name{left:calc(100% - (374 - var(--hi) * 66) * var(--u));top:calc(366 * var(--u));width:calc(38 * var(--u));height:calc(170 * var(--u))}
  .sh-row > small{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

  /* the search line top left, the make press beside it */
  .sh-ask-l{position:absolute;z-index:5;left:calc(140 * var(--u));top:calc(58 * var(--u));width:calc(440 * var(--u));height:calc(48 * var(--u));box-sizing:border-box}
  /* the field, frosted, in the same place and a little larger; its sentence and its first-time tag under it */
  .sh-glass{width:max(360px, calc(500 * var(--u)));height:max(50px, calc(58 * var(--u)))}
  :where(.a2) .sh-glass .sh-ask{font-size:max(16px, calc(19 * var(--u)))}
  .sh-own.sh-asks .sh-err{top:calc(58 * var(--u) + max(50px, calc(58 * var(--u))) + 8px)}
  .sh-own.sh-asks .sh-tag.tag4{left:calc(140 * var(--u));top:calc(58 * var(--u) + max(50px, calc(58 * var(--u))) + 14px)}
  /* TW7b (owner 2026-11-17, F1): the make press is the HEAD of the item rail, at its left end (the rail's pearls
     sit on the line at 759u), small, its word under it, and it never moves with the rail; the back arrow has its
     own place right of it (it was under the press: "a weird white pearl underneath it"). The writing line keeps
     its place top left and still opens only when the pearl is pressed (TW-78). */
  .sh-ob{--mk:40px;position:absolute;z-index:5;left:calc(110 * var(--u) - 50px);top:calc(759 * var(--u) - 20px);width:100px;height:auto;flex-direction:column;align-items:center;gap:5px}
  .sh-ob-w{font-size:12px;line-height:1.1;text-align:center}
  .sh-err{position:absolute;z-index:5;left:calc(140 * var(--u));top:calc(116 * var(--u));width:calc(440 * var(--u))}
  .sh-why{position:absolute;left:calc(110 * var(--u) - 50px);top:calc(759 * var(--u) + 52px);width:290px}
  .sh-own .pr-tag{left:calc(110 * var(--u) - 50px);top:calc(759 * var(--u) + 52px);width:290px}
  .sh-tag.tag4{left:calc(110 * var(--u) - 28px);top:calc(759 * var(--u) + 56px)}

  /* TW7b "on the rail" (owner 2026-11-17, F1): the sorting pearls sit on a thin thread directly above the rail of
     pearls they sort, as wide as the rail, ALL the same small size (20px), their labels small and on ONE line
     under each; the chosen one blue and bold. Too many for the width: they scroll sideways on their own thread. */
  .sh-sorts{position:absolute;z-index:4;left:calc(233 * var(--u));width:calc(982 * var(--u));top:calc(600 * var(--u));height:52px;box-sizing:border-box;padding:0 4px;justify-content:space-between;gap:6px;--sy:14px}
  .sh-cb{padding-top:calc(var(--sy) - 10px)}
  .sh-cb canvas{width:20px;height:20px}
  .sh-cb small{margin-top:4px;font-size:11.5px;line-height:14px}

  /* the lens: the chosen pearl, large; its kicker and name beside it, the line under the name, the GO
     at the stage's right, level with the lens's middle */
  .sh-lens{position:absolute;left:calc(140 * var(--u));top:calc(160 * var(--u));width:calc(300 * var(--u));height:calc(300 * var(--u));transition:left .7s cubic-bezier(.3,.9,.3,1),top .7s cubic-bezier(.3,.9,.3,1),width .7s cubic-bezier(.3,.9,.3,1),height .7s cubic-bezier(.3,.9,.3,1)}
  .sh-lb{position:absolute;z-index:4;display:block;left:calc(140 * var(--u));top:calc(160 * var(--u));width:calc(300 * var(--u));height:calc(300 * var(--u));padding:0;border:0;border-radius:50%;background:none;color:rgb(var(--c));cursor:pointer;transition:left .7s cubic-bezier(.3,.9,.3,1),top .7s cubic-bezier(.3,.9,.3,1),width .7s cubic-bezier(.3,.9,.3,1),height .7s cubic-bezier(.3,.9,.3,1)}
  .sh-lb[hidden]{display:none}
  .sh-lb:hover{box-shadow:0 0 0 calc(9 * var(--u)) rgba(var(--c),.14)}
  .sh-lb:focus-visible{outline:none;box-shadow:0 0 0 3px #F4EFE6,0 0 0 6px var(--ink)}
  .sh-lbw{position:absolute;left:0;right:0;top:calc(100% + 14 * var(--u));text-align:center;font:700 12px/1 var(--fd);letter-spacing:.18em;text-transform:uppercase;transition:opacity .3s}
  .sh-crh{position:absolute;z-index:3;display:block;left:calc(510 * var(--u));top:calc(310 * var(--u));width:0;height:0;transform:scale(var(--ks, 1));transform-origin:0 0}
  .sh-crh .mss-cr{left:0;top:0}
  .sh-cr-open .sh-lens,.sh-cr-open .sh-lb{left:calc(400 * var(--u));top:calc(200 * var(--u));width:calc(220 * var(--u));height:calc(220 * var(--u))}
  .sh-cr-open .sh-lbw{opacity:0}
  .sh-cr-open .sh-hd,.sh-cr-open .sh-pick,.sh-cr-open .sh-dt{left:calc(676 * var(--u))}
  .sh.sh-cr-open .sh-open .sh-dt p{max-width:calc(540 * var(--u))}
  .sh-hd{position:absolute;left:calc(496 * var(--u));right:calc(532 * var(--u));top:calc(150 * var(--u));height:calc(150 * var(--u))}
  .sh-hd b{font-size:calc(40 * var(--u))}
  .sh-hd i{font-size:calc(12.5 * var(--u))}
  .sh-pick{position:absolute;left:calc(496 * var(--u));right:calc(532 * var(--u));top:calc(296 * var(--u));font-size:calc(19 * var(--u))}
  .sh-dt{position:absolute;z-index:3;left:calc(496 * var(--u));right:calc(420 * var(--u));top:calc(312 * var(--u))}
  .sh-dt p{max-width:calc(700 * var(--u));font-size:max(16px, calc(19 * var(--u)))}
  :where(.a2) .sh-dt .go{top:calc(62 * var(--u))}
  :where(.a2) .sh-dt .go::before{display:none}
  .sh-dt .sh-dt-word,.sh-dt .sh-dt-post{margin-top:8px}
  /* R4-T1: a refused start's tag (the gate's sentence) under its GO's words */
  :where(.a2) .sh-dt-start .pr-tag{right:0;top:calc(62 * var(--u) + var(--gz) + 34px)}
  .sh-go0{position:absolute;right:calc(420 * var(--u));top:calc(374 * var(--u));width:var(--gz);height:var(--gz)}
  .sh-branch{display:none}

  /* the strip: the shelf's pearls along the bottom, between its back and forth pearls; it scrolls (the
     pearls, a wheel, a swipe), the strip stays */
  .sh-rail{position:absolute;z-index:2;left:calc(233 * var(--u));width:calc(982 * var(--u));top:calc(680 * var(--u));height:calc(232 * var(--u));display:flex;align-items:flex-start;gap:calc(34 * var(--u));box-sizing:border-box;padding:calc(18 * var(--u)) calc(34 * var(--u)) 0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 calc(34 * var(--u));-webkit-mask:linear-gradient(90deg,transparent,#000 calc(22 * var(--u)),#000 calc(100% - 22 * var(--u)),transparent);mask:linear-gradient(90deg,transparent,#000 calc(22 * var(--u)),#000 calc(100% - 22 * var(--u)),transparent)}
  .sh-it{width:var(--pz);scroll-snap-align:start}
  /* TW-84 (owner 2026-11-16: "your passport should be all the way to the right and pinned"): the collected pearl
     (the passport, the sofreh) is the strip's last, at its right end, and stays at the right edge while the
     others scroll by */
  .sh-it[data-key="passport"],.sh-it[data-key="sofreh"]{order:99;margin-left:auto;position:sticky;right:0;z-index:1;scroll-snap-align:end;background:#F4EFE6;box-shadow:calc(-18 * var(--u)) 0 calc(14 * var(--u)) calc(6 * var(--u)) #F4EFE6}
  .sh-it span{width:calc(150 * var(--u));margin-top:calc(12 * var(--u))}
  .sh-it span b{font-size:max(13px, calc(15.5 * var(--u)))}
  .sh-it span i{font-size:max(10px, calc(11 * var(--u)))}
  .sh-step{top:calc(738 * var(--u));width:calc(44 * var(--u));height:calc(44 * var(--u))}
  .sh-step.prev{left:calc(178 * var(--u))}
  .sh-step.next{right:calc(420 * var(--u))}

  /* the account: Progress and Publishing lower right, stacked; Log out and the gear bottom left */
  /* TW-94: ONE row bottom left on one baseline, Log out · gear · Progress · Publishing; the two capsules are the
     learner's own (outlined, a pearl each) and smaller than they were; the quiet group's children join the row */
  .sh-ft{position:absolute;z-index:40;left:max(20px, env(safe-area-inset-left, 0px));bottom:calc(30px + env(safe-area-inset-bottom, 0px));right:calc(var(--a2-cc-w) + 12px);display:flex;flex-wrap:wrap;align-items:center;gap:4px 22px}
  .sh-quiet{display:contents}
  .sh-ft-lo{order:0}
  .sh-gear{order:1}
  .sh-abs{order:2;gap:12px}
  .sh-ft-studio,.sh-quiet > .sh-ft-in,.sh-ft-legal{order:3}
  .sh-ab{height:40px;padding:0 15px 0 5px;gap:9px;border-radius:14px}
  .sh-ab-p{width:30px;height:30px}
  .sh-ab-p canvas{width:30px;height:30px}
  .sh-ab-p svg{width:15px;height:15px}
  :where(.a2) .sh-ab-a{font-size:15px}
  .sh-ab-a::after{border-radius:14px}
  .af-cc-hidden .sh-ft,body[data-af-menu="open"] .sh-ft{visibility:hidden}
}
/* ===================================================================== C: cords and a plumb line (everything else) */
@media not all and (min-width:1100px) and (orientation:landscape){
  .sh{--k:clamp(.92px, calc(100vw / 390), 1.25px);--sx:max(calc(60 * var(--k)), calc(17vw - 16px));--F:calc(104 * var(--k));--pz:var(--F);--gz:calc(52 * var(--k));--mk:calc(46 * var(--k));--sy:calc(26 * var(--k));--pad:calc(16 * var(--k));display:flex;flex-direction:column;box-sizing:border-box;padding:calc(80 * var(--k)) var(--pad) 0}
  /* the heads: a row of four short threads under the top row; the open one's note under its foot */
  .sh-heads{flex:none;position:relative;z-index:6;height:calc(132 * var(--k));margin:0 calc(-6 * var(--k))}
  .sh-row{flex:1 1 0;min-width:44px;height:calc(110 * var(--k))}
  .sh-st-b{display:none}
  .sh-st-c{left:50%;width:calc(80 * var(--k));margin-left:calc(-40 * var(--k))}
  .sh-st-tx{font-size:15px}
  .sh-row.on .sh-st-tx{font-size:19px}
  .sh-row.on .sh-st-th{stroke-width:2.6}
  .sh-row > b{left:calc(50% - 24 * var(--k));bottom:calc(6 * var(--k));width:calc(20 * var(--k));height:calc(80 * var(--k))}
  .sh-row > small{position:absolute;left:50%;top:calc(114 * var(--k));transform:translateX(-50%);font:700 calc(14 * var(--k))/1.1 var(--fb);color:rgb(var(--c));white-space:nowrap}
  .sh-row:first-child > small{left:calc(6 * var(--k));transform:none}
  .sh-row:last-child > small{left:auto;right:calc(6 * var(--k));transform:none}

  /* the open strand: the search line and the make press, the sorts, then the string, which takes the rest */
  .sh-open{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"own" "sorts" "str";position:relative}
  .sh-body{display:contents}
  .sh-nm{grid-area:own;position:static}
  #sh-name{left:calc((var(--hi) + .5) * (100% + 12 * var(--k)) / 4 - 30 * var(--k));top:calc(-108 * var(--k));width:calc(20 * var(--k));height:calc(80 * var(--k))}
  .sh-own{grid-area:own;position:relative;display:flex;align-items:center;gap:calc(16 * var(--k));min-height:calc(60 * var(--k));margin:calc(4 * var(--k)) 0 0}
  /* R12-S1 (owner, 2026-11-18, the Trips shelf on the iPad mini: "put this below the rail because it's less important"):
     on Trips the make press ("Another city") follows the string instead of leading it. */
  .sh[data-sh-open="trips"] .sh-open{grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"sorts" "str" "own"}
  .sh[data-sh-open="trips"] .sh-own{margin:calc(10 * var(--k)) 0 0}
  .sh-own.fold{flex-wrap:wrap;gap:calc(6 * var(--k)) calc(16 * var(--k))}
  .sh-own.fold .sh-ob{order:0}
  .sh-own.fold .sh-ob-w{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
  .sh-own.fold .sh-ask-l{order:1;flex:1 1 100%}
  .sh-own.fold .sh-why,.sh-own.fold .pr-tag{left:0;right:auto}
  .sh-ask-l{flex:1;min-width:0;height:calc(46 * var(--k));box-sizing:border-box}
  :where(.a2) .sh-ask{font-size:16px}
  .sh-ob{order:2;flex:none}
  .sh-ob-w{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  /* the field takes the row; the make press, once the words are sent, its own row under it, its words beside it */
  .sh-own.sh-asks{flex-wrap:wrap;gap:calc(10 * var(--k)) calc(12 * var(--k))}
  /* R14-S1 (owner, 2026-11-19, the iPad mini: "make this prompt box slightly thinner vertically"): 50 → 44 (46px at least) */
  .sh-own.sh-asks .sh-ask-l{order:0;flex:1 1 100%;height:max(46px, calc(44 * var(--k)))}
  /* Screen QC 2026-11-20 (SH1, SH5): the press sits at the right edge under the field's send pearl, a little lower
     so its price badge clears the field */
  .sh-own.sh-asks .sh-ob{order:1;flex-direction:row-reverse;gap:10px;margin:calc(8 * var(--k)) 0 0 auto}
  .sh-own.sh-asks .sh-ob-w{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;font-size:15px}
  .sh-err{position:absolute;left:0;right:0;top:100%;margin-top:4px}
  .sh-why,.sh-own .pr-tag{position:absolute;right:0;left:auto;top:calc(100% + 6px);width:min(290px, calc(100vw - 32px))}
  .sh-tag.tag4{position:absolute;left:0;top:calc(100% + 8px);max-width:calc(100vw - 48px)}
  .sh-sorts{grid-area:sorts;height:calc(64 * var(--k));margin:calc(8 * var(--k)) calc(-1 * var(--pad)) 0;padding:0 var(--pad);gap:calc(22 * var(--k));justify-content:flex-start}
  .sh-cb small{margin-top:4px;font-size:11.5px;line-height:14px}

  /* the string: one vertical thread, a fixed focus at its middle; the pearls roll through it (shelves.js
     sizes each by its distance from the focus) */
  .sh-body > .sh-th,.sh-body > i.sh-th{grid-area:str;justify-self:start;align-self:stretch;width:2px;margin:calc(26 * var(--k)) 0 calc(26 * var(--k)) calc(var(--sx) - 1px);background:rgb(var(--c));border-radius:1px;pointer-events:none}
  .sh-rail{grid-area:str;position:relative;z-index:2;justify-self:start;align-self:stretch;width:calc(var(--sx) * 2 + var(--pad) * 2);min-height:0;margin:calc(14 * var(--k)) 0 calc(14 * var(--k)) calc(-1 * var(--pad));display:flex;flex-direction:column;align-items:center;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y mandatory;-webkit-mask:linear-gradient(transparent, #000 calc(30 * var(--k)), #000 calc(100% - 30 * var(--k)), transparent);mask:linear-gradient(transparent, #000 calc(30 * var(--k)), #000 calc(100% - 30 * var(--k)), transparent)}
  .sh-rail::before,.sh-rail::after{content:"";display:block;flex:none;height:calc(50% - 36 * var(--k))}
  .sh-it,.sh-slot0{height:calc(72 * var(--k));width:100%;justify-content:center;scroll-snap-align:center}
  .sh-it canvas{transform:translateY(var(--ty, 0px)) scale(var(--sc, .56));transition:none}
  .sh-it:hover canvas{transform:translateY(var(--ty, 0px)) scale(var(--sc, .56))}
  .sh-it.sel canvas{box-shadow:0 0 0 calc(5px / var(--sc, 1)) #F4EFE6,0 0 0 calc(9px / var(--sc, 1)) rgb(var(--c))}
  .sh-it.gold canvas{box-shadow:0 0 0 calc(4px / var(--sc, 1)) #F4EFE6,0 0 0 calc(7px / var(--sc, 1)) #E8A21A}
  .sh-it span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .sh-step{grid-area:str;justify-self:start;width:calc(38 * var(--k));height:calc(38 * var(--k));position:relative;margin-left:calc(var(--sx) - 19 * var(--k))}
  /* R14-S2 (owner, 2026-11-19: the up pearl "is too close to the prompt box (in missions and lesson) and too close to the
     module heads in trips. bring it slightly lower"): it hangs 12 below the row above it */
  .sh-step.prev{align-self:start;margin-top:calc(12 * var(--k))}
  .sh-step.next{align-self:end}
  .sh-step::after{margin-left:-5px;margin-top:-3px;transform:rotate(135deg)}
  .sh-step.prev::after{margin-top:-8px;margin-left:-5px;transform:rotate(-45deg)}

  /* the focus: an empty ring while nothing is chosen; the branch beside it, the name above the branch,
     the line under it, the GO at its end — they never move */
  .sh-lens{grid-area:str;z-index:1;justify-self:start;align-self:center;width:calc(var(--F) + 10px);height:calc(var(--F) + 10px);margin-left:calc(var(--sx) - var(--F) / 2 - 5px)}
  .sh-lens canvas{display:none}
  .sh:not(.sh-has-sel) .sh-lens{box-shadow:inset 0 0 0 2px rgba(var(--c),.4);background:#F4EFE6}
  .sh-branch{grid-area:str;justify-self:stretch;align-self:center;height:2px;margin:0 calc(var(--gz) - 4px) 0 calc(var(--sx) + var(--F) / 2 + 12 * var(--k));background:rgba(var(--c),.85);border-radius:1px}
  .sh:not(.sh-has-sel) .sh-branch{background:rgba(var(--c),.3)}
  .sh-hd{grid-area:str;justify-self:stretch;align-self:center;margin:0 calc(var(--gz) + 6px) 0 calc(var(--sx) + var(--F) / 2 + 22 * var(--k));transform:translateY(calc(-50% - 8px))}
  .sh-hd b{font-size:calc(22 * var(--k));line-height:1.1}
  .sh-hd i{font-size:11px;margin-bottom:5px}
  .sh-dt{grid-area:str;position:relative;z-index:3;justify-self:stretch;align-self:stretch;display:flex;flex-direction:column;margin:0 0 0 calc(var(--sx) + var(--F) / 2 + 22 * var(--k));pointer-events:none}
  .sh-dt::before{content:"";display:block;flex:none;height:calc(50% + var(--gz) / 2 + 6px)}
  .sh-dt:has(> .sh-dt-up:not([hidden]))::before,.sh-dt:has(.ow-acts > button.go)::before,.sh-dt:has(.ow-acts > a.ow-go:not(.bare))::before{height:calc(50% + var(--gz) / 2 + 30px)}
  /* R4-T1: a start's GO carries its words under the pearl ("Start my Shiraz trip"), as Sign up does */
  .sh-dt:has(> .sh-dt-start:not([hidden]))::before{height:calc(50% + var(--gz) / 2 + 30px)}
  :where(.a2) .sh-dt-start .pr-tag{right:0;top:calc(50% + var(--gz) / 2 + 30px);max-width:calc(100vw - 40px)}
  :where(.a2) .sh-dt-start .pq{right:-6px}
  .sh-dt > *{pointer-events:auto}
  .sh-dt p{font-size:calc(16 * var(--k));line-height:1.4}
  :where(.a2) .sh-dt .go{top:50%;margin-top:calc(var(--gz) / -2)}
  :where(.a2) .sh-dt .go::before{display:none}
  .sh-pick{grid-area:str;justify-self:stretch;align-self:center;margin:0 0 0 calc(var(--sx) + var(--F) / 2 + 22 * var(--k));transform:translateY(calc(50% + var(--gz) / 2 + 6px));font-size:calc(16 * var(--k))}
  /* the sorting pearls stay small on a phone (the board's): at most 30 */
  /* TW7b: the same F1 look as wide: small equal pearls (20px) on the thread, one-line 11.5px labels */
  .sh-cb{padding-top:calc(var(--sy) - 10px)}
  .sh-cb canvas{width:20px;height:20px}
  .sh-dt .sh-bl{align-self:flex-start;margin-top:6px;padding-left:0}
  /* TW-84 on the narrow string: the collected pearl is the string's last and stays at its bottom end */
  /* R14-S4 (owner, 2026-11-19, the Trips shelf on the iPad mini: "when i click on passport it scrolls the rail. why don't we
     just put it on the top right corner below the menu heads?"): on the string the collected pearl (the passport, the
     sofreh) leaves the string and is a pearl of its own at the top right of the string's area, a link straight to it
     (modules/shelf_strand.html `.sh-pin`; shelves.js leaves it out of the string's pearls). The wide strip keeps it pinned
     at its end. */
  .sh-rail .sh-it:is([data-key="passport"],[data-key="sofreh"]){display:none}
  .sh-pin{grid-area:str;position:relative;z-index:4;justify-self:end;align-self:start;display:flex;flex-direction:column;align-items:center;gap:5px;width:calc(76 * var(--k));margin-top:calc(12 * var(--k));color:var(--ink);text-decoration:none}
  .sh-pin canvas{width:calc(52 * var(--k));height:calc(52 * var(--k));border-radius:50%;box-shadow:0 0 0 3px #F4EFE6,0 0 0 5.5px #E8A21A;transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
  .sh-pin:hover canvas,.sh-pin:focus-visible canvas{transform:scale(1.06)}
  .sh-pin b{font:800 12px/1.15 var(--fd);text-align:center;color:#8A5A00}
  .sh-pin:focus-visible{outline:none}
  .sh-pin:focus-visible b{text-decoration:underline}
  .sh-go0{grid-area:str;position:relative;justify-self:end;align-self:center;width:var(--gz);height:var(--gz)}

  /* the account: Progress and Publishing side by side above Log out and the gear (bottom left; the
     corner buttons hold the bottom right) */
  .sh-ft{flex:none;display:flex;flex-direction:column;gap:calc(10 * var(--k));padding:calc(10 * var(--k)) 0 calc(14px + env(safe-area-inset-bottom, 0px))}
  .sh-abs{gap:calc(14 * var(--k))}
  .sh-ab{flex:1 1 0;min-width:0;height:calc(48 * var(--k));padding-right:10px}
  .sh-ab-p{width:calc(36 * var(--k));height:calc(36 * var(--k))}
  .sh-ab-p canvas{width:100%;height:100%}
  :where(.a2) .sh-ab-a{font-size:calc(17 * var(--k))}
  .sh-quiet{min-height:calc(56 * var(--k));margin-right:calc(var(--a2-cc-w) - var(--pad))}
  .sh-ft-studio{flex-wrap:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:none}
}

@media (prefers-reduced-motion:reduce){
  .sh-it canvas,.sh-cb canvas,.sh-step canvas,.sh-step::after,.sh-ob > canvas,.sh-ob .pp,.sh-ab-p,.sh-gear,.sh-st-th,.sh-st-tx,.sh-why,.sh-tag.tag4{transition:none}
  .sh-go0{animation:none}
  .sh-err,.sh-tag.tag4,.sh-it.fresh canvas,.sh-own.armed .sh-ob > canvas,.sh-own.armed .sh-ob .pp canvas,.sh-own.sh-asks.asked .sh-ob,.sh-own.asking .sh-send canvas{animation:none}
  .sh-glass,.sh-send{transition:none}
}

/* ===================================================================== the strands' own files
   The Tales and Lessons strands keep page files of their own (tales.css, own.css) written for the
   retired arrangement (a rail laid out by offsets, a dock on a phone). What of theirs would move the
   new arrangement's parts is undone here, by weight, so the shelves keep one geometry. */
.sh.sh:has(> [data-sh-strand="tales"]){margin-left:0}
.sh:has(.tsh-none) .sh-pick{display:none}
.sh .sh-open .sh-dt p{flex:none;max-width:none}
.sh .sh-open .ow-acts{flex-direction:row;justify-content:flex-start;margin-left:0;padding-right:0}
@media (min-width:1100px) and (orientation:landscape){
  .sh.sh:has(> [data-sh-strand="tales"]){padding-left:0}
  .sh .sh-open .sh-body > .sh-th{left:calc(162 * var(--u))}
  .sh .sh-open .sh-dt{top:calc(312 * var(--u))}
  .sh .sh-open .sh-dt p{max-width:calc(700 * var(--u))}
  .sh .tsh-none .tsh-none-l{position:absolute;left:calc(496 * var(--u));right:calc(532 * var(--u));top:calc(396 * var(--u));margin:0}
}
@media not all and (min-width:1100px) and (orientation:landscape){
  .sh.sh:has(> [data-sh-strand="tales"]){padding-left:var(--pad)}
  .sh .sh-open .sh-rail{margin-top:calc(14 * var(--k))}
  .sh .sh-open .sh-dt{top:auto}
  .sh .tsh-none .tsh-none-l{grid-area:str;position:static;align-self:center;margin:0 0 0 calc(var(--sx) + var(--F) / 2 + 22 * var(--k))}
  :where(.a2) .sh .ow-acts .qa{font-size:15px;height:36px}
}
/* C on a window 700px and wider (an upright tablet): the corner chrome is the desktop's, its feather pearl
   hanging lower, so the heads start under it */
@media (min-width:700px) and (max-width:1099px) and (orientation:landscape){
  .sh{padding-top:max(calc(80 * var(--k)), 136px)}
}
/* C on a window too short for one screen (a phone held sideways): the page scrolls rather than crushing
   the string, which keeps room for its focus and two pearls each side */
@media (max-height:599px) and (max-width:1099px),(max-height:599px) and (orientation:portrait){
  body:has(> div > #af-main > .sh){overflow:auto}
  .sh{height:auto;min-height:100dvh;overflow:visible}
  .sh-open{flex:none;height:440px}
}

/* ===================================================================== C on a phone (below 700px): ONE design for every strand
   Owner's phone review, round 2 (2026-11-17, item 9, picture 15: "this page is horribly busy"; and the
   shelves rule: Missions, Trips and Lessons "have very similar functions, except for a filter bar and a
   couple of features, so the designs should be pretty similar"). The same markup as C, quieter:
   * THE HEADS: the four strings are four buttons on frosted glass, each in its strand's colour; the
     open one tinted and ringed in its colour (its note stays, for a screen reader only);
   * THE SORTING PEARLS: a small vertical thread at the very left beside the string, smaller pearls, each
     word to its right; the string moves right of it (only where the strand sorts: Trips and Tales keep
     the string at the left);
   * THE STRING takes the height that frees, and spreads its pearls (shelves.js reads --sh-reach: three
     pearls each side of the focus where the string is tall enough);
   * the chosen pearl's NAME runs to the right edge above the GO rather than beside it;
   * THE ACCOUNT is ONE row beside the window button: Log out (its door; the word stays its name) · the
     gear · Progress · Publishing, the two capsules smaller (as the wide B row, TW-94);
   * no tutor button on a phone here (data-a2-notutor, modules/shelves.html);
   * the first-time tag's pointer sits under the make pearl's middle (item 15; the tag leaves by itself
     after 8 s, shelves.js `tagLife`, the web's own timer). */
@media (max-width:699.98px),(orientation:portrait) and (max-width:1199px){
  .sh{--sh-reach:3}
  .sh-heads{height:auto;margin:2px 0 0;gap:8px}
  .sh-row{flex:1 1 0;min-width:0;height:40px;display:grid;place-items:center;border-radius:14px;background-color:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);box-shadow:inset 0 0 0 1px rgba(var(--c),.26),inset 0 1px 0 rgba(255,255,255,.9),0 6px 14px -9px rgba(var(--c),.6);transition:background-color .2s,box-shadow .2s,transform .25s cubic-bezier(.3,1.6,.5,1)}
  .sh-row .sh-st{display:none}
  .sh-row > b{position:static;width:auto;height:auto;overflow:visible;color:rgba(var(--c),.84);font:800 14.5px/1 var(--fd);letter-spacing:-.005em}
  .sh-row.on{background-color:rgba(var(--c),.12);box-shadow:inset 0 0 0 2px rgb(var(--c)),inset 0 1px 0 rgba(255,255,255,.75),0 8px 16px -10px rgba(var(--c),.75)}
  .sh-row.on > b,.sh-row:hover > b,.sh-row:focus-visible > b{color:rgb(var(--c))}
  .sh-row:active,.sh-row.pull{transform:scale(.95)}
  .sh-row > small,.sh-row:first-child > small,.sh-row:last-child > small{position:absolute;left:auto;right:auto;top:auto;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);transform:none;white-space:nowrap}
  #sh-name{left:calc(var(--hi) * ((100% - 24px) / 4 + 8px) + 10px);top:-34px;width:calc((100% - 24px) / 4 - 20px);height:28px}

  /* the make press's row, then the string's area (the sorts no longer take a row of their own) */
  .sh-open{grid-template-rows:auto minmax(0,1fr);grid-template-areas:"own" "str"}
  .sh-own{min-height:calc(52 * var(--k));margin-top:10px}
  .sh-tag.tag4::before{left:calc(var(--mk) / 2 - 8px)}

  /* the sorting thread, vertical at the very left (6px from the edge, 74px wide: the longest word,
     "Milestones", whole); as tall as its kinds, scrolling when the strand has more than the string's
     height. The string's focus is a little smaller here (96, was 104) so the name beside it keeps
     its two lines. */
  .sh{--F:calc(96 * var(--k))}
  .sh:has(.sh-body.has-sorts){--sx:calc(86px - var(--pad) + var(--F) / 2 + 5px)}
  .sh-sorts{grid-area:str;justify-self:start;align-self:start;z-index:3;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;width:74px;height:auto;max-height:calc(100% - 28 * var(--k));box-sizing:border-box;margin:calc(14 * var(--k)) 0 0 calc(6px - var(--pad));padding:8px 0;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y proximity;background:linear-gradient(rgba(var(--c),.4),rgba(var(--c),.4)) 5.25px 0/1.5px 100% no-repeat local;-webkit-mask:linear-gradient(transparent,#000 10px,#000 calc(100% - 10px),transparent);mask:linear-gradient(transparent,#000 10px,#000 calc(100% - 10px),transparent)}
  .sh-cb{flex-direction:row;align-items:center;gap:6px;width:100%;min-width:0;height:30px;padding:0;scroll-snap-align:start}
  .sh-cb canvas{width:12px;height:12px}
  .sh-cb small{min-width:0;margin-top:0;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:13px}

  /* the string's scroller is only as wide as its focus (it no longer reaches under the sorting thread) */
  .sh-rail{width:calc(var(--F) + 40px);margin-left:calc(var(--sx) - var(--F) / 2 - 20px)}
  /* the stage beside the focus starts a little nearer it; the chosen pearl's name runs up to the right
     edge, above the GO (its bottom clears the GO's top) */
  .sh-hd{margin:0 0 0 calc(var(--sx) + var(--F) / 2 + 14 * var(--k));transform:translateY(calc(-50% - var(--gz) / 2 - 6px))}
  .sh-dt,.sh-pick{margin-left:calc(var(--sx) + var(--F) / 2 + 14 * var(--k))}

  /* the account: one row, bottom left, level with the window button (bottom 22px, 48px high, 20px from
     the right edge): Log out's door, the gear, then the two capsules, smaller */
  .sh-ft{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;min-height:44px;margin-right:calc(72px - var(--pad));padding:8px 0 calc(24px + env(safe-area-inset-bottom, 0px))}
  .sh-quiet{display:contents}
  :where(.a2) .sh-ft .sh-ft-lo{order:0;width:32px;justify-content:center;gap:0;padding:0;font-size:0;background-image:none}
  .sh-gear{order:1;width:34px}
  .sh-abs{order:2;gap:6px}
  .sh-ft-studio,.sh-quiet > .sh-ft-in,.sh-ft-legal{order:3}
  .sh-ft-studio{flex:1 1 100%}
  .sh-ab{flex:none;height:34px;padding:0 8px 0 3px;gap:5px;border-radius:12px}
  .sh-ab-p{width:25px;height:25px}
  .sh-ab-p svg{width:13px;height:13px}
  :where(.a2) .sh-ab-a{font-size:13px}
  .sh-ab-a::after{border-radius:12px}
}
@media (max-width:699.98px) and (prefers-reduced-motion:reduce),(orientation:portrait) and (max-width:1199px) and (prefers-reduced-motion:reduce){
  .sh-row{transition:none}
}

/* THE MISSIONS FILTER RAIL (owner, Screen QC r3 2026-11-21; static/js/a2/shelves.js `paintQd`, the `sh-cats` block).
   (1) Wide screens: it rests hidden, as a trip's category rail does, and shows on a hover or a press on the shelf's pearls
   and their names, or on focus in either (`.sh-cats` on the body); the buttons stay in the tab order. (2) With words in the
   search line (`.sh-qd`) it is gone on every screen: the answers are not "yours" to sort; it returns when the line is erased. */
.sh[data-sh-open="missions"] .sh-body.sh-qd .sh-sorts{display:none}
@media (min-width:1100px) and (orientation:landscape){
  .sh[data-sh-open="missions"] .sh-sorts{transition:opacity .25s}
  .sh[data-sh-open="missions"] .sh-body:not(.sh-cats) .sh-sorts:not(:focus-within){opacity:0;pointer-events:none}
}
