/* Second Lens Assurance Register.
 *
 * No inline style anywhere in this product, which is what lets the Content Security Policy
 * carry no unsafe-inline and no hashes. Add one and the page deploys green and renders blank.
 *
 * Tokens are Second Lens Style Guide V1.1. Use a step from the scale, never an arbitrary
 * value. Light and dark follow the device's setting with the same tokens (PST-43): the dark values
 * are the block after the grade colours below, and nothing else in the sheet changes. Every colour
 * is a token: a rule names a token, or mixes one with transparent, and never writes a colour of its
 * own. tools/tests/dark-mode.test.mjs holds that, gives every light token a dark value or names it
 * as one of the few that hold in both, and measures the main pairs in both; tools/contrast-robot.mjs
 * measures every word on every kind of page in a real browser, in both. */

/* The faces are declared in fonts.css, which the build writes from the face list in
   rules/settings.mjs and every page links before this file: Inter for text and Poppins for
   headings, as the Second Lens product standard fixes them (PST-03, PST-40). */

:root {
  /* The page and the browser's own parts (scroll bars, a box you type into, a date picker) follow the
     device's light or dark setting (PST-43). */
  color-scheme: light dark;
  /* surfaces */
  --bg: #FFFFFF; --surf: #FFFFFF; --rail: #F0F2F5;
  /* text. --ink-2 is the second level of text, a paragraph under a heading in ink (it was written out
     as #3F4756 some thirty times on the Overview); --on-fill is the colour of words on a filled colour
     (the action blue, the product green, a stage): white here, and near-black in the dark, where the
     fills are the lighter dark values (PST-43). So a fill behind --on-fill must be a token that has a
     dark value of its own; a fill that stays the same in both themes takes its own words (as a stage's
     --stage-one-on does), never --on-fill. */
  --ink: #0D1B2A; --ink-2: #3F4756; --mid: #5C6472; --soft: #8A92A1; --on-fill: #FFFFFF;
  /* White on the navy (the bar, the console's tabs, a message, the record's band), which is navy in the
     dark too, so this one does not change with the device's setting. */
  --on-nav: #FFFFFF;
  /* lines. --edge is the firmer line round a card or a box on the Overview (#C9CED8 there before). */
  --line: #E1E4EA; --line2: #EDEFF3; --edge: #C9CED8;
  /* action, the only blue */
  --act: #0B5FBF; --act-h: #094D9B; --act-t: #E8F1FB;
  /* status signals */
  --red: #C4314B; --red-h: #A3121F; --red-t: #FBEBEE; --amb: #B0770B; --amb-t: #FCE3A6;
  --amb-on-tint: #8A5D08;
  /* The amber a white label can sit on. --amb carries a border or a bar, where 3:1 is the
     bar and it measures 3.83:1 against white. Under white text it is text, 4.5:1 is the
     bar, and 3.83 is under it: the "Should fix" badge and the "was" word in a swapped
     phrase were both reading at 3.83:1. Scaled by 0.9, which keeps the hue, giving
     4.60:1. Red and green already measured 5.40 and 5.27 under white and do not move. */
  --amb-d: #9E6B0A;
  --grn: #107C41; --grn-t: #E7F4EC; --gry: #98A0AE; --gry-t: #F0F2F5;
  --vio: #5B4B9E; --vio-t: #EEEBF7;
  /* Outside the UK: a slate, not a teal, because teal means help and nothing else (PST-62). */
  --abroad: #3D5470; --abroad-t: #EDF1F6;
  /* dark navigation surface */
  --nav: #0D1B2A; --nav-fg: rgba(255, 255, 255, .86); --nav-dim: rgba(255, 255, 255, .58);
  --nav-accent: #E63946;
  --nav-red: #F0788C; --nav-amb: #E8A33D; --nav-grn: #57C98A; --nav-gry: #9AA3B0;
  /* The light blue that reads on the navy: the focus ring and the menu's picture there. */
  --nav-focus: #9CC3FF;
  /* White on the navy as a triplet, for the washes, rims and rules drawn on the bar, the console's
     tabs and the menu, each at its own strength; and the black of a shadow cast on the navy. Navy in
     both, so neither changes in the dark. */
  --on-nav-rgb: 255, 255, 255; --nav-shade-rgb: 0, 0, 0;
  /* The phone's Menu button, a raised plate on the navy: its face, its three shading steps and the
     hard edge under it. */
  --nav-plate: #1F2E45; --nav-plate-1: #33476A; --nav-plate-2: #22324C; --nav-plate-3: #1A2840; --nav-plate-foot: #04080E;
  /* The console's menu panel on a phone, the action blue's deep step behind white words (it was
     --act-h, which turns light in the dark and would leave the white words unreadable), and where
     you are in the console's sections: the product's deep green on a white face. On the navy or that
     blue in both, so neither changes. */
  --nav-band: #094D9B; --nav-here: #0B5C36;
  /* Other companies' colours, used only on their own marks on the share buttons. */
  --brand-linkedin: #0A66C2; --brand-whatsapp: #25D366;
  /* The ground a shadow, a scrim, a sunk well or a hover wash is cast in, as a triplet so each rule
     sets its own strength: the navy on a light page, black in the dark. */
  --shade-rgb: 13, 27, 42;
  /* The white glint on a lit disc (the AI light), which is a highlight in both. */
  --glint-rgb: 255, 255, 255;
  /* The checks lozenge's well: its rim and the two shaded steps of its face before the surface. */
  --well-edge: #0A1420; --well-1: #CDD5E1; --well-2: #EEF1F6;
  /* The white a picture drawn for a white page sits on in the dark (the product's lockup on the
     closed screen), so it keeps its own ground. White in both. */
  --pic-ground: #FFFFFF;
  /* The Overview's ring is drawn on a canvas, which no rule reaches, so public/js/door.mjs reads
     these as it draws and every colour in the picture comes from here. The figure is in the sheet's
     red, amber and green for words (as the AI card's word is), the part not yet clear is --line, the
     shadow under the ring is cast in --shade-rgb, the edges between the parts are the glint in the
     light and the shade in the dark, and the soft light that travels round the top is the glint. The
     parts themselves are --red, --amb and --grn. Each names another token, so its dark value is that
     token's; only the shadow's strength and the edges change in the dark block. */
  --ring-ink-1: var(--red-h); --ring-ink-2: var(--amb-on-tint); --ring-ink-3: var(--prod-d);
  --ring-rest: var(--line);
  --ring-shade: rgba(var(--shade-rgb), .13); --ring-edge: rgba(var(--glint-rgb), .35);
  --ring-glint: rgba(var(--glint-rgb), .33);
  /* Icons drawn by the style sheet, where there is no markup to hold an svg: the same paths as
     public/js/icons.mjs, at the same 2px round stroke (PST-44), used as a mask and painted in the
     text's own colour. A data address is an image, which the page's policy allows (img-src data:).
     tools/tests/icon-masks.test.mjs holds each path to the set's. */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");

  /* ------------------------------------------------------- the four button plates, and what
     each one means.

     Five roles per family: plate, plate hover, edge, edge hover, text.

     One meaning each, on every screen a customer sees. docs/style/buttons.md is the written
     version and tools/tests/button-roles.test.mjs is what holds it:

       go     blue     do this too, or carry a copy in or out of this device
       keep   stage    this came from you and you can change it. Edit the details, and nothing else
       back   neutral  move on, decline, navigate. Nothing about the advert changes
       del    magenta  this press lowers the score, or deletes something kept on this device

     The spine is that last line, and it is written as an effect rather than as a feeling
     because a feeling cannot classify a control. "Reset this one" reads gentle and always
     lowers the score, so it is del; "Check another advert" reads final and touches no score, so
     it is not. What the press does to the number decides, and the code can be read to check.

     The details role was amber once, meaning "your detail", and reached six meanings on the guided
     pass. Since 16 November 2026 it wears the colour of the stage its line belongs to, and amber is
     never a button colour, because amber means needs attention and nothing else (PST-41). Since 19
     November 2026 (Phil's decision of that day, PST-41) del is magenta, not traffic-light red, because
     red means a fault or off and nothing else. The marked words inside a written sentence wear these same
     tokens, and a sweep check asserts the mark and the Edit button match at run time.

     These four plates are 1.00 to 1.15:1 against each other. They differ in hue and in nothing
     else, so in greyscale, in a printed screenshot, and for a good share of colour-blind
     readers they are one button. Colour is therefore never the carrier: every role carries an
     icon and a verb as well, and button-plates.test.mjs asserts that near-equality as the
     reason why.

     The edges were #6A96CC, #B08F43 and #D1798C, which are 2.79, 2.79 and 2.80 against the page
     ground. WCAG 2.2 1.4.11 wants 3:1 for the visual information required to identify a
     control, and on a ghost button the edge is that information: its fill is within a whisker
     of the page. The neutral one was fixed for exactly this reason and the other three were
     left, so three of the four families carried the defect the fourth had had corrected. Each
     is scaled by 0.91, which keeps the hue, and all four now land together: 3.30, 3.32, 3.33
     and 3.30 on the page, 3.63 to 3.67 on a card. Text on every plate was already 6.3:1 or
     better and has not moved.

     The two blue roles, go and Edit the details, wear the one action blue (PST-41) for their edge and
     their words since 16 November 2026, with --act-h as the hover edge: they were #6089BA and #0A4E9E,
     and #175FBB and #0D4486, four more blues for an action. The action blue is 6.17:1 on white and at
     least 4.56:1 on either plate, so nothing became harder to read. */
  --pl-go: #DEEAF8;   --pl-go-h: #CFE0F4;   --pl-go-e: #0B5FBF;   --pl-go-eh: #094D9B;   --pl-go-t: #0B5FBF;
  /* The person's own details in a written line, the Edit the details button that changes them and
     the form it opens: one thread, in the colour of the stage the line belongs to, because that is
     what every other mark on a line says. Stage two, a line we wrote on our own, is blue (the action
     blue); stage three, a line from their answers, is purple (it was green until 19 November 2026, see
     stage three below). It was amber once, which here also means Should fix and a warning, and needed a
     brown to be read as text. Edges 4.5:1 or better on every ground they sit on. */
  --pl-yours: #DCE9FC;  --pl-yours-h: #CCDFFA;  --pl-yours-e: #0B5FBF;  --pl-yours-eh: #094D9B;  --pl-yours-t: #0B5FBF;
  --pl-yours3: #F0E1F9; --pl-yours3-h: #E8D2F4; --pl-yours3-e: #8036AB; --pl-yours3-eh: #5E247F; --pl-yours3-t: #5E247F;
  --pl-back: #E9ECF1; --pl-back-h: #DEE2E9; --pl-back-e: #7D8797; --pl-back-eh: #5C6472; --pl-back-t: #3F4756;
  /* The del role (lowers the score, or deletes something kept on this device) is magenta, not red, since
     19 November 2026: red means a fault or off in every Second Lens product (PST-41), and this press is
     neither. Phil's decision of 19 November 2026: not the traffic light red, amber or green, not the
     accent green and not the help teal. Its hue (318) is 31 degrees from the traffic light red (349).
     Words 7.2:1 or better on its plate, its edge 4.6:1 on the page (docs/style/buttons.md). */
  --pl-del: #F9E6F3;  --pl-del-h: #F4D7EB;  --pl-del-e: #BA4A99;  --pl-del-eh: #8E2970;  --pl-del-t: #79205E;
  /* The Report button. Solid dark slate, the one plate that is not a pale tint, so it stands apart
     from every action without borrowing a colour that already means something: not red (removal),
     amber (your detail), green (a change made), blue (the action) or violet (safeguarding). */
  --pl-report: #2B3645; --pl-report-h: #1B2430; --pl-report-e: #1B2430; --pl-report-t: #FFFFFF;

  /* one box you type into, and its ground is never white */
  --io-type: 13px; --io-pad: 8px 10px; --io-lead: 1.55;
  --io-bg: #EDF0F5; --io-bg-h: #E6EAF1; --io-bg-on: #FFFFFF;

  /* ----------------------------------------------------------------- one light, one direction
   *
   * Every shadow in this product is cast by one light, high and to the right, so every shadow
   * falls down and to the left. The rule is one line and it is checkable: the offset of any
   * shadow is (-n, +n). Nothing is lit from anywhere else, on any screen, in any state.
   *
   * It held to a rule before this and it was a different rule: every offset was (0, +n), a
   * light directly overhead. That is internally consistent and it is flat, and it was asked to
   * change. What was not consistent is that the dial drew its own four shadow layers in SVG
   * with dx hard-coded to 0, so the one drawing in the product that is meant to look solid was
   * lit from a different place from the card it sits on. It is on the same rule now.
   *
   * The rule covers an inset shadow too, with the same offset and no inversion, and that is
   * right rather than convenient. On a raised button `inset -1px 1px 0` white draws the lit
   * bevel along the top and the right, which is the two edges this light reaches. On a pressed
   * one, and on a box you type into, `inset -2px 2px 5px` dark draws the rim's shadow on the
   * same two interior walls, which is where it falls when the thing is sunk in rather than
   * standing out. One offset, two readings, because the geometry does the work.
   *
   * Three kinds of box-shadow are deliberately outside it, because none of them is lighting:
   * a ring (`0 0 0 Npx`), which is an outline; a bar (`inset 0 -2px 0`), which is the 2px rule
   * this product draws under a stage's own row; and the glow on the turning dial, which is a
   * light rather than a shadow of one. `tools/tests/shadows.test.mjs` names all three and
   * fails on anything else that strays. */

  /* button depth */
  --lift-f: inset -1px 1px 0 rgba(255, 255, 255, .24), -1px 1px 2px rgba(13, 27, 42, .16), -3px 3px 8px rgba(11, 95, 191, .22);
  --lift-f-h: inset -1px 1px 0 rgba(255, 255, 255, .28), -2px 2px 5px rgba(13, 27, 42, .16), -8px 8px 18px rgba(11, 95, 191, .30);
  --lift-p: inset -1px 1px 0 rgba(255, 255, 255, .85), -1px 1px 2px rgba(13, 27, 42, .10);
  --lift-p-h: inset -1px 1px 0 rgba(255, 255, 255, .9), -4px 4px 11px rgba(13, 27, 42, .13);
  --press-f: inset -2px 2px 5px rgba(0, 0, 0, .26);
  --press-p: inset -2px 2px 5px rgba(13, 27, 42, .15);
  /* elevation */
  --sh: -1px 1px 2px rgba(13, 27, 42, .06), -1px 1px 3px rgba(13, 27, 42, .10);
  --sh2: -2px 2px 4px rgba(13, 27, 42, .06), -8px 8px 16px rgba(13, 27, 42, .12);
  --sh3: -4px 4px 8px rgba(13, 27, 42, .07), -16px 16px 32px rgba(13, 27, 42, .16);
  /* corners */
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-full: 999px;
  /* type. Inter for text and Poppins SemiBold for headings, the same in every Second Lens product
     (PST-40). Until 16 November 2026 the console could choose one face for every word; the
     standard fixes the faces, so that choice is gone. --mono is Inter too since 16 November 2026 (it was the
     system's monospace, a third face and not stored in the product): references, hashes and codes line up
     with Inter's figures of one width and its slashed zero, set wherever --mono is. */
  --disp: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: var(--ui);
  /* The advert's own words: the paste box, the advert on the result, and the sentences added to it.
     Inter, like every other word (PST-40): until 16 November 2026 they were a third face, the serif
     Literata. The name stays, so the rules that draw the advert still say which words are its own. */
  --read: var(--ui);
  /* seven steps. Use a step, never an arbitrary value. */
  --t-xs: 11px; --t-s: 12.5px; --t-b: 13.5px; --t-m: 15px; --t-l: 19px; --t-xl: 26px; --t-2xl: 40px;
  /* 4px rhythm */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  /* motion */
  --m-state: .14s; --m-lift: .16s; --m-panel: .26s;
  --ease-panel: cubic-bezier(.22, 1, .36, 1);
  /* product identity */
  --prod: #0E7A47; --prod-blade: #1A7F4D; --prod-t: #E6F3EC; --prod-d: #0B5C36;

  /* ---------------------------------------------------------------- the three stages
     One meaning each, everywhere this product shows a score or names a stage:

       one    grey   the advert exactly as the user pasted it. Nothing has happened.
       two    blue   fixed by the application on its own. No user involvement.
       three  purple gained because the user answered the questions.

     These three must never mean anything else anywhere in the product. Grey is not "disabled".
     Blue is not "link". Purple is not "ok" (it was a green until 19 November 2026, and green means
     on or healthy in every Second Lens product, PST-41).

     The values are the score dial specification's own, and they replace three that were chosen
     here, except stage three's. The specification measures them against the card the marks sit on,
     which is what WCAG 1.4.11 asks about: grey 3.95:1, blue 4.12:1, purple 3.72:1 (the
     specification's green was 3.22:1), against a floor of 3.

     The earlier values were picked to hold a separation between the stages where they touched,
     because the gauge they were for was a single stacked arc. The dial these are for does not
     touch: every mark is trimmed by 1.6 degrees at each end, so the adjacent colour each mark
     is measured against is the card behind it and not its neighbour. That is stated in the
     specification as the reason the palette passes, and it is why the pair separation those
     older values were protecting is no longer the governing number.

     Text on a chip is the stricter case at 4.5:1, and white does not clear it on all three, so
     each stage carries the text colour that goes on it rather than assuming white. Measured:
     4.87:1 on grey, 4.12:1 on blue, 5.25:1 on purple.

     The blue one is under the line, and it is the specification's own pairing: it sets white on
     that blue and separately says chip text needs 4.5. Those two statements do not agree. The
     instruction with the file was to build it exactly as the file describes, so the file's
     value is what is here and the shortfall is written down rather than quietly corrected.
     tools/tests/stage-colours.test.mjs holds all three numbers, so changing any of them is a
     decision somebody makes rather than one that happens.

     The dark values are the specification's too. Its original design blue #0A39E0 measures
     2.18:1 on a dark card and its original green #22C51E 2.31:1 on a white one, so each theme
     takes the version of the hue that passes.

     Stage three is purple since 19 November 2026 (Phil's decision; PST-41). It was the specification's
     green #12A62F, and green means on or healthy in every Second Lens product, while stage three means
     "from your answers". The purple (hue 278) is not the traffic light red, amber or green, not the
     accent green and not the help teal, and it stands apart from the grey and the blue of the other two
     stages. It reads at 3.72:1 on white and 4.32:1 on the dark card, and its near-black ink on it at
     5.25:1. */
  --stage-one: #808080; --stage-two: #1E7AF0; --stage-three: #AD66D6;
  /* What goes ON the fill, and it is near-black on all three now. Stage two's was white, which
     measures 4.12:1 against its own blue: under the 4.5:1 the chip's 13px bold text asks for,
     and the browser sweep never caught it because the states it visited had no automatic stage
     in them and so drew no blue chip. Near-black measures 4.67:1 there, 4.87:1 on the grey and
     5.25:1 on the purple (5.76:1 on the green it was until 19 November 2026), so one rule covers all
     three: a stage's own fill carries near-black.
     docs/style/stages.md has the table. */
  --stage-one-on: #0A0F15; --stage-two-on: #0A0F15; --stage-three-on: #14061F;
  /* A darker step of each, for the edge of a filled control and for nothing else. Scaled by
     0.78, which keeps the hue, and measured against the page it sits on: 5.92:1, 6.17:1 and
     6.92:1, so an edge identifies its control well past the 3:1 of 1.4.11. */
  --stage-one-e: #646464; --stage-two-e: #0B5FBF; --stage-three-e: #8036AB;
  /* Stage two's edge is the one action blue (PST-41, 16 November 2026): it edges the version tab and
     the stage legend's button, which are controls, and a control carries no blue but the action's.
     It was #175FBB, a second blue; the action blue measures 6.17:1 on white against its 6.19. The
     specification's #1E7AF0 stays on the dial's marks and the stage dots, which are data, not controls. */
  /* The unpainted rest of the hundred, and the ground still on offer. The second is a lighter
     step of stage three because that is what taking it would be, and it is a mark that carries
     meaning, so it reads at 3:1 or better on the card (WCAG 1.4.11): 3.16:1 here and 3.19:1 in the
     dark. It was #D8B6ED (1.77:1) and in the dark #6A4082 (2.04:1) for a day; the review of
     19 November 2026 measured them. The two cards the small dial sits on paint the band in their own
     ink (.route-carry, .route-again), and tools/tests/stage-colours.test.mjs measures those too. */
  --stage-none: #E4E7EC; --stage-could: #B07ADA;
  /* The grounds a stage's own content sits on, away from the dial: a panel, a sentence about
     to go into somebody's advert, a row in a list. Tints of the three above rather than new
     hues, so the ring and the thing the ring is about are plainly the same colour.
     Ink sits on all three at better than 15:1, which is what a tint is for. */
  --stage-two-t: #E9F2FE; --stage-three-t: #F7EDFC;
  /* And the paper each version of the advert is printed on, which is a tint of the tint.

     The advert panel was white behind all three versions, so the one thing on the screen that
     changes when you press a stage looked identical whichever you were on, and the tabs above
     it were grey against a white card. The owner's words: no white background, at the moment
     it is not visible to the user and they don't understand the user journey.

     A lighter step than the tints above rather than the tints themselves, because the lines
     this product wrote INTO the advert already sit on those tints: paint the whole page in
     --stage-two-t and every added line disappears into it. Each of these is its tint mixed
     55% into white, which keeps the hue and lands the page a whisker off white: ink reads at
     better than 16:1, the quiet grey at better than 5.6:1, and a line on its own tint still
     stands off the paper it sits on. */
  --stage-one-paper: #F4F4F4; --stage-two-paper: #F3F8FE; --stage-three-paper: #FBF6FE;
  /* The width of the column a marked line's controls stand in, so every such line in the
     product has its controls ending on the same edge. Sized to Undo and Edit side by side,
     which is wider than it was: both carry an icon now, and a column measured for the words
     alone would have wrapped Edit onto a line of its own on the row that has both, which is
     the moving control this column exists to stop. The sweep measures the two against it. */
  --line-do-w: 10.4rem;
  /* The halo round the card somebody is working in. Stage three's own purple at low alpha, so
     the ring is the same colour as the edge it sits outside and reads as that edge's light
     rather than as a second border. */
  --stage-three-halo: rgba(173, 102, 214, .18);
  /* The dial's shadow, as an RGB triplet so each of the four layers can set its own opacity. */
  --shadow-rgb: 15,23,36;
  /* Strongest nearest the mark and fading outwards, so four layers read as one shadow with a
     short falloff. They used to rise with distance, which is what made the dial's shadow a wide
     even haze rather than an edge. */
  --shadow-o1: .30; --shadow-o2: .22; --shadow-o3: .14; --shadow-o4: .08;
  /* fixed chrome. The top bar is 52px on every size of screen (PST-06). */
  --bar-h: 52px;
  --col: 44rem;
}
/* The development bar's starting guess, at the same specificity as :root so the height measureBar()
   writes through the adopted sheet, which comes later in the cascade, replaces it. As
   :root[data-site="development"] it outranked the measurement and the guess stood for good. */
:root:where([data-site="development"]) { --bar-h: 86px; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-b)/1.55 var(--ui); }
/* Every heading is Poppins SemiBold (PST-40), h4 to h6 included: the base rule named only h1 to h3,
   so a card's or a dashboard's h4 fell back to the body's Inter. */
h1, h2, h3, h4, h5, h6 { font-family: var(--disp); font-weight: 600; line-height: 1.25; margin: 0; }
h1 { font-size: var(--t-xl); font-weight: 600; }
h2 { font-size: var(--t-l); font-weight: 600; }
h3 { font-size: var(--t-m); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--act); }
/* A link drawn as a button reads as a button: no underline, wherever it is. It was set page by
   page, so the console's Reply and Answer the questionnaire yourself still carried one. */
a.btn, a.ghost { text-decoration: none; }
.mono { font-family: var(--mono); font-size: var(--t-s); letter-spacing: -.01em; font-variant-numeric:tabular-nums slashed-zero; }
/* A browser sets code, keys and preformatted text in its own monospace; here they are Inter like every
   other word (PST-40), with figures that line up. */
code, kbd, samp, pre { font-family: var(--mono); font-variant-numeric: tabular-nums slashed-zero; }
svg { width: 1.05em; height: 1.05em; flex: none; }

/* Anything permitted to break inside a word is set in the machine face. break-all breaks
 * prose mid word; overflow-wrap: anywhere does not. */
.mono { overflow-wrap: anywhere; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--act);
  outline-offset: 2px;
  border-radius: var(--r-s);
}
.bar :where(a, button):focus-visible { outline: 2px solid var(--on-nav); }
/* Focus is never hidden under the sticky header. WCAG 2.2 SC 2.4.11. */
:where(a, button, input, select, textarea, [tabindex]) { scroll-margin-top: calc(var(--bar-h) + var(--sp-4)); }

/* An author rule setting display beats [hidden]. Do not remove this reset. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:root[data-motion="off"] * { animation: none !important; transition: none !important; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--surf); color: var(--ink); padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-s) 0; box-shadow: var(--sh2); font-weight: 600;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------- the development banner */

.devbar {
  position: sticky; top: 0; z-index: 48;
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--red); color: var(--on-fill); padding: 6px var(--sp-4);
  font-size: var(--t-s); border-bottom: 2px solid var(--on-fill);
}
.devbar-tag {
  font: 700 10px var(--ui); letter-spacing: .1em;
  background: var(--on-fill); color: var(--red); padding: 3px 8px; border-radius: var(--r-s); flex: none;
}
.devbar-ver {
  font: 600 11px var(--ui); font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--on-fill) 92%, transparent); color: var(--red);
  padding: 2px 7px; border-radius: var(--r-s); flex: none; white-space: nowrap;
}
.devbar-say { min-width: 0; flex: 1; }
.devbar-out {
  flex: none; margin-left: auto; background: none; border: 1px solid var(--on-fill); color: var(--on-fill);
  border-radius: var(--r-s); padding: 4px 10px; font: 600 var(--t-xs) var(--ui);
  cursor: pointer; min-height: 26px;
}
.devbar-out:hover { background: color-mix(in srgb, var(--on-fill) 22%, transparent); }
:root[data-site="development"] .bar { top: 34px; }

/* --------------------------------------------------------------------------- the app bar */

/* ONE ROW AT EVERY WIDTH (Phil, 9 November 2026: "aligned and evenly spaced whatever the size of the
   screen"). The bar is a single row of a fixed 52px that never wraps, Second Lens navy, the same on
   every page and every size of screen (PST-01, PST-06; 60px until 16 November 2026). Everything in it is centred on
   the bar's own centre line, the page links are one gap apart and so are the tools, and the one
   thing that changes with the words of the count (the lozenge) has a width that does not. When
   there is not room, things go in a set order and never wrap: the version (from 1860px), then the
   tools' words, leaving their pictures (below 1800px), then the page links' long names for short
   ones (below 1400px), then the page links and the tools move into the Menu panel (below 1120px,
   menu.mjs). tools/header-robot.mjs holds all of it at every width. */
.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--sp-4);
  height: 52px; padding: 0 20px;
  background: var(--nav); color: var(--nav-fg);
  /* The line along the bottom is drawn inside the bar rather than as a border, so the bar's whole
     52px is the room the brand is centred in and the mark has its 12px clear above and below
     (PST-03). As a 1px border it took a pixel off the inside, and the mark sat 11.5px from the top
     (measured on 17 November 2026). */
  box-shadow: inset 0 -1px 0 rgba(var(--on-nav-rgb), .08);
  flex-wrap: nowrap;
}
.bar-brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: inherit; min-height: 44px; flex: none; }
.bar-brand img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
/* The name over the product, and the Testing label (which the kit puts after the product name)
   in the row of the small name, so the label never makes the brand taller or wider. The sizes are
   the standard's, the same on a computer and a phone (PST-03): the mark 28 by 28 with a corner of 6,
   "SECOND LENS" in Inter Bold 9.5px at 0.06em and white at 58%, the product name in Poppins SemiBold
   15px and white, and at least 12px clear round the block (a line height of 1.1 keeps the two lines
   to 27px in the 52px bar). */
.bar-names { display: grid; grid-template-columns: max-content max-content; justify-content: start; align-items: center; column-gap: 6px; line-height: 1.1; }
.bar-parent { grid-area: 1 / 1; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--nav-dim); }
.bar-product { grid-area: 2 / 1 / 3 / 3; font-family: var(--disp); font-size: var(--t-m); font-weight: 600; color: var(--on-nav); white-space: nowrap; }
.bar-names > .slk-testing { grid-area: 1 / 2; margin: 0; padding: 0 6px; font-size: 9.5px; line-height: 1.1; align-self: center; justify-self: start; }
/* Its own width, not the rest of the row. `flex: 1 1 auto` made the nav grow into every pixel
   left over, so the tools beside it were pushed onto a second line at every width there is: the
   bar was 111px tall on a 1440px screen with 500px of empty nav between the last link and the
   first tool. --bar-h says 52, which is what the rest of the sheet scrolls and positions
   against, so the bar was also half again as tall as the one number that describes it. */
.bar-nav { display: flex; align-items: center; gap: var(--sp-1); flex: 0 0 auto; flex-wrap: nowrap; }
.navlink {
  background: transparent; border: none; color: var(--nav-dim); cursor: pointer;
  font: 600 var(--t-b) var(--ui); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-s);
  min-height: 32px; display: inline-flex; align-items: center; gap: var(--sp-2);
  transition: background var(--m-state), color var(--m-state);
}
.navlink:hover { background: rgba(var(--on-nav-rgb), .08); color: var(--nav-fg); }
/* The four screens are links so a crawler can follow them; they look exactly as the buttons did. */
a.navlink { text-decoration: none; }
.navlink[aria-current="page"] { color: var(--on-nav); background: rgba(var(--on-nav-rgb), .12); }
.navlink-s { display: none; }
/* Everything in the tools sits on one centre line and at one height: the lozenge, the version and
   the settings cog. */
.bar-tools { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; flex: none; --tool-h: 34px; }
/* The settings cog, the same as the Privacy Register's (13 November 2026): a 40px outlined square
   on the bar, and a white panel under it, against the right edge, headed Settings. Moving effects
   is a row with its switch, as there; your details, Help and Share are rows below it. A details
   element, so it works before the script has run, and its icon is in the markup. */
.bar-cog { position: relative; flex: none; }
.bar-cog > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(var(--on-nav-rgb), .3); border-radius: var(--r-s); color: var(--nav-fg);
}
.bar-cog > summary::-webkit-details-marker { display: none; }
.bar-cog > summary:hover, .bar-cog[open] > summary { color: var(--on-nav); background: rgba(var(--on-nav-rgb), .08); }
.bar-cog > summary:focus-visible { outline: 3px solid var(--nav-focus); outline-offset: -3px; }
.bar-cog > summary .i svg { width: 20px; height: 20px; }
.bar-settings {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 42; min-width: 260px;
  background: var(--surf); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s);
  box-shadow: var(--sh2); padding: var(--sp-3); display: flex; flex-direction: column;
}
.bar-settings-h { font: 600 var(--t-s) var(--ui); margin: 0 0 var(--sp-2); color: var(--ink); }
.bar-setting { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); font-size: var(--t-s); }
.bar-set-motion {
  display: inline-flex; align-items: center; flex: none; white-space: nowrap; cursor: pointer;
  min-height: 40px; padding: 6px 12px; border-radius: var(--r-s);
  background: var(--surf); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh);
  font: 500 var(--t-s) var(--ui); transition: box-shadow var(--m-state), background var(--m-state);
}
.bar-set-motion:hover { background: var(--gry-t); border-color: var(--soft); box-shadow: var(--sh2); }
.bar-set-row {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 40px; margin-top: 2px;
  padding: 0 var(--sp-2); border: 0; border-radius: 6px; background: transparent; color: var(--ink);
  font: 500 var(--t-s) var(--ui); text-align: left; cursor: pointer;
}
.bar-setting + .bar-set-row { margin-top: var(--sp-2); border-top: 1px solid var(--line2); padding-top: var(--sp-2); min-height: 48px; border-radius: 0; }
.bar-set-row:hover { background: var(--gry-t); }
.bar-setting + .bar-set-row:hover { border-radius: 0 0 6px 6px; }
.bar-set-row .i { color: var(--act); }
:is(.bar-set-row, .bar-set-motion):focus-visible { outline: 3px solid var(--act); outline-offset: 1px; }

/* The count is the one thing in the bar that is a figure rather than a control, so it is the
   one thing that is white: a lozenge of dark text on white, the easiest thing in the band to
   read. How things stand is its border and its words, never its colour alone. */
.allow-chip {
  /* A grid: the ring on the left across both lines, the count over its second line. A fixed width
     (--chip-w), so a longer or shorter count never moves anything beside it. */
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center;
  column-gap: 0; row-gap: 0; width: var(--chip-w, 216px); max-width: 100%;
  background: var(--surf); border: 1px solid var(--well-edge);
  color: var(--ink); border-radius: var(--r-s); padding: 0 var(--sp-3); text-align: left;
  font: 600 var(--t-xs) var(--ui); cursor: pointer; height: var(--tool-h, 34px); min-height: 28px;
  /* Sunk into the bar, as asked: a well with the figure at the bottom of it. The one light is
     high and to the right, so the rim hides it from the inside top and right walls, which carry
     the shadow (inset, the same offset every shadow here takes), and the face is shaded on that
     side. Outside, the bar's own edge catches the light along the lower left of the rim, a thin
     pale lip. Nothing lifts on hover: a well does not move. */
  background-image: linear-gradient(200deg, var(--well-1) 0%, var(--well-2) 40%, var(--surf) 72%);
  box-shadow: inset -4px 4px 7px rgba(var(--shade-rgb), .6), inset -1px 1px 2px rgba(var(--shade-rgb), .6),
    -1px 1px 0 rgba(var(--on-nav-rgb), .28);
  transition: box-shadow var(--m-state);
}
.allow-chip:hover {
  box-shadow: inset -5px 5px 9px rgba(var(--shade-rgb), .65), inset -1px 1px 2px rgba(var(--shade-rgb), .65),
    -1px 1px 0 rgba(var(--on-nav-rgb), .34);
}
.allow-chip:active { box-shadow: inset -6px 6px 11px rgba(var(--shade-rgb), .7), -1px 1px 0 rgba(var(--on-nav-rgb), .28); }
/* Darker than --mid, which is 4.0:1 on the chip's shaded top (#CDD5E1) at this small size. */
.allow-chip .allow-chip-l { color: var(--ink-2); }
/* The ring: full and green with every check left, emptying and turning through amber to red as
   they go (gaugeOf in rules/allowance.mjs). The pale track underneath is the same colour, so an
   empty ring still reads as a red ring rather than as nothing. */
.allow-gauge { display: none; width: 20px; height: 20px; flex: none; margin: 0 var(--sp-2) 0 -4px; grid-area: 1 / 1 / 3 / 2; }
.allow-chip-gauged .allow-gauge { display: block; }
.allow-gauge circle { fill: none; stroke-width: 5; }
.allow-gauge-t { stroke: var(--gauge-c, var(--stage-three-e)); opacity: .2; }
.allow-gauge-f {
  stroke: var(--gauge-c, var(--stage-three-e)); stroke-dasharray: var(--gauge-p, 100) 100; stroke-linecap: round;
  transition: stroke-dasharray .6s var(--ease-panel, ease), stroke .6s;
}
.allow-chip[data-tone="out"] .allow-gauge-f { stroke-dasharray: 0 100; stroke-linecap: butt; }
/* The count is one piece on the first line, and what it counts on the second ("on this connection",
   "while your access lasts", "Buy more checks"); where there is no second line the count is
   centred. Neither wraps on a computer: the lozenge is one width, and a second line too long for it
   (the allowance now lower than has been used) ends in an ellipsis, its full words being the
   button's accessible name and what the panel says when it opens. */
.allow-chip-n { grid-area: 1 / 2; font-size: var(--t-s); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.allow-chip-l { grid-area: 2 / 2; font-size: var(--t-xs); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Before the count arrives the chip holds its place, unseen, so the bar does not move when it
   appears (allowance.mjs takes the class off when it draws the count). It is the same width as the
   chip it becomes. */
.allow-chip-wait { visibility: hidden; min-width: 150px; }
/* The counter and what answering the questions gets, side by side, and the link under the
   counter where the bar is narrow. A link rather than a plate: it goes to a page, and it is
   underlined so it reads as one without relying on its colour. 24px tall at least with a mouse, the
   target size WCAG 2.5.8 asks for, and 44 by 44 on a touch screen, as PST-42 asks of every link (the
   end of this sheet). */
.allow-wrap { display: flex; align-items: center; flex: none; }
.allow-offer { margin: var(--sp-3) 0; }
.allow-offer a.btn { text-decoration: none; }
/* --------------------------------------------------------------------------- the footer */

.foot { background: var(--nav); color: var(--nav-dim); padding: var(--sp-6) var(--sp-5); margin-top: var(--sp-7); }
/* The same column as the page above it: a page is 68rem less its own padding either side, and
   the footer stood 24 pixels to the left of every page's content (27 September 2026). */
.foot-in { max-width: calc(68rem - 2 * var(--sp-5)); margin: 0 auto; display: grid; gap: var(--sp-3); font-size: var(--t-s); }
.foot-in img { width: 24px; height: 24px; }
/* The company line (PST-46), word for word from the accounts site. */
.foot-co { color: var(--nav-dim); max-width: 48rem; }
/* This product's own end of the page, above the Second Lens footer and not part of it (PST-46): the
   version and rule set line, sharing, and this product's own pages, on the page's own ground. */
.own-end { display: grid; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--t-s); color: var(--ink-2); }
.own-end + .foot, main:has(> .own-end) + .foot { margin-top: var(--sp-5); }
/* On the pages built outside the application it follows the page's own main, in the same column. */
.own-end-page { max-width: calc(68rem - 2 * var(--sp-5)); margin: 0 auto; }
.foot-ver img { width: 24px; height: 24px; vertical-align: middle; margin-right: var(--sp-2); }
/* The version and rule set line belongs to What is checked, where it serves the task, and not to every screen (PST-70;
   audit of 19 November 2026): each screen shows its task and nothing else. */
html:not([data-view="rules"]) .foot-ver { display: none; }
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.foot-legal a { color: var(--act); }

/* --------------------------------------------------------------------------- sharing */

/* One row of share controls, the same wherever it is met (public/js/share.mjs). */
.share { display: grid; gap: var(--sp-2); }
.share-lead { font-weight: 600; margin: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* The two companies' marks. LinkedIn asks for its mark at 21px or more on screen. */
.share-do .i svg { width: 19px; height: 19px; }
.share-do .i-logo svg { width: 21px; height: 21px; }
.logo-linkedin-blue { fill: var(--brand-linkedin); }
.logo-whatsapp-green { fill: var(--brand-whatsapp); }
.logo-white { fill: var(--on-nav); }
.share-say { margin: 0; font-size: var(--t-s); overflow-wrap: anywhere; }
.share-say:empty { display: none; }
.route-finish .share { border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-top: var(--sp-3); }
.fp-share { margin-top: var(--sp-5); }

.share-box .share-row { padding: var(--sp-2) 0; }

/* ------------------------------------------------------------------------------ layout */

.wrap { max-width: 68rem; margin: 0 auto; padding: var(--sp-6) var(--sp-5); }
/* The Second Lens kit (public/sl-kit/kit.css, copied unchanged, so not edited here) draws its
   account and Help ends on one docked line across the foot of the page from kit 0.5.0, and pads
   the page's foot itself (body.slk-on), so the column no longer leaves room at the sides for the
   floating corner buttons kit 0.4.0 had. */
/* A screen whose content is a narrower centred block sets --col, and the title takes the
 * same left edge from it. A title that starts to the right of the block it names reads as
 * two pieces of page, so the two are never set separately. A screen whose content is full
 * width sets --col to 100% and everything lines up on the left. */
.view { --gutter: max(0px, (100% - var(--col)) / 2); }
.view > .page-h, .view > .page-lede, .view > .col { margin-left: var(--gutter); max-width: var(--col); }
.view-wide { --col: 100%; }
.page-h { margin-bottom: var(--sp-2); }
.page-lede { color: var(--mid); font-size: var(--t-m); margin-bottom: var(--sp-5); }

.card {
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh); padding: var(--sp-5);
}
.lbl { display: block; font-weight: 600; font-size: var(--t-s); margin-bottom: var(--sp-2); }
.hint { color: var(--mid); font-size: var(--t-s); }

/* Three visual languages, and they do not blur. Something you type into is inset. Something
 * you press is raised. Something the application produced for you to read is flat, with a
 * rule down its left edge. Each also carries a word, because colour is never the only
 * carrier of meaning here. */

/* tel and url belong here as much as text does. They were missing, so the moment the details
   boxes started declaring what they hold, the phone box stopped being styled at all and came
   out 21 pixels tall, under the 24 that WCAG 2.5.8 asks of a target. A type list that has to be
   extended by hand every time is the kind that gets forgotten; this one is now the set this
   product actually uses. */
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="tel"], input[type="url"], input[type="search"], textarea {
  font: 400 var(--io-type)/var(--io-lead) var(--ui);
  padding: var(--io-pad);
  background: var(--io-bg);
  border: 1px solid var(--line); border-radius: var(--r-s);
  color: var(--ink); width: 100%;
  box-shadow: inset -1px 1px 2px rgba(var(--shade-rgb), .07);
  cursor: text;
}
input:focus, textarea:focus { background: var(--io-bg-on); }
select {
  font: 600 var(--t-b) var(--ui);
  padding: 7px var(--sp-3);
  background: var(--surf); color: var(--pl-back-t);
  border: 1px solid var(--pl-back-e); border-radius: var(--r-s);
  box-shadow: none; cursor: pointer; min-height: 32px;
}

/* One button vocabulary (PST-42, 16 November 2026): one main style, solid action blue (.btn), and
   one secondary style, an outline (.ghost): a white face with an edge and words in the colour of what
   it does, the role's tint showing only under the pointer. The roles keep their colours (blue to do
   this too, the details plate's blue, red to take something out, neutral to move on), now as edges
   rather than plates; the icons and words still say each one (button-roles.test.mjs). Every button
   is at least 44 by 44 on a touch screen (the end of this sheet). Until 16 November 2026 nothing you
   could press was white and the secondary buttons were tinted plates. */
.btn, .ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: 600 var(--t-b) var(--ui); border-radius: var(--r-s); cursor: pointer;
  padding: var(--sp-2) var(--sp-4); min-height: 36px; min-width: 24px;
  border: 1px solid transparent; transition: background var(--m-state), box-shadow var(--m-lift);
}
.btn { background: var(--act); color: var(--on-fill); border-color: var(--act-h); box-shadow: var(--lift-f); }
.btn:hover { background: var(--act-h); box-shadow: var(--lift-f-h); }
.btn:active { box-shadow: var(--press-f); }
.btn-lg { font-size: var(--t-m); padding: var(--sp-3) var(--sp-5); min-height: 44px; }
/* The same size on a ghost, which the door has asked for since it was written and never had:
   index.html carried `ghost ghost-lg` and nothing defined it, so the second button on the first
   screen anybody sees stood 36px beside a 44px one wearing a class that did nothing. */
.ghost-lg { font-size: var(--t-m); padding: var(--sp-3) var(--sp-5); min-height: 44px; }
/* The press that writes an answer into the advert (.btn-write) and the record (.btn-go) are main
   presses, so they are the one main style (PST-42). Until 16 November 2026 the first wore stage
   three's green (stage two's to put a line back) and the second a darker blue; each is still told
   apart by its words and its icon, which is what 1.4.1 asks for. */
.ghost { background: var(--surf); color: var(--pl-back-t); border-color: var(--pl-back-e); box-shadow: none; }
.ghost:hover { background: var(--pl-back); border-color: var(--pl-back-eh); box-shadow: none; }
.ghost:active { background: var(--pl-back-h); box-shadow: var(--press-p); }
.ghost-go { background: var(--surf); color: var(--pl-go-t); border-color: var(--pl-go-e); }
.ghost-go:hover { background: var(--pl-go); border-color: var(--pl-go-eh); }
.ghost-keep, .ghost-keep-2 { background: var(--surf); color: var(--pl-yours-t); border-color: var(--pl-yours-e); }
.ghost-keep:hover, .ghost-keep-2:hover { background: var(--pl-yours); border-color: var(--pl-yours-eh); }
.ghost-keep.ghost-keep-3 { background: var(--surf); color: var(--pl-yours3-t); border-color: var(--pl-yours3-e); }
.ghost-keep.ghost-keep-3:hover { background: var(--pl-yours3); border-color: var(--pl-yours3-eh); }
.ghost-warn { background: var(--surf); color: var(--pl-del-t); border-color: var(--pl-del-e); }
.ghost-warn:hover { background: var(--pl-del); border-color: var(--pl-del-eh); }
.ghost-s { font-size: var(--t-s); padding: 5px var(--sp-3); min-height: 30px; }
/* An unavailable control keeps aria-disabled, never disabled: a disabled element leaves the
 * tab order, so a keyboard or screen reader user can neither reach it nor find out why.
 *
 * And a control somebody can still reach, focus and be told about is a control they have to be
 * able to read. WCAG lets an inactive control off 1.4.3 altogether; that exemption is written
 * for a control nobody can get to, which is exactly what this one is not. It was --soft on the
 * grey plate, 2.79:1, and inside the guided pass a further opacity of .45 took it to 1.50:1,
 * which is not a low-contrast label so much as an absent one. It is --mid now, 5.32:1, and
 * neither of the two rules that dimmed it dims it any more.
 *
 * What says unavailable instead: the dashed edge, the grey plate, the flat shadow and the
 * cursor, four things, none of them colour alone and none of them reliant on the text fading.
 * The border colour is deliberately not overridden, so an unavailable del (magenta) button still
 * carries its magenta edge and does not read as an unavailable blue one. */
[aria-disabled="true"] { border-style: dashed; color: var(--mid); background: var(--gry-t); box-shadow: none; cursor: default; }

.err { color: var(--red-h); font-size: var(--t-s); font-weight: 600; }

/* The short names for the four screens, from the width the long ones stop fitting beside the
   tools rather than from the width of a phone.

   They were written for a phone and only a phone, so from 621px up the bar wrapped to two rows
   at every width there is: measured, the long labels need 1,427px before the tools can share
   the line, and nothing above that exists on most desks. The cost of two rows is 46px of sticky
   header on every screen and at every scroll position, and --bar-h, which the rest of this
   sheet scrolls and positions against, says 52.

   What is lost is four words. What is kept: the screen somebody is on is still marked with
   aria-current and a filled plate, each link still carries its icon, and the page's own heading
   says the long name in full at the top of every one of them.

   From 1399 to 1439 on 14 November 2026, when the fifth item, "Free guides and templates",
   joined the bar: the long names then need 1,413px beside the tools (tools/header-robot.mjs). */
@media (max-width: 1439px) {
  .navlink-t { display: none; }
  .navlink-s { display: inline; }
}

@media (max-width: 620px) {
  .wrap { padding: var(--sp-5) var(--sp-4); }
}

/* ------------------------------------------------------------------ the check screen */

.paster-grid { display: grid; grid-template-columns: 1fr 15rem; gap: var(--sp-5); align-items: start; }
.paster-box textarea { min-height: 14rem; font-size: var(--t-m); }
.paster-acts { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }
.paster-keep { margin-top: var(--sp-3); }
/* Why the last check produced nothing, under the button that produced nothing, and it stays
   there until the next check is started. A toast is gone in seconds and gone for good if
   somebody was looking at the button they had just pressed, which leaves a screen identical
   to the one before the press: the reasonable reading of that is a broken button. */
.goslot-fault:empty { display: none; }
.check-refused { margin-top: var(--sp-4); align-items: flex-start; }
/* A licence on this connection that has stopped counting, said before anything else in the
   panel: somebody who opens it after their allowance fell back to the default is here for
   that one answer. */
.allow-licence { margin: var(--sp-3) 0 0; }

.chips { border: 0; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.chip {
  display: block; width: 100%; text-align: left;
  font: 600 var(--t-b) var(--ui); cursor: pointer; min-height: 40px;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-s);
  background: var(--surf); color: var(--pl-back-t);
  border: 1px solid var(--pl-back-e); box-shadow: none;
}
.chip:hover { background: var(--pl-back); border-color: var(--pl-back-eh); }
/* ------------------------------------------------------------- a control somebody chose
 *
 * One look for every "pick one" control in this application: the advertiser chip, an option in
 * a segmented row, a reason on a report form, the settings in the console. The accent filled,
 * white on it at 6.2:1, bold, with a tick in front.
 *
 * It is a fill rather than a tint because a tint was the same weight on the page as the option
 * beside it. On the segmented rows it was worse than that: the unchosen hover state used the
 * same tint, so running a mouse along a row made three options look chosen at once.
 *
 * The tick is not decoration. A fill is a colour and a colour is never the only carrier, so the
 * mark has to be there for somebody who cannot tell the two apart, in print, and in forced
 * colours. aria-pressed or aria-checked is on every one of these in the markup.
 *
 * What this is NOT is where you are. The nav and the view control mark that, in the product's
 * green and in its ink, and they stay that way: where you are and what you have chosen are two
 * different facts and putting them in one colour would tell somebody that changing the view
 * changed their answer. Nor is it a toggle whose resting state is on, like the console's event
 * filters: there the interesting state is the one switched off, and filling every chip at rest
 * would paint the whole row.
 */
.chosen, .chip-on, .seg button.on, .reason.on {
  background: var(--act); color: var(--on-fill); border-color: var(--act-h);
  box-shadow: var(--press-p); font-weight: 700;
}
.chosen:hover, .chip-on:hover, .seg button.on:hover, .reason.on:hover {
  background: var(--act-h); color: var(--on-fill); border-color: var(--act-h);
}
.chosen::before, .chip-on::before, .seg button.on::before, .reason.on .reason-l::before {
  content: ''; display: inline-block; flex: none; width: 1em; height: 1em; margin-right: .3em; vertical-align: -.14em;
  background-color: currentColor; -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
/* The reason card stacks its label over its sub-line, so a ::before on the card itself would be
   a flex item and land on a line of its own above the label. It goes on the label instead. */

/* Asked for: the top of this screen is mostly air, so close it up.
   32px under a title that already carries 8px of its own margin put 65px between "Check an
   advert" and the first thing it is about. The title and the count it introduces are one
   statement read in one glance, so they stand as one. */
.result { margin-top: var(--sp-4); display: grid; gap: var(--sp-4); }
/* Nothing on the result may set the page's width. A grid column is as wide as the widest
   thing that cannot shrink inside it, and a web address in a written sentence cannot shrink:
   "https://brightpath.example/privacy" alone is wider than a phone with its gutters, and it
   pushed the result to 443px on a 390px screen. The cards stay the width of the page and the
   long word breaks where it has to. */
.result > * { min-width: 0; }
.did-text, .vacancy-add-t, .vacancy-text { overflow-wrap: anywhere; }
.did-text, .vacancy-add-t, .vacancy-text, .paster-box textarea { font-family: var(--read); }
/* Inside the advert, what belongs to the tool stays in the tool's face: the "Changed" and
   "Suggested" words, the badges and the buttons. */
.vacancy-text .swap-word, .vacancy-text button, .vacancy-text .mark { font-family: var(--ui); }
.result-head { font-size: var(--t-l); }
/* It takes focus when the paste panel is taken off the screen, so it needs a ring like anything
   else that can be focused. Inset, because a heading sits hard against the edge of the column. */
.result-head:focus-visible { outline: 2px solid var(--act); outline-offset: 3px; border-radius: var(--r-s); }
/* The waiting card takes focus the same way, when the panel that had it is hidden before there
   is a headline to land on. */
.result[tabindex]:focus-visible { outline: 2px solid var(--act); outline-offset: 3px; border-radius: var(--r-m); }
/* Whose jobs these are, beside the count it decides. The panel that used to carry this control
   is gone once there is a result, and this is the one input to a check that can be wrong
   without anything on the screen looking wrong. */
.result-top { display: flex; align-items: baseline; gap: var(--sp-2) var(--sp-4); flex-wrap: wrap; }
/* Its natural width, not a share of the row. It was `flex: 1 1 18rem`, which handed everything
   left over to the chips beside it: at 1240px that was 350px of column for two words and two
   buttons, and the row came out 101px tall to carry a 24px heading. */
.result-top > .result-head { flex: 0 1 auto; min-width: 0; }
/* One line, at the right edge, sized to what is in it. `margin-left: auto` rather than a flex
   grow on the heading, so the heading stays the width of its own words and the chips still hold
   the edge the column below them ends on. */
.result-who { display: flex; align-items: center; gap: var(--sp-2);
  flex: 0 0 auto; margin-left: auto; }
.result-who-l { font: 600 var(--t-xs) var(--ui); color: var(--mid);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
/* The same control, one step down in size, because here it sits beside a heading rather than
   under a question of its own.
   And laid out as one, which is the half that was missing. `.chip` is `display: block` with
   `width: 100%`, which is right in the panel it was written for, where the two are a stacked
   pick-one filling their fieldset, and wrong the moment they stand in a row: they went full
   width of whatever was left and stacked, one under the other, under a label of their own. */
.chip-s { display: inline-flex; align-items: center; width: auto; text-align: left;
  font-size: var(--t-s); padding: 5px var(--sp-3); min-height: 30px; }
.result-stale { margin-top: var(--sp-3); }
.result-stale p { margin: var(--sp-1) 0 0; max-width: 68ch; }
.result-stale-do { margin-top: var(--sp-3); }
.assumed { color: var(--mid); font-size: var(--t-s); }
.result-acts { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }

/* Something the application produced for you to read: flat, on the rail, with a rule down
 * the left edge and a default cursor. Never the same treatment as a box you type into. */
.vacancy {
  background: var(--rail); border: 1px solid var(--line);
  border-left: 3px solid var(--act); border-radius: var(--r-s);
  padding: var(--sp-4); cursor: default;
}
.vacancy-text { white-space: pre-wrap; }
/* A line this product put into the advert, in the colour of the stage that put it there, and
   marked the way a changed phrase is marked a few lines above: a small word, the sentence, and
   one small way to take it back.

   It used to be a card. A 3px edge, a badge on its own, the sentence in a flex column and a
   plate button held off to the right, and three of them down an advert read as a form to fill
   in rather than as an advert with three lines added to it. The owner's words: the multiple
   boxes and buttons are too complex, align it with the inline mark. So it is the same shape as
   `.swap`, tinted ground and a 2px bar underneath in the stage's own colour, and the control is
   literally the same control. */
.vacancy-add {
  margin-top: var(--sp-3); padding: var(--sp-2);
  border-radius: var(--r-s); background: var(--gry-t);
  /* A shadow under the whole row, not a coloured rule under it.
     It carried `inset 0 -2px 0` in the stage's own colour, which drew a 2px line along the
     bottom edge and stopped there: a line under a box that the text and the buttons sit inside,
     rather than the box itself standing off the page. Asked for, and the line was doing a job
     the row already does twice over, because the stage is on the tint behind it and on the
     badge, in words, at the top of it. The shadow is the neutral elevation token, so the row is
     lit by the same light as everything else and the only things saying which stage it is are
     the two that were already saying it. */
  box-shadow: var(--sh);
  /* The badge on its own line, the sentence under it, and the controls in a column down the
     right spanning both.

     The badge used to be a word inside the sentence, and that is what the screenshot showing
     this asked about: it is up to 174px wide and the sentence flowed around it, so the second
     line of every wrapped sentence started back at the far left underneath the badge and no two
     lines in the list began in the same place. Three edges hold now: the badges share one, the
     sentences share one, and the controls share one.

     Beside the sentence rather than above it was built first and measured out. This panel
     stands in a column next to the score, and `.wrap` holds the page to 68rem, so the panel is
     614px at every width above about 1090 and never wider. Take 174 for the longest badge and
     166 for the controls and the sentence is left with 234, which reads four words to a line.
     A column that never fits is not an arrangement, so it is not one of the two.

     The right column is a fixed width rather than auto, because auto is sized per row and a row
     with one button would end somewhere a row with two does not. */
  display: grid; grid-template-columns: minmax(0, 1fr) var(--line-do-w);
  align-items: start; column-gap: var(--sp-3); row-gap: 2px;
}
.line-mark { grid-column: 1; grid-row: 1; }
.vacancy-add-t { grid-column: 1; grid-row: 2; }
.vacancy-add > .line-do { grid-column: 2; grid-row: 1 / span 2; }
.vacancy-add.stage-2 { background: var(--stage-two-t); }
.vacancy-add.stage-3 { background: var(--stage-three-t); }
/* The badge in its own column, at the top of the row and hard against the left of it, so the
   badges line up down the list however many lines the sentence beside each one runs to. It
   never wraps: a badge broken over two lines is a badge that is taller than the line it labels
   and a column that is no longer one width. */
.line-mark { justify-self: start; margin-right: 0; white-space: nowrap; }
/* Nothing else in this panel gets a column, so the old inline treatment stays for anything that
   is still a word inside a line. */
.vacancy-add .mark:not(.line-mark) { margin-right: var(--sp-2); vertical-align: 1px; }
/* The column the controls stand in, wherever a marked line has controls. One width and one
   edge across every row of every list, which is the whole of what makes them look aligned.
   Wide enough for the two this product puts there, Undo and Edit, at their own padding.

   Two slots rather than a row, which is the half that was still wrong. The row was pushed to
   the right edge, so a line carrying Undo alone put it where the line above had put Edit: the
   same word in two places, four lines down one advert, and nothing on the screen to say why it
   had moved. A control that moves cannot be aimed at, and what somebody learns about where it
   is is true of one line only.

   Two tracks of equal width, not two tracks sized to what is in them, and that distinction was
   measured rather than reasoned: with `auto` tracks packed to the right edge the empty second
   track is zero wide, so Undo landed at 568 on the line with no Edit and 477 on the line with
   one. The fault, reproduced by the fix. Halves hold whether or not anything stands in them, so
   Undo is at 477 on every line and Edit at 564 on every line that has one. The controls fill
   their half as well, because two buttons of different lengths in fixed slots still read as a
   ragged column. */
.line-do {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2); align-items: center;
}
.line-do-1 { grid-column: 1; }
.line-do-2 { grid-column: 2; }
/* Report on a row of its own under the two, across both, so Remove and Change keep their places
   and all three keep a readable width. */
.line-do-3 { grid-column: 1 / -1; display: flex; }
/* Report in this column is the size of Remove and Change beside it. */
.line-do .report-wrap { margin-left: 0; width: 100%; }
.line-do .btn-report { width: 100%; padding: 3px 4px; font-size: var(--t-xs); min-height: 24px; }
/* Raised, with a lift under the pointer and a press when it goes down. Asked for: the buttons
   should look three dimensional and change on hover.
   Only in this column. `.swap-undo` is also the control on a changed phrase inside the running
   text of the advert, and there a plate genuinely does break the line box, which is the reason
   the flat version was written. The reason stopped applying the moment these moved into a
   column of their own; it still applies to the other one, so the two now differ. */
.line-do .swap-undo {
  width: 100%; margin-left: 0; justify-content: center; padding: 3px 4px;
  background: var(--surf); color: var(--pl-back-t); border-color: var(--pl-back-e);
  box-shadow: none; transition: background var(--m-state);
}
.line-do .swap-undo:hover {
  background: var(--pl-back); border-color: var(--pl-back-eh);
}
/* And it goes down when it is pressed, which is the other half of a control that looks raised:
   a button that lifts and never lands reads as a picture of a button. */
.line-do .swap-undo:active { box-shadow: var(--press-p); transform: translateY(1px); }
/* Nothing moves where the page is set to be still, by either of the two switches that say so.
   The shading still changes, because a change of shading is not motion, and it is what says the
   control is under the pointer once the lift is gone. The rule at the top of this sheet kills
   the transition; only the offset itself has to be named here. */
:root[data-motion="off"] .line-do .swap-undo:hover,
:root[data-motion="off"] .line-do .swap-undo:active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .line-do .swap-undo:hover, .line-do .swap-undo:active { transform: none; }
}
.line-do:empty { display: none; }
/* On a narrow screen the column costs more than it buys: the fixed width out of a phone's
   width leaves the sentence reading four words to a line. The controls drop under the words
   there, still in their own two slots so they do not move between lines. */
@media (max-width: 560px) {
  /* One column, in reading order: the badge, the sentence, then the controls. */
  .vacancy-add { grid-template-columns: minmax(0, 1fr); }
  .line-mark, .vacancy-add-t, .line-do { grid-column: 1; grid-row: auto; }
  /* The tracks stop stretching to the full width of a phone, which would put two buttons half
     a screen apart. They keep their order and their two slots. */
  .line-do { grid-template-columns: repeat(2, minmax(0, 5rem)); justify-content: start; }
}
/* The boxes behind Edit, under the line they belong to. Its own summary is hidden because the
   Edit button in the line is what opens it; a details with two openers is a box somebody can
   close with one control and not the other.
   Scoped to the panel, which is both where it applies and what wins: `.cap-fold > summary`
   lives further down this file and would otherwise take the rule on source order. */
.vacancy-live .did-fold-inline { margin: 0 0 var(--sp-3); }
.vacancy-live .did-fold-inline > summary { display: none; }
/* And it is not there at all until Edit opens it. With the summary hidden a closed details is
   an empty box that still draws its own border, which put a thin amber line under every added
   line in the advert. */
.vacancy-live .did-fold-inline:not([open]) { display: none; }
.vacancy-ref { margin-top: var(--sp-4); color: var(--mid); }

/* Every mark carries a word, not only a colour. */
.mark {
  display: inline-block; flex: none; font: 700 var(--t-xs) var(--ui);
  letter-spacing: .02em; padding: 3px 8px; border-radius: 4px;
  min-height: 24px; line-height: 18px;
}
.mark-grey { background: var(--gry-t); color: var(--pl-back-t); border: 1px solid var(--gry); }
.mark-must_fix { background: var(--red); color: var(--on-fill); }
.mark-should_fix { background: var(--amb-d); color: var(--on-fill); }
.mark-have_a_look { background: var(--gry-t); color: var(--pl-back-t); border: 1px solid var(--gry); }

.block { display: grid; gap: var(--sp-3); }
.flags { display: grid; gap: var(--sp-2); }
.flag {
  display: flex; gap: var(--sp-3); align-items: flex-start; flex-wrap: wrap;
  background: var(--surf); border: 1px solid var(--line);
  border-left: 3px solid var(--gry); border-radius: var(--r-s); padding: var(--sp-3);
}
.flag-must_fix { border-left-color: var(--red); }
.flag-should_fix { border-left-color: var(--amb); }
.flag-t { flex: 1 1 18rem; display: grid; gap: 2px; }
.flag-say { color: var(--mid); font-size: var(--t-s); }
/* Where they have already answered the question behind a flag. It stays a flag, because the
   advert still says nothing, and it says their answer is on the record. */
.flag-answered { display: flex; gap: 6px; align-items: center; font-size: var(--t-xs);
  color: var(--prod-d); font-weight: 600; margin-top: 2px; }
.flag-answered .i { width: 13px; height: 13px; flex: none; }

/* The fix, on the finding it fixes.
   Folded rather than open, because a list of six findings with six forms under them is a list
   nobody reads, and shut with a summary that says what pressing it gets you is the same
   information at a tenth of the height. It is marked in the product's own colour so a row
   that can be put right looks different from a row that cannot, at a glance, down a list. */
.fold-fix { margin-top: 6px; }
.fold-fix > summary { font-size: var(--t-s); font-weight: 600; color: var(--prod-d);
  display: flex; gap: 6px; align-items: center; }
.fold-fix > summary .i { width: 14px; height: 14px; flex: none; }
.fold-fix > .cap, .fold-fix > .gap { margin-top: var(--sp-2); }
.fold-fix > .hint { margin-top: 4px; }
/* And the rows nothing can be written for say so, in the grey of a note rather than the
   colour of an action, because there is nothing here to press. */
.flag-mine { font-size: var(--t-xs); color: var(--mid); margin-top: 4px; }
/* A finding that putting right will not move the number, marked on the row. It sits on its
   own line under the wording rather than beside the band, because two marks on one line read
   as one two-part badge. */
.flag-quiet { justify-self: start; margin-top: 4px; }
/* And the same thing said once, beside the number it is about. */
.notice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  border-radius: var(--r-s); padding: var(--sp-3); font-size: var(--t-s);
  border: 1px solid var(--line); background: var(--surf);
}
.notice-warn { background: var(--amb-t); border-color: var(--amb); color: var(--amb-on-tint); }
.notice-deep { background: var(--vio-t); border-color: var(--vio); color: var(--vio); }
/* A button whose label carries what it costs underneath it. The price used to live in a title
   tooltip, which a touch user and a keyboard user never see. */
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn-sub { font-size: var(--t-xs); opacity: 0.85; font-weight: 400; }

.notice-scope { background: var(--abroad-t); border-color: var(--abroad); color: var(--abroad); }
.notice-keep { background: var(--gry-t); color: var(--pl-back-t); }
.notice-error { background: var(--red-t); border-color: var(--red); color: var(--red-h); }

.fold { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surf); }
.fold > summary {
  cursor: pointer; padding: var(--sp-3) var(--sp-4); font-weight: 600;
  display: flex; justify-content: space-between; gap: var(--sp-3); min-height: 44px; align-items: center;
}
.fold > *:not(summary) { padding: 0 var(--sp-4) var(--sp-4); }
/* A count beside a name stays on one line: "5" above "rules" read as two things. */
.fold-n { color: var(--mid); font-weight: 400; font-size: var(--t-s); white-space: nowrap; }
.rulelist { display: grid; gap: var(--sp-3); }
#rules-lenses { display: grid; gap: var(--sp-2); }

/* A toast is a thing that floats over the page, and it has to look like one.
   The rail was a fixed 34rem, which is exactly the width of the score card and centred on the
   same axis, so "Wording checked." arrived as a dark bar ruled across the bottom of that card:
   square-cornered, card-width, flush to both its edges. It read as part of the card, and as a
   broken part of it. The rail now takes the width of its message and no more, so a short
   sentence is a short pill that is plainly sitting on top of the page rather than built into
   it. The cap is what stops a long one running the width of a desktop. */
.toast-rail {
  /* The foot of the screen, above every window, the guide included. It sat in the middle for a
     while and covered what somebody was reading, found on the live site, 27 September 2026. The
     old trouble at the foot was a dark pill lost over the dark footer; the white ring on a
     confirmation and the amber of a warning are what now keep it seen there. It clears the
     phone's home bar. */
  /* Pinned to both sides and centred inside them, rather than moved half its own width from the
     middle: that way it shrank to half the screen on a phone and a sentence became a column. */
  position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--sp-4));
  z-index: 55; display: grid; justify-items: center; gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); max-width: min(34rem, 100%);
  font-size: var(--t-m); font-weight: 600; line-height: 1.4;
  animation: fade var(--m-panel) both;
}
.toast-t { margin: 0; text-align: left; }
.toast-i svg { width: 20px; height: 20px; }
/* Something worked: ink with a white ring, so it stands off a dark footer as well as the page. */
.toast-done {
  pointer-events: none;
  background: var(--nav); color: var(--on-nav);
  box-shadow: 0 0 0 2px var(--on-nav), var(--sh3);
}
.toast-done .toast-i { color: var(--nav-grn); }
/* Something is stopping you: amber, the colour this product already uses for a warning. */
.toast-warn {
  background: var(--amb-t); color: var(--ink); border: 2px solid var(--amb);
  border-radius: var(--r-l); padding: var(--sp-4) var(--sp-3) var(--sp-4) var(--sp-4);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 90%, transparent), var(--sh3);
}
.toast-warn .toast-i { color: var(--amb-on-tint); }
.toast-x {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--amb); border-radius: var(--r-s); background: var(--surf); color: var(--ink); cursor: pointer;
}
.toast-x:hover { background: var(--amb-t); }
.toast-x .i svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .paster-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* Copy used to be pinned to the bottom of the screen, in thumb reach, because it was the
     primary action. It is not any more: the result offers one way on and one way out, and the
     way out lives inside the finish route near the top. Left sticky after that move it would
     float over the reveal for the whole of the scroll. */
  .result-acts .btn { flex: 1 1 100%; }
  .result-acts .btn-lg { flex: 1 1 100%; }
}

/* The icon slot. The build writes the page's icons into these (tools/icons-inline.mjs); paintIcons()
   fills the ones script adds. */
.i { display: inline-flex; align-items: center; justify-content: center; flex: none; }
/* An icon's slot holds the icon's size before paintIcons() fills it, so the links in the bar do
   not grow by four pixels and push the page down when the script runs (1 October 2026). */
.i[data-icon]:empty::before { content: ""; display: block; width: 1.05em; height: 1.05em; }
.paster { display: grid; gap: var(--sp-3); }
.flag-assume { border-left-color: var(--gry); }

/* Asked where the answer is first needed, never in a setup wizard. */
/* The offer fold. Its panels sit inside a details, so they need a little air under the
   summary rather than the margin a standalone block carried. */
.fold-offer > .cap { margin-top: var(--sp-3); }

/* An offer is stage three wherever it appears, because it is a thing the person does: a press,
   or a detail typed in. It was amber, which in this product means caution and is the colour of
   the part of a written sentence that came from them and might be wrong. That made the one
   panel somebody is meant to act on look like a warning about itself, and inside the guided
   pass it put a yellow box in the middle of a stage three one.

   Purple here is the third wedge of the dial and the third stage of the journey. The ink on it
   is the darker product green rather than the stage colour: the stage colours are fills,
   measured against the card at 3:1, and text needs 4.5. This pairing is 7.24:1. */
/* Asked for: condense it as far as it will go and keep every control. What came out was the
   line that said what the offer was, which three other screens already say; what is left is
   the press, the sentence it writes, and the fold. The padding and the gaps come down a step
   with it, because a card of two rows at the spacing of a card of five reads as a box with
   something missing from it. */
.cap {
  background: var(--stage-three-t); border: 1px solid var(--stage-three); border-left-width: 3px;
  border-radius: var(--r-s); padding: var(--sp-3); display: grid; gap: var(--sp-2);
}
/* The one press, and the sentence it writes, side by side. Showing the words before the press
   is the difference between accepting a change and accepting a description of one. */
.cap-now { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin-top: 0; }
.cap-now .btn { flex: none; }
.cap-line { font-size: var(--t-s); font-style: italic; color: var(--ink); flex: 1 1 20rem; min-width: 0; }
/* The width of the card, not a column inside it.
   It carried max-width: 68ch, which is the readable measure and the right default for a body
   of prose. On this card it was wrong twice over: at --t-s that is about 440px inside a panel
   near 900px, so the paragraph filled less than half the width and then wrapped for three
   lines under a heading that ran the whole way, which reads as a column that failed to
   justify rather than as a measure somebody chose. Asked for: run it across the box.
   The cost is stated rather than hidden: on a wide screen these lines are longer than the
   measure typography would pick. It is two sentences inside a fold somebody opened on purpose,
   and the alignment of the card is what was being read as broken. */
.cap-more { font-size: var(--t-s); color: var(--mid); margin-top: 0; }
/* The fork, which is a fold now rather than a heading over a form that was always open. The
   summary is the whole of the label: an offer whose one press is a complete answer should not
   put three boxes on the screen to say so. */
/* Inside the guided pass there is no box at all. The card is already stage three, edge to
   edge, and a second stage three box inside it is the same statement twice with a line drawn round
   it. Owner's words: the internal green shaded box needs to be removed, it can just be white
   with no inside box. Outside the walk the panel still needs its own ground, because there it
   is one thing among several and nothing else says it is an offer. */
.walk .cap { background: transparent; border: 0; border-radius: 0; padding: 0; }
.cap-fold { background: transparent; border-color: var(--stage-three); }
.cap-fold > summary {
  padding: var(--sp-2) var(--sp-3); min-height: 36px; justify-content: flex-start;
  font: 600 var(--t-s) var(--ui); color: var(--prod-d);
}
.cap-fold > summary:hover { background: var(--stage-three-t); border-radius: var(--r-s); }
/* The same chevron the other reveals wear, drawn from two borders rather than a glyph so it
   lands the same whatever font is in use. A fold nobody can see is a fold nobody opens. */
.cap-fold > summary::after {
  content: ''; flex: none; width: 8px; height: 8px; margin-left: var(--sp-2);
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform var(--m-state);
}
.cap-fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.cap-fold > .cap-fold-in { padding: var(--sp-2) var(--sp-3) var(--sp-3); display: grid; gap: var(--sp-2); }
.cap-fold[open] > summary { border-bottom: 1px solid var(--stage-three); border-radius: var(--r-s) var(--r-s) 0 0; }

/* A rule that is only on this advert because the job works with children. The colour is the one
   this product already uses for a child-facing check, so the strip and the notice at the top of
   the result are recognisably the same fact. It names the guidance and does not call it a duty:
   the register has it as statutory guidance that says should. */
.safeg {
  display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0;
  background: var(--vio-t); border: 1px solid var(--vio); border-left-width: 3px;
  border-radius: var(--r-s); padding: var(--sp-2) var(--sp-3); color: var(--vio);
  font-size: var(--t-b);
}
.safeg .i { flex: none; margin-top: 1px; }
.safeg-t { min-width: 0; }
/* Full strength, not dimmed. The citation at 85 per cent on this ground measures 4.39:1,
   which is under the 4.5 this size of text needs, and a citation nobody can read is the part
   of the strip that makes the rest of it checkable. */
.safeg-cite { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--vio); }
.cap-fs { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.cap-f { flex: 1 1 12rem; }
.cap-acts { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
/* Inside the guided pass the card has no ground of its own, so the fold is the only box on it
   and it can stand tighter still. */
.walk .cap-fold > summary { min-height: 32px; }

/* WCAG 2.2 SC 2.5.8. With a mouse every target is at least 24 by 24, including a text link in a row
 * of them, where the natural line box is shorter than that. On a touch screen each is 44 by 44 (PST-42,
 * the end of this sheet). */
.foot-legal a, .hint a {
  display: inline-flex; align-items: center; min-height: 24px;
}

/* ------------------------------------------------------------------ the development gate */

/* The top bar along the top as on every page (PST-01), and the card in the middle of what is left. */
.devgate-body { background: var(--nav); min-height: 100vh; }
.devgate { width: min(30rem, calc(100% - 2 * var(--sp-5))); min-height: calc(100vh - 52px); margin: 0 auto;
  padding-block: var(--sp-5); display: grid; align-content: center; gap: var(--sp-4); }
.devgate-card { border-top: 6px solid var(--red); display: grid; gap: var(--sp-4); }
.devgate-mark { display: flex; align-items: center; gap: var(--sp-2); font: 700 10px var(--ui); letter-spacing: .06em; color: var(--mid); }
.devgate-tag {
  justify-self: start; background: var(--red); color: var(--on-fill);
  font: 700 10px var(--ui); letter-spacing: .1em; padding: 4px 10px; border-radius: var(--r-s);
}
.devgate-lede { color: var(--mid); }
.devgate-form { display: grid; gap: var(--sp-2); }
.devgate-note { color: var(--mid); font-size: var(--t-s); }
.devgate-foot { color: var(--nav-dim); font-size: var(--t-s); text-align: center; }
/* The gate's own ground is the bar's navy, so this product's own end of the page reads in the bar's colours there
   (WCAG 1.4.3: the links in the page's blue were 2.8 to 1 on navy, found by the accessibility robot, 17 November 2026). */
.devgate-body .own-end { color: var(--nav-dim); border-top-color: var(--nav-plate-1); }
.devgate-body .foot-legal a { color: var(--nav-fg); }

.flag-quote { color: var(--mid); font-size: var(--t-s); font-style: italic; }

/* A change to the wording, marked where the wording is, in the colour of the stage that made it, as
   every other mark on a line is: stage two's blue for a change made on its own, stage three's for one
   from their answers. It was the traffic light green, which means on or healthy and nothing else
   (PST-41, 17 November 2026). The word Changed on the mark says what it is, whatever its colour. */
.swap { border-radius: var(--r-s); padding: 1px 4px; }
.swap-on { background: var(--stage-three-t); box-shadow: inset 0 -2px 0 var(--stage-three-e); }
.swap-on.swap-2 { background: var(--stage-two-t); box-shadow: inset 0 -2px 0 var(--stage-two-e); }
/* A rewording on offer: the person's own words, underlined in stage three's purple, and under them
   a box saying what is on offer and why. The box is the tool talking, so it is in the tool's face,
   and the new wording in it is advert text, so it is in the advert's. */
.swap-offer { padding: 0; }
.swap-offer-was { text-decoration: underline dashed var(--stage-three-e) 2px; text-underline-offset: 4px; }
.vacancy-text .offer-box {
  display: grid; gap: var(--sp-2); justify-items: start; margin: var(--sp-2) 0 var(--sp-3);
  padding: var(--sp-3); white-space: normal; font: 400 var(--t-s)/1.5 var(--ui); color: var(--ink);
  background: var(--stage-three-t); border: 1px solid var(--stage-three-e); border-left-width: 4px;
  border-radius: var(--r-s);
}
.offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-weight: 600; }
.vacancy-text .offer-new { font-family: var(--read); font-size: var(--t-b); }
.offer-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); width: 100%; }
.offer-why { color: var(--mid); }
.swap-offer-2 .swap-offer-was { text-decoration-color: var(--stage-two-e); }
.vacancy-text .swap-offer-2 .offer-box { background: var(--stage-two-t); border-color: var(--stage-two-e); }
.swap-word {
  font: 700 var(--t-xs) var(--ui); letter-spacing: .02em; margin-right: var(--sp-2);
  padding: 1px 6px; border-radius: 4px;
}
.swap-on .swap-word { background: var(--stage-three); color: var(--stage-three-on); }
.swap-on.swap-2 .swap-word { background: var(--stage-two); color: var(--stage-two-on); }
/* An icon as well as a word, because a colourless one-word button in a column of them is told
   apart by reading it, and the two here are opposites: a press that takes the line out and a
   press that opens it up. The icons are the ones this product already uses for those two acts,
   the arrow that goes back and the pen, so the pair reads the same here as on every other
   screen. Each also carries a title saying what it does, which is the mouse-over; the word on
   the button is the name and the title is the description, never a different name. */
.swap-undo {
  margin-left: var(--sp-2); font: 600 var(--t-xs) var(--ui); cursor: pointer;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 2px 8px; min-height: 24px;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.swap-undo .i { flex: none; }
.swap-undo .i svg { width: 13px; height: 13px; }
.swap-undo:hover { background: var(--io-bg); }

/* ==========================================================================
   The Admin console.

   This is the Operations console of the first application, renamed and otherwise
   untouched, because the two have to be identical to look at and to use. The sheet
   below is that console's own sheet, carried across whole: every class, every
   treatment, every comment. Where a name collided with something this application
   already had, the console's name changed and nothing else did.

   Read only throughout, so it takes the flat output language: on the rail, no
   raised affordance, a rule down the left of the table. The one thing that is not
   read only is the password field, which is inset like every other field a person
   types into.
   ========================================================================== */

.admin-lock{padding:var(--sp-6);max-width:520px}
.admin-lock .btn{margin-top:var(--sp-4)}
.admin-lock code{font-family:var(--mono);font-size:var(--t-s);background:var(--gry-t);padding:1px 5px;border-radius:4px;font-variant-numeric:tabular-nums slashed-zero}

/* --------------------------------------------------------------------------
   The console shell: a bar, a menu that is always there, and one pane.

   One subject on screen at a time, chosen by pressing something. The menu holds
   the numbers, so choosing where to look and seeing how much is there are the
   same act. Below 900px the menu becomes a drawer behind the button in the bar,
   because a permanent menu on a phone is a permanent third of the screen.
   -------------------------------------------------------------------------- */

.admin-bar{
  display:flex;align-items:flex-end;gap:var(--sp-3);flex-wrap:wrap;
  padding-bottom:var(--sp-4);border-bottom:1px solid var(--line);margin-bottom:var(--sp-4)
}
.admin-day-tools{display:flex;align-items:flex-end;gap:var(--sp-3);flex-wrap:wrap;flex:1 1 auto}

/* Day and Period line up, which they did not.

   Reported by Phil: the two are offset. Both are a label over a list, but the period
   carries an information button and it was appended after the list, inside the same
   block, so that block was one row taller and the row aligned its children at the
   bottom, which pushed the period's list up by the height of the button. The block is a
   grid now: the label spans the top row, the list and the button sit side by side on the
   second, and a block with no button leaves that cell empty. Both blocks are then two
   rows of the same heights whatever is in them, so they line up by construction rather
   than because somebody counted the pixels. */
.admin-day{min-width:min(200px,100%);display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 var(--sp-2)}
.f.admin-day > label.lbl{grid-column:1 / -1;margin-bottom:5px}
.admin-actions{display:flex;gap:var(--sp-2);flex-wrap:wrap;margin-left:auto}
.admin-actions-out{margin-left:auto;flex:none}
.admin-shell{display:block}

/* Where the tokens went.

   Five blocks, each answering one of the questions somebody watching a bill has: what it
   cost, which stage it is in, what is multiplying the calls, whether the cache is earning
   anything, and which individual checks were the expensive ones. Each is flat on the rail
   with a rule down the left edge, because every one of them is something the application
   worked out for you to read rather than something you operate. The one that turns amber
   is the cache block when the cache is costing more than it saves, which is a condition
   worth noticing rather than a number worth reading. */
.spend{display:flex;flex-direction:column;gap:var(--sp-5)}
.spend-b{
  background:var(--rail);border:1px solid var(--line2);border-left:3px solid var(--prod);
  border-radius:0 var(--r-s) var(--r-s) 0;padding:var(--sp-4);
  display:flex;flex-direction:column;gap:var(--sp-3)
}
.spend-b-warn{border-left-color:var(--amb);background:var(--amb-t)}
.spend-h{font-size:var(--t-m);font-family:var(--disp);font-weight:600}
.spend-s{color:var(--mid);font-size:var(--t-s);max-width:78ch}
.spend-figs{display:flex;flex-wrap:wrap;gap:var(--sp-5) var(--sp-6)}
.spend-fig{display:flex;flex-direction:column;gap:2px;min-width:0}
/* Tabular figures, because these are read against each other down a row. */
.spend-fig-n{font-family:var(--ui);font-size:var(--t-l);font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.spend-fig-l{color:var(--mid);font-size:var(--t-s)}
/* The one sentence on the pane that says what to do rather than what happened. */
.spend-lever{
  font-size:var(--t-s);color:var(--ink);background:var(--surf);
  border:1px solid var(--line);border-radius:var(--r-s);padding:var(--sp-3);max-width:78ch
}

/* The console's sections are in the bar (the console's bar, near the end of this file). A group
   such as Settings unfolds its parts under it. */
.nav-lead{font:700 var(--t-xs) var(--ui);letter-spacing:.06em;text-transform:uppercase;color:var(--mid);margin-bottom:var(--sp-2)}
.navgroup{display:flex;flex-direction:column;gap:2px}
.navitem{
  display:flex;align-items:center;gap:var(--sp-2);width:100%;text-align:left;min-height:40px;
  padding:6px var(--sp-3);border:1px solid var(--pl-back-e);border-radius:var(--r-s);
  background:var(--surf);color:var(--pl-back-t);cursor:pointer;font:600 var(--t-s) var(--ui);min-width:0;
  box-shadow:none;
  transition:background var(--m-state),border-color var(--m-state)
}
.navitem:hover{background:var(--pl-back);border-color:var(--pl-back-eh)}
/* Where you are, in the product's green, which is what every other you-are-here marker
   in this application uses. Never the forward tint: where you are and what you can take
   are not the same thing and must not be the same colour. */
.navitem.on{background:var(--surf);border-color:var(--prod);color:var(--prod-d);box-shadow:inset 0 0 0 1px var(--prod)}
.navitem-l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.navitem-n{
  margin-left:auto;font:600 var(--t-xs) var(--ui);font-variant-numeric:tabular-nums;color:var(--mid);
  background:var(--tone-t,var(--gry-t));border-radius:var(--r-s);padding:1px 8px;flex:none
}
.navitem.tone-bad .navitem-n,.navitem.tone-warn .navitem-n{color:var(--ink)}
.navitem-mark{
  width:8px;height:8px;flex:none;border-right:2px solid var(--mid);border-bottom:2px solid var(--mid);
  transform:rotate(-45deg);transition:transform var(--m-state)
}
.navitem-group[aria-expanded="true"] .navitem-mark{transform:rotate(45deg)}
.navsub{display:flex;flex-direction:column;gap:2px;margin:2px 0 var(--sp-2) var(--sp-3);border-left:2px solid var(--line);padding-left:var(--sp-2)}
.navitem-leaf{font-weight:500;font-size:var(--t-xs);min-height:34px}
.navitem-leaf .navitem-l{font-family:var(--ui)}

.admin-pane{min-width:0}
.pane-head{margin-bottom:var(--sp-4);display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:var(--sp-2) 4px}
.pane-info{justify-self:start}

.admin-tiles{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));
  gap:var(--sp-3)
}
.admin-tile{
  background:var(--rail);border-radius:var(--r-s);padding:var(--sp-3) var(--sp-4);
  border-left:3px solid var(--prod);display:flex;flex-direction:column;gap:2px;min-width:0;
  width:100%;text-align:left;cursor:pointer;border-top:none;border-right:none;border-bottom:none
}
.admin-tile:hover{background:var(--gry-t)}
.admin-tile-n{font-family:var(--ui);font-size:var(--t-xl);font-weight:700;line-height:1}
.admin-tile-l{font-size:var(--t-s);color:var(--mid)}
.admin-tile-go{font-size:var(--t-xs);color:var(--prod);font-weight:600;margin-top:4px}
/* The movement on a tile. Green where the number went the way anybody wanted, red
   where it did not, grey where neither direction is good or bad and colouring it would
   be inventing a judgement. Every one of them also carries the word, because a green
   number and a red number that are otherwise identical carry their meaning in colour
   alone, and nothing here is allowed to do that. */
.admin-move{display:inline-flex;align-items:baseline;gap:4px;font-size:var(--t-xs);font-weight:600;margin-top:3px}
.admin-move-good{color:var(--grn)}
.admin-move-bad{color:var(--red)}
.admin-move-flat{color:var(--mid)}
.admin-move-arrow{font-size:11px;line-height:1}
.admin-move-was{color:var(--mid);font-weight:400}

/* What the period can actually speak for. */
.admin-cover{
  background:var(--amb-t);color:var(--amb-on-tint);border-radius:var(--r-s);
  padding:var(--sp-2) var(--sp-3);font-size:var(--t-s);margin-bottom:var(--sp-3)
}

/* The rates. Not counts: what a day of this costs and what a check costs, which are
   two different questions and cannot share a number. */
.admin-rates{margin-top:var(--sp-5);padding-top:var(--sp-4);border-top:1px solid var(--line)}
.admin-rates-h{font-size:var(--t-m);margin-bottom:var(--sp-3)}
.rate-list{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));
  gap:var(--sp-3);margin-bottom:var(--sp-3)
}
.rate{
  background:var(--surf);border:1px solid var(--line);border-left:3px solid var(--act);
  border-radius:0 var(--r-s) var(--r-s) 0;padding:var(--sp-3);min-width:0
}
.rate-n{font-family:var(--ui);font-size:var(--t-l);font-weight:700;line-height:1.1}
.rate-l{font-size:var(--t-s);color:var(--mid);margin-top:2px}
.rate-s{font-size:var(--t-xs);color:var(--mid);margin-top:4px}
/* The one "Nothing here yet" (PST-52) is the product kit's slk-empty (kit 0.6.0), made by ui.mjs empty() and written
   into index.html, and styled by the kit alone. This product's own plain .empty style gave way to it on 18 November
   2026. Only where the kit's block sits inside one of this product's lists is the list's marker taken off its row. */
.empty-item{list-style:none}

/* --------------------------------------------------------------------------
   The console's charts.

   Colour carries one meaning throughout and it is the product's own palette, run
   through the contrast and colour blindness validator rather than chosen by eye:
   green is the product working, amber is something refused, red is something that
   failed, blue is neutral measurement. Status colours are reserved and never used
   as a series.

   Every chart carries a single series. Green against red measures a colour
   blindness separation of 5.4 where 8 is the floor, so a stacked bar of checks,
   refusals and failures would be unreadable to a red-green colour blind reader.
   Three small multiples say the same thing to everybody.
   -------------------------------------------------------------------------- */

.tone-ok    { --tone:var(--prod); --tone-t:var(--prod-t) }
.tone-clear { --tone:var(--grn);  --tone-t:var(--grn-t) }
.tone-act   { --tone:var(--act);  --tone-t:var(--act-t) }
.tone-warn  { --tone:var(--amb);  --tone-t:var(--amb-t) }
.tone-bad   { --tone:var(--red);  --tone-t:var(--red-t) }
.tone-neutral { --tone:var(--mid); --tone-t:var(--gry-t) }

.admin-h{font-size:var(--t-l);margin:0}
.chart-note{font-size:var(--t-s);color:var(--mid);margin-top:var(--sp-3);max-width:60ch}

/* Hourly small multiples. Twenty four real buttons per row, not twenty four
   rectangles: an hour you cannot press is a number you have to go and find again
   by hand, which was the whole complaint. */
.chart-rows{display:flex;flex-direction:column;gap:var(--sp-4)}
.hour-row{min-width:0}
.hour-head{display:flex;align-items:center;gap:7px;margin-bottom:5px;font-size:var(--t-s)}
.hour-key{width:9px;height:9px;border-radius:3px;flex:none;background:var(--tone)}
.key-ok{background:var(--prod)} .key-warn{background:var(--amb)} .key-bad{background:var(--red)}
.hour-label{font-weight:600}
.hour-total{margin-left:auto;font-family:var(--ui);font-variant-numeric:tabular-nums;color:var(--mid)}
.hourgrid{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:2px;align-items:end;height:52px}
/* Every hour is a target of at least 24 by 24 with a mouse (WCAG 2.2 SC 2.5.8, found by the accessibility robot on
   17 November 2026) and 44 by 44 on a touch screen (PST-42, the touch block at the end of this sheet, 18 November 2026).
   Twenty four of them and their gaps need 622px with a mouse and 1102px on touch, so where the card is narrower (a phone)
   the rows and their time line scroll sideways together inside it, as the AI hour grid does, and the times stay under
   their hours. */
#hours-rows{overflow-x:auto}
#hours-rows>.hour-row,#hours-rows>.hour-axis{min-width:40rem}
.hourbar{
  display:flex;align-items:flex-end;height:100%;min-width:0;padding:0;cursor:pointer;
  background:var(--line2);border:1px solid transparent;border-radius:3px;overflow:hidden
}
.hourbar-fill{display:block;width:100%;height:var(--h,0);border-radius:2px;background:var(--mid)}
.hourbar.bar-ok .hourbar-fill{background:var(--prod)}
.hourbar.bar-warn .hourbar-fill{background:var(--amb)}
.hourbar.bar-bad .hourbar-fill{background:var(--red)}
.hourbar:hover{border-color:var(--soft)}
.hourbar.on{border-color:var(--ink)}
.hourbar-empty{cursor:default}
:root[data-motion="on"] .hourbar-fill{animation:bar-rise var(--m-panel) var(--ease-panel) both}
@keyframes bar-rise{from{height:0}to{height:var(--h,0)}}
/* --soft measures 3.13:1 and fails AA for text. It is the same trap decision 22
   recorded for form labels, and an axis label is text like any other. */
.hour-axis{display:flex;justify-content:space-between;font:500 var(--t-xs)/1 var(--ui);font-variant-numeric:tabular-nums;color:var(--mid);margin-top:var(--sp-2)}

/* Horizontal bars, one measure across identities */
.chart-bars{display:flex;flex-direction:column;gap:var(--sp-2)}
.bar-group{font:700 var(--t-xs) var(--ui);letter-spacing:.05em;text-transform:uppercase;color:var(--mid);margin-top:var(--sp-3)}
.bar-group:first-child{margin-top:0}
.bar-row{
  display:grid;grid-template-columns:minmax(0,14rem) minmax(0,1fr) auto;gap:var(--sp-3);
  align-items:center;font-size:var(--t-s);width:100%;text-align:left;padding:4px var(--sp-2);
  border:1px solid transparent;border-radius:var(--r-s);background:none;color:var(--ink)
}
/* A row you can open is a button and looks like one on hover. A row you cannot is
   neither, because an inert thing that looks pressable is worse than one that is not. */
.bar-row-go{cursor:pointer}
.bar-row-go:hover{background:var(--gry-t);border-color:var(--line)}
.bar-row-go.on{background:var(--prod-t);border-color:var(--prod)}
.bar-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ui);font-size:var(--t-xs)}
.bar-track{height:10px;background:var(--line2);border-radius:5px;overflow:hidden;min-width:0}
.bar-fill{display:block;height:100%;border-radius:5px;width:var(--w,0)}
.bar-fill.bar-ok{background:var(--prod)} .bar-fill.bar-warn{background:var(--amb)}
.bar-fill.bar-bad{background:var(--red)} .bar-fill.bar-act{background:var(--act)}
:root[data-motion="on"] .bar-fill{animation:bar-grow .6s var(--ease-panel) both;animation-delay:var(--delay,0ms)}
@keyframes bar-grow{from{width:0}to{width:var(--w,0)}}
.bar-value{font-family:var(--ui);font-variant-numeric:tabular-nums;font-size:var(--t-xs);color:var(--mid);white-space:nowrap}

/* Filter chips */
.admin-filters{display:flex;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap;margin-bottom:var(--sp-3)}
.chiprow{display:flex;gap:var(--sp-2);flex-wrap:wrap}
.chipf{
  display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:var(--r-s);
  border:1px solid var(--pl-back-e);background:var(--surf);color:var(--pl-back-t);cursor:pointer;
  font:600 var(--t-xs) var(--ui);min-height:30px;box-shadow:none;
  transition:background var(--m-state),border-color var(--m-state),color var(--m-state)
}
.chipf:hover{background:var(--pl-back);border-color:var(--pl-back-eh)}
.chipf-dot{width:8px;height:8px;border-radius:var(--r-full);background:var(--tone,var(--mid));flex:none;opacity:.4}
/* Not the chosen fill, and deliberately. These start on and are switched off, so "on" is the
   resting state of every chip in the row: filling them all would paint the whole filter bar and
   say nothing. The interesting state here is the one turned off, which .chipf-none below marks
   in shape as well as in weight. The tone is the category's own colour, not a selection. */
.chipf.on{background:var(--surf);border-color:var(--tone,var(--soft));color:var(--ink);box-shadow:inset 0 0 0 1px var(--tone,var(--soft))}
.chipf.on .chipf-dot{opacity:1}
/* Nothing of this kind survives the narrowing in force. Quiet, and struck through, so
   it differs from a switched off chip in shape as well as in weight. */
.chipf-none{opacity:.55}
.chipf-none .chipf-dot{background:var(--soft)}
.chipf-all{font-weight:700;text-decoration:underline;text-underline-offset:2px}
.admin-copy{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;justify-content:flex-end}
.admin-copy-note{font-size:var(--t-xs);color:var(--prod-d);min-height:14px;flex-basis:100%;text-align:right}
.copy-out{width:100%;font-family:var(--mono);font-size:var(--t-xs);line-height:1.5;border:1px solid var(--line);border-radius:var(--r-s);padding:var(--sp-3);font-variant-numeric:tabular-nums slashed-zero}

/* --------------------------------------------------------------------------
   The events.

   One event is one line, and the line never wraps. A screen holds forty of them
   and the eye runs down the times. Pressing a line opens every field the record
   holds, because the question behind a number is always which one, and then what
   exactly happened. Tone is carried by the rule down the left edge and by the
   word, never by colour alone.
   -------------------------------------------------------------------------- */

.facets{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;margin-bottom:var(--sp-3)}
.facets-lead{font:700 var(--t-xs) var(--ui);letter-spacing:.05em;text-transform:uppercase;color:var(--mid)}
.facets-note{font-size:var(--t-xs);color:var(--mid)}
.facet{
  display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--r-s);
  border:1px solid var(--prod);background:var(--surf);color:var(--prod-d);cursor:pointer;
  font:600 var(--t-xs) var(--ui);min-height:28px
}
.facet:hover{background:var(--pl-back)}
.facet-x{display:inline-flex;line-height:1}
.facet-x svg{width:14px;height:14px}
.facet-clear{border-color:var(--pl-back-e);background:var(--surf);color:var(--pl-back-t)}

/* The events list in the operations console. This one keeps the name, because it had it
   first and every key derived from it is older; the evidence panel is `.evpanel`. */
.ev{list-style:none;margin:0;padding:0;background:var(--rail);border-radius:var(--r-s);border-left:3px solid var(--line);overflow:hidden}
.ev-i{border-bottom:1px solid var(--line);border-left:3px solid transparent;margin-left:-3px}
.ev-i:last-child{border-bottom:none}
.ev-i.tone-bad{border-left-color:var(--red);background:var(--red-t)}
.ev-i.tone-warn{border-left-color:var(--amb);background:var(--amb-t)}
.ev-line{
  display:grid;grid-template-columns:auto 8px minmax(6rem,auto) minmax(0,1fr) repeat(3,auto);
  align-items:center;gap:var(--sp-3);width:100%;text-align:left;padding:5px var(--sp-3);
  min-height:34px;background:none;border:none;cursor:pointer;font:500 var(--t-xs) var(--ui);color:var(--ink)
}
.ev-line:hover{background:var(--gry-t)}
.ev-t{color:var(--mid);white-space:nowrap;font-variant-numeric:tabular-nums}
.ev-k{width:8px;height:8px;border-radius:2px;background:var(--tone,var(--mid))}
.ev-w{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The one part allowed to be cut short, because the whole of it is one press away. */
.ev-d{color:var(--mid);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ev-c{color:var(--mid);white-space:nowrap;font-size:var(--t-xs)}
/* Always the last column, whether or not the line has a second address field, so a line never
   wraps onto two. */
.ev-x{width:14px;height:14px;color:var(--mid);transition:transform var(--m-state);grid-column:-2}
.ev-line[aria-expanded="true"] .ev-x{transform:rotate(180deg)}

.ev-more{padding:var(--sp-3) var(--sp-4) var(--sp-4) var(--sp-5);border-top:1px dashed var(--line);background:var(--surf)}
.ev-fields{display:grid;grid-template-columns:minmax(0,11rem) minmax(0,1fr);gap:2px var(--sp-3);margin:0 0 var(--sp-3);font-size:var(--t-xs)}
.ev-fields dt{color:var(--mid);font-weight:600}
.ev-fields dd{margin:0;word-break:break-word}
.ev-raw summary{cursor:pointer;font-size:var(--t-xs);color:var(--mid);padding:4px 0}
.ev-json{
  font-family:var(--mono);font-size:var(--t-xs);line-height:1.5;background:var(--rail);
  border-radius:var(--r-s);padding:var(--sp-3);overflow-x:auto;white-space:pre;margin-top:var(--sp-2);font-variant-numeric:tabular-nums slashed-zero}
.ev-acts{margin-top:var(--sp-3)}

/* On a narrow screen the detail is the part worth reading and the connection is
   not, so the connection steps out of the line rather than squeezing the detail
   down to one letter. It is still there, one press away, with everything else. */
@media (max-width:620px){
  .ev-line{grid-template-columns:auto 8px minmax(0,auto) minmax(0,1fr) auto;gap:var(--sp-2)}
  .ev-c{display:none}
}
:root[data-motion="on"] .ev-i{animation:row-in var(--m-state) both;animation-delay:var(--delay,0ms)}
@keyframes row-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
:root[data-motion="on"] .admin-tile{animation:tile-in var(--m-panel) var(--ease-panel) both;animation-delay:var(--delay,0ms)}
@keyframes tile-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.admin-tile{border-left-color:var(--tone,var(--prod))}
.admin-tile .admin-tile-n{color:var(--ink)}

/* ==========================================================================
   Running it: the settings pane and the answers pane.

   Two panes that change what a stranger can do, rather than describing what one
   already did, so both are louder than the analysis panes and the state of the
   switch is never carried by colour alone.
   ========================================================================== */

/* The band across the whole console while checking is off. Stuck to the top of the
   console body, because an operator who signed in an hour later has to see the state of
   the thing they are running before they see anything else. */
.admin-off{
  display:flex;align-items:center;gap:var(--sp-3);position:sticky;top:0;z-index:6;
  border-left:4px solid var(--red)
}
.admin-off .i{flex:none;color:var(--red)}
.admin-off-h{font-family:var(--disp);font-size:var(--t-m);font-weight:600}
.admin-off-s{color:var(--ink);margin-top:2px;max-width:76ch}
.admin-off .btn{flex:none;margin-left:auto}

/* The whole of the centre column, like every other pane in the console. Asked for: it was held to
   760px, a third of a laptop screen short of the edge, which wrapped the row of areas onto a second line with room to spare beside it. */
.setpane{display:flex;flex-direction:column;gap:var(--sp-5)}
.setblock{display:flex;flex-direction:column;gap:var(--sp-2)}
.set-h{font-family:var(--disp);font-size:var(--t-m);font-weight:600}
.setdo{display:flex;gap:var(--sp-3);flex-wrap:wrap;align-items:center}
.setdo .btn[aria-disabled="true"]{background:transparent;border:1.5px dashed var(--gry);color:var(--mid);box-shadow:none}
.setdo .btn[aria-disabled="true"]:hover{transform:none;box-shadow:none;background:transparent;border-color:var(--mid)}

/* The five areas of the settings, and the row that picks between them.

   Phil's call: nine blocks in one column had stopped being readable, and a switch that
   closes the product for everybody sat in the same scroll as a number deciding how many
   free checks a stranger gets. The row is the segmented control this product already
   uses everywhere a choice is made from a short fixed list, so it needs no vocabulary of
   its own.

   Laid out as an even grid across the whole column rather than as a wrapping row. Asked for:
   use the space. Seven areas are wider than a laptop's column at their natural width, so a
   row wrapped with one button alone on a line of its own; and trimming the padding until it
   fitted would fit it in one face and not in a wider one the console can choose. As a grid the
   buttons share the width equally, a long label wraps inside its own button, and a narrower
   screen gets tidy equal rows instead of a straggler. */
/* Two classes, because .seg is declared later in the file as inline-flex and would win a tie. */
.seg.setnav{display:grid;grid-template-columns:repeat(auto-fit, minmax(8rem, 1fr));width:100%}
.setnav button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
/* An area holding a change that is not in force. The amber edge is the mark and the word
   beside it is the meaning, because colour is never the sole carrier here. */
.setnav button.setnav-unsaved{border-color:var(--amb);box-shadow:inset 0 0 0 1px var(--amb),var(--lift-p)}
.setnav-flag{
  font:700 9px var(--ui);letter-spacing:.06em;text-transform:uppercase;
  background:var(--amb-t);color:var(--ink);border-radius:var(--r-s);padding:1px 5px
}
.setsec{display:flex;flex-direction:column;gap:var(--sp-4)}
/* A choice row is as wide as its choices. As a flex item of the column it stretched, and its grey
   track ran on across the whole pane behind nothing. */
.setpane .seg:not(.setnav){align-self:flex-start}
/* One sentence under each area's heading saying what it governs, so an operator can tell
   from the screen rather than from the shape of the controls whether they are in the
   right place. It sits tight under the heading it belongs to. */
.set-lede{margin-top:calc(var(--sp-4) * -1 + var(--sp-1))}
.set-sub{font-family:var(--disp);font-size:var(--t-b);font-weight:600}
/* The save row, below whichever of the three writing areas is open. One press writes the
   whole settings blob, so there is one of these rather than one per area. */
.setfoot{
  display:flex;flex-direction:column;gap:var(--sp-2);
  padding-top:var(--sp-4);border-top:1px solid var(--line)
}

/* The master switch. The block is the state: green while it is on, red while it is off,
   with the word beside the knob and a sentence under the heading, so the state is said
   three times over and never in colour alone. */
.masterswitch{
  display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap;
  padding:var(--sp-4);border-radius:var(--r-m);border:1px solid var(--line);
  border-left:4px solid var(--grn);background:var(--grn-t)
}
.masterswitch[data-state="off"]{border-left-color:var(--red);background:var(--red-t)}
.master-h{font-family:var(--disp);font-size:var(--t-l);font-weight:600;color:var(--grn)}
.masterswitch[data-state="off"] .master-h{color:var(--red)}
/* The words take the width the switch does not, and the switch stays at the end of the line
   beside them. It drops underneath only when there is too little room for the words to be read. */
.master-say{flex:1 1 20rem;min-width:0}
.master-s{color:var(--ink);margin-top:4px;font-size:var(--t-b)}
/* What is on the switch is not always what is in force. A draft that has not been saved
   says so here, in words, because a switch showing off and an instance that is still on
   are indistinguishable otherwise, which is exactly how Phil came to believe a change
   had taken when it had not. The amber edge is the second carrier, never the only one. */
.master-unsaved{
  margin-top:var(--sp-2);padding:6px var(--sp-3);border-radius:var(--r-s);
  border-left:3px solid var(--amb);background:var(--amb-t);color:var(--ink);
  font:600 var(--t-s) var(--ui);max-width:64ch
}
.masterswitch[data-unsaved="yes"]{border-left-color:var(--amb);background:var(--amb-t)}
/* And the heading, which then says what happens on saving, in the ink of a pending change
   rather than the green or red of a state that is not yet true. */
.masterswitch[data-unsaved="yes"] .master-h{color:var(--amb-on-tint)}
/* The save row, held at the foot of the window while anything is unsaved, with its buttons at
   the right so the console's menu button at the bottom left never sits on them. */
.setfoot[data-dirty="true"]{
  position:sticky;bottom:0;z-index:5;background:var(--bg);
  border-top:2px solid var(--amb);padding-bottom:var(--sp-3)
}
.setfoot[data-dirty="true"] .setdo{justify-content:flex-end}
#view-admin :where(a, button, input, select, textarea, [tabindex]){scroll-margin-bottom:160px}

/* A switch that is a button rather than a checkbox, because it is a console control and
   the state comes from the server. Raised, on the pressable surface, with a hover lift
   and a press state, which is this product's vocabulary for something you press. */
.switch{
  display:inline-flex;align-items:center;gap:var(--sp-2);flex:none;cursor:pointer;
  background:var(--surf);border:1px solid var(--pl-back-e);border-radius:var(--r-s);
  padding:5px var(--sp-3) 5px 6px;font:600 var(--t-b) var(--ui);color:var(--ink);
  min-height:34px;box-shadow:none;
  transition:border-color var(--m-state),background var(--m-state)
}
.switch:hover{background:var(--pl-back);border-color:var(--pl-back-eh)}
.switch-knob{
  width:34px;height:20px;border-radius:var(--r-full);background:var(--gry);position:relative;flex:none;
  transition:background var(--m-state)
}
.switch-knob::after{
  content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:var(--r-full);
  background:var(--surf);box-shadow:var(--sh);transition:transform var(--m-lift)
}
.switch.on .switch-knob{background:var(--grn)}
.switch.on .switch-knob::after{transform:translateX(14px)}
.switch-word{white-space:nowrap}
.switch-lg{font-size:var(--t-m);padding:6px var(--sp-4) 6px 7px;min-height:42px}
.switch-lg .switch-knob{width:42px;height:24px}
.switch-lg .switch-knob::after{width:18px;height:18px}
.switch-lg.on .switch-knob::after{transform:translateX(18px)}

.setnums{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:var(--sp-4)}
.setnum{
  display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-3);
  background:var(--surf);border:1px solid var(--line);border-left:3px solid var(--prod);border-radius:var(--r-s)
}
/* No limit is the most generous state, not the least, so it is green rather than grey. */
.setnum-free{border-left-color:var(--grn)}
.setnum-row{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
/* The words the per-tier switch answers to, beside it, so the switch itself can say On or Off. */
.setnum-sw-l{font:600 var(--t-s) var(--ui);color:var(--ink)}
/* Limits are off: the numbers are kept for when they come back, so they stay on the screen,
   greyed as a whole rather than faded, which would take the text under its contrast. */
.setnum-kept{background:var(--rail);border-left-color:var(--gry)}
.setnum-in{
  width:6rem;background:var(--surf);border:1px solid var(--line2);border-radius:var(--r-s);
  padding:var(--sp-2) var(--sp-3);font:600 var(--t-m) var(--ui);color:var(--ink)
}
.setnum-in:focus{outline:2px solid var(--act);outline-offset:-1px;border-color:var(--act)}
.setnum-in[aria-disabled="true"]{background:var(--rail);color:var(--mid)}

.sethist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.sethist-row{
  display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap;padding:var(--sp-2) var(--sp-3);
  background:var(--rail);border-left:3px solid var(--line);font-size:var(--t-xs)
}
.sethist-when{color:var(--mid);white-space:nowrap;min-width:11rem}
.sethist-nums{color:var(--ink)}
.sethist-why{color:var(--red);font-weight:600}

/* Licences. One row each, with the state carried by a colour, a word and an icon. */
.lic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:var(--sp-3);margin-bottom:var(--sp-3)}
.lic-grid input,.lic-grid select{width:100%}
.lics{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.lic{
  background:var(--surf);border:1px solid var(--line);border-left:3px solid var(--grn);
  border-radius:var(--r-s);padding:var(--sp-3);display:flex;flex-direction:column;gap:4px
}
.lic-revoked{border-left-color:var(--red);background:var(--red-t)}
.lic-expired{border-left-color:var(--gry);background:var(--rail)}
.lic-head{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.lic-plan{font-family:var(--ui);font-weight:700}
.lic-when,.lic-uses,.lic-note{font-size:var(--t-xs);color:var(--mid)}
.lic-who{font-size:var(--t-s);font-weight:600}
.lic .ghost{align-self:flex-start;margin-top:var(--sp-2)}
.lic-new{margin-top:var(--sp-3)}

/* Finding one licence among many.
   The find box, the four states and the order sit in one row above the list, and wrap into a
   column on a narrow screen. Nothing here asks the server: the list is already in the browser,
   so a typo costs a keystroke rather than a round trip. */
.lic-find{display:flex;gap:var(--sp-3);flex-wrap:wrap;align-items:flex-end;margin-bottom:var(--sp-3)}
.lic-find .f{flex:1 1 220px;min-width:0;margin:0}
.lic-sort{flex:0 1 200px}
/* The figures that answer "how many have they got left", which is what this pane is opened
   to find out. In the row's own colour rather than the grey of the notes, because it is the
   fact rather than a remark about it. */
.lic-pool{font-size:var(--t-s);font-weight:600;color:var(--ink)}
.lic-fresh{margin-top:var(--sp-2)}
.lic-fresh .mono{font-size:var(--t-l);letter-spacing:.08em;word-break:break-all}

/* What has been run on a licence.
   Four tallies side by side where there is room and stacked where there is not, then every
   use under them. Each tally scrolls on its own rather than making the whole fold the height
   of the longest one: a key with a year of daily checks would otherwise push the audit trail
   several screens down. */
.lic-hist{border-top:1px solid var(--line);margin-top:var(--sp-3);padding-top:var(--sp-3);
  display:flex;flex-direction:column;gap:var(--sp-2)}
.lic-hist-now{font-size:var(--t-m);font-weight:600;color:var(--ink)}
.lic-hist-tallies{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));
  gap:var(--sp-3)}
.tally{min-width:0}
.tally-h{font:600 11px var(--disp);letter-spacing:.05em;color:var(--mid);text-transform:uppercase;
  margin:0 0 5px}
.tally-rows{list-style:none;margin:0;padding:0;max-height:15rem;overflow-y:auto;
  border:1px solid var(--line);border-radius:var(--r-s);background:var(--surf)}
.tally-rows li{display:flex;justify-content:space-between;gap:var(--sp-2);
  padding:3px var(--sp-2);font-size:var(--t-s);border-bottom:1px solid var(--line)}
.tally-rows li:last-child{border-bottom:0}
.tally-k{min-width:0;overflow-wrap:anywhere}
.tally-n{font-variant-numeric:tabular-nums;font-weight:700}
.tally-more .tally-k{color:var(--mid);font-style:italic}
/* The audit trail. One line a check, in the order they happened, newest first. */
.uselist{list-style:none;margin:0;padding:0;max-height:22rem;overflow-y:auto;
  border:1px solid var(--line);border-radius:var(--r-s);background:var(--surf)}
.use{padding:4px var(--sp-2);font-size:var(--t-s);border-bottom:1px solid var(--line)}
.use:last-child{border-bottom:0}
/* A line whose detail has aged out reads as a line with something missing unless it is marked
   as one, and the mark is the point: the check happened, and we no longer say who ran it. */
.use-aged,.use-more{color:var(--mid);font-style:italic}
.lic-new-h{font-weight:700;color:var(--grn);margin-bottom:var(--sp-2)}
#lic-key{font-size:var(--t-l);letter-spacing:.08em;word-break:break-all}

/* The API pane.

   The keys are cards, like the licences, because each carries its own switch and its own
   limit, and a table row with four controls in it is a row nobody can use on a phone. The
   state is a word on a tag as well as the colour of the edge. */
.apikeys{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.apikey{
  background:var(--surf);border:1px solid var(--line);border-left:3px solid var(--grn);
  border-radius:var(--r-s);padding:var(--sp-3);display:flex;flex-direction:column;gap:4px;min-width:0
}
.apikey-paused{border-left-color:var(--amb)}
.apikey-revoked{border-left-color:var(--red);background:var(--red-t)}
.apikey-expired{border-left-color:var(--gry);background:var(--rail)}
.apikey-head{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.apikey-org{font-family:var(--ui);font-weight:700;min-width:0;overflow-wrap:anywhere}
.apikey-prefix{color:var(--mid)}
.apikey-name{font-size:var(--t-s);font-weight:600}
.apikey-when,.apikey-note{font-size:var(--t-xs);color:var(--mid)}
.apikey-edit{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));
  gap:var(--sp-2) var(--sp-3);align-items:end;margin-top:var(--sp-2)
}
.apikey-edit input{width:100%}
.apikey-acts{display:flex;align-items:center;gap:var(--sp-2) var(--sp-3);flex-wrap:wrap;margin-top:var(--sp-2)}
.apikey-once{font-size:var(--t-l);letter-spacing:.04em;padding:var(--sp-3);background:var(--rail);border-radius:var(--r-s)}

/* A heading with what goes with it on the same line: when the live view was read and its
   pause, or the period and the download. */
.api-head{display:flex;align-items:flex-end;gap:var(--sp-2) var(--sp-4);flex-wrap:wrap}
.api-head .set-h{margin-right:auto}
.api-head-say{flex:1 1 16rem;min-width:0}
.api-live-body{display:flex;flex-direction:column;gap:var(--sp-3)}

/* Now: the gauge of the minute against the maximum rate, then the three rates. The ring is
   drawn the way the allowance ring is (rules/allowance.mjs), from green to red as it fills,
   and the words beside it say the same thing, so colour never says it alone. */
.api-now{display:flex;flex-wrap:wrap;gap:var(--sp-4) var(--sp-6);align-items:center}
.api-gauge-box{display:flex;align-items:center;gap:var(--sp-3);min-width:0;flex:1 1 18rem}
.api-gauge{width:72px;height:72px;flex:none}
.api-gauge circle{fill:none;stroke-width:5}
.api-gauge-t{stroke:var(--gauge-c,var(--stage-three-e));opacity:.2}
.api-gauge-f{
  stroke:var(--gauge-c,var(--stage-three-e));stroke-dasharray:var(--gauge-p,0) 100;stroke-linecap:round;
  transition:stroke-dasharray .6s var(--ease-panel,ease),stroke .6s
}
.api-gauge-none .api-gauge-f{stroke-linecap:butt}
.api-gauge-say{font-size:var(--t-s);font-weight:600;color:var(--ink);margin-top:4px}
.api-today .rate-list{margin-bottom:0}

/* Sixty minutes to a row rather than twenty four hours. Nothing in these rows can be pressed,
   so they do not look as though they can. */
.hourgrid-60{grid-template-columns:repeat(60,minmax(0,1fr));gap:1px}
.hourgrid-still .hourbar{cursor:default}
.hourgrid-still .hourbar:hover{border-color:transparent}
.admin-tile-still{cursor:default}
.admin-tile-still:hover{background:var(--rail)}

/* Problems now. Red for one that needs attention and amber for one worth a look, each with
   the warning sign and a word, so the level is never carried by the colour alone. */
.api-probs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.api-prob{
  display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:var(--sp-2);align-items:start;
  padding:var(--sp-2) var(--sp-3);border-radius:var(--r-s);border-left:3px solid var(--amb);
  background:var(--amb-t);color:var(--ink);font-size:var(--t-s)
}
.api-prob-bad{border-left-color:var(--red);background:var(--red-t)}
.api-prob .i{color:var(--amb-on-tint)}
.api-prob-bad .i{color:var(--red)}
.api-prob-w{font-weight:700;white-space:nowrap}
.api-prob-none{display:flex;align-items:center;gap:var(--sp-2);font-size:var(--t-s);color:var(--grn);font-weight:600}
@media (max-width:620px){
  .api-prob{grid-template-columns:auto minmax(0,1fr)}
  .api-prob-s{grid-column:1 / -1}
}

/* By connection. A table, because it is one row a key and the same five figures across, and
   it scrolls inside its own box rather than pushing the page sideways on a phone. */
.api-table-wrap{overflow-x:auto;max-width:100%}
.api-table{border-collapse:collapse;width:100%;font-size:var(--t-s)}
.api-table th,.api-table td{padding:6px var(--sp-2);border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.api-table th:first-child{text-align:left;white-space:normal;min-width:10rem}
.api-table thead th{font-weight:700;color:var(--mid);font-size:var(--t-xs)}
.api-table td{font-variant-numeric:tabular-nums}

/* The answers. One card each, and every one of them holds somebody's name, so the card
   is the thing that gets copied or deleted rather than a row in a table. */
.signups{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-3)}
.signup{
  background:var(--surf);border:1px solid var(--line);border-left:3px solid var(--prod);
  border-radius:var(--r-s);padding:var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-3)
}
.signup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap}
.signup-who{font-family:var(--ui);font-size:var(--t-m);font-weight:700}
.signup-mail{display:flex;gap:var(--sp-3);flex-wrap:wrap;font-size:var(--t-s)}
.signup-mail a{color:var(--act)}
.signup-when{color:var(--mid)}
.signup-org{margin-left:var(--sp-2);font:600 var(--t-s) var(--ui);color:var(--mid)}
/* Where they stood when they answered: tier, checks used, which screen, which kind of device. */
.signup-context{margin-top:2px;font-size:var(--t-s);color:var(--ink)}
.signup-steps{display:flex;flex-direction:column;gap:var(--sp-2)}
.signup-step-h{font:700 var(--t-xs) var(--ui);letter-spacing:.05em;text-transform:uppercase;color:var(--mid);margin-top:var(--sp-2)}

/* The answers, added up. The bars are the console's own bar list in one hue, with the count and
   the share written beside each; the name column is widened and allowed to wrap here, because an
   answer cut off at an ellipsis is an answer nobody can read. */
.signup-sum{display:flex;flex-direction:column;gap:var(--sp-3);margin-bottom:var(--sp-5);
  padding-bottom:var(--sp-5);border-bottom:1px solid var(--line)}
.signup-heads{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(18rem,100%),1fr));gap:var(--sp-3)}
.signup-headline{background:var(--surf);border:1px solid var(--line);border-left:3px solid var(--act);
  border-radius:var(--r-s);padding:var(--sp-3)}
.signup-headline-n{font:700 var(--t-xl)/1.1 var(--ui);color:var(--ink)}
.signup-headline-l{font-size:var(--t-s);color:var(--ink);margin-top:4px}
.signup-sum-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(28rem,100%),1fr));gap:var(--sp-4)}
.signup-sum-q{display:flex;flex-direction:column;gap:var(--sp-1)}
.signup-sum-h{font-weight:600;font-size:var(--t-b)}
.signup-sum .bar-row{grid-template-columns:minmax(0,15rem) minmax(0,1fr) auto}
.signup-sum .bar-name{white-space:normal;font-family:var(--ui);font-size:var(--t-s)}
.signup-do{display:flex;gap:var(--sp-2);flex:none}
.signup-answers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px var(--sp-3);font-size:var(--t-s);margin:0}
.signup-answers dt{color:var(--mid)}
.signup-answers dd{margin:0;font-weight:600}
.signup-wishes-h{font:700 var(--t-xs) var(--ui);letter-spacing:.05em;text-transform:uppercase;color:var(--mid)}
.signup-wishes{margin:0;padding-left:var(--sp-4);font-size:var(--t-s)}
/* Somebody else's words, in the flat treatment this product uses for something it did
   not write, so nobody reads it as the product's own voice. */
.signup-said{background:var(--rail);border-left:3px solid var(--soft);border-radius:0 var(--r-s) var(--r-s) 0;padding:var(--sp-3)}
.signup-said-h{font:700 var(--t-xs) var(--ui);letter-spacing:.05em;text-transform:uppercase;color:var(--mid);margin-bottom:4px}
.signup-said-t{white-space:pre-wrap;font-size:var(--t-b)}
@media (max-width:620px){
  .signup-answers{grid-template-columns:minmax(0,1fr)}
  .signup-answers dd{margin-bottom:var(--sp-2)}
}

/* What a visitor will read, quoted back at the operator before they close the instance. */
.quote{
  background:var(--rail);border-left:3px solid var(--act);border-radius:0 var(--r-s) var(--r-s) 0;
  padding:var(--sp-3);font-size:var(--t-b);margin-bottom:var(--sp-3)
}
.ok{color:var(--grn);font-size:var(--t-s);font-weight:600;margin-top:var(--sp-2)}
/* The same role reached from the other direction. Written as `btn btn-warn`, and this
   block sits later in the sheet, so the red outline (the secondary style, PST-42) wins over the
   solid action above it. */
.btn-warn{background:var(--surf);color:var(--pl-del-t);border-color:var(--pl-del-e);
  box-shadow:none}
.btn-warn:hover{background:var(--pl-del);border-color:var(--pl-del-eh);box-shadow:none}
.btn-warn:active{background:var(--pl-del-h);box-shadow:var(--press-p)}
.btn-warn .i{color:var(--pl-del-t)}

/* The handheld menu. Rows rather than a list, because each one is a control and has to
   look like something you press. Forty four pixels tall, in a sheet that comes up from
   the bottom, which is where the thumb already is. */
.menu-sheet{display:flex;flex-direction:column;gap:var(--sp-2)}
.menu-cap{
  font:700 var(--t-xs) var(--ui);letter-spacing:.06em;text-transform:uppercase;color:var(--mid);
  margin-top:var(--sp-3)
}
.menu-cap:first-child{margin-top:0}
.menu-row{
  display:flex;align-items:center;gap:var(--sp-3);width:100%;text-align:left;min-height:52px;
  padding:var(--sp-3);background:var(--surf);border:1px solid var(--pl-back-e);border-radius:var(--r-s);
  font:inherit;font-weight:600;color:var(--ink);cursor:pointer;box-shadow:none;
  transition:background var(--m-state),border-color var(--m-state)
}
.menu-row:hover{background:var(--pl-back);border-color:var(--pl-back-eh)}
.menu-row .i{color:var(--mid);font-size:19px;flex:none}
.menu-row-here{border-color:var(--prod);background:var(--surf);box-shadow:inset 0 0 0 1px var(--prod)}
.menu-row-here .i{color:var(--prod)}
.menu-row-t{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.menu-row-h{font-weight:600}
.menu-row-s{font-size:var(--t-s);color:var(--mid)}
.menu-meta{display:grid;grid-template-columns:auto 1fr;gap:var(--sp-2) var(--sp-4);font-size:var(--t-s)}
.menu-meta dt{color:var(--mid)}
.menu-meta dd{margin:0;color:var(--ink)}

/* Where the rules came from. The same green and amber the rest of the product uses:
   green for a source that was fetched and read, amber for one that could not be
   reached. Both are listed. Each also says which it is in words. */
.sources{margin-top:var(--sp-7);border-top:1px solid var(--line);padding-top:var(--sp-6)}
.sources h2{margin-bottom:var(--sp-2)}
.src-list{display:flex;flex-direction:column;gap:var(--sp-3);margin-top:var(--sp-5)}
.src-item{
  background:var(--surf);border:1px solid var(--line);border-left-width:3px;border-radius:var(--r-s);
  padding:var(--sp-4)
}
.src-on{border-left-color:var(--prod)}
.src-off{border-left-color:var(--amb)}
.src-head{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;margin-bottom:var(--sp-2)}
.src-on .src-head .i{color:var(--prod)}
.src-off .src-head .i{color:var(--amb-on-tint)}
.src-title{font-weight:600;font-size:var(--t-m);font-family:var(--disp)}
.src-pub{font-size:var(--t-s);color:var(--mid)}
.src-note-line{font-size:var(--t-s);color:var(--mid);margin-top:var(--sp-2);max-width:86ch}
.src-body .lnk{font-family:var(--ui);font-size:var(--t-xs);word-break:break-all}
.src-note{
  margin-top:var(--sp-4);padding:var(--sp-4);border-radius:var(--r-s);background:var(--rail);
  border-left:3px solid var(--soft);color:var(--mid);font-size:var(--t-b);max-width:86ch
}

/* ==========================================================================
   Flags reported as incorrect.

   The answer about the check rather than about the document, and the console list it
   produces. The button takes the red the record will give the decision, as an underline
   rather than an edge, because a solid accent edge already means "the block to deal
   with" and one meaning to a treatment is the whole point of having them.
   ========================================================================== */

/* Reporting a flag as incorrect. It steps back from the finding rather than acting on it, so
   it carries the step-back plate with a red bar underneath saying what it reports. The hover
   does not turn the plate red: red is the colour of a press that removes something, and this
   removes nothing. */
/* The one Report button, used wherever somebody decides something (report-button.mjs). The same
   shape and height as every other button, and the secondary style (PST-42): an outline, in the
   slate nothing else wears (a solid slate plate until 16 November 2026). Its tip shows on
   hover and on keyboard focus, stays while the pointer is on it, and goes on Escape. */
.report-wrap { position: relative; display: inline-flex; margin-left: auto; }
.btn-report {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: 600 var(--t-b) var(--ui); border-radius: var(--r-s); cursor: pointer;
  padding: var(--sp-2) var(--sp-4); min-height: 36px; min-width: 24px;
  background: var(--surf); color: var(--pl-report); border: 1px solid var(--pl-report);
  box-shadow: none; transition: background var(--m-state), box-shadow var(--m-lift);
}
.btn-report:hover { background: var(--gry-t); border-color: var(--pl-report-h); }
.btn-report:active { box-shadow: var(--press-p); }
.btn-report:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; }
.report-tip {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; width: max-content; max-width: 16rem;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-s); font: 400 var(--t-xs)/1.4 var(--ui);
  background: var(--pl-report-h); color: var(--pl-report-t); visibility: hidden; opacity: 0;
  transition: opacity var(--m-state);
}
.report-wrap:hover .report-tip, .report-wrap:focus-within .report-tip { visibility: visible; opacity: 1; }
.report-wrap[data-tip="off"] .report-tip { visibility: hidden; opacity: 0; }
.report-note { width: 100%; font: 400 var(--t-b)/1.5 var(--ui); }
.report-email { width: 100%; min-height: 44px; font: 400 var(--t-b)/1.5 var(--ui); }
.report-human { min-height: 65px; margin: var(--sp-3) 0; }

/* The reason list in the dialog. Each one is a press, so each one is a target, and the hint
   under the label is the difference between two answers that sound alike. */
.reasons { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.reason {
  display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%;
  padding: var(--sp-3); border-radius: var(--r-s); cursor: pointer; min-height: 44px;
  background: var(--surf); border: 1px solid var(--pl-back-e); color: var(--ink);
  box-shadow: none; transition: background var(--m-state), border-color var(--m-state);
}
.reason:hover { background: var(--pl-back); border-color: var(--pl-back-eh); }
/* Chosen is the shared rule, "a control somebody chose". The sub-line under the label has to
   come with it: --mid on the accent is 2.1:1 and unreadable. */
.reason.on .reason-h { color: color-mix(in srgb, var(--on-fill) 85%, transparent); }
.reason-l { font-weight: 600; }
.reason-h { font-size: var(--t-s); color: var(--mid); }

/* The console list. */
.misfire-top{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-bottom:var(--sp-4)}
.misfires{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-4)}
.misfire{
  background:var(--surf);border:1px solid var(--line);border-left:3px solid var(--red);
  border-radius:0 var(--r-m) var(--r-m) 0;padding:var(--sp-4);box-shadow:var(--sh)
}
.misfire-head{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;margin-bottom:var(--sp-2)}
.misfire-rule{font:700 var(--t-s) var(--ui);color:var(--ink)}
.misfire-at{font-size:var(--t-xs);color:var(--mid);margin-left:auto}
.misfire-why{font:600 var(--t-b) var(--ui);color:var(--red);margin-bottom:var(--sp-3)}
.misfire-lbl{font:700 10px var(--ui);letter-spacing:.05em;text-transform:uppercase;color:var(--mid);margin-bottom:4px}
.misfire-quote{
  background:var(--rail);border:1px solid var(--line2);border-left:3px solid var(--line);
  border-radius:0 var(--r-s) var(--r-s) 0;padding:var(--sp-3);margin:0 0 var(--sp-3);
  font-family:var(--mono);font-size:var(--t-s);color:var(--ink);font-variant-numeric:tabular-nums slashed-zero}
.misfire-said{font-size:var(--t-s);color:var(--mid);margin-bottom:var(--sp-2)}
.misfire-meta{font-size:var(--t-xs);color:var(--mid);font-family:var(--ui);font-variant-numeric:tabular-nums}
@media (max-width:620px), (pointer:coarse) and (max-width:1024px){
  .misfire-at{margin-left:0;width:100%}
}


/* ------------------------------------------------------- what the console shares with it

   A modal, a segmented control, a form field and a handful of small blocks. All of them
   carried across from the first application with the console, because the console is
   built out of them and a console built out of near misses is not the same console. */

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* A row of console actions, and the label that stands in for a file input. A file input cannot
   be styled and cannot be made to look like the buttons beside it, so the input is taken off
   the screen and its label wears the button's clothes: the label is still the control, so the
   keyboard and a screen reader get the real thing. */
.admin-acts{display:flex;gap:var(--sp-2);flex-wrap:wrap;align-items:center;margin:var(--sp-3) 0 0}
.ghost-file{cursor:pointer}
#lic-file:focus-visible + .ghost-file,
.ghost-file:focus-visible{outline:2px solid var(--act);outline-offset:2px}
#lic-restore{margin:var(--sp-3) 0 0;display:grid;gap:var(--sp-2);justify-items:start}
/* The two licence actions, side by side, because they look alike and are not alike: one is
   reversible and the other is not. The armed delete wears the delete plate and says what it
   does, so the second press is read rather than repeated. */
.lic-acts{display:flex;gap:var(--sp-2);flex-wrap:wrap;align-items:center;margin-top:var(--sp-2)}
/* The same size as a small ghost button, which it sits beside and turns into (History, Delete it). */
.btn-s{padding:5px var(--sp-3);font-size:var(--t-s);min-height:30px}
.lnk{color:var(--act);text-decoration:underline;text-underline-offset:2px}
.lnkbtn{background:none;border:none;color:var(--act);font:inherit;cursor:pointer;padding:2px 0;text-decoration:underline;text-underline-offset:2px;min-height:24px}
.lnkbtn:hover{color:var(--act-h)}
.notice-ok{background:var(--grn-t);color:var(--grn)}
.mono.big{font-size:var(--t-m);word-break:break-all}

.scrim{position:fixed;inset:0;background:rgba(var(--shade-rgb), .55);display:grid;place-items:center;padding:var(--sp-4);z-index:50;animation:fade var(--m-panel) both}
@keyframes fade{from{opacity:0}to{opacity:1}}
.modal{
  background:var(--surf);border-radius:var(--r-l);width:min(620px,100%);max-height:88vh;overflow:auto;
  box-shadow:-20px 20px 60px rgba(var(--shade-rgb), .3);animation:pop var(--m-panel) var(--ease-panel) both
}
@keyframes pop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);padding:var(--sp-4) var(--sp-5);border-bottom:1px solid var(--line)}
.modal-head h2{font-size:var(--t-m)}
.modal-body{padding:var(--sp-5)}
.modal-body .hint{margin-bottom:var(--sp-3)}
.modal-actions{display:flex;justify-content:space-between;gap:var(--sp-3);margin-top:var(--sp-5);flex-wrap:wrap}
.modal-body textarea{width:100%;min-height:110px;resize:vertical}
.modal-body textarea:focus{outline:2px solid var(--act);outline-offset:-1px}
/* Why a rule said what it said, in full.
   Wider than the rest of the overlays, because this one is a document rather than a question:
   it is what somebody forwards to whoever has to decide whether the finding is right, and a
   citation wrapped over four lines is harder to read than the law it names. */
.modal-wide{width:min(820px,100%)}
.why{display:grid;gap:var(--sp-4);margin-top:var(--sp-3)}
.why-sec h3{font-size:var(--t-s);text-transform:uppercase;letter-spacing:.06em;color:var(--mid);
  margin:0 0 var(--sp-2);font-weight:600}
/* Label and value, side by side where there is room and stacked where there is not. The label
   column is fixed so the values line up: a reader scanning for one of them is scanning a
   column, not a paragraph. */
.why-dl{display:grid;grid-template-columns:15em 1fr;gap:var(--sp-1) var(--sp-3);margin:0;
  font-size:var(--t-s)}
.why-dl dt{color:var(--mid);font-weight:600}
.why-dl dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
/* The pack's own extraction lines, which are whole statements rather than labelled values, so
   they take both columns and keep the monospace they were written in. */
.why-raw{grid-column:1 / -1;font-size:var(--t-xs);color:var(--mid);
  background:var(--rail);border-radius:var(--r-s);padding:3px var(--sp-2)}
.why-acts{display:flex;gap:var(--sp-2);justify-content:space-between;flex-wrap:wrap;
  margin-top:var(--sp-5)}
.why-acts-l{display:flex;gap:var(--sp-2);flex-wrap:wrap}

/* How to reach 100.
   Named toh- rather than plan-, because plan- is already the pricing card and two treatments
   sharing one name is how they end up sharing one stylesheet rule. The first draft of this drew
   a blue bar down the side of the panel, inherited from a price.
   The one screen somebody arrives at wanting to win something, so what it has to do is give
   them the arithmetic and then the caveat, in that order, and neither quietly. */
.toh{display:grid;gap:var(--sp-4);margin-top:var(--sp-3)}
.toh-lead{font-size:var(--t-m);font-weight:600}
.toh-sec h3{font-size:var(--t-s);text-transform:uppercase;letter-spacing:.06em;color:var(--mid);
  margin:0 0 var(--sp-1);font-weight:600}
.toh-sec .hint{margin-bottom:var(--sp-3)}
.toh-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-2)}
.toh-row{
  display:flex;gap:var(--sp-3);align-items:flex-start;
  padding:var(--sp-3);border-radius:var(--r-s);background:var(--rail);
  border-left:3px solid var(--line)
}
/* What it is worth, as a figure, because that is what somebody chasing a number is scanning
   for. It is a gain rather than a loss on purpose: "+18" is the thing they would get, and
   "-18" would be a punishment for an advert they have not published yet. */
.toh-cost{
  flex:none;min-width:2.8em;text-align:center;font:700 var(--t-m) var(--ui);
  color:var(--prod-d);background:var(--prod-t);border-radius:var(--r-s);padding:2px var(--sp-2)
}
.toh-cost-none{color:var(--mid);background:var(--gry-t);font-weight:600}
.toh-t{display:grid;gap:2px;flex:1 1 auto;min-width:0}
/* Kept on one line. It is the quietest thing on the row and wrapping it over two made it the
   tallest. */
.toh-row .why-link{flex:none;white-space:nowrap;align-self:flex-start}
.toh-how{font-size:var(--t-s);color:var(--mid)}
/* What kind of press it takes, said in three words. A person deciding whether two minutes is
   worth it is really asking how many of these are typing and how many are thinking. */
.toh-route{font:600 var(--t-xs) var(--ui);text-transform:uppercase;letter-spacing:.05em;color:var(--mid)}
.toh-reach{
  display:flex;gap:var(--sp-2);align-items:flex-start;
  background:var(--prod-t);border-left:3px solid var(--prod);border-radius:0 var(--r-s) var(--r-s) 0;
  padding:var(--sp-3);color:var(--prod-d);font-weight:600
}
.toh-reach .i{flex:none;margin-top:2px}
/* The caveat, and it is not a footnote. This is the one panel somebody reaches feeling they
   have won something, which is exactly where a number has to say what it is not. */
.toh-caveat{
  display:flex;gap:var(--sp-2);align-items:flex-start;font-size:var(--t-s);
  background:var(--gry-t);border-radius:var(--r-s);padding:var(--sp-3);color:var(--pl-back-t)
}
.toh-caveat .i{flex:none;margin-top:2px}

/* The way in, under the routes. One line, and it is an argument for pressing the button above
   it rather than a heading, so it sits with the routes and not with the findings. */
.route-advice{
  display:flex;gap:var(--sp-2);align-items:flex-start;flex-wrap:wrap;
  font-size:var(--t-s);color:var(--mid);margin-top:var(--sp-3);max-width:72ch
}
.route-advice .i{flex:none;margin-top:2px;color:var(--act)}

/* The same panel in a window of its own, which is where somebody reads it beside the advert it
   is about. It borrows this stylesheet, so all it needs is a page to sit on. */
.why-window{max-width:820px;margin:0 auto;padding:var(--sp-5) var(--sp-4) var(--sp-6)}
.why-window h1{font-size:var(--t-l);margin:0 0 var(--sp-2)}
.why-fallback{width:100%;height:9em;font:11px/1.4 var(--mono);margin-bottom:var(--sp-3);font-variant-numeric:tabular-nums slashed-zero}
/* The way in. Quiet on purpose: it answers a question most people will never ask, so it is the
   size of that question and sits under the thing it explains rather than beside the buttons
   that act on it. */
/* Left where it sits under prose, which is everywhere but the row of buttons that act on a
   step: there it goes to the far end, so it is clear it is not one of them. */
.why-link{font-size:var(--t-s);justify-self:start;text-align:left}
.walk-do .why-link{margin-left:auto;text-align:right}
@media (max-width:560px){
  .why-dl{grid-template-columns:1fr;gap:0 0}
  .why-dl dt{margin-top:var(--sp-2)}
  .walk-do .why-link{margin-left:0;text-align:left}
  .walk-do .ghost-warn{margin-left:0}
}

.modal-alert{border-top:4px solid var(--red)}
.modal-alert .modal-head{background:var(--red-t)}
.modal-alert .modal-head h2{color:var(--red)}

/* Wraps. It scrolled sideways instead, and a scrolling strip inside a grid whose columns are
   sized by their content does not scroll: it sets the width of everything above it. On a phone
   the three answers to the agency question came to 616px and dragged the whole result page
   with them, so the walk, the score card and the headline all sat off the right edge of the
   screen. Three pills on two lines is what a phone should get. */
.seg{display:inline-flex;flex-wrap:wrap;background:var(--gry-t);border-radius:var(--r-s);padding:3px;gap:2px;max-width:100%}
/* A pill may wrap its own label. "Work inside the applicant tracking system we already use" is
   wider than a phone on its own, and a pill that cannot wrap sets the width of the strip, the
   grid and the page above it. Short labels stay on one line because nothing makes them wrap. */
.seg button{
  background:var(--surf);border:1px solid var(--pl-back-e);padding:6px 14px;border-radius:var(--r-s);
  font:600 13px var(--ui);color:var(--pl-back-t);cursor:pointer;max-width:100%;min-height:30px;
  text-align:center;
  box-shadow:none;
  transition:background var(--m-state),color var(--m-state),border-color var(--m-state)
}
.seg button:hover{background:var(--pl-go);color:var(--pl-go-t);border-color:var(--pl-go-e)}
/* Chosen is the shared rule near the top of this file, "a control somebody chose". A white pill
   against the grey track was too close to the pills either side of it to be seen at a glance,
   and the pale tint that replaced it was the same colour as an unchosen pill's hover. */
.seg-s button{padding:4px 10px;font-size:var(--t-s);min-height:26px}

/* Every type a person types into, named in one list. Any new field type goes in it or it
   will look like a different product. */
.f select,.f input[type=text],.f input[type=email],.f input[type=password],.f input[type=number],.f input[type=file],.f input[type=search],.f input[type=tel],.f input[type=url],.f textarea{
  width:100%;border:1px solid var(--line);border-radius:var(--r-s);
  padding:var(--io-pad);font-size:var(--io-type);background:var(--io-bg);color:var(--ink)
}
.f select:focus,.f input:focus,.f textarea:focus{outline:2px solid var(--act);outline-offset:-1px;border-color:var(--act)}

/* The details somebody types off a record to check it by hand.
   Grouped in a fieldset rather than left loose, because eight inputs with no boundary read as
   eight unrelated questions, and these are one question asked eight ways: they all go into the
   same code and a blank in any of them is the same as a wrong answer.
   The two long codes sit full width below the grid on purpose. A sixty-four character code in a
   half-width box wraps mid-run, and the whole job here is spotting one wrong character. */
.detailset{border:1px solid var(--line);border-radius:var(--r-s);padding:var(--sp-3);margin:0 0 var(--sp-4)}
.detailset legend{padding:0 var(--sp-2)}
.detailgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:0 var(--sp-3)}
.f label.lbl{display:block;font:700 11px var(--ui);letter-spacing:.05em;color:var(--mid);
  text-transform:uppercase;margin-bottom:5px}
.f textarea{min-height:120px;resize:vertical}

/* The console: what a check runs against. */
.runsagainst{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px var(--sp-4);margin:var(--sp-3) 0}
.runsagainst dt{font-size:var(--t-s);color:var(--mid)}
.runsagainst dd{font-size:var(--t-s);color:var(--ink);font-family:var(--ui);font-variant-numeric:tabular-nums}
.runsources{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.runsource{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.runsource-t{font-weight:600;font-size:var(--t-s)}
.runsource-s{font-size:var(--t-xs);color:var(--mid)}

/* The house checks list in the console. Each row is something the application holds
   and the operator reads, with the one press that takes it out beside it. */
.houselist{list-style:none;margin:0 0 var(--sp-3);padding:0;display:grid;gap:var(--sp-2)}
.house-row{display:flex;gap:var(--sp-3);align-items:flex-start;justify-content:space-between;
  background:var(--rail);border-left:3px solid var(--gry);border-radius:var(--r-s);padding:var(--sp-2) var(--sp-3)}
.house-label{font:600 var(--t-m) var(--ui);color:var(--ink);margin:0}
.house-text{font-size:var(--t-s);color:var(--mid);margin:2px 0 0}

/* What I flagged for attention. A list written to be selected and pasted, so every block
   is in the machine face and read only, and the row above it says the day and the build. */
.fault-days{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-bottom:var(--sp-4)}
.faults{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-4)}
.fault{
  background:var(--surf);border:1px solid var(--line);border-left:3px solid var(--gry);
  border-radius:0 var(--r-s) var(--r-s) 0;padding:var(--sp-4);
  display:flex;flex-direction:column;gap:var(--sp-3)
}
.fault-major{border-left-color:var(--red)}
.fault-incorrect{border-left-color:var(--amb)}
.fault-minor{border-left-color:var(--act)}
.fault-head{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-3);align-items:center}
.fault-where{font:600 var(--t-b) var(--ui);color:var(--ink);min-width:0;overflow-wrap:anywhere}
.fault-at{font-size:var(--t-s);color:var(--mid)}
.fault-ver{font-size:var(--t-xs);color:var(--mid)}
.fault-head .ghost{margin-left:auto}
.fault-text{min-height:160px}

/* A small status label. The word carries the meaning and the colour repeats it. */
.tag{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:var(--r-s);white-space:nowrap;max-width:100%}
@media (max-width:400px){ .tag{white-space:normal;text-align:left} }
.tag svg{width:11px;height:11px}
.tag-red{background:var(--red-t);color:var(--red)}
.tag-amb{background:var(--amb-t);color:var(--amb-on-tint)}
.tag-grn{background:var(--grn-t);color:var(--grn)}
.tag-gry{background:var(--gry-t);color:var(--mid)}
.tag-act{background:var(--act-t);color:var(--act)}

/* A round button holding one icon: the cross that closes a box (#modal-x), and the (i) explanation
   button below. A real button, because a tooltip needs a mouse. */
.info{
  display:inline-grid;place-items:center;width:26px;height:26px;flex:none;padding:0;
  border:none;background:none;color:var(--mid);cursor:pointer;border-radius:var(--r-full);
  transition:background var(--m-state),color var(--m-state)
}
.info svg{width:15px;height:15px}
.info:hover{background:var(--gry-t);color:var(--ink)}
.info:focus-visible{outline:2px solid var(--act);outline-offset:1px}

/* The (i) explanation button and the panel it opens (public/js/explain.mjs) are help, so they are the
   Help end's teal from the kit's one value (PST-62, PST-138), never typed here: a teal disc with the
   white (i), as help mode's numbers are, and the panel edged and headed in teal with white words, as
   the kit's explanation beside the page is. White on the teal reads at 5.4:1 in the light and the
   dark alike, because the kit's teal does not change in the dark; teal words on the dark surface
   would not (2.9:1). Until 18 November 2026 the button was grey and the panel grey and blue. The disc
   is drawn in the content box, so on a touch screen the button grows to 44 by 44 round a disc that
   stays the same size (the end of this sheet). Teal is for nothing else: the cross that closes any
   other box stays grey. */
.info-help,.info-help:hover{background:var(--slk-teal);background-clip:content-box;color:var(--on-nav)}
.info-help:hover{box-shadow:inset 0 0 0 2px var(--slk-teal-t)}
.modal-help{border:2px solid var(--slk-teal)}
.modal-help .modal-head{background:var(--slk-teal);border-bottom-color:var(--slk-teal)}
.modal-help .modal-head h2{color:var(--on-nav)}
.modal-help #modal-x{color:var(--on-nav)}
.modal-help #modal-x:hover{background:none;box-shadow:inset 0 0 0 2px var(--on-nav)}
.modal-help #modal-x:focus-visible{outline-color:var(--on-nav)}
.modal-help .modal-actions .btn{background:var(--slk-teal);border-color:var(--slk-teal);color:var(--on-nav)}
.modal-help .modal-actions .btn:hover{background:var(--slk-teal);box-shadow:0 0 0 3px var(--slk-teal-t)}

.explain-p{margin-bottom:var(--sp-3);max-width:64ch}
.explain-p:last-of-type{margin-bottom:var(--sp-4)}

/* A heading with its explanation beside it. */
.h-info{display:flex;align-items:center;gap:4px;flex-wrap:wrap}

/* ------------------------------------------------------- depth 2 and depth 3

   Two more views of the same result, so nothing below introduces a treatment of its own.
   Everything the application produced for you to read is flat on the rail with a rule down
   its left edge; everything you press is raised and already dressed by the button rules
   above. The only new shapes are the diff row, which is a before and an after, and the
   question block, which is a segmented control with its answer said underneath. */

/* The score, before and after, as two rings.
   Everything about the ring's geometry is an attribute rather than a style, because the policy
   is style-src 'self' and a geometry set inline is refused: the ring would silently not draw.
   This file carries only what it is allowed to carry, which is colour and size.

   The three greens were validated, not chosen. --prod against --prod-d measured 9.5 delta E
   apart for normal colour vision against a floor of 15, which means most people cannot tell
   those two arcs apart; --prod against --nav-grn measures 24.3 normal and 24.2 under
   deuteranopia. The track is a lighter step of the same green, which is what a meter's unfilled
   track is supposed to be. Nothing here is a traffic light: the ring does not go red at a low
   score, because that turns the number into a verdict the caveat beneath it denies. */
.auto{margin:0 0 var(--sp-3)}
/* One dial and its legend, centred, because the three numbers under it are the reading and a
   left-aligned gauge puts them somewhere the eye has to go looking for. */
/* On a card, and that is a measurement rather than a decoration. The specification states its
   contrast ratios against the card the marks sit on: grey 3.95:1, blue 4.12:1, and stage three
   3.72:1 (purple since 19 November 2026; the green it was measured 3.22:1). On this product's page
   ground that green measured 2.93:1, under the 3:1 WCAG 1.4.11 asks of a
   graphic that carries meaning, so the dial sits on the white the ratios were taken against,
   exactly as the reference file puts it in a panel. */
/* The card while the wording is still being read. It holds the same ground as the finished
   one, so nothing under it moves when the number arrives, and it says what it is doing in the
   place the caption already occupies. */
/* Two lines' worth of room, always, whether the line it is holding needs them or not.
   The check says a different thing every few seconds, and those things are different
   lengths: on a phone "Working out which rules apply (round 2)" wraps and "Reading the
   wording" does not, so the card grew and shrank under the dial while the dial was trying
   to say the wait was one steady thing. The box is the size of the longest thing it can
   say, and the words change inside it. */
.meter-wait{color:var(--mid);font-size:var(--t-s);text-align:center;margin:0;
  display:flex;align-items:center;justify-content:center;min-height:2.9em}
.sd-unit-wait{fill:var(--mid);letter-spacing:.02em}
/* The unread gauge. Fainter than stage one's grey, because this is not a reading of anything:
   it is the shape the reading will take. */
.sd-w-wait{fill:var(--line)}
/* No comet (PST-52, audit of 19 November 2026). Until then a short arc of lit ticks turned round the unread ring while the
   wording was read, a second spinner of this product's own. The kit's one spinner, with its words, under the dial says the
   check is working, and the dial stays still. */
/* The one spinner (PST-52) is the product kit's slk-spin (kit 0.6.0), made by ui.mjs spinner() and loading(), and drawn
   by the kit alone, which already holds it still when the device asks for less motion. This product's own .spinner gave
   way to it on 18 November 2026. The one thing added here is this product's own Motion switch in the settings cog
   (motion.mjs): switched off, the kit's ring stands still too and the words carry it, as they do with reduced motion.
   Nothing about how it looks is changed. */
:root[data-motion="off"] .slk-spin{animation:none}
/* Tight, on purpose. The owner asked for the height of this card down to the minimum that
   still holds the dial and every control on it, so the padding is even and small, the gap
   between the dial, the chips and the caveat is one step rather than two, and the dial itself
   is 264 rather than 300: it is still far and away the largest thing on the card, and the
   forty pixels it gives back are forty the person does not scroll past. */
.board{display:flex;flex-direction:column;align-items:center;gap:var(--sp-3);margin:0 auto;
  max-width:34rem;background:var(--surf);border:1px solid var(--line);border-radius:var(--r-l);
  padding:var(--sp-3)}
/* ---------------------------------------------------------------------- the score dial
   Ported from the supplied reference implementation. Every number is that file's number.

   The two things that live here rather than in the markup are the two the reference sets
   through an inline style attribute: the shadow's flood colour and opacity, and the numeral's
   fill and weight. The reference says why it does not use presentation attributes for them, a
   presentation attribute cannot read a custom property, and this deployment serves
   style-src 'self', which refuses an inline style attribute outright. A stylesheet is CSS, so
   it reads the properties and keeps the reference's point. */
/* 300 is the contract's default rendered width. The reference page draws it at 380 because it
   is a demonstration with a whole page to itself; this sits above a result. */
.dial{display:block;width:100%;max-width:264px;height:auto}
.dial-small{width:150px;max-width:150px}

/* The marks. Thickness is the non-colour encoding and it lives in the geometry, so all this
   carries is the colour. */
.sd-w-1{fill:var(--stage-one)}
.sd-w-2{fill:var(--stage-two)}
.sd-w-3{fill:var(--stage-three)}
/* Ground still on offer: the lighter step of stage three, because taking it is stage three. */
.sd-w-could{fill:var(--stage-could)}

/* The shadow. Four stacked layers with rising blur and opacity give a graduated falloff
   instead of a hard halo. */
.sd-sh{flood-color:rgb(var(--shadow-rgb))}
.sd-sh-1{flood-opacity:var(--shadow-o1)}
.sd-sh-2{flood-opacity:var(--shadow-o2)}
.sd-sh-3{flood-opacity:var(--shadow-o3)}
.sd-sh-4{flood-opacity:var(--shadow-o4)}

/* The numeral. Neutral, never a stage colour: all the colour belongs in the ring, where it
   carries data. Coloured, it reads as a logo rather than as a result. */
.sd-num{fill:var(--ink);font-family:var(--ui);font-weight:800;letter-spacing:-.05em;
  font-variant-numeric:tabular-nums}
/* --mid rather than --soft. The caption under the number was the lightest grey in the set and
   at 15px it was barely there: a scale nobody can read is not a scale. */
.sd-unit{fill:var(--mid);font-family:var(--ui);font-weight:700}

/* The numeral and its caption scale as one group out of the centre of the circle rather than
   out of their own bounding box, so the caption travels outward as the numeral swells. Once,
   on arrival: looping motion on a results screen is a cost with no payoff. */
.sd-pulse{transform-box:view-box;transform-origin:150px 150px}
.sd-pulse.sd-arrive{animation:sd-arrive .8s cubic-bezier(.2,.9,.25,1) 1 both}
@keyframes sd-arrive{
  0%{transform:scale(.88)}
  55%{transform:scale(1.05)}
  100%{transform:scale(1)}
}
@media (prefers-reduced-motion: reduce){ .sd-pulse.sd-arrive{animation:none} }

/* The legend. The padding grows with the stage, repeating the dial's thickness story, so it
   teaches the rule without help text. Each chip carries its own text colour: chip text needs
   4.5:1 against its own background, which is stricter than the 3:1 the marks need, and white
   does not clear that on all three.

   Not called .chip, because this page already has one: the chip is the control that asks whose
   jobs these are. */
/* A stage nobody is looking at, on a dial that is one number split three ways. Dimmed rather
   than hidden or recoloured: the guidance is explicit that a filter must not repaint what it
   leaves, and hiding the top of a cumulative ring would leave a gauge reading two out of a
   hundred. Opacity only, so the colour a chip promises is the colour the wedge keeps. */
.sd-w-past{opacity:.28}
.stages>li{display:flex}
/* Pressed, and unmistakably so: a ring in the chip's own colour, held off the chip by the card
   behind it so it reads on all three. A control that looks the same pressed as unpressed is a
   control somebody presses twice. */
.sch-on{box-shadow:0 0 0 2px var(--surf),0 0 0 4px currentColor}
.sch:hover{background:var(--pl-back)}
.stages{list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap;
  justify-content:center}
/* The chip is a button now. It keeps every pixel it had and gains a pressed state and a focus
   ring, because a control that looks like a label is a control nobody presses. */
.sch{display:inline-flex;align-items:center;gap:7px;border-radius:var(--r-s);font:inherit;
  cursor:pointer;border:1px solid var(--pl-back-e);background:var(--surf);color:var(--ink);
  font-family:var(--ui);font-weight:800;font-size:.86rem;letter-spacing:-.01em;
  white-space:nowrap;box-shadow:none}
/* The stage's own colour as a mark before its words: the button itself is the shared outline (PST-42),
   edged in the stage's darker step, so no control is filled in a stage colour (PST-41). */
.sch::before{content:"";flex:none;width:10px;height:10px;border-radius:var(--r-full)}
.sch-one::before{background:var(--stage-one)}
.sch-two::before{background:var(--stage-two)}
.sch-three::before{background:var(--stage-three)}
/* No opacity. The quiet half of a chip is carried by size and weight, which cost nothing
   in contrast; .88 took the number on the automatic chip to 4.31:1 against its own
   ground, under the 4.5:1 its size asks for. Opacity on text is a colour nobody measures. */
.sch small{font-weight:600;font-size:.92em}
.sch-one{border-color:var(--stage-one-e);padding:6px 15px}
.sch-two{border-color:var(--stage-two-e);padding:9px 16px}
.sch-three{border-color:var(--stage-three-e);padding:12px 18px}

.meter-what{margin:var(--sp-2) 0 0}
/* 24px tall at least. It is a small line of grey text, and it is also the one control on the
   card, and a 19px control is under the size a finger can be expected to hit. */
.meter-what>summary{color:var(--mid);font-size:var(--t-s);cursor:pointer;min-height:24px;display:flex;align-items:center}
.meter-what>summary::-webkit-details-marker{display:none}
.meter-what .hint{margin:var(--sp-1) 0 0}

/* What has changed since the advert was pasted, before anything asks for a decision.
   Stage two's own ground where everything in it was written with nobody being asked anything.
   It was the product green, which is stage three's colour, so the one part of the journey that
   costs the person nothing was painted in the colour of the part they do themselves.

   Neutral where the list is a mix, which it usually is by the time somebody has answered
   anything. A blue panel behind a stage three row says that row was automatic, and this panel cannot
   claim one stage while it holds two. The rows carry the stage instead. */
/* No top margin of its own any more: it is a grid item of the result now rather than the last
   thing inside the score block, and the grid's gap is the space above it. */
.auto-did{margin:0;padding:var(--sp-3);border:1px solid var(--line);
  border-radius:var(--r-m);background:var(--stage-two-t)}
.auto-did-mix{background:var(--gry-t)}
.auto-did>h3{margin:0 0 var(--sp-2);font-size:var(--t-m)}
.auto-did>.hint{margin:0}
.dids{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-2)}
.did{background:var(--surf);border:1px solid var(--line);border-radius:var(--r-s);
  padding:var(--sp-2)}
/* The stage down the edge of the card, so which lines were free and which were bought is a
   thing somebody sees running an eye down the list rather than a thing they read off six
   badges one at a time. */
.did-s2{border-left:3px solid var(--stage-two)}
.did-s3{border-left:3px solid var(--stage-three)}
/* The rule's name and the way to say it is wrong, on one line, with the name taking the room
   and the button holding the right edge. The name was a block of its own, so putting the button
   after it dropped it onto a line by itself on every row of the list. */
.did-top{display:flex;gap:var(--sp-3);align-items:baseline;justify-content:space-between}
.did-top .report-wrap{flex:none}
.did-rule{display:block;font-size:var(--t-b);min-width:0}
.did-add{margin:4px 0 0;font-size:var(--t-b)}
.did-line{margin:0;display:flex;gap:var(--sp-2);align-items:flex-start}
/* The sentence on its own ground, because it is about to go into somebody's advert and the
   screen should say so by shape as well as by the word "Added".

   In the colour of the stage that produced it, which is the whole point of having three
   colours: blue where the engine wrote it with nobody being asked anything, purple where it
   exists because the person answered. A row of each, side by side in one list, is the clearest
   statement of the difference this product makes for free. */
.did-text{flex:1;min-width:0;background:var(--surf);border-left:3px solid var(--gry);
  border-radius:0 var(--r-s) var(--r-s) 0;padding:var(--sp-2) var(--sp-3)}
.stage-2 > .did-text{background:var(--stage-two-t);border-left-color:var(--stage-two)}
.stage-3 > .did-text{background:var(--stage-three-t);border-left-color:var(--stage-three)}
/* And the badge beside it. These are the chip colours from the dial's legend, so the mark on a
   row and the wedge it moved are the same colour. */
.mark-stage-2{background:var(--stage-two);color:var(--stage-two-on)}
.mark-stage-3{background:var(--stage-three);color:var(--stage-three-on)}
/* The part of it that is theirs rather than ours: remembered on this device, going into a
   published advert exactly as typed, and the part most likely to be wrong.
   In the Edit button's own colours rather than a yellow of its own, which is what makes the
   mark mean something: the highlighted words are exactly what that button changes. The two
   were a near-miss of each other before, close enough to look like a coincidence and not close
   enough to read as one thing. */
.did-yours,.did-yours-2{background:var(--pl-yours-h);color:var(--pl-yours-t);border-radius:3px;padding:0 3px;
  box-shadow:inset 0 -2px 0 var(--pl-yours-e);font-weight:600}
.did-yours.did-yours-3{background:var(--pl-yours3-h);color:var(--pl-yours3-t);box-shadow:inset 0 -2px 0 var(--pl-yours3-e)}
/* The key, on the one screen that asks somebody to keep the sentence. A colour with no key is
   a decoration. */
.did-key{margin:var(--sp-2) 0 0;font-size:var(--t-s);color:var(--mid)}
.did-key-swatch{margin-right:var(--sp-1)}
.did-off{background:var(--red-t);color:var(--red-h);box-shadow:inset 0 -2px 0 var(--red)}
.did-off-say{margin:var(--sp-2) 0 0;display:flex;gap:var(--sp-2);align-items:flex-start;
  color:var(--red-h);font-size:var(--t-s)}
.did-off-say .i{flex:none;margin-top:1px}
/* And the fold that button opens, in the same colour as the button and the marks, so the three
   read as one thread: these words, that button, this form. */
.did-fold{margin:var(--sp-2) 0 0;background:var(--surf);border-color:var(--pl-yours-e)}
/* The title strip carries the stage's light tint, as the button that opens the fold does, so the
   fold reads as that button's form whether it is open or shut. The inside stays white, where
   the boxes are. */
.did-fold > summary{color:var(--pl-yours-t);background:var(--pl-yours)}
.did-fold > summary:hover{background:var(--pl-yours-h)}
.did-fold[open] > summary{border-bottom-color:var(--pl-yours-e)}
.did-fold.did-fold-3{border-color:var(--pl-yours3-e)}
.did-fold.did-fold-3 > summary{color:var(--pl-yours3-t);background:var(--pl-yours3)}
.did-fold.did-fold-3 > summary:hover{background:var(--pl-yours3-h)}
.did-fold.did-fold-3[open] > summary{border-bottom-color:var(--pl-yours3-e)}
/* Every box that changes a detail, under the list rather than inside the row that used it.
   A control in the middle of a list of finished changes breaks the reading of it in half. */
.did-amends{margin:var(--sp-3) 0 0;padding:var(--sp-3) 0 0;border-top:1px solid var(--line)}
.did-amends>.hint{margin:0 0 var(--sp-2)}
.did-amends>.did-fold{margin:0 0 var(--sp-2)}
.did-amends>.did-fold:last-child{margin-bottom:0}
.did-swap{margin:4px 0 0}
.did-swap>.mark{margin:0 0 var(--sp-2)}
/* The new wording in the colour of the stage that wrote it. It was the product green in both
   cases, which is stage three's colour, so a rewording nobody was asked about read as one the
   person had paid for. */
.did-swap.stage-2 .diff-new{background:var(--stage-two-t)}
.did-swap.stage-3 .diff-new{background:var(--stage-three-t)}
.walk-open{margin:var(--sp-3) 0 0}

/* The guided pass, which is stage three: the person going through it themselves.

   It was the action blue, which is stage two's colour, so the manual pass was painted as
   though the machine were doing it. Purple here is the same purple as the third wedge of the
   dial and the same purple as a change bought by an answer, because this panel is where those
   answers are given. */
/* Where you are working, said by the card itself.
 *
 * Asked for: make the green border thicker and make it glow, so it is obvious where somebody is
 * and what to do next. Three pixels and a halo, and the halo is a static ring rather than a
 * pulse that never stops, for reasons worth writing down because "make it glow" and "make it
 * blink" are one keystroke apart.
 *
 * What actually draws the eye, in order: motion, then enclosure and contrast, then colour.
 * Motion is the strongest of the three and is the one that cannot be left running. A thing that
 * moves forever is a thing the eye keeps returning to while somebody is trying to read the
 * sentence inside it, it never habituates, and for a reader with a vestibular disorder it is
 * not a nuisance but a symptom. WCAG 2.2.2 says anything moving for more than five seconds
 * needs a way to stop it; this product has one, the Motion switch, and leaning on it to excuse
 * a permanent pulse would be using an accessibility control as permission.
 *
 * So motion is spent where it is worth most: once, on arrival, when the step changes. That is
 * the moment the answer to "where am I now" changed, which is the only moment the question is
 * being asked. After it the card holds still and the halo, the thicker edge and the tinted bar
 * carry "this is the live one" without asking for anything.
 *
 * And the non-visual half, which is the part a glow cannot do: the step and its heading are
 * announced in the live region, so somebody who cannot see the card is told the same thing at
 * the same moment. See announceResult in check.mjs. */
/* ------------------------------------------------------------- the floating window

   The guided pass is a window over the page rather than a card in the middle of it. Asked for
   in those words: this screen should be above the flat one, it should take the focus, and what
   is behind it should be out of focus.

   The veil is at z-index 49. One step under .scrim, which is the modal behind "Why is this
   needed?", because a control in this window opens that modal and a window that painted above
   it would send somebody to a panel they could neither read nor close. Above the sticky bar at
   48, because a page still offering its own navigation is not behind anything. Toasts stay
   above both at 55, since the pass speaks through them. */
.winveil{position:fixed;inset:0;z-index:49;display:grid;place-items:center;
  padding:var(--sp-4);overflow:auto;
  background:rgba(var(--shade-rgb), .34);animation:fade var(--m-panel) both}
.winveil[hidden]{display:none}
/* And the page itself out of focus, which is the word that was used and is the literal one.
   Dim alone reads as a page that is loading; blurred, it reads as a page that is behind
   something. It is also inert while this class is on, so nothing here is only visual.
   Not on .winveil's own ancestors: a filter makes a containing block for fixed children, and
   the veil is a child of body rather than of main for exactly that reason. */
body.win-on > main, body.win-on > header.bar, body.win-on > footer.foot{
  filter:blur(3px) saturate(.7);pointer-events:none}
/* And the page behind does not scroll under the window. Without this a wheel over the edge of
   the veil moved the blurred page, which reads as the window drifting. */
body.win-on{overflow:hidden}
/* The window. A column that grows with what is in it, up to the height of the screen, and
   scrolls inside itself after that: a decision with three boxes on it is taller than a phone,
   and a window that grew past the screen would put its own way out off the bottom. */
.win{width:min(100%, 62rem);max-height:calc(100dvh - var(--sp-6));overflow:auto;
  border-radius:var(--r-m);background:var(--surf);
  box-shadow:0 0 0 4px var(--stage-three-halo), -24px 24px 60px rgba(var(--shade-rgb), .34), var(--sh)}
.win:focus{outline:none}
.win:focus-visible{outline:2px solid var(--act);outline-offset:3px}
/* The decision and the dial, side by side, with the dial holding a column of its own so it
   does not move when the decision under it changes height. Under 760px the dial goes above the
   decision rather than beside it, because 9rem out of a phone's width is most of the sentence.
   Asked for: the dial is on the window whenever the window is up. */
/* The bar stays at the top of the window while the decision under it scrolls. That is the
   whole reason it was moved above the decision in the first place: on a step taller than the
   screen the way out was below the form somebody had just decided not to fill in. A window
   that scrolls inside itself puts it back there unless it is pinned. */
.win .walk-nav{position:sticky;top:0;z-index:2}
.win-grid{display:grid;grid-template-columns:minmax(0,1fr) 11rem;align-items:start}
.win-dial{padding:var(--sp-3) var(--sp-3) var(--sp-3) 0;display:grid;justify-items:center;
  gap:2px;position:sticky;top:0}
.win-dial .dial{width:150px;max-width:150px}
.win-dial-c{margin:0;text-align:center;font-size:var(--t-xs);font-weight:600;color:var(--prod-d)}
.win-dial-w{margin:0;text-align:center;font-size:var(--t-xs);color:var(--mid)}
@media (max-width:760px){
  .win-grid{grid-template-columns:minmax(0,1fr)}
  .win-dial{grid-row:1;padding:var(--sp-3) var(--sp-3) 0;position:static}
  .win-dial .dial{width:110px;max-width:110px}
}
/* The summary, which is a second window and not a panel on the first one. What tells them
   apart on sight is that this one has no step bar: there is nowhere left to step. */
.recap-h{margin:0;font-size:var(--t-m)}
.recap{list-style:none;margin:var(--sp-3) 0 0;padding:0;display:grid;gap:var(--sp-2)}
.recap-row{display:grid;grid-template-columns:9.5rem minmax(0,1fr);gap:var(--sp-3);
  align-items:baseline;padding:var(--sp-2) 0;border-top:1px solid var(--line)}
.recap-row .mark{justify-self:start}
.recap-q{min-width:0}
.recap-do{display:flex;gap:var(--sp-3);flex-wrap:wrap;align-items:center;
  margin-top:var(--sp-4)}
@media (max-width:560px){
  .recap-row{grid-template-columns:minmax(0,1fr);gap:2px}
}

.walk{margin:0;border:3px solid var(--stage-three);
  border-radius:var(--r-m);background:var(--surf);
  box-shadow:none}
/* The summary window wears the same edge as the pass, because it is the same journey one step
   further on, and it is a separate selector because it is a separate window: everything that
   asks whether the pass is on the screen asks for `.walk`, and a summary answering yes to that
   is a summary pretending to be the thing it replaced. */
.win-recap{margin:0;border:3px solid var(--stage-three);
  border-radius:var(--r-m);background:var(--surf)}
/* Once, on the step that has just arrived, and never again until the next one. The card is
   rebuilt on every draw, so this class is put on it only when the step index changed: without
   that it would fire on every keystroke in a box inside the card. */
@keyframes walk-arrive{
  0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--stage-three) 45%, transparent), var(--sh)}
  55%{box-shadow:0 0 0 14px color-mix(in srgb, var(--stage-three) 0%, transparent), var(--sh)}
  100%{box-shadow:0 0 0 4px var(--stage-three-halo), var(--sh)}
}
/* Inside a window the pulse is drawn on the window's own edge rather than on the card's, so
   the ring of light is round the thing somebody is looking at. */
:root[data-motion="on"] .win:has(.walk-arrived){animation:walk-arrive 900ms var(--ease-panel) 1}
.walk-body{padding:var(--sp-3)}
/* Every control that moves or undoes, across the top and on the left, on every step.

   Across the top because they were under the decision, which on a panel that ran past the
   bottom of the screen put the way out below the form somebody had just decided not to fill
   in. On the left, and in one order, because the way somebody works through seven of these is
   to put the pointer where the button was last time and press without looking. */
.walk-nav{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;
  padding:var(--sp-2) var(--sp-3);background:var(--stage-three-t);
  border-bottom:1px solid var(--stage-three);border-radius:calc(var(--r-m) - 2px) calc(var(--r-m) - 2px) 0 0}
/* Where you are, pushed to the end. It is the one thing in this bar that changes every step,
   so it is the one thing that must not sit in front of the controls and move them. */
.walk-where{margin:0 0 0 auto;color:var(--prod-d);font-weight:600;font-size:var(--t-s);
  font-variant-numeric:tabular-nums;flex:none}
/* One pip per decision, which is the count again as a shape. Aria-hidden: the words beside it
   say the same thing and a row of identical dots read out one at a time is noise. */
.walk-bar{flex:0 1 8rem;min-width:2.5rem;display:flex;gap:3px;align-items:center}
.walk-pip{flex:1 1 0;height:6px;border-radius:var(--r-full);background:var(--surf);
  border:1px solid var(--stage-three);opacity:.4}
.walk-pip-done{background:var(--stage-three);opacity:.7}
.walk-pip-here{background:var(--stage-three);opacity:1}
.walk-acts{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap}
/* Fixed widths, so a label that changes does not drag the buttons after it along with it.
   "Finish" is shorter than "Next" and would move the other three on the last step; "Reset this
   one" is on every step whether or not there is anything to reset, and is disabled rather than
   absent for the same reason. A control that is somewhere else on step four than it was on
   step three is a control somebody has to look at, and looking at it is the thing this is
   trying to save them. */
.walk-move{min-width:6.5rem;justify-content:center}
/* 10.5rem rather than 9. Both resets carry an undo icon now, and "Reset everything" with an
   icon, its gap and the padding comes to about 153px: at 9rem (144px) the widest control in the
   bar sets its own width and the row stops being the fixed thing it is here to be. */
.walk-wide{min-width:10.5rem;justify-content:center}
/* Disabled by aria rather than by the attribute, so it keeps its place in the tab order and
   still says what it is. Nothing here is hidden; it simply does nothing on a step with nothing
   to undo. No opacity: it used to carry .45, which took the label on "Reset this one" to
   1.50:1 against its own plate, on a control a keyboard user can still land on. The shared
   aria-disabled treatment says unavailable four ways over; this only has to say which cursor. */
.walk-acts button[aria-disabled="true"]{cursor:not-allowed}
.walk-item>h3{margin:0 0 var(--sp-1);font-size:var(--t-m)}
/* Asked for: condense the referral card as far as it will go, keeping every control. What came
   off it was the pair of boxed lines reading the answers back; what is left is the question,
   the buttons, and where the answer came from. The questions stand a step closer together,
   because three questions spaced for a card that also carried two confirmations under them
   leaves a gap where the confirmations used to be. */
.walk-ask .ask-qs{gap:var(--sp-3)}
.walk-ask .ask-outs:not(:empty){margin-top:var(--sp-2)}
.walk-say{margin:var(--sp-1) 0}
.walk-do{margin:var(--sp-3) 0 0;display:flex;gap:var(--sp-2);flex-wrap:wrap;align-items:center}
/* The one that takes something out, held off the rest of the row.
   A fixed gap and never margin-left:auto: .why-link already claims an auto margin in this row
   and .report-wrap claims a second, and three autos share the free space between them, so the
   red button would sit in a place that moves when the why-link's label changes. That is the
   moving-control fault .walk-nav exists to prevent, imported into the row below it.
   On a phone the row wraps, and a stranded indent on a wrapped line reads as a bug. */
.walk-do .ghost-warn{margin-left:var(--sp-5)}
/* A finding the walk can only put in front of somebody: the wording it was read off, and the
   law behind it. The quote is marked as a quote rather than styled to look like one, so it
   reaches a screen reader as the advert's words and not as ours. */
.walk-quote{margin:var(--sp-2) 0;padding:var(--sp-2) var(--sp-3);background:var(--rail);
  border-left:3px solid var(--line);border-radius:0 var(--r-s) var(--r-s) 0}
.walk-quote q{display:block;margin-top:2px;font-style:italic}
.walk-cite{font-size:var(--t-xs)}


/* Why a rule is flagged and what to do about it, in the open under the flag it is about.
   Closed by default: somebody who already knows what a rule wants should not scroll past the
   explanation on every one of six steps. */
.brief-fold{margin:var(--sp-3) 0 0;border-color:var(--line)}
.brief-fold>summary{padding:var(--sp-2) var(--sp-3);min-height:36px;justify-content:flex-start;
  font:600 var(--t-s) var(--ui);color:var(--act)}
.brief-fold>summary:hover{background:var(--act-t);border-radius:var(--r-s)}
.brief-fold>summary::after{content:'';flex:none;width:8px;height:8px;margin-left:var(--sp-2);
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform var(--m-state)}
.brief-fold[open]>summary{border-bottom:1px solid var(--line);border-radius:var(--r-s) var(--r-s) 0 0}
.brief-fold[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.brief-fold>.brief{padding:var(--sp-3);display:grid;gap:var(--sp-3)}
.brief-b{display:grid;gap:var(--sp-1)}
.brief-b h4{margin:0;font:600 var(--t-xs) var(--disp);text-transform:uppercase;letter-spacing:.06em;
  color:var(--mid)}
.brief-b p{margin:0;max-width:72ch}
/* What to do, which is the part somebody came here for, on its own ground. */
.brief-do{background:var(--act-t);border-radius:var(--r-s);padding:var(--sp-3)}
.brief-law{border-top:1px solid var(--line2);padding-top:var(--sp-3)}
.brief-row{display:flex;gap:var(--sp-3);font-size:var(--t-s);margin:0}
.brief-k{flex:none;width:11rem;color:var(--mid)}
.brief-v{min-width:0}
.brief-more{margin:0;font-size:var(--t-s)}

/* On a phone the dial takes what it needs and the chips wrap under it. The gauge is the one
   thing on this screen that must not shrink below reading size: it is a hero figure, and a hero
   figure nobody can read from arm's length is a decoration. */
@media (max-width:480px){
  /* The dial is already width:100% with a cap, so it fits by itself. The chips close up, but
     the padding still steps from one stage to the next, because that step is the legend
     teaching the ring's thickness story. */
  .stages{gap:6px}
  .sch{font-size:var(--t-xs)}
  .sch-one{padding:4px 10px}
  .sch-two{padding:6px 11px}
  .sch-three{padding:8px 12px}
  .auto-did{padding:var(--sp-2)}
  .auto-did>h3{font-size:var(--t-b)}
  .walk-nav .ghost-warn{margin-left:0}
}


/* The two routes out of the first result.
   Purple carries on and raises the score, which is the same purple as the ring it moves (the
   control that writes into somebody's advert wore it too, until it became the one main button,
   PST-42, on 16 November 2026). Blue
   finishes, which is what app.css means at line 51 by "action, the only blue": it is for taking
   something away. Neither leans on the colour: each carries a word and an icon as well. */
/* Every result: the reading on the left, the two ways out beside it.

   This was the last screen's layout and the rest of the journey stacked instead, on the
   reasoning that until the decisions are done the page is about the work left to do. Two
   faults came out of that. The dial card is 34rem wide and centred, so on its own on a wide
   page it is an island with empty ground either side of it and a left edge that agrees with
   nothing else on the screen. And the control that takes the advert further ended up below a
   summary of work already finished, which on a result with six changes in it is below the
   fold. One arrangement everywhere is also one fewer state to keep in agreement: there is no
   moment where the page rearranges itself under somebody who has just answered something.

   Everything in here is aligned to the page rather than to itself. The dial card starts where
   the headline starts, because beside a column a centred card is two different left edges.
   Heights match rather than being left alone: two columns ending at different points read as
   unfinished, and the dial takes up the slack so it sits in the middle of its side.

   The ratio is the dial's. It is drawn at 300 and needs its legend beside it, and the two route
   cards are text and buttons that read better narrow than wide. One column below 52rem, which
   is where the right column stops fitting the two buttons in the finish card side by side and
   the dial stops being readable next to them. */
/* The advert on the left and the reading beside it.
   It was the dial on the left and the two ways out on the right, with the advert itself two
   presses inside a fold below. The thing somebody came to produce is now the larger half of
   the screen, and the score and the ways out stack in the column next to it. The ratio is the
   advert's: prose wants a wide measure, and three columns of it at this width would leave each
   one about forty-five characters a line. */
.result-lead{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  gap:var(--sp-4);align-items:stretch}
/* The score and the ways out, stacked, as one column. */
.lead-side{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}
.lead-side>.auto{flex:none}
.lead-side>.routes-wrap{flex:1}
/* Both columns the same height, and the dial centred in whatever height that is.
   They were left to their own heights on the reasoning that padding one with nothing reads as
   a mistake. On this screen it reads as a ragged edge instead: this is the last thing somebody
   sees and two columns ending at different points make it look unfinished. So they match, and
   the dial sits in the middle of its side rather than at the top of a tall box. */
.result-lead>.auto{display:flex;flex-direction:column}
.result-lead .board{flex:1}
/* The dial and its chips take the slack, so they sit in the middle of a tall card rather than
   at the top of one, and the caveat stays at the foot of it where it belongs. */
.result-lead .board>.dial{margin-top:auto}
.result-lead .board>.stages{margin-bottom:auto}
.board>.meter-what{align-self:stretch;margin-top:0}
.result-lead .routes-wrap{display:flex;flex-direction:column}
.result-lead .routes{flex:1;align-content:stretch}
.result-lead>.auto{margin:0}
.result-lead .board{max-width:none;margin:0}
.result-lead .routes-wrap{margin:0}
.result-lead .routes{grid-template-columns:minmax(0,1fr)}
/* The way back carries .walk-open, whose top margin is the space it needs when it follows the
   list of changes down the page. In this column that margin is the right edge of one card
   starting twelve pixels below the other, which is the whole of what "aligned" rules out. The
   space between the two cards is the grid's gap and is unaffected. */
.result-lead .walk-open{margin-top:0}
@media (max-width:52rem){
  .result-lead{grid-template-columns:minmax(0,1fr)}
  /* One column, so the two cards are a stack rather than two widths. Both are held to the same
     width and centred on the same axis. The width is stated on both rather than left to
     `margin:0 auto` on its own: an auto cross-axis margin on a flex item turns off the stretch
     that would have filled the column, so the card shrank to fit its contents and came out
     nineteen pixels narrower than the one under it, centred but not aligned. */
  .result-lead .board,
  .result-lead .routes-wrap{width:100%;max-width:34rem;margin:0 auto}
  .vacancy-live{max-width:34rem;margin:0 auto;width:100%}
  /* Its own height on one column, where the page scrolls past it rather than beside it. */
  .al-body{max-height:24rem}
  /* The reading and the two ways out first, the advert under them.
     On one column the advert is the tallest thing on the screen, so leaving it in document
     order put both of the controls that finish the journey more than a screen below the top of
     the result: the fault this screen was rebuilt to fix, reintroduced by the fix. The advert
     is still there, one scroll down, at the width of the page rather than half of it. */
  .result-lead{display:flex;flex-direction:column}
  .lead-side{order:1}
  .vacancy-live{order:2}
  /* And the column holding them is held to the same width as the advert under it, rather than
     each card inside it being held separately: a stack whose cards share a width but not an
     edge is the thing the width was stated for. */
  .lead-side{width:100%;max-width:34rem;margin:0 auto}
}

/* -------------------------------------------------------------- the advert, and its versions

   One panel, three versions, chosen by the tabs across its head. The alternative the owner was
   shown was two or three panels of near-identical text side by side, and the reason this won is
   that two walls of prose ask somebody to find the differences themselves when the product
   already knows exactly which sentences it wrote. It marks them instead.

   The panel carries a stage class, so the edge and the tab agree with the wedge on the dial
   that the same stage moved. */
/* A floor, so a short result does not leave the advert in a letterbox. */
/* One outline, in the colour of the version showing, all the way round: down the sides of the
   panel, along the bottom, up the strip and around the chosen tab, with no line across under
   that tab. Asked for in those words, with the gap marked on a screenshot.
   It was a 1px grey box with a 3px stage-coloured cap on top, which said which version was
   showing only at the very top of a panel that is two thirds of the screen. */
.vacancy-live{display:flex;flex-direction:column;min-width:0;min-height:26rem;background:var(--surf);
  border:2px solid var(--line);border-radius:var(--r-m);overflow:hidden;
  box-shadow:var(--lift-p)}
.vacancy-live.stage-1{border-color:var(--stage-one-e)}
.vacancy-live.stage-2{border-color:var(--stage-two-e)}
.vacancy-live.stage-3{border-color:var(--stage-three-e)}
/* The strip the tabs stand on, and its bottom edge is the same line as the panel's sides: the
   outline runs along here and the chosen tab breaks it. */
.al-head{flex:none;padding:var(--sp-3) var(--sp-4) 0;background:var(--surf);
  border-bottom:2px solid var(--line)}
.vacancy-live.stage-1 .al-head{border-bottom-color:var(--stage-one-e)}
.vacancy-live.stage-2 .al-head{border-bottom-color:var(--stage-two-e)}
.vacancy-live.stage-3 .al-head{border-bottom-color:var(--stage-three-e)}
.al-title{display:flex;align-items:baseline;gap:var(--sp-3);flex-wrap:wrap}
.al-title>h3{margin:0;font-size:var(--t-m)}
.al-sub{font-size:var(--t-s);color:var(--mid)}
.al-chars{margin-left:auto;font-size:var(--t-s);color:var(--mid);font-variant-numeric:tabular-nums}
/* The tabs sit on the edge of the body they change, which is the whole of how a tab says what
   it belongs to. */
.al-tabs{display:flex;gap:4px;margin-top:var(--sp-3)}
/* One line, the name and the number, because two lines put the number's descender on the
   border the tab sits against and it read as a control cut in half. */
.al-tab{flex:1 1 0;min-width:0;display:flex;align-items:baseline;gap:var(--sp-2);text-align:left;
  font:600 var(--t-b) var(--ui);cursor:pointer;padding:10px var(--sp-3);min-height:46px;
  background:var(--surf);color:var(--ink);border:1px solid var(--line);border-bottom:0;
  border-radius:var(--r-s) var(--r-s) 0 0}
.al-tab:hover{background:var(--pl-back)}
/* Every tab is its stage, and it is the same pairing as the stage buttons under the dial (`.sch-one`,
   `.sch-two`, `.sch-three`). Asked for in those words, the tab headings should be the same colour as the
   stages, which is the same as below the score. Since 16 November 2026 they say it as the shared outline
   (PST-42: one main style and one outline): a white face, the ink, an edge in the stage's darker step
   (5.92:1, 6.17:1 and 6.92:1 on white) and the stage's own colour as a dot before the name. They were
   filled in the stage colour, which was a third button style and, on stage two, a second blue (PST-41). */
.al-tab-1{background:var(--surf);color:var(--ink);border-color:var(--stage-one-e)}
.al-tab-2{background:var(--surf);color:var(--ink);border-color:var(--stage-two-e)}
.al-tab-3{background:var(--surf);color:var(--ink);border-color:var(--stage-three-e)}
/* The stage's colour as a mark beside its name, so each tab still says its stage at a glance. */
.al-tab-1::before,.al-tab-2::before,.al-tab-3::before{content:"";flex:none;align-self:center;width:10px;height:10px;border-radius:var(--r-full)}
.al-tab-1::before{background:var(--stage-one)}
.al-tab-2::before{background:var(--stage-two)}
.al-tab-3::before{background:var(--stage-three)}
/* The same hover the lozenges use, for the same reason: a tab that loses its colour when you
   point at it is a tab that denies what it is. Deepening the fill keeps the stage and says the
   pointer is on it. */
.al-tab-1:hover,.al-tab-2:hover,.al-tab-3:hover{background:var(--pl-back)}
.al-tab-n{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.al-tab-v{flex:none;font-size:var(--t-m);font-weight:700;font-variant-numeric:tabular-nums}
/* The chosen one takes its stage's colour, which is the same colour as the wedge it is about.
   Not the accent fill the pick-one controls use: this is not "which option did you choose", it
   is which of three readings of one document you are looking at, and painting it in the accent
   would say a stage had been agreed to. */
/* And the chosen one is plainly the chosen one, now by being part of the panel rather than by
   being marked on top of it: a 2px edge in its stage's colour up and over the tab, no edge
   underneath, and a negative margin of the same 2px so the tab's own ground covers the strip's
   line and the outline reads as one unbroken shape. The tint and the full-weight ink stay.
   The inset ring and bar that used to say "chosen" are gone: the outline says it now, and
   three marks for one state is two too many. */
/* Which one is chosen is said three ways and by none of them colour, which it has to be: all three
   carry their stage's colour, so the colour cannot also be what marks one of them out. 800 against
   600, a 2px edge against 1px, and joined to the panel against sitting on top of it. Each survives
   greyscale and forced colours on its own. The outline casts no shadow (16 November 2026), so raised
   against pressed in is gone. */
.al-tab{box-shadow:none}
.al-tab-on{font-weight:800;border-width:2px;margin-bottom:-2px;padding-bottom:11px;
  box-shadow:none}
/* The advert scrolls in its own box, so the controls that act on it stay under it however long
   it is. A job advert is a long document and the page scrolling past its own footer is how the
   old arrangement lost them. */
/* flex-basis 0 and min-height 0, which is the whole of why it scrolls: a flex child will not
   shrink below its own content without min-height:0, so the box grew to the length of the
   advert, the panel grew with it, and nothing scrolled at all. At basis 0 the body contributes
   nothing to the panel's natural height, so the row is as tall as the column beside it and the
   advert scrolls inside whatever that comes to. */
.al-body{flex:1 1 0;min-height:0;overflow-y:auto;padding:var(--sp-4);
  scrollbar-gutter:stable}
.al-body:focus-visible{outline:2px solid var(--act);outline-offset:-2px}
/* The version you are on, said by the whole page rather than by a 3px edge at the top of the
   card. It is the same colour as the tab above it and the wedge on the dial beside it. */
.vacancy-live.stage-1 .al-body{background:var(--stage-one-paper)}
.vacancy-live.stage-2 .al-body{background:var(--stage-two-paper)}
.vacancy-live.stage-3 .al-body{background:var(--stage-three-paper)}
/* Flattened inside the panel. The advert used to be one card inside a fold, so it carried its
   own ground, border and accent edge; in here that is a box drawn inside a box, and the panel's
   own top edge already says which version this is. */
.al-body>.vacancy{margin:0;background:none;border:0;border-radius:0;padding:0}
.al-foot{flex:none;display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap;
  padding:var(--sp-3) var(--sp-4);border-top:1px solid var(--line);background:var(--rail)}
.al-note{font-size:var(--t-s);color:var(--mid);min-width:0}
.al-foot>.al-note:last-child{margin-left:auto;text-align:right}
/* A version somebody is looking at rather than working on carries no controls, and the line
   under it says so. It used to try to say it with a grey ground as well, which never reached
   the screen: `.al-body > .vacancy` sets `background: none` and is the more specific of the
   two, so the rule had been dead since the panel was built. The paper says it now, in the
   colour of the version being looked at, which is more than the grey ever said. */

/* The consent, beside the thing it is consent for.
   A tick on its own line under the boxes, because it is a decision about the boxes rather than
   another box, and its explanation under it rather than beside it, because it is a sentence. */
.cap-keep,.mine-keep{margin:var(--sp-3) 0 0;display:grid;gap:4px}
.lbl-row{display:flex;gap:var(--sp-2);align-items:flex-start;font-size:var(--t-b);cursor:pointer}
/* Twenty-four, because that is the floor WCAG 2.5.8 puts under a target and eighteen is under
   it. It is a chunky box beside a line of text and that is the right way round: GOV.UK draws
   this control at forty. */
.lbl-row input[type="checkbox"]{flex:none;width:24px;height:24px;margin:0;cursor:pointer}
.mine{display:grid;gap:var(--sp-3)}
/* Two groups, and they have to read as two rather than as one list with a heading in it, or
   somebody puts the name that belongs on the record into a published advert. */
.mine-group{display:grid;gap:4px;padding:var(--sp-3) 0 0;border-top:1px solid var(--line)}
.mine-group>h4{margin:0;font-size:var(--t-b)}
.mine-group>.hint{margin:0 0 var(--sp-2)}
.mine .cap-fs{display:grid;gap:var(--sp-3)}
.mine-acts{display:flex;gap:var(--sp-3);flex-wrap:wrap;align-items:center;margin-top:var(--sp-2)}
/* Last, and away from the rest, because it is the one control here that cannot be undone. */
.mine-clear{margin-left:auto;color:var(--red-h)}

.routes-wrap{margin:var(--sp-4) 0 var(--sp-3)}
.routes{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--sp-3);
  align-items:start}
.route{display:flex;gap:var(--sp-3);align-items:flex-start;text-align:left;
  padding:var(--sp-3);border-radius:var(--r-m);border:1px solid var(--line);background:var(--surf)}
.route-k{display:flex;align-items:center;gap:6px;font:700 var(--t-xs) var(--ui);
  text-transform:uppercase;letter-spacing:.06em}
.route-k .i{width:14px;height:14px}
.route-h{display:block;font-size:var(--t-m);margin:2px 0}
.route-t{display:flex;flex-direction:column}
.route-say{color:inherit;font-size:var(--t-s)}
.route-could{margin-top:var(--sp-2);font:700 var(--t-m) var(--ui)}
/* Where the score genuinely cannot move. Same place on the card, quieter type, because it is
   a fact rather than a gain and dressing it as one would be the product selling nothing. */
.route-could-flat{font:600 var(--t-s) var(--ui)}
.route-hint{margin:var(--sp-2) 0 0}

/* Carry on. A button rather than a card with a button in it, because the whole of it is one
   action and half a card that is clickable is worse than none of it. */
/* In stage three's own colour, which is the one the chip under the dial wears: purple since
   19 November 2026 (PST-41), and the green described below until then.
   Reported: the large green button is a different green from the lozenge below the dial, and
   that green should be the one every stage three action carries. It was --prod, the product's
   own green, which is a brand colour and says nothing about where in the journey somebody is.
   The ink goes near-black with it, because white on this green is 3.22:1 and the whole point
   of matching the chip is to be the same colour as the chip: near-black on it measures 5.76:1,
   which is what the chip has always used (5.25:1 on the purple).
   Hover deepens the shadow and leaves the fill alone. Darkening the fill would take the ink
   under the bar, and a card that dims its own words when you point at it is not a hover. */
.route-carry{font:inherit;cursor:pointer;color:var(--stage-three-on);background:var(--stage-three);
  border-color:var(--stage-three-e);box-shadow:var(--lift-f);align-items:center}
.route-carry:hover{box-shadow:var(--lift-f-h)}
.route-carry:active{box-shadow:var(--press-f)}
/* No opacity on it. At .82 the label measured 4.49:1 against the card, one hundredth under the
   bar, which is the kind of number that only ever turns up because something measures it. */
.route-carry .route-k{color:var(--stage-three-on)}
.route-carry .dial{width:104px;max-width:104px;height:auto;flex:none}
.route-carry .sd-num{fill:var(--stage-three-on)}
/* The three stages on a stage three card cannot be the three stage colours: one of them would be
   purple on purple, and the ground on offer is stage three too. What the small dial is for here is the ground still on offer, so that is what
   keeps its colour, and the score it already has is one solid white run behind it. The big dial
   above, on the page's own surface, is where the three stages are read. The stepped outer edge
   is still there, so the three stages are still told apart by thickness.

   Which of the two is the bold one is now the other way round, and that is the correction. The
   score already won was solid white and the ground still on offer was the faint band, so the
   card whose whole job is to say "there is more here" drew the part somebody already has
   loudest. Stages one and two are done: they sit back. The band this button would win is the
   bright one, and it breathes, so what the press is for is something the eye sees before
   anybody reads a word of it. */
.route-carry .sd-w-1,
.route-carry .sd-w-2,
.route-carry .sd-w-3{fill:var(--stage-three-on);fill-opacity:.34}
.route-carry .sd-w-could{fill:var(--stage-three-on);fill-opacity:1}
/* The same white as the bright band, beside the number it is the number of, so the ring and the
   line under it are visibly one fact rather than two. */
/* The swatch that says which part of the ring the points are. The same colour as the ring's
   own spare marks, which went near-black with the card, so the key and the thing it is a key to
   are one colour rather than two. */
.route-key{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--stage-three-on);
  margin-right:var(--sp-2);vertical-align:baseline}

/* The end of it, and it has to look like the end of it.
   It was a white card under a stage three one, which made the thing somebody had finished and come
   for the quieter of the two. It is the loudest thing on the screen now: the product's own
   green edge down the side, a heavier heading, and the two ways of taking something away under
   it. The way back is below it, where a step already taken belongs. */
.route-finish{flex-direction:column;gap:var(--sp-2);border-left:4px solid var(--prod);
  box-shadow:var(--lift-f)}
.route-finish .route-k{color:var(--prod-d)}
.route-finish>.route-h{font-size:var(--t-l);margin:0 0 2px}
.route-finish .result-acts{margin-top:var(--sp-1)}

/* Everything the check found, one press away.
   It was a bold line with small print under it, which is a heading, and nobody presses a
   heading: the one control that opens the whole result read as a label. It is drawn as a
   control now. A filled bar with a border, the word in the accent, and a chevron that turns
   when it opens, which is the part a person actually reads as "this opens". Still quiet, because
   it is the third thing on the screen and not a third route, but unmistakably a thing you press. */
.fold-detail{margin:0 0 var(--sp-3);border-color:var(--pl-go-e)}
.fold-detail>summary{
  flex-direction:row;align-items:center;gap:var(--sp-3);
  background:var(--pl-go);color:var(--pl-go-t);border-radius:var(--r-s);font-weight:700;
  transition:background var(--m-state)
}
.fold-detail>summary:hover{background:var(--pl-go-h)}
.fold-detail[open]>summary{border-radius:var(--r-s) var(--r-s) 0 0;border-bottom:1px solid var(--pl-go-e)}
.fold-detail-t{display:grid;gap:2px;min-width:0}
.fold-detail .fold-n{font-weight:400;color:var(--pl-go-t)}
/* Drawn from two borders rather than a glyph, so it lands the same whatever font is in use and
   whatever the person has done to their text size. */
.fold-detail>summary::after{
  content:'';flex:none;width:9px;height:9px;margin-left:auto;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transition:transform var(--m-state)
}
.fold-detail[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}

@keyframes route-land{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* A slow breath on the one route that carries the journey on, so it is the thing the eye lands
   on. It stops on its own where the page is set to be still: :root[data-motion="off"] above
   kills every animation outright, and so does the reduced-motion query, so the Motion switch in
   the bar is the pause control WCAG 2.2.2 asks for and no second one is added here. */
@keyframes route-breathe{
  0%,100%{box-shadow:var(--lift-f)}
  50%{box-shadow:var(--lift-f), 0 0 0 6px color-mix(in srgb, var(--prod) 16%, transparent)}
}
:root[data-motion="on"] .route-carry{
  animation:route-land var(--m-panel) var(--ease-panel) both,
            route-breathe 3.2s ease-in-out .5s infinite;
}
/* And the band itself, on the same 3.2s as the card, so the card and the ring breathe together
   rather than beating against each other. It sweeps out once on arrival, in ceilingDial, and
   this is what keeps it the thing the eye returns to. Both stop where the page is set to be
   still: the Motion switch in the bar kills every animation, and so does reduced-motion. */
@keyframes could-breathe{0%,100%{opacity:.7}50%{opacity:1}}
:root[data-motion="on"] .route-carry .sd-spare{
  animation:could-breathe 3.2s ease-in-out .5s infinite;
}
/* The same control once everything has been read: still the way back, no longer the thing the
   eye should land on. It keeps its place and its colour so it is recognisably where the journey
   was, and it stops breathing and sits back, because pressing it is now optional. */
/* Starting again, under the take-away actions and quieter than them, because it is the one
   control here that throws this screen away. */
.route-again-wrap{display:flex;gap:var(--sp-3);align-items:center;flex-wrap:wrap;
  margin:var(--sp-2) 0 0;padding:var(--sp-2) 0 0;border-top:1px solid var(--line)}
/* The same unavailable look as [aria-disabled], written out because this one is not
   unavailable: it is a live button that refuses and says why. --mid, not --soft, for the
   reason the shared rule gives: --soft on this plate is 2.79:1 and the label has to be
   readable on a control somebody is expected to press and be answered by. */
.route-another-off{border-style:dashed;color:var(--mid);background:var(--gry-t);box-shadow:none}
.route-again-wrap>.hint{margin:0}

/* The same card once everything has been gone through: still the way back, no longer the thing
   the eye should land on.

   It was the brand's dark green, which made the one card that changes colour on this screen
   change to a colour that means nothing. Reported twice. It is the same stage three as before
   and always, and what says "you have already been through this" is the weight rather than the
   hue: the fill comes off, the outline stays, the shadow flattens, and the words and the icon
   change with it. One colour per stage, and a second state of a control is not a second stage.
   The ink is the darker step of the same purple, because the fill itself on white is 3.72:1 and
   this is text: --stage-three-e measures 6.92:1. */
.route-again{background:var(--surf);color:var(--stage-three-e);
  border-color:var(--stage-three);box-shadow:var(--lift-p)}
.route-again:hover{background:var(--stage-three-paper);box-shadow:var(--lift-p-h)}
.route-again .route-k{color:var(--stage-three-e)}
.route-again .sd-num{fill:var(--stage-three-e)}
.route-again .sd-w-1,
.route-again .sd-w-2,
.route-again .sd-w-3{fill:var(--gry);fill-opacity:.55}
.route-again .sd-w-could{fill:var(--stage-three-e);fill-opacity:1}
.route-again .route-key{background:var(--stage-three-e)}
:root[data-motion="on"] .route-again{
  animation:route-land var(--m-panel) var(--ease-panel) both;
}

@media (max-width:480px){
  .route{padding:var(--sp-3)}
  .route-carry .dial{width:84px;max-width:84px}
}

.depth-do { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }

/* How much of the result is showing.
 *
 * One control rather than two buttons, because these are three views of one result and only
 * one can be true at a time. Grey throughout and on purpose: nothing here runs, spends or
 * changes anything, and a colour would say otherwise. The selected view is marked by fill,
 * weight and aria-checked together, never by colour alone. */
.viewpick { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.viewpick-l { font: 600 var(--t-xs) var(--ui); color: var(--mid); text-transform: uppercase; letter-spacing: .06em; }
.viewseg {
  font: 600 var(--t-s) var(--ui); padding: 6px var(--sp-3); min-height: 32px; cursor: pointer;
  background: var(--surf); color: var(--pl-back-t);
  border: 1px solid var(--pl-back-e); border-radius: var(--r-s);
  transition: background var(--m-state), box-shadow var(--m-lift);
}
.viewseg:hover { background: var(--pl-back); border-color: var(--pl-back-eh); }
/* The chosen one is filled and bordered dark. Contrast against its own text is what 1.4.11
   asks for, and the fill is what carries it rather than a tint. */
.viewseg.on {
  background: var(--surf); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700;
}
.viewseg.on:hover { background: var(--ink); }
/* Locked by the engine's floor, not by choice. Still focusable and still announced, because it
   has something to say: pressing it explains why the whole record is always shown. */
/* No opacity here either, and for the same reason: it is still focusable and it still has
   something to say when pressed. */
.viewseg[aria-disabled='true'] { cursor: not-allowed; }
.viewseg[aria-disabled='true']:hover { background: var(--gry-t); border-color: var(--pl-back-e); }

/* One proposed change: what is there now, and what it would become. */
.diffs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.diff {
  background: var(--rail); border: 1px solid var(--line2); border-left: 3px solid var(--soft);
  border-radius: 0 var(--r-s) var(--r-s) 0; padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.diff-must_fix { border-left-color: var(--red); }
.diff-should_fix { border-left-color: var(--amb); }
.diff-have_a_look { border-left-color: var(--gry); }
.diff-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.diff-head strong { font-size: var(--t-m); }
.diff-say { color: var(--mid); font-size: var(--t-s); max-width: 72ch; }
.diff-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--sp-3); align-items: baseline; }
.diff-k { font: 700 var(--t-xs) var(--ui); letter-spacing: .05em; text-transform: uppercase; color: var(--mid); }
.diff-was { color: var(--mid); text-decoration: line-through; text-decoration-thickness: 1px; }
/* The new wording on offer, on the quiet grey ground; inside a row that belongs to a stage it takes that
   stage's tint (.did-swap below). It was the traffic light green's tint (PST-41, 17 November 2026). */
.diff-new { color: var(--ink); font-weight: 600; background: var(--rail); border-radius: var(--r-s); padding: 1px 6px; }
.diff-do { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-1); }

/* The three questions. A statement, the answers as one segmented control each, and what the
   answer amounts to said underneath in words rather than by the control changing colour. */
.fold-ask > summary { font-weight: 700; }
.asks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-5); }
.ask {
  background: var(--surf); border: 1px solid var(--line); border-left: 3px solid var(--act);
  border-radius: 0 var(--r-s) var(--r-s) 0; padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
/* These three run the width of the card rather than stopping at a measure.
   68ch and 72ch are the readable line length, and on the referral card they were read as a
   fault instead: a question that wrapped after two thirds of the width, under a heading that
   ran the whole way, over a segmented control that ran the whole way. Asked for, in those
   words: it needs to read across the window. The measure is kept where it is doing its job,
   on the prose of the result, and dropped here, on three short statements inside a card
   somebody is answering rather than reading. */
.ask-lead { font-size: var(--t-m); font-weight: 600; }
.ask-qs { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-1); }
.ask-ask { font-size: var(--t-b); margin-bottom: var(--sp-1); }
/* An answer the engine filled in from the advert, said where the answer is. It is a claim about
   where a fact came from, so it is marked rather than left to look like something they pressed. */
.ask-read {
  display: flex; gap: var(--sp-2); align-items: flex-start;
  font-size: var(--t-s); color: var(--act-h); margin-top: var(--sp-1);
}
.ask-read .i { flex: none; margin-top: 1px; }

.ask-out { font-size: var(--t-s); margin-top: var(--sp-2); }
/* One line per rule the referral settled. Regulation 27(2) settles two. */
.ask-outs { display: flex; flex-direction: column; }
.ask-out-out { color: var(--mid); }
.ask-out-in { color: var(--ink); background: var(--rail); border-left: 3px solid var(--line); border-radius: 0 var(--r-s) var(--r-s) 0; padding: var(--sp-2) var(--sp-3); }

/* The ten areas, open or closed on this advert. */
.lenses { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.lenstile { background: var(--rail); border-left: 3px solid var(--prod); border-radius: var(--r-s); padding: var(--sp-3); display: flex; flex-direction: column; gap: 2px; }
.lenstile-closed { border-left-color: var(--gry); }
.lenstile-n { font-weight: 600; }
.lenstile-s { font-size: var(--t-s); color: var(--mid); }

/* Every rule that ran. The one place in the product that prints a statute, a tier letter or
   a confidence number, which is why the vocabulary lint reads depth 1 and depth 2 and stops. */
.rules-ran { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.ruleran { background: var(--rail); border-left: 3px solid var(--line); border-radius: 0 var(--r-s) var(--r-s) 0; padding: var(--sp-3); display: flex; flex-direction: column; gap: 3px; }
.ruleran-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.ruleran-cite { font-size: var(--t-xs); color: var(--mid); }
.ruleran-quote { font-size: var(--t-s); }
.ruleran-say { font-size: var(--t-s); color: var(--mid); max-width: 76ch; }
.ruleran-conf { font-size: var(--t-xs); color: var(--mid); }
/* The two answers about the check rather than about the advert: what it knows, and that it is
   wrong. Side by side at the foot of the row, on every row, because every check and every rule
   can now be reported. */
.ruleran-do { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin-top: var(--sp-2); }

/* The allowance panel behind the chip in the bar. */
.allow-panel { display: flex; flex-direction: column; gap: var(--sp-3); }
.allow-say { font-size: var(--t-m); font-weight: 600; max-width: 64ch; }
.allow-key { margin-top: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.allow-key .btn { margin-top: var(--sp-3); }
#licence-key { font-family: var(--mono); letter-spacing: .04em; font-variant-numeric:tabular-nums slashed-zero; }
/* Four states, and the word beside the number carries every one of them. The colour is the
   second carrier and never the only one. */
/* How things stand is the ring and the words now; the border stays white. */

/* ------------------------------------------------------------------ the legal documents

   Long-form prose, one column, a line no wider than about 68 characters, and a contents
   list down the side on a wide screen. A simpler header than the application's, and no
   script at all: nothing on these pages needs one. */

/* The main menu on the pages built outside the application (tools/site-bar.mjs): the application's
   own bar, the same classes and so the same 52px navy row (PST-01, PST-06). With no menu script on
   these pages, the phone's menu is a details element: its summary is the menu button, which says the
   page's own item (PST-05), and its panel is the application's Menu panel. */
.bar-pmenu { flex: none; margin-left: auto; }
.bar-pmenu > summary { list-style: none; }
.bar-pmenu > summary::-webkit-details-marker { display: none; }
.bar-pmenu[open] > summary { border-color: rgba(var(--on-nav-rgb), .6); }
@media (min-width: 1120px) { .bar-pmenu { display: none; } }
.legal-wrap { padding-block: var(--sp-6) var(--sp-7); }
.legal-when { color: var(--mid); font-size: var(--t-s); margin-bottom: var(--sp-5); }

.legal-body { max-width: 68ch; }
.legal-body h2 { font-size: var(--t-l); margin: var(--sp-6) 0 var(--sp-3); scroll-margin-top: var(--sp-6); }
.legal-body h3 { font-size: var(--t-m); margin: var(--sp-5) 0 var(--sp-2); scroll-margin-top: var(--sp-6); }
.legal-body p { margin-bottom: var(--sp-4); }
.legal-body ul, .legal-body ol { margin: 0 0 var(--sp-4) var(--sp-5); }
.legal-body li { margin-bottom: var(--sp-2); }
.legal-body a { color: var(--act); text-decoration: underline; text-underline-offset: 2px; }
.legal-body code { font-family: var(--mono); font-size: var(--t-s); background: var(--gry-t); padding: 1px 5px; border-radius: 4px; font-variant-numeric:tabular-nums slashed-zero; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
/* Something quoted back at the reader, in the flat treatment this product uses for
   anything it wants read rather than pressed. */
.legal-body blockquote {
  margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: var(--rail); border-left: 3px solid var(--act); border-radius: 0 var(--r-s) var(--r-s) 0;
}
.legal-body blockquote p { margin: 0; font-weight: 600; }

/* A table is the one thing on these pages allowed to be wider than the column, and it
   scrolls inside itself rather than making the page scroll sideways. */
.tablewrap { overflow-x: auto; margin-bottom: var(--sp-5); }
.legal-body table { border-collapse: collapse; width: 100%; font-size: var(--t-s); }
.legal-body th, .legal-body td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { font-weight: 700; color: var(--mid); border-bottom-color: var(--line2); }

.legal-toc {
  background: var(--rail); border-left: 3px solid var(--line); border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-5); max-width: 68ch;
}
.legal-toc-h { font: 700 var(--t-xs) var(--ui); letter-spacing: .05em; text-transform: uppercase; color: var(--mid); margin-bottom: var(--sp-2); }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { color: var(--act); text-decoration: none; display: inline-block; min-height: 24px; padding: 2px 0; }
.legal-toc a:hover { text-decoration: underline; }

.legal-cross { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: baseline; }
.legal-cross-h { font: 700 var(--t-xs) var(--ui); letter-spacing: .05em; text-transform: uppercase; color: var(--mid); flex-basis: 100%; }
.legal-cross a { color: var(--act); text-decoration: underline; text-underline-offset: 2px; min-height: 24px; display: inline-flex; align-items: center; }
/* The page for an address that does not exist, the same in every Second Lens product (PST-51), is the product kit's
   own layout (slk-state, kit 0.6.0) and is styled by the kit alone. Its own nf- rules went on 18 November 2026.
   The admin page while admin is managed centrally (rules/admin-locked-page.mjs) and the pairing page
   (netlify/functions/slpair.mjs) wear the same layout; only what is theirs alone is styled here: the emergency form and
   the pairing form, as narrow as the console's own password box, read from the left inside the centred layout. */
.admin-locked h2 { margin: var(--sp-6) 0 var(--sp-3); font: 600 var(--t-l) var(--disp); }
.admin-locked .err { margin: 0 0 var(--sp-4); }
.admin-locked-form, .pair-page form { max-width: 520px; margin: var(--sp-4) auto var(--sp-6); text-align: left; }
.admin-locked-form button { margin-top: var(--sp-3); }

@media (min-width: 1000px) {
  /* The contents beside the prose rather than above it, once there is room for both. */
  .legal-wrap { display: grid; grid-template-columns: minmax(0, 68ch) 16rem; gap: var(--sp-6) var(--sp-7); align-items: start; }
  .legal-wrap > .page-h, .legal-wrap > .legal-when, .legal-wrap > .legal-cross { grid-column: 1; }
  .legal-toc { grid-column: 2; grid-row: 3 / span 2; position: sticky; top: var(--sp-4); margin-bottom: 0; }
  .legal-body { grid-column: 1; }
  /* A page with no contents list (Check a record) is one column in the middle, not the left
     half of a two-column page with nothing on the right (27 September 2026). */
  .legal-wrap:not(:has(.legal-toc)) { grid-template-columns: minmax(0, 68ch); justify-content: center; }
}

/* ------------------------------------------------------- the prices

   The front page has its own block at the end of this file. Prices introduces no treatment
   of its own. A card is flat on the rail with a
   rule down its left edge, because it is something the application is telling you rather
   than something you press, and every press on both screens is already dressed by the
   button rules above. */

.door-do { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.worth-h { font-size: var(--t-l); margin: var(--sp-7) 0 var(--sp-3); }
/* One rhythm down the page: the same space above every block, and every pair in two equal
   columns that line up with the plans above them. */
.worth-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4);
  margin-top: var(--sp-7); align-items: stretch;
}
@media (max-width: 860px) { .worth-pair { grid-template-columns: 1fr; gap: var(--sp-7); } }
.worth-pair .worth-h { margin: 0; }
.worth-card {
  background: var(--surf); border: 1px solid var(--line); border-left: 3px solid var(--act);
  border-radius: 0 var(--r-m) var(--r-m) 0; padding: var(--sp-4);
  /* Heading, words and button on the same three rows in both cards, so the buttons sit level. */
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--sp-3);
}
.worth-card p { margin: 0; }
.worth-card .door-do { align-self: end; padding-top: var(--sp-2); }
.worth-card a.btn, .worth-card a.ghost { text-decoration: none; }
.worth-share { margin-top: var(--sp-7); }

/* --------------------------------------------------------------- the Prices screen, Phil's mockup

   Phil's approved mockup of 9 November 2026, applied exactly inside the screen and nowhere else:
   every rule is under #view-worth, and the classes begin pr- so none can meet the application's
   own .card, .btn or .plans. Inter is one of the console's faces, already declared in fonts.css and
   served from this site (the policy allows no other origin), so it is named here and nothing is
   loaded from a font service. The blue and the tints are the mockup's own, kept in variables on
   the screen so nothing outside it changes.

   Five columns above 1100px, with each card borrowing nine shared rows, so the name, price,
   allowance, the four lines, who it is for and the button sit level across every card. Below
   1100px, or where a browser has no subgrid, the cards stack and size to their content. Nothing
   on the screen is positioned by hand in the narrow layout. */
:root[data-view="worth"] main.wrap { max-width: 1424px; padding: 48px 32px 64px; }
@media (max-width: 620px) { :root[data-view="worth"] main.wrap { padding: 32px 16px 48px; } }

#view-worth {
  /* The shared tokens (PST-41): the ink, the grey, the lines and the product's one accent green, not
     the Prices screen's own near-copies of them (#1b1f2a, #4a5162, #5b6272, #e3e6ed, #eceef3 and
     #1a7a43 until 16 November 2026). */
  --pr-ink: var(--ink); --pr-muted: var(--mid); --pr-soft: var(--mid); --pr-line: var(--line); --pr-hair: var(--line2);
  /* One action blue (PST-41): the yearly card's edge, its tint and its buttons are the shared --act, not a
     second blue of the Prices screen's own (#2446c7 until 16 November 2026). */
  --pr-blue-line: color-mix(in srgb, var(--act) 28%, var(--surf));
  --pr-green: var(--prod); --pr-green-line: color-mix(in srgb, var(--prod) 28%, var(--surf)); --pr-green-wash: var(--prod-t);
  font-family: var(--ui); color: var(--pr-ink);
}
#view-worth h2, #view-worth h3 { font-family: var(--disp); font-weight: 600; letter-spacing: normal; text-transform: none; }
#view-worth > .page-h { margin: 0 0 12px; max-width: none; font-size: 36px; line-height: 1.15; font-weight: 600; color: var(--pr-ink); }
#view-worth > .page-lede { margin: 0 0 36px; max-width: 720px; font-size: 17px; line-height: 1.55; color: var(--pr-muted); }
@media (max-width: 620px) { #view-worth > .page-h { font-size: 30px; } }

#view-worth .pr-offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 32px; padding: 16px 20px;
  border: 1px solid var(--pr-green-line); border-left: 4px solid var(--pr-green); border-radius: 12px;
  background: var(--surf); font-size: 15px; line-height: 1.5; color: var(--pr-ink);
}
#view-worth .pr-offer strong { font-weight: 700; color: var(--pr-green); }

/* The stacked layout is the base, so a browser without subgrid, or a narrow window, gets it. */
#view-worth .pr-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
#view-worth .pr-card {
  display: flex; flex-direction: column; background: var(--surf); border: 1px solid var(--pr-line);
  border-left: 4px solid var(--act); border-radius: 12px; padding: 0 28px 0 24px;
}
#view-worth .pr-yearly { background: var(--act-t); border-color: var(--pr-blue-line); border-left-color: var(--act); }
#view-worth .pr-free { border-left-color: var(--pr-green); }
#view-worth .pr-ent { border-left-color: var(--pr-ink); }
#view-worth .pr-audience { margin-top: auto; }
@media (min-width: 1101px) {
  @supports (grid-template-rows: subgrid) {
    #view-worth .pr-plans {
      grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(9, auto) 16px repeat(9, auto);
      column-gap: 16px; row-gap: 0;
    }
    #view-worth .pr-card { display: grid; grid-template-rows: subgrid; grid-row: span 9; }
    #view-worth .pr-r1 { grid-row: 1 / span 9; }
    #view-worth .pr-r2 { grid-row: 11 / span 9; }
    #view-worth .pr-c1 { grid-column: 1; } #view-worth .pr-c2 { grid-column: 2; } #view-worth .pr-c3 { grid-column: 3; }
    #view-worth .pr-c4 { grid-column: 4; } #view-worth .pr-c5 { grid-column: 5; }
    #view-worth .pr-audience { margin-top: 20px; }
    /* Enterprise's fair use sentence is the longest allowance by far, and the row is shared, so it
       left a gap under every other card's checks line. Its allowance takes the next two lines'
       space too, and its own two features move down a step (13 November 2026). */
    #view-worth .pr-ent .pr-allow { grid-row: 3 / span 3; }
    #view-worth .pr-ent .pr-f2, #view-worth .pr-ent .pr-f3 { display: none; }
    #view-worth .pr-ent .pr-f1 { grid-row: 6; }
    #view-worth .pr-ent .pr-f4 { grid-row: 7; }
    #view-worth .pr-ent .pr-audience { grid-row: 8; }
    #view-worth .pr-ent .pr-cta { grid-row: 9; }
  }
}

#view-worth .pr-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 24px; margin: 0; }
#view-worth .pr-name h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--pr-ink); }
#view-worth .pr-badge {
  display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--pr-green);
  color: var(--on-fill); font-size: 12px; font-weight: 700; white-space: nowrap;
}
#view-worth .pr-price { padding-top: 8px; }
#view-worth .pr-big { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--act); white-space: nowrap; }
#view-worth .pr-big span { font-size: 14px; font-weight: 500; color: var(--pr-muted); }
#view-worth .pr-free .pr-big { color: var(--pr-green); }
#view-worth .pr-ent .pr-big { color: var(--pr-ink); }
#view-worth .pr-was { display: block; margin-top: 4px; font-size: 14px; color: var(--pr-muted); }
#view-worth .pr-off { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--pr-green); }
#view-worth .pr-allow { padding-top: 8px; font-size: 14px; line-height: 1.5; color: var(--pr-muted); }
#view-worth .pr-allow a { color: var(--act); text-decoration: underline; }
#view-worth .pr-f { display: flex; gap: 8px; padding-top: 8px; font-size: 14px; line-height: 1.4; }
#view-worth .pr-f1 { padding-top: 16px; }
#view-worth .pr-f:empty { padding: 0; }
#view-worth .pr-f:not(:empty)::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background-color: var(--act); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
#view-worth .pr-free .pr-f:not(:empty)::before { background-color: var(--pr-green); }
#view-worth .pr-ent .pr-f:not(:empty)::before { background-color: var(--pr-ink); }
#view-worth .pr-audience { margin-bottom: 0; padding-top: 16px; border-top: 1px solid var(--pr-hair); font-size: 14px; line-height: 1.5; color: var(--pr-soft); }
#view-worth .pr-yearly .pr-audience { color: var(--pr-soft); }
#view-worth .pr-cta { padding: 20px 0 24px; }
#view-worth .pr-cta a {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--act); background: var(--surf); color: var(--act); font-size: 14px; font-weight: 600;
  text-align: center; text-decoration: none;
}
#view-worth .pr-cta a:hover { background: var(--act-t); }
#view-worth .pr-yearly .pr-cta a { background: var(--act); color: var(--on-fill); }
#view-worth .pr-yearly .pr-cta a:hover { background: var(--act-h); }
/* Every plan's button is the one outline in the action blue, or the one main blue on the yearly card
   (PST-42): the free plan's was a green outline and Enterprise's a solid ink fill until 16 November 2026. */
/* The mockup's focus ring (#8aa0ee) is 2.6:1 against white, under the 3:1 a focus indicator needs, so it is the dark blue. */
#view-worth a:focus-visible { outline: 3px solid var(--act-h); outline-offset: 2px; }

#view-worth .pr-foot { margin: 28px 0 0; font-size: 13px; line-height: 1.6; color: var(--pr-soft); }
#view-worth .pr-foot a { color: var(--act); text-decoration: underline; }
#view-worth .pr-foot.pr-small { margin-top: 8px; }

#view-worth .pr-packs { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--pr-line); text-align: left; }
#view-worth .pr-packs h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; text-align: center; color: var(--pr-ink); }
#view-worth .pr-sub { margin: 0 auto 24px; max-width: 720px; text-align: center; font-size: 16px; line-height: 1.55; color: var(--pr-muted); }
#view-worth .pr-packgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
#view-worth .pr-pack {
  display: flex; flex-direction: column; padding: 24px 28px 24px 24px; border: 1px solid var(--pr-line);
  border-left: 4px solid var(--act); border-radius: 12px; background: var(--surf);
}
#view-worth .pr-pack h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: var(--pr-ink); }
#view-worth .pr-per { margin: 4px 0 20px; font-size: 14px; color: var(--pr-muted); }
#view-worth .pr-pack .pr-cta { margin-top: auto; padding: 0; }
#view-worth .pr-packrules {
  list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px; row-gap: 8px; font-size: 14px; line-height: 1.5; color: var(--pr-muted);
}
#view-worth .pr-packrules li { display: flex; gap: 8px; }
#view-worth .pr-packrules li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background-color: var(--act); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
@media (max-width: 620px) { #view-worth .pr-packrules { grid-template-columns: 1fr; } }
@media (min-width: 1101px) {
  /* The three packs sit under the middle three plan columns, and the rules under them, as in the mockup. */
  #view-worth .pr-packgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #view-worth .pr-packgrid .pr-pack:nth-child(1) { grid-column: 2; }
  #view-worth .pr-packgrid .pr-pack:nth-child(2) { grid-column: 3; }
  #view-worth .pr-packgrid .pr-pack:nth-child(3) { grid-column: 4; }
  #view-worth .pr-packrules { margin-left: calc((100% - 64px) / 5 + 16px); width: calc(3 * (100% - 64px) / 5 + 32px); }
}
#view-worth .pr-more { margin-top: 48px; max-width: none; }
/* ------------------------------------------------------------------------ the questions

   Four questions, a box and a name. The number and the rule are on the question itself,
   because a marker shape on its own is a convention somebody has to already know. */

.qform { display: flex; flex-direction: column; gap: var(--sp-6); margin-top: var(--sp-5); max-width: 74ch; }
.qblock { display: flex; flex-direction: column; gap: var(--sp-2); }
/* The number hangs in its own column, so a question that runs to a second line starts that line
   under its first word rather than under the number, and "choose one" sits on its own line under
   the question every time. Beside the words it landed wherever the sentence happened to end: at
   the end of the line on one question and alone on the next line on another. */
.q-label { font-size: var(--t-m); font-weight: 600; display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 6px; align-items: baseline; }
.q-n { color: var(--act); font-weight: 700; }
.q-how {
  grid-column: 2; justify-self: start; font: 600 var(--t-xs) var(--ui);
  color: var(--mid); background: var(--gry-t); border-radius: var(--r-s); padding: 1px 8px;
  text-transform: none; letter-spacing: normal;
}
/* The answers as a grid of equal buttons. As a wrapping row every button was as wide as its own
   words, so each question ended in a ragged edge and no two questions looked alike. Columns of
   13rem fit one to a row on a phone and two or three in the wide window, all the same width. */
.qform .seg {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 6px; padding: 6px; width: 100%;
}
.qform .seg button { width: 100%; min-height: 44px; }
.qwho { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--sp-4); }
/* Where somebody is in the four steps: said in words, and drawn as four marks that fill. The
   marks are aria-hidden, because the line above them says the same thing. */
.q-steps { display: flex; flex-direction: column; gap: var(--sp-2); }
.q-step-h { margin: 0; font: 600 var(--t-s) var(--ui); color: var(--mid); }
.q-pips { display: flex; gap: 3px; max-width: 16rem; }
.q-pip { flex: 1 1 0; height: 6px; border-radius: var(--r-full); background: var(--surf); border: 1px solid var(--act); opacity: .4; }
.q-pip-done { background: var(--act); opacity: .7; }
.q-pip-here { background: var(--act); opacity: 1; }
.q-nav { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ the development toolbar

   Everything belonging to the development site in this product is red: the bar across the
   top, this, and the block under the note box. It sits bottom right, where the console menu
   deliberately is not, because two floating controls in one corner is one of them
   unreachable. */

.devtools { position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 47; display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }
.devtools-fab { border-radius: var(--r-s); min-height: 44px; padding: 0 var(--sp-4); box-shadow: var(--lift-f-h); }
.devtools-panel {
  display: flex; flex-direction: column; gap: 2px; width: min(320px, calc(100vw - 32px));
  background: var(--surf); border: 1px solid var(--red); border-radius: var(--r-m);
  box-shadow: var(--sh3); padding: var(--sp-3);
}
.devtools-h { font: 700 var(--t-xs) var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: var(--sp-2); }
.devtools-row {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; text-align: left;
  min-height: 44px; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-s);
  background: var(--surf); border: 1px solid var(--pl-back-e); color: var(--ink);
  font: 600 var(--t-b) var(--ui); cursor: pointer; text-decoration: none; box-shadow: none;
}
.devtools-row:hover { background: var(--pl-back); border-color: var(--pl-back-eh); }
.devtools-row .i { color: var(--mid); flex: none; }
/* The one that cannot be taken back, in the one colour this product reserves for that. */
.devtools-row-out { background: var(--surf); color: var(--pl-del-t); border-color: var(--pl-del-e); margin-top: var(--sp-2); }
.devtools-row-out:hover { background: var(--pl-del); border-color: var(--pl-del-eh); }
.devtools-row-out .i { color: var(--pl-del-t); }

@media (max-width: 900px) {
  /* Above the console menu's own corner, and clear of a phone's home bar. */
  .devtools { right: var(--sp-3); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--sp-3)); }
}

/* ------------------------------------------------------------ one feature switched off (PST-21)

   A tool the Second Lens console has switched off, or the Advert check on a phone or a tablet
   while this console has those closed, gives way to one line inside the normal page, with the top
   bar and the footer still there (public/js/feature-off.mjs). Until 17 November 2026 the phone
   switch had a closed screen of its own, with no bar and no footer, which PST-01, PST-24 and
   PST-46 do not allow. */

.feature-is-off { display: none !important; }
.feature-off {
  flex-basis: 100%; max-width: 60ch; margin: var(--sp-3) 0; padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--edge); border-radius: 10px; background: var(--surf); color: var(--ink);
}
.feature-off a { font-weight: 600; }

/* ---------------------------------------------------------------- the engine window
   Development only: nothing mounts it on a production deployment and the server sends it
   nothing to show. Red throughout, because everything belonging to the development site in this
   product is red, so it can never be mistaken for part of the product.
   Moved by assigning left and top through the CSSOM, which the Content Security Policy permits
   where a style attribute is refused outright. Resizing is this one line and no JavaScript. */
.englog{
  /* Clear of the header rather than 64 pixels down, which put the folded bar inside it: a
     development site's header is 94 pixels tall and this window exists nowhere else. */
  position:fixed;top:calc(var(--bar-h) + var(--sp-2));right:12px;z-index:60;
  width:min(560px,46vw);height:min(70vh,640px);
  display:flex;flex-direction:column;resize:both;overflow:hidden;
  background:var(--surf);border:2px solid var(--red);border-radius:var(--r-s);box-shadow:var(--sh2);
  font:12px/1.45 var(--mono);font-variant-numeric:tabular-nums slashed-zero}
.englog-min{height:auto;resize:none}
.englog-min .englog-body{display:none}
.englog-bar{
  display:flex;align-items:center;gap:8px;flex:none;cursor:move;touch-action:none;
  background:var(--red);color:var(--on-fill);padding:4px 8px;font-size:11px;
}
.englog-bar strong{font:700 11px/1 var(--ui);letter-spacing:.06em}
.englog-ver{opacity:.85}
.englog-sp{margin-left:auto}
.englog-tog{display:flex;align-items:center;gap:3px;cursor:pointer;font-size:10px}
.englog-btn{
  background:var(--surf);color:var(--red);border:0;border-radius:3px;padding:1px 6px;
  font:700 10px/1.6 var(--ui);cursor:pointer;
}
.englog-body{flex:1;overflow:auto;padding:4px 6px}
.englog-job{
  display:flex;gap:8px;width:100%;text-align:left;background:none;border:0;cursor:pointer;
  padding:3px 4px;font:inherit;border-bottom:1px solid var(--line);
}
.englog-jobwrap{margin-bottom:6px}
.englog-when{color:var(--mid)}
.englog-dim{color:var(--mid)}
.englog-head{
  margin:4px 0;padding:6px;background:var(--rail);border-radius:3px;
  font:11px/1.5 var(--mono);white-space:pre-wrap;overflow-x:auto;font-variant-numeric:tabular-nums slashed-zero}
.englog-lens{margin:4px 0}
.englog-lensname{
  display:block;width:100%;text-align:left;background:none;border:0;cursor:pointer;
  padding:2px 4px;font:700 11px/1.6 var(--mono);color:var(--ink);border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums slashed-zero}
.englog-shut .englog-row{display:none}
/* The level is a word as well as a colour. A trace lands in a screenshot with no legend, and a
   reader who cannot tell red from amber still has to be able to sort one from the other. */
.englog-row{display:block;padding:0}
.englog-open{
  display:flex;gap:6px;width:100%;text-align:left;background:none;border:0;cursor:pointer;
  padding:1px 4px;font:inherit;
}
.englog-open:hover{background:var(--rail)}
.englog-lvl{flex:none;font-weight:700;white-space:pre}
.englog-error>.englog-open .englog-lvl,.englog-error>.englog-lvl{color:var(--red)}
.englog-warn>.englog-open .englog-lvl,.englog-warn>.englog-lvl{color:var(--amb-d)}
.englog-info>.englog-open .englog-lvl,.englog-info>.englog-lvl{color:var(--mid)}
.englog-ref{flex:none;width:6em;color:var(--ink)}
.englog-plain{flex:none;width:16em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.englog-stage{flex:none;width:9em;color:var(--mid)}
/* The wording the rule matched, on the shut row. It takes what space is left and gives it back
   first, because the verdict beside it must not be pushed off the end by a long quote. */
.englog-quote{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.englog-ms{margin-left:auto;flex:none;color:var(--mid)}
.englog-detail{
  margin:2px 0 6px 2em;padding:6px;background:var(--rail);border-left:2px solid var(--red);
  font:11px/1.5 var(--mono);white-space:pre-wrap;overflow-x:auto;font-variant-numeric:tabular-nums slashed-zero}
.englog-fallback{width:100%;height:8em;font:11px/1.4 var(--mono);font-variant-numeric:tabular-nums slashed-zero}

/* Category B: a question about the job, and the sentence it writes.
   The pack calls it a gap prompt. Five rules carry it and none was implemented, so they came
   back as bare failures with nothing offered. */
.gap{margin:var(--sp-2) 0 0}
.gap .ask-ask{margin:0 0 var(--sp-1);font-weight:600}
.gap .hint{margin:0 0 var(--sp-2)}
.gap .cap-fs{display:grid;gap:var(--sp-2);margin:0 0 var(--sp-2)}
.gap-row{padding:var(--sp-3) 0;border-top:1px solid var(--line2)}
.gap-do,.ask-do{margin-top:var(--sp-3)}
.gap-row:first-of-type{border-top:0}
.gap-rule{display:block;font-size:var(--t-b)}
.gap-row .mark{margin-top:2px}
/* Where a detail came from, where it did not come from the account. The pack allows taking a
   contact out of the advert because it is marked and undoable, so the mark carries the
   permission and is not decoration. */
.did-from{display:block;color:var(--mid);font-size:var(--t-xs);margin-top:2px}

/* Two adverts in one box, said under the box before a check is spent and again on the result.
   It is a notice rather than a refusal: the detector catches a little over half of double
   pastes, so it says what it noticed and leaves the decision where it belongs. */
.two-vacancies strong { display: block; margin-bottom: var(--sp-1); }
.two-vacancies p { margin: 0; }
.two-vacancies p + p { margin-top: var(--sp-2); }
.result-two { margin: 0; }

/* A greyscale pass for looking at a screen the way somebody who cannot separate two hues
   sees it. Added by a class from the console, never shipped on any screen: no markup carries
   it. It is here because the policy refuses an injected stylesheet, which is the policy
   working. */
.sweep-grey{filter:grayscale(1)}

/* The panel saying the advert did not reach the screen. Development only, and hidden on every
   ordinary draw: it exists so a fault nobody has reproduced can be read off a screenshot. */
.al-check{margin:0;padding:var(--sp-2) var(--sp-4);background:var(--red-t);color:var(--red-h);
  font:600 var(--t-xs) var(--mono);border-top:1px solid var(--red);font-variant-numeric:tabular-nums slashed-zero}

/* ------------------------------------------------------------------------------- Guide me
 *
 * The walkthrough is the shared kit's (public/sl-kit/kit.js and kit.css, product standard 1.7, PST-141 to PST-149):
 * the ring, the box, its colours and its place on the screen are all the kit's, in the Help end's teal, and nothing
 * here gives it a colour (PST-138, PST-147). This product's old guide, with its own magenta, has gone.
 *
 * Two things the kit cannot know about this product, both only about whether the box is on the screen:
 * - it stands down while one of this product's own menus or pop-ups is open, and comes back after (PST-148): the
 *   settings cog, the Menu panel, the Overview sections panel and the "Why is this needed?" panel. The kit already
 *   stands down for its own pop-ups and for anything marked aria-modal;
 * - it is out of sight on any screen but the check screen, where its steps are. A guide that is running stays running,
 *   so coming back to the check screen finds it on the same step. */
body:has(#bar-cog[open], #bar-menu:not([hidden]), #sect-panel:not([hidden]), #scrim:not([hidden])) .slk-g,
body:has(#view-check[hidden]) .slk-g{display:none}

/* The row above the advert box that holds the kit's Guide me button, the first thing on the check screen. The button
   itself is the kit's, as it is in every product: its size and colours are not changed here. */
.paster-guide{display:flex;justify-content:flex-start;margin-bottom:var(--sp-4)}
.paster-guide:empty{display:none}
.paster-guide-wait:empty{display:flex;min-height:44px}

/* ------------------------------------------------------------- the front page
   What the Assurance Register does, why it matters, and the evidence behind it. Generated from
   the sales page and scoped to #view-door, with every class prefixed fp- so nothing here can
   reach the rest of the product. The charts are drawn by public/js/door.mjs. */
#view-door .fp-wrap{margin:0 auto;padding-left:28px;padding-right:28px}
#view-door .fp-num{font-variant-numeric:tabular-nums}
#view-door h1,#view-door h2,#view-door h3{font-family:var(--disp);font-weight:600}
#view-door .fp-eb{font-family:var(--ui)}
#view-door textarea:focus-visible,#view-door select:focus-visible{outline:3px solid var(--act);outline-offset:3px}
#view-door nav{flex:0 1 auto;min-width:0;justify-content:flex-end}
#view-door nav{display:flex;align-items:center;gap:2px;flex-wrap:nowrap}
#view-door section{padding:72px 0;border-top:1px solid var(--line)}
#view-door .fp-head{margin-bottom:32px}
#view-door .fp-sub{margin-top:8px}
#view-door [data-fill]{color:var(--amb-on-tint)}
#view-door .fp-eb{color:var(--prod);font-size:14px;font-weight:600;letter-spacing:.02em;margin:0 0 8px}
#view-door h2{font-weight:600;font-size:clamp(28px,3.3vw,40px);line-height:1.15;margin:0;max-width:28ch}
#view-door .fp-head p{color:var(--ink-2);max-width:66ch;margin:12px 0 0}
#view-door .fp-head .fp-ctas{margin-top:20px}
#view-door .fp-head .fp-ctas a{text-decoration:none}
#view-door h3{font-size:18px;line-height:1.3;margin:0 0 8px;font-weight:600}
#view-door .fp-hero{padding:56px 0 64px;border-top:0}
#view-door .fp-heroin{display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:center}
#view-door h1{font-weight:600;font-size:clamp(34px,4.6vw,58px);line-height:1.07;letter-spacing:-0.012em;margin:0 0 26px}
#view-door .fp-journey{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:560px;margin:0 0 22px}
#view-door .fp-jb{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:14px 16px;border-radius:14px;border:1px solid var(--edge);background:var(--rail);color:var(--ink);cursor:pointer;transition:border-color .2s,background .2s}
#view-door .fp-jb b{font-size:16px}
#view-door .fp-jb span{font-size:13px;color:var(--mid)}
#view-door .fp-jb:hover{border-color:var(--prod)}
#view-door .fp-jb[aria-pressed="true"]{border-color:var(--prod);background:var(--prod-t);box-shadow:inset 0 0 0 1px var(--prod)}
#view-door .fp-lede{font-size:18px;color:var(--ink-2);max-width:56ch;margin:0 0 24px;min-height:5.4em}
#view-door .fp-lede b{color:var(--amb-on-tint);font-weight:600}
#view-door .fp-ctas{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
#view-door .fp-micro{font-size:13px;color:var(--mid);margin:14px 0 0}
#view-door .fp-heropie{display:flex;flex-direction:column;align-items:center}
#view-door .fp-heropie canvas{width:100%;max-width:460px;height:auto;display:block}
#view-door .fp-pcap{text-align:center;color:var(--ink-2);font-size:15px;max-width:34ch}
#view-door .fp-pcap b{display:block;font-size:44px;font-weight:400;color:var(--amb-on-tint);line-height:1.1}
#view-door .fp-pcap small{display:block;font-size:12px;color:var(--mid);margin-top:4px}
#view-door .fp-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
#view-door .fp-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
#view-door .fp-ucard{background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column}
#view-door .fp-ucard .fp-ix{font-size:15px;color:var(--prod);margin-bottom:10px}
#view-door .fp-ucard p{color:var(--ink-2);font-size:15px;margin:0 0 14px}
#view-door .fp-ucard p:last-child{margin-bottom:0}
#view-door .fp-ucard .fp-jx{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);font-size:14px;color:var(--prod)}
#view-door .fp-cmp{width:100%;border-collapse:separate;border-spacing:0;background:var(--surf);border:1px solid var(--line);border-radius:14px;overflow:hidden;font-size:15px}
#view-door .fp-cmp th,#view-door .fp-cmp td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
#view-door .fp-cmp tr:last-child td{border-bottom:0}
#view-door .fp-cmp thead th{font-size:14px;color:var(--mid);font-weight:600;background:var(--rail)}
#view-door .fp-cmp th[scope=row]{color:var(--ink);font-weight:600;width:18%}
#view-door .fp-cmp td{color:var(--ink-2);width:20.5%}
#view-door .fp-cmp .fp-us{background:var(--prod-t);color:var(--ink)}
#view-door .fp-cmp thead .fp-us{color:var(--prod);background:var(--prod-t)}
#view-door .fp-fn{font-size:12px;color:var(--mid);margin:12px 0 0}
#view-door .fp-tl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:20px;position:relative}
#view-door .fp-tl::before{content:"";position:absolute;left:0;right:0;top:8px;height:2px;background:var(--line)}
#view-door .fp-tl::after{content:"";position:absolute;left:0;top:8px;height:2px;width:0;background:var(--prod);transition:width 1.6s cubic-bezier(.2,.7,.2,1)}
/* How far the line runs is how many changes have happened, worked out by door.mjs from today's date. */
#view-door .fp-tl.fp-on::after{width:calc(100% * var(--fp-tl-done, 5) / var(--fp-tl-all, 6))}
#view-door .fp-tl li{position:relative;padding-top:30px;transform:translateY(8px);transition:transform .5s}
#view-door .fp-tl.fp-on li{transform:none}
#view-door .fp-tl li::before{content:"";position:absolute;left:0;top:1px;width:14px;height:14px;border-radius:50%;background:var(--surf);border:2px solid var(--prod)}
#view-door .fp-tl li.fp-past::before{background:var(--prod)}
#view-door .fp-tl li.fp-next::before{border-color:var(--amb-on-tint);box-shadow:0 0 0 5px color-mix(in srgb, var(--amb) 18%, transparent)}
#view-door .fp-tl .fp-td{display:block;font-size:13px;font-weight:600;color:var(--prod);margin-bottom:6px}
#view-door .fp-tl li.fp-next .fp-td{color:var(--amb-on-tint)}
#view-door .fp-tl h3{font-size:16px}
#view-door .fp-tl p{margin:0;font-size:14px;color:var(--ink-2)}
#view-door .fp-tl .fp-who{display:inline-block;margin-top:10px;font-size:11px;padding:2px 8px;border-radius:4px;background:var(--rail);color:var(--ink-2)}
#view-door .fp-tl li.fp-next .fp-who{background:var(--amb-t);color:var(--amb-on-tint)}
@media (max-width:1020px) {
  #view-door .fp-tl{grid-template-columns:1fr 1fr 1fr}
  #view-door .fp-tl::before,#view-door .fp-tl::after{display:none}
}
@media (max-width:620px) {
  #view-door .fp-tl{grid-template-columns:1fr;gap:0;padding-left:24px}
  #view-door .fp-tl::before{display:block;left:6px;right:auto;top:0;bottom:0;width:2px;height:auto}
  #view-door .fp-tl li{padding:0 0 22px 0}
  #view-door .fp-tl li::before{left:-24px;top:2px}
}
#view-door .fp-fixgrid{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:center}
#view-door .fp-fixgrid .fp-side canvas{max-width:560px;margin:0 auto}
#view-door .fp-fxfig{display:grid;grid-template-columns:1fr 1fr;gap:24px 20px}
#view-door .fp-calc{margin-top:28px;background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:24px;display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center}
#view-door .fp-cin{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px;align-items:end}
#view-door .fp-cin label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink-2)}
#view-door .fp-cin input{background:var(--surf);color:var(--ink);border:1px solid var(--edge);border-radius:10px;min-height:46px;padding:0 12px;font:inherit;font-size:16px}
#view-door .fp-cout{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
#view-door .fp-cout div{border-top:2px solid var(--ink);padding-top:10px}
#view-door .fp-cout b{display:block;font-family:var(--ui);font-weight:700;font-size:32px;line-height:1.1}
#view-door .fp-cout span{font-size:13px;color:var(--ink-2)}
/* The questions run the full width, to the same right edge as every block above them; the
   answers keep a reading measure. */
#view-door .fp-faq{display:grid;gap:10px}
#view-door .fp-faq details{background:var(--surf);border:1px solid var(--line);border-radius:12px}
#view-door .fp-faq summary{list-style:none;cursor:pointer;padding:16px 50px 16px 20px;font-weight:600;font-size:16px;position:relative}
#view-door .fp-faq summary::-webkit-details-marker{display:none}
#view-door .fp-faq summary::after{content:"";position:absolute;right:20px;top:50%;width:20px;height:20px;transform:translateY(-50%);background-color:var(--prod);-webkit-mask:var(--i-chevron) center / contain no-repeat;mask:var(--i-chevron) center / contain no-repeat;transition:transform .2s}
#view-door .fp-faq details[open] summary::after{transform:translateY(-50%) rotate(180deg)}
#view-door .fp-faq details>div{padding:0 20px 18px}
#view-door .fp-faq p{margin:0;color:var(--ink-2);font-size:15px;max-width:75ch}
#view-door .fp-faq summary:focus-visible{outline:3px solid var(--act);outline-offset:2px;border-radius:12px}
@media (max-width:1020px) {
  #view-door .fp-fixgrid,#view-door .fp-calc{grid-template-columns:1fr}
}
@media (max-width:620px) {
  #view-door .fp-fxfig,#view-door .fp-cin,#view-door .fp-cout{grid-template-columns:1fr}
}
#view-door .fp-lsub{font-size:13px;color:var(--mid);margin-top:4px;min-height:2.8em}
#view-door .fp-delta{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:22px 0 0;padding:18px 22px;border:1px solid var(--prod);border-radius:14px;background:var(--prod-t);text-align:center}
#view-door .fp-delta b{font-family:var(--ui);font-weight:700;font-size:clamp(40px,5vw,60px);line-height:1;color:var(--grn)}
#view-door .fp-delta span{font-size:17px;color:var(--ink);text-align:left}
#view-door .fp-proofgrid{display:grid;grid-template-columns:1fr 1.05fr;gap:28px}
#view-door .fp-prooflist{display:grid;gap:16px}
#view-door .fp-certfoot{margin:14px 0 0;font-size:12px;color:var(--mid)}
@media (max-width:1020px) {
  #view-door .fp-proofgrid{grid-template-columns:1fr}
}
#view-door .fp-stat{text-align:left;background:none;border:0;border-top:2px solid var(--ink);padding:14px 0 0;color:inherit;cursor:pointer;width:100%}
#view-door .fp-stat .fp-sv,#view-door .fp-stat .fp-sl,#view-door .fp-stat .fp-src{display:block}
#view-door .fp-sv{font-size:44px;line-height:1}
#view-door .fp-sl{color:var(--ink-2);font-size:15px;margin-top:8px}
#view-door .fp-src{font-size:13px;color:var(--prod);margin-top:8px;max-height:0;overflow:hidden;opacity:0;visibility:hidden;transition:max-height .35s,opacity .35s,visibility .35s}
#view-door .fp-stat[aria-expanded="true"] .fp-src{max-height:160px;opacity:1;visibility:visible}
#view-door .fp-stat::after{content:"Tap for source";display:block;font-size:12px;color:var(--mid)}
#view-door .fp-stat[aria-expanded="true"]::after{content:"Hide"}
#view-door .fp-common{margin-top:36px;background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:22px 24px}
#view-door .fp-common h3{margin-bottom:12px}
#view-door .fp-bar{display:grid;grid-template-columns:280px 1fr 70px;gap:16px;align-items:center;padding:7px 0}
/* A finding's label always sits under its name, never beside a short one: on a desktop it sat
   beside "No pay figure" and under every other name, so one row stood shorter (27 September 2026). */
#view-door .fp-bl{font-size:15px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#view-door .fp-chip{font-size:11px;padding:2px 8px;border-radius:4px;white-space:nowrap}
#view-door .fp-b-m{background:var(--red-t);color:var(--red-h)}
#view-door .fp-b-s{background:var(--amb-t);color:var(--amb-on-tint)}
#view-door .fp-b-h{background:var(--rail);color:var(--ink-2)}
#view-door .fp-track{height:12px;background:var(--line2);border-radius:3px;overflow:hidden}
#view-door .fp-fill{display:block;height:100%;border-radius:3px;transition:width 1s cubic-bezier(.2,.7,.2,1)}
#view-door .fp-bp{text-align:right;font-size:15px}
#view-door .fp-risk{background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column}
#view-door .fp-rk{font-size:30px;line-height:1.1;color:var(--amb-on-tint);display:block;margin-bottom:14px;min-height:1.1em}
#view-door .fp-risk p{color:var(--ink-2);font-size:15px;margin:0;flex:1}
#view-door .fp-risk .fp-rsrc{flex:0;font-size:12px;color:var(--mid);margin-top:14px}
#view-door .fp-steps{list-style:none;margin:0 0 40px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
#view-door .fp-steps .fp-n{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--prod);color:var(--on-fill);font-weight:700;margin-bottom:12px}
#view-door .fp-steps p{color:var(--ink-2);font-size:15px;margin:0}
#view-door .fp-vs{display:grid;grid-template-columns:1fr 1fr;gap:20px}
#view-door .fp-side{background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:20px 22px;display:flex;flex-direction:column}
#view-door .fp-side h3{color:var(--ink-2);font-size:15px;margin:0}
#view-door .fp-side canvas{width:100%;height:auto;display:block}
#view-door .fp-v{font-size:clamp(52px,6vw,76px);line-height:1}
#view-door .fp-l{color:var(--ink-2);font-size:15px;min-height:1.6em}
#view-door .fp-stage{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#view-door .fp-st{font-size:13px;min-height:34px;padding:0 13px;border-radius:var(--r-s);border:1px solid var(--edge);background:transparent;color:var(--ink-2);cursor:pointer}
#view-door .fp-st.fp-on{background:var(--act);color:var(--on-fill);border-color:var(--act-h)}
#view-door .fp-keyrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:16px;font-size:13px;color:var(--ink-2)}
#view-door .fp-keyrow i{display:inline-block;width:11px;height:11px;border-radius:2px;margin-right:6px;vertical-align:-1px}
#view-door .fp-dl{font-size:14px;color:var(--ink-2);display:block;margin-bottom:8px}
#view-door .fp-drow{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;align-items:center}
#view-door .fp-grp{margin:0 0 18px}
#view-door .fp-grp h4{margin:0 0 8px;font-size:14px;color:var(--prod);font-weight:600}
#view-door .fp-done{opacity:.55}
#view-door .fp-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
#view-door .fp-summary div{font-size:13px;color:var(--ink-2)}
#view-door .fp-summary b{display:block;font-family:var(--ui);font-size:28px;color:var(--ink);font-weight:700}
#view-door .fp-askin{flex:1;min-width:160px;background:var(--surf);color:var(--ink);border:1px solid var(--edge);border-radius:10px;padding:0 12px;min-height:36px;font:inherit;font-size:14px}
#view-door .fp-opt{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
#view-door .fp-audit{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:flex-end;margin-top:24px}
#view-door .fp-audit label{display:flex;flex-direction:column;text-align:left;font-size:13px;color:var(--ink-2);gap:6px}
#view-door .fp-audit input,#view-door .fp-audit select{background:var(--surf);color:var(--ink);border:1px solid var(--edge);border-radius:10px;padding:0 12px;min-height:46px;font:inherit;min-width:210px}
#view-door .fp-srcs{border-top:1px solid var(--line);padding:36px 0 0}
#view-door.fp-j-own [data-j="agency"],#view-door.fp-j-agency [data-j="own"]{display:none!important}
@media (max-width:1020px) {
  #view-door .fp-heroin,#view-door .fp-vs,#view-door .fp-grid4,#view-door .fp-steps{grid-template-columns:1fr 1fr}
  #view-door .fp-grid3{grid-template-columns:1fr 1fr}
  #view-door .fp-bar{grid-template-columns:200px 1fr 60px}
}
@media (max-width:620px) {
  #view-door .fp-heroin,#view-door .fp-vs,#view-door .fp-grid4,#view-door .fp-steps,#view-door .fp-grid3,#view-door .fp-journey{grid-template-columns:1fr}
  #view-door .fp-bar{grid-template-columns:1fr 56px}
  #view-door .fp-bar .fp-track{grid-column:1/-1;order:3}
  #view-door .fp-cmp thead{display:none}
  #view-door .fp-cmp,#view-door .fp-cmp tbody,#view-door .fp-cmp tr,#view-door .fp-cmp th,#view-door .fp-cmp td{display:block;width:100%!important}
  #view-door .fp-cmp th[scope=row]{background:var(--rail)}
  #view-door .fp-cmp td::before{content:attr(data-h);display:block;font-size:12px;color:var(--mid);margin-bottom:2px}
  #view-door .fp-summary{grid-template-columns:1fr 1fr}
}
#view-door .fp-t-hero{padding:72px 0 60px;border-top:0}
#view-door .fp-t-hero h1{font-size:clamp(38px,5.4vw,62px);line-height:1.08;max-width:17ch;margin:0}
#view-door .fp-t-lede{font-size:20px;color:var(--ink-2);max-width:60ch;margin-top:22px}
#view-door .fp-t-proof{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:44px}
#view-door .fp-t-pv{background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:18px 20px}
#view-door .fp-t-pv b{display:block;font-family:var(--ui);font-size:30px;font-weight:600;color:var(--ink);line-height:1.2}
#view-door .fp-t-pv span{display:block;font-size:15px;color:var(--ink-2);margin-top:4px}
#view-door .fp-t-intro{font-size:18px;color:var(--ink-2);max-width:62ch;margin-top:14px}
#view-door .fp-t-risks{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px}
#view-door .fp-t-risk{border-left:3px solid var(--amb);background:var(--rail);border-radius:0 12px 12px 0;padding:18px 20px}
#view-door .fp-t-risk p{color:var(--ink-2);font-size:16px;margin:0}
#view-door .fp-t-risk small{display:block;color:var(--mid);font-size:13px}
#view-door .fp-t-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px}
#view-door .fp-t-ben{background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:24px;display:flex;flex-direction:column}
#view-door .fp-t-ben h3{margin:0 0 6px}
#view-door .fp-t-ben p{color:var(--ink-2);font-size:16px;margin:0}
#view-door .fp-t-ben.fp-wide{grid-column:span 2}
#view-door .fp-t-ic{width:40px;height:40px;border-radius:10px;background:var(--prod-t);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
#view-door .fp-t-ic svg{width:22px;height:22px;stroke:var(--prod);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#view-door .fp-t-who{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:34px}
#view-door .fp-t-whoc{background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:26px}
#view-door .fp-t-whoc ul{margin:12px 0 18px;padding-left:20px;color:var(--ink-2)}
#view-door .fp-t-whoc li{margin:6px 0}
/* The detail section's opening line. It was set at weight 400 and 48px, the only heading on the page not at 600,
   and larger than the section title above it, so on the live page it read as a different font. */
#view-door .fp-h1like{font-weight:600;font-size:clamp(24px,2.8vw,34px);line-height:1.15;letter-spacing:-.015em;margin:0 0 26px;max-width:none}
#view-door .fp-t-detail{padding:40px 0 0;border-top:0;text-align:center}
#view-door .fp-t-detail .fp-eb{margin:0}
#view-door .fp-t-detail h2{margin:6px auto 0}
#view-door .fp-sv,#view-door .fp-rk,#view-door .fp-v,#view-door .fp-pcap b,#view-door .fp-delta b,#view-door .fp-cout b,#view-door .fp-t-pv b,#view-door .fp-bp,#view-door .fp-fig,#view-door .fp-lede b,#view-door #fp-hpv{font-weight:600}
#view-door .fp-fig{color:inherit}
#view-door .fp-stat{align-self:stretch;display:flex;flex-direction:column;height:100%}
#view-door .fp-stat .fp-sl{min-height:3.2em}
#view-door .fp-stat::after{margin-top:auto;padding-top:10px}
#view-door .fp-t-risk{display:flex;flex-direction:column}
#view-door .fp-t-risk small{margin-top:auto;padding-top:12px}
#view-door .fp-t-whoc{display:flex;flex-direction:column}
#view-door .fp-t-whoc [data-journey]{margin-top:auto}
#view-door .fp-t-whoc [data-journey][aria-pressed="true"]{border-color:var(--prod);background:var(--prod-t);color:var(--ink);box-shadow:inset 0 0 0 1px var(--prod)}
#view-door .fp-t-pv,#view-door .fp-t-ben,#view-door .fp-ucard,#view-door .fp-risk,#view-door .fp-side{height:100%}
#view-door .fp-side .fp-lsub{min-height:4.3em}
#view-door .fp-side .fp-stage{margin-top:auto;padding-top:14px}
#view-door .fp-delta{align-items:center}
#view-door .fp-delta span{max-width:46ch}
#view-door .fp-proofgrid{align-items:stretch}
#view-door .fp-certfoot{margin-top:auto;padding-top:12px}
#view-door .fp-cout>div{display:flex;flex-direction:column}
#view-door .fp-calc>*,#view-door .fp-cin>*,#view-door .fp-cout>*{min-width:0}
#view-door .fp-cin input{min-width:0;width:100%}
@media (max-width:1020px) {
  #view-door .fp-t-proof,#view-door .fp-t-risks,#view-door .fp-t-benefits{grid-template-columns:1fr 1fr}
  #view-door .fp-t-ben.fp-wide{grid-column:span 2}
}
@media (max-width:620px) {
  #view-door .fp-t-proof,#view-door .fp-t-risks,#view-door .fp-t-benefits,#view-door .fp-t-who{grid-template-columns:1fr}
  #view-door .fp-t-ben.fp-wide{grid-column:auto}
  #view-door .fp-t-hero{padding:48px 0 40px}
  #view-door .fp-t-lede{font-size:18px}
}
#view-door h1,#view-door h2{font-weight:600;letter-spacing:-.015em}
#view-door .fp-ucard,#view-door .fp-risk,#view-door .fp-stat,#view-door .fp-t-pv,#view-door .fp-t-ben,#view-door .fp-t-whoc,#view-door .fp-t-risk,#view-door .fp-side,#view-door .fp-calc,#view-door .fp-jb{box-shadow:-1px 1px 2px rgba(var(--shade-rgb), .06),-1px 1px 3px rgba(var(--shade-rgb), .10)}
#view-door #fp-vw{color:var(--amb-on-tint)!important}
#view-door #fp-va:not(.fp-s6){color:var(--grn)!important}
#view-door #fp-va.fp-s6{color:var(--amb-on-tint)!important}
#view-door .fp-vs>*,#view-door .fp-heroin>*{min-width:0}
#view-door .fp-side canvas{max-width:100%}
#view-door .fp-herokey{justify-content:center;margin-top:12px}

/* ---- set by the conversion: the page lives inside the app's main column ---- */
#view-door{font-family:var(--ui);color:var(--ink)}
#view-door .fp-wrap{max-width:none;padding:0}
#view-door section{scroll-margin-top:calc(var(--bar-h, 52px) + 8px)}
#view-door .fp-h1{font-family:var(--disp);font-weight:600}
#view-door .ghost,#view-door .btn{white-space:nowrap}
#view-door .fp-tip{position:fixed;left:var(--tx,0);top:var(--ty,0);pointer-events:none;background:var(--nav);color:var(--on-nav);font-size:13px;padding:6px 9px;border-radius:6px;opacity:0;transition:opacity .15s;z-index:60;white-space:nowrap}
#view-door .fp-tip.fp-tip-on{opacity:1}
#view-door .fp-tl li{transition-delay:var(--fp-delay,0s)}
#view-door .fp-fill{width:0}
#view-door .fp-bars.fp-on .fp-fill,#view-door #fp-bars.fp-on .fp-fill{width:var(--fp-w,0)}
#view-door .fp-fill-m{background:var(--red)}
#view-door .fp-fill-s{background:var(--nav-amb)}
#view-door .fp-fill-h{background:var(--gry)}
#view-door .fp-sr{position:absolute;left:-9999px}
/* These stood in for written-in styles, which outrank every rule, so they are marked to do the same. */
#view-door .fp-s1{margin-top:28px !important}
#view-door .fp-s2{background:var(--red) !important}
#view-door .fp-s3{background:var(--grn) !important}
#view-door .fp-s4{margin-top:48px !important}
#view-door .fp-s5{margin-top:36px !important}
#view-door .fp-s6{color:var(--amb-on-tint) !important}
#view-door .fp-s7{color:var(--grn) !important}
#view-door .fp-s8{background:var(--nav-amb) !important}
#view-door .fp-s9{background:var(--gry) !important}
#view-door .fp-s10{margin-top:24px !important}
#view-door .fp-s11{margin-top:4px !important}
#view-door .fp-s12{grid-column:1/-1 !important;margin-top:0 !important}
#view-door .fp-s13{margin-bottom:14px !important}
#view-door .fp-s14{position:absolute !important;left:-9999px !important}
/* A button takes the page's type unless a rule above says otherwise. Weightless, so any rule wins. */
:where(#view-door button){font-family:inherit}
/* The one call to action that is a link rather than a button: an email, so it reads as a button. */
#view-door a.btn{text-decoration:none}

/* ------------------------------------------------------- the Overview sections panel

   The arrow beside Overview opens the page's sections in four groups, under the bar and across
   its full width, as GOV.UK's menu bar does. It opens on a press only (public/js/sections.mjs).
   A light panel under a navy bar, so the bar's white focus ring is replaced inside it. */
.sect-toggle { padding: var(--sp-2); min-width: 32px; justify-content: center; }
.sect-toggle .i { transition: transform var(--m-state); }
.sect-toggle[aria-expanded="true"] { color: var(--on-nav); background: rgba(var(--on-nav-rgb), .12); }
.sect-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.sect-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  background: var(--surf); color: var(--ink);
  border-bottom: 1px solid var(--line); box-shadow: -8px 8px 20px rgba(var(--shade-rgb), .14);
  max-height: calc(100vh - var(--bar-h) - 16px); overflow-y: auto;
}
.sect-panel[hidden] { display: none; }
.sect-h { margin: 0 0 var(--sp-2); font: 600 var(--t-s) var(--ui); color: var(--mid); text-transform: uppercase; letter-spacing: .04em; }
.sect-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sect-a {
  display: flex; align-items: center; min-height: 36px; padding: 6px var(--sp-2); margin-left: calc(-1 * var(--sp-2));
  border-radius: var(--r-s); color: var(--ink); text-decoration: none; font: 500 var(--t-m) var(--ui);
}
.sect-a:hover { background: var(--bg); color: var(--act); text-decoration: underline; }
.bar .sect-panel a:focus-visible { outline: 2px solid var(--act); outline-offset: 1px; }
@media (max-width: 1139px) {
  .sect-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sect-panel { grid-template-columns: 1fr; gap: var(--sp-4); padding: var(--sp-4); }
  .sect-a { min-height: 44px; }
}

/* The same sections from inside the page: a contents strip under the opening, and a way back
   to the top at the end of the long stretches. Jump targets clear the sticky bar. */
#view-door .fp-jump{scroll-margin-top:calc(var(--bar-h, 52px) + 8px)}
#view-door .fp-toc{background:var(--surf);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}
#view-door .fp-toc .fp-wrap{display:grid;gap:8px}
#view-door .fp-toc-h{margin:0;font-size:13px;font-weight:600;color:var(--mid);text-transform:uppercase;letter-spacing:.04em}
#view-door .fp-toc ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
#view-door .fp-toc a{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border:1px solid var(--edge);border-radius:var(--r-s);background:var(--surf);color:var(--act);font-size:14px;font-weight:600;text-decoration:none}
#view-door .fp-toc a:hover{border-color:var(--act);background:var(--act-t)}
#view-door .fp-top{margin:32px 0 0;font-size:14px}
#view-door .fp-top a{color:var(--act)}
/* A section focused by a jump is not a control, so it wears no ring. */
#view-door [tabindex="-1"]:focus{outline:none}
/* The third stage on the right-hand pie is modelled, not measured. Its key swatch is hatched with
   a dashed edge, as the slice is, so the difference never rests on colour alone. */
#view-door .fp-keyrow i.fp-hatch{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--grn) 65%,var(--surf)) 0 2px,var(--grn-t) 2px 4px);border:1px dashed var(--prod-d)}
#view-door #fp-va.fp-va-model{text-decoration:underline dashed 2px;text-underline-offset:8px}
/* Before and after as a pair: the same tag, the same size of figure and the same lines under it,
   red-amber for what was wrong and green for what the product does about it. */
#view-door .fp-tag{align-self:flex-start;margin:10px 0 6px;padding:3px 12px;border-radius:4px;font:700 12px var(--ui);letter-spacing:.06em;text-transform:uppercase;background:var(--prod-t);color:var(--prod-d)}
#view-door .fp-tag.fp-tag-bad{background:var(--amb-t);color:var(--amb-on-tint)}
#view-door .fp-side .fp-l{min-height:3.2em}
#view-door .fp-stages{font-size:14px}
#view-door .fp-stages-h{font-weight:600;color:var(--ink);margin:18px 0 8px}
#view-door .fp-stages th,#view-door .fp-stages td{padding:10px 12px;width:auto}
#view-door .fp-stages tbody tr:last-child th{border-bottom:0}
/* Small print: the notes and disclaimers on the front page are folded under one short label each,
   closed until somebody asks for them. The same style everywhere, so it reads as one thing. */
#view-door .fp-fine{max-width:80ch;margin:20px 0 0;font-size:14px;color:var(--mid)}
#view-door .fp-fine summary{display:inline-flex;align-items:center;gap:8px;min-height:32px;cursor:pointer;list-style:none;font-weight:600;color:var(--ink-2);border-radius:6px}
#view-door .fp-fine summary::-webkit-details-marker{display:none}
#view-door .fp-fine summary::before{content:"";flex:none;width:18px;height:18px;background-color:var(--prod);-webkit-mask:var(--i-chevron) center / contain no-repeat;mask:var(--i-chevron) center / contain no-repeat;transition:transform .2s}
#view-door .fp-fine[open] summary::before{transform:rotate(180deg)}
#view-door .fp-fine summary:hover{color:var(--ink)}
#view-door .fp-fine summary:focus-visible{outline:3px solid var(--act);outline-offset:2px}
#view-door .fp-fine>div{padding:6px 0 0 28px}
#view-door .fp-fine p{margin:0 0 10px}
#view-door .fp-fine .fp-stages{margin:0 0 12px}
#view-door .fp-fine .fp-stages-h{margin:4px 0 8px}
#view-door .fp-fine-wide{max-width:none}
/* The paste box's guard: why a text cannot be checked, directly under the box, before anything is
   pressed, with the box itself outlined in the same red. */
.paster-box textarea[aria-invalid="true"] { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 0; }
.paste-guard:empty { display: none; }
.paste-guard { display: grid; gap: 8px; margin-top: 8px; }
.paste-guard .notice { margin: 0; }
.paste-guard .notice p { margin: 0; }
/* A report's full record, under the row, in the exact form Copy puts on the clipboard. */
#view-admin .misfire-more { margin-top: var(--sp-2); }
#view-admin .misfire-more summary { cursor: pointer; font-weight: 600; min-height: 24px; }
#view-admin .misfire-block {
  margin: var(--sp-2) 0 0; padding: var(--sp-3); white-space: pre-wrap; overflow-wrap: anywhere;
  font: 400 var(--t-xs)/1.5 var(--mono); background: var(--io-bg); border: 1px solid var(--line); border-radius: var(--r-s);font-variant-numeric:tabular-nums slashed-zero}
#view-admin .misfire-note { white-space: pre-wrap; font-style: normal; }

/* Help is the shared kit's (public/sl-kit/kit.css): the Help end of the docked line, help mode and the
   guide, all in the kit's one teal (PST-62, PST-138). This sheet has no help colours of its own: the
   two help parts it draws itself, Help in the footer and the (i) explanation with its panel, take the
   kit's --slk-teal and its tint, never a value typed here. */

/* A Share button at the top right of every part of the Overview (door.mjs). Small and quiet so it
   never competes with the heading beside it, and the same button everywhere. On a phone it is
   the icon alone, with its name still read out. */
#view-door .fp-share-host{position:relative}
#view-door .fp-share-sec{position:absolute;top:0;right:0;z-index:2;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 14px;border-radius:var(--r-s);border:1px solid var(--edge);background:var(--surf);color:var(--act);font:600 13px var(--ui);cursor:pointer;box-shadow:-2px 2px 4px rgba(var(--shade-rgb), .08)}
#view-door .fp-share-sec:hover{border-color:var(--act);background:var(--act-t)}
#view-door .fp-share-sec .i svg{width:16px;height:16px}
#view-door .fp-share-host > .fp-head, #view-door .fp-share-host > .fp-eb:first-of-type{padding-right:110px}
#view-door section.fp-t-hero .fp-share-sec, #view-door section.fp-t-detail .fp-share-sec{top:-8px}
@media (max-width:620px){
  #view-door .fp-share-sec{padding:0;width:36px;justify-content:center}
  #view-door .fp-share-w{display:none}
  #view-door .fp-share-host > .fp-head, #view-door .fp-share-host > .fp-eb:first-of-type{padding-right:44px}
}

/* The chart's button sits just above it, clear of the right-hand panel's heading. */
#view-door #fp-chart{margin-top:52px}
#view-door #fp-chart > .fp-share-sec{top:-46px}
/* Every stage's wording in one place, the longest setting the height (door.mjs, layer). Hidden
   ones are hidden from a screen reader too, which reads the one showing. */
#view-door .fp-layers{display:grid}
#view-door .fp-layers>span{grid-area:1/1;visibility:hidden}
#view-door .fp-layers>span.fp-now{visibility:visible}

/* ------------------------------------------------------------------ the phone's menu

   public/js/menu.mjs. On a narrow screen the bar is one short row, the name, the checks lozenge,
   the settings cog and Menu, and the page links float down in a panel under it. */
.bar-burger { display: none; }
@media (max-width: 1119px) {
  .bar { gap: var(--sp-2); padding: 0 var(--sp-4); }
  /* The bar's gap is 8px here, so the brand adds 4px of its own: 12px clear to its right at every
     width (PST-03). Before 17 November 2026 the checks lozenge sat 8px from it between 441 and
     1119px wide. */
  .bar-brand { margin-right: var(--sp-1); }
  /* The count takes what is left between the name and the settings cog, up to its width on a
     computer, centred in the middle of the bar with the product's own tools (PST-05), in a box whose
     width is the screen's and never the count's. The right of the bar is the cog alone (PST-07). */
  .allow-wrap { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .allow-chip {
    width: 100%; max-width: var(--chip-w, 216px); height: 44px; min-height: 44px; padding: 0 var(--sp-3);
  }
  /* Where the lozenge is narrow the count may take two lines; its second line is said only where it
     is the thing to know ("Buy more checks", PST-23). */
  .allow-chip-n { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; line-height: 1.1; }
  .allow-chip .allow-chip-l { display: none; }
  .allow-chip[data-counts="account"][data-tone="out"] .allow-chip-l { display: block; white-space: nowrap; }
  .bar-burger {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
    height: 44px; padding: 0 14px; border-radius: var(--r-s); cursor: pointer;
    font: 600 var(--t-b) var(--ui); color: var(--on-nav);
    background-color: var(--nav-plate); background-image: linear-gradient(200deg, var(--nav-plate-1) 0%, var(--nav-plate-2) 55%, var(--nav-plate-3) 100%);
    border: 1px solid rgba(var(--on-nav-rgb), .22);
    box-shadow: inset -1px 1px 0 rgba(var(--on-nav-rgb), .30), -2px 2px 0 var(--nav-plate-foot), -5px 5px 12px rgba(var(--nav-shade-rgb), .55);
  }
  .bar-burger[hidden] { display: none; }
  .bar-burger .i svg { width: 20px; height: 20px; color: var(--nav-focus); }
  .bar-burger[aria-expanded="true"] { border-color: rgba(var(--on-nav-rgb), .6); }
  .bar-menu {
    position: absolute; top: calc(100% + 6px); right: var(--sp-2); width: min(32rem, calc(100vw - 2 * var(--sp-2))); z-index: 41;
    background: var(--nav); border: 1px solid rgba(var(--on-nav-rgb), .16); border-radius: var(--r-l);
    padding: var(--sp-3); box-shadow: -6px 6px 24px rgba(var(--nav-shade-rgb), .45);
    max-height: calc(100vh - var(--bar-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
    animation: menu-in .2s ease-out both;
  }
  .bar-menu[hidden] { display: none; }
  .bar-menu .bar-nav { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
  .bar-menu .navlink { min-height: 48px; font-size: var(--t-m); justify-content: flex-start; padding: 0 var(--sp-3); }
  .bar-menu .navlink:not(.sect-toggle) { grid-column: 1; }
  .bar-menu .sect-toggle { grid-column: 2; grid-row: 1; min-width: 48px; justify-content: center; }
  .bar-menu .navlink-t { display: inline; }
  .bar-menu .navlink-s { display: none; }
  .bar-menu .sect-panel {
    position: static; grid-column: 1 / -1; border-radius: var(--r-m); box-shadow: none; border: none;
    max-height: none; margin: 4px 0;
  }
  /* The cog, the same height as Menu beside it, so a finger can find it. */
  .bar-cog > summary { width: 44px; height: 44px; }
  .bar-settings { min-width: min(260px, calc(100vw - 2 * var(--sp-2))); }
  .bar-set-row { min-height: 48px; }
}
@media (max-width: 1119px) and (min-width: 480px) {
  .allow-chip-gauged .allow-gauge { display: block; }
}
/* Phones: the ring gives its room to the words, which still say the number. The menu button keeps
   the name of the screen you are on (PST-05) and gives up its picture instead. */
/* The cog leaves the bar below 524px, from the first paint, so the lozenge keeps room for its words;
   menu.mjs moves its Settings panel to the bottom of the Menu panel (13 November 2026). 524 rather
   than the phones' 480, because from 480 the lozenge also draws its ring, and with the cog beside it
   its longest words were cut off by 8px at 480 and 481 (the header robot's fine sweep; 488 fits). In
   the Menu panel every setting is 48px tall, the size of a finger there. */
/* And the checks lozenge leaves it too, for the top of the Menu panel (16 November 2026): the brand
   keeps the standard's full sizes on a phone (PST-03) and the menu button says the screen's name
   (PST-05), so below 524px the bar is the brand and the menu button. In the panel the lozenge is
   one full-width row with both its lines. 524 since 17 November 2026 (520 before), when the brand took
   its 12px clear to the right (PST-03): the 4px it took cut the lozenge's longest words by 7px from
   520 to 523 (the header robot's sweep). */
@media (max-width: 523px) {
  header.bar .bar-cog { display: none; }
  header.bar > .allow-wrap { display: none; }
  .bar-menu > .allow-wrap { margin-bottom: var(--sp-3); }
  .bar-menu .allow-chip { width: 100%; max-width: none; height: auto; min-height: 48px; padding: 6px var(--sp-3); }
  .bar-menu .allow-chip .allow-chip-l { display: block; white-space: normal; }
  .bar-menu .allow-chip-n { white-space: normal; }
  .bar-menu .bar-settings {
    position: static; min-width: 0; margin-top: var(--sp-3); box-shadow: none; border-radius: var(--r-m);
  }
  .bar-menu .bar-set-motion { min-height: 48px; }
}
@media (max-width: 479px) {
  .allow-chip-gauged .allow-gauge { display: none; }
  .allow-chip { padding: 0 var(--sp-2); }
  .bar-burger { padding: 0 12px; min-width: 44px; }
}
/* The smallest phones: the brand keeps the standard's sizes (PST-03) and its 12px clear of the edge. */
@media (max-width: 360px) {
  .bar { gap: 6px; padding: 0 12px; }
  /* 6px of gap and 6px of its own: still 12px clear to its right (PST-03). */
  .bar-brand { gap: 8px; margin-right: 6px; }
  .bar-burger .i { display: none; }
  .allow-chip-n { font-size: 12px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* The phone's bar is one short row from the first paint, not only once menu.mjs has run. Before
   1 October 2026 the page links and the tools sat in the bar until the script moved them
   into the menu, so a phone drew a bar about 600px tall and then shrank it to 60 (52 now), and the whole
   page jumped up: a layout shift of 0.93 on /prices and /check, against Google's 0.1. Here they
   are kept out of sight while they are still in their places in the bar; the script moves them
   into the menu panel, where these rules no longer reach them, exactly as before. */
@media (max-width: 1119px) {
  header.bar > .bar-nav, header.bar > .console-row { display: none; }
}


/* ------------------------------------------------------------------ one layout on a phone

   The owner's rule for the phone: every text and box evenly spaced, and anything that can be
   symmetrical is. Before this, a row of buttons on a phone was as wide as each button's own
   words, so it wrapped to a ragged edge: three share buttons and one left over, two buttons of
   different widths under every opening, answers in pills of every length. On a phone a group of
   controls is now either one full-width column or a grid of equal cells, the same in every place
   it appears, and the smaller mismatches the audit of 27 September 2026 found are evened out. */

/* An eyebrow inside a heading block is green, with its space below it, like every other eyebrow.
   ".fp-head p" is declared later than ".fp-eb" with the same weight, so it quietly turned half
   the eyebrows on the page grey and moved their gap from under them to over them. */
#view-door .fp-head > .fp-eb { color: var(--prod); margin: 0 0 8px; }

@media (max-width: 620px) {
  /* Groups of buttons: one full-width column. */
  #view-door .fp-ctas { flex-direction: column; align-items: stretch; }
  #view-door .fp-ctas > .btn, #view-door .fp-ctas > .ghost { width: 100%; }
  .door-do > .btn, .door-do > .ghost { flex: 1 1 100%; }
  .paster-acts { flex-direction: column; align-items: stretch; }
  .paster-acts .btn, .paster-acts .ghost { width: 100%; }
  .legal-body button[type="submit"], #verify-go, #text-go { width: 100%; }

  /* The questions' Back and Carry on share the row half and half; Send takes the top row alone. */
  .q-nav > .btn { flex: 1 1 0; }
  .q-nav > .btn-lg { flex: 1 1 100%; order: -1; }

  /* Share: two equal columns, and an odd last button across both. */
  .share-row { display: grid; grid-template-columns: 1fr 1fr; }
  .share-row > .share-do { width: 100%; }
  .share-row > .share-do:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* The contents strip and the chart's four stages: two equal columns. */
  #view-door .fp-toc ul { display: grid; grid-template-columns: 1fr 1fr; }
  #view-door .fp-toc a { display: flex; justify-content: center; width: 100%; text-align: center; }
  #view-door .fp-stage { display: grid; grid-template-columns: 1fr 1fr; }
  #view-door .fp-st { width: 100%; padding: 6px 10px; line-height: 1.3; }

  /* A heading block: the eyebrow and heading keep clear of the Share button beside them, and the
     sentence under them uses the full width at the size of the cards' own text. It was 13.5px,
     smaller than the cards below it, and 44px short of the right edge. */
  #view-door .fp-share-host > .fp-head { padding-right: 0; }
  #view-door .fp-head > .fp-eb, #view-door .fp-head > h2 { padding-right: 44px; }
  #view-door .fp-head > p:not(.fp-eb) { font-size: 16px; line-height: 1.55; max-width: none; }
  #view-door h2 + .fp-lede { margin-top: 12px; }

  /* "The full detail" starts on the left like every other part on a phone. */
  #view-door .fp-t-detail { text-align: left; }
  #view-door .fp-t-detail h2 { margin: 6px 0 0; }

  /* Figures: no line of empty space kept for a second column that a phone does not have, and
     no shadow on a block with no background, which drew a stray line down its right edge. */
  #view-door .fp-stat { box-shadow: none; padding: 14px 0 16px; }
  #view-door .fp-stat .fp-sl { min-height: 0; }
  #view-door .fp-stat::after { margin-top: 8px; padding-top: 0; }
  #view-door .fp-delta { flex-direction: column; }
  #view-door .fp-delta span { text-align: center; }

  /* Footer and cross links: one to a line, evenly spaced, rather than pairs where two fitted. */
  .foot-legal { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .legal-cross { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .legal-cross-h { flex-basis: auto; }

  /* A table of three columns on a phone left the last one a word or two wide. Each row becomes a
     block: its first cell as the heading, then each other cell under the name of its column. */
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body td { display: block; width: 100%; }
  .legal-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-body tr { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
  .legal-body td { border: 0; padding: 2px 0; }
  .legal-body td:first-child { font-weight: 700; color: var(--ink); padding-bottom: var(--sp-1); }
  .legal-body td[data-h]:not(:first-child)::before {
    content: attr(data-h); display: block; margin-top: var(--sp-2);
    font: 700 var(--t-xs) var(--ui); letter-spacing: .05em; text-transform: uppercase; color: var(--mid);
  }
}

/* --------------------------------------------------------------------- the console's bar

   On the console the bar is the same 52px navy bar as on every other page (PST-01, PST-06). The
   console's own sections take the place of the site's page links, as tabs in the bar on a computer
   (PST-05): always on screen, one press to any of them, a group dropping its parts down under its
   name. Below 1120px they are in the Menu panel, like the site's links (menu.mjs). The tools on the
   right stay. main.mjs says which view is showing on the root; public/js/admin.mjs fills the sections
   once the console is open. Until 16 November 2026 they were a blue band under the bar, inside the
   same header, so the console's header was taller than 52px and not the bar every other page has. */

:root[data-view="admin"] .bar-nav { display: none; }
:root[data-view="admin"] .console-row:not([hidden]) { display: flex; align-items: center; gap: 4px; }
:root[data-view="admin"] .bar > .console-row:not([hidden]) {
  flex: 1 1 auto; min-width: 0; justify-content: space-between; gap: var(--sp-3);
}
:root[data-view="admin"] .bar > .console-row .console-nav { flex-wrap: nowrap; }
/* In the bar, a section is a tab, drawn as the site's page links are: dim words on the navy, white
   under the pointer, and the one you are on white on a light wash with the product's green under it. */
.bar > .console-row .console-nav .navitem {
  flex: none; width: auto; min-height: 34px; padding: 4px 8px; background: transparent; border-color: transparent;
  color: var(--nav-fg); box-shadow: none; white-space: nowrap;
}
.bar > .console-row .navitem-l { overflow: visible; }
.navitem-s { display: none; }
/* Where the bar is short of room, a long section name gives way to its short one, as the site's page
   links do (below 1600px on the console, whose sections are more than the site's five). */
@media (max-width: 1599px) {
  .bar > .console-row .navitem:has(> .navitem-s) > .navitem-l { display: none; }
  .bar > .console-row .navitem > .navitem-s { display: inline; }
}
/* The checks lozenge counts the checks this connection has left on the site. The console is where the
   site is run, not where adverts are checked, so it gives its room in the bar to the console's own
   sections (PST-05), on every size of screen. */
:root[data-view="admin"] .allow-wrap { display: none; }
.bar > .console-row .console-nav .navitem:hover {
  background: rgba(var(--on-nav-rgb), .08); border-color: transparent; color: var(--on-nav);
}
.bar > .console-row .console-nav .navitem.on {
  background: rgba(var(--on-nav-rgb), .12); border-color: transparent; color: var(--on-nav); box-shadow: inset 0 -3px 0 var(--prod-blade);
}
.bar > .console-row .console-nav .navsub .navitem { color: var(--ink); }
.bar > .console-row .console-nav .navsub .navitem:hover { background: var(--gry-t); border-color: var(--line); color: var(--ink); }
.bar > .console-row .console-nav .navsub .navitem.on { background: var(--prod-t); border-color: var(--prod); color: var(--prod-d); box-shadow: none; }
.console-row { display: none; }
.console-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
/* Main site and Sign out of the console, at the end of the console's own title row (PST-07: not in the
   top bar). The shared outline (PST-42). */
#view-admin .pane-head .console-end { display: flex; align-items: center; gap: var(--sp-2); flex: none; flex-wrap: wrap; }
#view-admin .pane-head .console-end .i { width: 16px; height: 16px; }
:root[data-view="admin"] .bar-menu { background: var(--nav-band); }

/* "Console" names the whole row and is said by the nav's label; "Running it" becomes a rule
   between the reading half and the running half. */
.console-nav .nav-lead { display: none; }
.console-nav .nav-lead ~ .nav-lead {
  display: block; width: 1px; height: 24px; margin: 0 6px; background: rgba(var(--on-nav-rgb), .4);
  font-size: 0; color: transparent; overflow: hidden;
}
.console-nav .navgroup { position: relative; }
.console-nav .navitem {
  width: auto; min-height: 34px; padding: 4px 10px; background: transparent; border-color: transparent;
  color: var(--on-nav); box-shadow: none; font-size: var(--t-s); text-decoration: none;
}
.console-nav .navitem:hover { background: rgba(var(--on-nav-rgb), .16); border-color: rgba(var(--on-nav-rgb), .3); box-shadow: none; }
/* Where you are: the product's green, as everywhere else in this product (never the action blue),
   on a white face so it stands out of the blue bar. */
.console-nav .navitem.on{ background: var(--on-nav); border-color: var(--on-nav); color: var(--nav-here); box-shadow: inset 0 -3px 0 var(--nav-here); }
.console-nav .navitem-n { background: rgba(var(--on-nav-rgb), .22); color: var(--on-nav); }
.console-nav .navitem.on .navitem-n { background: var(--prod-t); color: var(--prod-d); }
.console-nav .navitem.tone-bad .navitem-n { background: var(--red); color: var(--on-fill); }
.console-nav .navitem.tone-warn .navitem-n { background: var(--amb-t); color: var(--ink); }
.console-nav .navitem-mark { border-color: currentColor; }
/* A group's parts drop down under it, on white, and fold away when one is chosen or anything
   else is pressed. */
.console-nav .navsub {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; margin: 0;
  display: flex; flex-direction: column; gap: 2px; min-width: 240px; max-height: 60vh; overflow-y: auto;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh3); padding: var(--sp-2);
}
.console-nav .navsub .navitem { width: 100%; color: var(--ink); background: transparent; border-color: transparent; }
.console-nav .navsub .navitem:hover { background: var(--gry-t); border-color: var(--line); }
.console-nav .navsub .navitem.on{ background: var(--prod-t); border-color: var(--prod); color: var(--prod-d); }
.console-nav .navsub .navitem-n { background: var(--gry-t); color: var(--mid); }
.console-nav .navsub .navitem.tone-bad .navitem-n { background: var(--red-t); color: var(--red-h); }
.console-nav .navsub .navitem.tone-warn .navitem-n { background: var(--amb-t); color: var(--ink); }

/* On a phone or a tablet the sections move into the Menu panel (public/js/menu.mjs), one to a line,
   and a group's parts unfold in place. */
@media (max-width: 1119px) {
  :root[data-view="admin"] .bar-menu .console-row:not([hidden]) {
    flex-direction: column; align-items: stretch; border-top: 0; padding-top: 0;
  }
  .bar-menu .console-nav { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .bar-menu .console-nav .nav-lead ~ .nav-lead { width: auto; height: 1px; margin: 6px 0; }
  .bar-menu .console-nav .navitem { width: 100%; min-height: 44px; }
  .bar-menu .console-nav .navsub { position: static; box-shadow: none; min-width: 0; max-height: none; margin: 2px 0 4px; }
}

/* ------------------------------------------------------------------- the console's page

   The console uses the whole screen: the operator asked for nothing to scroll that need not,
   so the page runs edge to edge, this product's own lines (.own-end) are not drawn under it, the
   page's own title gives way to the pane's once the console is open, and the day and period sit
   on the pane's title row rather than a band of their own. The Second Lens footer stays, as on
   every page (PST-46, PST-47: its Terms, Help and company line); until 17 November 2026 it was
   hidden here too. */
:root[data-view="admin"] main.wrap { max-width: none; padding: var(--sp-4) var(--sp-5) var(--sp-5); }
:root[data-view="admin"] .own-end { display: none; }
#view-admin[data-open="yes"] > .page-h {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
#view-admin .pane-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3); }
#view-admin .pane-head .admin-h { margin: 0; }
#view-admin .pane-head .admin-bar { margin: 0 0 0 auto; padding: 0; border: 0; flex: 0 1 auto; }
#view-admin .admin-day-tools { flex: 0 1 auto; align-items: center; }
#view-admin .admin-day { min-width: 0; grid-template-columns: auto auto auto; align-items: center; }
#view-admin .f.admin-day > label.lbl { grid-column: auto; margin: 0 var(--sp-1) 0 0; }
#view-admin .admin-day select { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }

/* A note where a switch used to be, pointing to where it is now. */
.ctl-note {
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-2) 0 var(--sp-3);
  padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-left: 3px solid var(--act);
  border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--t-s); color: var(--ink);
}
.ctl-note .i { color: var(--act); }
.ctl-note .ghost { margin-left: auto; }
.api-state { margin: 0 0 var(--sp-2); font-weight: 600; }
.api-state[data-state="on"] { color: var(--prod-d); }
.api-state[data-state="off"] { color: var(--red-h); }

/* ------------------------------------------------------------------------ the dashboard */

.dash-h { font: 600 var(--t-s) var(--disp); color: var(--ink); margin: 0 0 var(--sp-2); }
.dash-controls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.ctl {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  border: 1px solid var(--line); border-left: 4px solid var(--prod); border-radius: var(--r-s);
  padding: var(--sp-2) 10px; background: var(--surf);
}
/* Solid: green when a switch is on, red when it is off, white words on both (5.2:1 and 5.0:1).
   The owner asked for the state to read at a glance, 29 September 2026. A switch held off by
   Checking keeps its own colour; its "held off" line says the rest. */
.ctl[data-on="true"] { background: var(--grn); border-color: var(--grn); }
.ctl[data-on="false"] { background: var(--red); border-color: var(--red); }
.ctl[data-on] .ctl-name, .ctl[data-on] .ctl-says, .ctl[data-on] .ctl-state { color: var(--on-fill); }
.ctl[data-on] .ctl-more { color: var(--on-fill); text-decoration: underline; }
.ctl[data-on] .ctl-more:hover { color: var(--on-fill); text-decoration-thickness: 2px; }
.ctl[data-on] .ctl-more:focus-visible { outline: 2px solid var(--on-fill); outline-offset: 2px; }
.ctl-master { border-width: 2px 2px 2px 6px; }
.ctl-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ctl-name { margin: 0; font: 700 var(--t-s) var(--ui); color: var(--ink); line-height: 1.25; }
.ctl-state { margin: 0; font: 700 var(--t-xs) var(--ui); text-transform: uppercase; letter-spacing: .04em; color: var(--prod-d); }

.ctl-says { margin: 0; font-size: var(--t-xs); line-height: 1.35; color: var(--mid); }
.ctl-more { align-self: flex-start; margin-top: auto; padding-top: 2px; font-size: var(--t-xs); min-height: 24px; text-align: left; }
.ctl .switch[aria-disabled="true"] { opacity: .6; cursor: progress; }

.dash-period { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.dash-period .dash-h { margin: 0; }
.dash-cover { margin: 0; flex: 1 1 20rem; font-size: var(--t-xs); }
/* The second period laid over the charts: a dashed line in ink over stacked columns (their
   whole), in each series' own colour over side-by-side columns, with a dot on every point. */
.dash-overpick { display: inline-flex; align-items: center; gap: var(--sp-2); }
.dash-over-l { font: 600 var(--t-xs) var(--ui); color: var(--mid); }
polyline.dash-over { stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
polyline.dash-over-over, circle.dash-over-over { stroke: var(--ink); }
polyline.dash-over-s1, circle.dash-over-s1 { stroke: var(--ser-1); }
polyline.dash-over-s2, circle.dash-over-s2 { stroke: var(--ser-2); }
polyline.dash-over-s3, circle.dash-over-s3 { stroke: var(--ser-3); }
.dash-over-dot { fill: var(--surf); stroke-width: 2; pointer-events: none; }
.dash-key.dash-key-line { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed var(--ink); background: none; vertical-align: middle; }
.dash-key.dash-key-over-mix { border-top-color: var(--mid); }
.dash-tip-o { color: var(--mid); }
.dash-td-o { color: var(--mid); }
.spark .spark-over { stroke: var(--gry); stroke-dasharray: 3 3; stroke-width: 1.5; }
.dash-kpis { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-2); }
.kpi { border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px var(--sp-3); display: grid; gap: 1px; min-width: 0; }
.kpi-l { margin: 0; font: 600 var(--t-xs) var(--ui); color: var(--mid); }
.kpi-v { margin: 0; font: 700 22px/1.1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-m { margin: 0; font-size: var(--t-xs); color: var(--ink); }
.kpi-arrow { font-weight: 700; }
.kpi-s { margin: 0; font-size: var(--t-xs); color: var(--mid); }
.spark { width: 100%; height: 20px; display: block; }
.spark-none { visibility: hidden; }
.spark polyline { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-s1 polyline { stroke: var(--ser-1); }
.spark-s2 polyline { stroke: var(--ser-2); }
.spark-s3 polyline { stroke: var(--ser-3); }
.spark-ink polyline { stroke: var(--ink); }
.spark-good polyline { stroke: var(--grn); }

.dash-charts { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); gap: var(--sp-3); align-items: stretch; }
.dash-chart, .dash-side { margin: 0; border: 1px solid var(--line); border-radius: var(--r-s); padding: var(--sp-2) var(--sp-3); min-width: 0; }
.dash-cap { margin: 0 0 var(--sp-1); font: 600 var(--t-s) var(--disp); color: var(--ink); }
.dash-legend { list-style: none; margin: 0 0 var(--sp-1); padding: 0; display: flex; flex-wrap: wrap; gap: 2px var(--sp-3); font-size: var(--t-xs); color: var(--ink); }
.dash-legend-i { display: inline-flex; align-items: center; gap: 6px; }
.dash-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.dash-plotbox { position: relative; }
.dash-svg { width: 100%; height: auto; display: block; }
.dash-grid { stroke: var(--line); stroke-width: 1; }
.dash-base { stroke: var(--gry); stroke-width: 1; }
.dash-tick { fill: var(--mid); font: 500 11px var(--ui); font-variant-numeric: tabular-nums; }
.dash-hit { fill: transparent; }
.dash-hit:hover { fill: rgba(var(--shade-rgb), .05); }
.dash-s1 { fill: var(--ser-1); background: var(--ser-1); }
.dash-s2 { fill: var(--ser-2); background: var(--ser-2); }
.dash-s3 { fill: var(--ser-3); background: var(--ser-3); }
.dash-tip {
  position: absolute; top: 4px; left: var(--tip-x, 50%); transform: translateX(-50%); z-index: 2; pointer-events: none;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--sh3);
  padding: var(--sp-1) var(--sp-2); font-size: var(--t-xs); white-space: nowrap;
}
.dash-tip-h { margin: 0 0 2px; font-weight: 700; }
.dash-tip-r { margin: 0; display: flex; align-items: center; gap: 4px; }
.dash-table { margin-top: var(--sp-1); font-size: var(--t-xs); }
.dash-table summary { cursor: pointer; color: var(--act); min-height: 24px; display: inline-flex; align-items: center; }
.dash-tbl { border-collapse: collapse; width: 100%; font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.dash-tbl th, .dash-tbl td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line2); }
.dash-tbl td { text-align: right; }
.dash-tbl thead th { color: var(--mid); font-weight: 700; }
.dash-tbl tfoot th, .dash-tbl tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line); }
.dash-table .dash-tbl { max-height: 14rem; }
.dash-side .hint { font-size: var(--t-xs); margin: var(--sp-2) 0 0; }

@media (max-width: 1100px) {
  .dash-controls, .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-side { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .dash-controls, .dash-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-charts { grid-template-columns: minmax(0, 1fr); }
  #view-admin .pane-head .admin-bar { margin-left: 0; }
}

/* The console's pane title row: tighter on the dashboard, where every line of height counts. */
#view-admin .pane-head { min-height: 36px; }
#view-admin .admin-h { font-size: var(--t-l); }
.ctl .switch { min-height: 28px; padding: 2px 7px 2px 3px; gap: 5px; font-size: 13px; }
.ctl .switch-knob { width: 28px; height: 18px; }
.ctl .switch-knob::after { top: 3px; left: 3px; width: 12px; height: 12px; }
.ctl.on .switch-knob::after, .ctl .switch.on .switch-knob::after { transform: translateX(10px); }
/* A control's name stays on one line: a smaller face before it would wrap. */
.ctl-name { white-space: nowrap; font-size: 13px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ctl-more { white-space: nowrap; }
/* Except on a phone, where a card is half the screen and one line cut every long name short
   ("Phones, t...", "Automati...") and ran a link past the card's edge (27 September 2026):
   there the name and the link wrap. */
@media (max-width: 600px) {
  .ctl-name { white-space: normal; overflow: visible; }
  .ctl-more { white-space: normal; }
}
.dash-cover { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ the console's panes, compact

   One screen each where that is possible. The API pane is two columns on a laptop: what you set
   on the left (whether it is open, the rate, issuing a key), what is happening on the right (the
   live view), and the keys and the history across the width under both. Every pane's blocks sit
   closer together than a reading page's, as a console that is used every day should
   (research, 27 September 2026: dense by default, grouped by dividers). */
#view-admin .setpane { gap: var(--sp-4); }
#view-admin .set-h { font-size: var(--t-b); }
#view-admin .lic-grid { gap: var(--sp-2); margin-bottom: var(--sp-2); }
@media (min-width: 1100px) {
  [data-pane="api"] > .setpane {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-3) var(--sp-5);
    grid-template-areas: "open live" "rate live" "issue live" "keys keys" "an an"; align-items: start;
  }
  [data-pane="api"] .api-b-open { grid-area: open; }
  [data-pane="api"] .api-b-rate { grid-area: rate; }
  [data-pane="api"] .api-b-issue { grid-area: issue; }
  [data-pane="api"] .api-b-keys { grid-area: keys; }
  [data-pane="api"] .api-live { grid-area: live; border-left: 1px solid var(--line); padding-left: var(--sp-5); }
  [data-pane="api"] .api-an { grid-area: an; border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  [data-pane="api"] .api-b-rate .lic-grid, [data-pane="api"] .api-b-issue .lic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Long lists scroll inside their own box, the height of what is left of the screen, so the
   pane's title, its tools and its filters stay in view while the list is read. */
#view-admin .ev { position: relative; max-height: calc(100vh - 220px); overflow-y: auto; }
@media (min-width: 1100px) {
  [data-pane="api"] > .setpane { grid-template-areas: "open live" "rate live" "issue keys" "an an"; }
  [data-pane="api"] .api-b-keys { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
}

.api-views { margin-bottom: 0; }
.api-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-3); }
.api-scope { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
[data-pane="api"][data-apiview="setup"] :is(.api-live, .api-an, .api-log) { display: none; }
[data-pane="api"][data-apiview="usage"] :is(.api-b-open, .api-b-rate, .api-b-issue, .api-b-keys, .api-log) { display: none; }
[data-pane="api"][data-apiview="log"] :is(.api-b-open, .api-b-rate, .api-b-issue, .api-b-keys, .api-live, .api-an) { display: none; }
[data-pane="api"][data-apiview="log"] > .setpane { display: block; }

/* The API's log. Tools on one line, levels as buttons with their counts, and the lines in a box
   that scrolls on its own, so the tools stay in view while the log is read. */
.log-tools { display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp-2) var(--sp-3); }
.log-tools .f { margin: 0; }
.log-tools .lbl { white-space: nowrap; }
.log-tools select, .log-tools input { height: 38px; min-height: 38px; box-sizing: border-box; }
.log-time input { width: 7.5em; }
.log-find { flex: 1 1 14em; min-width: 12em; }
.log-find input { width: 100%; }
.log-acts { display: flex; gap: var(--sp-2); margin-left: auto; }
.log-acts button { white-space: nowrap; height: 38px; min-height: 38px; font-size: var(--t-s); }
.log-levels { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.log-level {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surf); color: var(--mid);
  font: inherit; font-size: var(--t-s); cursor: pointer; white-space: nowrap;
}
.log-level b { color: var(--ink); font-weight: 600; }
.log-level.on { border-color: var(--act); background: var(--act-t); color: var(--ink); }
.log-level:not(.on) b { color: var(--mid); font-weight: 400; }
.log-level:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.log-dot { width: 10px; height: 10px; border-radius: 2px; background: var(--mid); }
.log-error .log-dot { background: var(--red); }
.log-warning .log-dot { background: var(--amb); }
.log-say { margin: var(--sp-2) 0; }
.log-box { max-height: calc(100vh - 330px); min-height: 160px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-s); }
.log-tbl { width: 100%; border-collapse: collapse; font-size: var(--t-xs); }
.log-tbl th { position: sticky; top: 0; z-index: 1; background: var(--rail); text-align: left; font-weight: 600; padding: 6px var(--sp-2); white-space: nowrap; border-bottom: 1px solid var(--line); }
.log-tbl td { padding: 5px var(--sp-2); border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.log-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.log-tbl .log-t { font-variant-numeric: tabular-nums; }
.log-tbl .log-key { max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.log-code { margin-left: var(--sp-2); color: var(--mid); }
.log-row-error { background: var(--red-t); }
@media (min-width: 1100px) {
  [data-pane="api"][data-apiview="setup"] > .setpane { grid-template-areas: "open issue" "rate keys"; }
  [data-pane="api"][data-apiview="setup"] .api-b-issue { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
  [data-pane="api"][data-apiview="usage"] > .setpane { grid-template-areas: "live an"; }
  [data-pane="api"][data-apiview="usage"] .api-live { border-left: 0; padding-left: 0; }
  [data-pane="api"][data-apiview="usage"] .api-an { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: var(--sp-5); }
}
#view-admin :is(#lic-rows, #misfire-rows, #fault-rows, #signup-rows, #api-keys, .log-box) { position: relative; }
#view-admin :is(#lic-rows, #misfire-rows, #fault-rows, #signup-rows) { max-height: calc(100vh - 260px); overflow-y: auto; padding-right: 2px; }
#view-admin #api-keys { max-height: calc(100vh - 300px); overflow-y: auto; }

/* ------------------------------------------------------------ the console, lined up

   The owner's pass of 27 September 2026: every console screen aligned and even, and nothing on
   two lines that reads as one. Where a line would wrap, a smaller face or a shorter word first. */

/* Events: every line's columns at the same places, and the kind buttons the height of the tools. */
#view-admin .ev-line { grid-template-columns: 4.5rem 8px 4.3rem 10rem minmax(0, 1fr) repeat(3, auto); }
/* Where it came from: a word on every line, report and flag, the API in the console's blue. */
.ev-src { justify-self: start; padding: 1px 6px; border-radius: 4px; font: 700 10px var(--ui); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line); color: var(--mid); background: var(--surf); }
.ev-src-api { color: var(--act); border-color: var(--act); background: var(--act-t); }
#view-admin .admin-filters { align-items: center; }
#view-admin .chiprow { align-items: center; }
#view-admin .chipf { min-height: 36px; }

/* Connections: the note the width of the page, and the two tools side by side under it. */
[data-pane="clients"] .chart-note { max-width: none; margin: var(--sp-2) 0 var(--sp-3); }
[data-pane="clients"] .setblock .f input { max-width: 22rem; }
@media (min-width: 1100px) {
  [data-pane="clients"]:not([hidden]) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--sp-5); align-items: start;
  }
  [data-pane="clients"] > :is(.chart-bars, .chart-note) { grid-column: 1 / -1; }
  [data-pane="clients"] > .setblock + .setblock { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
}

/* Licences: the Issue button on the form's own row, the filters on one line, and the backup's
   passphrase beside its buttons. */
#view-admin [data-pane="licences"] .lic-grid { grid-template-columns: 1.4fr 1.4fr 1fr .6fr 1.4fr auto; align-items: start; }
#view-admin .lic-go { display: grid; }
#view-admin .lic-go .btn { min-height: 38px; white-space: nowrap; }
#view-admin #lic-checks-say { margin: 2px 0 0; white-space: nowrap; font-size: var(--t-xs); }
#view-admin .lic-find .seg { margin: 0; align-self: flex-end; }
#view-admin .lic-find .seg button { min-height: 38px; white-space: nowrap; }
#view-admin .admin-card > .hint { margin: var(--sp-1) 0; }
#view-admin .lic-backup-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3); margin-top: var(--sp-2); }
#view-admin .lic-backup-row .f { flex: 1 1 22rem; margin: 0; }
#view-admin .lic-backup-row .admin-acts { margin: 0; flex-wrap: nowrap; }
#view-admin .lic-backup-row .admin-acts > * { white-space: nowrap; min-height: 38px; }
@media (max-width: 1099px) {
  #view-admin [data-pane="licences"] .lic-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
}

/* One label style across the console, the small capitals the licence form already used, so two
   forms side by side read as one. Never wrapped: the words are chosen to fit. */
#view-admin label.lbl, #view-admin .lic-go > .lbl {
  display: block; font: 700 11px var(--ui); letter-spacing: .05em; color: var(--mid);
  text-transform: uppercase; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#view-admin .lic-grid { align-items: start; }
#view-admin .lic-grid .hint { margin: 2px 0 0; font-size: var(--t-xs); white-space: nowrap; }
[data-pane="api"] .api-b-issue .lic-go .btn { justify-self: start; }
@media (max-width: 1400px) { .ctl-name { font-size: 12.5px; } }
/* One line each, and never past the tile's edge: at 1280 pixels "50% desktop, 50% phone or
   tablet" ran out of the first tile and took its sparkline with it (27 September 2026). The
   whole line is on the tile's own tooltip. */
.kpi > * { white-space: nowrap; }
.kpi > :is(.kpi-m, .kpi-s) { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1400px) { .kpi-m, .kpi-s, .kpi-l { font-size: 12px; } }
#view-admin #admin-rows { max-height: calc(100vh - 290px); }
#view-admin .admin-copy { align-items: center; }
#view-admin .admin-copy-note:empty { display: none; }
@media (min-width: 1100px) {
  [data-pane="clients"]:not([hidden]) { row-gap: var(--sp-2); }
  [data-pane="clients"] > .setblock .set-h { margin-top: 0; min-height: 24px; display: flex; align-items: center; }
}

/* The API's usage view: each column scrolls in its own box, so both sit on one screen with
   their heads in view, and the figures sit in even rows. */
@media (min-width: 1100px) {
  [data-pane="api"][data-apiview="usage"] :is(.api-live, .api-an) { position: relative; max-height: calc(100vh - 256px); overflow-y: auto; padding-right: var(--sp-2); }
}
.api-live .rate-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.api-live .rate:last-child { grid-column: span 2; }
.api-live .rate, .api-an .admin-tile { padding: var(--sp-2) var(--sp-3); }
.api-live .rate-n { font-size: var(--t-m); }
.api-live :is(.rate-l, .rate-s) { font-size: var(--t-xs); }
.api-an .spend-figs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-3); }
.api-an .spend-figs > * { min-width: 0; }
.api-an .spend-figs :is(p, span) { white-space: nowrap; }
.api-an .admin-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); }
.api-an .admin-tile { min-width: 0; }
.api-an .admin-tile :first-child { white-space: nowrap; font-size: var(--t-l); }
@media (max-width: 720px) {
  .api-live .rate-list, .api-an .admin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-an .spend-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Settings: the save row on one line, buttons first and what one press covers beside them. */
#view-admin .setfoot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding-top: var(--sp-3); }
#view-admin .setfoot .setdo { order: -1; margin: 0; flex-wrap: nowrap; }
/* On a phone the two buttons are wider than the screen side by side, so they share the row
   evenly and wrap their words (found testing the console at 390 pixels, 27 September 2026). */
@media (max-width: 480px) {
  #view-admin .setfoot .setdo { flex-wrap: wrap; width: 100%; }
  #view-admin .setfoot .setdo > * { white-space: normal; flex: 1 1 0; }
}
#view-admin .setfoot .setdo > * { white-space: nowrap; min-height: 38px; }
#view-admin .setfoot #setfoot-say { flex: 1 1 24rem; margin: 0; }
#view-admin .setfoot :is(.err, .ok) { flex-basis: 100%; margin: 0; }
#view-admin .setfoot[data-dirty="true"] .setdo { justify-content: flex-start; }

/* What a check runs: the two choices on the left, what it runs against on the right. */
@media (min-width: 1100px) {
  #view-admin .setsec[data-set="engine"]:not([hidden]) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--sp-5);
    grid-template-areas: "h h" "lede lede" "passes runs" "apply runs"; align-items: start;
  }
  #view-admin .setsec[data-set="engine"] > .set-h { grid-area: h; }
  #view-admin .setsec[data-set="engine"] > .set-lede { grid-area: lede; margin: 2px 0 var(--sp-2); }
  #view-admin .setsec[data-set="engine"] > .set-h { margin-bottom: 0; }
  #view-admin .eng-passes { grid-area: passes; }
  #view-admin .eng-apply { grid-area: apply; }
  #view-admin .eng-runs { grid-area: runs; border-left: 1px solid var(--line); padding-left: var(--sp-5); }
}
#view-admin .setsec[data-set="engine"] .set-sub { margin: var(--sp-2) 0; }
#view-admin .setsec[data-set="engine"] .ctl-note { margin: var(--sp-1) 0 var(--sp-2); }
#view-admin .eng-apply { margin-top: var(--sp-3); }
#view-admin .eng-runs .runsagainst { margin-top: var(--sp-2); }
#view-admin .house-save { margin-left: auto; }
#view-admin .setdo > :is(button, label) { white-space: nowrap; }

/* On a phone there is no line long enough, so the words wrap rather than being cut short. */
@media (max-width: 720px) {
  .dash-cover, #view-admin label.lbl, #view-admin .lic-grid .hint, #view-admin #lic-checks-say, .kpi > * { white-space: normal; }
  #view-admin .ev-line { grid-template-columns: auto 8px auto minmax(0, auto) minmax(0, 1fr) auto; }
  #view-admin .lic-backup-row .admin-acts { flex-wrap: wrap; }
  #view-admin .house-save { margin-left: 0; }
  .log-acts { margin-left: 0; }
}

/* Under each overview figure: the website and the API apart, quieter than the figure. */
.admin-tile-src { display: block; font-size: var(--t-xs); color: var(--mid); white-space: nowrap; }

/* A client's own log beside the API's. Folded to one line until it is wanted. */
.log-match { margin: 0 0 var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px var(--sp-3); }
.log-match > summary { cursor: pointer; font-weight: 600; font-size: var(--t-s); }
.log-match-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-3); align-items: end; margin-top: var(--sp-2); }
.log-match-in .lbl { grid-column: 1 / -1; margin: 0; }
.log-match-in textarea { width: 100%; font: var(--t-xs) var(--ui); resize: vertical; }
.log-box-match { max-height: 38vh; margin-top: var(--sp-2); }
.log-tbl .log-agree { color: var(--prod-d); font-weight: 600; }
.log-tbl .log-differ { color: var(--red-h); font-weight: 700; }
.log-tbl .log-cline { max-width: 32em; overflow: hidden; text-overflow: ellipsis; color: var(--mid); }
.log-tbl .log-agent { max-width: 11em; overflow: hidden; text-overflow: ellipsis; }
.log-row-missing { background: var(--amb-t); }

/* Found testing the console, 27 September 2026. The licence a new key belongs to is named in
   full ("Second Co, working, ends 27 October 2026, no keys"), which half a row cut off, so it
   has the row to itself. And a key's own controls stand the same height as each other and as
   the boxes beside them: the switch stood taller than Replace it and Revoke it, and Save the
   name and limit shorter than its two boxes. */
[data-pane="api"] .api-b-issue .lic-grid > :first-child { grid-column: 1 / -1; }
.apikey-acts > .ghost { min-height: 34px; }
.apikey-edit > .ghost, .apikey-edit > button { min-height: 38px; }

/* A table's column headings stand over their figures, which sit at the right, and the
   journey's eight numbers are two rows of four rather than six and two (found testing the
   console, 27 September 2026; the dashboard's lower cards now also end on one line). */
.dash-tbl thead th:not(:first-child) { text-align: right; }
@media (min-width: 1100px) { #journey-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* A bar on a phone: the name and its figure on one line, the bar the full width beneath. Side
   by side, the name took most of the row and left each bar a few pixels (found testing the
   console at 390 pixels, 27 September 2026). */
@media (max-width: 600px) {
  .bar-row, .signup-sum .bar-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "track track"; row-gap: 4px; }
  .bar-row > .bar-name { grid-area: name; }
  .bar-row > .bar-track { grid-area: track; }
  .bar-row > .bar-value { grid-area: value; }
}

/* On a phone the advert's tabs are too narrow for their names on one line: "As you paste..."
   and "After the aut..." hid what each tab is (found on the live site, 27 September 2026). There
   the name wraps and the number sits in the middle of the tab, clear of the edge below it. */
@media (max-width: 600px) {
  .al-tab { align-items: center; font-size: var(--t-s); line-height: 1.25; }
  .al-tab-n { white-space: normal; overflow: visible; }
}

/* ---------------------------------------------------- the AI service, happening now, the board

   Asked for on 29 September 2026. Five grades from green to red, and grey for nothing to go on;
   every one carries an icon and a word as well, so a grade never rests on colour alone. The
   strong colour is for a bar, an icon or a disc; words sit in ink on the grade's tint. */

:root {
  --g-good: var(--grn); --g-good-t: #DDF2E5;
  --g-fine: #4E8A22; --g-fine-t: #EAF5DC;
  --g-watch: var(--amb); --g-watch-t: var(--amb-t);
  --g-poor: #C55512; --g-poor-t: #FBCDAA;
  --g-bad: var(--red); --g-bad-t: #FBDDE3;
  --g-none: var(--soft); --g-none-t: var(--gry-t);
  /* A grade as words, a figure drawn in its grade's colour on a card. The strong colours above are for
     a bar, an icon or a disc, where 3:1 is the bar; words under 18.66px bold need 4.5:1, and the fine,
     watch and poor colours measure 4.21, 3.83 and 4.49 on white. These are those three scaled by 0.9,
     which keeps the hue (the watch one is the amber that is words, --amb-d): 5.04, 4.60 and 5.33. In
     the dark the strong colours already read at 7:1 or better, so the words take them. */
  --g-good-w: var(--grn); --g-fine-w: #467C1F; --g-watch-w: var(--amb-d); --g-poor-w: #B14D10; --g-bad-w: var(--red);
  /* The hour grid's one hue, pale to deep, and the dashboard's three series (website, phone, API):
     data colours, named once here rather than written into each rule (PST-41). The series are the
     same in both themes and each reads at 3:1 or better on both cards (WCAG 1.4.11); the third was
     #1BAF7A, 2.82:1 on white, and is that green scaled by 0.9, which keeps the hue (17 November 2026). */
  --heat-0: #EEF0F3; --heat-1: #CFE2F7; --heat-2: #95BEEB; --heat-3: #4F93DD; --heat-4: #1C6CC4; --heat-5: #0B3F80;
  --ser-1: #2A78D6; --ser-2: #EB6834; --ser-3: #179E6E;
  /* The allowance gauge, green when full, amber at half, red when empty, mixed between these three by
     the browser (gaugeColour in rules/allowance.mjs), so its colour follows the theme with the tokens.
     Every colour on the way reads at 3:1 or better on its ground in both themes (WCAG 1.4.11). */
  --gauge-full: #0E8125; --gauge-half: #B26B00; --gauge-empty: #C4314B;
}

/* ---------------------------------------------------------------- light and dark (PST-43)

   The device's setting decides, as the Second Lens standard asks (Phil, 16 November 2026: follow
   prefers-color-scheme). The same tokens, given their dark values here and nowhere else, so every rule
   above draws itself in the dark without a rule of its own. The top bar is navy in both, as the standard
   fixes it (PST-06). In the dark the strong colours are lighter, so words, edges and marks in them read
   on a dark surface (4.5:1 or better on --surf), and a fill of one carries dark words (--on-fill), which
   read on it at 6.5:1 or better. White on the navy (--on-nav) never changes, nor do the few others that
   only ever sit on the navy, a company's own mark or a data mark that reads on both grounds; the test
   names each one. The shared kit (0.7.1, as 0.5.0, 0.6.0 and 0.7.0 before it) has no dark values of its own, so its
   panels (the docked line, the account panel, the guide) stay light and are told so below, so the
   browser draws the boxes inside them light too. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0E1824; --surf: #152232; --rail: #1B2A3C;
    --ink: #E6ECF2; --ink-2: #C5CED9; --mid: #A9B3C1; --soft: #8C98A8; --on-fill: #0B1622;
    --line: #2B3B4F; --line2: #223245; --edge: #3A4C63;
    --act: #7AB0F2; --act-h: #9CC4F6; --act-t: #1A2E48;
    --red: #F08294; --red-h: #F5A3B0; --red-t: #3A1E26; --amb: #E8A33D; --amb-t: #3A2E14;
    --amb-on-tint: #F2C46E; --amb-d: #E8A33D;
    --grn: #5CCB8E; --grn-t: #15301F; --gry: #6B7686; --gry-t: #1E2B3B;
    --vio: #B0A4EA; --vio-t: #262040; --abroad: #9AB0CB; --abroad-t: #1E2A3A;
    --prod: #55C792; --prod-blade: #55C792; --prod-t: #14301F; --prod-d: #86DCB2;
    --pl-go: #1A2E48; --pl-go-h: #22395A; --pl-go-e: #7AB0F2; --pl-go-eh: #9CC4F6; --pl-go-t: #9CC4F6;
    --pl-yours: #1A2E48; --pl-yours-h: #22395A; --pl-yours-e: #7AB0F2; --pl-yours-eh: #9CC4F6; --pl-yours-t: #9CC4F6;
    --pl-yours3: #2F1D3A; --pl-yours3-h: #3D264A; --pl-yours3-e: #D29FEF; --pl-yours3-eh: #E5C4F8; --pl-yours3-t: #E5C4F8;
    --pl-back: #1E2B3B; --pl-back-h: #26364A; --pl-back-e: #7D8797; --pl-back-eh: #A9B3C1; --pl-back-t: #D2DAE3;
    --pl-del: #3A1D31; --pl-del-h: #4A263F; --pl-del-e: #D879BB; --pl-del-eh: #ED97D3; --pl-del-t: #F3AFDF;
    --pl-report: #D2DAE3; --pl-report-h: #E6ECF2; --pl-report-e: #E6ECF2; --pl-report-t: #0B1622;
    --io-bg: #1B2A3C; --io-bg-h: #213247; --io-bg-on: #152232;
    /* Stage three's edge is its own hue lightened for the dark (7.6:1 on a card), as its light edge is the same
       hue darkened. Purple since 19 November 2026 (PST-41, Phil's decision): it was a green, #65C578, and before
       17 November 2026 #5CCB8E, the dark traffic light green itself. */
    --stage-one-e: #A0A0A0; --stage-two-e: #7AB0F2; --stage-three-e: #D29FEF;
    --stage-none: #2B3B4F; --stage-could: #8E58B0;
    --stage-two-t: #172A44; --stage-three-t: #2F1D3A;
    --stage-one-paper: #18222E; --stage-two-paper: #142236; --stage-three-paper: #27192E;
    --stage-three-halo: rgba(210, 159, 239, .22);
    --g-fine: #8FCB5E; --g-fine-t: #1F2E14; --g-poor: #F0965A; --g-poor-t: #3A2414;
    --g-good-t: #15301F; --g-bad-t: #3A1E26;
    --g-fine-w: var(--g-fine); --g-poor-w: var(--g-poor);
    --gauge-full: var(--grn); --gauge-half: var(--amb); --gauge-empty: var(--red);
    --heat-0: #1E2B3B; --heat-1: #1D3656; --heat-2: #24528A; --heat-3: #3373C2; --heat-4: #5C9AE8; --heat-5: #9CC4F6;
    --nav-fg: rgba(255, 255, 255, .86);
    /* Shadows, scrims and washes are black in the dark, a little stronger, as a shadow needs to be to
       show on a dark ground; the lit bevel along a pale plate's top is fainter, since the plate is
       dark too. The same offsets, so the one light stays where it is. */
    --shade-rgb: 0, 0, 0; --shadow-rgb: 0, 0, 0;
    --lift-f: inset -1px 1px 0 rgba(255, 255, 255, .28), -1px 1px 2px rgba(0, 0, 0, .40), -3px 3px 8px rgba(0, 0, 0, .35);
    --lift-f-h: inset -1px 1px 0 rgba(255, 255, 255, .32), -2px 2px 5px rgba(0, 0, 0, .40), -8px 8px 18px rgba(0, 0, 0, .45);
    --lift-p: inset -1px 1px 0 rgba(255, 255, 255, .06), -1px 1px 2px rgba(0, 0, 0, .35);
    --lift-p-h: inset -1px 1px 0 rgba(255, 255, 255, .08), -4px 4px 11px rgba(0, 0, 0, .40);
    --press-f: inset -2px 2px 5px rgba(0, 0, 0, .40);
    --press-p: inset -2px 2px 5px rgba(0, 0, 0, .45);
    --sh: -1px 1px 2px rgba(0, 0, 0, .25), -1px 1px 3px rgba(0, 0, 0, .35);
    --sh2: -2px 2px 4px rgba(0, 0, 0, .25), -8px 8px 16px rgba(0, 0, 0, .40);
    --sh3: -4px 4px 8px rgba(0, 0, 0, .30), -16px 16px 32px rgba(0, 0, 0, .50);
    /* The checks lozenge is a well sunk into the bar: in the dark its face is the dark surface, shaded
       towards the navy, so its words (the ink, light here) read on it, with a pale rim on the navy. */
    --well-edge: rgba(255, 255, 255, .28); --well-1: #0A1420; --well-2: #111D2B;
    /* The Overview ring: a stronger shadow on the dark ground, and dark edges between its parts. */
    --ring-shade: rgba(var(--shade-rgb), .35); --ring-edge: rgba(var(--shade-rgb), .35);
  }
  /* The checks lozenge's second line: --ink-2 is chosen in the light for the shaded top of the well,
     and in the dark --mid is the step that reads on the dark well. */
  .allow-chip .allow-chip-l { color: var(--mid); }
  /* Pictures drawn for a white page (the product's lockup on the closed screen) sit on a white plate. */
  img[src$=".svg"]:not(.bar-brand img):not([src*="-mark-"]) { background: var(--pic-ground); border-radius: var(--r-s); }
}
[data-grade="good"] { --g: var(--g-good); --g-t: var(--g-good-t); --g-w: var(--g-good-w); }
[data-grade="fine"] { --g: var(--g-fine); --g-t: var(--g-fine-t); --g-w: var(--g-fine-w); }
[data-grade="watch"] { --g: var(--g-watch); --g-t: var(--g-watch-t); --g-w: var(--g-watch-w); }
[data-grade="poor"] { --g: var(--g-poor); --g-t: var(--g-poor-t); --g-w: var(--g-poor-w); }
[data-grade="bad"] { --g: var(--g-bad); --g-t: var(--g-bad-t); --g-w: var(--g-bad-w); }
[data-grade="none"] { --g: var(--g-none); --g-t: var(--g-none-t); --g-w: var(--mid); }

.gchip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 4px; border-radius: 4px; background: var(--g-t); color: var(--ink); font: 700 var(--t-xs) var(--ui); border: 1px solid var(--g); }
.gchip-i { display: inline-flex; width: 14px; height: 14px; color: var(--g); }
.gchip-i svg { width: 14px; height: 14px; }

.pulse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.pulse-card { border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--sp-3); background: var(--surf); min-width: 0; }
.aic-h { display: flex; align-items: center; gap: 6px; margin: 0; font: 600 var(--t-s) var(--disp); color: var(--ink); }
.aic-h .i svg { width: 16px; height: 16px; }

/* The AI card takes its light's colour along its left edge and as a wash, so its state reads
   from across the room, as the switches above it do. */
.aicard { border-left: 6px solid var(--light, var(--g-none)); background: linear-gradient(90deg, var(--light-t, transparent), var(--surf) 70%); }
.aicard[data-light="green"], .aihero[data-light="green"] { --light: var(--grn); --light-t: var(--grn-t); }
.aicard[data-light="amber"], .aihero[data-light="amber"] { --light: var(--amb); --light-t: var(--amb-t); }
.aicard[data-light="red"], .aihero[data-light="red"] { --light: var(--red); --light-t: var(--red-t); }
.aicard[data-light="grey"], .aihero[data-light="grey"] { --light: var(--gry); --light-t: var(--rail); }
.aic-top { display: flex; gap: var(--sp-3); align-items: center; }
.aic-t { min-width: 0; display: grid; gap: 2px; }
.aic-word { margin: 0; font: 700 22px/1.15 var(--ui); }
.aic-word[data-light="green"] { color: var(--prod-d); }
.aic-word[data-light="amber"] { color: var(--amb-on-tint); }
.aic-word[data-light="red"] { color: var(--red-h); }
.aic-word[data-light="grey"] { color: var(--mid); }
.aic-why { margin: 0; font-size: var(--t-s); color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aic-side { margin: 0; font: 600 var(--t-xs) var(--ui); color: var(--ink); }
.aic-side-l { color: var(--mid); font-weight: 500; }
.aic-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-2); }
.aic-figs div { border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px 8px; background: var(--surf); }
.aic-figs dt { font: 600 var(--t-xs) var(--ui); color: var(--mid); }
.aic-figs dd { margin: 0; font: 700 18px/1.2 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.aic-figs dd[data-grade]:not([data-grade="none"]) { color: var(--g-w); }
.aic-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.aic-acts .lnkbtn { margin-left: auto; }
.aic-acts [aria-disabled="true"] { opacity: .6; cursor: progress; }

/* The light: a bright disc with a glow, its icon in white. The glow is a soft disc drawn behind
   it rather than a shadow, because every shadow on this page is cast by one light, top right,
   and a glow is lit from inside. */
.aic-top, .aihero { isolation: isolate; }
.ailight { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(var(--glint-rgb), .53) 0, rgba(var(--glint-rgb), 0) 45%), var(--lc, var(--gry)); color: var(--on-fill); }
/* The glow round the light is only drawn: it takes no press, so the Main site link above it keeps the whole of a
   finger's press (PST-42, found by the docked line robot on the AI pane on 18 November 2026). */
.ailight::before { content: ''; position: absolute; inset: -12px; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, var(--lg, color-mix(in srgb, var(--gry) 33%, transparent)) 30%, transparent 70%); }
.ailight-l { width: 56px; height: 56px; }
.ailight-xl { width: 88px; height: 88px; }
.ailight-xl::before { inset: -18px; }
.ailight-i { display: inline-flex; width: 55%; height: 55%; }
.ailight-i svg { width: 100%; height: 100%; stroke-width: 2; }
.ailight[data-light="green"] { --lc: var(--grn); --lg: color-mix(in srgb, var(--grn) 53%, transparent); }
.ailight[data-light="amber"] { --lc: var(--amb); --lg: color-mix(in srgb, var(--amb) 53%, transparent); }
.ailight[data-light="red"] { --lc: var(--red); --lg: color-mix(in srgb, var(--red) 60%, transparent); }
@keyframes ai-breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes ai-alarm { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
:root[data-motion="on"] .ailight[data-light="green"]::before { animation: ai-breathe 3.2s ease-in-out infinite; }
:root[data-motion="on"] .ailight[data-light="amber"]::before { animation: ai-breathe 1.8s ease-in-out infinite; }
:root[data-motion="on"] .ailight[data-light="red"]::before { animation: ai-breathe 1s ease-in-out infinite; }
:root[data-motion="on"] .ailight[data-light="red"] { animation: ai-alarm 1s ease-in-out infinite; }

/* What is happening now. */
.now-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.now-live { margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 600 var(--t-xs) var(--ui); color: var(--mid); }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grn); outline: 3px solid color-mix(in srgb, var(--grn) 20%, transparent); }
@keyframes now-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
:root[data-motion="on"] .now-dot { animation: now-blink 1.6s ease-in-out infinite; }
.now-figs { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: var(--sp-2); align-items: stretch; margin: var(--sp-2) 0; }
.now-fig { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px 12px 4px 8px; background: var(--act-t); color: var(--ink); cursor: pointer; font: inherit; }
.now-fig:hover { border-color: var(--act); }
.now-fig:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.now-fig-i { grid-row: 1 / 3; display: inline-flex; width: 26px; height: 26px; color: var(--act); }
.now-fig-i svg { width: 26px; height: 26px; }
.now-fig-v { font: 700 26px/1.05 var(--ui); font-variant-numeric: tabular-nums; }
.now-fig-l { font: 600 var(--t-xs) var(--ui); color: var(--mid); }
.now-hour { display: grid; align-content: center; gap: 4px; font-size: var(--t-xs); }
.now-hour p { margin: 0; }
.now-svg { width: 100%; height: auto; display: block; }
.now-svg .dash-hit { cursor: pointer; }
.now-bar { fill: var(--g); }
.now-users { stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; pointer-events: none; }
.dash-key.now-key-users { height: 0; width: 16px; border-top: 2px solid var(--ink); border-radius: 0; background: none; vertical-align: middle; }
.dash-key.now-key-checks { background: var(--g); }
.now-legend { margin-top: 2px; }
@keyframes now-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
:root[data-motion="on"] .now-bar { transform-box: fill-box; transform-origin: bottom; animation: now-rise .5s var(--ease-panel) both; }

/* How everything is doing: a tile a figure, filled with its grade's tint, its bar and icon in the grade's colour. */
.hboard { margin-bottom: var(--sp-3); }
.hboard-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.hboard-head .dash-h { margin: 0; }
.hboard-when { margin: 0; flex: 1 1 18rem; font-size: var(--t-xs); }
.hboard-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: var(--sp-2); }
.btile-w { min-width: 0; }
.btile {
  width: 100%; height: 100%; display: grid; gap: 2px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  border: 1px solid var(--g); border-top: 5px solid var(--g); border-radius: var(--r-s); padding: 6px 10px 8px; background: var(--g-t);
  transition: transform var(--m-lift), box-shadow var(--m-lift);
}
.btile:hover { transform: translateY(-2px); box-shadow: -5px 5px 14px rgba(var(--shade-rgb), .14); }
.btile:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.btile-top { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 30px; }
.btile-i { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--g); color: var(--on-fill); }
.btile-i svg { width: 15px; height: 15px; }
.btile-t { font: 700 var(--t-xs) var(--ui); line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.btile-v { font: 700 20px/1.15 var(--ui); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btile-g { display: inline-flex; align-items: center; gap: 4px; font: 700 var(--t-xs) var(--ui); color: var(--ink); }
.btile-gi { display: inline-flex; width: 14px; height: 14px; color: var(--g); }
.btile-gi svg { width: 14px; height: 14px; stroke-width: 2; }
.btile-s { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes btile-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
:root[data-motion="on"] .btile-w { animation: btile-in .38s var(--ease-panel) both; }
:root[data-motion="on"] .btile-w:nth-child(2) { animation-delay: 40ms; }
:root[data-motion="on"] .btile-w:nth-child(3) { animation-delay: 80ms; }
:root[data-motion="on"] .btile-w:nth-child(4) { animation-delay: 120ms; }
:root[data-motion="on"] .btile-w:nth-child(5) { animation-delay: 160ms; }
:root[data-motion="on"] .btile-w:nth-child(6) { animation-delay: 200ms; }
:root[data-motion="on"] .btile-w:nth-child(7) { animation-delay: 240ms; }
:root[data-motion="on"] .btile-w:nth-child(8) { animation-delay: 280ms; }
:root[data-motion="on"] .btile-w:nth-child(9) { animation-delay: 320ms; }
:root[data-motion="on"] .btile-w:nth-child(10) { animation-delay: 360ms; }
:root[data-motion="on"] .btile-w:nth-child(n+11) { animation-delay: 400ms; }
:root[data-motion="on"] .btile[data-grade="bad"] .btile-i { animation: ai-alarm 1s ease-in-out infinite; }

/* Every figure and every chart column on the dashboard can be pressed. */
.kpi-pick { cursor: pointer; transition: border-color var(--m-lift), box-shadow var(--m-lift); }
.kpi-pick:hover { border-color: var(--act); box-shadow: -4px 4px 10px rgba(var(--shade-rgb), .09); }
.kpi-pick:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.dash-svg-pick .dash-hit { cursor: pointer; }

/* The detail window. */
.dw { display: grid; gap: var(--sp-3); }
.dw-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-m); background: var(--g-t); border-left: 6px solid var(--g); }
.dw-bigi { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g); color: var(--on-fill); }
.dw-bigi svg { width: 26px; height: 26px; stroke-width: 2; }
.dw-headt { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.dw-value { margin: 0; font: 700 26px/1.1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.dw-sub { margin: 0; font-size: var(--t-s); color: var(--ink); }
.dw-when { margin: 0; font: 600 var(--t-xs) var(--ui); color: var(--mid); }
.dw-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--sp-2); margin: 0; }
.dw-fig { min-width: 0; }
.dw-figs dt { font: 600 var(--t-xs) var(--ui); color: var(--mid); }
.dw-figs dd { margin: 0 0 var(--sp-1); font: 700 var(--t-m) var(--ui); color: var(--ink); overflow-wrap: anywhere; }
.dw-rows { max-height: 18rem; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-s); }
.dw .dw-tbl td, .dw .dw-tbl th, .aiwho td, .aiwho th { text-align: left; vertical-align: top; }
.dw-tbl thead th { position: sticky; top: 0; background: var(--surf); }
.dw-about { margin: 0; }
.dw-copy .i svg { width: 16px; height: 16px; }

/* The reasons behind the light. */
.aicauses { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.aicause { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-s); background: var(--g-t); border-left: 4px solid var(--g); }
.aicause-i { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--g); color: var(--on-fill); }
.aicause-i svg { width: 15px; height: 15px; stroke-width: 2; }
.aicause-t { margin: 0; font: 700 var(--t-s) var(--ui); color: var(--ink); }
.aicause-s, .aicause-fix { margin: 2px 0 0; font-size: var(--t-xs); color: var(--ink); }

/* The AI panel. */
.aihero { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); border: 1px solid var(--line); border-left: 8px solid var(--light, var(--g-none)); background: linear-gradient(90deg, var(--light-t, transparent), var(--surf) 75%); margin-bottom: var(--sp-3); }
.aih-t { flex: 1 1 22rem; display: grid; gap: 2px; min-width: 0; }
.aih-word { font-size: 30px; }
.aih-why { margin: 0; font: 600 var(--t-m) var(--ui); color: var(--ink); }
.aih-t .hint { margin: 2px 0 0; font-size: var(--t-xs); }
.aih-acts { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.aih-acts .i svg { width: 16px; height: 16px; }
.aicauses-pane { margin-bottom: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.aiperiods { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aip { padding: 0; }
.aip-b { width: 100%; height: 100%; display: grid; gap: 1px; text-align: left; padding: 6px var(--sp-3); background: none; border: 0; font: inherit; color: inherit; cursor: pointer; border-radius: var(--r-s); }
.aip-b:hover { background: var(--act-t); }
.aip-b:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
:root[data-motion="on"] .aip { animation: tile-in var(--m-panel) var(--ease-panel) both; animation-delay: var(--delay, 0ms); }
.aigrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.ai-wide { grid-column: 1 / -1; }
.ai-chart .seg { margin-bottom: var(--sp-1); }

/* The hour grid: one hue from pale to deep, and grey where nothing ran. */
/* Every hour is a target of at least 24 by 24 with a mouse (WCAG 2.2 SC 2.5.8, found by the accessibility robot on
   17 November 2026) and 44 by 44 on a touch screen (PST-42, the touch block at the end of this sheet): where the card is
   too narrow for 24 of them, the grid scrolls sideways inside it rather than squeezing them. */
.heat { display: grid; gap: 2px; font-size: 10.5px; overflow-x: auto; }
.heat-row { display: grid; grid-template-columns: 5.6rem repeat(24, minmax(24px, 1fr)); gap: 2px; align-items: center; }
.heat-day { color: var(--mid); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat-h { color: var(--mid); text-align: left; }
.heat-c { height: 24px; min-width: 0; padding: 0; border: 0; border-radius: 3px; cursor: pointer; background: var(--heat-0); }
.heat-c:hover, .heat-c:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat-c[data-step="1"] { background: var(--heat-1); }
.heat-c[data-step="2"] { background: var(--heat-2); }
.heat-c[data-step="3"] { background: var(--heat-3); }
.heat-c[data-step="4"] { background: var(--heat-4); }
.heat-c[data-step="5"] { background: var(--heat-5); }
.heat-key { margin: var(--sp-1) 0 0; display: flex; align-items: center; gap: 3px; color: var(--mid); }
.heat-sw { width: 14px; height: 12px; cursor: default; display: inline-block; }
.heat-key .heat-c { height: 12px; }

/* Who, where, and the credit left. */
.aiwho th .lnkbtn { font-weight: 600; text-align: left; }
.aiwho td { white-space: nowrap; }
.aiwho td:nth-child(3), .aiwho td:nth-child(4) { text-align: right; }
.aiwho-barc { width: 30%; }
.aiwho-bar { display: block; height: 10px; width: var(--w, 0); border-radius: 0 4px 4px 0; background: linear-gradient(90deg, var(--ser-1), color-mix(in srgb, var(--ser-1) 65%, var(--surf))); }
.aisplit { display: flex; height: 18px; border-radius: var(--r-full); overflow: hidden; gap: 2px; background: var(--line2); margin: 0 0 var(--sp-1); }
.aisplit-s { flex: 0 0 var(--w, 0); min-width: 3px; }
.aistages { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: 4px; }
.aistages li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: var(--sp-2); align-items: center; font-size: var(--t-xs); }
/* The time each stage of a check took is a bar in the console's first chart colour, as the bar beside it
   is. It was the violet that means a rule is on the advert because the job works with children, which
   it has nothing to do with (PST-41, 17 November 2026). */
.aistage-bar { display: block; height: 10px; width: var(--w, 0); border-radius: 0 4px 4px 0; background: linear-gradient(90deg, var(--ser-1), color-mix(in srgb, var(--ser-1) 65%, var(--surf))); }
.aistage-v { color: var(--mid); font-variant-numeric: tabular-nums; }
.aigauge { display: grid; gap: 2px; margin-bottom: var(--sp-2); }
.aigauge-v { margin: 0; font: 700 28px/1.1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.aigauge-l { margin: 0; font-size: var(--t-xs); color: var(--mid); }
.aigauge-t { display: block; height: 12px; border-radius: var(--r-full); background: var(--line2); overflow: hidden; margin-top: 4px; }
.aigauge-f { display: block; height: 100%; width: var(--w, 0); background: var(--g); border-radius: var(--r-full); }
:root[data-motion="on"] .aigauge-f, :root[data-motion="on"] .aiwho-bar, :root[data-motion="on"] .aistage-bar { animation: bar-grow .7s var(--ease-panel) both; }
.aicredit-f { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--sp-2); align-items: center; margin: var(--sp-2) 0; }
.aicredit-f .lbl { margin: 0; font-size: var(--t-xs); }
.aicredit-f input { min-height: 32px; }
.aicredit-f .btn { grid-column: 1 / -1; justify-self: start; }
.aicredit-list { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: 2px; font-size: var(--t-xs); }
.aicredit-list li { display: flex; justify-content: space-between; gap: var(--sp-2); border-bottom: 1px solid var(--line2); padding: 2px 0; }
.aifails td, .aifails th { text-align: left; vertical-align: top; }
.aifail-d { white-space: normal; }

@media (max-width: 1100px) {
  .pulse { grid-template-columns: minmax(0, 1fr); }
  .aiperiods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aigrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .aiperiods { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .aic-figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .now-figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .now-hour { grid-column: 1 / -1; }
  .heat-row { grid-template-columns: 3.6rem repeat(24, minmax(24px, 1fr)); }
  .aistages li { grid-template-columns: 8rem minmax(0, 1fr); }
  .aistage-v { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------------------ alerts */

.alr-status { display: grid; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: var(--sp-3); }
.alr-line { margin: 0; display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--t-s); color: var(--ink); }
.alr-line .i { flex: none; color: var(--act); }
.alr-line .i svg { width: 18px; height: 18px; }
.alr-late { color: var(--red-h); font-weight: 600; }
.alr-late .i { color: var(--red); }
.alr-acts { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.alr-acts .i svg { width: 16px; height: 16px; }
.alr-acts [aria-disabled="true"] { opacity: .6; cursor: progress; }
.alr-open { margin-bottom: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.alr-form { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.alr-top { display: flex; gap: var(--sp-4); align-items: flex-end; flex-wrap: wrap; }
.alr-f { margin: 0; display: grid; gap: 4px; max-width: 22rem; }
.alr-f .hint { margin: 0; font-size: var(--t-xs); }
.alr-tick { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--t-s) var(--ui); color: var(--ink); min-height: 32px; }
.alr-tbl td, .alr-tbl th, .alr-hist td, .alr-hist th { text-align: left; vertical-align: middle; }
.alr-tbl select { min-height: 32px; }
.alr-val { font-size: var(--t-xs); color: var(--ink); }
.alr-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); align-items: start; }
.alr-ticks { display: grid; gap: 2px; }
.alr-form > .btn { justify-self: start; }
.alr-hist { margin-bottom: var(--sp-4); }
.alr-hist tr[data-grade] th { border-left: 4px solid var(--g); }
.alr-kind { font-weight: 700; }
.alr-kind[data-kind="recovered"] { color: var(--g-good); }
.alr-ok { color: var(--g-good); font-weight: 600; }
.alr-bad { color: var(--red-h); font-weight: 600; }

/* An open alert on the dashboard: a bell on its tile, which rings where the page moves. */
.btile-bell { margin-left: auto; flex: none; display: inline-flex; width: 18px; height: 18px; color: var(--g); }
.btile-bell svg { width: 18px; height: 18px; stroke-width: 2; }
.btile-alert { outline: 2px solid var(--g); outline-offset: 1px; }
@keyframes bell-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
:root[data-motion="on"] .btile-bell svg { transform-origin: 50% 10%; animation: bell-ring 2.4s ease-in-out infinite; }

/* The new tables read left to right, headings over their columns. Written this specifically
   because `.dash-tbl thead th:not(:first-child)` right-aligns every heading but the first. */
.dash-tbl:is(.dw-tbl, .aiwho, .aifails, .alr-tbl, .alr-hist) thead th:not(:first-child) { text-align: left; }
.dash-tbl.aiwho thead th:nth-child(3), .dash-tbl.aiwho thead th:nth-child(4) { text-align: right; }

/* The credit box on the AI card: a figure you can press, or the way to type one in. */
.aic-credit-b { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.aic-credit-b:hover { text-decoration: underline; }
.aic-credit-b:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.aic-credit-set { color: var(--act); font-size: 15px; }
/* Under the figures, not in their grid (the list of figures holds only names and values). */
.aic-credit-n { margin: 0 0 var(--sp-2); font-size: 11px; color: var(--mid); line-height: 1.2; }
.aic-acts .i svg { width: 14px; height: 14px; }
/* The alert's severity word on its grade's tint, edged in the grade, as a grade chip is: white on the
   amber or the orange was under 4.5:1, and the ink on a tint reads at 11:1 or better in both themes. */
.alr-sev { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--g-t); color: var(--ink); border: 1px solid var(--g); font: 700 var(--t-xs) var(--ui); letter-spacing: .02em; }

/* The check box holds its height before check.mjs draws it, so the footer is not drawn high and
   then pushed down a screen when the box appears: a layout shift of 0.18 on a laptop on /check
   (1 October 2026). The heights are the box as drawn at each width; :empty stops applying the
   moment anything is in it, so the box is never held taller than it is. */
#check-mount:empty { min-height: 493px; }
@media (max-width: 830px) { #check-mount:empty { min-height: 531px; } }
@media (max-width: 720px) { #check-mount:empty { min-height: 706px; } }
@media (max-width: 620px) { #check-mount:empty { min-height: 744px; } }
@media (max-width: 480px) { #check-mount:empty { min-height: 782px; } }

/* ------------------------------------------------------------ the free job advert templates

   tools/templates.mjs. The legal pages' reading column, without their contents panel, and the
   template itself in a box that keeps its line breaks so it copies as it reads. */
.tpl .legal-wrap { display: block; }
.tpl .legal-body { max-width: 72ch; }
.tpl-crumb { font-size: var(--t-s); color: var(--mid); margin-bottom: var(--sp-3); }
.tpl-text {
  white-space: pre-wrap; overflow-wrap: anywhere; font: 400 var(--t-b)/1.6 var(--ui); color: var(--ink);
  background: var(--surf); border: 1px solid var(--edge); border-radius: var(--r-m); padding: var(--sp-4) var(--sp-5);
  margin: 0 0 var(--sp-4);
}
.tpl-example { background: var(--rail); }
.tpl-go { margin: var(--sp-4) 0 var(--sp-2); }
.tpl .legal-body a.btn { color: var(--on-fill); text-decoration: none; }
.tpl-proof { border-left: 4px solid var(--prod); padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); }
.tpl-list li .hint { margin-left: var(--sp-2); }
.tpl-points .hint { display: block; margin-top: 2px; }
/* The way in to the templates, on the Check screen, is for somebody with nothing in the box yet.
   Once a result is on the screen it is a loose line of explanation above the answer, and on a
   phone it pushed the result down past the fold. */
#view-check:has(.result) .check-tpl { display: none; }

/* ------------------------------------------------------------ Second Lens accounts (6 Nov 2026)
   The shared kit (0.7.1) draws the docked line on every page, paired or not (sl-account.mjs): the
   account end at the bottom left and the teal Help end at the bottom right (PST-134 to PST-140).
   The top bar keeps only the product's own settings (PST-07).
   When /api/me says this copy is not paired with Second Lens (html.sl-unpaired, set by
   sl-account.mjs) there is no sign-in, so the account end is not offered: it keeps its place on
   the line, so the line and the Help end are where they always are, but it cannot be seen, pressed
   or reached by keyboard. While /api/me has not answered (html.sl-me-wait, for at most four
   seconds) Sign in is already shown in full, as on first load the standard asks (PST-135, PST-139),
   and no answer at all is not "not paired": Sign in stays in full, so it can always be pressed.
   The uses lozenge stays, always visible (Phil, 8 November 2026): it was hidden here once paired,
   so it showed the connection's count for the few seconds before /api/me answered and then went.
   It now says the person's own Second Lens uses while they are signed in (allowance.mjs). While
   sign-in is required and nobody is signed in, Check an advert shows the sign-in panel in place of
   the tool (PST-11). */
html.sl-unpaired .slk-dock .slk-end-a { visibility: hidden; }
/* The same on the Owner's two ways back in while the product is closed (html.sl-no-signin, set by
   public/js/closed-page.mjs): nobody can sign in while closed, so the account end keeps its place on the
   line and the teal Help end stays where it always is (PST-47, PST-87). */
html.sl-no-signin .slk-dock .slk-end-a { visibility: hidden; }
/* How tall the docked line stands at its ends, the kit's own sizes (public/sl-kit/kit.css .slk-end), so
   anything this product docks at the foot of the screen sits above it and never under it (PST-148). */
:root { --sl-dock-h: calc(30px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px), (pointer: coarse) { :root { --sl-dock-h: calc(44px + env(safe-area-inset-bottom, 0px)); } }
/* The shared kit (0.7.1) draws its own parts in its own light colours and has no dark values yet, so in
   the dark they stay light (PST-43 for them is the kit's to carry). The browser is told so here, so
   it draws the boxes inside them (the guide's search) light as well, not a dark box on a white panel. */
.slk-dock, .slk-fb, .slk-pop, .slk-guide, .slk-g, .slk-hm-bar, .slk-tip { color-scheme: light; }
html.sl-needs-signin #view-check > :not(.sl-signin) { display: none; }
.sl-signin { max-width: 40rem; margin: var(--sp-5) auto; text-align: center; }
.sl-signin h2 { margin-top: 0; }
.sl-refused p { margin: 0 0 var(--sp-4); }
.sl-refused .btn { margin-bottom: var(--sp-4); }
.sl-refused .sl-refused-why { border-left: 3px solid var(--gry); padding-left: var(--sp-3); }
.foot-sl { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; padding-top: var(--sp-3); }
.foot-sl a, .foot-sl .linklike { color: var(--nav-fg); display: inline-flex; align-items: center; min-height: 44px; }
/* Help in the footer is help, so it is the Help end's teal from the kit's one value (PST-47, PST-62,
   PST-138): a teal plate with white words, as the Help end is, because teal words on the navy footer
   would not be readable. Never typed here: the colour is the kit's --slk-teal, linked with the page. */
.foot-sl #foot-help { background: var(--slk-teal); color: var(--on-nav); text-decoration: none; padding: 0 var(--sp-4); border-radius: var(--r-s); font-weight: 600; }
.foot-sl #foot-help:hover { text-decoration: underline; }
.foot-sl #foot-help:focus-visible { outline: 3px solid var(--on-nav); outline-offset: 2px; }
/* The footer on the pages built outside the application (tools/page-kit.mjs): the same Second Lens
   line and links as the application's footer. */
.foot-page { margin-top: var(--sp-6); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

/* The front page chart: one ring that builds up from what each step adds, on a loop
   (js/door.mjs, ringChart). Ring on the left, the figure and its controls on the right. */
#view-door .fp-ring{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center;background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:22px 24px;box-shadow:-1px 1px 2px rgba(var(--shade-rgb), .06),-1px 1px 3px rgba(var(--shade-rgb), .10)}
#view-door .fp-ring-art,#view-door .fp-ring-read{min-width:0}
#view-door .fp-ring canvas{display:block;width:100%;max-width:460px;height:auto;margin:0 auto;font-family:var(--ui)}
#view-door .fp-ring-read{display:flex;flex-direction:column}
#view-door .fp-ring-read h3{color:var(--ink-2);font-size:15px;margin:0}
#view-door .fp-rv{color:var(--fp-rc,var(--red-h))}
#view-door .fp-tag.fp-tag-r{background:var(--red-t);color:var(--red-h)}
#view-door .fp-rs{font-size:13px;color:var(--mid);margin:4px 0 0}
#view-door .fp-rs b{color:var(--ink-2);font-weight:600}
#view-door .fp-ring .fp-stage{margin-top:14px}
#view-door .fp-rp{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;min-height:34px;padding:0 14px;border-radius:var(--r-s);border:1px solid var(--pl-back-e);background:var(--surf);color:var(--pl-back-t);cursor:pointer}
#view-door .fp-rp[hidden]{display:none}
#view-door .fp-rp-i{width:10px;height:12px;border-left:3px solid currentColor;border-right:3px solid currentColor}
#view-door .fp-rp.fp-paused .fp-rp-i{width:0;height:0;border-style:solid;border-width:6px 0 6px 10px;border-color:transparent transparent transparent currentColor}
#view-door .fp-rp:focus-visible,#view-door .fp-ring .fp-st:focus-visible{outline:3px solid var(--prod);outline-offset:2px}
#view-door .fp-keyrow i.fp-kleft{background:var(--line);border:1px solid var(--edge)}
@media (max-width:760px){#view-door .fp-ring{grid-template-columns:1fr;padding:18px 16px}}

/* The record in "Your proof": page 1 of the real PDF, as js/record.mjs draws it, in the site's face rather than the PDF's, with page 2
   behind and its Verification seal pulled forward. Colours are the PDF's own (js/pdf.mjs). */
#view-door .fp-rec{position:relative;margin:0;padding:14px 26px 0 0;display:flex;flex-direction:column;min-width:0}
#view-door .fp-rec-back{position:absolute;top:0;right:0;left:26px;bottom:96px;background:var(--surf);border:1px solid var(--line);border-radius:4px;box-shadow:-1px 1px 3px rgba(var(--shade-rgb), .10);transform:rotate(1.6deg);transform-origin:top right}
#view-door .fp-rec-back span{position:absolute;right:14px;bottom:10px;font-size:9px;color:var(--mid)}
#view-door .fp-rec-page{position:relative;background:var(--surf);border:1px solid var(--line);border-radius:4px;box-shadow:-2px 2px 6px rgba(var(--shade-rgb), .10),-8px 8px 24px rgba(var(--shade-rgb), .10);overflow:hidden;font-family:var(--ui);color:var(--ink)}
#view-door .fp-rec-band{display:flex;align-items:center;gap:10px;background:var(--nav);color:var(--on-nav);padding:14px 22px}
#view-door .fp-rec-band img{display:block;flex:none}
#view-door .fp-rec-name{display:flex;flex-direction:column;line-height:1.2}
#view-door .fp-rec-name b{font-size:9px;letter-spacing:.02em}
#view-door .fp-rec-name span{font-size:13px}
#view-door .fp-rec-ref{margin-left:auto;font-family:var(--mono);font-size:12px;letter-spacing:.04em;font-variant-numeric:tabular-nums slashed-zero}
#view-door .fp-rec-in{padding:16px 22px 6px}
#view-door .fp-rec-title{margin:0;font-size:19px;font-weight:700}
#view-door .fp-rec-org{margin:2px 0 10px;font-size:12px;color:var(--mid)}
#view-door .fp-rec-score{display:flex;align-items:center;gap:8px}
#view-door .fp-rec-score b{font-size:32px;line-height:1;font-weight:700;letter-spacing:-.02em}
#view-door .fp-rec-score span{display:flex;flex-direction:column;font-size:11px;color:var(--ink);line-height:1.3}
#view-door .fp-rec-score small{font-size:10px;color:var(--mid)}
#view-door .fp-rec-bar{display:flex;height:8px;margin:8px 0 4px;background:var(--line)}
#view-door .fp-rec-bar i{display:block;height:100%}
#view-door .fp-rb-p{width:87%;background:var(--stage-one)}
#view-door .fp-rb-a{width:13%;background:var(--stage-two)}
#view-door .fp-rec-small{margin:0 0 12px;font-size:9.5px;color:var(--mid)}
#view-door .fp-rec-h{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding-bottom:6px;border-bottom:1px solid var(--edge);font-size:12.5px;font-weight:700}
#view-door .fp-rec-h span{display:grid;place-items:center;width:18px;height:18px;color:var(--on-fill);font-size:10px;flex:none}
#view-door .fp-rh-copy{color:var(--prod)}#view-door .fp-rh-copy span{background:var(--prod)}
#view-door .fp-rh-checked{color:var(--ink-2)}#view-door .fp-rh-checked span{background:var(--ink-2)}
#view-door .fp-rh-seal{color:var(--ink)}#view-door .fp-rh-seal span{background:var(--nav);color:var(--on-nav)}
#view-door .fp-rh-seal em{margin-left:auto;font-style:normal;font-weight:400;font-size:10px;color:var(--mid)}
#view-door .fp-rec-text{margin:0 0 12px;padding:8px 12px;border-left:3px solid var(--prod);background:var(--prod-t);font-size:10.5px;line-height:1.6}
#view-door .fp-rec-text mark{background:var(--act-t);color:var(--act)}
#view-door .fp-rec-dl{margin:0 0 8px;font-size:10.5px}
#view-door .fp-rec-dl>div{display:grid;grid-template-columns:86px 1fr;gap:10px;padding:2px 0}
#view-door .fp-rec-dl dt{font-weight:700;color:var(--mid)}
#view-door .fp-rec-dl dd{margin:0}
#view-door .fp-rec-sum{margin:6px 0 4px;font-size:11.5px;font-weight:700}
#view-door .fp-rec-foot{display:flex;justify-content:space-between;gap:10px;margin:6px 22px 0;padding:8px 0 10px;border-top:1px solid var(--line);font-size:8.5px;color:var(--mid)}
#view-door .fp-rec-seal{position:relative;align-self:flex-end;width:min(330px,92%);margin:-46px -12px 0 0;padding:12px 14px;background:var(--surf);border:1px solid var(--ink);border-radius:6px;box-shadow:-6px 6px 18px rgba(var(--shade-rgb), .18);font-family:var(--ui);color:var(--ink)}
#view-door .fp-rec-mono{font-family:var(--mono);font-size:10px;font-variant-numeric:tabular-nums slashed-zero}
#view-door .fp-rec-mono>div{grid-template-columns:72px 1fr}
#view-door .fp-rec-mono dt{font-weight:400;color:var(--ink)}
#view-door .fp-rec-mono dd{overflow-wrap:anywhere}
#view-door .fp-rec-note{margin:6px 0 0;font-size:10px;color:var(--mid)}
#view-door .fp-rec .fp-certfoot{margin-top:14px}
@media (max-width:620px){
  #view-door .fp-rec{padding-right:0}
  #view-door .fp-rec-back{display:none}
  #view-door .fp-rec-seal{margin:-30px 0 0;width:100%}
  #view-door .fp-rec-dl>div{grid-template-columns:78px 1fr}
}

/* The source lists, as bullets that line up (owner, 13 November 2026). The caveats that used to sit
   in closed explainers under each section are in the Assurance Register terms now (PST-71, PST-73),
   and one line at the foot of the page links there (.fp-terms). */
#view-door .fp-notes{margin:0 0 12px;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
#view-door .fp-notes li{position:relative;padding-left:18px}
#view-door .fp-notes li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--prod)}
#view-door .fp-notes li[hidden]{display:none}
#view-door .fp-terms{margin-top:32px}
#view-door .fp-rec-ex{margin-top:12px}

/* Sources, folded and grouped like every other note on the page; the plans line where the plan
   cards were; and the pointer to the free templates (owner, 13 November 2026). */
#view-door .fp-srcs .fp-fine{margin-top:0}
#view-door .fp-src-h{margin:14px 0 6px;font-size:13px;font-weight:600;color:var(--ink)}
#view-door .fp-src-h:first-child{margin-top:4px}
#view-door .fp-plans-line{margin:0;font-size:16px;color:var(--ink)}
#view-door .fp-tpl-line{margin:18px 0 0}

/* The free guides (tools/guides.mjs), on the template pages' shell. */
.tpl .gd-rule { margin: 6px 0 0; padding-left: 18px; color: var(--mid); font-size: .95em; }
.tpl .gd-rule li { margin: 2px 0; }
.tpl .gd-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; }
.tpl .gd-pair h3 { margin: 4px 0 6px; font-size: 1rem; }
.tpl .gd-steps { padding-left: 22px; }
.tpl .gd-steps > li { margin: 0 0 18px; }
.tpl .gd-steps h2 { font-size: 1.1rem; margin: 0 0 6px; }
.tpl .gd-steps p { margin: 0 0 6px; }
.tpl .gd-or { margin: 28px 0 8px; padding: 4px 20px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--rail); }

/* ------------------------------------------------------------------ targets on a touch screen

   PST-42: every button and link at least 44 by 44 on a touch screen, the checks lozenge, the console's
   switches, filter chips, facets, event lines, levels, both hour grids (the Hours pane's and the AI
   pane's), the rows of the Connections chart, the credit on the AI card and the switch of every details
   in the console included (the review of 16 November 2026 measured the lozenge at 216 by 34 on a touch
   screen; the review of 18 November 2026 found the Hours pane's hours at 24.8 by 52, a Connections row at
   342 by 38 and Add your credit at 124 by 18, on panes of the console no robot had opened on a touch
   screen until then, and the robot then found the API log's Match a client's own log at 316 by 39). The
   docked line robot opens every pane of the console on a touch screen now. A touch screen is a coarse
   pointer, whatever its width, so a tablet held sideways gets them too. PST-42 says every link and
   makes no exception for one inside a sentence, as WCAG 2.5.8 does, so a link in running text is a
   target here too (the last rule of this block), and so is one in a menu or details that is shut
   until it is opened. Last in the sheet and marked important, so no smaller height set for a mouse
   above it can win on a touch screen. With a mouse the smallest target is 24 by 24 (WCAG 2.5.8,
   PST-137). */
@media (pointer: coarse) {
  .btn, .ghost, .btn-report, .btn-s, .ghost-s, .chip, .seg button, .navlink, .navitem, select,
  .bar-burger, .bar-cog > summary, .bar-set-row, .bar-set-motion, .info, .linklike, .sect-a,
  .foot-legal a, .foot-sl a, .legal-toc a, .legal-cross a,
  #view-door .fp-st, #view-door .fp-rp, #view-door .fp-share-sec, #view-door .fp-fine summary, #view-door .fp-faq summary,
  #view-door .fp-toc a, #view-door .fp-top a, .tpl-more a, .tpl-list a,
  .allow-chip, .switch, .chipf, .facet, .reason, .viewseg, .menu-row, .devtools-row, .al-tab, .swap-undo,
  .ev-line, .lnkbtn, .log-level, .toast-x, .devbar-out, .heat-c:not(.heat-sw), .aip-b, .meter-what > summary,
  .dash-table summary, #view-admin .misfire-more summary, .console-end .ghost,
  button.hourbar, .bar-row-go, .aic-credit-b, #view-admin details > summary {
    min-height: 44px !important; min-width: 44px !important;
  }
  /* The console's two hour grids keep a 44 by 44 cell for every hour (the Hours pane's bars are 52 tall)
     and scroll sideways inside their card rather than squeezing the cells under a finger's width. */
  .heat { overflow-x: auto; }
  .heat-row { grid-template-columns: 5.6rem repeat(24, 44px); }
  #hours-rows .hourgrid { grid-template-columns: repeat(24, 44px); }
  #hours-rows > .hour-row, #hours-rows > .hour-axis { min-width: calc(24 * 44px + 23 * 2px); }
  .aic-credit-b { display: inline-flex; align-items: center; }
  .lnkbtn { display: inline-flex; align-items: center; }
  .info { width: 44px; height: 44px; }
  /* The (i) explanation button's teal disc stays its own size in the middle of the 44 (app.css .info-help). */
  .info-help { padding: 9px; }
  .foot-legal a, .legal-toc a, .legal-cross a, .sect-a,
  #view-door .fp-top a, .tpl-more a, .tpl-list a { display: inline-flex; align-items: center; }
  /* The Overview's contents strip, its Back to top links and the guides' and templates' lists of more
     pages are links standing on their own, so they are targets too. The source lists are citations
     inside sentences ("sections 39, 55 and 109"), so their links are sized as links in running text
     are, below (18 November 2026: a box of exactly 44 there could land between two screen pixels, and
     the robot's press found a point of it taken by the line). */
  #view-door .fp-notes { gap: 4px; }
  /* And a link in running text (17 November 2026, widened 18 November 2026). Such a link stands in its line
     as a box of its own, at least 44 by 44 (46, so a box that lands between two screen pixels still gives
     44 to a finger), with its words in the middle, so the line it is on grows round it. Space added round
     an inline link instead would leave the lines either side where they were, drawn over the extra space,
     so a press there would land on the words above or below, or on the next link (review of 17 November
     2026). A long link wraps inside its own box. Until 18 November 2026 this reached only a link standing
     straight in a sentence with no class; it now reaches one nested in other words (in bold, say) and one
     carrying a class of its own, as PST-42 says every link. Left out are a link drawn as a button or a
     box of its own, sized in the block above (.btn, .ghost, the bar's links, the Overview's sections and
     the like), the links already drawn as a box at least 44 tall above (the footer's own line, the legal
     pages' contents, the guides' and templates' lists, and the Overview's contents and Back to top), and
     anything the shared kit draws, which this product may not restyle. The docked line robot
     (tools/dock-robot.mjs) presses every button and link on every page at phone width with touch, with
     each shut menu and details opened in turn, across the circle 44 across at its middle, and fails if
     anything else takes the press. */
  :is(p, li, td, th, dt, dd, figcaption, blockquote, small, span, em, strong, b, i, u, mark, cite, q, label, .pr-allow) a[href]:not(:is(.btn, .ghost, .navlink, .navitem, .sect-a, .menu-row, .devtools-row, .chip, .allow-chip, .bar-brand, .skip, .linklike, [class^="slk-"], [class*=" slk-"])):not(:is(.foot-sl, .legal-toc, .tpl-more, .tpl-list, #view-door .fp-top, #view-door .fp-toc, .slk-dock, .slk-fb, .slk-pop, .slk-guide, .slk-g, .slk-tip, .slk-hm-bar, .slk-closed, .slk-state) a) {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; min-width: 46px; max-width: 100%; vertical-align: baseline;
  }
}
