/* Porcelain Grid tokens for the web. Copied from the design system; do not edit by hand. */
:root, [data-theme="light"] {
  --surface: #e6e8e5; /* Page ground. Porcelain white in light, graphite night in dark. Most of every screen is this colour. */
  --surface-raised: #fbfbfa; /* Panels, inputs and menus that sit on surface. Separate it with a hairline, never a shadow. */
  --surface-sunken: #daddda; /* Wells: switch tracks, empty meter segments, table header rows. */
  --silver: #c9ced0; /* Cool silver as a material: large blocks, inactive pixels, illustration planes. Never text. */
  --silver-soft: #dee2e3; /* Quiet fills behind neutral labels and selected table rows. */
  --line: #cfd4d5; /* Hairline dividers and panel edges at stroke-hairline. Decorative only; it does not need 3:1. */
  --line-strong: #7a8286; /* Borders of controls that carry meaning (inputs, secondary buttons, switch tracks): 3:1 or more on surface and surface-raised in both themes (3.2:1 on the light page, 3.3:1 on dark cards). */
  --ink: #23272a; /* Primary text and icons on surface, surface-raised, surface-sunken and teal-soft. 12:1 or more on surface and surface-raised, and 10.9:1 or more on the others, in both themes. */
  --ink-muted: #565e62; /* Secondary text, captions, units and mono labels on any surface or teal-soft. 4.8:1 or more in both themes (lowest on light surface-sunken). */
  --graphite: #2e3337; /* The deep neutral material: instrument panels, the cover slab, stat tiles inside dark cards. Carries on-graphite text, mint and signal pixels. */
  --on-graphite: #f3f4f1; /* Text and icons on a graphite fill. 11:1 in both themes. */
  --teal: #2e6e74; /* The one accent: primary action, active state, focus ring, links and the filled part of meters. As text, on surface, surface-raised and teal-soft (4.6:1 or more). */
  --teal-soft: #dce9e8; /* Tinted ground behind teal or ink text: selected nav item, teal Label. */
  --on-teal: #ffffff; /* Text and icons on a teal fill (the primary button). Dark text in the dark theme because teal lightens there. */
  --teal-deep: #1f5257; /* Hero status cards (System status, Settings intro): the app's signature surface. Flat, never a gradient. Carries on-teal-deep text, mint and signal pixels. */
  --teal-deep-edge: #1f5257; /* The 1px edge of a teal-deep card; lifts it off the graphite ground in dark. */
  --teal-deep-raised: #2a6267; /* Stat tiles and icon wells inside a teal-deep card; on-teal-deep text on it. */
  --on-teal-deep: #eef4f3; /* Titles, values and icons on teal-deep (7.8:1 or more). */
  --on-teal-deep-muted: #a9cbc7; /* Mono eyebrows and secondary lines on teal-deep (5:1 or more). */
  --mint: #b9e8dc; /* Ice-mint accent, used small: a single lit pixel, the leading meter segment, the live dot inside a Label. Only on graphite, teal, teal-deep or under on-mint text. Never text on surface (1.1:1). */
  --on-mint: #23272a; /* Text on a mint fill. */
  --signal: #e39a2d; /* Amber lamp pixels, after a parametric tail-lamp: an unlocked car, a pending lock, a confirmation waiting. Lit pixels only, on graphite or teal-deep; never text, never a glow. */
  --focus: var(--teal); /* Keyboard focus ring: 2px solid, offset 2px. An alias of teal, so it follows the accent in every theme. */
  --link: var(--teal); /* Inline links, underlined at 1px with 3px offset. */
  --warn: #8a5a00; /* Caution states (low range, cable unlocked). Always with a word. Text on surface and surface-raised. */
  --danger: #a33a2b; /* Faults and destructive or risky actions (Unlock now). Always with a word or icon. Text on surface and surface-raised; as a fill, with on-danger. */
  --on-danger: #ffffff; /* Label on a danger fill (Unlock now). */
  --tonal: #d3d8d9; /* A fill, not text: tonal buttons (Reload vehicles) and stat tiles. Their labels are ink, which reads 10.5:1 on tonal in light and 8.3:1 in dark. In dark it is lifted to #3a4348 so a tonal button separates from surface-raised. */
  --mark-hi: #5b686e; /* The lit facet of the LEAVE/LOCK mark: gunmetal on Porcelain, satin silver on Graphite. Mark only. */
  --mark-lo: #2e3337; /* The shaded facet and signal arcs of the mark. Mark only. */
  --mark-rune: #f3f4f1; /* The Bluetooth rune cut into the mark's body. Fixed artwork colour: it no longer matches surface exactly, which reads as a faint cut. Mark only. */
  --mark-px-lit: #2e3337; /* Lit cells of the mark's pixel grid (six of the eleven). Mark only. */
  --mark-px-mid: #80888c; /* Grey cells of the mark's pixel grid (three). Fixed, so border tweaks never repaint the logo. Mark only. */
  --mark-px-dim: #bcc5c7; /* The bottom-middle cell of the mark's pixel grid, between off and lit. Mark only. */
  --mark-px-off: #d3d8d9; /* The bottom-left cell of the mark's pixel grid, nearly the ground colour so it reads as an unlit lamp. Mark only. */
  --mark-seam: #f3f4f1; /* The fine 2.4-unit line in the gap between the mark's two body facets. Mark only. */
  --shadow-float: 0 1px 0 rgba(35,39,42,0.06), 0 12px 32px rgba(35,39,42,0.08); /* Menus, popovers and toasts. Never on panels or cards. */
}
[data-theme="dark"] {
  --surface: #141719;
  --surface-raised: #23282c;
  --surface-sunken: #0f1113;
  --silver: #6b7377;
  --silver-soft: #2a3034;
  --line: #353c41;
  --line-strong: #70787c;
  --ink: #e6e9e8;
  --ink-muted: #a1a9ac;
  --graphite: #262b2f;
  --on-graphite: #e6e9e8;
  --teal: #6db2b6;
  --teal-soft: #1b3335;
  --on-teal: #0e1416;
  --teal-deep: #173b3e;
  --teal-deep-edge: #2c5f63;
  --teal-deep-raised: #20494c;
  --on-teal-deep: #e6efee;
  --on-teal-deep-muted: #a3c4c1;
  --mint: #9edfcf;
  --on-mint: #0e1416;
  --signal: #f0a640;
  --focus: var(--teal);
  --link: var(--teal);
  --warn: #e0b04f;
  --danger: #f08a78;
  --on-danger: #1a0d0b;
  --tonal: #3a4348;
  --mark-hi: #d7e4e3;
  --mark-lo: #8fa7ab;
  --mark-rune: #1c2023;
  --mark-px-lit: #748e95;
  --mark-px-mid: #687075;
  --mark-px-dim: #3e5056;
  --mark-px-off: #2c3236;
  --mark-seam: #e6e8e5;
  --shadow-float: 0 1px 0 rgba(0,0,0,0.5), 0 12px 32px rgba(0,0,0,0.45);
}
:root {
  --space-1: 4px; /* Icon-to-text gap inside labels. */
  --space-2: 8px; /* Gap between related controls; one pixel unit. */
  --space-3: 12px; /* Inner padding of labels and compact rows. */
  --space-4: 16px; /* Control padding; minimum side gutter on phones. */
  --space-5: 24px; /* Panel padding; grid gutter. */
  --space-6: 32px; /* Gap between panels. */
  --space-7: 48px; /* Section padding inside a page. */
  --space-8: 64px; /* Gap between major sections. */
  --space-9: 96px; /* Hero padding on marketing pages. */
  --pixel: 8px; /* Side of one square pixel in the motif. */
  --pixel-gap: 2px; /* Gap between motif pixels. */
  --radius-none: 0px; /* Pixels, meter segments, tables, page sections. */
  --radius-xs: 2px; /* Labels, stat tiles, switch thumbs. */
  --radius-sm: 4px; /* Buttons, inputs, switch tracks, menus, dialogs. The ceiling. */
  --stroke-hairline: 1px; /* Dividers, panel edges, table rules (in line). */
  --stroke-rule: 2px; /* Active tab underline, focus ring width. */
  --grid-columns: 12; /* Columns on desktop; 4 on phones. */
  --grid-gutter: 24px; /* Gap between columns and between panels in a row. */
  --container: 1200px; /* Maximum content width. */
  --measure: 66ch; /* Maximum width of running text. */
  --touch-target: 48px; /* Minimum tappable size on Android (48dp) and touch web. */
  --screen-margin: 16px; /* Android screen side margin and gap between stacked cards. */
  --chamfer-sm: 8px; /* Stat tiles and icon wells. */
  --chamfer-md: 16px; /* Cards and settings groups on Android. */
  --chamfer-lg: 24px; /* Hero cards and web feature panels. */
  --font-display: "Exo 2", "Eurostile", "Bahnschrift", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-wordmark: 700 40px/38px var(--font-display); /* The LEAVE/LOCK wordmark only: Exo 2 Bold, uppercase. Stacked as LEAVE over /LOCK, or on one line. Not for headings. */
  --text-display-xl: 600 64px/68px var(--font-display); /* Web only: one hero line per page. */
  --text-display: 600 40px/44px var(--font-display); /* Web section openers; tablet screen titles. */
  --text-readout: 300 48px/52px var(--font-display); /* Instrument numbers: charge, range, radius. Tabular numerals. */
  --text-status: 600 32px/38px var(--font-display); /* The one-word state in a hero card (Watching, Locked, Paused). */
  --text-heading-1: 500 24px/30px var(--font-display); /* Android top app bar title and web page titles. */
  --text-heading-2: 500 20px/26px var(--font-display); /* Card titles and settings group titles. */
  --text-heading-3: 500 17px/24px var(--font-display); /* Row titles inside cards when they need more weight than body-strong. */
  --text-body-lg: 400 17px/26px var(--font-body); /* Web lead paragraphs; hero card descriptions. */
  --text-body: 400 15px/22px var(--font-body); /* Default UI text; settings row descriptions. */
  --text-body-strong: 500 16px/22px var(--font-body); /* Settings row titles, button labels. */
  --text-body-sm: 400 13px/18px var(--font-body); /* Captions, timestamps, helper text. */
  --text-label: 500 11px/16px var(--font-mono); /* Eyebrows, field labels, tags. Uppercase, ink-muted. */
  --text-data: 400 13px/20px var(--font-mono); /* Coordinates, codes, timestamps, units in tables. */
}
.wordmark {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.display-xl {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 68px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.display {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 44px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.readout {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 52px;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.status {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 38px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.heading-1 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: 0;
}
.heading-2 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: 0;
}
.heading-3 {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0;
}
.body-lg {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0;
}
.body-strong {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
}
.body-sm {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.data {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Fonts: the files in ../android/res/font are shared with the web build. */
@font-face { font-family: "Exo 2"; src: url("fonts/exo2_variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument_sans_variable.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm_plex_mono_regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm_plex_mono_medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
