/* ==========================================================================
   CryMap - Design tokens
   The single source of truth. Every value below maps 1:1 to a Figma
   variable; see docs/design-system.md for the naming bridge.
   ========================================================================== */

:root {
  /* The emergency lock-screen image (ui/lockscreenImage.js): one palette in
     both themes, because the picture lives on the phone's lock screen, not
     in the app. Dark, so the clock above it stays readable. */
  --lock-ground-top: #18181b;
  --lock-ground: #09090b;
  --lock-card: #27272a;
  --lock-band: #dc2626;
  --lock-band-ink: #fee2e2;
  --lock-label: #fca5a5;
  --lock-name: #ffffff;
  --lock-text: #f4f4f5;
  /* The shade over a photograph with words on it (screens/risks.js): light
     at the top, near black where the label sits. Both themes. */
  --media-wash: linear-gradient(180deg, rgba(7, 11, 17, 0.2) 0%, rgba(7, 11, 17, 0.55) 55%, rgba(7, 11, 17, 0.92) 100%);

  /* --- Core palette --------------------------------------------------
     Neutral, without the blue cast the dark theme had (redesign 12.11.2026:
     "kein überflüssiges Blau"). Four steps of one grey, from the ground to
     the highest flat surface; depth above that is made of light and blur
     (the layers below), not of more greys. */
  --bg: #060606;
  --surface: #111112;
  --surface-2: #18181a;
  --surface-3: #202022;
  /* The brand's hue: the logo, the map's detonation, warnings. It no longer
     marks what can be pressed - that is the action ink below. */
  --orange: #f59e0b;
  --yellow: #ffd400;
  --red: #ff3b30;

  /* --- Text -----------------------------------------------------------
     Four tiers, and every one of them carries words at some point, so every
     one of them clears 4.5:1 against the darkest and the lightest surface it
     can land on. The old scale ran 0.64 / 0.4 / 0.24, which measured 3.8:1 and
     2.1:1 - the slider scale, every list subtitle and every overline failed.
     The tiers are closer together now; separation is carried by size and
     weight, which is free, rather than by opacity, which is not. */
  --text: #f5f5f6;
  /* 5–10 % lighter than before (09.11.2026): easier to read on OLED. */
  --text-secondary: #d4d4d7;
  --text-tertiary: rgba(255, 255, 255, 0.64);
  --text-quaternary: rgba(255, 255, 255, 0.5);
  --text-on-accent: #0a0600;
  /* Words over a photograph, in either theme: the photo is darkened under them. */
  --text-on-media: #ffffff;

  /* --- Lines and fills ------------------------------------------------ */
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  /* The hairline under an older name (prepare.css). It had no light value,
     so on white it was a white line (design pass 15.11.2026, SYS-09). */
  --border: var(--hairline);
  /* A hairline separates; this one *is* the control. Switch tracks, checkbox
     rings and slider tracks are the boundary a user has to find, so they get
     3:1 against the surface instead of the 1.5:1 a decorative line can live
     with. Never used for a divider - that is what the hairlines are for. */
  --line-control: rgba(255, 255, 255, 0.36);
  --fill: rgba(255, 255, 255, 0.06);
  --fill-hover: rgba(255, 255, 255, 0.1);
  --fill-active: rgba(255, 255, 255, 0.16);
  --button-fill: rgba(255, 255, 255, 0.1);

  /* --- Glass ----------------------------------------------------------
     Glassmorphism is used sparingly: only for layers that float above the
     map. Flat surfaces stay flat so data never fights for attention. */
  /* More see-through and more blur (09.11.2026): the layers over the map float. */
  --glass-bg: rgba(24, 24, 26, 0.68);
  --glass-bg-strong: rgba(14, 14, 15, 0.9);
  /* The shade at the top of a map, under a title bar that floats over it. */
  --map-scrim-top: rgba(6, 6, 6, 0.86);
  --map-scrim-chips: rgba(6, 6, 6, 0.7);
  /* What a surface is darkened (dark) or dimmed (light) towards behind a
     window that covers the app, such as the welcome (audit V279). */
  --scrim: #000;
  --glass-border: rgba(255, 255, 255, 0.1);
  /* Half of what they were (14.11.2026): a blur costs with its radius, and
     28px behind every panel made a phone stutter while the page moved. */
  --glass-blur: 14px;
  --glass-blur-light: 8px;

  /* --- Layers (redesign 12.11.2026) ------------------------------------
     Six heights, each with its own opacity, blur and shadow, so what is
     above what is never in doubt - and nothing else in the app invents a
     height of its own:

       0 ground    the page itself                         --bg
       1 surface   a card, a list, a field                 --surface, --card-*
       2 float     the tab bar, map controls, a toolbar    --layer-float*
       3 dialog    a sheet, a window over the screen       --layer-dialog*
       4 overlay   the dimmed screen under a dialog        --layer-overlay*
       5 tooltip   a word about the control under a finger --layer-tip*

     Glass only where something real is behind it - the map, a scrolling
     page - and never stacked on glass. */
  /* 0.62 let a white button under the bar pull the labels to 2.99:1; at 0.8
     the worst case behind the glass still clears 4.5:1 (audit 14.11.2026). */
  --layer-float: rgba(28, 28, 30, 0.8);
  --layer-float-blur: 14px;
  --layer-float-edge: rgba(255, 255, 255, 0.09);
  --layer-float-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -10px rgba(0, 0, 0, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.35);
  --layer-dialog: rgba(22, 22, 24, 0.86);
  --layer-dialog-blur: 20px;
  --layer-dialog-edge: rgba(255, 255, 255, 0.08);
  --layer-dialog-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 90px -20px rgba(0, 0, 0, 0.85);
  --layer-overlay: rgba(0, 0, 0, 0.52);
  --layer-tip: rgba(245, 245, 246, 0.94);
  --layer-tip-ink: #0b0b0c;

  /* --- Accent tints ---------------------------------------------------- */
  --orange-12: rgba(245, 158, 11, 0.12);
  --orange-20: rgba(245, 158, 11, 0.2);
  --orange-40: rgba(245, 158, 11, 0.4);
  --yellow-12: rgba(255, 212, 0, 0.12);
  --yellow-20: rgba(255, 212, 0, 0.2);
  --red-12: rgba(255, 59, 48, 0.12);
  --red-20: rgba(255, 59, 48, 0.2);

  /* --- Damage zones ----------------------------------------------------
     Ordered by severity. Hue carries severity, nothing else in the app
     may use this ramp, or the map stops meaning anything. */
  --zone-fireball: #fff3d6;
  --zone-fireball-ring: #ff9d1f;
  --zone-heavy: #8f0f0a;
  --zone-severe: #ff3b30;
  --zone-moderate: #ff8a00;
  --zone-light: #ffd400;
  --zone-windows: #ffefa3;
  /* The heavy zone's fill is almost black-red by design - 2.1:1 against the
     map, which is a ring nobody can find. The outline and the legend dot get
     a lighter variant of the same hue (3.4:1) so the zone is visible without
     moving the fill, which is what the eye reads as severity. */
  /* Tracks the land under it: this outline has to stay a line at 3:1 over
     the map's own ground colour, which it clears at 3.33. */
  --zone-heavy-ring: #e03a32;
  /* Rings of the two outer zones: their fills are pale by design, and on the
     light map a pale line is no line (12.11.2026). */
  --zone-light-ring: #ffd400;
  --zone-windows-ring: #ffe680;

  /* --- Fallout heatmap -------------------------------------------------- */
  --fallout-1: rgba(255, 59, 48, 0.55);
  --fallout-2: rgba(255, 138, 0, 0.45);
  --fallout-3: rgba(255, 212, 0, 0.34);
  /* 0.22 under a fill of 0.06 reached the screen at 1.3 %: not there at all (round 3, S4-09). */
  --fallout-4: rgba(190, 220, 120, 0.45);

  /* --- Status ------------------------------------------------------------ */
  --safe: #30d158;
  --caution: var(--yellow);
  --danger: var(--red);
  /* A filled danger button, and nothing else: white on --red is 3.55:1,
     under the 4.5:1 a button's word needs. #dc2626 carries the same alarm
     at 4.83:1. The zone ramp keeps --red - it is a colour on a map, not a
     background for letters. */
  --danger-fill: #dc2626;
  /* The main action, a switch that is on, a box that is ticked, the part of
     a slider that is set: one ink, inverted per theme - white on the dark
     crisis screens, near-black on the light ones. --on-action is what is
     written on it. */
  --action: #f5f5f6;
  --action-hover: #ffffff;
  --on-action: #0b0b0c;
  /* A chosen thing that is not the main action: a lit row, the chosen language, a found entry. */
  --select: rgba(255, 255, 255, 0.14);
  --gps: #0a84ff;
  /* The same blue, deep enough to carry a white mark (4.5:1). */
  --gps-strong: #0a63c2;

  /* --- Ink: the same meanings, as text ------------------------------------
     A hue that works as a fill rarely works as 13 px type. Orange reads 6.6:1
     on dark and 2.0:1 on light; blue 4.2:1 on dark. So a colour has two
     tokens: the raw hue for fills, strokes and the map, and an "ink" for
     anything made of letters or of a 1.5 px icon stroke. Only the ink is
     adjusted per theme, which keeps the brand where people see it and the
     text where people can read it. */
  /* What can be pressed is marked by ink and weight, not by a hue (redesign
     12.11.2026: "fast einfarbig, Farbe nur für Information"). The accent ink
     is the text's own colour; colour is left to danger, warning, success and
     the map, where it means something. */
  --ink-accent: #ffffff;
  /* The brand as a word: the logo, the Premium crown, and the household's own
     progress on Start - the reserve (publisher 14.11.2026: orange for identity,
     progress and active states, never for a warning). */
  --ink-brand: #f59e0b;
  --reserve-fill: linear-gradient(90deg, #fcc979, #f97316);
  --ink-caution: #ffd400;
  --ink-danger: #ff6b61;
  --ink-safe: #30d158;
  /* The four areas of Vorsorge (screens/prepare.js): which area, not what to do. */
  --area-stock: #f59e0b;
  --area-household: #4aa3ff;
  /* Teal, not the danger red it was (VOR-12): red is only for acute danger. */
  --area-keep: var(--tone-teal);
  --area-plans: #a78bfa;
  /* Tones that tell things apart (groups, kinds of people). Never "act now". */
  --tone-blue: #4aa3ff;
  --tone-orange: #f59e0b;
  --tone-teal: #2dd4bf;
  /* Fuchsia under the old name (KN-ALL-07): a red group or medicine box read
     as the danger red of a warning. */
  --tone-red: #e879f9;
  --tone-yellow: #facc15;
  --tone-slate: #a3b1c2;
  --tone-violet: #a78bfa;
  --tone-green: #34d399;
  --tone-indigo: #818cf8;
  --tone-sky: #7dd3fc;
  --tone-pink: #f472b6;
  --tone-brown: #e0a370;
  --ink-gps: #4da3ff;

  /* --- Focus --------------------------------------------------------------
     Two rings, not one: a single orange outline vanishes on the orange
     primary button and on light backgrounds. An inner ring in the text
     colour and an outer ring in the background colour contrast 19:1 with
     each other, so the indicator is visible on any surface in the app,
     including over satellite imagery. */
  --focus: #ffffff;
  --focus-halo: rgba(0, 0, 0, 0.92);

  /* --- Map ---------------------------------------------------------------- */
  /* Neutral, never green-cast: the terrain must not tint the damage ramp,
     and green anywhere near the rings reads as "safe". */
  /* The map's own palette, and the one place in the app where "dark" does
     not mean "nearly black". A crisis map is read at a glance in bad light,
     and every colour here earns its lightness: land is lifted well clear of
     the sea so a coast is a coast, and the terrain classes run lighter the
     higher the ground, which is how a relief map has always said "mountain"
     without an elevation model underneath it.

     The ceiling is set by the damage rings drawn on top: the heavy zone's
     outline has to clear 3:1 against the land, which it does at 3.33 here
     and would not if the land were two steps lighter. */
  --map-land: #202a35;
  --map-land-2: #2b3645;
  /* Works, yards, depots and the land the railway owns. The one place on
     this map with a hue of its own besides water and green, because "is
     that an industrial estate" is a question somebody asks on this map and
     a grey patch cannot answer it. Violet rather than the pink a printed
     map would use: it has to stay a long way from the damage ramp, which
     owns everything from red round to yellow. */
  --map-industrial: #38304a;
  /* Water, and the colour that was got wrong twice in one afternoon.
     Near-black, it read as a hole punched in the city - the Ruhr looked
     like missing data. Lifted to the land's own lightness it fixed that
     and broke something larger: at world zoom, where there are no streets
     and no buildings to say which side is which, lightness is the only
     signal there is, and a sea the same brightness as a continent is a map
     with no coastline on it.
     So: clearly darker than the land, which is how every dark map says
     sea, and saturated enough that it is blue rather than merely dark.
     What keeps it from reading as a hole is the hairline of --map-river
     along its edge, which clears 1.9:1 over it. */
  --map-water: #0b1727;
  --map-park: #1d3a2e;
  /* The relief at world zoom, each step a fixed distance above the land it
     sits on - so these move whenever the land does, or a basin ends up
     lighter than the plain around it. */
  --map-mountain: #343c47;
  --map-plateau: #2c343f;
  --map-desert: #2e3139;
  --map-basin: #1e252e;
  --map-urban: #2e3744;
  --map-river: #24496a;
  /* The situation drawn over the map - warnings, events, protests, the
     simulation's wind - and the warning card's edge: the alert colours as
     they are on the dark map, where the bright yellow glows (12.11.2026). */
  /* The warning levels, apart from the brand: level 2 was the brand orange
     (design pass 15.11.2026, LAGE-03). A redder orange says "warning". */
  --map-alert-1: var(--yellow);
  --map-alert-2: #ff7a1a;
  --map-alert-3: var(--red);
  --alert-1-fill: rgba(255, 212, 0, 0.16);
  --alert-2-fill: rgba(255, 122, 26, 0.16);
  --alert-3-fill: rgba(255, 59, 48, 0.14);
  --map-wind: var(--yellow);
  /* The wash of a warning or hazard area, its strength in the colour: thin
     on the dark map, where the bright colours glow (12.11.2026). */
  --map-wash-1: rgba(255, 212, 0, 0.24);
  --map-wash-2: rgba(245, 158, 11, 0.26);
  --map-wash-3: rgba(255, 59, 48, 0.26);
  /* Space around the globe of the situation map: the land's colour there
     hid the edge of the Earth. Deep, so the sphere stands out (12.11.2026). */
  --map-space: radial-gradient(circle at 50% 42%, #0d131c 0%, #020306 72%);
  /* The road ladder, and the single most important thing on this map.
     Hue cannot carry it - the damage ramp owns every warm colour - so the
     hierarchy is brightness and width alone, which only works if the steps
     are far enough apart to be seen rather than merely measured.
     Each one is about a third brighter than the one below it, and against
     the land they run from 1.4:1 at a footpath to 7.5:1 at a motorway. */
  --map-road-path: #333a43;
  --map-road-service: #383f48;
  --map-road: #434a55;
  --map-road-tertiary: #525a65;
  --map-road-secondary: #626b78;
  --map-road-major: #76808d;
  --map-road-trunk: #8d96a3;
  /* The motorway, one step above the roads below it. Every road a driver
     navigates by was the same grey, so a city had no skeleton: the A40
     through the middle of Essen read exactly like the street beside it.
     Hue cannot carry this - the damage ramp owns every warm colour - so
     the hierarchy is made of brightness and width alone, and that only
     works if the top of it is clearly the top. */
  --map-road-motorway: #a9b2bf;
  /* The streets between houses, a step below the roads you navigate by: at
     close zoom a city is mostly these, and drawn at road brightness they
     flatten the hierarchy into a net. */
  --map-road-quiet: #383f48;
  /* Under the main roads, darker than the land they cross. A line with a
     casing reads as a road; the same line without one reads as a scratch,
     and that difference is most of what separates a drawn map from a
     plotted one. */
  --map-road-casing: #10151c;
  --map-boundary: rgba(255, 255, 255, 0.07);
  /* Place names drawn over the map, and the halo that keeps them legible
     over water, land and satellite imagery alike. */
  --map-label: rgba(203, 213, 225, 0.72);
  --map-label-halo: rgba(0, 0, 0, 0.8);
  /* A place name is the one piece of text that has to be readable before
     anything else on the map, so it is the brightest ink here. The ring
     below is the halo for text stroked onto a canvas rather than shadowed
     in CSS: it is the ground colour at full strength rather than black,
     because a black outline on dark ground reads as a shadow and a screen
     of them is heavier than the text it protects. */
  --map-label-place: rgba(226, 232, 240, 0.95);
  /* The disc a point of interest is drawn on: the map's own ground, not
     black, so a row of them does not read as a row of holes - and a token
     rather than a constant, because in daylight this has to turn over. */
  --map-symbol-disc: rgba(10, 14, 20, 0.86);
  --map-label-ring: rgba(17, 22, 29, 0.92);
  /* Water and green are named in their own colour, which is how a printed
     map has always told a river from a road without a legend. Both are
     several steps lighter than the surfaces they sit on - the fill colours
     are far too dark to read as text. */
  --map-label-water: #74a9d0;
  --map-label-green: #86b394;
  /* Street names, which are read against the street rather than against
     open ground and need more of the screen's brightness than a label
     lying on land does. */
  --map-label-street: rgba(222, 230, 240, 0.9);
  /* Buildings cover a third of a city at close zoom. Faint enough that six
     damage rings still read over them, present enough to show the grain of
     the place. */
  --map-building: rgba(255, 255, 255, 0.09);
  /* The outline, which is how a building gets to be a shape without the map
     getting brighter. A terrace and a works are the same grey and not the
     same outline, and the fill cannot say that at seven percent. */
  --map-building-edge: rgba(255, 255, 255, 0.18);
  /* The extruded body above zoom 15, which is a solid object rather than a
     wash over the land: seen from above it is a roof, and a roof the same
     shade as the street is not a building. It may be this definite because
     at that zoom at most one damage ring is on the screen. */
  --map-building-solid: #39414f;
  /* Woodland, darker and deeper than a park: a forest and a planted square
     are different places to be, for cover and for a fire. */
  --map-forest: #173126;
  /* Glacier and permanent snow, the one ground that is lighter than rock. */
  --map-ice: #3a4654;
  /* Rail, between a secondary and a main road in weight, with the land
     dashed along it from zoom 13. */
  --map-rail: #6f7784;
  /* Road numbers on a plate. A motorway's is blue, as on the road; every
     other number is on the map's own neutral - the warm national colours
     belong to the damage ramp. */
  --map-shield-motorway: #2c5291;
  --map-shield-motorway-edge: #a9c3ea;
  --map-shield-motorway-ink: #ffffff;
  --map-shield: #2f3743;
  --map-shield-edge: #8d96a3;
  --map-shield-ink: #e6ebf2;

  /* --- Typography ----------------------------------------------------------
     SF Pro Display first; the rest of the stack keeps metrics close on
     Windows and Linux so layout does not shift between machines. */
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  /* One typeface everywhere (publisher, 10.11.2026): numbers, coordinates and
     Morse used a monospaced face and read as a different app. They keep
     even-width digits (font-variant-numeric: tabular-nums where they are set). */
  --font-data: var(--font);

  /* Type is the main element of the page (redesign 12.11.2026): the screen
     title is large and light, a step bigger on a tablet and a computer
     (app.css, container queries), and everything under it is quieter. */
  --size-display: 38px;
  /* One weight for every page title, "Heute", "Lage", "Vorsorge", "Mehr" (START-10). */
  --weight-title: var(--weight-bold);
  --size-title-1: 30px;
  --size-title-2: 24px;
  --size-title-3: 20px;
  --size-headline: 17px;
  --size-body: 17px;
  --size-callout: 16px;
  --size-subhead: 15px;
  --size-footnote: 13px;
  --size-caption: 12px;
  /*
   * The smallest type in the app, and it is 12 px.
   *
   * It was 11. Eleven-pixel uppercase with tracking is a size that reads on a
   * designer's monitor and not on a phone held at arm's length in bad light,
   * which is the only light this app is for. It carries the overlines, the
   * navigation labels and the scale marks under the sliders - all of them
   * things somebody reads once and has to get right the first time.
   */
  --size-caption-2: var(--size-caption); /* the same 12 under an old name; new rules use --size-caption */

  /*
   * The roles of type, one size each (publisher, 10.11.2026: "the sizes are
   * different everywhere"). Checklists were 16 px, guides 15 px with their
   * sub-headings at 15 px too, the planner's rows 15 px, list rows 16 px.
   * Every screen now takes its text from these, not from a size of its own.
   */
  --type-heading: var(--size-headline); /* a heading inside a card or a text: 17 */
  --type-item: var(--size-callout); /* one entry of a list, a checklist, a planner: 16 */
  --type-reading: var(--size-callout); /* text to read: guides, tips, knowledge: 16 */
  --type-detail: var(--size-footnote); /* the line under an entry, a note: 13 */
  /* A small control: a chip, a small button, a summary to unfold, a link beside a row: 15
     (14.11.2026: named, so 15 px is a role, not a size somebody chose). */
  --type-control: var(--size-subhead);
  /* The light ground the guide pictures are drawn on (14.11.2026), the same in every theme: a picture is a card. */
  --picture-ground: #f1f0ed;
  /* Paper: the emergency folder (and the journal's print) is a printed
     page, light in every theme, like the pictures (SYS-07). */
  --paper: #ffffff;
  --paper-ink: #111111;
  --paper-dim: #52525b;
  --paper-faint: #71717a;
  --paper-line: #d4d4d8;
  --paper-fill: #f4f4f5;
  --paper-alert: #b91c1c;
  --paper-alert-ink: #991b1b;
  --paper-alert-wash: #fee2e2;

  /*
   * Every field one shape (publisher, 10.11.2026: "where you type it looks
   * cramped"): the form fields, the searches, the place search, the pickers
   * and the long text were 40 to 44 px tall in 15 px type with 12 px of room.
   * 16 px type is also what keeps iOS from zooming into a field.
   */
  --field-h: 52px;
  --field-pad: 16px;
  --field-radius: 14px;
  --field-font: var(--type-item);
  --field-ring: color-mix(in srgb, var(--ink-accent) 28%, transparent);
  /* A field is a white sheet in light, a step up from the card in dark: grey
     with a strong edge read as switched off (audit 12.11.2026). */
  --field-face: var(--surface-2);
  /* Without color-mix (iOS 16.0/16.1) the ring was invalid and no field showed
     focus at all (audit v4, F4-15): a plain ring first, the soft one where it works. */
  --field-focus: 0 0 0 2px var(--ink-accent);

  /*
   * Every box one shape (publisher, 10.11.2026: "the boxes are different
   * widths and heights"): corners 16, 18 and 20 px side by side, inner room
   * 12 or 16 px, the call rows 56 and 68 px tall. Boxes take these; what
   * sits inside a box (a field, a note) takes the field's corner.
   */
  /* Redesign 12.11.2026: about 40 % more room - inside a box, between
     boxes and between sections - so nothing touches anything. */
  --box-radius: var(--r-lg); /* 22 */
  --box-pad: clamp(var(--s-3), 100vw / 18, var(--s-5)); /* 20 from 360 px; less only below */
  --box-row-h: 60px; /* one row of a list */
  --box-gap: var(--s-4); /* 16, between boxes in a column */
  --inner-radius: var(--field-radius); /* 14, a box inside a box */
  /* Between one section of a screen and the next. */
  --section-gap: var(--s-10);
  /* From a section's overline to what it heads (SYS-16). */
  --section-head-gap: var(--s-4);

  --lh-display: 1.06;
  --lh-title: 1.16;
  --lh-body: 1.5;
  --lh-tight: 1.28;

  --tracking-display: -1.1px;
  --tracking-title: -0.55px;
  --tracking-body: -0.15px;
  --tracking-caps: 1px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* --- Spacing: 4pt grid --------------------------------------------------- */
  /* Two half steps, for the gaps the grid has always had in fact: title to
     subtitle, the track of a segmented control (SYS table, 15.11.2026). */
  --s-0-5: 2px;
  --s-1: 4px;
  --s-1-5: 6px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  /* The page's side margin on a phone; app.css widens it on larger screens.
     24 from a 360 px phone up; narrower than that (a folded phone, a large
     display size, page zoom) it gives way with the width, down to 12, so the
     words keep their room (GER-08). The inner room of a box likewise. */
  --gutter: clamp(var(--s-3), 100vw / 15, var(--s-6));

  /* --- Radius -------------------------------------------------------------- */
  /* Bars, tracks and the segments of a progress line. */
  --r-2xs: 4px;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;
  /* The rounded square an icon sits in, and the box of a tick: one value
     each. They had drifted to 10, 11 and 12 px, and 6 and 7 px. */
  --r-icon: 10px;
  --r-check: 6px;

  /* --- Marks: the rounded square an icon stands in (SYS-05) -------------
     Four sizes, one shape: s in a row, the search and the topics; m in a
     window's head; l for a section of its own (Premium, Mein Leben); xl for
     an empty page. A circle is kept for people, a state and the compass. */
  --mark-s: 32px;
  --mark-m: 40px;
  --mark-l: 52px;
  --mark-xl: 72px;

  /* The chevron of every disclosure, as a mask (the Lucide glyph the topics
     draw, stroke 1.8): one sign, whether drawn or masked (SYS-04). */
  --glyph-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  /* --- Surfaces ---------------------------------------------------------------
     What a raised thing is made of, in one place, because the app has about
     a dozen kinds of card and they were each a flat fill with a hairline.
     Flat is honest and it is also what a prototype looks like.

     Three parts, and none of them is a drop shadow: a face with a breath of
     light across its top eighth, an edge a shade brighter than a divider,
     and a seat - one dark pixel under the card so it sits on the background
     rather than being cut out of it. Together they cost no colour and no
     contrast, which is why every surface in the app can have them without
     the screen getting louder. */
  --card-face: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 40%),
    var(--surface);
  --card-face-2: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%),
    var(--surface-2);
  --card-edge: rgba(255, 255, 255, 0.07);
  --card-seat: 0 1px 0 rgba(0, 0, 0, 0.5), 0 12px 28px -18px rgba(0, 0, 0, 0.8);

  /* The small rounded square an icon sits in. It appears in every list in
     the app, so it is worth being one value rather than nine. */
  --chip-face: rgba(255, 255, 255, 0.06);
  --chip-edge: rgba(255, 255, 255, 0.06);

  /* --- Progress ----------------------------------------------------------------
     Ink, not a gradient (redesign 12.11.2026): how far along something is, is
     not a warning, and the end of it is not "good", it is finished. */
  --progress-track: rgba(255, 255, 255, 0.1);
  --progress-fill: var(--action);

  /* --- Elevation ------------------------------------------------------------
     One ladder (SYS table, 15.11.2026): a control lifted off its track (the
     thumb of a segmented control, a switch's knob), the main action, then the
     layers above (card seat, float, dialog). */
  --shadow-control: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0.5px var(--hairline-strong);
  --shadow-action: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 1px 2px rgba(0, 0, 0, 0.12),
    0 10px 24px -14px rgba(0, 0, 0, 0.55);
  /* A switch's knob while off (on, it is --on-action), and the word on a danger fill. */
  --knob: #ffffff;
  --on-danger: #ffffff;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.4), 0 14px 36px -12px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 4px 12px rgba(0, 0, 0, 0.4), 0 40px 90px -20px rgba(0, 0, 0, 0.85);

  /* --- Motion ----------------------------------------------------------------
     Springs (redesign 12.11.2026): a damped spring sampled into linear(), so
     a thing that moves picks up speed, carries its momentum and settles -
     nothing jumps and nothing stops dead. Two characters:

       smooth  no overshoot; sheets, pages, anything large
       snappy  a breath of overshoot; switches, buttons, chips

     Each comes with the time it needs; a browser without linear() drops the
     declaration and the change is simply instant. The cubic curves stay for
     colour and opacity, which do not have momentum. */
  --spring-smooth: linear(0, 0.096, 0.275, 0.451, 0.604, 0.719, 0.807, 0.868, 0.911, 0.941, 0.961, 0.974,
    0.983, 0.989, 0.993, 0.995, 0.997, 0.998, 0.999, 1);
  --spring-snappy: linear(0, 0.061, 0.187, 0.339, 0.489, 0.625, 0.743, 0.832, 0.899, 0.946, 0.979, 0.999,
    1.011, 1.016, 1.018, 1.017, 1.015, 1.012, 1.009, 1.007, 1.005, 1.003, 1.002, 1.001, 1);
  --dur-spring-smooth: 560ms;
  --dur-spring-snappy: 460ms;

  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 520ms;
  /* Leaving is quicker than arriving: a window that goes is no longer read. */
  --dur-exit: 160ms;
  /* One beat for everything that waits and repeats: the shimmer, the
     breathing mark (SYS-11). The breathing aid and the compression pulse
     keep their own times - they are the function. */
  --dur-loop: 1600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* --- Layout ------------------------------------------------------------------ */
  /* The app no longer draws a status bar of its own - the device already has
     one, and a second row of invented signal bars under the real ones was
     wrong on every phone. What is left is the inset a notch needs. */
  --safe-top: env(safe-area-inset-top, 0px);
  /* Held sideways, the notch and the rounded corners are at the left and
     right edge. The app's frame keeps its content inside them (.app in
     app.css); only what is fixed to the window reads them itself (V49), and
     the map, which reaches the edge (map.css .map-stage--full). */
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  /* Where content starts at the sides: the wider of the two insets, on both
     sides, so a column stays in the middle and a phone turned through 180
     degrees does not move it (GER-05). */
  --inset-x: max(var(--safe-left), var(--safe-right));
  /* app.html asks for viewport-fit=cover, so on an iPhone without a home
     button (and in the installed app) the page runs under the home bar. The
     system says how far (about 34px there, 0 elsewhere); 6px is the little
     air under the tab labels everywhere else. A fixed 34px from the first
     iPhone mock doubled the gap on every other device (owner, 09.11.2026);
     a fixed 6px put "Start ... Mehr" under the home bar. Every bottom edge
     reads this one value instead of asking env() itself. */
  --safe-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  --navbar-h: 52px;
  /* How wide the reading column gets on a large screen. */
  --content-max: 760px;
  /* The room the side rail takes from a screen (app.css sets it from
     1024 x 560); none while the bar is at the bottom. */
  --rail-room: 0px;
  --tabbar-h: 56px;
  /* The app's own bar floats over the page since the redesign (12.11.2026):
     its height, and the room every bottom edge keeps clear of it - the bar,
     the air under it and the home bar. A rail at the side needs none
     (app.css sets it to 0 there). */
  --nav-h: 62px;
  /* How far the bar floats above the bottom edge, the same on every phone
     (owner, 14.11.2026: an iPhone showed a wide empty band under it, a
     Samsung none). Where the system keeps a home bar (about 34px on an
     iPhone) the capsule may reach into that inset down to 8px above the
     bar's line; elsewhere it keeps 12px. */
  /* The page height: 100%, or the screen's where iOS reports it short (src/app/viewportFit.js). */
  --app-h: 100%;
  /* The reach into the inset shrinks as the inset grows (GER-13): 8 px into
     an iPhone's 34 and a gesture bar's 24, as before, but nothing into a
     three-button bar's 48 - those 8 px took no touch there. */
  --nav-bottom: max(
    var(--s-3),
    calc(env(safe-area-inset-bottom, 0px) - clamp(0px, 42px - env(safe-area-inset-bottom, 0px), var(--s-2)))
  );
  --nav-room: calc(var(--nav-h) + var(--nav-bottom) + var(--s-3));
  --touch-min: 44px;
  /* Everything that floats over a map: one inset from the edge, one radius,
     one shadow (LAGE-11). On :root and not on .map-stage, because the place
     search on the simulation editor floats over a map outside a stage. */
  --map-inset: var(--s-4);
  --map-float-radius: var(--r-lg);
  --map-float-shadow: var(--shadow-2);
  /* The height of the Premium note while it floats over a screen; the
     router measures it onto .app (V54). */
  --note-room: 0px;
}
/* Declared again on the map that reaches the edge of the glass, so they are
   worked out there with its --bleed (map.css .map-stage--full, GER-05).
   --map-edge: the inset at the sides, plus the notch the map runs under.
   --controls-room: the room the column of map buttons takes at the side -
   the edge, the column with its two 1 px borders, a gap - that every card
   beside it keeps clear of (GER-06). */
:root,
.map-stage--full {
  --map-edge: calc(var(--map-inset) + var(--bleed, 0px));
  --controls-room: calc(var(--map-edge) + var(--touch-min) + 2px + var(--s-2));
}

/* Light is the default (10.11.2026); dark is for crisis mode and by choice.
   The ramp is darkened rather than inverted so damage colours keep their
   meaning against a bright background. */
:root[data-theme="light"] {
  /* Paper rather than the cool grey of a settings screen: a warm neutral
     ground, white surfaces that are lifted by light instead of outlined. */
  --bg: #f5f5f3;
  --surface: #ffffff;
  --field-face: #ffffff;
  --surface-2: #fafaf9;
  --surface-3: #eeeeeb;
  --text: #0d0d0e;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-tertiary: rgba(0, 0, 0, 0.6);
  /* Barely below tertiary, and kept so: at .5 it would be 3.9:1 on the ground,
     under the 4.5:1 its words need (design pass 15.11.2026, SYS-09). */
  --text-quaternary: rgba(0, 0, 0, 0.56);
  --hairline: rgba(0, 0, 0, 0.075);
  --hairline-strong: rgba(0, 0, 0, 0.13);
  --line-control: rgba(0, 0, 0, 0.45);
  --fill: rgba(0, 0, 0, 0.04);
  --fill-hover: rgba(0, 0, 0, 0.065);
  --fill-active: rgba(0, 0, 0, 0.1);
  --button-fill: rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.9);
  /* Light under dark letters: a black shade put "Berlin · 100 kt" at 1.7:1
     (audit V276). */
  --map-scrim-top: rgba(255, 255, 255, 0.88);
  --map-scrim-chips: rgba(255, 255, 255, 0.72);
  /* Mixing with black made the welcome a muddy grey-brown (audit V279). */
  --scrim: #e9e9ee;
  --glass-border: rgba(0, 0, 0, 0.07);
  --layer-float: rgba(255, 255, 255, 0.82);
  --layer-float-edge: rgba(0, 0, 0, 0.06);
  --layer-float-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 32px -12px rgba(24, 24, 20, 0.22),
    0 2px 6px rgba(24, 24, 20, 0.06);
  --layer-dialog: rgba(255, 255, 255, 0.9);
  --layer-dialog-edge: rgba(0, 0, 0, 0.06);
  --layer-dialog-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 40px 90px -24px rgba(24, 24, 20, 0.32),
    0 4px 14px rgba(24, 24, 20, 0.06);
  --layer-overlay: rgba(28, 28, 24, 0.22);
  --layer-tip: rgba(18, 18, 19, 0.92);
  --layer-tip-ink: #ffffff;
  --action: #111112;
  --action-hover: #2a2a2c;
  --on-action: #ffffff;
  --select: rgba(0, 0, 0, 0.075);
  --map-land: #e9e9e4;
  --map-land-2: #dfe2d8;
  --map-water: #c9dced;
  --map-park: #d7e4cf;
  --map-mountain: #d9d6ce;
  --map-plateau: #e2e0d8;
  --map-desert: #e7e3d6;
  --map-basin: #eceae3;
  --map-urban: #dedcd6;
  --map-river: #a9c7e2;
  /* The alert colours deeper: on the pale land the bright yellow washed
     out (publisher, 12.11.2026). */
  --map-alert-1: #c08400;
  --map-alert-2: #d4560b;
  --map-alert-3: #cf2a1e;
  --alert-1-fill: rgba(192, 132, 0, 0.12);
  --alert-2-fill: rgba(212, 86, 11, 0.12);
  --alert-3-fill: rgba(207, 42, 30, 0.1);
  --map-wind: #b67a00;
  /* On the pale map a thin wash went brown over the sea and olive over the
     land: stronger here, and the orange redder (12.11.2026). */
  --map-wash-1: rgba(255, 200, 0, 0.42);
  --map-wash-2: rgba(255, 122, 0, 0.42);
  --map-wash-3: rgba(232, 36, 28, 0.38);
  --map-space: radial-gradient(circle at 50% 42%, #2b3644 0%, #121820 74%);
  --map-industrial: #e6dcec;
  /* The same ladder as the dark theme, running the other way: on a light
     ground a road is darker the more it matters. The casing is white here
     rather than black - it is a gap between the road and the buildings, and
     a dark line under a dark line is one thick dark line.
     Opaque, every one of them. They were black at an opacity, and wherever
     two pieces of one street met - every junction, every place a way is
     split in OpenStreetMap - the overlap was drawn twice and came out as a
     darker stub, so a quiet street looked dotted with ink. The top of the
     ladder leans towards slate, the colour of the motorway's plate, so the
     roads somebody leaves by read as one family. */
  --map-road-path: #d2d2cd;
  --map-road-service: #c8c8c3;
  --map-road: #b9bab7;
  --map-road-tertiary: #a6a8a8;
  --map-road-secondary: #92969b;
  --map-road-major: #7a808a;
  --map-road-trunk: #646d7b;
  --map-road-motorway: #4c5a70;
  --map-road-quiet: #c8c8c3;
  --map-road-casing: #fbfbf9;
  /* A border at world zoom has to read as a border rather than as a road,
     which at a tenth of black it did not: the motorways were darker. */
  --map-boundary: #9b93a6;
  --map-label: rgba(20, 20, 24, 0.86);
  --map-label-halo: rgba(255, 255, 255, 0.9);
  --card-face: var(--surface);
  --card-face-2: var(--surface-2);
  /* Barely an edge: a white card on paper is lifted by its shadow, and a
     drawn outline is what makes a card look like a form. */
  --card-edge: rgba(0, 0, 0, 0.055);
  --card-seat: 0 1px 2px rgba(24, 24, 20, 0.04), 0 10px 28px -16px rgba(24, 24, 20, 0.14);
  --chip-face: rgba(0, 0, 0, 0.04);
  --chip-edge: rgba(0, 0, 0, 0.04);
  --progress-track: rgba(0, 0, 0, 0.08);
  --progress-fill: var(--action);
  --map-label-place: rgba(12, 12, 16, 0.95);
  --map-symbol-disc: rgba(255, 255, 255, 0.92);
  --map-label-ring: rgba(255, 255, 255, 0.92);
  --map-label-water: #2b6b99;
  --map-label-green: #3c7a4f;
  --map-label-street: rgba(16, 18, 22, 0.92);
  --map-building: rgba(0, 0, 0, 0.1);
  --map-building-edge: rgba(0, 0, 0, 0.2);
  --map-building-solid: #cdcbc4;
  --map-forest: #c3d7b5;
  --map-ice: #f4f7fa;
  --map-rail: #9399a2;
  --map-shield-motorway: #2f5ca8;
  --map-shield-motorway-edge: #ffffff;
  --map-shield-motorway-ink: #ffffff;
  --map-shield: #ffffff;
  --map-shield-edge: #7b828c;
  --map-shield-ink: #1d2229;
  --zone-fireball: #ffb000;
  /* The glass-breakage zone was a cream that vanished into the paper land;
     it and the outer rings deeper here (12.11.2026). */
  --zone-windows: #ffd23f;
  --zone-light-ring: #c08400;
  --zone-windows-ring: #c9a100;
  --shadow-1: 0 1px 2px rgba(24, 24, 20, 0.07);
  --shadow-2: 0 2px 6px rgba(24, 24, 20, 0.05), 0 14px 36px -14px rgba(24, 24, 20, 0.2);
  --shadow-3: 0 4px 14px rgba(24, 24, 20, 0.06), 0 40px 90px -24px rgba(24, 24, 20, 0.32);

  /* Darkened to the point where each still clears 4.5:1 on white. The hue is
     kept: an orange that has become brown still reads as the accent next to
     an orange fill, and a blue that has become navy still reads as GPS. */
  --ink-accent: #0d0d0e;
  --ink-brand: #b45309;
  --reserve-fill: linear-gradient(90deg, #fbb35a, #ea580c);
  --ink-caution: #6b5200;
  --ink-danger: #9c1c16;
  --ink-safe: #0a6b2b;
  --area-stock: #8a4600;
  --area-household: #0a4ba8;
  --area-keep: var(--tone-teal);
  --area-plans: #5b3cc4;
  --tone-blue: #0a4ba8;
  --tone-orange: #8a4600;
  --tone-teal: #0b6b60;
  --tone-red: #86198f;
  --tone-yellow: #6b5200;
  --tone-slate: #3f4b5a;
  --tone-violet: #5b3cc4;
  --tone-green: #0a6b2b;
  --tone-indigo: #3730a3;
  --tone-sky: #075985;
  --tone-pink: #9d174d;
  --tone-brown: #7c3f12;
  /* Darker than the blue it replaces: a badge puts this ink on an 18% blue
     tint, and on a near-white glass pill that measured 4.0:1 - found by the
     live audit, not by eye. */
  --ink-gps: #0a4ba8;
  --focus: #0b0b0b;
  --focus-halo: rgba(255, 255, 255, 0.95);
}

/* Less motion: one rule, on data-reduce (bootstrap.js applyLook). The
   attribute carries the phone's setting too - SettingsService starts
   "reduceMotion" from it until the reader chooses - so the app's switch and
   the system no longer give two answers; the rule for every element is in
   screens.css ("Reduce motion"). Zeroing the durations here is for what
   reads them in script (motion.js) and for anything timed by a token. */
:root[data-reduce] {
  --dur-1: 0ms;
  --dur-2: 0ms;
  --dur-3: 0ms;
  --dur-4: 0ms;
  --dur-exit: 0ms;
  --dur-spring-smooth: 0ms;
  --dur-spring-snappy: 0ms;
}
/* Before the first screen, when no script has set the attribute yet. */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-booted]) *,
  :root:not([data-booted]) *::before,
  :root:not([data-booted]) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Battery saver (bootstrap.js applyLook sets data-saver): no blur behind
   glass. Over the map every blurred panel was worked out again with every
   frame the map drew; the glass gets the solid background instead, so what
   is on it stays readable (13.11.2026). */
:root[data-saver] {
  /* Without blur, glass is a solid surface: at 90 % the map and the place
     card showed through text (design pass 15.11.2026, START-03). */
  --glass-bg: var(--surface);
  --glass-bg-strong: var(--surface);
}
:root[data-saver] *,
:root[data-saver] *::before,
:root[data-saver] *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Over a live map, the same always (14.11.2026: "es ruckelt"): every blurred
   panel over the map was worked out again with each frame the map drew -
   five on the situation map. Solid glass reads the same and costs nothing. */
:root:has(.screen--crisis, .screen--create, .screen--sim) {
  --glass-bg: var(--surface);
  --glass-bg-strong: var(--surface);
}
:root:has(.screen--crisis, .screen--create, .screen--sim) .tabbar {
  background: var(--glass-bg-strong);
}
/* The window material too (keynote KN-ERN-01): with the blur gone, a dialog
   at 90 % printed the situation text and the tab bar through its title.
   html: raises it over Mission Control's own dialog colour further down. */
html:root:has(.screen--crisis, .screen--create, .screen--sim),
html:root[data-saver] {
  --layer-dialog: var(--surface);
}
:root:has(.screen--crisis, .screen--create, .screen--sim) *,
:root:has(.screen--crisis, .screen--create, .screen--sim) *::before,
:root:has(.screen--crisis, .screen--create, .screen--sim) *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* --- Mission Control (Premium, publisher 14.11.2026) ----------------------
   Design variant 7 as a look over the dark theme (ui/theme.js lookFor): the
   night of a control room with a blue cast, panels drawn by hairlines rather
   than by light, and a narrow face for labels and figures. Only colours,
   lines and type - the screens and what they say stay the same. */
:root[data-look="mission"] {
  --bg: #04070a;
  --surface: #0b1118;
  --surface-2: #101823;
  --surface-3: #16202c;
  --text: #e8eef3;
  --text-secondary: #b9c4ce;
  --text-tertiary: #9aa7b4;
  --text-quaternary: #8592a0;
  --hairline: rgba(160, 190, 220, 0.1);
  --hairline-strong: rgba(160, 190, 220, 0.18);
  --line-control: rgba(160, 190, 220, 0.46);
  --fill: rgba(160, 190, 220, 0.07);
  --fill-hover: rgba(160, 190, 220, 0.11);
  --fill-active: rgba(160, 190, 220, 0.17);
  --layer-float: rgba(11, 17, 24, 0.84);
  --layer-float-edge: rgba(160, 190, 220, 0.14);
  --layer-dialog: rgba(11, 17, 24, 0.92);
  --layer-dialog-edge: rgba(160, 190, 220, 0.14);
  --action: #e8eef3;
  --action-hover: #ffffff;
  --on-action: #04070a;
  --ink-brand: #ff6a1f;
  --reserve-fill: linear-gradient(90deg, #ff9a4d, #ff6a1f);
  --field-face: var(--surface-2);
  --card-face: linear-gradient(180deg, rgba(160, 190, 220, 0.035), rgba(160, 190, 220, 0) 45%), var(--surface);
  --card-face-2: linear-gradient(180deg, rgba(160, 190, 220, 0.05), rgba(160, 190, 220, 0) 45%), var(--surface-2);
  --card-edge: rgba(160, 190, 220, 0.13);
  --card-seat: 0 1px 0 rgba(0, 0, 0, 0.6);
  --progress-track: rgba(160, 190, 220, 0.12);
  /* The status lights of variant 7: green for nothing issued, yellow and red
     for a warning by level, blue for the reader, orange for the supplies. */
  --font-cond: "Barlow Semi Condensed", "Barlow", "Bahnschrift", "Roboto Condensed", "sans-serif-condensed", var(--font);
  --mc-ok: #3ddc97;
  --mc-warn: #ffc53d;
  --mc-crit: #ff453a;
  --mc-pos: #4da8ff;
  --mc-act: #ff6a1f;
  /* Barlow where it is installed, the system's own narrow faces otherwise
     (Bahnschrift on Windows, the condensed Roboto on Android). */
  --font-data: "Barlow", "Barlow Semi Condensed", "Bahnschrift", "DIN Alternate", "Roboto Condensed", "sans-serif-condensed",
    "Arial Narrow", var(--font);
}

/* Barlow (SIL Open Font License, assets/fonts/barlow/OFL.txt) for the Mission
   Control look only: a face is fetched when something on the page wears it,
   so the light and dark looks never load these files. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow/barlow-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow/barlow-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow/barlow-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow/barlow-700-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow/barlow-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow/barlow-semi-condensed-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow/barlow-semi-condensed-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow/barlow-semi-condensed-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow/barlow-semi-condensed-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow/barlow-semi-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow/barlow-semi-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The soft focus ring of fields, where color-mix exists (F4-15). */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --field-focus: 0 0 0 1px var(--ink-accent), 0 0 0 4px var(--field-ring);
  }
}
