
/* Tokens — the single source of numbers for the whole UI.
 *
 * No raw number lives outside this file: no colour, size or spacing. The guard
 * (tokens_test.go) (tokens_test.go) rejects any template that writes a number itself. Want to change the site's look?
 * Change it here and it applies to every page.
 *
 * Origin: the home-page design reference under docs/.
 *
 * Hover rules — fixed:
 *   1 · no large-area element changes its background colour on hover.
 *   2 · no element grows, moves or shifts what is around it on hover.
 *   3 · the header is simple: no pill and no background; the current item is darker ink only.
 * Hover = a change of text colour or border colour only.
 */
:root{
  /* ── 1 · Type scale ─────────────────────────────────────────────
     Nine steps, each with one use. The base is 15, and the jumps
     are tuned so a heading stands out without shouting.

       2xs 11  small caption, counter inside a badge
       xs  12  mono, technical data, footer
       sm  13  secondary, column heads, hint under a field
       md  15  body, nav, buttons, fields
       lg  17  font name, card title, small section title
       xl  19  section title
       2xl 24  inner page title
       3xl 32  section landing page title
       4xl 44  large display (home page only)                        */
  --f-2xs:.6875rem; --f-xs:.75rem; --f-sm:.8125rem; --f-md:.9375rem;
  --ic:1.25em;        /* the icon is a quarter larger than its line's text, with a thin stroke (rule: larger, thinner icons) */
  --ic-sm:1.25rem; --ic-md:1.375rem; --ic-lg:1.5rem;  /* icon in a button of its own: 20 · 22 · 24 */
  --ic-stroke:1.1;    /* icon stroke width on a 16 grid: thin and constant however large the size */
  --f-lg:1.0625rem; --f-xl:1.1875rem; --f-2xl:1.5rem; --f-3xl:2rem; --f-4xl:2.75rem;

  /* Line height follows size: large is tight and body is open (Arabic script needs air). */
  --lh-tight:1.2; --lh-snug:1.4; --lh:1.65; --lh-loose:1.85;

  /* Three weights only. Five weights on one screen cancel the hierarchy they were meant for. */
  --w:400; --w-mid:500; --w-bold:600;

  /* Text roles: every heading on the site takes one of these roles and never writes its own size. The role sets the size, weight, line
     height and colour, and -gap the space between the heading and its content. Edit the role here and it changes everywhere. And the test
     TestHeadingsUseTextRoles rejects any heading with a raw size.
     display  large display heading (home page, article, hero). And display-sm is the same on narrow screens.
     title-1  page title (h1). (h1).
     title-2  section title (h2). (h2).
     title-3  group title inside a section or panel (h3). (h3).
     quiet    quiet, faint heading (font page sections, cards).
     meta     small faint side text (count, date, explanation next to a heading).
     label    very small heading (day date, column head). */
  --display-size:var(--f-4xl); --display-sm-size:var(--f-3xl); --display-weight:var(--w-bold); --display-lh:var(--lh-tight); --display-color:var(--ink);
  --title-1-size:var(--f-2xl); --title-1-weight:var(--w-bold); --title-1-lh:var(--lh-tight); --title-1-color:var(--ink); --title-1-gap:var(--sp-4);
  --title-2-size:var(--f-xl); --title-2-weight:var(--w-bold); --title-2-lh:var(--lh-snug); --title-2-color:var(--ink); --title-2-gap:var(--sp-3);
  --title-3-size:var(--f-lg); --title-3-weight:var(--w-mid); --title-3-lh:var(--lh-snug); --title-3-color:var(--ink); --title-3-gap:var(--sp-2);
  --quiet-size:var(--f-md); --quiet-weight:var(--w-mid); --quiet-lh:var(--lh-snug); --quiet-color:var(--dim); --quiet-gap:var(--sp-2);
  --meta-size:var(--f-sm); --meta-weight:var(--w); --meta-lh:var(--lh-snug); --meta-color:var(--dim);
  --label-size:var(--f-xs); --label-weight:var(--w-mid); --label-lh:var(--lh-snug); --label-color:var(--faint);

  /* Letter tracking: large headings tighten slightly, and small badges open up. */
  --ls-tight:-.015em; --ls:0; --ls-wide:.04em;

  /* System font: no loading and no flash. Swappable in one line later. */
  --ui:system-ui,-apple-system,"SF Arabic","Segoe UI",sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;

  /* ── 2 · Spacing: 4px grid ──────────────────────────────
       0 4 · 1 8 · 2 12 · 3 16 · 4 24 · 5 32 · 6 48 · 7 64 · 8 96
     inside a part 0–2, between parts 3–4, between sections 5–7, between pages 8. */
  --sp-0:.25rem; --sp-1:.5rem; --sp-2:.75rem; --sp-3:1rem; --sp-4:1.5rem;
  --sp-5:2rem; --sp-6:3rem; --sp-7:4rem; --sp-8:6rem;

  /* ── 3 · Widths ─────────────────────────────────────────────── */
  --w-text:65ch;      /* comfortable reading width */
  --w-article:42rem;  /* article column (as in Medium) */

  /* ── Article: long-form reading type is larger and more open than the tool UI ──────────── */
  --f-art:1.3125rem; --f-art-lede:1.25rem; --f-art-h2:1.75rem; --f-art-h1:2.5rem;
  --lh-art:1.8; --lh-art-h2:1.3; --lh-art-h1:1.25; --ls-art:-.01em;
  --art-gap:1.4em;    /* between paragraphs */
  --art-h2-top:1.8em; --art-h2-bot:.6em; --art-h3-top:1.4em; --art-h3-bot:.5em;
  --art-indent:1.6em; --art-li:.35em; --art-quote:1em; --art-underline:.15em; --art-rule:2em;
  --w-narrow:26rem;   /* sign-in form, message */
  --w-page:70rem;     /* inner page */
  --orbit-size:30rem; /* home-page hint rings around the logo */
  --blur-veil:7px; --blur-soft:5px; /* page blur, and header elements behind the hint */
  --w-wide:90rem;     /* large grids */
  --w-rail:15rem;     /* dashboard side rail */
  --w-ctl:10rem;      /* minimum width for a field in a single row */
  --w-cell:14rem;     /* minimum width for a grid cell */
  --w-cell-lg:20rem;
  /* Admin pages (discounts): form width and page description. */
  --w-form:35rem;
  --w-desc:40rem;
  --h-ctl-md:2.25rem;
  --w-pin:14.75rem;   /* masonry grid column (same width as a Pinterest card) */
  --h-hd:4rem;      /* header */
  --h-ctl:2.5rem;     /* button and field: one height they share */
  --h-ctl-sm:2rem; --h-ctl-lg:3rem;

  /* ── 4 · Corners ─────────────────────────────────────────────── */
  --r-xs:4px; --r-sm:8px; --r:12px; --r-lg:16px; --r-xl:18px; --r-2xl:32px; --r-pill:999px;

  /* ── 5 · Colours ─────────────────────────────────────────────
     Ink in four steps, two surfaces, a thin divider, and one colour. And soft sits between ink and dim: text that reads comfortably
     (measured on the surface: 10.0). */
  --ink:#16181d; --soft:#404248; --dim:#4b5160; --faint:#6b7280;
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  --bg:#fafaf9; --surface:#ffffff; --rail:#ffffff;
  --sunken:#f4f4f2;
  --line:#ececea; --line-soft:#f2f2f0; --line-strong:#dcdcd8;

  --accent:#8be98b; --accent-ink:#16181d;   /* light mint green: text on it is ink, not white (contrast 11 versus 1.6) */
  --accent-soft:#eafbea; --accent-line:#b6f0b6; --pick:#f1fcf1;
  --accent-sky:#fe4504;   /* accent colour (trial 2026-10-17: red-orange instead of the Telegram-image sky #b0fafc); with the --fx-* effects below */
  /* The three approved effects: ready-made backgrounds applied via background. Text on them is always ink. */
  --premium:color-mix(in srgb,var(--accent-sky) 40%,var(--surface)); --premium-ink:var(--ink);   /* subscribe button and paid: same colour as the extension */
  --fx-sky-fade:linear-gradient(to bottom,var(--accent-sky),var(--surface));                                                   /* promo badge: sky on top fading to white below */
  --mark-loop:3.6s;--mark-ease:cubic-bezier(.45,0,.2,1);--mark-sheen:rgb(255 255 255 / .92);--mark-dim:.5;--mark-full:.9; /* Typud mark light in the extension: pastel lights rotating inside it with a sheen passing over, same values */
  --focus-low:rgb(33 150 188 / .22);--focus-mid:rgb(139 233 139 / .1); /* selection mode in the extension: a gradient from the bottom in the logo's blue then its green, same values */
  --brand-pinterest:#e60023;--brand-dribbble:#ea4c89;--brand-behance:#1769ff;--brand-ig-1:#ffd600;--brand-ig-2:#ff7a00;--brand-ig-3:#ff0069;--brand-ig-4:#d300c5;--brand-ig-5:#7638fa; /* site icons in the "Stay tuned" display: their current official colours (Pinterest from its brand guide, Dribbble and Instagram from Simple Icons 16.36 and the guide from Meta) */
  --fx-sky-corner:linear-gradient(225deg,color-mix(in srgb,var(--accent-sky) 40%,var(--surface)),var(--surface) 40%);          /* card: a touch of sky from the top right corner */
  --fx-gray-corner:linear-gradient(225deg,color-mix(in srgb,var(--ink) 5%,var(--sunken)),var(--surface) 55%);                  /* card: a touch of the menu grey from the top right corner */
  /* The pastel colours, each used alone. The four-colour pastel gradient (--fx-pastel) is banned for good (2026-11-22): never
     put them together in a gradient anywhere. */
  --pastel-peach:#ffd3c2;   /* peach */
  --pastel-butter:#ffe7a6;  /* butter yellow */
  --pastel-mint:#c8f2dc;
  --mesh-sky:#86c8f4;--mesh-mint:#9ae6bd;--mesh-butter:#ffe089;--mesh-base:#a9dfe0; /* free-form gradient background: blobs in colours deeper than the pastels so a white word shows on top */    /* mint */
  --pastel-sky:#c6e2ff;     /* light blue */
  --go-green:#3c8f1f;       /* the canvas search button (owner's reference): a gradient from green to blue, two shades deep, under a glassy light */
  --go-blue:#2770c2;
  --go:#8fd14f;             /* the canvas search button (owner's design): its green, and the dark green of its text */
  --go-ink:#12300a;
  --mark-lime:#85d61a;      /* the live Typud mark's own colours (liquid-mark.js), for the canvas main button */
  --mark-green:#4db833;
  --mark-teal:#1a8f8c;
  --mark-blue:#1a6bb8;
  --store-chrome:#0b57d0;   /* the Chrome Web Store install button (extension page only) */
  --store-firefox:#0060df;  /* the Firefox Add-ons install button (extension page only) */
  /* Card touch (2026-11-07): a light pastel colour from the card's top right corner fading out before its text, and the card keeps its colour.
     Each card colour (tint-N) has its own. To remove it: --fx-touch-on:0 (or delete the lines). */
  --fx-touch-on:1;
  --fx-touch-strength:35%;
  /* And the card colour itself is slightly lighter (mixed with white): with the touch it was tiring on the eye. 100% = its original colour. */
  --fx-tint-mix:72%;
  --fx-touch-reach:60%;
  --fx-touch-peach:linear-gradient(to bottom left,color-mix(in srgb,var(--pastel-peach) calc(var(--fx-touch-strength) * var(--fx-touch-on)),transparent),transparent var(--fx-touch-reach));
  --fx-touch-butter:linear-gradient(to bottom left,color-mix(in srgb,var(--pastel-butter) calc(var(--fx-touch-strength) * var(--fx-touch-on)),transparent),transparent var(--fx-touch-reach));
  --fx-touch-mint:linear-gradient(to bottom left,color-mix(in srgb,var(--pastel-mint) calc(var(--fx-touch-strength) * var(--fx-touch-on)),transparent),transparent var(--fx-touch-reach));
  --fx-touch-sky:linear-gradient(to bottom left,color-mix(in srgb,var(--pastel-sky) calc(var(--fx-touch-strength) * var(--fx-touch-on)),transparent),transparent var(--fx-touch-reach));
/* direction: from the left (and slightly below) to the right */
  /* Focus: an ink outline and a light grey glow, no green (the green glow was not wanted). */
  --focus:var(--ink); --focus-soft:var(--line-soft);

  --good:#1f8a52; --good-bg:#e6f6ed; --good-line:#a8e3c3;
  --warn:#7a4c00; --warn-bg:#fdf3de; --warn-line:#e8cf9a;
  --bad:#9c2721;  --bad-bg:#fceceb;  --bad-line:#eec3bf;

  /* Circle pastels: eight quiet colours, and the matching ink for each. */
  --p-1:#f1eedd; --p-2:#f2e9dd; --p-3:#f1e4e4; --p-4:#efe5ec;
  --p-5:#e9e4f1; --p-6:#e4edf1; --p-7:#e4ecdf; --p-8:#eae7e2;
  --p-ink-1:#5d5246; --p-ink-2:#5d4652; --p-ink-3:#525d46; --p-ink-4:#46525d;
  /* Chart colours: a pastel colour per category (country, font, style…) in order, and the last is "Other". Their contrast on white is between 1.6 1.6
     and 2.1 (measured), so a colour never stands alone: each has a name or number in ink beside it, and ink on them is 8.4 or more. */
  --c-1:#8fb8f5; --c-2:#8fd6a8; --c-3:#f3a6c8; --c-4:#f2c48d; --c-5:#bca7f0;
  --c-6:#8fd3dd; --c-7:#f7b08f; --c-8:#b9d68a; --c-9:#c5cad3;

  /* Curtain over the page (dialogs, loading). */
  --veil:rgb(250 250 249 / .55); --veil-thick:rgb(250 250 249 / .62);
  --scrim:rgb(0 0 0 / .16);  /* dark layer over a card on hover */
  --on-media:rgb(255 255 255 / .94);  /* a line or handle over an image: light because the image under it may be dark */
  --shade:rgb(0 0 0 / .5);  /* darkening outside a selected region over an image */

  /* ── 6 · Shadows ─────────────────────────────────────────────── */
  --shadow-1:0 1px 2px rgb(22 24 29 / .06);
  --shadow-2:0 6px 22px rgb(22 24 29 / .08);
  --shadow-3:0 18px 50px rgb(22 24 29 / .12);
  --shadow-card:0 1px 2px rgb(22 24 29 / .03),0 10px 28px rgb(22 24 29 / .05);
  --shadow-float:0 20px 60px rgb(22 24 29 / .14);
  --shadow-up:0 -4px 20px rgb(22 24 29 / .08);

  /* ── 7 · Motion ─────────────────────────────────────────────── */
  --t-fast:150ms; --t-quick:320ms; --t:500ms; --t-slow:680ms;
  --e-out:cubic-bezier(.2,.8,.3,1);
  --e-spring:cubic-bezier(.2,.9,.3,1.35);
  --e-glide:cubic-bezier(.3,.75,.25,1);
  --e-gravity:cubic-bezier(.5,-.05,.65,1);

  /* ── 8 · Layers ─────────────────────────────────────────────── */
  --z-hd:20; --z-float:30; --z-veil:40; --z-modal:50; --z-toast:60;
}

@media (prefers-reduced-motion:reduce){:root{--t-fast:0ms;--t-quick:0ms;--t:0ms;--t-slow:0ms}}


/* Base — every number here is a token. Pages compose parts and never invent. */
*,*::before,*::after{box-sizing:border-box}
/* No rubber-band bounce: scrolling stops at the top and bottom of the page, so no gap appears above the header as if it were a bug. */
html{height:100%;overscroll-behavior-y:none}
body{overscroll-behavior-y:none}
body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);
  font:var(--w) var(--f-md)/var(--lh) var(--ui);
  text-rendering:optimizeLegibility;display:flex;flex-direction:column}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
button,input,select,textarea{font:inherit;color:inherit}
img,svg{max-width:100%;display:block}
/* The browser joins Arabic letters across inline element boundaries: text ending in a joining letter followed by an element starting with a letter, separated by a margin
   rather than a space, so the end of the first takes its medial form as if cut off (a word followed by a small tag renders with the wrong final letter shape). Isolation breaks the joining
   at the element boundary without changing the order; and at zero specificity any other unicode-bidi wins. A word is never split across elements on the site. */
:where(small,span,a,b,strong,em,i,time,label,abbr,code,kbd,sup,sub,output){unicode-bidi:isolate}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--r-xs)}
::selection{background:var(--accent-soft)}
[hidden]{display:none!important}
.trap{position:absolute;inset-inline-start:-200vw;opacity:0;pointer-events:none}

/* ── Heading scale: from the text roles in the tokens (tokens.html). A tag takes its default role, and any other element takes the role
   by its class (.title-2, .title-quiet, .text-meta …). Pages never write a heading size themselves: they change the role by class or by the role's properties. ─────── */
h1,.title-1{font-size:var(--title-1-size);line-height:var(--title-1-lh);font-weight:var(--title-1-weight);letter-spacing:var(--ls-tight);text-wrap:balance}
h2,.title-2{font-size:var(--title-2-size);line-height:var(--title-2-lh);font-weight:var(--title-2-weight);letter-spacing:var(--ls-tight)}
h3,.title-3{font-size:var(--title-3-size);line-height:var(--title-3-lh);font-weight:var(--title-3-weight)}
.title-quiet{font-size:var(--quiet-size);line-height:var(--quiet-lh);font-weight:var(--quiet-weight);color:var(--quiet-color);letter-spacing:0}
.text-meta{font-size:var(--meta-size);line-height:var(--meta-lh);font-weight:var(--meta-weight);color:var(--meta-color);letter-spacing:0}
.text-label{font-size:var(--label-size);line-height:var(--label-lh);font-weight:var(--label-weight);color:var(--label-color);letter-spacing:0}
h4{font-size:var(--quiet-size);line-height:var(--quiet-lh);font-weight:var(--quiet-weight)}
.display{font-size:var(--display-size);line-height:var(--display-lh);font-weight:var(--display-weight);letter-spacing:var(--ls-tight);text-wrap:balance}
.title{font-size:var(--display-sm-size);line-height:var(--display-lh);font-weight:var(--display-weight);letter-spacing:var(--ls-tight)}
.lede{font-size:var(--f-lg);line-height:var(--lh);color:var(--dim);max-width:var(--w-text)}
.muted{color:var(--dim)}.faint{color:var(--faint)}
.small{font-size:var(--f-sm)}.tiny{font-size:var(--f-xs)}
.mono{font-family:var(--mono);font-size:var(--f-xs);font-variant-numeric:tabular-nums}
.num{font-variant-numeric:tabular-nums}
.eyebrow{font-size:var(--f-xs);font-weight:var(--w-mid);letter-spacing:var(--ls-wide);text-transform:uppercase;color:var(--faint)}
.prose{max-width:var(--w-text);line-height:var(--lh-loose)}
.prose p+p,.prose ul+p,.prose p+ul{margin-block-start:var(--sp-3)}
.prose h2{margin-block:var(--sp-5) var(--sp-2)}.prose h3{margin-block:var(--sp-4) var(--sp-1)}
.prose ul{list-style:disc;padding-inline-start:var(--sp-4)}

/* ── Structure ───────────────────────────────────────────────────── */
/* ── Vertical rhythm: five steps only, and spacing comes from the container, not the part ──
     A  between page sections          sp-6 48   .stack-lg
     B  between blocks in a section    sp-4 24   header→content, filter→list, card→card, fields→actions
     C  inside a block                 sp-2 12   title→its line, subtitle→its content, inside a card
     D  between items on a line        sp-1 8    buttons, badges, row fields
     E  inside a single item           sp-0 4    name→its description in a row
     Fields are spaced sp-3 16 because they are full size. No part carries an outer margin. */
.main,.page{flex:1;min-width:0;width:100%;max-width:var(--w-page);margin-inline:auto;
  padding:var(--sp-5) var(--sp-4) var(--sp-7)}
/* All pages use the explore frame: full screen width with an sp-3 edge left and right, and the page title at the regular h1 size
   starting from the same place. Reading columns (blog post text) set their width from within. */
.main{max-width:none;padding-inline:calc(var(--sp-3) + var(--sp-2))}
/* Trial: the shell under the header is a narrow icon sidebar at the start of the line, then the content.
   The sidebar sticks below the header at screen height, with settings at its bottom. On narrow screens it disappears. */
.shell{display:flex;align-items:flex-start}
.shell-body{flex:1;min-width:0}
html[dir=ltr] .shell{flex-direction:row-reverse}   /* sidebar on the right in every language */
.dock{position:sticky;top:var(--h-hd);flex:none;display:flex;flex-direction:column;align-items:center;gap:var(--sp-2);
  width:calc(var(--h-ctl-lg) + var(--sp-4));min-height:calc(100vh - var(--h-hd));
  padding-block:var(--sp-4);
  background:var(--rail);border-left:1px solid var(--line)}
.dock :is(a,button){display:grid;place-items:center;width:var(--h-ctl-lg);height:var(--h-ctl-lg);border-radius:var(--r);color:var(--ink)}
.dock button{padding:0;border:0;background:none;cursor:pointer}
/* Icons are larger with a thinner stroke: the default stroke is drawn for small sizes and gets heavy at this size. */
.dock :is(a,button) .ic{width:calc(var(--sp-4) * 1.2);height:calc(var(--sp-4) * 1.2);stroke-width:.8}
.dock button[aria-pressed=true]{background:var(--sunken)}
/* Current page in the sidebar: the icon itself becomes filled (like the filled bell), with no black square. */
.dock a .ic+.ic{display:none}
.dock a[aria-current] .ic:first-of-type{display:none}
.dock a[aria-current] .ic+.ic{display:block}
.ic .f{fill:currentColor}
.ic .k{stroke:var(--bg)}
.ic .b{stroke-width:1.6}
/* File attachments: the native input is hidden behind a regular button, and the selection shows as chips with name, size and a remove button. */
.attach{position:relative;display:inline-flex;align-items:center;gap:var(--sp-1);padding:0 var(--sp-3);height:var(--h-ctl-sm);border:1px solid var(--line);border-radius:var(--r-pill);color:var(--dim);font-size:var(--f-sm);cursor:pointer;background:var(--surface)}
.attach:hover{color:var(--ink)}
.attach input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.attach:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.file-chips{display:flex;flex-wrap:wrap;gap:var(--sp-1)}
.file-chip{display:inline-flex;align-items:center;gap:var(--sp-1);padding:0 var(--sp-0) 0 var(--sp-2);height:var(--h-ctl-sm);border-radius:var(--r-pill);background:var(--sunken);color:var(--ink);font-size:var(--f-xs);direction:ltr;unicode-bidi:isolate}
.file-chip .x{border:0;background:none;color:var(--faint);cursor:pointer;font-size:var(--f-md);line-height:1;padding:0 var(--sp-1)}
.file-chip .x:hover{color:var(--ink)}
.attach-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
/* The "signed in as a user" bar: inverted colours (text colour as the background), fixed above the header, prominent without a new colour. */
.acting-bar{position:sticky;top:0;z-index:calc(var(--z-hd) + 1);display:flex;align-items:center;justify-content:center;gap:var(--sp-3);padding:var(--sp-1) var(--sp-3);background:var(--ink);color:var(--bg);font-size:var(--f-sm);margin:0}
.acting-bar .btn{background:var(--bg);color:var(--ink);border-color:var(--bg)}
.dock-end{margin-block-start:auto}
/* A gap separating browsing from the account owner's sections (no line). */
.dock-sep{margin-block-start:var(--sp-4)}
/* History and saved: a section of its own. The grey box and the dark background were heavy. */
.dock-mine{display:flex;flex-direction:column;align-items:center;gap:var(--sp-2)}
/* Between two short thin lines above and below it, as wide as the icon. (Tried: grey box, dark background, solid icons — all rejected.) */
.dock-mine::before,.dock-mine::after{content:"";inline-size:var(--sp-4);border-block-start:1px solid var(--line-strong)}
/* Inbox badge: count of new replies in a small accent circle at the icon's corner. */
.dock a{position:relative}
.dock-n{position:absolute;top:var(--sp-0);inset-inline-end:var(--sp-0);min-width:var(--ic-md);height:var(--ic-md);padding:0 var(--sp-0);border-radius:var(--r-pill);background:var(--accent);color:var(--accent-ink);font-style:normal;font-size:var(--f-2xs);font-weight:var(--w-bold);display:grid;place-items:center;line-height:1}
@media (max-width:52em){.dock{display:none}}
/* Spacing between elements of a vertical form only (no class, or .form): forms with a class build their own layout
   (usually a horizontal row with gap), and the margin was pushing their button below the field beside it across the whole site. */
.main>*+*,.page>*+*,section>*+*,article>*+*,form:not([class])>*+*,form.form>*+*,form.drop>*+*,form.res-opt>*+*,form.ver-add>*+*,.gate>*+*{margin-block-start:var(--sp-4)}
.ph+.lede,h1+.lede,h2+*,h3+*,.card>*+*,.hero>*+*{margin-block-start:var(--sp-2)}
/* And the hidden field (csrf) does not count as a sibling: the first visible element after it has no margin. */
form>input[type=hidden]+*,form>.trap+*{margin-block-start:0}
.field+.field{margin-block-start:var(--sp-3)}
.stack{display:flex;flex-direction:column;gap:var(--sp-4)}
.stack>*+*,.stack-sm>*+*,.stack-lg>*+*{margin-block-start:0}
.stack-sm{display:flex;flex-direction:column;gap:var(--sp-2)}
.stack-lg{display:flex;flex-direction:column;gap:var(--sp-6)}
.row{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.acts{display:flex;align-items:center;gap:var(--sp-1);flex-wrap:wrap}
.grid{display:grid;gap:var(--sp-3);grid-template-columns:repeat(auto-fill,minmax(var(--w-cell),1fr))}
/* Masonry grid: before wire.js it is CSS columns (the page does not break), and after it each card
   drops under the shortest column in order (data-wire-masonry). (data-wire-masonry). */
.masonry{position:relative;column-width:var(--w-pin);column-gap:var(--sp-3)}
.masonry>*{break-inside:avoid;margin-block-end:var(--sp-3)}
.masonry>*+*{margin-block-start:0}
.masonry.is-laid{columns:auto}
.masonry.is-laid>*{position:absolute;inset-block-start:0;inset-inline-start:0;margin:0}
/* And the grid is not painted before wire.js arranges it: it used to paint as CSS columns then each card jumped into place (0.54 shift in Lighthouse).Lighthouse).
   It shows on its own after a moment if the script did not run, so it never stays hidden. */
.masonry[data-wire-masonry]:not(.is-laid){visibility:hidden;animation:masonry-show 0s calc(var(--t) * 4) forwards}
@keyframes masonry-show{to{visibility:visible}}
/* Slider: full-width slides dragged by finger, two arrows that appear on hover, and dots underneath. */
.slides{position:relative}
.slides-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.slides-track::-webkit-scrollbar{display:none}
.slides-track>*{flex:0 0 100%;min-width:0;scroll-snap-align:start}
.slides-go{--ic:var(--ic-md);position:absolute;inset-block-start:50%;z-index:var(--z-float);display:grid;place-items:center;width:var(--h-ctl);height:var(--h-ctl);margin-block-start:calc(var(--h-ctl) / -2);border:0;border-radius:var(--r-pill);background:var(--surface);color:var(--ink);cursor:pointer;opacity:0;transition:opacity .15s ease}
.slides-prev{inset-inline-start:var(--sp-2)}
.slides-next{inset-inline-end:var(--sp-2)}
.slides-prev .ic{transform:scaleX(-1)}
.slides:dir(rtl) .slides-prev .ic{transform:none}
.slides:dir(rtl) .slides-next .ic{transform:scaleX(-1)}
.slides:hover .slides-go,.slides:focus-within .slides-go{opacity:1}
.slides.is-first .slides-prev,.slides.is-last .slides-next{visibility:hidden}
.slides-dots{position:absolute;inset-inline:0;inset-block-end:var(--sp-2);display:flex;justify-content:center;gap:var(--sp-0);pointer-events:none;transition:inset-block-end .15s ease}
.slides-dots>*{width:calc(var(--sp-0) * 1.5);height:calc(var(--sp-0) * 1.5);border-radius:var(--r-pill);background:var(--surface);opacity:.55}
.slides-dots>.is-on{opacity:1}
@media (hover:none){.slides-go{display:none}}
@media (prefers-reduced-motion:reduce){.slides-go,.slides-dots{transition:none}}
.grid-wide{display:grid;gap:var(--sp-4);grid-template-columns:repeat(auto-fill,minmax(var(--w-cell-lg),1fr))}
.wrap-x{overflow-x:auto;max-width:100%}
.wrap-x:has(details[open]){overflow:visible}
.narrow{max-width:var(--w-narrow);margin-inline:auto}

/* ── Header: written once ────────────────────────────────────────── */
.hd{position:sticky;top:0;z-index:var(--z-hd);background:var(--surface);
  border-block-end:1px solid var(--line);
  display:flex;align-items:center;gap:var(--sp-4);
  /* The side margin equals the top and bottom margin ((header − button) ÷ 2 = 12), and it matches the sidebar icons' distance from the edge. */
  padding:0 calc((var(--h-hd) - var(--h-ctl)) / 2);height:var(--h-hd)}
.hd-mark{display:flex;align-items:center;gap:var(--sp-1);font-weight:var(--w-bold);
  font-size:var(--f-lg);letter-spacing:var(--ls-tight);white-space:nowrap}
.hd-mark i{width:var(--sp-4);height:var(--sp-4);border-radius:var(--r-sm);background:var(--ink);
  display:grid;place-items:center;color:var(--surface);
  font-size:var(--f-sm);font-weight:var(--w-bold);font-style:normal}
/* The SVG logo is in the text colour at a fixed height, with its width from its ratio (without the global image max-width, which zeroes it inside the flex header). */
.hd-logo{flex:none;color:var(--ink)}
.hd-logo svg{display:block;block-size:var(--sp-5);inline-size:auto;max-inline-size:none}
/* Home-page hint on the logo (Brand.Orbit): on mouse hover the page blurs except the logo, with thin dotted rings around it rotating slowly like
   the home-page rings. Uses translucent ink, no new colour, and only for mouse users (touch opens the link right away). */
@media (hover:hover){
  .hd-orbit{position:relative;--orbit-ring:color-mix(in srgb,var(--ink) 13%,transparent);--orbit-dot:color-mix(in srgb,var(--ink) 38%,transparent)}
  .hd-orbit::before,.hd-orbit::after{content:"";position:absolute;left:50%;top:50%;width:var(--orbit-size);height:var(--orbit-size);translate:-50% -50%;
    border-radius:50%;pointer-events:none;opacity:0;scale:.72;
    transition:opacity .35s ease,scale .6s cubic-bezier(.2,.8,.2,1);
    mask-image:radial-gradient(circle,var(--ink) 58%,transparent 71%);-webkit-mask-image:radial-gradient(circle,var(--ink) 58%,transparent 71%)}
  .hd-orbit::before{background:
    radial-gradient(circle,transparent 71px,var(--orbit-ring) 71px 72px,transparent 72px),
    radial-gradient(circle,transparent 131px,var(--orbit-ring) 131px 132px,transparent 132px),
    radial-gradient(circle,transparent 197px,var(--orbit-ring) 197px 198px,transparent 198px)}
  .hd-orbit::after{background:
    radial-gradient(circle at 302px 204px,var(--orbit-dot) 0 3.5px,transparent 4.1px),
    radial-gradient(circle at 178px 276px,var(--orbit-dot) 0 3px,transparent 3.6px),
    radial-gradient(circle at 217px 110px,var(--orbit-dot) 0 4.5px,transparent 5.1px),
    radial-gradient(circle at 195px 364px,var(--orbit-dot) 0 3.5px,transparent 4.1px),
    radial-gradient(circle at 364px 285px,var(--orbit-dot) 0 4px,transparent 4.6px),
    radial-gradient(circle at 339px 69px,var(--orbit-dot) 0 5px,transparent 5.6px),
    radial-gradient(circle at 54px 172px,var(--orbit-dot) 0 3.5px,transparent 4.1px),
    radial-gradient(circle at 308px 426px,var(--orbit-dot) 0 4.5px,transparent 5.1px)}
  .hd-orbit:focus-visible::before,.hd-orbit:focus-visible::after{opacity:1;scale:1}
  .hd-orbit:hover::after,.hd-orbit:focus-visible::after{animation:hd-orbit 48s linear infinite}
  @keyframes hd-orbit{to{rotate:1turn}}
}
@media (hover:hover) and (prefers-reduced-motion:reduce){
  .hd-orbit::before,.hd-orbit::after{transition:none}
  .hd-orbit:hover::after,.hd-orbit:focus-visible::after{animation:none}
}
/* Nav links at the end next to the user icon (search takes the space between them, and when it gets tight search shrinks first). */
/* Nav links (explore, top…) at the start after the edit-text button, and the rest (support, language and sign-in) at the end. */
.hd-nav{display:flex;align-items:center;gap:var(--sp-0);flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
.hd-nav::-webkit-scrollbar{display:none}
/* On wide screens the nav sits exactly at the header's centre (requested 2026-11-13), independent of the width of the two ends. */
@media (min-width:75em){.hd{position:sticky}.hd-nav{position:absolute;inset-inline-start:50%;transform:translateX(50%)}
  [dir=ltr] .hd-nav{transform:translateX(-50%)}}
.hd-nav a{padding:var(--sp-1) var(--sp-2);color:var(--dim);font-size:var(--f-md);white-space:nowrap;
  transition:color var(--t-fast) var(--e-out)}
.hd-nav a:hover{color:var(--ink)}
/* A nav item marked with Icon "dot" gets a tiny orange dot (--accent-sky, the avatar's notice colour) beside its label, at the start of the line (right in
   Arabic): a small pull to look at it. Placed absolutely because the link stacks its label in a column. */
.hd-nav a:has(.hd-dot){position:relative;padding-inline-start:calc(var(--sp-2) + var(--sp-1))}
.hd-dot{position:absolute;inset-inline-start:var(--sp-1);top:50%;translate:0 -50%;inline-size:calc(var(--sp-1) * .75);block-size:calc(var(--sp-1) * .75);border-radius:50%;background:var(--accent-sky)}
/* The current one is bold without shifting its neighbours: the width is reserved in advance by a hidden bold copy. */
.hd-nav a{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;block-size:var(--h-ctl);padding-block:0}
.hd-nav a::after{content:attr(data-l);font-weight:var(--w-bold);height:0;overflow:hidden;visibility:hidden;pointer-events:none}
.hd-nav a[aria-current]{color:var(--ink);font-weight:var(--w-bold)}
/* Search bar: a second header under the header at content width, sticking below it on scroll and below the header menus. It holds the search pill
   that used to be in the header (line without a border and a faint icon at the start) at the full bar width, with the same edge as the content.
   With the sidebar it only shows via its icon, and on mobile (sidebar hidden) it is always visible. */
.find{position:sticky;top:var(--h-hd);z-index:calc(var(--z-hd) - 1);display:flex;align-items:center;height:var(--h-hd);
  padding-inline:calc(var(--sp-3) + var(--sp-2));background:var(--surface);border-block-end:1px solid var(--line)}
@media not all and (max-width:52em){.shell .find:not(.is-open){display:none}}
.find-box{position:relative;flex:1;min-width:0}
.find-box .ic{width:var(--ic-md);height:var(--ic-md);position:absolute;inset-inline-start:var(--sp-3);top:50%;transform:translateY(-50%);color:var(--faint);pointer-events:none}
/* The field: white with a thin grey border and a full pill, icon and text sharing the same start and spacing; focus does not darken the border (no dark line), the caret is enough. */
.find input[type=search]{width:100%;min-width:0;height:var(--h-ctl);padding-block:0;padding-inline:calc(var(--sp-3) + var(--ic-md) + var(--sp-2)) var(--sp-3);border:1px solid var(--line-strong);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);font-size:var(--f-md)}
.find input[type=search]:focus{outline:0}
.find input::placeholder{color:var(--faint)}
.hd-end{display:flex;align-items:center;gap:var(--sp-3);margin-inline-start:auto}
/* User menu: a grey circle with an icon and the name, and on click a small menu opens (card background and a light line border)
   with my account, my keys, subscription, then sign out. Closes with Esc or a click outside. */
/* The featured button (support): a quiet grey pill (line, text on it at 15) with a heart before the text, standing out from the regular
   nav links by shape only, with no loud colour. Hover changes the text colour only. */
.hd-accent{--ic:var(--ic-md);display:inline-flex;align-items:center;gap:var(--sp-1);height:var(--h-ctl);padding-inline:var(--sp-3);border-radius:var(--r-pill);background:var(--line);color:var(--ink);font-size:var(--f-md);font-weight:var(--w-mid);white-space:nowrap}
.hd-accent:hover{color:var(--dim)}
/* Subscribe button: "Subscribe" and "Free trial" in the fixed subscription colour, and "My subscription" in the pastel gradient, with a yellow sheen (pastel butter) from the top right corner */
/* The quiet buttons next to the featured button: light border and the same height, and icon only on narrow screens */
.hd-quick{--ic:var(--ic-md);--ic-stroke:calc(var(--ic-stroke) * .85);display:inline-flex;align-items:center;gap:var(--sp-1);height:var(--h-ctl);padding-inline:var(--sp-3);border:1px solid var(--line);border-radius:var(--r-pill);background:radial-gradient(circle at top right,color-mix(in srgb,var(--pastel-mint) 70%,transparent),transparent 60%),var(--surface);color:var(--ink);font-size:var(--f-md);font-weight:var(--w-mid);white-space:nowrap;text-decoration:none}
.hd-quick.is-megaphone{background:radial-gradient(circle at top right,color-mix(in srgb,var(--pastel-peach) 80%,transparent),transparent 60%),var(--surface)}
/* "Add fonts" is a plain simple button: white with a thin border and a + icon, no gradient (by request). */
.hd-quick.is-plus{background:var(--surface)}
.hd-quick:hover{color:var(--dim)}
.hd-quick[aria-current]{border-color:var(--line-strong)}
@media (max-width:48em){.hd-quick{inline-size:var(--h-ctl);padding:0;justify-content:center}.hd-quick span{display:none}}
.hd-accent{--hd-shine:radial-gradient(circle at top right,var(--pastel-butter),transparent 65%);background:var(--hd-shine),var(--premium);color:var(--premium-ink)}
.hd-accent.is-paid{background:var(--hd-shine),var(--premium)}
/* The subscription gem in the header spins through its facets every 5 seconds (gem-spin in the template), glints mid-spin, and stays still for those who prefer reduced motion */
.hd-gem{animation:hd-gem calc(var(--t-slow) * 7.35) linear infinite}
@keyframes hd-gem{0%,8%,36%,100%{filter:none}18%{filter:drop-shadow(0 0 var(--sp-1) var(--surface)) brightness(1.4)}}
.hd-gem-still{display:none}
@media (prefers-reduced-motion:reduce){.hd-gem{animation:none}.hd-gem-move{display:none}.hd-gem-still{display:inline}}
/* Scripts button between the logo and search: a grey pill holding the glyphs of the active scripts (up to three, then +count).
   On click, a tile grid like the glyph viewer: the script's glyph large with its name below. Active ones have a line background and the glyph in text colour,
   and inactive ones have no background and a faint glyph (faint 4.8 on the light card). Each tile toggles on and off independently. */
/* Sample-text button: a pill like the languages button, holding the script icon and the current text truncated, and on click a field below it. */
/* The "Try your text" button is a split field: a pill container with the field border (h-ctl), text on its right and × on its left with a light divider. */
.hd-try-bar{display:inline-flex;align-items:stretch;flex:none;height:var(--h-ctl);border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface)}
.hd-try-bar>button.hd-try-x{display:grid;place-items:center;width:auto;min-width:0;height:auto;align-self:stretch;margin:0;padding:0 var(--sp-2);border:0;border-inline-start:1px solid var(--line);border-start-start-radius:0;border-end-start-radius:0;border-start-end-radius:var(--r-pill);border-end-end-radius:var(--r-pill);background:none;color:var(--dim);cursor:pointer}
.hd-try-bar>button.hd-try-x .ic{width:var(--ic-sm);height:var(--ic-sm)}
.hd-try-bar>button.hd-try-x[hidden],.hd-try-in-x[hidden]{display:none}
.hd-try-in-x .ic{inline-size:var(--ic-sm);block-size:var(--ic-sm)}
.hd-try-on.is-ph{color:var(--faint);font-weight:var(--w)}
.hd-try{position:relative;flex:none}
.hd-try summary{display:flex;align-items:center;gap:var(--sp-1);height:100%;padding-inline:var(--sp-3);border:0;border-radius:var(--r-pill);background:transparent;color:var(--ink);list-style:none;cursor:pointer;white-space:nowrap}
.hd-try summary::-webkit-details-marker{display:none}
/* "Try your text" indicator: smaller (16) and faint, a mark next to the word rather than an element of its own. */
.hd-try summary .ic{width:var(--sp-3);height:var(--sp-3);color:var(--faint)}
/* The merged pill: the border is on the container, the two halves have no border, with a thin line the height of the pill between them. */
.hd-pair{display:inline-flex;align-items:stretch;flex:none;height:var(--h-ctl);border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface)}
.hd-pair .hd-scope summary{height:100%;border:0;background:transparent}
.hd-pair .hd-try-bar{height:100%;border:0;border-inline-start:1px solid var(--line);border-start-start-radius:0;border-end-start-radius:0;background:transparent}
.hd-try summary{gap:var(--sp-0)}
.hd-try summary:hover{color:var(--dim)}
.hd-try-on{max-inline-size:calc(var(--h-ctl-lg) * 3);overflow:hidden;text-overflow:ellipsis;font-size:var(--f-sm);font-weight:var(--w-mid)}
.hd-try .hd-try-pop{inset-inline-end:auto;inset-inline-start:0;padding:var(--sp-2);min-inline-size:calc(var(--h-ctl-lg) * 7)}
.hd-try-pop input{inline-size:100%}
/* Text library (study 2026-11-08, second): the box is w-cell×2 (or the screen). First row: the field and save at h-ctl height. h-ctl.
   Below it two columns six rows high (h-ctl-sm×6), each scrolling on its own: groups on the right at w-cell×0.7, separated from
   the content by the same light hd-pop line, and texts on the left. All rows are h-ctl-sm with sp-2 padding on one line (long ones truncate with …), and the selected one
   has a sunken background like the selected item in header menus. And "Each font's name" is an action at the end of the box on its own. */
.hd-try .hd-try-pop{inline-size:min(calc(var(--w-cell) * 2), calc(100vw - var(--sp-5)))}
.hd-try-row{display:flex;gap:var(--sp-1);align-items:center}
.hd-try-row input{flex:1;min-inline-size:0}
/* × × inside the field next to the text: clears it. The browser's own × is hidden so two do not show. */
.hd-try-field{position:relative;flex:1;min-inline-size:0;display:flex}
.hd-try-field input{padding-inline-end:calc(var(--sp-2) + var(--ic-sm) + var(--sp-2))}
.hd-try-field input::-webkit-search-cancel-button{display:none}
/* "Try your text", one system: a single field (8 corners, one light line that never turns dark) holding, in order, the text, the
   clear cross, a thin divider and Save. Nothing floats over the text and nothing is filled: Save is plain ink with its mark, and
   every cross in the box (field and list) is the same quiet line icon in a fixed slot, so a long or Arabic text never runs under it.
   The list keeps a column for its cross the same way. */
.hd-try-pop .hd-try-row{display:flex;align-items:center;gap:0;height:var(--h-ctl);padding:0;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface)}
.hd-try-pop .hd-try-field{position:static;flex:1;min-inline-size:0;display:flex;align-items:center;height:100%}
.hd-try-pop .hd-try-row input{flex:1;min-inline-size:0;height:100%;padding:0 var(--sp-2);border:0;border-radius:0;background:none;box-shadow:none;outline:0}
.hd-try-pop .hd-try-row input:focus,.hd-try-pop .hd-try-row input:focus-visible{border:0;box-shadow:none;outline:0}
.hd-try-pop .hd-try-in-x{position:static;flex:none;display:grid;place-items:center;inline-size:var(--h-ctl-sm);block-size:var(--h-ctl-sm);margin-inline-end:var(--sp-0);border:0;border-radius:var(--r-sm);background:none;color:var(--dim);cursor:pointer}
.hd-try-pop .hd-try-in-x[hidden]{display:none}
.hd-try-pop .hd-try-save{flex:none;display:inline-flex;align-items:center;gap:var(--sp-1);height:100%;padding:0 var(--sp-2);border:0;border-inline-start:1px solid var(--line);border-radius:0;background:none;box-shadow:none;color:var(--ink);font-size:var(--f-sm)}
.hd-try-pop .hd-try-save .ic{inline-size:var(--ic-sm);block-size:var(--ic-sm)}
.hd-try-pop .hd-try-in-x .ic,.hd-try-pop .hd-try-x .ic,.hd-try-bar>button.hd-try-x .ic{inline-size:var(--ic-sm);block-size:var(--ic-sm);padding:0;border-radius:0;background:none;color:inherit}
.hd-try-pop .hd-try-desc{margin-block-start:var(--sp-2);padding-inline:0}
.hd-try-pop .hd-try-body{margin-block-start:var(--sp-2);padding-block-start:var(--sp-2);border-block-start:1px solid var(--line-soft)}
.hd-try-pop .hd-try-list>li{display:grid;grid-template-columns:minmax(0,1fr) var(--h-ctl-sm);align-items:center}
.hd-try-pop .hd-try-x{inline-size:var(--h-ctl-sm);block-size:var(--h-ctl-sm);border-radius:var(--r-sm);color:var(--dim)}
.hd-try-in-x{position:absolute;inset-block:0;inset-inline-end:var(--sp-2);display:grid;place-items:center;border:0;background:none;color:var(--dim);cursor:pointer}
.hd-try-save{flex:none;font-size:var(--f-sm)}
.hd-try-msg{margin:0;font-size:var(--f-xs);color:var(--dim)}
/* A small description line (says what this is) right under the field and above the divider, at the rows' sp-2 edge with no line between it and the field. */
.hd-try-desc{margin:0;padding-inline:var(--sp-2);font-size:var(--f-xs);line-height:var(--lh-snug);color:var(--faint)}
.hd-pop>.hd-try-row+.hd-try-desc{margin-block-start:var(--sp-1);padding-block-start:0;border-block-start:0}
.hd-try-body{display:grid;grid-template-columns:calc(var(--w-cell) * 0.7) minmax(0,1fr);block-size:calc(var(--h-ctl-sm) * 6)}
.hd-try-body[hidden]{display:none}
.hd-try-tabs,.hd-try-list{display:flex;flex-direction:column;min-block-size:0;overflow-y:auto;scrollbar-width:thin}
.hd-try-tabs{padding-inline-end:var(--sp-1);border-inline-end:1px solid var(--line-soft)}
.hd-try-list{list-style:none;margin:0;padding:0;padding-inline-start:var(--sp-1)}
.hd-try-tabs>*+*,.hd-try-list>*+*{margin:0}
.hd-try-list>li{display:flex;align-items:center;margin:0}
.hd-try-tab,.hd-try-it{flex:none;display:flex;align-items:center;gap:var(--sp-1);min-block-size:var(--h-ctl-sm);padding-inline:var(--sp-2);border:0;border-radius:var(--r-sm);background:none;color:var(--soft);font:inherit;font-size:var(--f-sm);line-height:1;text-align:start;cursor:pointer;white-space:nowrap}
.hd-try-it{flex:1;min-inline-size:0;color:var(--ink)}
.hd-try-tab>span:last-child,.hd-try-it>span{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis}
.hd-try-tab[aria-selected=true]{background:var(--sunken);color:var(--ink)}
.hd-try-it[aria-current]{background:var(--sunken)}
.hd-try-tab .ic,.hd-try-it .ic{inline-size:var(--ic-sm);block-size:var(--ic-sm);flex:none;color:var(--dim)}
.hd-try-mk{display:inline-grid;place-items:center;inline-size:var(--ic-sm);block-size:var(--ic-sm);flex:none;color:var(--dim);font-size:var(--f-md);line-height:1}
.hd-try-tab[aria-selected=true] .hd-try-mk,.hd-try-tab[aria-selected=true] .ic{color:var(--ink)}
.hd-try-x{flex:none;display:grid;place-items:center;inline-size:var(--h-ctl-sm);block-size:var(--h-ctl-sm);border:0;background:none;color:var(--dim);cursor:pointer}
.hd-try-x .ic{inline-size:var(--ic-sm);block-size:var(--ic-sm)}

.hd-try-x{flex:none;display:grid;place-items:center;inline-size:var(--h-ctl-sm);block-size:var(--h-ctl-sm);border:0;background:none;color:var(--dim);cursor:pointer}
.hd-try-x .ic{inline-size:var(--ic-sm);block-size:var(--ic-sm)}
.hd-scope{position:relative;flex:none}
.hd-scope summary{display:flex;align-items:center;gap:var(--sp-1);height:var(--h-ctl);padding-inline:var(--sp-3);border:1px solid var(--line);border-radius:var(--r-pill);background:transparent;color:var(--ink);list-style:none;cursor:pointer;white-space:nowrap}
.hd-scope summary::-webkit-details-marker{display:none}
/* Header search button: icon only with no border (the circle revealed that the lens was off-centre), and a 40 hit area like the other buttons.
   On mobile the search bar is always visible so it is not needed. */
.hd-find{display:grid;place-items:center;flex:none;inline-size:var(--h-ctl);block-size:var(--h-ctl);padding:0;border:0;border-radius:var(--r-pill);background:transparent;color:var(--ink);cursor:pointer}
.hd-find .ic{width:var(--ic-md);height:var(--ic-md)}
.hd-find[aria-pressed=true]{background:var(--sunken)}
@media (max-width:52em){.hd-find{display:none}}
.hd-scope summary:hover{color:var(--dim)}
.hd-scope-on{display:inline-flex;align-items:center;gap:var(--sp-1);font-size:var(--f-md);font-weight:var(--w);white-space:nowrap}
.hd-scope-on small{color:var(--dim);font-size:var(--f-xs);font-weight:var(--w-mid)}
.hd-scope[open] .hd-caret{transform:rotate(90deg)}
/* Nine languages = three by three with no orphan on a row of its own; a small menu (1.6 tile and 2xl glyph). 2xl). */
.hd-scope .hd-scope-grid{inset-inline-end:auto;inset-inline-start:0;display:grid;grid-template-columns:repeat(3,calc(var(--h-ctl-lg) * 1.6));gap:var(--sp-0);padding:var(--sp-2)}
/* Above the tiles a small title in text colour and a faint explanation line (dim 7.9 on the card), spanning the whole grid. */
.hd-scope-head{grid-column:1/-1;display:flex;flex-direction:column;gap:var(--sp-0);padding:var(--sp-1) var(--sp-1) var(--sp-2);text-align:start;white-space:normal}
.hd-scope-head b{color:var(--ink);font-size:var(--f-sm);font-weight:var(--w-bold)}
.hd-scope-head span{color:var(--dim);font-size:var(--f-xs);line-height:var(--lh-snug)}
.hd-scope-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-0);aspect-ratio:1;border:0;border-radius:var(--r-lg);background:none;color:var(--faint);cursor:pointer}
.hd-scope-grid button b{font-size:var(--f-2xl);font-weight:var(--w);line-height:1}
.hd-scope-grid button span{font-size:var(--f-xs)}
.hd-scope-grid button:hover{color:var(--dim)}
.hd-scope-grid button[aria-pressed=true]{background:var(--line);color:var(--ink)}
.hd-scope-now{grid-column:1/-1;margin:var(--sp-1) 0 0;padding:var(--sp-1) var(--sp-1) 0;border-block-start:1px solid var(--line);color:var(--dim);font-size:var(--f-xs);text-align:start}
.hd-me{position:relative}
/* Language switcher: an icon that opens the languages window. */
.hd-lang{display:grid;place-items:center;inline-size:var(--h-ctl-sm);block-size:var(--h-ctl-sm);padding:0;border:0;background:none;cursor:pointer;color:var(--dim)}
.hd-lang .ic{inline-size:var(--f-xl);block-size:var(--f-xl)}
/* Balance in the avatar menu under the account name: a title with the balance icon, spent and remaining at the two ends, and a bar below them. Top-up actions are regular menu rows after it */
.hd-pop .hd-pop-wal{display:flex;flex-direction:column;gap:var(--sp-2);margin-block-start:var(--sp-1);padding:var(--sp-2) var(--sp-2) var(--sp-2);border-block-start:1px solid var(--line)}   /* a light line separating the balance from the accounts above it */
.hd-pop .hd-wal-head{display:flex;align-items:center;gap:var(--sp-1);width:auto;min-height:0;padding:0;color:var(--ink);font-size:var(--f-sm);text-decoration:none}
.hd-wal-head b{font-weight:var(--w-bold)}
/* "Balance" and at the end of its line "+ Add" */
/* the languages window: a light sheet over a soft veil, a title and a close, then every language in columns at reading
   size, the one in use in ink with a check at its end. Full width on a phone. */
.lpick{inline-size:min(calc(100vw - var(--sp-5) * 2),calc(var(--w-cell) * 3 + var(--sp-6) * 2));max-block-size:min(80vh,var(--w-desc));padding:var(--sp-5) var(--sp-6) var(--sp-6);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float)}
.lpick[open]{display:flex;flex-direction:column;gap:var(--sp-4)}
.lpick::backdrop{background:var(--scrim);-webkit-backdrop-filter:blur(var(--blur-veil));backdrop-filter:blur(var(--blur-veil))}
.lpick-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3)}
.lpick-head .lpick-t{margin:0;letter-spacing:var(--ls-tight);font-size:var(--title-3-size);font-weight:var(--w);line-height:var(--title-3-lh);color:var(--ink)}
.lpick-x{display:grid;place-items:center;inline-size:var(--h-ctl-sm);block-size:var(--h-ctl-sm);padding:0;border:0;border-radius:var(--r-pill);background:none;color:var(--dim);cursor:pointer}
.lpick-x .ic{inline-size:var(--f-xl);block-size:var(--f-xl)}
.lpick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--w-ctl),1fr));gap:0 var(--sp-4);overflow-y:auto;scrollbar-width:thin}
.lpick-grid a{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:var(--sp-1);padding-inline-start:calc(var(--f-lg) + var(--sp-1));min-block-size:var(--h-ctl);border-block-end:1px solid var(--line-soft);color:var(--dim);font-size:var(--f-md);text-decoration:none}
.lpick-grid a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.lpick-grid a[aria-current]{color:var(--ink)}
.lpick-grid .ic{flex:none;inline-size:var(--f-lg);block-size:var(--f-lg)}
.lpick-grid a:not(.is-flip) .ic{position:absolute;inset-inline-start:0}
.lpick-grid a.is-flip .ic{order:1}
@media (max-width:40em){.lpick{inline-size:calc(100vw - var(--sp-4) * 2);padding:var(--sp-4)}}
.hd-wal-top{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2)}
.hd-pop .hd-wal-row{display:flex;align-items:center;gap:var(--sp-2);font-size:var(--f-sm);color:var(--ink)}
.hd-pop .hd-wal-row>a:first-child{width:auto;min-height:0;padding:0;color:var(--ink);text-decoration:none}
.hd-wal-n{margin-inline-start:auto;font-variant-numeric:tabular-nums;color:var(--ink)}
.hd-pop .hd-wal-add{--ic:var(--ic-sm);display:inline-flex;align-items:center;gap:var(--sp-0);width:auto;min-height:0;padding:0;color:var(--dim);font-size:var(--f-xs);text-decoration:none;white-space:nowrap}
.hd-wal-nums{display:flex;justify-content:space-between;gap:var(--sp-2);margin:0;color:var(--dim);font-size:var(--f-xs);font-variant-numeric:tabular-nums}
.hd-wal-nums b{color:var(--ink);font-size:var(--f-sm);font-weight:var(--w-bold)}
.hd-wal-bar{inline-size:100%;block-size:var(--sp-1);appearance:none;-webkit-appearance:none;border:0;border-radius:var(--r-pill);background:var(--sunken);overflow:hidden}
.hd-wal-bar::-webkit-progress-bar{background:var(--sunken)}
.hd-wal-bar::-webkit-progress-value{background:var(--accent-sky);border-radius:var(--r-pill)}
.hd-wal-bar::-moz-progress-bar{background:var(--accent-sky)}
.hd-wal-bar.is-low::-webkit-progress-value{background:var(--bad)}
.hd-wal-bar.is-low::-moz-progress-bar{background:var(--bad)}
.hd-me summary{display:flex;align-items:center;gap:var(--sp-1);list-style:none;cursor:pointer;color:var(--dim);font-size:var(--f-sm);white-space:nowrap}
.hd-me summary::-webkit-details-marker{display:none}
.hd-me summary:hover,.hd-me[open] summary{color:var(--ink)}
.hd-caret{display:inline-flex;transform:rotate(-90deg);transition:transform var(--t-fast) var(--e-out)}
.hd-av{display:grid;place-items:center;width:var(--h-ctl-sm);height:var(--h-ctl-sm);border-radius:var(--r-pill);background:var(--pastel-sky);color:var(--ink);font-size:var(--f-sm);font-weight:var(--w-bold);line-height:var(--lh-tight);overflow:hidden}
/* Default circle colour: one of the site's quiet colours, fixed per person */
.hd-av.tone-1{background:var(--pastel-sky)}.hd-av.tone-2{background:var(--pastel-mint)}.hd-av.tone-3{background:var(--pastel-butter)}.hd-av.tone-4{background:var(--pastel-peach)}
.hd-av img{width:100%;height:100%;object-fit:cover}
/* In the header: the avatar with its ring (sp-0 padding on every side) = exactly the height of the other buttons. */
.hd .hd-me .hd-av{width:var(--h-ctl);height:var(--h-ctl);font-size:var(--f-md)}
/* User avatar in the header: larger, with a thin grey circle around it at a gap (for subscribers and the meter their coloured ring takes its place). */
.hd .hd-me .av-ring:not(.is-paid):not(.is-meter){box-shadow:inset 0 0 0 1px var(--line-strong)}
.hd .hd-me>summary{padding:0;block-size:var(--h-ctl)}
/* Acting as a team: the avatar is the team's letter in white on ink. Subscribed to a plan: a ring in the site colour with a white gap between it and the avatar. */
.hd-av.is-team{background:var(--ink);color:var(--surface);font-size:var(--f-sm);font-weight:var(--w-bold);line-height:var(--lh-tight)}
/* The ring: a subscriber gets a circle in pastel colours with a white gap between it and the avatar (like Google's subscriber ring) */
.av-ring{position:relative;display:inline-grid;place-items:center;flex:none;padding:var(--sp-0);border-radius:var(--r-pill)}
/* Two-colour subscriber ring: the site's orange fixed on most of it, and a light coloured sheen on one arc (butter, then mint, then sky) melting into it smoothly */
.av-ring.is-paid{background:conic-gradient(from 20deg,var(--accent-sky) 0 52%,var(--pastel-butter) 66%,var(--pastel-mint) 76%,var(--pastel-sky) 86%,var(--accent-sky) 100%)}
.av-ring.is-paid .hd-av{box-shadow:0 0 0 calc(var(--sp-0) / 2) var(--surface)}
/* The avatar ring as a balance meter: a light track and an arc for the amount spent, clockwise from the top (in 5% steps, the arc in the site colour, turning red when low) */
.av-ring.is-meter{background:conic-gradient(var(--accent-sky) 0 var(--used),var(--line) var(--used) 100%)}
.av-ring.is-meter.is-low{background:conic-gradient(var(--bad) 0 var(--used),var(--line) var(--used) 100%)}
.av-ring.is-meter .hd-av{box-shadow:0 0 0 calc(var(--sp-0) / 2) var(--surface)}
.av-ring.m-0{--used:0%}.av-ring.m-1{--used:5%}.av-ring.m-2{--used:10%}.av-ring.m-3{--used:15%}.av-ring.m-4{--used:20%}.av-ring.m-5{--used:25%}.av-ring.m-6{--used:30%}.av-ring.m-7{--used:35%}.av-ring.m-8{--used:40%}.av-ring.m-9{--used:45%}.av-ring.m-10{--used:50%}.av-ring.m-11{--used:55%}.av-ring.m-12{--used:60%}.av-ring.m-13{--used:65%}.av-ring.m-14{--used:70%}.av-ring.m-15{--used:75%}.av-ring.m-16{--used:80%}.av-ring.m-17{--used:85%}.av-ring.m-18{--used:90%}.av-ring.m-19{--used:95%}.av-ring.m-20{--used:100%}
/* The small mark at the top corner: a green building for a company name, or two arrows in ink if there is a second account */
.av-mark{position:absolute;top:calc(var(--sp-0) * -1);right:calc(var(--sp-0) * -1);display:grid;place-items:center;width:var(--sp-3);height:var(--sp-3);border-radius:var(--r-pill);background:var(--ink);color:var(--surface);box-shadow:0 0 0 calc(var(--sp-0) / 2) var(--surface)}
.av-new{position:absolute;top:calc(var(--sp-0) * -.5);left:calc(var(--sp-0) * -.5);width:var(--sp-2);height:var(--sp-2);border-radius:var(--r-pill);background:var(--accent-sky);border:var(--bw-2) solid var(--surface)}
.av-new.is-row{position:static;flex:none;border:0;margin-inline:auto 0;background:var(--bad)}
.av-mark.is-org{background:var(--accent);color:var(--accent-ink)}
.av-mark .ic{--ic:calc(var(--sp-3) * .7)}
/* User menu: a head with the avatar, name, account and plan, then groups separated by a light line, each item with an icon before its text. */
.hd-pop{position:absolute;inset-inline-end:0;top:calc(100% + var(--sp-1));z-index:var(--z-hd);display:flex;flex-direction:column;min-width:var(--w-cell);padding:var(--sp-2);border:1px solid var(--line-soft);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-2)}
.hd-pop>*+*{margin-block-start:var(--sp-1);padding-block-start:var(--sp-1);border-block-start:1px solid var(--line-soft)}
.hd-me summary{display:flex;align-items:center;gap:var(--sp-1)}
/* Account switcher menu */
.hd-accs small{padding:var(--sp-1) var(--sp-2) 0;font-size:var(--meta-size);color:var(--dim)}
.hd-accs button{all:unset;display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-1) var(--sp-2);border-radius:var(--r-sm);cursor:pointer;color:var(--ink)}
.hd-accs button[aria-current]{cursor:default;font-weight:var(--w-mid)}
.hd-accs button:focus-visible{outline:2px solid var(--accent-line)}
.hd-accs .hd-av{flex:none}
.hd-accs button>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hd-me .hd-pop{min-inline-size:calc(var(--w-cell) + var(--sp-3))} /* same width as the add menu */
.hd-pop-me{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-1) var(--sp-2) var(--sp-2)}
a.hd-pop-me{color:inherit;text-decoration:none;border-radius:var(--r-sm)}
a.hd-pop-me:focus-visible{outline:2px solid var(--accent-line)}
/* The avatar and the small company badge on its corner (first letter of the company name) */
.hd-acc-av{position:relative;flex:none;display:inline-grid}
.hd-acc-badge{position:absolute;inset-block-end:calc(var(--sp-0) * -.5);inset-inline-end:calc(var(--sp-0) * -.75);display:grid;place-items:center;min-inline-size:var(--sp-3);block-size:var(--sp-3);padding:0 calc(var(--sp-0) * .5);border-radius:var(--r-xs);background:var(--ink);color:var(--surface);font-size:var(--f-2xs);font-style:normal;font-weight:var(--w-bold);line-height:1;box-shadow:0 0 0 2px var(--surface)}
.hd-accs .hd-acc-n{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--f-sm)}
.hd-accs .hd-acc-n.is-team{font-size:var(--f-xs);color:var(--dim)}
.hd-accs button>.ic:last-child{--ic:var(--ic-sm);color:var(--faint)}
.hd-pop-me .hd-av{flex:none;width:var(--h-ctl);height:var(--h-ctl)}
.hd-pop-me .av-ring{flex:none}
.hd-pop-who{display:flex;flex-direction:column;gap:var(--sp-0);min-width:0}
.hd-pop-who b{color:var(--ink);font-size:var(--f-sm);font-weight:var(--w-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-pop-who small{color:var(--dim);font-size:var(--f-xs);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-pop-list{display:flex;flex-direction:column}
.hd-pop-list>*+*{margin:0}
.hd-pop a,.hd-pop-out,.hd-pop .hd-pop-lang{display:flex;align-items:center;gap:var(--sp-2);width:100%;padding:var(--sp-1) var(--sp-2);min-height:var(--h-ctl-sm);border:0;border-radius:var(--r-sm);background:none;color:var(--ink);font:inherit;font-size:var(--f-sm);text-align:start;white-space:nowrap;cursor:pointer}
.hd-pop a .ic,.hd-pop-out .ic,.hd-pop .hd-pop-lang .ic{width:var(--ic-sm);height:var(--ic-sm);flex:none;color:var(--dim)}
.hd-pop a[aria-current]{font-weight:var(--w-bold);background:var(--sunken)}
.hd-pop a[aria-current] .ic{color:var(--ink)}
.hd-pop form{display:block;margin:0}
.hd-me{font-size:var(--f-sm);color:var(--dim);white-space:nowrap}
.hd-me:hover{color:var(--ink)}
/* Links at the header's end are plain text like the nav: no button and no pill.
   And the form around the sign-out button is transparent (display:contents) so the button is a direct flex item
   and centres like its neighbours — it used to be a block sitting on the baseline so the button dropped. */
.hd-end form{display:contents}
.hd-link{display:inline-flex;align-items:center;line-height:inherit;background:none;border:0;padding:0;cursor:pointer;color:var(--dim);font-size:var(--f-sm);white-space:nowrap;
  transition:color var(--t-fast) var(--e-out)}
.hd-link:hover{color:var(--ink)}
@media (max-width:40em){
  .hd{gap:var(--sp-1);padding:0 var(--sp-2)}
  /* On mobile the header wraps to two lines if tight: logo and buttons on top, and below the nav at the start and the end buttons at the end.
     And the search bar under it scrolls with the page (not sticky) so it does not stack on top. */
  .hd{flex-wrap:wrap;height:auto;row-gap:0;padding-block:var(--sp-1) 0}
  /* Two fixed lines, not "if tight": logo, buttons and end buttons on top, and the nav below at the full header width (scrolls if long),
     so "Sign in" never ends up alone on one line with the nav on another. */
  .hd-nav{order:9;flex:1 1 100%;margin-inline-start:0;padding-block:var(--sp-0) var(--sp-1)}
  .hd-end{margin-inline-start:auto}
  .find{position:static;padding-inline:var(--sp-3)}
  .hd-mark{font-size:var(--f-md)}
  /* On mobile: support is a heart only, and the scripts button has no arrow, to leave room for the nav. */
  .hd-accent{padding-inline:var(--sp-2)}
  .hd-accent span,.hd-scope .hd-caret{display:none}
  /* Scripts grid on mobile: anchored to the whole header (the header is sticky so it is the reference) at its width with an sp-3 edge, and the tiles in four
     equal columns, so it never leaves the screen or widens the page. */
  .hd-scope{position:static}
  .hd-scope .hd-scope-grid{inset-inline:var(--sp-3);top:calc(var(--h-ctl) + var(--sp-2));grid-template-columns:repeat(3,minmax(0,1fr))}
  .hd-scope summary{padding-inline:var(--sp-2)}
  .hd-nav{gap:0}
  .hd-nav a{padding:var(--sp-1) var(--sp-1);font-size:var(--f-sm)}
  .main{padding:var(--sp-4) var(--sp-3) var(--sp-6)}
  /* Phone (2026-11-21): three clean rows that never leave the screen. Top: the logo at the start and the account buttons at the
     end. Then the scripts and "Try your text" pill at the full width. Then the nav. The header scrolls away with the page (on a
     phone a sticky three-row header ate a quarter of the screen), and the two pill menus open under the header at its width
     with an sp-3 edge (the "Try your text" box was anchored to its button and ran past the screen, widening every page). */
  .hd{position:relative;padding-inline:var(--sp-3)}
  .hd-pair{order:8;flex:1 1 100%;margin-block:var(--sp-1)}
  .hd-pair .hd-try-bar{flex:1;min-inline-size:0}
  .hd-try{flex:1;min-inline-size:0;position:static}
  .hd-try summary{justify-content:flex-start}
  .hd-try-on{max-inline-size:none}
  .hd-try .hd-try-pop{inset-inline:var(--sp-3);inline-size:auto;min-inline-size:0}
}
@media (max-width:26em){.hd-mark{font-size:0;gap:0}.hd-mark i{font-size:var(--f-sm)}}
/* No page is ever wider than the screen: a popover or a long line inside a card that runs past the edge is cut there instead of
   widening the whole page (on a phone it made every page zoom out and cut the cookie notice). clip, not hidden: sticky still works. */
html,body{overflow-x:clip}
/* Extensions do not run on phones and tablets: the footer's install button shows on mouse devices only (as on the homepage). */
@media (max-width:40em),(hover:none) and (pointer:coarse){.ft-cols a.ft-get{display:none}}

/* ── Static pages (terms, privacy, contact…) in a docs layout: the menu fixed on the start side with the content beside it,
   and the menu holds its place while scrolling. On mobile it becomes a horizontally scrolling line above the content. ── */
.doc{display:grid;grid-template-columns:var(--w-cell) minmax(0,1fr);align-items:start;gap:var(--sp-7);padding-block:var(--sp-6) var(--sp-8)}
.doc>*+*{margin-block-start:0}
.doc-nav{position:sticky;top:calc(var(--h-hd) + var(--sp-4));display:flex;flex-direction:column;gap:var(--sp-0)}
.doc-nav>a{display:flex;align-items:center;min-height:var(--h-ctl);padding-inline:var(--sp-3);border-radius:var(--r-sm);color:var(--dim);font-size:var(--f-md)}
.doc-nav>a[aria-current=page]{background:var(--sunken);color:var(--ink)}
.doc-toc{display:flex;flex-direction:column;margin-block:var(--sp-1) var(--sp-2);margin-inline-start:var(--sp-3);padding-inline-start:var(--sp-3);border-inline-start:1px solid var(--line)}
.doc-toc a{padding-block:var(--sp-1);font-size:var(--f-sm);line-height:var(--lh-snug);color:var(--faint)}
.doc-main{min-width:0;max-inline-size:calc(var(--h-ctl) * 20)}
@media (max-width:52em){.doc{grid-template-columns:minmax(0,1fr);gap:var(--sp-5);padding-block-start:var(--sp-4)}
  .doc-nav{position:static;flex-direction:row;overflow-x:auto;scrollbar-width:none}.doc-nav>a{flex:none}.doc-toc{display:none}}

/* ── Footer ──────────────────────────────────────────────────── */
.ft{border-block-start:1px solid var(--line);padding:var(--sp-5) var(--sp-4);
  color:var(--faint);font-size:var(--f-md);
  display:flex;gap:var(--sp-2) var(--sp-4);flex-wrap:wrap;align-items:center;justify-content:center;text-align:center}
.ft a:hover{color:var(--ink)}
.ft-end{display:flex;gap:var(--sp-2)}
.ft-end:empty{display:none}
.ft-links{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-1) var(--sp-4)}
.ft-links a{color:var(--faint)}
.ft-about{color:var(--ink)}
.ft-ext{display:inline-flex;align-items:center;gap:var(--sp-1);color:var(--faint)}
.ft-ext .ic{width:var(--ic-md);height:var(--ic-md)}
/* get-started: a heading and the two ways to use the product as two equal plain buttons side by side (thin border,
   white), each an icon and one short line. Centred, no box around it. */
.gs{display:grid;justify-items:center;gap:var(--title-2-gap);padding-block:var(--sp-6);text-align:center}
.gs h2{margin:0}
.gs-ways{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-3)}
.gs-way{display:inline-flex;align-items:center;gap:var(--sp-2);block-size:var(--h-ctl-lg);padding:0 var(--sp-5) 0 var(--sp-4);border:1px solid var(--line-strong);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);white-space:nowrap;text-decoration:none}
.gs-way .ic{flex:none;width:var(--ic-lg);height:var(--ic-lg)}

/* Footer is one quiet line: the links and small social icons centred, and the extension button at the far end of
   the same line (left in Arabic), the one thing in the footer meant to be seen: the browser's own logo in a pill.
   On a narrow screen everything wraps, centred. */
.ft:has(.ft-cols){display:block;text-align:start;padding:var(--sp-3)}
.ft-cols{display:grid;grid-template-columns:1fr auto auto 1fr;align-items:center;gap:var(--sp-2) var(--sp-5)}
.ft-cols::before{content:""}
.ft-line{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:var(--sp-1) var(--sp-4)}
.ft-cols a{color:var(--faint)}
.ft-cols a.ft-strong{display:inline-flex;align-items:center;gap:var(--sp-1);height:var(--h-ctl-sm);padding:0 var(--sp-3);border:1px solid var(--line-strong);border-radius:var(--r-pill);color:var(--ink)}
.ft-strong .ic{width:var(--ic-sm);height:var(--ic-sm)}
.ft-social{display:flex;align-items:center;gap:var(--sp-3)}
.ft-ico{display:inline-flex}
.ft-ico .ic{width:var(--ic-sm);height:var(--ic-sm)}
.ft-cols a.ft-get{order:3;justify-self:end;display:inline-flex;align-items:center;gap:var(--sp-2);height:var(--h-ctl);padding:0 var(--sp-4) 0 var(--sp-3);border:1px solid var(--line-strong);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);white-space:nowrap}
.ft-get .ic{width:var(--ic-md);height:var(--ic-md)}
@media (max-width:52em){.ft-cols{display:flex;flex-wrap:wrap;justify-content:center}.ft-cols::before{content:none}}
.ft:has(.ft-cols) .ft-end{margin-block-start:var(--sp-2)}

/* ── Buttons: one height shared with fields ──────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-1);
  height:var(--h-ctl);padding:0 var(--sp-3);border-radius:var(--r-pill);
  border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);
  font-size:var(--f-md);font-weight:var(--w-mid);line-height:1;cursor:pointer;white-space:nowrap;
  transition:color var(--t-fast) var(--e-out),opacity var(--t-fast) var(--e-out)}
/* Hover changes the text colour only: no background and no dark border. And :where lets any coloured button after it (btn-go and others) win. */
.btn:where(:hover){color:var(--dim)}
.btn:disabled,.btn[aria-busy=true]{opacity:.55;cursor:default;pointer-events:none}
.btn-go,.btn-dark{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.btn-go:hover,.btn-dark:hover{opacity:.85}
.btn-accent{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn-bad{color:var(--ink);border-color:var(--line-strong)}
/* The ghost button is still a button: an always-visible border (not text that has to be guessed as a button) and a transparent background. */
.btn.flat{border-color:var(--line);background:transparent}
.btn.flat:hover{color:var(--dim)}
.btn-sm{height:var(--h-ctl-sm);padding:0 var(--sp-2);font-size:var(--f-sm)}
/* The icon is a stroke in the same text colour, and does not change on hover */
.ic{width:var(--ic);height:var(--ic);fill:none;stroke:currentColor;stroke-width:var(--ic-stroke);stroke-linecap:round;stroke-linejoin:round;flex:none}
.btn-lg{height:var(--h-ctl-lg);padding:0 var(--sp-4);font-size:var(--f-lg)}
/* A bar of joined buttons like the reference: one dark piece split by lines. */
.btn-bar{display:inline-flex;background:var(--ink);color:var(--surface);border-radius:var(--r-pill);
  box-shadow:var(--shadow-2)}
.btn-bar a,.btn-bar button{height:var(--h-ctl-lg);padding:0 var(--sp-4);display:inline-flex;align-items:center;
  font-size:var(--f-lg);font-weight:var(--w-mid);background:transparent;border:0;color:inherit;cursor:pointer}
.btn-bar>*+*{border-inline-start:1px solid rgb(255 255 255 / .18)}

/* Screen-reader-only text: stays in the page and is read, but is not visible and takes no space. */
/* Admin tools on public pages: always hidden, shown only while Alt is held (screenshots do not capture them). */
.staff-tool{display:none!important}
html.staff-keys .staff-tool{display:inline-flex!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* ── Fields ───────────────────────────────────────────────────── */
.field{display:flex;flex-direction:column;gap:var(--sp-0)}
.fields>.field{margin:0}
.field label,label.lbl{font-size:var(--f-sm);font-weight:var(--w-mid);color:var(--ink)}
.field .hint{font-size:var(--f-xs);color:var(--faint)}
.hint.good{color:var(--good)}.hint.bad{color:var(--bad)}
/* The character counter and limit line (from wire.js) are small and faint everywhere, not just inside .field: they used to show in the text ink and size. */
.wire-count,.wire-hint{font-size:var(--f-xs);color:var(--faint);font-variant-numeric:tabular-nums}
/* Check line: its height is always reserved, the verdict at one end and the output at the other */
.wire-line{display:flex;justify-content:space-between;gap:var(--sp-3);min-height:calc(var(--f-xs) * var(--lh-snug));font-size:var(--f-xs);line-height:var(--lh-snug)}
.wire-line .wire-check{flex:none}
.wire-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.wire-preview.is-url{font-family:var(--mono);direction:ltr;text-align:end}
.field .err{font-size:var(--f-xs);color:var(--bad)}
.field .req{color:var(--bad);font-weight:var(--w-bold)}
/* And with :where at zero specificity: a more specific rule (the search box pill) wins without a fight. */
:where(input:not([type=checkbox],[type=radio],[type=hidden],[type=file])),:where(select),:where(textarea),.in{
  width:100%;height:var(--h-ctl);padding:0 var(--sp-2);border-radius:var(--r-sm);
  border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);
  transition:background-color var(--t-fast) var(--e-out),box-shadow var(--t-fast) var(--e-out)}
textarea{height:auto;min-height:calc(var(--h-ctl) * 3);padding:var(--sp-1) var(--sp-2);line-height:var(--lh);resize:vertical}
/* The arrow is drawn, not from the browser: at the line end (left in RTL) with a gap from the edge */
select{appearance:none;-webkit-appearance:none;padding-inline-end:calc(var(--sp-2) + var(--ic) + var(--sp-2));
  background-image:var(--chev);background-repeat:no-repeat;background-position:left var(--sp-2) center;background-size:var(--ic)}
[dir=ltr] select,select[dir=ltr]{background-position:right var(--sp-2) center}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 3px var(--focus-soft)}
input[aria-invalid=true],.field.bad input{border-color:var(--bad)}
input::placeholder,textarea::placeholder{color:var(--faint)}
input[type=file]{font-size:var(--f-sm)}
/* The search box is a pill like the button beside it, at the same height. */
input[type=search],select.pill{border-radius:var(--r-pill);padding-inline:var(--sp-3)}
.btn-sm~input[type=search],.acts input[type=search]{height:var(--h-ctl-sm);font-size:var(--f-sm)}
input[type=checkbox],input[type=radio]{width:var(--sp-3);height:var(--sp-3);accent-color:var(--ink);margin:0}
.check{display:flex;align-items:center;gap:var(--sp-1);font-size:var(--f-md)}
form.inline,.form-row{display:flex;gap:var(--sp-1);align-items:center;flex-wrap:wrap}
/* And a single row does not take the block rhythm: the search button was dropping below its field. */
form.inline>*+*,.form-row>*+*,.filters>*+*,.acts>*+*{margin-block-start:0}
form.inline input,form.inline select,.form-row input,.form-row select{width:auto;flex:1;min-width:var(--w-ctl)}

/* ── Messages ──────────────────────────────────────────────────── */
.msg,.note{padding:var(--sp-2) var(--sp-3);border-radius:var(--r-sm);
  border:1px solid var(--line);background:var(--sunken);font-size:var(--f-sm);color:var(--dim)}
.msg.ok,.msg.good,.note-good{background:var(--good-bg);border-color:var(--good-line);color:var(--good)}
.msg.warn,.note-warn{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn)}
.msg.bad,.note-bad{background:var(--bad-bg);border-color:var(--bad-line);color:var(--bad)}
/* Form field error (wire mark): a text line of its own under the row, not a box squeezed next to the buttons */
.wire-error.msg{flex-basis:100%;padding:0;border:0;background:none;font-size:var(--meta-size)}

.msg-list{display:flex;flex-direction:column;gap:var(--sp-0);list-style:disc;padding-inline-start:var(--sp-5)}

/* ── Badge ───────────────────────────────────────────────────── */
.tag{display:inline-flex;align-items:center;gap:var(--sp-0);
  padding:0 var(--sp-1);height:calc(var(--h-ctl-sm) - var(--sp-1));border-radius:var(--r-pill);
  font-size:var(--f-2xs);font-weight:var(--w-mid);letter-spacing:var(--ls-wide);
  background:var(--sunken);color:var(--dim);border:1px solid var(--line-soft)}
.tag-good{background:var(--good-bg);color:var(--good);border-color:var(--good-line)}
.tag-warn{background:var(--warn-bg);color:var(--warn);border-color:var(--warn-line)}
.tag-bad{background:var(--bad-bg);color:var(--bad);border-color:var(--bad-line)}
/* Status: a dot in its colour and the translated name — no pill */
.st{display:inline-flex;align-items:center;gap:var(--sp-1);white-space:nowrap}
.st::before{content:"";width:var(--sp-1);height:var(--sp-1);border-radius:var(--r-pill);background:var(--faint)}
.st[data-s=live]::before,.st[data-s=active]::before,.st[data-s=done]::before,.st[data-s=paid]::before,.st[data-s=accepted]::before{background:var(--good)}
.st[data-s=draft]::before,.st[data-s=pending]::before,.st[data-s=queued]::before,.st[data-s=scheduled]::before,.st[data-s=open]::before,.st[data-s=past_due]::before{background:var(--warn)}
.st[data-s=withdrawn]::before,.st[data-s=rejected]::before,.st[data-s=failed]::before,.st[data-s=refunded]::before,.st[data-s=cancelled]::before{background:var(--bad)}
.tags{display:flex;gap:var(--sp-0);flex-wrap:wrap}

/* ── Card ──────────────────────────────────────────────────── */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:var(--sp-3);box-shadow:var(--shadow-card)}
a.card{transition:color var(--t-fast) var(--e-out)}
a.card:hover{color:var(--dim)}

/* ── Table ───────────────────────────────────────────────────── */
table{width:100%;border-collapse:collapse;font-size:var(--f-sm);font-variant-numeric:tabular-nums}
th{text-align:start;font-weight:var(--w-mid);color:var(--faint);font-size:var(--f-xs);
  letter-spacing:var(--ls-wide);padding:var(--sp-1) var(--sp-2);border-block-end:1px solid var(--line)}
td{padding:var(--sp-1) var(--sp-2);border-block-end:1px solid var(--line-soft);vertical-align:top}
td .btn{vertical-align:middle}
/* Missing value in any table: a grey dash */
td .nil{color:var(--line-strong)}

/* ── Lists ──────────────────────────────────────────────────── */
.list>li{padding:var(--sp-2) 0;border-block-end:1px solid var(--line-soft);
  display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.list>li>a:first-child{font-weight:var(--w-mid)}
.grid>li>a{display:block;padding:var(--sp-3);background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);font-weight:var(--w-mid);transition:color var(--t-fast) var(--e-out)}
.grid>li>a:hover{color:var(--dim)}
.count{font-size:var(--f-sm);color:var(--faint);font-variant-numeric:tabular-nums}
.credits{color:var(--dim);font-size:var(--f-sm);display:flex;gap:var(--sp-1);flex-wrap:wrap}

/* ── Page head: title + count + actions on one line ─────────────── */
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap}
.ph h1{display:flex;align-items:baseline;gap:var(--sp-1);flex-wrap:wrap}
.ph h1 small{font-size:var(--meta-size);font-weight:var(--w);color:var(--faint);font-variant-numeric:tabular-nums}

/* ── Filters: a row of fields at one height ──────────────────────────── */
.filters{display:flex;gap:var(--sp-1);align-items:center;flex-wrap:wrap}
.filters input,.filters select{width:auto;min-width:var(--w-ctl)}
.filters input[type=search]{flex:1;min-width:var(--w-cell)}
.filters .check{padding-inline:var(--sp-1)}

/* ── Ranked list: number, name, value on the right ───────────────────── */
.ranked{counter-reset:r}
.ranked>li{counter-increment:r;display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-2) 0;border-block-end:1px solid var(--line-soft)}
.ranked>li::before{content:counter(r);min-width:var(--sp-4);font-family:var(--mono);font-size:var(--f-xs);color:var(--faint);font-variant-numeric:tabular-nums}
.ranked>li>a{font-weight:var(--w-mid);flex:1;min-width:0}
.ranked>li>a:hover{color:var(--accent)}
.ranked .score,.ranked .count{font-family:var(--mono);font-size:var(--f-xs);color:var(--faint);font-variant-numeric:tabular-nums}
.ranked>li:first-child .score{color:var(--accent);font-weight:var(--w-bold)}

/* ── Tab bar: text only, the current one bold with its width reserved ──────────── */
.tabs{display:flex;gap:var(--sp-3);border-block-end:1px solid var(--line)}
.tabs a{display:inline-flex;flex-direction:column;align-items:center;padding:var(--sp-1) 0;color:var(--dim);font-size:var(--f-sm)}
.tabs a::after{content:attr(data-l);font-weight:var(--w-bold);height:0;overflow:hidden;visibility:hidden}
.tabs a:hover{color:var(--ink)}
.tabs a[aria-current]{color:var(--ink);font-weight:var(--w-bold)}

/* ── Font sample (compare) ─────────────────────────────────────── */
.face{padding:var(--sp-3) 0;border-block-end:1px solid var(--line-soft)}
.face>a{font-size:var(--f-sm);color:var(--dim)}
.face>a:hover{color:var(--ink)}
.face .sample{font-size:var(--f-3xl);line-height:var(--lh-snug);margin-block-start:var(--sp-0);overflow-wrap:anywhere}

/* ── Article ───────────────────────────────────────────────────── */
/* The article reads like Medium: a narrow column, large comfortable type, open line spacing, quiet headings, and images at column width.
   The visual editor takes the same rules so the writer sees what the reader will see. */
.post{max-width:var(--w-article);margin-inline:auto;padding-block:var(--sp-5) var(--sp-8)}
.post h1{font-size:var(--f-art-h1);line-height:var(--lh-art-h1);letter-spacing:var(--ls-art);margin-block-end:var(--sp-3);text-wrap:balance}
.post .lede{font-size:var(--f-art-lede);line-height:var(--lh);color:var(--dim)}.post .lede+.lede{margin-block-start:var(--sp-2)}
.post .lede+.tiny,.post h1+.tiny{margin-block-start:var(--sp-3)}
.post .prose{margin-block-start:var(--sp-6)}
.post .prose,.wire-visual{font-size:var(--f-art);line-height:var(--lh-art);color:var(--ink)}
.post .prose p,.wire-visual p{margin-block:0 var(--art-gap)}
.post .prose h2,.wire-visual h2{font-size:var(--f-art-h2);line-height:var(--lh-art-h2);font-weight:bold;margin-block:var(--art-h2-top) var(--art-h2-bot);letter-spacing:var(--ls-art)}
.post .prose h3,.wire-visual h3{font-size:var(--f-art);line-height:var(--lh-snug);font-weight:bold;color:var(--ink);margin-block:var(--art-h3-top) var(--art-h3-bot)}
.post .prose h2:first-child,.wire-visual h2:first-child{margin-block-start:0}
.post .prose ul,.post .prose ol,.wire-visual ul,.wire-visual ol{padding-inline-start:var(--art-indent);margin-block:0 var(--art-gap);display:block}
.post .prose li,.wire-visual li{margin-block:var(--art-li)}
.post .prose ul,.wire-visual ul{list-style:disc}.post .prose ol,.wire-visual ol{list-style:decimal}
.post .prose blockquote,.wire-visual blockquote{margin:0 0 var(--art-gap);padding-inline-start:var(--art-quote);border-inline-start:3px solid var(--ink);font-style:italic;color:var(--dim)}
.post .prose a,.wire-visual a{text-decoration:underline;text-underline-offset:var(--art-underline)}
.post .prose strong,.wire-visual strong{font-weight:bold}
.post .prose img,.wire-visual img{max-width:100%;height:auto;border-radius:var(--r-sm);display:block;margin-block:0 var(--art-gap)}
.post .prose hr,.wire-visual hr{border:0;border-block-start:1px solid var(--line);margin-block:var(--art-rule)}
.wire-visual.is-over{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.wire-image{display:flex;align-items:flex-start;gap:var(--sp-2);flex-wrap:wrap}
.blog>li{padding:var(--sp-3) 0;border-block-end:1px solid var(--line-soft)}
.blog>li>a{font-size:var(--f-lg);font-weight:var(--w-mid)}
.blog>li>a:hover{color:var(--accent)}
.blog>li>p{color:var(--dim);font-size:var(--f-sm);margin-block-start:var(--sp-0)}

/* ── Share code ─────────────────────────────────────────────── */
pre,code{font-family:var(--mono);font-size:var(--f-xs)}
pre{padding:var(--sp-2) var(--sp-3);background:var(--sunken);border-radius:var(--r-sm);overflow-x:auto;
  white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
pre:empty{display:none}

/* ── Subscription page: a status panel, equal plan cards, and one button ──── */
.plans{display:grid;gap:var(--sp-3);grid-template-columns:repeat(auto-fit,minmax(var(--w-cell),1fr))}
.plan-card{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-4)}
.plan-card>*+*{margin:0}
.plan-card.is-current{background:var(--pick)}
.plan-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-1);flex-wrap:wrap}
.plan-price{font-size:var(--f-lg)}
.plan-price b{font-size:var(--f-2xl);font-weight:var(--w-bold);font-variant-numeric:tabular-nums}
.plan-facts{display:flex;flex-direction:column;gap:var(--sp-0);font-size:var(--f-sm);color:var(--dim);padding-block:var(--sp-1);border-block:1px solid var(--line-soft)}
.plan-facts li::before{content:"·";margin-inline-end:var(--sp-1);color:var(--faint)}
.plan-pay{margin-block-start:auto;display:flex;flex-direction:column;gap:var(--sp-1)}
.plan-pay .btn{width:100%}
.plan-pay .agree{text-align:center}
.plan-cancel{text-align:center;margin-block-start:var(--sp-2)}
.plan-cancel:hover{color:var(--dim)}

/* ── Text options (plan switch): two clear lines, not two buttons ───────── */
.switch>li>a{display:block;padding:var(--sp-2);border:1px solid var(--line);border-radius:var(--r-sm);font-size:var(--f-sm);line-height:var(--lh-snug)}
.switch>li>a:hover{color:var(--dim)}
.switch>li>a b{display:block;font-weight:var(--w-mid)}

/* ── Pick a reference by name (wire) (wire) ────────────────────────────────── */
.wire-pick{position:absolute;inset-inline:0;top:100%;z-index:var(--z-float);margin-block-start:var(--sp-0);
  background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-sm);box-shadow:var(--shadow-2);
  display:flex;flex-direction:column;max-height:calc(var(--h-ctl) * 6);overflow:auto}
/* Tabs (the "tabs" component in parts.html): text, the current one heavy with an underline, no size shift. */
.tabs{display:flex;gap:var(--sp-4);padding:0 var(--sp-4);border-block-end:1px solid var(--line);font-size:var(--f-sm);overflow-x:auto}
.tabs a{display:inline-block;padding:var(--sp-2) 0;color:var(--dim);text-decoration:none;border-block-end:2px solid transparent;white-space:nowrap}
.tabs a[aria-current]{color:var(--ink);font-weight:var(--w-bold);border-block-end-color:var(--ink)}
.tabs a small{color:var(--faint);font-weight:var(--w);font-variant-numeric:tabular-nums}
/* Account owner header: a white bar at full content width right under the site header (cancels the page padding on top and both sides),
   with a light line under it like the header. The icon precedes the word on a line, and the current one has an underline (like the site tabs) with no background. The three
   groups have a wider gap between them. On mobile the page padding is smaller so the cancel matches it. */
/* Account owner home (Coolors pattern): a vertical side menu on the right with a sunken rounded background, and the content beside it as white panels. The groups
   (account, my activity, my fonts) are separated by a light line. On small screens the menu goes back to a horizontal scrolling line above the content. */
.main:has(>.home-tabs){display:grid;grid-template-columns:calc(var(--w-rail) + var(--sp-3)) minmax(0,1fr);column-gap:var(--sp-6);align-items:start}
.main:has(>.home-tabs)>:not(.home-tabs){grid-column:2;min-width:0}
/* And the account menu is on the right in every language, its place does not change with the page language */
html[dir=ltr] .main:has(>.home-tabs){grid-template-columns:minmax(0,1fr) calc(var(--w-rail) + var(--sp-3))}
html[dir=ltr] .main:has(>.home-tabs)>:not(.home-tabs){grid-column:1}
html[dir=ltr] .tabs.home-tabs{grid-column:2}
.tabs.home-tabs{grid-column:1;grid-row:1 / span 20;position:sticky;inset-block-start:calc(var(--h-hd) + var(--sp-4));display:flex;flex-direction:column;align-items:stretch;gap:var(--sp-0);height:auto;margin:0;padding:var(--sp-2);overflow:visible;background:var(--sunken);border:0;border-radius:var(--r-lg)}
.tabs.home-tabs a{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:var(--sp-2);height:var(--h-ctl);padding:0 var(--sp-3);border:0;border-radius:var(--r-sm);background:none;color:var(--dim);font-size:var(--quiet-size);font-weight:var(--w-mid);white-space:nowrap}
.home-tabs a::after{display:none}
.home-tabs a:hover{color:var(--ink)}
.home-tabs a[aria-current]{background:var(--surface);color:var(--ink);font-weight:var(--w-bold);box-shadow:var(--shadow-1)}
.home-tabs .ic{width:var(--ic-sm);height:var(--ic-sm);flex:none}
/* "Free credit" is just a touch: pastel butter from the top right corner fading out, and a gift; the text is ink like the rest */
.home-tabs a.home-gift{background:linear-gradient(225deg,var(--pastel-butter),transparent 70%);color:var(--ink)}
.home-tabs small{margin-inline-start:auto;font-size:var(--meta-size);color:var(--dim)}
.home-tabs .home-gap{margin-block-start:var(--sp-3)}
.home-tabs .home-gap::before{content:"";position:absolute;inset-inline:var(--sp-3);inset-block-start:calc(var(--sp-2) * -1);border-block-start:1px solid var(--line)}
@media (max-width:56.25em){.main:has(>.home-tabs){display:block}.tabs.home-tabs{position:static;flex-direction:row;overflow-x:auto;margin-block-end:var(--sp-4)}.home-tabs .home-gap{margin-block-start:0;margin-inline-start:var(--sp-3)}.home-tabs .home-gap::before{display:none}}
/* Account page panels: page head (large title with a line under it and buttons at its end), then white panels with a title, an explanation line and rows. */
.hm{display:flex;flex-direction:column;gap:var(--sp-4)}
.hm>*,.hm *+*{margin-block-start:0}
.hm-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--sp-3);margin-block-end:var(--sp-3)}
.hm-head h1{margin:0;font-size:var(--title-1-size);font-weight:var(--title-1-weight);line-height:var(--title-1-lh)}
.hm-head p{margin:var(--sp-2) 0 0;font-size:var(--quiet-size);color:var(--dim)}
.hm-acts{display:flex;gap:var(--sp-2)}
/* A section without a card: the title on the background with the content below it (cards are a single layer, never a card inside a card). */
.hm-sect{display:flex;flex-direction:column;gap:var(--sp-3)}
.hm-panel{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-5);background:var(--surface);border-radius:var(--r-lg)}
.hm-ph{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-3)}
.hm-ph h2{margin:0;font-size:var(--title-2-size);font-weight:var(--title-2-weight);line-height:var(--title-2-lh)}
.hm-ph p{margin:var(--sp-1) 0 0;font-size:var(--meta-size);line-height:var(--meta-lh);color:var(--dim)}
.hm-rows{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.hm-row{display:flex;align-items:center;gap:var(--sp-3);padding-block:var(--sp-3);border-block-start:1px solid var(--line-soft)}
.hm-row:first-child{border-block-start:0;padding-block-start:0}
.hm-row:last-child{padding-block-end:0}
.hm-row>.ic{flex:none;width:var(--ic-md);height:var(--ic-md);color:var(--dim)}
.hm-row-main{display:flex;flex:1;flex-direction:column;gap:var(--sp-0);min-width:0}
.hm-row-main b{font-size:var(--quiet-size);font-weight:var(--w-mid);color:var(--ink)}
.hm-row-main small{font-size:var(--meta-size);color:var(--dim)}
a.hm-row{color:inherit;text-decoration:none}
.hm-row .hm-go{color:var(--faint)}
.wire-pick-item{display:block;width:100%;padding:var(--sp-1) var(--sp-2);border:0;background:none;text-align:start;cursor:pointer;font-size:var(--f-sm)}
.wire-pick-item:hover{color:var(--accent)}
/* A short note next to the name in the list (the font's weight count, for example), faint so the name stays clearest. */
.wire-pick-note{margin-inline-start:var(--sp-1);color:var(--dim)}
.wire-pick-more{padding:var(--sp-1) var(--sp-2);font-size:var(--f-xs);color:var(--faint);border-block-start:1px solid var(--line-soft)}
input.is-bad{border-color:var(--warn)}
.picked{display:flex;flex-wrap:wrap;gap:var(--sp-1);list-style:none;margin:0;padding:0}
.picked li{display:inline-flex;align-items:center;gap:var(--sp-1);padding:var(--sp-0) var(--sp-1) var(--sp-0) var(--sp-2);
  background:var(--line-soft);border-radius:var(--r-xs);font-size:var(--f-sm);color:var(--ink)}
.picked .open{display:inline-flex;color:var(--faint);line-height:1}
.picked .open .ic{width:var(--sp-3);height:var(--sp-3)}
.picked .open:hover{color:var(--ink)}
.picked .unlink{border:0;background:none;padding:0;cursor:pointer;color:var(--faint);font-size:var(--f-md);line-height:1}
.picked .unlink:hover{color:var(--bad)}

/* ── In-page confirmation prompt (wire) (wire) ─────────────────────────── */
.wire-tools{display:flex;flex-wrap:wrap;gap:var(--sp-0);margin-block-end:var(--sp-1)}
.wire-tools .btn{display:inline-flex;align-items:center;gap:var(--sp-0)}
.wire-tools .wire-lang{margin-inline-start:auto}
.wire-lang,.wire-seg{display:inline-flex;align-items:center;gap:var(--sp-1);font-size:var(--f-sm);color:var(--dim)}
.wire-lang button,.wire-seg button{background:none;border:0;padding:0 var(--sp-0);color:var(--dim);cursor:pointer;font:inherit}
.wire-lang button.is-on,.wire-seg button.is-on{color:var(--ink);font-weight:bold}
.plans-interval{display:flex;justify-content:center}.plans-interval .wire-seg{font-size:var(--f-md)}
.form-row>.wire-lang{flex:0 0 auto}
.form-row>input:not([hidden]),.form-row>textarea:not([hidden]){flex:1 1 auto}
.wire-tools .wire-lang+.wire-switch{margin-inline-start:0}
.wire-tools .wire-switch{margin-inline-start:auto}
.wire-visual{width:100%;max-width:none;min-height:70vh;max-height:80vh;resize:vertical;padding:var(--sp-2) var(--sp-3);border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);color:var(--ink);overflow:auto}
.wire-visual:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 3px var(--focus-soft)}
.form-row .wire-tools,.form-row .wire-visual,.form-row textarea[data-wire-html],.form-row textarea[data-wire-html]+.wire-count{flex:0 0 100%}
textarea[data-wire-html]{min-height:70vh;font-family:var(--mono);font-size:var(--f-sm)}
.form-row .wire-tools{flex-basis:100%}
/* Confirmation prompt for an important decision: a bar in context under the action row, sunken background and small corners with no shadow or warning colour,
   the question in clear type in the text colour, and the confirm button named after the pressed button in the danger colour (7.7:1), or in the text colour if the button is primary
   (accept and publish), and a quiet "Cancel". */
.wire-ask{inline-size:min(calc(100vw - var(--sp-5) * 2),var(--w-desc));padding:var(--sp-5) var(--sp-6);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float)}
.wire-ask[open]{display:flex;flex-direction:column;gap:var(--sp-5)}
.wire-ask::backdrop{background:var(--scrim);-webkit-backdrop-filter:blur(var(--blur-veil));backdrop-filter:blur(var(--blur-veil))}
.wire-ask-q{margin:0;font-size:var(--f-md);line-height:var(--lh)}
.wire-ask-acts{display:flex;gap:var(--sp-2);align-items:center;justify-content:flex-end}
@media (max-width:40em){.wire-ask{inline-size:calc(100vw - var(--sp-4) * 2);padding:var(--sp-4)}}
.wire-ask-yes{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.is-armed[data-wire-ask-self]{background:var(--ink);border-color:var(--ink);color:var(--surface)}
/* Cookie bar: a fixed line at the bottom of the screen, no shadow and no card. */
.consent{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--z-float);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-1) var(--sp-3);padding:var(--sp-2) var(--sp-4);background:var(--surface);border-block-start:1px solid var(--line)}
.consent p{margin:0;font-size:var(--meta-size);line-height:var(--meta-lh);color:var(--ink)}
.consent-acts{display:flex;gap:var(--sp-1)}
.wire-toast{position:fixed;inset-inline-end:var(--sp-3);inset-block-end:var(--sp-3);z-index:var(--z-toast);box-shadow:var(--shadow-2)}
.field,.side-block{position:relative}
select+.wire-dots,input+.wire-dots{position:absolute;inset-inline-end:var(--sp-2);top:50%;transform:translateY(-50%);margin:0}

/* ── Empty state ───────────────────────────────────────────────────── */
/* Row list (settings, receipts, details): a group with a small label above it, and only hairlines between its rows. A row is an icon, then
   its name (title-3) with its description (meta) below, then its value or action at the line end. A link row is clickable as a whole and ends with an arrow. */
.row-group{display:flex;flex-direction:column;gap:var(--sp-1)}
.row-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2)}
.row-group h2{margin:0;font-size:var(--label-size);font-weight:var(--label-weight);line-height:var(--label-lh);color:var(--label-color)}
.row-list{list-style:none;margin:0;padding:0}
.row-list>li+li{border-block-start:1px solid var(--line-soft)}
.row-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--sp-3);padding-block:var(--sp-2)}
.row-item>*{margin:0}
.row-item>svg{color:var(--dim)}
.row-item b{display:block;font-size:var(--title-3-size);font-weight:var(--title-3-weight);line-height:var(--title-3-lh);color:var(--title-3-color)}
.row-item small{display:block;font-size:var(--meta-size);line-height:var(--meta-lh);color:var(--meta-color)}
.row-item>.row-end{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:var(--f-md);font-variant-numeric:tabular-nums;color:var(--ink)}
.row-item.row-kv{grid-template-columns:minmax(0,1fr) auto}
.row-item.row-kv>span:first-child{font-size:var(--f-md);color:var(--dim)}
a.row-item{color:inherit;text-decoration:none}
a.row-item:hover b{text-decoration:underline;text-underline-offset:var(--sp-0)}
.row-item .row-go svg{transform:scaleX(-1)}
.void{padding:var(--sp-6) var(--sp-4);text-align:center;color:var(--faint)}
.void b{display:block;color:var(--dim);font-weight:var(--w-mid);font-size:var(--f-lg);margin-block-end:var(--sp-0)}

/* ── Gate: sign in/sign up/recovery ─────────────────────────────── */
.gate{max-width:var(--w-narrow);margin-inline:auto;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-lg);padding:var(--sp-4);box-shadow:var(--shadow-card)}
.gate h1{font-size:var(--title-1-size);text-align:center}
.gate>.lede{text-align:center;font-size:var(--f-md);margin-inline:auto}
.gate .acts{justify-content:stretch}.gate .acts .btn{flex:1}
.gate .or{display:flex;align-items:center;gap:var(--sp-2);color:var(--faint);font-size:var(--f-xs)}
.gate .or::before,.gate .or::after{content:"";flex:1;border-block-start:1px solid var(--line)}
.gate .foot,.foot{text-align:center;font-size:var(--f-sm);color:var(--faint)}
.foot a:hover{color:var(--ink)}

/* ── Hero ────────────────────────────────────────────────────── */
.hero{text-align:center;padding-block:var(--sp-7) var(--sp-5)}
.hero h1{font-size:var(--display-size);line-height:var(--lh-tight);letter-spacing:var(--ls-tight)}
.hero .lede{margin-inline:auto;font-size:var(--f-lg)}
.hero .acts{justify-content:center;margin-block-start:var(--sp-4)}

/* ── Waiting: three pastel circles breathing — from the home-page circles ─────── */
.wire-dots{display:inline-flex;align-items:center;gap:var(--sp-0);margin-inline-start:var(--sp-1);vertical-align:middle;line-height:0}
.wire-dots i{display:block;width:var(--sp-1);height:var(--sp-1);border-radius:var(--r-pill);
  animation:breathe calc(var(--t-slow) * 2) var(--e-glide) infinite}
.wire-dots i:nth-child(1){background:var(--p-ink-1);animation-delay:0ms}
.wire-dots i:nth-child(2){background:var(--p-ink-3);animation-delay:calc(var(--t-slow) * 2 / 3)}
.wire-dots i:nth-child(3){background:var(--p-ink-4);animation-delay:calc(var(--t-slow) * 4 / 3)}
@keyframes breathe{0%,100%{transform:scale(.6);opacity:.35}50%{transform:scale(1);opacity:1}}
/* A font image on its way: three small dots at the centre of the image area, each darkening in turn (chosen 2026-11-07 from the trial page).
   The dots are a background on the image itself or its tight wrapper (waitImg), so they stay exactly within the image bounds. And the image's alt text never shows
   at all (hard rule). No motion for those who asked for reduced motion: the dots are static. */
@property --w1{syntax:"<number>";inherits:false;initial-value:.35}
@property --w2{syntax:"<number>";inherits:false;initial-value:.35}
@property --w3{syntax:"<number>";inherits:false;initial-value:.35}
/* ‎!important‎ on the background image only: the card colour and the large image area (.closeup-media.tint-N{background:…}) would wipe it. */
.is-waiting{
  background-image:
    radial-gradient(circle,color-mix(in srgb,var(--ink) calc(var(--w1) * 100%),transparent) 0 calc(var(--sp-0) - 1px),transparent var(--sp-0)),
    radial-gradient(circle,color-mix(in srgb,var(--ink) calc(var(--w2) * 100%),transparent) 0 calc(var(--sp-0) - 1px),transparent var(--sp-0)),
    radial-gradient(circle,color-mix(in srgb,var(--ink) calc(var(--w3) * 100%),transparent) 0 calc(var(--sp-0) - 1px),transparent var(--sp-0)) !important;
  background-repeat:no-repeat !important;background-size:var(--sp-2) var(--sp-2) !important;
  background-position:calc(50% - var(--sp-3)) 50%,50% 50%,calc(50% + var(--sp-3)) 50% !important;
  animation:wait-dots calc(var(--t-slow) * 1.8) ease-in-out infinite}
.is-waiting:not(img) img{opacity:0}
/* And the large font image frame has zero height before it arrives: it gets a height so the dots show in place. */
figure.is-waiting{min-height:calc(var(--sp-4) * 6)}
.pin-sample.is-waiting{display:block;min-height:var(--sp-6)}
img[data-wait]{color:transparent;transition:opacity var(--t) var(--e-out)}
img[data-wait="gone"]{visibility:hidden}
@keyframes wait-dots{
  0%,100%{--w1:.85;--w2:.3;--w3:.3}
  33%{--w1:.3;--w2:.85;--w3:.3}
  66%{--w1:.3;--w2:.3;--w3:.85}}
@media (prefers-reduced-motion:reduce){.is-waiting{animation:none}}
.btn .wire-dots{margin-inline-start:var(--sp-1)}
.btn .wire-dots i{width:var(--sp-0);height:var(--sp-0)}
/* And the curtain on page transitions: larger circles at the centre of the screen. */
.wire-veil{position:fixed;inset:0;z-index:var(--z-veil);background:var(--veil-thick);display:grid;place-items:center;
  animation:fade var(--t-quick) var(--e-out)}
.wire-veil .wire-dots{gap:var(--sp-2);margin:0}
.wire-veil .wire-dots i{width:var(--sp-3);height:var(--sp-3)}
@keyframes fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.wire-dots i{animation:none;opacity:.8}}

/* ── Pulse: for elements that want attention ──────────────────────────── */
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 var(--accent-line)}50%{box-shadow:0 0 0 var(--sp-1) transparent}}
.pulse{animation:pulse calc(var(--t-slow) * 3) var(--e-out) infinite}


/* Switch: label.tog holds text and a checkbox drawn as a switch (the same on the result page and the add-font page). */
.tog{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-1);min-height:var(--h-ctl-sm);color:var(--dim);font-size:var(--f-sm);cursor:pointer}
.tog:has(input:checked){color:var(--ink)}
.tog input{position:relative;flex:none;appearance:none;-webkit-appearance:none;width:var(--sp-5);height:calc(var(--sp-3) + 2px);margin:0;border-radius:var(--r-pill);background:color-mix(in srgb,var(--ink) 30%,transparent);cursor:pointer;transition:background var(--t-fast) var(--e-out)}
.tog input::after{content:"";position:absolute;inset-block-start:2px;inset-inline-start:2px;width:calc(var(--sp-3) - 2px);height:calc(var(--sp-3) - 2px);border-radius:var(--r-pill);background:var(--surface);transition:inset-inline-start var(--t-fast) var(--e-out)}
.tog input:checked{background:var(--ink)}
.tog input:checked::after{inset-inline-start:calc(100% - var(--sp-3))}
.pg{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-3) 0;justify-content:center}
.pg-at{font-size:var(--f-sm);color:var(--faint);font-variant-numeric:tabular-nums}

.fc{display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-3);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  transition:color var(--t-fast) var(--e-out)}
.fc:hover{color:var(--dim)}
.fc-shot{display:grid;place-items:center;min-height:var(--sp-8)}
.fc-shot img{max-height:var(--sp-8);width:auto;object-fit:contain}
.fc-name{font-size:var(--f-sm);color:var(--dim);display:flex;gap:var(--sp-0);
  align-items:baseline;justify-content:center;flex-wrap:wrap}
.fc-name em{font-style:normal;color:var(--faint);font-size:var(--f-xs)}

