/* a chart's lines and labels from the roles, so it follows the theme (styleguide 1.1); recharts writes its own colours
   as attributes, which CSS outweighs. Every chart of the app sits in `.chart` */

/* the axes' labels as Text.Tertiary small: 12 px at 400 (styleguide 1.2) */
.chart .recharts-cartesian-axis {
  font-size: 12px; /* a text step in a library's SVG text */
  font-weight: 400; /* a text step in a library's SVG text */
}

.chart .recharts-cartesian-grid line {
  stroke: var(--line-divider);
}

.chart .recharts-cartesian-axis-line {
  stroke: var(--line-border);
}

.chart .recharts-cartesian-axis-tick-value {
  fill: var(--text-secondary);
}

/* the range under a long chart: its ground the box's, its frame and handles the border's */
.chart .recharts-brush > rect {
  fill: var(--ground-box);
  stroke: var(--line-border);
}

.chart .recharts-brush-slide {
  fill: var(--line-border);
}

/* the brush's handles are controls: 3:1 on the box (WCAG 1.4.11), the meaning role's grey; their focus the ring of 3.7,
   not the browser's (UI check N3) */
.chart .recharts-brush-traveller > rect {
  fill: var(--icon-meaning);
}

.chart .recharts-brush-traveller:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

.chart .recharts-brush-texts text {
  fill: var(--text-secondary);
  font-size: 12px; /* a text step in a library's SVG text */
}

/* the chart takes the keyboard (accessibilityLayer): the focus ring of 3.7 inside its edge, not the browser's */
.chart .recharts-surface:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: -2px;
}

/* a tooltip on the box's ground: its head and its rows a group apart */
.chart-tooltip {
  display: flex;
  flex-direction: column;
  gap: var(--space-group);
  padding: var(--space-inset-compact);
  background: var(--ground-box);
  border: 1px solid var(--line-divider);
  border-radius: 6px;
  box-shadow: var(--locize-bevel);
}

/* a series' colour, in the legend and in a tooltip's row */
.chart-swatch {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* the legend under a chart (ChartLegend): its entries side by side, wrapping, a group apart, each on one line cut at
   its end */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-part) var(--space-group);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-legend > li {
  display: flex;
  align-items: center;
  gap: var(--space-part);
  min-width: 0;
  max-width: 100%;
}
.locize-dropzone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* its parts a group apart, its inset as a box's (the style model of 11-02; 10 and 20 before, recheck Version 4) */
  gap: var(--space-group);
  padding: var(--space-inset);
  /* the edge of a place to drop on: 3:1 (WCAG 1.4.11), mutedIcon 3.5:1 on white; was #eee on #fafafa, 2 and 3
     without a unit, so the browser drew 3 px square (Jan, 10-25) */
  border: 1px dashed var(--locize-mutedIcon);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.locize-dropzone p {
  margin: 0;
}

.locize-dropzone .material-icons {
  color: var(--locize-mutedIcon);
}

.locize-dropzone:focus-visible,
.locize-dropzone.locize-dropzone-isdragaccept {
  border-color: var(--locize-primary);
}

.locize-dropzone.locize-dropzone-isdragreject {
  border-color: var(--icon-error);
}
/* the error and its stack as the code they are: monospace, their lines kept, a long path wrapping instead of widening
   the page (styleguide 1.4) */
.error-details .lz-text-base {
  font-family: var(--locize-font-family-monospace);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.locize-header-item {
  overflow: hidden;

  text-overflow: ellipsis;
  display: inline-block;
  white-space: nowrap;
}
/* the colour roles (styleguide 1.1, the style model of 11-02): a page or a component names the role, never the value;
   each role has its light value here and its dark one in the dark block below, so a rule needs no dark copy */
:root {
  /* the browser's own parts (scrollbars, native fields, a date field's calendar) in the theme, inherited by every
     element (UI check N3 of Project › Metrics) */
  color-scheme: light;
  /* text: a role sets colour, weight and size together (Text, typography.css) */
  --text-title: #666;
  --text-name: #333;
  --text-content: #333;
  /* labels, facts, hints, meta, a list's column heads: light enough that the content stands before them, below 4.5:1 by
     kind (styleguide 1.1, Lc 62 on white) */
  --text-secondary: #8a8a8a;
  /* accompanying text straight on the page's grey or on glass over it (the login's labels, a loader's text, the footer, a
     tab or a section of the settings column): as light as that ground allows, Lc 60–64 there (styleguide 1.1) */
  --text-on-gray: #5f5f5f;
  /* a link or an action that wants attention (5.27:1 on the card ground; the primary #1976d2 is 4.22:1 there) */
  --text-link: #1565c0;
  /* a placeholder in a value's syntax highlighting (the editor's {{count}}): set apart from the words around it, no
     action; the link's values */
  --text-placeholder-syntax: #1565c0;
  /* placeholders and disabled text, below 4.5:1 by kind (1.1, APCA Lc 30): a field never looks filled in */
  --text-quiet: #8a8a8a;
  --text-on-primary: #fff;

  /* grounds */
  --ground-card: rgba(255, 255, 255, 0.65);
  --ground-box: #fff;
  /* set apart inside a box, a card or a dialog: code, a value to copy, a row out of play; a step from the ground it
     lies on (#f5f5f5 on white, #ebebeb on a dialog's grey), so it needs no value per ground */
  --ground-subtle: rgba(0, 0, 0, 0.04);
  /* a dialog in the card's tone, so a box, a tile or a list's box stands out on it as on a card (Jan, 11-09; was #fff,
     the box's own white) */
  --ground-dialog: #f5f5f5;
  --ground-field: rgba(255, 255, 255, 0.5);
  /* a secondary button, an icon button's resting ground */
  --ground-control: #fff;
  --ground-hover: rgba(0, 0, 0, 0.05);
  /* a menu's quiet glass (styleguide 2.4): 60 % white over a blur of 12 px */
  --ground-menu: rgba(255, 255, 255, 0.6);
  /* a side column's glass, paler than the header, and its hairline, the header's line too (styleguide 1.5, 3.6); also a
     band on it (the editor's list head) */
  --ground-side-column: rgba(255, 255, 255, 0.5);
  --line-hairline: rgba(0, 0, 0, 0.08);
  /* a ground carrying white text: a primary button, the chosen plan's column (white 4.6:1); the same in dark, where
     --locize-primary lightens for text */
  --ground-primary: #1976d2;

  /* lines */
  --line-divider: #ddd;
  --line-border: #b4b4b4;

  /* a state's ground and line (a notification, styleguide 2.9) */
  --ground-info: #dce8f5;
  --ground-success: #e6f5de;
  --ground-warning: #fff8e1;
  --ground-error: #fceaea;
  --line-info: #5c9bda;
  --line-warning: #ffe082;

  /* icons: an icon in a line of text takes its text's colour */
  --icon-meaning: #8a8a8a;
  /* kept back behind the label, at least quiet text's Lc 30 (1.1, Jan 11-03): Lc 52 on white, 45.5–48 on the card
     ground */
  --icon-help: #9e9e9e;
  --icon-action: #1565c0;
  --icon-disabled: #dedede;
  /* 3.83:1 on white; #e67a00 was 2.94:1 */
  --icon-warning: #c76a00;
  /* a state as an icon or a surface (3:1, WCAG 1.4.11); the state's text keeps --locize-state-error and -success (4.5:1) */
  --icon-error: #c00000;
  --icon-success: #2e7d32;
  /* the info state's icon (an info notification): 4.63:1 on its ground --ground-info */
  --icon-info: #1565c0;
  --icon-review: #0672b1;
  /* a value overridden on a tenant: its own role, not green (it is translated too) nor another state's; 5.42:1 on white,
     a white icon on it 5.42:1 */
  --icon-overridden: #7b4fd0;
  /* a spot on a screenshot (the screenshot's page, the editor's panel): the picture keeps its own colours, mostly light,
     in both themes, so a spot keeps these light values in both, no dark ones below (on white: the key's 5.75:1, the
     suggestion's 3.83:1; the dark theme's #6aaef0 and #ff8700 stood at 2.35 and 2.41:1, UI check of Screenshots S8) */
  --spot-link: #1565c0;
  --spot-suggestion: #c76a00;
  --spot-chosen-ground: rgba(0, 0, 0, 0.05);
  --spot-handle-ground: #fff;
  /* the state "ordered" (a state's circle, its part of a ring); a white icon on it 3.43:1, #e67a00 was 2.94:1 */
  --icon-ordered: #d47000;
  /* a favourite's star, filled yellow without an edge, as favourites are elsewhere; off it stays light (Jan, 11-03,
     code review 20e4087f J8) */
  --icon-favourite: #ffbe00;
  /* a chart's categories, in this order: IBM Carbon's categorical palette for its light theme, the first eight
     (@carbon/charts _color-palette.scss, values from @carbon/colors); each 3.3:1 or more on the box, and told apart with
     a colour vision deficiency too (Jan, 11-11). A ninth and more fold into "other" */
  --chart-1: #6929c4;
  --chart-2: #1192e8;
  --chart-3: #005d5d;
  --chart-4: #9f1853;
  --chart-5: #fa4d56;
  --chart-6: #520408;
  --chart-7: #198038;
  --chart-8: #002d9c;
  --chart-other: #8d8d8d;
  /* a period not billed yet: its bars striped with the box's ground */
  --chart-stripe: rgba(255, 255, 255, 0.55);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  /* a scrollbar dark too: macOS draws its own by the system's appearance, not by `color-scheme` (measured in Chrome 156,
     UI check N3 of Project › Metrics); the handle in the border's role, the track the ground below it */
  scrollbar-color: var(--line-border) transparent;
  --text-title: #c9ced4;
  --text-name: #e2e2e2;
  --text-content: #e2e2e2;
  /* on the box #30353c and the card #262a30: 5.0–6.4:1 */
  --text-secondary: #a6adb5;
  --text-on-gray: #a6adb5;
  /* 6.13:1 on the card, 5.25:1 on a box */
  --text-link: #6aaef0;
  --text-placeholder-syntax: #6aaef0;
  /* measured on the dark field #23272c: 4.35:1, APCA Lc 36.4 (recheck 11-02), so above the kind's Lc 30 */
  --text-quiet: #8a8a8a;
  --text-on-primary: #fff;

  --ground-card: rgba(38, 42, 48, 0.7);
  --ground-box: #30353c;
  --ground-subtle: #2b2f35;
  --ground-dialog: #262a30;
  --ground-field: #23272c;
  --ground-control: #3a4048;
  --ground-hover: rgba(255, 255, 255, 0.08);
  --ground-menu: rgba(38, 42, 48, 0.7);
  /* the card's rgba(38, 42, 48) at 45 % instead of 70 % */
  --ground-side-column: rgba(38, 42, 48, 0.45);
  --line-hairline: rgba(255, 255, 255, 0.08);
  --ground-primary: #1976d2;

  --line-divider: rgba(255, 255, 255, 0.1);
  --line-border: #555b63;

  /* a state's colour at 12 % on the dark grounds, info a dark blue (Jan, 10-23: the light grounds left #e2e2e2 at
     1.12:1); text on them 8.9–9.2:1 */
  --ground-info: #23384f;
  --ground-success: rgba(108, 198, 68, 0.12);
  --ground-warning: rgba(255, 193, 7, 0.12);
  --ground-error: rgba(255, 123, 114, 0.12);
  --line-warning: rgba(255, 224, 130, 0.45);

  --icon-meaning: #a6adb5;
  /* kept back behind the label, as quiet text: Lc 30 on the box, 32.5 in a dialog (Jan, 11-03, with the outlined
     glyph; #9ca3ab, 4.9:1, stood nearly as bright as the label, #737a82 at Lc 25 below quiet; before it #555b63,
     Lc 12, unseen) */
  --icon-help: #7d848c;
  --icon-action: #6aaef0;
  --icon-disabled: #555b63;
  /* the bright orange keeps 5.13:1 on dark */
  --icon-warning: #ff8700;
  /* 4.13:1 against a tile, a dark icon on it 4.82:1; the text's #ff7b72 is paler */
  --icon-error: #ff5f56;
  --icon-success: #6cc644;
  /* 5.10:1 on --ground-info */
  --icon-info: #6aaef0;
  /* 4.34:1 against a tile, a dark icon on it 5.06:1 */
  --icon-review: #4c9aff;
  /* 5.05:1 against a tile, a dark icon on it 5.89:1 */
  --icon-overridden: #b794f6;
  /* a dark icon on it 4.91:1 */
  --icon-ordered: #e67a00;
  --icon-favourite: #ffbe00;
  /* Carbon's palette for its dark theme; places 1 and 3 one or more steps lighter (purple 30, teal 50), as Carbon's
     purple 60 and teal 60 stay below 3:1 on this box */
  --chart-1: #d4bbff;
  --chart-2: #33b1ff;
  --chart-3: #009d9a;
  --chart-4: #ff7eb6;
  --chart-6: #fff1f1;
  --chart-7: #6fdc8c;
  --chart-8: #4589ff;
  --chart-stripe: rgba(48, 53, 60, 0.55);
}

:root {
  --locize-white: #fff;
  /* light text on a coloured ground, a step below white: small print beside a white title (the login's legal hint) */
  --locize-lightText: #f8f8f8;

  --locize-primary: #1976d2;
  --locize-primaryDark: #15419a;
  --locize-primaryLight: #2196f3;
  --locize-primaryHover: #1565c0; /* a button's hover, darker than its ground: white 5.75:1 (was #4b8dce, about 3.6:1) */
  --locize-primaryNotification: #5c9bda;
  /* keyboard focus: a link's or button's ring, a field's underline; its own variable, as primaryDark is also a ground
     under white text (Tab) and cannot lighten in the dark theme */
  --locize-focus: #15419a;

  --locize-brightOrange: #ff8700;

  --locize-red: #d50000;
  --locize-blue: #0099cf;
  --locize-darkBlue: #002957;
  --locize-green: #54a229;

  --locize-textGray: var(--text-content);
  --locize-darkGray: var(--text-content);
  --locize-middleGray: var(--line-border);
  --locize-lightGray: #dedede;
  /* clearly lighter than entered text (#333), so a field never looks filled in; an exception to 4.5:1 (Jan, 10-22):
     2.5:1 in a field on the login's blue glass, 3.45:1 on white; #c9c9c9 before (1.6:1 on white) */
  --locize-placeholderGray: var(--text-quiet);
  /* text straight on the page's grey, where #666 fails (a loader's text, 6.4:1); labels and hints on a box and the card
     ground take the secondary text since 10-30 (styleguide 1.1); #979797 before (2.9:1 on white) */
  --locize-labelGray: var(--text-on-gray);
  /* text colours of styleguide 1.1, each used for what its name says (Jan, 10-23): secondary text on every ground
     (5.74:1 on white), the primary as text straight on the card ground (5.27:1; the primary is 4.22:1 there), an icon
     that means something (3.45:1, WCAG 1.4.11) */
  --locize-secondaryText: var(--text-secondary);
  --locize-primaryText: var(--text-link);
  --locize-mutedIcon: var(--icon-meaning);
  /* a help link (HelpLink): the help role, kept back behind the content beside it (Jan, 10-28), at quiet
     text's Lc 30 (Jan, 11-03) */
  --locize-helpIcon: var(--icon-help);
  /* an inactive tab's or section's text (styleguide 2.11, 3.6): darker than the secondary text, as it stands on glass
     over the page grey (6.08:1 at its lightest; #666 gave 4.35:1 at the darkest; ui check of the settings list R6) */
  --locize-tabText: var(--text-on-gray);
  /* a panel inside a card (the version card's languages column, an empty tile; R21 of the ui check) */
  --locize-panel: rgba(255, 255, 255, 0.5);
  /* a value to copy, set in monospace (a new key's secret, a snippet); was only a #f5f5f5 fallback, light also in dark */
  --locize-codeBackground: var(--ground-subtle);
  /* an icon that is there but not offered (a pager's arrow at the first or last page) */
  --locize-disabledIcon: var(--icon-disabled);
  --locize-backgroundGray: #ededed;
  /* the surfaces' bevel: a light edge top left, a dark one bottom right; cards, tiles, buttons and panels add their
     own outer shadow after it (code review up to c24c7bc1, 17 copies before) */
  --locize-bevel: inset 1px 1px 1px rgba(255, 255, 255, 0.1), inset -1px -1px 1px rgba(61, 67, 69, 0.3);
  /* a floating panel's shadow (a menu, the editor's list of shortcuts; styleguide 2.4) */
  --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  /* the bevel's width: a surface pulled to its card's bottom edge stops this short of it, so the dark edge stays seen
     (the version page's languages, Jan 11-04; the same in dark) */
  --locize-bevel-edge: 1px;
  /* the selection of a box (styleguide 1.1): its ground, a ring in the primary at 76 % and the box's shadow in blue;
     a tile, a filter that is on, a search with text (code review up to 689ec6f8, three copies before) */
  --locize-selection: #f9fcff;
  /* the ring alone, for a selected part without the box's glow (a pill, styleguide 2.17; code review f71c3fd5 J4) */
  --locize-selection-ring: inset 0 0 0 1px rgba(25, 118, 210, 0.76);
  --locize-selection-shadow: var(--locize-selection-ring), 0 0 20px 5px rgba(25, 118, 210, 0.12);

  /* locize refresh end 24 */
  --locize-cream-darkBlue: #6484c4;
  --locize-cream-lightBlue: #b4d9fd;
  --locize-cream-borderBlue: #b6d5f1;
  --locize-cream-bgBlue: #dceeff;
  --locize-cream-borderGray: var(--line-divider);
  --locize-cream-borderDarkGray: var(--line-divider);
  --locize-cream-bgGray: #f5f5f5;
  --locize-cream-inputLine: #afb3b6;

  --locize-locizeOrange: #df7800;
  --locize-locizeFuchsia: #c90a79;
  --locize-locizeBrightBlue: #0099cf;
  --locize-locizeRed: #d50000;
  --locize-locizeGreen: #54a229;

  --locize-locizeDarkRed: #e35102;
  --locize-locizeLightRed: #ff495c;
  --locize-locizeOcher: #b0851e;
  --locize-locizeYellow: #ffd923;
  --locize-locizePurple: #762057;
  --locize-locizeMagenta: #e13eaf;
  --locize-locizePetrol: #006241;
  --locize-locizeTurquoise: #00c18b;
  --locize-locizeBlue: #1d4f90;
  --locize-locizeLightBlue: #129be0;
  --locize-locizeDarkBrown: #512c1d;
  --locize-locizeLightBrown: #bc6124;

  --locize-tag-0: #eb5a46;
  --locize-tag-1: #ffab4a;
  --locize-tag-2: #f2d600;
  --locize-tag-3: #77e262;
  --locize-tag-4: #61bd4f;
  --locize-tag-5: #519839;
  --locize-tag-6: #0672b1;
  --locize-tag-7: #00c2e0;
  --locize-tag-8: #c377e0;
  --locize-tag-9: #4d4d4d;
  /* a tag's text on its colour by APCA, whichever of white and #1a1a1a reads stronger (styleguide 2.10; Jan, 10-29: the
     colours are given; WCAG 2's ratio put dark text on the red, dark green and purple, which read worse than white) */
  --locize-tag-text-0: #fff;
  --locize-tag-text-1: #1a1a1a;
  --locize-tag-text-2: #1a1a1a;
  --locize-tag-text-3: #1a1a1a;
  --locize-tag-text-4: #1a1a1a;
  --locize-tag-text-5: #fff;
  --locize-tag-text-6: #fff;
  --locize-tag-text-7: #1a1a1a;
  --locize-tag-text-8: #fff;
  --locize-tag-text-9: #fff;

  --locize-tag-bg-0: #f5ada3;
  --locize-tag-bg-1: #ffd5a5;
  --locize-tag-bg-2: #f9eb80;
  --locize-tag-bg-3: #bbf1b1;
  --locize-tag-bg-4: #b0dea7;
  --locize-tag-bg-5: #a8cc9c;
  --locize-tag-bg-6: #80bcdf;
  --locize-tag-bg-7: #80e1f0;
  --locize-tag-bg-8: #e1bbf0;
  --locize-tag-bg-9: #a6a6a6;

  --locize-state-info: #2980b9;
  --locize-state-warning: #e67a00;
  /* a warning icon (styleguide 1.1): 3.83:1 on white, #e67a00 was 2.94:1; not for text, darker orange turns brown */
  --locize-warningIcon: var(--icon-warning);
  /* #d50000 before; #c00000 reaches 3:1 as an error icon also on the login's blue glass (Jan, 10-22) */
  --locize-state-error: #c00000;
  /* #54a229 before (2.9:1 as text on the card); #2e7d32, the success green of styleguide 1.1, 4.7:1 there (Jan, 10-22) */
  --locize-state-success: #2e7d32;
  --locize-state-untranslated: #ccc;
  --locize-state-danger: #c0392b;
}

/* dark theme (execution Q4; values from the commit prototype's dark.css): data-theme="dark" on <html> */
:root[data-theme='dark'] {
  --locize-state-success: #6cc644;
  /* #c00000 is 2.2:1 on the dark panel; #ff7b72 5.7:1, as --locize-red in the content and
     dialogs (Jan, 10-25, code review up to 3c28e328) */
  --locize-state-error: #ff7b72;
  /* a ring's untranslated part, the prototype's value: 1.8:1 on a box #30353c, as #ccc's 1.6:1 on white; #ccc was
     7.7:1 there, brighter than the secondary text, and fought the name (Jan, 10-24, styleguide 1.1) */
  --locize-state-untranslated: #555b63;
  /* the dark primary, as the prototype's ring: 6.13:1 on the card, 5.25:1 on a box (#15419a 1.55 and 1.33:1) */
  --locize-focus: #6aaef0;
  /* one step between the card #262a30 and a tile #30353c (styleguide 2.2) */
  --locize-panel: #2b2f35;
  /* on a dark ground the light edge fainter and the dark edge deeper than on white */
  --locize-bevel: inset 1px 1px 1px rgba(255, 255, 255, 0.05), inset -1px -1px 1px rgba(0, 0, 0, 0.4);
  /* deeper on the dark page */
  --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  /* the selection: values from the commit prototype's dark.css */
  --locize-selection: #2a3b50;
  --locize-selection-ring: inset 0 0 0 1px #6aaef0;
  --locize-selection-shadow: var(--locize-selection-ring), 0 0 20px 5px rgba(106, 174, 240, 0.12);
}

:root {
  /* --cat-ui-font-10px: 10px;
  --cat-ui-font-12px: 12px;
  --cat-ui-font-13px: 13px;
  --cat-ui-font-14px: 14px;
  --cat-ui-font-15px: 15px;
  --cat-ui-font-16px: 16px;

  --cat-ui-font-lineheight-10px: 12px;
  --cat-ui-font-lineheight-12px: 14px;
  --cat-ui-font-lineheight-13px: 15px;
  --cat-ui-font-lineheight-14px: 17px;
  --cat-ui-font-lineheight-15px: 18px;
  --cat-ui-font-lineheight-16px: 20px; */

  --locize-font-family-primary: 'Roboto Condensed', Roboto, Arial, Helvetica, sans-serif;
  --locize-font-family-readable: -apple-system, 'system-ui', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --locize-font-family-monospace: 'JetBrainsMono', monospace;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--locize-font-family-readable);
  font-weight: 300;
  color: var(--locize-darkGray);
  margin: 0;
  padding: 0;
  font-optical-sizing: auto;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

.container-padding {
  padding: 16px;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* under 300 ms and still for reduced motion (styleguide 1.6 Motion); 0.82 s before */
.shake {
  animation: shake 0.25s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@media (prefers-reduced-motion: reduce) {
  .shake {
    animation: none;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

/* with reduced motion the spinner stands; its icon still shows the wait (styleguide 1.6) */
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

.fadeIn {
  animation: fadeIn 2s ease;
}

.loading-ellipsis:after {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  animation: ellipsis-animation steps(1, end) 2s infinite;
  content: "\2026";
  /* ascii code for the ellipsis character */
}

@keyframes ellipsis-animation {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  25% {
    clip-path: inset(0 66.6% 0 0);
  }

  50% {
    clip-path: inset(0 33.3% 0 0);
  }

  75% {
    clip-path: inset(0 0 0 0);
  }
}

/* a loader's ellipsis stands as "…" (styleguide 2.14); after its rule, as a media query adds no weight */
@media (prefers-reduced-motion: reduce) {
  .loading-ellipsis:after {
    animation: none;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
::-webkit-scrollbar-thumb {
  background: #96afc3;
  border: 0px none #ffffff;
  border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}
::-webkit-scrollbar-thumb:active {
  background: #ffffff;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border: 0px none #ffffff;
  border-radius: 50px;
}
::-webkit-scrollbar-track:hover {
  background: rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-track:active {
  background: rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

.rounded-shadow-parent {
  z-index: 1;
}
.rounded-shadow {
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.rounded-shadow:after {
  content: '';
  position: absolute;
  z-index: -1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  bottom: 4px;
  left: 10%;
  right: 10%;
  width: 80%;
  height: 15%;
  border-radius: 100%;
}

/* the spacing roles (styleguide 1.3, the style model of 11-02): a gap follows the relation of the two things it parts,
   never a number on a page. A page names the relation through the layout components (Stack, Inline, Box, Grid, the
   layout); where it still needs CSS of its own, that CSS reads these variables, never a value:
   part     the pieces of one part: an icon and its text, the lines of an entry, a field and its hint, the tags of a value
   group    the parts of a group: button beside button, an avatar and its name, the options of a list, links side by side
   section  the groups in a container: field to field, cell to cell, a title to its first part, the content to its
            buttons
   boxes    boxes side by side in a container (tiles, a card's boxes): one step closer than its inset, so they read as
            one group (Jan, 11-02: at 16 they stood as far apart as from the card's edge)
   inset    the content to a container's edge: a box, a card, a dialog; compact a row, a notification, a tag
   layout   container to container: card to card, a card to the page's head */
:root {
  --space-part: 4px;
  --space-group: 8px;
  --space-section: 16px;
  --space-boxes: 12px;
  --space-inset: 16px;
  --space-inset-compact: 8px;
  --space-layout: 24px;
}

/* the large steps of the 4 px scale (styleguide 1.3): below 768 px each takes one step less, the steps up to 16 stay */
:root {
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
}

/* below 768 px only the layout's gap shrinks; part, group, section and inset stay */
@media (max-width: 767.98px) {
  :root {
    --space-layout: 16px;
    --space-24: 16px;
    --space-32: 24px;
    --space-48: 32px;
  }
}

.grayscale {
  filter: url("data:image/svg+xml;utf8,&lt;svg xmlns='http://www.w3.org/2000/svg'&gt;&lt;filter id='grayscale'&gt;&lt;feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale"); /* Firefox 10+, Firefox on Android */
  filter: gray; /* IE6-9 */
  -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}

body {
  color: var(--text-content);
  margin: 0;
  padding: 0;

  font-family: var(--locize-font-family-readable);
  font-weight: 300;
  font-optical-sizing: auto;
}

strong {
  font-weight: 600;
}

/* no opacity on text (the style model of 11-02): at 0.9 a link fell below 4.5:1 on the page's grey and in the news, the
   help icon below Lc 45 (recheck 11-02, U10) */
a {
  color: inherit;
  /* a plain link (styleguide 2.5): the text's colour, the underline muted from it (#333 gives about #8a8a8a on a
     card, a light link a light line), in full on hover */
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

/* a Button with `to` is an `a` too, it keeps a button's stillness (code review 5f99e324, J6: was outweighed by a.btn) */
a:where(:not(.btn)):hover {
  text-decoration-color: currentColor;
}

/* the link's 1 px lift in 150 ms ease-out, only with a mouse and without reduced motion (styleguide 1.6) */
a:where(:not(.btn)) {
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a:where(:not(.btn)):hover {
    transform: translateY(-1px);
  }
}

/* keyboard focus on links and buttons (a click shows none); fields show theirs on their underline (InputContainer) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

.clickable:hover {
  cursor: pointer;
  opacity: 0.7;
}

ul.unstyled {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

ul.unstyled li {
  margin: 0;
  padding: 0;
}

ul.alignRight li {
  text-align: right;
}

ul.padLi li {
  padding: 2px 2px 2px 0;
}

hr {
  border: none;
  border-top: 1px solid var(--line-divider);
}

hr.primary {
  border: none;
  border-top: 1px solid var(--locize-primary);
}

/* color sets */
.fg-white {
  color: var(--locize-white);
}

.fg-success {
  /* the success state (1.1; --locize-green #54a229 was 2.9:1) */
  color: var(--icon-success);
}

/* a word that matters where its neighbours accompany (a missing 2FA where the project requires it) */
.fg-content {
  color: var(--text-content);
}

.fg-warning {
  /* the warning icon's colour (styleguide 1.1; #ff8700 was 2.4:1 on white) */
  color: var(--locize-warningIcon);
}

.fg-error {
  /* the error state's colour since 10-22 (was #d50000) */
  color: var(--icon-error);
}

.fg-primary {
  color: var(--locize-primary);
}

.fg-muted {
  color: var(--icon-meaning);
}

.fg-disabled {
  color: var(--icon-disabled);
}

.fg-middleGray {
  color: var(--text-secondary);
}

/* form */
/* a label accompanies its field: the accompanying role (styleguide 1.1, 1.2); no margin of its own, the field's Stack
   puts it a part's distance above the field (a switch's label kept the 4 px and its row grew to 22 px, recheck 11-02
   Version 5) */
label {
  font-weight: 400;
  font-family: var(--locize-font-family-readable);
  color: var(--text-secondary);
  font-size: 14px;
}

label.error {
  color: var(--locize-red);
}

/* a field's value is content (styleguide 1.2: 300), a native field and a select alike */
input,
select {
  color: var(--text-content);
  font-weight: 300;
  font-family: var(--locize-font-family-readable);
}

/* a textarea's placeholder too: it had the browser's grey, now that the style guide's parts show the organization's
   value there (styleguide 1.1, Quiet; UI check of Project › Style guide, R4) */
input::-moz-placeholder, textarea::-moz-placeholder {
  color: var(--text-quiet);
  font-weight: 300;
  font-family: var(--locize-font-family-readable);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-quiet);
  font-weight: 300;
  font-family: var(--locize-font-family-readable);
}

/* markdown */
span p:first-child {
  margin-top: 0;
}

span p:last-child {
  margin-bottom: 0;
}
ul.dropdown-menu {
  margin: 0 -8px;
  width: calc(100% + 16px) !important;
  padding: 0;
  list-style-type: none;
}

ul.dropdown-menu li {
  margin: 0;
  padding: 4px 8px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 15px;
  font-family: 'Roboto Condensed', Roboto, Arial, Helvetica, sans-serif;
  font-weight: 400;
  text-align: left;
  color: var(--locize-lightGray);
}

ul.dropdown-menu a {
  text-decoration: none;
}

ul.dropdown-menu li.active {
  background-color: #15419aad;
  color: var(--text-secondary);
  font-style: italic;
  border-radius: 15px;
}

ul.dropdown-menu li a:hover,
ul.dropdown-menu li:hover {
  background-color: #15419aad;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 15px;
}

.modallayout-container {
  position: relative;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.authlayout-container {
  background: var(--locize-primaryLight);
  background: linear-gradient(180deg,
      rgba(33, 150, 243, 0.8) 0%,
      rgba(33, 150, 243, 0.8) 59%,
      rgba(25, 118, 210, 0.8) 100%);
  position: relative;
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* keyboard focus on a link straight on the blue (the logo, the legal hint): white, the logo's colour; the dark
   primary of base.css reaches only 2.7–3.7:1 here */
.authlayout-container a:not(.card *):focus-visible {
  outline-color: var(--locize-white);
}

/* a field's label on the login's blue glass keeps the label grey: the secondary grey of a box reaches only 3.1–3.4:1
   there, #484848 4.9–5.4:1 (measured on #9cc2ed–#a5caf2, styleguide 1.1 "Contrast by importance", 10-30) */
.authlayout-container label {
  color: var(--text-on-gray);
}

/* a failed step's result on the button (styleguide 2.5): on the blue glass the red read 3.29–3.73:1; the field's ground
   under it, as under a field (5.27–5.54:1, recheck Login 1) */
.authlayout-container .btn.btn-error {
  background-color: var(--ground-field);
}

/* the legal links under the login's card: small print a group below it, a step below white on the blue */
.legal-hint {
  margin-top: var(--space-group);
  text-align: center;
  color: var(--locize-lightText);
  font-size: 12px;
}

/* holygrail layout + sticky footer: https://philipwalton.github.io/solved-by-flexbox/ */
html,
body,
#root {
  height: 100%;
}

.locize-layout {
  display: flex;
  height: 100%;
  flex-direction: column;
  background: var(--locize-primaryLight);
  background: linear-gradient(180deg,
      rgba(33, 150, 243, 0.8) 0%,
      rgba(33, 150, 243, 0.8) 59%,
      rgba(25, 118, 210, 0.8) 100%);
  position: relative;
  width: 100%;
  overflow: hidden;
}

.locize-layout.locize-layout-gray {
  background: var(--locize-backgroundGray);
  background: linear-gradient(180deg,
      rgba(234, 234, 234, 0.9) 0%,
      rgba(219, 219, 219, 0.9) 59%,
      rgba(199, 199, 199, 0.9) 100%);
}

/* the light header of styleguide 2.15 (1.5 Surfaces and glass): in the flow above the body, so the content starts below
   it at whatever height it has */
.locize-layout-header {
  position: relative;
  z-index: 1000000;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  /* the hairline as the side columns' (colors.css), so the editor's list head below has the same line */
  box-shadow: inset 0 -1px 0 var(--line-hairline);
}

.locize-layout-header,
.locize-layout-footer {
  flex: none;
}

.locize-layout-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  min-height: 0;
  /* a long word in a page never widens the body past the window (styleguide 1.4) */
  min-width: 0;
}

.locize-layout-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* as high as the body, its padding inside: calc(100% - 10px) plus 24 + 8 of padding ran 22 px past the window and cut
     the footer by 14 (recheck 11-02, Users 14) */
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
  /* room for the scrollbar kept, so the page does not shift sideways once it grows past the window (Jan, 10-30: the
     right column moved 7 px while a page loaded); on both edges, so the content stands as far from the left as from
     the right while nothing scrolls (Jan, 11-03: the overview stood 24 px from the left, 34 from the right) */
  scrollbar-gutter: stable both-edges;
  overflow-x: hidden;
  /* the cards as far from the header as from the sides and from each other (styleguide 1.3; Jan, 10-30: 16 above
     against 24 beside read uneven) */
  padding: var(--space-layout) 0 8px 0;
}

.locize-layout-content {
  flex: 1 0 auto;
  padding: 0 var(--space-layout);
  /* less its padding on both sides (content-box) */
  width: calc(100% - 2 * var(--space-layout));
}

.locize-layout-content::after {
  content: '\00a0';
  /* &nbsp; */
  display: block;
  margin-top: '0';
  height: 0px;
  visibility: hidden;
}

/* loader.fullpage if nested in defaultlayout */
.locize-layout-content .authlayout-container {
  background: transparent !important;
}

/* the column on the left (aside): below 768 px it gives way to its copy (below) */
.locize-layout-aside {
  display: none;
}

/* from 768 px the column stands beside the content, 32 px to it, not 24 (the cards' shadow reaches about 25 px; Jan,
   10-26); the page's columns follow their own room (Columns, locize-client) */
@media (min-width: 768px) {
  .locize-layout-aside {
    display: flex;
    flex: none;
  }

  /* beside the column the scrollbar's room on the right only: the column's 32 px stand on the left as it does (32
     against 24 and the room on the right) */
  .locize-layout-aside:not(:empty) + .locize-layout-content-wrapper {
    scrollbar-gutter: stable;
  }

  .locize-layout-aside:not(:empty) + .locize-layout-content-wrapper .locize-layout-content {
    padding-left: var(--space-32);
    width: calc(100% - var(--space-32) - var(--space-layout));
  }

  /* the footer below the content only, also 32 px off the column */
  .locize-layout-aside:not(:empty) + .locize-layout-content-wrapper .locize-layout-footer {
    padding-left: var(--space-32);
  }
}

/* the column's copy at the top of the scrolling content, shown below 768 px only; a class of its own, so no rule of the
   column reaches it */
.locize-layout-aside-inline {
  display: none;
}

/* below 768 px the column gives way to its copy, which scrolls away with the content: fixed above it, the column left
   26 px to read at 400 % zoom (UI check of Backups R10, WCAG 1.4.10) */
@media (max-width: 767px) {
  .locize-layout-aside-inline:not(:empty) {
    display: flex;
    flex: none;
  }
}

/* the footer stands on the page's grey: accompanying text on grey, a link in it too (#4d4d4d before, and its links at
   0.9 opacity 3.92–4.17:1, recheck Dashboard 3); a section above it, a group below */
.locize-layout-footer {
  padding: var(--space-24) var(--space-layout) var(--space-group);
}

.locize-layout-footer,
.locize-layout-footer a {
  color: var(--text-on-gray);
}

.locize-layout-footer a {
  font-weight: 300;
  text-decoration: none;
}

/* its two parts side by side, at least a section apart, one under the other once they do not fit, a group between the
   lines; inside a part its entries a group apart, no separator, so a part still too long wraps between them without a
   stroke left at a line's end (Adriano's walk, 11-04: at 375 px "Docs" touched the version, the support address was
   cut and every page scrolled 42 px sideways; Jan, 11-05) */
.locize-layout-footer-parts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  -moz-column-gap: var(--space-section);
       column-gap: var(--space-section);
  row-gap: var(--space-group);
}

.locize-layout-footer-part {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  -moz-column-gap: var(--space-group);
       column-gap: var(--space-group);
  row-gap: var(--space-part);
}

/* a working surface (styleguide 1.4): the content fills the body, the surface's own parts scroll */
.locize-layout-surface {
  padding: 0;
  overflow: hidden;
  scrollbar-gutter: auto;
}

.locize-layout-surface > .locize-layout-content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
}

.locize-layout-surface > .locize-layout-content::after {
  content: none;
}

/* dark theme (execution Q4; values from the commit prototype's dark.css): data-theme="dark" on <html> */
/* the card's ground, as the light header takes the light card's (Jan, 10-24: at 85 % it read as a blue band) */
:root[data-theme='dark'] .locize-layout-header {
  background: rgba(38, 42, 48, 0.7);
}

/* the ground: 90 % as the light theme's grey, so the page's background image shows through */
:root[data-theme='dark'] .locize-layout.locize-layout-gray {
  background-image: linear-gradient(rgba(29, 32, 36, 0.9) 0%, rgba(23, 25, 28, 0.9) 100%);
}

/* the content's variables, also for the column beside it (aside: a settings list's line and its select's label);
   dialogs render outside it and get the same (ConfirmPrompt.css), menus in their portal on body too (Dropdown's
   layer; code review abdc222e, R5). Contrasts measured on box #30353c and card #262a30:
   text #e2e2e2 8.8–11.1:1, secondary #a6adb5 5.0–6.4:1, primary #6aaef0 4.9–6.1:1 */
:root[data-theme='dark'] .locize-layout-content-wrapper,
:root[data-theme='dark'] .locize-layout-aside,
:root[data-theme='dark'] .dropdown-layer {
  --locize-primary: #6aaef0;
  --locize-green: #6cc644;
  --locize-red: #ff7b72;
  --locize-lightGray: #4a5058;
  --locize-cream-borderGray: #454b53;
  --locize-cream-bgGray: #23272c;
}

/* A data table (DataTable.jsx, styleguide 1.4): a native `table` in a `Card.Box` that scrolls inside its box, its head,
   its total and its names sticky; at least 16rem high, so a small window (400 % zoom) keeps rows to scroll (UI check R1
   of Billing › Metrics). Grounds and lines from the roles, so it follows the theme (styleguide 1.1). A table's own width
   stays with its page */
.data-table-scroll {
  max-height: max(16rem, calc(100vh - 280px));
  overflow: auto;
  /* the names' column follows the box's width (UI check U4 of Billing › Metrics) */
  container-type: inline-size;
}

/* a table over periods opens at its end, the newest (`atEnd`; Jan, 11-11): `row-reverse` starts the scroll there, the
   table keeps its own width */
.data-table-scroll-end {
  display: flex;
  flex-direction: row-reverse;
}

.data-table-scroll-end > .data-table {
  flex: none;
}

/* the box takes the keyboard: the focus ring of 3.7, inside, as the box lies against its card's box */
.data-table-scroll:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: -2px;
}

/* the names' column fixed, the figures share the rest alike; the box's width, never its content's: the names' column
   keeps its width and cuts a long name */
.data-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.data-table th,
.data-table td {
  background: var(--ground-box);
  padding: var(--space-part);
  /* figures at their end, so their digits stand one under the other */
  text-align: end;
  white-space: nowrap;
  vertical-align: top;
}

/* a figure and its basis, one under the other */
.data-table th > span,
.data-table td > span {
  display: block;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  /* a column's head accompanies its figures (styleguide 1.1, 1.2: Text.Tertiary), so no page sets it */
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  padding-bottom: var(--space-group);
  border-bottom: 1px solid var(--line-divider);
}

.data-table tfoot th,
.data-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding-top: var(--space-group);
  border-top: 1px solid var(--line-divider);
}

/* the row's name, cut at its end (styleguide 2.16), the whole name in its tooltip; at most 160 px, less than
   half a narrow box */
.data-table th:first-child {
  width: min(160px, 45cqw);
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: start;
}

/* the corner over the names that scroll under it, at its head and at its total */
.data-table thead th:first-child,
.data-table tfoot th:first-child {
  z-index: 3;
}

.data-table tbody tr:first-child > * {
  padding-top: var(--space-group);
}

.data-table tbody tr:last-child > * {
  padding-bottom: var(--space-group);
}

.data-table tbody tr:hover > * {
  background-image: linear-gradient(var(--ground-hover), var(--ground-hover));
}

.btn.icon-btn {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
  backdrop-filter: blur(4px);
  /* the ground, text and shadow per theme (Button.css, dark theme): in light the primary's, in dark the control's;
     a transparent one keeps the icon's text colour, its ground stays transparent (Jan, 10-24) */
  --btn-ground: var(--btn-icon-ground, var(--ground-primary));
  --btn-text: var(--btn-icon-text, var(--locize-white));
  box-shadow: var(--btn-raised, var(--locize-bevel), 0 0 5px 3px rgba(0, 0, 0, 0.05));
  --btn-transparent-text: var(--btn-icon-text, var(--locize-primaryText));
}

/* the bevel as every button's (styleguide 1.5, layer 5, Jan 10-24; was a fainter dark edge, 0.08 and 0.1) */
/* not when on: it keeps the selection under the pointer, as a secondary button (Button.css); not a transparent one,
   whose hover is a tint under its own text (Button.css, styleguide 2.5) */
.btn.icon-btn:not(:is(:disabled, [aria-disabled='true']), .btn-active, .btn-transparent):hover {
  color: var(--locize-white);
  box-shadow: var(--btn-raised, var(--locize-bevel), 0 0 5px 3px rgba(0, 0, 0, 0.05));
}

.btn.icon-btn.icon-btn-secondary {
  background-color: var(--btn-icon-ground, var(--locize-white));
  color: var(--btn-icon-text, var(--locize-textGray));
}

.btn.icon-btn.icon-btn-moreshadow {
  box-shadow: var(--btn-raised-strong, var(--locize-bevel), 0 0 5px 3px rgba(0, 0, 0, 0.3));
}

.btn.icon-btn.icon-btn-secondary:not(:is(:disabled, [aria-disabled='true']), .btn-active):hover {
  background-color: var(--locize-primaryHover);
  color: var(--locize-white) !important;
}

/* the lift only with a mouse and without reduced motion (styleguide 1.6, Button.css) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn.icon-btn.icon-btn-secondary:not(:is(:disabled, [aria-disabled='true']), .btn-active):hover {
    transform: translateY(-1px);
  }
}

.btn.icon-btn.btn-transparent {
  backdrop-filter: unset;
}

.btn.icon-btn:is(:disabled, [aria-disabled='true']) {
  box-shadow: none;
}

.icon-btn-opacity {
  opacity: 0.2;
}

.icon-btn-opacity:hover {
  opacity: 1;
}

.layout-container {
  background: var(--locize-primaryLight);
  background: linear-gradient(
    180deg,
    rgba(33, 150, 243, 1) 0%,
    rgba(33, 150, 243, 1) 59%,
    rgba(25, 118, 210, 1) 100%
  );
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.icon-base {
  font-size: 24px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.icon-clickable {
  cursor: pointer;
}

/* Stack, Inline and Spaced (styleguide 1.3): the gap between the parts, not margins on them. The class names stay
   Spaced's, which cat-ui.css's old copy of the `.spaces` rules does not match (code review f71c3fd5 J1). */
.lz-spaced {
  display: flex;
  gap: var(--lz-gap);
  /* may shrink below its content in a row or a grid cell, so a name inside is cut to its room */
  min-width: 0;
}

/* the relations of the style model (Jan, 11-02) */
.lz-gap-part {
  --lz-gap: var(--space-part);
}

.lz-gap-group {
  --lz-gap: var(--space-group);
}

.lz-gap-section {
  --lz-gap: var(--space-section);
}

.lz-gap-boxes {
  --lz-gap: var(--space-boxes);
}

/* Spaced's two large steps, for the pages not yet rebuilt on the model */
.lz-gap-wide {
  --lz-gap: var(--space-24);
}

.lz-gap-widest {
  --lz-gap: var(--space-48);
}

.lz-spaced-y {
  flex-direction: column;
}

/* the rest of a row (Stack and Text `grow`), so a name inside is fitted to the room, not to itself */
.lz-grow {
  flex: 1 1 0;
  min-width: 0;
}

/* side by side, wrapping, on one baseline */
.lz-spaced-x {
  flex-wrap: wrap;
  align-items: baseline;
}

/* Inline `fields`: each field shares the row and wraps below 10rem (two fit a 400 px dialog, not one at 320 px);
   wrapped, its fields stand as far apart as a form's fields one under the other */
.lz-spaced-x.lz-fields {
  align-items: flex-start;
  row-gap: var(--space-section);
}

.lz-spaced-x.lz-fields > * {
  flex: 1 1 10rem;
}

.lz-spaced-x.lz-nowrap {
  flex-wrap: nowrap;
}

.lz-spaced-x.lz-align-center {
  align-items: center;
}

.lz-spaced-x.lz-align-start {
  align-items: flex-start;
}

.lz-spaced-x.lz-align-end {
  align-items: flex-end;
}

.lz-spaced-x.lz-justify-end {
  justify-content: flex-end;
}

/* pair: a name and its value, the value right while both fit, under the name once they do not (Jan, 11-08, 11-19) */
.lz-spaced-x.lz-justify-between,
.lz-spaced-x.lz-justify-pair {
  justify-content: space-between;
}

/* what stands right stays right when the line wraps (styleguide 1.4): space-between puts a part alone on its line at the
   start; a part alone in the whole line (its partner not rendered) stays where it is */
.lz-spaced-x.lz-justify-between > :last-child:not(:first-child) {
  margin-inline-start: auto;
}

/* Inline `line`: a part that does not fit wraps into the hidden second line, so it drops whole. 24 px high: a version's
   ring in lists is 24 px (2.13). Positioned, so the hidden line also hides absolute parts (a ring's check) */
.lz-spaced-x.lz-line {
  position: relative;
  align-items: center;
  height: 24px;
  overflow: hidden;
  line-height: 24px;
}

.lz-line > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-part);
  white-space: nowrap;
}

/* the dot between parts: a part from each, its right one the part's own gap; accompanying, as the facts it parts */
.lz-line > span + span::before {
  content: '·';
  color: var(--text-secondary);
}

/* a part keeps no margin of its own along the axis (the style model: no part's own margin outward; a `p`, a label, a
   hint kept theirs and added to the gap, recheck 11-02) */
.lz-spaced.lz-spaced-y > :not(hr) {
  margin-top: 0;
  margin-bottom: 0;
}

.lz-spaced.lz-spaced-x > * {
  margin-left: 0;
  margin-right: 0;
}

/* a hint belongs to the part above it (a field): a part's distance to it, not the Stack's gap; in the flow, so its room
   goes with it (the hint was moved up with `top` before and left a hole of one gap below it, recheck 11-02 U7); not
   after a notification, which keeps its section to what follows (styleguide 1.3; an error over the organization's
   style guide hint stood 4 px above it, Jan 11-06) */
.lz-spaced.lz-spaced-y > :not(.notification) + .hint {
  margin-top: calc(var(--space-part) - var(--lz-gap));
}

/* a line keeps the browser's 8 px where the gap is smaller, and its width: its auto side margins would shrink it to
   nothing in a column */
.lz-spaced.lz-spaced-y > hr {
  margin: max(0px, calc(8px - var(--lz-gap))) 0;
}

/* a text-level part keeps its own width; a column would stretch it (a link is left out: the ones found stand as blocks,
   over the whole row, code review f71c3fd5 J1) */
.lz-spaced-y > :where(span, button, label, small, strong, em, img, code, .hint, .btn) {
  align-self: flex-start;
}

/* Stack `list`: its points a part inside the column's edge, without the browser's margin */
.lz-spaced.lz-list {
  margin: 0;
  padding-left: var(--space-section);
}

/* Box: the room inside a container's edge */
.lz-inset-normal {
  padding: var(--space-inset);
}

.lz-inset-compact {
  padding: var(--space-inset-compact);
}

.lz-ground-subtle {
  background-color: var(--ground-subtle);
}

.hint {
  display: inline-block;
  font-size: 14px;
  /* the accompanying role (styleguide 1.1, 1.2): its distance to the field above it comes from the Stack (Stack.css),
     not from a margin of its own */
  color: var(--text-secondary);
  font-weight: 400;
}

/* a hint belongs to the part before it (a field, a switch): a part below it, also where no Stack places it (a switch and
   its hint in a div of their own were 0 px apart once the label lost its margin); in a Stack, Stack.css sets it */
* + .hint {
  margin-top: var(--space-part);
}

/* the darker primary, as a link straight on the card ground (1.1; primaryLight was 3.12:1) */
.hint-primary {
  color: var(--text-link);
}

/* a hint in a state: the state's icon a part before its words, both on the first line; the words keep the accompanying
   colour, the icon carries the state (Hint); never wider than its room, its words wrap a long word (a path, a
   service's answer) as a message's text (styleguide 1.4) */
.hint.hint-state {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-part);
  max-width: 100%;
}

.hint.hint-state > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* the 16 px icon on the 14 px text's first line (17 high) */
.hint.hint-state > .material-icons {
  flex-shrink: 0;
  line-height: 17px;
}

/* Text's four steps (styleguide 1.1, 1.2): colour, weight and size together */
.lz-text-primary {
  color: var(--text-name);
  font-size: 16px;
  font-weight: 500;
}

.lz-text-secondary {
  color: var(--text-content);
  font-size: 16px;
  font-weight: 300;
}

/* accompanying text: never thinner than 400 (1.1) */
.lz-text-tertiary {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
}

/* the size of its surroundings */
.lz-text-quiet {
  color: var(--text-quiet);
  font-weight: 300;
}

.lz-text-compact {
  font-size: 14px;
}

.lz-text-large {
  font-size: 22px;
}

.lz-text-small {
  font-size: 12px;
}

/* one line, cut at its end (Text `line`; a list's cell, the name in a box). A name keeps a fixed line, as a tile's: a
   fallback font for emoji made it 26 px, Arabic 19 px, and their rows 7 and 1 px higher than the others (API keys,
   10-28). In a Stack it takes the column's width, else it would grow to its text and not be cut */
.lz-text-base.lz-oneline {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lz-text-primary.lz-oneline {
  line-height: 18px;
}

/* a detail's line the same (a list's row, its second line): a fallback font for emoji made it 2 px higher, its row 1 px
   (Billing › Tenants, the parent "🚀 …"). By its size, not a fixed px: 12 px (`small`) keeps its 14 px, 14 px stands
   at 16.3 (normal 16.5) */
.lz-text-tertiary.lz-oneline {
  line-height: calc(14 / 12);
}

.lz-spaced-y > .lz-text-base.lz-oneline {
  align-self: stretch;
}

/* a key or an id (`code`): the highlight font, the system's sans, at 400 */
.lz-text-code {
  font-family: var(--locize-font-family-readable);
  font-weight: 400;
}

.card {
  position: relative;

  border-radius: 15px;

  backdrop-filter: blur(4px);
  /* every card has its shadow, as a box has its own (styleguide 2.1); a dialog's card its own (ConfirmPrompt.css) */
  box-shadow: var(--locize-bevel), var(--card-shadow, 0 0 20px 5px rgba(0, 0, 0, 0.1));
  background: var(--card-ground, linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.4)));
}

.card-white {
  background: var(--card-ground, linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95)));
}

.modallayout-container .card {
  background: var(--card-ground, var(--ground-dialog));
  backdrop-filter: none;
}

.locize-layout-gray .card {
  background: var(--ground-card);
}

.card-clickable:hover {
  cursor: pointer;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* SECTION */

.card_section {
  background: var(--locize-cream-bgGray);
  padding: 8px;
  border-radius: 6px;
  margin-top: var(--space-layout);
}

.card_section.no_margin_top {
  margin-top: 0px;
}

.card_section.card_section_blue {
  background: var(--locize-cream-bgBlue);
}

.card_section.card_section_border {
  background: transparent;
  border: solid 1px var(--locize-cream-borderGray);
}

.card_section.card_section_blue.card_section_border {
  border: solid 1px var(--locize-cream-borderBlue);
}

.card_section.card_section_not_card {
  background: transparent;
  border-radius: 0;
  margin-left: -8px;
  margin-right: -8px;
  border-top: solid 1px var(--line-divider);
}

.card_section.card_section_not_card:first-child {
  border-top: none;
  padding: 0 8px 8px;
}

/* a section to the card's bottom edge (Section toBottom): a panel beside its content reaches the card's foot (the
   version page's languages, the style guide's); after the rule above, as specific, so it wins by its place. Until code
   review b765dad5 (J1) each page overrode the padding with a parent added to its selector */
.card_section.card_section_not_card.card_section_to_bottom {
  padding-bottom: 0;
}

.card_section_title {
  color: var(--text-title);
  font-size: 22px;
  font-weight: 100;
  /* a title to its first part: a section (styleguide 1.3, the style model of 11-02; was 12, and 0 in a dialog whose
     first part was a hint, recheck 11-02 Settings 8) */
  margin: var(--space-24) 0 var(--space-section);
}

/* a title with a name in it (FitTitle) takes the room its actions leave and cuts the name, instead of sending the
   actions under it */
h5.card_section_title:has(.fit-title) {
  display: flex;
  align-items: baseline;
  flex: 1 1 0;
  min-width: 0;
}

/* a title of words stays on one line and is cut at its end (styleguide 2.1), as a name in a FitTitle is (above); it
   takes its own line before the actions and then no more than the head */
h5.card_section_title:not(:has(.fit-title)) {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* a title's actions never wider than its head: wrapped under the title they take its width at most, so a select's
   value is cut at its end instead of running past the card (styleguide 2.7, 1.4) */
.card_section_actions {
  min-width: 0;
  max-width: 100%;
}

/* a card's head with actions is a container as a list's head (Grid.css), named alike, so the rule of a head's buttons
   below 460 px (Button.css) holds in both (styleguide 3.2) */
.card_section_head {
  container: grid-head / inline-size;
}

/* an icon that leads a title belongs to the title, not to a line: a group's distance to the text (1.7); 4 px lower, so
   the 24 px icon sits on the 22 px text */
.card_section_title_icon {
  margin-right: var(--space-group);
  transform: translateY(4px);
}

/* a title above its card (the login's) */
.card_above_title {
  display: flex;
  align-items: center;
  gap: var(--space-group);
  margin-bottom: var(--space-part);
  min-height: 30px;
}

.card_above_title h4 {
  flex: 1;
  font-size: 22px;
  font-weight: 300;
  color: var(--text-on-primary);
}

/* a subtitle heads a group of parts: the name role, upright (Jan, 11-02; was 300, italic, the title's grey) */
h6.card_section_title,
.card_section_title h6 {
  color: var(--text-name);
  font-size: 16px;
  font-weight: 500;
  margin: var(--space-section) 0 var(--space-group);
}

/* a subtitle that is its field's label (FieldLabel, styleguide 2.6) keeps the subtitle's type and colour: base.css's
   label rule (14 px, 400, secondary) reached the label inside it, so a style guide part's name read as a field's label,
   while a role without the right saw the same name at 16 px, 500 (Jan, 11-06). An error's colour stays, FieldLabel sets
   it on the label itself */
h6.card_section_title label {
  font: inherit;
  color: inherit;
}

/* a subtitle between the parts of a form (a Stack): a section above it, a group below, so it reads as its parts'
   (styleguide 1.3; the style model of 11-02: 8 < 16 is enough, the 24 above went; Spaced's 15 px on every part left it
   15 px from both, the invite dialog, Jan 10-27) */
.lz-spaced-y.lz-gap-section > h6.card_section_title {
  margin-bottom: calc(var(--space-group) - var(--lz-gap));
}

/* a <small> goes one step down the scale, never thinner than 300 (styleguide 1.2, as the commit prototype's proto.css;
   the browser's 83 % made it 18.33 px at 100): 16 px in the 22 px title, 14 in the 16 px subtitle (recheck Settings 7:
   the subtitle's stayed 16) */
.card_section_title small {
  font-size: 16px;
  font-weight: 300;
}

h6.card_section_title small,
.card_section_title h6 small {
  font-size: 14px;
}

.card_section_title.no_margin_top {
  margin-top: 0px;
}

.card_section_title.no_margin {
  margin: 0px;
}

.card_section_title.flex-center {
  display: flex;
  align-items: center;
}

/* a box's action beside its content's first line (styleguide 2.1): the content takes the row down to its minimum, 40
   characters of running text (1.4); below it the action wraps alone to the top right, above the content, as
   `actionAbove` (Jan, 11-08). `wrap-reverse` stacks the wrapped line above, so the order stays content, then action, and
   turns the cross axis: `flex-end` is the top. The minimum in rem, not ch: the box sets 16 px, where 40ch is 401 px,
   while its values stand in 14 px, about 6.5 px a character, 40 of them 262 px (measured in the editor's settings, 11-08) */
.card_box_row {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  align-items: flex-end;
  gap: var(--space-group);
}

/* its text is user text: a long word (an e-mail address) breaks inside the column instead of running under the action
   or out of the box (styleguide 1.4) */
.card_box_content {
  flex: 1 1 min(16.5rem, 100%);
  min-width: 0;
  overflow-wrap: anywhere;
}

.card_box {
  background: var(--ground-box);
  color: var(--text-content);
  border-radius: 8px;
  padding: var(--space-inset);

  box-shadow: var(--locize-bevel), var(--box-shadow, 0 0 12px 2px rgba(0, 0, 0, 0.05));
}

/* a few boxes side by side (Card.Boxes): each at least its inset and 30 characters of an offer's points, the row filled,
   stacked below (1.4); the same height, a box's parts a section apart and its last part (the action) at its bottom */
.card_boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(calc(2 * var(--space-inset) + 30ch), 100%), 1fr));
  gap: var(--space-boxes);
}

.card_boxes > .card_box {
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
}

.card_boxes > .card_box > :last-child:not(:first-child) {
  margin-top: auto;
}

/* a box one clicks: under a mouse its shadow, and its 1 px lift without reduced motion, in 150 ms ease-out; a tap would
   leave it lifted (styleguide 1.6) */
.card_box.card_box_clickable {
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 150ms cubic-bezier(0.23, 1, 0.32, 1);
}

.card_box.card_box_clickable:hover {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .card_box.card_box_clickable:hover {
    box-shadow: var(--locize-bevel),
      0 0 10px 3px rgba(0, 0, 0, 0.2);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card_box.card_box_clickable:hover {
    transform: translateY(-1px);
  }
}

/* a box that is the thing chosen (`selected`): the selection's ground, ring and blue shadow, as a tile's (styleguide 1.1
   Selection) */
.card_box.card_box_selected {
  background: var(--locize-selection);
  box-shadow: var(--locize-selection-shadow);
}

/* dark theme (execution Q4; values from the commit prototype's dark.css): data-theme="dark" on <html>. Only the values,
   as variables the rules above read with their light value as fallback, so no dark rule outweighs a variant and dark
   behaves as light. A card: the dark ground on the whole layout, the side column too, its shadow deeper; not in a
   dialog, which has its own ground (ConfirmPrompt.css), nor on the login, which has no dark. A box: its shadow deeper,
   in a dialog too (a dialog hangs outside the layout) */
:root[data-theme='dark'] .locize-layout {
  --card-ground: var(--ground-card);
  --card-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.25);
}

:root[data-theme='dark'] :is(.locize-layout, .react-confirm-alert) {
  --box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.2);
}

.flex {
  display: flex;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col-rtl {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.flex-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* rendered text: its blocks a group apart, a heading a part above its text, no browser margins (the style model of
   11-02; a `p` kept 14 px on both sides, recheck Dashboard 6). The blocks sit in a span per string (Markdown.jsx) */
.locize-markdown > span > *,
.locize-markdown > * {
  margin-top: 0;
  margin-bottom: 0;
}

.locize-markdown > span > * + *,
.locize-markdown > * + * {
  margin-top: var(--space-group);
}

.locize-markdown > span > :is(h1, h2, h3, h4, h5, h6) + *,
.locize-markdown > :is(h1, h2, h3, h4, h5, h6) + * {
  margin-top: var(--space-part);
}

.locize-markdown li + li {
  margin-top: var(--space-part);
}

.dropdown-wrapper {
  position: relative;
  align-items: center;
  display: inline-flex;
}

.dropdown-icon-open {
  animation: dropdown-icon-spin 0.25s ease-in;
}

@keyframes dropdown-icon-spin {
  from {
    transform: rotate(45deg);
  }

  to {
    transform: rotate(180deg);
  }
}

/* Panel: in a portal on body, placed by Floating UI (Dropdown.jsx) from the window's top left; above the header (the
   old layout's 1000000) and below a tooltip */
.dropdown-layer-closed * {
  pointer-events: none;
}

.dropdown-panel {
  position: fixed;
  z-index: 1000001;
  top: 0;
  left: 0;
  /* the room Floating UI measures holds its border too */
  box-sizing: border-box;
  height: 30px;
  overflow: hidden;
  opacity: 0;
  backdrop-filter: blur(4px);
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.26);
}

.dropdown-panel-buttongroup {
  backdrop-filter: unset;
  background-color: transparent;
  box-shadow: none;
}

.dropdown-panel>div {
  margin: 8px;
  padding: 8px;
  /* a column that takes the panel's room and scrolls in it, so content may give a part of itself that room
     (min-height: 0, FilterMenu's list); scrolling here, not on the panel, keeps the frame's bottom padding at the end,
     as a scroll container counts its own padding (code review a22ac7914, the check of the panel) */
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.dropdown-panel>div>* {
  width: 100%;
}

.dropdown-panel-buttongroup>div {
  margin: 0;
}

.dropdown-panel-open {
  height: auto;
  opacity: 1;
  /* its frame scrolls (above) */
  overflow-y: hidden;
  display: flex;
  flex-direction: column;

  /* Sized to its content: a menu under a short trigger wrapped its items into
     a column of words, and callers compensated with fixed pixel widths that
     then overflowed their card. At least as wide as the trigger (its
     `min-width` from Dropdown.jsx), never wider than the cap (or the viewport
     on a phone). An explicit `width` prop still wins. */
  width: -moz-max-content;
  width: max-content;
  max-width: min(380px, 90vw);
}

/* closing, it keeps its open box while it fades, so it shrinks where it opened (styleguide 2.4); at the closed 30 px a
   menu above its trigger faded as a strip at its top, away from the trigger (code review abdc222e, R4) */
.dropdown-panel-close {
  height: auto;
  width: -moz-max-content;
  width: max-content;
  max-width: min(380px, 90vw);
}

.dropdown-panel-open>div {
  opacity: 1;
}

/* a long menu label wraps inside the panel instead of running past its edge —
   .btn is nowrap by default, which is right for a toolbar and wrong in a menu */
.dropdown-panel .btn {
  white-space: normal;
  text-align: left;
  line-height: 1.2;
  min-height: 30px;
  height: auto;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* an open icon menu's trigger: the selection (1.1), light and dark (white at 49 % with #2196f3 was 1.08:1 in dark,
   recheck Login 5) */
.dropdown-wrapper-liquid.dropdown-wrapper .btn.btn-active.icon-btn:not(.btn-transparent) {
  background-color: var(--locize-selection);
  box-shadow: var(--locize-selection-ring);
  color: var(--icon-action);
  backdrop-filter: blur(5px);
}

/* Menus as light panels (styleguide 2.4 Menu; Jan 10-17, from the commit prototype): a glass with a hairline
   and a soft shadow, entries as rows, the current one with a check; grown from the trigger in 150 ms (2.4); closed,
   hidden, so their entries are no tab stops. A quiet glass (Jan, 10-29): 60 % white over a blur of 12 px,
   more than a card's 4 px, so what lies below stays a haze behind the entries (1.5; at 85 % the glass did not show);
   the portal on body lets it blur the page, no header or card bounds it */
.dropdown-layer .dropdown-panel,
.dropdown-wrapper-liquid.dropdown-layer .dropdown-panel.dropdown-panel-buttongroup.dropdown-panel-open {
  background: var(--ground-menu);
  color: var(--text-content);
  border: 1px solid var(--line-divider);
  border-radius: 10px;
  box-shadow: var(--menu-shadow);
  backdrop-filter: blur(12px);
}
.dropdown-layer .dropdown-panel > div {
  margin: 0;
  padding: 6px;
}
.dropdown-panel ul.dropdown-menu {
  margin: 0;
  width: 100% !important;
}
.dropdown-panel ul.dropdown-menu li {
  position: relative;
  padding: 6px 8px 6px 32px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-content);
}
.dropdown-panel ul.dropdown-menu li:hover {
  background: var(--ground-hover);
  color: var(--text-content);
}
.dropdown-panel ul.dropdown-menu li.active {
  background: none;
  color: var(--text-content);
  font-style: normal;
  font-weight: 600;
}
.dropdown-panel ul.dropdown-menu li.active:hover {
  background: var(--ground-hover);
}
.dropdown-panel ul.dropdown-menu li.active::before {
  content: 'check';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Material Icons';
  font-feature-settings: 'liga';
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--icon-action);
}
.dropdown-panel ul.dropdown-menu li .material-icons {
  color: var(--locize-secondaryText);
}
.dropdown-panel input {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 8px;
  border: 1px solid var(--line-divider);
  border-radius: 6px;
  background: var(--ground-control);
  color: var(--text-content);
  font: inherit;
  font-size: 14px;
}

/* focused, its edge 2 px in the focus colour, as the search of a list (SearchField.css; styleguide 3.7, 2.12): a
   switcher's search showed the browser's own outline (UI check of Project › Style guide, R6) */
.dropdown-panel input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--locize-focus);
}
/* a menu's entry, one part for every menu (Jan, 10-25; it stood three times): a row 14 px, 6 px 8 px, radius 6 px,
   hover 5 % black, the focus ring inside; a ⋮'s Button entries, the switchers' rows (ul.dropdown-menu li, above) and
   .menu-entry (PageTabs' More, FilterMenu); where an icon or the current entry's check leads, a 32 px column
   (styleguide 2.4 Menu). Open or closed alike: tied to the open class, a closed menu's entries were primary buttons,
   and the button's background transition faded them from blue on opening and to blue on closing (Jan, 10-29; code
   review 324927f8 R12) */
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup li {
  padding: 0;
}
/* a menu entry's measures, for a part that is an entry outside a menu (the editor's filter column) */
:root {
  --menu-entry-padding: 6px 8px;
  --menu-entry-radius: 6px;
}

.menu-entry,
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup .btn:not(.btn-icon-only) {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  padding: var(--menu-entry-padding);
  border: 0;
  border-radius: var(--menu-entry-radius);
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup .btn:not(.btn-icon-only) {
  justify-content: flex-start;
  padding-left: 32px;
}
.menu-entry:hover,
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup .btn:not(.btn-icon-only):not(:is(:disabled, [aria-disabled='true'])):hover {
  background: var(--ground-hover);
  box-shadow: none;
}
.menu-entry:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: -2px;
}
/* a running entry (aria-disabled, it keeps the focus) looks as a disabled one, as in Button.css (styleguide 2.5; code
   review 324927f8 J6) */
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup .btn:not(.btn-icon-only):is(:disabled, [aria-disabled='true']) {
  color: var(--text-quiet);
  cursor: default;
}
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup .btn:not(.btn-icon-only) .material-icons {
  left: 8px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  color: var(--locize-secondaryText);
  font-size: 18px;
}
/* its `transform-origin` at the trigger's corner, from the side it opened on (Dropdown.jsx) */
.dropdown-panel-open-downleft,
.dropdown-panel-open-downright {
  animation: dropdown-menu-in 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dropdown-panel-open > div {
  animation: none;
}
.dropdown-panel-closing-downleft,
.dropdown-panel-closing-downright {
  animation: dropdown-menu-out 120ms ease-out forwards;
}
@keyframes dropdown-menu-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes dropdown-menu-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .dropdown-panel-open-downleft,
  .dropdown-panel-open-downright,
  .dropdown-panel-closing-downleft,
  .dropdown-panel-closing-downright {
    animation: none;
  }
}

/* a note after a menu entry, "(CSV + JSON)": one step down from the entry's 14 px, as secondary text (styleguide 1.1,
   1.2; was the browser's 83 %, 11.67 px, in middleGray; R9 of the ui check) */
.dropdown-panel small {
  font-size: 12px;
  color: var(--locize-secondaryText);
}

/* a menu's entries in sentence case (styleguide 2.4): the labels stay lower case in the code, the first letter is
   raised where shown (was "delete", "rename" beside "CDN / Publish Details"; R10 of the ui check) */
.dropdown-panel .btn .btn-label {
  display: inline-block;
}

.dropdown-panel .btn .btn-label::first-letter {
  text-transform: uppercase;
}

/* a menu's list (Menu): no bullets, no indent; its entries as base.css's padLi and alignRight gave them, which the pages
   wrote on every menu (11-02); a ⋮'s button group takes the padding off (above) */
.lz-menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.lz-menu li {
  margin: 0;
  padding: 2px 2px 2px 0;
  text-align: right;
}

/* a destructive entry ("Delete"): last, over a hairline as the panel's edge, word and icon in the error colour; so a
   menu opened by the keyboard does not start on it (E8 of the ui check, Jan 10-25) */
/* the hairline only below other entries: a menu with delete alone has none */
.dropdown-panel li.dropdown-danger:not(:first-child) {
  margin-top: var(--space-part);
  padding-top: var(--space-part);
  border-top: 1px solid var(--line-divider);
}
/* entries of the group below the hairline follow one another without a line of their own (Leave and Delete project;
   finding 21 of ProjectSettings, 10-26) */
.dropdown-panel li.dropdown-danger + li.dropdown-danger {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup li.dropdown-danger .btn:not(.btn-icon-only),
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup li.dropdown-danger .btn:not(.btn-icon-only) .material-icons {
  color: var(--locize-state-error);
}

/* disabled entries and their icons: the quiet role (light lightGray, dark #6b7178 before) */
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup .btn:not(.btn-icon-only):is(:disabled, [aria-disabled='true']),
.dropdown-wrapper-liquid .dropdown-panel.dropdown-panel-buttongroup .btn:not(.btn-icon-only):is(:disabled, [aria-disabled='true']) .material-icons {
  background-color: transparent;
  color: var(--text-quiet);
}

.avatar-wrapper {
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  text-align: center;
  min-width: 30px;
  width: 30px;
  height: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  line-height: 30px;
  color: var(--locize-white);
  /* the scale's smallest step (styleguide 1.2; 9 px before, recheck Users 6) */
  font-size: 12px;
}

.avatar-image {
  position: absolute;
  opacity: 1;
  display: inline-block;
  margin: 0 auto;
  height: 100%;
  width: auto;
  transition: opacity 1s;
}

/* an icon (a key, a service, Slack, the AI) centred, in the avatar's white (.avatar-wrapper) */
.avatar-icon {
  align-self: center;
}

.tag {
  display: inline-block;
  /* tinted: a light ground in the state's colour, dark text of the same colour (styleguide 1.1: the bright orange never
     carries text; was white on the filled colour, 2.41:1 on orange, 3.19:1 on green) */
  background: var(--tag-ground, #e3eefb);
  color: var(--tag-text, #0d5aa7);
  font-size: 14px;
  padding: 2px var(--space-inset-compact);
  border-radius: 1em;
  text-transform: uppercase;
}

.tag-success {
  background: var(--tag-success-ground, #e5f2e6);
  color: var(--tag-success-text, #1e5e22);
}

.tag-warning {
  background: var(--tag-warning-ground, #fff4d6);
  color: var(--tag-warning-text, #6b4500);
}

.tag-error {
  background: var(--tag-error-ground, #fde7e7);
  color: var(--tag-error-text, #a30000);
}

/* 12 px, the scale's smallest (styleguide 1.2; was 8 px) */
.tag-small {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.5px;
  padding: 0 var(--space-inset-compact);
  text-overflow: ellipsis;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
}

.tag-disabled {
  background: var(--tag-disabled-ground, rgba(0, 0, 0, 0.06));
  color: var(--locize-secondaryText);
}

/* outlined: no ground, the outline an inset ring in the text's colour, so it is as high as a tinted tag (styleguide 2.10
   Tags; the header's kind chip and the news' version stood as two copies) */
.tag-outline {
  background: none;
  box-shadow: inset 0 0 0 1px currentColor;
}

/* a project's tag colours (Tag palette, styleguide 2.10): the ground and its text by index, as a class, so no page sets
   a colour; a swatch shows the colour alone (the tags dialog). The same in both themes; after `.tag`, as strong, so it
   wins by its place */
.tag-palette-0 {
  background: var(--locize-tag-0);
  color: var(--locize-tag-text-0);
}

.tag-palette-1 {
  background: var(--locize-tag-1);
  color: var(--locize-tag-text-1);
}

.tag-palette-2 {
  background: var(--locize-tag-2);
  color: var(--locize-tag-text-2);
}

.tag-palette-3 {
  background: var(--locize-tag-3);
  color: var(--locize-tag-text-3);
}

.tag-palette-4 {
  background: var(--locize-tag-4);
  color: var(--locize-tag-text-4);
}

.tag-palette-5 {
  background: var(--locize-tag-5);
  color: var(--locize-tag-text-5);
}

.tag-palette-6 {
  background: var(--locize-tag-6);
  color: var(--locize-tag-text-6);
}

.tag-palette-7 {
  background: var(--locize-tag-7);
  color: var(--locize-tag-text-7);
}

.tag-palette-8 {
  background: var(--locize-tag-8);
  color: var(--locize-tag-text-8);
}

.tag-palette-9 {
  background: var(--locize-tag-9);
  color: var(--locize-tag-text-9);
}

.tag-swatch {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* a value keeps its own writing, a tag's capitals are a label's (styleguide 2.10); one class as the other variants, it
   wins over `.tag`'s capitals by standing after them in this file */
.tag-verbatim {
  text-transform: none;
}

/* dark theme (execution Q4; values from the commit prototype's dark.css): data-theme="dark" on <html>. Only the values,
   as variables the rules above read with their light value as fallback, so no dark rule outweighs a variant */
:root[data-theme='dark'] {
  --tag-ground: rgba(106, 174, 240, 0.16);
  --tag-text: #8fbaf0;
  --tag-success-ground: rgba(102, 187, 106, 0.16);
  --tag-success-text: #8fd694;
  --tag-warning-ground: rgba(255, 135, 0, 0.16);
  --tag-warning-text: #ffb661;
  --tag-error-ground: rgba(255, 99, 99, 0.16);
  --tag-error-text: #ff9a9a;
  --tag-disabled-ground: rgba(255, 255, 255, 0.08);
}

.progress-chart canvas {
  border-radius: 100%;
}

.notification {
  display: flex;
  align-items: center;
  /* the icon is the notification's own part, not an icon in a line of text: a gap between parts (styleguide 1.7), as
     the padding beside it; 8px before */
  gap: var(--space-group);
  border: 1px solid var(--line-info);
  background-color: var(--ground-info);
  color: var(--text-content);
  font-size: 14px;
  /* the compact inset (the style model of 11-02; 4 px 8 px before, recheck Dashboard 6: 5 px above and below) */
  padding: var(--space-inset-compact);
  border-radius: 5px;
}

/* a section to what follows it where no Stack places it (a page not yet on the style model): its paragraphs' margins
   made that gap before the style model of 11-02, without them a notification touched the part below it (recheck,
   3.8); in a Stack the Stack's gap holds it (Stack.css sets a part's margins to 0) */
.notification:not(:last-child) {
  margin-bottom: var(--space-section);
}

/* the text: a long word (a URL, a path in an error) wraps instead of running out of the notification (styleguide 1.4);
   its paragraphs a group apart, a heading a part above its text (the browser's 14 px around each `p` before, recheck
   Dashboard 6) */
.notification > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* the blocks of the text, also a Markdown's without its container (a span per string) */
.notification > div > *,
.notification > div > span > * {
  margin-top: 0;
  margin-bottom: 0;
}

.notification > div > * + *,
.notification > div > span > * + * {
  margin-top: var(--space-group);
}

.notification > div > :is(h1, h2, h3, h4, h5, h6) + *,
.notification > div > span > :is(h1, h2, h3, h4, h5, h6) + * {
  margin-top: var(--space-part);
}

/* the state's icon, the notification's own part: only it takes the state's colour, not an icon in its text nor the
   snack's close (styleguide 2.9); info's 3:1 on its ground through its role (#5c9bda, the edge's, was 2.36:1) */
.notification > i.material-icons.icon-base {
  align-self: flex-start;
  flex-shrink: 0;
  color: var(--icon-info);
}

.notification h1,
.notification h2,
.notification h3,
.notification h4,
.notification h5,
.notification h6 {
  color: var(--text-content);
}

/* the success colour of the result button too (Jan, 10-22); --locize-green #54a229 before, about 2.8:1 on this ground */
.notification-success {
  background-color: var(--ground-success);
  border: 1px solid var(--icon-success);
}

.notification.notification-success > i.material-icons.icon-base {
  color: var(--icon-success);
}

.notification-warning {
  background-color: var(--ground-warning);
  border: 1px solid var(--line-warning);
}

/* the warning icon in the darker orange, 3:1 for an icon (styleguide 1.1, 2.9; finding 12 of ProjectSettings, 10-26: the
   pale yellow #ffe082 was 1.22:1 on its ground); dark keeps the bright orange through the variable */
.notification.notification-warning > i.material-icons.icon-base {
  color: var(--locize-warningIcon);
}

/* the error colour of the field's icon and the result button too (Jan, 10-22); --locize-red #d50000 before */
.notification-error {
  background-color: var(--ground-error);
  border: 1px solid var(--icon-error);
}

.notification.notification-error > i.material-icons.icon-base {
  color: var(--icon-error);
}

/* a tiny icon button's size (styleguide 2.5), read where a part keeps room for one */
:root {
  --btn-tiny-size: 25px;
}

.btn {
  font-family: var(--locize-font-family-readable);
  position: relative;
  display: inline-block;
  padding: 0 16px;
  font-size: 15px;
  border: none;
  box-sizing: border-box;
  min-height: 30px;
  /* the primary: white on it 4.60:1 (styleguide 2.5; primaryLight #2196f3 was 3.12:1); the ground role, which the dark
     theme does not lighten for text as it does --locize-primary (1.1), so no dark rule is needed */
  background-color: var(--btn-ground, var(--ground-primary));
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: 0;
  border-radius: 15px;
  cursor: pointer;
  z-index: 2;
  /* an icon button sets --btn-ground and --btn-text (IconButton.css), so a variant (active, hover) still wins */
  color: var(--btn-text, var(--locize-white));
  /* the colour, the lift and its shadow in 150 ms ease-out (styleguide 1.6) */
  transition: background-color 150ms cubic-bezier(0.23, 1, 0.32, 1), transform 150ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 150ms cubic-bezier(0.23, 1, 0.32, 1);
  text-transform: uppercase;
  font-weight: 300;
  backdrop-filter: blur(4px);
  box-shadow: var(--locize-bevel),
    0 0 5px 3px rgba(0, 0, 0, 0.05);
}

/* a Button with `to` is an `a`: no underline, its label in the middle as a button's; the link's lift on hover leaves it
   out (base.css) */
a.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* not the icons: their font is the icon font; :where keeps the weight of `.btn *` (one class) */
.btn :where(:not(.material-icons)) {
  font-family: var(--locize-font-family-readable);
}

.btn:hover {
  background-color: var(--locize-primaryHover);
  box-shadow: var(--locize-bevel),
    0 3px 5px 3px rgba(0, 0, 0, 0.08);
}

/* the lift only with a mouse and without reduced motion, as a tap would leave a button lifted (styleguide 1.6) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn-active {
  background-color: var(--locize-primaryDark);
}

/* the icon and its label a part apart (styleguide 1.3, 4 px): the 16 px icon at 7 px, its label from 27 px; no optical
   correction for glyphs drawn narrower than their box (`add`), as it would be wrong on one that fills it (`cloud_upload`)
   (Jan, 11-23; 9 px before) */
.btn.btn-left-icon {
  padding: 0 16px 0 27px;
}

.btn.btn-icon-only {
  padding: 0 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn.btn-left-icon i {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 16px;
}

.btn.btn-icon-only.btn-left-icon i {
  padding: 0;
  top: initial;
  left: initial;
}

/* a tiny button with its icon only, an IconButton or an ActionButton's (a copy button, a row's download): one form,
   round, 25 px, its icon 15 px, so a copy button stands beside a ⋮ as one kind (Jan, 11-09: 16 × 21 px with a 12 px
   icon looked lost beside it) */
.btn.btn-tiny:is(.icon-btn, .btn-icon-only) {
  padding: 0;
  width: var(--btn-tiny-size);
  height: var(--btn-tiny-size);
  min-height: var(--btn-tiny-size);
  /* in a row of flex parts it keeps its 25 px (the project id's copy button fell to 24.3 at 320 px; code review
     d0a2ddfbb R3) */
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn.btn-tiny:is(.icon-btn, .btn-icon-only) i {
  font-size: 15px;
}

.btn.btn-block {
  width: 100%;
}

/* the bevel as every button's (styleguide 1.5, layer 5, Jan 10-24; was a fainter dark edge, 0.1) */
.btn.btn-secondary {
  background-color: var(--ground-control);
  color: var(--text-content);
  box-shadow: var(--btn-raised, var(--locize-bevel), 0 0 5px 3px rgba(0, 0, 0, 0.05));
}

/* not a filter that is on nor a form's result: hover keeps their state (styleguide 2.5) */
.btn.btn.btn-secondary:not(:is(:disabled, [aria-disabled='true']), .btn-active, .btn-success, .btn-error):hover {
  background-color: var(--locize-primaryHover);
  color: var(--locize-white) !important;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn.btn.btn-secondary:not(:is(:disabled, [aria-disabled='true']), .btn-active, .btn-success, .btn-error):hover {
    transform: translateY(-1px);
  }
}

/* a secondary button that is on (a list's filter while it filters): the selection of a box (locize-client GridTile.css
   .tile-active, styleguide 1.1), as a search with text (Jan 10-25; was turquoise); the filter's icon too, where the
   head has no room (FilterMenu, a secondary icon button; it showed no selection before 11-10) */
.btn:is(.btn-secondary, .icon-btn-secondary).btn-active {
  background-color: var(--locize-selection);
  box-shadow: var(--locize-selection-shadow);
}

.btn.btn-semitransparent {
  background-color: var(--btn-semitransparent-ground, #ffffff7d);
  /* the darker primary as text (styleguide 1.1; primaryLight #2196f3 was 3.12:1, R7 of the ui check) */
  color: var(--locize-primaryText);
  backdrop-filter: blur(5px);
}

/* hover: a light tint of the primary under the primary text, 4.77:1 (styleguide 2.5; white on 60 % blue was 2.45:1) */
.btn.btn-semitransparent:not(:is(:disabled, [aria-disabled='true']), .btn-success, .btn-error):hover {
  background-color: var(--btn-tint, rgba(25, 118, 210, 0.1));
  color: var(--locize-primaryText);
}

/* the darker primary as text, 5.41:1 on the card (#1976d2 was 4.33:1); no bevel, also for an icon button, which reads
   it from --btn-raised (IconButton.css, a rule of equal weight in another file: code guide §3) */
.btn.btn-transparent {
  --btn-raised: none;
  box-shadow: none;
  backdrop-filter: unset;
  background-color: transparent;
  color: var(--btn-transparent-text, var(--locize-primaryText));
}

/* the primary's text under the pointer, unless the button keeps a colour of its own there (accept and reject keep
   theirs, styleguide 2.5) */
.btn.btn-transparent:not(:is(:disabled, [aria-disabled='true']), .btn-success, .btn-error):hover {
  background-color: var(--btn-tint, rgba(25, 118, 210, 0.1));
  color: var(--btn-transparent-hover-text, var(--locize-primaryText));
}

.btn.btn-tiny {
  padding: 0 8px;
  min-height: 20px;
  font-size: 14px;
}

.btn.btn-left-icon.btn-tiny:not(.btn-icon-only) {
  /* the label a part after the 16 px icon at 4 px, as every button's (2 px before) */
  padding: 4px 8px 4px 24px;
  min-height: 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn.btn-left-icon.btn-tiny:not(.btn-icon-only) i {
  position: absolute;
  top: 4px;
  left: 4px;
}

/* in a list's head with no room for the buttons' words (Grid.css, the head a container): a button whose icon says its
   action alone (`btn-icon-says`, Button.jsx) shows its icon only, round as an icon button; its label stays its name for
   a screen reader; any other keeps its word (styleguide 3.2, 1.4 reduce). One width for every head: a filter, the search
   and one button with its words need 442 px (API keys) */
@container grid-head (max-width: 460px) {
  .btn.btn-icon-says:not(.btn-tiny) {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    padding: 0;
    border-radius: 50%;
  }

  /* a tiny one the tiny icon button's 25 px, its icon 15 px in its middle (styleguide 2.5); the classes every such
     button carries, as strong as the tiny button's rules with a word above, which it follows */
  .btn.btn-left-icon.btn-tiny.btn-icon-says {
    width: var(--btn-tiny-size);
    height: var(--btn-tiny-size);
    min-height: var(--btn-tiny-size);
    flex-shrink: 0;
    padding: 0;
    border-radius: 50%;
  }

  .btn.btn-left-icon.btn-tiny.btn-icon-says i {
    position: static;
    font-size: 15px;
  }

  .btn.btn-icon-says .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* a form's result on its button, outlined rather than filled (Jan, 10-22): it still says so where one looks, without a
   loud surface; a filled red or green before */
.btn.btn-success {
  color: var(--locize-state-success);
  background-color: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

.btn.btn-error {
  color: var(--locize-state-error);
  background-color: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

/* hover keeps the state: its ring and a tint of its colour (styleguide 2.5; .btn:hover's blue left 1.12:1) */
/* the tag's darker green on the tint, 6.5:1 (#2e7d32 there 4.25:1) */
.btn.btn-success:not(:is(:disabled, [aria-disabled='true'])):hover {
  color: var(--btn-success-hover-text, #1e5e22);
  background-color: var(--btn-success-tint, rgba(46, 125, 50, 0.1));
  box-shadow: inset 0 0 0 1px currentColor;
}

.btn.btn-error:not(:is(:disabled, [aria-disabled='true'])):hover {
  background-color: var(--btn-error-tint, rgba(192, 0, 0, 0.1));
  box-shadow: inset 0 0 0 1px currentColor;
}

/* an action that removes or rejects: white on a red surface, 6.48:1, hover the tag's darker red, 8.0:1 (styleguide 2.5
   accept and reject; finding 13 of ProjectSettings, 10-26); dark the same, as the primary keeps its ground there. A
   form's result after it (success, error) takes over as on every button */
.btn.btn-danger:not(.btn-success, .btn-error) {
  background-color: #c00000;
  color: var(--locize-white);
}

.btn.btn-danger:not(:is(:disabled, [aria-disabled='true']), .btn-success, .btn-error):hover {
  background-color: #a30000;
}

/* an action that accepts: white on a green surface, 5.1:1, hover a darker green, 7.9:1 (styleguide 2.5 accept and
   reject); dark the same, as danger. A form's result after it (success, error) takes over as on every button */
.btn.btn-accept:not(.btn-success, .btn-error) {
  background-color: #2e7d32;
  color: var(--locize-white);
}

.btn.btn-accept:not(:is(:disabled, [aria-disabled='true']), .btn-success, .btn-error):hover {
  background-color: #1b5e20;
}

/* a select drawn as a button (SelectButton): its value as written, not in capitals (styleguide 2.5, a value as its
   label; Jan, 11-09) */
.btn.btn-dropdown {
  position: relative;
  padding-right: 40px;
  text-transform: none;
}

.btn.btn-dropdown::before {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga' 1;

  content: 'expand_more';
  position: absolute;
  top: 3px;
  right: 5px;
  /* the action's colour, as a select's arrow (styleguide 1.1, 2.7; Jan, 11-09; was the text's grey) */
  color: var(--icon-action);
  z-index: 100;
  pointer-events: none;
}

/* under the pointer a secondary button turns blue with white text (above): the arrow white with it; a SelectName in a
   button's look carries the classes itself (locize-client selectParts) */
.btn.btn-dropdown:has(> select.btn-secondary:not(:disabled):hover)::before,
.btn.btn-dropdown.btn-secondary:hover::before {
  color: var(--text-on-primary);
}

/* disabled, the arrow is there but not offered (styleguide 1.1, `--icon-disabled`) */
.btn.btn-dropdown:has(> select:disabled)::before {
  color: var(--icon-disabled);
}

/* keyboard focus: the buttons' ring (base.css gives it to `a` and `button` only, `.btn` sets `outline: 0`); a field's
   select keeps its focus on the underline (styleguide 2.6, 3.7; UI check of the select button, R1); not after a click,
   which SelectButton marks with `data-pointer` (a browser counts a select's focus after a click as visible, N3) */
select.btn:focus-visible:not([data-pointer]) {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

.btn.btn-dropdown.btn-dropdown-open::before {
  content: 'expand_less';
}

/* aria-disabled as disabled: a button that runs its action keeps the focus (SaveButton, 10-29), a disabled one dropped
   it to the body */
.btn:is(:disabled, [aria-disabled='true']) {
  color: var(--btn-disabled-text, var(--locize-lightGray));
  cursor: not-allowed;
  box-shadow: none;
}

.btn:not(.btn-transparent):is(:disabled, [aria-disabled='true']) {
  transform: none;
  background-color: var(--btn-disabled-ground, #4f4f4f12);
  color: var(--btn-disabled-text, #c6c6c6);
  box-shadow: none;
}

/* an action in running text, a button that looks like a link (styleguide 2.5, 2.9, 3.7): the primary as text, underlined
   (a notification's "show" on Users, 10-27; Getting started's undo); one class for both (code review e6a443f3 J2) */
.link-action {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--locize-primaryText);
  text-decoration: underline;
  cursor: pointer;
}

/* dark theme (execution Q4; values from the commit prototype's dark.css): data-theme="dark" on <html>. Only the values
   that differ, as variables the rules above read with their light value as fallback; set in the content and in a
   dialog, which renders outside it (the header keeps the light rules). So no dark rule outweighs a variant, and dark
   behaves as light (Jan, 11-10: a secondary button turns blue under the pointer in both).
   - raised: a secondary and an icon button one step lighter than a box, the bevel without the outer shadow
   - icon: every icon button on the control ground with light text (the primary button keeps its blue)
   - disabled, a semitransparent ground, the tint under the pointer: the dark values (R7)
   - a form's result: success #6cc644 (6.73:1 on the card), error #ff7b72 (5.72:1) through --locize-state-*, their
     tints; success keeps its colour under the pointer */
:root[data-theme='dark'] :is(.locize-layout-content-wrapper, .react-confirm-alert) {
  --btn-raised: var(--locize-bevel);
  --btn-raised-strong: var(--locize-bevel);
  --btn-icon-ground: var(--ground-control);
  --btn-icon-text: var(--text-content);
  --btn-disabled-ground: rgba(255, 255, 255, 0.06);
  --btn-disabled-text: #6b7178;
  --btn-semitransparent-ground: rgba(255, 255, 255, 0.06);
  --btn-tint: rgba(106, 174, 240, 0.16);
  --btn-success-tint: rgba(108, 198, 68, 0.1);
  --btn-success-hover-text: var(--locize-state-success);
  --btn-error-tint: rgba(255, 123, 114, 0.1);
}

/* a value as the label keeps its own writing, a button's capitals are an action's (styleguide 2.5); one class, it wins
   over `.btn`'s capitals by standing after them in this file */
.btn-verbatim {
  text-transform: none;
}

/* its label on one line (`nowrap`) */
.btn-nowrap {
  white-space: nowrap;
}

/* the costs as a bill (Bill.jsx): the item's name left, its amount right on its decimal point, the sums in the foot under
   a hairline; only the relations' variables (styleguide 1.3) */
.lz-bill {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.lz-bill th,
.lz-bill td {
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: baseline;
}

.lz-bill th {
  text-align: left;
  font-weight: inherit;
  /* a long name wraps in its cell, never widens the box (styleguide 1.4) */
  overflow-wrap: anywhere;
}

.lz-bill td {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: var(--space-section);
}

/* a part between the items, none above the first: the box's head keeps its group to the table as to any content */
.lz-bill tr + tr > * {
  padding-top: var(--space-part);
}

/* the sums a group apart from the items, the divider between them */
.lz-bill tbody tr:last-child > * {
  padding-bottom: var(--space-group);
}

.lz-bill tfoot tr:first-child > * {
  border-top: 1px solid var(--line-divider);
  padding-top: var(--space-group);
}

/* the arrow in its own column, in the fields' row (styleguide 1.3 gaps) */
.from-to {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  grid-template-areas:
    'fromName . toName'
    'from arrow to'
    'fromDetail . toDetail';
  -moz-column-gap: var(--space-24);
       column-gap: var(--space-24);
  row-gap: 8px;
  align-items: start;
}

/* level with the field, not with the field and its label: at the row's foot, in a box of the field's height
   (a select, 31 px) */
.from-to-arrow {
  grid-area: arrow;
  align-self: end;
  /* its own width: stretched to the column, the turn under 600 px would make it the column's width high */
  width: 24px;
  height: 31px;
  display: flex;
  align-items: center;
  color: var(--locize-mutedIcon);
}

@media (max-width: 600px) {
  .from-to {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'fromName' 'from' 'fromDetail' 'arrow' 'toName' 'to' 'toDetail';
  }

  .from-to-arrow {
    transform: rotate(90deg);
  }
}

body.react-confirm-alert-body-element {
  overflow: hidden;
}

.react-confirm-alert {
  max-height: 90%;
  /* never wider than the window less 16 px a side (styleguide 2.3 Dialog; a 400 px dialog ran out at 320 px); of the
     overlay, not the window, so the overlay's scrollbar leaves 16 px too (UI check 1 of ProjectSettings, 10-26: 11 and
     21 px with the files of "see more" unfolded) */
  max-width: calc(100% - 32px);
  overflow-y: auto;
  animation: react-confirm-alert-grow 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* the veil (styleguide 2.3): grey 30 % with a blur, above the header (1000000), so nothing behind it can be clicked.
   With the container's id, as cat-ui.css has a rule of its own for the same class (black 50 %, z-index 9999) that won
   by its later place whenever the CAT's styles were loaded (Jan, 10-29) */
#react-confirm-alert .react-confirm-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000001;
  background: rgba(29, 32, 36, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  /* cat-ui.css starts it at 0 and relies on its animation's `forwards` */
  opacity: 1;
  animation: react-confirm-alert-fadeIn 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes react-confirm-alert-grow {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .react-confirm-alert {
    animation-name: react-confirm-alert-fadeIn;
  }
}

/* a confirmation's buttons: a section below its text, a group apart (the style model of 11-02). With the container's id,
   as cat-ui.css has a rule of its own for the same class (20 px) that won by its later place (recheck Settings 12) */
#react-confirm-alert .react-confirm-alert-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-group);
  margin-top: var(--space-section);
}

/* a dialog's ground and text: their roles, light and dark (it renders at the body, outside the layout) */
.react-confirm-alert {
  color: var(--text-content);
}

.react-confirm-alert .card {
  background: var(--ground-dialog);
}

@keyframes react-confirm-alert-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-height: 575px) {
  .react-confirm-alert {
    overflow-y: visible;
  }
}

/* the overlay holds the focus only while a dialog loads (ConfirmPrompt.placeFocus): no ring around the whole screen */
.react-confirm-alert-overlay:focus {
  outline: none;
}

/* dark theme (execution Q4; values from the commit prototype's dark.css): data-theme="dark" on <html> */
/* the content's variables, as DefaultLayout.css sets them on the content: dialogs render at the body (the text's roles
   carry their dark values themselves, colors.css) */
:root[data-theme='dark'] .react-confirm-alert {
  --locize-primary: #6aaef0;
  --locize-green: #6cc644;
  --locize-red: #ff7b72;
  --locize-lightGray: #4a5058;
  --locize-cream-borderGray: #454b53;
  --locize-cream-bgGray: #23272c;
}

/* dialogs: their own scope, as they render at the body */
:root[data-theme='dark'] #react-confirm-alert .react-confirm-alert-overlay {
  background: rgba(15, 17, 20, 0.55);
}

/* a dialog's card: its shadow deeper, its ground from --ground-dialog, which carries its dark value (Card.css) */
:root[data-theme='dark'] .react-confirm-alert {
  --card-shadow: 0 0 30px 8px rgba(0, 0, 0, 0.5);
}

/* Page tabs (styleguide 2.11 Tabs): plain words, the active one underlined 2 px in the primary colour, hover and colour
   change 150 ms (1.6 Motion); never breaking a word, what does not fit in "More" (2.11, Jan 10-24) */
.page-tabs-wrapper {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  max-width: 100%;
}

.page-tabs {
  display: flex;
  gap: var(--space-24);
  align-self: stretch;
  min-width: 0;
}

/* the same row out of sight, every tab once, to measure what fits; at the row's right edge, so where it is wider than
   the row it runs out to the left, which adds no width one can scroll to (code review b765dad5, J3: from the left edge
   it made the layout 398 px wide at 320 px) */
.page-tabs-measure {
  position: absolute;
  top: 0;
  right: 0;
  visibility: hidden;
  pointer-events: none;
}

/* "More" as high as a tab, its underline on the same line (the menu's wrapper centred it at 38 px beside 41) */
.page-tabs .dropdown-wrapper {
  display: flex;
  align-self: stretch;
}

.page-tabs .dropdown-wrapper > .page-tabs-more {
  align-self: stretch;
}

.page-tabs-menu-line {
  margin: var(--space-part) 0;
  border-top: 1px solid var(--line-divider);
}

.page-tabs-menu {
  margin: 0;
  padding: 4px 0;
}

/* its entries are Dropdown's .menu-entry (Dropdown.css) */

.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 9px 0;
  font: inherit;
  font-size: 16px;
  color: var(--locize-tabText);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.page-tab:hover,
.page-tab.active {
  color: var(--locize-textGray);
}

.page-tab.active {
  border-bottom-color: var(--locize-primary);
}

.page-tab:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.page-tab-count {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  background: var(--ground-hover);
  border-radius: 10px;
  padding: 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .page-tab {
    transition: none;
  }
}

/* dark theme (execution Q4; values from the commit prototype's dark.css): data-theme="dark" on <html> */
:root[data-theme='dark'] .page-tab:hover,
:root[data-theme='dark'] .page-tab.active {
  color: #e2e2e2;
}




/* a panel at a card's left edge (Panel.jsx): pulled to the card's left, top and bottom edges, what stands beside it an
   inset from it; at the bottom the bevel's width short of the edge, so the card's dark edge stays seen (Jan, 11-04: -16
   of 16 covered it, code review d6eec794) */
.lz-panel {
  flex: none;
  padding: var(--space-inset);
  margin: calc(-1 * var(--space-inset)) var(--space-inset) calc(var(--locize-bevel-edge) - var(--space-inset)) calc(-1 * var(--space-inset));
  border-radius: 15px 0 0 15px;
  background: var(--locize-panel);
}

/* under the card's head: from the head's compact inset, its own content a group below its top, round at the bottom only */
.lz-panel-below-head {
  padding-top: var(--space-group);
  margin-top: calc(-1 * var(--space-inset-compact));
  border-radius: 0 0 0 15px;
}

/* a fact as label and value (a card's list of facts): both 14 px, the label as secondary text (styleguide 1.1, 1.2;
   Jan, 10-25 with the workspace card; were 16 px and the label in labelGray, which had no dark value) */
.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.info-text {
  color: var(--locize-textGray);
  font-weight: 300;
  font-size: 14px;
  text-align: right;
  display: flex;
  align-items: center;
  min-width: 0;
}

.info-label {
  color: var(--locize-secondaryText);
  /* the accompanying grey at 400: set apart from its value by colour, not by a thinner stroke (styleguide 1.1, Jan 10-30) */
  font-weight: 400;
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* InfoList: a card's facts as two columns, the labels as wide as the longest, each value beside its label
   (E15 of the ui check, Jan 10-25; the values stood right-aligned, up to 454 px from their
   label); the items give their parts to the grid */
.info-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  -moz-column-gap: 16px;
       column-gap: 16px;
  row-gap: 4px;
  /* a label on the first line of its value, not in the middle of a value over several lines (Jan, 11-02: it broke the
     reading) */
  align-items: baseline;
  /* its values follow the list's own room, not the window's (styleguide 1.4) */
  container-type: inline-size;
}

.info-list > .info-item {
  display: contents;
}

/* a label takes at most half the list and wraps beyond it, so a long one never widens the page (styleguide 1.4; at 320 px
   "language used as source language for orders or branches" ran 99 px past the window, Order Settings 10-29) */
.info-list .info-label {
  max-width: 50cqw;
}

.info-list .info-text {
  justify-content: flex-start;
  text-align: left;
  /* the value at the regular weight (Jan, 10-25); the label at 400 too since 10-30, apart by #333 against #666 */
  font-weight: 400;
  /* a value is the person's text (an e-mail, a URL): a long one wraps, it never widens the card (styleguide 1.4) */
  overflow-wrap: anywhere;
}

/* in a list up to 480 px wide the value stands right, as before E15: label and value at most about 340 px apart, which
   reads better in a card of normal width; wider, it stands beside its label (Jan, 10-26, ProjectSettings: the settings'
   base card is 390 to 866 px wide) */
@container (max-width: 480px) {
  .info-list .info-text {
    justify-content: flex-end;
    text-align: right;
  }
}

/* in a list up to 360 px wide the value stands below its label over the whole width, 8 px between two facts: 360 is the
   widest label column (~170), the gap (16) and a value of ~25 characters (~175), styleguide 2.1 (Jan, 10-29, UI check
   of Editor and AI 21: five memory names ran over 15 lines). Each part takes the whole row, not the list's columns: the
   list is the container, and an element never queries itself (code review 324927f8 R1: at 420 px the list kept two
   columns and the label ran out of the window) */
@container (max-width: 360px) {
  .info-list > .info-item > * {
    grid-column: 1 / -1;
  }
  .info-list .info-label {
    max-width: none;
  }
  .info-list > .info-item:not(:first-child) > .info-label {
    margin-top: 4px;
  }
  .info-list .info-text {
    justify-content: flex-start;
    text-align: left;
  }
}

/* a change not yet saved: a dot beside its item's name, a part from it (styleguide 3.4), that pulses as the editor's
   unsaved segment; opacity only, so it stays with reduced motion (1.6) */
.lz-dirty-mark {
  display: inline-block;
  flex: none;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--icon-warning);
  animation: lz-dirty-pulse 2s ease-in-out infinite;
}

@keyframes lz-dirty-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

/* the tooltip (Tooltip.jsx): react-tooltip's dark look kept (10-29), placed from the window's top left by Floating UI,
   above an open menu (Dropdown, 1000001); fades in as a state, 150 ms (styleguide 1.6), none by the keyboard or with reduced motion */
.locize-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000002;
  width: -moz-max-content;
  width: max-content;
  box-sizing: border-box;
  padding: 12px 21px;
  border-radius: 3px;
  background: rgba(34, 34, 34, 0.9);
  color: #fff;
  /* the small step of the scale (styleguide 1.2) */
  font-size: 12px;
  pointer-events: none;
  animation: locize-tooltip-in 150ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* shown by the keyboard's focus: at once (styleguide 1.6: nothing started by the keyboard is animated) */
.locize-tooltip.locize-tooltip-key {
  animation: none;
}

@keyframes locize-tooltip-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .locize-tooltip {
    animation: none;
  }
}

/* a state's circle (styleguide 1.7): filled in its state's icon role, its icon cut out in the opposite tone; the icon's
   size and 4 px. Untranslated a dark grey, as the role's #ccc gives a white icon 1.6:1 */
.lz-state-circle {
  --state-circle-untranslated: #464646;
  --state-circle-icon: var(--text-on-primary);

  position: relative;
  display: flex;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.lz-state-circle-10 {
  width: 14px;
  height: 14px;
}

.lz-state-circle-icon {
  position: relative;
  margin: 2px;
  color: var(--state-circle-icon);
}

.lz-state-circle-untranslated {
  background-color: var(--state-circle-untranslated);
}

.lz-state-circle-untranslated .lz-state-circle-icon {
  color: var(--state-circle-untranslated-icon, var(--state-circle-icon));
}

.lz-state-circle-review {
  background-color: var(--icon-review);
}

.lz-state-circle-overridden {
  background-color: var(--icon-overridden);
}

.lz-state-circle-translated {
  background-color: var(--icon-success);
}

.lz-state-circle-ordered {
  background-color: var(--icon-ordered);
}

.lz-state-circle-warnings {
  background-color: var(--icon-warning);
}

.lz-state-circle-errors,
.lz-state-circle-deleted {
  background-color: var(--icon-error);
}

/* dark: untranslated takes its role, the icons the dialog's tone, untranslated's light */
:root[data-theme='dark'] .lz-state-circle {
  --state-circle-untranslated: var(--locize-state-untranslated);
  --state-circle-icon: var(--ground-dialog);
  --state-circle-untranslated-icon: var(--text-content);
}

/* pages of a list (Grid): buttons in a row, 16 px under the list (styleguide 1.3), 14 px (1.2) */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  list-style-type: none;
}

/* a page, the arrows and the "1 / 3" count: 32 px round, the browser's button look reset */
.pagination-container .pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 16px;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--locize-textGray);
}

.pagination-container button.pagination-item {
  cursor: pointer;
}

.pagination-container button.pagination-item .material-icons {
  color: var(--locize-mutedIcon);
}

@media (hover: hover) and (pointer: fine) {
  /* not on the current page: its ground stays (the hover's 4 % had outweighed its 6 %, Jan 10-25) */
  .pagination-container button.pagination-item:hover:not(:disabled):not(.selected) {
    background-color: var(--ground-hover);
  }
}

/* the current page: a grey ground, not the primary (Jan, 10-25: navigation, not an action) */
.pagination-container .pagination-item.selected {
  background-color: rgba(0, 0, 0, 0.06);
}

/* the first and the last page's arrow: there, but not offered (3.3) */
.pagination-container button.pagination-item:disabled {
  cursor: default;
}

.pagination-container button.pagination-item:disabled .material-icons {
  color: var(--locize-disabledIcon);
}

/* dark theme (execution Q4): the text and the disabled arrow through their variables (colors.css) */
:root[data-theme='dark'] .pagination-container .pagination-item.selected {
  background-color: rgba(255, 255, 255, 0.15);
}


/* the browser's button look reset at no specificity, so the class below wins */
:where(button.fold-line) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.fold-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  font-size: 14px;
  color: var(--locize-secondaryText);
  cursor: pointer;
}

.fold-line:hover {
  color: var(--locize-textGray);
}

.fold-line:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Pills (styleguide 2.17): one value out of a few, a radio group; 4 px between pills, the selected one as a selected
   box (1.1 Selection: its ground and the 1 px ring, without the box's glow) */
.pills-label {
  font-weight: 400;
  font-size: 14px;
  color: var(--locize-secondaryText);
  margin-bottom: 4px;
}

.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pill-gap, 4px);
}

/* base.css styles every label as a field's: reset here. Its look from the component's variables (code guide §4): a
   form or a theme sets the variables, never the properties, so no rule has to outweigh another */
label.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--pill-height, 32px);
  padding: var(--pill-padding, 0 16px);
  margin: 0;
  border-radius: var(--pill-radius, 16px);
  font-weight: 400;
  font-size: var(--pill-size, 14px);
  line-height: var(--pill-line-height, normal);
  color: var(--pill-color, var(--locize-textGray));
  background: transparent;
  box-shadow: var(--pill-ring, inset 0 0 0 1px var(--pill-hairline, var(--locize-cream-borderGray)));
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* the radio stays in the page for keyboard and screen reader, out of sight */
.pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: inherit;
}

/* hover as a menu's entry (styleguide 2.4), apart from the selected ground (code review f71c3fd5 J7) */
label.pill:not(.pill-selected, .pill-disabled):hover {
  background: var(--pill-hover-ground, var(--ground-hover));
  color: var(--pill-hover-color, var(--pill-color, var(--locize-textGray)));
}

label.pill.pill-selected {
  background: var(--pill-selected-ground, var(--locize-selection));
  color: var(--pill-selected-color, var(--locize-primaryText));
  font-weight: var(--pill-selected-weight, 500);
  box-shadow: var(--pill-selected-ring, var(--locize-selection-ring));
}

label.pill:has(input:focus-visible) {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

label.pill.pill-disabled {
  opacity: 0.5;
  cursor: default;
}

/* quiet: the words alone, 12 px at 400 as a group's title, no ground, ring or height of their own; the chosen in the
   content's colour, the other accompanying; the focus ring stays */
.pills-quiet {
  --pill-gap: var(--space-group);
  --pill-height: 0;
  --pill-padding: 0;
  --pill-radius: 0;
  --pill-size: 12px;
  --pill-line-height: inherit;
  --pill-color: var(--text-secondary);
  --pill-ring: none;
  --pill-hover-ground: none;
  --pill-hover-color: var(--text-content);
  --pill-selected-ground: none;
  --pill-selected-color: var(--text-content);
  --pill-selected-weight: 400;
  --pill-selected-ring: none;
}

/* dark theme (execution Q4): data-theme="dark" on <html>; only the hairline's colour */
:root[data-theme='dark'] .pills {
  --pill-hairline: rgba(255, 255, 255, 0.25);
}
/* The loaders (styleguide 2.14): skeletons in the form of what comes, the boot screen, the logo screen. index.html
   repeats the boot screen's rules inline, as it paints before this file loads: keep both alike. */
:root {
  --lz-bone: rgba(0, 0, 0, 0.07);
  /* quiet: 0.45 drew the eye away from the page, 0.25 was too faint (Jan, 10-27) */
  --lz-shine: rgba(255, 255, 255, 0.35);
}

/* the text of a long wait shows after its time (WaitText): hidden until then */
.lz-wait {
  animation: lz-show 0s linear both;
}

@keyframes lz-show {
  from { visibility: hidden; }
  to { visibility: visible; }
}

.lz-bone {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--lz-bone);
}

.lz-bone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--lz-shine), transparent);
  transform: translateX(-100%);
  /* on the clock (Skeleton.jsx usePhase): every bone at the same point of the shimmer */
  animation: lz-shine 1.6s ease-in-out var(--lz-phase, 0ms) infinite;
}

@keyframes lz-shine {
  to { transform: translateX(100%); }
}

.lz-bone-line {
  height: 10px;
  /* a bone and its gap 20 px, the step of 14 px text in a card (measured 10-27): a copy of the text's line, not a gap
     of the scale */
  margin: 0 0 10px;
}

.lz-bone-line:last-child {
  margin-bottom: 0;
}

.lz-title {
  width: 30%;
  height: 14px;
  /* a copy of a card's title: centred on its 29 px row, the content 12 px below it (Card.css; measured 10-30) */
  margin: 8px 0 19px;
}

/* a tile's skeleton keeps the tile's size and ground (GridTile.css), its name and line as bones; two classes, as GridTile.css's
   .tile sets the height to 100 % and comes later in the bundle */
.tile.lz-tile {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 84px;
  box-sizing: border-box;
  cursor: default;
}

/* name and detail 28 px apart, as in a tile (their middles at 28 and 56 px, measured 10-30): 9 here and the tile's own
   gap of 8 (GridTile.css), which stays in the column (code review f71c3fd5 R4: 17 set them 36 apart) */
.lz-tile .lz-bone-line:first-child {
  width: 45%;
  height: 12px;
  margin-bottom: 9px;
}

.lz-tile .lz-bone-line:last-child {
  width: 30%;
}

/* a picture's bone fills the box its picture will take (Skeleton.jsx Picture) */
.lz-picture {
  width: 100%;
  height: 100%;
}

/* the text a long wait shows */
.lz-text {
  text-align: center;
  font-size: 14px;
  /* accompanying text, never thinner than 400 (styleguide 1.2) */
  font-weight: 400;
  /* on the page's grey, not on a card: #666 reached 4.15:1 there, the label grey 6.4:1 (10-27) */
  color: var(--locize-labelGray);
}

/* below the card's skeleton, a section from it */
.lz-page-wait > .lz-text {
  margin-top: 16px;
}

/* the boot screen's header: the logo, the avatar as a bone */
.lz-avatar {
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 50%;
}

/* the logo screen (the login pages, the CAT, admin and InContext): the logo, a slim bar running below it */
.lz-logo-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100vh;
  padding-bottom: 10vh;
  box-sizing: border-box;
}

.lz-run {
  position: relative;
  overflow: hidden;
  width: 120px;
  height: 2px;
  border-radius: 1px;
  background: var(--lz-bone);
}

.lz-run::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 1px;
  background: var(--locize-primaryText);
  animation: lz-run 1.2s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.authlayout-container .lz-run {
  background: rgba(255, 255, 255, 0.3);
}

.authlayout-container .lz-run::after {
  background: var(--locize-white);
}

/* on the login's blue white, as the text there (styleguide 4, the login pages) */
.authlayout-container .lz-text {
  color: var(--locize-lightText);
}

@keyframes lz-run {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  .lz-bone::after {
    animation: none;
  }

  .lz-run::after {
    width: 100%;
    opacity: 0.5;
    animation: none;
  }
}

/* dark theme (execution Q4; the values of the skeleton drafts, 10-27) */
:root[data-theme='dark'] {
  --lz-bone: rgba(255, 255, 255, 0.07);
  --lz-shine: rgba(255, 255, 255, 0.05);
}

/* the label grey has no dark value on :root (the content, the aside, menus and dialogs give it #a6adb5): the secondary
   text, 6.41:1 on the dark page (10-27) */
:root[data-theme='dark'] .lz-text {
  color: var(--locize-secondaryText);
}

/* a page that waits in a working surface (DefaultLayout surface, locize-visual) stands as on any page: the inset the
   surface takes from its content, and the scrollbar's room on both edges a page's content keeps (DefaultLayout.css) */
.locize-layout-surface .lz-page-wait {
  overflow: hidden;
  scrollbar-gutter: stable both-edges;
  padding: var(--space-layout) var(--space-layout) 0;
}

/* The header (styleguide 2.15, the prototype's variant A): row 1 (50 px) where one is and the person's menu, row 2 (40 px)
   the pages; the ground is DefaultLayout's header glass */
.app-header {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--locize-textGray);
}

/* the bar while a page changes (styleguide 2.14; Jan, 10-27): it grows fast, then slowly towards 80 %,
   never reaching the end before the page stands; then it runs to the end and fades */
.app-header-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.app-header-bar i {
  position: absolute;
  inset: 0;
  background: var(--locize-primary);
  transform-origin: left;
}

.app-header-bar-run i {
  animation: app-header-bar-run 8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes app-header-bar-run {
  0% { transform: scaleX(0); }
  15% { transform: scaleX(0.55); }
  100% { transform: scaleX(0.8); }
}

.app-header-bar-done i {
  opacity: 0;
  transform: scaleX(1);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), opacity 200ms ease-out 200ms;
}

@media (prefers-reduced-motion: reduce) {
  .app-header-bar-run i {
    opacity: 0.6;
    animation: none;
  }

  .app-header-bar-done i {
    transition: opacity 200ms ease-out;
  }
}

.app-header-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 16px;
  min-width: 0;
}

.app-header-logo {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 4px;
}

.app-header-logo > :last-child {
  display: none !important;
}

.app-header-path {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-left: 8px;
  font-size: 16px;
}

.app-header-crumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-part);
  max-width: 100%;
  min-width: 0;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.app-header-crumb-static {
  cursor: default;
}

/* a fixed line: a name with emoji, Arabic or CJK takes a fallback font with a taller line, which made its part 36 px
   instead of 28 and left 2 px to the tabs (Jan, 10-24; as the tile's name, GridTile.css); the kind chip keeps a tag's line */
.app-header-crumb > span:not(.app-header-kind) {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 18px;
  /* cut at its end (2.15); no part takes more than 24 characters' room, so a long project name leaves its neighbours
     theirs (whole, a project's 780 px left the version 4 px at 1206) */
  max-width: 24ch;
}

.app-header-crumb > i,
.app-header-sep,
.app-header-kind {
  flex-shrink: 0;
}

/* the kind chip (`Tag small outline`) keeps its square corners beside the name (Jan, 10-25); the crumb's class before
   it, so the rule wins over `.tag` whichever stylesheet loads last */
.app-header-crumb .app-header-kind {
  border-radius: 4px;
}

/* a part with a switcher: its name a link where it leads, the arrow beside it the switcher (Jan, 11-21); two targets,
   two tab stops; the arrow 24 px wide and the part's height, a target of its own (WCAG 2.5.8) */
.app-header-part {
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}

.app-header-part > .app-header-crumb {
  min-width: 0;
}

.app-header-part > .dropdown-wrapper {
  flex-shrink: 0;
}

/* the wrapper centres its trigger (Dropdown.css): the arrow takes the part's height itself */
.app-header-arrow {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* the name as a link stays still and without a line at rest, as the path's text; under the pointer the hover ground */
.app-header-crumb-link {
  text-decoration: none;
}

.app-header-crumb-link:hover {
  transform: none;
}

.app-header-crumb-link:hover,
.app-header-arrow:hover {
  background: var(--ground-hover);
}

.app-header-crumb:focus-visible,
.app-header-arrow:focus-visible,
.app-header-avatar:focus-visible,
.app-header-logo:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

.app-header-sep {
  color: var(--locize-mutedIcon);
}

/* the path's parts shrink, their names end in "…", icons and separators stay; the last part shortens first (2.15), the
   others only when it is at its minimum, so the path never runs past the window (1.4). The minimum keeps four
   characters of the name beside the kind icon (30 px with its gap and the padding), with a switcher the arrow beside
   it (24 px more): at 56 px for the whole part a version's name fell to 4 px between 480 and 560 px (Jan, 11-02) */
.app-header-path > .app-header-crumb {
  min-width: calc(30px + 4ch);
  flex-shrink: 1;
}

.app-header-path > .app-header-part {
  min-width: calc(54px + 4ch);
  flex-shrink: 1;
}

/* the "…" of a narrow path keeps its own width, it holds no name to shorten: no part (app-header-part), so a part's
   minimum for its name does not reach it (code review R6) */
.app-header-more {
  display: inline-flex;
  flex-shrink: 0;
}

.app-header-path > :last-child {
  flex-shrink: 100;
}

.app-header-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.app-header-avatar {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.app-header-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
}

/* narrow: the path gets a row of its own between the top row and the tabs, the header
   grows by 40 px */
@media (max-width: 900px) {
  .app-header-top.app-header-top-path {
    flex-wrap: wrap;
    align-content: flex-start;
    row-gap: 0;
    height: 90px;
  }

  .app-header-top-path .app-header-side {
    height: 50px;
  }

  .app-header-top-path .app-header-path {
    order: 1;
    flex-basis: 100%;
    height: 40px;
    margin-left: -4px;
  }
}

/* narrow, the kind chip and the parts' kind icons go first, so the names get their room (2.15; Jan, 10-24: at 320 px
   the organization showed "R…" in 28 px, without its icon "Red…" in 45 px) */
@media (max-width: 480px) {
  .app-header-path .app-header-kind,
  .app-header-path .app-header-crumb > i:first-child {
    display: none;
  }

  /* without the kind icon (18 px and its gap) the minimum holds the name, with a switcher the arrow too: at the wider
     minimum the path ran 13 px past the window at 320 */
  .app-header-path > .app-header-crumb {
    min-width: calc(8px + 4ch);
  }

  .app-header-path > .app-header-part {
    min-width: calc(32px + 4ch);
  }
}

/* dark theme (execution Q4; values from the commit prototype's dark.css): data-theme="dark" on <html> */
:root[data-theme='dark'] .app-header-logo > :first-child {
  display: none !important;
}

:root[data-theme='dark'] .app-header-logo > :last-child {
  display: block !important;
}

:root[data-theme='dark'] .app-header {
  color: #e2e2e2;
}

:root[data-theme='dark'] .app-header-bar i {
  background: var(--locize-primaryText);
}


/* a title with a name in it, as wide as its room allows; where the name's minimum finds no room beside the words, the
   title breaks before the name, and the name fills its own line */
.fit-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: last baseline;
  max-width: 100%;
  min-width: 0;
}

.fit-title-words {
  white-space: pre-wrap;
}

/* the name: its start keeps a few characters and gives way with an ellipsis, its end (cut in the middle) never; alone
   as wide as it is, so a menu sized by its entries takes it whole up to its own maximum */
.fit-title-name {
  flex: 1 1 auto;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: minmax(4ch, auto);
  white-space: nowrap;
}

/* in a title, after words the name counts with its minimum only, so it shrinks beside them before it breaks onto a line
   of its own; in a sentence it keeps its width and breaks first, cut only where its own line is too narrow, and grows
   no wider than it is, so the words after it follow it */
.fit-title:not(.fit-title-sentence) .fit-title-words + .fit-title-name {
  flex-basis: 0;
}

.fit-title-sentence .fit-title-name {
  flex-grow: 0;
}

.fit-title-start {
  overflow: hidden;
  text-overflow: ellipsis;
  /* a space at the cut stays: under nowrap it fell away, "Nested key" read "Nestedkey" (recheck of Screenshots N3) */
  white-space: pre;
}

/* a name in a link takes its link's underline (styleguide 2.5, 2.16): as an inline-flex box the title takes none of
   its link's decoration, so it inherits it through what lies between (a Text) and draws it once over its parts; on the
   parts too, the muted line would lie over itself and darken */
a :is(:has(.fit-title), .fit-title) {
  text-decoration: inherit;
}

/* the page's columns (Columns.jsx): one under the other, a layout gap between them (styleguide 1.3; 16 below 768 px
   through the variable); the box is the container, so a column beside the page (the settings' navigation) needs no
   rule of its own; as a container its width cannot come from its content, so it takes its line wherever it stands (a
   flex column that aligns its parts to the start) */
.lz-columns {
  container: lz-columns / inline-size;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-layout);
}

.lz-column {
  flex: 1 1 100%;
  min-width: 0;
}

/* side by side from 1104 px of the box's room, where an 8/4's narrow column holds 40 characters of running text (1.4;
   Jan, 11-10); a fixed number, as a container query's threshold takes no variable */
@container lz-columns (min-width: 1104px) {
  /* two of equal weight, more than two in pairs */
  .lz-columns-6-6 > .lz-column {
    flex-basis: calc((100% - var(--space-layout)) / 2);
  }

  /* the main thing and a side thing */
  .lz-columns-8-4 > .lz-column:nth-child(odd) {
    flex-basis: calc((100% - var(--space-layout)) * 2 / 3);
  }

  .lz-columns-8-4 > .lz-column:nth-child(even) {
    flex-basis: calc((100% - var(--space-layout)) / 3);
  }
}

.grid {
  display: grid;
  /* the column rule, once for every grid of tiles (Jan, 10-24): the narrowest tile computed from its parts and their
     relations (the style model of 11-02): its inset on both sides and a name of 20 characters; with them, only where its
     tiles hold them (Jan, 11-05: a tenant's tile has neither and took 118 px of the version card's room), a lead 24 a
     group from the name, a tag 50 a part from it (the tag belongs to the name's line), the ⋮ or an action 25 a group
     from the rest. All of them 351.5 px at 16 px; two such tiles and 12 between take 715 px; tiles without a tag or
     a ⋮ (265 px) stand two side by side at 1206 px (measured 11-05, code review 2986b722 J1; the ⋮ 25 px since the UI check of Invoices, J1) */
  --grid-tile-lead: 0px;
  --grid-tile-tag: 0px;
  --grid-tile-menu: 0px;
  --grid-tile-min: calc(
    2 * var(--space-inset) + var(--grid-tile-lead) + 20ch + var(--grid-tile-tag) + var(--grid-tile-menu)
  );
  grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-tile-min), 100%), 1fr));
  /* tile to tile: boxes side by side in their card, a step closer than its inset (the style model of 11-02; Jan the
     same day: at 16 they stood as far apart as from the card's edge) */
  gap: var(--space-boxes);
  /* a stacking context of its own: an override's layer (z-index -1) lies under every tile, never over a neighbour */
  isolation: isolate;
}

.grid:has(.tile-lead) {
  --grid-tile-lead: calc(24px + var(--space-group));
}

.grid:has(.tile-tags) {
  --grid-tile-tag: calc(var(--space-part) + 50px);
}

.grid:has(.tile-menu, .tile-actions) {
  --grid-tile-menu: calc(var(--space-group) + 25px);
}

.grid-item {
  position: relative;
  /* a stacking context of its own, so what a tile layers inside stays inside it; its ⋮'s menu lies in a portal on body
     (Dropdown), over every tile */
  z-index: 0;
  max-height: -moz-fit-content;
  max-height: fit-content;
}

/* a list's or a grid's head (styleguide 3.2): the title, then filter, search and buttons, a group apart, wrapping;
   a section above the list (recheck 11-02: the search's own 4 px made 12 before the next button) */
.grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  /* wrapped, the controls a group below the title, as beside it */
  gap: var(--space-group);
  /* a container, so a control in the head adapts to the head's room, not the window's (styleguide 1.4; the date range's
     short form, DateRangePicker.css) */
  container: grid-head date-range-room / inline-size;
}

.grid-head-controls {
  display: flex;
  flex: 9 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-group);
}

/* the head's title takes no margin of its own: the Grid's Stack sets the section below the head */
.grid-head .card_section_title {
  margin-bottom: 0;
}

.grid-head-search {
  max-width: 250px;
}

/* narrow, once the buttons show their icons only (Button.css, the same width), the search gives way, so filter, search
   and the add stay one line (UI check of API and CDN 23) */
@container grid-head (max-width: 460px) {
  .grid-head-search {
    flex: 1 1 120px;
    min-width: 0;
  }
}

.grid-actions {
  white-space: nowrap;
}

/* a list one works through (styleguide 2.2, Jan 10-27: members): the column heads on the card, the rows (GridRow) in
   one box divided by hairlines (3.1, 8 % black). A container, so its rows stack below 640 px of its own width, not the
   window's (Jan, 11-10; Grid.jsx LIST_STACK, GridRow.css) */
.grid-list {
  container: grid-list / inline-size;
}

/* a list that stacks below 480 px (Grid `stackBelow`) */
.grid-list-480 {
  container-name: grid-list-480;
}

/* the heads share the rows' template (GridRow.css), so they line up; a group's distance to the box below; the
   accompanying role, small (12 px at 400, recheck Users 1: it inherited 300); cell to cell a section */
.grid-list-head {
  display: grid;
  grid-template-columns: var(--grid-list-columns);
  -moz-column-gap: var(--space-section);
       column-gap: var(--space-section);
  align-items: center;
  padding: 0 var(--space-inset) var(--space-group);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* stacked, no heads */
@container grid-list (width < 640px) {
  .grid-list-head {
    display: none;
  }
}

/* the same below 480 px for a list with `stackBelow={480}` (Grid.jsx): one condition per block, as a list of
   conditions is new (2026) and an older browser drops the whole rule */
@container grid-list-480 (width < 480px) {
  .grid-list-head {
    display: none;
  }
}

.grid-list-box {
  padding: 0;
}


/* adding and changing (styleguide 2.2, Jan 10-28): Grid marks an added or changed item (grid-item-marked,
   grid-list-item-marked), its look is its part's (GridTile.css, GridRow.css) */

/* the item the focus went to after adding or removing (styleguide 3.7) */
.grid-item:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
  border-radius: 8px;
}

/* a tile (GridTile.jsx); its look taken over from the old `grid-box` */
.tile {
  /* what differs per theme, set again for dark at the end: the shadow at rest and under the pointer, a selected
     tile's shadow under the pointer, the sunken ground (an override's offset copy, a language only on the parent),
     an empty list's ground and a group's, a step between the card and its tiles */
  --tile-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.05);
  --tile-shadow-hover: 0 0 10px 3px rgba(0, 0, 0, 0.2);
  --tile-active-hover: inset 0 0 0 1px rgba(25, 118, 210, 0.76), 0 0 10px 3px rgba(25, 118, 210, 0.25);
  --tile-sunken: var(--locize-lightGray);
  --tile-empty: #ffffffdb;
  --tile-group: rgba(255, 255, 255, 0.5);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-group);
  box-sizing: border-box;
  height: 100%;
  padding: var(--space-inset);
  border-radius: 8px;
  background: var(--ground-box);
  color: var(--text-content);
  box-shadow: var(--locize-bevel), var(--tile-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

/* a star, a ring or an avatar: a part of its own, 8 px to the rest (styleguide 2.2) */
.tile-lead {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-group);
  min-height: 24px;
}

.tile-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-part);
  min-width: 0;
}

/* the head's order (3.2): what the tile is, what one does, the ⋮ last */
.tile-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-group);
}

.tile-heading {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  /* a tag belongs to its name's line: a part from it (the style model of 11-02; was 8) */
  gap: var(--space-part);
  min-width: 0;
}

/* a tile's name line a fixed 24 px (with .tile-title's line-height below), so a fallback font does not make one tile
   higher than its neighbours; outside a tile (a list's row, a page's head) the line is its name's */
.tile .tile-heading {
  min-height: 24px;
}

/* the kind icon 4 px to its name (1.3) */
.tile-name {
  display: flex;
  align-items: center;
  gap: var(--space-part);
  min-width: 0;
  max-width: 100%;
}

/* a fixed line: a name with emoji, Arabic or CJK takes a fallback font with a taller line, which made its tile 2 px
   higher than its neighbours (scan, 10-24) */
/* the name the strongest part of a tile (styleguide 2.2; Jan, 10-25: 500, as light and dark show it apart from
   the facts at 300) */
.tile-title {
  min-width: 0;
  font-weight: 500;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* a tile that is a link carries no line under its name (Jan, 11-24): the whole tile is the way */
  text-decoration: none;
}

/* the name as a button (a tile with onClick): the browser's look reset at no specificity, so .tile-title wins */
:where(button.tile-title) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-part);
}

.tile-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-part);
  min-height: 24px;
}

/* the ⋮ belongs to the tile: in its corner, 4 px from the top and right edge (5 px on the old scale, as `grid-box`'s
   was), pulled there by negative margins so it stays in the flow and the name keeps stopping before it (Jan, 10-24);
   the inset 16 less 12 for the 25 px ⋮ (21 px until the UI check of Invoices, J1, pulled 14 from the top) */
.tile-menu {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 25px;
  margin: -12px -12px 0 0;
}

/* a picture above the head: the tile stands as a column, the picture a group above the name */
.tile-has-media {
  flex-direction: column;
  align-items: stretch;
}

/* under a picture the ⋮ stays beside the name, not pulled into the tile's corner */
.tile-has-media .tile-menu {
  margin-top: 0;
}

/* the lines under the head, a part apart; a long word in a user's text wraps instead of leaving the tile (1.4):
   break-word, not anywhere, which lowered every text's least width to one letter, down into the editor's columns (a
   review's date one letter a line at 375 px, UI check of Screenshots S21) */
.tile-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-part);
  overflow-wrap: break-word;
}

/* a tile's running text under its head (a step, a health signal): secondary 14 px (styleguide 1.1, 1.2); a long word,
   a URL or an error's code wraps instead of widening the page (1.4; Adriano's walk, 11-04) */
.tile-detail {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

/* a link in a tile's content leads somewhere to act (a filtered list, a settings page): the primary as text, as an
   action that needs attention (styleguide 2.5 a plain link or an action), the size of the detail; a tile inside a tile
   keeps its name's colour and size */
.tile-main a:not(.tile-title) {
  font-size: 14px;
  color: var(--text-link);
}

/* the variants, as the old `grid-box`'s; the hover only with a mouse, its lift only without reduced motion (styleguide 1.6
   Motion: a tap would leave a tile lifted) */
@media (hover: hover) and (pointer: fine) {
  .tile-clickable:hover {
    cursor: pointer;
    box-shadow: var(--locize-bevel), var(--tile-shadow-hover);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tile-clickable:hover {
    transform: translateY(-1px);
  }
}

/* the selection of a box (styleguide 1.1), not `grid-box-active`'s blue ground */
.tile.tile-active {
  background: var(--locize-selection);
  box-shadow: var(--locize-selection-shadow);
}

@media (hover: hover) and (pointer: fine) {
  .tile.tile-active.tile-clickable:hover {
    box-shadow: var(--tile-active-hover);
  }
}

.tile-nooverride {
  transform: translate(3px, 3px);
}

.tile-override::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background: var(--tile-sunken);
  transform: translate(3px, 3px);
  box-shadow: var(--locize-bevel);
  transition: transform 150ms ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tile-override.tile-clickable:hover {
    transform: none;
  }

  .tile-override.tile-clickable:hover::after {
    transform: translate(4px, 4px);
  }
}

.tile-notexisting {
  transform: translate(3px, 3px);
  background: var(--tile-sunken);
}

/* a group of tiles: lighter than the card, less white than its tiles */
.tile-secondary {
  background: var(--tile-group);
}

/* a group's name over its tiles: a small head, the tiles' names stay the strongest (Jan, 10-24); only its
   own head, not the tiles inside */
/* its head 8 px above its tiles, so it reads as the group's, not as the first tile's (Jan, 10-24; the tile's 5 px
   had come with f9d3d81a) */
.tile-secondary > .tile-body {
  gap: var(--space-group);
}

.tile-secondary > .tile-body > .tile-head .tile-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.tile-empty {
  background: var(--tile-empty);
  /* an empty list's message in the accompanying role, at 400 (styleguide 1.1; labelGray #484848 was neither #333 nor
     #666, R15; 300 before, recheck Version 3) */
  color: var(--text-secondary);
  font-weight: 400;
  box-shadow: none;
}

/* a tile Grid marks after adding or changing it (styleguide 2.2, 1.1 Selection: the ground, the ring and the blue
   shadow) for 2 s, then fading to its own look in 300 ms; no keyframe at 100 %, so the fade ends on the tile's own
   values, light or dark. With reduced motion the mark stays 2 s without fading */
.grid-item-marked > .tile {
  animation: grid-mark-tile 2300ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes grid-mark-tile {
  0%, 87% {
    background-color: var(--locize-selection);
    box-shadow: var(--locize-selection-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid-item-marked > .tile {
    animation-duration: 2000ms;
    animation-timing-function: steps(1, end);
  }
}

/* dark theme (execution Q4; values as the old `grid-box`'s): only the variables above, so no rule here outweighs
   a variant and none repeats it. The sunken ground on the card's #262a30 (a language only on the parent recedes onto
   it), an empty list one step between the card and a tile #30353c */
:root[data-theme='dark'] .tile {
  --tile-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.2);
  --tile-shadow-hover: 0 0 10px 3px rgba(0, 0, 0, 0.45);
  --tile-active-hover: inset 0 0 0 1px #6aaef0, 0 0 10px 3px rgba(106, 174, 240, 0.25);
  --tile-sunken: #262a30;
  --tile-empty: var(--locize-panel);
  --tile-group: var(--ground-subtle);
}

/* the global snack floats over the content as a menu does: the menu's quiet glass (styleguide 1.5, 2.4) under the
   state's ground, so in dark, where a state's ground is a tint of 12 %, the content below no longer shows through; in
   light the grounds are opaque and nothing changes */
.locize-snack .notification {
  --snack-ground: var(--ground-info);
  background-color: var(--ground-menu);
  background-image: linear-gradient(var(--snack-ground), var(--snack-ground));
  backdrop-filter: blur(12px);
  /* room on the right for the close: its 25 px and a part beside the text (styleguide 1.3) */
  padding-right: calc(var(--btn-tiny-size) + var(--space-part));
}

/* the global snack slides in from the right edge, a short way and its opacity, 200 ms ease-out; it closes at once
   (styleguide 1.6). With reduced motion only its opacity */
.locize-snack > .notification {
  animation: locize-snack-in 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes locize-snack-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}

/* an error's shake (animation.css) after its slide, so the slide does not take its place */
.locize-snack > .notification.shake {
  animation: locize-snack-in 200ms cubic-bezier(0.23, 1, 0.32, 1), shake 0.25s cubic-bezier(0.36, 0.07, 0.19, 0.97) 200ms both;
}

@media (prefers-reduced-motion: reduce) {
  .locize-snack > .notification,
  .locize-snack > .notification.shake {
    animation: locize-snack-fade-in 200ms cubic-bezier(0.23, 1, 0.32, 1);
  }
}

@keyframes locize-snack-fade-in {
  from {
    opacity: 0;
  }
}

.locize-snack .notification-success {
  --snack-ground: var(--ground-success);
}

.locize-snack .notification-warning {
  --snack-ground: var(--ground-warning);
}

.locize-snack .notification-error {
  --snack-ground: var(--ground-error);
}

/* the snack's close: a cross in the secondary text's colour, also under the pointer, not the state's (styleguide 2.9),
   in the corner, not a group below the text as the text's blocks (Notification.css); .btn as the button's own class, so
   it outweighs .btn's position and the text's margin (.notification > div > * + *) */
.btn.notification-dismiss {
  /* the icon button's own text colour (IconButton.css sets its transparent text from it) */
  --btn-icon-text: var(--text-secondary);
  --btn-transparent-hover-text: var(--text-secondary);
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
}

.locize-filtersearch {
  position: relative;
  flex: 1;
}

.locize-filtersearch-input {
  position: relative;
  display: block;
  border: none;
  width: 100%;
  box-sizing: border-box;
  padding: 3px 8px 3px 32px;
  height: 30px;
  /* the scale's 14 px (1.2; the browser's 13.33 px for an input before, recheck Dashboard 1) */
  font-size: 14px;
  /* a field, not a button (Jan, 11-02): a field's ground and a button's outer shadow without its bevel (locize-visual
     Button.css), fainter than the selection's while it searches; without one, white on a dialog's white, it showed no
     field at all (issue settings) */
  background-color: var(--ground-field);
  box-shadow: var(--search-shadow, 0 0 5px 3px rgba(0, 0, 0, 0.05));
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 15px;
  color: var(--text-content);
  transition: background-color ease-in 0.3s;
}

.locize-filtersearch-input:hover,
.locize-filtersearch-input:focus {
  outline: none;
  background-color: var(--ground-field);
}

/* focused, its edge 2 px in the focus colour, as a field's underline (2.6) */
.locize-filtersearch-input:focus {
  box-shadow: inset 0 0 0 2px var(--locize-focus);
}

/* a search with text narrows the list: the selection of a box (GridTile.css .tile-active, styleguide 1.1), as the filter
   button while it filters; also on hover and focus, which turned it white */
.locize-filtersearch-input-active,
.locize-filtersearch-input-active:hover,
.locize-filtersearch-input-active:focus {
  background-color: var(--locize-selection);
  box-shadow: var(--locize-selection-shadow);
}

.locize-filtersearch-input:disabled {
  background: var(--locize-lightGray);
  cursor: not-allowed;
}

/* the quiet role, as every placeholder (1.1; middleGray at 200 was 2.07:1, recheck Dashboard 1) */
.locize-filtersearch-input::-moz-placeholder {
  color: var(--text-quiet);
  font-weight: 300;
}
.locize-filtersearch-input::placeholder {
  color: var(--text-quiet);
  font-weight: 300;
}

.locize-filtersearch-searchicon {
  position: absolute;
  left: 4px;
  top: 4px;
}


/* dark theme (execution Q4): data-theme="dark" on <html> */
/* at rest a hairline in the divider role besides the shadow: on the dark ground a shadow does not carry, and the
   field's #23272c stood on a dialog's #262a30 (Jan, 11-02); a variable only, so focus and a search with text keep
   their own edge without being excluded here */
:root[data-theme='dark'] .locize-filtersearch-input {
  --search-shadow: inset 0 0 0 1px var(--line-divider), 0 0 5px 3px rgba(0, 0, 0, 0.05);
}

/* a switcher's entry is a link filling its row: the row (Dropdown.css, ul.dropdown-menu li) keeps its padding, hover
   and the current entry's check, the link takes the whole row so a click anywhere and the focus ring cover it */
.dropdown-panel ul.switcher-menu li > .switcher-menu-link {
  display: block;
  margin: -6px -8px -6px -32px;
  padding: 6px 8px 6px 32px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.dropdown-panel ul.switcher-menu li > .switcher-menu-link:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: -2px;
}

/* a choice on the page (onSelect) is a button: no button look, the row's width with the negative margins */
.dropdown-panel ul.switcher-menu li > button.switcher-menu-link {
  width: calc(100% + 42px);
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* the entries in the text's own style, wherever the switcher sits (in a subtitle it would turn italic and thin) */
.dropdown-panel ul.switcher-menu {
  font-style: normal;
  font-weight: 400;
}

/* the switcher's own parts, wherever it sits (styled under .app-header only until 10-25, so the language switcher on
   the version page had none of them): the search a step above the list, "No … matches" as secondary text and no
   entry, "All … →" at the end over a hairline */
.dropdown-panel .switcher-menu-search {
  padding: 0 0 4px;
}

.dropdown-panel ul.dropdown-menu.switcher-menu li.switcher-menu-muted {
  color: var(--locize-secondaryText);
  cursor: default;
}

.dropdown-panel ul.dropdown-menu.switcher-menu li.switcher-menu-muted:hover {
  background: none;
}

.dropdown-panel ul.dropdown-menu.switcher-menu li.switcher-menu-all {
  margin-top: var(--space-part);
  border-top: 1px solid var(--line-divider);
  border-radius: 0 0 6px 6px;
  color: var(--locize-primaryText);
}

/* dark theme (execution Q4): data-theme="dark" on <html> */


/* an entry without a way is text (a folded path's project before its version): no hover, no pointer */
.dropdown-panel ul.switcher-menu li > .switcher-menu-text {
  color: var(--text-secondary);
  cursor: default;
}

/* a list's row (GridRow.jsx, styleguide 2.2): the list's column template (Grid sets --grid-list-columns), the same in
   every row and in the heads, so the columns line up; cell to cell a section; inside a cell a part or a group (the
   style model of 11-02, recheck Users 13: 8 everywhere erased the cells) */
.grid-list-row {
  display: grid;
  grid-template-columns: var(--grid-list-columns);
  -moz-column-gap: var(--space-section);
       column-gap: var(--space-section);
  align-items: center;
  padding: var(--space-inset-compact) var(--space-inset);
  /* every row the same line on top, the first one's transparent (it was 1 px shorter than the others, recheck U2) */
  border-top: 1px solid transparent;
  position: relative;
  /* a stacking context of its own, as a tile's, so what a row layers inside stays inside it; its ⋮'s menu lies in a
     portal on body (Dropdown), over every row */
  z-index: 0;
}

/* the rows in one box, divided by hairlines (3.1); the box does not clip, so the first and last round their own
   corners for a ground of their own (`off`, the mark). Each row stands in its entry (Grid.css .grid-list-item) */
.grid-list-item + .grid-list-item > .grid-list-row {
  border-top-color: var(--line-divider);
}

.grid-list-item:first-child > .grid-list-row {
  border-radius: 8px 8px 0 0;
}

.grid-list-item:last-child > .grid-list-row {
  border-radius: 0 0 8px 8px;
}

.grid-list-item:only-child > .grid-list-row {
  border-radius: 8px;
}

/* the row the focus went to after adding or removing (styleguide 3.7) */
.grid-list-item:focus-visible > .grid-list-row {
  outline: 2px solid var(--locize-focus);
  outline-offset: -2px;
}

/* a row whose cells stack two lines in a cell: at least two lines, a name (16 px, 18 high) 4 px above a detail (14 px,
   17 high); a row with one line in its first cell (no name, an invitation) fell to its other cells' 38 px, 2 px short
   of its neighbours (UI check of Users, 10-28). More content stays taller; a row of one line stays one line (Billing ›
   Invoices' step 3, finding 1).
   Such a row has one main line (Jan, 11-02, recheck Users 12): every cell's first line on the name's baseline, the
   details on the second line, the ⋮ centred. A cell's lines take their baseline from the name, not from an avatar
   beside it; a cell's icon stands centred to its text, the text on the baseline (a lock before "2FA" had pulled its
   cell 2.5 px off) */
.grid-list-row:has(.grid-list-cell .lz-spaced-y.lz-gap-part > :nth-child(2)) {
  min-height: 40px;
  align-items: first baseline;
}

.grid-list-cell > .lz-spaced-x > .lz-spaced-y {
  align-self: baseline;
}

/* the corner's cell (GridCell `corner`: the ⋮, the row's own button) keeps the ⋮'s height (a tiny icon button, 25 px) also
   where a row has none, so a row without it is not lower than its neighbours (Billing › Invoices' step 3, finding 2). A
   flex box, so the cell is as high as its button: as a block it set the button on a line of text and kept 3 px below it
   for the line's descent (28 px) */
.grid-list-corner {
  display: flex;
  align-items: center;
  min-height: 25px;
  align-self: center;
}

.grid-list-cell .lz-spaced-x:has(> .material-icons) {
  align-items: baseline;
}

.grid-list-cell .lz-spaced-x > .material-icons {
  align-self: center;
}

.grid-list-cell {
  min-width: 0;
}

/* a column at its end (columns' align 'end': amounts), its figures of one width so they stand digit under digit */
.grid-list-cell-end {
  font-variant-numeric: tabular-nums;
  text-align: end;
}

/* a row out of play (a blocked member): on the box's grey, its texts keep 4.5:1 (#666 5.27:1) */
.grid-list-row.grid-list-row-off {
  background: var(--ground-subtle);
}

/* a row Grid marks after adding or changing it (styleguide 2.2, 1.1 Selection: the ground and the bar) for 2 s, then
   fading to its own look in 300 ms; no keyframe at 100 %, so the fade ends on the row's own values, light or dark. With
   reduced motion the mark stays 2 s without fading */
.grid-list-item-marked > .grid-list-row {
  animation: grid-mark-row 2300ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes grid-mark-row {
  0%, 87% {
    background-color: var(--locize-selection);
    box-shadow: inset 3px 0 0 var(--locize-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid-list-item-marked > .grid-list-row {
    animation-duration: 2000ms;
    animation-timing-function: steps(1, end);
  }
}

/* a word shown only while a list is stacked, where the column heads are gone: a switch in a table row says what it
   switches (styleguide 1.4 "drop … never a function"; UI check of Editor and AI 10, 10-29) */
.grid-list-narrowonly {
  display: none;
}

/* stacked below 640 px of the list, 480 with `stackBelow` (Grid.css .grid-list; Jan, 11-10): the cells under each other in the columns'
   order, a part apart; the corner's cell (the ⋮, the row's own button) in the row's top right corner, 4 px from
   its top and right edge, as a tile's ⋮ (2.2) */
@container grid-list (width < 640px) {
  .grid-list-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-part);
  }

  .grid-list-row > .grid-list-cell {
    grid-column: 1;
  }

  .grid-list-row > .grid-list-cell:empty {
    display: none;
  }

  .grid-list-row > .grid-list-cell-end {
    text-align: start;
  }

  .grid-list-row:has(> .grid-list-corner) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .grid-list-row > .grid-list-corner {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: calc(4px - var(--space-inset-compact));
    margin-right: calc(4px - var(--space-inset));
  }

  .grid-list-narrowonly {
    display: inline;
  }
}

/* the same below 480 px for a list with `stackBelow={480}` (Grid.jsx): one condition per block, as a list of
   conditions is new (2026) and an older browser drops the whole rule */
@container grid-list-480 (width < 480px) {
  .grid-list-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-part);
  }

  .grid-list-row > .grid-list-cell {
    grid-column: 1;
  }

  .grid-list-row > .grid-list-cell:empty {
    display: none;
  }

  .grid-list-row > .grid-list-cell-end {
    text-align: start;
  }

  .grid-list-row:has(> .grid-list-corner) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .grid-list-row > .grid-list-corner {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: calc(4px - var(--space-inset-compact));
    margin-right: calc(4px - var(--space-inset));
  }

  .grid-list-narrowonly {
    display: inline;
  }
}

/* A settings area's sections (styleguide 3.6): the layout's column left of the content (DefaultLayout's aside), a
   200 px list on glass from below the header to the window's bottom, folding to its icons; below 768 px a select above
   the content. The gap to the cards (30 px) and their own room are the layout's (DefaultLayout.css). */

/* the column (SideColumn): 200 px of list, folded the icons' column, each with the 20 px beside the entries; the
   padding inside it */
.section-nav-column {
  --side-column-open: 220px;
  --side-column-folded: 60px;
}

.section-nav {
  box-sizing: border-box;
  padding: 16px 0 8px var(--space-24);
}

.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* an entry as a page tab (2.11): grey, darker on hover, the active one in the text colour with a 2 px primary line,
   here on its left; no ground */
.section-nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  font-size: 16px;
  color: var(--locize-tabText);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

.section-nav-item .material-icons {
  flex-shrink: 0;
  color: inherit;
}

.section-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 150ms ease;
}

.section-nav-item:hover,
.section-nav-item.active {
  color: var(--locize-textGray);
}

.section-nav-item.active {
  border-left-color: var(--locize-primary);
}

.section-nav-item:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: -2px;
}

.collapsed .section-nav-label {
  opacity: 0;
  white-space: nowrap;
}

/* the way back above the sections: an entry in their look, its label cut at its end, a section above the list (1.3) */
.section-nav-back {
  margin-bottom: var(--space-section);
}

.section-nav-back .section-nav-label {
  min-width: 0;
}

.section-nav-select {
  display: none;
}

/* below 768 px the select above the content, the layout's gap above the cards (1.3; ui check R4). The
   layout shows the column there inside its scrolling content (DefaultLayout.css), which brings the gap above and the
   scrollbar's room: the column adds neither, or the select stood 16 px lower, 10 px narrower and touching the first
   card */
@media (max-width: 767px) {
  .section-nav-column {
    --side-column-open: 100%;
    --side-column-folded: 100%;
    --side-column-ground: transparent;
    --side-column-line: transparent;
    --side-column-blur: none;
  }

  .section-nav {
    padding: 0 var(--space-24) var(--space-layout);
  }

  .section-nav ul,
  .section-nav-column > .side-column-toggle {
    display: none;
  }

  /* above the select, a group from it, without the entries' line */
  .section-nav-back {
    margin-bottom: var(--space-group);
    padding-left: 0;
    border-left: 0;
  }

  .section-nav-select {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-nav-item,
  .section-nav-label {
    transition: none;
  }
}

/* A column beside the content that folds (styleguide 3.6): on glass, paler than the header (1.5), its width animated
   (1.6), the handle outside its inner edge. Its user sets --side-column-open and --side-column-folded, and where it
   shows the column otherwise (narrow) --side-column-ground, --side-column-line and --side-column-blur: variables, so
   no rule depends on which stylesheet loads last. Its glass and hairline are roles in both themes (locize-visual
   colors.css), as a band on it takes them too. */

/* the width as a typed variable, so only folding animates it, not every change of the window's width */
@property --side-column-width {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: 0px;
}

.side-column {
  --side-column-width: var(--side-column-open);
  position: relative;
  z-index: 1;
  flex: none;
  box-sizing: border-box;
  width: var(--side-column-width);
  background: var(--side-column-ground, var(--ground-side-column));
  backdrop-filter: var(--side-column-blur, blur(8px));
  box-shadow: inset -1px 0 0 var(--side-column-line, var(--line-hairline));
  transition: --side-column-width 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.side-column-right {
  box-shadow: inset 1px 0 0 var(--side-column-line, var(--line-hairline));
}

.side-column.folded {
  --side-column-width: var(--side-column-folded);
}

/* what it holds, cut to the column while it folds */
.side-column-body {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* the handle in the gap beside the column, at its middle; at rest a short bar of two 2 x 8 px strokes, which tilt
   into a chevron under the pointer or the keyboard focus, pointing where the column goes; the strokes in the
   accompanying colour (a control needs 3:1, WCAG 1.4.11) */
.side-column-toggle {
  position: absolute;
  top: calc(50% - 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: pointer;
}

.side-column-left > .side-column-toggle {
  right: -16px;
}

.side-column-right > .side-column-toggle {
  left: -16px;
}

.side-column-toggle:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: -2px;
}

.side-column-toggle-bar {
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: var(--text-secondary);
  transition: transform 100ms ease, background-color 100ms ease;
}

.side-column-toggle-bar + .side-column-toggle-bar {
  margin-top: -2px;
}

.side-column-toggle:hover .side-column-toggle-bar,
.side-column-toggle:focus-visible .side-column-toggle-bar {
  background: var(--text-content);
}

/* the chevron points left: to fold a left column, to unfold a right one */
.side-column-left:not(.folded) > .side-column-toggle:is(:hover, :focus-visible) .side-column-toggle-bar:first-child,
.side-column-right.folded > .side-column-toggle:is(:hover, :focus-visible) .side-column-toggle-bar:first-child {
  transform: translateY(1px) rotate(30deg);
}

.side-column-left:not(.folded) > .side-column-toggle:is(:hover, :focus-visible) .side-column-toggle-bar:last-child,
.side-column-right.folded > .side-column-toggle:is(:hover, :focus-visible) .side-column-toggle-bar:last-child {
  transform: translateY(-1px) rotate(-30deg);
}

/* the chevron points right: to unfold a left column, to fold a right one */
.side-column-left.folded > .side-column-toggle:is(:hover, :focus-visible) .side-column-toggle-bar:first-child,
.side-column-right:not(.folded) > .side-column-toggle:is(:hover, :focus-visible) .side-column-toggle-bar:first-child {
  transform: translateY(1px) rotate(-30deg);
}

.side-column-left.folded > .side-column-toggle:is(:hover, :focus-visible) .side-column-toggle-bar:last-child,
.side-column-right:not(.folded) > .side-column-toggle:is(:hover, :focus-visible) .side-column-toggle-bar:last-child {
  transform: translateY(-1px) rotate(30deg);
}

@media (prefers-reduced-motion: reduce) {
  .side-column,
  .side-column-toggle-bar {
    transition: none;
  }
}

/* a value to copy on its own ground (styleguide 1.1 "Set apart"): the value in the content's role, the icon in the
   action's; the whole field is the button */
.copy-field {
  display: flex;
  align-items: center;
  gap: var(--space-group);
  padding: var(--space-part) var(--space-group);
  border-radius: 6px;
  background: var(--locize-codeBackground);
  color: var(--text-content);
}

.copy-field-multiline {
  align-items: flex-start;
}

.copy-field-value {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  word-break: break-all;
}

/* a snippet keeps its lines and scrolls sideways */
.copy-field-multiline .copy-field-value {
  overflow-x: auto;
  word-break: normal;
}

.copy-field-multiline .copy-field-value code {
  font-size: 12px;
  white-space: pre;
}

/* the value is no code chip of its own: the field is its ground (one form or the other) */
.copy-field code {
  color: inherit;
  background: none;
  padding: 0;
}

.copy-field-icon {
  flex: none;
  color: var(--icon-action);
}

/* the button: under the pointer its ground darkens a little (motion 150 ms ease, styleguide 2.5) */
.copy-field-action {
  cursor: pointer;
  box-shadow: inset 0 0 0 999px transparent;
  transition: box-shadow 150ms ease;
}

.copy-field-action:hover {
  box-shadow: inset 0 0 0 999px var(--ground-hover);
}

/* keyboard focus: the buttons' ring (styleguide 3.7) */
.copy-field-action:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

.progress-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 4px;
  margin: 0 4px 4px 0;
  width: 70px;
  height: 65px;
  overflow: hidden;
  color: var(--locize-textGray);
}

.progress-stat-inline {
  margin: 0;
  padding: 0;
  width: auto;
  height: initial;
}

.progress-stat-white {
  color: var(--locize-white);
}

.progress-stat-progress-container {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
}

.progress-stat-progress {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.progress-stat-progress-label {
  position: absolute;
  font-weight: 300;
}
.progress-stat-progress-label small {
  font-size: 8px;
}

.progress-stat.progress-stat-clickable:hover {
  background: rgba(33, 150, 243, 0.3);
  background: linear-gradient(165deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.1) 100%);
  border-radius: 15px;
}

.progress-stat.progress-stat-clickable:hover .progress-stat-progress-label {
  color: var(--locize-darkGray);
  font-weight: 600;
}

/* The date range in a list's head (a container `date-range-room`: Grid.css's head; the editor's filter column takes the
   plain form, below): two date fields in a secondary button's form
   (Button.css .btn-secondary), the selection while it narrows the list (.btn-active, styleguide 1.1, 3.2); the fields
   show only their day and the browser's calendar icon. Each form stands in the width it holds for (code guide §4) */
.date-range {
  display: inline-flex;
  align-items: center;
  gap: var(--space-part);
  white-space: nowrap;
}

/* the second day with its dash, kept together when the two wrap */
.date-range-to {
  display: inline-flex;
  align-items: center;
  gap: var(--space-part);
}

/* the field without its own line; the browser's calendar icon follows the theme's `color-scheme` (colors.css) */
.date-range input {
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 15px;
}

/* a head with room: one form around both fields, the selection and the focus on it */
@container date-range-room (width > 460px) {
  .date-range {
    min-height: 30px;
    padding: 0 var(--space-inset-compact);
    box-sizing: border-box;
    border-radius: 15px;
    background-color: var(--ground-control);
    color: var(--text-content);
    box-shadow: var(--btn-raised, var(--locize-bevel), 0 0 5px 3px rgba(0, 0, 0, 0.05));
  }

  .date-range.date-range-active {
    background-color: var(--locize-selection);
    box-shadow: var(--locize-selection-shadow);
  }

  .date-range:focus-within {
    outline: 2px solid var(--locize-focus);
    outline-offset: 2px;
  }

  .date-range input {
    padding: 0;
    background: transparent;
    outline: 0;
  }
}

/* a head with no room for one form (the head's width where its buttons show their icons only): each field in a
   button's form of its own, "to" wraps below "from" (1.4); the selection and the focus go to the fields */
@container date-range-room (max-width: 460px) {
  .date-range {
    flex-wrap: wrap;
  }

  .date-range input {
    min-height: 30px;
    padding: 0 var(--space-inset-compact);
    box-sizing: border-box;
    border-radius: 15px;
    background-color: var(--ground-control);
    color: var(--text-content);
    box-shadow: var(--btn-raised, var(--locize-bevel), 0 0 5px 3px rgba(0, 0, 0, 0.05));
  }

  .date-range.date-range-active input {
    background-color: var(--locize-selection);
    box-shadow: var(--locize-selection-shadow);
  }

  .date-range input:focus-visible {
    outline: 2px solid var(--locize-focus);
    outline-offset: 2px;
  }
}

/* plain: the days as text at a filter entry's step (Text.Secondary compact: 14 px, 300, the content's colour), no ground,
   edge, bevel or ring; on one line where there is room; the keyboard's focus on the field (styleguide 3.7). Outside
   the container `date-range-room`, so the head's forms do not apply */
.date-range.date-range-plain {
  flex-wrap: wrap;
  white-space: normal;
}

.date-range-plain input {
  padding: 0;
  background: transparent;
  color: var(--text-content);
  font-size: 14px;
  font-weight: 300;
}

.date-range-plain input:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

/* a help link beside a label or a title (HelpLink): a component of its own, not an icon in a line of text
   (styleguide 1.7). Small and kept back, less than the label it helps, in the help role (1.1): an outlined glyph of
   14 px at every text size (Jan, 11-03; was one step larger than its text, 18 px beside a switch's 16 and 24 beside a
   title, sitting 3 to 4 px high; a filled glyph stood as loud as the label for its area). In the middle of its line:
   the box's bottom edge is its baseline (overflow), raised to the text's middle (about 0.35em above the baseline) less
   half its height. A part from its text, as it stands in running text, where no Stack places it */
.help-link {
  display: inline-block;
  overflow: hidden;
  width: 14px;
  height: 14px;
  line-height: 14px;
  vertical-align: calc(0.35em - 7px);
  margin-left: var(--space-part);
  text-decoration: none;
}

.help-icon {
  display: block;
  color: var(--icon-help);
  cursor: pointer;
}

.input-field {
  width: calc(100% - 40px);
  font-size: 16px;
  padding: 6px 32px 7px 8px;
  background-color: var(--ground-field) !important;
  color: var(--text-content);

  border: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: 0;
  backdrop-filter: blur(4px);

  border-radius: 3px;
}

/* a text field grows with its text: the field and a hidden copy of its text share one grid cell, the copy styled as the
   field so it gives the height (styleguide 2.6); no drag handle. Several lines take the one-line field's insets, so its
   text starts where the field above starts its own; no room for the saved check on the right (UI check of Orders, P9) */
.input-field-grow {
  display: grid;
}
.input-field-grow > textarea,
.input-field-grow::after {
  grid-area: 1 / 1 / 2 / 2;
  font: inherit;
  font-size: 16px;
  line-height: inherit;
  padding: 6px 8px 7px;
  width: calc(100% - 16px);
  overflow-wrap: anywhere;
}
.input-field-grow > textarea {
  resize: none;
  overflow: hidden;
}
.input-field-grow::after {
  content: attr(data-value);
  white-space: pre-wrap;
  visibility: hidden;
}

/* disabled: the quiet role (1.1, below 4.5:1 by kind; light rgba(65, 65, 65, 0.6) and dark #6b7178 before) */
.input-field-disabled {
  color: var(--text-quiet);
  cursor: not-allowed;
}

/* the filter of a list's head, from the commit prototype (proto.css .proto-filtermenu …) */
/* as wide as the menu's panel inside its padding (220 less 2 × 6): 220 ran 14 px past it and cut a long name
   (recheck Dashboard 5) */
.filtermenu {
  /* a column, so the list takes the room the panel has left beside the search and "clear" (Dropdown.css) */
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 208px;
  padding: var(--space-part) 0;
  text-align: left;
  white-space: nowrap;
}

/* the search of a long group, a step above the list, as a switcher's (SwitcherMenu.css); "Nothing matches" in a row's
   inset */
.filtermenu-search {
  padding: 0 var(--space-part) var(--space-part);
}

.filtermenu-none,
.filtermenu-note {
  display: block;
  padding: var(--space-part) var(--space-group);
}

/* a group's note wraps in the panel's width: a sentence, not an entry */
.filtermenu-note {
  white-space: normal;
}

.filtermenu-group {
  /* the accompanying role, small (Text.Tertiary small; it inherited the menu's 300, recheck Dashboard U1) */
  padding: var(--space-group) var(--space-group) 0;
}

/* a filter group's title in small capitals: a menu's groups (FilterMenu) and the editor's filter column (FilterGroup) */
.filter-group-title {
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.filtermenu-reset,
.filter-word,
.filter-clear {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.filtermenu-reset {
  display: block;
  width: 100%;
  margin-top: var(--space-part);
  padding: var(--space-part) var(--space-group) 0;
  border-top: 1px solid var(--line-divider);
  font-size: 14px;
  text-align: left;
  color: var(--text-link);
}

.filter-muted {
  font-size: 14px;
  color: var(--locize-secondaryText);
}

/* the active filters as a line, a part of the Grid's Stack; a filter without underline, the × says it can be clicked;
   blue on hover */
/* its name cut at its end, at most some 32 characters so the line keeps its other parts, its × always beside it */
.filter-word {
  display: inline-flex;
  align-items: baseline;
  max-width: min(32ch, 100%);
  padding: 0;
}

.filter-word-x {
  flex-shrink: 0;
  margin-left: var(--space-part);
}

.filter-word:hover {
  color: var(--locize-primaryText);
}

/* "clear", the line's only link without a ×: a quiet link (styleguide 2.5 a plain link) */
.filter-clear {
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--icon-meaning);
  text-underline-offset: 3px;
}

.filter-clear:hover {
  color: var(--locize-primaryText);
  text-decoration-color: currentColor;
}

.filtermenu-reset:focus-visible,
.filter-word:focus-visible,
.filter-clear:focus-visible {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

/* rows of one height: a name with an emoji takes a fallback font with a taller line (35 px against 30, recheck
   Dashboard 5); a fixed line as a tile's name */
.filtermenu .menu-entry span {
  line-height: 18px;
}

/* from 10 entries (with the search) about ten rows high, scrolling in itself below the search (styleguide 3.2): ten
   rows of 30 px (a menu's entry, 18 px line and its padding) */
.filtermenu-list {
  max-height: 300px;
  min-height: 0;
  overflow-y: auto;
}

/* a trigger that names its choice (FilterMenu label) is never wider than its room and cuts its words at their end, as a
   select button's value (styleguide 2.7) */
.filtermenu-labelled > .dropdown-wrapper {
  min-width: 0;
  max-width: 100%;
}

.filtermenu-labelled > .dropdown-wrapper > .btn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes input-container-dirty {
  0% {
    background-color: rgba(33, 150, 243, 1);
  }

  50% {
    background-color: rgba(33, 150, 243, 0.3);
  }

  100% {
    background-color: rgba(33, 150, 243, 1);
  }
}

@keyframes input-container-saving {
  0% {
    width: 0;
  }

  20% {
    margin-left: 10%;
    width: 20%;
  }

  100% {
    margin-left: 70%;
    width: 30%;
  }
}

@keyframes input-container-saved {
  0% {
    width: 0;
    background-color: rgba(84, 162, 41, 1);
  }

  50% {
    width: 30%;
    background-color: rgba(84, 162, 41, 1);
  }

  80% {
    width: 100%;
    background-color: rgba(84, 162, 41, 1);
  }

  100% {
    width: 100%;
    background-color: rgba(84, 162, 41, 1);
  }
}

.input-container {
  position: relative;
  width: 100%;
  min-height: 23px;
}

.input-container:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1px;
  border-bottom: solid 1px var(--locize-cream-inputLine);
  border-radius: 3px;
  z-index: 4;
}

.input-container:focus-within::after {
  height: 2px;
}

.input-container .input-container-errorwrapper {
  position: relative;
  z-index: 10;
}

/* the check a field shows once it is saved (InputContainer.jsx), its own class: as `.input-container i` it reached every
   icon in a field (a select's arrow turned green, Backup step 3, finding 2) */
.input-container .input-container-saved {
  position: absolute;
  top: 0px;
  right: 2px;
  /* one step above the field's 16 px (styleguide 1.7; UI check of Backups R11: 21 px) */
  font-size: 18px;
  color: var(--icon-success);
}

.input-container.dirty:after {
  border-bottom: dotted 1px var(--locize-cream-inputLine);
}

/* a field in focus, by click or keyboard: its underline 2 px in the focus colour (1 px grey before, the focus not
   visible); after the dirty line so it wins over it, before saving, saved, disabled and error, which keep theirs */
.input-container:focus-within::after {
  border-bottom: solid 2px var(--locize-focus);
}

.input-container.saving:after {
  animation: input-container-saving 2s infinite;
  border-bottom: solid 1px transparent;
}

/* saved and error: 2 px solid as the focus line, only the colour tells them apart (1 px, error dashed, before) */
.input-container.saved:after {
  border-bottom: solid 2px var(--icon-success);
}

.input-container-disabled:after {
  border-bottom: solid 1px var(--locize-middleGray);
}

.input-container.error:after {
  border-bottom: solid 2px var(--icon-error);
  /* above the error wrapper (z-index 10), whose field's white 50 % otherwise paled the line to pink */
  z-index: 11;
}
/* a field with its label (InputField, Select, a controlled field, a checkbox): a Stack of parts, the label 4 px above the
   field (the style model of 11-02, no label margin); positioned for the field's own icons */
.input-field-wrapper {
  position: relative;
}

/* the label a step below its value, beside a working surface's compact values (`small`, styleguide 1.2: 12 over 14) */
label.field-label-small {
  font-size: 12px;
}

.select {
  position: relative;
  width: 100%;
  font-size: 16px;
  /* right: room for the 24 px arrow over it plus 4 px to the text (styleguide 2.7); 2px before, the text ran under it */
  padding: 6px 28px 7px 8px;
  background-color: var(--ground-field);
  color: var(--text-content);

  border: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: 0;

  backdrop-filter: blur(4px);
  border-radius: 3px;

  cursor: pointer;
  z-index: 2;
}

/* a native select's arrow over its right end, in the action's colour, light and dark (getColor read the light #1976d2
   once: 2.68:1 on the dark field, WCAG 1.4.11; R23 of the ui check); a click on it reaches the select */
.select-arrow {
  position: absolute;
  right: 0;
  top: 3px;
  z-index: 3;
  color: var(--icon-action);
  pointer-events: none;
}

/* the quiet role, at full opacity: middleGray under the browser's 0.7 was #cbcbcb, 1.62:1 (recheck Settings 6) */
.select-disabled {
  color: var(--text-quiet);
  opacity: 1;
  cursor: not-allowed;
}

.select option {
  /* a native list can carry no glass: the box's ground, opaque */
  background-color: var(--ground-box);
  color: var(--text-content);
}

/* as a native field's placeholder (base.css input::placeholder; styleguide 1.1 placeholders, 1.2 never below 300), 2 px
   in as the value (SelectCreatable.css) */
.react-select__placeholder {
  margin: 0 2px;
  font-size: 16px;
  color: var(--text-quiet);
  font-weight: 300;
  font-family: var(--locize-font-family-readable);
  /* one line as a native field's placeholder, cut at the end: at 320 px it wrapped to 36 px in a 38 px field, 1 px to
     its edges (styleguide 2.7) */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* customized like
   https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Customizable_select
*/
select.select.select-custom,
select.select.select-custom::picker(select) {
  -webkit-appearance: base-select;
     -moz-appearance: base-select;
          appearance: base-select;
  border: none;
  opacity: 0;
  transition: all 0.4s allow-discrete;
  top: calc(anchor(bottom) + 1px);
  left: anchor(0%);
}

select.select.select-custom::picker-icon {
  display: none;
}

select.select.select-custom,
select.select.select-custom::picker(select):popover-open {
  opacity: 1;
}

@starting-style {

  select.select.select-custom,
  select.select.select-custom::picker(select):popover-open {
    opacity: 0;
  }

}

select.select.select-custom option {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-24);

  border: 1px solid #dddddd;
  background: #eeeeee;
  padding: 8px;
  transition: 0.4s;
}

select.select.select-custom option:first-of-type {
  border-radius: 8px 8px 0 0;
}

select.select.select-custom option:last-of-type {
  border-radius: 0 0 8px 8px;
}

select.select.select-custom::picker(select) {
  border-radius: 8px;
}

select.select.select-custom option:not(option:last-of-type) {
  border-bottom: none;
}

select.select.select-custom option:nth-of-type(odd) {
  background: white;
}

select.select.select-custom option:hover {
  background: #2196f3a6;
}

select.select.select-customoption:focus {
  outline: none;
}


/* the icon over the input it stands for */
.input-checkbox-box {
  position: relative;
}

/* the box is the icon over it: the input as large as the icon, without the browser's margin, so its label stands 4 px
   beside the icon (styleguide 1.3; was 3 px, the input's 3–4 px margin) */
.input-checkbox {
  opacity: 0;
  margin: 0 4px 0 0;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
/* keyboard focus: the input is invisible, so its icon shows the ring of 3.7 (WCAG 2.4.7); a click leaves no ring, as a
   checkbox is not :focus-visible after one */
.input-checkbox-box:has(.input-checkbox:focus-visible) > i {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

/* a long label wraps beside its box, not below it */
.input-checkbox + label {
  max-width: calc(100% - 25px);
  vertical-align: top;
}

/* the box's own label: content, 16 px at 300 (styleguide 1.1, 1.2), in the text's font as a switch's label (Jan, 11-09;
   was Roboto Condensed beside the system font everywhere else) */
.checkbox-label {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-content);
}

/* keyboard focus: the ring of buttons and links (base.css, styleguide 3.7), around the whole switch; a click shows none */
.input-switch:has(input:focus-visible) {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

.switch-no-handle .react-switch-handle {
  visibility: hidden;
}

/* while it saves it looks as disabled, though it is only aria-disabled (Switch.jsx): react-switch sets the opacity of
   its disabled state inline on its root, so only !important reaches it */
.switch-saving {
  opacity: 0.5 !important;
  cursor: default;
}

/* a switch's label names a setting: the name role (500, styleguide 1.1; the style model of 11-02, point 6: at 300 it was
   lighter than the 14 px hint at 400 below it, recheck U8), at the size of the text around it (2.8) */
.switch-label,
.switch-label-compact {
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--text-name);
  /* a long word in it (a key) wraps instead of running past its dialog (styleguide 1.4) */
  min-width: 0;
  overflow-wrap: anywhere;
}

/* the compact step beside a working surface's entries: the size of Text.Primary compact (14 px, 500 above), on the
   label itself, as Text is a span and the label needs the size for its own line; after .switch-label, so it wins by
   order with one class */
.switch-label-compact {
  font-size: 14px;
}

/* every react-select is `unstyled` (selectParts.jsx): what it looks like is these rules, none of react-select's own. Its
   layout stays react-select's; the control's height, its cursor and a disabled select's pointer events come through
   selectParts */

/* a field's control: the field's ground and glass, 4 px radius, its text 8 px in, its arrow at the right edge (Jan,
   10-24), 4 px between the value and the indicators; as high as a native select (Select.jsx), 31 px from selectParts */
.select-field {
  background-color: var(--ground-field);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 0 0 0 8px;
  -moz-column-gap: 4px;
       column-gap: 4px;
}

/* disabled: not offered, the value quiet */
.react-select__control--is-disabled * {
  cursor: not-allowed;
}

.react-select__control--is-disabled > .react-select__value-container * {
  color: var(--text-quiet);
}

/* the value, the text typed and the placeholder 2 px in (Select.css: the placeholder's type) */
.react-select__single-value {
  margin: 0 2px;
}

.react-select__input-container {
  margin: 2px;
  padding: 2px 0;
}

.react-select__single-value,
.react-select__input-container {
  color: var(--text-content);
}

/* a SelectName in a button's look: its value takes the button's text (Button.css .btn-secondary, white under the
   pointer); one class, it wins over the value's colour by standing after it */
.select-name-value {
  color: inherit;
}

/* inside the 31 px row (styleguide 2.7): no padding above and below, which made a select with its clear indicator
   36 px high beside a native select's 31 (import dialog, 10-25); an indicator 4 px either side, the arrow none; the clear
   indicator in the action role as the arrow beside it, in every state (1.1) */
.react-select__indicator {
  padding: 0 4px;
  color: var(--icon-action);
}

.react-select__dropdown-indicator {
  padding: 0;
}

/* a chosen value (a chip) on the scales: 14 px, 4 px to the next chip and between wrapped rows, its text 5 px from its ×
   (styleguide 1.2, 1.3; UI check of Editor and AI, B4, 10-29); the controls' ground with a button's edge, so it stands
   out on the field in both themes (1.1); its × a small transparent button in the action role, as the clear indicator,
   its ground under the pointer and with the keyboard's focus (`select-value-focused`, selectParts; 2.5) */
.react-select__multi-value {
  margin: 0 4px 0 0;
  border-radius: 2px;
  background-color: var(--ground-control);
  box-shadow: var(--locize-bevel);
}

.react-select__value-container--is-multi {
  row-gap: 4px;
}

.react-select__multi-value__label {
  padding: 3px 0 3px 6px;
  border-radius: 2px;
  font-size: 14px;
  color: var(--text-content);
}

.react-select__multi-value__remove {
  padding: 0 4px;
  border-radius: 2px;
  color: var(--icon-action);
}

.react-select__multi-value__remove:hover,
.select-value-focused {
  background-color: var(--ground-hover);
}

/* the menu and its options on the roles, light and dark: a menu's glass, hairline and shadow (styleguide 2.4, as a
   Dropdown's panel), 8 px from its select; an option under the pointer the hover, the chosen one the selection, an
   empty menu's words accompanying (1.1); its radius react-select's own */
.react-select__menu {
  margin: 8px 0;
  background-color: var(--ground-menu);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-divider);
  border-radius: 4px;
  box-shadow: var(--menu-shadow);
}

.react-select__menu-list {
  padding: 4px 0;
}

.react-select__option {
  padding: 8px 12px;
  color: var(--text-content);
}

.react-select__option--is-focused {
  background-color: var(--ground-hover);
}

.react-select__option--is-selected {
  background-color: var(--locize-selection);
}

.react-select__menu-notice {
  padding: 8px 12px;
  color: var(--text-secondary);
}

/* a select of names standing alone (SelectName outside a form, a card's head): react-select's container carries a
   secondary button's classes (selectParts), as a SelectButton; as wide as its value, never wider than its room; a
   flex box, so no line of text around the button adds to its 30 px. Keyboard focus: the buttons' ring (Button.css, 3.7),
   not after a click (`data-pointer`, Selectable) */
.select-name-button {
  display: inline-flex;
  max-width: 100%;
}

/* its control over the button's whole face, its padding included (the arrow lets a press through): react-select opens
   the menu only from a press on its control, so a press on the arrow or the edge opened nothing. 16 and 40 px are the
   button's padding (Button.css `.btn` left, `.btn.btn-dropdown` right): a change there changes them here */
.select-name-control {
  margin: 0 -40px 0 -16px;
  padding: 0 40px 0 16px;
}

.select-name-button:not([data-pointer]):has(input:focus-visible) > .btn {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}


/* a select button never wider than its room: its value is cut at its end (styleguide 2.7, 2.16), in every
   language, instead of a native select taking the width of its longest option and running past its container */
.select-button {
  max-width: 100%;
}

.select-button > select {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* a select drawn as a pill (SelectButton `pill`, styleguide 2.17): the pills' height, radius, hairline and type, with the
   select's arrow, so a choice that needs a select stands beside pills as one of them (Jan, 11-08) */
.select-pill {
  position: relative;
  display: inline-flex;
}

.select-pill select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  min-height: 32px;
  margin: 0;
  padding: 0 36px 0 16px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--locize-textGray);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--locize-cream-borderGray);
  cursor: pointer;
}

.select-pill select:hover:not(:disabled) {
  background: var(--ground-hover);
}

.select-pill select:focus-visible:not([data-pointer]) {
  outline: 2px solid var(--locize-focus);
  outline-offset: 2px;
}

/* the arrow in the action's colour (1.1), 18 px beside 14 px text (1.7) */
.select-pill::after {
  content: 'expand_more';
  font-family: 'Material Icons';
  font-size: 18px;
  line-height: 1;
  font-feature-settings: 'liga';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--icon-action);
  pointer-events: none;
}

/* dark theme: the pills' hairline */
:root[data-theme='dark'] .select-pill select {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.select-pill select option {
  color: var(--text-content);
  background: var(--ground-box);
}
