/* ASA Dashboard — desktop.
   Sized for low vision: 19px body, 16px floor, 44px controls, AAA contrast. */

/* The look (layer 1): Fraunces for headings and tabs, Playpen Sans for body text and
   figures, ink in umber, a paper sheet, and one photographed surface per screen.
   Both families are LOCAL files under fonts/ (the CSP is `font-src 'self'`), shipped
   with their OFL licences. They are variable fonts, so one file carries every weight. */
@font-face{font-family:"Fraunces"; src:url(fonts/Fraunces-Variable.ttf) format("truetype");
  font-weight:100 900; font-style:normal; font-display:swap}
@font-face{font-family:"Playpen Sans"; src:url(fonts/PlaypenSans-Variable.ttf) format("truetype");
  font-weight:100 800; font-style:normal; font-display:swap}
/* A third face, and it draws exactly one string: the shop's name on the tape. Playpen Sans is
   the hand the whole console is written in, and it is a round, even, fairly heavy hand -- right
   for reading paragraphs of it, too uniform for a name someone wrote on a label. Mansalva is
   thinner, joins its letters, and has a little more flourish, which is what a name on tape wants.
   It is a single weight, not a variable font, so there is no weight axis to set. It is a local
   file like the other two, with its OFL licence beside it; harness/look.js checks that all three
   ship, that all three load, and that this one is what actually draws the name. */
@font-face{font-family:"Mansalva"; src:url(fonts/Mansalva-Regular.ttf) format("truetype");
  font-weight:400; font-style:normal; font-display:swap}

:root{
  /* HOVER NEVER LIGHTENS OR WASHES (owner, 2026-11-15): a control under a hand lifts on a shadow,
     and keyboard focus lifts a step further. A list line takes the ink underline instead. */
  --hov-sh:0 3px 9px rgba(62,32,18,.26); --foc-sh:0 4px 13px rgba(62,32,18,.42);
  /* THE TWO FINISHES THE TELEVISION'S CONTROLS ARE MADE OF. They are here rather than on
     `.askpanel` for one reason: the standby lamp the switch leaves behind lives outside the set
     (the set is removed from the page when it is off), so a token on the set cannot reach it,
     and two objects that must be the same material cannot be written out twice. Nothing else in
     the app reads either one, and neither changes with the theme -- chrome is chrome at night. */
  --bakelite:radial-gradient(62% 58% at 34% 26%, #5A463B, #241914 52%, #0D0806);
  --chrome:linear-gradient(104deg,#FDFDFA,#A8A8A2 32%,#EDEDE8 52%,#76766F 78%,#E4E4DE);
  /* --ground is the flat colour under the photograph (and the masthead's in dark). The
     photograph itself is --surf, set on <body> at the foot of this file. */
  --ground:#EFEAE0; --surface:#F3F0E9; --surface-2:#EAE5D9; --sunk:#E4DECF;
  --ink:#3E2012; --ink-2:#5A3825; --ink-3:#654330;
  /* The flags are the one place a word sits straight on an accent, and the page's own ink only
     reaches 6.34:1 on rose. This is deeper, and it is NOT re-stated for the dark theme: a flag
     is a coloured paper tag whose paint never changes, so its ink must not follow the room.
     Measured against all six flag fills: rose 7.08, mustard 7.44, coral 7.59, sky 9.03,
     chartreuse 9.18, aqua 9.66. */
  --ink-flag:#32180C;
  /* Sticky paper is not the page's accent: it is NEON, the way a pack of index tabs is, and the
     accents are cloth-matched and muted beside it. Each flag is its own accent taken to the most
     saturated colour the screen can actually show at that hue -- the hue held (0.41 degrees at
     worst), the chroma up by 1.15x to 2.42x, the lightness always above the accent's -- which is
     as bright as sRGB goes before a colour starts turning into a different one. The lightness is
     chosen rather than fixed because at a fixed one the warm hues go pale instead of bright. On
     every flag, --ink-flag carries at 7.55:1 or better. */
  --flag-sky:#83CFFF; --flag-mustard:#FFBC00; --flag-rose:#FF8F92; --flag-aqua:#02FFE6;
  --flag-coral:#FF9B80; --flag-chartreuse:#EBF800; --flag-periwinkle:#B6C2FD;
  /* The two slips at the top edge are a different pad again, one colour each, so a hand going
     for Settings is not picking between two identical squares. 7.79:1 and 8.33:1 with --ink,
     both still clear of AAA: the pair came down 0.045 in OKLCH lightness from #F8BBC9 and
     #AED6F0, which were pale enough to read as highlighter rather than as a pad of paper.
     Each has a SECOND sheet under it, and it is the SAME paper -- one dye per slip, not two.
     It was mixed 0.06 darker in OKLCH until 2026-10-15, on the reasoning that what shows
     through the hole a lifted corner leaves has to read as the pad in shadow. It does read
     that way, and the dye was not what was doing it: ::before carries the front sheet's own
     drop-shadow, which falls into the hole and along the three-pixel slivers at the bottom and
     right, and the lifted corner throws a second shadow over the same ground. A tone mixed in
     on top of those shadows is the pile painted twice. Shadow is the only thing that separates
     the two sheets now, which is the only thing that separates two sheets of one pad. */
  --note-ask:#EBABBA;
  /* The book and the taped title are ONE graphic: the tape is stuck to that cover, so a pixel
     the book moves is a pixel the tape moves. Both positions are written against this one
     number so they cannot drift apart -- raise the desk furniture by editing it here, once. */
  --desk-lift:15px;
  /* Paper is not a flat colour. Two sets of fibres crossing at a shallow angle and one soft
     sheen off the top left is the whole of it -- under 3% umber, so it texturises the sheet
     without touching what the contrast rows measure, which is the colour underneath. Laid as
     background IMAGES over a background COLOUR, so every token figure in harness/look.js is
     still the figure the stylesheet carries. */
  --grain:
    repeating-linear-gradient(33deg, rgba(62,32,18,.015) 0 1px, rgba(62,32,18,0) 1px 4px),
    repeating-linear-gradient(118deg, rgba(62,32,18,.011) 0 1px, rgba(62,32,18,0) 1px 7px);
  /* The sheen is NOT part of the grain, because it is a property of a whole sheet rather than
     of paper: painted on a piece of a sheet it draws that piece's outline in light. */
  --sheen:radial-gradient(135% 100% at 16% 8%, rgba(255,255,255,.18), rgba(255,255,255,0) 64%);
  /* THE MANILA ORGANISER IS TWO COLOURS, 2026-10-19, at the owner's word: "make the
     background/non-active tabs a bunch darker than the active current one (which should match
     the bg of the manila folder main body)". So --manila is the face of the card -- the open
     folder, the painted card, and the tab that is pressed, all one piece of stock -- and
     --tab-shut is a tab lying behind it, in the folder's own shadow.
     IT REPLACES A SIX-STEP RAMP, --tan-1 to --tan-6, which gave every tab its own shade along
     the row. Two things were wrong with it. The pressed tab was told from its neighbours by one
     step of about 1.1:1, which is not a signal; and the ramp had to be kept as long as the
     longest row, so Connections' sixth tab had fallen off the end of a five-deep ladder and
     drawn its word on the bare cloth until a sixth step was hand-written that morning. A
     SEVENTH TAB CANNOT FALL OFF TWO COLOURS. The row's job was never to tell tab from tab --
     the word on each one does that -- it is to say which folder is OPEN, and that is now one
     step of 6.42:1 rather than six of 1.1.
     THE INK DOES NOT INVERT. It was tried: a deep brown tab with a cream word gave 6.42:1 of
     depth and AAA on both cards, and the owner turned it down the same day -- "Don't invert
     colours, I just meant have the front/active manila tab clearly be the lighter active colour,
     the background/inactive ones darker, maybe as though shadowed a bit". So --tab-shut is the
     face in shadow, the same dye with the light off it, and --ink-flag is the word on every tab
     whether it is open or shut.
     THAT TRADE IS WHAT FIXES THE DEPTH AT 1.99:1, and it is arithmetic, not a choice. --ink-flag
     needs its own 4.5:1 on whatever it sits on, which puts a floor under how dark a shut tab can
     go; at AAA the floor is 1.46:1 of depth and at the 4.5 line it is 2.27:1. --tab-shut sits
     between them: 1.99:1 off the face -- twice the light, which is the step the owner asked for
     -- and --ink-flag at 5.69:1 on it, over the app's floor and under its 7:1 aim. The inverted
     pair was the only way to have both; it was offered and declined.
     Like --ink-flag, NEITHER is re-stated for the dark theme: a card tab's ink must not follow
     the room. */
  --manila:#E7D3B2; --tab-shut:#AD946C;
  /* ONE CAST FOR EVERY PIECE OF MANILA, 2026-11-13, at the owner's word: "give all manila
     folders slightly more dropshaddowing on the sides and subtle edge shadow all round for
     delineation from backgrounds". Three objects wear it and they had the same two-shadow
     stack written out three times: the open folder, the card a shut folder is painted as, and
     the folder that slides out of a journal and flies across the window.
     FIVE SHADOWS, READ FROM THE PAPER OUTWARDS. The first is the edge itself -- a hairline at
     no blur and no offset, which is the "all round" delineation and the only thing here that
     works on the two vertical edges a cast shadow cannot reach. The second is a short bloom
     that softens that line so it does not read as a drawn border. Then one shadow to the left
     and one to the right, pulled in by their spread so they stay beside the paper rather than
     under it: that is the extra weight on the sides. The last two are the original cast, which
     is what holds the folder off the cloth, and they are unchanged. */
  --manila-cast:
    0 0 0 1px rgb(62 32 18 / .14),
    0 0 10px rgb(62 32 18 / .16),
    -17px 9px 20px -15px rgb(62 32 18 / .62),
    17px 9px 20px -15px rgb(62 32 18 / .62),
    0 2px 3px rgb(62 32 18 / .28),
    0 18px 30px -20px rgb(62 32 18 / .7);
  --rule:#D3CABA; --rule-2:#B0A28C;
  /* Board and metal: the strip the menu pads are bound along, and the staples through it. Both
     are darker than any paper token and colder, and nothing reads text off either one -- paper
     always lies between -- so neither carries a contrast figure. They are tokens rather than
     literals only so that dark mode can flip them; a hard-coded board would stay warm brown
     under a near-black desk. */
  --board:#6B4A30; --clip:#B9BFC3; --staple:rgba(185,191,195,.9);
  /* The sticky note the date ranges are written on. #EEDF9A is the lightest of the five yellows
     tried that still reads as a note rather than as cream paper, and it is the ink that chose it:
     --ink-2 on it measures 7.72:1 and --ink 11.02:1, so the three lines are AAA whether they are
     the chosen one or not. --stickyedge is the gum line across its head, the one band of a real
     note that is a shade deeper than the rest. */
  --sticky:#EEDF9A; --stickyedge:#E3D083;
  /* Accents are FILLS ONLY, with --ink on top. On the paper they measure 1.58-2.05:1, so
     none of them may be a text colour, or a border that carries meaning alone. */
  --fill-chartreuse:#BFC94A; --fill-mustard:#D9A63A; --fill-rose:#D89A9A;
  /* Five more, so each of the eight cloths has its own complement instead of three accents
     going round twice. Every one of them is a wash rather than a pure hue, to sit beside
     Anna's first three, and every one clears 6:1 with --ink on it (8.08, 8.65, 6.79, 7.95 and
     7.01), so the fills-only rule costs nothing. harness/look.js measures all eight. */
  --fill-sky:#9CC5E0; --fill-aqua:#93D2C7; --fill-coral:#F09A82;
  --fill-periwinkle:#B3BDEE; --fill-mauve:#CCA6D2;
  /* A NINTH ACCENT, AND THE ONLY ONE THAT IS NOT A WASH, 2026-11-13. The owner asked for the
     mug on "primary red", and the eight above are deliberately muted to sit beside Anna's own
     three. This one is not meant to sit beside them: the cloth is locked to one dye now
     (docs/JOURNALS-NAV.md), so the mug is the single piece of colour on the desk that is not
     the cloth, and a wash at that size reads as a stain rather than a glaze. It is a fill like
     the rest -- it is never ink -- and --fill-ink is struck from it, which is the one place its
     lightness has to be answered for: at an oklab L of 0.57 the 32% mix lands at 0.182, well
     under the 0.268 ceiling harness/look.js holds the mug's word to, so the word is darker
     against the glaze than it was on any of the eight. */
  --fill-red:#D23A2E;
  /* --surf is the cloth. Every screen is the same weave dyed a different colour now, and every
     tile is 760 square and seamless, so the size and the repeat are the same for all of them
     and are set once here rather than per surface. 760 is the tile's own size, so it paints
     1:1 and is never resampled. */
  --surf:none; --surf-size:620px; --surf-repeat:repeat;
  /* The page accent, set with the cloth. :root carries a default so a screen with no entry in
     SURFACES still has one rather than falling back to nothing. */
  --fill:var(--fill-chartreuse);
  /* The accent taken down to near-black, for ink that has to sit ON the accent -- the word on
     the mug's rim. Derived rather than listed, so it follows --fill through all eight screens
     and there is one place to change, not nine. oklab, so the mix darkens without the hue
     sliding the way it does through sRGB. */
  --fill-ink:color-mix(in oklab, var(--fill) 32%, #000);
  /* The tea, in two strengths: with milk and without. Neither is a fill. Both are blend layers
     over the photograph, which is the whole of why they read as a drink -- a blend scales the
     picture's own pixels instead of replacing them, so the gradient across the surface, the
     window's reflection in it and the thinning at the drink's edge all survive, and the
     brightest point stays the brightest point. A flat fill paints every one of them out.
     The two take OPPOSITE blend modes, because the drink in the photograph is already a mid
     brown: measured, its own luminance is 0.26 and the glaze around it is 0.29, which is why
     the tea had no edge to begin with. Multiply can only darken, so it cannot make milk; screen
     can only lighten, so it cannot make a strong brew. Milk is a screen layer and goes up, past
     the rim; black is a multiply layer and goes down, under it. Each is then further from the
     glaze than the photograph was, in opposite directions, and the mode belongs to the brew. */
  --tea-milk:#5C4630;  --tea-black:#A3562B;
  /* A THIRD BREW, 2026-11-13: "the mug on primary red with white tea". Milk above is a tea with
     milk IN it and still reads brown; this is the pale, almost-white cup he asked for, and it is
     the same trick taken further. A screen layer can only lighten, and the drink in the
     photograph sits at a luminance of 0.26, so screening this over it lands the surface near
     0.88 -- pale enough to read as white china with something in it, while every ripple, the
     window's reflection and the thinning at the drink's edge survive, because a blend scales the
     picture's pixels and never replaces them. */
  --tea-white:#DCD3C2;
  --tea:var(--tea-black); --tea-blend:multiply;
  --accent:#00705C; --accent-ink:#005A4A; --accent-soft:#DFEFEA;
  --good:#14603A; --good-bg:#DFEFE6;
  --warn:#6A4903; --warn-bg:#F6EBD3;
  --crit:#8A2A1D; --crit-bg:#F8E4E0;
  --idle:#654330; --idle-bg:#ECE6DA;
  --c1:#00806A; --c2:#9E6B0F; --c3:#3F5DB0; --c4:#C4503A; --c5:#8465C4; --c6:#6B7F22; --c0:#5E6862;
  --bar-track:#E2DBCB;
  /* THE THREE INKS OF THE MIX PIE. Coloured inks rather than the flag pastels:
     these are drawn on the sheet, where a pastel would not hold its own against
     the paper. MEASURED on --surface: 8.0:1, 8.6:1 and 7.0:1. They are hue-apart
     and NOT luminance-apart, which is why each way also carries its own ink
     texture -- hatch, cross-hatch, dots -- in the wedge and in its swatch. */
  --pie-online:#2E4A6B; --pie-whimsy:#6B2E55; --pie-inperson:#1F5A4C; --pie-other:#5A4A3A;
  --shadow:0 1px 2px rgba(62,32,18,.08), 0 8px 22px -14px rgba(62,32,18,.28);
  /* Masking tape. It is a colour with alpha rather than a solid, because tape is translucent
     and what is under it has to keep showing through. The alpha is MEASURED, not chosen. The
     strip lies on the sketchbook's cover and nowhere else, so the cover is what the alpha is
     measured against, and the measurement is of the composite: alpha*cream + (1-alpha)*cover,
     then that tone's relative luminance against the ink printed on it.
     .48 is a third of the way down from the .66 this started at, and the cover's weave, its
     vignette and its lit corner all read plainly through the strip now. Getting there cost a
     second token. --ink #3E2012 on this composite measures 5.62:1, under the bar, so the NAME
     does not use --ink: it uses --tapeink, a near-black warm brown that is only ever printed on
     tape. On the same composite that measures 7.19:1, AAA with a little over, and .47 is the
     floor at 7.09:1. Dropping the alpha and darkening the ink in one step is what buys the
     transparency without putting the shop's name below the standard the console is held to.
     The narrow layout at the foot of this file puts the strip back on the photographed cloth,
     where the darkest pixel of the eight dyes is far darker than the cover, and raises the alpha
     back to .86 for exactly that reason. Both are tokens like every other paper colour, so dark
     mode flips them; a hard-coded cream would take dark mode's near-white ink and vanish. */
  /* LIGHTER TAPE, 2026-11-13, at the owner's word: "make the tape lighter coloured masking tape
     for contrast". It was .74 of a warm cream, which let a lot of the cover through and sat the
     near-black ink on a tinted strip. At .93 of a paler cream the strip reads as masking tape
     laid ON the cloth rather than dyed by it, and the ink gains on every cover: the direction is
     safe by construction, because --tapeink is near-black and every step toward opaque white
     raises the ratio it is measured at. Dark mode keeps its own strip (line 265): there the ink
     is near-WHITE, so a lighter tape would cost contrast instead of buying it. */
  --tape:rgba(254,252,247,.96);
  --tapeink:#1C0D06;
  /* ---- the three journals' covers, 2026-11-13 ----
     --book was one warm mid-brown board, for the one sketchbook that lay at the top left. The
     owner asked for three books instead, in his words 'one yellow, one green, one purple', so
     the single token is gone and these three stand in its place. Nothing read --book but the
     book, which is why it could go rather than be kept for later.
     EACH ONE IS CHOSEN SO THE TAPE ON IT CAN BE READ, and that is the whole of why these are
     not the bright flag papers. The name is printed on translucent masking tape: --tape carries
     alpha .48, so what the near-black --tapeink is really measured against is 48% tape over 52%
     cover. Composited and measured: yellow 10.38:1, green 8.61:1, purple 7.88:1, all clear of
     AAA, with purple the tightest of the three and still over a point of room. A cover any
     darker than purple here takes its own label under 7:1 -- #755288, one step deeper, reads
     6.77:1 -- so this palette is a floor and not a preference.
     THEY ARE BOOK CLOTH AND NOT STICKY PAPER. The flags are highlighter-bright because a flag
     is a small tab of paper; a bound cover at this size wants a dyed cloth, which is the same
     hue held well back in chroma. */
  --book-yellow:#C9A227; --book-green:#6E8F4E; --book-purple:#8C6AA0;
  /* The page block behind each cover, seen edge on. Warmer and darker than --surface, because
     a cut page edge is never as bright as a printed sheet's face. */
  --pages:#EFE4CC;

  /* THE JOURNALS' GEOMETRY IS TOKENS BECAUSE THE DRAG STRIP READS IT. The strip has to stop
     before the left-hand book begins, and the books are centred on the window, so the strip's
     width is arithmetic on these three numbers and not a figure typed twice. See .dragstrip. */
  --jrnl-w:192px; --jrnl-gap:26px; --jrnl-h:230px;
  /* HOW FAR THE BOOK WHOSE FOLDER IS OPEN COMES DOWN, written here because two places read it:
     the rule that drops it, and harness/look.js, which measures the drop in pixels. */
  --jrnl-drop:20px;
  /* HOW FAR A SHUT BOOK IS TUCKED ABOVE --jrnl-bottom, 2026-11-14, at the owner's word: "Tuck
     closed journals a bunch higher up, and on hover slide them down, halfway to the full extended
     position". The open book's place is unchanged (bottom + drop); only the shut ones go up.
     26 IS THE CEILING THE TAPE SETS: its top edge stands about 67px above the foot, and Growth's
     foot is 94 - 26 = 68px, so any more and the name goes off the top of the window. */
  --jrnl-tuck:26px;
  /* WHERE THE MIDDLE OF THE STRIP OF TAPE SITS, as a share of the object's own height, so the
     one figure places it on BOTH the book in the row and the big cover that flies out of it.
     --jrnl-h is 230 and --bk-h is 556, and the flight scales the cover by the first over the
     second; 20% of each is 46px and 111px, which that scale brings onto one another within a
     pixel. A figure in px here would have had to be typed twice and kept in step by hand. */
  --tape-up:20%;
  /* The whole row, written once. Two things measure off it now -- the drag strip and the pair
     of flag stickies to its left -- and both have to stop where the left-hand book begins. */
  --jrnl-row:calc(var(--jrnl-w) * 3 + var(--jrnl-gap) * 2);
  /* THE TWO FLAG STICKIES, 2026-11-13, at the owner's word: "Have Routines and Settings on two
     small lift animated flag stickies left of the journals", then "put Routines back on the
     settings Clipboard, have the two flag stickies be Settings and Query. Two flags vertically
     stacked, spaced, and vertically centred with the side of the journals."
     --fsk-band WAS A READING OF THE FEET AND IS NOW A FLOOR. It was 0 to about 118, the lowest
     foot, and the stack is centred on it: two 46px flags and a 16px gap come to 108, which left
     5px of cloth top and bottom. The books were tucked 18px higher on 2026-11-13, so the feet
     sit at 94, 100 and 102 now and a band read off them would be 102 -- SHORTER THAN THE 108 the
     stack needs, which would push the top flag off the window. So 118 stays, and the pair now
     hangs a few pixels below the feet rather than level with them. Raising the feet again does
     not move this number; lowering the stack's own height is what would.
     --fsk-off is the cloth between the lower flag's point and the first book.
     LONGER AND FURTHER OFF, 2026-11-14, at the owner's word ("slightly longer and narrower, and
     spaced a little further away from the left journal"): 118 -> 134 long, 46 -> 44 tall, and
     20 -> 36 off the book. --fsk-grow PAYS FOR BOTH OUT OF THE CLOTH THE WINDOW HAS: the eraser
     lies left of the pair, and at the 1160px minimum window it already sat 2px off the edge, so
     the 32px of growth comes in only as the window gives room for it -- all of it from 1236px
     wide, none at 1172 and under, where the pair is what it was. */
  --fsk-grow:clamp(0px, calc(50vw - var(--jrnl-row) / 2 - 270px), 32px);
  --fsk-w:calc(118px + var(--fsk-grow) / 2); --fsk-h:44px; --fsk-gap:16px;
  --fsk-off:calc(20px + var(--fsk-grow) / 2); --fsk-band:118px;
  /* The foot of the book, in three numbers because three layers have to agree on them: the
     element's own gradient draws the bands, ::after lays the page block over the middle one,
     and ::before stops the cover face short of the whole lot. --jrnl-edge is the height of
     the whole edge; the page block runs from --pgs-from to --pgs-to inside it. Typed twice
     each instead of six times, so the three cannot drift apart and show a seam. */
  --jrnl-edge:18px; --pgs-from:5px; --pgs-to:14px;
  /* THE OPENED BOOK IS ONE PAGE WIDE SHUT AND TWO PAGES WIDE OPEN, so --bk-w is the width of a
     SINGLE page and the spread is twice it. 470x556 is a page in portrait, which is what a
     journal is; the shut book is exactly that one page, and the open spread is 940 wide. At the
     window's own minimum, 1160, that leaves 110px of cloth either side.
     BIGGER ON OPEN SINCE 2026-11-13, at the owner's word: "Make the journals bigger on open".
     It was 400x460. The height is the figure with a ceiling on it, not the width: the window is
     900 tall, the dim is the whole of it, and a spread that reaches the window's own edges is a
     page and not a book lying open on a desk. 556 leaves 172px of dimmed room above and below.
     THE HEIGHT IS FIXED AND THAT IS THE DELIBERATE EXCEPTION to the house rule that a popover
     fits its content. Growth lists three lines and the other two books four; sized to content
     the three books would be three different objects, and the one that opened would change
     shape with the journal pressed. A book does not. The tallest list is four lines at 56px
     under a 55px heading, about 335px of content, so 556 clears it and the room left under a
     short list is a book page with space at the foot, which is what a book page looks like. */
  --bk-w:470px; --bk-h:556px;

  --fs-xs:16px; --fs-sm:17px; --fs-base:19px; --fs-lg:22px;
  --fs-h2:30px; --fs-stat:44px;

  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
  --body:"Playpen Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --display:"Fraunces",Georgia,"Times New Roman",serif;
  /* The name on the tape, and nothing else. It falls back through --body's own stack. */
  --hand:"Mansalva","Playpen Sans",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;
}

/* THERE IS NO DARK MODE, 2026-11-13, at the owner's word: "Remove dark/light mode, only have
   light with its visuals." Two blocks of dark tokens stood here -- one for a dark Mac, one for
   data-theme="dark" -- and every rule in this file that re-stated itself for the dark room has
   gone with them. The console is one room now, lit, and <html> carries data-theme="light" so
   that nothing is left reading the Mac's setting. Comments further down still say "in either
   theme" or "not re-stated for dark": they are the record of why a colour was chosen and they
   are left as they are. */


*{box-sizing:border-box}
/* `height:100%` on body was the reason the sticky masthead let go: it caps the
   masthead's containing block at one viewport, and a sticky box cannot travel
   past the bottom of its containing block. Keep the floor, not the ceiling. */
html{height:100%}
body{
  min-height:100%; margin:0; background:var(--ground); color:var(--ink);
  font-family:var(--body); font-size:var(--fs-base); line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{margin:0; text-wrap:balance; font-family:var(--display)}
button{font:inherit; color:inherit; cursor:pointer}
/* NO FOCUS RINGS, ANYWHERE. Owner's standing rule, 2026-10-14: she has never wanted
   them, and the earlier "ring always visible" line in the global config was an
   extrapolation from a general accessibility principle, not her instruction. Focus is
   still shown -- it has to be, or a keyboard cannot be driven -- but as a surface
   change, never an outline. Same pattern her own `design/world.html:49` already used.
   Nothing here changes a size, a border width or a padding, so the nothing-shifts
   rule holds at every state. */
:focus-visible{outline:none}
@media (prefers-reduced-motion: reduce){ *{animation:none !important; transition:none !important} }

/* --gutter is the page's own side margin, and the manila folder is now built off it in two more
   places -- `.folder[data-open]` and `.folders[data-tile]` both cancel it to reach the same edge
   the painted card reaches. It is a token and not a number written three times, because the
   three have to agree or the folder changes width when a tab goes down. */
.wrap{--gutter:24px; max-width:1220px; margin:0 auto; padding-inline:var(--gutter)}
@media (max-width:560px){ .wrap{--gutter:16px} }

/* ---------------------------- masthead ---------------------------- */
/* The masthead is NOT a drag region, and must not become one again. It was one,
   with `no-drag` on .ctrls and .groupnav to opt them back out, and on macOS that
   subtraction does not hold: the nav tabs and the Settings menu computed as
   `no-drag`, `elementFromPoint` returned the button and a scripted .click() ran
   the handler, but a real mouse click went to the window-drag layer and the app
   looked frozen on whatever screen it opened on. Drag rects add reliably and
   un-add badly, so only elements with nothing to click carry `drag` (.dragstrip
   and .brand below). `titleBarStyle: "hiddenInset"` (main.js:40) keeps the
   system titlebar draggable regardless, which is what the 26px of padding is
   reserving room for. */
.masthead{
  position:sticky; top:0; z-index:30;
  background:var(--ground); border-bottom:2px solid var(--rule);
  padding-top:26px;
  /* The masthead is window chrome, so a mouse crossing it shows an arrow, not an I-beam,
     and a mouse dragged across it moves the window instead of highlighting the shop's name.
     Reported by hand on 2026-10-14: "the text highlight cursor appears". Typed-in text is
     the exception -- a field a keyboard can reach must still allow selection. */
  user-select:none; -webkit-user-select:none;
}
.masthead input, .masthead textarea{user-select:text; -webkit-user-select:text}
/* The reserved titlebar strip, and the title beside it: drag by either. */
/* Anything inside a macOS drag rect stops taking mouse clicks whatever its z-index, and
   check-build.js forbids the `no-drag` escape hatch that would carve an exception, so the
   strip has to end before the props rather than run behind them. 830 leaves 0-510px: the whole
   left half of the title bar, where the traffic lights are and where a hand reaches to move a
   window anyway. Everything from the clipboard rightwards is now clickable to its top edge.

   HEIGHT 108px, AND IT IS A MEASURED NUMBER, NOT A ROUND ONE. 108 is the bottom edge of the
   tape (`.brand` measures [110,31,266,77] at any window width -- it is fixed and does not
   reflow). The strip was 26px until 2026-10-14 and that left two holes a hand found in one
   sitting: the tape itself, which starts at 31px, and then the corner under the traffic
   lights and left of the tape, which is inside no region at all when the strip stops at 26.
   One rect over the whole block is what has no corners left to miss. Nothing clickable is
   in it -- measured, 0 of them, and harness/render-backstop.js fails if that stops being
   true or if the rect stops covering the tape.
   108 IS THE WIDE LAYOUT'S NUMBER ONLY. Below 1000px the tape is hidden and the range note
   comes up into that band -- its buttons measure y=46 to y=96 -- so a 108px strip there
   swallows all three of them. The narrow rule puts the height back to 26px; see it below.
   lean: if the tape's type size changes, 108 no longer reaches its bottom. The backstop's
   coverage check is what says so; raise this number to the new measured bottom. */
/* THE STRIP STOPS BEFORE THE BOOKS, 2026-11-13, and it is arithmetic rather than a typed
   number so it cannot come apart from them. right:830px was measured when the tape was at the
   top left and .ctrls slid in from the right; both of those are off the screen now, and what is
   at the top instead is three journals centred on the WINDOW. A fixed right edge cannot track a
   centred row: at 1340px a 628px row starts at 356 and the old strip ran to 510, so 154px of
   the left-hand book sat inside a macOS drag rect -- and anything inside one stops taking mouse
   clicks whatever its z-index, with check-build.js forbidding the no-drag escape hatch that
   would carve an exception. The books are inert in this step, so nothing is broken yet; they
   become the only way to a screen at step 3 of docs/JOURNALS-NAV.md, and then it would be.
   HALF THE ROW, OFF THE CENTRE LINE, LESS THE TWO FLAG STICKIES, LESS 12px of daylight. The
   stickies went in on 2026-11-13 and they are controls in exactly the band this strip covers:
   at 1340 they run 218 to 336 and the strip ran to 344, so without this subtraction the whole
   pair would have been inside the drag rect and neither Settings nor Query would have taken a
   click. The 80px floor is the traffic-light corner, which harness/render-backstop.js sweeps on
   its own row and which has to stay draggable at every width.
   lean: the two demands both fit down to a 926px window. From 950px down the 80px floor is what
   sets the width, and under 926px the floor and the upper flag sticky want the same pixels, so
   the strip crosses into it -- and under 788px into the left-hand book as well, by 184px at
   420px, where the row is wider than the window anyway and all three books overhang.
   harness/render-backstop.js reports that band as 'at the floor' by name rather than passing
   quietly. The trigger to re-think it is the owner working in a window under about 930px: then
   the books and the stickies move down out of the title bar's band, or the narrow layout stops
   centring them.
   60px TALL SINCE 2026-11-14, down from 108, so the eraser can lie under it at every width: at
   the 80px floor the two share columns. The only target left in the band, the traffic-light
   corner, is 26px tall (harness/render-backstop.js samples it). 50px SINCE 2026-11-15, when the
   brush moved up to y 50 (see .brush): the lights end at 36, so the corner is still all strip. */
.dragstrip{
  position:absolute; top:0; left:0; height:50px; -webkit-app-region:drag;
  width:max(80px, calc(50% - var(--jrnl-row) / 2 - 365px)); /* ends 8px before the brush: see THE DESK CLUSTER */
}
/* right:320px clears the mug (280px wide, 28px from the right). The drag region must hold
   nothing clickable, so it ends before the button rather than the button opting out. */
.masthead-in{display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding-bottom:14px}
/* The brand is NOT a drag region, and `.dragstrip` is the only one. The tape held the link
   to the shop from 2026-09 until 2026-10-14, and a control inside a macOS drag rect cannot be
   clicked with a real mouse whatever `no-drag` computes to, so for that time it could not be
   one. The link is gone (index.html says why) and the tape is still where a hand reaches to
   move the window -- but the strip reaches it instead of the tape owning a region, because
   `.ctrls` slides left into the tape's box as the window narrows and a region there would
   swallow the Ask Claude button. index.html carries the measurements.

   The tape is pinned to the WINDOW, and it has to be. It is stuck on the sketchbook, and the
   sketchbook is position:fixed because it also has to stay under the traffic lights, which macOS
   draws at a fixed place in the window. .wrap is max-width:1220px and centred, so anything left
   inside it slides sideways as the window widens -- the tape would have drifted off the cover the
   first time the window was resized. Both objects therefore take their coordinates from the same
   origin, the window's top left corner, and the pair cannot come apart.
   .masthead-in keeps the row's height with min-height, because the tape is no longer in it to
   set that height, and pushes the controls to the right end now that nothing is there to push
   them. 76px is measured, not picked: a 268px strip turned 5 degrees stands 75px tall corner
   to corner, and the nav strip below has to start under that, or the tape's lower corner lands
   on the first tab. Turning the strip further costs height faster than it buys character,
   which is why the book settled at 5 degrees and not more.
   Below 1000px both of these go back to the flow -- see the foot of this file. */
.brand{
  /* 98, not the 112 it was written at until 2026-10-16. The tape is stuck to the cover, and
     where on the cover is a free choice: the strip is 268px on a 646px board, so it can slide
     either way without leaving it. Fourteen pixels left opens the gap to the slips on the right
     and sets the name nearer the book's own left edge. The traffic lights end around x 76 and
     the strip's leftmost corner now falls at about 96, so they are still clear of each other. */
  position:fixed; left:98px; top:calc(42px - var(--desk-lift)); z-index:2;
  min-width:0;
  /* It is a drag region now (data-drag in index.html), so a mouse pressed on the
     name must not start selecting the name. Nothing in here is interactive since
     the anchor came off on 2026-10-14. */
  user-select:none; -webkit-user-select:none;
}
/* The row below is in the flow, so every pixel the flags move down is a pixel the whole page
   moves down -- and four sheets went off the bottom of the window the first time they did. The
   move is paid for here instead of being added to the masthead: this band only reserves room
   for the fixed name tape above it, which ends at 108 against the window, so 96 is the whole of
   what it needs and the 32 given back buys the flags' drop and their new height together. */
.masthead-in{justify-content:flex-end; min-height:96px}
/* Nothing in the console is allowed to lie across the sketchbook: a menu bar drawn over a
   photographed object is the single thing that makes the whole desk read as a web page with a
   picture behind it. The row used to buy that clearance sideways, with a 216px indent that
   pushed the flags past the cover's lower corner -- and that put the row off the window's
   centre by the width of the indent, which is what you see first on a wide screen. It buys the
   clearance downwards instead now, so the flags stay centred on the window and pass UNDER the
   book. The clearance is split between the two objects rather than taken from one: 30px of it
   is the row moving down, 15px is the book moving up (see .sketchbook's top). */
/* align-items:center is what centres the print on the strip, and it has to be the flex row that
   does it rather than padding on the strip: the ladybird and the name are different heights, so
   any pair of fixed paddings would centre one and leave the other riding high. The strip's own
   padding is symmetric for the same reason -- 11px top and bottom, not 8 and 10 -- so the row's
   centre IS the strip's centre. translateY(1px) is the last correction, and it is about the face
   rather than the box: "Anna Seed Art" carries no descender, so Mansalva's ink sits in the top
   two thirds of its line box and a box-centred line of it looks high. 1px down puts the ink's
   own middle on the strip's middle. */
.brand-link{display:flex; align-items:center; gap:9px; text-decoration:none; color:inherit;
  transform:translateY(1px)}
/* Her own handwriting, not the heading face, and not the console's everyday hand either: --hand
   is Mansalva, which is thinner and has more flourish than Playpen Sans. A thinner face at the
   same size would be a step down in legibility, so the size goes UP to pay for it -- 28px against
   the 26px the heavier face carried, which is well over the 18px floor and the largest type in
   the masthead.
   The rest of this rule makes it PRINTED rather than set. Three things do that, and none of
   them touches the colour, so the contrast the harness measures is untouched:
   - mix-blend-mode:multiply puts the letters INTO the tape instead of on top of it, so the
     tape's fibres and the cloth showing through come up through the ink the way they do on a
     real printed strip. Multiply against a lighter backdrop can only darken, so the measured
     contrast is a floor and the painted contrast is at or above it.
   - the text-shadow pair is ink spread: a fraction of a pixel of the same brown either side of
     each stroke, which is what stops the edges reading laser-sharp. Again, darker only.
   - a little extra tracking, which is what printing on an absorbent stock does to a line of
     type. The print takes the STRIP's angle exactly, with nothing of its own: a line of type set
     a degree off the tape it is on reads as a mistake at this size, not as a hand.
   .brand's own filter is the stacking context that keeps the blend inside the tape. */
.brand h1, .jlabel{
  font-family:var(--hand); font-weight:400; line-height:1; white-space:nowrap;
  color:var(--tapeink); mix-blend-mode:multiply; letter-spacing:.3px;
  text-shadow:.4px .3px .6px rgba(28,13,6,.42), -.3px -.2px .5px rgba(28,13,6,.28);
}
.brand h1{font-size:28px}
/* 22px and not the shop name's 28px, for one reason that is not taste: Operations is the
   longest of the three words and at 28px Mansalva it needs about 194px of strip, which is
   wider than the 192px book it would be stuck to. 22px brings the strip to 154px, which leaves
   19px of cover either side of it. Well over the 18px body floor either way. Operations is
   Admin since 2026-11-25 and Creation is the longest word now; the size stays. */
.jlabel{font-size:22px}
/* Two slips of paper on the cloth, side by side, each its own object. There is no board under
   them and there was: the first pass clipped both to a hardboard clipboard, and a clipboard is a
   sheet of A-size paper on hardboard and nothing else, so its proportion is not free. Two lines
   of control is not an array, and a board sized to hold two lines comes out between 1.6:1 and
   6:1 depending on how they are laid out -- every one of them a stretched clipboard. A clipboard
   is worth reaching for when there is a real array to clip to it. These two are slips, and they
   borrow .tag's paper: square corners, no border, the shadow a cut sheet casts on cloth.
   It is window-pinned because the mug is. The mug is fixed at right:28px, 280px wide, and
   clipped to circle(132px at 158px 120px), so its clickable circle starts at windowWidth-282
   whatever the window is doing. In the flow these two landed at 1256 and the circle's left edge
   at 1058, and the mug -- z-index 40 against the masthead's 30 -- took every click meant for
   Settings. elementFromPoint at the Settings centre returned the mug's own word. Settings is the
   only route to Connections, to Routines and to the theme switch, so that was all three of them
   unreachable. right:562px puts this row's right edge 23px clear of the sticky note, which is
   itself 58px clear of the mug, and all three are measured from that same right edge, so they
   cannot meet again at any width.
   THAT PROMISE IS BROKEN AND IT WAS THE PAD THAT BROKE IT. MEASURED 2026-10-26 at 1340 and
   1920, which agree to the pixel because all three are pinned to this same right edge: the
   slips span right-edge offsets 562..868, the pad spans 337..639, so the pad lies over this
   row's right 77px -- the 23px gap is gone and 54px more with it. The pad grew from 152px to
   302px on 2026-10-26 and it grows LEFTWARD. The damage is not a dead pixel: the pad's first
   ruled line is the d7 button at y=12..50 and Settings sits at y~30, so a click meant for
   Settings SETS THE PERIOD TO 7 DAYS instead (TRAPS.md 51, proved with a canary).
   AND THERE IS NO ROOM TO PUT IT BACK BY MOVING THE PAD ALONE: the room between this row's
   right edge (562) and the mug's clickable circle (which starts at offset 282, confirmed by a
   walk-in scan at 278) is 284px, and the pad is 302px wide. It is 18px too wide to fit at all,
   and 64px too wide to fit with the 23px gaps this comment describes. So the fix is the
   owner's: the pad loses width, or this row moves, or the mug moves. */
/* top:30px clears the drag strip, which runs y 0-26: anything
   inside a macOS drag rect stops taking mouse clicks whatever its z-index, and check-build.js
   forbids the `no-drag` escape hatch that would carve an exception. */
/* Ask Claude and Settings are written along the bottom edge of two little notes stuck to the
   top of the window and hanging down into the page. The paper starts 18px ABOVE the window's
   own top edge, which is what lets each note sit at its own angle without a corner showing over
   that edge; the top padding is what puts the words at the foot of the note instead of the
   middle of it. */
.ctrls{
  position:fixed; top:-26px; right:562px; z-index:3;
  display:flex; align-items:flex-start; gap:13px;
}
/* The corner lifts on hover: a triangle of the sheet's own back, growing from the bottom right
   out over the word, with its shadow falling up and left the way a lifted corner's does. It is
   a transform on a pseudo-element and nothing else, so the slip itself never changes size --
   the paper does not grow, only the curl does.
   70px is the size that puts the fold across the tail of the longest word on either slip, so
   the corner finishes ON the writing rather than beside it: the fold runs from (w-70, h) to
   (w, h-70), and on the 156x110 Ask Claude slip that line crosses the word's right end at
   27px above its baseline. */
.ctrls .menuwrap::after, .leafnext::after{
  /* The two straight legs of the corner ARE the note's right and bottom edges, so they have to
     land on them exactly. Rotating the triangle took them off those edges and the underside
     hung out over the cloth. The angle is varied by giving the legs different lengths instead:
     a fold from (w-A, h) to (w, h-B) tilts as A and B differ, and both legs stay flush however
     they are dealt. --curl-g is the gradient's answer to that, atan2(B, -A), which app.js works
     out with the pair so the crease stays square to the fold. */
  content:""; position:absolute; right:0; bottom:0;
  /* The FIGURE's box, not the fold's legs. app.js measures it off the drawn points and the
     reasoning is there; the short of it is that a clip-path cannot paint outside the element,
     so a box the size of the legs cut the flap off against two straight lines. Right and
     bottom are unchanged, so both legs still lie on the note's own edges. */
  width:var(--curl-bw, 85px); height:var(--curl-bh, 77px);
  /* The stops are placed on the gradient line, not on the shape. A 135deg axis runs from the
     box's top left corner at 0% to its bottom right at 100%, and the clip keeps the bottom
     right triangle -- whose long edge, the fold, is the box's own diagonal through the centre.
     So the fold is at 50% and everything before it is cut away: stops written near 0% are
     invisible, which is why an earlier set of them left a flat pale wash with no crease.
     The back of the sheet is the note's own colour, the same paper seen from behind, so the
     crease and the shadow are the whole of what says the corner is off the page. */
  /* The gradient runs along the fold's own normal, and the two ends of the ramp are not
     guesses: they are both exact.
     The fold passes through the box's CENTRE -- substitute (w/2, h/2) into the fold's equation
     h.x + w.y = wh and it holds for every pair of legs -- and a CSS gradient line is centred on
     the box, so the crease is at 50% whatever angle is dealt. Everything under 50% is the half
     that gets clipped away and may as well not be written.
     The tip USED to be at exactly 100%, and that is worth keeping straight. The gradient line
     for angle atan2(-h, w) is |w.sin A| + |h.cos A| = 2wh/R long, so its half-length is wh/R --
     which is exactly how far the corner lies from the fold, hence how far the MIRRORED corner
     lies on the other side. While the point of the flap was that mirrored corner, 100% was the
     point, exactly, at every lean.
     The point moves now. app.js slides it along the same normal and solves for the distance that
     makes the two curves meet at the angle the owner asked for, so it sits anywhere from four
     tenths of wh/R out to a little past it. Under that, the lightest end of the ramp falls beyond
     the drawn shape and the tip is shaded short of white; over it, the ramp runs out before the
     point. Neither is wrong to look at -- a corner barely lifted catches less light, which is
     what the short ramp draws -- and neither is derived any more. Re-deriving it belongs with
     growing the box, below, because both need the figure's real extent and not the legs'.
     Dark at the crease, light at the tip: the paper is bent hardest where it leaves the page and
     is turned flattest toward the camera at the tip, so the tip is what catches the light. The
     darkening is kept SUBTLE -- 74% paper to 26% brown at the crease, which is a shadow in the
     hollow of the fold and not the ink line the earlier 54% drew. */
  /* --curl-s0 is the crease and --curl-s1 is the point, both worked out by app.js for the box
     it has just measured. The three between them keep the shares they had when the pair really
     were 50% and 100%, so the ramp reads the same whatever size the box comes out. */
  --curl-ramp:calc(var(--curl-s1, 100%) - var(--curl-s0, 50%));
  background:linear-gradient(var(--curl-g, 135deg),
    color-mix(in oklab, var(--note) 74%, #6B4A2E) var(--curl-s0, 50%),
    color-mix(in oklab, var(--note) 92%, #6B4A2E) calc(var(--curl-s0, 50%) + .16 * var(--curl-ramp)),
    var(--note) calc(var(--curl-s0, 50%) + .34 * var(--curl-ramp)),
    color-mix(in oklab, var(--note) 60%, #fff) calc(var(--curl-s0, 50%) + .70 * var(--curl-ramp)),
    color-mix(in oklab, var(--note) 32%, #fff) var(--curl-s1, 100%));
  /* THE CURLED TRIANGLE. Earlier this was a wedge sitting inside its own box, which is the one
     shape a dog-ear cannot be: a corner that folds back does not stay where it was, it lands
     on the OTHER side of the crease. So the shape here is the corner reflected in the fold, and
     the reflection is worked out rather than eyeballed.
     Where the point goes is worked out in app.js and no longer written into a custom property.
     Two of those, --curl-apx and --curl-apy, carried the mirrored corner here for several passes
     and were read by nothing in this file; they are gone.
     The short version of what app.js does: the point slides along the fold's normal through the
     cut corner -- the line a lifting corner actually travels -- and the distance out is solved
     so that the two large curves meet at the angle the curl's strength asks for. The mirrored
     corner, C reflected in the fold, is one distance on that line and used to be the only one.
     Wherever it lands it is outside this box at every lean but 45, up at a shallow lean and left
     at a steep one, by as much as 62% of a side.
     IT DOES NOT PAINT OUT THERE. This comment used to say nothing clipped it. A clip-path only
     subtracts; it cannot paint where the element has none, and the element is exactly --curl-w by
     --curl-h, so the flap is cut square at the box edge at every lean but 45. Proved on a bare box
     with a vertex 60% out: what drew was the box's own triangle with a straight edge where the
     point should have been. The box has to grow to the figure's bounding box, and when it does,
     the 50%/100% pair derived above goes with it -- that pair is true of a w-by-h box alone.
     THE BOUNDARY IS NOT ONE STRAIGHT LINE and has not been since the owner's fifth pass. It is
     five runs: a ruled diagonal across the corner, a small tight round-off at each of its ends
     joining it to the note's right and bottom edges, and -- departing from those same two
     round-off points, not from the diagonal's ends -- two much larger curves heading inward
     toward the note's centre, meeting at a point. The owner's words for why: this is not an edge
     in reality, it is the apparent BOUNDARY of a curved surface, so the depth of the curl is what
     is being drawn and not a crease in a sheet of card.
     The ten points of the first three runs are shared: ::before cuts the hole on them and ::after
     starts the flap on them, written once by app.js so the two cannot drift. The two large curves
     are a cubic each, flattened to sixteen steps -- eight read nine degrees blunt at the point,
     which is most of the range the curl's strength is supposed to control. */
  /* The fallback draws NOTHING rather than a guess. Its numbers used to be a sharp-fold
     triangle in the old box, and in this one they would be a shape the figure never takes.
     app.js deals once up front, so this is only ever reached if that never ran -- and then
     no curl is the honest answer. */
  clip-path:var(--curl-clip, polygon(100% 100%, 100% 100%, 100% 100%));
  /* app.js deals a fresh pair of legs to the slip on every approach, so no two lifts come up at
     the same angle. Scaling about the note's own corner keeps both legs on their edges the whole
     way up, and there is no opacity in the motion at all: the underside is the thing being
     watched, so it is painted at full strength from the first frame and the size alone says how
     far the corner has come. */
  transform-origin:100% 100%;
  transform:scale(0);
  /* This rule IS the release, and it is the slower of the two on purpose: paper springs back
     more lazily than a finger lifts it. The corner stays at full opacity for nearly the whole
     way down and only fades off the last of it, so it is seen going down rather than blinking
     out from under the word. */
  transition:transform .78s cubic-bezier(.22,.86,.3,1);
  /* THE FREE EDGES' SHADOW, and the owner cut it back twice over. It was two shadows reaching
     11 and 13 pixels up the note behind a 28px blur, which threw a grey wash over the paper and
     over the word printed on it -- the flap read as a second sheet floating above the note
     rather than a corner of the note itself. Worse, the box was too small then, so the shadow
     was tracing a straight cut that is not part of the figure.
     What it is for is CONTRAST, and only that. The flap is the same dye as the paper under it,
     so without some separation its free edges vanish into the note and the whole effect stops
     reading. One shadow does that: small, soft-edged, and faint enough that it darkens the line
     of the edge without tinting the paper beside it. */
  filter:drop-shadow(-1px -1.5px 3px rgba(62,32,18,.26));
  pointer-events:none;
}
.ctrls .menuwrap:hover::after,
.ctrls .menuwrap:has(> .btn:focus-visible)::after,
.leafnext:hover::after, .leafnext:focus-visible::after{
  transform:scale(1);
  transition:transform .62s cubic-bezier(.3,.72,.26,1);
}
/* The lift is the invitation to open the menu, so once the menu IS open it has nothing left
   to say -- and it had no way back down either: the focus that opened the menu never left the
   note, so the corner stayed up for as long as the panel did. An open sheet lies flat. */
.ctrls .menuwrap:has(.btn[aria-expanded="true"])::before{clip-path:polygon(
    0.8% 1.4%, 16% 0.4%, 33% 1.6%, 50% 0.5%, 67% 1.5%, 84% 0.4%, 99.2% 1.2%,
    99.0% 8%, 100% 14%,
    /* Ten points stacked on the corner, the closed cut: the same count the rest rule carries,
       and for the reason given there. */
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    29% 99.4%, 17% 98.7%, 6% 99.7%, 0.7% 98.9%,
    1.0% 84%, 0.2% 68%, 1.1% 52%, 0.3% 36%, 0.9% 20%)}
.ctrls .menuwrap:has(.btn[aria-expanded="true"])::after{transform:scale(0)}
@media (prefers-reduced-motion:reduce){
  .ctrls .menuwrap,
  .ctrls .menuwrap::before, .ctrls .menuwrap::after, .leafnext::after{transition:none}
}
/* The pad hangs off the top edge: 62 of gum band above the window, then three ruled lines of
   34 in TWO COLUMNS, then the More line of 34, then 8 of blank paper. The lines are the
   buttons' own bottom borders, so the ruling and the writing cannot drift apart, and in two
   columns the two bottom borders on a row meet to make one rule across the note.
   WIDTH 250px SINCE 2026-10-26, and the width MOVED THREE TIMES that day: 296 declared, then
   196, then 238, then 250. Every figure below is measured, not reasoned, and the history is why.
   READ THE BOX, NOT THE DECLARATION: the 1.6deg rotation adds `height * sin(1.6deg)`,
   206 * .0279 = 5.75px, so 250 declared is a 255.7px bounding box (TRAPS.md 55 -- every
   getBoundingClientRect inside this rotated pad is the axis-aligned box, not the element).
   At the original 296 the box was 302px and it LAY OVER the right 77px of the two control slips,
   which this file promised at .ctrls could "not meet again at any width". A click on that overlap
   did not miss: the note's first ruled line is the d7 button at y=12..50 and Settings sits at
   y~30, so a click on Settings SET THE PERIOD TO 7 DAYS, on every screen at every width
   (TRAPS.md 51). That is what 196 was cut to clear.
   196 WAS CUT TOO FAR, and the corridor is wider than the comment that set it claimed: COMPUTED
   across the pad's whole vertical band rather than read at one height, the room between the slips
   and the mug's clickable circle is offsets 282..562, which is 280px. The pad sits at 295..551,
   so it clears the mug by 13.2px and the slips by 11.2px. 58px and 284px, both asserted here
   before, were both wrong, and both for the same reason: the mug is a clipped circle, so its
   reach has to be worked out at every y in the band and never scanned at one (TRAPS.md 55).
   The note is pinned to the window's right edge and grows and shrinks LEFTWARD.
   THE FIRST 100px CAME OUT OF THE MARK, the owner's word: the hand mark was a 44px arrow BESIDE
   the word with a 6px gap, and it is now an underline or a circling laid OVER the line (see .mark
   below). THE COLUMNS ARE NOT EQUAL, 0.86fr and 1.14fr: every long label is in the right column
   and every short one in the left, so equal columns put the widest mark against the tightest edge.
   That gives 118px of content in the long column and 86px in the short one, measured, against a
   widest word of "FY to date" at 103.1px -- so ALL SIX FIT ON ONE LINE and none wraps. This
   comment once called "FY to date" the widest at 57px, and that 57px was a Range box on
   already-wrapped text, which returns the widest LINE and not the string (TRAPS.md 52): the label
   is 103px, it had WRAPPED since the pad was built, and the widening is what fixed it. Height is
   untouched: 206, 46 of it above the window. The widest mark's frame clears the torn edge by
   9.5px, measured at all six labels; at 238 with equal columns the worst was 1.0px. The More leaf is
   still 296px and did NOT narrow with the pad -- its rows are a header and two 74px values on
   one line, which needs 208px of its 268px of paper. Read the .ctrls comment above before
   changing any of the three. */
.seg{
  /* CENTRED ON ITS OWN STAGE SINCE 2026-11-13, and the whole of the note shows now. It was
     pinned at top:-46px right:298px, with 46px of its head off the top of the window and the
     rest threaded through a 280px corridor between the two control slips and the mug's clipped
     circle. Every figure in the comment above is a reading off that corridor and the history is
     kept, because it is the reason the box is 250 wide and why the columns are not equal. None
     of it constrains the note any more: on a stage of its own there is nothing beside it.
     THE GUM BAND CAME DOWN WITH THE MOVE, 62px to 26px. 62 was never the band -- it was the
     band plus the 46px the window's edge ate -- so it read as gum while the note was pinned and
     would have read as a third of the note in blank paper the moment the whole sheet showed. The
     band is the only marking a blank sticky note has and it has to be visible; it does not have
     to be that. Height follows it, 206 to 170. The three 34px ruled rows and the More line under
     them are untouched: 26 + 102 + 34 + 8 = 170.
     Both figures are tokens on .datebox, not here, because three rules have to agree about them
     -- this one, ::before which draws the band, and .morepop which is placed under the note. */
  position:absolute; inset:0; margin:auto; z-index:1;
  display:block;
  width:250px; height:var(--seg-h); box-sizing:border-box; padding:var(--seg-gum) 0 8px;
  background:var(--sheen), var(--grain), var(--sticky); border:0; border-radius:0; transform:rotate(1.6deg);
  /* A clip-path takes a box-shadow away with the box it clips, so the pad's shadow is a filter
     now and follows the torn outline instead of a rectangle that is no longer there. */
  clip-path:polygon(
    0.7% 1.2%, 22% 0.3%, 44% 1.4%, 66% 0.4%, 88% 1.3%, 99.3% 0.6%,
    98.9% 18%, 100% 36%, 99.0% 54%, 100% 72%, 98.9% 90%, 99.4% 99.1%,
    78% 99.8%, 56% 98.8%, 34% 99.7%, 12% 98.9%, 0.6% 99.4%,
    1.0% 82%, 0.2% 64%, 1.1% 46%, 0.3% 28%, 0.9% 14%);
  filter:drop-shadow(0 1px 2px rgba(62,32,18,.3)) drop-shadow(0 12px 17px rgba(62,32,18,.45));
}
/* The gum line. One band a shade deeper across the head, which is the only marking a blank
   sticky note has, and the only thing that tells you which end of it is stuck down. */
.seg::before{
  content:""; position:absolute; left:0; right:0; top:0; height:var(--seg-gum);
  background:var(--stickyedge); opacity:.55;
}

/* ---- the stage the date note opens on ---- */
/* THE LIGHTBOX, 2026-11-13, the owner's word: "Sticky flag note, opens a popover with lightbox
   fx". The stage covers the window and carries two sheets, the note and its More leaf. It is
   the popover and they are not, and that is the whole reason it exists: a popover draws one
   ::backdrop, so one dim is pooled behind both sheets instead of the leaf's dim landing on the
   note's. It is in the ::backdrop list at the foot of this file, where .morepop used to be.
   THE STAGE IS HIT-TESTABLE AND ITS BACKDROP IS NOT. app.js shuts the stage on a click on the
   dimmed room, and it can only see that click if something under the cursor is a real element:
   every ::backdrop in this app is pointer-events:none (see "the lamp turned down"), so the
   stage itself is what catches it.
   EVERY BOX PROPERTY IS WRITTEN OUT because the browser's own sheet styles a popover as a small
   centred panel -- fit-content either way, a solid border, a canvas background and auto
   overflow. A stage is none of those. */
.datebox{
  --seg-h:170px; --seg-gum:26px;
  position:fixed; inset:0; z-index:34;
  width:auto; height:auto; max-width:none; max-height:none;
  margin:0; padding:0; border:0; background:none; overflow:visible;
}
.datebox[hidden]{display:none}

/* ---- the calendar in each panel's corner, 2026-11-14 ---- */
/* The owner: "Remove the time picker sticky note, just have a very small calendar icon that
   appears in the corner of any panel with charts or figures on hover". The yellow flag and the
   strip of cloth kept clear for it above the sheets are gone; app.js puts one button in each
   panel on a screen with a window.
   THE PICTURE IS SMALL AND THE BUTTON IS NOT: 20px of drawn calendar in a 44px target, the house
   floor. It sits in the panel's own padding corner, so it covers no heading.
   SHOWN BY OPACITY ONLY, on the panel's hover or the button's own keyboard focus, so nothing
   moves or resizes as it comes and goes. It stays in the tab order while faint, because a key
   cannot reach a button that is not there. */
.panel.hascal{position:relative}
.calbtn{
  position:absolute; top:2px; right:2px; z-index:3;
  width:44px; height:44px; padding:12px; box-sizing:border-box;
  border:0; border-radius:12px; background:transparent; color:var(--ink); cursor:pointer;
  opacity:0; transition:opacity .15s ease, background-color .15s ease;
}
.calbtn svg{display:block; width:20px; height:20px; fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.panel:hover > .calbtn{opacity:.7}
.panel > .calbtn:hover{box-shadow:var(--hov-sh)}
/* NEVER A RING. Focus brings the button up and lifts it on a shadow; no colour wash. */
.panel > .calbtn:focus-visible{outline:none; opacity:1; box-shadow:var(--foc-sh)}
/* Column-first: the ids are written down index.html in column order, and `grid-auto-flow:
   column` against three explicit rows is what puts them down the columns in that order rather
   than across the rows. A keyboard then walks a column at a time, which is how the note reads. */
.segcols{
  position:relative; z-index:1;
  /* The 6px is the mark's margin, not the grid's taste. The owner, 2026-10-26: "very slightly
     widen the pad and move the period columns inward a tiny bit so that no circle or underline
     risks running off the edge of the pad". A mark's frame reaches 11px past its word on each
     side, and the torn edge bites up to 1.1% -- 2.7px -- in from the box, so the widest label's
     ring came within about 4px of the tear. The pad took 8px and the columns gave up 6px at
     each outer edge: both ends of that are clearance, and the widening is what keeps the
     columns themselves as wide as they were.
     THE COLUMNS ARE NOT EQUAL, and that is the rest of the answer. Every long label is in the
     right column -- FY to date, 365 days, Last FY -- and every short one is in the left, so
     two equal columns put the widest mark against the tightest edge. A mark is centred on its
     word and the word on its column, so the only thing that holds a wide mark off the paper's
     edge is column width: at 1fr each, FY to date's 126px frame overhung its 117px column by
     4.5px a side and finished 1px from the tear. 0.86/1.14 gives the long column the width it
     actually asks for and leaves the short one more than its widest mark needs. Measured after
     building, the worst of the six keeps 9.5px. */
  padding:0 8px;
  display:grid; grid-template-columns:0.86fr 1.14fr; grid-template-rows:repeat(3, 34px);
  grid-auto-flow:column;
}
.seg > .segmore{position:relative; z-index:1}
.seg button{
  border:0; border-bottom:1px solid var(--rule-2); border-radius:0; background:transparent;
  height:34px; min-width:0; padding:0 4px;
  /* position:relative is the mark's containing block and nothing else: the mark is laid over the
     whole line now, so the word is the only thing in the flow and a mark being dealt, changed or
     rubbed out cannot move it by a pixel. There is no `gap` for the same reason -- there is only
     ever one item on this line. */
  position:relative;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--hand); font-size:22px; line-height:1; font-weight:400; color:var(--ink-2);
  transition:color .2s ease;
}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed="true"]{color:var(--ink)}
/* Focus is the line going dark and the paper darkening under it. Never a ring. */
.seg button:focus-visible{color:var(--ink); background:rgba(0,0,0,.07)}
/* UNDERLINES AND CIRCLINGS, the owner's word 2026-10-26, where this was six pen arrows. A mark
   now goes UNDER or AROUND the word rather than beside it, so it is laid over the whole line
   instead of taking a slot in the flex row: the viewBox is 98x34, stretched with
   preserveAspectRatio="none" over a frame that hugs the WORD, so a short label and a long one
   each get the whole mark at their own width. The stroke is held at its real weight under
   that stretch by vector-effect, and overflow stays visible so a circling may run past the paper
   the way a hand does. Three of the six are underlines and three are circlings.
   Hand-drawn marks are DRAWN, never faded in. Every stroke carries pathLength="100", so one
   pair of numbers animates any path whatever its real geometry, and redrawing a path later
   cannot leave a measured length behind to go stale. The dash is the whole stroke and the
   offset walks along it: 100 is a pen that has not touched the paper yet, 0 is the finished
   mark. The two strokes are staggered the way a hand makes them -- the shaft, then the head --
   and on the way out they are erased in the OPPOSITE order, head first, so the mark unmakes
   itself instead of being played backwards. Any handwritten indicator added later belongs in
   this class and gets this treatment; a mark that simply appears reads as a printed glyph. */
/* THE WORD, and the mark's frame. The owner, 2026-10-26: "make sure the circles/underlines
   actually enclose the text of varying sizes". The mark used to be laid over the whole button,
   so on "7 days" at 60px in a 119px column the ring enclosed 30px of blank paper either side
   and plainly missed the word. The frame is now this span, which is exactly as wide as the
   word, so every column's mark is cut to its own label and a ring on "Last FY" and a ring on
   "FY to date" are both rings around a word.
   nowrap is the other half of it: a label that outgrows its column must stick out where it can
   be SEEN and measured, not fold quietly onto a second line where a width check still passes
   (TRAPS.md 52). */
.seg button .w{
  position:relative; display:inline-block; white-space:nowrap;
}
.mark{
  /* The bleed, not the button: 6px past the word each side and 4px over / 8px under it. The word's box measures 23.7px to 24.9px, NOT the 22px that font-size and
     line-height predict -- the six labels' glyph sets fall back to different faces. The
     frame's 38px and its mapping are read off getScreenCTM instead.
     THE 11px IS NOW THE WHOLE OF THE BLEED'S JOB, AND IT NO LONGER HAS TO ANSWER THE WORST
     PATH. It used to: the shapes were drawn in a fixed 98-unit box stretched to each label, so
     every inset in them was a PERCENTAGE of the frame and grew with it -- mark 1's x 6 of 98
     was 5.1px of clearance under "7 days" and 7.7px under "FY to date", which is the widest
     word getting the tightest mark. The frame is now written to the label's own width by
     app.js, one unit to one pixel in both axes, and every inset is stated in pixels at
     markPaths() in app.js. Measured on the live pad 2026-10-26: the frame's x/y stretch ran
     0.8415 to 1.2765 across the six labels before and is 1.0000 at all six after. So this
     rule's job is only to say how much paper a mark is given -- 11px past the word each side,
     4px over and 8px under -- and markPaths decides where in that paper the ink goes.
     38, NOT 34, AND THE VIEWBOX GREW WITH IT. The owner, 2026-10-26: "space the underlines
     SLIGHTLY further down away from the text". There was nowhere to put them. BOTH FIGURES IN THIS SENTENCE WERE WRONG, measured 2026-10-26: the word's INK ends
     between unit 27.44 and unit 29.09 depending on whether the label carries a 'y', and the
     row's ruled line is at 34.56 to 35.61, not 32. There was more room than the arithmetic
     claimed -- 5.47 units under the lowest ink -- which is what let the underlines move down
     again and the three rings reach y 31.8 without touching the rule. Four units were
     added to the BOTTOM of the viewBox and to the frame together, which leaves the scale at
     one unit to one pixel and leaves every mark exactly where it was drawn: the three
     underlines then moved down 2.5 and the three circlings did not move at all, because they
     ring the word and the word has not moved.
     THE FRAME IS SIZED, NOT INSET. left+right+width:auto does not stretch an <svg>: a viewBox
     gives it an intrinsic aspect ratio, which wins, and the frame came out 27px tall on one
     label and 43px on another -- the mark's own proportions then changed per label, which is
     the very fault this was meant to fix. width and height are stated outright instead. */
  position:absolute; left:-11px; width:calc(100% + 22px); top:-4px; height:38px;
  display:block; overflow:visible;
  /* The mark can never be the thing a click or a hover lands on. The listener closes over its
     own button, so this is belt and braces -- but a mark laid over the whole line is exactly the
     shape of element that starts eating its parent's events. */
  pointer-events:none;
}
.mark path{
  fill:none; stroke:currentColor; stroke-width:2.3;
  stroke-linecap:round; stroke-linejoin:round;
  /* The gap is longer than the path and the pen is parked one unit PAST it: at 101 no dash
     edge lands anywhere on the stroke. At a round 100 the gap started exactly at the path's
     first point, and a round cap on a dash of no length is still drawn -- a full stop was
     left behind on every mark that had been rubbed out.
     THERE IS NO vector-effect HERE, AND THAT IS THE WHOLE POINT. It used to carry
     non-scaling-stroke to hold the pen's weight even under the frame's stretch, and that one
     word broke both of the things the owner reported on 2026-10-26. pathLength="100" says to
     measure the dashes against the path's length in the viewBox's own units;
     non-scaling-stroke says to stroke it in SCREEN units; and preserveAspectRatio="none"
     makes the two differ by the frame's x stretch, which runs 0.76 on "7 days" and 1.28 on
     "FY to date". So on a wide label the 100-unit dash covered only 78% of the stroke: the
     chosen mark drew 22% short of enclosing its word, and the parked mark had the pattern's
     NEXT dash wrap back onto its last 22% -- the bits of ink left behind under "FY" and off
     the end of "date" and "Last FY". One pair of numbers now means one thing. The pen's
     weight does vary a little with the label's width in exchange, and it cannot be seen:
     one period is chosen at a time, so two marks are never on the paper together.
     THE BAN STILL STANDS AND IS NOW MOOT, 2026-10-26. The frame is written to the label's own
     width and the scale is 1 in both axes, so there is no stretch left for a stroke to escape
     and nothing for non-scaling-stroke to correct. It would now be a no-op that re-arms the
     dash fault the moment anyone puts preserveAspectRatio="none" back. Leave it out. */
  stroke-dasharray:100 102; stroke-dashoffset:101;
  transition:stroke-dashoffset .3s ease-in;
}
/* Six marks and six HANDS. The shape is swapped in by app.js when a range is chosen; the
   timing is here, keyed on the same data-v, because a different mark drawn at one speed is
   still one mark. --t1 is the FIRST stroke, --t2 the second, --gap the pause between them, and
   the order reverses on the way out so the second stroke always leaves first. The pairs are
   timed to what they draw: a whole ring takes longer than an underline (2 and 5), a flick is
   almost instant (3), two arcs of one size take the same time each (4), and the pen coming
   straight back under its own line barely pauses (6). */
.mark{--t1:.34s; --t2:.26s; --gap:.14s}
.mark[data-v="2"]{--t1:.50s; --t2:.14s; --gap:.26s}
.mark[data-v="3"]{--t1:.32s; --t2:.12s; --gap:.20s}
.mark[data-v="4"]{--t1:.28s; --t2:.28s; --gap:.10s}
.mark[data-v="5"]{--t1:.48s; --t2:.12s; --gap:.30s}
.mark[data-v="6"]{--t1:.30s; --t2:.30s; --gap:.06s}
.mark .pen1{transition:stroke-dashoffset var(--t1) ease-in var(--gap)}
.mark .pen2{transition:stroke-dashoffset var(--t2) ease-in 0s}
[aria-pressed="true"] .mark .pen1{transition:stroke-dashoffset var(--t1) ease-out 0s}
[aria-pressed="true"] .mark .pen2{transition:stroke-dashoffset var(--t2) ease-out var(--gap)}
[aria-pressed="true"] .mark path{stroke-dashoffset:0}
/* The More line. It is not a period and never carries a mark, so it is the one line on the pad
   with no rule under it -- the writing stops and the blank paper starts. */
.seg .segmore{width:100%; border-bottom:0; color:var(--ink-3)}
.seg .segmore[aria-expanded="true"]{color:var(--ink)}
/* data-on means the chosen period came from the leaf, so this line is naming it rather than
   offering more. It reads as writing, not as a muted affordance. */
.seg .segmore[data-on="1"]{color:var(--ink)}
@media (prefers-reduced-motion:reduce){
  .seg button, .mark path{transition:none}
}

/* The More leaf. A second sheet off the same pad, so it carries the pad's paper, the pad's grain
   and a torn edge of its own -- not the settings pad's cloth board. It is a direct child of
   <body> for the reason the mug and the pad itself are: `.seg` carries a filter AND a clip-path,
   so a popover inside it would be contained by the filter and then trimmed by the clip.
   GEOMETRY, MEASURED 2026-10-26. The pad is top:-46px and 206px tall, so its foot is at y=160;
   the leaf hangs 12px under it at top:172px and shares its right:298px, and is 296px wide,
   which is what makes the two read as one pad. Three rows of 44 plus 14 of paper top and bottom
   is 160px tall, so the leaf ends at y=332 -- clear of everything in a 900px window.
   A row is a category header and its values on ONE line, which is the whole reason the labels
   read "This" and "Last" rather than "This month" and "Last month": the word "month" is said
   once, as the header. Each button carries the full phrase as its accessible name, so a screen
   reader gets "This month" where an eye gets the header plus "This".
   WIDTH: 296 = 14 of paper, a 104 header ("Quarter:" is the widest), 8, a 74 value, 8, a 74
   value, 14 of paper. 74x44 clears the hit-target floor, which the pad's own 34px lines do not
   -- those are the measured ruled-line design and are left as they are. */
.morepop{
  /* UNDER THE NOTE, NOT OVER IT, since 2026-11-13. Both sheets were centred on the window while
     each was its own popover, so the leaf landed on top of the note it had been pulled out of.
     It sits below the note now, by half the note's height and a 16px gap, and THE NOTE DOES NOT
     MOVE WHEN IT OPENS: a flex column holding both sheets would have lifted the note every time
     the leaf came out, and the owner's rule is that nothing shifts. */
  position:absolute; left:0; right:0; margin:0 auto; z-index:2;
  top:calc(50% + var(--seg-h) / 2 + 16px);
  height:fit-content;
  width:296px; padding:14px;
  background:var(--sheen), var(--grain), var(--sticky); border:0; border-radius:0;
  transform:rotate(-1.1deg);
  /* Torn the same way as the pad, and for the same reason its shadow is a filter: a clip-path
     takes a box-shadow with it. Fewer notches than the pad has, because this sheet is shorter. */
  clip-path:polygon(
    0.7% 1.6%, 26% 0.4%, 52% 1.8%, 78% 0.5%, 99.3% 1.2%,
    98.8% 25%, 100% 50%, 98.9% 75%, 99.4% 98.6%,
    74% 99.7%, 48% 98.5%, 22% 99.6%, 0.6% 98.9%,
    1.1% 74%, 0.2% 50%, 1.0% 25%);
  filter:drop-shadow(0 1px 2px rgba(62,32,18,.3)) drop-shadow(0 10px 15px rgba(62,32,18,.4));
}
.morepop[hidden]{display:none}
.morepop .mrow{display:flex; align-items:center; gap:8px; height:44px}
/* One sizing rule for every state. Nothing here is repeated in :hover, :focus or [aria-pressed],
   so the box is the same size at rest as it is under a cursor. */
/* The row shape only: the hand is in the shared block above. `display` is put back to the flex
   item it has to be here, because the shared rule writes `block` for the two vertical lists. */
.morepop button{
  flex:1 1 0; min-width:0; width:auto; display:block; height:44px; min-height:44px;
  padding:0 6px; border-radius:0; text-align:center; color:var(--ink-2);
  transition:color .2s ease, background-color .2s ease;
}
.morepop button:hover{color:var(--ink)}
/* Pressed is the paper in its own deeper shade -- the gum band's colour, which is defined in
   both themes, so the chosen value reads on dark paper as well as light. A flat rgba(0,0,0,.09)
   would have been invisible on the dark pad. */
.morepop button[aria-pressed="true"]{color:var(--ink); background:var(--stickyedge)}
/* Focus is a ruled line drawn under the word, inside the box: the pad's own vocabulary, and an
   inset shadow so the box does not change size. Never a ring, and never the pressed shade
   either, or focus and chosen would say the same thing. */
.morepop button:focus-visible{color:var(--ink); box-shadow:inset 0 -3px 0 var(--ink-3)}
@media (prefers-reduced-motion:reduce){
  .morepop button{transition:none}
}

.btn{
  border:2px solid var(--rule-2); background:var(--surface); border-radius:12px;
  min-height:44px; padding:0 18px; font-size:var(--fs-sm); font-weight:600; color:var(--ink);
  display:inline-flex; align-items:center; gap:8px;
}
.btn:hover{box-shadow:var(--hov-sh)}
.btn[disabled]:hover{box-shadow:none}
/* One layer, not two. The note IS the paper, so the button inside it is the word and nothing
   else: no surface, no shadow and no angle of its own. An earlier version gave the button cut
   paper too, and the pair read as a card lying on a card -- a second rectangle, shadowed and
   tilted a degree off the note under it, which is what the single-layer slip was asked to end. */
/* The word does NOT move. An earlier version turned it a degree on the lift, to read as paper
   bending under the fold, and what it actually read as was the sheet under the curled one
   sliding out of line. The sheet the word is on is straight, square and still in every state,
   and the only thing that moves on this slip is the corner. app.js keeps the fold clear of the
   word's plate instead, which is why nothing needs to be clipped out of the ink. Size is set
   here once for every state, so nothing about the box changes on hover. */
.ctrls .btn{
  background:transparent; border:0; border-radius:0; box-shadow:none;
  min-height:48px; padding:0 20px;
  /* The note's own colour, not ::before's showing through. The word has to sit on a plate that
     can be MEASURED -- the masthead row in harness/look.js will not take a background image as
     a backing, and it is right not to: grain over a photograph is still a word on a photograph.
     So the button is its own piece of the sheet, in the sheet's colour. It costs about three
     pixels of the cut crescent where the button's corner overlaps it, and buys the real
     composited figure for the ink. */
  position:relative; background:var(--grain), var(--note);
  /* The sheet's grain starts at the note's own corner; the button's would start at the button's,
     which is 15 across and 32 down, and two copies of one pattern a half-period out of step
     draw the button's rectangle on the paper in fibre. Shifted back by exactly that offset the
     two are the same pattern, and the seam is gone -- so these two numbers ARE the slip's top
     and left padding and have to be edited with them. The sheen is left off here for the same
     reason, in its own token. */
  background-position:-15px -32px, -15px -32px, 0 0;
  /* The plate's bottom right corner is chamfered off, and the chamfer is INVISIBLE: ::before is
     directly under it in the same colour with the same grain at the same phase, so the cut
     reveals the sheet the plate was standing in for. Nothing is lost from the word either --
     the writing is centred and 18px of a corner is blank paper under the last letter's tail.
     What it buys is reach. app.js may not let the FOLD run under this plate, because an opaque
     rectangle across the hole fills the hole in and there is nothing left to have curled; with
     18px cut off the corner the fold can come 18px further before it meets the plate, and the
     flap, which reaches about half as far again past the fold, lands on the word. So this is
     not decoration: it is the clearance the curl is sized from, and app.js reads 18 back out of
     it by name. Change one and change the other. */
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
/* The slip already answers the cursor -- the corner comes up -- so the generic .btn:hover
   shadow is taken off here; the button is clipped to the slip and has no edge to throw it. */
.ctrls .btn:hover{box-shadow:none}
.btn[disabled]{opacity:.55; cursor:default}
/* Held wide enough for "Refreshing…" so the masthead does not shift under her cursor mid-press. */
#refreshBtn{min-width:150px; justify-content:center}

/* --------------------------- settings menu -------------------------- */
.menuwrap{position:relative}
/* A corner does not curl by growing a triangle on top of the page: the paper that curled is
   GONE from the page, and what is behind the note shows through where it was. So the note is
   not painted on this box at all. The paper is ::before, which can be cut along the fold, and
   the flap is ::after, which is that same cut paper rolled over. This box is only the frame
   the two hang on -- and the word sits between them, written on the sheet and covered by the
   flap, which is the order paper puts them in.
   The edges are torn, not guillotined: every run of the outline is walked in short steps that
   wander a pixel either side of true. The fold's own two points are the only ones that move,
   so the rest and lifted outlines have the same twenty points and the cut opens as a cut. */
.ctrls .menuwrap{
  --note:var(--note-ask);
  /* THIS BOX IS THE SECOND SHEET. The pad is two slips deep, and the lower one is a straight,
     square, independent rectangle that nothing in the curl can reach: it is a background on the
     element itself, so it cannot be clipped by ::before's cut, moved by ::after's transform, or
     dealt a fresh pair of legs. Every earlier attempt put both sheets on the one cut shape, and
     the lower one went wherever the fold went -- which is the misalignment that kept coming
     back. Two sheets, two paint sources, no shared geometry.
     It is offset three pixels down and right, and that offset is doing a job. Square on, it sat
     exactly under the torn sheet and filled every bite the tear takes out of the edge -- both
     slips went back to reading as guillotined rectangles, which is the one thing the tearing
     exists to prevent. Down and to the right, the tears along the TOP and LEFT still open onto
     the desk, and the tears along the bottom and right open onto this sheet instead. One edge
     says torn, the other says there are two of them. That is what a pad looks like.
     No grain on it. It is seen through a notch and in three-pixel slivers, and a second copy of
     the fibre pattern out of step with the first drew a seam everywhere it showed.
     Same dye as the sheet above. ::before's own drop-shadow falls on this one, and the curl
     throws the layer above onto it, so the pile is read off shadow and not off a second colour.
     THE CURL'S SHADOW, cast onto that lower sheet and seen through the hole. It went when the
     lower sheet stopped being part of the cut shape: the flap is a pseudo-element, the sheet is
     this element's own background, and no filter bridges two layers -- a drop-shadow on ::after
     falls on ::after's own alpha and nothing below it. So it is PROJECTED instead. Same box the
     flap occupies, same normal --curl-g, laid as a background layer OVER the lower sheet and
     under ::before: where paper remains it is covered, and through the hole it shows, which is
     the only place a shadow on the sheet below can be seen anyway.
     50% of that gradient line IS the crease. The line runs along the crease's own normal and a
     gradient line is centred on the box, which the crease passes through, so the darkest band
     lies exactly under the crease and the hole -- all of it before 50% -- fades out toward the
     cut corner. That is also where the light is: ::before throws straight down, so a flap
     raised up and to the left drops its shadow back against the crease and carries almost none
     of it as far as the corner. Gentle and wide, no edge: a flap this close to the page
     scatters its shadow, which is the same reason ::after's own two are faint and large.
     It grows by background-size from nothing, out of the same corner and on the same curve as
     ::after's scale, so the shadow and the flap it belongs to arrive and leave together. */
  background:
    linear-gradient(var(--curl-g, 135deg),
      rgba(62,32,18,0) 12%, rgba(62,32,18,.05) 26%, rgba(62,32,18,.13) 37%,
      rgba(62,32,18,.21) 45%, rgba(62,32,18,.27) 50%) no-repeat right bottom / 0 0,
    linear-gradient(var(--note), var(--note)) no-repeat 3px 3px / 100% 100%;
  transition:background-size .78s cubic-bezier(.22,.86,.3,1);
  /* The word sits low enough for the fold to reach it. 32 above and 22 below: the 22 is the
     bare paper the cut needs (app.js sizes the fold from it), and the flap, which is the cut
     paper mirrored back over the page, reaches about 24px further than the fold does and so
     lands ON the tail of the word. That is the point -- a corner coming up over writing is the
     thing being drawn. The hole itself still stops short of the word's plate, because an opaque
     plate across the hole fills it in and there is nothing left to be a flap of. */
  padding:32px 15px 22px; box-shadow:none;
}
/* The shadow is the flap's, so it is dealt the flap's states and never its own: it opens with
   ::after and it lies flat with it. The lower sheet is layer two in both, at its own full size,
   because background-size is per layer and listing one value would resize the pad. */
.ctrls .menuwrap:hover,
.ctrls .menuwrap:has(> .btn:focus-visible){
  background-size:var(--curl-w, 74px) var(--curl-h, 66px), 100% 100%;
  transition:background-size .62s cubic-bezier(.3,.72,.26,1);
}
.ctrls .menuwrap:has(.btn[aria-expanded="true"]){background-size:0 0, 100% 100%}
.ctrls .menuwrap::before{
  content:""; position:absolute; inset:0;
  background:var(--sheen), var(--grain), var(--note);
  clip-path:polygon(
    0.8% 1.4%, 16% 0.4%, 33% 1.6%, 50% 0.5%, 67% 1.5%, 84% 0.4%, 99.2% 1.2%,
    99.0% 8%, 100% 14%,
    /* THE CUT, CLOSED: ten points stacked on the note's own corner, because the boundary the
       lifted rule opens out to is ten points long, and clip-path interpolates only between
       polygons of EQUAL point count. A count that disagrees does not misdraw the shape -- it
       stops animating it, and the corner snaps up instead of lifting. THREE outlines on this
       pseudo-element carry these ten: this one, the menu-open rule above and the lifted rule
       below. harness/curl-shape.js counts all three against what app.js writes. */
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    29% 99.4%, 17% 98.7%, 6% 99.7%, 0.7% 98.9%,
    1.0% 84%, 0.2% 68%, 1.1% 52%, 0.3% 36%, 0.9% 20%);
  /* The shadow is the paper's, so it is thrown by the cut shape and stops at the cut: a note
     with its corner off does not go on shading the desk where its corner used to be. */
  filter:drop-shadow(0 1px 2px rgba(62,32,18,.3)) drop-shadow(0 11px 17px rgba(62,32,18,.34));
  transition:clip-path .78s cubic-bezier(.22,.86,.3,1);
}
.ctrls .menuwrap:hover::before,
.ctrls .menuwrap:has(> .btn:focus-visible)::before{
  clip-path:polygon(
    0.8% 1.4%, 16% 0.4%, 33% 1.6%, 50% 0.5%, 67% 1.5%, 84% 0.4%, 99.2% 1.2%,
    99.0% 8%, 100% 14%,
    /* THE BOUNDARY, as TEN points, not as the two ends of a line. The owner's fifth pass made
       it five runs: the ruled diagonal is only the middle of it, and at each end a small tight
       round-off carries it onto the note's straight edge. app.js deals all ten into --curl-fold
       with the legs, and ::after starts the flap on the same ten, because two copies of a
       boundary drift apart. Only the middle run is ruled -- that is where the paper is bent
       double. The round-offs and the two large curves beyond them are the apparent boundary of
       a curved surface, which is the owner's own distinction and the reason they are not edges.
       The fallback is never painted (app.js deals each slip once at startup) and only has to
       carry the same point count, or the clip-path cannot transition. THREE rules on this
       pseudo-element carry it; harness/curl-shape.js counts all three. */
    var(--curl-fold, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%),
    29% 99.4%, 17% 98.7%, 6% 99.7%, 0.7% 98.9%,
    1.0% 84%, 0.2% 68%, 1.1% 52%, 0.3% 36%, 0.9% 20%);
  transition:clip-path .62s cubic-bezier(.3,.72,.26,1);
}
/* ======================= ONE HAND FOR EVERY LIST ON PAPER =======================
   2026-11-13, at the owner's word: "All journals/list popovers/clipboards with text on paper
   should be formatted the same way, but scaled proportionally for their contexts."

   THE JOURNAL PAGE SET THE HAND and this block is that hand lifted out of it: Playpen Sans at
   600 -- a weight the font was drawn with, not one the browser smears, which matters because
   Mansalva (--hand) ships a single weight and used to write these items -- one word per line,
   left aligned, with a drawn dash in the margin instead of a bullet.

   FOUR NUMBERS CARRY IT and nothing else does. --pl-size is the word, --pl-line is the row,
   --pl-dash is the dash and --pl-gap is its inset. Each surface restates the four, scaled to
   the sheet it is written on, and inherits every other line here. That is the whole of
   "scaled proportionally": the proportions live in one place and the scale lives on the host.

   WHAT EACH HOST IS WORTH. The journal page is 470px wide and holds four lines, so it keeps
   the full hand. The clipboard's sheet is about 330px across and holds two, so it takes .9 of
   it -- bigger and bolder than the 22px Mansalva it replaces, which is what he asked for, and
   still clear of the gutters. The period leaf is a 296px sticky note whose rows are a header
   and three choices side by side, so it takes the ink and the weight and NOT the dash: its
   items are a row of answers to one question, not a list, and a dash on each would say they
   were four separate things.

   THE BOX IS SIZED ONCE, HERE. Every state rule below this block changes colour, fill or
   opacity and never a size, which is the owner's standing rule that nothing shifts. */
.bklist button, .morepop button{
  --pl-size:24px; --pl-line:56px; --pl-dash:14px; --pl-gap:17px;
  display:block; width:100%; margin:0; border:0;
  background:transparent; text-align:left; position:relative; cursor:pointer;
  min-height:var(--pl-line);
  padding:0 16px 0 calc(var(--pl-gap) * 2 + var(--pl-dash) - 2px);
  font-family:var(--body); font-weight:600; font-size:var(--pl-size);
  line-height:var(--pl-line); color:var(--ink);
}
/* The dash. A drawn rule and not the character, so its length and weight are fixed and do not
   move with the font. It is centred on the line at any --pl-line. */
.bklist button::before{
  content:""; position:absolute; left:var(--pl-gap); top:50%;
  width:var(--pl-dash); height:2px; margin-top:-1px;
  background-color:var(--ink-3); border-radius:1px;
}
/* The word at the head of a sheet, in the same hand as the lines under it and one step up. */
.bkname{
  --pl-size:30px;
  margin:0 0 14px; padding:0 var(--pl-gap) 10px;
  border-bottom:1.5px solid color-mix(in oklab, var(--ink-3) 36%, transparent);
  font-family:var(--body); font-weight:600; font-size:var(--pl-size);
  line-height:1.15; color:var(--ink); text-align:left;
  position:relative; z-index:2;
}
/* ---- the period leaf, at .8, and no dash: its rows are one question's answers ---- */
.morepop button{--pl-size:19px; --pl-line:44px; display:block}
.morepop .mhead{
  flex:0 0 104px;
  font-family:var(--body); font-weight:600; font-size:19px; line-height:1; color:var(--ink-3);
}

/* ----------------------------- ask Claude --------------------------- */
/* Item 64. The same anchored-popover shape as the settings menu, in its own
   class rather than `.menu`: `.menu button` (above) makes every button inside a
   60px borderless column, which is right for a menu row and wrong for both the
   field's Ask button and the `.btn` look it reuses. It is a top-layer popover now,
   centred and fixed, which it was not when this was written: the walked window
   chrome in CHROME-WALK.md covers that change. */
#askBtn{min-width:44px; padding:0 14px; justify-content:center}
/* THIS PANEL IS A TELEVISION SET (owner, 2026-11-06). He was shown three screens -- a wood
   set, a beige computer monitor and a green-screen terminal -- picked the wood set, and asked
   for it big, with the picture LOCKED SQUARE and the controls in dark bakelite and chrome.
   What that replaced was the asa-chat look: blue cotton, tan paper envelopes for Claude's
   answers, a brown card for her own question, a cream sheet pressed into the cloth to type on.
   The cards went with it, and on purpose -- on a lit picture a card reads as a sticker stuck to
   a screen. The question and the answer are ink on the tube now, bold and not bold, which is
   also what he was shown and approved. cloth.png and paper.png are no longer read here. */
.askpanel{
  /* ONE NUMBER DRIVES BOTH SIDES OF THE PICTURE. That is what "locked square" means here: the
     tube never changes size with what is in it, however long an answer runs, because only the
     log inside it gives way. The two subtractions are a guard for a small window and not a
     layout -- 290 is the cabinet above and below the glass plus a margin, 230 is the control
     column plus the same margin. Without them a short window would push the set off the
     viewport, and nothing in this app may scroll. */
  --glass:min(560px, calc(100vh - 290px), calc(100vw - 230px));
  --tube:#FCF4E4; --tube-edge:#E7D8BA; --tube-rim:#CEBD9D;
  --tube-ink:#2B1D11; --tube-ink-2:#44321C; --tube-line:#7A6243;
  --tube-field:rgb(255 252 243 / .72); --tube-hint:#7A6243;
  --cab-1:#8C5C30; --cab-2:#6A4220; --cab-3:#533015; --cab-foot:#48290F; --cab-foot-2:#2A1707;
  /* The two finishes are declared at :root (search `--bakelite`), not here, because the set's
     standby lamp is made of the same two and is NOT inside the set: when the switch turns the
     television off the panel is gone from the page, and the lamp it leaves behind can inherit
     nothing from it. THE THREE CHROME-FACE TOKENS THAT USED TO LIVE HERE ARE GONE, 2026-11-06:
     their only two readers were the "Right edge" button, which the owner removed, and the Ask
     button, which he asked for in brown ink. A token with no reader is a dead declaration. */
  /* Centred in the window and floating over it, which is why no measured offset is left here:
     a popover in the top layer is centred by the UA, so inset:0 with margin:auto is the whole
     of it, and height:fit-content stops inset:0 stretching the set to the window's height.
     width:fit-content for the same reason, now that the set and not the panel carries the size. */
  position:fixed; inset:0; margin:auto; height:fit-content; width:fit-content; z-index:40;
  background:none; border:0; border-radius:0; padding:0;
  transform:rotate(-.45deg);
  /* The same four-length drop-shadow the settings pad had. drop-shadow() has no spread, so the
     two-length form is the correct one and the old four-length line never parsed. */
  filter:drop-shadow(0 2px 3px rgba(62,32,18,.28))
         drop-shadow(0 16px 14px rgba(62,32,18,.42));
}
/* The set's night tokens, and the light copy of them that sat beside, are both gone with dark
   mode. The lit values they switched between are the ones in the .askpanel block above. */
.askpanel[hidden]{display:none}
/* THE SET ZOOMS OUT OF WHATEVER TURNED IT ON AND BACK INTO IT (owner, 2026-11-06). Which control
   that is changes from press to press -- the Ask Claude slip, or the standby lamp -- so the point
   it grows from cannot be written here. `transform-origin` is set in app.js from the live box of
   the control that was pressed, and a scale about that origin collapses the whole set onto that
   one point: no translate is needed and none is written, because a point under the origin does
   not move however far the scale goes.
   `.zoomed` is the collapsed end of the journey, `.instant` is how the set is PUT there without
   being seen to travel. Opening is .instant + .zoomed for one frame, then both off; closing is
   .zoomed alone, and the panel leaves the page when the transition has run. */
.askpanel.zoomed{transform:scale(.04) rotate(-.45deg)}
.askpanel.instant{transition:none}
/* NO FADE. The set used to cross-fade as it travelled, on .22s against the transform's .34s,
   which put it at nothing two thirds of the way down: the eye saw a set vanish in mid-air and
   never saw it arrive. The owner's word on 2026-11-06 was "properly scale/zoom the whole tv in
   and out of the ask claude tab", and a solid set that shrinks the whole way into the tab is
   what that asks for. Opacity is not animated here any more, by anything. .42s, not .34s,
   because the journey is the length of the window and a third of a second reads as a jump. */
@media (prefers-reduced-motion: no-preference){
  .askpanel{transition:transform .42s cubic-bezier(.22,.86,.28,1)}
}

/* ---- the cabinet ---- */
.ask-set{
  display:flex; gap:24px; align-items:stretch;
  padding:30px 30px 34px; border-radius:28px;
  background:
    radial-gradient(130% 90% at 28% 8%, rgba(255,225,185,.16), transparent 62%),
    repeating-linear-gradient(94deg, rgba(48,24,8,.17) 0 3px, rgba(255,214,160,.05) 3px 11px),
    linear-gradient(168deg, var(--cab-1), var(--cab-2) 58%, var(--cab-3));
  box-shadow:inset 0 3px 0 rgba(255,222,184,.3), inset 0 -6px 0 rgba(28,12,3,.55);
}
/* The set stands on two feet. They are outside the cabinet so they carry no cabinet rim, and
   outside the glass so they add nothing to the picture's locked square. */
.ask-feet{display:flex; justify-content:space-between; padding:0 86px}
.ask-feet span{
  width:84px; height:22px; border-radius:0 0 10px 10px;
  background:linear-gradient(var(--cab-foot), var(--cab-foot-2));
}

/* ---- the picture ---- */
.ask-glass{
  width:var(--glass); height:var(--glass); flex:none;
  padding:30px 32px; border-radius:58px/48px;
  background:radial-gradient(118% 108% at 50% 42%,
    var(--tube) 56%, var(--tube-edge) 86%, var(--tube-rim));
  color:var(--tube-ink);
  box-shadow:inset 0 0 0 10px #3A2411, inset 0 0 30px rgba(70,50,20,.32),
             inset 0 8px 16px rgba(255,255,255,.72);
  display:flex; flex-direction:column; gap:14px; overflow:hidden;
}
/* NOTHING STANDS AT THE HEAD OF THE PICTURE. `.ask-head` and the "Right edge" button it held
   are gone (owner, 2026-11-06: "Remove the right side button from the TV"). The set is centred
   in every state, so the control moved nothing; what it still did was take the tilt off, and
   that is not a thing worth a button on the glass. The lead is the first line in the tube now. */
/* THE ONE BOUNDED PANEL THAT MAY SCROLL. Its bar needs no hiding here -- `*{scrollbar-width:none}`
   and `*::-webkit-scrollbar{display:none}` at the foot of this file already cover every box in
   the app, and a second copy on this one panel would be two rules nobody could tell apart. The picture is
   a locked square, so a long answer has to give way somewhere; it gives way here and nowhere
   else. min-height:0 is load-bearing -- without it a flex child refuses to shrink below its
   content and the answer pushes the field off the bottom of the tube.
   The mask is what makes the talk go UNDER the glass and under the input bar instead of
   stopping dead at a straight edge: the first and last 28px of the panel fade to nothing, so a
   line that is scrolling away thins out as it reaches the rim. It is a mask and not a gradient
   laid over the text, because the tube behind it is a radial wash and a flat overlay in one
   colour would show as a band across it. */
.ask-log{
  flex:1 1 auto; min-height:0; overflow:auto;
  display:flex; flex-direction:column; gap:16px; padding:4px 2px 6px 0;
  mask-image:linear-gradient(to bottom, transparent 0, #000 28px,
                             #000 calc(100% - 28px), transparent 100%);
}
/* Claude's side and her side, told apart by weight alone now that the cards are gone. Weight is
   enough because the two always alternate and her question is always the one above its answer.
   Only the ANSWER keeps its newlines: the lead is prose written across three indented source
   lines in index.html, and pre-wrap would put that indentation on the screen. */
.ask-lead{
  margin:0; flex:none; font-size:var(--fs-sm); line-height:1.4; color:var(--tube-ink-2);
}
.ask-q{
  margin:0; font-size:var(--fs-base); line-height:1.35; font-weight:700;
  color:var(--tube-ink); overflow-wrap:anywhere;
}
.ask-a{
  margin:0; font-size:var(--fs-base); line-height:1.55; white-space:pre-wrap;
  color:var(--tube-ink); overflow-wrap:anywhere;
}
/* THE FIELD SITS ON ITS OWN BAR across the foot of the picture, which is the owner's call and
   the reason for the negative margins: the glass is padded 30/32, and the bar has to run past
   that padding to the tube's own rim or it reads as another card floating on the picture. The
   glass clips it, so the bar takes the tube's bottom corners without asking for them.
   It is painted a shade deeper than the tube and lit along its top edge, so the talk above it
   has something to pass behind rather than a line to stop at. */
.askpanel .field{
  flex:none; margin:4px -32px -30px; padding:16px 32px 20px;
  background:linear-gradient(rgb(60 42 22 / .1), rgb(60 42 22 / .19));
  box-shadow:inset 0 2px 0 rgb(255 252 240 / .5), inset 0 3px 0 rgb(60 42 22 / .22);
}
/* A sheet held against the glass: the shadow is inset at the top and the light on the bottom
   lip. A question is prose, not a key, so `.field input`'s monospaced face is overridden --
   that face is for pasted tokens and it is the wrong one to read a sentence in. */
#askField{
  font-family:var(--body); font-size:var(--fs-base); color:var(--tube-ink);
  min-height:52px; border:2px solid var(--tube-line); border-radius:11px; padding:12px 14px;
  background:var(--tube-field);
  box-shadow:inset 0 3px 5px rgba(28,20,14,.18), inset 0 -2px 0 rgba(255,255,255,.4);
}
#askField::placeholder{color:var(--tube-hint); opacity:1; font-family:var(--body)}
/* NO RING. The sheet itself brightens and its border goes to the ink. */
#askField:focus-visible{
  outline:none; border-color:var(--tube-ink); background-color:rgb(255 255 255 / .94);
}
/* BROWN INK ON PAPER, CREAM LETTERS (owner, 2026-11-06: "not metallic"). It was a chrome face
   until then, which made it the third piece of chrome in a picture that already has two knobs and
   a switch -- and the only one of the three that is not on the cabinet. Ink is the right material
   for the one control that sits on the paper bar: a stamp pressed into it, not a fitting screwed
   onto it. So no gradient pretending to be a curved surface, no white top lip, and the light that
   is left is the faint one ink leaves where it pooled. #FBF3E2 on #63401F measures 7.9:1, AAA.
   Every size is in this one rule; hover and focus change ink and shadow only. */
#askSend{
  min-width:88px; min-height:52px; border:2px solid #3B2210; border-radius:11px;
  padding:0 22px; font-family:var(--body); font-size:var(--fs-base); font-weight:700;
  color:#FBF3E2; justify-content:center; background:#63401F;
  box-shadow:inset 0 -3px 6px rgba(28,14,4,.34), inset 0 2px 4px rgba(255,236,206,.1),
             0 2px 3px rgba(30,16,4,.34);
  transition:background-color .18s ease;
}
#askSend:hover{box-shadow:inset 0 -3px 6px rgba(28,14,4,.34), inset 0 2px 4px rgba(255,236,206,.1),
             0 5px 11px rgba(30,16,4,.46)}
/* Never a ring. The cream the letters are in comes inside the ink's own edge. */
#askSend:focus-visible{
  outline:none;
  box-shadow:inset 0 0 0 3px #FBF3E2, inset 0 0 0 6px #3B2210, 0 2px 3px rgba(30,16,4,.34);
}

/* ---- bakelite and chrome: the cabinet's own controls ---- */
/* These are scenery. Nothing here takes a click, nothing here reports a state, and the markup
   carries aria-hidden so a screen reader is not read a row of furniture. */
.ask-knobs{
  width:132px; flex:none; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:30px;
}
/* No marks round the dial (owner, 2026-11-06): the ring of ticks that was here is gone, and
   the bare chrome rim is the whole of it. */
.ask-knob{
  position:relative; width:96px; height:96px; flex:none; border-radius:50%; cursor:pointer;
  background:conic-gradient(from 212deg,
    #FAFAF6, #8E8E88 11%, #EDEDE8 23%, #6F6F69 36%, #FDFDFA 50%,
    #8A8A84 64%, #E9E9E3 78%, #6B6B65 90%, #FAFAF6);
  box-shadow:0 6px 11px rgba(8,4,1,.62), inset 0 0 0 1px rgba(255,255,255,.55);
  display:grid; place-items:center;
}
/* THE CAP TURNS WITH THE POINTER, 2026-11-06. A 5px hairline swinging round a 96px dial is
   too little to read as a dial turning, which is what the owner asked for. The bakelite's
   highlight sits at 34% 26% of its own box, well off centre, so rotating the cap walks that
   highlight round the rim and the whole knob reads as turned. The chrome skirt and the drop
   shadow stay where they are on purpose: a cast shadow that orbits the knob is the one thing
   that would give the trick away. */
.ask-knob::before{content:""; width:66px; height:66px; border-radius:50%; background:var(--bakelite);
  box-shadow:inset 0 -4px 7px rgba(0,0,0,.85), inset 0 3px 6px rgba(255,214,170,.16),
             0 2px 5px rgba(0,0,0,.6);
  transform:rotate(var(--a,0deg));
}
/* The position indicator. transform-origin is 33px down the pointer, which is the knob's centre
   measured from the pointer's own top edge (15px inset + 96/2), so the mark swings round the
   dial instead of round itself. */
.ask-knob::after{
  content:""; position:absolute; left:50%; top:15px; width:5px; height:27px; border-radius:3px;
  background:linear-gradient(#FFFFFC,#B4B4AE); box-shadow:0 0 4px rgba(0,0,0,.75);
  transform:translateX(-50%) rotate(var(--a,0deg)); transform-origin:50% 33px;
}
/* THE RESTING ANGLE IS DECLARED ON THE KNOB AND NOT ON ITS POINTER, 2026-11-06. It was
   `.ask-knob.tune::after{--a:144deg}`, and that one line stopped the second dial ever moving:
   app.js writes the new angle as an inline custom property on the knob, a declaration ON a
   pseudo-element beats the value it would inherit from its originating element, so the pointer
   stayed pinned at 144deg while `data-turn` counted happily upwards. MEASURED, not reasoned
   about: six clicks took the tuning knob's `--a` from 144 to 216deg with its computed
   ::after transform unchanged at rotate(144deg) throughout. Declared here, the inline style
   wins, which is what the owner's "animate both dials on click" needed. */
.ask-knob.tune{--a:144deg}
/* THEY TURN AND THEY FLICK, and they do nothing else (owner, 2026-11-06: "just for fun").
   The motion is the whole feature, so it is the one thing a reduced-motion setting takes away;
   the knob still lands on its new angle, it just gets there at once. */
@media (prefers-reduced-motion: no-preference){
  .ask-knob::before, .ask-knob::after{transition:transform .34s cubic-bezier(.34,1.3,.5,1)}
  .ask-switch::after{transition:transform .17s cubic-bezier(.3,1.5,.5,1)}
}
.ask-switch.on::after{transform:translateX(-50%) rotate(24deg)}
/* THE SWITCH IS THE ONE CONTROL ON THE CABINET THAT DOES SOMETHING, 2026-11-06. The owner's
   word: "Keep it, make it minimise the TV down to an easy re-open dot somewhere sensible", then
   "Make the toggle switch do that". Up is on and the set is showing; flick it down and the set
   goes off, leaving `.ask-dot` lit. So this is a <button> and not a <span>, and it carries the
   label: the knobs either side of it are still decoration and still aria-hidden, which is why
   the column as a whole cannot be hidden from a screen reader any more.
   A chrome bat handle pivoting in a chrome collar, on a bakelite base. EVERY SIZE IS IN THIS ONE
   RULE and no state rule repeats one, so the box cannot change under a pointer; hover and focus
   move the shadow only. */
.ask-switch{
  position:relative; width:74px; height:46px; flex:none; border-radius:12px; cursor:pointer;
  border:0; padding:0; appearance:none; -webkit-appearance:none;
  background:linear-gradient(#32271F,#140D0A 70%);
  box-shadow:inset 0 2px 0 rgba(255,214,170,.14), inset 0 -3px 6px rgba(0,0,0,.8),
             0 4px 8px rgba(8,4,1,.6);
}
/* Never an outline. Focus is a lit rim and a deeper shadow, which is the same thing a real
   switch does when a hand is on it. */
.ask-switch:focus{outline:none}
.ask-switch:hover, .ask-switch:focus-visible{
  box-shadow:inset 0 2px 0 rgba(255,228,186,.26), inset 0 -3px 6px rgba(0,0,0,.8),
             0 10px 18px rgba(8,4,1,.82);
}
/* THE SWITCH IS LIT WHILE THE SET IS ON (owner, 2026-11-06: "have lit on off switch for
   close"). It is a pilot jewel in the bakelite beside the handle, and not a glow in the base
   itself: a wash of warm light over a dark brown base was tried first and could not be told
   from the cabinet behind it at arm's length, which is no use on the one control that turns the
   television off. A jewel is unmissable, lit or dark, and it is also what a set of this age
   actually had. It carries aria-hidden and takes no click, so the switch keeps its own label
   and its own hit area; its 12px sits clear of the 30px collar, which starts at x=22. */
.ask-pilot{
  position:absolute; left:9px; top:17px; width:12px; height:12px; border-radius:50%;
  background:radial-gradient(circle at 38% 32%, #6A5A3A, #3A2E18 60%, #170F06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2), inset 0 -2px 3px rgba(0,0,0,.75);
}
.ask-switch.on .ask-pilot{
  background:radial-gradient(circle at 38% 32%, #FFF3D2, #FFBA45 52%, #C06C14);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55), 0 0 13px rgba(255,186,69,.9);
}
.ask-switch::before{
  content:""; position:absolute; left:50%; bottom:9px; width:30px; height:16px;
  transform:translateX(-50%); border-radius:50%;
  background:linear-gradient(#DCDCD6,#6E6E68); box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.ask-switch::after{
  content:""; position:absolute; left:50%; bottom:14px; width:14px; height:36px;
  border-radius:7px 7px 4px 4px; background:var(--chrome);
  transform:translateX(-50%) rotate(-24deg); transform-origin:50% 100%;
  box-shadow:0 4px 7px rgba(0,0,0,.62);
}
.ask-badge{
  font-family:var(--hand); font-size:var(--fs-lg); color:#F2DCAE; opacity:.9; letter-spacing:.05em;
}

/* ---- the standby lamp: where the television goes when its switch is off ---- */
/* It is the lamp of a set that is still plugged in, not a chat bubble, because that is what the
   switch above implies: the set is off, the conversation is still in it, and one press brings
   both back. 60px against a 44px floor, and the only thing on the screen that is not the page
   itself, so it is never a crowded corner. z-index 39 is one under the set and the mug, so an
   open popover's dim always covers the lamp rather than the lamp standing out of it.
   UNDER THE MUG, ON THE RIGHT (owner, 2026-11-06). It spent an afternoon in the bottom-right
   corner and an hour under the sketchbook before this. The mug is the Refresh button and it is
   fixed to the window's right edge, so the lamp is too, and `right:28px` is the mug's own
   offset: the two line up down their right-hand sides at every window size, which is what makes
   the lamp read as hanging under it rather than floating near it. MEASURED at 1340x900, which
   is where all four numbers come from: the mug's box ends at y=125, the page-flag strip is
   x=84..1256 and y=122..194, and the panel region starts at y=204. So the lamp's 60px at
   top:138px hangs 13px under the mug, ends 6px above the panels, and clears the flag strip's
   right-hand end by the 4px between 1256 and its own left edge at 1252. The strip's last flag
   stops at x=1092, so nothing is drawn in the band the lamp overlaps. Those are the four
   clearances; do not nudge it without re-reading all four. */
/* THIS RULE DECLARES NO display AND THAT IS DELIBERATE, 2026-11-06. It was written
   `display:grid; place-items:center` with a `.ask-dot[hidden]{display:none}` under it, and
   `css-size-rules.js` reported the display dead -- correctly, because the lamp is hidden in
   every state that file walks, so nothing its display says can reach an element. The choice was
   to pin a known-dead rule or to stop needing one. The face and the lamp centre themselves on
   `inset:0; margin:auto` instead (this rule is position:fixed, so it is their containing block),
   which leaves no display here for the hidden state to fight, so the UA's own `[hidden]` rule
   does that job unopposed and there is no second rule either. Two fewer declarations and no
   tripwire exception. */
/* A CHROME WASHER AND NOT A CREAM ONE (owner, 2026-11-06). `--chrome` is the cabinet's
   straight-line chrome, and at 60px across a dark page its pale end filled most of the ring and
   read as painted cream. The ring is the dials' own conic chrome instead -- the same nine stops
   that make a 96px knob read as spun metal -- and the bakelite seat is pulled in to 38px so
   11px of that metal shows all the way round, which is the shape of a washer. */
.ask-dot{
  position:fixed; right:28px; top:138px; z-index:39;
  width:60px; height:60px; border-radius:50%; border:0; padding:0; cursor:pointer;
  appearance:none; -webkit-appearance:none;
  background:conic-gradient(from 212deg,
    #FAFAF6, #8E8E88 11%, #EDEDE8 23%, #6F6F69 36%, #FDFDFA 50%,
    #8A8A84 64%, #E9E9E3 78%, #6B6B65 90%, #FAFAF6);
  box-shadow:0 6px 12px rgba(8,4,1,.55), inset 0 0 0 1px rgba(255,255,255,.5);
}
.ask-dot::before{
  content:""; position:absolute; inset:0; margin:auto;
  width:38px; height:38px; border-radius:50%; background:var(--bakelite);
  box-shadow:inset 0 -3px 6px rgba(0,0,0,.85), inset 0 2px 5px rgba(255,214,170,.16);
}
/* THE BULB IS RED AND IT BREATHES (owner, 2026-11-06: "slowly pulse red"). A standby lamp on a
   set that is still plugged in, which is the one thing on a dark screen that says the television
   has not been unplugged. 3.6s is a breath and not a blink: anything near a second reads as an
   alarm, and this is not one.
   THE PULSE OWNS THE GLOW OUTRIGHT. An animation beats a plain declaration, so a hover rule that
   also set box-shadow here would be written and never seen. Hover and focus are on the chrome
   ring instead -- a different element, a different property, and nothing dead. */
.ask-dot::after{
  content:""; position:absolute; inset:0; margin:auto; width:16px; height:16px; border-radius:50%;
  background:radial-gradient(circle at 38% 32%, #FF9E8E, #D93225 58%, #7E120C);
  box-shadow:0 0 13px rgba(217,50,37,.7);
}
@keyframes ask-standby{
  from{box-shadow:0 0 6px rgba(217,50,37,.4);  filter:brightness(.7)}
  to  {box-shadow:0 0 22px rgba(255,88,70,.95); filter:brightness(1.2)}
}
@media (prefers-reduced-motion: no-preference){
  .ask-dot::after{animation:ask-standby 1.8s ease-in-out infinite alternate}
}
.ask-dot:focus{outline:none}
.ask-dot:hover, .ask-dot:focus-visible{
  box-shadow:0 10px 18px rgba(8,4,1,.66), inset 0 0 0 1px rgba(255,255,255,.72);
}

/* ---------------------------- notifications ------------------------- */
/* A task that failed on a connection says so here, on whichever screen the
   owner is on, until it is fixed or waved away. */
.alerts{display:flex; flex-direction:column; gap:14px; margin-top:22px}
/* THE SECOND SELECTOR IS GONE WITH THE PILE, 2026-10-22. It used to read
   `.alerts:empty, .alerts.front:empty`, because `.paper.front{display:flex}` was
   the same specificity (0,2,0) and later in the file, so the bare selector lost
   the cascade and an empty region held 58.046875px -- dead from the day the cap
   went in, and item 80 until it was measured. There is no `.front` class any more
   and `.paper` carries no display, so nothing outranks the bare selector and one
   is enough. */
.alerts:empty{display:none}
.alert{
  display:flex; align-items:flex-start; gap:16px; flex-wrap:wrap;
  border:2px solid var(--crit); background:var(--crit-bg); border-radius:14px; padding:18px 20px;
}
.alert[data-tone="warn"]{border-color:var(--warn); background:var(--warn-bg)}
.alert[data-tone="info"]{border-color:var(--accent); background:var(--accent-soft)}
.alert-mark{font-size:var(--fs-lg); line-height:1.2; color:var(--crit); flex:0 0 auto}
.alert[data-tone="warn"] .alert-mark{color:var(--warn)}
.alert[data-tone="info"] .alert-mark{color:var(--accent-ink)}
.alert-main{flex:1 1 320px; min-width:0; display:flex; flex-direction:column; gap:4px}
.alert-main h2{font-size:var(--fs-lg); font-weight:700; color:var(--ink); letter-spacing:-.005em}
.alert-main p{margin:0; font-size:var(--fs-base); color:var(--ink-2)}
.alert-acts{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.alert-acts .btn{min-height:48px; font-size:var(--fs-base)}
/* The counted line under a capped sheet (grep `SHEET_ALERTS` in renderer/app.js). */
.alert-more{margin:2px 0 0; padding:12px 16px; font-size:var(--fs-base); color:var(--ink-2);
  background:var(--surface); border:2px solid var(--rule-2); border-radius:14px}


/* The way back out of a screen Settings opened, rather than the nav. */

/* ---------------------------- group nav ---------------------------- */
/* THE STRIP OF SEVEN SCREEN FLAGS CAME OFF ON 2026-11-13, step 3 of docs/JOURNALS-NAV.md, and
   these rules did not go with it. What still draws them is the Sales screen's "How to count
   these sales" switch, which is built with this same class -- grep basisSwitch in app.js -- so
   `.groupnav` and `.groupnav button` are live paper and must not be deleted.
   TWO GROUPS BELOW CAN NEVER MATCH ANYTHING AGAIN: the seven `[data-g="..."]` dye lines, and
   `.groupnav button .gl`, the per-letter curl. The switch's buttons never carried data-g and
   app.js never built a .gl span inside them, so neither group was reaching the switch before
   today either, and deleting them could not change how it looks. They are kept because the
   comments on them are the owner's own words across several sessions about the warp and about
   which dye went where, and the next thing with a curling corner will want them.
   lean: dead rules cost nothing at run time. Delete both groups, comments and all, the day the
   journals rework is finished and nothing is going to want a curling sticky note again. */
.groupnav{display:flex; gap:9px; align-items:flex-start; justify-content:center;
  overflow:visible; border-bottom:0; background:none; padding-left:0}
/* Registered so they can be animated at all. A plain custom property interpolates as a
   discrete swap: the shade would jump to its new place in one frame while the outline rolled
   over a third of a second, and the band would arrive before the paper that casts it. */
@property --shade   { syntax:"<number>";     inherits:true; initial-value:0 }
@property --roll    { syntax:"<number>";     inherits:true; initial-value:0 }
@property --shade-x { syntax:"<percentage>"; inherits:true; initial-value:0% }
@property --shade-w { syntax:"<percentage>"; inherits:true; initial-value:0% }
/* The six screens are page flags: the gummed markers stuck down the edge of a journal. Every
   one is cut to the SAME size, because they mark six places of equal standing -- a flag cut to
   fit its own word would make Overview a smaller thing than Advertising, which is a claim about
   the screens nobody meant to make. The notch is cut with clip-path and not drawn.
   CLIP-PATH TAKES THE SHADOW AWAY, which is why the paper is painted on ::before and the
   shadow is thrown by the button. Measured, not assumed: a drop-shadow of flat magenta at a
   26px offset put 3821 pixels on the screen with the clip removed and EXACTLY ZERO with it in
   place. A filter is applied first and the clip then cuts its output, so a shadow drawn on a
   clipped element is drawn and then thrown away. (overflow:hidden is innocent -- tested on its
   own it cost nothing.) So the clip lives on ::before, which is the paper, and the button
   around it is unclipped and carries the filter. The owner asked three times for more shadow
   on these flags and got none, twice over, because of this. */
.groupnav button{
  /* Cut to the longest word rather than to a round number: "Advertising" measures 107px in this
     face at 21px, 36 goes to the padding either side of it, and the 7 left over is the breathing
     room that stops the longest flag reading as a packed box. Every flag takes the same cut, so
     the row is even whatever the words do. 21px is the size at which that word FILLS its flag:
     below it the paper reads as mostly empty, and above it the word touches the point. */
  flex:0 0 auto; width:150px; height:42px; box-sizing:border-box;
  border:0; border-radius:0;
  /* The point eats 16px off the right, so the paper the word can actually sit on is not the
     box. The extra right padding gives that back: the text is centred in what is left, which
     is what the eye reads as centred in the flag. */
  padding:0 25px 0 11px; text-align:center;
  /* 42 is the type's own line box (34px in this face at 21px) plus 4 above and below it, which
     lands about 9px of clear paper over and under the visible ink -- the same breathing the
     word has at its ends. A taller flag was paper with a word parked in the middle of it. */
  font-family:var(--hand); font-size:21px; font-weight:400; line-height:42px;
  white-space:nowrap;
  /* The left edge of every flag is slightly off the cloth -- the gummed end is at the RIGHT,
     under the point, so the left is the free end and free paper does not lie flat. THE LIFT IS
     SAID IN SHADOW AND NEVER IN LIGHT. A lip of white down that edge is what it had, and white
     on paper reads as gloss: the flag stopped being paper and became a plastic tab. What a
     sheet turning up really shows there is the dark of the turn, a narrow band where the paper
     leans out of the room's light, and its own shadow thrown down onto the cloth.
     Three numbers hold that band, so every state is the same lift at a different strength.
     --shade is how dark the turn is. It is not faint: at a fifth it was invisible on the
     cloth, which is a lift nobody can see, and the band has to carry the whole of what the
     white lip used to carry. --shade-x is where it starts, which is the PAINTED left
     edge and not the box's, so the band travels with the edge when the edge moves. --shade-w
     is how wide it reads, and it NARROWS as the lift grows, because a sheet turned further
     shows less of its turn face-on.
     The band is narrow on purpose for a second reason: it must never reach the word. Darkening
     paper under dark ink spends contrast fast -- a tenth of shade over the rose flag, the
     weakest at 7.55:1, costs it AAA on its own -- so the band stays on the bare margin where
     there is no contrast to spend. The longest flag's ink starts at 14.5px; the widest band
     any state draws stops at 12.2px. Most of its weight is in the first quarter of that, so
     the dark is a turning EDGE and not a stripe laid along one. The rest of the width is a
     long faint tail, because a turn in paper has no border: the owner asked for diffuse, and
     diffuse here means the falloff is long while the weight stays at the edge. The tail is
     allowed to run under the word where the band itself may not, since by two thirds of the
     way out it is a twenty-fifth of the shade -- measured, not assumed, by the probe below.
     --roll is the second dark and it belongs to the corner, not the edge. The cut alone was
     not a curl: an outline rolled away with flat paper right up to it reads as a bite taken
     out of the flag. What says roll is the shade gathered just inside the cut, deepest where
     the paper is most on edge and fading off into the flat. One radial does it, pinned to the
     bottom left and clipped by the curl itself, so the dark always hugs the cut whatever the
     cut is doing. It stops 16px up, which is short of the lowest ink at 26px: the same rule
     as the band, for the same reason. */
  --shade:.40; --shade-x:0%; --shade-w:22%; --roll:.32; --curl-tilt:0%;
  /* THE FLAG IS NEVER FLAT, not even at rest. A gummed marker is stuck down at one end only,
     and the free end of it stands off the page from the moment it is stuck. Four numbers hold
     that, and every state sets them rather than writing a transform of its own -- one list of
     functions in one order is what lets the lift INTERPOLATE instead of snapping.
     --tilt is the lift itself, as a turn about a vertical crease at --lift-at. The crease is
     at about two thirds across, so the right third stays down on the cloth under the gum and
     the free two thirds rises off it. THE WARP IN THE WORD IS NOT DRAWN: it is what a real
     perspective projection does to ink lying on a tilted plane, which is why the letters
     nearest the free end are the larger ones and the word thins toward the point. CSS cannot
     bend a line of text along a curve, but it can put the text on a plane and turn the plane,
     and that is a true picture rather than an imitation of one.
     The perspective is long on purpose. Short perspective at this angle swings the free end
     far enough left to reach the flag beside it -- the row's gaps are 9px -- and it stretches
     the near letters past the point where the word still reads as one size. At 520px the
     widest lift moves the free edge under 7px and the nearest ink grows by a sixteenth.
     --lean is the paper's own crookedness, alternating down the row, and --rise lifts the
     chosen flag clear of the others. Both were separate transforms before and could not be
     animated alongside the lift; they are numbers in the one list now. */
  --tilt:-7deg; --lift-at:72%; --lean:0deg; --rise:0px; --lift:.35; --curl:9;
  /* THE EYE IS ABOVE THE ROW, which is the whole reason the lift reads as a slope and not as a
     word that got bigger. perspective() puts its vanishing point at the element's own
     transform-origin, so a point level with the flag's middle means the eye is level with it
     too: everything then moves straight toward the camera and depth can only show as scale.
     Dropping the point to 140% puts it 17px BELOW the foot, so the free end swings UP as it
     comes forward -- its top edge rises about 7px at the widest lift and its bottom about 2,
     which is the paper standing up rather than growing.
     The same origin is the rotateY axis and the lean's pivot. Moving it down does not move a
     vertical axis, and the lean is under a degree, so pivoting it from 17px lower swings the
     flag sideways by about half a pixel. Measured before it was accepted, not waved through.
     360px, not 520. The warp across the paper goes as 1/(1 - x*sin(tilt)/P), which at 520 is so
     near a straight line that it reads as the word being squashed evenly. Shorter bends it.
     It cannot go much shorter: the row's gaps are 9px and at 360 the widest lift already swings
     the free edge about 8px left. A flat plane cannot be strongly stronger-at-one-end without
     leaving the gap, which is why the word itself carries a curl -- see .gl below. */
  transform-origin:var(--lift-at) 140%;
  transform:perspective(360px) rotateY(var(--tilt)) rotate(var(--lean)) translateY(var(--rise));
  background:none;
  color:var(--ink-flag);
  position:relative;
  /* THE PAPER IS ::before AND THE SHADOW IS THE BUTTON. See the note above this rule: a
     clip-path cuts away the filter output of the element it is on, so the two cannot share an
     element. inset:0 IS the whole flag, and that was worth MEASURING rather than reasoning
     about: an absolutely positioned child measures itself off its ancestor's PADDING box, and
     this button pads 11 left and 25 right, so negative insets looked necessary -- but the
     border is zero, which makes the padding box and the border box the same 150px, and the
     negatives gave a 186px paper. Every per-cent in the outline below is a per-cent of THIS
     element, so a wrong width here silently moves the point and the curl.
     z-index:-1 puts it behind the word; the button's own opacity already makes a stacking
     context, so it cannot fall behind the cloth. */
  z-index:0;
}
.groupnav button::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(62,32,18,var(--shade)) var(--shade-x),
      rgba(62,32,18,calc(var(--shade) * .48)) calc(var(--shade-x) + var(--shade-w) * .09),
      rgba(62,32,18,calc(var(--shade) * .16)) calc(var(--shade-x) + var(--shade-w) * .24),
      rgba(62,32,18,calc(var(--shade) * .05)) calc(var(--shade-x) + var(--shade-w) * .45),
      rgba(62,32,18,0) calc(var(--shade-x) + var(--shade-w))),
    radial-gradient(56px 21px at 0% 100%,
      rgba(62,32,18,var(--roll)) 0%,
      rgba(62,32,18,calc(var(--roll) * .56)) 32%,
      rgba(62,32,18,calc(var(--roll) * .20)) 58%,
      rgba(62,32,18,calc(var(--roll) * .05)) 79%,
      rgba(62,32,18,0) 100%),
    var(--grain), var(--flag);
  /* Torn from a pad, not cut by a machine: every straight run is walked in short steps that
     wander under a pixel either side of true. The point and the two corners it springs from
     keep their exact coordinates, because that shape is what says "flag".
     THE BOTTOM LEFT CORNER IS A CURL, not a corner, and the five points that draw it are
     STRUCK ON A CURVE rather than guessed. Five points placed by eye drew a long straight
     slant -- a snipped corner, which is what the first cut of this looked like. The fillet is
     tangent to the bottom edge where it leaves and tangent to the left edge where it arrives,
     and its five points are spread by ARC LENGTH, so the turn is sampled where it turns.
     THE CURVE IS NOT A QUARTER ELLIPSE. An ellipse is at its most diagonal exactly halfway
     round, which is the one place a curl must not be, so it read as a corner sliced off.
     These are struck on |u|^n + |v|^n = 1 at n = 1.6: under 2 the two ends hug the runs they
     join and the whole bend is spent at the corner, which is what rolling paper does.
     IT IS SMALL ON PURPOSE -- about 15px across and 8px up, of a flag 150 by 42. A much
     bigger one was drawn when the owner asked for more lift, and it was wrong in kind: paper
     cut away cannot read as paper lifted, because a real curl shows its own UNDERSIDE and a
     clip-path has no second surface to show. Past a nick, every extra pixel removed reads as
     damage. So the corner stays a nick and the LIFT IS SPENT ON THE SHADOW, which is the
     other half of what he asked for: larger, and more diffuse.
     Every state draws the SAME NINETEEN POINTS in the same order, which is the whole reason
     the roll can be animated: a polygon only interpolates into another of equal length, and
     one point more or fewer turns the motion into a snap. */
  clip-path:polygon(
    0.6% 2.0%, 18% 0.5%, 36% 2.4%, 54% 0.6%, 72% 2.1%, calc(100% - 16px) 1%,
    100% 50%,
    calc(100% - 16px) 99%, 72% 97.9%, 54% 99.4%, 36% 97.6%,
    calc(16% + var(--curl-tilt)) 99.2%,
    calc(9.2% + var(--curl-tilt) * 1.00) 98.6%,
    calc(8.4% + var(--curl-tilt) * 0.75) calc(94.0% + var(--curl-tilt) * 0.55),
    calc(6.8% + var(--curl-tilt) * 0.50) calc(89.6% + var(--curl-tilt) * 1.10),
    calc(4.4% + var(--curl-tilt) * 0.25) calc(85.7% + var(--curl-tilt) * 1.65),
    0.7% calc(83.0% + var(--curl-tilt) * 2.20),
    0.2% 42%, 0.8% 21%);
  /* The outline is the only thing animated here, because it is the only thing here. The
     shade numbers are registered properties set on the BUTTON and inherited in, so they
     animate there and this element simply reads the value of the frame. */
  transition:clip-path .62s cubic-bezier(.32,.74,.28,1);
}
/* THE DARK THE RAISED END THROWS ON THE CLOTH.
   The drop-shadow above cannot be this. A filter is worked out in the element's own flat
   space and only then is the result turned, so that shadow rides ON the tilted paper like a
   painted edge and never touches the cloth. A cast shadow has to lie in the cloth's plane
   while the paper does not, and the only way to hold a child out of its parent's turn is to
   turn it back: rotateY of the same angle the other way, about the SAME point in the world,
   leaves this one flat on the burlap while the paper above it leans off.
   Hence the origin arithmetic. The parent turns about 72% x 150px = 108px across its own box;
   this box starts 26px to the left of it, so the same vertical line is 134px across THIS box.
   Only x matters: a rotateY is a turn about a vertical axis, so the y of either origin cannot
   move the result, which is why the parent's own 140% and this one's 35px disagree harmlessly.
   Change the LEFT inset and the 134 changes with it.
   AND THE TURN-BACK IS NOT A 3D ONE. The parent carries a filter, so this child is flattened
   into the parent's plane before the parent's own transform runs, and the counter-turn never
   composes in 3D with the turn it is meant to undo -- it collapses to scaleX(cos --tilt) about
   that 134px line. So this box does not stay still as a flag lifts: the steeper the tilt, the
   harder the scale pulls its free edge in towards the crease. Measured with the magenta
   substitution (these layers replaced by one flat colour, then the colour's extent read off a
   shot): the box's painted left edge sat at 595 at rest and 607 at hover, while the paper's
   own went 600 -> 608. It had 1px of reach past the paper at the very moment the owner wanted
   shadow on the cloth there. THAT is what the 26px of left inset buys, and why the inset is
   lopsided: 20px of it is reach the scale eats back.
   The shape is a wedge, not a blob: deepest at the free edge, gone by the crease, because
   that is where the gap between paper and cloth is. It is wide and shallow -- there are only
   22px of burlap under the row before the page's cream begins, and a dark that reaches the
   cream is a dark lying on nothing. */
.groupnav button::after{
  content:""; position:absolute; inset:-14px -6px -14px -26px; z-index:-2; pointer-events:none;
  transform-origin:134px 35px;
  transform:rotateY(calc(0deg - var(--tilt)));
  opacity:var(--lift);
  /* THREE LAYERS, and the FIRST one is the gap the owner found. Every number below is measured
     with a differential probe -- the row shot twice, once with these layers and the filter off,
     so the burlap's own weave (which swings about 45% pixel to pixel, far more than any shadow
     here) subtracts out. A single sample of this cloth reads the weave and not the shadow.
     HORIZONTAL FIGURES ARE px, VERTICAL ONES PER CENT, on purpose. The left inset above is the
     one number most likely to be touched again, and a per-cent x would quietly re-scale and
     re-place all three layers the moment it moved. The height is not in play, so y stays in %.
     THE FIRST LAYER ANSWERS "not showing on the gingham underneath where the flag lifts up
     higher". When a flag lifts, its PAINTED left edge pulls in: the free end's box went
     600 -> 608 at hover, so eight pixels of cloth the paper covered at rest come open, up the
     WHOLE height of the paper and not just along its foot. The other two layers sit at the foot
     (84% and 82% down), so that strip measured 1.9% darker than bare cloth: the free end stood
     off the cloth over lit, open gingham. Hence a tall layer rather than a wide one. It now
     measures, in the strip itself (the 8px, isolated -- averaged into one 20px band it hides
     behind 12px of cloth that was never covered at all):
         along the foot     17.2 - 20.8% at hover against  6.7 - 7.2% at rest
         at mid height      11.3 - 13.2%             against  5.6 - 7.2%
         near the top        4.5 -  5.3%             against  2.7 - 4.0%
     and the open cloth further out, which should NOT darken, holds at 3.5%. Like the others it
     is scaled by --lift, so it is worth little at rest and arrives as the flag comes up, which
     is when the gap it fills appears.
     THE WHOLE SET IS DIFFUSED, the owner's other note. The old first layer peaked at .40 and was
     gone within 13px: 36.8% darkening in the first four pixels at hover, 6.8% by thirteen, which
     is a hard dark line under the paper rather than a shadow. Each one here is lower at its
     centre and carries further out -- 26.1% in the first four pixels, still 8.7% at thirteen.
     The lift still reads, because the lift was never the weight of either state -- it is the
     DIFFERENCE between them, and that is 2.6 to 2.9x on the strip and 2.7x under the foot. */
  background:
    radial-gradient(30px 44% at 20px 50%,
      rgba(62,32,18,.24) 0%,
      rgba(62,32,18,.13) 46%,
      rgba(62,32,18,.05) 74%,
      rgba(62,32,18,0) 100%),
    radial-gradient(88px 21% at 49px 84%,
      rgba(62,32,18,.25) 0%,
      rgba(62,32,18,.16) 38%,
      rgba(62,32,18,.06) 70%,
      rgba(62,32,18,0) 100%),
    radial-gradient(31px 15% at 33px 82%,
      rgba(62,32,18,.21) 0%,
      rgba(62,32,18,.09) 54%,
      rgba(62,32,18,0) 100%);
  transition:opacity .62s ease, transform .62s cubic-bezier(.32,.74,.28,1);
}
.groupnav button{
  /* Barely held back. The paper is meant to read as neon whether or not it is the chosen one,
     so an unselected flag gives up a little light and almost no colour -- the earlier .74 and
     .55 were washing the brightness straight back out. Selection is said by position, shadow
     and strength together, and never by colour alone. */
  opacity:.9;
  /* Two shadows, as on the sketchbook: a tight one where the paper touches the cloth and a
     wider soft one for the body of it standing off. One shadow doing both jobs is what makes
     a flag look printed on the cloth rather than laid on it. */
  /* drop-shadow() takes three lengths, never four. The second shadow here carried a spread,
     which is invalid, and an invalid function voids the WHOLE filter -- so until now a flag
     had no shadow at all, and no saturate either. That is what the row was missing. */
  /* ALL THREE ARE THROWN DOWNWARD, under the free edge. They used to be pushed right, to
     stand opposite a lit left edge; with the light gone the shadow is the whole of the lift,
     and what a curled bottom left edge throws is a shadow below it. They follow the curl's
     own outline because the shape they silhouette is ::before, which is the clipped paper.
     THREE, not two, and that third one is the lift the owner asked to make larger: a very
     wide, very soft wash at a quarter strength, eight times the first one's blur. Size here
     had to come from spread and not from depth -- a darker shadow under a neon flag reads as
     dirt on the cloth, while a wider one reads as the flag standing further off it.
     Note which way a drop-shadow goes before counting on it: these offset DOWN AND RIGHT, so
     none of them can fill the gap at the bottom LEFT where the corner has rolled away. That
     gap is filled by --roll, painted on the element itself. A pass that tried to fill it with
     a fourth drop-shadow changed nothing at all, twice, before the direction was checked. */
  filter:drop-shadow(0 1px 2.5px rgba(62,32,18,.13))
         drop-shadow(0 2px 6px rgba(62,32,18,.10)) saturate(.92);
  /* The outline and the three shade numbers are in the transition, and that is the motion the
     owner asked for: the edge SLIDES right and the corner rolls up, rather than arriving. The
     shade is on the same curve as the outline so the band travels with the edge it belongs to;
     a shorter curve on it and the dark would land before the paper that casts it. */
  transition:opacity .34s ease, filter .44s ease,
             transform .62s cubic-bezier(.32,.74,.28,1),
             --shade .54s ease, --roll .54s ease,
             --shade-x .62s cubic-bezier(.32,.74,.28,1),
             --shade-w .62s cubic-bezier(.32,.74,.28,1);
}
/* A flag is painted the colour its own screen turns the mug. Pressing Traffic takes the rim to
   coral, and the Traffic flag was already coral, so the colour is a promise the screen keeps
   rather than a decoration. Keyed on the id and not on nth-child, because GROUPS is reordered
   from time to time and a position would quietly repaint every flag when it is. */
/* --curl-tilt LEANS THE CURL, one number per flag, the way the row already leans the paper.
   No two sheets come off a pad at the same angle, and seven identical curls in a row read as
   a repeated graphic rather than seven bits of paper. The lean is shared out along the fillet:
   its share goes to x at the bottom end and to y at the left end, and the two end points keep
   one coordinate exact, so however far it leans the curl stays welded to the bottom edge where
   it leaves and to the left edge where it arrives. Kept under +-1.4%, which is about 2px --
   past that the shallow ones stop reading as a curl at all. Keyed on the id for the same
   reason the dye is: GROUPS is reordered from time to time. */
/* THE CURL IN THE WORD, which is not the same thing as the flag's turn above it.
   The flag's turn is a flat plane, and a plane warps as 1/(1 - x*sin(tilt)/P): across 150px at
   any perspective the gaps allow, that is near enough a straight line to read as the whole word
   being squashed evenly. The owner's note was exactly this -- the warp should be stronger the
   nearer the free edge, and it was not.
   A curl is not a plane. It is nearly flat at the crease and steep at the free edge, so the
   depth has to go as the SQUARE of the distance out from the crease. --d is that distance,
   1 at the free-edge letter and 0 at the gummed one, worked out from the letter's own index and
   the word's length; app.js writes --i on each span and --n on the button.
   EACH LETTER CARRIES ITS OWN perspective() rather than sharing the flag's. It has to: the flag
   has a `filter`, and a filter flattens the 3D of everything inside it, so a translateZ here
   would be ignored in the parent's space. A self-contained perspective is projected by the
   letter itself and survives the flattening.
   Nothing here shrinks. --u is never negative, so the depth is never negative, so no letter is
   ever drawn smaller than it is at rest -- which is what keeps the 21px word at 21px or more.
   The rotate is a twentieth of a degree per unit of curl and tips about a point just under the
   baseline, so the line of letters bows rather than each one leaning on the spot.

   THE WARP STOPS AT THE CREASE, and that is --u. The owner, 2026-10-16: warp the at-rest word
   more, but let the warp "reach only along 70% of the flag from the left side, and apply it with
   RAPIDLY decreasing strength along that length" -- the earliest letters a lot more than they
   had, the late-mid ones not much, and the letters past the 70% not at all.
   The 70% is not a taste number. --lift-at puts the crease at 72%: past it the paper is down on
   the cloth under the gum, so a letter there has no lift to be warped BY, and giving it any was
   the old law's mistake rather than its generosity. --u re-bases --d on that cutoff -- 1 at the
   free-edge letter, 0 at the letter 70% along and at every letter past it -- and `max(0, ...)`
   is what holds the far third at exactly nothing instead of a small negative.
   THE LAW IS THE CUBE OF --u, NOT THE SQUARE OF --d. The square, spread over the whole word,
   left the middle letters carrying nearly as much warp as the first two, which is what read as
   "plain compression" to the owner twice. Cubed and re-based, Advertising's eleven letters take
   9.00, 5.67, 3.28, 1.68, 0.71, 0.21, 0.03 and then four zeros, against 6.00, 4.86, 3.84, 2.94,
   2.16, 1.50, 0.96, 0.54, 0.24, 0.06, 0 before it: the first two letters gain, the third holds
   about level, and everything from the fourth in gives up most of what it had. The peak rose
   because --curl went 6 -> 9 at rest in the same pass; the shape of the fall is this cube.
   The rotate stays ONE POWER BELOW the lift, as it was -- u^2 under u^3 where it was d under
   d^2 -- so the line of letters still bows ahead of the depth rather than with it.
   --i IS A LETTER INDEX, so the cutoff is 70% of the letter COUNT and not of the painted width,
   and the letters are not equal width. So it does NOT land at 70% of the paper. Measured, the
   zero begins at 58.0% of the painted word on Channels, 60.3% Stock, 62.4% Finances, 64.9%
   Overview, 66.1% Advertising, 71.4% Orders, 77.7% Traffic. Five of the seven stop short of the
   72% crease, which costs nothing: a letter just inside the crease has almost no lift to warp
   by at the square, let alone the cube. Traffic alone runs 5.7% past it, and the letters in that
   overhang take u = .048, so u^3 x --curl is about a thousandth of a pixel -- below a pixel, and
   so below anything the screen can draw. Letter indices are the honest unit here, because the
   warp is applied per letter and a width-based cutoff would have to fall mid-letter.

   THE EXAGGERATION, owner 2026-10-26: "really quite drastically exaggerate the text warping
   ... the further left the letters are, to better simulate the lifting curve". The shape of the
   fall above is untouched -- only its scale, and the AXIS it acts on.

   IT IS SIDEWAYS COMPRESSION AND NOTHING ELSE. The owner, twice the same day: "the warp
   shouldn't really lift upward toward the top of the screen, it should mainly just compress /
   warp sideways", then "No upward warp in fact, just sideways logarithmic compression, i.e.
   getting less strong from left to right, quite drastically strong at the farthest left".
   Two builds were wrong before this one and both were wrong the same way -- they moved the
   letter on the other axis. The first used translateZ with a translateY: the free-edge letter
   stood 36.8px off the cloth, read 21% LARGER and climbed 15px up the window. The second used a
   rotateY, which takes width honestly but, being a real turn under perspective, magnifies the
   near half of each letter and so still grows it upward a little.
   The law is now ONE scaleX. A scaleX cannot touch a letter's height -- that is arithmetic, not
   a tuning -- so "no upward warp" is a property of the transform and not something to watch.
   The perspective, the translateZ, the translateY and the u^2 bow are all gone with it; a bow
   tips a glyph, and tipping a glyph raises it.
   HOW HARD: 0.028 per unit of curl, raised from 0.024 on the owner's word, 2026-10-26,
   "exaggerate the logarithmic text warp on the flag stickies a LIIITLE bit more". Measured off
   getComputedStyle on Advertising's eleven letters, free edge first: at rest, curl 9, the series
   runs 74.8 86.0 90.6 93.5 95.7 97.4 98.8 and then 100.0 for the last four. --s answers only to
   a letter's place in the word, so that one measured series fixes every state -- selected, curl
   11, opens at 69.2; focus, 14, at 60.8; hover, 16, at 55.2. The gummed end never moves.
   --u still carries the owner's 70% rule from 2026-10-16 and the hard zero past the crease; what
   changed is the curve ON it, u^3 -> the log above, which spends more of the drop on the very
   first letter. Traffic's overhang takes u = .048, where --s is 0.013 and the squeeze is three
   tenths of one percent of a 10px letter -- below a pixel, as it was. */
.groupnav button .gl{
  display:inline-block;
  --d:calc((var(--n) - 1 - var(--i)) / (var(--n) - 1));
  --u:max(0, calc((var(--d) - .3) / .7));
  /* THE FALLOFF IS LOGARITHMIC, the owner's word. 1 at the free edge, 0 at the crease, and
     most of the whole drop spent on the first letter or two: the inner log runs 0 -> log(21)
     as --u runs 1 -> 0, so the curve leaves 1 steeply and then flattens along the rest of the
     word. 20 is what sets how steep: higher spends more of the drop on the first letter. */
  --s:calc(1 - log(1 + 20 * (1 - var(--u))) / log(21));
  /* The right edge is the gummed end and it does not move, so the squeeze pulls the free edge
     in toward the flag rather than sliding the whole word across. */
  transform-origin:100% 50%;
  transform:scaleX(calc(1 - var(--curl) * var(--s) * 0.028));
  transition:transform .62s cubic-bezier(.32,.74,.28,1);
}
/* SOCIALS TAKES THE SKY, 2026-11-04. Overview and Sales both left the strip that day (grep
   GROUPS in app.js), so two of the seven dyes came free and the new tab needed one. Sky and
   its tilt are reused whole rather than a colour being mixed, because these seven were chosen
   together to be told apart side by side; mustard is simply unspent now.
   EVERY RULE HERE IS KEYED BY NAME, never by position, which is why a tab leaving the list
   moves no other flag's colour. `nth-child` below sets only the lean, and six tabs lean the
   same alternating way seven did. */
.groupnav button[data-g="socials"]    {--flag:var(--flag-sky);        --curl-tilt: 0.9%}
.groupnav button[data-g="finances"]   {--flag:var(--flag-rose);       --curl-tilt: 1.3%}
.groupnav button[data-g="advertising"]{--flag:var(--flag-aqua);       --curl-tilt:-1.1%}
.groupnav button[data-g="traffic"]    {--flag:var(--flag-coral);      --curl-tilt: 0.4%}
.groupnav button[data-g="orders"]     {--flag:var(--flag-chartreuse); --curl-tilt:-1.4%}
.groupnav button[data-g="stock"]      {--flag:var(--flag-periwinkle); --curl-tilt: 0.6%}
/* MUSTARD WAS THE SPARE, 2026-11-12. Seven flags now, and this is the seventh: of the seven
   flag colours exactly one went unused while six tabs were in the strip, and the indigo cloth
   this screen wears carries mustard as its fill. The tilt is its own, as every flag's is --
   no two sheets of paper are pinned at the same angle. */
.groupnav button[data-g="jobs"]       {--flag:var(--flag-mustard);    --curl-tilt:-0.7%}
.groupnav button:nth-child(odd){--lean:-.55deg}
.groupnav button:nth-child(even){--lean:.45deg}
/* HOVER'S SHADOW CARRIES THE LIFT, and every number in these four filters is a reading off
   the cloth, not a guess. The profile is taken straight down the middle of a flag, in 3px
   steps, against the burlap ABOVE the row at the same columns -- never against the cream
   below, which is a different surface and reads 70 points lighter on its own.
   THE SHADOW HAS 22 PIXELS TO LIVE IN. The burlap of .masthead runs out 22px under a flag's
   bottom edge and the page's cream begins; a shadow that reaches past it is a flag throwing
   its dark onto a surface it is not lying on. The old third drop-shadow did exactly that --
   measured 223 against a clean 238 a full 30px down.
   AND IT SPREADS UP AS WELL AS DOWN. A drop-shadow's blur reaches about one and a half times
   its radius every way, so the reach above the top edge is 1.5 x blur minus the offset: the
   old wide one, 13px down with 26px of blur, put 26px of dark ABOVE the paper and sat the row
   in a halo. Light in this collage comes from over the top, so the top edge throws nothing.
   Each state is therefore TWO shadows that both die inside the window: a contact dark where
   the paper touches, at a pixel or two with two or three of blur, and one soft one under the
   body of it. Hover is the SAME pair with the gap opened -- the contact dark doubles and the
   soft one drops from 3px to 6.5 -- which is a sheet being picked up, where a shadow thrown
   further away would only say the whole flag had moved.
   THE BOX DOES NOT MOVE OR CHANGE SIZE: no width, no padding, no border, no position, no
   rotation. What turns is the paper painted inside it, so the row holds still to be read and
   the word never shifts under the pointer. A row of tabs that jump as the pointer crosses them
   is a row nobody can read, which is why the earlier pass refused to move anything at all.
   The lifted left edge itself is NOT in these filters and cannot be: every drop-shadow falls
   down and to the right, so a lifted LEFT edge throws its shadow under its own opaque paper.
   That edge is said by --shade, painted on the paper, which is why the band exists at all. */
/* THE CHOSEN FLAG IS HOVERABLE TOO, and it was not until 2026-10-16. The owner: "the first
   overview flag doesn't seem to get the animation". It is not the first flag and it is not
   overview -- it is whichever flag is CHOSEN, and overview is only the one chosen at launch.
   The chosen rule below sets the same custom properties at the same weight and sits later in
   the file, so it won the cascade and a pointer on the chosen flag moved nothing at all. The
   comment on that rule argued the behaviour was right, "because there is nothing left for it
   to choose"; the owner has now seen it and reads a dead flag, not a settled one. So each of
   these two selectors carries the chosen flag's own copy, which outranks the chosen rule on
   specificity rather than on order. --rise is NOT redeclared here on purpose: the chosen rule
   is the only thing that sets it, nothing in this list competes for it, so the chosen flag
   keeps its 4px lift off the row while the pointer rolls its corner. */
.groupnav button:hover::before,
.groupnav button[aria-selected="true"]:hover::before{
  clip-path:polygon(
    6.5% 2.0%, 18% 0.5%, 36% 2.4%, 54% 0.6%, 72% 2.1%, calc(100% - 16px) 1%,
    100% 50%,
    calc(100% - 16px) 99%, 72% 97.9%, 54% 99.4%, 36% 97.6%,
    calc(21.5% + var(--curl-tilt)) 98.9%,
    calc(15.0% + var(--curl-tilt) * 1.00) 98.6%,
    calc(14.3% + var(--curl-tilt) * 0.75) calc(93.3% + var(--curl-tilt) * 0.55),
    calc(12.7% + var(--curl-tilt) * 0.50) calc(88.2% + var(--curl-tilt) * 1.10),
    calc(10.4% + var(--curl-tilt) * 0.25) calc(83.5% + var(--curl-tilt) * 1.65),
    6.6% calc(80.0% + var(--curl-tilt) * 2.20),
    6.6% 30%, 6.8% 15%);
}
.groupnav button:hover,
.groupnav button[aria-selected="true"]:hover{
  --shade:.52; --shade-x:6.5%; --shade-w:16%; --roll:.46;
  --tilt:-17deg; --lift:1; --curl:16; z-index:3;
  filter:drop-shadow(0 1.5px 4px rgba(62,32,18,.19))
         drop-shadow(0 4px 11px rgba(62,32,18,.17)) saturate(var(--gn-sat, .92));
}
/* Focus gets the same roll a pointer gets, with the flag brought up to full strength and a
   little brighter, and never a ring. The lift reads here too, so a keyboard sees the same
   paper a pointer does. */
.groupnav button:focus-visible::before,
.groupnav button[aria-selected="true"]:focus-visible::before{
  clip-path:polygon(
    6.5% 2.0%, 18% 0.5%, 36% 2.4%, 54% 0.6%, 72% 2.1%, calc(100% - 16px) 1%,
    100% 50%,
    calc(100% - 16px) 99%, 72% 97.9%, 54% 99.4%, 36% 97.6%,
    calc(21.5% + var(--curl-tilt)) 98.9%,
    calc(15.0% + var(--curl-tilt) * 1.00) 98.6%,
    calc(14.3% + var(--curl-tilt) * 0.75) calc(93.3% + var(--curl-tilt) * 0.55),
    calc(12.7% + var(--curl-tilt) * 0.50) calc(88.2% + var(--curl-tilt) * 1.10),
    calc(10.4% + var(--curl-tilt) * 0.25) calc(83.5% + var(--curl-tilt) * 1.65),
    6.6% calc(80.0% + var(--curl-tilt) * 2.20),
    6.6% 30%, 6.8% 15%);
}
.groupnav button:focus-visible,
.groupnav button[aria-selected="true"]:focus-visible{
  --shade:.52; --shade-x:6.5%; --shade-w:16%; --roll:.46;
  --tilt:-15deg; --lift:.82; --curl:14; z-index:3;
  filter:drop-shadow(0 1.3px 3.6px rgba(62,32,18,.18))
         drop-shadow(0 3.5px 10px rgba(62,32,18,.16)) saturate(var(--gn-sat, .92));
}
/* Chosen says so four times over and not once in colour: it comes up to full strength, it
   straightens and lifts off the page, its free edge is already rolled, and it throws the long
   shadow of something nearer. The roll sits between rest and hover, so the chosen flag reads
   as the one half picked up. This rule follows :hover at equal weight and so outranked it, and
   a pointer on the chosen flag therefore changed NOTHING. That was argued here as correct --
   "there is nothing left for it to choose" -- and it is not: the owner read the chosen flag as
   the one flag that had lost its animation. The two rules above now carry a chosen-flag copy
   each, which beats this one on specificity, so hover and focus reach it like any other flag
   and only --rise is left to this rule. */
.groupnav button[aria-selected="true"]::before{
  clip-path:polygon(
    4.8% 2.0%, 18% 0.5%, 36% 2.4%, 54% 0.6%, 72% 2.1%, calc(100% - 16px) 1%,
    100% 50%,
    calc(100% - 16px) 99%, 72% 97.9%, 54% 99.4%, 36% 97.6%,
    calc(19% + var(--curl-tilt)) 99.1%,
    calc(12.5% + var(--curl-tilt) * 1.00) 98.6%,
    calc(11.9% + var(--curl-tilt) * 0.75) calc(93.8% + var(--curl-tilt) * 0.55),
    calc(10.5% + var(--curl-tilt) * 0.50) calc(89.1% + var(--curl-tilt) * 1.10),
    calc(8.4% + var(--curl-tilt) * 0.25) calc(84.7% + var(--curl-tilt) * 1.65),
    4.9% calc(81.5% + var(--curl-tilt) * 2.20),
    4.9% 35%, 5.1% 18%);
}
.groupnav button[aria-selected="true"]{
  opacity:1; --gn-sat:1;
  --shade:.46; --shade-x:4.8%; --shade-w:19%; --roll:.40;
  --tilt:-12deg; --lift:.62; --curl:11; --lean:0deg; --rise:-4px; z-index:2;
  filter:drop-shadow(0 1px 3px rgba(62,32,18,.16))
         drop-shadow(0 3px 8.5px rgba(62,32,18,.14)) saturate(1);
}
@media (prefers-reduced-motion:reduce){
  .groupnav button, .groupnav button::before, .groupnav button::after,
  .groupnav button .gl{transition:none}
}

/* --------------------------- the organiser -------------------------
   A manila folder organiser seen front on: the tabs are cut at different places along the top
   edge so that none of them hides another, which is the only reason the object is built that
   way. The row here is that top edge. Each tab sits at its own place along it, and the folder
   under them is the one that is open.
   The tabs carry no shadow of their own at rest: they are cut from the same card as the folder
   and lie in its plane. Pressed, the tab and the folder become one piece of card -- same
   colour, no line between them -- which is what says WHICH folder is open without a second
   signal having to say it. A SHUT TAB IS THE SAME CARD IN SHADOW, --tab-shut, half the light of
   the face, so the one that is open is the one that is lit. */
.folders{
  display:flex; align-items:flex-end; gap:10px; margin:0 0 0 18px;
  list-style:none; padding:0;
}
/* THE ROW BELOW THE TABS NEEDS SOMETHING TO STAND ON, AND A SHUT FOLDER GIVES IT NOTHING.
   An open folder is a card with 20px of padding, so the pile starts 14px clear of the tabs.
   Shut, the folder is `display:contents` and contributes no box at all, so the pile started
   at the tab row's own layout bottom -- and the tabs that rest at translateY(3px) paint 3px
   past it, while the front tag lifts 2px up to meet them. Measured on Sales and on Online
   sales, the only two views that draw tabs with none of them open: tags at y352, tabs ending
   at y358, so the tags covered the bottom 6px of the tab. The tabs were not what rendered
   oddly; the row under them had nothing to stand on.
   20px is not a new number: it is the padding the open folder would have given the pile, so
   the gap between tabs and tags now reads the same whether the folder is open or shut. */
#folders:not([hidden]):has(+ #folder:not([data-open])){margin-bottom:20px}
.folders button{
  flex:0 0 auto; min-height:46px; padding:0 22px;
  border:0; border-radius:12px 12px 0 0;
  background:var(--tab-shut); color:var(--ink-flag);
  /* The shadow the open card throws back along the row, so a shut tab reads as this card lying
     under that one and not as a tab dyed a second colour. Inset, so it costs the box no size. */
  box-shadow:inset 0 3px 7px -3px rgba(62,32,18,.5);
  font-family:var(--hand); font-size:19px; line-height:46px; white-space:nowrap;
  /* The tabs are cut at different heights as well as different places, the way a hand-cut
     divider is. It is a sizing rule, not a hover one, so nothing changes size when the mouse
     arrives: the whole row keeps its box at rest, on hover and when pressed. */
  position:relative;
  filter:drop-shadow(0 -1px 1px rgba(62,32,18,.18));
  transition:transform .18s ease, filter .18s ease, background-color .18s ease, box-shadow .18s ease;
  /* THE PRESSED STATE IS MEASURED FROM --rest, THE TAB'S OWN PLACE ON THE CUT EDGE, never from
     zero. Written as a literal 0 instead, it cancels the cut for half the row: the odd tabs
     rest 3px low and the even ones rest at 0, so `translateY(0)` lifted an odd tab 3px and
     moved an even one not at all. That is what made pressing Shopify shift it and pressing
     Faire do nothing. The lift is a transform, so it moves no other element and reflows
     nothing. */
  --rest:0px;
  transform:translateY(var(--rest));
}
.folders button:nth-child(odd){--rest:3px}
/* HOVER DOES NOT LIFT THE TAB, 2026-10-19, at the owner's word: "Don't lift/separate the manila
   folder tabs from the folder on hover". It used to rise 3px, which pulled a shut tab's bottom
   edge up off the folder it is filed in -- the one thing the row is drawn to show. So hover is
   a deeper shadow instead, no movement at all and no lighter tone (owner, 2026-11-15).
   The tab keeps its rest tone and inset, so --ink-flag reads its rest 5.69:1. */
.folders button:hover{filter:drop-shadow(0 -2px 3px rgba(62,32,18,.34))}
/* Focus is a deeper card and a closer shadow, never a ring. */
.folders button:focus-visible{
  filter:drop-shadow(0 -2px 3px rgba(62,32,18,.5));
}
/* The open folder's tab is part of the folder: it takes the face colour the folder is painted
   in, comes out of the shadow the shut tabs lie in, loses the drop-shadow that separated it,
   and keeps its full height, so the eye runs straight from the word down into the papers under
   it. The word itself does not change -- --ink-flag is the ink on every tab in the row -- so
   the only thing that moves between shut and open is the light on the card. */
.folders button[aria-selected="true"]{
  background:var(--manila); box-shadow:none;
  /* 4px off its OWN rest, so the pressed tab stands the same amount proud wherever it sits on
     the cut edge. Hover no longer moves at all, so nothing else in the row can be mistaken for
     this.
     The join survives the lift and did not have to be re-cut: ::after below hangs 6px under
     the tab, so at the worst case (an even tab, --rest 0) its lowest edge lands at the tab's
     bottom +6 -4 = 2px INSIDE the folder, in the folder's own colour. Pressed, tab, bridge
     and folder are still one piece of card with no line between them, which is the signal
     the row was built on. */
  transform:translateY(calc(var(--rest) - 4px)); filter:none; z-index:2;
}
.folders button[aria-selected="true"]::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:8px; background:var(--manila);
}

/* A TILED ROW: Sales, at the owner's word of 2026-10-19. The hand-cut row above is still the
   default and still what Stock draws; this is its opposite, and the ask was exact -- "1/3 full
   panel width each, Overview's left tab edge aligns with the left edge of the whole panel,
   In-person's right edge with its right".
   THE THIRD IS NOT WRITTEN AS 33.333%. `flex:1 1 0` with no gap and no side margin gives every
   tab an equal share of the row, which IS a third when there are three of them, and the two
   outer edges land on the card's own edges because the row is then exactly as wide as main's
   padding box -- the same box `main::before` paints the card in, which is why its `inset` is 0
   sideways. A percentage would have to be kept in step with the number of tabs by hand, and
   would leave a sub-pixel strip at one end of the row.
   --rest IS RESET TO 0 HERE because a tiled row is one straight edge. The stagger above exists
   only so that tabs cut at different places cannot hide each other, and tabs that tile cannot
   overlap, so it has nothing left to do. This rule and `.folders button:nth-child(odd)` weigh
   exactly the same, so it wins only by sitting after it in the file, and it does.
   EVERY STATE IS STILL MEASURED FROM --rest: hover lifts 3px and the pressed tab 4px, off 0
   now rather than off 3 for half the row. The uppercase, the weight and the tracking are
   written ONCE, for all states at once, never in a :hover or [aria-selected] rule, so the box
   is the same size at rest, hovered, focused and pressed.
   `margin-left`/`margin-right` and not `margin`, so the 20px the shut-folder rule puts under
   the row is left alone -- Sales never reaches that rule, since a tab is always pressed there,
   and a rule that quietly depended on never being reached would be the next trap. */
/* THE TILED ROW FOLLOWS THE FOLDER OUT TO THE PADDING BOX, 2026-10-19. The owner gave this row
   its geometry by its edges -- "Overview's left tab edge aligns with the left edge of the whole
   panel, In-person's right edge with its right" -- so when the folder moved out by the gutter to
   hold one width, a row left at main's content box would have broken that alignment and lifted
   the first tab off the square top-left corner it is cut from. The two negatives are the same
   token the folder uses, for the same reason: they have to agree. */
.folders[data-tile]{gap:0; margin-left:calc(var(--gutter) * -1); margin-right:calc(var(--gutter) * -1)}
.folders[data-tile] button{
  flex:1 1 0; min-width:0; padding:0 10px;
  text-transform:uppercase; font-weight:700; letter-spacing:.07em; text-align:center;
  --rest:0px;
}
/* TWO BLANK TABS, 2026-11-14, on a screen with no ways in ("populate it with 2 blanks"). The same
   card, height, cut, shadow and stagger as a shut tab, and no word. They are not buttons, so
   they take no press, no focus and no hover; app.js hides the row from a screen reader. */
.folders .blank{
  flex:1 1 0; min-width:0; min-height:46px; border-radius:12px 12px 0 0;
  background:var(--tab-shut); box-shadow:inset 0 3px 7px -3px rgba(62,32,18,.5);
  filter:drop-shadow(0 -1px 1px rgba(62,32,18,.18)); transform:translateY(var(--rest));
  --rest:0px;
}
.folders .blank:nth-child(odd){--rest:3px}
/* The folder itself, in --manila, the one face colour its pressed tab also wears. renderFolders()
   used to write a --folder custom property here, picked out of a five-name list by the tab's
   index, and that list was one name short of the six tabs Connections draws: `i % 5` sent OTHER
   back to the first tan, so pressing the sixth tab painted a folder in a colour no tab in the
   row was wearing. One face colour cannot be indexed wrong, so the list and the property are
   both gone. When no tab is open the screen has no organiser and the folder is not painted at
   all -- the sheets then lie straight on the cloth, as they did before there were folders. */
/* A SHUT FOLDER IS NOT A BOX. It was `display:contents` so that `.grid`/`.conn-view` could
   hand their sheets straight up into the pile's flex column -- a plain box here caught them
   instead and the sheets grew up to 86px taller. The pile is gone (grep `THE PILE IS GONE`)
   and this stays, for a reason that outlived it: main carries the `--card-top` the stamp is
   positioned against, and a box here would be a second containing block between the two.
   Only an OPEN folder becomes the card its tab is cut from. */
.folder{display:contents}
.folder[data-open]{
  display:flex; flex-direction:column; min-height:0;
  /* THE FOLDER REACHES THE FOOT OF THE WINDOW, 2026-10-19, at the owner's word: "fix all manila
     folder views at full size". A SHUT folder is paint on main's ::before and has always filled
     the window, `inset:var(--card-top) 0 8px`; an OPEN one is a real box and stopped at its own
     content. At 1340x900 that left the open folder about 240px short and read as a card with a
     wide margin. Maximised to 1920x959 it left 300px, and Sales became a 399px stub of manila
     floating on the cloth while Stock, one flag along, was a full sheet of it down to the
     copyright line. Same object, same window, two heights.
     GROW BUT NEVER SHRINK. `flex:1 0 auto` fills the space that is free and leaves a folder
     taller than the window at its own height, so main scrolls it as it always did. The default
     was `0 1 auto`, which could not grow and COULD shrink -- and this box carries min-height:0,
     so a squeeze here would have clipped the papers inside rather than scrolled them.
     SIDEWAYS THE TWO STATES ARE NOW THE SAME EDGE, 2026-10-19, at the owner's word: "lock the
     main view content area (the manila folder) at the same width in all views and menus".
     The card is paint on main's PADDING box; an open folder is a real child and stopped at
     main's CONTENT box, 48px narrower, so pressing a tab on Sales or Stock widened the manila
     by the page's two side margins and letting it up again shrank it. `margin-inline` cancels
     the gutter and puts this box on the padding box too, which is the one edge the card has
     always used. The inline padding goes to the same token: 1220 less two 24s is 1172, which is
     exactly where a card screen's sheets lie (they are main's content box), so the papers match
     as well as the folder. Vertically they still differ -- the card leaves an 8px lip of cloth
     below and the folder leaves main's own 18px -- and that is left alone, because tying the
     two would make main's bottom padding a number this rule could not be read without. */
  flex:1 0 auto;
  margin-inline:calc(var(--gutter) * -1);
  border-radius:0 14px 14px 14px;
  background:var(--manila); padding:20px var(--gutter) 26px;
  box-shadow:var(--manila-cast);
}
/* THE CARD: what a shut folder looks like. Since 2026-10-19 every screen has one --
   renderFolders() writes data-card on #folder whenever no tab is pressed, which is the five
   screens that have no tabs, the two Settings screens, and Sales, Online sales and Stock when
   none of their tabs is open. Before that it was Connections and Routines by name.
   THE CARD IS PAINT, NOT A BOX, AND THAT IS THE WHOLE DESIGN OF IT. A folder that is a box
   catches the sheets the pile hands up to main's column and re-flexes them inside itself, and
   this build has no height to give away: nothing scrolls, so a sheet that does not fit is
   clipped out of reach. Measured on the Connections sheet "Sales channels", which sits within a
   couple of pixels of the window: as a box with 46px of padding it ran 15px over, at 20px it ran
   8px over, and swept lip against page margin every 2px of box cost about 1px of overflow -- the
   sheet absorbs half of what it is charged and the window takes the rest. So #folder stays
   `display:contents` here, exactly as it is on a screen with no folder at all, and the manila is
   painted behind the column on a pseudo-element that is out of flow and costs nothing.
   The lip is 6px of cloth above the card and 8px below. Sideways it reaches the full padding box,
   so the manila runs out past the sheets by the page's own side margin.
   `isolation:isolate` is what keeps `z-index:-1` inside main: without a stacking context here the
   card would sink behind the photographed cloth and vanish. */
main:has(.folder[data-card]){position:relative; isolation:isolate; --card-top:6px; --card-cut:14px}
/* A SCREEN THAT DRAWS A TAB ROW STARTS ITS CARD AT THE ROW'S BOTTOM EDGE, so the tabs stand on
   the card exactly as they stand on an open folder, and the top-left corner goes square where
   the first tab joins it -- the same cut `.folder[data-open]` takes above.
   60px IS MEASURED, NOT CHOSEN, and it is two numbers that each live elsewhere: main's own
   padding-top, 14px (the `main` rule at app.css:2228, which overrides the 26px one at 1794 --
   the 26 is what this was nearly written from), plus the 46px tab
   (`.folders button{min-height:46px}`). Probed on all nine screens: the row runs 14->60 from
   main's top on Sales, Online sales and Stock and is 0px tall on the other six, and the pile
   starts at 80 on those three whether the folder under them is open or shut. So a card topped
   at 60 keeps its own 20px between the tabs and the first tag -- the padding an open folder
   gives -- and the gap reads the same either way. The card is out of flow, so none of this
   costs a sheet any height. */
main:has(#folders:not([hidden]) + .folder[data-card]){--card-top:60px; --card-cut:0}
/* 18px AT THE FOOT SINCE 2026-11-14 (was 8), main's own padding-bottom, which is where an open
   folder stops: "All manilas locked to the same size and position". */
main:has(.folder[data-card])::before{
  content:""; position:absolute; z-index:-1; inset:var(--card-top) 0 18px;
  background:var(--manila); border-radius:var(--card-cut) 14px 14px 14px;
  box-shadow:var(--manila-cast);
}

/* ------------------------------ panels ----------------------------- */
/* A change of screen fades the sheets out and straight back in, so it reads as one movement
   rather than as different words appearing in the same frame. 130ms each way: long enough to
   be seen, short enough that the click still feels answered at once. The draw happens at the
   bottom of the fade, so the tags and every sheet change together.
   THE ORGANISER DOES NOT FADE, 2026-10-19, at the owner's word: "try and fade between views,
   but only the content -- leave anything that's meant to be there in the new target view where
   it is, minimise what needs to crossfade in/out for smoothness". Until then the class sat on
   `main`, and `main` holds the tab row and the folder as well as the papers -- so crossing from
   Sales Overview to Online sales, which leaves the same three tabs pressed in the same three
   places on the same sheet of manila, faded the whole object out and back in to change the
   papers lying on it. The folder is the thing you are holding; only what is filed in it turns.
   SO THE FADE IS ON THE BOXES THE DRAW REPLACES, AND ON NOTHING ELSE. renderPage() empties
   #grid and builds every child again, and pileUp() rewrites #pile and #alerts, so everything
   named here is new after a draw and none of it can blink needlessly. `#pile` was named here
   until the tag row went (grep `THE PILE IS GONE`) and is dropped with it. The CHILDREN of
   `.grid` and `.conn-view` are named rather than the two boxes themselves, and that is still
   right now that both are layout boxes again: the draw empties #grid and keeps it, so a fade
   on #grid would be a fade on a box that did not change. #folders and #folder are absent too,
   for the reason above.
   Opacity, and nothing but opacity, so nothing moves and nothing is resized -- app.js's
   fadeTo() is the only thing that sets the class, and app.js:1346 says why it has to force a
   recalc before taking it off again. The global reduced-motion rule at app.css:247 switches
   every transition here off, so there is nothing to re-state for it. */
main{padding-block:26px 72px}
#alerts, .grid > *, .conn-view > *{transition:opacity .13s ease-out}
main.leaving :is(#alerts, .grid > *, .conn-view > *){opacity:0}
/* THE SCREEN'S TITLE CARD IS GONE, 2026-10-18, at the owner's word ("Remove all menu title
   cards, expand the content up to fill"). It was a tilted sheet carrying the screen's name and
   a one-line blurb. MEASURED on all nine screens before it was cut: 93-96px, 83-86px of box
   plus 10px of margin, and it stood above main's pile column, so it was charged to EVERY sheet
   of every screen. Two sheets were over-tall at the time and both were over by less than the
   card cost -- Sales channels "Everything the business took" +27px and Routines "Keep Faire
   stock in step with Shopify" +17px -- so the card was the whole of their clipping.
   The name was never only here: the chosen flag in the strip above carries it, so this was the
   second place the same word was written. The sheets took the height back with no help while
   the pile was drawing one of them -- `.paper.front` was `flex:1 1 auto` in main's column. The
   pile is gone and so is that rule; the height the card cost is now simply height the grid has.
   THE WORDS STAY IN THE DOM AND ARE NOT DRAWN, and `display:none` is the deliberate way to do
   it rather than a 1px clip: a clip declares a size, and harness/css-size-rules.js would then
   hold a size rule matching nothing visible, which is the dead rule that gate exists to find.
   `main` names itself off this h2 with aria-labelledby, which resolves a hidden element's text
   on purpose, so the region keeps the screen's name for a screen reader and the six harnesses
   that read `#groupTitle` keep reading it. app.js still writes both strings (app.js:4288). */
.grouphead{display:none}

.grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px}
@media (max-width:900px){ .grid{grid-template-columns:1fr} }
.panel{
  grid-column:span 1; background:var(--surface); border:2px solid var(--rule);
  border-radius:16px; padding:22px; min-width:0; display:flex; flex-direction:column; gap:16px;
}
.panel.wide{grid-column:1/-1}

/* POSTS IS TWO COLUMNS OF ITS OWN, 2026-11-10, at the owner's word: "Ideas being the left
   panel in Posts, right being the composer and queue". The right side is ONE grid cell holding
   a column of two panels, so `.grid` keeps the two columns every other screen draws and both
   panels keep `.panel`'s own box. The gap is the grid's own 18px, so the two panels on the
   right line up with the one on the left however tall either gets.
   NOTHING HERE IS position:fixed, position:sticky OR pointer-events, on purpose: those three
   words are what scripts/check-build.js hashes into the chrome fingerprint, and a screen's
   layout must not move a hash that says which window-chrome walk has been done (CHROME-WALK.md
   is parked at seven moves owed). An ordinary grid or flex rule is free. */
.socials-side{display:flex; flex-direction:column; gap:18px; min-width:0}

/* ------------------- Socials > Browse: the four tiles and the feed panel -------------------
   The same standing constraint as .socials-side above applies to every rule down to the end of
   this block, and for the same reason: not one of them may say position:fixed, position:sticky
   or pointer-events outside a comment, because those words are what check-build hashes into the
   chrome fingerprint. The feed panel needs none of them -- it is a native popover, so the
   browser puts it in the top layer and centres it with the UA's own inset:0 and margin:auto.
   That is the whole reason Browse uses a native panel rather than a floating div. */
.acct-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px}

/* ONE CONTROL PER TILE and one box for every state. Every size lives in this rule and nothing
   below repeats one, so the tile cannot change shape under the pointer: :hover, :focus-visible
   and [aria-expanded="true"] each touch colour and shadow only. 96px is well over the owner's
   44px floor, and the tile is the whole hit target rather than a button inside a card. */
.acct{
  display:flex; flex-direction:column; justify-content:center; gap:6px;
  min-height:96px; padding:18px 20px; text-align:left;
  border:2px solid var(--rule); border-radius:10px;
  background:var(--surface); color:var(--ink);
  font:inherit; cursor:pointer;
}
.acct .an{font-size:var(--fs-lg); font-weight:600; line-height:1.2}
.acct .as{font-size:var(--fs-sm); color:var(--ink-2); line-height:1.3}
.acct.dim .as{color:var(--ink-3)}
.acct:hover{box-shadow:var(--hov-sh)}
/* NEVER A FOCUS RING, the owner's standing rule: focus is a filled background and an inset
   shadow, which changes no size and no border width. */
.acct:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}
.acct[aria-expanded="true"]{background:var(--stickyedge); border-color:var(--ink-3)}
.acct-note{margin:16px 0 0; font-size:var(--fs-sm); color:var(--ink-2); line-height:1.45}

/* THE PANEL'S BOX IS ONE SET OF NUMBERS AND DOES NOT MOVE WITH WHAT IS IN IT. The switch sits
   above a body of a fixed height, so changing view, or twelve posts arriving where none were,
   leaves the panel exactly the size it was. The two subtractions are a guard for a small
   window, not a layout: nothing in this app may scroll, so the panel can never be taller than
   the window it is centred in. */
.feedpop{
  --fp-w:min(720px, calc(100vw - 96px));
  width:var(--fp-w); max-width:var(--fp-w);
  padding:24px; border:2px solid var(--rule-2); border-radius:12px;
  background:var(--surface); color:var(--ink);
  box-shadow:0 18px 48px rgb(25 14 4 / .34);
}
.feedpop[hidden]{display:none}
.fp-top{display:flex; align-items:center; justify-content:space-between; gap:16px}
.fp-name{margin:0; font-size:var(--fs-h2); line-height:1.15}
.fp-shut{
  min-height:44px; min-width:88px; padding:0 18px;
  border:2px solid var(--rule); border-radius:8px;
  background:var(--surface); color:var(--ink-2);
  font:inherit; font-size:var(--fs-sm); cursor:pointer;
}
.fp-shut:hover{box-shadow:var(--hov-sh)}
.fp-shut:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}

/* TWO WORDS, AND THE CURRENT ONE IS FILLED. Both buttons are the same width in both states,
   so pressing one cannot nudge the other. */
.fp-switch{display:flex; gap:10px; margin:20px 0 0}
.fp-way{
  min-height:44px; min-width:128px; padding:0 20px;
  border:2px solid var(--rule); border-radius:8px;
  background:var(--surface); color:var(--ink-2);
  font:inherit; font-size:var(--fs-base); cursor:pointer;
}
.fp-way:hover{box-shadow:var(--hov-sh)}
.fp-way:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}
.fp-way[aria-pressed="true"]{color:var(--ink); background:var(--stickyedge); border-color:var(--ink-3)}

/* THE ONE BOUNDED PANEL THAT MAY SCROLL, which is the whole of the owner's no-scroll rule here:
   the view behind never scrolls, and this box scrolls inside itself with no bar drawn. The
   height is fixed rather than a max, so the panel's box is the same before and after the posts
   arrive. */
.fp-body{
  height:min(380px, calc(100vh - 340px)); margin:20px 0 0;
  overflow-y:auto; scrollbar-width:none;
}
.fp-body::-webkit-scrollbar{display:none}

/* ================= Finances > Money, 2026-11-25 =================
   THREE SCRAPS: the accounts top left, the newest rows top right, the balance below, full
   width. Every state of an account button is the same box: pressing, hovering and focusing
   change only the background, the border colour and the shadow. */
.bank-accts{display:flex; flex-direction:column; gap:10px}
.bank-acct{
  position:relative; display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  min-height:64px; padding:8px 18px; text-align:left;
  border:2px solid var(--rule); border-radius:10px;
  background:var(--surface); color:var(--ink); font:inherit; cursor:pointer;
}
.bank-acct:hover{box-shadow:var(--hov-sh)}
.bank-acct:focus-visible{outline:none; box-shadow:var(--foc-sh)}
.bank-acct[aria-pressed="true"]{background:var(--stickyedge); border-color:var(--ink-3)}
.bank-name{font-family:var(--display); font-size:var(--fs-h2); font-weight:600; line-height:1.15}
.bank-bal{font-family:var(--display); font-size:var(--fs-stat); font-weight:700; line-height:1.1;
  font-variant-numeric:tabular-nums; white-space:nowrap}
/* "ENDING 1011" ON HOVER AND ON FOCUS ONLY, floated over the button's foot so it moves nothing. */
.bank-end{
  position:absolute; left:18px; top:100%; z-index:5; margin-top:4px;
  padding:6px 12px; border:2px solid var(--rule-2); border-radius:8px;
  background:var(--surface); color:var(--ink); box-shadow:var(--shadow);
  font-size:var(--fs-xs); font-weight:600; white-space:nowrap; opacity:0;
}
.bank-acct:hover .bank-end, .bank-acct:focus-visible .bank-end{opacity:1}

/* THE NEWEST ROWS ARE ONE BUTTON: a press anywhere on them opens the whole list. */
.bank-recent{
  display:flex; flex-direction:column; width:100%; padding:4px 14px 10px; text-align:left;
  border:2px solid transparent; border-radius:10px;
  background:transparent; color:var(--ink); font:inherit; cursor:pointer;
}
.bank-recent:hover{border-color:var(--rule); box-shadow:var(--hov-sh)}
.bank-recent:focus-visible{outline:none; box-shadow:var(--foc-sh)}
.bank-line{display:grid; width:100%; grid-template-columns:84px minmax(0,1fr) auto; gap:14px; align-items:baseline;
  min-height:44px; padding:8px 0; border-bottom:2px solid var(--rule); font-size:var(--fs-base)}
.bank-when{color:var(--ink-3); font-size:var(--fs-sm); font-variant-numeric:tabular-nums; white-space:nowrap}
.bank-who{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.bank-amt{font-weight:700; font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap}
.bank-more{margin-top:10px; color:var(--ink-2); font-size:var(--fs-sm); font-weight:600}
.bank-count{margin:12px 0 0; color:var(--ink-3); font-size:var(--fs-sm)}
.bank-all .bank-line{padding-right:4px}
/* THE BALANCE LINE: one keyboard stop, focus drawn as a shadow, the tip floating over it. */
.bank-chart{border-radius:10px}
.bank-chart:focus-visible{outline:none; box-shadow:var(--foc-sh)}
.bank-chart svg{cursor:crosshair; touch-action:pan-y}
.bank-tip{transition:opacity .08s}
.bank-tip .tc{display:block; color:var(--ink-3); font-size:var(--fs-xs); font-variant-numeric:tabular-nums}


/* ================= Jobs to do > the offer, 2026-11-13 =================
   THE APP HAS FOUND WORK IT CAN FINISH AND IS ASKING FIRST. It is a native
   popover="manual", so the browser floats it in the top layer and dims the page
   with the shared ::backdrop above: nothing here is position:fixed, position:sticky
   or pointer-events, which are the three words scripts/check-build.js hashes into
   the chrome fingerprint. `.offerpop` was added to that ::backdrop selector list
   instead of being given a dim of its own. Comments are stripped before the gate
   matches, so naming the words here is safe.

   IT FITS ITS CONTENT, which is the owner's no-dead-space rule: the width is fixed
   so the box does not jump between the look and the answer, but the height is the
   content's, and the one list inside it is the only part with a ceiling. The two
   ways out are the same size as each other and keep that size in every state. */
.offerpop{
  --op-w:min(560px, calc(100vw - 96px));
  width:var(--op-w); max-width:var(--op-w);
  padding:24px; border:2px solid var(--rule-2); border-radius:12px;
  background:var(--surface); color:var(--ink);
  box-shadow:0 18px 48px rgb(25 14 4 / .34);
}
.offerpop[hidden]{display:none}

.op-name{margin:0; font-size:var(--fs-h2); line-height:1.15}

/* WHAT IT FOUND, IN HER WORDS, and it is the first thing under the question. */
.op-say{margin:14px 0 0; font-size:var(--fs-base); line-height:1.45; color:var(--ink-2)}
.op-say[data-tone="crit"]{color:var(--crit)}
.op-say[data-tone="good"]{color:var(--good)}

/* THE COUNT, BIG, because it is the thing she is agreeing to. */
.op-count{
  margin:18px 0 0; padding:14px 16px;
  border:2px solid var(--rule); border-radius:10px;
  background:var(--surface-2);
  font-size:var(--fs-lg); line-height:1.25; color:var(--ink);
}

/* THE SHOPS AND THEIR NUMBERS. A bounded scroller, the only one in this panel,
   which is what the owner's no-scroll rule allows: the view behind never scrolls.
   max-height and not height, so three rows do not leave a box built for six.
   Tabular numbers, so a tracking code cannot change the column's width. */
.op-rows{
  margin:14px 0 0; padding:0; list-style:none;
  /* SIX ROWS BEFORE IT SCROLLS. A part-failure shows what went AND what was refused in this
     one list, so five and six rows are ordinary now where four was the old limit. The second
     figure is the one that matters on a short window and still decides there. */
  max-height:min(264px, calc(100vh - 460px));
  overflow-y:auto; scrollbar-width:none;
}
.op-rows::-webkit-scrollbar{display:none}
.op-row{
  display:flex; justify-content:space-between; gap:16px; align-items:baseline;
  padding:9px 0; border-top:1px solid var(--rule);
}
.op-row:first-child{border-top:0}
.op-shop{font-size:var(--fs-sm); color:var(--ink); min-width:0; overflow-wrap:anywhere}
.op-code{font-size:var(--fs-xs); color:var(--ink-2); font-variant-numeric:tabular-nums; white-space:nowrap}

/* WHY SOMETHING WAS LEFT ALONE. One line, under the list, never an alert box. */
/* A ROW FAIRE WOULD NOT TAKE. The word "Refused" stands where the tracking number stands on
   the rows that went, so the two kinds line up and read down the same column. The colour only
   repeats what the word already says. */
.op-row[data-no] .op-code{color:var(--crit)}
.op-left{margin:12px 0 0; font-size:var(--fs-xs); line-height:1.4; color:var(--ink-2)}

/* THE TWO WAYS OUT. SIZED IN ONE RULE THAT COVERS EVERY STATE, so a hover or a
   press cannot change the box: only colour and shadow move. Both are the same
   width, so neither nudges the other, and neither is filled in -- the owner's
   settled call is that no default sends. */
.op-ways{display:flex; gap:12px; margin:22px 0 0}
.op-way{
  flex:1 1 0; min-height:52px; padding:0 18px;
  border:2px solid var(--rule); border-radius:8px;
  background:var(--surface); color:var(--ink-2);
  font:inherit; font-size:var(--fs-base); line-height:1.2; cursor:pointer;
  box-sizing:border-box;
}
.op-way:hover{box-shadow:var(--hov-sh)}
.op-way:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}
.op-way[disabled]{opacity:.55; cursor:default}
.op-way[disabled]:hover{box-shadow:none}
/* THE ONE THAT CHANGES SOMETHING ON FAIRE wears the crit edge, so the sending
   button is never the quiet one. Colour is not the only signal: it says "Send". */
.op-way[data-does="send"]{border-color:var(--ink-3); color:var(--ink)}

/* ================= Socials > Library, 2026-11-10 =================
   NOTHING HERE IS position:fixed, position:sticky OR pointer-events, on purpose: those three
   words are what scripts/check-build.js hashes into the chrome fingerprint, and the owner is
   already carrying seven unwalked moves (CHROME-WALK.md). A new one of any of them would make
   it eight. Comments are stripped before that gate matches, so naming them here is safe.

   THE TWO PANELS ARE BOUNDED SCROLLERS AND THEIR HEIGHT COMES OFF THE FLEX CHAIN, not off a
   hand-counted `calc(100vh - N)`. That choice is Connections' lesson, written out at
   `.conn-fit` further down this file: a subtracted constant goes stale SILENTLY the day the
   chrome above it changes height -- nothing fails, the panel is just the wrong size. Here it
   matters more than anywhere else in the app, because the right panel holds 1180 tiles and an
   unbounded one would put thousands of pixels of scroll into the VIEW, which rule (1) of
   LOOK-WALK.md forbids on every screen.
   THESE RULES ARE DELIBERATELY NOT `.conn-fit`'S, WIDENED. Adding `.lib-fit` to that selector
   list would have been three characters and would have reached Connections and Restock, and
   Restock is a screen the owner has not settled: `CLAUDE.md` says a shared rule is how a
   one-screen job leaks, so make it local or ask. This is local. Every rule below is gated on
   `:has(.lib-fit)`, and `.lib-fit` is written by `drawLibTree` and `drawLibShopify` and
   nowhere else, so none of it can reach another screen.
   `.panel` AND `.pbody` ARE SHARED CLASSES and are named here only inside that gate, which is
   what keeps them local. `min-height:0` on both is what lets a flex child be SHORTER than its
   content: without it the panel stands at its content height, exactly as `.folder[data-open]`
   did before Connections was fixed. */
.folder[data-open]:has(.lib-fit){flex:1 1 auto}
.folder[data-open]:has(.lib-fit) > .grid{min-height:0; grid-template-rows:minmax(0,1fr); align-content:stretch}
.folder[data-open]:has(.lib-fit) .panel{min-height:0}
.folder[data-open]:has(.lib-fit) .pbody{flex:1 1 auto; min-height:0}
/* No bar is named: `*{scrollbar-width:none}` and `*::-webkit-scrollbar{display:none}` at the
   foot of this file already hide every one of them app-wide. */
.lib-fit{flex:1 1 auto; min-height:0; overflow-y:auto}

/* THE TREE IS FOUR ROWS TODAY AND IS STILL BUILT AS A LIST, because steps 2 to 4 hang her own
   Drive and iCloud folders under three of them. Shopify will never gain children: the Shopify
   API has no folders. */
.lib-tree{display:flex; flex-direction:column; gap:10px}
/* ONE SIZING RULE FOR EVERY STATE. The owner's standing rule is that nothing shifts: no :hover,
   :focus or [aria-pressed] rule below touches a font, a padding, a border width or a margin, so
   the box measures the same at rest, under the pointer and when it is the open source. */
.lib-src{
  display:flex; flex-direction:column; align-items:flex-start; gap:4px;
  min-height:60px; padding:14px 18px; width:100%;
  border:2px solid var(--rule); border-radius:10px; background:var(--surface);
  text-align:left; cursor:pointer; color:var(--ink);
}
.lib-src .ln{font-size:var(--fs-base); font-weight:600; color:var(--ink)}
.lib-src .ls{font-size:var(--fs-sm); color:var(--ink-2)}
.lib-src.dim .ls{color:var(--ink-3)}
.lib-src[aria-pressed="true"]{background:var(--sticky); border-color:var(--stickyedge)}
/* NEVER A FOCUS RING (`CLAUDE.md`). Focus is a background and an inset shadow, which a keyboard
   can see and which changes no size. */
.lib-src:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}

.lib-head{display:flex; flex-direction:column; gap:6px}
.lib-count{font-size:var(--fs-lg); font-weight:700; color:var(--ink)}
.lib-sub{font-size:var(--fs-sm); color:var(--ink-2)}

/* AUTO-FILL AND NOT A COLUMN COUNT, so the grid holds its tile size when the window narrows
   instead of squeezing 1180 pictures into stamps. */
.lib-pics{display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:14px}
.lib-tile{margin:0; display:flex; flex-direction:column; gap:6px; min-width:0}
/* A SQUARE WELL, AND THE PICTURE FILLS IT. Shopify's files run from 1062x1298 to 1920x640, so
   a grid that followed each picture's own shape would be a staircase. */
.lib-shot{
  aspect-ratio:1; display:grid; place-items:center; overflow:hidden;
  border:2px solid var(--rule); border-radius:10px; background:var(--surface-2);
}
.lib-shot img{display:block; width:100%; height:100%; object-fit:cover}
/* A VIDEO HAS NO THUMBNAIL HERE and that is the connector's shape, not a gap: list_files asks
   Video for its `sources`, and a poster frame is not among them. */
.lib-film{font-size:var(--fs-xs); font-weight:700; color:var(--ink-2); letter-spacing:.04em}
/* TWO LINES AND THEN AN ELLIPSIS, with the whole name in the tooltip. A filename is not prose
   and 1180 of them at full length would set the row heights fighting each other. */
.lib-name{
  font-size:var(--fs-xs); color:var(--ink); line-height:1.3; word-break:break-word;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

.phead{display:flex; align-items:flex-start; gap:14px; justify-content:space-between}
.phead h3{font-size:var(--fs-lg); font-weight:700; letter-spacing:-.005em}
/* ON THE FOLDER, IN ITS UPPER RIGHT CORNER, 2026-10-19, at the owner's word: "Lock the updated
   just now text right on the manila folder itself, no card, in the upper right corner". It was
   a flex item in `.phead`, so it rode whichever panel happened to be the front sheet and moved
   down the page with it; it is now out of flow against main (grep `position:relative` in the
   main rule, which carries the measurements). `--card-top` is the manila's top edge and
   `--gutter` is the page's own side margin, which is also the inset of every paper on the
   folder -- so the stamp lines up with the sheets under it instead of with the folder's bare
   edge. Only one is ever drawn: a pile shows its front sheet alone, and the one bare panel
   (Sales overview) is the only thing on its screen.
   THE INK IS --ink-flag AND NOT --ink-3, which is a correction and not a preference. --manila
   is not re-stated for the dark theme -- a folder does not follow the room -- so an ink that
   IS re-stated turns pale grey on tan when the room goes dark: --ink-3 reads 5.96:1 here in the
   light and about 1.6:1 in the dark, which is unreadable. --ink-flag is the folder's own ink,
   fixed for the same reason, and it reads 11.3:1 on the manila: AAA in either room. */
.note{
  position:absolute; top:calc(var(--card-top) + 18px); right:var(--gutter);
  font-size:var(--fs-xs); color:var(--ink-flag); font-weight:600; white-space:nowrap;
}
/* INBOARD OF THE CALENDAR ON EVERY DATED SCREEN, 2026-11-14. Every manila has a tab row now, so
   the stamp lands level with the first sheets' top-right corner, where a panel's calendar shows on
   hover (measured on Traffic, Orders, Advertising and Stock). 52px is the calendar's 44px plus its
   2px inset and 6px of air, so the two never meet. */
:root[data-dates="1"] #folder .note{right:calc(var(--gutter) + 52px)}
/* .src is now only ever a subheading inside a panel body ("Orders by
   destination", "How they paid"). It used to double as the provenance stamp in
   the panel head, which is why it was set in small uppercase mono — the least
   legible combination in the app, spent on the least useful line on the screen.
   The provenance note that took it over went on 2026-10-28; this is plain reading text. */
.src{
  font-size:var(--fs-sm); font-weight:700; color:var(--ink-2);
  margin-top:3px; margin-bottom:2px;
}

.pbody{display:flex; flex-direction:column; gap:16px}
/* TWO RULES DELETED HERE, 2026-10-22. They were `.way{display:flex; flex-direction:column;
   gap:8px}` and `.wayhead{font-size:var(--fs-lg); font-weight:700; color:var(--ink)}`, the
   layout and the heading of a block inside `waysPanel()`. The owner had that panel deleted
   ("remove ... the whole row of menu buttons (the channels, ...)"), nothing in the app draws
   either class now, and `harness/css-size-rules.js` reported both as pairs it could not reach
   -- which is the signal this stylesheet is meant to act on, not to pin. The way in is an Open
   button in the pie legend from that day on: grep `.pie-legend .legopen` below. The legends
   came off every pie on 2026-10-27 and went back on the same day, at the owner's word both
   times, and the Open button went with them each way. */

/* A panel's way through to the screen that finishes its work. Layout only: the
   button is a `.btn primary`, and `.btn.primary` below already carries the
   48px/19px it needs. A `.pacts .btn{...}` size rule was written here first and
   was dead — same specificity as `.btn.primary` (0,2,0) and earlier in the
   file, so it lost on source order and the sizes it "set" were never the ones
   on screen. `.alert-acts .btn` is not the same case: that row holds a plain
   `.btn` (Dismiss) which nothing else raises. */
.pacts{display:flex; gap:10px; flex-wrap:wrap}

/* stat tiles */
.stats{display:flex; flex-wrap:wrap; gap:2px; background:var(--rule); border:2px solid var(--rule); border-radius:14px; overflow:hidden}
.stat{flex:1 1 210px; background:var(--surface); padding:18px 20px; display:flex; flex-direction:column; gap:4px; min-width:0}
.stat .k{font-size:var(--fs-sm); font-weight:600; color:var(--ink-3)}
/* A QUALIFIER INSIDE A TILE'S HEADER, 2026-10-28, for the Finances expenses tile ("Add a
   faint grey (incl. GST) next to the expenses header"). It inherits the header's size and
   colour and drops only the weight: `--ink-3` measures 7.7:1 on the light paper and 7.9:1
   on the dark one, and fading it with opacity to .72 would take the light theme to 3.87:1,
   under the 4.5:1 floor. So the fade is 600 -> 400 and the contrast stays at AAA.
   NO SIZE IN HERE. One rule covers every state of this span because it has no states: it
   takes no hover, no focus and no click. */
.stat .k .q{font-weight:400}

.stat .v{
  font-family:var(--display); font-variation-settings:"opsz" 60; font-weight:600;
  font-size:var(--fs-stat); line-height:1.08; letter-spacing:-.02em; font-variant-numeric:tabular-nums;
}
.stat .m{font-size:var(--fs-xs); color:var(--ink-3); font-variant-numeric:tabular-nums}

/* AN APPROXIMATE FIGURE, 2026-11-04, at the owner's word: "Mark with a more red font and a
   little superscript cross or 1, show brief tooltip explanation on hover". Drawn by
   `statTile`'s fourth argument in `renderer/app.js` and by nothing else.
   `--crit` IS REUSED AND NO TOKEN IS ADDED: it is this app's red ink and already has a value
   for each room. MEASURED on `--surface`, which is what `.panel` draws and `.stat` sits on
   with no background of its own: 7.59:1 light (#8A2A1D on #F3F0E9) and 7.36:1 dark (#F0958A on
   #1A2022). Both clear AAA 7:1.
   THE COLOUR IS NOT THE ONLY SIGNAL, which is why the dagger is drawn as well as the red: a
   reader who cannot separate the two inks still has a glyph that is either there or not.
   `line-height:0` IS THE POINT OF THE SUP RULE. A superscript grows the line box it sits in,
   and these figures are a two-column grid of pairs -- a taller line on one of a pair would
   push its partner's baseline and the figure would move when the data changed. The size is
   stated once, in this one rule, and there is no hover rule to undo it: the hover changes
   nothing that is drawn, it only shows the title. 22px is the token, not a ratio of the 44px
   figure, so the glyph stays above the 16px floor whatever `--fs-stat` becomes. */
.stat .v.approx{color:var(--crit)}
.stat .v .approx-mark{
  font-size:var(--fs-lg); line-height:0; vertical-align:super;
  margin-left:.08em; font-weight:600; letter-spacing:0;
}

/* THE SETTLED LINE, 2026-10-22. Under the five figures: how much of the gross
   has been paid out, in three parts that add back to it.
   FIXED BY CONSTRUCTION. The three columns are equal fractions of the row and
   the header column is a fixed width, so a figure growing a digit cannot move
   its neighbour. Tabular numerals keep each column's digits in the same place
   between redraws. All three parts are always drawn, zero included, so the
   strip is the same height on every range -- the copyright notice has only a
   30px strip at the foot of the window to live in (CLAUDE.md).
   No hover and no focus here: the line takes no press. */
.settled{
  display:grid; grid-template-columns:auto repeat(3, minmax(0, 1fr));
  align-items:baseline; gap:4px 24px;
  margin-top:14px; padding-top:14px; border-top:1px solid var(--rule);
}
.settled-h{font-size:var(--fs-base); font-weight:700; color:var(--ink-2); white-space:nowrap}
.settled-i{min-width:0}
.settled-l{font-size:var(--fs-base); font-weight:600; color:var(--ink-3)}
.settled-v{font-size:var(--fs-base); font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums}

/* bar list */
.bars{display:flex; flex-direction:column; gap:16px}
.barrow{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 14px; align-items:baseline}
.barrow .lbl{font-size:var(--fs-sm); color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.barrow .val{font-size:var(--fs-sm); font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink)}
.track{grid-column:1/-1; height:14px; background:var(--bar-track); border-radius:7px; overflow:hidden}
.fill{height:100%; border-radius:7px; background:var(--c1); min-width:5px}


/* ------- the breakdown switch on the Sales channel screens, 2026-10-22 ------- */
/* ONE CELL, TWO LISTS. Both lists are drawn and both are put in the same grid cell, so this
   box is already as tall as the taller of them before any button is pressed and switching
   cannot change its height. That is the "nothing shifts" rule kept without arithmetic: the
   other way was to measure a `.barrow` and reserve a multiple of it, which goes stale the
   first time that row changes shape.
   `visibility:hidden` AND NOT `display:none`, because the hidden list has to keep its space.
   It also takes the hidden list out of the tab order, so a keyboard cannot land on a bar
   nobody can see. */
.swap{display:grid}
.swap > *{grid-area:1/1}
.swap > [aria-hidden="true"]{visibility:hidden}

/* The header word and its two values on one line: "Show:" is what both buttons would repeat,
   so it is said once (CLAUDE.md's category rule) and each button keeps only its own word.
   THE SIZE IS IN THIS ONE RULE AND IS RESTATED NOWHERE. No :hover, :focus-visible or
   [aria-pressed] rule below touches min-height, padding or font-size -- a stronger rest rule
   would win at rest and the box would jump the moment a pointer crossed it. The three state
   rules change colour and background and nothing else.
   FOCUS IS THE PAPER DARKENING UNDER THE WORD, never a ring: no `outline` here and nothing
   drawn to stand in for one. */
.swap-pick{display:flex; align-items:center; gap:8px}
.swap-pick .src{margin:0}
.swap-pick button{
  border:0; border-radius:10px; background:transparent; cursor:pointer;
  min-height:44px; padding:0 16px; box-sizing:border-box;
  font-family:var(--hand); font-size:var(--fs-lg); line-height:1; font-weight:400;
  color:var(--ink-2); transition:color .2s ease, background-color .2s ease;
}
.swap-pick button:hover{color:var(--ink)}
.swap-pick button:focus-visible{color:var(--ink); box-shadow:var(--foc-sh)}
.swap-pick button[aria-pressed="true"]{color:var(--ink); background:rgba(0,0,0,.08)}
@media (prefers-reduced-motion:reduce){ .swap-pick button{transition:none} }

/* rows */
.rows{display:flex; flex-direction:column}
/* MEASURED 2026-10-05: a row was 95px tall -- 30px of padding, a 2px rule, and 60px of two
   lines of text at line-height 1.55. Five panels build a `.rows` list (grep `el("div", "rows")`
   in renderer/app.js) and four of them were taller than the window, so this is the row height
   that decides Cash position, Waiting on you, Needs a hand and Running low.
   READ "NEEDS A HAND" AS HISTORY FROM 2026-10-19: the owner had that panel taken off Overview
   that day ("Remove needs a hand and to deal with everywhere"), so the measurement stands but
   three panels now rest on it, not four.
   THE FONT SIZES DO NOT MOVE. `.t` is --fs-base 19px and `.s` is --fs-xs 16px, which is the
   floor; both stay. What goes is 10px of padding and the slack in the line-height, 1.55 -> 1.35
   on two one-line labels, which takes a row from 95px to about 75px. */
.row{
  display:flex; gap:16px; align-items:baseline; justify-content:space-between;
  padding:10px 0; border-bottom:2px solid var(--rule);
}
.row:first-child{padding-top:0}
.row:last-child{border-bottom:0; padding-bottom:0}
.row .main{min-width:0; display:flex; flex-direction:column; gap:2px}
.row .t{font-size:var(--fs-base); line-height:1.35; font-weight:600; overflow:hidden; text-overflow:ellipsis}
.row .s{font-size:var(--fs-xs); line-height:1.35; color:var(--ink-3)}
.row .r{font-size:var(--fs-base); font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right}
.row .r small{display:block; font-size:var(--fs-xs); font-weight:600; color:var(--ink-3)}
/* THE RESULT ROW, 2026-10-27, at the owner's word on the profit and loss: "with the profit
   figure line smaller below". It is one step of weight between the two tiles over it and the
   working under it -- --fs-lg 22px against --fs-stat in a tile and --fs-base 19px in a row --
   and it keeps the row's own height and padding, so adding it moved nothing. The label is
   drawn at the same weight as the figure because "Profit" and "Loss" are the answer's name,
   not a heading over it. Size is declared here once; no state rule repeats it. */
/* `.row.sum` WAS DELETED HERE on 2026-10-28, not forgotten. It weighted the Profit/Loss line
   of the Finances left panel, and item 2 of that day took the line off the sheet ("remove
   everything but gross income ... and expenses from the left p&l panel"). Nothing else in
   `renderer/app.js` has ever carried the class, so the rule matched no element in the app and
   `harness/css-size-rules.js` reported it as a pair it could not reach. It is one line to
   write again if a sum line comes back. */
a.row{color:inherit; text-decoration:none; border-radius:8px}

/* THE CATALOGUE LIST, Inventory's left tile, 2026-10-22. 225 products is about 11,000px of
   rows and the tile has 531px for everything, so the list is the one thing on this screen
   that has to scroll inside its own box. No bar is named here: `*{scrollbar-width:none}` at
   the foot of this file already hides every one of them app-wide (`CLAUDE.md`, "No visible
   scrollbars"), so the rule is a ceiling and an overflow and nothing else.
   THE CEILING IS A calc AND NOT A FRACTION OF THE WINDOW. Every sheet in this app has to end
   above the copyright strip at the foot of the window (grep `SIZED TO THE FOLDER`), and the
   strip's top is 27px up from the foot wherever the foot is -- an offset, which no `vh`
   fraction can follow. MEASURED in this window, not guessed: the sheet starts at y342, the
   copyright strip starts at y873, and the panel above and below this box measures 202px --
   44px of panel padding, 55 for the control row, 22 for the count line, 48 of gaps between
   its four children and 33 for the heading. 342 + 202 + 27 is the 571px the box can never
   have. 579 was tried and left ONE px of air, because the box measures 7px taller than the
   ceiling it is given -- the panel is a flex column and the last child takes up the rounding.
   589 cleared the strip by 11px AND STILL FAILED `harness/look.js`, which is the number that
   counts: that gate measures `main.scrollHeight - main.clientHeight` and the panel put 2px of
   scroll into the window, so the notice's own clearance was never the binding constraint. The
   folder's content edge is 26px of padding above the window foot and the sheet has to end
   there. 599 is the number, with 10px of air on the 2px that was over. A flat 430 was the
   first number here and it put the panel 971px tall, 413px past the window; a 346px ceiling
   under two-line rows still ended 19px past it, which is what sent the rows to one line.
   SIX ROWS, NOT FOUR. MEASURED at this ceiling: the box is 308px and a `.row` is 48px on one
   line and 73px on two, so one line shows six products where two lines showed four -- see
   `drawStockInventory` in renderer/app.js for what was on the second line and why none of it
   is worth two products. */
.cat-list{max-height:calc(100vh - 599px); overflow:auto}

/* The count line doubles as the column header, so it has a left end and a right end. The
   right end has to sit over the numbers, and `.row .r` is right-aligned against the panel's
   own padding, so both edges already line up and nothing here sets a width. */
.cat-head{display:flex; justify-content:space-between; gap:18px}

.pill{
  display:inline-block; font-size:var(--fs-xs); font-weight:700;
  padding:4px 12px; border-radius:999px; white-space:nowrap;
}
.pill.good{background:var(--good-bg); color:var(--good)}
.pill.warn{background:var(--warn-bg); color:var(--warn)}
.pill.crit{background:var(--crit-bg); color:var(--crit)}
.pill.idle{background:var(--idle-bg); color:var(--idle)}

/* states */
.state{
  display:flex; flex-direction:column; gap:10px; padding:20px; border-radius:14px;
  background:var(--surface-2); border:2px solid var(--rule); font-size:var(--fs-sm); color:var(--ink-2);
}
.state .h{font-size:var(--fs-base); font-weight:700; color:var(--ink)}
.state .fix{color:var(--ink-2)}
.state.crit{background:var(--crit-bg); border-color:var(--crit)}
.state.crit .h{color:var(--crit)}
.state.warn{background:var(--warn-bg); border-color:var(--warn)}
.state.warn .h{color:var(--warn)}
.state code{font-family:var(--mono); font-size:var(--fs-xs); background:var(--sunk); padding:2px 7px; border-radius:5px; word-break:break-word}
.state ul{margin:0; padding-left:22px; display:flex; flex-direction:column; gap:5px}

.skel{display:flex; flex-direction:column; gap:12px}
.skel i{display:block; height:18px; border-radius:6px; background:var(--sunk); animation:pulse 1.6s ease-in-out infinite}
.skel i:nth-child(2){width:74%} .skel i:nth-child(3){width:52%}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
.empty{font-size:var(--fs-sm); color:var(--ink-3)}
.footnote{font-size:var(--fs-xs); color:var(--ink-3)}

/* TWO SHEETS, SIDE BY SIDE, 2026-10-20. It was written when `.grid` was `display:contents` and
   every sheet was a flex item in the folder's single column: there was no second grid column
   left to put anything beside anything else in, so this row was the whole of the second axis.
   `grid-column:1/-1` IS NEW, 2026-10-22. The pile went and `.grid` is a two-column grid again,
   so a pair left to itself would have been one grid cell wide -- two half-width halves in the
   left column. The row takes both columns and divides them itself, which keeps the halves the
   size they were measured at. The folder's own width is unchanged either way.
   The two panels keep the hand-laid tilt `.panel:nth-of-type` gives them: they are the first
   and second of their type inside this row, so they lean opposite ways, which is what two
   sheets dropped on a folder do. */
/* THE SALES PICKER SITS IN THE GRID, 2026-11-04, and it has its own small look because the two
   controls it could have borrowed are both wrong for it.
   IT WAS BUILT AS A `.groupnav` FIRST, AND THAT WAS A MISTAKE WORTH RECORDING. `.groupnav` is
   not a generic tab row: it is the paper flag, and the paper's colour comes from
   `button[data-g=...]`. A button with no `data-g` gets the flag's shade, point and drop-shadow
   with NO PAPER UNDER THEM, which on screen is a grey smudge beside each word -- and, because
   a flag says which one is chosen by its colour and lift, the chosen state became invisible.
   Three words, no selection, three smudges. The reuse looked proven because `basisSwitch()`
   does the same thing, but `basisSwitch()` HAS NO CALLER and has never been on screen: a look
   copied from code that never ran was never checked by anything.
   `.seg`, the period picker, is the app's other in-panel picker and says its choice with a
   hand-drawn mark. That mark is one SVG with one module-level `markShown` behind it, so a
   second one means generalising the period picker -- another screen's control -- for this.
   SO THIS IS LOCAL, AND IT IS THE PLAINEST THING THAT STILL ANSWERS THE OWNER. He said "a
   Total/Online/In-person picker we'll style later", and later is still his: what is here is
   only what a control cannot do without. The current state is on screen (his UI rule), it is
   said TWICE -- a solid rule under the word and the word at full ink -- so it never rests on
   colour alone, and the box is one size in every state, so nothing moves when you cross it.
   NOTHING IS RESTATED PER STATE. Height, padding and border width are set once on the button
   and only colour changes after that, which is the house rule against a hover that jumps.
   Focus is a background wash, never a ring.
   IT SPANS BOTH COLUMNS because it is not a sheet: it is the one control that says which set of
   orders every sheet below it is about, so it cannot sit in a column beside one of them. */
.grid > .viewpick{grid-column:1/-1}
.viewpick{display:flex; gap:28px; align-items:center; justify-content:center; margin:0 0 2px}
.viewpick button{
  /* 44px is the owner's floor for a target and 20px his floor for a word, both with room over.
     The 3px rule is carried transparent when the word is not chosen, so choosing one moves
     nothing: the only thing that changes is what colour it is. */
  font:inherit; font-size:20px; line-height:1;
  height:44px; padding:0 14px; box-sizing:border-box;
  background:transparent; border:0; border-bottom:3px solid transparent; border-radius:0;
  color:var(--ink-2); cursor:pointer;
  transition:color .18s ease, border-color .18s ease, background-color .18s ease;
}
/* --ink-2 is 7.72:1 on the paper and --ink 11.02:1, so an unchosen word is AAA too: the
   strength difference says "this one", it is never what makes the others readable. */
.viewpick button:hover{color:var(--ink)}
.viewpick button:focus-visible{background:rgba(62,32,18,.08)}
.viewpick button[aria-selected="true"]{color:var(--ink); border-bottom-color:var(--ink)}

.sheet-pair{grid-column:1/-1; display:flex; align-items:stretch; gap:20px; min-height:0}
.sheet-pair > .panel{flex:1 1 0; min-width:0}

/* THE PIE, 2026-10-20, AND THE LEGEND BACK WITH THE MONEY ON IT, 2026-10-27. Every size is
   declared ONCE, in the rest rule that covers every state, so the box under the pointer is the
   box at rest. Hover, focus and being the chosen row change opacity, colour and visibility, and
   never a size -- grep `.pie-legend button:hover` and `.pie-foot.one` and check nothing beside
   those three is in them.
   SIZED TO THE FOLDER, NOT TO THE PIE. The sheet has to end above the copyright strip at the
   foot of the window (grep `p.copyright`): 230 for the circle, 12 between, and the box below it
   takes what its own rows need. Measured, not chosen -- `harness/look.js` had the footnote 5px
   into the notice and the screen 42px past the window at 260. */
.pie{display:flex; flex-direction:column; gap:12px}
.pie svg{display:block; width:100%; max-width:230px; height:auto; margin:0 auto}
.pie-wedge{transition:opacity .12s ease-out; cursor:pointer}
.pie.dim .pie-wedge{opacity:.26}
.pie.dim .pie-wedge.on{opacity:1}
/* A WEDGE TAKES NO FOCUS, SO IT DRAWS NO RING AND NEEDS NO RULE TAKING ONE OFF. The legend row
   is the focusable thing, and it says in words every figure the wedge carries -- which is why
   the circle is `aria-hidden` and why opacity is never the only signal here. */

/* ONE BOX UNDER THE CIRCLE, 2026-10-27, at the owner's word: the rows, and under them one strip
   that fills with the chosen row's breakdown. The strip keeps its height empty, so choosing a
   slice moves nothing below it. */
.pie-foot{display:flex; flex-direction:column; gap:8px}

/* TWO COLUMNS. Four ways in one column cost 210px of a sheet with about 580px to spend, and
   the pie came off worst. 48px tall is the floor and is kept -- it is the hit target. */
.pie-legend{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.pie-legend button{
  display:flex; align-items:center; gap:14px; width:100%; min-height:48px; padding:0 14px;
  border:2px solid transparent; border-radius:12px; background:none; cursor:pointer; text-align:left;
  font-family:var(--body); font-size:var(--fs-sm); font-weight:600; color:var(--ink);
}
.pie-legend .sw{flex:0 0 auto; width:26px; height:26px; margin:0}
.pie-legend .nm{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
/* THE MONEY, NOT THE SHARE. `.sh` held `pct(share)` here until 2026-10-27; the share moved to
   the breakdown and the amount took its place, at the owner's word ("a basic legend on values").
   Tabular figures, so one row's amount is the same width as the next one's. */
.pie-legend .val{flex:0 0 auto; color:var(--ink-2); font-variant-numeric:tabular-nums}

/* ONLY THE CHOSEN ROW IS LEFT SHOWING, 2026-10-27, at the owner's word ("hide the other legend
   items"). `visibility`, NEVER `display`: a hidden row keeps its ground, so the chosen row stays
   exactly where the eye found it and the strip under the rows does not step up to meet it. The
   chosen row takes the paper a hovered row takes and changes no size, so the row the pointer is
   on and the row the click held look the same. */
.pie-foot.one .legwalk{visibility:hidden}
.pie-foot.one .legwalk.on{visibility:visible}
.pie-foot.one .legwalk.on > button:first-child{background:var(--sunk); border-color:var(--rule-2)}

/* THE BREAKDOWN, 2026-10-27. Two single lines at a fixed height, empty at rest: the share and
   the orders behind it on the first, the names folded into the slice on the second. 44px is the
   two lines at 16px and their 2px gap -- the text floor is 16px (CLAUDE.md), so this strip
   cannot be made shorter by setting it smaller. */
.pie-detail{
  height:44px; overflow:hidden; padding:0 16px;
  display:flex; flex-direction:column; justify-content:center; gap:2px;
}
.pie-detail > *{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.3}
.pie-detail .d1{font-size:var(--fs-xs); font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums}
.pie-detail .d2{font-size:var(--fs-xs); color:var(--ink-3)}

/* ONE COLUMN WHEN A ROW CARRIES ITS OWN BUTTON, 2026-10-22. Online's legend is the only way
   into the Shopify, Faire and Etsy screens since "The channels" went, so each of its rows holds
   the breakdown button and an Open button side by side. Two controls in a half-width cell left
   the channel's name about 60px, so the grid drops to ONE column for this case only -- three
   rows at 48px cost 160px against 104px for two columns of three, and the sheet has that to
   spend because the panel those buttons came from is gone. Overview's legend is untouched: it
   passes no `walk` and stays two columns of four ways.
   `.legwalk` IS EVERY ROW SINCE 2026-10-27, not only a row with an Open button: a row has to be
   one piece for hiding it to take its Open button with it, and for the hidden row to hold its
   ground. In a two-column legend the row is the grid cell and holds one button.
   EVERY SIZE IS DECLARED ONCE, in the rest rule that covers every state. The Open button is
   sized here and not by `.btn`, because `.pie-legend button` outranks `.btn` on specificity and
   would otherwise leave it looking like a legend row. Hover changes colour only; focus changes
   the background, never an outline and never a ring standing in for one. */
.pie-legend.walk{grid-template-columns:1fr}
.legwalk{display:flex; align-items:center; gap:8px; min-width:0}
.legwalk > button:first-child{flex:1 1 auto; min-width:0}
.pie-legend .legopen{
  /* `width:auto` UNDOES `.pie-legend button{width:100%}` FOR THIS BUTTON, 2026-10-27. That
     100% is the width of the flex row, and `flex:0 0 auto` forbids shrinking, so the Open
     button took the whole row, the name span was squeezed to 0px and the amount sat under
     the Open button. Every row carrying an Open button drew as a bare swatch and the word
     "Open". The width belongs in this one rest rule with the other sizes. */
  flex:0 0 auto; width:auto; display:inline-flex; align-items:center; justify-content:center; gap:0;
  min-height:48px; min-width:92px; padding:0 18px;
  border:2px solid var(--rule-2); border-radius:12px; background:var(--surface);
  font-family:var(--body); font-size:var(--fs-sm); font-weight:600; color:var(--ink);
  cursor:pointer;
}
.pie-legend .legopen:focus-visible{box-shadow:var(--foc-sh)}

/* chart */
.chartbox{position:relative; width:100%}
.chartbox svg{display:block; width:100%; height:auto; overflow:visible}
.tip{
  position:absolute; pointer-events:none; z-index:5; background:var(--surface);
  border:2px solid var(--rule-2); border-radius:10px; box-shadow:var(--shadow);
  padding:10px 14px; font-size:var(--fs-xs); color:var(--ink); white-space:nowrap;
  transform:translate(-50%,-100%);
}
.tip .tk{color:var(--ink-3); font-weight:600; display:block}
.tip .tv{font-weight:700; font-variant-numeric:tabular-nums; font-size:var(--fs-base)}
.legend{display:flex; flex-wrap:wrap; gap:8px 20px; font-size:var(--fs-xs); color:var(--ink-2)}
.legend span{display:inline-flex; align-items:center; gap:8px}
.legend i{width:14px; height:14px; border-radius:4px; display:inline-block}

/* Setup recipes in Connections */
.steps{margin:0 0 18px;padding-left:28px;font-size:var(--fs-base);line-height:1.6;color:var(--ink-2)}
.steps li{margin:0 0 10px}
.snip{margin:0 0 18px;padding:18px 20px;background:var(--sunk);border:2px solid var(--rule);
  border-radius:10px;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:var(--fs-sm);line-height:1.55;color:var(--ink);white-space:pre}
.snip:focus-visible{background:color-mix(in srgb, var(--accent-ink) 14%, var(--surface))}

/* ============================ Connections ============================ */
/* A list of big cards grouped by kind, and one detail view per connection.
   Status is always glyph + words; colour only repeats what the words say. */
.conn-view{grid-column:1/-1; display:flex; flex-direction:column; gap:28px; min-width:0}
.conn-card{
  background:var(--surface); border:2px solid var(--rule); border-radius:16px;
  /* Padding was 24px and the gap 12px. 16px 18px and 8px took 40px off every card, which
     is what closed Money and Subscriptions, the two single-card groups that were 9px over.
     Measured with the old values back: those two go over again, and so do the other three.
     The text sizes are untouched -- `h3` is still --fs-lg and `.checked` still --fs-xs. */
  padding:16px 18px; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:8px;
}
.conn-card h3{font-size:var(--fs-lg); font-weight:700; color:var(--ink)}
.conn-card .powers, .conn-top .powers{margin:0; font-size:var(--fs-base); color:var(--ink-2)}
.conn-card .checked{margin:0; font-size:var(--fs-xs); color:var(--ink-2)}
.conn-card.placeholder{border-style:dashed; border-color:var(--rule-2)}

.conn-detail{max-width:860px}

/* THE DETAIL PANEL IS THE ONE BOUNDED SCROLLER ON CONNECTIONS, 2026-10-29, at the owner's word
   "do the detail panel overflow". It is the third of the three answers LOOK-WALK.md gives a
   screen that runs over -- take content off, cap the screen, or bound ONE panel and let that
   panel scroll -- and the only one of the three that settles nothing about what the panel says.
   MEASURED at 1340x900 before: `main` over by 1642px with Etsy open, 1613 with Shopify, 1045
   with Faire, and the VIEW scrolled, which rule (1) forbids on every screen with no exception.
   After: 0 on all three. The residue is inside the panel's own box, 542px of panel holding
   2184px of sections, and the bottom was scrolled to and read back rather than assumed.
   NO BAR IS NAMED HERE: `*{scrollbar-width:none}` and `*::-webkit-scrollbar{display:none}` at
   the foot of this file already hide every one.
   SELF-ADAPTING, WHICH IS WHY IT IS NOT A `max-height` CALC like `.cat-list` (app.css:2267) or
   `.ask-log` (app.css:1177). Those two subtract a hand-counted constant from the viewport, and
   such a constant goes stale SILENTLY the day the chrome above it changes height -- nothing
   fails, the panel is just the wrong size. This takes the height off the flex chain instead, so
   it read the same 0 at every height this window allows: 542px of panel at 900, 538 at 896,
   which is the floor the window clamps to, and 601 at 959 maximised.
   `flex:1 1 auto` is the whole of the first line. `.folder[data-open]` is deliberately
   `1 0 auto`, grow but never shrink (app.css:1952), and that is precisely what let the folder
   stand at its content height and push `main` over. Letting it shrink is what that rule's own
   comment warns would clip the papers inside it -- so the panel is given its own scroll in the
   same pass, and neither half of this is sound without the other.
   SCOPED ON `.conn-fit`, AND THAT CLASS IS NOT DECORATION. `.conn-detail` is also the Restock
   screen's class -- `drawConnectionDetail` and `drawRestock` build their views with the same
   string -- and Restock is a screen the owner has not settled, so a bare `.conn-detail` rule
   here would reach it. `conn-fit` is added at renderer/app.js:4508 and nowhere else. The scope
   was PROVED by measurement and not by reading the selector: with these rules live, the open
   folder's `flex-shrink` still reads 0 on Sales channels and on Stock. `harness/conn-detail-fit.js`
   also drives Restock for real and reads back that its view does NOT carry `conn-fit`.
   GATED by `harness/conn-detail-fit.js`, 27/27, and the same 27 on a warm re-run. MUTANT
   MEASURED: taking these three rules out of this file and leaving the marker class in place
   scores 18/27 -- nine rows, three on each connector, and they are `mainOver`,
   `panelReallyBounded` and `clearsCopyright`.
   TWO ROWS OF THAT GATE DO NOT DISCRIMINATE and the mutant is how that was learnt, not a guess:
   `bottomReachable` and `barHidden` stay GREEN with the fix removed, because an unbounded panel
   is full height, so its bottom is trivially reachable and no bar is drawn either way. They are
   necessary, not sufficient, and a green on them alone would mean nothing.
   ONE FIGURE IN THIS COMMENT WAS NOT REPRODUCED. The `before` line above says 1642px with Etsy
   open, read by the first probe; the mutant, which is the shipped file with these rules removed,
   reads 1715px there. Shopify at 1613 and Faire at 1045 reproduced exactly. The 73px is
   UNEXPLAINED and was not chased: it does not move the verdict, and 1715 is the figure to trust
   because it came off this file. */
.folder[data-open]:has(.conn-fit){flex:1 1 auto}
.folder[data-open]:has(.conn-fit) > .grid{min-height:0; grid-template-rows:minmax(0,1fr); align-content:stretch}
.conn-fit{min-height:0; overflow-y:auto}
.conn-section{
  background:var(--surface); border:2px solid var(--rule); border-radius:16px;
  padding:24px; display:flex; flex-direction:column; align-items:flex-start; gap:14px; min-width:0;
}
.conn-section > h3{font-size:var(--fs-lg); font-weight:700; color:var(--ink)}
.conn-section p{margin:0; color:var(--ink)}
/* The digest's last-run line is free prose from Claude, so it has no length a layout can
   count on. No scrolling (item 73) means whatever does not fit is clipped with no way to reach
   it, so the bound is here rather than on the text. Three lines: the measured line box is
   29.45px (--fs-base 19px on 1.55 -- NOT the 16px --fs-xs that `.conn-card .checked` sets, a
   routine sheet is a .conn-section and never a .conn-card), so three lines is 88px and takes
   the digest sheet's 66px of overflow off with 23px to spare, where four lines leaves 118px
   and the sheet still 7px over.

   THE CLAMP IS ON THE PARAGRAPH AND THE WRAPPER IS THE FLEX ITEM, and that nesting is the
   rule, not tidiness. `.conn-section` is a column flex container. Clamped directly as a flex
   item the paragraph was squashed instead of clamped, because `overflow:hidden` removes a flex
   item's automatic minimum size: 55px on the digest, and 0px on `Keep Faire stock in step`,
   whose single line vanished entirely. look.js then read main as fitting and scored 80/80,
   because a box-reading fit check passes for anything the parent has already squashed -- the
   squash was the defect and the gate was blind to exactly it. A `flex:0 0 auto` on the
   paragraph also holds it (measured), but it holds it by one declaration that a later edit can
   lift, over a gate that will not notice. Nesting takes the failure mode away instead: the
   wrapper has no `overflow`, so it keeps its automatic minimum size and sizes to the clamped
   paragraph, and the paragraph is not a flex item at all.

   `display:-webkit-box` IS LOAD-BEARING and Chromium does not report it. Computed style reads
   `flow-root` here, with a `block` parent and nothing blockified -- measured 2026-10-10, so
   this is how Chromium reports the value and not an effect of the flex context. The clamp
   still applies, and the 88px is measured, so do not chase that computed value as a fault.
   `-webkit-line-clamp` on its own, with the `display` removed, clamps nothing whatever
   (177px, unbounded), so the line is not redundant with the clamp. The `flow-root` reading
   collided with the sentinel `harness/css-size-rules.js` probed `display` with, and that
   harness now probes with `list-item`; its header records why.

   The whole sentence stays in the DOM and in the accessibility tree, so a screen reader reads
   all of it, and the same prose is delivered in full to the alerts queue
   (routines/daily-digest.js:216). Scored by look.js's sheet-overflow row. */
.conn-section .last-run p{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
}
.conn-top > h2{font-family:var(--display); font-weight:600; font-size:var(--fs-h2); line-height:1.2; color:var(--ink)}
.conn-section .steps{margin:0; align-self:stretch; color:var(--ink)}
/* The vendor link sits between a field's help text and its input, where 44px of
   bare underline would read as part of the paragraph above it. A box makes it a
   thing to press; align-self keeps it from stretching the full column width,
   which would read as a banner rather than a link. */
.field-link{align-self:flex-start; padding:10px 16px; margin:2px 0 2px;
  border:2px solid var(--rule-2); border-radius:10px; font-size:var(--fs-base);
  display:inline-flex; align-items:center; text-decoration-thickness:2px}
.field-link:hover{box-shadow:var(--hov-sh)}

.field{display:flex; flex-direction:column; gap:6px; min-width:0}
.field-head{display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 14px}
.field label{font-size:var(--fs-base); font-weight:700; color:var(--ink)}
.field .saved{font-size:var(--fs-xs); font-weight:700; color:var(--ink); border:2px solid var(--good);
  background:var(--good-bg); border-radius:999px; padding:2px 12px}
.field .saved .glyph{color:var(--good)}
.help, .field .help{margin:0; font-size:var(--fs-xs); line-height:1.5; color:var(--ink-2)}
.field-row{display:flex; gap:10px; flex-wrap:wrap; align-items:stretch}
.field input{
  flex:1 1 260px; min-width:0; width:100%;
  border:2px solid var(--rule-2); background:var(--surface); color:var(--ink);
  border-radius:10px; min-height:48px; padding:10px 14px;
  font-family:var(--mono); font-size:var(--fs-base);
}
.field input::placeholder{color:var(--ink-2); opacity:1; font-family:var(--body)}
.field input:focus-visible{border-color:var(--accent-ink); background:color-mix(in srgb, var(--accent-ink) 12%, var(--surface))}
/* Layout only, and deliberately: `.conn-section .btn` below carries the 48px and
   the 19px for every button in a connection card, this row's Show included, and
   it is the same specificity (0,2,0) later in the file — so a `min-height` or
   `font-size` written here loses on source order and supplies nothing. That is
   the `.pacts .btn` case again (see the note above `.pacts`), measured this time
   by `harness/css-size-rules.js`: nine visible buttons, none of them taking
   either value from here. `min-width` and `justify-content` stay, because
   nothing else sets them. */
.field-row .btn{min-width:84px; justify-content:center}

.btn.primary{
  background:var(--accent-ink); color:var(--surface); border-color:var(--accent-ink);
  font-size:var(--fs-base); font-weight:700; min-height:48px; padding:0 24px;
}
.conn-section .btn{font-size:var(--fs-base); min-height:48px}

.status-line{margin:0; font-size:var(--fs-base); font-weight:700; color:var(--ink); min-height:1.55em}
.status-line[data-tone="crit"]{color:var(--crit)}
.status-line[data-tone="good"]{color:var(--good)}

.switch-row{display:flex; align-items:flex-start; gap:18px; align-self:stretch}
.switch{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:12px;
  min-height:48px; min-width:124px; padding:0 16px 0 10px;
  border:2px solid var(--rule-2); border-radius:999px; background:var(--surface);
  color:var(--ink); font-size:var(--fs-base); font-weight:700;
}
.switch .track{position:relative; width:44px; height:26px; border-radius:999px;
  background:var(--idle-bg); border:2px solid var(--idle); flex:0 0 auto}
.switch .knob{position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:var(--idle)}
.switch[aria-checked="true"]{border-color:var(--good); background:var(--good-bg); color:var(--good)}
.switch[aria-checked="true"] .track{border-color:var(--good); background:var(--surface)}
.switch[aria-checked="true"] .knob{left:auto; right:3px; background:var(--good)}
.switch:focus-visible .track{background:color-mix(in srgb, var(--accent-ink) 22%, var(--surface))}
.switch[disabled]{opacity:.55; cursor:default}
.switch-text{display:flex; flex-direction:column; gap:4px; padding-top:9px; min-width:0}
.switch-label{font-size:var(--fs-base); font-weight:700; color:var(--ink)}
@media (max-width:560px){ .switch-row{flex-direction:column; gap:8px} .switch-text{padding-top:0} }

/* ============================ Restock levels ============================ */
.rs-fields{display:flex; flex-wrap:wrap; gap:18px 22px; align-self:stretch; align-items:flex-end}
.rs-fields .field{flex:1 1 280px}
.rs-fields .field.narrow{flex:0 1 180px}
.rs-fields .field input{flex:0 0 auto}
.rs-fields .field.narrow input{font-family:var(--body); font-size:var(--fs-lg)}
.rs-list{list-style:none; margin:0; padding:0; align-self:stretch; display:flex; flex-direction:column}
.rs-row{display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; padding:18px 0; border-top:2px solid var(--rule)}
.rs-row:first-child{border-top:0; padding-top:4px}
.rs-main{flex:1 1 260px; min-width:0; display:flex; flex-direction:column; gap:4px}
.rs-sku{font-family:var(--mono); font-size:var(--fs-lg); font-weight:700; color:var(--ink); overflow-wrap:anywhere}
.rs-shop{font-size:var(--fs-sm); color:var(--ink-2)}
.rs-shop.warn{color:var(--warn); font-weight:700}
.rs-level{flex:0 0 auto; display:flex; flex-direction:column; align-items:center; min-width:96px}
.rs-level .n{font-size:var(--fs-stat); font-weight:700; line-height:1.1; color:var(--ink); font-variant-numeric:tabular-nums}
.rs-level .u{font-size:var(--fs-xs); color:var(--ink-2)}
.rs-btns{flex:0 0 auto; display:flex; flex-wrap:wrap; align-items:center; gap:12px}
.rs-btns .btn{min-height:48px; min-width:104px; justify-content:center; font-size:var(--fs-base)}
.rs-ask{margin:0; font-size:var(--fs-base); font-weight:700; color:var(--ink); flex-basis:100%}
.btn.danger{background:var(--crit); color:var(--surface); border-color:var(--crit); font-weight:700}
@media (max-width:560px){ .rs-level{align-items:flex-start} .rs-btns{flex-basis:100%} }

/* ----------------- the look: a desk, and the things lying on it -----------------
   app.js sets <html data-surface> in renderNav(), the one function every screen change
   and the first draw both pass through. The photograph is on <body>, fixed and covering,
   so it fills the window edge to edge, under the title bar and the traffic lights.

   THE WINDOW IS THE VIEW. Nothing scrolls, anywhere. <body> is a flex column of a fixed
   height, the masthead takes what it needs, and `main` takes the rest and CLIPS. That is
   the owner's instruction, and it has a cost worth saying out loud: content that does not
   fit is hidden, not reachable. `harness/look.js` measures every screen for overflow, so
   the clipping is reported rather than discovered.

   NOTHING HERE IS A BOX. Paper is cut, not drawn: no border, no corner radius, a real cast
   shadow so it lifts off the surface, and a fraction of a degree of rotation, because
   nothing on a real desk is square to the edge. Every paper colour is a TOKEN, never a
   literal. That began as a dark-mode rule and outlived it: one word changed at :root still
   re-papers the whole console, and a hard-coded cream would not move.

   Text never sits straight on a photograph -- the four surfaces measure mid-grey, and no
   ink clears 7:1 on them. So every text-bearing thing gets paper under it.

   EVERY PHOTOGRAPH RULE USED TO BE WRITTEN TWICE, once for data-theme="light" and once for a
   light Mac with no attribute set. Dark mode went on 2026-11-13 and they are each written once
   now. The mug's cream word measures 16.66:1 on its own coffee and never needed the gate. */

html{overflow:hidden}
body{height:100%; overflow:hidden; display:flex; flex-direction:column}
/* THE MAC'S CANVAS (main.js, CANVAS). The page is one 1376x1032 box, centred, and the window zooms
   it. On a 4:3 window the box is the window; on any other (full screen, the green button) the box
   is the largest 4:3 that fits and the cloth runs on past it. The cloth needs nothing for that:
   body's background is the root's, painted over the whole window and fixed to it, so outside and
   inside the box are one weave with no seam, and the lens (app.js, magAim) still reads it from
   the window. The transform makes the box, not the window, what the fixed parts sit in, so the
   books, the desk group and the copyright notice all stay on the canvas. Popovers live in the top
   layer and are placed from the window, as before. Only the two Mac shells set `canvas`. */
html.canvas{display:grid; place-items:center}
html.canvas body{width:1376px; height:1032px; min-height:0; flex:none; transform:translate(0)}
.masthead{flex:0 0 auto; padding-bottom:10px}
/* The sheets on a screen are a pile now, so main holds one row of paper tags and one sheet
   whatever the screen is, and that is a height it can keep. It still scrolls, because a few
   single sheets are taller than the slot on their own and clipped is UNREACHABLE: there is
   no scrollbar left to go and find it, so her cash position would simply be gone. The pile
   took the residue from 789-3913px down to what harness/look.js now names per screen. When
   that row goes green this becomes overflow:hidden and the instruction is fully met. */
main{
  flex:1 1 auto; min-height:0; overflow:auto; padding-block:14px 18px;
  display:flex; flex-direction:column;
  /* THE FOLDER IS ONE WIDTH ON EVERY SCREEN, 2026-10-19, at the owner's word: "lock the main
     view content area (the manila folder) at the same width in all views and menus".
     `width:100%` is the whole of it, and without it main sized to its CONTENT, not to the
     1220px column `.wrap` caps it at. body is `display:flex; flex-direction:column` and main
     carries `margin:0 auto` from .wrap -- and an auto margin in a flex item's CROSS axis
     defeats align-self:stretch, absorbs the free space itself and leaves the item at
     fit-content. The auto margins still have to stay, because they are what centres the column
     once it is capped; stretch alone would put it against the left edge.
     MEASURED on all twelve stops at 1920x959, before: 784px on Orders, 810 on Sales overview,
     862 In-person, 912 Overview, 932 Advertising, 945 Stock, 970 Online sales, and 1220 only on
     the four screens whose sheets happened to be wide enough to reach the cap. The manila was a
     different size on nearly every screen and moved again when the data changed. After: 1220
     on all twelve, which is the cap, not a coincidence. */
  width:100%;
  /* THE "UPDATED" STAMP SITS ON THE FOLDER, 2026-10-19, at the owner's word: "Lock the updated
     just now text right on the manila folder itself, no card, in the upper right corner".
     Two declarations serve that and neither does anything else.
     `position:relative` makes main the containing block on EVERY screen. It already was on the
     seven card screens (`main:has(.folder[data-card])`, app.css:1753); a shut folder is
     `display:contents` and has no box of its own, so main is the only element the two states
     share. An absolutely positioned child resolves against main's PADDING box, which is the
     box the painted card covers and the edge an open folder reaches since the width lock, so
     one offset lands on the manila in both states. Nothing else moves: the only other absolute
     inside main is `.tip`, and it hangs off `.chartbox`, which is relative itself.
     `--card-top` is how far below main's top the manila begins, and the figure here is the OPEN
     folder's. MEASURED at 1920x959, all twelve stops: main's top is 204 everywhere, the manila's
     is 210 on a card screen with no tab row and 264 on an open folder and on Stock. The two
     rules at :1753 and :1766 already declared 6px and 60px for the card and win on specificity
     (`:has()` takes its argument's); an open folder left it UNSET, which would have put the
     stamp 54px above the folder on five screens. 60px is right there by construction, because a
     folder is only ever open under a tab row and the row is what the 60 measures. */
  position:relative; --card-top:60px;
}
.grid{align-content:start; gap:22px}

/* Paper, cut not drawn. A rounded corner and a drawn border are what make a thing read as a
   digital block, so every container loses both and keeps only the shadow a real sheet casts.
   The tinted backgrounds stay: tinted paper is still paper, and the alerts carry an icon as
   well as a colour, so no meaning rests on the tint alone. */
/* .brand is not in this list: it is tape, not a cut sheet, and its own rule below gives it a
   drop-shadow instead -- clip-path would clip a box-shadow away with the box. */
.panel, .state,
.alert, .conn-card, .conn-section{
  border:0; border-radius:0;
  box-shadow:0 2px 3px rgba(62,32,18,.22), 0 18px 32px -20px rgba(62,32,18,.6);
}
.alert:nth-of-type(odd){transform:rotate(.3deg)}
.alert:nth-of-type(even){transform:rotate(-.35deg)}
.conn-card:nth-of-type(odd){transform:rotate(-.3deg)}
.conn-card:nth-of-type(even){transform:rotate(.25deg)}
.panel{background:var(--surface); padding:20px 22px}
.panel:nth-of-type(odd){transform:rotate(-.35deg)}
.panel:nth-of-type(even){transform:rotate(.3deg)}

/* Figures are not tiles. They lie on the sheet the panel already is. */
.stats{background:none; border:0; border-radius:0; box-shadow:none; gap:4px 30px; overflow:visible}
.stat{background:none; padding:2px 0}

/* FIVE FIGURES IN TWO PAIRS, 2026-10-21, at the owner's word: "show Gross sales and Net sales in
   the left panel on one row together, Number of sales and Average sale on the row below", and the
   shape confirmed the same day -- the two totals paired, their two averages paired under them,
   the count on its own and centred.
   A GRID, AND NOT THE FLEX WRAP ABOVE IT. `.stat{flex:1 1 210px}` puts two, three or four
   figures on a row depending on how wide the pane is, and a layout the owner picked by its shape
   cannot be left to the pane's width. Two equal columns hold the pairs at every width this
   window has, and the fifth figure spans both columns, which is what centres it under them.
   The row gap is larger than the 4px above because a pair read across is a different reading
   from a pair read down, and 4px between the rows made the four figures one block of four. */
.stats.pairs{display:grid; grid-template-columns:1fr 1fr; gap:14px 30px}
.stats.pairs > .span{grid-column:1/-1; align-items:center; text-align:center}

/* An alert is a note dropped on the desk. */
.state{transform:rotate(-.5deg)}

/* The masthead is not a bar. It is a card with the shop's name, a strip of controls, and
   one paper strip carrying all six section links -- one object for related options, which
   is why six separate plates (and six repeated journals) are not needed. */
/* ---- the name, on a strip of masking tape ----
   Tape is not paper. It is translucent, so --tape carries its own alpha (see the token for the
   measurement that sets it) and what is under it -- the cloth at one end, the sketchbook's cover
   at the other -- keeps showing through; and it is stuck flat, so it casts a tight shadow rather
   than a sheet's deep one. clip-path clips a box-shadow away with the box, so the shadow is a
   drop-shadow filter on the same element.

   The SHORT edges are torn, not cut. Tape comes off the roll against a thumb and the fibres let
   go unevenly, so each end is a run of points wandering about 10px in and out rather than one
   straight line; the two ends tear differently, because no two tears are alike. The LONG edges
   are still nearly straight -- those are the roll's own width, and nothing tears them -- but they
   carry a pixel or two of waver, which is the strip not being pressed down perfectly flat. A
   square-ended rectangle is the single thing that would make this read as a drawn box again.

   The three background layers are the tape stock itself, under the name and over whatever the
   strip is lying on. Bottom to top: the crepe fibres running the length of the roll, as a 3px
   repeating gradient at a hair off horizontal; a wash where the adhesive has taken hold more
   strongly at the left end; and a dull sheen across the middle. Every one of them LIGHTENS and
   none of them darkens, which is deliberate and is what lets the tape be this see-through: the
   only thing a contrast check can read is background-color, var(--tape) alone composited over
   the cover under it. A darkening layer would paint a figure worse than the one measured, so
   there are none; every layer here can only paint a figure better.

   THE STOCK WENT PALE, 2026-11-13, on the owner's word: 'make the tape much lighter masking
   style tape, still slightly translucent'. rgba(232,220,190,.48) became rgba(248,244,233,.74),
   and his second word that day -- 'lighter coloured masking tape for contrast' -- took it on to
   rgba(253,250,244,.93), which is the live --tape token (line 208). A buff cream rather than a
   tan one, and more of it, while still letting the cover's weave read through. Translucent is
   the point and it is kept: even at .93 the cover still tints the strip, which is why each of
   the three books below gives its label a slightly different paper.
   THE FIGURES ARE NOT WRITTEN DOWN HERE ANY MORE. They were, for the .48 and the .74 stocks,
   and they went stale inside a day while the token moved twice. The ink on the tape is measured
   live instead, on composited pixels, by the row named 'the name on every journal's tape clears
   AAA on that book's own cover' in harness/look.js, which prints all three. Lighter tape can
   only help, because the ink on it is near-black. */
/* TWO READERS NOW, 2026-11-13. This rule drew one strip of tape, the shop's name at the top
   left. That strip is clipped out of sight and the three journals label themselves with the
   same tape, which is the whole of what the owner meant by 'keep the tape rendering code'. So
   the paint, the torn ends and the pressed-down shadow are shared here and nothing is copied;
   only the SIZE and the ANGLE are per-strip, below. A second copy of the clip-path is the thing
   that would quietly let the two tapes tear differently. */
.brand, .tape{
  background:
    radial-gradient(150% 220% at 6% 44%, rgba(255,255,255,.16), rgba(255,255,255,0) 58%),
    linear-gradient(94deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.07) 62%, rgba(255,255,255,0) 92%),
    repeating-linear-gradient(91deg,
      rgba(255,255,255,0) 0 1px, rgba(255,255,255,.07) 1px 2px, rgba(255,255,255,0) 2px 3px),
    var(--tape);
  /* STRAIGHT CUT ENDS, 2026-11-13, at the owner's word: "make the tape a lighter coloured
     masking tape style with straight cut ends rather than zig zag cuts". The two short edges
     used to be a run of fourteen points wandering about 10px in and out of the strip, which is
     a TORN end -- tape pulled off a roll against a thumb. A cut end is one straight line, so
     each end is now two points and nothing between them.
     EACH CUT IS A HAIR OFF SQUARE, 2px at one end and 1px at the other, and the two long edges
     pick up the same 2% of lean. That is a hand with scissors and not a drawing error: a strip
     clipped to a perfect rectangle is the one thing that would put this back to reading as a
     box with a border. Four points, and the ends are the first and third pairs. */
  clip-path:polygon(2px 0, 100% 2%, calc(100% - 1px) 100%, 0 98%);
  /* Tape is thinner than paper and it is PRESSED DOWN, so it does not stand off the cover the
     way a sheet does. A soft 2px shadow is what was making it look like a label hovering: the
     shadow belongs only in the sliver the torn edge lifts, so it is a single pixel, barely
     there, and the inset line along the top edge is the cover's own shade falling on the strip
     where it begins. The two together read as adhered rather than placed. */
  filter:drop-shadow(0 1px .5px rgba(62,32,18,.26));
  box-shadow:inset 0 1px 0 rgba(62,32,18,.07), inset 0 -1px 0 rgba(255,255,255,.14);
}
.brand{padding:11px 22px; transform:rotate(-5deg)}
/* Printed on the tape, not stuck to it: multiply takes the ladybird's white paper away and lets
   the tape's cream -- and the cloth showing through it -- come up through the watercolour, the
   way a washi print takes the colour of what it is printed on. .brand's filter makes it a
   stacking context, so the blend reaches the tape and stops there. 34px and .85 keep it a motif
   beside the name rather than a second thing to read. */
/* Printed into the strip, not stuck on it. It takes the same multiply as the name, so the
   cover's weave comes up through it too, and 6 degrees off the strip is the one thing on the
   tape that is NOT parallel to anything -- a stamp pressed by hand lands a little askew, and
   that is the whole job it does here. The name cannot have the same licence: a line of type a
   degree off the tape it sits on reads as a mistake at this size, so the name stays parallel
   and the beetle carries the hand. 26px matches its height to the name's cap height. */
.brand .lady{width:26px; height:auto; flex:0 0 auto; mix-blend-mode:multiply; opacity:.8;
  transform:rotate(-6deg)}
/* Multiply goes one way only: it can darken what is behind it and never lighten it. That is why
   the name and the beetle are printed with it: the strip they sit on is a cover showing through,
   and multiply is what carries the cover's warmth up into the ink. The three rules that turned
   the blend off for a dark room went with dark mode. */

/* THE TOP LEFT OF THE DESK IS BARE, 2026-11-13, at the owner's word: "Lose the top left journal
   and tape logo, but keep the tape rendering code."
   WHAT THE BOOK WAS FOR, so that nobody puts it back for the first of its two jobs. It gave the
   window's traffic lights one constant warm brown to sit on, because the cloth under them was a
   different colour on every screen, and red on terracotta and green on moss both lost their
   edge. That reason is spent: the cloth is locked to indigo now, so the dots have one constant
   thing under them without a book to provide it. Its second job was to be the thing a hand had
   stuck the tape to, and the tape has gone with it.
   THE TAPE'S OWN CODE IS UNTOUCHED, which he asked for by name. Everything that draws a strip of
   masking tape -- the paper, the torn ends, the ladybird printed into it, the angle a hand puts
   it down at -- is still in this file under .brand, and the three journals being built next
   label themselves with it (.tape, which shares every line of that paint). Only the one strip at
   the top left is off the screen.
   --book WENT, which this comment used to say it would not. It said the token was the cover
   colour the journals would be drawn in; they are drawn in three, one per book, so the single
   token had nothing left to be. See --book-yellow and its two neighbours.
   HIDDEN AND NOT DELETED, because #shopName inside it is the document's only h1 and a page with
   no heading at all is a worse thing than an invisible one. This is the clip that used to live
   in the narrow-width block below, moved up to every width. */
.brand{position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap}

/* THE TWO STICKY NOTES ARE OFF THE DESK, 2026-11-13: "Hide the Ask claude and settings sticky
   notes for now." His "for now" is why this is two rules of hiding and not a deletion -- the
   panels behind the two buttons are whole features, and they are coming back somewhere in the
   journals.
   visibility, NOT display:none, and the difference is the whole rule. visibility:hidden takes
   both buttons out of the tab order, so a keyboard cannot land on a control nobody can see,
   while leaving them in the layout and in the tree -- so askBtn.click() still opens the Ask
   panel, which is how three harnesses reach it. display:none would take the panels down with
   the buttons and there would be nothing left to open.
   The second rule is what lets an opened panel show through a hidden parent: visibility
   inherits, so a panel inside .ctrls would come up invisible. Both panels are popovers, so when
   open they are in the top layer and the parent cannot clip them -- only inherit its visibility
   onto them, which this turns back.
   WHAT THIS CLOSES, said out loud because it is the one thing a reader will not see: the
   Settings menu is the only way to Connections and Routines. Hiding it makes both unreachable
   until the journals open (docs/JOURNALS-NAV.md, step 3), where Operations carries them. */
/* ---------------------------- the three journals ----------------------------
   STEP 2 OF docs/JOURNALS-NAV.md, 2026-11-13. The owner's words: 'Centred along the top have
   the bottom edges of three journals, one yellow, one green, one purple, labelled using the
   sticky taoe asesthetic from the old logo as Creation, Growth, and Operations.'
   THEY DO NOTHING YET, and that is this step's whole scope. Pressing one opens it to a contents
   page at step 3; until then the row takes no pointer and carries aria-hidden, because three
   words a screen reader reads out and a hand cannot use are worse than three it does not.
   WHY THEY HANG OFF THE TOP. Only the bottom edge of each book shows: the body of it is above
   the window, as if the three were lying just off the top edge of the desk. So each one is a
   190px board pulled up by a negative margin until only its foot is left, and --jrnl-bottom is
   where that foot lands. The three feet are at slightly different heights and the three boards
   at slightly different angles, which is what stops a row of three identical rectangles reading
   as a tab bar. Every one of those differences is STATIC: nothing here moves on hover, focus or
   press, in this step or any later one.
   WHAT THE BOTTOM EDGE IS MADE OF, bottom upwards, in one background and no extra elements: 3px
   of the back cover in shadow, 8px of the page block, 3px of the shade where the front cover
   meets those pages, then the front cover itself. A book is a thick object seen edge on, and
   that is the stack that says so. The rounded corners are the bottom two only, because the top
   two are off the window.
   THE 90px FOOT IS CLEARANCE, NOT A LOOK. .masthead-in reserves 96px for whatever hangs at the
   top of the window (it reserved it for the tape before this), and the flag strip starts under
   that. A foot past 96 would land on the first flag. */
.journals{
  position:fixed; top:0; left:0; right:0; z-index:32;
  display:flex; justify-content:center; align-items:flex-start; gap:var(--jrnl-gap);
}
.journal{
  /* IT IS A <button> SINCE 2026-11-13 and four of these lines are what a button brings that a
     div did not: its own border, its own padding, its own font and a UA appearance. They are
     all taken off, so the book looks exactly as it did while it was inert. The pointer is the
     only thing added, because this row is the way to every screen now.
     THE SIZING IS IN THIS ONE RULE AND IN NO OTHER, which is the house rule for anything with
     states. :hover, :focus-visible and [data-here] below change brightness and the top margin
     and nothing else -- no width, no padding, no font. A book cannot grow under a hand and
     shove the other two sideways. */
  position:relative; flex:0 0 auto; width:var(--jrnl-w); height:var(--jrnl-h);
  border:0; padding:0; font:inherit; color:inherit; -webkit-appearance:none; cursor:pointer;
  margin-top:calc(var(--jrnl-bottom) - var(--jrnl-tuck) - var(--jrnl-h));
  transform:rotate(var(--jrnl-tilt));
  border-radius:0 0 11px 11px;
  /* THE COVER IS A background-color AND NOT ONLY A GRADIENT STOP, which costs one line and
     buys the only thing a contrast check can read. getComputedStyle returns a gradient as an
     opaque string and backgroundColor as a colour; written as one `background` shorthand the
     colour slot resets to transparent, and a harness measuring this cover would read
     rgba(0,0,0,0) and have nothing to compare the label's ink against. Measured on the live
     app, which is how it was found. So the colour is declared and the edge is drawn over it. */
  background-color:var(--jrnl);
  /* THE EDGE OF A BOUND BOOK, 2026-11-13, on the owner's word: 'a more realistic journal
     graphic'. The first version drew the foot as three flat bands the full width of the board,
     which is a stack of coloured stripes and not a book. What makes a book read as bound is
     that the two covers OVERHANG the paper: the page block is narrower than the boards and sits
     recessed between them, with shade in the gap either side. So the bands here are the two
     boards and the shadow between them, and the page block is laid over the middle band by
     ::after, inset 5px at each end, which leaves that shade showing at both ends of it.
     Bottom upwards: the dark line where the back board meets the desk; the back board, in
     shade because it faces away from the light; the recess the paper sits in; the front board,
     a lit lip because it faces up; and the crease where that lip turns into the cover face.
     The two board colours are struck from --jrnl with color-mix rather than typed, so all
     three books -- and both themes -- get boards that belong to their own cover. */
  background-image:
    linear-gradient(to top,
      rgba(26,13,6,.58) 0 2px,
      color-mix(in oklab, var(--jrnl) 58%, #000) 2px var(--pgs-from),
      rgba(26,13,6,.50) var(--pgs-from) var(--pgs-to),
      color-mix(in oklab, var(--jrnl) 88%, #fff) var(--pgs-to) calc(var(--jrnl-edge) - 1px),
      rgba(26,13,6,.20) calc(var(--jrnl-edge) - 1px) var(--jrnl-edge),
      rgba(0,0,0,0) var(--jrnl-edge));
  /* Two shadows, because a book is a thick object: a tight dark one where the cover meets what
     it lies on, and a wide soft one for the body of it standing off the desk. One shadow doing
     both jobs is what makes a thing look printed on the background rather than put down on it.
     A filter and not a box-shadow, so the rounded foot gets one shadow for the whole object
     rather than one per layer. */
  filter:drop-shadow(0 3px 4px rgba(62,32,18,.42)) drop-shadow(0 14px 24px rgba(62,32,18,var(--jrnl-sh, .40)));
}
/* THE COVER NEVER LIGHTENS (owner, 2026-11-15: "Don't lighten or highlight anything on hover
   (journal covers ...)"). A hand on a shut book is answered by the half slide below. FOCUS IS
   SHOWN AND IS NEVER A RING: the book's wide shadow deepens, one term in the filter that is
   already there, so it costs no reflow and draws no second box. */
.journal:focus-visible{--jrnl-sh:.7; outline:0}
/* THE BOOK THE SCREEN IN FRONT CAME OUT OF SITS 20px LOWER, as though it had been pulled half out
   of the pile and not pushed back in.
   IT WAS 7px UNTIL 2026-11-13, at the owner's word: "tuck the journals higher a bit further off
   screen, so that when one of a journal's manila folders is open, that journal can stick down a
   little bit further to indicate". The three feet went up 18px (the line below this rule) and
   the drop went from 7 to 20, so the book whose folder is open comes back down to about where
   all three used to stand and the other two sit clearly higher than it. 7px on three books that
   were nearly level with each other was a difference a hand had to look for. Since the flag strip came off on 2026-11-13 nothing else on
   the desk says which screen you are on, and the contents page's own mark only shows while a book
   is open. This moves on a SCREEN CHANGE and never on a hover, a focus or a press, so nothing
   moves under a hand; and the three books are laid out by their own top margins, so one of them
   dropping 7px cannot push or pull the other two. app.js writes data-here in renderNav(). */
.journal[data-here]{margin-top:calc(var(--jrnl-bottom) + var(--jrnl-drop) - var(--jrnl-h))}
/* A SHUT BOOK SLIDES HALFWAY DOWN UNDER A HAND, 2026-11-14, at the owner's word, overruling the
   older "nothing moves under a hand" note above for this one case. Halfway means half the gap
   between its tucked place and the open book's place. Only the top margin moves, so the other
   two books stay put; the slide uses the margin transition already set below. Keyboard focus
   gets the same slide, so the keyboard shows the same thing a hand does. */
.journal:not([data-here]):hover,
.journal:not([data-here])[data-lean]{
  margin-top:calc(var(--jrnl-bottom) + (var(--jrnl-drop) - var(--jrnl-tuck)) / 2 - var(--jrnl-h))}
/* The cloth of the cover, and every layer of it LIGHTENS. That is deliberate and it is the same
   rule the tape follows: the only thing a contrast harness can read is the cover's own
   background-color, so a darkening layer would paint a label worse than the measured figure.
   The weave runs across the board, the sheen sits off centre, and both are nearly invisible on
   their own -- together they are what stops the cover reading as a flat swatch. */
.journal::before{
  content:""; position:absolute; inset:0 0 var(--jrnl-edge) 0; border-radius:0 0 2px 2px;
  background:
    /* The wear, moved here from ::after, which the page block now needs. A hand has pulled this
       book off the pile a thousand times and rubbed the cloth bare along the bottom of the
       cover. A radial and not a straight band, because it has to fade out before the corners:
       wear is never an outline. */
    radial-gradient(150% 420% at 50% 100%, rgba(255,255,255,.17), rgba(255,255,255,0) 40%),
    radial-gradient(120% 180% at 28% 8%, rgba(255,255,255,.14), rgba(255,255,255,0) 62%),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0) 0 2px, rgba(255,255,255,.05) 2px 3px, rgba(255,255,255,0) 3px 5px);
  pointer-events:none;
}
/* THE PAGE BLOCK, the single thing that turns the foot into a book. It is inset 5px at each end,
   so the boards overhang it and the recess drawn behind shows at both ends; and it is a stack of
   individual sheets, not a cream bar. The sheets are two repeating gradients at DIFFERENT periods,
   2px and 3px, which beat against each other every 6px: one period alone is a comb, and a comb is
   the thing that would give it away. Half-pixel lines, so a Retina screen draws each one as a
   single device pixel rather than a smear.
   DARKENING LAYERS ARE ALLOWED HERE and nowhere else on the book. The lightening-only rule the
   cover and the tape follow exists because a contrast check reads their background-color and must
   not be told a better figure than the screen paints. No text sits on the paper, so nothing is
   measured against it and the sheets can have shade as well as light.
   Bottom to top of the shading: a hairline where the paper meets the back board, the fore-edge
   catching the light, then the shade where the paper goes under the front board. */
.journal::after{
  content:""; position:absolute; left:5px; right:5px;
  bottom:var(--pgs-from); height:calc(var(--pgs-to) - var(--pgs-from));
  border-radius:0 0 2px 2px;
  background-color:var(--pages);
  background-image:
    linear-gradient(to bottom,
      rgba(26,13,6,.40) 0 1px,
      rgba(26,13,6,.12) 1px 3px,
      rgba(0,0,0,0) 4px calc(100% - 2px),
      rgba(26,13,6,.32) calc(100% - 2px)),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.34) 0 .5px, rgba(255,255,255,0) .5px 3px),
    repeating-linear-gradient(90deg,
      rgba(62,32,18,.22) 0 .5px, rgba(62,32,18,0) .5px 2px);
  pointer-events:none;
}
/* One strip of tape per cover, stuck across the foot where it can be read, each at its own
   small angle because a hand does not lay three strips down the same way. It is centred with
   left:50% and a translate, so the strip's own width never has to be known. */
/* PLACED BY ITS CENTRE AND NOT BY ITS BOTTOM EDGE, 2026-11-13, and that is what lets ONE
   figure put the strip in the right place on two objects of different sizes -- the little book
   in the row and the big cover that flies out of it. `translate(-50%, 50%)` pulls the box half
   its own width left and half its own height down, so `bottom` ends up naming where the middle
   of the strip sits rather than where its lower edge does. The rotate and the scale both turn
   about that same middle, so neither of them moves it.
   --tape-up IS A PERCENTAGE, for the same reason: 20% of the book in the row is 46px and 20% of
   the flying cover is 111px, and the flight's own shrink brings the second back onto the first
   within a pixel. See the token for the two heights that makes true.
   LOWER THAN IT WAS, at the owner's word: "move them closer to the bottom of the journals". The
   strip's middle used to sit at 66px, a little above the middle of the cover face; at 46 it sits
   in the lower third, 8px clear of the page block at the foot.
   --tape-grow IS 1 EVERYWHERE EXCEPT THE FLYING COVER, which sets it below. */
.jlabel{
  position:absolute; left:50%; bottom:var(--tape-up); z-index:1;
  padding:9px 18px;
  transform:translate(-50%, 50%) rotate(var(--tape-tilt)) scale(var(--tape-grow, 1));
}
/* Three books, and the only thing that differs between them is on these three lines. */
/* TALLER BOOKS, 2026-11-13, at the owner's word: "Make the journals taller too". These three
   numbers are how far the foot of each book hangs below the top of the window, so raising them
   is the whole of what "taller" means here -- the rest of the book is off the screen above.
   TUCKED 18px HIGHER ON 2026-11-13, at the owner's word: "tuck the journals higher a bit further
   off screen, so that when one of a journal's manila folders is open, that journal can stick down
   a little bit further to indicate". 118/112/120 became 100/94/102, and --jrnl-drop went from 7
   to 20 in the same breath -- so the book whose folder is open lands at 120/114/122, about where
   all three used to stand, and the other two are plainly higher than it.
   THE CEILING IS MEASURED AND IT IS main's TOP EDGE. Measured live at 1340x900: main starts at
   132px. The lowest thing on the desk is now Operations WITH its drop, 102 + 20 = 122, and the
   tilt carries it to about 124, so 8px of cloth is left between it and main. Going further needs
   `.masthead-in{min-height}` raised, which pushes main down on all nine screens --
   and nothing scrolls, so that is height taken off every sheet. The
   tightest copyright clearance in the build is 33px (harness/look.js), so there is no room to
   spend. Do not raise these three without raising that reserve and re-running look.js. */
.journal[data-journal="creation"]  {--jrnl:var(--book-yellow); --jrnl-bottom:100px; --jrnl-tilt:-1.2deg; --tape-tilt:-1.6deg}
.journal[data-journal="growth"]    {--jrnl:var(--book-green);  --jrnl-bottom: 94px; --jrnl-tilt: 0.9deg; --tape-tilt: 1.1deg}
.journal[data-journal="admin"]{--jrnl:var(--book-purple); --jrnl-bottom:102px; --jrnl-tilt:-0.5deg; --tape-tilt:-0.8deg}

/* ----------------- the magnifying glass (Query), 2026-11-25 -----------------
   The owner: "Replace the Query sticky in ASA Dashboard with a magnifying glass: brass frame,
   wood handle maybe? with a simulated magnification effect on the gingham below the lens and
   QUERY etched on the handle." It opens the Claude TV. The Settings sticky that stood above it
   went the same day (Automations on each contents page took its one job).
   IT LIES WHERE THE TWO FLAGS LAY: the same box, --fsk-w wide and --fsk-band tall, left of the
   books, so the drag strip, the brush and the eraser all still measure off --fsk-w and --fsk-off.
   THE LENS IS NOT TURNED, only the handle is. The lens paints the cloth's own picture (--surf,
   the body's background) at --mg-zoom times its size, and app.js offsets it so the middle of the
   lens shows the cloth under the middle of the lens. A turned lens would turn the checks.
   THE WORD IS BURNED IN AS THE BRUSH'S IS, on a real box with a real background, in the same
   ink on the same wood: 7.3:1. 16px, the text floor.
   THE LIFT IS THE BRUSH'S: hover and focus change the shadow and the drawing's transform; the box
   never changes. Never a ring. */
.magnifier{
  position:fixed; z-index:32; box-sizing:border-box;
  border:0; padding:0; margin:0; background:none; cursor:pointer; -webkit-appearance:none;
  --mg-zoom:1.7; --mg-d:86px; --mg-cx:43px; --mg-cy:43px; --mg-turn:15deg;
  filter:drop-shadow(0 1px 1.5px rgba(62,32,18,.28)) drop-shadow(0 3px 6px rgba(62,32,18,.22));
  transition:filter .3s ease, opacity .34s ease;
}
.magnifier:hover{
  filter:drop-shadow(0 1.5px 3px rgba(62,32,18,.3)) drop-shadow(0 8px 13px rgba(62,32,18,.3));
}
.magnifier:focus-visible{
  outline:none;
  filter:drop-shadow(0 1.5px 3px rgba(62,32,18,.32)) drop-shadow(0 9px 16px rgba(62,32,18,.36));
}
.magnifier:active{
  filter:drop-shadow(0 1px 1px rgba(62,32,18,.3)) drop-shadow(0 2px 4px rgba(62,32,18,.22));
}
/* Held back while the set it opened is on screen, as the Query flag was. */
.magnifier[aria-expanded="true"]{opacity:.55}
/* The drawing fills the box, which is the lens's square; the handle runs out of it, up and
   left, and is part of the button (a press on QUERY asks). */
.mg-body{
  position:absolute; display:block; inset:0;
  transition:transform .4s cubic-bezier(.32,.74,.28,1);
}
.magnifier:hover .mg-body, .magnifier:focus-visible .mg-body{transform:translateY(-1.5px)}
/* The handle and the brass collar both turn about the lens's centre: each one's left-middle
   point is put on that centre, turned, and pushed out along the arm. */
.mg-handle, .mg-collar{
  position:absolute; display:block; left:var(--mg-cx); transform-origin:0 50%;
}
.mg-collar{
  top:calc(var(--mg-cy) - 8px); width:13px; height:16px; border-radius:2px;
  transform:rotate(var(--mg-turn)) translateX(calc(var(--mg-d) / 2 + 2px));
  background:linear-gradient(to bottom, #8F6A16, #F6D768 35%, #C99F2C 60%, #74540E);
  box-shadow:inset 0 0 0 1px rgba(70,40,10,.45);
}
.mg-handle{
  top:calc(var(--mg-cy) - 12px); width:82px; height:24px; box-sizing:border-box;
  border-radius:4px 6px 6px 4px; overflow:hidden;
  transform:rotate(var(--mg-turn)) translateX(calc(var(--mg-d) / 2 + 14px));
  display:flex; align-items:center; justify-content:center; padding:0 14px 0 6px;
  /* THE THREE WORDS MATCH (owner, 2026-11-25): BACK, CLOSE and QUERY are all the hand font, 16px,
     upper case, 1px apart, burned dark. A light cherry, so the burn is 7:1 like the brush's. */
  font-family:var(--hand); font-size:16px; line-height:1; white-space:nowrap; letter-spacing:1px;
  color:#24100A; text-shadow:0 0 1.2px rgba(36,16,10,.5), .4px .3px 0 rgba(36,16,10,.3);
  background-color:#D39C76;
  background-image:
    linear-gradient(to bottom, rgba(255,228,205,.18), rgba(255,228,205,0) 45%, rgba(110,46,22,.2)),
    repeating-linear-gradient(178deg, rgba(128,58,30,0) 0 3px, rgba(128,58,30,.14) 3px 4px, rgba(128,58,30,0) 4px 7px),
    var(--grain);
  box-shadow:inset 0 0 0 1px rgba(110,46,22,.38);
}
/* The brass end cap on the far end of the handle, the collar's brass. */
.mg-handle::after{
  content:""; position:absolute; right:0; top:0; bottom:0; width:8px; border-radius:0 6px 6px 0;
  background:linear-gradient(to bottom, #8F6A16, #F6D768 35%, #C99F2C 60%, #74540E);
  box-shadow:inset 1px 0 0 rgba(70,48,8,.5);
}
.mg-etch{display:inline-block}
/* The brass frame: a ring lit from the top left, a darker inner lip where the glass sits. */
.mg-rim{
  position:absolute; display:block; box-sizing:border-box;
  left:calc(var(--mg-cx) - var(--mg-d) / 2); top:calc(var(--mg-cy) - var(--mg-d) / 2);
  width:var(--mg-d); height:var(--mg-d); border-radius:50%; padding:6px;
  background:conic-gradient(from 200deg, #74540E, #C99F2C 18%, #F8E08A 34%, #D6AC34 50%,
    #80600F 68%, #C99F2C 84%, #74540E);
  box-shadow:inset 0 0 0 1px rgba(70,40,10,.5), 0 0 0 1px rgba(70,40,10,.35);
}
/* The glass: the cloth under it, bigger. --mg-bx/--mg-by are written by app.js (grep magnifier). */
.mg-lens{
  position:relative; display:block; width:100%; height:100%; border-radius:50%; overflow:hidden;
  background:var(--surf) var(--mg-bx, 0px) var(--mg-by, 0px) / calc(var(--surf-size) * var(--mg-zoom)) var(--surf-repeat),
             var(--ground);
  box-shadow:inset 0 0 0 1px rgba(70,40,10,.55), inset 0 2px 5px rgba(40,24,8,.35);
}
/* A faint glass highlight and a little darkening at the edge, where a real lens bends the most. */
.mg-lens::after{
  content:""; position:absolute; inset:0; border-radius:50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.5), rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 40%),
    radial-gradient(circle, rgba(0,0,0,0) 62%, rgba(30,20,10,.22) 100%);
}
@media (prefers-reduced-motion:reduce){
  .magnifier, .mg-body{transition:none}
}

/* ------------------- the eraser (Back) and the brush (Close all), 2026-11-14 -------------------
   The owner: the eraser "becomes a back button" -- each press steps back one view -- and a new
   desk brush takes over what the eraser's Close all did. The eraser is the classic white drafting
   rubber in a blue card sleeve, NO brand or mark, the sleeve says "Back" only; the brush is a small
   wooden drafting brush with "Close all" burned into the handle. Both matte: no gloss highlight.
   BOTH LIE LEFT OF THE PAIR OF FLAG STICKIES, ONE ABOVE THE OTHER, BELOW THE DRAG STRIP. At the
   1160px minimum window the cloth there is 118px wide and 86px tall (strip foot at 60, folder tabs
   at 146), which holds two 44px targets stacked and nothing more. So each button is a plain
   UPRIGHT box, and the object is drawn at an angle inside it: a turned button would be hit-tested
   as its turned shape and the two would overlap. Both boxes end 12px left of the stickies.
   EVERY WORD IS ON A REAL BOX, not an SVG fill, because harness/look.js reads the colour behind a
   word off its ancestors. White on the sleeve's blue is 7.6:1; the scorch on the wood is 7.3:1.
   THE LIFT IS THE STICKIES' LIGHT: hover and focus change only the shadow, the light and the
   drawing's transform; the box never changes. */
.eraser, .brush{
  position:absolute; z-index:32; height:44px; box-sizing:border-box;
  border:0; padding:0; margin:0; background:none; cursor:pointer; -webkit-appearance:none;
  filter:drop-shadow(0 1px 1.5px rgba(62,32,18,.26)) drop-shadow(0 3px 6px rgba(62,32,18,.2));
  transition:filter .3s ease;
}
/* THE BRUSH LIES ABOVE THE ERASER, 2026-11-14, and is half as big again where the cloth allows
   (the owner: "bigger ... placed above the eraser"). The cloth left of the stickies is 118px wide
   at the 1160px window and 174 at 1340, so the brush is drawn at 1x, 1.3x or 1.5x by window width;
   the box grows with the drawing. Where the brush's box is taller than 44 it runs under the top
   of the eraser's, and the eraser is laid over it, so each keeps at least 44px of its own. */
/* SMALLER AGAIN AND APART, 2026-11-15 (owner: "make the desk brush smaller, space it up a bit and
   off the rubber, and shift the rubber a bit up away from the manilas"). The brush is 1x at every
   width (its burned word stays 17px), and it slides up to 40px left of the eraser, never nearer
   the window edge than 8px, so its bristles clear the rubber's raised end. The rubber sits 4px
   higher, off the folder tabs. */
/* A BIT BIGGER, 2026-11-15 (owner: "Make the desk brush a bit bigger, have it just say CLOSE, and
   centre the word above the bristle section"): drawn at 1.2x, and the word sits over the bristles. */
/* UP INTO THE GAP, 2026-11-15 (owner: "move both the brush and eraser up, vertically centred
   between the traffic light buttons and the top of a manila folder"). The lights end at 36
   (main.js trafficLightPosition y 22, 14px buttons) and the folder tabs start at 146: 110px, the
   pair is 82 tall, so 14 above and 14 below. The drag strip ends where the brush starts. */
.brush{--br-s:1.35}
.eraser{z-index:33}
/* Under an open panel it stays under the dim and lets a press fall through to the click outside. */
body:has(:popover-open) .eraser{pointer-events:none}
.ers-body, .br-body{
  position:absolute; display:block;
  transition:transform .4s cubic-bezier(.32,.74,.28,1);
}
.eraser:hover, .brush:hover{
  filter:drop-shadow(0 1.5px 3px rgba(62,32,18,.28)) drop-shadow(0 7px 12px rgba(62,32,18,.28));
}
/* NEVER A RING: focus is the hover lift on a deeper shadow. */
.eraser:focus-visible, .brush:focus-visible{
  outline:none;
  filter:drop-shadow(0 1.5px 3px rgba(62,32,18,.3)) drop-shadow(0 9px 16px rgba(62,32,18,.34));
}
.eraser:active, .brush:active{
  filter:drop-shadow(0 1px 1px rgba(62,32,18,.3)) drop-shadow(0 2px 4px rgba(62,32,18,.22));
}

/* The rubber: an 80x24 block lying at -15deg, a worn white end showing on the left and a sliver
   on the right. A soft grain and a low shade on the lower edge are all the modelling it gets. */
.ers-body{
  left:2px; top:9px; width:92px; height:26px; border-radius:3px 4px 4px 3px;
  /* MATTE, 2026-11-14: the owner found the first one "too shiny at its edges". No light anywhere
     on the block now -- one flat colour, a grain, and an edge a little DARKER than the face. */
  background:var(--grain), #E8E4DB;
  box-shadow:inset 0 0 0 1px rgba(96,86,72,.3), inset 0 0 3px rgba(96,86,72,.22);
  transform:rotate(3deg);
}
.eraser:hover .ers-body, .eraser:focus-visible .ers-body{transform:rotate(3deg) translateY(-1.5px)}
/* The worn end: rounded off and a little grey where it has been used. */
.ers-body::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:12px; border-radius:6px 0 0 6px;
  background:linear-gradient(to right, rgba(120,110,96,.28), rgba(120,110,96,0));
}
.ers-sleeve{
  position:absolute; left:16px; right:6px; top:-1.5px; bottom:-1.5px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--hand); font-size:16px; line-height:1; white-space:nowrap; color:#FFFFFF;
  text-transform:uppercase; letter-spacing:1px;
  background-color:#23508C;
  background-image:
    linear-gradient(to bottom, transparent 3.5px, rgba(240,238,232,.7) 3.5px 4.5px, transparent 4.5px),
    linear-gradient(to top, transparent 3.5px, rgba(240,238,232,.7) 3.5px 4.5px, transparent 4.5px),
    var(--grain);
  border-radius:1.5px;
  box-shadow:inset 0 0 0 1px rgba(10,24,48,.28);
}
/* Two crumbs of rubbings left on the cloth by the last use. */
.ers-crumb{position:absolute; display:block; background:#E4E0D6; border-radius:40% 60% 55% 45%;
  box-shadow:0 .5px 1px rgba(62,32,18,.3)}
.ers-crumb.c1{left:97px; top:27px; width:5px; height:3px; transform:rotate(25deg)}
.ers-crumb.c2{left:102px; top:33px; width:3px; height:2.5px}
/* A press with nowhere to go back to: a small shake, on `translate` so the lie of the block is
   untouched. No error, no message. */
.eraser.refuse .ers-body{animation:ers-no .36s ease}
@keyframes ers-no{
  0%,100%{translate:0 0} 20%{translate:-3px 0} 40%{translate:3px 0} 60%{translate:-2px 0} 80%{translate:2px 0}
}

/* The brush: a turned wooden handle with the word burned in, the bristles in a row along its
   lower side under the head. Lying at -3.5deg, low enough that its raised end stays under the drag
   strip's foot. */
.br-body{left:0; top:-1px; width:106px; height:34px; transform-origin:0 0;
  transform:rotate(-2deg) scale(var(--br-s))}
.brush:hover .br-body, .brush:focus-visible .br-body{
  transform:translateY(-1.5px) rotate(-2deg) scale(var(--br-s))}
.br-handle{
  position:absolute; left:0; top:0; width:106px; height:22px; border-radius:11px 6px 6px 11px;
  display:flex; align-items:center; justify-content:center; padding-left:22px; box-sizing:border-box;
  font-family:var(--hand); font-size:17px; line-height:1; white-space:nowrap;
  color:#3A1C0C; text-shadow:0 0 1.2px rgba(58,28,12,.55), .4px .3px 0 rgba(58,28,12,.35);
  background-color:#D7B17C;
  background-image:
    linear-gradient(to bottom, rgba(255,240,215,.18), rgba(255,240,215,0) 45%, rgba(110,66,30,.2)),
    repeating-linear-gradient(178deg, rgba(120,72,34,0) 0 3px, rgba(120,72,34,.12) 3px 4px, rgba(120,72,34,0) 4px 7px),
    var(--grain);
  box-shadow:inset 0 0 0 1px rgba(110,66,30,.35);
}
/* The burn is not even: the first letters went in a little deeper. */
/* A BUNCH SMALLER, 2026-11-15 (owner: "make close on the desk brush a bunch smaller"): 16px as
   drawn, the text floor, down from 20.4. The word is set at 16 and scaled back out of the brush's
   own 1.2x, so it is 16 on screen and 16 to anything that reads its size. */
.br-handle .br-burn{letter-spacing:1px; display:inline-block; font-size:16px; transform:scale(calc(1 / var(--br-s)))}
.br-bristles{
  position:absolute; left:30px; right:8px; top:20px; height:13px;
  background:
    repeating-linear-gradient(90deg, #5B4B3A 0 1.2px, #7C6A55 1.2px 2.3px, #4E3F30 2.3px 3.1px),
    #5B4B3A;
  clip-path:polygon(0 0, 100% 0, 99% 70%, 96% 100%, 90% 86%, 84% 100%, 77% 90%, 70% 100%, 62% 88%,
    55% 100%, 47% 91%, 40% 100%, 32% 87%, 25% 100%, 17% 90%, 10% 100%, 4% 88%, 1% 72%);
}
@media (prefers-reduced-motion:reduce){
  .ers-body, .br-body{transition:none}
  .eraser.refuse .ers-body{animation:none}
}

/* ---------------------------- THE DESK CLUSTER, 2026-11-25 ----------------------------
   The owner, in four steps the same day: "make the desk brush and the lens frame of the
   magnifying glass bigger ... array the back/close/query icons nicely in a sort of haphazard but
   nicely balanced way"; "keep the magnifier rotated with the lens upper left, and avoid any
   overlap/contact of the back/close/query buttons"; "keep query on the right, back bottom left
   and close top left in their grouping"; "Group the close/back/query buttons a little closer
   together and well away/not reaching under the journals at all". EVERY POSITION OF THE THREE IS
   HERE, measured from --desk-j, the first book's left edge.
   THE PAGE IS LAID OUT ONCE, ON THE 1376x961 CANVAS (main.js, CANVAS), and the window only
   scales it, so these numbers are the whole story at every window size: the drawings are 8px
   apart (brush to lens, brush to eraser), the handle's tip stops 24px short of the first book,
   and the brush's left end is 17px from the window's edge, below the lights (they end at y 36)
   and below the 50px drag strip, whose width is tied to the brush's left edge (.dragstrip).
   The handle ends at y 135, clear of the folder tabs at 142.
   HIT TARGETS NEVER OVERLAP: each button is a plain upright box, the boxes do not meet, and the
   drawings that run out of them take no press -- except the magnifier's handle, which is part
   of its button.
   THE LENS IS NEVER TURNED, so app.js (magAim) can line its cloth up from its box alone. */
.magnifier, .eraser, .brush{--desk-j:calc(50% - var(--jrnl-row) / 2)}
.magnifier{left:calc(var(--desk-j) - 204px); top:44px; width:86px; height:86px}
.brush{left:calc(var(--desk-j) - 357px); top:50px; width:143px; height:44px}
.eraser{left:calc(var(--desk-j) - 342px); top:96px; width:96px; height:44px}
.ers-body, .ers-crumb, .br-body, .mg-body{pointer-events:none}
.mg-handle{pointer-events:auto}

/* ---------------------- the bare desk, 2026-11-14 ----------------------
   The brush (Close all) sets html[data-desk]. main is not removed, only tucked: it slides a little down
   and fades, and is then hidden so nothing in it can be reached. `translate` and `scale` and
   not `transform`, because the journal deal writes main's transform and the two must not
   fight; openScreen() takes the attribute off and the folder comes back up the same way. */
@media (prefers-reduced-motion: no-preference){
  main{transition:opacity .3s ease, translate .38s cubic-bezier(.4,0,.2,1), scale .38s cubic-bezier(.4,0,.2,1), visibility 0s}
  html[data-desk] main{transition:opacity .3s ease, translate .38s cubic-bezier(.4,0,.2,1), scale .38s cubic-bezier(.4,0,.2,1), visibility 0s linear .38s}
  .deskcal, .clockscrap, .tmspot{transition:opacity .32s ease, translate .4s cubic-bezier(.3,.7,.3,1), visibility 0s linear .4s}
  html[data-desk] .deskcal, html[data-desk] .clockscrap, html[data-desk] .tmspot{transition:opacity .32s ease .18s, translate .4s cubic-bezier(.3,.7,.3,1) .18s, visibility 0s}
}
html[data-desk] main{opacity:0; translate:0 56px; scale:.96; visibility:hidden}

/* ---------------------- the clipboards' lightbox, 2026-11-14 ----------------------
   The owner: "Put the clipboards all in lightbox, leave what's underneath them alone". #boardBox
   is a popover="manual" over the shared dim (the ::backdrop list below) and it covers the window,
   so a press on the dim lands on the box and app.js puts it away. Main is never touched.
   TWO BOARDS, side by side with 24px of cloth between them: ::before is the left and ::after the
   right, wood on the border box, the pad's sheet on the content box, and the spring-bar clip
   (props/clip-spring.svg, drawn for this app) along the top. #boxGrid is a two-column grid laid
   so one column falls on each board's sheet: its 56px gap is the 24px of cloth plus each board's
   16px of wood. The top 64px of the window is the drag strip and the lights, and the foot 34px is
   the copyright's strip, so the boards keep clear of both.
   ON CONNECTIONS each column holds a pad of pages (.pages); the top page is .leaf, and a page
   turning away is .turning, laid over the new one by app.js's leafTurn(). On Routines the list
   runs two across, one column per board, and the list is the one bounded panel that may scroll. */
.boardbox{
  inset:0; width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0;
  border:0; background:transparent; overflow:visible; color:#3E2012;
}
.boardbox[hidden]{display:none}
/* Read aloud, never seen. The paper colour is there because look.js asks every text for a backed
   ancestor, and a clipped 1px box has no reason to be the one exception. */
.boxtitle{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; background:#F7F4EE}
/* 980 wide wherever the window allows, so the two boards and their foot rows are one size at
   every window width. */
.boxgrid{
  position:absolute; inset:152px max(40px, calc(50% - 490px)) 132px; isolation:isolate; box-sizing:border-box;
  padding:64px 16px 24px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr); column-gap:80px;
}
.boxgrid::before, .boxgrid::after{
  /* 8px in from the box's top and foot: a board turned its degree or so reaches about 6px past
     its own corners, and that slack keeps the turn inside the box, which must not overflow. */
  content:""; position:absolute; z-index:-1; top:8px; bottom:8px; width:calc(50% - 24px);
  box-sizing:border-box; padding:17px 16px 16px; border-radius:16px;
  background:url(props/clip-spring.svg) center 2px / 300px 60px no-repeat border-box,
             linear-gradient(rgba(243,240,233,.84), rgba(243,240,233,.84)) content-box,
             url(surfaces/gingham-stone.jpg) center / 760px repeat content-box,
             var(--grain), #C9A784;
  box-shadow:0 2px 3px rgba(62,32,18,.28), 0 16px 26px -6px rgba(62,32,18,.42);
  transform-origin:50% 50%;
}
.boxgrid::before{left:0}
.boxgrid::after{right:0}
/* CONNECTIONS' TWO BOARDS ARE BOUND IN PAISLEY (owner, 2026-11-15): a dusty teal on the left, a
   muted plum on the right: seamless repeats cut from two CC0 Met paper scans (THIRD-PARTY.md),
   tinted, in props/paisley-*.jpg. It shows round the pages and, past the last page, all over.
   Text never sits on it: the pages are paper. */
.boxgrid::before{
  background:linear-gradient(rgba(30,22,34,.16), rgba(30,22,34,.16)), url(props/paisley-teal.jpg) 0 0 / 194px 190px;
  box-shadow:inset 0 0 0 1px rgba(40,30,40,.25), 0 2px 3px rgba(62,32,18,.28), 0 16px 26px -6px rgba(62,32,18,.42);
}
.boxgrid::after{
  background:linear-gradient(rgba(30,22,34,.16), rgba(30,22,34,.16)), url(props/paisley-plum.jpg) 0 0 / 188px 250px;
  box-shadow:inset 0 0 0 1px rgba(40,30,40,.25), 0 2px 3px rgba(62,32,18,.28), 0 16px 26px -6px rgba(62,32,18,.42);
}
/* THE PAPERS SIT UNDER THE CLIP (owner, 2026-11-15: "Make sure all the clipboard papers sit under
   the clip"). Here the pages start 30px down the board, under the clip's bar, and the clip is
   drawn over them as the pad's own ::after -- the same art, at the same place on the board. Only
   the bend of pages folded over it, and a page on its way over, lie on top of it. */
.boxgrid{padding-top:38px}
.boxgrid .leaf{padding-top:44px}
.boxgrid > .pages::after{
  content:""; position:absolute; z-index:3; top:-28px; left:calc(50% - 150px); width:300px; height:60px;
  background:url(props/clip-spring.svg) 0 0 / 300px 60px no-repeat;
}
/* THE BOARDS LAND A HAIR OUT OF TRUE, each turned outward from the centre by its own small amount,
   dealt per opening (boxOpen sets --tilt-l and --tilt-r). Pages turn with their board, about the
   board's own centre: 7px above the pages' centre, the clip strip being 14px taller than the foot. */
.boxgrid::before{transform:rotate(calc(-1 * var(--tilt-l, 0deg)))}
.boxgrid::after{transform:rotate(var(--tilt-r, 0deg))}
.boxgrid > .pages{transform-origin:50% calc(50% - 7px)}
.boxgrid > .pages.l{transform:rotate(calc(-1 * var(--tilt-l, 0deg)))}
.boxgrid > .pages.r{transform:rotate(var(--tilt-r, 0deg))}
.boxgrid .leaf .conn-section{margin:0}

/* THE PAD. Pages stack in one grid cell. A page that turns swings over the top of the board about
   its own top edge, SEEN FLAT ON, with no perspective (owner, 2026-11-15: "At this scale, the
   vertical sides should stay completely parallel ... the width of the paper should stay uniform
   and the appearance of depth should be given by the appearing gradient shadow on the top edge of
   the curl"). So the page's sides never taper. It rolls up from its foot on a curl that tightens
   as it climbs (leafRoll in app.js), and the depth is the shadows on the roll's two edges. */
.pages{position:relative; display:grid; min-height:0}
/* The bend of the pages folded over the clip and down behind the board (leafFold). It covers
   the clip, and gains an edge for each page under it, up to three. */
/* THE ROLL OVER THE TOP, seen from above (2026-11-15, third pass: "let it sit a little more
   loosely above the top of the clipboard"). Earlier note: (owner, 2026-11-15: "curl a little more loosely", then
   "The horizontal line of the peak of the curve should be flat ... more work with shadows than
   curves"). The outline is a plain rectangle with a straight top edge, so no corner dips into
   the board; the roll is all shading: a soft lip where the paper turns away behind, a
   wide highlight along the ridge, a long easing shade down to where it lies flat again, and a soft
   shadow cast on the page below. It covers the clip. Each page under it adds a hairline at the lip. */
.pages > .fold{position:absolute; left:0; right:0; top:-40px; height:68px; z-index:4}
/* The page rolling onto the bundle turns into this same look over its last fifth (leafRoll). */
.pages > .fold, .leafunder::after{
  border-radius:2px;
  /* A loose roll seen from above: it stands 9px proud of the board's top edge, lightest along its
     middle and darkening broadly toward both edges, with no line anywhere. */
  background:linear-gradient(#BDB3A2, #D6CEC0 17.6%, #EFEBE3 35.3%, #FAF8F3 50%, #EFEBE3 64.7%, #D9D1C3 85.3%, #C9C0B0);
  box-shadow:0 10px 22px -6px rgba(62,32,18,.34), 0 4px 8px -3px rgba(62,32,18,.22), 0 1px 2px rgba(62,32,18,.18);
}
.pages > .fold[data-n="2"], .leafunder[data-n="2"]::after{box-shadow:inset 0 2px 0 rgba(150,138,118,.35), 0 10px 22px -6px rgba(62,32,18,.34), 0 4px 8px -3px rgba(62,32,18,.22), 0 1px 2px rgba(62,32,18,.18)}
.pages > .fold[data-n="3"], .leafunder[data-n="3"]::after{box-shadow:inset 0 2px 0 rgba(150,138,118,.35), inset 0 4px 0 rgba(150,138,118,.2), 0 12px 24px -6px rgba(62,32,18,.38), 0 4px 8px -3px rgba(62,32,18,.24), 0 1px 2px rgba(62,32,18,.2)}
/* Pressed under the bar and easing out: a soft shade at the head of each page, under the clip. */
.boxgrid .leaf::before{
  background:linear-gradient(rgba(62,32,18,.13), rgba(62,32,18,.05) 18px, rgba(62,32,18,0) 40px), var(--grain), var(--note);
}
.pages > .fold[hidden]{display:none}
.pages > .leaf{grid-area:1 / 1}
.leaf{
  --note:#F7F4EE;
  position:relative; z-index:0; min-height:0; box-sizing:border-box; padding:22px 26px 24px;
  display:flex; flex-direction:column; gap:14px; transform-origin:50% 0;
}
.leaf::before{
  content:""; position:absolute; inset:0; z-index:-1; border-radius:3px;
  background:var(--grain), var(--note);
  filter:drop-shadow(0 1px 2px rgba(62,32,18,.28));
  clip-path:polygon(0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 0 100%);
  transition:clip-path .78s cubic-bezier(.22,.86,.3,1);
}
/* The corner lifts on the button's hover or focus, by the Settings sticky's own cut and flap:
   app.js deals --curl-fold and the flap's box onto this page (curlDeal), and the flap is the
   button's ::after, in the `.ctrls .menuwrap::after` rule above, anchored on the page's corner. */
.leaf.l:has(> .leafnext:hover)::before, .leaf.l:has(> .leafnext:focus-visible)::before{
  clip-path:polygon(0 0, 100% 0, var(--curl-fold, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%), 0 100%);
  transition:clip-path .62s cubic-bezier(.3,.72,.26,1);
}
/* A page on its way over lies under the clip (z 3) and its back, .leafunder, over it: leafRoll in
   app.js cuts and places both every frame. */
.leaf.turning, .leaf.landing{z-index:2}
/* The next page, under the top one: seen only where a corner lifts. */
.pages > .leaf.under{z-index:-1}
.leaf.ghost::before{clip-path:none}
.pages > .leafface{grid-area:1 / 1; pointer-events:none}
/* The bend's shade, dealt each frame by leafRoll as --bend. */
.pages > .leafface::after{content:""; position:absolute; inset:0; border-radius:3px; pointer-events:none; background:var(--bend, none)}
/* The back of the paper on the roll, seen from above: plain paper, darkening across the roll's
   last --r toward its outer rim, where the surface turns down out of sight. */
.leafunder{
  position:absolute; z-index:5; border-radius:3px; pointer-events:none;
  background:linear-gradient(rgba(62,32,18,0), rgba(62,32,18,.08) 45%, rgba(62,32,18,.30)) 0 100% / 100% var(--r, 14px) no-repeat,
             var(--grain), #ECE7DC;
}
/* The owner, 2026-11-17: the roll's shading is made BY the page lying over, so it spans the whole
   back, from the paper's moving top edge down, and contracts with it onto the bundle's 68px as the
   edge comes down from its peak (the gradient above is in % for that). Coming back, it stretches
   up with the edge the same way. */
.leafunder::after{content:""; position:absolute; inset:0; opacity:var(--m, 0)}
/* Only the bundle itself casts its shadow; the copy keeps just the hairlines of the pages under it. */
.pages > .leafunder::after{box-shadow:none}
.pages > .leafunder[data-n="2"]::after{box-shadow:inset 0 2px 0 rgba(150,138,118,.35)}
.pages > .leafunder[data-n="3"]::after{box-shadow:inset 0 2px 0 rgba(150,138,118,.35), inset 0 4px 0 rgba(150,138,118,.2)}
.leafhead{margin:0; font-size:1.75rem; line-height:1.2; font-weight:800; letter-spacing:.04em; text-transform:uppercase; text-align:center}
.leafsay{margin:0; font-size:19px; line-height:1.45}
.leafrows{display:flex; flex-direction:column; gap:6px; min-height:0}
.leafrow{
  display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px;
  box-sizing:border-box; padding:6px 16px; border:0; border-radius:10px; background:transparent;
  color:inherit; font:inherit; font-size:23px; text-align:left;
}
.leafrow .n{font-weight:700}
.leafrow .st{display:flex; align-items:center; gap:8px; font-size:18px; color:#5A3F2C}
button.leafrow{cursor:pointer}
button.leafrow:focus-visible{outline:none}
/* The chosen one is barred as well as shaded, so colour is not the only sign. */
.leafrow[aria-pressed="true"]{background:rgb(62 32 18 / .13); box-shadow:inset 4px 0 0 #3E2012}
.leafrow.quiet .n{font-weight:600}
.leafnone{margin:0; font-size:19px}
/* THE FOOT ROW, three places that never move: Contents and Back on the left, the corner on the
   right. Each one is a fixed width, so no page's words shift another's. */
.leafnav{position:absolute; left:0; bottom:0; display:flex}
.leafgo, .leafgap{width:112px; min-height:64px; flex:none}
.leafgo + .leafgo{width:80px}
.leafgo{
  box-sizing:border-box; padding:0 0 0 22px; border:0; border-radius:0 12px 0 0; background:transparent;
  color:#3E2012; font:inherit; font-size:18px; font-weight:700; text-align:left; cursor:pointer;
  transition:background-color .2s ease;
}
.leafgo:focus-visible{outline:none}
/* Past the last page there is no paper: the board's cloth shows, and the two that are left sit
   on paper slips of their own so their words are never on the paisley. */
.leaf.bare::before{display:none}
.leaf.bare .leafgo, .leaf.bare .leafnext{background:var(--grain), #F7F4EE; box-shadow:0 1px 3px rgba(40,30,40,.35)}
.leaf.bare .leafgo{border-radius:10px; margin:0 0 10px 10px}
.leaf.bare .leafnext{border-radius:10px; right:10px; bottom:10px; padding-right:22px; width:auto}
.leaf.bare .leafnext::after{display:none}
.leafnext{
  position:absolute; right:0; bottom:0; min-height:64px; width:232px; box-sizing:border-box;
  padding:0 0 0 22px; border:0; border-radius:12px 0 0 0; background:transparent;
  color:#3E2012; font:inherit; font-size:18px; font-weight:700; cursor:pointer;
  display:flex; align-items:center;
}
.leafnext:focus-visible{outline:none}
.leaf.r > .conn-fit{flex:1 1 auto; min-height:0; overflow-y:auto; scrollbar-width:none}
.leaf.r > .conn-fit::-webkit-scrollbar{display:none}
@media (prefers-reduced-motion:reduce){
  .leaf::before{transition:none}
}

/* ---------------------- the desk calendar, 2026-11-14 ----------------------
   A paper month on a kraft back board, wire coil along the top. It is absolute and not fixed:
   with no positioned ancestor it is placed on the window, and nothing here scrolls. Six week
   rows in every month, so the sheet is the same height whichever month is showing. */
/* SMALL AND TO THE LEFT since 2026-11-15, to make room on the desk for the timer and the clock
   scrap ("Scale down and left shift the calendar"). It is not scaled: every word on it stays
   16px or more, so the day's events are marks here and names on the large sheet (.big). */
.deskcal{
  --dc-cell:48px; --dc-row:44px;
  position:absolute; z-index:3; left:max(48px, calc(50% - 560px)); top:max(150px, calc(50% - 200px));
  width:calc(var(--dc-cell) * 7 + 44px);
  cursor:pointer;
  box-sizing:border-box; padding:34px 22px 12px;
  color:var(--ink);
  opacity:0; visibility:hidden; translate:0 18px;
}
html[data-desk] .deskcal{opacity:1; visibility:visible; translate:0 0}
/* Lifted while the large sheet is up, so the two read as one sheet that travelled. */
html[data-desk] .deskcal.lifted{opacity:0; transition:none}
.deskcal:not(.big) .dc-month{font-size:1.4rem}
/* The whole small sheet is a press; its hover deepens the board's shadow, as if lifted a touch. */
.deskcal:not(.big)::before{transition:box-shadow .15s ease}
.deskcal:not(.big):hover::before{box-shadow:0 2px 4px rgba(62,32,18,.34), 0 16px 32px -8px rgba(62,32,18,.55)}
.deskcal:not(.big) :is(.dc-ev, .dc-more){display:none}
.deskcal.big .dc-marks{display:none}
.dc-open{
  border:0; padding:0 8px; border-radius:6px; margin:0; background:transparent; color:inherit;
  font:inherit; line-height:44px; min-height:44px; cursor:pointer; transition:background-color .15s ease;
}
.dc-open:focus-visible{outline:none; box-shadow:var(--foc-sh)}
/* A mark per event: a scrap of sticky note with a pen edge, so it is told by shape, not colour. */
.dc-marks{display:flex; align-items:center; gap:3px; height:16px}
.dc-marks i{display:block; width:10px; height:8px; border-radius:1px; background-color:var(--sticky); box-shadow:0 0 0 1px rgba(62,32,18,.45)}
.dc-marks b{font-size:16px; line-height:16px; font-weight:700; color:var(--ink-2)}

/* THE LARGE SHEET, in its lightbox: the same sheet at the old full size and up, centred in the
   window and kept clear of the drag strip at the top and the copyright strip at the foot. */
.calbox{
  inset:0; width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0;
  border:0; background:transparent; overflow:visible; color:var(--ink);
}
.calbox[hidden]{display:none}
/* `.calbox` in front, so it outweighs html[data-desk] .deskcal's place, transition and translate. */
.calbox .deskcal.big{
  --dc-cell:clamp(88px, calc((100vw - 200px) / 7), 124px);
  --dc-row:clamp(62px, calc((100vh - 330px) / 6), 92px);
  left:50%; top:calc(50% + 15px); translate:-50% -50%; margin:0;
  opacity:1; visibility:visible; cursor:default; transition:none; transform-origin:50% 50%;
}/* The back board shows above the paper, which is where the coil goes through both. */
.deskcal::before{
  content:""; position:absolute; inset:0 -4px 6px; z-index:-2; border-radius:4px;
  background:var(--grain), #B98F5E;
  box-shadow:0 2px 3px rgba(62,32,18,.3), 0 12px 26px -8px rgba(62,32,18,.45);
}
/* The page, with a second sheet's edge peeking under it. */
.deskcal::after{
  content:""; position:absolute; inset:16px 0 0; z-index:-1; border-radius:2px;
  background:var(--grain), var(--surface);
  box-shadow:0 1px 0 #E4DECF, 0 3px 0 -1px #EAE5D9, 0 4px 3px -1px rgba(62,32,18,.25);
}
.dc-coil{
  position:absolute; top:2px; left:26px; right:26px; height:34px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34'%3E%3Cellipse cx='11' cy='26' rx='3.4' ry='2.8' fill='%23473326'/%3E%3Cpath d='M8.6 26.4C7.2 17 7.6 7.4 11.6 5.2C15.2 3.6 16.6 8.6 15.4 13.4' fill='none' stroke='%235E6166' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M9.2 23.4C8.4 16 8.8 8.6 11.4 6.6' fill='none' stroke='%23E6E8EB' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 22px 34px;
}
.dc-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin:6px 0 4px}
.dc-month{font-family:var(--display); font-weight:600; font-size:1.75rem; line-height:1.2; text-align:center; flex:1 1 auto}
.dc-flip{
  flex:0 0 auto; width:44px; height:44px; border:0; border-radius:50%; padding:0 0 4px;
  font:400 34px/1 var(--display); color:var(--ink); background:transparent; cursor:pointer;
  transition:background-color .15s ease;
}
.dc-flip:hover{box-shadow:var(--hov-sh)}
.dc-flip:active{background-color:rgba(62,32,18,.14)}
.dc-flip:focus-visible{outline:none; box-shadow:var(--foc-sh)}
.dc-days, .dc-grid{display:grid; grid-template-columns:repeat(7, var(--dc-cell))}
.dc-days span{font-size:16px; font-weight:600; color:var(--ink-2); text-align:center; padding:4px 0 6px}
.dc-grid{grid-auto-rows:var(--dc-row); border-top:1px solid rgba(62,32,18,.22); border-left:1px solid rgba(62,32,18,.22)}
.dc-day{
  position:relative; box-sizing:border-box; min-width:0; overflow:hidden;
  display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  margin:0; padding:3px 5px; border:0; border-right:1px solid rgba(62,32,18,.22); border-bottom:1px solid rgba(62,32,18,.22);
  background:transparent; color:var(--ink); font:inherit; text-align:left;
  transition:background-color .15s ease;
}
.dc-day.out{background-color:rgba(62,32,18,.035)}
.dc-n{display:inline-flex; align-items:center; justify-content:center; width:30px; height:28px; font-size:18px; line-height:1}
/* TODAY IS RINGED IN PEN AND SET BOLD, so it is told by shape and weight and not by colour. */
.dc-day.today .dc-n{
  font-weight:700;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M17 2.6C9 1.6 2.4 6 2.6 14C2.8 21.6 9 25.8 16 25.4C23.4 25 27.8 20 27.4 13.2C27 6.6 22 2.8 14.4 3.4' fill='none' stroke='%23A3261C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dc-day.has{cursor:pointer}
.dc-day.has:hover{box-shadow:var(--hov-sh)}
.dc-day.has:focus-visible{outline:none; box-shadow:var(--foc-sh)}
.dc-day.has[aria-expanded="true"]{background-color:rgba(62,32,18,.12)}
.dc-ev{
  display:block; width:100%; box-sizing:border-box; padding:1px 4px; border-radius:2px;
  font-size:16px; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background-color:var(--sticky); color:var(--ink);
}
.dc-more{position:absolute; top:6px; right:6px; font-size:16px; font-weight:700; line-height:1; color:var(--ink-2)}
.dc-say{margin:8px 2px 0; height:26px; font-size:18px; line-height:26px; color:var(--ink-2)}

/* The day's card: an index card, sized by what is on it. */
.deskpop{
  inset:auto; margin:0; box-sizing:border-box;
  width:max-content; max-width:min(360px, calc(100vw - 32px)); max-height:calc(100vh - 32px);
  padding:12px 18px 14px; border:0; border-radius:3px;
  background:var(--grain), #FFFDF7; color:var(--ink); font-size:18px; line-height:1.35;
  box-shadow:0 1px 2px rgba(62,32,18,.28), 0 12px 28px -6px rgba(62,32,18,.42);
  scrollbar-width:none;
}
.deskpop::-webkit-scrollbar{display:none}
.dp-day{font-family:var(--display); font-weight:600; font-size:1.2rem; line-height:1.25;
  padding-bottom:6px; border-bottom:2px solid #C4554B}
.dp-ev{margin-top:10px}
.dp-ev + .dp-ev{padding-top:10px; border-top:1px solid #C9D6E6}
.dp-ev p{margin:0}
.dp-t{font-weight:700; font-size:19px}
.dp-m{color:var(--ink-2)}
.dp-src{font-size:16px; color:var(--ink-3)}

/* ---------------------- the clock scrap, 2026-11-15 ----------------------
   The owner: "Add a little clock in/out scrap to this view too". A torn scrap of the calendar's
   paper, to its right, with the room further right kept for the timer (step 3). Its place and its
   show and hide are the calendar's: absolute on the window, on the cloth only under
   html[data-desk]. Step 7 made it a clipboard (below); the shadow is still a drop-shadow filter,
   which follows the board photograph's own alpha.
   FIXED WIDTHS on all three controls, so a ticking total or the Undo coming and going moves
   nothing: the Undo's place is kept when it is away. */
.clockscrap{
  position:absolute; z-index:3; box-sizing:border-box; width:276px; height:436px;
  left:calc(max(48px, calc(50% - 560px)) + 479px); top:calc(max(150px, calc(50% - 200px)) - 64px);
  color:var(--ink); background:url(props/clip-06.png) 0 0 / 100% 100% no-repeat;
  rotate:-1.2deg; filter:drop-shadow(0 1px 1px rgba(62,32,18,.3)) drop-shadow(0 8px 10px rgba(62,32,18,.28));
  opacity:0; visibility:hidden; translate:0 18px;
}
html[data-desk] .clockscrap{opacity:1; visibility:visible; translate:0 0}
/* STEP 7, THE CLIPBOARD (2026-11-16). The board is the photograph clip-06.png (405x640, unused till
   now), drawn at 276x436 so its proportions hold. Its own narrow sheet is covered by a loose
   timesheet, and the clip is the same photograph again on ::after, cut to the clip's outline. The
   outline was MEASURED off the file (dark pixels, rows 0..140) and every point is x/405, y/640.
   The sheet's top (80px = row 117) runs under the clip's bottom plate (rows 100..136). */
.clockscrap::after{
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:inherit;
  clip-path:polygon(50.9% 0, 56.8% 0, 61.2% 4.7%, 63.2% 5.9%, 67.2% 7.2%, 72.1% 9.1%, 77.5% 10.6%,
    77.5% 15.6%, 84.4% 16.6%, 84.4% 21.9%, 21.7% 21.9%, 21.7% 16.6%, 27.7% 15.6%, 27.7% 11.6%,
    30.6% 9.1%, 36% 7.2%, 43.5% 5.6%, 46.4% 3.8%);
}
/* The owner, 2026-11-17: the paper fits on the board. The board's own edges, measured off
   clip-06.png at this size, run x 16..270 and down to y 432; the sheet keeps 10px of board each side. */
.ck-sheet{
  position:absolute; z-index:1; left:26px; right:16px; top:80px; bottom:16px; box-sizing:border-box;
  display:flex; flex-direction:column; padding:30px 14px 14px; rotate:.8deg; border-radius:2px;
  background:var(--grain), #FFFDF7; box-shadow:0 1px 2px rgba(62,32,18,.3);
}
.ck-head{display:flex; flex-direction:column; justify-content:flex-start; align-items:center; gap:0; width:100%; height:54px; margin:0;
  padding:2px 0 0; box-sizing:border-box; border:0; border-bottom:2px solid #C4554B; border-radius:4px 4px 0 0;
  color:var(--ink); background:transparent; font:inherit; cursor:pointer; transition:box-shadow .15s ease}
.ck-head[disabled]{cursor:default}
.ck-head span:first-child{font-family:var(--display); font-weight:600; font-size:1.2rem; line-height:1.2}
/* The owner, 2026-11-17: the date sits centred between the title and the underline, so its span
   fills the room under the title and centres its line in it. The 6px under it offsets the empty
   room the title's line keeps below its letters, so the ink sits halfway (measured in a render). */
.ck-head span:last-child{flex:1; display:flex; align-items:center; padding-bottom:6px; line-height:1; font-size:16px; color:var(--ink-2); font-variant-numeric:tabular-nums}
.ck-lines{margin:auto 0; font-size:19px}
.ck-lines div{display:grid; grid-template-columns:1fr 1fr; column-gap:14px; align-items:end; height:34px;
  box-sizing:border-box; padding:0 4px 4px; border-bottom:1px solid #C9D6E6}
.ck-lines dt{font-weight:600}
.ck-lines dd{margin:0; white-space:nowrap; font-variant-numeric:tabular-nums}
/* The owner, 2026-11-17: a narrower box round Clock in, raised a little off the sheet's foot. */
.ck-row{display:flex; justify-content:center; padding-bottom:8px}
/* Undo and the error line share one spot above the button (2026-11-17: the button sits at the sheet's foot, equal margins bottom, left and right): Undo shows for a few seconds after a
   clock-in or out, and the error only when a save fails, never both. */
/* The owner, 2026-11-17: the rows sit centred between the header and Clock in, so this spot is
   out of the flow and floats in the gap under the rows: every height in the sheet is fixed, which
   leaves a 26px gap, and 57px = 14 sheet padding + 8 + 44 button + 13 half-gap - 22 half-box. */
.ck-foot{display:grid; place-items:center; height:44px; position:absolute; left:14px; right:14px; bottom:57px}
.ck-foot > *{grid-area:1/1}
.ck-say{margin:0; font-size:16px; color:var(--ink-2); text-align:center; white-space:nowrap}
.ck-btn, .ck-undo{
  box-sizing:border-box; margin:0; color:var(--ink); background:transparent; cursor:pointer;
  font:inherit; font-size:19px; line-height:1; transition:box-shadow .15s ease, background-color .15s ease;
}
.ck-btn{width:150px; height:44px; padding:0; border:2px solid var(--ink); border-radius:10px;
  font-family:var(--display); font-weight:600; font-size:1.25rem}
.ck-undo{width:80px; height:44px; padding:0; border:0; border-radius:10px; font-weight:600;
  text-decoration:underline; text-underline-offset:4px; visibility:hidden}
.ck-undo.on{visibility:visible}
:is(.ck-btn, .ck-undo, .ck-head:not([disabled])):hover{box-shadow:var(--hov-sh)}
:is(.ck-btn, .ck-undo):active{background-color:rgba(62,32,18,.14)}
:is(.ck-btn, .ck-undo, .ck-head):focus-visible{outline:none; box-shadow:var(--foc-sh)}
.ck-btn[disabled]{cursor:default; opacity:.6; box-shadow:none}

/* The start card: the two fixed breaks she picks at each clock-in, then one press. */
.cs-row{display:grid; grid-template-columns:auto 150px; align-items:center; gap:16px; margin-top:12px}
.cs-row input{
  box-sizing:border-box; width:150px; height:44px; padding:0 10px; margin:0;
  border:2px solid var(--rule-2); border-radius:8px; background:var(--surface); color:var(--ink);
  font:inherit; font-size:19px; font-variant-numeric:tabular-nums; transition:box-shadow .15s ease;
}
.cs-row input:focus{outline:none; box-shadow:var(--foc-sh)}
.cs-go{margin-top:16px; width:100%; justify-content:center; cursor:pointer}
.cs-go:focus-visible{outline:none; box-shadow:var(--foc-sh)}

/* THE DAY CARD, rework step 5. One card of paper at the middle of the dim per question; the one
   answered flies off left and the next comes in from the right (app.js, dqGo). FIXED SIZES: every
   question is the same 480px card, the three day buttons are fixed boxes, so nothing moves. */
.daybox{
  inset:0; width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0;
  border:0; background:transparent; overflow:hidden; color:var(--ink);
}
.daybox[hidden], .dayq[hidden]{display:none}
.dayq{
  position:absolute; left:50%; top:50%; translate:-50% -50%; box-sizing:border-box; width:480px;
  max-width:calc(100vw - 32px); padding:18px 24px 20px; border-radius:3px;
  background:var(--grain), #FFFDF7; font-size:18px; line-height:1.35;
  box-shadow:0 1px 2px rgba(62,32,18,.28), 0 12px 28px -6px rgba(62,32,18,.42);
}
.dq-types{display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-top:18px}
.dq-type, .dq-skip{
  box-sizing:border-box; margin:0; color:var(--ink); background:transparent; cursor:pointer;
  font:inherit; transition:box-shadow .15s ease, background-color .15s ease;
}
.dq-type{height:56px; padding:0; border:2px solid var(--ink); border-radius:10px;
  font-family:var(--display); font-weight:600; font-size:1.25rem}
.dq-skip{display:block; height:44px; margin:14px 0 0 auto; padding:0 14px; border:0; border-radius:10px;
  font-size:18px; font-weight:600; text-decoration:underline; text-underline-offset:4px}
:is(.dq-type, .dq-skip):hover{box-shadow:var(--hov-sh)}
:is(.dq-type, .dq-skip):active{background-color:rgba(62,32,18,.14)}
:is(.dq-type, .dq-skip):focus-visible{outline:none; box-shadow:var(--foc-sh)}
/* The owner, 2026-11-24: the day-type question is no card. A large centred heading on the dim,
   three coloured scraps in a row under it (Creative yellow, Growth green, Admin purple, the
   journals' hues lifted to paper tints so the ink reads at 8.5:1 or better), and Skip a text link
   centred at the foot of the window. Scoped to #dqType: the break notice shares .dayq and .dq-skip. */
:is(#dqType, #dqBreaks){
  inset:0; translate:none; width:auto; max-width:none; padding:0 16px; border-radius:0;
  background:none; box-shadow:none; display:flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center;
}
:is(#dqType, #dqBreaks)[hidden]{display:none}
.dq-ask{
  margin:0; max-width:900px; color:#FFFDF7; font-family:var(--display); font-weight:600;
  font-size:2.75rem; line-height:1.2; text-wrap:balance;
  text-shadow:0 2px 3px rgba(25,14,4,.8), 0 0 18px rgba(25,14,4,.7);
}
:is(#dqType, #dqBreaks) .dq-types{display:flex; justify-content:center; gap:40px; margin-top:48px}
#dqType .dq-type{
  width:200px; height:140px; border:0; border-radius:3px; font-size:1.6rem;
  background:var(--grain), var(--dq-paper); rotate:var(--dq-tilt);
  box-shadow:0 1px 2px rgba(62,32,18,.3), 0 10px 22px -6px rgba(25,14,4,.6);
}
#dqType .dq-type[data-type="creative"]{--dq-paper:#F4DA6E; --dq-tilt:-2deg}
#dqType .dq-type[data-type="growth"]  {--dq-paper:#BCD49C; --dq-tilt:1.2deg}
#dqType .dq-type[data-type="admin"]   {--dq-paper:#D2BEE0; --dq-tilt:-1deg}
#dqType .dq-type:hover{box-shadow:0 1px 2px rgba(62,32,18,.3), 0 16px 30px -6px rgba(25,14,4,.7), var(--hov-sh)}
#dqType .dq-type:active{filter:brightness(.92)}
#dqType .dq-type:focus-visible{box-shadow:0 1px 2px rgba(62,32,18,.3), 0 10px 22px -6px rgba(25,14,4,.6), var(--foc-sh)}
#dqType .dq-skip{
  position:absolute; left:50%; bottom:48px; translate:-50% 0; margin:0; padding:0 18px;
  color:#FFFDF7; font-size:19px; text-shadow:0 1px 3px rgba(25,14,4,.9);
}
#dqType .dq-skip:active{background-color:rgba(255,253,247,.14)}
/* The owner, 2026-11-24: the break question in the same heading as the type question, each time
   on its own scrap, and Clock in a stylised punch card: manila stock with the cut corner, a band
   of punched holes top and bottom, the words typed in the middle. clip-path cuts the corner, so
   its shadow is a drop-shadow filter (box-shadow would be clipped away). */
.dq-scrap{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  box-sizing:border-box; width:220px; height:150px; border-radius:3px; font-size:19px; font-weight:600;
  background:var(--grain), #FFFDF7; rotate:var(--dq-tilt);
  box-shadow:0 1px 2px rgba(62,32,18,.3), 0 10px 22px -6px rgba(25,14,4,.6);
}
.dq-scrap:first-child{--dq-tilt:-1.6deg}
.dq-scrap:last-child{--dq-tilt:1.2deg}
.dq-scrap input{
  box-sizing:border-box; width:150px; height:44px; padding:0 10px; margin:0;
  border:2px solid var(--rule-2); border-radius:8px; background:var(--surface); color:var(--ink);
  font:inherit; font-weight:400; font-size:19px; font-variant-numeric:tabular-nums; transition:box-shadow .15s ease;
}
.dq-scrap input:focus{outline:none; box-shadow:var(--foc-sh)}
.dq-punch{
  display:block; box-sizing:border-box; width:300px; height:120px; margin:48px auto 0; padding:0; border:0;
  color:var(--ink); cursor:pointer; rotate:.6deg;
  font-family:var(--mono); font-weight:700; font-size:1.6rem; letter-spacing:.22em; text-transform:uppercase;
  clip-path:polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
  background:
    radial-gradient(circle, #2A1A0C 0 3px, transparent 3.6px) 6px 8px / 16px 14px repeat-x,
    radial-gradient(circle, #2A1A0C 0 3px, transparent 3.6px) 14px calc(100% - 8px) / 16px 14px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(62,32,18,.08) 15px 16px),
    #EEDDB4;
  filter:drop-shadow(0 1px 1px rgba(62,32,18,.35)) drop-shadow(0 10px 14px rgba(25,14,4,.55));
  transition:filter .15s ease, transform .1s ease;
}
.dq-punch:hover{filter:drop-shadow(0 1px 1px rgba(62,32,18,.35)) drop-shadow(0 16px 20px rgba(25,14,4,.7))}
.dq-punch:focus-visible{outline:none; filter:drop-shadow(0 1px 1px rgba(62,32,18,.35)) drop-shadow(0 10px 14px rgba(25,14,4,.55)) brightness(1.08)}
.dq-punch:active{transform:translateY(3px)}
@media (max-width:760px){ .dq-scrap{width:170px} :is(#dqType, #dqBreaks) .dq-types{gap:16px} #dqType .dq-type{width:150px; height:110px} .dq-ask{font-size:2rem} }
.dq-done{width:auto; padding:18px 28px; font-family:var(--display); font-weight:600; font-size:1.4rem;
  white-space:nowrap}
.dq-done p{margin:0}
/* The owner, 2026-11-24: the questions "transition smoothly into each other", and the dim stays.
   Zoom and crossfade at once: the answered one swells a little as it fades, the next grows in from
   a little small. Both run together over the same dim, which never moves. */
.dayq.out{animation:dqOut .34s cubic-bezier(.4,0,.6,1) forwards; pointer-events:none}
.dayq.in{animation:dqIn .42s cubic-bezier(.2,.8,.3,1)}
@keyframes dqOut{to{opacity:0; transform:scale(1.08)}}
@keyframes dqIn{from{opacity:0; transform:scale(.92)}}
.daybox.dimming .dayq{opacity:0; transition:opacity .33s ease}
@media (prefers-reduced-motion: reduce){ .dayq.out, .dayq.in{animation:none} }

/* The break notice, step 6: the day card's paper, one line, and its buttons on one row. */
.bn-say{margin:14px 0 0; font-size:19px}
.bn-acts{display:flex; align-items:center; gap:12px; margin-top:18px}
.bn-go{min-width:140px; height:48px; justify-content:center; cursor:pointer}
.bn-go:focus-visible{outline:none; box-shadow:var(--foc-sh)}
.bn-acts .dq-skip{margin:0}
.bn-acts .dq-skip[hidden]{display:none}

/* The week's log. ONE WIDTH FOR EVERY WEEK, the widest a line can be, so a flip never moves
   the arrows under the hand; its height follows the week, from the top down. */
.deskpop.clocklog{width:500px; max-width:calc(100vw - 32px)}
.clocklog .dc-head{margin:0; padding-bottom:2px; border-bottom:2px solid #C4554B}
.cl-week{flex:1 1 auto; margin:0; text-align:center; font-family:var(--display); font-weight:600;
  font-size:1.2rem; line-height:1.25; font-variant-numeric:tabular-nums}
.cl-day{display:grid; grid-template-columns:72px repeat(4, 1fr); gap:10px; padding:6px 0;
  border-bottom:1px solid #C9D6E6; font-variant-numeric:tabular-nums; white-space:nowrap}
.cl-cols{font-weight:600}
.cl-day.today .cl-d{font-weight:700}
.cl-foot{display:flex; justify-content:space-between; margin:8px 0 0; font-weight:700; font-size:19px;
  font-variant-numeric:tabular-nums}

/* ---------------------- the work timer, 2026-11-16 ----------------------
   docs/DESK-WORK-PERIODS.md step 3. An index card on the cloth right of the clock scrap, placed and
   shown by the scrap's own rules. FIXED SIZES throughout: the phase, the count and the note each
   keep one line's room, and the three controls are fixed boxes, so a tick, a new phase or Reset
   coming and going moves nothing. */
/* THE FACE ON THE CLOTH, rework step 2 (2026-11-16): the face sits where the card did, and the
   card lives in its own lightbox. The time left beside it keeps one fixed box, empty at rest, so
   a tick or a phase moves nothing. The press is the whole round face; hover and focus are a
   shadow on the round, never a ring. */
.tmspot{
  position:absolute; z-index:3; display:flex; align-items:center; gap:14px;
  left:calc(max(48px, calc(50% - 560px)) + 850px); top:calc(max(150px, calc(50% - 200px)) + 6px);
  opacity:0; visibility:hidden; translate:0 18px;
}
html[data-desk] .tmspot{opacity:1; visibility:visible; translate:0 0}
.tmface{
  box-sizing:border-box; flex:0 0 auto; width:128px; height:128px; margin:0; padding:0; border:0;
  border-radius:50%; background:transparent; cursor:pointer;
  filter:drop-shadow(0 3px 3px rgba(62,32,18,.32)) drop-shadow(0 18px 20px rgba(62,32,18,.34));
  transition:box-shadow .15s ease, filter .15s ease;
}
/* The circle is 28 of the file's 32 units, so the picture is drawn 1/7 over the box each way
   and the round box meets the round body. */
.tmface img{display:block; width:146px; height:146px; margin:-9px; pointer-events:none;
  /* The owner, 2026-11-17: "more depth ... coming up at the viewer". Solid steps under the body
     draw its side wall, so it reads as a thick puck standing off the cloth, not a flat disc. */
  filter:drop-shadow(0 1.5px 0 #BF6243) drop-shadow(0 1.5px 0 #AB573B) drop-shadow(0 1.5px 0 #974D35)
    drop-shadow(0 1.5px 0 #84442F) drop-shadow(0 1.5px 0 #743C2A) drop-shadow(0 1.5px 0 #663525)}
/* The owner, 2026-11-16: a near-white dial, a dark handle with a white mark, and a colour bar
   round the dial that winds up to the time set when a timer starts and runs down with it. The
   pale bar is the time set; the strong bar and the handle are the time left in this hour. Over
   an hour, the badge says how many more full hours are left. The bar's colour says what kind of
   time it is (work, break, paused); the words are in the tooltip and the tag beside the face. */
.tmface{position:relative}
.tm-dial{position:absolute; left:-9px; top:-9px; width:146px; height:146px; overflow:visible; pointer-events:none}
.tm-dial circle.tm-total, .tm-dial circle.tm-arc{
  fill:none; stroke-width:1.7; stroke-dasharray:0 60; transition:stroke-dasharray .5s linear, stroke .3s ease;
}
.tm-dial circle.tm-total{stroke:var(--tm-c, #0F766E); opacity:.28}
.tm-dial circle.tm-arc{stroke:var(--tm-c, #0F766E)}
.tm-hand{transform-box:fill-box; transform-origin:center; transition:transform .5s linear}
.tmface.brk{--tm-c:#6E9CD0}               /* pastel, beside the terracotta (owner, 2026-11-17) */
.tmface.held{--tm-c:#A86A12}
.tmface.wind .tm-arc, .tmface.wind .tm-total{transition:stroke-dasharray .9s cubic-bezier(.3,.8,.3,1)}
.tmface.wind .tm-hand{transition:transform .9s cubic-bezier(.3,.8,.3,1)}
.tmface.snap :is(.tm-arc, .tm-total, .tm-hand){transition:none}
.tm-laps{
  position:absolute; top:-6px; right:-10px; box-sizing:border-box; min-width:48px; height:28px; padding:0 8px;
  border-radius:14px; background:#2A2320; color:#FFFFFF; font:700 16px/28px var(--display);
  font-variant-numeric:tabular-nums; text-align:center; pointer-events:none;
  box-shadow:0 1px 2px rgba(62,32,18,.35);
}
.tm-laps:empty{visibility:hidden}
.tmface.lifted{opacity:0; transition:none}
.tmface:hover{filter:drop-shadow(0 4px 4px rgba(62,32,18,.36)) drop-shadow(0 24px 26px rgba(62,32,18,.42))}
.tmface:active{filter:drop-shadow(0 2px 2px rgba(62,32,18,.3)) drop-shadow(0 10px 12px rgba(62,32,18,.28)) brightness(.94)}
.tmface:focus-visible{outline:none; box-shadow:var(--foc-sh)}
.tm-side{
  position:absolute; left:0; bottom:calc(100% + 12px);   /* centred above the face (owner, 2026-11-17) */
  box-sizing:border-box; width:128px; height:52px; margin:0; padding:0 10px; border-radius:6px;
  line-height:52px; font-family:var(--display); font-weight:600; font-size:2rem; color:var(--ink);
  font-variant-numeric:tabular-nums; letter-spacing:.02em; white-space:nowrap; text-align:center;
  background:var(--grain), #FFFDF7; box-shadow:0 1px 2px rgba(62,32,18,.28), 0 6px 12px -4px rgba(62,32,18,.35);
  opacity:0; transition:opacity .15s ease; pointer-events:none;
}
/* The owner, 2026-11-17: the plain countdown shows only while the face is hovered (or has the
   keyboard), centred in its box, and since
   the same day the box floats centred above the face. Its box stays put, so showing it moves nothing. */
.tmface:is(:hover, :focus-visible) ~ .tm-side:not(:empty){opacity:1}
/* The lightbox: the whole window, as the calendar's is, with the card centred in it. */
.tmbox{
  inset:0; width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0;
  border:0; background:transparent; overflow:visible; color:var(--ink);
}
.tmbox[hidden]{display:none}
.desktimer[hidden]{display:none}
.desktimer{
  position:absolute; z-index:3; box-sizing:border-box; width:400px;
  left:50%; top:calc(50% + 15px); translate:-50% -50%;
  padding:16px 20px 14px; color:var(--ink); border-radius:4px;
  background:var(--grain), #FFFDF7; transform-origin:50% 50%;
  box-shadow:0 1px 2px rgba(62,32,18,.28), 0 10px 22px -6px rgba(62,32,18,.4);
}
.tm-phase, .tm-note{margin:0; height:26px; line-height:26px; font-size:19px; white-space:nowrap; overflow:hidden}
.tm-phase{font-family:var(--display); font-weight:600; font-size:1.25rem;
  padding-bottom:4px; border-bottom:2px solid #C4554B; box-sizing:content-box}
.tm-left{margin:6px 0 0; height:64px; line-height:64px; font-family:var(--display); font-weight:600;
  font-size:3.6rem; font-variant-numeric:tabular-nums; letter-spacing:.02em}
.tm-note{color:var(--ink-2); font-variant-numeric:tabular-nums}
.tm-row{display:flex; align-items:center; gap:8px; margin-top:12px}
/* Minutes and For: one label column, the field the rest of the line. Locked while a timer is out
   of its rest, in place, so nothing moves. */
.cs-row.tm-set{grid-template-columns:84px 1fr; margin-top:8px}
.tm-set :is(input, select){
  box-sizing:border-box; width:100%; height:44px; padding:0 10px; margin:0;
  border:2px solid var(--rule-2); border-radius:8px; background:var(--surface); color:var(--ink);
  font:inherit; font-size:19px; font-variant-numeric:tabular-nums; transition:box-shadow .15s ease;
}
.tm-set select{text-overflow:ellipsis; cursor:pointer}
.tm-set :is(input, select):focus{outline:none; box-shadow:var(--foc-sh)}
.tm-set :is(input, select):disabled{opacity:.75; cursor:default}
#timerAdv .cs-row:has(input:disabled){opacity:.5}
.tm-go, .tm-link{
  box-sizing:border-box; margin:0; padding:0; color:var(--ink); background:transparent; cursor:pointer;
  font:inherit; font-size:19px; line-height:1; transition:box-shadow .15s ease, background-color .15s ease;
}
.tm-go{width:132px; height:48px; border:2px solid var(--ink); border-radius:10px;
  font-family:var(--display); font-weight:600; font-size:1.25rem}
.tm-link{width:68px; height:44px; border:0; border-radius:10px; font-weight:600;
  text-decoration:underline; text-underline-offset:4px}
.tm-link[disabled]{visibility:hidden}
:is(.tm-go, .tm-link):hover{box-shadow:var(--hov-sh)}
:is(.tm-go, .tm-link):active{background-color:rgba(62,32,18,.14)}
:is(.tm-go, .tm-link):focus-visible{outline:none; box-shadow:var(--foc-sh)}
/* A switch: the knob's place says on or off, so colour is never the only sign. The whole line is
   the press, 44px high. */
.tm-saver{display:flex; align-items:center; gap:12px; height:44px; margin-top:8px; padding:0 6px;
  margin-left:-6px; border-radius:8px; cursor:pointer; font-size:19px; transition:box-shadow .15s ease}
.tm-saver:hover{box-shadow:var(--hov-sh)}
.tm-saver:has(:focus-visible){box-shadow:var(--foc-sh)}
.tm-saver input{
  appearance:none; flex:0 0 auto; position:relative; width:52px; height:30px; margin:0; cursor:pointer;
  border:2px solid var(--ink); border-radius:15px; background:transparent; transition:background-color .15s ease;
}
.tm-saver input::after{
  content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%;
  background:var(--ink); transition:translate .15s ease, background-color .15s ease;
}
.tm-saver input:checked{background:var(--ink)}
.tm-saver input:checked::after{translate:22px 0; background:#FFFDF7}
.tm-saver input:focus-visible{outline:none}
/* Its settings card: three lengths under one "Minutes:" header, the rounds, and the sound. */
.ta-sub{margin:10px 0 0; font-weight:700; font-size:19px}
.ta-gap{margin-top:16px}
.ta-sound{margin-top:10px}
.ta-art{display:flex; align-items:center; gap:12px; margin-top:6px}
.ta-folder{width:180px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:19px}
.ta-pick{width:96px}
.ta-pick[disabled]{visibility:visible; opacity:.6; cursor:default; box-shadow:none}

/* ---------------------- the screensaver, 2026-11-16 ----------------------
   The whole window, black edge to edge, the artwork whole (contain, never cropped), and the
   timer's phase and count in white in the lower right so a glance from the bench says how long
   is left. The © notice keeps its place bottom left, as on every screen. */
.saver{
  position:fixed; inset:0; width:100vw; height:100vh; max-width:none; max-height:none; margin:0;
  padding:0; border:0; background:#000; color:#fff; cursor:none; overflow:hidden;
  opacity:0; transition:opacity .6s ease, display .6s allow-discrete, overlay .6s allow-discrete;
}
.saver:popover-open{opacity:1}
@starting-style{ .saver:popover-open{opacity:0} }
.saver::backdrop{background:transparent}
.sv-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .8s ease}
.sv-img.on{opacity:1}
.sv-none{position:absolute; left:0; right:0; top:45%; margin:0; text-align:center; font-size:1.5rem}
.sv-time{position:absolute; right:32px; bottom:24px; margin:0; display:flex; align-items:baseline; gap:16px;
  padding:10px 18px; border-radius:12px; background:rgba(0,0,0,.72); font-size:1.4rem;
  font-family:var(--display); font-weight:600}
.sv-left{display:inline-block; min-width:5ch; text-align:right; font-size:2rem; font-variant-numeric:tabular-nums}
.sv-copy{position:absolute; left:24px; bottom:4px; margin:0; font-size:16px; color:#BDBDBD; pointer-events:none}
/* STEP 8: the warning. Fixed width and a fixed box for the count, so a tick moves nothing. */
.svwarn{
  inset:0; margin:auto; box-sizing:border-box; width:340px; height:max-content; padding:18px 24px 16px;
  border:0; border-radius:3px; text-align:center; color:var(--ink);
  background:var(--grain), #FFFDF7; box-shadow:0 1px 2px rgba(62,32,18,.28), 0 12px 28px -6px rgba(62,32,18,.42);
}
.svwarn::backdrop{background:transparent}
.svw-say{margin:0; font-family:var(--display); font-weight:600; font-size:1.5rem}
.svw-say span{display:inline-block; width:2ch; text-align:left; font-variant-numeric:tabular-nums}
.svw-hint{margin:6px 0 0; font-size:18px; color:var(--ink-2)}
@media (prefers-reduced-motion: reduce){ .saver, .sv-img{transition:none} }

/* ------------------------- the journal opens, 2026-11-13 ------------------------- */
/* The owner, in three answers on one day: "Zoom the whole journal from its position to centre
   screen, light box bg blur and animate it opening to a contents page"; then "have each journal
   actually zoom/slide out of its spot, leaving a space behind ... have it start closed like a
   book and open animated"; then "have the cover open to show two paper pages spread, not cover
   left and first leaf right. I'll get anna to draw some artwork for each inside left page."
   THE ZOOM IS WRITTEN IN TWO HALVES AND THE SPLIT IS THE POINT. Where the book ENDS UP is the
   middle of the window, which is pure CSS and needs no measurement. Where it STARTS is wherever
   the pressed book happens to be, which only a measurement knows, so app.js reads that one rect
   and writes --fx, --fy and --fs. Nothing in here has to know where the three books sit, and
   nothing there has to know how big the open book is.
   THE BOX IS ALWAYS THE SPREAD, 800px, EVEN WHILE THE BOOK IS SHUT, and --bk-shift is what makes
   a shut book look centred inside it. Shut, only the right half is painted, so the box is slid
   LEFT by half a page and the painted half lands in the middle of the window; opening takes the
   shift back to zero and the spread settles centred. One number, animated with everything else,
   and no second layout for the shut state.
   WHICH POINT HOLDS STILL UNDER THE ZOOM IS transform-origin, and it is 75% and not 50% for the
   same reason: 75% of the spread is the middle of the right-hand page, which is the middle of
   the SHUT book, and that is the point that has to fly out of the row and land in the centre.
   An origin at 50% would fly the spread's centre instead and the book would arrive half a page
   off. --fs is read in app.js against ONE page's width, to match.
   THE STAGE IS THE POPOVER AND THE BOOK IS A PLAIN CHILD OF IT, the shape the date note settled
   on earlier the same day: one ::backdrop pools behind the whole thing. The reset below is that
   note's, line for line -- a popover arrives with a UA width, border, padding and background
   that would otherwise draw a white box round the book. .bookbox is in the shared dim's three
   selector lists at the foot of this file. */
.bookbox{
  position:fixed; inset:0; z-index:34;
  width:auto; height:auto; max-width:none; max-height:none;
  margin:0; padding:0; border:0; background:none; overflow:visible;
}
.bookbox[hidden]{display:none}
/* One style pass with no transitions, at the press: the copy is put on the row book wherever that
   book is at that instant -- tucked, half out, or partway through its slide -- instead of
   gliding there from wherever it last landed. */
.bookbox.snap, .bookbox.snap *, .bookbox.snap *::before, .bookbox.snap *::after{transition:none !important}
.bookopen{
  --fx:0px; --fy:0px; --fs:.3; --fr:0deg; --fsy:var(--fs);
  --bk-shift:calc(var(--bk-w) * -0.5);
  position:fixed; left:50%; top:50%;
  width:calc(var(--bk-w) * 2); height:var(--bk-h);
  /* The leaf turns about its spine, so it needs depth to turn through. */
  perspective:1900px;
  transform-origin:75% 50%;
  transform:translate(calc(-50% + var(--bk-shift) + var(--fx)), calc(-50% + var(--fy))) scale(var(--fs), var(--fsy)) rotate(var(--fr));
  opacity:0;
}
/* The dialogue takes the keyboard the instant it arrives, so nothing is focused on the book that
   has just been hidden out of the row. Focus is never a ring here either: the thing under the
   hand is the whole book, and the lines inside it show their own focus. */
.bookopen:focus, .bookopen:focus-visible{outline:0}
.bookbox.up .bookopen{transform:translate(calc(-50% + var(--bk-shift)), -50%) scale(1) rotate(0deg); opacity:1}
.bookbox.open .bookopen{--bk-shift:0px}
/* A PAGE OF THE BOOK. Both pages are the same object: same paper, same size, same shadow, and
   they differ only in which edge their gutter shade is on. The height is --bk-h and not the
   content's -- the token says why. */
.bkpage{
  position:absolute; top:0; left:var(--bk-w);
  width:var(--bk-w); height:100%; overflow:hidden;
  padding:26px 30px 30px;
  background-color:var(--surface);
  box-shadow:0 2px 3px rgba(62,32,18,.34), 0 22px 46px rgba(62,32,18,.46);
}
/* NO RULED LINES ON THE PAPER, 2026-11-13, at the owner's word: "no page ruled lines". The pages
   are plain stock now. The rule that drew them is gone rather than commented out: it was one
   repeating gradient and nothing else reads it. */
/* THE RIGHT-HAND PAGE IS THE CONTENTS AND IT LIES UNDER THE LEAF. Its gutter shade is on its
   LEFT edge, where the spine is, and its outer corners are the right-hand pair. */
.bkright{
  z-index:1;
  border-radius:0 11px 11px 0;
  background-image:linear-gradient(90deg, rgba(62,32,18,.15) 0 2px, rgba(62,32,18,.055) 2px 18px, rgba(62,32,18,0) 18px);
}
/* THE LEAF THAT TURNS, and the one thing in here worth reading twice. Its FRONT is the coloured
   board with the strip of tape -- the shut book. Its BACK is the left-hand paper page. One
   rotation about the spine carries the whole object from shut to spread: the board goes over and
   away, and what it leaves lying on the left is paper, which is what the owner asked for.
   NOTHING VANISHES, which is the reason it is built this way rather than as a cover that swings
   off and a left page underneath. A cover with nowhere to go has to be hidden at about 90deg,
   and a thing that blinks out halfway through a movement reads as a fault rather than as a page
   being turned.
   backface-visibility is what hands the two faces over to each other at 90deg, and it is why
   each face carries it rather than the leaf. */
.bkleaf{
  position:absolute; top:0; left:var(--bk-w);
  width:var(--bk-w); height:100%; z-index:2;
  transform-origin:left center; transform-style:preserve-3d;
  transform:rotateY(0deg);
}
.bookbox.open .bkleaf{transform:rotateY(-180deg)}
/* The front of the leaf: the cover. It carries its own strip of tape, so the word on the shelf
   and the word in the middle of the screen are the same word all the way through the zoom. */
.bkcover{
  position:absolute; inset:0; backface-visibility:hidden;
  border-radius:3px 11px 11px 3px;
  background-color:var(--jrnl);
  background-image:
    radial-gradient(120% 180% at 28% 8%, rgba(255,255,255,.14), rgba(255,255,255,0) 62%),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0) 0 2px, rgba(255,255,255,.05) 2px 3px, rgba(255,255,255,0) 3px 5px);
  box-shadow:0 2px 4px rgba(62,32,18,.34), 0 22px 46px rgba(62,32,18,.46);
}
/* THE WORD TRAVELS WITH THE BOOK, 2026-11-13, at the owner's word: "make the tape title labels
   on the journals PART of the graphic so they animate with them, rather than snap disappearing
   and reappearing at the start/end of open/close animations". The book in the row goes invisible
   the moment the flight starts (`.journal[data-away]`), and the flying cover carried no tape --
   so the word blinked out at the start of every open and blinked back at the end of every close.
   It is the SAME STRIP, not a copy of it: `.tape .jlabel` is one rule and this sets one number.
   The cover is --bk-w wide (470) and the book in the row is --jrnl-w (192), so the strip has to
   be drawn 2.41x bigger here for the flight's own shrink to land it at exactly the size the row
   was showing. CSS cannot divide one length by another, so the ratio is written out; the two
   numbers it comes from are named above, and `getBoundingClientRect` on the two strips is what
   proves it, not arithmetic in a comment.
   IT IS NOT 470/192 = 2.448 BUT 2.41, and the difference is the tilt. The flight is scaled
   against the book's BOUNDING box, and a 230px board turned a degree or so is 2-5px wider than
   its own 192. The three books lean by different amounts, so no single figure is exact for all
   three; 2.41 is the middle of the three and the worst of them is under half a pixel out on a
   22px word.
   THE BACK OF THE BOARD STAYS BARE, which is the owner's earlier word -- "remove the inverted
   sticky tape title from the inside of the open cover, it's not transparent" -- and it is kept
   for free: the strip is a child of a face that carries backface-visibility:hidden and is not
   itself a 3D context, so it is flattened into that face and turns away with it at 90 degrees.
   isolation is what keeps the ink's multiply on the board: without it the blend would reach
   through to the contents page lying under the leaf. */
.bkcover{isolation:isolate}
/* 470 / 192 EXACTLY since 2026-11-14: the flight is now scaled by the book's own width and not
   its tilted outline (app.js, aimAt), so the old 2.41 compromise would land the word 1.6% small. */
.bkcover .jlabel{--tape-grow:2.448}
/* THE COVER IN FLIGHT IS DRAWN AS THE ROW BOOK IS, 2026-11-14, at the owner's word: "still sorta
   jump or flicker as they move from animated state to static element state. Pixel perfect, they
   should be as one element". The row book has a bound foot (the boards and the page block,
   .journal and .journal::after) and a two-part shadow; the big cover had neither, so the swap at
   each end of the flight changed the picture. While the stage is not `up` -- the first frame of
   an opening and the whole way home -- the cover wears the row book's foot, corners and shadow,
   every px figure multiplied by 2.42 so the flight's shrink brings them to the row's size. They
   fade over the same .46s as the flight, so the big open book looks as it did. */
.bkcover::before, .bkcover::after{content:""; position:absolute; pointer-events:none; opacity:0}
.bkcover::before{
  left:0; right:0; bottom:0; height:43.6px; border-radius:0 0 27px 27px;
  background-image:linear-gradient(to top,
    rgba(26,13,6,.58) 0 4.8px,
    color-mix(in oklab, var(--jrnl) 58%, #000) 4.8px 12.1px,
    rgba(26,13,6,.50) 12.1px 33.9px,
    color-mix(in oklab, var(--jrnl) 88%, #fff) 33.9px 41.1px,
    rgba(26,13,6,.20) 41.1px 43.6px);
}
.bkcover::after{
  left:12.2px; right:12.2px; bottom:12.1px; height:21.8px; border-radius:0 0 4.8px 4.8px;
  background-color:var(--pages);
  background-image:
    linear-gradient(to bottom,
      rgba(26,13,6,.40) 0 2.4px,
      rgba(26,13,6,.12) 2.4px 7.3px,
      rgba(0,0,0,0) 9.7px calc(100% - 4.8px),
      rgba(26,13,6,.32) calc(100% - 4.8px)),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.34) 0 1.2px, rgba(255,255,255,0) 1.2px 7.3px),
    repeating-linear-gradient(90deg,
      rgba(62,32,18,.22) 0 1.2px, rgba(62,32,18,0) 1.2px 4.8px);
}
/* THE SHUT COPY CASTS ITS SHADOW THE WAY THE ROW BOOK DOES: two chained drop-shadow filters, and
   not a box-shadow list. Chained filters compound -- the second shadows the first -- so a
   box-shadow with the same numbers is lighter, and the step showed at the landing. The pages
   under the cover cast nothing while shut, for the same reason. */
.bookbox:not(.up) .bkcover{
  border-radius:0 0 27px 27px; box-shadow:none;
  filter:drop-shadow(0 7.3px 9.7px rgba(62,32,18,.42)) drop-shadow(0 34px 58px rgba(62,32,18,.40));
}
.bookbox:not(.up) .bkpage{box-shadow:none}
.bookbox:not(.up) .bkcover::before, .bookbox:not(.up) .bkcover::after{opacity:1}
/* The page under the cover takes the same corners, or its square corner shows past the cover's
   rounded one. */
.bookbox:not(.up) .bkright{border-radius:0 0 27px 27px}
@media (prefers-reduced-motion: no-preference){
  .bkcover{transition:box-shadow .46s cubic-bezier(.32,.74,.28,1), filter .46s cubic-bezier(.32,.74,.28,1), border-radius .46s cubic-bezier(.32,.74,.28,1)}
  .bkpage{transition:box-shadow .46s cubic-bezier(.32,.74,.28,1)}
  .bkright{transition:box-shadow .46s cubic-bezier(.32,.74,.28,1), border-radius .46s cubic-bezier(.32,.74,.28,1)}
  .bkcover::before, .bkcover::after{transition:opacity .46s cubic-bezier(.32,.74,.28,1)}
}
/* The back of the leaf: the left-hand page. Its own half-turn is what keeps it the right way
   round once the leaf has gone over -- the leaf's turn and this one cancel, so the artwork is
   never mirrored and its left edge is the outer edge of the spread. The gutter shade is
   therefore on its RIGHT edge, and the rounded corners are the left-hand pair. */
.bkleft{
  left:0; transform:rotateY(180deg); backface-visibility:hidden;
  border-radius:11px 0 0 11px;
  background-image:linear-gradient(270deg, rgba(62,32,18,.15) 0 2px, rgba(62,32,18,.055) 2px 18px, rgba(62,32,18,0) 18px);
}
/* ANNA'S DRAWING GOES HERE, one per journal, and the slot is EMPTY until she has drawn them.
   --bk-art is `none` on every book below, so this box paints nothing and the left page is a
   blank sheet of paper -- which is the honest state and not a gap in the build. When a drawing
   lands, put the file in renderer/props/ and give that book its one line. `contain` and not
   `cover`, so a drawing is never cropped by a page whose proportions it was not drawn for. */
.bkart{
  position:absolute; inset:26px 30px 30px;
  background-image:var(--bk-art, none);
  background-repeat:no-repeat; background-position:center; background-size:contain;
}
/* THE GUTTER, drawn over both pages and over the leaf, so the two sheets read as one spread with
   a fold down it rather than as two cards side by side. It is nothing while the book is shut,
   because a shut book has no gutter to show. */
.bkspine{
  position:absolute; top:0; left:calc(var(--bk-w) - 11px);
  width:22px; height:100%; z-index:3; pointer-events:none; opacity:0;
  background-image:linear-gradient(90deg,
    rgba(62,32,18,0) 0, rgba(62,32,18,.16) 40%, rgba(62,32,18,.22) 50%, rgba(62,32,18,.13) 60%, rgba(62,32,18,0) 100%);
}
.bookbox.open .bkspine{opacity:1}
.bklist{list-style:none; margin:0; padding:0; position:relative; z-index:1}
/* A LINE IS 56px TALL AND THE FULL WIDTH OF THE PAGE, over the 44px a hand needs, so nobody has
   to land on the words themselves. The sizing is in this one rule: the three state rules below
   change colour and fill and never the box. */
.bklist button{border-radius:9px}
/* A DASH ON EACH LINE, 2026-11-13, at the owner's word: "give all journal list items dashes,
   not bullets". It is a drawn rule and not the character, so its length and weight are fixed
   and do not move with the font.
   THE SCREEN YOU ARE ON STILL HAS A SHAPE OF ITS OWN and not only a tint behind it: its dash
   is darker and thicker. That is the rule the ring was keeping -- colour is never the only
   signal -- and the dash keeps it. The box does not change: the extra weight is drawn inside
   the same 11px slot, centred on the same line. */
.bklist button[aria-current="page"]::before{background-color:var(--ink-2); height:4px; margin-top:-2px}
/* A LINE WITH NO SCREEN BEHIND IT, 2026-11-13. Five of the twelve names the owner dictated have
   nothing built behind them yet, and they are listed rather than dropped, so each one says why
   it will not answer. The word carries it; the fade only agrees with the word. 17px because
   nothing in this app is under 16.
   THE BOX DOES NOT CHANGE. Same height, same dash, same left edge as a live line -- a contents
   page whose rows are different heights reads as two lists. */
.bklist button[disabled]{cursor:default; color:var(--ink-3)}
.bklist button[disabled]::before{opacity:.55}
.bkwait{
  position:absolute; right:16px; top:0;
  font-family:var(--body); font-weight:500; font-size:17px; line-height:56px;
  color:var(--ink-3); letter-spacing:.02em;
}
/* Focus is a filled line and never a ring, the same as everywhere else in this file. */
.bklist button:focus-visible{outline:0}
/* AUTOMATIONS, 2026-11-25. The owner: "have a button centred at the bottom of each of the three
   journals' contents pages saying Automations that opens the lightboxed clipboard views of
   routines grouped according to the three journals". Pinned to the foot of the page rather than
   following the list, so it is in the same place in all three books whatever their lists hold.
   A pencilled box in the page's own ink: the one thing on the page that is not a screen's name.
   THE BOX IS SIZED ONCE, HERE; hover and focus fill it and change nothing else. Never a ring. */
.bkauto{
  position:absolute; z-index:1; left:50%; bottom:26px; transform:translateX(-50%);
  box-sizing:border-box; min-width:200px; height:52px; margin:0; padding:0 26px;
  border:1.5px solid color-mix(in oklab, var(--ink-3) 60%, transparent); border-radius:26px;
  background-color:transparent; cursor:pointer;
  font-family:var(--body); font-weight:600; font-size:21px; line-height:1; color:var(--ink);
  transition:background-color .18s ease, box-shadow .18s ease;
}
.bkauto:hover{background-color:color-mix(in oklab, var(--ink-3) 12%, transparent)}
.bkauto:focus-visible{
  outline:none; background-color:color-mix(in oklab, var(--ink-3) 16%, transparent);
  box-shadow:0 2px 6px rgba(62,32,18,.22);
}
.bkauto:active{background-color:color-mix(in oklab, var(--ink-3) 22%, transparent)}
@media (prefers-reduced-motion:reduce){ .bkauto{transition:none} }
/* NO TAPE ON THE OPEN BOOK'S COVER, 2026-11-13, at the owner's word: "remove the inverted
   sticky tape title from the inside of the open cover, it's not transparent". The board is the
   FRONT face of the turning leaf, so once the leaf is over it is lying face down on the left and
   the tape reads backwards through it. backface-visibility hides a face, never a shadow cast
   through the paper, and the board is not transparent. The span is gone from index.html, so
   there is nothing left here to place -- only this note, because the next reader will wonder why
   the shut book in the row has a title and the open one does not. */
/* Three books, and the only things that differ between them are on these three lines: the board
   colour, the angle its tape was laid at, and the drawing on its left page. */
.bookopen[data-journal="creation"]  {--jrnl:var(--book-yellow); --tape-tilt:-1.6deg; --bk-art:none}
.bookopen[data-journal="growth"]    {--jrnl:var(--book-green);  --tape-tilt: 1.1deg; --bk-art:none}
.bookopen[data-journal="admin"]{--jrnl:var(--book-purple); --tape-tilt:-0.8deg; --bk-art:none}
/* THE BOOK IS OUT OF THE ROW WHILE IT IS OPEN, 2026-11-13, at the owner's word: "leaving a space
   behind". visibility and not display: the row is a flex line, and a book taken out of the flow
   would pull the other two sideways, which is the one thing this row must never do. app.js puts
   data-away on at the same moment the flying copy starts, so the swap happens under a book that
   is exactly on top of it and cannot be seen. */
.journal[data-away]{visibility:hidden}

/* ------------- the screen goes into a book and comes out of one, 2026-11-14 ------------- */
/* The owner: "The manila folder animations still jump into position at the end of their
   emergence, get their alignment pixel perfect for a seamless move", and "animate the in situ
   manilas back into their parent journals".
   WHAT FLIES IS <main> ITSELF, NOT A COPY OF IT. Until today a cloned mock-up of the screen
   crossed the window in a box of its own and melted into the real one when it landed. The copy
   was drawn with its ids stripped, and every rule that finds a panel by id missed it, so the
   picture inside sat 10-15px off the real one and moved at the swap -- the jump. Flying the
   real screen leaves nothing to swap: the last frame of the flight IS the screen at rest.
   app.js writes the transform and its origin; this rule only lifts main over the journal row
   (z-index 32) while it crosses, so it can never pass under a book. It is still under the open
   book, which is in the top layer, and that is what lets it go into the pages and out of them.
   It is not lifted while it goes INTO a book in the row: there it has to pass under the cover. */
main.dealt{position:relative; z-index:34}
main.dealt.tucking{z-index:auto}
/* The copy of the folder that goes home while the new one comes out (app.js, dealGhost). Under
   the row while it crosses, over it -- and clipped by the cover -- while it slips into its book. */
.dealghost{position:fixed; inset:0; z-index:31; pointer-events:none}
.dealghost.slipping{z-index:33}
.dealghost > main.dealt{position:absolute; margin:0; box-sizing:border-box; flex:none; max-width:none; overflow:hidden}
@media (prefers-reduced-motion: no-preference){
  .bookopen{transition:transform .46s cubic-bezier(.32,.74,.28,1), opacity .2s ease}
  .bkleaf{transition:transform .62s cubic-bezier(.42,.04,.22,1)}
  .bkspine{transition:opacity .3s ease .32s}
  main.dealt{transition:transform var(--fly) var(--ease, cubic-bezier(.32,.74,.28,1))}
  main.dealt.tucking{transition:transform var(--fly) cubic-bezier(.5,0,.3,1)}
  /* A book in the row rises when its folder has gone back into it. Only the top margin moves,
     and only on a screen change; the book that is out of the row (data-away) is put down at
     once, so the open book flying home is aimed at the place it will really sit. */
  .journal{transition:margin-top .32s cubic-bezier(.32,.74,.28,1)}
  .journal[data-away]{transition:none}
  /* THE BOOK GOING HOME IS NOT THE OPENING RUN BACKWARDS, and two durations say so.
     The leaf is given .42s instead of .62s, so the book is shut by the time it reaches its
     slot rather than still turning a page at thumbnail size.
     NOTHING FADES ON THE WAY HOME, 2026-11-13, at the owner's word: "don't snap anything into
     its final state at the end of animations, i.e. the journals zooming back into their spots".
     The book used to empty itself over the last .18s, so it arrived at its slot already
     invisible and the row's own book blinked back in its place. Now it stays solid the whole
     way and lands ON the slot it came out of: app.js hides the stage and gives the row book
     back in the same frame, which is the swap the flight out already uses and cannot be seen.
     Removing the fade is not enough on its own: `.bookopen` is opacity:0 at rest and only `up`
     lifts it, so dropping `up` would hand the book back to the resting rule and fade it in .2s
     anyway. The shutting state pins it opaque instead, and names no opacity transition. */
  .bookbox.shutting .bkleaf{transition-duration:.42s}
  .bookbox.shutting .bookopen{
    opacity:1;
    transition:transform .46s cubic-bezier(.32,.74,.28,1);
  }
  /* The spine's own fade is .3s AFTER a .32s wait, which is written for the opening and runs
     past the end of the .46s flight home. On the way back it goes at once, inside the flight,
     so the board is not still changing when the stage is taken away. */
  .bookbox.shutting .bkspine{transition:opacity .22s ease}
  /* Every put-away, a deal too, holds the flight home .26s while the leaf shuts: app.js
     SHUT_LEAD is the same number and moves the landing and the room's return to match. */
  .bookbox.shutting.homing .bookopen{transition-delay:.26s}
  /* LANDED: the row book is back underneath in the same place, and this copy fades off it. */
  .bookbox.shutting.landed .bookopen{opacity:0; transition:opacity .15s linear}
  /* The row book under it brings its own shadow, so the copy's goes in the same frame: two
     shadows stacked for the length of the fade was the darkening at the landing. */
  .bookbox.shutting.landed .bkcover{filter:none; transition:none}
  /* The blur is gone by now, but a blur(0) still re-draws everything under it, and taking the
     stage away afterwards showed as a faint shimmer on the row. The filter goes now instead,
     while the landed copy still covers the book. */
  .bookbox.shutting.landed::backdrop{backdrop-filter:none; transition:opacity var(--dimfade, .46s) ease}
}

.ctrls{visibility:hidden; pointer-events:none}
.ctrls .askpanel:popover-open{visibility:visible; pointer-events:auto}

/* ---------------------------- the copyright notice ---------------------------- */
/* One notice, fixed to the bottom left of the WINDOW, on every screen.
   IT IS ON PAPER BECAUSE INK ON CLOTH IS NOT AVAILABLE HERE. There is no single colour that clears
   7:1 against eight different dyes, and the look harness has a row for exactly that -- "no text
   sits straight on a photograph". The paper is what pays for the contrast: --ink-3 on --surface is
   AAA by its own gate row, which is the only reason the muted colour the brief asks for is
   affordable at all. 16px is the floor and not a choice either; the harness reds below it. So this
   is the smallest text in the build and sits exactly on the line.
   WHY IT IS 23px TALL AND 4px OFF THE BOTTOM, WHICH IS NOT A STYLE CHOICE EITHER.
   Nothing scrolls, so the notice cannot push anything down to make room: a reserved band at the
   foot of main would come straight out of the screens' height, and Connections has none to give --
   its worst sheet sat within a pixel of the window. Measured at 1340x900 while the sheets were a
   pile: on Connections the lowest line of text was the second line of `p.conn-foot`, whose line box
   ended 30px above the window, and that 30px -- the foot's own bottom padding plus main's -- was
   blank on every screen. The notice is sized to live inside it and its top landed 3px under that
   line. THE STRIP IS NO LONGER A COINCIDENCE, 2026-10-22: the pile is gone, every sheet of a
   screen is drawn, and six of the nine screens are taller than main and scroll (grep
   `THE CLIP IS NOT HONEST`). Scrolling content fills main to its last pixel, so the strip cannot
   be the last sheet's padding any more -- it has to be a strip main does not reach. `main.wrap`
   below reserves it.
   pointer-events:none is the "never takes a click" half of the brief, and it also means the notice
   cannot stand between a hand and anything beneath it. It would still HIDE words, though, so
   look.js measures the notice against the real TEXT LINES on all nine screens (Range rects, not
   element boxes -- an element's box includes padding that holds no words) and prints the smallest
   gap it found. A change that eats the strip shows up as a shrinking number before it goes red.
   z-index:2 puts it on the desk beside the sketchbook, under the masthead and the menus.
   lean: 3px of clearance holds at 1340x900 and wider. Narrower, `p.conn-foot` wraps to a third
   line and takes the strip, exactly as the Connections sizing note above it warns. Re-measure
   there, and give the foot the room rather than cutting the notice. */
.copyright{
  position:fixed; left:24px; bottom:4px; z-index:2;
  margin:0; padding:2px 10px 3px; border-radius:7px;
  font-size:16px; line-height:1.15; color:var(--ink-3);
  background:var(--surface);
  pointer-events:none;
  box-shadow:0 1px 2px rgba(62,32,18,.26), 0 6px 12px -8px rgba(62,32,18,.5);
}
@media (max-width:560px){ .copyright{left:16px} }
/* Mirror mode (docs/MIRROR-REWORK.md step 3, owner 2026-11-24): the copyright's twin in the same strip,
   shown only while the cloud copy is not live ("Admin Mac offline since 4:07 pm").
   LEFT, NOT AT THE RIGHT END: Traffic draws a figure ("450", DIV.val) 5px into the strip at x1199-1234.
   Measured 2026-11-24 at 1340x900 with "Admin Mac offline since 12:07 pm" at left:240, on all nine
   screens: nearest text line 130px above it (Stock). The copyright ends at x226. */
.mirror-note{
  position:fixed; left:240px; bottom:4px; z-index:2;
  margin:0; padding:2px 10px 3px; border-radius:7px;
  font-size:16px; line-height:1.15; color:var(--ink-2);
  background:var(--surface);
  pointer-events:none;
  box-shadow:0 1px 2px rgba(62,32,18,.26), 0 6px 12px -8px rgba(62,32,18,.5);
}

/* THE STRIP THE NOTICE LIVES IN, RESERVED RATHER THAN HOPED FOR. 2026-10-22.
   The notice is fixed 4px off the bottom of the window and 23px tall, so it owns the bottom 27px
   whatever is under it. main ran to the window's own bottom edge, and once the sheets stopped
   being a pile main scrolls on six of the nine screens -- so at the top of a long screen there is
   a line of text at every height, including the 27px the notice paints on. Five screens read a
   negative gap on look.js's notice row for it: Overview -15px, Finances -21, Routines -15,
   Traffic -13, Sales channels -1.
   A MARGIN AND NOT PADDING, because padding is inside the scroller: overflowing content is
   painted over it, so 30px of padding-bottom moves nothing at the top of a long screen. A margin
   takes the height off main's BOX, and main clips (`overflow:auto`), so no line can be drawn
   under 870 at any scroll position and the row's gap is 3px by construction on every screen.
   `main.wrap` and not `main`, because `.wrap` at app.css:263 carries `margin:0 auto` and a class
   beats an element: a margin-bottom in the main rule would simply lose. The auto side margins are
   what centre the 1220px column and are untouched.
   30px is the figure already measured on Connections above, so the tightest screen in the build
   keeps exactly the clearance it had. It costs 30px of height on every screen, which is the real
   price of a notice fixed over content that scrolls. */
main.wrap{margin-bottom:30px}

/* ---- the mug is the Refresh button ----
   It hangs off the top edge at the right, so roughly the bottom half is on screen. It would
   otherwise overlap the drag strip, and a control inside a drag region CANNOT be clicked with
   a real mouse on macOS however `no-drag` computes -- so the drag strip is shortened to stop
   short of it instead, which is what scripts/check-build.js insists on. The word fades in on
   hover AND on keyboard focus AND while busy; a
   control whose name only appears under a pointer has no name for anyone else, so the real
   accessible name is the permanent aria-label and the word is confirmation, not the label. */
.mug{
  /* The cup's circle, measured off the photograph rather than guessed, and used by the ring
     below. An algebraic circle fitted to 170 of 180 boundary rays -- the ten dropped ones are
     the handle -- puts the cup at centre (256.7,200.3) radius 199.1 in the picture's own
     458x400 pixels, residuals -4.6 to +3.0, rms 1.65. So the OUTER edge is already round to
     about four pixels and only the inner one has to be made so. Scaled by 280/458 into this
     box: centre (157,122.5), outer radius 124 (past the photograph's widest point on purpose,
     see the ring), inner radius 73.5. The inner one is the tea's CLOSEST edge, 121.5 photo
     pixels, not its usual 128.5: at 78.5 the ring stopped short of the drink on the left and
     along the bottom and left an arc of the old blue-grey showing between the two. */
  --rim-x:157px; --rim-y:122.5px; --rim-out:124px; --rim-in:73.5px;
  /* SMALLER BY ONE FACTOR, 2026-11-13, on the owner's word: 'make the mug smaller
     proportionally to help the journals seem larger'. Every length above and below is MEASURED
     off the photograph at a scale of 280/458, and the ring, the tea mask, the hit shape and the
     word all read those lengths. Re-typing eight of them smaller would falsify the derivation
     in the paragraph above and give eight chances for one of them to be rounded differently, so
     the box keeps its measured size and the whole object is scaled once. A transform scales the
     clip-path's hit area with the paint, so the mug stays its own hit shape.
     The origin is the top right, which is the corner the mug hangs off, so the gap to the
     window's edge stays 28px and the shrink happens inwards and downwards. top is struck from
     the same factor, which keeps the same share of the mug on screen as at full size -- at
     --mug-s:1 these two lines compute to exactly the layout before them. */
  --mug-s:.8;
  position:fixed; top:calc(-120px * var(--mug-s)); right:28px; z-index:40;
  width:280px; height:245px; padding:0; border:0; background:none;
  transform:scale(var(--mug-s)); transform-origin:100% 0;
  /* The photograph is round and the button's box is not. Without this the whole 280x245
     rectangle is hover-sensitive, so the word stayed up when the pointer left the mug but
     was still in a corner of the box. clip-path clips the hit area as well as the paint, so
     the sensitive shape is now the mug itself. The radius is the mug's 122px plus 10px, so
     the drop shadow still has room. */
  clip-path:circle(132px at 158px 120px);
}
.mug img{width:100%; height:100%; display:block; filter:drop-shadow(0 10px 14px rgba(62,32,18,.5))}
/* The tea, dropped to near-black, because the drink and the glaze were the same lightness.
   MEASURED off composited pixels on all eight dyes, the drink's disc against the rim band
   either side of it: the tea reads rgb(183,148,107) at a relative luminance of 0.339 and the
   accented rim lands between 0.271 (moss) and 0.316 (plum), which is a ratio of 1.06:1 to
   1.21:1. That is no edge at all -- the imposed ring and the drink inside it were telling
   apart by hue alone, and hue is never the only signal.
   Black, not white, and not a per-screen choice between them: against those same eight rims
   white measures 2.87:1 to 3.27:1 and black measures 6.42:1 to 7.31:1, so black wins on every
   one of them by better than double. A switch between the two would have a dead branch.
   .95 rather than solid, so the drink keeps a trace of its own surface instead of becoming a
   hole cut in the picture. The number was measured at the BOUNDARY, not across the whole rim:
   the band from 2 to 16 pixels outside the drink, which is where the eye actually reads the
   edge. At .85 that band's median ran 4.42:1 (moss) to 5.18:1 (plum), and moss and sage sat
   under the 4.5:1 floor. At .95 the disc measures a luminance of 0.001 and that band runs
   5.05:1 (moss) to 5.93:1 (plum), so every one of the eight clears it. Taken across the whole
   rim rather than the boundary the drink reads 6.30:1 to 7.17:1, and plum and terracotta clear
   AAA outright. The darkest twentieth of the boundary is 3.91:1 on moss, and no ink fixes
   that: it is the shadow line in the photograph where the glaze turns down into the drink, and
   a SOLID black tea reaches only about 4.0:1 against it. It reads as an edge regardless,
   because immediately outside that line the rim is lit.
   No transition on this one. It is the same colour on all eight screens, so there is nothing
   for it to cross-fade to; what cross-fades is the ring around it.
   The mask is the inner disc this time, not the annulus -- the ring's own inner edge is at
   --rim-in, so this stops 1.25px short of it and the two meet without either overlapping the
   other or leaving a lit seam between them. Intersected with the photograph's alpha for the
   same reason the ring is.
   lean: black is right while every dye's rim sits at a luminance of 0.27 to 0.32. If a dye
   ever lands with a rim darker than about 0.12, white becomes the better of the two and this
   needs the switch the second paragraph says it does not need. */
.mug::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  /* z-index, which the ring deliberately does without. .mug img carries a drop-shadow, and a
     filter makes an element a stacking context: a non-positioned one of those is painted with
     the positioned boxes, in tree order, not back in the flow where its lack of `position`
     suggests. ::before comes BEFORE the img in tree order, so without this the photograph is
     painted over the top of it and the wash does nothing at all -- which is exactly what it
     did, measuring 0.339 with the rule live and computing correctly. ::after escapes it by
     accident of ordering, being after the img. The word is z-index:1 as well and later in tree
     order, so it still paints above this. */
  z-index:1;
  /* A COFFEE WITH FERN FOAM ART, 2026-11-14, at the owner's word: "make the cuppa a coffee with
     fern foam art". The drink is now a drawn latte (props/latte/, one a day; app.js picks) on the disc,
     not a blend over the photograph's tea, so --tea and --tea-blend no longer reach the cup. */
  background:var(--latte, url(props/latte/fern.svg)) no-repeat
    calc(var(--rim-x) - var(--rim-in)) calc(var(--rim-y) - var(--rim-in)) / calc(var(--rim-in) * 2) auto;
  mask-image:radial-gradient(circle var(--rim-in) at var(--rim-x) var(--rim-y),
               #000 0 calc(var(--rim-in) - 1.25px), transparent var(--rim-in)),
             url(props/mug-09-tea.png);
  mask-composite:intersect; mask-size:100% 100%; mask-repeat:no-repeat;
}
/* The rim, carrying the page's accent. The glaze in the photograph is one fixed blue-grey, and
   the band it makes is not an even one: the tea's edge wanders between 128 and 159 photo pixels
   from the centre, so the rim reads thick on one side and thin on the other. This does not
   correct that band, it IMPOSES one -- an annulus at exact radii, so its inner edge is a circle
   whatever the picture does underneath. The outer radius is set PAST the photograph's widest
   point and the mask is intersected with the picture's own alpha, so the accent reaches the true
   edge instead of stopping short and leaving a lit sliver of the old colour outside it.
   mix-blend-mode:color, never a flat fill: the hue is --fill and every bit of luminance stays
   the photograph's -- the glaze's gradient, its specular highlights, the shadow down the far
   wall. That is also what keeps the word readable without re-measuring it on every dye. The
   word's measured figures (4.81:1 at worst on moss, 6.14:1 at best on plum) are luminance
   ratios, and a `color` blend changes no luminance, so the only thing that moves them is the
   ink's own lightness -- which is why --fill-ink is the thing harness/look.js pins. The word is lifted a layer to paint ABOVE this one; left where it was it took the
   tint along with the glaze. */
.mug::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:var(--fill); mix-blend-mode:color;
  /* The glaze crossfades to the new screen's accent instead of cutting to it. Slightly longer
     than the page's own fade, so the mug is still arriving as the page comes back -- it is
     outside <main> and does not fade out with it, and a cut here would be the one hard edge
     in the change. background-color transitions although --fill does not: the custom property
     changes in one step and the colour it feeds interpolates from there. */
  transition:background-color .38s ease;
  mask-image:radial-gradient(circle var(--rim-out) at var(--rim-x) var(--rim-y),
               transparent 0 calc(var(--rim-in) - .75px), #000 var(--rim-in), #000 100%),
             url(props/mug-09-tea.png);
  mask-composite:intersect; mask-size:100% 100%; mask-repeat:no-repeat;
}
.mug .word{position:absolute; inset:0; width:100%; height:100%; z-index:1}
.mug .word text{
  /* Mansalva, the hand that writes the shop's name on the tape, and for the same reason:
     Playpen Sans is round, even and fairly heavy, which is right for paragraphs of it and too
     uniform for a word somebody wrote on a mug. Mansalva is thinner, joins its letters and has
     more flourish. Because it joins them, the 1px of letter-spacing this carried under Playpen
     Sans is gone -- it pulled the joins open. It is a single weight, so there is none to set.
     The ink is the screen's own accent taken down to near-black, and there is no halo around
     it any more. The halo was what carried the contrast while the glaze was one fixed
     blue-green and the word was cream; now ink and glaze are both struck from --fill and move
     together, so the pair can be measured once and holds on all eight. It was measured, on
     all eight, off the composited pixels rather than off the stylesheet: the word was drawn
     and not drawn over the same crop, the glyph core was taken as the pixels the word darkens
     by more than 0.10, and each one was read against the glaze it actually sits on. The worst
     point under the word is 4.81:1 on moss and the best is 6.14:1 on plum, with every screen's
     median between 5.21 and 5.70 -- clear of AA everywhere. AAA is not reachable here by any
     ink at all: the glaze under the word has a relative luminance of 0.24 to 0.31, so even
     pure black tops out at 5.7:1 at its darkest point, and 28% is as much of the accent as the
     ink can carry and still clear the bar. The first two mixes did not: 26% into #140A05 read
     3.54:1 at worst and 22% into #0A0604 read 4.14:1, both under it. Mixing into BLACK rather
     than into a near-black brown is what bought the headroom -- black adds no lightness of its
     own, so the ink took MORE of the accent's colour and went darker at the same time.
     The two shadows are what sinks the word into the glaze: a white one BELOW the letters,
     which is the lower lip of a groove catching the light, and a dark one above, which is the
     shade inside it. The rest of the mug is lit from above, so a groove has to be lit that way
     round -- swap the two and the word stands proud of the rim instead of being pressed into
     it. They are drop-shadows on the glyphs rather than a filter on the <svg>, so they follow
     the letterforms and not the box. Both are blurred by .7px: the white one was hard-edged to
     begin with and that is not a groove, it is an outline, which is the one thing it must not
     look like.
     `fill` is in the transition as well as `opacity`, so the word crossfades to the new
     screen's ink at the same time as the glaze under it crossfades to the new accent. */
  fill:var(--fill-ink); font-family:var(--hand);
  font-size:28px; font-weight:400;
  filter:drop-shadow(0 1px .7px rgba(255,255,255,.42)) drop-shadow(0 -1px .7px rgba(0,0,0,.45));
  opacity:0; transition:opacity .34s ease-in-out, fill .38s ease;
}
/* Every state is a change of opacity on an element that is already drawn, so nothing to
   Refresh, Refresh to Refreshing and Refreshing back to nothing all fade at the same rate.
   The busy rules come last, so they win the tie against the hover rule by order. */
.mug:hover .w-idle, .mug:focus-visible .w-idle{opacity:1}
.mug.busy .w-idle{opacity:0}
.mug.busy .w-busy{opacity:1}
.mug:focus-visible{filter:drop-shadow(0 6px 12px rgba(62,32,18,.5))}  /* a deeper shadow, not a box */

/* ---- the cloth, light only ----
   One cloth, dyed eight ways. The wood, the pinboard and the wall are gone: four different
   materials under the same paper read as four different apps, and the gingham was the one the
   owner picked out. Every screen now gets the same weave at the same 760px, which is the
   tile's own size and so paints 1:1 with no resampling, in its own colour.

   The dye is real: each tile is the undyed gingham's LUMINANCE -- which is where the weave and
   the check live -- mapped from a dye colour up to a cream that carries 12% of the dye, with a
   1.8 gamma so the check squares land on the dye rather than half way to the cream. Hue-
   rotating the yellow instead gave eight sweet-shop colours; this gives dyed cloth. The undyed
   master was a 760px mirrored crop of design/normalised/web/normalised__fabric-tile__gingham-05.jpg,
   which is what makes all eight seamless; it does not ship, because the eight dyes are the cloth
   and an undyed ninth would only be weight. Remake it from that source if these are ever redyed.

   --fill is the page's accent, and it is the complement of that page's cloth: orange against
   blue, red against green, yellow-green against red-violet. All three are Anna's own fills,
   so nothing new had to be weighed for contrast -- harness/look.js already holds each of them
   to ink at AA or better, and does it on every screen.

   Stock was the one that did not obey its own rule. Sampling the eight tiles and taking the
   mean of the darkest fifth -- the check squares, where the dye actually sits -- puts stone at
   hue 76 in oklch, a warm near-grey, so its accent belongs around 256. Apricot sits at 57:
   the SAME side of the wheel as the cloth, 162 degrees from the complement, which is why the
   stock screen read as warm-on-warm while the other seven read as a pair. Every other page is
   within 76 degrees and most are within 30.
   Periwinkle at 276 replaces it. Not 256, because the exact complement is a pale blue and the
   flag strip shows all seven flags at once: at 256 the stock flag sat 19 degrees off sky's and
   near its lightness, which is two blue tabs to choose between. 276 is 38 degrees clear of sky
   and 46 clear of mauve, and it is still only 20 off the true complement -- closer than any
   page here but indigo. Stone can afford the 20: its check squares carry a chroma of 0.019,
   which is near enough neutral that the complement is a direction rather than a point.
   The flag is the same dye lifted to paper, and the gate holds the pair: hue within 0.24deg,
   chroma x1.20, lighter, and ink at 8.54:1. */
:root[data-surface="ochre"]     {--surf:url(surfaces/gingham-ochre.jpg);      --fill:var(--fill-sky); --tea:var(--tea-milk); --tea-blend:screen}
/* SKY IS THE DYE WORN NOW, 2026-11-13, at the owner's word: "make the gingham pale sky blue
   dyed, not indigo". It is the same cloth: the tile was dyed from the indigo one by keeping its
   light and dark and mapping them onto a pale blue and a cream, the same recipe every other
   tile here was made with.
   THE MUG DID NOT MOVE. Primary red with white tea was locked the same day -- "lock ... the mug
   on primary red with white tea" -- and he asked only for the cloth, so this rule carries the
   three values the indigo rule carried, unchanged.
   The earlier note, kept because the reason still holds: the other rules
   stay exactly as they were. They are not dead code and they are not a guess at a future: the
   scheme is one cloth dyed eight ways, every file still ships, and the rule that picks between
   them is one line in app.js. Deleting seven of them would throw away the measured pairing of
   cloth to accent to brew and leave nothing to go back to.
   THE MUG'S COLOUR LIVES HERE AND NOT AT :root, which is the trap to know about: these eight
   rules carry a higher specificity than :root, so a --fill written up there would lose to this
   one whatever the order. The mug is locked by locking the cloth. */
:root[data-surface="sky"]       {--surf:url(surfaces/gingham-sky.jpg);        --fill:var(--fill-red); --tea:var(--tea-white); --tea-blend:screen}
:root[data-surface="indigo"]    {--surf:url(surfaces/gingham-indigo.jpg);     --fill:var(--fill-red); --tea:var(--tea-white); --tea-blend:screen}
:root[data-surface="sage"]      {--surf:url(surfaces/gingham-sage.jpg);       --fill:var(--fill-rose); --tea:var(--tea-black); --tea-blend:multiply}
:root[data-surface="terracotta"]{--surf:url(surfaces/gingham-terracotta.jpg); --fill:var(--fill-aqua); --tea:var(--tea-milk); --tea-blend:screen}
:root[data-surface="teal"]      {--surf:url(surfaces/gingham-teal.jpg);       --fill:var(--fill-coral); --tea:var(--tea-black); --tea-blend:multiply}
:root[data-surface="plum"]      {--surf:url(surfaces/gingham-plum.jpg);       --fill:var(--fill-chartreuse); --tea:var(--tea-milk); --tea-blend:screen}
:root[data-surface="stone"]     {--surf:url(surfaces/gingham-stone.jpg);      --fill:var(--fill-periwinkle); --tea:var(--tea-black); --tea-blend:multiply}
:root[data-surface="moss"]      {--surf:url(surfaces/gingham-moss.jpg);       --fill:var(--fill-mauve); --tea:var(--tea-milk); --tea-blend:screen}
/* The cloth on the desk and the sheet on the clipboard. Both were written twice until
   2026-11-13 -- once for data-theme="light", once inside `@media not all and
   (prefers-color-scheme: dark)` -- because "light" meant either of two things and CSS cannot
   say that in one selector. There is only the lit room now, so each is written once. */
body{background:var(--ground) var(--surf) center top / var(--surf-size) var(--surf-repeat) fixed}
.masthead{background:transparent; border-bottom:0}
/* The clipboard's sheet only, and the lit tone of its board. #askPanel used to be in here too,
   and an id selector beat the whole of the .askpanel block: the Ask board was painted the desk's
   own frosted gingham no matter what its own rule said. The board is a television now and
   carries its own tube. --board-tone goes on the element and the cloth on its sheet, because the
   filter belongs to the whole photograph and the gingham only to the paper inside it. */
#settingsMenu{--board-tone:brightness(1)}
#settingsMenu::before{
  background:linear-gradient(rgba(243,240,233,.84), rgba(243,240,233,.84)), url(surfaces/gingham-stone.jpg) center / 760px repeat}


/* -------------------------- the sheets of a screen --------------------------
   THE PILE IS GONE, 2026-10-22, at the owner's word: "remove all buttons from all views on the
   same menu depth as 'where these numbers come from', 'what's in these figures'". Those two
   were paper TAGS. Item 73 folded every sheet of a screen down to a tag in one row across the
   top and drew only the sheet whose tag was pressed; that row is the depth he named.

   WHAT THE PILE DID HERE, so that what it cost is on the record where the rules were. `#pile`
   and `.tag` are deleted. `.grid, .conn-view{display:contents}` is deleted with them: the pile
   needed every sheet to be one of main's own column items, and that is the line that stopped
   the grid being a grid. Both are layout boxes again, so `.grid`'s two columns (app.css:1825)
   are what lays the sheets out -- which is where the panels were before item 73.
   `.paper{display:none}` and `.paper.front` are deleted too, so every sheet is drawn. `.paper`
   is still written by pileUp() and now carries NO CSS: it is the mark harness/_ready.js
   enumerates the sheets of a screen by, and nothing a reader can see.

   THE CLIP IS NOT HONEST ANY MORE, and that is the cost he accepted. The pile's whole argument
   was that one row of tags plus one sheet is the same height on a three-sheet screen and a
   nine-sheet one, so nothing was lost behind an edge -- it was behind a tag with its own name
   on it. With every sheet drawn, a tall screen is taller than main again and main scrolls for
   it (`overflow:auto` at app.css:2411, with no bar shown). Nothing is clipped and nothing is
   unreachable; what went is the promise that no screen needs scrolling at all.
   harness/look.js names the residue per screen and its ceilings were raised to match. */

/* THE STAMP HAS NO STRIP, AND ASKING FOR ONE WAS A MISREADING. 2026-10-22.
   The tag row used to be the first thing on the folder and 200px of its right end was reserved
   for the stamp. With the row gone the first sheet of the grid starts where the row did, and the
   sheet's BOX runs up under "Updated 15 min ago" -- so a strip was added to push the grid down,
   52px on an open folder and 64 on a card screen. It was measured against boxes, and a box is
   not a word: the top right corner of a sheet above its own heading is blank paper, and the
   stamp is meant to be ON the manila. MEASURED on all seventeen stops with the strip at 0, every
   text line walked with a Range and tested against the stamp's rect with 2px of margin: the
   stamp covers no word anywhere, and `elementsFromPoint` at its centre answers
   `P#stamp > DIV.phead > DIV.panel`, so it paints on top of the sheet and stays readable.
   harness/look.js now holds that row, so this cannot come back silently.
   WHAT THE STRIP COST, which is why it is gone rather than trimmed: 52px off the top of every
   screen bought nothing a reader can see, and it pushed the LOWEST line of every tall screen
   52px further down, into the 30px strip at the foot that `p.copyright` lives in. Five of the
   nine screens went red on the notice row for it -- Overview -15px, Finances -14, Routines -15,
   Traffic -13, Sales channels -1 -- and all five clear it again with the strip off. */

/* ---------------- the masthead at narrow widths ----------------
   The big sketchbook corner and the window-pinned tape are a composition for a desk-sized window.
   Under 1000px there is not room for both the strip and the controls on one row, and a 642px book
   would be most of the screen, so both go back to what they were: the tape returns to the flow in
   .wrap, where it sits on the cloth like any other paper object, and the book shrinks to the small
   corner whose only job is to keep a constant tone under the traffic lights. --tape's alpha is
   measured against the cloth precisely so that this layout is still AAA; see the token. */
/* ------------- THE DESK AS THE WINDOW NARROWS, 2026-11-13 -------------
   The row of three journals is the way to every screen since step 3 of docs/JOURNALS-NAV.md, so
   a book that cannot be pressed is a screen that cannot be opened. THE ROW IS NOT MOVED AND NOT
   SHRUNK HERE. The window carries the limit instead: main.js holds minWidth at 1160, which is
   the narrowest the desk can be drawn in, and everything below was MEASURED in the live app
   rather than reasoned about, because three earlier tries were each wrong.
   THREE THINGS REACH FOR THE SAME STRIP ALONG THE TOP, and the books walk into all three as a
   centred row narrows. THE MUG is a button -- Refresh all figures -- and its hit shape is the
   circle in its own clip-path, not its box, so it takes about 243px in from the right edge;
   Operations' name was swallowed by it from about 1060px down. THE TRAFFIC LIGHTS are drawn by
   macOS above the page, so no page measurement sees them: at 1000px the Creation book lies
   across them. THE DRAG STRIP eats a click whatever lies on top of it and whatever its z-index,
   and check-build.js forbids the no-drag escape hatch, so there is no raising a book above it;
   at 1060px and below it runs under Creation's name.
   SHRINKING THE ROW WAS TRIED TWICE AND BOTH WAYS FAILED. A scale read off the window width is
   not expressible: this browser answers false to CSS.supports("transform","scale(calc(100px /
   10px))"), so a length over a length does not cancel to the number scale() wants and the whole
   declaration is thrown away -- measured as three books that never changed width at any window
   size. A fixed scale puts the 22px names under 16px, the floor the rest of this build is held
   to. Moving the row left, off the window's centre, only traded the mug for the traffic lights.
   So the row stays centred, which is what the owner asked for, and the window stops where the
   desk stops. Swept at 1340, 1200, 1160 and 1140: every book clear of all three, and pressable.
   lean: the @media (max-width:1000px) and (max-width:700px) blocks below can no longer fire,
   since the window cannot be dragged under 1160. They are left alone rather than deleted -- the
   narrow layout is also what sets minHeight in main.js, and unpicking that is its own job.
   Upgrade trigger: a window narrower than 1160, or the sheet floor needing to come down. */
@media (max-width:1000px){
  /* THE TAPE IS HIDDEN HERE, AND NOT RETURNED TO THE FLOW.
     It used to go `position:static` at this width and sit on the cloth with the other paper
     objects. That is the tape leaving the sketchbook, and the owner's rule, given 2026-10-14,
     is that the tape is on the journal or it is nowhere: a strip of masking tape stuck to a
     book does not step off the book onto the desk when the window narrows. Above 1000px it
     cannot drift at all -- the tape and the book are both `position:fixed`, so their
     relationship is a constant, not a layout outcome. This width is the only place the two
     ever parted company.
     Hidden to the eye, NOT to a screen reader: #shopName is the document's only h1, and
     display:none at narrow widths would leave the page with no heading at all. The clip
     below is the standard way to say "off the screen, still in the tree". */
  /* The clipboard comes back into the flow.
     THE NOTE NEEDS NOTHING MOVED DOWN HERE ANY MORE, 2026-11-13. It used to be parked in the
     gap between the tape and the mug, and that gap closes at this width -- the mug keeps its
     full 280px at every width, so on a 420px window its circle starts at x=138 and there is no
     beside-the-mug left. So the note was sent to the head of the document with 40px of top
     margin to clear the drag strip and 200px of left to clear the sketchbook corner, and below
     700px it dropped under the corner instead. None of that is a question now: the note opens
     on a stage of its own, over the middle of the window, at every width, and the only thing
     that changes with the width is whether it fits. It is 250px wide, so it fits down to a
     298px window. The one line left is the clamp for anything narrower. */
  .masthead-in{min-height:0}
  .ctrls{position:static; right:auto; top:auto; margin-top:12px}
  .seg{max-width:calc(100% - 48px)}
  /* Two corrections, both about where the strip ends up. 830px from the right of an 812px
     window is a strip of zero width, so the inset goes back to 320. And the note now sits at the
     head of the document, which pushes .masthead -- and the strip absolutely placed inside it --
     down to y=96: the title bar itself had no drag region left and the window could not be moved
     by it. position:fixed pins the strip to the window instead. .masthead is sticky rather than
     transformed, so it is not a containing block for it and the viewport is. The note's 40px of
     top margin is what keeps its own first line below the strip, and clear of the traffic
     lights macOS draws over this corner. */
  /* AND 26px tall again, not the wide layout's 108. The tape is hidden at this width, so
     there is nothing down there to drag by -- and the range note has moved up into the band
     the tall strip occupied. Measured at 1000px and at 900px: the three range buttons sit at
     y=46 to y=96, so a 108px strip covers all three and none of them can be clicked with a
     real mouse. 26px clears them with 20px to spare and still covers the traffic lights. */
  .dragstrip{position:fixed; right:320px}
  /* The mug keeps its fixed right:28px down here, so its clickable circle still begins at
     windowWidth-282 and the clipboard still has to end before it. Up in the wide layout the
     board is window-pinned and measures from the same edge; down here it is back in the flow,
     so the row it is in has to be kept out from under the mug instead. 300px is the circle's
     282 plus an 18px gap. The board then wraps onto its own line, which is the only place a
     158px board and a 267px strip of tape both fit on a 420px window anyway. */
  .masthead-in{justify-content:flex-start; min-height:0; padding-right:300px}
}
/* mac-app-shell: no visible scrollbars; scrolling still works. */
*{scrollbar-width:none}
*::-webkit-scrollbar{display:none}

/* ------------------------- THE TO-DO LIST'S LEFT PANEL -------------------------
   2026-11-11, at the owner's word: "Spin up a left panel template for to-do list items,
   parent page TBC". NOTHING DRAWS THIS YET. It is a template, and the screen that will
   carry it has not been chosen, so nothing here is tuned to a parent's arithmetic.

   ONE PRIMARY ACTION PER ROW, AND IT IS THE TICK. He asked for "tick, open, edit, change
   tags, open for a more detailed breakdown, etc". Five controls in a narrow left panel
   would break the app's own rules twice over -- one primary action per view, and detail
   nested one level down -- and would push a row past 100px, so a panel that shows seven
   items would show three. So the ROW carries the tick and nothing else, and everything
   else lives in the detail, and THE DETAIL IS THE RIGHT PANEL -- his word, 2026-11-12:
   "Don't open detail in a popover, populate the right panel with it." So nothing floats,
   nothing dims, and the item he is working on stays on screen beside the list he picked it
   from. That is `.todod-*` at the foot of this block.

   NOT ONE RULE HERE SAYS position:fixed, position:sticky OR pointer-events. Those three
   words are what scripts/check-build.js hashes into the chrome fingerprint, and a new
   occurrence of any of them would owe a fresh CHROME-WALK.md walk. Two ordinary panels in
   an ordinary grid need none of them. */

/* THE HEAD RESERVES THE WAY BACK'S HEIGHT WHETHER IT IS SHOWING OR NOT, so dismissing a job
   never moves the list under her hand. MEASURED BOTH WAYS, 2026-11-13: with this line the head
   is 47 and the list top is 416 whether the way back is showing or not; take the line out and
   the head is 37 at rest and 47 once it shows, and the whole list jumps 10px as she presses.
   Baseline alignment is kept, so the count and the figure beside it stay where they were, and
   the reserved space falls below them. The cost came off the list's own ceiling, set inline by
   the screen, so the panel still ends where the right column ends. */
.todo-head{display:flex; justify-content:space-between; gap:18px; align-items:baseline;
  min-height:44px}
.todo-count{font-size:var(--fs-lg); font-weight:700; color:var(--ink)}
.todo-sub{font-size:var(--fs-sm); color:var(--ink-2)}

/* THE ONLY SCROLLING BOX ON THE SCREEN, which is what the no-scroll rule allows: the view
   never scrolls, a specific bounded panel inside it may.
   THE CEILING IS PROVISIONAL AND DELIBERATELY A FLAT NUMBER, not a calc() against the
   window. Every other bounded list in this app -- grep `.cat-list` -- carries a measured
   `calc(100vh - N)` where N was counted against that screen's own masthead, tiles and the
   copyright strip. There is no parent here to count against, so a calc() would look
   authoritative and be a guess. When the parent is chosen, measure it, set
   `--todo-list-max` on the panel, and leave this default alone for the next template. */
.todo-list{
  max-height:var(--todo-list-max, 420px); overflow:auto;
  scrollbar-width:none; display:flex; flex-direction:column;
}
.todo-list::-webkit-scrollbar{display:none}

/* THE WHOLE ROW IS SIZED IN THIS ONE RULE and no rule below repeats a size, so the row
   cannot change shape under the pointer. Both children are real buttons, side by side
   rather than nested, because a button inside a button is not a thing a browser or a
   screen reader can make sense of. */
.todo-item{
  display:flex; gap:14px; align-items:stretch;
  border-bottom:2px solid var(--rule);
}
.todo-item:last-child{border-bottom:0}

/* 44px IS THE OWNER'S FLOOR AND THIS CLEARS IT: 46 square, with the row's own padding
   around it. The tick is the row's one primary action, so it is a target in its own
   right and not a glyph someone has to hit inside a bigger control. */
.todo-tick{
  flex:0 0 auto; width:46px; height:46px; margin:9px 0; align-self:center;
  display:grid; place-items:center;
  border:2px solid var(--rule); border-radius:10px; background:var(--surface-2);
  font-size:var(--fs-lg); line-height:1; color:transparent;
  cursor:pointer; transition:background .12s ease, box-shadow .12s ease, color .12s ease;
}
.todo-tick:hover{box-shadow:var(--hov-sh)}
/* NEVER A FOCUS RING (`CLAUDE.md`). A background and an inset shadow, which a keyboard can
   see and which change no size. */
.todo-tick:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}
.todo-item.done .todo-tick{background:var(--good-bg); color:var(--good)}

/* THE REST OF THE ROW OPENS THE DETAIL. It is left-aligned text in a button, so every
   size is here and the states below touch colour alone. */
.todo-open{
  flex:1 1 auto; min-width:0; text-align:left; cursor:pointer;
  display:flex; flex-direction:column; gap:4px;
  padding:12px 4px 12px 0; border:0; background:none;
  transition:background .12s ease, box-shadow .12s ease;
}
.todo-open:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}

/* TWO LINES AND THEN AN ELLIPSIS. A journal line can run long, and rows that set their own
   heights against each other are the thing the no-shift rule exists to stop. */
.todo-t{
  font-size:var(--fs-base); line-height:1.35; font-weight:600; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.todo-meta{display:flex; gap:10px; align-items:center; font-size:var(--fs-xs); color:var(--ink-3)}
/* WHO DID IT. The same size as the rest of the line and only a shade apart from it, because
   this is a note about the job and not a second heading. The span is drawn on every row, so
   it adds its flex gap whether it has words in it or not and no row changes width. */
.todo-didit{color:var(--ink-2); white-space:nowrap}
.todo-item.done .todo-t{color:var(--ink-3); text-decoration:line-through}

.todo-empty{font-size:var(--fs-base); color:var(--ink-2); padding:4px 0}

/* -------------------- the detail, in the right panel -------------------------------
   AN ORDINARY PANEL, drawn by `todoDetail()` and put in the right column by the screen
   that owns both. It does not float, it does not dim, and it has no border or background
   of its own: `panel()` already draws those, and a second box inside the first is the
   dead space the house rules forbid.
   IT IS ALWAYS THERE. With no item picked it draws one resting line, so the right column
   never collapses, never resizes and never jumps when he picks a row. Nothing shifts. */

/* The chosen row. COLOUR ONLY -- no border, no padding, no weight change -- so picking an
   item cannot move the row under his finger or reflow the rows below it. */
.todo-item.on{background:var(--sticky)}

.todod-rest{font-size:var(--fs-base); color:var(--ink-2); padding:4px 0}

/* A FIXED HEIGHT, NOT A CEILING, AND THE RESTING STATE SITS INSIDE IT TOO. One item has a
   two-line breakdown and the next has none; the tags wrap onto two rows for one item and
   one row for another. With a ceiling, every click would resize this panel and shuffle
   whatever the screen puts below it. With a height, picking a row changes what the panel
   SAYS and never where anything sits -- which is the house rule, and it is also what lets
   Save keep one place on the screen.
   SAVE SITS OUTSIDE THIS BOX, 2026-11-13, measured in the running app. It was written
   inside, at the foot of the column, and with seven tags in the picker the content stood
   410px tall in a 268px box: the primary control was 145px BELOW THE FOLD and he had to
   scroll a panel to reach the one button that commits his typing. A primary action that
   can leave the screen is not in one place. The actions are now a row of the PANEL, under
   the box, so they cannot scroll anywhere; the tag picker is the one thing that scrolls,
   and it is the one thing with no fixed size, since the tag list grows for ever by design.
   The resting state draws the same row empty, so the panel is still one size.
   The parent screen owns the real number: set `--todo-detail-h` on the panel, and match it
   to `--todo-list-max` so the two panels stand the same height side by side. The default
   is a flat 420px, deliberately not a calc(): there is no parent to measure against yet,
   and a calc() would look authoritative while being a guess. */
.todod-body{
  display:flex; flex-direction:column; gap:18px;
  height:var(--todo-detail-h, 420px); overflow:auto; scrollbar-width:none;
}
.todod-body::-webkit-scrollbar{display:none}

/* Edit is the field itself. No pencil, no mode: the wording is in a box, so it can be
   typed in. `resize:vertical` is the one way the panel may grow, and he drives it. */
.todod-text{
  width:100%; box-sizing:border-box; min-height:80px; resize:vertical;
  font-family:var(--body); font-size:var(--fs-base); line-height:1.4; color:var(--ink);
  padding:12px 14px; border:2px solid var(--rule); border-radius:12px;
  background:var(--surface-2);
}
.todod-text:focus-visible{background:var(--sticky); box-shadow:inset 0 0 0 3px var(--ink-3)}

/* THE SHARED WORD SITS IN A HEADER. Every pill is a tag, so "Tag:" is said once and each
   pill keeps only the part that differs. */
/* THE ONE BOUNDED SCROLLER IN THIS PANEL, 2026-11-13. Every other part of the box is a
   fixed size; this one is not, because the tag list grows from use and has no ceiling. It
   takes whatever height is left (`flex:1 1 auto`), keeps at least one row of pills, packs
   its rows to the top and scrolls the rest with no visible bar. The tags he uses most are
   first -- that is the screen's ordering rule -- so the rows that scroll out of sight are
   the ones he uses least. `min-height:0` is what lets it shrink instead of pushing the
   deadline row out of the box. */
.todod-facets{
  display:flex; gap:12px; align-items:flex-start; flex-wrap:nowrap;
  flex:1 1 auto; min-height:52px;
}
/* The header is a sibling of the scrolling box, not a child of it, so the pills slide
   past it and it never leaves the screen. The padding lines it up with the first row of
   pills; it is scoped to this block so the "Due:" label in the foot, which shares the
   class and sits on a centred row, is not touched. */
.todod-facets > .todod-facetlabel{flex:0 0 auto; padding-top:13px}
.todod-pills{
  flex:1 1 auto; min-width:0; align-self:stretch;
  display:flex; gap:10px; align-items:center; flex-wrap:wrap; align-content:flex-start;
  overflow-y:auto; scrollbar-width:none;
}
.todod-pills::-webkit-scrollbar{display:none}
.todod-facetlabel{font-size:var(--fs-sm); font-weight:700; color:var(--ink-2)}

/* min-height carries the 44px hit target. SIZING IS IN THIS ONE RULE and in no :hover
   rule, so the pill is the same box at rest, on hover, on focus and when chosen. */
.todod-facet{
  min-height:44px; padding:0 18px; cursor:pointer;
  font-family:var(--body); font-size:var(--fs-sm); font-weight:700; color:var(--ink-2);
  border:2px solid var(--rule); border-radius:999px; background:var(--surface-2);
  transition:background .12s ease, color .12s ease, box-shadow .12s ease;
}
.todod-facet:hover{box-shadow:var(--hov-sh)}
.todod-facet:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}
.todod-facet[aria-pressed="true"]{background:var(--ink); color:var(--surface)}

.todod-break{
  font-size:var(--fs-sm); line-height:1.45; color:var(--ink-2);
  display:flex; flex-direction:column; gap:8px;
}
.todod-break .k{font-size:var(--fs-xs); font-weight:700; color:var(--ink-3)}

/* ONE FIXED ROW UNDER THE BOX, 2026-11-13: the deadline on the left, the way out on the
   right. Both are things that never grow -- one date, two buttons -- so they are the right
   two to take out of the box and give their height to the tag picker, which grows for
   ever by his own ask. Save is in the same place for every item he opens, his hand learns
   one spot, and nothing he does inside the box can carry it off the screen. min-height
   holds the row's size when it is drawn empty in the resting state, so picking an item
   never resizes the panel. */
.todod-foot{
  min-height:59px; padding-top:8px; box-sizing:border-box;
  display:flex; gap:16px; align-items:flex-start; justify-content:space-between;
}
.todod-acts{
  flex:0 0 auto;
  display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; align-items:flex-start;
}

/* -------------------- the four asks of 2026-11-12 ----------------------------------
   `docs/JOBS-TO-DO.md`. Every rule below holds to the two rules this block already kept:
   NOT ONE OF THEM SAYS position:fixed, position:sticky OR pointer-events, so none owes a
   fresh CHROME-WALK.md walk; and EVERY SIZE IS IN ONE RULE that covers rest, hover, focus
   and chosen, so nothing under the pointer can change shape. */

/* ---- the way in: one field, always drawn, always in the same place ---- */
/* A field that appeared on a plus would push every row below it down under his hand. */
.todo-add{display:flex; gap:12px; align-items:stretch; padding:4px 0 2px}
.todo-addfield{
  flex:1 1 auto; min-width:0; min-height:44px; box-sizing:border-box;
  font-family:var(--body); font-size:var(--fs-base); color:var(--ink);
  padding:0 14px; border:2px solid var(--rule); border-radius:12px;
  background:var(--surface-2);
}
/* NEVER A FOCUS RING. A background and an inset shadow, which change no size. */
.todo-addfield:focus-visible{background:var(--sticky); box-shadow:inset 0 0 0 3px var(--ink-3)}
.todo-addfield::placeholder{color:var(--ink-3)}

/* ---- the priority mark, at the end of the row ---- */
/* A FIXED WIDTH, DRAWN WHETHER THERE IS A WORD IN IT OR NOT. Sized for "Overdue", the
   longest word it can hold, so setting a deadline changes what the slot says and never the
   shape of the row. Tabular numbers keep "20 Nov" and "3 Dec" in the same columns.
   THE WORD IS THE SIGNAL AND THE COLOUR REPEATS IT. Neither tone below is the only thing
   saying "this is late": the text is already there to be read. */
.todo-mark{
  flex:0 0 auto; width:92px; align-self:center; margin:9px 0;
  display:grid; place-items:center; min-height:34px; padding:0 6px; box-sizing:border-box;
  font-size:var(--fs-xs); font-weight:700; font-variant-numeric:tabular-nums;
  border-radius:999px; color:transparent;
}
.todo-mark.hot{background:var(--crit-bg); color:var(--crit)}
.todo-mark.warm{background:var(--warn-bg); color:var(--warn)}
.todo-mark.calm{color:var(--ink-3)}

/* ---- the tag list that grows ---- */
/* A TAG NO JOB CARRIES IS DIMMED IN COLOUR ALONE and keeps the same box, so the pill row
   cannot reflow as the counts change under it. */
.todod-facet.dim{color:var(--ink-3); border-color:var(--rule)}
.todod-facet.dim[aria-pressed="true"]{background:var(--ink); color:var(--surface)}

/* The field that grows the list. Narrow on purpose -- a tag is one or two words -- and a
   fixed width, so the pills above it do not re-wrap as he types. */
.todod-newfacet{
  width:132px; min-height:44px; box-sizing:border-box;
  font-family:var(--body); font-size:var(--fs-sm); color:var(--ink);
  padding:0 14px; border:2px dashed var(--rule-2); border-radius:999px;
  background:var(--surface-2);
}
.todod-newfacet:focus-visible{background:var(--sticky); box-shadow:inset 0 0 0 3px var(--ink-3)}
.todod-newfacet::placeholder{color:var(--ink-3)}

/* ---- the deadline ---- */
.todod-due{flex:0 0 auto; display:flex; gap:12px; align-items:center; flex-wrap:wrap}
.todod-dueday{
  min-height:44px; box-sizing:border-box;
  font-family:var(--body); font-size:var(--fs-sm); color:var(--ink);
  padding:0 12px; border:2px solid var(--rule); border-radius:12px;
  background:var(--surface-2);
}
.todod-dueday:focus-visible{background:var(--sticky); box-shadow:inset 0 0 0 3px var(--ink-3)}
/* Clear is always drawn and disabled when there is nothing to clear, so the row is one
   size either way. Dimmed, and the cursor says it too -- not colour alone. */
.todod-due .btn:disabled{color:var(--ink-3); border-color:var(--rule); cursor:default; opacity:.65}

/* ---- Adv: the job the app can do when this one is ticked ---- */
/* The pressed look is the chosen pill's own pair, so one meaning has one appearance in this
   panel. COLOUR ONLY: `.btn` sets the size for every state and nothing here touches it, so
   the button is the same box pressed, hovered and at rest. */
.todod-acts .btn[aria-pressed="true"]{background:var(--ink); color:var(--surface)}
.todod-advrest{font-size:var(--fs-sm); color:var(--ink-2); align-self:center}

/* ---- the mark on a job the app added ---- */
/* The approximate-figure mark's own pattern (`.stat .v .approx-mark`), because that one is
   already proven against this app's size rules. `line-height:0` is the point of it: the glyph
   cannot grow the line box, so a row with a mark and a row without are the same height and
   nothing moves when the app puts a job on the list. 22px, well over the 16px floor whatever
   the row's own size becomes. THE GLYPH IS THE SIGNAL, NOT A COLOUR: a reader who cannot
   separate two inks still has a mark that is either there or not. */
.todo-t .todo-by{
  font-size:22px; line-height:0; vertical-align:super;
  margin-left:.08em; font-weight:600; letter-spacing:0;
}

/* ---- the dismiss slot, at the right end of every row ---- */
/* ALWAYS DRAWN. A control that shows only on hover cannot be found by someone who is not
   hunting for it, and a keyboard cannot reach it at all.
   THE BOX IS THE WIDTH OF THE WORD FROM THE START -- 76px, measured on "Dismiss" at 16px bold
   in the running app -- so the caret sits in a slot already big enough for what replaces it,
   and arming it moves no row and reflows no column. ONE RULE SETS THE SIZE for every state,
   so there is no hover or armed rule to undo it; those change colour only. */
.todo-off{
  flex:0 0 auto; width:76px; align-self:center; margin:9px 0;
  display:grid; place-items:center; min-height:44px; box-sizing:border-box;
  font-size:var(--fs-xs); font-weight:700; line-height:1;
  border:2px solid var(--rule); border-radius:10px; background:var(--surface-2);
  color:var(--ink-2); cursor:pointer;
  transition:background .12s ease, color .12s ease, box-shadow .12s ease;
}
/* THE CARET, SIZED ON ITS OWN. The box above holds its size for every state, so the glyph is
   free to be big enough to see: at the box's own 16px it read as an empty box. `line-height:1`
   and the fixed box mean this cannot push the row taller. */
.todo-caret{font-size:30px; line-height:1; display:block; margin-top:-4px}

.todo-off:hover{box-shadow:var(--hov-sh)}
.todo-off:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}
.todo-off[data-armed="yes"]{background:var(--crit-bg); color:var(--crit); border-color:var(--crit)}

/* ---- the way back, in the list's head ---- */
/* Undo over confirm, so nothing asks "are you sure?": the job goes at once and this is the way
   back for as long as she stays on the screen. It takes the count's place in the head, because
   while it is there it is the more useful of the two. */
.todo-undo{
  align-self:center; min-height:44px; box-sizing:border-box; padding:0 14px;
  font-size:var(--fs-sm); font-weight:700; line-height:1;
  border:2px solid var(--rule); border-radius:10px; background:var(--sticky);
  color:var(--ink); cursor:pointer;
  transition:background .12s ease, box-shadow .12s ease;
}
.todo-undo:hover{box-shadow:var(--hov-sh)}
.todo-undo:focus-visible{box-shadow:inset 0 0 0 3px var(--ink-3)}

/* ---- the context panel, below the detail ---- */
/* THE SAME FIXED HEIGHT TRICK AS THE DETAIL, for the same reason: a researched answer runs
   to three lines for one job and to none for the next, and a panel that resized would move
   whatever sits under it every time he picked a row. The parent screen owns the number and
   sets `--todo-context-h`; the default is a flat 170px, deliberately not a calc() -- there
   is no parent to measure against in the template, and a calc() would look authoritative
   while being a guess. */
.todoc-body{
  display:flex; flex-direction:column; gap:14px;
  height:var(--todo-context-h, 170px); overflow:auto; scrollbar-width:none;
}
.todoc-body::-webkit-scrollbar{display:none}

.todoc-row{display:flex; gap:12px; align-items:flex-start}

/* THE KIND IS A WORD FIRST and the colour behind it repeats the word. A fixed width, sized
   for "Overlooked", so every line of context starts its text in the same column. */
.todoc-kind{
  flex:0 0 auto; width:108px; box-sizing:border-box;
  display:grid; place-items:center; min-height:30px; padding:0 8px;
  font-size:var(--fs-xs); font-weight:700; border-radius:999px;
  background:var(--idle-bg); color:var(--idle);
}
.todoc-kind.answer{background:var(--good-bg); color:var(--good)}
.todoc-kind.finding{background:var(--accent-soft); color:var(--accent-ink)}
.todoc-kind.overlooked{background:var(--warn-bg); color:var(--warn)}
.todoc-kind.issue{background:var(--crit-bg); color:var(--crit)}

.todoc-said{flex:1 1 auto; min-width:0}
.todoc-said .t{font-size:var(--fs-sm); line-height:1.45; color:var(--ink)}
.todoc-from{font-size:var(--fs-xs); color:var(--ink-3); padding-top:4px}

/* ---- the lamp turned down: one dim behind every popover ---- */
/* Copied, values and all, from the in-progress ASA Shopify theme (`assets/base.css`, the
   `.sheet` and `.lightbox` backdrops), so the shop and the app dim their backgrounds the same
   way: warm light pooled at the top, falling off to amber dark, softly blurred.
   IT COVERS THE WHOLE WINDOW, THE TOP STRIP INCLUDED, which is the owner's instruction and not
   a side effect: a ::backdrop is a top-layer box the size of the viewport, and the masthead's
   z-index of 30 is BELOW the top layer rather than beside it, so no stacking context in the
   page can lift the strip out of the dim.
   POINTER-EVENTS:NONE IS LOAD-BEARING. All three are popover="manual", and app.js shuts them on
   a click outside -- which it can only see if the click reaches a real element. A hit-testable
   backdrop would swallow that click and the panels would never close.
   THE DIM FADES BOTH WAYS, 2026-11-13, at the owner's word: "Smooth transition all the lightbox
   bgs in and out too". It used to fade in only. A ::backdrop is painted by the popover and dies
   with it, so there is no box left to transition once the panel is hidden -- which is why the
   fade out has to happen BEFORE the hide, not after it. `.dimming` is that moment: app.js marks
   the panel, this rule takes the dim's opacity and blur to nothing, and the panel is hidden at
   the end of the fade. `hidden` IS STILL THE SOURCE OF TRUTH for every probe in harness/; it
   just lands at the end of the journey home instead of at the start of it. */
:is(.datebox, .bookbox, .askpanel, .feedpop, .offerpop, .boardbox, .calbox, .tmbox, .daybox, .clocklog)::backdrop{
  pointer-events:none;
  background:radial-gradient(110% 90% at 50% 0%,
    rgb(160 95 25 / .3), rgb(60 35 10 / .62) 45%, rgb(25 14 4 / .86));
  backdrop-filter:blur(3px);
}
@media (prefers-reduced-motion: no-preference){
  :is(.datebox, .bookbox, .askpanel, .feedpop, .offerpop, .boardbox, .calbox, .tmbox, .daybox, .clocklog)::backdrop{
    transition:opacity .3s ease, backdrop-filter .3s ease;
  }
  @starting-style{
    :is(.datebox, .bookbox, .askpanel, .feedpop, .offerpop, .boardbox, .calbox, .tmbox, .daybox, .clocklog):popover-open::backdrop{opacity:0; backdrop-filter:blur(0)}
  }
  /* The way out. The four panels that travel home carry a longer fade than the three that
     simply go: the dim has to still be there under an object that is still flying, or the
     journey finishes over an undimmed room. The numbers are each panel's own journey. */
  :is(.datebox, .bookbox, .askpanel, .feedpop, .offerpop, .boardbox, .calbox, .tmbox, .daybox, .clocklog).dimming::backdrop{
    opacity:0; backdrop-filter:blur(0);
  }
  :is(.bookbox, .askpanel).dimming::backdrop{transition-duration:.46s, .46s}
  /* A line pressed: the dim runs out over the whole swap, and the blur is gone by the landing. */
  .bookbox.dimming::backdrop{transition-duration:var(--dimfade, .46s), var(--blurfade, .46s)}
}

/* THE INK UNDERLINE, 2026-11-15, at the owner's word: "Don't lighten or highlight anything on
   hover ... Give list items a hand-drawn style single underline on hover, one that also animates
   itself in on hover and out on mouseoff". A list line's words get one wobbly pen stroke under
   them, in the words' own colour (a mask, so it follows the ink), drawn in left to right and
   wiped back out the same way. It is a pseudo-element laid under the words, so it takes no room
   and moves nothing. Keyboard focus draws the same stroke. Reduced motion shows it with no draw. */
:is(.lib-src .ln, a.row .t, .pie-legend .nm, .leafrow .n, .leafgo .lgw,
    .bklist .bkt, .todo-open .todo-t){position:relative}
:is(.lib-src .ln, a.row .t, .pie-legend .nm, .leafrow .n, .leafgo .lgw,
    .bklist .bkt, .todo-open .todo-t)::after{
  content:""; position:absolute; left:-1px; right:-1px; bottom:-2px; height:6px;
  background:currentColor;
  -webkit-mask:url(props/ink-underline.svg) 0 0 / 100% 100% no-repeat;
  mask:url(props/ink-underline.svg) 0 0 / 100% 100% no-repeat;
  clip-path:inset(0 100% 0 0);
  transition:clip-path .22s cubic-bezier(.45,.1,.3,1);
}
:is(.lib-src, a.row, .pie-legend button, button.leafrow, .leafgo,
    .bklist button:not([disabled]), .todo-open):is(:hover, :focus-visible)
  :is(.t, .ln, .nm, .n, .lgw, .bkt, .todo-t)::after{clip-path:inset(0 0 0 0)}
@media (prefers-reduced-motion: reduce){
  :is(.lib-src .ln, a.row .t, .pie-legend .nm, .leafrow .n, .leafgo .lgw,
      .bklist .bkt, .todo-open .todo-t)::after{transition:none}
}
.dayq:focus{outline:none}
