/*
 * The design tokens. The only file with colour codes, sizes, fonts and durations (docs/design.md).
 * Names say what a value does, not what it looks like, so a new palette needs no new names.
 * The starting point is the prototype's look. Light theme by default, dark per the system setting or the user's choice.
 */

/* The fonts are self-hosted (licence OFL-1.1, decision 0015). Copied by npm run fonts. IBM Plex Sans since T2.191
   (lager 1, Björn's choice 26/11 via the pilot session), for the body and the display alike, in place of Source Sans 3
   (T2.22), in the weights 400, 500 and 600: a weight of 700 is drawn with 600. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.77bc02670657.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.f7016cd446d2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.196e3cbc5fee.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit 300 (the large logo) and 400 (the small ones, T2.79) (OFL-1.1, decision 0015) for the logo's wordmark only (T2.64), --font-brand. Copied by npm run fonts. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/outfit-latin-300-normal.9b74615df586.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit-latin-400-normal.23191c444b9e.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Liberation Sans 2.1.5 (OFL-1.1) for the printed summary sheet, --font-sheet. Delivered as the original TTF files,
   since the licence reserves the name Liberation for unmodified fonts. Source and checksums: docs/design.md. */
@font-face {
  font-family: "Liberation Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/liberation-sans-400-normal.d7b4e92b03de.ttf") format("truetype");
}

@font-face {
  font-family: "Liberation Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/liberation-sans-700-normal.ab3823f8c454.ttf") format("truetype");
}

:root {
  /* The colours are skiffer och salvia v5 (T2.26 and T2.27, Björn 30/10), the product's look for every customer and the
     sign-in since T2.73 (decision 0036, Björn 2/11); marin v1 (T2.22) is gone. The values are the handover's, except
     where the contrast needs another (tests/test_contrast.py, 4.5:1 for text and 3:1 for a graphic): the positive text
     and the focus ring in the light theme, and in the dark the third level of text and the editable and info surface.
     A customer's theme sets the top bar's or side menu's colour and the action's over these (apps.companies.theme). */
  /* Surfaces */
  --color-ground: #eef1f3; /* the page's ground, lager 1's form (T2.191, Björn 26/11: Form C) */
  --color-surface: #ffffff;
  --color-surface-2: #eef1f3;
  --color-band: #2e3a46; /* the slate */
  --color-band-text: #ffffff;
  --color-band-muted: #cfd6dc; /* 7.9:1 on the slate */
  --color-band-control: rgba(255, 255, 255, 0.12);
  /* The side menu (T2.27), the portal's frame since T2.73: its bottom, text, icons, the chosen area and the count. */
  --color-nav: #2e3a46; /* the side menu, the slate */
  --color-nav-text: #ffffff;
  --color-nav-muted: #cfd6dc; /* the menu's text, 7.9:1 on the slate */
  --color-nav-icon: #cfd6dc;
  --color-nav-active: #3a4a58; /* the chosen area's surface */
  --color-nav-current: #9cc0ac; /* the chosen area's text and mark, the salvia, 4.6:1 on its surface */
  --color-nav-line: rgba(255, 255, 255, 0.12);
  --color-nav-count: #9cc0ac;
  --color-nav-count-text: #1f2a33;
  --color-nav-scrim: rgba(23, 31, 39, 0.55); /* over the page while the menu is open over it */
  --color-overlay: rgba(0, 0, 0, 0.45);

  /* Text */
  --color-text: #2e3a46;
  --color-text-2: #56636f;
  --color-text-3: #5d6a76;
  --color-text-on-strong: #ffffff;
  --color-text-on-warning: #222222;

  /* Lines */
  --color-border: #d9dfe4;
  --color-border-soft: #e8ecef;
  --color-border-control: #7a8896; /* the edge of a control one writes in or chooses with, a field and the back button: the lightest slate that holds 3:1 (1.4.11) on the surface and the page ground, 3.6:1 and 3.4:1 (T2.136) */
  --color-border-strong: #2e3a46;
  /* The chosen one of every toggle, set in one place (T2.93, Björn 7/11): a secondary button that is on (aria-pressed) and the view switch's chosen button. A dark fill and bold text carry the state, and no mark is the default (a check means done, not chosen); the pair is in tests/test_contrast.py */
  --toggle-on-surface: #2e3a46;
  --toggle-on-border: #2e3a46;
  --toggle-on-text: #ffffff;
  --toggle-on-weight: var(--weight-bold);
  --toggle-on-mark: none; /* the mark before the label of the chosen one: none, or a check ("\2713", variant ui-toggle-mark-check) */
  --toggle-on-underline: 0px; /* the line under the chosen one: 0, or --line-tab-active (variant ui-toggle-mark-underline) */
  --button-back-bg: #e4eaec;
  --button-back-text: #3d6650;
  --button-back-border: var(--color-border-control);

  /* Action, link and focus */
  --color-action: #3d6650; /* the dark sage, for links and text in the accent's colour */
  --color-action-text: #ffffff;
  --color-action-soft: #e7f0ea;
  --color-link: #3d6650;
  --color-focus: #3d6650;
  --color-brand: #2e3a46;
  --color-brand-accent: #9cc0ac; /* the salvia: the logo's Nav, the avatar, a surface and never text */
  /* The accent, the salvia as a surface with dark text: the primary button and the top bar's count (components.css) */
  --color-accent: #9cc0ac;
  --color-accent-text: #1f2a33; /* text on the salvia, 7.3:1 */
  --color-accent-border: #5f8a73; /* the primary button's edge, a darker salvia: 3.9:1 on white */
  --color-tab-current: #3d6650; /* the active tab's text, the dark sage as the action (T2.43, Jesper 31/10: the chosen tab changes colour; 5.9:1) */
  --color-tab-line: #5f8a73; /* and its line, the darker salvia of the button's edge, 3.9:1 on white */

  /* States */
  --color-positive: #1b7f3a;
  --color-positive-text: #197836; /* the handover's #1b7f3a is 4.34:1 on its soft surface; this is 4.76:1 */
  --color-positive-soft: #e3f1e7;
  --color-warning: #e09a00;
  --color-warning-text: #8a5a00;
  --color-warning-soft: #fbf1dc;
  --color-error: #b3261e;
  --color-error-soft: #f9e5e3;
  --color-negative-amount: #b3261e;
  --color-editable: #eaf3ee;
  --color-cell-editable: #eaf3ee; /* a cell one may write in, also while reading (the prototype's td.in, P.0) */
  --color-unsaved: #b36b00; /* the changed cell's corner flag and dot: 3.7:1 on a cell one may write in (T2.50) */
  --field-warn-edge: var(--color-warning); /* a field with a warning (T19.2.2): the edge ... */
  --field-warn-text: var(--color-warning-text); /* ... and its line under the field */
  /* The status badges (ui-badge, T2.73): the surface, the text and the edge of each tone. In the light theme they are
     the states' own colours and the edge is the text's; the dark theme has its own, less saturated and less bright on
     the dark surface but still at least 4.5:1 for the text and 3:1 for the edge (the owner 4/11 on test: "flairs blir
     för starka i mörkt läge"; tests/test_contrast.py). */
  --badge-info-bg: var(--color-action-soft);
  --badge-info-text: var(--color-action);
  --badge-info-edge: var(--color-action);
  --badge-positive-bg: var(--color-positive-soft);
  --badge-positive-text: var(--color-positive-text);
  --badge-positive-edge: var(--color-positive-text);
  --badge-warning-bg: var(--color-warning-soft);
  --badge-warning-text: var(--color-warning-text);
  --badge-warning-edge: var(--color-warning-text);
  --badge-critical-bg: var(--color-error-soft);
  --badge-critical-text: var(--color-error);
  --badge-critical-edge: var(--color-error);

  /* Charts: series in a fixed order, for example trades in the schedule */
  --color-chart-1: #2e3a46;
  --color-chart-2: #c9782a;
  --color-chart-3: #2e9a4b;
  --color-chart-4: #7b5ea7;
  --color-chart-5: #1a9e9e;
  --color-chart-6: #b5543c;
  --chart-bar-radius: 4px; /* the most a bar's upper corners are rounded; never more than a quarter of its width, so a narrow bar keeps a flat top (Björn 13/11) */

  /* The box over a chart (T2.92, ui-chart-tip, the prototype's #tip): a month's figures on hover, a tap or the keyboard.
     Its surface, text, edge and negative amounts are its own tokens per theme, so that its look is changed here and
     nowhere else. The colour square of a row is always its series' own fill (--chart-tip-series-N, the chart's colour
     unless a look gives the box a tone of its own) with a thin edge, never an empty outline. Every series and the
     negative amount must stand out from the box's surface (apps/design/contrast.py, 3:1 and 4.5:1).
     In the light theme the box is light, white with dark text, so that both series' fills are seen as in the chart
     (Björn's choice (c) of three drawn looks, K38 7/11; the pictures in docs/granskning/T2.92/varianter/).
     The dark theme's box is the top bar's colour, as before, and is not part of the choice. */
  --chart-tip-bg: var(--color-surface);
  --chart-tip-fg: var(--color-text);
  --chart-tip-border: var(--color-border); /* a thin edge, with the shadow, so that the box stands out from the page */
  --chart-tip-negative: var(--color-negative-amount);
  --chart-tip-series-1: var(--color-chart-1);
  --chart-tip-series-2: var(--color-chart-2);
  --chart-tip-series-3: var(--color-chart-3);
  --chart-tip-series-4: var(--color-chart-4);
  --chart-tip-series-5: var(--color-chart-5);
  --chart-tip-series-6: var(--color-chart-6);
  --chart-tip-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  --chart-tip-size: var(--text-xs);
  --chart-tip-leading: 1.45;
  --chart-tip-weight-title: var(--weight-strong);
  --chart-tip-pad-y: var(--space-4);
  --chart-tip-pad-x: 11px;
  --chart-tip-radius: var(--radius-md);
  --chart-tip-max: 320px; /* the widest the box is, and never wider than the window less its margins */
  --chart-tip-gap: 18px; /* the room between a row's label and its value */
  --chart-tip-offset: 14px; /* from the marked month to the box beside it, and from the drawing to the box above or under it (K24 v2) */
  --chart-tip-margin: 8px; /* the least room between the box and the window's edge, and the edge of the panel the drawing stands in (the pilot 13/11) */
  --chart-tip-chart-min: 240px; /* the least width of the drawing the box leaves beside it: the box stands beside the drawing when it and this fit in the window, else under it (the pilot 13/11) */
  --chart-tip-swatch: 9px; /* the colour square of a series before its label */
  --chart-tip-swatch-radius: var(--radius-sm);
  --chart-tip-swatch-gap: var(--space-3);
  --chart-tip-swatch-border: rgba(46, 58, 70, 0.35); /* the square's thin edge; its fill carries the contrast */
  --chart-tip-hit-current: rgba(127, 127, 127, 0.08); /* the month the box is for, under the pointer or the keyboard */

  /* The logo (T2.64): the symbol and the wordmark Bygg + Nav, component brand_lockup. The colours per theme: the lines of
     the symbol and "Bygg" (--brand-symbol-line, --brand-word), the salvia of the face and of "Nav" (--brand-symbol-face,
     --brand-nav). --brand-on-dark-* are the dark theme's colours for a ground that is dark in both themes, the top bar and
     the side menu (ui-brand-on-dark). The files static/brand/symbol-*.svg have the same colours for the tab's icon. */
  --brand-symbol-line: #3a4650;
  --brand-symbol-face: #94b9a4;
  --brand-word: #3a4650;
  --brand-nav: #94b9a4;
  --brand-on-dark-symbol-line: #d6dfda;
  --brand-on-dark-symbol-face: #9cc0ac;
  --brand-on-dark-word: #e7ece9;
  --brand-on-dark-nav: #9cc0ac;
  /* The wordmark's geometry, in em of the text (the text is 107 units, the symbol's square 150), measured against the
     handover's reference lockups (referens-lockup-ljus.png and -mork.png, tests/test_brand.py): the symbol (its 154
     units with the room for the line) 154/107, the room of the line -2/107 on each side, the B's stem 11/107 from the
     symbol's edge (the gap is 10/107, which measured against the reference puts the stem where it is, less the B's left
     side bearing in Outfit, 0.088 em), the letter spacing, and the
     text's shift: the word's box (line-height normal) centred on the symbol's square and then moved up. The sheet says
     2 of the 150 of the square; drawn in the browser that left the baseline and the capitals 2 px (0.0187 em) lower
     than the reference at 107 px, so the shift is 4/107, which puts both within 1 px of it, in both themes. */
  --font-brand: "Outfit", var(--font-display);
  --brand-weight: 300; /* the large logo; the small ones (22 and 16 px) have --brand-weight-small (T2.79) */
  --brand-weight-small: 400;
  --brand-tracking: -0.012em;
  --brand-symbol-height: 1.4393em;
  --brand-symbol-room: -0.0187em;
  --brand-word-shift: -0.0374em;
  --brand-size-large: 40px; /* on a page of its own, such as the catalog's sample */
  --brand-size-small: 22px; /* in the top bar and the side menu */
  --brand-size-compact: 16px; /* in the top bar from 1180 to 1319 px, where the row is full */
  /* The small symbols on whole pixels (T2.79, K10 D, Björn 2/11 22.58; design/brand/k10d/, scripts/brand_small_symbols.py,
     tests/test_brand.py): at 1 dppx or less the logo has a hand-drawn symbol in the square given here, in px, with lines
     of 1 px that lie on .5, and no negative margin. The gap is from the square to the word's box. The vector
     (viewBox -2 -2 154 154, unchanged) is drawn above 1 dppx. */
  --brand-hand-size-16: 23px;
  --brand-hand-size-22: 31px;
  --brand-hand-size-40: 57px;
  --brand-hand-gap-16: 1px;
  --brand-hand-gap-22: 2px;
  --brand-hand-gap-40: 3px;
  --brand-hand-step: 1px; /* where the layout does not centre the symbol on whole pixels (the rail A, T2.90.1), its place is rounded down to this step */
  --brand-parity: 1px; /* the logo's box is 1 px more than its symbol in width and height: the symbols are odd (23, 31 and 57), a
     row of 44 px centres an even box on whole pixels and the folded side menu's 44 px centres an even box too */
  /* The vector has the same optical distance to the word as the hand-drawn symbol, so that the logo does not move between
     screens: from the symbol's outer edge (the hexagon's right edge plus half the line, 1, 2 and 4 px from the square of
     the hand-drawn ones) to the word's box is --brand-ink-gap-* (the square's inset plus the gap), and the vector's own
     gap is that less --brand-vector-inset, the distance from the vector's drawn edge to the end of its box with the
     room of the line, in em of the text (the hexagon's right edge 139.5 and half the line 1.425 in the 154 units of the
     viewBox, less --brand-symbol-room). */
  --brand-ink-gap-16: 2px;
  --brand-ink-gap-22: 4px;
  --brand-ink-gap-40: 7px;
  --brand-vector-inset: 0.0848em;

  /* Fonts: IBM Plex Sans (T2.191, in place of Source Sans 3 from T2.22); the display is the same font, only heavier. On the screen the reserve with its
     metrics comes next (D-ALLA-33, #2975, @media screen at the end of the file); print, which reads this :root,
     names only delivered files (decision 0015). */
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 26px;
  --text-3xl: 30px;
  --text-field: 13px; /* 16 px on touch screens, see below, so iOS does not zoom on focus */

  --weight-regular: 400;
  --weight-bold: 600; /* IBM Plex Sans is delivered in 400, 500 and 600 (T2.191), so bold is 600 */

  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --tracking-caps: 0.07em;
  --tracking-sheet-head: 0; /* the summary's sheet's column headings (ui-grid-sheet): no extra spacing, so that its 19 columns fit 1440 px also with other fonts (P.0 round 10) */
  --tracking-display: 0;
  --tracking-heading: -0.01em; /* h1-h3 (T2.22), a token since a value outside this file is not allowed */

  /* The weights and sizes (T2.22): the few values that make the look lighter or stronger. A stronger version, as v2 was and v3 may
     be, changes these and nothing else: the weight of what is read first and of what is marked, the sizes of the
     heading, the key figures and the column headings, and the lines of the cards, the active tab and the badges. */
  --weight-heading: 600; /* h1-h3, key figures, sum and group rows, tabs and buttons */
  --weight-strong: 600; /* labels of cards, column headings, status badges and source marks, negative amounts */
  --weight-medium: 600; /* the rest that is half bold: sub tabs, links in cards, given figures */
  --weight-label: 500; /* a label: a card's label, a field's label and a column heading, grey (D-ALLA-35, M10, T2.191) */
  --text-h1: 24px; /* the page's heading, 24/600 (the type scale M10, lager 1, T2.191, D-ALLA-35) */
  --text-h1-project: 24px; /* the heading in the head of a project's pages, the same in every view of the project so that the head stands still between them (the pilot session 19/11): the prototype's h2, as the compact page's */
  --text-h1-narrow: 22px; /* and under --bp-mobile, also on a page with ui-page-compact: a heading that is one line (T2.172, Björn 18/11: "26 funkar inte bra") */
  --text-figure: 20px; /* a card's value, a figure 20/600 (M10, T2.191) */
  --text-hero: 44px; /* the main figure, a card's value in its largest size */
  --text-figure-floor: var(--text-xl); /* the smallest a card's value gets when the card is narrow (T2.132); a value that does not fit even then puts its unit on a line of its own */
  --figure-fit: 6; /* how many em of width a card's value is counted to need, so that "218,7 Mkr" fits the card (T2.132) */
  --text-col-head: var(--text-xs); /* column headings (plain writing in grey, never capitals, T2.122) and the placeholders in a table's fields: at least the text floor, 12 px */
  --line-card: 3px; /* the top edge of a card with a state, a warning or critical (T2.70: only a state has one) */
  --text-title: 15px; /* the title of a box: a panel's heading and a chart's caption, 15/600 (M10, T2.191) */
  --text-body: var(--text-sm);
  --text-title-small: var(--text-md); /* the small heading (heading_row size small), a step under the panel's 15 px (D-ALLA-35, T2.191) */
  --text-title-page: 15px; /* the panel heading on a compact page too (M10, T2.191) */ /* the body's text and a table's, 13 px (M10, T2.191) */
  --label-color: var(--color-text-2); /* a card's label and a field's label, grey (M10, T2.191) */
  --card-pad-top: var(--space-6); /* a card's room inside: above, at the sides, below, 12 px (lager 1's density A, T2.191, D-KORT-10) */
  --card-pad-side: var(--space-6);
  --card-pad-bottom: var(--space-6);
  --card-label-gap: var(--space-3); /* under its label and under its main figure, */
  --card-detail-gap: var(--space-4);
  --cards-hero-share: 1fr; /* and the main figure's share of the row: as wide as the others in the standard density */
  /* The compact card (ui-card-compact, Björn 1/11 via the pilot session): about half the height of the standard card, with
     the label, the figure and a short line under it, as the project overview's key figures and the ÄTA's cards. */
  --card-compact-pad-top: var(--space-5);
  --card-compact-pad-side: var(--space-6);
  --card-compact-pad-bottom: var(--space-4);
  --card-compact-gap: var(--space-2); /* under the label and under the figure */
  --card-compact-label-min: calc(var(--leading-tight) * 1em); /* its heading area in a row of aligned cards: one line, since the labels are short */
  --card-compact-min: 160px; /* the least width of a compact card in a row (ui-cards-compact), so that its one-line label fits: the longest, Prissatt belopp, is 132 px in IBM Plex Sans 12/500 in capitals, and the card has 12 px of air at each side and its frame (T2.191, D-KORT-10); 150 px, half --picker-min, broke it on two lines at 1600 px */
  --card-compact-leading: 1.35; /* the line under the figure, which may wrap, a little tighter than the body's */
  --text-figure-compact: var(--text-figure); /* the figure, the prototype's .tiles.kpi .tile .v */
  --text-hero-compact: var(--text-figure); /* the main figure of a row of compact cards */
  --line-tab-active: 2px; /* the line under the active tab */
  --text-tab: 15px; /* a tab, 15/600 as the panel's heading in the type scale M10 (D-ALLA-35, T2.191): at 16 px IBM Plex Sans left five of the six tabs at 820 px (D-NAV-16) */
  --line-badge: 1px; /* the frame of a status badge and a source mark */

  /* The project pages' layout, its base (T2.70, Björn 1/11 via the pilot session: the layout sketch with the choices
     A, I rubriken and Egen rad under). Each part is a named variant with its tokens here, in one place. */
  /* The row of tabs A (ui-tabs-line): the tabs straight on the page's ground, without a band or an edge of their own,
     with a thin line under them as wide as the cards; the chosen tab keeps the accent's colour and its line of
     --line-tab-active (--color-tab-current and --color-tab-line). */
  --tabs-line-surface: var(--color-ground);
  --tabs-line-edge: var(--color-border);
  --tabs-line-width: var(--line-thin);
  /* Signals (ui-signals), on a row of their own under the page's meta row: a reminder, not an alarm, so a coloured dot
     and calm text with no frame and no fill; the text says what it is, and the colour is never the only sign. */
  --signal-dot: 7px;
  --signal-dot-gap: var(--space-3); /* between the dot and the text */
  --signal-gap: var(--space-7); /* between two signals on the row */
  --signal-size: var(--text-sm);
  --signal-text: var(--color-text-2);
  --signal-text-hover: var(--color-text);
  --signal-warning: var(--color-warning-text); /* the dot of a warning, the warning's amber text tone: the yellow --color-warning is 2.2:1 on the page, and a dot needs 3:1 (1.4.11, 1g.11.6) */
  --signal-info: var(--color-text-3); /* the dot of information, grey */
  /* The signals' own dense height (the pilot session after G1 of #535): 24 px with a mouse, pointer: fine, and the tap
     target with touch, pointer: coarse or any-pointer: coarse (below); --signal-target is what the row uses, and
     --signal-row-gap the air between two rows of signals when they wrap. With touch a signal is underlined at rest
     (--signal-marker-touch), since hover, which marks it as a link with a mouse, does not exist there. */
  --signal-target-fine: 24px;
  --signal-target: var(--target-min);
  --signal-row-gap: var(--space-2);
  /* Stämmer, låt stå after a signal's text (1g.8c.5b, K58 question 3, D-NAV-15): the air between the text and its
     button, as a group's beside its label */
  --signal-act-gap: var(--actions-group-gap);
  --signal-marker-touch: underline;
  /* The signal chip (T2.191, lager 1 F2, Björn 26/11 20.4x: A, D-MARK-23): an economic signal is a toned capsule with a
     symbol, a light surface in the tone and the text and symbol in a darker one; a critical one red and one to watch
     amber, and information grey. The status badge's warning and critical tones and the project's signals are it. */
  --signal-chip-critical-bg: #fdeceb;
  --signal-chip-critical-text: #a3201a;
  --signal-chip-warning-bg: #fdf1d8;
  --signal-chip-warning-text: #875000;
  --signal-chip-info-bg: var(--color-surface-2);
  --signal-chip-info-text: var(--color-text-2);
  --signal-chip-pad-y: 3px;
  --signal-chip-pad-start: var(--space-4);
  --signal-chip-pad-end: var(--space-5);
  --signal-chip-gap: 5px;
  --signal-chip-size: var(--text-xs);
  --signal-chip-weight: var(--weight-heading);
  --signal-chip-radius: var(--radius-round);
  --signal-chip-symbol: 14px;
  --signal-chip-line: 1.5; /* @kind other */
  /* The view switch (ui-viewswitch): views of the same content, chosen with buttons of symbols that sit together, a
     frame with a divider between the buttons; the chosen one has the accent's soft surface and an accent symbol. */
  --viewswitch-edge: var(--color-border);
  --viewswitch-surface: var(--color-surface);
  --viewswitch-symbol: var(--color-text-2);
  --viewswitch-symbol-hover: var(--color-text);
  --viewswitch-on-surface: var(--toggle-on-surface); /* the chosen view is set in one place with every other toggle (T2.93) */
  --viewswitch-on-symbol: var(--toggle-on-text);
  --viewswitch-radius: var(--radius-md);
  --viewswitch-size: var(--icon); /* the symbol, drawn as the side menu's icons: 24 x 24 lines, round ends */
  /* the width of an icon's lines in its 24 x 24 box, as the side menu's */
  --icon-line: 1.8; /* @kind other */
  /* The sender's line (ui-attribution, T2.72, K8, beslut 0034): the product's symbol and one line of text, the weakest text
     colour, last on what goes out and on the pages of the customer's own. On the dark ground of the side menu its muted
     text colour. The symbol is the logo's own (brand_lockup, size mark) with a heavier line (a number in the symbol's own
     154 wide box), since it is small. The row variant has a thin line above it. */
  --attribution-size: var(--text-xs);
  --attribution-gap: var(--space-3); /* between the symbol and the text */
  --attribution-symbol: 16px;
  --attribution-symbol-line: 11; /* @kind other */
  --attribution-text: var(--color-text-3);
  --attribution-text-on-dark: var(--color-nav-muted);
  --attribution-row-line: var(--color-border);
  --attribution-row-space: var(--space-3); /* above the text, under the line */
  /* The source stamp (source_stamp, T2.101, Björn 7/11 kväll, rule 7, K44 Rekommenderat 9/11): metadata looks like
     metadata, never running text under a badge. The source is a small label with a database symbol in the upper right
     corner of a card, and who changed it is a grey line at the foot of the card; the colours are the theme's, so that
     the dark theme follows, and the text holds 4.5:1 on its surface (apps/design/contrast.py). The head holds the
     heading and the label on one row, which with touch is a tap target high so that a later fold has room. */
  --source-stamp-pad: var(--space-1) var(--space-4);
  --source-stamp-gap: var(--space-2);
  --source-stamp-size: var(--text-2xs);
  --source-stamp-icon: var(--text-xs);
  --source-stamp-surface: var(--color-surface); /* a label on the card's own surface, with a thin line (K44) */
  --source-stamp-border: var(--color-border);
  --source-stamp-text: var(--color-text-3);
  --source-stamp-radius: var(--radius-md); /* a source: a small label (K44) */
  --source-stamp-by-size: var(--text-xs); /* the person: a grey line at the foot of the card (K44) */
  --source-stamp-by-pad: var(--space-3);
  --source-stamp-by-line: var(--color-border-soft);
  --source-stamp-head-gap: var(--space-2) var(--space-4);
  --source-stamp-head-min: var(--target-min);
  --source-stamp-narrow: 22em; /* the catalogue's frame of a narrow card, where the stamp goes under its heading */
  --source-stamp-tight: 16em; /* the catalogue's frame of a very narrow card, where a long stamp takes two lines */
  /* The source mark (source_mark, T2.156, K111 v5, Björn 14/11 18.47, D-VEM-10 to D-VEM-14): the mark of the system a
     column's values come from, after the column's name, 16 px and grey in the name's own colour, with 6 px before it;
     the name and the day stand in the box on hover, tap and focus (ui-source-tip), with the mark in colour. The mark is
     drawn in --source-mark-size and reaches --source-mark-reach with touch, without making the header row higher. */
  --source-mark-size: 16px;
  --source-mark-gap: var(--space-3);
  --source-mark-ink: currentColor; /* the grey form: the column name's colour, the face of the product's mark lighter by --source-mark-face-opacity */
  --source-mark-face-opacity: 0.45; /* @kind other */
  --source-mark-reach: var(--target-min);
  --source-mark-reach-fine: var(--source-mark-size);
  /* A system that has no mark of its own yet (Bluebeam until its connection is built): a letter in a box, neutral, the
     same box in grey and in colour, so that its real mark is one file and one rule later. */
  --source-mark-letter-size: var(--text-2xs);
  --source-mark-letter-weight: var(--weight-strong);
  --source-mark-letter-radius: var(--radius-sm);
  --source-mark-letter-edge: var(--line-thin);
  --source-mark-letter-surface: var(--color-surface-2);
  --source-mark-letter-text: var(--color-text);
  --source-mark-letter-border: var(--color-border-strong);
  /* The box: the mark in colour, then the system's name and the day, as "Fortnox, hämtat 13/11" */
  --source-tip-gap: var(--space-3);
  --source-tip-face-opacity: 0.9; /* @kind other */
  --source-tip-product-face: var(--brand-symbol-face); /* the product's own mark in colour in the box: the logo's symbol, in the logo's own colours */
  --source-tip-product-line: var(--brand-symbol-line);
  /* The source line under a printed table (the box is never printed): the mark, the system and the day per system */
  --source-legend-size: var(--text-2xs);
  --source-legend-text: var(--color-text-3);
  --source-legend-gap: var(--space-3) var(--space-6);
  --source-legend-pad: var(--space-3);
  /* The row that folds out (more on a table, T2.105, Björn's rules 1, 2 and 4 of K39 7/11): what folds out stands on the
     row's own surface and is never greyed; its items stand in a card with a thin line, and they begin at the left edge
     of the row's name, after the chevron, where there is the width for it; on a surface narrower than --more-full-below
     the card begins at the row's left edge and takes the row's whole width. The open post has a line at its left in the colour of action. layout="panel"
     shows the chosen post in a panel to the right of the list where the list's own surface is at least
     --more-panel-from wide (the surface and not the device, read by components.js), and the chosen row in the list is
     lifted with the soft colour of action; under it, and always on a phone, the row folds out under itself. */
  --more-surface: var(--color-surface);
  --more-open-line: var(--line-thick);
  --more-open-edge: var(--color-action);
  --more-chosen-surface: var(--color-action-soft);
  --more-card-border: var(--color-border);
  --more-card-pad: var(--space-5) var(--space-6);
  --more-card-radius: var(--radius-md);
  --more-files-gap: var(--space-4); /* the file cards under the post's list (more_files, 1f.13, D-TAB-28) */
  --more-air: var(--space-3) var(--space-6) var(--space-6) 0; /* over, right and under the card in the row under */
  --more-full-below: 600px; /* a narrower surface (a phone, a narrow column) gives the card the row's whole width from its left edge, since after the chevron it would be too narrow (pilotsessionen 9/11) */
  --more-full-edge: var(--space-6); /* the card's left edge from the row's then, as its right edge (--more-air) */
  --more-panel-from: 1120px; /* the list's surface at 1366 px is 1244 px and at an iPad in landscape 1043 px (measured 9/11), so a computer gets the panel and an iPad the row */
  --more-panel-share: 1.05fr; /* @kind other */ /* the panel's share of the surface beside the list's 1fr, as K39 v2 (B) */
  /* A list card in two of the page grid's three columns (ui-panel-list-thirds, D-KORT-8, T2.179b): from six tracks the
     third column is the panel's, so the list opens its post there from a surface the two columns always have (about
     970 px at the six tracks' least content, 1500 px), and the panel has a third of the row beside the list's two. */
  --more-panel-from-thirds: 900px;
  --more-panel-share-thirds: 0.5fr; /* @kind other */ /* the panel's third beside the list's two thirds (1fr) */
  --more-panel-gap: var(--space-7);
  --more-panel-pad: var(--space-7) var(--space-8) var(--space-8);
  --more-panel-title: var(--text-xl);
  --more-panel-top: var(--space-6); /* the panel stays this far under the top of the screen while the list scrolls */
  --attribution-row-gap: var(--space-6); /* above the line, from what the page ends with */
  /* A card's top edge says only its state (ui-card-warning, ui-card-critical): yellow is a warning and red is something
     that has to be done, in --line-card; any other card has only the thin frame all round, also the main figure, which
     is seen by its width and size. */
  --card-edge: var(--color-border);
  --card-tone-warning: var(--color-warning);
  --card-tone-critical: var(--color-error);
  --card-current-ring: var(--color-action); /* the card whose filter the list shows (current, P.0.17a, K13), a ring inside its frame in --line-card */
  /* The section card (section_card, T2.104, Björn 7/11 K39 rules 2 and 6): each section of a post is a card of its own with
     a frame, the source's stamp in its corner and, where the surface is narrow, a fold that shows the section's main value
     on its heading row. The top edge says only a state, as the card's (--card-tone-*). The surface is the group's width
     (ui-section-cards, a container), never the device: a phone and a narrow column fold alike, and the width where the
     cards fold is the one container query in components.css (it cannot read a token). */
  --section-card-pad-top: var(--card-compact-pad-top);
  --section-card-pad-side: var(--card-pad-side);
  --section-card-pad-bottom: var(--card-pad-bottom);
  --section-card-pad-side-narrow: var(--space-6);
  --section-card-gap: var(--space-5); /* between the head, the body and the person's line */
  --section-card-body-gap: var(--space-6); /* between the parts of the body */
  --section-card-head-gap: var(--space-4);
  --section-card-head-min: var(--target-min); /* the folded head is a tap target high: the whole row is the button */
  --section-card-title-size: var(--text-lg);
  --section-card-title-size-narrow: var(--text-md);
  --section-card-peek-text: var(--color-text-2); /* the main value on the heading row of a folded card */
  --section-card-peek-size: var(--text-sm);
  --section-card-chevron: var(--color-text-2);
  --section-card-chevron-size: var(--disclosure-icon);
  --section-card-chevron-room: calc(var(--section-card-chevron-size) + var(--space-4));
  --section-card-call-min: var(--target-min); /* Ring and Mejla: large buttons, a tap target high with a mouse too */
  --section-card-call-gap: var(--space-4);
  --section-card-call-icon: var(--icon);
  --section-card-call-name-gap: var(--space-3);
  --section-cards-gap: var(--space-6) var(--space-7); /* between the cards of a group, down and across */
  --section-cards-fold: 560px; /* the group's width from which the cards stand side by side and open, and under which they fold: components.css repeats it in its container queries (a query cannot read a token; tests/test_design.py keeps the two the same) */
  --section-cards-narrow: 22em; /* the catalogue's frame of a phone's width (narrow) */
  /* The page's grid (ui-page-grid), a container query on the content area: one column under --page-grid-four, four
     from it and six from --page-grid-six, and the key figures and the content share the tracks, so their edges line
     up. A row of key figures with another number of cards than the tracks (ui-page-grid-kpis) shares the whole width
     evenly on one row from --page-grid-four, and is two wide under it (an odd last card has the whole row). Container queries cannot
     read variables, so components.css repeats the two widths and tests/test_design.py keeps them equal. */
  --page-grid-gap: var(--space-4); /* 8 px between the cards (lager 1's density A, T2.191, D-KORT-10) */
  --cards-gap: var(--space-4);
  --panel-pad: var(--space-6); /* a panel's room inside, as a card's (D-KORT-10) */
  --page-grid-four: 900px;
  --page-grid-six: 1500px;
  --page-grid-beside: 1421px; /* the content's width from which the list and the part beside it stand side by side (ui-page-grid-tracks-beside, P.0.17c, K13: from a window of 1700 px, with the side menu open, 1700 - 32 - --sidenav-width - 15, the classic scroll bar's room, which every page keeps since T2.179, D-ALLA-34; where the bar lies over the page, macOS and iPad, from 1685 px); components.css repeats it in its container query */
  /* The page's grid in a view (P.0.13, the project overview): a comment under the grid has a largest line length, so
     that it reads on a large screen too (ui-note-measure), and the planned list Att göra lays its points side by side
     in columns of at least --todo-column where its box is wide, as over the whole width at six tracks. */
  --note-measure: 48em; /* 80 of IBM Plex Sans's ch (0.6 em), about the 90 of Source Sans 3's before T2.191, in em so that it does not follow the reserve's wider 0 before the swap (D-ALLA-33) */
  /* The comment's variant Sammanfattning (ui-note-box, K61, Björn 12/11): what a form's choices give, on the grey
     second surface with the text's own colour, as K61's count in Skriv ut tidplanen. */
  --note-box-surface: var(--color-surface-2);
  --note-box-text: var(--color-text);
  --note-box-pad: var(--space-4) var(--space-5);
  --note-box-radius: var(--radius-md);
  --note-box-size: var(--text-sm);
  --note-box-gap: var(--space-6); /* the air above and under it, to the choices and to the form's buttons */
  /* The file card (T2.98, Björn 7/11 om K23): a file is a card of its own and never a link's style. The type icon in
     its box, neutral (the type is never said by colour), the thumbnail of the grid, the built in ×, a tap target with a mouse
     too, the card's edge under the mouse and the surface of the box; the colours are the theme's,
     so that the dark theme follows. */
  --file-card-pad: var(--space-3) var(--space-4);
  --file-card-gap: var(--space-4);
  --file-card-radius: var(--radius-md);
  --file-card-surface: var(--color-surface);
  --file-card-border: var(--color-border);
  --file-card-hover-border: var(--color-action);
  --file-card-name: var(--color-text);
  --file-card-meta: var(--color-text-3);
  --file-card-face: 36px;
  --file-card-face-surface: var(--color-surface-2);
  --file-card-icon: 22px;
  --file-card-icon-large: 48px;
  --file-card-icon-color: var(--color-text-2);
  --file-card-thumb-ratio: 4 / 3; /* @kind other */
  --file-card-grid-min: 180px;
  --file-card-tile-min: 96px; /* the tiles grid (ui-file-cards-tiles): small tiles side by side, at least three at 390 px (K31) */
  --file-card-tile-gap: var(--space-2);
  --file-card-tile-pad: var(--space-1);
  --file-card-tile-state-size: var(--text-2xs); /* the small state under a tile (K31, the file's state as K82 has it) */
  --file-card-tile-x: 24px; /* the × drawn in a tile's corner, inside its 44 px target (K31) */
  --file-card-tile-x-bg: var(--color-band);
  --file-card-tile-x-text: var(--color-band-text);
  --file-card-tile-x-hover-text: var(--color-text-on-strong); /* the × on the error's red under the mouse and in focus: white in light, dark in dark, where the red is light (1172 G1) */
  --file-card-add-border: var(--color-border); /* the dashed tile that adds photos (K31) */
  --file-card-add-text: var(--color-action);
  --file-card-add-size: var(--text-xl);
  --file-card-list-gap: var(--space-3);
  --file-card-x-text: var(--color-text-2);
  --file-card-x-hover: var(--color-error);
  /* How the file opens, Öppna or Visa at the card's right in the action's colour, underlined under the mouse (G1 Bör 4) */
  --file-card-meta-gap: var(--space-6); /* the gap between the facts, where their · stands */
  --file-card-go-text: var(--color-action);
  --file-card-go-icon: 16px;
  --file-card-go-under: 3px;
  --file-card-remove-lift: calc((var(--leading-normal) * 1em - var(--target-min)) / 2); /* the grid card's ×: its tap target moved up so that the symbol stands on the name's line and never on the facts under it (1c.3a.3) */
  /* The contacts at the client (contact_list, 1c.15b.3, K63 punkt 3, Björn's yes 10/11): the title as a field's label,
     two lines per contact with a thin line between them, the name in the body's colour and the e-mail and the phone
     in the second text level with a · in the gap, the × a tap target of 44 px with a mouse too (G2 of #962, A2), the
     question before a removal on the warning's surface of a message beside a field, and the box of a change the same
     kind as the value picker's small form of a new client. The e-mail and the phone are the drawn text with a mouse,
     as the fact list's link (T2.103), and with touch each is a tap target of --contacts-reach-step-touch, its text in
     the middle, so that a tap beside the number calls and never opens the change under it (G2 of #962, A2). The
     colours are the theme's, so the dark theme follows. */
  --contacts-gap: var(--space-4);
  --contacts-title-size: var(--text-sm);
  --contacts-title-weight: var(--weight-medium);
  --contacts-title-text: var(--color-text);
  --contacts-divider: var(--color-border-soft);
  --contacts-row-pad: var(--space-3);
  --contacts-row-gap: var(--space-4);
  --contacts-radius: var(--radius-md);
  --contacts-name-text: var(--color-text);
  --contacts-name-size: var(--text-sm);
  --contacts-name-weight: var(--weight-medium);
  --contacts-reach-text: var(--color-text-2);
  --contacts-reach-size: var(--text-xs);
  --contacts-reach-gap: var(--space-6); /* the gap between e-mail and phone, where their · stands */
  --contacts-reach-hover-line: underline; /* the e-mail and phone links: no link colour, a line only on hover and focus */
  --contacts-reach-step-touch: var(--target-min); /* with touch an e-mail or phone link is at least this high and wide, so that two links' targets never meet (as --facts-row-step-touch) */
  --contacts-hover-surface: var(--color-surface-2);
  --contacts-x-size: var(--target-min);
  --contacts-x-text: var(--color-text-3);
  --contacts-x-hover: var(--color-error);
  --contacts-x-hover-surface: var(--color-surface-2);
  --contacts-confirm-text: var(--color-text);
  --contacts-confirm-surface: var(--message-inline-warning-surface);
  --contacts-confirm-pad: var(--space-4);
  --contacts-confirm-gap: var(--space-4);
  --contacts-confirm-measure: 16em; /* the question's least width before the buttons go under it */
  --contacts-edit-surface: var(--valuepicker-add-surface);
  --contacts-edit-edge: var(--valuepicker-add-edge);
  --contacts-edit-pad: var(--space-5) var(--space-6);
  --contacts-edit-gap: var(--space-4);
  --contacts-note-text: var(--color-text-3);
  --contacts-note-size: var(--text-xs);
  /* The fact list (fact_list, T2.103, Björn 7/11 K39): label and value in the same track, two columns at every width. The
     label is the quiet text and the value the body's; the air between them is narrower on a phone. The title is the
     section's heading, with the one button Lägg till at the right. With touch every row is as high as the
     tap target (--target-min) and a link's ::after is that target. */
  --facts-gap-x: var(--space-7);
  --facts-gap-x-narrow: var(--space-6);
  --facts-gap-y: var(--space-3);
  --facts-row-step-touch: var(--target-min); /* with touch a row that holds a link is at least this high and a text row keeps the dense rhythm, so that two links' targets never meet (pilotsessionen 9/11 and 15/11) */
  --facts-label-text: var(--color-text-2);
  --facts-label-size: var(--text-sm);
  --facts-label-pad: var(--space-1); /* the label's first line down to the value's, as the label is the smaller */
  --facts-value-text: var(--color-text);
  --facts-title-size: var(--text-lg);
  --facts-title-size-narrow: var(--text-md);
  --facts-head-gap: var(--space-5);
  --facts-empty-text: var(--color-text-3);
  --facts-measure-narrow: 240px; /* the list in a narrow column (measure narrow), where an address breaks or is cut */
  /* A count per row (tally, 1g.11g, K55, G2 of #911 K1): the note's air after the label, and the total's line and air
     over it, that runs under both columns. */
  --facts-note-gap: var(--space-3);
  --facts-total-border: var(--color-border-soft);
  --facts-total-pad: var(--space-2);
  /* A value with its strong part first (strong, T19.2.2, K84 fråga 3): the account's number in bold with table digits,
     and its name after it in the body's weight. */
  --facts-strong-weight: var(--weight-bold);
  --facts-strong-gap: var(--space-2); /* the air after the strong part, beside the word space */
  /* A cut address (K47, Björn 9/11): the box with the whole address and Skriv e-post or Öppna, on the surface of the chart's
     box and over the page; it is as wide as the address but never wider than the window less its margins. */
  --facts-address-pop-bg: var(--color-surface);
  --facts-address-pop-text: var(--color-text);
  --facts-address-pop-border: var(--color-border);
  --facts-address-pop-shadow: var(--chart-tip-shadow);
  --facts-address-pop-action: var(--color-link);
  --facts-address-pop-size: var(--text-sm);
  --facts-address-pop-leading: 1.45;
  --facts-address-pop-pad-y: var(--space-4);
  --facts-address-pop-pad-x: var(--space-5);
  --facts-address-pop-gap: var(--space-2);
  --facts-address-pop-radius: var(--radius-md);
  --facts-address-pop-max: 360px;
  --facts-address-pop-margin: 8px; /* the least room between the box and the window's edge */
  --facts-address-pop-offset: 4px; /* from the address down to the box */
  --facts-address-pop-layer: 60;
  /* The upload (file_drop, T2.98): with a mouse the box is a place to drop files, a dashed edge that turns to the
     action's colour and its soft surface while files are held over it; with touch only the button. */
  --file-drop-pad: var(--space-5);
  --file-drop-border: var(--color-border);
  --file-drop-over-border: var(--color-action);
  --file-drop-over-surface: var(--color-action-soft);
  --file-drop-radius: var(--radius-md);
  --file-drop-name-min: 12em; /* a post's name before its size and state go under it */
  --file-drop-item-pad: var(--space-2); /* a post's row, with the line between the rows */
  --file-drop-item-divider: var(--color-border);
  --info-button: 24px; /* the info button (i), components/info_button.html, with a mouse; with touch the tap target */
  --info-button-text: var(--color-text-3);
  --info-button-hover: var(--color-action);
  --file-drop-list-after: var(--space-6); /* extra air between the upload list and the error box, so that a row's
     Försök igen is never read as the box's (G1 Bör 5) */
  /* The file's facts as patterns (T2.106, K82): the type mark in a neutral box, 40 px large and 18 px small, the
     size as muted metadata, the state without a badge and the progress bar. */
  --file-type-box: 40px;
  --file-type-surface: var(--color-surface-2);
  --file-type-color: var(--color-text-2);
  --file-type-icon: var(--space-8);
  --file-type-small: 18px;
  --file-type-ending-size: var(--text-xs);
  --file-type-ending-weight: var(--weight-strong);
  --file-type-ending-tracking: 0.07em;
  --file-size-color: var(--color-text-3);
  --file-size-text: var(--text-xs);
  --file-state-text: var(--color-text-2);
  --file-state-icon: var(--space-7);
  --file-state-icon-quiet: var(--color-text-3);
  --file-state-failed: var(--badge-critical-text);
  --file-state-gap: var(--space-2);
  --file-drop-mark-col: 18px; /* the columns of an upload's row: mark, name, size, state and the cross */
  --file-drop-state-min: 15em;
  --file-list-size-col: 6em; /* the dense list's size column, right aligned */
  --file-list-stamp-col: 14em; /* the dense list's Uppladdad column, from 820 px */
  /* The picture viewer (T2.96, K31, D-FIL-7): the photo large over the page on a dark ground in both themes, as K31's
     picture, with light text and controls on it, so that the photo is seen as it is; "N av M" at the top left, Original
     and the × at the top right, the arrows round at the sides and the event's text under the photo. The image is the
     DISPLAY size, never larger than its box. A swipe pages from --viewer-swipe-min sideways. */
  /* the ground nearly covers the page, 98 %, so that no text of the page shows beside the caption (pilot 22/11, #3201) */
  --viewer-ground: rgba(12, 16, 20, 0.98);
  --viewer-text: #f4f6f8;
  --viewer-text-2: #c9d1d8;
  --viewer-link: #a9d1f5;
  --viewer-control-bg: rgba(30, 38, 46, 0.72);
  --viewer-control-hover: rgba(66, 78, 90, 0.92);
  --viewer-control-border: rgba(244, 246, 248, 0.72);
  --viewer-focus: var(--viewer-text);
  --viewer-step-size: 52px;
  --viewer-pad: var(--space-7);
  --viewer-gap: var(--space-7);
  --viewer-image-max: 1040px;
  --viewer-caption-max: 760px;
  --viewer-swipe-min: 40px;
  --viewer-sample-height: 520px; /* the catalogue's open viewer, in its post */
  --file-list-row-min: var(--control-min-fine); /* the dense list's row with a mouse, as K82 c; 44 px with touch */
  --file-list-row-pad: 0px;
  --file-list-head-text: var(--color-text-2); /* the heading row: plain writing in grey, never capitals (T2.122) */
  --file-list-head-size: var(--text-xs);
  --file-list-head-weight: var(--weight-regular);
  --file-list-head-min: var(--space-9);
  --file-list-head-divider: var(--color-border);
  --progress-track-height: 6px;
  --progress-track: var(--color-border-soft);
  --progress-fill: var(--color-action);
  --progress-radius: var(--radius-round);
  --progress-min: 144px;
  --progress-gap: var(--space-4);
  --progress-text: var(--color-text-2);
  --progress-text-size: var(--text-xs);
  /* The message's variant beside a field or an upload (inline, T2.98): the symbol and the text in the tone's colour
     on its soft surface with an edge in the tone, never the plain black text; a line per file. */
  --message-inline-pad: var(--space-3) var(--space-4);
  --message-inline-gap: var(--space-3);
  --message-inline-icon: 18px;
  --message-inline-radius: var(--radius-md);
  --message-inline-critical-text: var(--badge-critical-text);
  --message-inline-critical-surface: var(--color-error-soft);
  --message-inline-warning-text: var(--badge-warning-text);
  --message-inline-warning-surface: var(--color-warning-soft);
  --message-inline-positive-text: var(--badge-positive-text);
  --message-inline-positive-surface: var(--color-positive-soft);
  --message-inline-info-text: var(--badge-info-text);
  --message-inline-info-surface: var(--color-action-soft);
  /* the edge in the tone's colour, so that an error beside an upload is a box and never reads as plain text (1c.3a.3,
     the pilot session 13/11) */
  --message-inline-border-width: var(--line-thin);
  --message-inline-critical-border: var(--color-error);
  --message-inline-warning-border: var(--color-warning);
  --message-inline-positive-border: var(--color-positive);
  --message-inline-info-border: var(--color-action);
  /* An ÄTA's attachments (1c.3a.3, K97 a): the air between the groups Foton and Övriga filer and the upload. */
  --attachments-group-gap: var(--space-6);
  --todo-column: 300px;
  /* A list in columns (ui-list-columns, 1g.11f.1, K96 v7, the pilot session 16/11): as many columns of at least
     --list-column as the box has room for, and one on a phone. In the list's own text, so that it follows the text
     size: 28 characters, about 195 px, which gives Tillgängliga, two thirds beside Använda from 1180 px
     (ui-columns-third), three columns at 1366 px (the list ca 790 px), two at 820 (the whole width, ca 680 px, with
     --list-column-stacked) and one on a phone; the rows' air is the list's own. */
  --list-column: 15em; /* 25 of IBM Plex Sans's ch (0.6 em), about the 28 of Source Sans 3's before T2.191, in em as --note-measure (D-ALLA-33) */
  /* Under 1180 px such a list stands the whole width (ui-columns-third stacked): a column at least this share of it,
     more than a third, so at most two columns (two at 820 px, the pilot session 16/11). */
  --list-column-stacked: 34%;
  /* Two boxes where the second has twice the room (ui-columns-third, 1g.11f.1): a third and two thirds. */
  --columns-third: minmax(0, 1fr) minmax(0, 2fr);
  --list-column-gap: var(--space-2) var(--space-6);
  /* Att göra as dense as the layout sketch (P.0.13 round 2): the line of when under its point, and the points apart */
  --todo-when-gap: var(--space-1);
  --todo-row-gap: var(--space-4);
  --todo-badge-gap: var(--space-3); /* between a point's words and its badges (1c.3c) */
  --todo-link-min: var(--target-min); /* a point that is a link is a tap target (1c.3c, K97) */

  /* Spacing */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 16px;
  --space-8: 20px;
  --space-9: 24px;
  --space-10: 32px;
  --space-11: 48px;

  /* Sizes */
  --target-min: 44px; /* smallest tap target, 44x44 px for a finger on an iPad (granskningslistan, Björn 10/10) */
  /* A row of actions (ui-actions-compact, P.0.2): its buttons and pickers are as high as the prototype's with a mouse,
     pointer: fine, and keep the tap target with touch, pointer: coarse or any-pointer: coarse (below), as the dense
     grid's rows. --control-min is what the row uses. */
  --control-min-fine: 36px;
  --control-min: var(--target-min);
  /* A button (T2.120, Björn's words K83 and K106, the pilot session 13/11): a tap target of 44 px does not mean that the
     button is seen that large. With a mouse and with touch alike a button is drawn --button-visible-min high, as a dense
     row's (a button without a frame shows only its word or symbol), and with touch only, pointer: coarse or any-pointer:
     coarse, its tap target of --button-target is its ::after, centred on it, which nobody sees and which moves nothing
     (components.css); with a mouse there is no larger surface. */
  --button-visible-min: var(--control-min-fine);
  --button-target: var(--target-min);
  /* A field (T2.121, K114, Björn's yes 13/11): drawn --input-min high, as a button, with a mouse and with touch alike, in
     every field: text, number, date, time, text area, picker and the value picker's field. With touch only, pointer:
     coarse or any-pointer: coarse (below), the field has a transparent edge of --input-reach above and below in its own
     box, since an input cannot have a ::after: its frame is an inner shadow and its surface stops at the edge, so the
     field is drawn 36 px and its box, the tap target, is 44 px (components.css). With a mouse the edge is 0 and the box
     is the field. --input-box is the box, which a row, a cell and a text beside a field count from. */
  --input-min: var(--control-min-fine);
  --input-reach: 0px;
  --input-box: calc(var(--input-min) + 2 * var(--input-reach));
  /* A button beside fields in one row (T2.120 and T2.121): the button is centred on the fields' middle line by half the
     difference between the field's box and the button under it, in the row's component (components.css): 0 with a
     mouse, where both are 36, and the field's edge with touch; it follows the tokens, so no length is written here. */
  --button-field-offset: calc((var(--input-box) - var(--button-visible-min)) / 2);
  /* A tick box in a row aligned at the bottom (T2.121, K114: a tick box keeps its measure): its label keeps the tap
     target's height, --target-min, with a mouse too, so in a filter row it stands on the middle line of what is beside
     it by a negative margin above and below of half the difference, and the row is as high as its fields or buttons: the
     fields' box (-4 px with a mouse, 0 with touch) or a button's drawn height (-4 px). It follows the tokens. */
  --check-field-offset: calc((var(--input-box) - var(--target-min)) / 2);
  --check-button-offset: calc((var(--button-visible-min) - var(--target-min)) / 2);
  /* The controls before a row's identity in a table (P.0.4, the pilot session 1/11, level 2; every table and list, T2.67):
     the box that chooses the row, the chevron that folds it out and the number that opens it are as small as the
     prototype's with a mouse, pointer: fine, so that the ÄTA list with its boxes fits 1366 px, and keep the tap target
     with touch, pointer: coarse or any-pointer: coarse (below), as the row of actions. --row-control-min is what the
     cell uses. */
  --row-control-min-fine: 28px;
  --row-control-min: var(--target-min);
  /* The rows of the schedule's menu Välj urval (ui-gantt-menu, 1g.4c): as dense as K29 B's with a mouse, pointer: fine,
     and the tap target with touch, pointer: coarse or any-pointer: coarse (below), as the row of actions (the pilot
     session's comparison 12/11). --gantt-menu-row-min is what a row uses. --gantt-menu-width-min is the menu's least
     width, so that its note wraps over two or three lines and the menu stays low enough to open under its button on an iPad in landscape. */
  --gantt-menu-row-min-fine: 28px;
  --gantt-menu-row-min: var(--target-min);
  --gantt-menu-width-min: 320px;
  --editbar-comment-basis: 320px; /* the edit bar's field of text with its label (1g.5a): the prototype's tpspar label, flex 1 1 320px */
  --editbar-comment-min: 180px; /* and the field's least width, the prototype's tpspar input */
  /* The plain bar with its status shown (plain and status_visible, T19.2.2, K84 fråga 4): no frame and no shadow, Spara
     and Avbryt, and after them the count of unsaved changes with a dot in the unsaved colour, in the quiet text. */
  --editbar-status-shown-text: var(--color-text-2);
  --editbar-status-shown-size: var(--text-sm);
  --editbar-status-shown-gap: var(--space-3);
  --editbar-status-shown-dot: var(--space-4);
  --editbar-status-shown-dot-color: var(--color-unsaved);
  /* The pinned bar (pinned, T2.159, K118 v6): fixed at the window's lower edge in a long part, the surface, a line
     in the action's colour at its upper edge as the bar while editing, and the overlay's shadow, turned upward. */
  --editbar-pinned-bottom: 0px;
  --editbar-pinned-pad-y: var(--space-4);
  --editbar-pinned-pad-x: var(--space-6);
  --editbar-pinned-bg: var(--color-surface);
  --editbar-pinned-edge: var(--line-thick);
  --editbar-pinned-edge-color: var(--color-action);
  --editbar-pinned-shadow: 0 -6px 20px rgba(9, 38, 61, 0.14);
  /* A form of one field per row (ui-formgrid-stack, T19.2.2, K84 fråga 4): the label in a column at the left, as wide as
     the longest label up to its max (a longer one wraps at its words), and the fields as wide as each other under each
     other; under 600 px the label stands above its field. K84: 160 px fields, the labels in 14 px half bold. */
  --formgrid-stack-label-max: 240px;
  --formgrid-stack-field: 160px;
  --formgrid-stack-gap-x: var(--space-7);
  --formgrid-stack-gap-y: var(--space-4);
  --formgrid-stack-label-size: var(--text-md);
  --formgrid-stack-label-weight: var(--weight-strong);
  --picker-fit-max: 240px; /* the most a picker that follows its content (ui-picker-fit) grows to, as the prototype's select */
  --page-pad-top: var(--space-9); /* the air over a page's first part (.ui-page) */
  --page-gap: var(--space-8); /* the air between a page's parts (.ui-page) */
  /* The compact project row (ui-projectbar-compact, Björn 1/11 on an iPad via the pilot session): the label beside the
     picker, minimal air over and under the row and a picker of a reasonable width. */
  --projectbar-air: var(--space-5);
  --projectbar-picker-max: 420px;
  --actions-after-head: var(--space-5); /* the air between the page's head and a row of actions directly under it, the prototype's .head .bar */
  --stack-gap: var(--space-6); /* the gap between the parts of a panel and of a dialog's body; --actions-after-field is measured from the part above, so it is less this gap there */
  --actions-after-field: var(--space-8); /* the air between a field and the row of buttons under it (Avbryt, Spara), T2.93 */
  --actions-group-gap: var(--space-4); /* between a text and the button beside it in a group of a row (ui-actions-group-spaced), as between a row's parts */
  --actions-groups-gap: var(--space-8); /* between two groups of buttons in one row, as the schedule's choice of schedule and its Tidplan | Avstämning (1g.9c.2, K35): wider than the buttons' own air, so that two chosen buttons never read as one group */
  /* A choice in a table's cell (ui-cell-buttons, 1g.8c.5c, K58 question 2 B, D-TAB-31): the buttons apart as a row's
     group, and the value of a row without a choice in the second text colour, as Ledig of the project's own day */
  --cell-buttons-gap: var(--actions-group-gap);
  --cell-buttons-text: var(--color-text-2);
  --content-max: 1920px; /* the one largest width of every page's content, centred beside the side menu (D-ALLA-34, T2.179, Björn 25/11):
     the project overview's, so every page has the same left and right edge at one and the same window; nothing narrows the page's shell,
     what is narrow on purpose (the diary's column, dialogs, notes) narrows inside the page */
  --doc-preview-max: 1320px; /* a printed document's preview in the browser (print.css .doc): a sheet, not a page in the shell */
  --page-side: var(--space-7); /* the air at the sides of a page, in every view */
  --grid-bleed: var(--page-side); /* from --bp-desktop (1440 px) the frame of a grid on a page over the whole width (ui-page-wide) goes out over the page's side air, so that a sheet of many columns fits beside the folded side menu; the heading, the actions and the notes keep their air (T2.51b, pilotsessionen 1/11) */
  /* The variant back of the button (T2.58, Björn 1/11): a compact button of its own with a weak surface and rounded corners,
     the arrow and the name in an action row (Tillbaka till projektet). Its colours are with the colours below.
     --button-back-size is the size of the button drawn, 36 px, and its tap target is still 44 x 44 px (--target-min, which
     the button's ::before reaches over its edge). The arrow alone in the app's bar at the top is the menu's own button
     (.ui-sidenav-back, T2.19b, K83 v2), in the menu button's colour and size, and has no tokens of its own. */
  --button-back-size: 36px;
  --button-back-radius: 8px;
  --sticky-band: 0px; /* the height of the bar at the top where it stays, in the app on a phone and every touch screen, measured by components.js (T2.19b) */
  --sticky-top: 0px; /* the height of the tabs that stay at the top, measured by components.js (T2.14) */
  --sticky-focus-top: 0px; /* the lowest edge of what stays at the top (tabs, edit bar, a table's header row), measured by components.js: the page's scroll-padding-top (T2.140) */
  --sticky-focus-bottom: 0px; /* the height of the pinned edit bar at the window's lower edge (ui-editbar-pinned), measured by components.js: added to the page's scroll-padding-bottom, so that a focused field is never under it (T2.187) */
  --sticky-bar-height: 0px; /* the height of the edit bar that stays at the top, measured by components.js and set on its own form, so that the header row and the floating head sit below it and not behind it (T2.140.1) */
  --pop-edge: var(--page-side); /* the room what opens over the page keeps from the window's edges: the page's side air (T2.94) */
  --pop-left: auto; /* where components.js (placePop) moves what is open when it has no room where its own rules put it: */
  --pop-top: auto; /* to the side of its button where there is room and inside the window, with the width it has (T2.94) */
  --pop-width: auto;
  --pop-max-width: none; /* the room, measured: the window's width, and the screen's height on the side it opens towards, for what is larger than that: only then it rolls in itself */
  --pop-max-height: none;
  --field-border: var(--color-border-control); /* the frame of every field: text, number, time, amount, date and its calendar button, and the value picker (T2.136, the pilot session 15/11): 3:1 on the field and the page, where --color-border was 1.3:1 (A7 of #1659, K4 of #1657) */
  --field-min: 80px;
  --field-min-dense: 64px; /* the least width of a short field in a dense table's cell (ui-table-dense, an ÄTA's form with its 14 columns, 1c.14): KS, Mängd, Enh and Arvode %, so that the table fits a page of 1366 px with the side menu open. The widths of the fields are derived from the prototype (dashboard_mall.html, #ata-rader: Mängd 52 px, Enh at least 56 px, Pris kund 70 px, cells with 3 px of air, and the comment "fälten styr inte kolumnbredden, så tabellen ryms i liggande iPad"): the short fields are about the prototype's, the price fields (below) are wider since a price of 1 250 000,00 does not fit 70 px in 13 px text, and Specifikation, the only free text, takes what is left */
  /* The number field with steps (field_text steps, 1g.11g, K55, G2 of #911 B4): a row per count with its label and the
     line under it at the left and the steps - and + around the number at the right, a line between the rows, and the
     total last in bold (steps_total), all in the inner box with rounded corners (--field-steps-box-*). Each step and the row a tap target, and the number as wide as a short dense
     field with its digits in the middle. */
  --field-steps-gap: var(--space-4);
  --field-steps-row-min: var(--target-min);
  --field-steps-row-pad: var(--space-2);
  --field-steps-divider: var(--color-border-soft);
  --field-steps-control-gap: var(--space-3);
  --field-steps-button: var(--target-min);
  --field-steps-input: var(--field-min-dense);
  --field-steps-quiet-text: var(--color-text-3); /* the row with 0 (K55, 1g.11g.1) */
  --field-steps-quiet-border: var(--color-border-soft); /* and the frame of its number field (the pilot session 11/11) */
  --field-steps-quiet-weight: var(--weight-regular); /* and its number, not bold */
  --field-steps-number-weight: var(--weight-bold); /* the number in the field and the total's sum, bold as K55 draws them */
  --field-steps-icon-size: 16px; /* the signs minus and plus of the steps, the button's symbols */
  --field-steps-box-border: var(--color-border); /* the inner box round the rows, the row that adds one and the total */
  --field-steps-box-radius: var(--radius-md);
  --field-steps-box-pad: var(--space-6);
  --field-steps-total-divider: var(--color-border); /* the line over the total, stronger than the lines between the rows */
  --valuepicker-plus-min: 52px; /* the row that adds something (value_picker plus, K55: Lägg till företag) */
  --valuepicker-plus-pad: var(--field-steps-box-pad);
  --valuepicker-plus-gap: var(--space-4);
  --valuepicker-plus-text: var(--color-action);
  --button-icon-size: 20px; /* the symbol before a button's label (button.html icon, K55, 1g.11g.1) */
  --button-icon-line: 1.75; /* the line of a symbol drawn with no attributes of its own: the camera of Ta foto and the image of a photo from the library (1g.12b, K31) */
  /* The mark of a system before the text of a button or a link to another system, and the arrow out after it (button.html
     system and external, T2.117, K109): one family, so that one change of it changes every such button and link. The mark is a
     square on the second surface with a thin line and the system's neutral symbol in the second text colour; they are
     references, so the dark theme follows without values of its own, and none of them is the customer's colour. */
  --system-mark-size: 24px; /* in a button */
  --system-mark-size-link: 20px; /* in a link (tone link) and in a small button */
  --system-mark-symbol: 14px; /* the symbol in the square of a button */
  --system-mark-symbol-link: 12px; /* the symbol in the square of a link */
  --system-mark-bg: var(--color-surface-2);
  --system-mark-border: var(--color-border);
  --system-mark-color: var(--color-text-2);
  --system-mark-radius: var(--radius-md);
  --system-mark-gap: var(--space-3); /* between the mark, the text and the arrow */
  /* the padding over and under the mark in a button (T2.120): half of what the drawn height, --button-visible-min, has
     over the mark and the button's edges, so that a button with a mark is as high as one without (5 px) */
  --system-mark-pad-block: calc((var(--button-visible-min) - var(--system-mark-size) - 2 * var(--line-thin)) / 2);
  --system-arrow-size: 16px; /* the arrow out in a button */
  --system-arrow-size-link: 14px; /* the arrow out in a link and in a small button */
  /* On the green primary button the square is not the second surface but a shade of the button's own text colour on its
     surface, so that the symbol keeps its 3:1 (tests/test_contrast.py) */
  --system-mark-primary-bg: color-mix(in srgb, var(--color-accent-text) 16%, transparent);
  --system-mark-primary-border: color-mix(in srgb, var(--color-accent-text) 45%, transparent);
  --system-mark-primary-color: var(--color-accent-text);
  --field-chars-price: 6.6em; /* the least width of a price field in a dense table (Pris kund, Pris faktiskt, 1c.14), 11 of IBM Plex Sans's ch (0.6 em, T2.191) in em of the field's own font (as --note-measure, D-ALLA-33), so that it follows the text size of 13 px with a mouse and 16 px with touch: room for 1 250 000,00 (10.3 characters) */
  --field-chars-category: 4.27em; /* and of the category field, room for Material in IBM Plex Sans (3.67 em and the field's air, T2.191) (1c.14); a longer name, such as Underentreprenad (the categories are the customer's setting, the prototype's longest is Hjälpmedel), breaks onto a second line in the cell and is never cut (T2.97) */
  --row-toggle-width: 72px; /* the column of a chevron with a visible label (kind toggle, ui-row-toggle-labelled, 1c.14b, K43 in #825): the arrow and Belopp, so that the values under it begin at the first field */
  --row-more-figure-min: 128px; /* a worked out value under a row's arrow and in the sum row (ui-row-more-figures, 1c.14b, K43): room for 1 250 000,00 and the margin's share, so that the values under the rows and the sums line up */
  --table-num-gap: var(--grid-sum-gap); /* the least air between two figure columns side by side in a dense table of fields, in the header and the sums (#825, the pilot session 7/11); a dense table to read, as the ÄTA list, keeps --space-2 (1c.14b) */
  --field-chars-name: 10.6em; /* the least width of a name field in a form table (form, ui-table-form, #3619): in em of the field's own font, Underentreprenad in IBM Plex Sans (8.3 em) and the field's air (T2.191), room for Underentreprenad and Projektledare, so that the table is as wide as its columns and not the page's */
  --field-min-account: 92px; /* the least width of the account picker in a dense table: four digits, and the arrow after them (1c.14); in px since the picker's arrow is a tap target (--target-min) */
  --field-compact-width: 50%; /* the compact date field (1g.11b, K48): half the width of its box, never under --date-min */
  --date-min: 160px; /* the least width of a date field (T2.30): WebKit draws it wider than its text */
  --picker-min: 300px;
  /* The date field and its calendar (T2.114, K108, Björns ja 12/11): the field as wide as a date and its symbol, never
     growing in a row of fields; the calendar's days, the shade of weekends and holidays from the Gantt chart and the
     company's days off hatched with an edge as the year strip (K30). */
  --date-field-width: calc(6em + var(--date-symbol-width) + 2 * var(--space-4) + 2 * var(--line-thin)); /* the hint åååå-mm-dd, a little wider than a date (2026-12-17), in the field's own size, the symbol and the air: about 130 px with a mouse (13 px) and 158 px with touch (16 px); 6 em since IBM Plex Sans (T2.191), whose hint is about 5.9 em where Source Sans 3's was 5.5. In em, not ch: without subpixel positioning (Chromium on Linux at scale 1) the 0 of 13 px is rounded down to 6 px, so 11ch was 66 px and the hint, 71 px, was cut */
  --date-symbol-width: 34px; /* the symbol's button at the left edge; --target-min with touch, a finger's target */
  --date-symbol-size: 18px;
  --date-symbol-surface: var(--color-surface-2);
  --date-symbol-color: var(--color-action);
  --date-cal-day: 36px; /* a day in the calendar with a mouse; --target-min with touch */
  --date-cal-day-height: 32px;
  --date-cal-week: 28px; /* the column of the weeks' numbers */
  --date-cal-head-row: 22px; /* the row of the weekdays */
  --date-cal-nav: 32px; /* the arrows of the month with a mouse; --target-min with touch */
  --date-cal-quick-min: 32px; /* a quick choice with a mouse; --target-min with touch */
  --date-cal-gap: var(--space-1);
  --date-cal-pad: var(--space-4);
  --date-cal-text: var(--text-md); /* the days' numbers: 14 px with a mouse and 16 px with touch */
  --date-cal-small: var(--text-xs); /* the weekdays and the weeks' numbers: 12 px, never smaller */
  --date-cal-month: 15px; /* the month's name */
  --date-cal-other: var(--color-text-3); /* a day of the month before or after */
  --date-cal-disabled: #b6bfc7; /* a day or a quick choice that cannot be chosen: paler than --date-cal-other, no line through it (D-DAT-1); inactive controls are exempt from 4.5:1 */
  --date-cal-off: var(--gantt-shade); /* weekends and holidays: the Gantt chart's shade */
  --date-cal-free-line: rgba(70, 80, 90, 0.42); /* the hatching and the edge of the company's and the project's days off */
  --date-cal-hatch: 5px;
  --date-cal-today-ring: var(--color-text); /* today's ring */
  --date-cal-ring: 2px;
  --date-cal-chosen-surface: var(--color-accent); /* the chosen day as the primary button */
  --date-cal-chosen-text: var(--color-accent-text);
  --date-cal-chosen-edge: var(--color-accent-border);
  --date-cal-names: var(--text-sm); /* the names under the month */
  --date-cal-names-max: 352px;
  --date-cal-note-edge: var(--color-action); /* the line that says a quick choice moved to the first work day */
  --date-cal-note-line: 3px;
  --date-cal-note-surface: var(--color-action-soft);
  --date-cal-swatch: 14px; /* the little box before a line of names, which shows the mark */
  --date-cal-underline: 3px; /* I dag's underline from its text */
  --field-row-min: 180px; /* a field in a row of fields (ui-fields, 1c.P): a date, an amount or a phone number */
  --field-read-min: calc(var(--leading-normal) * var(--text-field)); /* a field in its read mode (ui-field-read, T2.63): one line of its text and not a control's height (--target-min, --control-min), since it is text with no frame, tick or arrow to make room for; 19.5 px with a mouse and 24 px with touch, where --text-field is 16 px */
  --field-read-pad: var(--space-2); /* and the air above and below that line, 4 px */
  --field-read-control-min: var(--input-box); /* the same in a grid of fields that has a control (T2.63, round 2): the height of the field's box beside it (T2.121), so that its value stands on their line */
  --field-read-control-pad: calc((var(--field-read-control-min) - var(--field-read-min)) / 2); /* and the air above the first line of such a value, half of what the control's height has over a line of text (12.25 px with a mouse, 10 px with touch), so that the line stands on the line of the controls' text and a value of several lines grows downwards */
  --cell-field-line-pad: calc((var(--input-box) - 1lh) / 2); /* the air above the text of a cell in a row with fields in a table (T2.97): the row's cells stand at the top, so a text or an amount beside a field starts where the field's text starts, half of what the field's height has over a line of the cell's own text (1lh, read where it is used) */
  /* The value picker (T2.71a, Björn 1/11 via the pilot session): the value is the button, with a small arrow in the
     accent's colour (the action's, which is 3:1 or more as a graphic, where the salvia is not), and its
     list opens under it, the current value marked with the accent's line at the left. As dense as a compact row of
     actions with a mouse and the tap target with touch (--control-min). */
  --valuepicker-arrow: var(--color-action);
  --valuepicker-arrow-size: 0.6em; /* of the value's text: smaller in the period than in the heading */
  --valuepicker-pad-x: var(--space-3); /* the button's air at the sides; the heading's text keeps the content's edge */
  --valuepicker-hover: var(--color-action-soft); /* the marked option at hover, focus and the arrows */
  /* The value's button at hover, open and on focus (P.0.14, Björn 2/11): a soft surface as the view switch's chosen
     button, never a strong fill, with rounded corners and air round the text, so that it reads as a button and not as
     marked text; the same for every value picker (the project in the heading, the period and a list's filters). */
  --valuepicker-open-bg: var(--color-action-soft);
  --valuepicker-radius: var(--radius-md);
  --valuepicker-pad-y: var(--space-2);
  --valuepicker-descender: 0.2em; /* the room under the heading's one line for the letters that go below the baseline, so that the ellipsis cut does not clip them (T2.172) */
  --valuepicker-current: var(--color-action); /* the line at the left of the current value */
  --valuepicker-current-width: var(--line-thick);
  /* The form mode (T2.80, Björn 3/11, K11): the button looks like the form's other fields, with the frame of a field, the
     placeholder in the grey of a field's, and the accent's frame while the list is open. */
  --valuepicker-field-border: var(--field-border);
  --valuepicker-field-open-border: var(--color-action);
  --valuepicker-field-placeholder: var(--color-text-3);
  --valuepicker-form-pop-min: 360px; /* the least width of the list under a field in a form, which is otherwise as wide as the field (T2.80, round 2) */
  --valuepicker-pop-width: 440px; /* the project's list */
  --valuepicker-pop-narrow: 380px; /* the period's list, at the right edge: Egen period's two dates side by side, each --date-min */
  --valuepicker-list-min: calc(2 * var(--control-min)); /* the least height of the list when the popup is higher than the room on the screen and rolls (T2.94): two rows, then the popup rolls as a whole */
  --valuepicker-recent-max: calc(5.5 * var(--control-min)); /* Senast öppnade (T2.71b): five rows and half a sixth, then it rolls */
  --valuepicker-signal: var(--color-warning-text); /* the dot before a signal in an option's small line */
  --valuepicker-dot: 7px;
  /* The person's own choice in a value picker (T2.85, K14): a small dot before the value and before the chosen option, in the
     positive text colour (4.8:1 or more on the surface in both themes), and the grey word after an option (standard, ditt val). */
  --valuepicker-own: var(--color-positive-text);
  --valuepicker-own-size: 7px;
  --valuepicker-tag: var(--color-text-3);
  --valuepicker-reset-line: var(--color-border); /* the line above Återställ till standard */
  /* The row that adds, last in a list or a dropdown (list_add, ui-list-add, K96 v7, T2.154; first the dropdown's
     + Ny beställare, 1c.15b.2): a quiet row with a line above it and the words in the action's colour, the same in the
     dropdown and in a list, never the button create. */
  --list-add-line: var(--color-border);
  --list-add-gap: var(--space-2);
  --list-add-text: var(--color-action);
  --list-add-weight: var(--weight-medium);
  --list-add-hover: var(--valuepicker-hover);
  --valuepicker-add-surface: var(--color-surface-2); /* the small form of a new one under the field (K63) */
  --valuepicker-add-edge: var(--color-border);
  /* A list's foot (T2.85, K14): "Visar 10 av 46", the number of rows and more or all, under the list's table, set apart by the
     thin line of the table's edge; as dense as a compact row of actions with a mouse and the tap target with touch. */
  --list-foot-line: var(--color-border);
  --list-foot-text: var(--color-text-2);
  --list-foot-pad-y: var(--space-3);
  --list-foot-gap: var(--space-5);
  --valuepicker-foot-pop: 240px; /* the list of the foot's picker, which hangs from its right edge */
  --dialog-max: 560px;
  --dialog-wide-max: 1040px; /* the detail dialog (1b.3): what an amount is made of, a list of vouchers with its columns */
  --dialog-frame-max: calc(100dvh - 48px); /* and its height, the visible screen less a margin (dvh, so that Safari's address bar never hides Stäng), so that it scrolls inside */
  /* The choice of files (components/file_choice.html, 1c.3b.2, K97 b): a group per ÄTA, its heading half bold, and a row
     per file whose whole width is the box's tap target; the sum under the groups with a thin line over it. */
  --file-choice-group-gap: var(--space-6);
  --file-choice-row-min: var(--target-min);
  --file-choice-heading-weight: var(--weight-medium);
  --file-choice-note-text: var(--color-text-2);
  --file-choice-sum-weight: var(--weight-medium);
  --file-choice-sum-line: var(--color-border);
  --message-actions-gap: var(--space-4); /* the air over a row of buttons in a message, as the ways (1c.3b.2, K97 b) */
  --grid-frame-max: calc(100vh - 160px); /* the heavy views' grid box: the screen less the edit bar, also on two lines, and the page's foot */
  --grid-fixed-1: 44px; /* the summary's fixed columns (1e.6): Nr, the prototype's sk1 (P.0 round 6), */
  --grid-fixed-2: 48px; /* Ansv */
  --grid-fixed-3: 150px; /* and Namn, which is clipped with an ellipsis and has its whole text in the title; the prototype's sk3 is 240 px, but with Källa and the sums' air the sheet fits 1440 px with the side menu folded only so (160 px before T2.51b, pilotsessionen 1/11) */
  --table-fixed-1: 64px; /* a table's fixed columns (1c.7): Nr, */
  --table-fixed-2: 140px; /* Rubrik, cut on one line with the whole title in the row that folds out (the ÄTA list has no Typ column since P.0.14, and fits an iPad in landscape), */
  --table-short-title-clip: 162px; /* the variant ui-table-short-title (D-TAB-23, 1c.3.0a, pilotsessionen 15/11): the ÄTA list's title cut 18 px shorter than --col-clip-wide from 1280 px, so that K93's whole headings fit as before, */
  --table-short-title-fixed: 122px; /* and its fixed Rubrik column from 600 to 1279 px, 18 px narrower than --table-fixed-2 */
  --table-short-title-lines: 2; /* and the number of lines its title breaks over before the ellipsis (pilotsessionen 15/11, round 2): two, as the prognosis columns, so that the row keeps its height */
  --table-fixed-3: 180px; /* and a third, as wide */
  --col-clip: 110px; /* a text column kept on one line (clip, 1c.P): the ÄTA list's notes (round 6: 145 px; 160 in round 4, so the list fits 1366 with the menu folded; 110 px since T2.191, so that the list fits 1440 px with the menu open and a classic scroll bar also in IBM Plex Sans, which made its least width 49 px wider, D-ALLA-35), */
  --col-clip-wide: 180px; /* and its title (round 6: 180 px, so the list fits 1366 with the menu folded also with the longest title; 240 in round 5) */
  --cell-lines: 2; /* a text column with lines, the supplier's note: at most two lines in the list, cut at a word, whole in the post (K39 v3, pilotsessionen 11/11) */
  --row-fact-text: var(--color-text-3); /* a post's state after its name, Inaktiv or Ny · ej i <system>: a fact, muted text without box or dot, never a judgement's badge (Björn 11/11, K39 v3, punkt 10) */
  --row-fact-size: var(--text-xs);
  --cell-lines-min: 5em; /* the least width of such a text below iPad landscape, where it gives its room to the columns beside it, such as the stamp of who changed it, and is cut with an ellipsis (K39 v3, pilotsessionen 11/11) */
  --table-wide-min: 1200px; /* the width a table with fixed columns keeps, so that it scrolls in its box instead of squeezing */
  /* The progress bar and the five steps of the phone (1g.9b, K35): fill is what is reported and the mark where the plan is
     today; the steps are a group of buttons, the chosen one on the dark surface of a switched on toggle. They follow the
     theme through the colours they name. */
  --progress-bar-height: 8px;
  --progress-bar-radius: var(--radius-round);
  --progress-bar-track: var(--color-surface-2);
  --progress-bar-fill: var(--color-positive);
  --progress-bar-mark: var(--color-text);
  --progress-bar-mark-width: 2px;
  --progress-bar-mark-height: 16px;
  --progress-bar-cell-width: 84px; /* the bar in a table's cell (1g.9c.2, K35: the avstämning's Rapporterat), the share after it */
  --steps-edge: var(--color-border-strong);
  --steps-radius: var(--radius-md);
  --steps-bg: var(--color-surface);
  --steps-text: var(--color-text);
  --steps-on-bg: var(--toggle-on-surface);
  --steps-on-text: var(--toggle-on-text);
  --steps-height: var(--control-min); /* T2.120: 36 px with a mouse, the tap target (44 px) with touch */
  --progress-row-gap: var(--space-4); /* between the parts of a row of the phone's progress page */
  --progress-row-pad: var(--space-7); /* a row's air above and below, with a line between rows */
  --progress-value-width: 3em; /* the percent at the right of the bar, so that every bar is as long */
  /* The floating header row (ui-float, 1g.4c, the pilot session 12/11): the schedule's top row, and T2.60's */
  --float-head-top: var(--sticky-top); /* it floats under the page's sticky tabs (and under the edit bar of its own form, T2.140.1, in the stylesheet) */
  --float-head-height: 0px; /* its height, measured by components.js (setupFloatHead) on each ui-float */
  --float-head-ring-room: calc(2 * var(--line-medium)); /* the focus ring's width and offset, kept clear of it as well (G1 of 1g.4c) */
  --float-head-share: 0.3333; /* it floats only while it is at most this share of the window's height (F4 of 1g.4c: a third) */
  --float-head-surface: var(--color-surface); /* opaque: bars and rows never show through it, in either theme */
  --float-head-shadow: 0 1px 0 var(--color-border), 0 4px 8px -6px rgba(9, 38, 61, 0.35); /* the edge it makes over the rows that pass under it */
  /* The schedule with its Gantt chart (1g.4, the SVG of apps.printing.gantt.draw_view): the colours it is drawn in */
  --gantt-min: 980px; /* the width it keeps before it scrolls in its region (the prototype's .tpg min-width) */
  --gantt-max: 1206px; /* the width where its text is 14 px and no larger: VIEW_WIDTH 1120 x 14 / VIEW_FONT 13 in apps/printing/gantt.py */
  --gantt-row: 26px; /* a row with a mouse: mirrors VIEW_ROW in apps/printing/gantt.py (a test keeps them equal), in the drawing's units (a unit is 0.839-1.077 px) */
  --gantt-row-touch: 53px; /* a row with touch (Björn's K25, point 6): mirrors VIEW_ROW_TOUCH in apps/printing/gantt.py (a test keeps them equal), in units; the lowest scale is 0.839 (980 / 1168), so 44 px as the tap target at every width */
  --gantt-shade: rgba(128, 128, 128, 0.14); /* weekends, holidays and vacation weeks: darker than the surface, as the note under the drawing says, in each theme */
  --gantt-line: var(--color-border);
  --gantt-bar: var(--color-positive);
  --gantt-bar-summary: var(--color-text);
  --gantt-milestone: var(--color-text); /* the diamond of a milestone (Björn's K25, point 1): graphics, 3:1 against the surface in each theme */
  --gantt-today: var(--color-error);
  --gantt-link: var(--color-text-2);
  --gantt-wait-dash: 4 3; /* a wait in calendar days (1g.25.1, K90 A): the dashes of a link's wait, line and gap in the drawing's units; mirrors VIEW_WAIT_DASH in apps/printing/gantt.py (a test keeps them equal) */
  --gantt-summary-surface: var(--color-action-soft);
  --gantt-name-halo: var(--color-surface); /* the edge round a name beside its bar, which keeps it readable over today's line, in each theme */
  /* The band of the calendar's own days off (1g.8c, K30): stripes apart from the grey shade, the light pause on a bar, the line
     under a week the project works, and a row with a signal (a dot and a warm row; the text says it in words) */
  --gantt-band-line: rgba(70, 80, 90, 0.42);
  --gantt-bar-pause: #a9d4b5;
  --gantt-works: var(--color-positive);
  --gantt-flag: var(--color-warning-text); /* the dot of a signal: the warning's text tone, 5.9:1 on the surface (the yellow --color-warning is 2.4:1, and a dot needs 3:1, 1g.4f, K2) */
  --gantt-flag-surface: var(--color-warning-soft);
  /* The key under the drawing (1g.8c): a swatch beside the shade's and the band's text, its stripes as the drawing's */
  --gantt-key-swatch: 12px;
  --gantt-key-stripe: 1.5px; /* VIEW_BAND_LINE in apps/printing/gantt.py */
  --gantt-key-step: 4px; /* closer than the drawing's VIEW_BAND_STEP, so that the small swatch has its stripes */
  --gantt-field-surface: transparent; /* an open row's field in the edit mode (1g.5b), laid over its cell with the cell's size and text, whose text is hidden: the row's tone shows through it, plain, changed or with an error (the pilot session 12/11) */
  --gantt-field-focus: var(--color-focus); /* the field with focus: an edge inside the cell, never outside it */
  --gantt-field-focus-line: 2px;
  /* an open row's field is a tap target at least this wide (#2391): a field over a cell narrower than it, as Insats, reaches back over the cell before it with a border nobody sees, and its text and focus edge stay in the cell; with a mouse the cell is the target (pointer: fine, below) */
  --gantt-field-target-fine: 0px;
  --gantt-field-target: var(--target-min);
  --gantt-field-counted-text: var(--color-text-3); /* the one of Insats and Slut counted from the other in the edit mode, grey as the prototype's tpber (1g.5c) */
  /* The active row in the edit mode (1g.5d.2, the prototype's tpEdRad and focusin): the open row has an edge over its
     whole width in view, in the action's colour, and the row menu's button over its Rad cell (TP_PRICK) */
  --gantt-row-active-edge: var(--color-action);
  --gantt-row-active-line: var(--line-medium);
  --gantt-row-menu-surface: var(--color-surface); /* over the Rad cell, whose number it covers while the row is active */
  --gantt-row-menu-text: var(--color-action);
  --gantt-row-menu-hover: var(--color-action-soft); /* under the mouse, with focus and while the menu is open */
  /* the button is a tap target at least this wide with touch, reaching back from the Rad cell with a border nobody sees, so that the start of Namn stays clear; with a mouse the Rad cell is the target (pointer: fine, below) */
  --gantt-row-menu-target-fine: 0px;
  --gantt-row-menu-target: var(--target-min);
  /* A menu's button that is a sign without a label (menu.html icon, 1g.5d.2): three dots over each other */
  --menu-icon-dot: 3px;
  --menu-icon-step: 6px; /* from one dot's top to the next's */
  --gantt-row-error-text: var(--color-error); /* the line on a row with an error, on --table-cell-invalid-surface */
  /* The changed cells in the edit mode until Spara (1g.5b, Björn 12/11): a cell written in has the tone and an edge, a cell
     moved after its predecessor only the soft tone of a moved row, and a changed row's Rad cell the tone and an edge at its start. */
  --gantt-cell-written-surface: var(--color-warning-soft);
  --gantt-cell-written-edge: var(--color-warning-text);
  --gantt-cell-followed-surface: var(--table-row-moved-surface);
  --gantt-row-changed-edge: var(--color-warning-text);
  --gantt-row-changed-line: 3px;
  /* A changed row's old place in the edit mode until Spara (1g.5b, K107 B): the bar light and striped behind the new one */
  --gantt-bar-before-surface: var(--color-positive-soft);
  --gantt-bar-before-line: var(--color-positive);
  --table-child-indent: var(--space-9); /* a row under the row it applies under, as a setting under the one it depends on (ui-cell-child, T19.7, K117) */
  --table-lead-wrap: 190px; /* the first column of a ledger table in its box under 1180 px: its names break at this width, so that the columns up to Marg. are on the screen at 820 px (T2.88b) */
  --grid-sub-max: 180px; /* a comment under an amount, as the living budget's in 3 Manuellt (P.0), which wraps */
  /* The prototype's rhythm in a grid (P.0, the start of T2.57), from its levande budget (dashboard_mall.html, tr.grp,
     td.ind, tr.sum and td): the grid's variant ui-grid-ledger, which the forecast can take as well. */
  --grid-row-min: var(--target-min); /* a row's height; the prototype's is 37 px, but a row is a tap target (T2.7) */
  --drill-marker-touch: var(--color-link); /* an amount that opens, with touch (pointer: coarse or any-pointer: coarse): the link's colour, no line and no arrow (the pilot session 1/11, level 2); with a mouse no mark at rest */
  --table-row-moved-surface: var(--color-warning-soft); /* a row the links moved in the schedule's edit mode, the prototype's .tpflytt (1g.5b) */
  --table-cell-invalid-border: var(--color-error); /* a field of a table's row with an error, the prototype's input.fel (1g.5b) */
  --table-cell-invalid-surface: var(--color-error-soft);
  --table-cell-pad-y: var(--space-3); /* the air above and under a table's cell, 6 px: tight rows (lager 1's density A, T2.191) */
  --table-row-min-fine: 27px; /* a link in a ledger table (ui-table-ledger, the project report) with a mouse, pointer: fine: the row as the prototype's rapportTable, its detail row tr.det about 27 px (T2.45); with touch the tap target */
  --grid-sum-gap: 12px; /* the least air after a figure in a sheet's sum and closing rows, never less than a table cell's (--space-5), so that two big sums are not read as one number (the pilot session 1/11, P.0 round 6) */
  --grid-sheet-sum-gap: 10px; /* the least air between two figures in the summary's sheet's sum and closing rows (ui-grid-sheet), --grid-sum-gap's 12 px less 2: the sheet must fit 1440 px beside the folded menu also with a classic scroll bar of 15 px and with Linux's fonts, 14 px wider (T2.51c, pilotsessionen 1/11), and the air is taken here, not from Namn or Anmärkning, which are under the prototype's 240 and 120 px. It is --space-5, the least a table cell has, so two big sums are still not read as one number; the ledger's sums keep --grid-sum-gap */
  --number-link-weight: 600; /* a number that is a link (ui-number-link), half bold, so that it is seen as a link also where the link's colour is near the text's (the pilot session 1/11, P.0 round 7) */
  --grid-row-min-fine: 30px; /* a row of a dense grid (ui-grid-ledger, ui-grid-sheet) with a mouse, pointer: fine, as the prototype's (Björn 31/10, round 2 point a); with touch --grid-row-min, the tap target */
  --drill-marker: underline; /* an amount that opens what it is made of, in a dense grid: nothing at rest, a line under the figure at hover and focus (the pilot session 1/11, round 5) */
  --drill-marker-offset: 3px; /* that line's distance under the figure */
  --trend-line: var(--color-action); /* the line of the accumulated result in a list (Ack. resultat, ui-trend) when the last month is 0 or more, as K13's (P.0.17a omgång 2) */
  --trend-line-negative: var(--color-negative-amount); /* and red when it is below 0, as a negative amount */
  --source-marker: underline dotted var(--color-link); /* a figure from the project's forecast, the prototype's td.fromprog (Ur prognosen); the link's colour, since the accent of v5 is below 3:1 as a graphic */
  --source-marker-draft: underline dashed var(--color-warning-text); /* a draft's figure, the prototype's td.draft */
  --source-marker-offset: 3px; /* the prototype's text-underline-offset */
  --event-gap: var(--space-5); /* the air between two events in the event list (1g.11, K48) */
  --event-divider: 1px solid var(--color-border-soft); /* the line between two events */
  /* A row that opens (the field notes' list, 1g.11h.2, #2835) and the soft mark of where a note went (K64's chip dn) */
  --event-open-current: var(--color-action); /* the line at the left of the row that is open in the panel */
  --event-open-current-width: var(--line-thick);
  --event-open-hover: var(--color-action-soft);
  --event-target-bg: var(--color-action-soft);
  --event-target-text: var(--color-action);
  --event-target-pad: var(--space-1) var(--space-3);
  --event-target-radius: var(--radius-sm);
  --event-target-height: 22px; /* the soft mark's surface, as the card's chip (K64) */
  /* The row above Logga ut when the diary has events waiting in the phone (1g.11c, K52): the quiet grey of the row that
     says the same without a network, a grey edge and no warning colour */
  --sidenav-unsent-surface: var(--color-surface-2);
  --sidenav-unsent-edge: var(--line-thick) solid var(--color-text-3);
  --sidenav-unsent-text: var(--color-text-2);
  --sidenav-unsent-strong: var(--color-text);
  --sidenav-unsent-icon: 18px;
  --event-pending-edge: 2px dashed var(--color-warning-text); /* an event kept in the phone and not sent yet: the draft's dashes */
  --event-signal: var(--signal-text); /* a signal on an event, such as Foto saknas., calm text after the signal's dot */
  --event-signal-dot: var(--signal-warning); /* the dot before it, the signals' yellow (K31) */
  --option-symbol-size: 20px; /* the symbol of an option in the value picker and of the diary's event (1g.11, K48): lines only, a form per kind */
  --option-symbol-pad: var(--space-1); /* the air between the symbol and its little box */
  --option-symbol-stroke: 1.6; /* @kind other */ /* the symbol's lines, in the 20 x 20 of its drawing */
  --option-symbol-radius: var(--radius-md);
  --option-symbol-bg: var(--color-surface-2); /* a neutral symbol, as Anteckning: the second surface and the text's grey */
  --option-symbol-text: var(--color-text-2);
  --option-symbol-edge: var(--color-border);
  --option-symbol-warning-bg: var(--badge-warning-bg); /* what stops or is wrong, as Hinder and Avvikelse: the warning badge's colours */
  --option-symbol-warning-text: var(--badge-warning-text);
  --option-symbol-warning-edge: var(--badge-warning-edge);
  --option-symbol-critical-bg: var(--badge-critical-bg); /* a tillbud: the critical badge's colours */
  --option-symbol-critical-text: var(--badge-critical-text);
  --option-symbol-critical-edge: var(--badge-critical-edge);
  --option-symbol-accent-bg: var(--color-positive-soft); /* what may become an ÄTA, a message from the client and the environment: the salvia's darker edge on a soft green, 3:1 or more as a graphic */
  --option-symbol-accent-text: var(--color-accent-border);
  --option-symbol-accent-edge: var(--color-accent-border);
  --sheet-scrim: var(--color-overlay); /* over the page while a list glides up from the foot of a phone's screen (the value picker's sheet, 1g.11) */
  --sheet-max-height: 85dvh; /* @kind other */ /* the sheet's highest, so that a strip of the page shows over it and it is seen to be over the page; it rolls inside past it */
  --sheet-radius: var(--radius-md); /* the sheet's upper corners */
  --sheet-grip-width: 36px; /* the little bar at the top of the sheet, which says that it came from below */
  --sheet-grip-height: 4px;
  --sheet-grip: var(--color-border-strong);
  --sheet-glide: var(--motion-normal); /* @kind other */ /* the time the sheet takes to glide up; none with prefers-reduced-motion */
  --diary-max: 720px; /* the diary's day on a larger surface: the phone's column, wider but never as wide as the page */
  --diary-count-gap: var(--space-2); /* between the day's count in the box of the signing and the signals' row right under it (pilotsessionen 9/11) */
  --day-nav-date: var(--text-lg); /* the day in the diary's row of days (1g.11, K48) */
  /* The life mark (1g.11i, K48, K43; K120 B, 1c.3.0a, D-MARK-10; components/life_state.html): a thing's state in its life, which is never a warning, an error or something positive, so it has no tone of the status badge and never changes colour. A small symbol per state and the word in the grey text, with no surface and no edge, in every state; the themed colours, so both themes follow. */
  --life-symbol: 14px; /* the symbol before the word */
  --life-line: 1.5; /* @kind other */ /* the symbol's line, as K120's */
  --life-text: var(--color-text-2); /* the word and the symbol, the same for every state */
  --life-size: var(--text-md);
  --life-weight: var(--weight-regular);
  /* The small life mark (ui-life-small, K93 F3 B): in a line of facts in the small text, as the diary's row of days, where the words keep the size and weight they had with the edge. */
  --life-small-size: var(--text-xs);
  --life-small-weight: var(--weight-strong);
  /* The life mark in a note under a heading (ui-life-note, K120, 1c.3.0a.1): the small size of the note, in the regular weight of the list's mark, so that the state reads as it does in the ÄTA list. */
  --life-note-size: var(--text-xs);
  --life-note-weight: var(--weight-regular);
  /* Signerad av beställaren (client, 1g.11d, K53, D-MARK-19; pilotens precisering 15/11 mot K120): one step stronger than Signerad within the same mark, still with no surface and no edge: a filled check in the dark salvia and the word in the ordinary text colour instead of the grey. */
  --life-client-text: var(--color-text);
  --life-client-symbol: var(--color-action); /* the check's filled ring */
  --life-client-tick: var(--color-action-text); /* the tick on it */
  /* The side panel (ui-side-panel, 1g.11d, K53, D-KORT-7): beside the content from 1180 px, and the page itself under it;
     its form (ui-side-sheet) folds out in the panel, and under 1180 px it glides up from the foot as a sheet (--sheet-*). */
  --side-panel-min: 360px; /* the panel's narrowest beside the content */
  --side-panel-max: 480px; /* and its widest, so that the day keeps its own width */
  --side-panel-gap: var(--space-9); /* between the content and the panel */
  --side-layout-wide-main: 1.3fr; /* a list that opens its rows in the panel: its share of the width (K64) */
  --side-layout-wide-panel: 1fr; /* and the panel's share beside it */
  --side-panel-top: calc(var(--sticky-top) + var(--space-6)); /* where the panel stays when the page rolls, under the tabs */
  --side-panel-foot: var(--space-6); /* the room under it */
  --side-panel-pad: var(--space-8);
  --side-panel-surface: var(--color-surface);
  --side-panel-edge: var(--color-border);
  --side-panel-shadow: var(--shadow-overlay);
  --side-panel-row-min: var(--target-min); /* a day's row in the panel's list is a tap target */
  --side-panel-row-pad: var(--space-4);
  --side-panel-close: var(--target-min); /* the cross that closes the panel */
  /* The year as a strip, one box per day (components/year_strip.html, 1g.8b1, K30). The colours are other tokens', so the
     dark theme follows; a state is never only a colour: a building day has an edge, a weekend or holiday the Gantt
     chart's shade and no edge, and a day off or vacation week hatching and an edge */
  --year-strip-cell: 14px; /* a day's box, as wide as high, as K30's (about 15 px from box to box at 1366 px); the week's number in --year-strip-week fits in it */
  --year-strip-gap: var(--space-1); /* between two boxes */
  --year-strip-day-surface: var(--color-surface); /* a building day */
  --year-strip-day-edge: #7d8a96; /* a building day's edge, its own tone (K78 v2, question 1, D-DIAG-11; darker for the ground of T2.191): 3:1 or more on the surface and the page's ground, where --color-border has 1,3:1 */
  --year-strip-weekday-bg: var(--color-surface); /* the weekdays' column and the corners, which stand still when the strip scrolls: the colour of what the strip stands on, the panel's surface (K78 v2, question 5, D-DIAG-23) */
  --year-strip-weekday-bg-ground: var(--color-ground); /* the same when the strip stands on the page's ground (ui-year-strip-on-ground) */
  --year-strip-current: var(--color-focus); /* the ring of the day whose name the chart's box shows (K78 v2, question 3) */
  --year-strip-off: var(--gantt-shade); /* a weekend or a holiday on a weekday: the Gantt chart's shade, the same days in the same tone, under 3:1 as a written exception (K78 v2, question 2, D-DIAG-24): no edge, the legend and the names carry it */
  --year-strip-free-line: var(--color-text-3); /* the hatching and the edge of the company's days off and vacation weeks: a graphic, 3:1 or more on the surface */
  --year-strip-hatch: 5px; /* the distance between two lines of the hatching */
  --year-strip-week: var(--text-2xs); /* the months, the weeks' numbers and the weekdays */
  --year-strip-week-text: var(--color-text-3);
  --year-strip-vacation-weight: var(--weight-bold); /* a vacation week's number */
  --year-strip-label-gap: var(--space-4); /* after the weekdays' column */
  --year-strip-legend-gap: var(--space-7); /* between two entries of the legend and of the totals under the strip */
  --grid-cell-pad-y: 8px; /* the air over and under a cell's text, the prototype's td */
  --grid-sheet-cell-gap: 2px; /* the air after a cell in the summary's sheet (ui-grid-sheet), which is 4 px less in all than before with 4 px: the prototype's table.sva td has 8 px (dashboard_mall.html:276, th 275) and the sheet fits 1440 px beside the folded menu, also with Linux's fonts (5 px wider), only with less. It may go down to 2 px (3 px before the pilot session's 1/11 second decision, after the CI's Linux fonts turned out 11 px wider and a classic scrollbar of 15 px takes room), under the prototype's 8 px, because the column width is set by the sum rows with --grid-sum-gap, 12 px: the sum cells' air before a figure is that minus this, so two sums stay 12 px apart, and the body's figures have 15 to 20 px of air in their columns. The reason is legibility: the figures are read clearly apart (pilotsessionen 1/11, narbild-talen-3px-mot-4px.png, T2.51c) */
  --grid-cell-pad-x: 10px; /* the air after a cell's text, before the next column, the prototype's td */
  --grid-indent: 22px; /* an account under its cost centre's heading row, the prototype's td.ind */
  --grid-group-space: 18px; /* the air over a heading row, so after the sum before it, the prototype's tr.grp */
  --grid-name-min: 230px; /* the first column, where an account's name wraps on two lines, the prototype's td:first-child */
  --grid-heading-before: 18px; /* the air over a sub heading, such as Kostnader, the prototype's h3 */
  --grid-heading-after: 8px; /* and under it, before its table */
  --text-grid: 14px; /* the grid's text; the prototype's 13.5 px is Noto Sans, which is larger than Source Sans 3, the font before IBM Plex Sans (T2.191) */
  --grid-head-divider: var(--color-border); /* a thin vertical line between the column headings of the summary's sheet (ui-grid-sheet, the heading row only), in the colour of the table's thin lines and --line-thin wide; drawn inside the cell's own air (an inset shadow), so it costs no width, and it keeps the headings apart now that the air after a cell is 2 px (T2.51b, pilotsessionen 1/11) */
  --grid-head-indent: 2px; /* the air before a left-aligned column heading in the summary's sheet (Ansv, Namn, Källa and Anmärkning; Nr has its own, 12 px, as a table's first column), so that it does not stand against the line or the column before it; 2 px and not 4, since the catalog's rule is that a heading stands at most 2 px from its content's edge (e2e/catalog.spec.ts); the columns' widths are set by a fixed width or by their content and not by the heading, so it costs no width (T2.51b, pilotsessionen 1/11) */
  --text-sheet-group: 15px; /* a heading row of the summary's sheet (ui-grid-sheet), the prototype's table.sva tr.grp td (dashboard_mall.html:280); the ledger's --text-grid-group is its own */
  --text-grid-group: 16px; /* a heading row, the cost centre's number and name, the prototype's tr.grp */
  --text-grid-sub: 12px; /* a text under an amount or a name, the prototype's .sub2 */
  --card-label-min: calc(2 * var(--leading-normal) * 1em); /* a card's heading area in a row of aligned cards: two lines, so that the figures stand at one height (Björn 31/10 kväll) */
  --text-grid-heading: 19px; /* a sub heading over a table, as Intäkter and Kostnader, the prototype's h3 */
  --grid-remark-min: 110px; /* the summary's Anmärkning, on one line and clipped; the prototype's td.anm has 120 px, 10 px less so that the sheet fits 1440 px with Linux's fonts too (P.0 round 10) */
  --grid-remark-max: 110px; /* and its max-width, after which the text ends in an ellipsis and its title has all of it; the prototype's is 150 px, which 1440 px does not hold (round 7) */
  --grid-name-floor: 96px; /* the least width the summary's Namn gives way to (ui-grid-sheet, T2.69): when the sheet does not fit its box the text columns yield first, Namn from --grid-fixed-3 and Anmärkning from --grid-remark-max, and the sideways scroll comes only when both are at their floors; amounts and percentages are never clipped. The whole text is in the cell's title and, with touch, in the tap tip */
  --grid-remark-floor: 72px; /* and Anmärkning's floor, in the same way: the width of its heading, which does not break */
  --dot: 6px;
  --opacity-muted: 0.7; /* a badge in a cancelled row (ui-row-muted, 1c.P round 7), as the prototype's #ata-sam tr.makulerad .chip */
  /* The button that makes something new (the variant create, T2.47, Björn 1/11): its own set, so that if the design wants it
     another way, only these five change, in one place. Since T2.76 (K9 B, Björn 2/11) it is text in the action's colour with no
     box and no edge, and the same soft surface as the value picker's button at hover, focus and when its menu is open
     (--valuepicker-open-bg), so that it reads as an action beside the value pickers and never competes with the page's
     main action, the filled green primary, at most one in a view. */
  --button-create-bg: transparent;
  --button-create-text: var(--color-action);
  --button-create-border: transparent;
  --button-create-hover-bg: var(--valuepicker-open-bg);
  --button-create-icon: var(--color-action);
  /* The split button (1g.16, K61, the schedule's Skriv ut ▾): the action and the arrow as one secondary button, with a line
     in the border's colour between them; the arrow is a square tap target. */
  --split-button-divider: var(--color-border);
  --split-button-more-pad: var(--space-3);
  /* with touch the arrow is drawn at least the tap target wide (T2.120, e1 in #2746, the pilot session 23/11): its target
     and the action's meet at the line between them and never overlap */
  --split-button-more-min: var(--button-target);
  /* The closing row of a box (ui-actions-closing, 1g.16 round 9, K61): its buttons' side padding under --bp-mobile, a
     little less than a button's (--space-7), so that Avbryt and Visa förhandsvisningen stand on one line at 390 px. */
  --actions-closing-pad-narrow: var(--space-6);
  /* The edge where the fixed columns of a table or a grid end, shown only while it is scrolled sideways (P.0.14, Björn
     2/11): a thin line in the border's colour, the same in both themes, never the strong border or a light line. */
  --grid-fixed-edge: var(--line-thin) 0 0 0 var(--color-border);
  /* The shadow at the edge of a table's or a sheet's box where there is more to scroll (D-TAB-35, the pilot session 27/11,
     is-more-x, components.js): a soft shade inward from the box's right edge, as wide as a cell's air, drawn over the
     rows and the header row while there is more to the right, and gone at the end. The colour is the theme's. */
  --scroll-more-width: var(--space-7);
  --scroll-more-shadow: rgba(9, 38, 61, 0.2);
  --scroll-more-edge: linear-gradient(to left, var(--scroll-more-shadow), transparent);
  --scroll-more-height: 0px; /* the box's visible height, set on the box by components.js while it has more to scroll */
  /* A list in a card of its own (ui-panel-list, P.0.14): less air inside than a panel of text and fields, so that the
     table has the room, as the layout sketch's card. */
  --panel-list-pad: var(--space-6);
  /* A link to another page in a row of actions (the variant link, P.0.14, the pilot session 2/11): the link's colour and
     an underline at this distance, never a button's fill or edge. */
  --button-link-text: var(--nav-link-text); /* since T2.108 the navigation variant's */
  --button-link-underline-offset: var(--nav-link-underline-offset);
  /* A button that waits (aria-disabled, T2.143): the share of its fill, edge and text that is left, the rest being let through
     to what it stands on. The focus ring is no part of it and stays whole (3:1, 1.4.11). */
  --button-wait-share: 45%;
  --icon: 16px;
  --disclosure-icon: var(--icon); /* a disclosure's chevron (P.0, 1/11): the size of a row's that folds out (1c.P), */
  --disclosure-gap: var(--space-2); /* the room between it and the text, */
  --disclosure-color: var(--color-text-3); /* its muted colour, as a row's chevron, */
  --disclosure-text: var(--color-text); /* the button's text, never a link's colour, */
  --disclosure-space: var(--space-4); /* and the room between the button and what it shows */
  /* A chip (chips, 1g.8b2, K30): a short value chosen in a list, as a vacation week "v. 28-31", with a cross that takes
     it away. As high as a row's controls, 28 px with a mouse and 44 px with touch (--row-control-min), and the cross
     a square of the same, grey and red under the mouse as the quiet button */
  --chip-height: var(--row-control-min);
  /* The cross's tap target: never less than --target-min, also where the chip is 28 px with a mouse. The button is the
     target and reaches out over the chip's edge by --chip-x-reach on each side, taken back by its margin, and the square
     drawn under the mouse stays as high as the chip (its ::before), so nothing seen grows */
  --chip-x-target: max(var(--chip-height), var(--target-min));
  --chip-x-reach: calc((var(--chip-x-target) - var(--chip-height)) / 2);
  --chip-surface: var(--color-surface);
  --chip-edge: var(--color-border);
  --chip-text: var(--color-text);
  --chip-radius: var(--radius-md);
  --chip-pad: var(--space-5); /* before the label */
  --chip-gap: var(--space-4); /* between two chips, and between the chips and what comes after */
  --chip-x-text: var(--color-text-2);
  --chip-x-hover: var(--color-error);
  --chip-x-hover-surface: var(--color-surface-2);
  /* A chip that is a choice (ui-chip-choice, 1g.11d, K53, D-VAL-20): a quick choice of the period, a link that applies
     at once; the chosen one in the action's soft surface and its edge, never a tone of the status badge. */
  --chip-choice-height: var(--target-min); /* a tap target with a mouse too, as the card draws it */
  --chip-choice-pad: var(--space-7);
  --chip-choice-radius: var(--radius-round);
  --chip-choice-hover: var(--color-surface-2);
  --chip-choice-on-surface: var(--color-action-soft);
  --chip-choice-on-edge: var(--color-accent-border);
  --chip-choice-on-text: var(--color-action);
  --corner-flag: 8px;
  /* Yes and no as a pattern (yes_no, T2.102, Björn's rule 5 of K39 7/11): a check in the positive colour, a dash for a no
     that is no harm, a cross in the error colour only for a no that is bad, and a quiet ring for unknown, always with
     a short text; never a free word such as "Finns". The symbol is a graphic (3:1), the text the body text. */
  --yes-no-icon: var(--icon); /* the symbol, */
  --yes-no-gap: var(--space-3); /* the room between it and the text, */
  --yes-no-yes: var(--color-positive-text); /* a check in its ring (the sketch uses --color-positive, 2.5:1 in dark, so the text colour), */
  --yes-no-no: var(--color-text-3); /* a dash in its ring, */
  --yes-no-bad: var(--color-error); /* a cross in its ring, */
  --yes-no-unknown: var(--color-text-3); /* an empty ring, */
  --yes-no-unknown-text: var(--color-text-3); /* and the quiet word "okänt" after the fact's name, */
  --yes-no-unknown-text-size: var(--text-sm); /* in the sketch's quiet size, */
  --yes-no-text: var(--color-text); /* the text, */
  --yes-no-row-gap: var(--space-3) var(--space-8); /* the air between several in a row (ui-yes-no-row), */
  --yes-no-row-item-touch: var(--target-min); /* the least height of an item in a row with touch, with the link in its middle, */
  --yes-no-row-gap-touch: 0 var(--space-8); /* so that rows under each other need no air between them, and the links' tap areas meet and never overlap (G1 of #862) */
  /* A job's state and a done step (job_state and yes_no with step or wait, T2.107, K81): the hourglass of a job that waits
     or runs, in the quiet colour as the sketch's, its word in the second text colour, the word of a failed one in the
     error colour (with the reason after it in the text colour), and a removed one as quiet text without a symbol. */
  --yes-no-wait: var(--color-text-3); /* the hourglass, */
  --yes-no-wait-text: var(--color-text-2); /* and the word after it, */
  --yes-no-bad-text: var(--color-error); /* the word of a failed step, as "Misslyckades", */
  --job-state-removed: var(--color-text-3); /* a removed job's word, */
  --job-line-gap: var(--space-3) var(--space-6); /* the state's line: the state, a link and the period after it (ui-job-line), */
  --job-row-state: 240px; /* a job's row on a wide surface: the state in a column of its own, so that the rows line up, */
  --job-row-gap: var(--space-3) var(--space-7); /* and the air between the state, the facts and the buttons, */
  --job-row-gap-between: var(--space-4); /* the air between two rows, */
  --job-row-rule: var(--color-border-soft); /* and the thin line between them */
  /* A rating (rating, ui-rating, T2.160, K103 v5, D-MARK-17): the figure and one small step per level of the scale, the
     same colour scale in the cell and in the box beside it; under the customer's limit the figure is bold and red and the
     steps red, never the signal chip. */
  --rating-gap: var(--space-4); /* between the figure and the steps, */
  --rating-step-gap: var(--space-1); /* between two steps, */
  --rating-step: var(--space-5); /* a step's width, */
  --rating-step-height: var(--space-3); /* its height, */
  --rating-step-radius: var(--radius-sm); /* and its corners, */
  --rating-track: var(--color-border); /* a step above the rating, */
  --rating-fill: var(--color-text-2); /* a step the rating reaches, */
  --rating-number: var(--color-text); /* the figure, */
  --rating-none: var(--color-text-3); /* the "-" of no rating, */
  --rating-low: var(--badge-critical-text); /* the figure and the steps under the limit, */
  --rating-low-weight: var(--weight-strong); /* and the figure's weight there */
  /* The day value (day_value, ui-day-value, T2.160, D-MARK-18; K93 B, 1c.3.0a): days left, falls due, reply by and
     late in the schedule, apart from the signal chip. Past the day a red mark and within the customer's limit for soon
     a yellow one, in the critical and the warning badge's colours, so the dark theme follows; later days only the figure. */
  --day-value-late: var(--badge-critical-text); /* past the day: the text, the dot, */
  --day-value-late-bg: var(--badge-critical-bg); /* the surface */
  --day-value-late-edge: var(--badge-critical-edge); /* and the edge, */
  --day-value-late-weight: var(--weight-strong);
  --day-value-soon: var(--badge-warning-text); /* within the limit for soon: the text, the dot, */
  --day-value-soon-bg: var(--badge-warning-bg); /* the surface */
  --day-value-soon-edge: var(--badge-warning-edge); /* and the edge, */
  --day-value-soon-weight: var(--weight-strong);
  --day-value-mark-size: var(--text-xs); /* the mark's text, as a badge's */
  --sidenav-width: 232px; /* the side menu, the portal's frame (T2.27, T2.73): open (the default from --sidenav-open-min), */
  --sidenav-logo-tall-height: var(--space-11); /* a customer's logo higher than wide, in the menu's head and the bar (V46-7; a wide one has --space-10), */
  --sidenav-mini-width: 64px; /* folded to its icons (the default under --sidenav-open-min; both are standards, a saved choice wins), */
  --sidenav-open-min: 1440px; /* the width from which the menu is open by default, decided once at the load (T2.51); read by context_processors.py */
  --drawer-strip: var(--target-min); /* the drawer over the page (a phone, and an iPad with the choice D, T2.90.1): the strip of the page that always stays seen beside it, */
  --drawer-width-min: calc(var(--space-6) * 3 + var(--target-min) + var(--picker-min) / 2); /* its narrowest: the picture, the air and the room for the user's name in the foot, */
  --drawer-width-max: calc(100vw - var(--drawer-strip)); /* its widest, and between them the width is the content's own (fit-content), never a number */
  --drawer-user-lines: 2; /* the lines the user's name and the company may take in the drawer's foot before they are cut with ... */
  --sidenav-rail-label-size: var(--text-xs); /* the name under the picture in the folded menu with touch (choice A, T2.90.1, a trial in wait of Björn's pick), which has no width token: the rail is as wide as the longest word among the names, */
  --sidenav-rail-label-lines: 3; /* and the lines a long name may take before it is cut */
  --sidenav-rail-step: var(--brand-hand-step); /* the step the rail's width is rounded up to, so that the page beside it and its logos stand on whole pixels (T2.90.1); its own name, as the brand tokens are read only in the lockup */
  --icon-nav: 20px; /* the side menu's icons */
  --sidenav-scroll-width: 6px; /* the thin scrollbar of the side menu's list of areas, where a browser has no thin one by itself (T2.41) */
  --color-nav-scroll: rgba(255, 255, 255, 0.5); /* its thumb on the slate, 4.2:1 on the lighter slate; no track */
  --sidenav-tip-bg: var(--color-nav-active); /* the folded menu's label (T2.90): the name of an area beside its picture, shown on hover, focus and a long press, on the lighter slate, */
  --sidenav-tip-text: var(--color-nav-text); /* its text, */
  --sidenav-tip-edge: var(--color-nav-current); /* a thin edge in the salvia, so that it stands out from a dark page too, */
  --sidenav-tip-gap: var(--space-3); /* the room between the menu's edge and the label, so that it never covers the next picture, */
  --sidenav-tip-pad-y: var(--space-3); /* and its padding, radius and size */
  --sidenav-tip-pad-x: var(--space-5);
  --sidenav-tip-radius: var(--radius-md);
  --sidenav-tip-size: var(--text-sm);
  --icon-sample: 48px; /* and the same icons large, in the catalog's section of proposals for them (T2.33) */
  --check: 18px;

  /* Radii, lines and shadows */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-round: 999px;
  --radius-lg: 8px; /* lager 1's form (T2.191, Björn 26/11: Form C, D-KORT-10): cards, panels, buttons and fields */
  --card-radius: var(--radius-lg);
  --button-radius: var(--radius-lg);
  --field-radius: var(--radius-lg);
  --line-thin: 1px;
  --line-medium: 2px;
  --line-thick: 3px;
  --shadow-raised: none;
  --shadow-overlay: 0 6px 20px rgba(9, 38, 61, 0.14);
  --shadow-card: 0 1px 2px rgba(9, 38, 61, 0.06), 0 1px 3px rgba(9, 38, 61, 0.06); /* the light shadow under a card, a panel and a framed button (Form C, T2.191) */
  --shadow-field: drop-shadow(0 1px 1px rgba(9, 38, 61, 0.06)); /* and under a field, a filter, so that it follows the field drawn and not its tap target's transparent edge with touch */

  /* Motion */
  --motion-fast: 0.15s; /* @kind other */
  --motion-normal: 0.22s; /* @kind other */
  --ease: ease; /* @kind other */
  --motion-grow: 0.2s; /* @kind other */ /* the time a row takes to glide to its new height when a text under a field comes or goes without a reload, or a text in a cell wraps onto a new line (T2.97); none with prefers-reduced-motion */
  --ease-grow: ease-out; /* @kind other */ /* and its curve: fast at first, so that the row is where it goes at once, and soft at the end */
  --tabs-reveal: 1s; /* @kind other */ /* the row of tabs with Mer is drawn after this even when no script has measured it (T2.184), as when components.js does not load */

  /* Breakpoints, for scripts and documentation. CSS media queries cannot read variables, so
     components.css repeats the values: mobile below 600, iPad portrait 820, iPad landscape 1180, desktop 1440. */
  --bp-mobile: 600px;
  --bp-ipad-portrait: 820px;
  --bp-ipad-landscape: 1180px;
  --bp-desktop: 1440px;

  /* Print */
  --print-text: 9.5pt;
  --print-text-small: 8pt;
  --print-heading: 16pt; /* @kind font */
  --print-margin: 14mm;
  --print-signature-height: 14mm; /* @kind spacing */
  /* The mark beside a printout's heading that says what the document is for, "Intern" on the ÄTA summary (P.0.5, the
     pilot session 1/11): small capitals in black with a thin edge, never only a colour, so that it reads on paper in
     black and white. The variant mark of the printout's heading (print_header, ui-print-mark; doc-mark in print.css). */
  --print-mark-text: var(--print-ink);
  --print-mark-border: var(--print-ink);
  --print-mark-size: var(--print-text-small);
  --print-mark-pad-block: var(--space-1);
  --print-mark-pad-inline: var(--space-3);
  /* The sender's line in a document's foot and in the schedule's title block (ui-attribution, T2.72): the symbol, a picture
     (static/design/attribution-symbol.svg), in the foot's own text size. */
  --print-attribution-symbol: 1.5em;
  /* The padlock before the site manager's signing on a day of the diary on paper (1g.11e, K53): the mark's own size. */
  --print-diary-lock: 1.1em; /* @kind spacing */
  /* The schedule's title block (1g.13, the prototype's .tp-tb in dashboard_mall.html), since K98 C (1g.13.2.1) in the
     sheet's bottom row over the whole width (--print-sheet-* below): the values in 9 pt, the cells' padding and the
     frame, so that the server can tell the row's height from its texts (apps/printing/sheet.py). */
  --print-titleblock-text: 9pt; /* @kind font */
  /* The customer's logo (T2.74c, Björn 12/11): 9 mm high wherever it stands, in the head of a document, in the
     schedule's title block and in a mail (the mail gets whole pixels at 96 to the inch, apps.companies.outgoing). One
     token. In a document's head it is never wider than --customer-logo-max-width, a third of an A4 sheet. */
  --customer-logo-height: 9mm; /* @kind spacing */
  --customer-logo-max-width: 60mm; /* @kind spacing */
  --print-titleblock-pad-block: 1mm; /* @kind spacing */
  --print-titleblock-pad-inline: 2mm; /* @kind spacing */
  --print-titleblock-frame: 1.1pt; /* @kind other */
  /* The schedule's page (1g.13.1): the top and side margins, the room between the sheet and the title block and the
     foot, the distance from the paper's bottom edge and the share of the heading's row the assignment and the day may
     take. The bottom margin is the title block's height with these (apps/printing/sheet.py), so that a long text never
     runs up over the sheet, and the drawing area follows the margins; a margin box cannot read a variable, so the
     server writes the margins and the boxes' widths into the page (printing/schedule.html). */
  --print-schedule-margin: 10mm; /* @kind spacing */
  --print-schedule-gap: 3mm; /* @kind spacing */
  --print-schedule-edge: 5mm; /* @kind spacing */
  --print-schedule-note-max: 50%; /* @kind other */
  /* The sheet's bottom row (1g.13.2.1, K98 C, Björn 14/11): over the whole width under the rows, the key in the left
     fifth and the title block in the rest, with the company, the schedule's name with the client and the fields in
     three columns (Uppdrag, Utfärdad datum, Utfärdad av; Ansvarig, Rev nr, Rev datum; Rev kommentar over the row).
     Each field's label stands before its value on the same line, in lower case and at least 8 pt (option C of #2168,
     point 27), so that the row is low; its height comes from its texts (apps/printing/sheet.py, bottom_row). */
  --print-sheet-key-share: 20%; /* @kind other */
  --print-sheet-block-company: 16%; /* @kind other */
  --print-sheet-block-title: 41%; /* @kind other */
  --print-sheet-block-label: var(--print-text-small);
  --print-sheet-block-text: var(--print-titleblock-text);
  --print-sheet-block-name: 10pt; /* @kind font */
  /* The summary's sheet (1e.7): the customer's printout is in black on white, with a hairline between the rows
     and a heavier one at the sections. The prototype's Arial is not delivered (a licence). Liberation Sans is its metric
     twin under OFL-1.1, delivered from static/design/fonts/ (T2.11), so that the sheet is as sharp at small sizes on
     paper on a server without Arial as on a machine with it. Arial and the system font stand in if it fails to load. */
  --font-sheet: "Liberation Sans", Arial, sans-serif; /* @kind font */
  --print-ink: #000000; /* @kind other */
  /* The mail's HTML (T2.74c): a mail has no stylesheet and no var(), so apps.companies.outgoing reads these and the
     colours and sizes it uses from here and writes them inline. The customer's logo in a mail is a PNG only (an SVG is
     not shown in a mail) at --customer-logo-height above. */
  --mail-width: 560px; /* @kind spacing */
  --mail-rule: var(--line-thick);
  --print-sheet-line: 0.38pt; /* @kind other */
  --print-sheet-line-strong: 0.75pt; /* @kind other */
  --print-sheet-foot: 7pt; /* @kind font */
  --print-px: 1px; /* @kind other */
  /* The navigation variant (T2.108, K85 A, Björn 12/11, components/nav_link.html): everything that only takes the user
     to another page. Text in the link's colour with the line under it at rest; the line is thicker under the mouse and
     with the keyboard's focus. In a row of actions it has the buttons' height and font, small is the text's size of a
     card, and the arrow before Tillbaka is a part of the variant. --button-link-text and --button-link-underline-offset
     read these, so that a change here changes every link to another page at once. */
  --nav-link-text: var(--color-link);
  --nav-link-underline-offset: var(--space-2);
  --nav-link-line: auto; /* @kind other */
  --nav-link-line-hover: var(--line-tab-active);
  --nav-link-font: var(--font-display);
  --nav-link-weight: var(--weight-heading);
  --nav-link-size: var(--text-lg);
  --nav-link-size-small: var(--text-sm);
  --nav-link-height: var(--target-min); /* alone; in a row of actions the buttons' drawn height (--nav-link-height-row) */
  --nav-link-height-row: var(--button-visible-min); /* T2.120: 36 px with a mouse and with touch, its tap target of 44 px drawn round it with touch */
  --nav-link-pad: var(--space-3);
  --nav-link-arrow: var(--icon);
  --nav-link-arrow-gap: var(--space-3);
  --nav-link-arrow-line: var(--line-medium);
  /* The A3 sheet's long side and its margin, as @page sva-a3 below says them (a page rule cannot read a variable): the
     summary's table is never narrower than the content of the sheet, 408 mm, so that its amounts, whose size the
     server fits to that width, never run into each other in a narrow window; the table keeps its width instead (the
     pilot session 13/11, 1e.7.1 round 5). */
  --print-a3-long: 420mm; /* @kind spacing */
  --print-sva-margin: 6mm; /* @kind spacing */
  /* The rows of the summary's sheet (the pilot session 13/11, 1e.7.1 round 9, as the prototype's svaPrintFit): the
     server sets the row in whole pixels between the most and the least so that the rows fill one A3, and the text is
     the row less text-less, with no padding and a line height of the row. At the least, the lowest legible row (7 px
     text, about 5 pt), a longer table goes on over more sheets with the header row repeated. Mirror ROW_MOST,
     ROW_LEAST and TEXT_LESS in apps/forecasts/sva_print.py (a test keeps them equal). */
  --print-sva-row-most: 12px; /* @kind spacing */
  --print-sva-row-least: 9px; /* @kind spacing */
  --print-sva-text-less: 2px; /* @kind spacing */
}

/* Density per view (T2.43, Jesper 31/10): a page that has the class ui-page-compact, the project overview, is tighter and
   in the prototype's measures (dashboard_mall.html: h2 26 px, h3 19 px, a card's room 14 16 12 px, its label 4 px and
   its detail 6 px under, the main figure twice as wide as the others; a card's room above is the standard's 12 px
   since T2.191, D-KORT-10). Only these tokens
   change, and the tap target only for a mouse: a touch screen keeps --target-min, 44 px (Björn 10/10). Another view
   takes the density with the same class, so the sweep over the other views is a class per view and no new values. */
.ui-page-compact {
  --text-h1: var(--text-h1-project);
  --text-title: var(--text-title-page);
  --card-label-gap: var(--space-2);
  --card-detail-gap: var(--space-3);
  --cards-hero-share: 2fr;
}
/* The heading under --bp-mobile (T2.172, Björn 18/11): 22 px, also on a page with the compact density, whose 26 px did not
   fit a project's name on a phone. After the compact rule, so that the narrow size is the later one. */
@media (max-width: 599px) {
  :root,
  .ui-page-compact {
    --text-h1: var(--text-h1-narrow);
  }
}
/* The head of a project's pages (ui-page-head-project, projects/base.html; the pilot session 19/11): the heading has one
   size in every view of the project, the overview's, so that the heading and the meta row under it stand at the same
   place when the reader goes from one tab to the next (e2e/project-head-steady.spec.ts). Under --bp-mobile the narrow
   size, as every heading (D-NAV-11). */
.ui-page-head-project {
  --text-h1: var(--text-h1-project);
}
@media (max-width: 599px) {
  .ui-page-head-project {
    --text-h1: var(--text-h1-narrow);
  }
}
@media (hover: hover) and (pointer: fine) {
  html:not([data-display="standalone"]) .ui-page-compact {
    --target-min: 36px; /* not in the app on the home screen (data-display, T2.35), which is a finger's too */
  }
  /* The row of the tabs stays at 44 px (T2.36): it is what a finger on a laptop's touch screen meets first, and the density
     is in the cards, the titles and the fields below it. The project row's picker follows the compact row of actions
     since P.0 (Björn 1/11: --control-min, 36 px with a mouse and the tap target with touch); the rest of the row keeps
     44 px here (T2.40). */
  html:not([data-display="standalone"]) .ui-page-compact :is(.ui-tabs, .ui-projectbar) {
    --target-min: 44px;
  }
}

/* Paper: reports in A4 portrait, wide lists in A4 landscape (granskningslistan). */
@page {
  size: A4 portrait;
  margin: 14mm;
}
@page landscape {
  size: A4 landscape;
  margin: 12mm;
}
/* The schedule: A3 or A4 landscape. The margins and the width of the foot's box follow the bottom row's height and
   come from --print-schedule-*, written into the page by the server (printing/schedule.html), since a margin box cannot read a variable. */
@page schedule-a3 {
  size: A3 landscape;
}
@page schedule-a4 {
  size: A4 landscape;
}
/* The summary of a period: A3 landscape with 6 mm margins, all on one page (1e.7). */
@page sva-a3 {
  size: A3 landscape;
  margin: 6mm;
}

/* A mouse: a row of actions as dense as the prototype's (--control-min-fine); a touch screen, also one with a mouse
   beside it, keeps the tap target (P.0.2). */
@media (pointer: fine) {
  :root {
    --control-min: var(--control-min-fine);
    --row-control-min: var(--row-control-min-fine);
    --gantt-menu-row-min: var(--gantt-menu-row-min-fine);
    --signal-target: var(--signal-target-fine);
    --gantt-field-target: var(--gantt-field-target-fine);
    --gantt-row-menu-target: var(--gantt-row-menu-target-fine);
  }
}
@media (pointer: coarse), (any-pointer: coarse) {
  :root {
    --control-min: var(--target-min);
    --row-control-min: var(--target-min);
    --gantt-menu-row-min: var(--target-min);
    --signal-target: var(--target-min);
    --gantt-field-target: var(--target-min);
    --input-reach: calc((var(--target-min) - var(--input-min)) / 2); /* a field's transparent edge, 4 px (T2.121) */
    --gantt-row-menu-target: var(--target-min);
    /* With touch a table's cell keeps 8 px of air above and under (D-ALLA-6 over D-KORT-10, rättning-main 27/11): a link alone in its
       cell and a sorting heading are tap targets of 44 px that borrow the cell's air (T2.7), so the 6 px of the tight
       rows (T2.191) let the targets of two rows, and of the heading and the first row, overlap by 3-4 px at 820 px. */
    --table-cell-pad-y: var(--space-4);
  }
}

/* An iPad gets the row under its row and never the panel (K69): with the drawer menu since T2.19b (#3421) the list's
   surface at an iPad in landscape is 1122 px, over the computer's 1120, so a touch screen needs a wider surface for the
   panel (rättning main 25/11: invoice-basis.spec.ts:139 in ipad-1180). */
@media screen and (pointer: coarse) {
  :root {
    --more-panel-from: 1200px;
  }
}

/* Touch screens: fields at 16 px, so iOS does not zoom in on focus. */
@media screen and (max-width: 1180px), screen and (pointer: coarse) {
  :root {
    --text-field: 16px;
    --date-symbol-width: var(--target-min);
    --date-cal-day: var(--target-min);
    --date-cal-day-height: var(--target-min);
    --date-cal-week: 30px;
    --date-cal-head-row: 24px;
    --date-cal-nav: var(--target-min);
    --date-cal-quick-min: var(--target-min);
    --date-cal-text: var(--text-lg);
    --date-cal-small: var(--text-sm);
  }
}

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-ground: #1f2932;
    --color-surface: #28343f;
    --color-surface-2: #303d49;
    --progress-bar-track: #171f27; /* 1g.9b: the fill needs 3:1 against the track in the dark theme: the product's dark frame as a
       colour of its own, not var(--color-band), which a customer's theme sets (the band's dark shade would then have to hold
       the fill as well) */
    --color-band: #171f27;
    --color-band-muted: #c6cfd6;
    --color-nav: #171f27;
    --color-nav-text: #ffffff;
    --color-nav-muted: #c6cfd6;
    --color-nav-icon: #c6cfd6;
    --color-text: #e3e8ec;
    --color-text-2: #b4bec7;
    --color-text-3: #9ca7b1;
    --date-cal-free-line: rgba(200, 210, 220, 0.34); /* the date calendar's hatching in dark (K108) */
    --date-cal-disabled: #5b6873; /* dark: a day that cannot be chosen (D-DAT-1); inactive controls are exempt from 4.5:1 */
    --color-text-on-strong: #1f2a33;
    --color-border: #3b4854;
    --color-border-soft: #333f4b;
    --color-border-strong: #e3e8ec;
    --color-border-control: #7b8c99; /* dark: the darkest slate that holds 3:1 on the surface and the ground, 3.7:1 and 4.3:1 (T2.136) */
    --toggle-on-surface: #b4bec7; /* light fill and dark text in dark: a dark fill 3:1 against the dark surface is too light for white text (T2.93) */
    --toggle-on-border: #b4bec7;
    --toggle-on-text: #1f2a33;
    --button-back-bg: #34424f;
    --button-back-text: #9cc0ac;
    --button-back-border: var(--color-border-control);
    --color-action: #9cc0ac;
    --color-action-text: #1f2a33;
    --color-action-soft: #283f34;
    --color-link: #9cc0ac;
    --color-focus: #9cc0ac;
    --color-brand: #e3e8ec;
    --brand-symbol-line: #d6dfda;
    --brand-symbol-face: #9cc0ac;
    --brand-word: #e7ece9;
    --brand-nav: #9cc0ac;
    --color-positive-text: #63c47f;
    --color-positive-soft: #1d3a2a;
    --color-warning-text: #e6b457;
    --color-warning-soft: #3a2f12;
    --color-error: #f28b82;
    --color-error-soft: #3d1c1c;
    --color-negative-amount: #e09b94; /* less saturated than the error's #f28b82 (T2.73, the owner 4/11) */
    --color-editable: #283f34;
    --color-cell-editable: #283f34; /* a cell one may write in, also while reading (the prototype's td.in, P.0) */
    --color-chart-1: #9cc0ac;
    --color-chart-2: #e3a362;
    --color-chart-3: #45b863;
    --color-chart-4: #9b80c8;
    --color-chart-5: #2fbaba;
    --color-chart-6: #d0705a;
    --shadow-raised: none;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-field: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    --scroll-more-shadow: rgba(0, 0, 0, 0.45);
    --signal-chip-critical-bg: #452624;
    --signal-chip-critical-text: #f2aba4;
    --signal-chip-warning-bg: #3d3018;
    --signal-chip-warning-text: #e6bf78;
    --color-band-control: rgba(255, 255, 255, 0.12);
    --color-brand-accent: #9cc0ac;
    --color-accent: #9cc0ac;
    --color-accent-text: #1f2a33;
    --color-unsaved: #e09a00;
    --color-nav-active: #2a3a44;
    --color-nav-current: #9cc0ac;
    --color-nav-line: rgba(255, 255, 255, 0.12);
    --color-nav-count: #9cc0ac;
    --color-nav-count-text: #1f2a33;
    --color-nav-scrim: rgba(0, 0, 0, 0.6);
    --color-tab-current: #9cc0ac; /* the salvia as the action, as the line (T2.43) */
    --color-tab-line: #9cc0ac;
    --color-accent-border: #9cc0ac; /* the salvia itself: the button is 6.4:1 on the dark surface */
    /* the badges' tones, muted on the dark surface (T2.73) */
    --badge-positive-bg: #1d3025;
    --badge-positive-text: #72bb8a;
    --badge-positive-edge: #5c9970;
    --badge-warning-bg: #2e2819;
    --badge-warning-text: #c8a76f;
    --badge-warning-edge: #a98951;
    --badge-critical-bg: #382424;
    --badge-critical-text: #e09b94;
    --badge-critical-edge: #bd7b75;
    --year-strip-day-edge: #7a8793; /* a building day's edge in the dark theme (K78 v2, question 1) */
    --gantt-shade: rgba(0, 0, 0, 0.22); /* grey over the dark surface would lighten it; the note says shaded */
    --gantt-band-line: rgba(200, 210, 220, 0.34);
    --gantt-bar-pause: #2f5a3d;
    --gantt-bar-before-line: var(--color-positive-text);
    --gantt-bar: var(--color-positive-text); /* the bar and the line under a week it works: --color-positive is 2.5:1 on the dark surface, this 5.9:1 (1g.4f, K1) */
    --gantt-works: var(--color-positive-text);
    --gantt-flag: var(--color-warning); /* the dot of a signal keeps its amber in the dark, 5.3:1; the light theme takes the text tone */
    /* the box over a chart (T2.92): the top bar's colour, as the prototype's */
    --chart-tip-bg: var(--color-band);
    --chart-tip-fg: var(--color-band-text);
    --chart-tip-border: var(--color-border-strong);
    --chart-tip-negative: var(--color-negative-amount);
    --chart-tip-swatch-border: var(--color-band-muted);
  }
}

/* The user's choice of the dark theme is for the screen: paper is always printed on the light theme's tokens, whatever theme
   the screen has (P.0.17h2, the pilot 18/11), as the system's dark mode above already is. */
@media screen {
  :root[data-theme="dark"] {
    --color-ground: #1f2932;
    --color-surface: #28343f;
    --color-surface-2: #303d49;
    --progress-bar-track: #171f27; /* 1g.9b: as above */
    --color-band: #171f27;
    --color-band-muted: #c6cfd6;
    --color-nav: #171f27;
    --color-nav-text: #ffffff;
    --color-nav-muted: #c6cfd6;
    --color-nav-icon: #c6cfd6;
    --color-text: #e3e8ec;
    --color-text-2: #b4bec7;
    --color-text-3: #9ca7b1;
    --date-cal-free-line: rgba(200, 210, 220, 0.34); /* the date calendar's hatching in dark (K108) */
    --date-cal-disabled: #5b6873; /* dark: a day that cannot be chosen (D-DAT-1); inactive controls are exempt from 4.5:1 */
    --color-text-on-strong: #1f2a33;
    --color-border: #3b4854;
    --color-border-soft: #333f4b;
    --color-border-strong: #e3e8ec;
    --color-border-control: #7b8c99; /* dark: the darkest slate that holds 3:1 on the surface and the ground, 3.7:1 and 4.3:1 (T2.136) */
    --toggle-on-surface: #b4bec7;
    --toggle-on-border: #b4bec7;
    --toggle-on-text: #1f2a33;
    --button-back-bg: #34424f;
    --button-back-text: #9cc0ac;
    --button-back-border: var(--color-border-control);
    --color-action: #9cc0ac;
    --color-action-text: #1f2a33;
    --color-action-soft: #283f34;
    --color-link: #9cc0ac;
    --color-focus: #9cc0ac;
    --color-brand: #e3e8ec;
    --brand-symbol-line: #d6dfda;
    --brand-symbol-face: #9cc0ac;
    --brand-word: #e7ece9;
    --brand-nav: #9cc0ac;
    --color-positive-text: #63c47f;
    --color-positive-soft: #1d3a2a;
    --color-warning-text: #e6b457;
    --color-warning-soft: #3a2f12;
    --color-error: #f28b82;
    --color-error-soft: #3d1c1c;
    --color-negative-amount: #e09b94; /* less saturated than the error's #f28b82 (T2.73, the owner 4/11) */
    --color-editable: #283f34;
    --color-cell-editable: #283f34; /* a cell one may write in, also while reading (the prototype's td.in, P.0) */
    --color-chart-1: #9cc0ac;
    --color-chart-2: #e3a362;
    --color-chart-3: #45b863;
    --color-chart-4: #9b80c8;
    --color-chart-5: #2fbaba;
    --color-chart-6: #d0705a;
    --shadow-raised: none;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-field: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    --scroll-more-shadow: rgba(0, 0, 0, 0.45);
    --signal-chip-critical-bg: #452624;
    --signal-chip-critical-text: #f2aba4;
    --signal-chip-warning-bg: #3d3018;
    --signal-chip-warning-text: #e6bf78;
    --color-band-control: rgba(255, 255, 255, 0.12);
    --color-brand-accent: #9cc0ac;
    --color-accent: #9cc0ac;
    --color-accent-text: #1f2a33;
    --color-unsaved: #e09a00;
    --color-nav-active: #2a3a44;
    --color-nav-current: #9cc0ac;
    --color-nav-line: rgba(255, 255, 255, 0.12);
    --color-nav-count: #9cc0ac;
    --color-nav-count-text: #1f2a33;
    --color-nav-scrim: rgba(0, 0, 0, 0.6);
    --color-tab-current: #9cc0ac; /* the salvia as the action, as the line (T2.43) */
    --color-tab-line: #9cc0ac;
    --color-accent-border: #9cc0ac; /* the salvia itself: the button is 6.4:1 on the dark surface */
    /* the badges' tones, muted on the dark surface (T2.73) */
    --badge-positive-bg: #1d3025;
    --badge-positive-text: #72bb8a;
    --badge-positive-edge: #5c9970;
    --badge-warning-bg: #2e2819;
    --badge-warning-text: #c8a76f;
    --badge-warning-edge: #a98951;
    --badge-critical-bg: #382424;
    --badge-critical-text: #e09b94;
    --badge-critical-edge: #bd7b75;
    --year-strip-day-edge: #7a8793; /* a building day's edge in the dark theme (K78 v2, question 1) */
    --gantt-shade: rgba(0, 0, 0, 0.22); /* grey over the dark surface would lighten it; the note says shaded */
    --gantt-band-line: rgba(200, 210, 220, 0.34);
    --gantt-bar-pause: #2f5a3d;
    --gantt-bar-before-line: var(--color-positive-text);
    --gantt-bar: var(--color-positive-text); /* the bar and the line under a week it works: --color-positive is 2.5:1 on the dark surface, this 5.9:1 (1g.4f, K1) */
    --gantt-works: var(--color-positive-text);
    --gantt-flag: var(--color-warning); /* the dot of a signal keeps its amber in the dark, 5.3:1; the light theme takes the text tone */
    /* the box over a chart (T2.92): the top bar's colour, as the prototype's */
    --chart-tip-bg: var(--color-band);
    --chart-tip-fg: var(--color-band-text);
    --chart-tip-border: var(--color-border-strong);
    --chart-tip-negative: var(--color-negative-amount);
    --chart-tip-swatch-border: var(--color-band-muted);
  }
}

/* The reserve until IBM Plex Sans has come (D-ALLA-33, #2975) is for the screen only, its faces as well as the font
   lists: print reads the first :root (apps/design/services.read_tokens, the SVG drawings), and WeasyPrint, with the
   media type print, skips this media query with everything in it, so that it never looks the local() faces up among
   the installed fonts and stays on the delivered files (decision 0015). */
@media screen {
  /* The reserve: the installed Arial (Windows, macOS, iPadOS) or its metric twin Liberation Sans (Linux; local()
     finds only installed fonts, never the sheet's files at the top of this file), set to IBM Plex Sans's metrics so
     that the swap breaks no line anew and moves nothing. size-adjust is the mean advance of IBM Plex Sans over
     Arial's in the interface's own words (the templates in apps, T2.191); 400 and 500 against Arial, 600 against Arial
     Bold, which is why its src names the bold face. The overrides are scaled by size-adjust, so ascent-override is
     1.025 and descent-override 0.275 (IBM Plex Sans's hhea and typo, line gap 0) divided by it. The same unicode-range
     as IBM Plex Sans: a sign outside it goes on to the system fonts, as before. */
  @font-face {
    font-family: "IBM Plex Sans Fallback";
    font-style: normal;
    font-weight: 400;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
    size-adjust: 100.95%;
    ascent-override: 101.54%;
    descent-override: 27.24%;
    line-gap-override: 0%;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: "IBM Plex Sans Fallback";
    font-style: normal;
    font-weight: 500;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
    size-adjust: 103.13%;
    ascent-override: 99.39%;
    descent-override: 26.67%;
    line-gap-override: 0%;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: "IBM Plex Sans Fallback";
    font-style: normal;
    font-weight: 600;
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
    size-adjust: 97.10%;
    ascent-override: 105.56%;
    descent-override: 28.32%;
    line-gap-override: 0%;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  :root {
    --font-body: "IBM Plex Sans", "IBM Plex Sans Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "IBM Plex Sans", "IBM Plex Sans Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  }
}
