/*
 * Generated by `cargo run -p tokens` from contract/tokens.json. Do not edit: change the
 * contract and run the command again. scripts/check-core.sh fails while it is stale.
 */
:root {
  /* colour roles */
  --c-bg: #faf9f4; /* Background of every page and screen */
  --c-surface: #ffffff; /* Grouped list cells, cards, readout strips */
  --c-raised: #f1efe8; /* Fields, segmented tracks, cells inside a sheet */
  --c-rule: #e2dfd6; /* Hairlines between cells and rows */
  --c-text: #1c1a18; /* Body text and figures (16.5:1 on bg) */
  --c-text-muted: #55524e; /* Secondary text (7.4:1 on bg) */
  --c-text-faint: #6e6a65; /* Units, placeholders, chevrons (5.1:1 on bg, 4.7:1 on raised) */
  --c-accent-text: #4f6814; /* Accent as text and icons: links, bar buttons */
  --c-accent-fill: #4f6814; /* Accent as a fill under white text: primary buttons, FAB (6.3:1) */
  --c-on-accent: #ffffff; /* Text and icons on accentFill */
  --c-accent-tint: #e7e8d1; /* Selected row, navigation indicator, success message ground */
  --c-selection: #4f6814; /* Selection marks: checkmarks, radio dots, the selected tab */
  --c-route-ahead: #4f6814; /* The route still to walk on maps and profiles */
  --c-route-walked: #566575; /* The route already walked: a blue-grey, told from the route ahead by hue (5.1:1 on mapGround) */
  --c-warn: #a84306; /* Warnings and field errors as text and rules: the orange darkened to read on cream (5.7:1 on bg, 4.8:1 on its tint) */
  --c-warn-tint: #fce1d1; /* Ground of a warning banner or message */
  --c-destructive: #b53521; /* Destructive action labels */
  --c-disabled-text: rgba(28, 26, 24, 0.42); /* Disabled labels and icons (text at 42%) */
  --c-disabled-fill: rgba(28, 26, 24, 0.08); /* Disabled button and field fills (text at 8%) */
  --c-map-ground: #f1eee3; /* Map ground */
  --c-contour: #776d54; /* Contours (4.4:1 on mapGround, 3.4:1 under the darkest hillshade) */
  --c-bar: rgba(255, 255, 255, 0.94); /* Translucent tab bar and floating bars */
  --c-glass: rgba(255, 255, 255, 0.78); /* iOS 26 glass bar buttons */
  --c-glass-rim: rgba(28, 26, 24, 0.1); /* Rim of iOS 26 glass controls */
  --c-scrim: rgba(28, 26, 24, 0.45); /* Behind sheets and dialogs */
  --c-shadow: rgba(28, 26, 24, 0.16); /* Drop shadows of floating bars and FABs */
  --c-camera: #000000; /* Camera preview ground */
  --c-camera-veil: rgba(0, 0, 0, 0.55); /* Control grounds over the camera preview */
  --c-upload-veil: rgba(250, 249, 244, 0.4); /* Over a picture still on its way to the server: fades it toward the page */
  --c-photo-ground: #e3e6d2; /* Ground of a drawn photo placeholder */
  --c-photo-shape-a: #a9b381; /* Main shape of a drawn photo placeholder */
  --c-photo-shape-b: #6f8040; /* Second shape of a drawn photo placeholder */
  --c-bezel: #1c1a18; /* Device frame on the boards (not in the apps) */
  --c-hardware: #000000; /* Camera cutouts on the board frames (not in the apps) */
  --c-map-shadow: rgba(74, 62, 36, 0.08); /* Hillshade: slopes facing away from the light. Light enough that a trail and a contour hold their contrast on the darkest slope */
  --c-map-light: rgba(255, 255, 255, 0.55); /* Hillshade: slopes facing the light */
  --c-map-water: #b7d3e6; /* Lakes and rivers on the map */
  --c-map-blank: #e6e3d9; /* Map ground where no region is downloaded */
  --c-map-trail: #575450; /* Trails and their names on the map (4.6:1 on the bare ground under the darkest hillshade) */
  --c-map-accuracy: rgba(0, 86, 196, 0.12); /* The accuracy radius of a current, good position */
  --c-map-accuracy-stale: rgba(110, 106, 101, 0.16); /* The accuracy radius of the last known position */
  --c-map-accuracy-warn: rgba(238, 107, 23, 0.16); /* The accuracy radius of an inaccurate position */
  --c-route-muted: #55524e; /* The other routes on a map, behind the selected one */
  --c-position: #0056c4; /* The current position on a map */
  --c-map-position-stale: #66625d; /* The last known position and the edge of its accuracy radius */
  --c-map-warn: #903905; /* The line back to the route, and an inaccurate position */
  --c-map-case: #ffffff; /* The light edge that sets a mark off from the map: the case under a route, the ring of the position and of a marker, a marker label's halo */
  --c-map-marker: #2b3117; /* A marker's ring, and its fill when selected */
  --c-map-label: #1c1a18; /* Place names on the map */
  --c-map-label-muted: #55524e; /* Water and peak names on the map */
  --c-map-label-faint: #56534f; /* Contour elevations and region names on the map */
  --c-map-road: #7a756b; /* Roads and railways on the map (3.9:1 on mapGround, 3.1:1 under the darkest hillshade) */
  --c-map-stream: #457699; /* Streams on the map, drawn as lines (3.2:1 under the darkest hillshade) */
  --c-map-boundary: #a8a296; /* Boundaries on the map */
  --c-profile-walked: rgba(86, 101, 117, 0.3); /* The part walked, tinted over an elevation profile: the walked route's hue, light enough that the profile's line holds 3:1 over it */
  --c-mark-sky-top: #f3f0e2; /* Summit mark, sky top */
  --c-mark-sky-bottom: #e4e3c8; /* Summit mark, sky bottom */
  --c-mark-ridge-back: #889753; /* Summit mark, back ridge */
  --c-mark-ridge-front: #4f6814; /* Summit mark, front ridge (85%) */
  --c-mark-face-tl: #6f8040; /* Summit mark, stone face */
  --c-mark-face-tr: #4f6814; /* Summit mark, stone face */
  --c-mark-face-bl: #404823; /* Summit mark, stone face */
  --c-mark-face-br: #2b3117; /* Summit mark, stone face */
  --c-google-fill: #ffffff; /* Google sign-in button fill, light theme. Set by Google's branding rules, not part of the palette */
  --c-google-stroke: #747775; /* Google sign-in button 1px inside stroke, light theme (Google's rules) */
  --c-google-text: #1f1f1f; /* Google sign-in button title, light theme (Google's rules) */
  --c-apple-fill: #ffffff; /* Sign in with Apple button, the white style, outlined on a light ground (Apple HIG) */
  --c-apple-text: #000000; /* Sign in with Apple title and logo on the white style (Apple HIG) */
  --c-apple-stroke: #000000; /* Sign in with Apple button, the outline of the white style on a light background (Apple HIG) */
  --c-accent-strong: #2b3117; /* The darkest olive: a selected filter, the route under a selection, the ground of the landing band */
  --c-on-accent-strong: #faf9f4; /* Text and icons on accentStrong */
  --c-highlight: #ee6b17; /* Orange as a fill or a mark, never as text: rating stars, counts, the meeting point, the off route line */
  --c-switch-off: #cfcbc0; /* The track of a switch that is off */
  --c-on-camera: #faf9f4; /* The status bar and home indicator over the camera or the photo viewer */
  --c-card-shadow: rgba(28, 26, 24, 0.07); /* The soft shadow under a card on the cream ground */
  /* spacing, radii, hairlines */
  --sp-0: 0;
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 6px;
  --sp-4: 8px;
  --sp-5: 10px;
  --sp-6: 12px;
  --sp-7: 14px;
  --sp-8: 16px;
  --sp-9: 20px;
  --sp-10: 24px;
  --sp-11: 28px;
  --sp-12: 32px;
  --sp-13: 40px;
  --sp-14: 48px;
  --sp-15: 56px;
  --sp-16: 64px;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 28px;
  --r-4xl: 38px;
  --r-pill: 999px;
  --hl-thin: 0.5px;
  --hl-base: 1px;
  --hl-thick: 1.5px;
  --hl-focus: 2px;
  /* component sizes */
  --web-sidebar: 232px;
  --web-top-bar: 60px;
  --web-control: 36px;
  --web-control-large: 44px;
  --web-icon: 18px;
  --web-icon-large: 40px;
  --web-list-column: 600px;
  --web-dialog: 560px;
  --web-viewer: 896px;
  --web-alert: 440px;
  --web-min-target: 44px;
  --web-photo: 220px;
  --web-weight-bar: 56px;
  --web-bar-height: 3px;
  --web-chart-bar: 10px;
  --web-swatch: 10px;
  --web-pane: 360px;
  --web-map-static: 280px;
  --web-sheet-peek: 120px;
  --web-profile: 160px;
  --web-profile-compact: 48px;
  --web-photo-tile: 120px;
  --web-bubble-max: 420px;
  --web-thumb-row: 40px;
  --web-perspective: 900px;
  --web-avatar-small: 22px;
  --web-avatar-medium: 28px;
  --web-avatar-large: 56px;
  --web-checkbox: 16px;
  --web-row-min: 44px;
  --web-switch-w: 32px;
  --web-switch-h: 18px;
  --web-menu: 240px;
  --web-auth-column: 400px;
  --web-hero-map: 400px;
  --web-hero-max: 1120px;
  --web-feature-icon: 44px;
  --web-feature-min: 220px;
  --brand-launch: 96px;
  --brand-form: 56px;
  --elevation-low: 4px;
  --elevation-high: 12px;
  --elevation-fall: 2px;
  --map-route-case: 7px;
  --map-route: 4px;
  --map-route-muted: 2.5px;
  --map-off: 3px;
  --map-route-hit: 44px;
  --map-contour: 0.6px;
  --map-contour-index: 1.1px;
  --map-puck-ring: 3px;
  --map-thumb-line: 2px;
  --map-profile-line: 1.5px;
  --map-accuracy: 1px;
  --map-puck: 7px;
  --map-marker: 6px;
  --map-marker-selected: 8px;
  --map-marker-ring: 2px;
  --map-marker-label: 11px;
  /* width classes and readable caps */
  --w-compact-max: 599px;
  --w-medium-min: 600px;
  --w-expanded-min: 840px;
  --w-drawer-min: 1200px;
  --w-short-max: 499px;
  --w-readable: 640px;
  --w-form: 560px;
  /* motion */
  --motion-push: 300ms;
  --motion-sheet: 350ms;
  --motion-fade: 150ms;
  /* faces */
  --f-web: "Figtree", system-ui, -apple-system, sans-serif;
  --f-web-mono: "Figtree", system-ui, -apple-system, sans-serif;
  --f-web-display: "Outfit", "Figtree", system-ui, sans-serif;
  --f-google: "Outfit", "Roboto", system-ui, sans-serif;
  --f-map-regular: "Noto Sans Regular";
  --f-map-medium: "Noto Sans Medium";
  --f-map-italic: "Noto Sans Italic";
  /* type roles: --t-* sans, --tm-* figures (the rule that sets one adds tabular-nums) */
  --t-web-h1: 700 26px / 32px var(--f-web);
  --tm-web-h1: 700 26px / 32px var(--f-web-mono);
  --t-web-h2: 700 18px / 24px var(--f-web);
  --tm-web-h2: 700 18px / 24px var(--f-web-mono);
  --t-web-body: 400 15px / 22px var(--f-web);
  --tm-web-body: 400 15px / 22px var(--f-web-mono);
  --t-web-body-large: 400 16px / 24px var(--f-web);
  --tm-web-body-large: 400 16px / 24px var(--f-web-mono);
  --t-web-small: 400 13px / 18px var(--f-web);
  --tm-web-small: 400 13px / 18px var(--f-web-mono);
  --t-web-label: 600 12px / 16px var(--f-web);
  --tm-web-label: 600 12px / 16px var(--f-web-mono);
  --t-web-button: 700 14px / 18px var(--f-web);
  --tm-web-button: 700 14px / 18px var(--f-web-mono);
  --t-web-readout-value: 700 22px / 28px var(--f-web);
  --tm-web-readout-value: 700 22px / 28px var(--f-web-mono);
  --t-web-readout-label: 500 13px / 18px var(--f-web);
  --tm-web-readout-label: 500 13px / 18px var(--f-web-mono);
  --t-web-row-figure: 500 14px / 20px var(--f-web);
  --tm-web-row-figure: 500 14px / 20px var(--f-web-mono);
  --t-web-url: 400 12px / 16px var(--f-web);
  --tm-web-url: 400 12px / 16px var(--f-web-mono);
  --t-web-avatar: 600 10px / 12px var(--f-web);
  --tm-web-avatar: 600 10px / 12px var(--f-web-mono);
  --t-web-provider-title: 500 14px / 20px var(--f-web);
  --tm-web-provider-title: 500 14px / 20px var(--f-web-mono);
  --t-web-apple-title-touch: 600 19px / 24px var(--f-web);
  --tm-web-apple-title-touch: 600 19px / 24px var(--f-web-mono);
  --t-web-chart: 500 11px / 14px var(--f-web);
  --tm-web-chart: 500 11px / 14px var(--f-web-mono);
  --t-web-brand: 700 18px / 24px var(--f-web);
  --tm-web-brand: 700 18px / 24px var(--f-web-mono);
  --t-web-display: 700 48px / 54px var(--f-web);
  --tm-web-display: 700 48px / 54px var(--f-web-mono);
  --t-web-display-small: 700 32px / 38px var(--f-web);
  --tm-web-display-small: 700 32px / 38px var(--f-web-mono);
  --t-web-lead: 400 18px / 28px var(--f-web);
  --tm-web-lead: 400 18px / 28px var(--f-web-mono);
  /* icon glyph sizes */
  --icon-web-row: 18px;
  --icon-web-inline: 16px;
  --icon-web-button: 17px;
  color-scheme: light;
}

/* the largest text size: 200% */
.ts-max {
  --t-web-h1: 700 48px / 58px var(--f-web);
  --tm-web-h1: 700 48px / 58px var(--f-web-mono);
  --t-web-h2: 700 34px / 46px var(--f-web);
  --tm-web-h2: 700 34px / 46px var(--f-web-mono);
  --t-web-body: 400 28px / 40px var(--f-web);
  --tm-web-body: 400 28px / 40px var(--f-web-mono);
  --t-web-body-large: 400 30px / 44px var(--f-web);
  --tm-web-body-large: 400 30px / 44px var(--f-web-mono);
  --t-web-small: 400 24px / 32px var(--f-web);
  --tm-web-small: 400 24px / 32px var(--f-web-mono);
  --t-web-label: 600 22px / 28px var(--f-web);
  --tm-web-label: 600 22px / 28px var(--f-web-mono);
  --t-web-button: 700 26px / 32px var(--f-web);
  --tm-web-button: 700 26px / 32px var(--f-web-mono);
  --t-web-readout-value: 700 40px / 52px var(--f-web);
  --tm-web-readout-value: 700 40px / 52px var(--f-web-mono);
  --t-web-readout-label: 500 22px / 28px var(--f-web);
  --tm-web-readout-label: 500 22px / 28px var(--f-web-mono);
  --t-web-row-figure: 500 26px / 36px var(--f-web);
  --tm-web-row-figure: 500 26px / 36px var(--f-web-mono);
  --t-web-url: 400 12px / 16px var(--f-web);
  --tm-web-url: 400 12px / 16px var(--f-web-mono);
  --t-web-avatar: 600 10px / 12px var(--f-web);
  --tm-web-avatar: 600 10px / 12px var(--f-web-mono);
  --t-web-provider-title: 500 28px / 40px var(--f-web);
  --tm-web-provider-title: 500 28px / 40px var(--f-web-mono);
  --t-web-apple-title-touch: 600 38px / 48px var(--f-web);
  --tm-web-apple-title-touch: 600 38px / 48px var(--f-web-mono);
  --t-web-chart: 500 22px / 28px var(--f-web);
  --tm-web-chart: 500 22px / 28px var(--f-web-mono);
  --t-web-brand: 700 28px / 36px var(--f-web);
  --tm-web-brand: 700 28px / 36px var(--f-web-mono);
  --t-web-display: 700 64px / 72px var(--f-web);
  --tm-web-display: 700 64px / 72px var(--f-web-mono);
  --t-web-display-small: 700 48px / 56px var(--f-web);
  --tm-web-display-small: 700 48px / 56px var(--f-web-mono);
  --t-web-lead: 400 30px / 44px var(--f-web);
  --tm-web-lead: 400 30px / 44px var(--f-web-mono);
  --icon-web-row: 28px;
  --icon-web-inline: 26px;
  --icon-web-button: 26px;
}

/* the dark ground: the camera, the photo viewer and the veils over a photo */
.ground-dark {
  --c-bg: #1c1a18;
  --c-surface: #2a2826;
  --c-raised: #33312e;
  --c-rule: #4a4846;
  --c-text: #faf9f4;
  --c-text-muted: #c9c6c0;
  --c-text-faint: #a3a09f;
  --c-accent-text: #b9c98a;
  --c-accent-fill: #889753;
  --c-on-accent: #1c1a18;
  --c-accent-tint: #2b3117;
  --c-selection: #b9c98a;
  --c-warn: #f39255;
  --c-warn-tint: #4a2a10;
  --c-destructive: #e97b69;
  --c-disabled-text: rgba(250, 249, 244, 0.38);
  --c-disabled-fill: rgba(250, 249, 244, 0.12);
  --c-bar: rgba(42, 40, 38, 0.94);
  --c-glass: rgba(255, 255, 255, 0.12);
  --c-glass-rim: rgba(255, 255, 255, 0.18);
  color: var(--c-text);
  color-scheme: dark;
}

/*
 * The public pages' kit (ADR 0022): every rule reads a token from the generated
 * web/src/kit/generated/tokens.css, which is served first in the same file
 * (LodestoneWeb.Public.Assets). kit_test.exs refuses a hex colour, a colour that is not a
 * token, a length in px, rem or em, and a font name here; the one exception is a media query's
 * min-width, which must be a width class's token value (--w-medium-min, --w-expanded-min).
 */

/* the document */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--c-bg); color: var(--c-text); font: var(--t-web-body); }
body.k-body { margin: var(--sp-0); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: var(--hl-focus) solid var(--c-accent-text); outline-offset: var(--sp-1); }
h1, h2, p { margin: var(--sp-0); }

/* icons */
.k-icon { flex: none; }
.k-icon-row { width: var(--icon-web-row); height: var(--icon-web-row); color: var(--c-text-muted); }
.k-icon-inline { width: var(--icon-web-inline); height: var(--icon-web-inline); color: var(--c-text-faint); }
.k-icon-button { width: var(--icon-web-button); height: var(--icon-web-button); }
.k-icon-large { width: var(--web-icon-large); height: var(--web-icon-large); color: var(--c-text-faint); }

/* the summit mark */
.k-mark { flex: none; }
.k-mark-bar { width: var(--web-control); height: var(--web-control); }
.k-mark-form { width: var(--brand-form); height: var(--brand-form); }
.k-mark-sky-top { stop-color: var(--c-mark-sky-top); }
.k-mark-sky-bottom { stop-color: var(--c-mark-sky-bottom); }
.k-mark-ridge-back { fill: var(--c-mark-ridge-back); }
.k-mark-ridge-front { fill: var(--c-mark-ridge-front); }
.k-mark-face-tl { fill: var(--c-mark-face-tl); }
.k-mark-face-tr { fill: var(--c-mark-face-tr); }
.k-mark-face-bl { fill: var(--c-mark-face-bl); }
.k-mark-face-br { fill: var(--c-mark-face-br); }

/* buttons: an action on a public page is a link */
.k-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  min-height: var(--web-control); padding: var(--sp-3) var(--sp-6);
  border: var(--hl-base) solid transparent; border-radius: var(--r-md);
  font: var(--t-web-button);
}
.k-button-primary { background: var(--c-accent-fill); color: var(--c-on-accent); }
.k-button-secondary { border-color: var(--c-rule); color: var(--c-text); }
.k-button-secondary:hover, .k-button-plain:hover { background: var(--c-raised); }
.k-button-plain { color: var(--c-accent-text); }
.k-button-fill { width: 100%; }

/* PublicShell */
.k-pub-bar {
  height: var(--web-top-bar); flex: none; display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-6); padding: var(--sp-0) var(--sp-8);
  border-bottom: var(--hl-base) solid var(--c-rule);
}
.k-pub-brand { display: inline-flex; align-items: center; gap: var(--sp-4); font: var(--t-web-h2); }
.k-pub-acts { display: flex; align-items: center; gap: var(--sp-4); }
.k-pub-page {
  flex: 1 0 auto; width: 100%; max-width: calc(var(--w-readable) + var(--sp-8) * 2);
  margin: var(--sp-0) auto; padding: var(--sp-10) var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-10);
}
.k-pub-page-wide { max-width: none; }
.k-pub-foot {
  display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-10) var(--sp-8);
  border-top: var(--hl-base) solid var(--c-rule); color: var(--c-text-muted); font: var(--t-web-small);
}
.k-pub-links { display: flex; flex-wrap: wrap; gap: var(--sp-8); color: var(--c-text); }
.k-pub-links a:hover { color: var(--c-accent-text); }
.k-pub-note { max-width: var(--w-readable); }

/* BrandHeader */
.k-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-6); }
.k-brand-title { font: var(--t-web-h1); overflow-wrap: anywhere; }
.k-brand-detail { font: var(--t-web-body-large); color: var(--c-text-muted); overflow-wrap: anywhere; }

/* ScreenHeader */
.k-screen-header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-6); }
.k-screen-header-words { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; gap: var(--sp-2); }
.k-screen-header-large { font: var(--t-web-h1); overflow-wrap: anywhere; }
.k-screen-header-inline { font: var(--t-web-h2); overflow-wrap: anywhere; }
.k-screen-header-subtitle { font: var(--t-web-small); color: var(--c-text-muted); overflow-wrap: anywhere; }
.k-screen-header-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ListSection */
.k-list-section { display: flex; flex-direction: column; gap: var(--sp-4); }
.k-list-section-title { font: var(--t-web-label); color: var(--c-text-muted); text-transform: uppercase; }
.k-list-section-rows { border-top: var(--hl-base) solid var(--c-rule); }

/* ListRow */
.k-list-row {
  display: flex; width: 100%; align-items: center; gap: var(--sp-6); min-height: var(--web-row-min);
  padding: var(--sp-3) var(--sp-4); border-bottom: var(--hl-base) solid var(--c-rule);
}
.k-list-row-open:hover { background: var(--c-raised); }
.k-list-row-body {
  display: flex; flex: 1 1 0; min-width: 0; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; column-gap: var(--sp-6);
}
.k-list-row-words { display: flex; min-width: 0; flex-direction: column; }
.k-list-row-title { overflow-wrap: anywhere; }
.k-list-row-subtitle { font: var(--t-web-small); color: var(--c-text-muted); overflow-wrap: anywhere; }
.k-list-row-trailing { font: var(--tm-web-body); color: var(--c-text-muted); }

/* NoteBlock */
.k-note-block { padding: var(--sp-3) var(--sp-4); overflow-wrap: anywhere; }

/* FormMessage */
.k-form-message {
  display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6);
  border: var(--hl-base) solid var(--c-rule); border-radius: var(--r-sm); font: var(--t-web-small);
}
.k-form-message-text { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.k-form-message-error { border-color: var(--c-destructive); background: var(--c-bg); color: var(--c-text); }
.k-form-message-error .k-icon { color: var(--c-destructive); }
.k-form-message-success { background: var(--c-accent-tint); color: var(--c-text); }
.k-form-message-success .k-icon { color: var(--c-accent-text); }
.k-form-message-info { background: var(--c-bg); color: var(--c-text-muted); }
.k-form-message-info .k-icon { color: var(--c-text-muted); }

/* MapView: a route's line in a box, with no tiles under it */
.k-map-view {
  display: block; width: 100%; height: var(--web-map-static);
  border: var(--hl-base) solid var(--c-rule); border-radius: var(--r-md); background: var(--c-raised);
}
.k-map-view-route {
  fill: none; stroke: var(--c-route-ahead); stroke-width: var(--hl-focus);
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}

/* ReadoutStrip */
.k-readout-strip { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: var(--sp-0); }
.k-readout { display: flex; flex-direction: column; gap: var(--sp-1); }
.k-readout-label { font: var(--t-web-label); color: var(--c-text-muted); text-transform: uppercase; }
.k-readout-value { margin: var(--sp-0); font: var(--tm-web-body); overflow-wrap: anywhere; }

/* ElevationProfile */
.k-elevation-profile { display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-0); }
.k-elevation-profile-chart {
  display: block; width: 100%; height: var(--web-profile);
  border-bottom: var(--hl-base) solid var(--c-rule);
}
.k-elevation-profile-line {
  fill: none; stroke: var(--c-route-ahead); stroke-width: var(--hl-thick);
  stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.k-elevation-profile-coverage { font: var(--t-web-small); color: var(--c-text-muted); overflow-wrap: anywhere; }

/* EmptyState and ErrorState */
.k-state { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); text-align: center; }
.k-state-screen { padding: var(--sp-16) var(--sp-10); }
.k-state-region { padding: var(--sp-12) var(--sp-8); }
.k-state-warn .k-icon-large { color: var(--c-warn); }
.k-state-title { font: var(--t-web-h2); overflow-wrap: anywhere; }
.k-state-detail { color: var(--c-text-muted); overflow-wrap: anywhere; }
.k-state-actions { display: flex; width: 100%; flex-direction: column; gap: var(--sp-4); padding-top: var(--sp-4); }

/* WeightByCategory: the total, a stacked bar and its legend */
.k-wbc { display: flex; flex-direction: column; }
.k-wbc-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4); padding: var(--sp-2) var(--sp-0) var(--sp-4);
  border-bottom: var(--hl-base) solid var(--c-rule);
}
.k-wbc-title { font: var(--t-web-h2); overflow-wrap: anywhere; }
.k-wbc-total { font: var(--tm-web-small); color: var(--c-text-muted); }
.k-wbc-bar {
  display: block; width: 100%; height: var(--web-chart-bar);
  margin: var(--sp-5) var(--sp-0) var(--sp-3); border-radius: var(--r-xs);
}
.k-wbc-legend { display: flex; flex-direction: column; margin: var(--sp-0); padding: var(--sp-0); list-style: none; }
.k-wbc-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-6);
  padding: var(--sp-3) var(--sp-0); border-bottom: var(--hl-base) solid var(--c-rule);
}
.k-wbc-swatch { flex: none; width: var(--sp-5); height: var(--sp-5); border-radius: var(--r-xs); }
.k-wbc-name { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.k-wbc-figures { display: flex; align-items: baseline; gap: var(--sp-6); }
.k-wbc-weight { font: var(--tm-web-body); }
.k-wbc-share { font: var(--tm-web-small); color: var(--c-text-muted); }
.k-wbc-fill-0 { fill: var(--c-accent-strong); }
.k-wbc-fill-1 { fill: var(--c-accent-fill); }
.k-wbc-fill-2 { fill: var(--c-route-walked); }
.k-wbc-fill-3 { fill: var(--c-photo-shape-a); }
.k-wbc-fill-4 { fill: var(--c-contour); }
.k-wbc-fill-5 { fill: var(--c-rule); }
.k-wbc-fill-hl { fill: var(--c-highlight); }
.k-wbc-swatch-0 { background: var(--c-accent-strong); }
.k-wbc-swatch-1 { background: var(--c-accent-fill); }
.k-wbc-swatch-2 { background: var(--c-route-walked); }
.k-wbc-swatch-3 { background: var(--c-photo-shape-a); }
.k-wbc-swatch-4 { background: var(--c-contour); }
.k-wbc-swatch-5 { background: var(--c-rule); }
.k-wbc-swatch-hl { background: var(--c-highlight); }

/* GearRow, read-only: stacked at compact, a table row from medium */
.k-gear-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: var(--sp-1) var(--sp-6); padding: var(--sp-4) var(--sp-3);
  border-bottom: var(--hl-base) solid var(--c-rule);
}
.k-gear-row-name { grid-column: 1; overflow-wrap: anywhere; }
.k-gear-row-brand { grid-column: 1; font: var(--t-web-small); color: var(--c-text-muted); overflow-wrap: anywhere; }
.k-gear-row-quantity { grid-column: 1; font: var(--tm-web-small); color: var(--c-text-muted); }
.k-gear-row-weight { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); }
.k-gear-row-figure { font: var(--tm-web-body); color: var(--c-text-muted); }
.k-gear-row-tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.k-weight-bar { display: block; width: var(--web-weight-bar); height: var(--web-bar-height); border-radius: var(--r-pill); }
.k-weight-bar-track { fill: var(--c-raised); }
.k-weight-bar-fill { fill: var(--c-text-muted); }
.k-tag {
  display: inline-flex; align-items: center; max-width: 100%; padding: var(--sp-1) var(--sp-4);
  border: var(--hl-base) solid var(--c-rule); border-radius: var(--r-pill);
  font: var(--t-web-label); color: var(--c-text-muted); overflow-wrap: anywhere;
}

/* medium and expanded: a filling button is as wide as its label, a state's actions sit in one
   row, and a gear row reads as a table row */
@media (min-width: 600px) {
  .k-button-fill { width: auto; }
  .k-state-actions { width: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .k-gear-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) var(--web-control) auto minmax(0, 1fr); }
  .k-gear-row-name, .k-gear-row-brand, .k-gear-row-quantity, .k-gear-row-weight, .k-gear-row-tags { grid-row: 1; }
  .k-gear-row-brand { grid-column: 2; }
  .k-gear-row-quantity { grid-column: 3; }
  .k-gear-row-weight { grid-column: 4; }
  .k-gear-row-tags { grid-column: 5; }
}
