/*
 * Lens visual system: base (owner: lane V1b).
 *
 * The Bootstrap remap, base elements, the shell and the page frames, the page head and the scope,
 * and the auth and error patterns, on the tokens of system/tokens.css only (both themes come from
 * them: nothing here knows which theme is on). Contract: docs/web/visual-system-contract.md §3.
 *
 * Breakpoints, the only place a width is written: ≤ 640 px (phone), ≤ 1024 px (tablet).
 */

/* ============================================================== Bootstrap remap
   Bootstrap 5.3 reads its own custom properties: pointing them at the semantic tokens themes every
   Bootstrap component at once, in light and dark. The *-rgb triplets are left alone: a token is a
   colour, not a triplet (the utilities that read them, .text-primary and friends, go with V2). */
:root {
  --bs-body-font-family: var(--lens-font-ui);
  --bs-body-font-size: var(--lens-fs-body);
  --bs-body-font-weight: var(--lens-fw-regular);
  --bs-font-sans-serif: var(--lens-font-ui);
  --bs-font-monospace: var(--lens-font-mono);

  --bs-body-color: var(--lens-text);
  --bs-body-bg: var(--lens-canvas);
  --bs-emphasis-color: var(--lens-heading);
  --bs-heading-color: var(--lens-heading);
  --bs-secondary-color: var(--lens-text-muted);
  --bs-secondary-bg: var(--lens-surface-subtle);
  --bs-tertiary-color: var(--lens-text-muted);
  --bs-tertiary-bg: var(--lens-surface-subtle);
  --bs-border-color: var(--lens-border);
  --bs-border-color-translucent: var(--lens-border);
  --bs-link-color: var(--lens-link);
  --bs-link-hover-color: var(--lens-link-hover);
  --bs-code-color: var(--lens-text);
  --bs-highlight-color: var(--lens-text);
  --bs-highlight-bg: var(--lens-watch-bg);
  --bs-focus-ring-color: var(--lens-focus);

  --bs-primary: var(--lens-primary);
  --bs-success: var(--lens-good);
  --bs-warning: var(--lens-watch);
  --bs-danger: var(--lens-action);
  --bs-info: var(--lens-info);
  --bs-secondary: var(--lens-neutral);
  --bs-primary-text-emphasis: var(--lens-primary);
  --bs-success-text-emphasis: var(--lens-good-ink);
  --bs-warning-text-emphasis: var(--lens-watch-ink);
  --bs-danger-text-emphasis: var(--lens-action-ink);
  --bs-info-text-emphasis: var(--lens-info-ink);
  --bs-secondary-text-emphasis: var(--lens-neutral-ink);
  --bs-primary-bg-subtle: var(--lens-selected);
  --bs-success-bg-subtle: var(--lens-good-bg);
  --bs-warning-bg-subtle: var(--lens-watch-bg);
  --bs-danger-bg-subtle: var(--lens-action-bg);
  --bs-info-bg-subtle: var(--lens-info-bg);
  --bs-secondary-bg-subtle: var(--lens-neutral-bg);
  --bs-primary-border-subtle: var(--lens-border);
  --bs-success-border-subtle: var(--lens-border);
  --bs-warning-border-subtle: var(--lens-border);
  --bs-danger-border-subtle: var(--lens-border);
  --bs-info-border-subtle: var(--lens-border);
  --bs-secondary-border-subtle: var(--lens-border);

  --bs-border-radius-sm: var(--lens-r-s);
  --bs-border-radius: var(--lens-r-m);
  --bs-border-radius-lg: var(--lens-r-l);
  --bs-border-radius-xl: var(--lens-r-l);
  --bs-border-radius-xxl: var(--lens-r-l);
  --bs-border-radius-pill: var(--lens-r-pill);

  /* Only overlays cast a shadow (contract §2.3, elevation) */
  --bs-box-shadow-sm: none;
  --bs-box-shadow-inset: none;
  --bs-box-shadow: var(--lens-shadow-overlay);
  --bs-box-shadow-lg: var(--lens-shadow-overlay);

  /* Bootstrap's overlays on the system's z-index scale */
  --bs-dropdown-zindex: var(--lens-z-dropdown);
}

/* The overlays Bootstrap draws on its own surfaces */
.dropdown-menu {
  --bs-dropdown-bg: var(--lens-surface-raised);
  --bs-dropdown-color: var(--lens-text);
  --bs-dropdown-border-color: var(--lens-border);
  --bs-dropdown-link-color: var(--lens-text);
  --bs-dropdown-link-hover-color: var(--lens-text);
  --bs-dropdown-link-hover-bg: var(--lens-hover);
  --bs-dropdown-link-active-color: var(--lens-text);
  --bs-dropdown-link-active-bg: var(--lens-selected);
  --bs-dropdown-header-color: var(--lens-text-muted);
  --bs-dropdown-divider-bg: var(--lens-divider);
  --bs-dropdown-box-shadow: var(--lens-shadow-overlay);
  --bs-dropdown-zindex: var(--lens-z-dropdown);
  font-size: var(--lens-fs-body);
}

/* Bootstrap's own literals the remap above cannot reach: what its compiled sheet writes as a colour
   rather than through a custom property, for the Bootstrap classes the screens still use outside a
   system component (a bare input, a checkbox, a validation message). */
:root {
  --bs-form-valid-color: var(--lens-good-ink);
  --bs-form-valid-border-color: var(--lens-good);
  --bs-form-invalid-color: var(--lens-action-ink);
  --bs-form-invalid-border-color: var(--lens-action);
}
.form-control,
.form-select {
  border-color: var(--lens-border-strong);
  background-color: var(--lens-surface);
  color: var(--lens-text);
  font-size: var(--lens-fs-body);
}
.form-control::placeholder { color: var(--lens-text-muted); }
.form-check-input {
  border-color: var(--lens-border-strong);
  background-color: var(--lens-surface);
}
.form-check-input:checked {
  border-color: var(--lens-primary);
  background-color: var(--lens-primary);
}
.form-check-input:focus {
  border-color: var(--lens-focus);
  box-shadow: 0 0 0 2px var(--lens-focus);
}

/* ============================================================== base elements */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--lens-canvas);
  color: var(--lens-text);
  font-family: var(--lens-font-ui);
  font-size: var(--lens-fs-body);
  font-weight: var(--lens-fw-regular);
  line-height: 1.5;
  /* Inter renders harsh with subpixel antialiasing on macOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--lens-heading);
  font-family: var(--lens-font-ui);
  font-weight: var(--lens-fw-strong);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
h1, .h1 { font-size: var(--lens-fs-title); letter-spacing: -0.01em; }
h2, .h2 { font-size: var(--lens-fs-section); letter-spacing: -0.01em; }
h3, .h3 { font-size: var(--lens-fs-lead); }
h4, .h4 { font-size: var(--lens-fs-object); }
h5, .h5, h6, .h6 { font-size: var(--lens-fs-body); }

p { margin-top: 0; }

small, .small { font-size: var(--lens-fs-meta); }

a {
  color: var(--lens-link);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--lens-link-hover); }

/* One focus ring for everything a keyboard reaches; the controls lane may refine its own */
:focus-visible {
  outline: 2px solid var(--lens-focus);
  outline-offset: 2px;
}

code, kbd, pre, samp {
  font-family: var(--lens-font-mono);
  font-size: var(--lens-fs-meta);
}

hr {
  border: 0;
  border-top: 1px solid var(--lens-divider);
  opacity: 1;
}

::selection { background: var(--lens-selected); color: var(--lens-text); }

img, svg, video { max-width: 100%; }
/* The icon sprite (fragments/icon.html) sits on the text's baseline in its colour */
.tz-icon { display: inline-block; vertical-align: -0.125em; color: currentColor; }
/* Leaflet sizes its panes and their SVG itself: a max-width on them collapses custom panes to 0x0. */
.leaflet-container img, .leaflet-container svg { max-width: none; max-height: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* The skip link: the first stop of the keyboard, visible only when it has the focus */
.lens-skip {
  position: absolute;
  top: var(--lens-sp-2);
  left: var(--lens-sp-2);
  z-index: var(--lens-z-toast);
  padding: var(--lens-sp-2) var(--lens-sp-4);
  border-radius: var(--lens-r-m);
  background: var(--lens-surface-raised);
  color: var(--lens-link);
  box-shadow: var(--lens-shadow-overlay);
  transform: translateY(-200%);
}
.lens-skip:focus { transform: none; }

/* ============================================================== the shell
   The top bar: [menu] brand · Analyze Deploy Manage ··· bell user. 56 px, sticky. On a phone the
   first level folds into a panel the menu button opens (lens-shell.js keeps aria-expanded). */
.lens-shell {
  position: sticky;
  top: 0;
  z-index: var(--lens-z-sticky);
  display: flex;
  align-items: center;
  gap: var(--lens-sp-5);
  height: 56px;
  padding: 0 var(--lens-gutter);
  background: var(--lens-shell);
  color: var(--lens-shell-text);
}

.lens-shell__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 56px;
}
.lens-shell__brand img { display: block; width: auto; height: 22px; }

.lens-shell__nav {
  display: flex;
  align-items: center;
  gap: var(--lens-sp-1);
  min-width: 0;
}

.lens-shell__item {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--lens-sp-4);
  border-radius: var(--lens-r-m);
  color: var(--lens-shell-text-muted);
  font-size: var(--lens-fs-body);
  font-weight: var(--lens-fw-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--lens-duration) var(--lens-ease), color var(--lens-duration) var(--lens-ease);
}
.lens-shell__item:hover { color: var(--lens-shell-text); box-shadow: inset 0 0 0 1px var(--lens-shell-text-muted); }
.lens-shell__item[aria-current]:hover { box-shadow: none; }
.lens-shell__item[aria-current] {
  color: var(--lens-text-inverse);
  background: var(--lens-shell-active);
  font-weight: var(--lens-fw-strong);
}

.lens-shell__tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--lens-sp-3);
  margin-left: auto;
}

/* The bell, the user and the menu button share one 40 px target */
.lens-shell__tool,
.lens-shell__menu {
  display: inline-flex;
  align-items: center;
  gap: var(--lens-sp-2);
  min-width: 40px;
  height: 40px;
  justify-content: center;
  padding: 0 var(--lens-sp-1);
  border: 0;
  border-radius: var(--lens-r-m);
  background: transparent;
  color: var(--lens-shell-text);
  text-decoration: none;
}
.lens-shell__tool:hover,
.lens-shell__menu:hover { color: var(--lens-shell-text); box-shadow: inset 0 0 0 1px var(--lens-shell-text-muted); }
.lens-shell__tool:focus-visible,
.lens-shell__menu:focus-visible { outline-color: var(--lens-shell-text); outline-offset: -2px; }

.lens-shell__bell { position: relative; font-size: var(--lens-fs-section); }
.lens-shell__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--lens-sp-1);
  border-radius: var(--lens-r-pill);
  background: var(--lens-action);
  color: var(--lens-text-inverse);
  font-size: var(--lens-fs-meta);
  font-weight: var(--lens-fw-strong);
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lens-shell__count[hidden] { display: none; }

.lens-shell__user-name {
  max-width: 220px;
  overflow: hidden;
  color: var(--lens-shell-text-muted);
  font-size: var(--lens-fs-meta);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lens-shell__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--lens-shell-text-muted);
  border-radius: var(--lens-r-pill);
  color: var(--lens-shell-text);
}

.lens-shell__menu {
  display: none;
  flex: 0 0 auto;
  font-size: var(--lens-fs-section);
}

/* The second level: the section's items, underlined when active. It scrolls sideways inside
   itself when it does not fit, never cutting an item nor pushing the page. */
.lens-subnav {
  position: sticky;
  top: 56px;
  z-index: calc(var(--lens-z-sticky) - 1);
  display: flex;
  align-items: center;
  gap: var(--lens-sp-4);
  padding: 0 var(--lens-gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  background: var(--lens-shell-2);
  border-bottom: 1px solid var(--lens-border);
}
.lens-subnav__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 46px;
  padding: 0 var(--lens-sp-1);
  border-bottom: 2px solid transparent;
  color: var(--lens-text-muted);
  font-size: var(--lens-fs-body);
  font-weight: var(--lens-fw-medium);
  text-decoration: none;
  white-space: nowrap;
}
.lens-subnav__item:hover { color: var(--lens-text); }
.lens-subnav__item[aria-current] {
  border-bottom-color: var(--lens-primary);
  color: var(--lens-heading);
  font-weight: var(--lens-fw-strong);
}
.lens-subnav > :not(.lens-subnav__item) { flex: 0 0 auto; }

@media (max-width: 1024px) {
  .lens-shell { gap: var(--lens-sp-3); }
  .lens-shell__item { padding: 0 var(--lens-sp-3); }
  .lens-shell__user-name { display: none; }
}

@media (max-width: 640px) {
  .lens-shell {
    gap: var(--lens-sp-2);
    padding: 0 var(--lens-sp-2) 0 var(--lens-sp-2);
  }
  .lens-shell__menu { display: inline-flex; }
  .lens-shell__brand img { height: 20px; }
  .lens-shell__tools { gap: var(--lens-sp-1); }

  /* The first level as a panel under the bar, while the menu button says it is open */
  .lens-shell__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: var(--lens-z-dropdown);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--lens-sp-1);
    padding: var(--lens-sp-2);
    background: var(--lens-shell);
    box-shadow: var(--lens-shadow-overlay);
  }
  .lens-shell__menu[aria-expanded="true"] ~ .lens-shell__nav { display: flex; }
  .lens-shell__item { height: 44px; }

  /* Two sticky bars eat a phone's screen: only the top bar stays */
  .lens-subnav { position: static; gap: var(--lens-sp-3); padding: 0 var(--lens-gutter); }
}

/* Leaflet's panes and controls (z-index 400–1000) would otherwise join the page's root stacking
   context and paint over the sticky shell and its menus: each map keeps its layers to itself. */
.leaflet-container { isolation: isolate; }

/* ============================================================== page frames
   main.lens-page: one of three widths (owner decision S2), centred in the window (owner decision
   of 9 October 2026, over left-aligned: a narrow page left a blank band on the right of a wide
   screen; the title moves between widths). The width is the content's: the gutters are added to
   it. The top bar and the second level stay full width. */
.lens-page {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--lens-width-standard) + 2 * var(--lens-gutter));
  min-width: 0;
  margin: 0 auto;
  padding: var(--lens-sp-5) var(--lens-gutter) var(--lens-sp-7);
}
.lens-page:focus { outline: none; }
.lens-page--wide { max-width: calc(var(--lens-width-wide) + 2 * var(--lens-gutter)); }
.lens-page--standard { max-width: calc(var(--lens-width-standard) + 2 * var(--lens-gutter)); }
.lens-page--narrow { max-width: calc(var(--lens-width-narrow) + 2 * var(--lens-gutter)); }

@media (max-width: 640px) {
  .lens-page { padding-top: var(--lens-sp-4); padding-bottom: var(--lens-sp-6); }
}

/* ============================================================== page head
   The title (with an optional subject), an optional meta line, and the actions on the right. On a
   phone the actions go under the title and wrap. Analysis pages carry no actions (D4). */
.lens-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lens-sp-3) var(--lens-sp-4);
  margin: 0 0 var(--lens-sp-5);
}
.lens-page-head__main { flex: 1 1 320px; min-width: 0; }
.lens-page-head__title {
  margin: 0;
  color: var(--lens-heading);
  font-size: var(--lens-fs-title);
  font-weight: var(--lens-fw-strong);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.lens-page-head__subject {
  color: var(--lens-text-muted);
  font-weight: var(--lens-fw-regular);
}
.lens-page-head__meta {
  margin: var(--lens-sp-1) 0 0;
  color: var(--lens-text-muted);
  font-size: var(--lens-fs-meta);
}
.lens-page-head__actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lens-sp-2);
}

@media (max-width: 640px) {
  .lens-page-head__main { flex-basis: 100%; }
  .lens-page-head__title { font-size: var(--lens-fs-section); }
}

/* ============================================================== scope (analysis pages)
   Hotel or estate, period, compare-with, criterion, band. On a phone it folds into one summary
   line that opens the fields (lens-shell.js keeps the summary's aria-expanded). */
.lens-scope {
  display: block;
  margin: 0 0 var(--lens-sp-5);
  padding: 0 0 var(--lens-sp-4);
  border-bottom: 1px solid var(--lens-divider);
}
.lens-scope__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--lens-sp-3) var(--lens-sp-5);
}
.lens-scope__fields > * { min-width: 0; max-width: 100%; }
.lens-scope__summary { display: none; }

@media (max-width: 640px) {
  .lens-scope__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lens-sp-2);
    width: 100%;
    min-height: 44px;
    padding: var(--lens-sp-2) var(--lens-sp-3);
    border: 1px solid var(--lens-border-strong);
    border-radius: var(--lens-r-m);
    background: var(--lens-surface);
    color: var(--lens-text);
    font: inherit;
    text-align: left;
  }
  .lens-scope__summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
  }
  .lens-scope__summary[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
  .lens-scope__fields { display: none; flex-direction: column; align-items: stretch; margin-top: var(--lens-sp-3); }
  .lens-scope__summary[aria-expanded="true"] + .lens-scope__fields { display: flex; }
}

/* ============================================================== settings pattern
   A side list of sections and the body, one surface per section (contract §3; lane V2b). The
   current section is marked by a rule and weight, never a filled pill; on a phone the list becomes
   a row that scrolls inside itself, above the body. */
.lens-settings {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  align-items: start;
  gap: var(--lens-sp-5);
}
.lens-settings__nav {
  display: flex;
  flex-direction: column;
  gap: var(--lens-sp-1);
}
.lens-settings__nav a {
  display: block;
  padding: var(--lens-sp-2) var(--lens-sp-3);
  border-radius: var(--lens-r-m);
  color: var(--lens-text);
  text-decoration: none;
}
.lens-settings__nav a:hover { color: var(--lens-link-hover); }
.lens-settings__nav a[aria-current="page"] {
  background: var(--lens-selected);
  color: var(--lens-heading);
  font-weight: var(--lens-fw-strong);
}
.lens-settings__body {
  display: flex;
  flex-direction: column;
  gap: var(--lens-sp-5);
  min-width: 0;
}
.lens-settings__body > .lens-surface > * + * { margin-top: var(--lens-sp-3); }

@media (max-width: 640px) {
  .lens-settings { grid-template-columns: minmax(0, 1fr); gap: var(--lens-sp-4); }
  .lens-settings__nav {
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--lens-divider);
  }
  .lens-settings__nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .lens-settings__nav a[aria-current="page"] { border-bottom-color: var(--lens-primary); }
}

/* ============================================================== auth and error patterns
   .lens-auth: the signed-out pages (sign in, reset, password, the plain error): the wordmark over
   one bounded card, centred on the canvas. .lens-error: an error, in the shell or in .lens-auth. */
.lens-auth {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--lens-sp-7) var(--lens-gutter);
}
.lens-auth__brand { display: inline-flex; margin: 0 0 var(--lens-sp-5); }
.lens-auth__brand img { width: auto; height: 32px; }
.lens-auth__card {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  padding: var(--lens-sp-6);
  border: 1px solid var(--lens-border);
  border-radius: var(--lens-r-l);
  background: var(--lens-surface);
}
/* Inside the card (lane V2e): the title and its lead, the form's fields, its actions (the one
   primary first and full width, then the secondary ways in, then the quiet ones) and a foot of
   secondary links (forgotten credentials, language, back to sign in) in ink that reads */
.lens-auth__title {
  margin: 0;
  color: var(--lens-heading);
  font-size: var(--lens-fs-section);
  font-weight: var(--lens-fw-strong);
  line-height: var(--lens-lh-tight);
}
.lens-auth__lead {
  margin: var(--lens-sp-2) 0 0;
  color: var(--lens-text-muted);
  font-size: var(--lens-fs-body);
  line-height: var(--lens-lh-body);
}
.lens-auth__card > .lens-toasts--inline { max-width: none; margin-top: var(--lens-sp-4); }
/* In the card a message is part of the page, not an overlay: no shadow */
.lens-auth__card .lens-toast { box-shadow: none; }
.lens-auth__form {
  display: flex;
  flex-direction: column;
  gap: var(--lens-sp-4);
  margin-top: var(--lens-sp-5);
}
.lens-auth__actions {
  display: flex;
  flex-direction: column;
  gap: var(--lens-sp-2);
  margin-top: var(--lens-sp-1);
}
.lens-auth__actions > .btn { width: 100%; min-height: 40px; }
.lens-auth__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--lens-sp-2);
  margin-top: var(--lens-sp-5);
  padding-top: var(--lens-sp-4);
  border-top: 1px solid var(--lens-divider);
  color: var(--lens-text-muted);
  font-size: var(--lens-fs-meta);
}
.lens-auth__foot-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lens-sp-1) var(--lens-sp-2);
  margin: 0;
}
.lens-auth__foot-line a { font-weight: var(--lens-fw-medium); }

/* The teal wordmark reads on a light canvas only: on a dark one, the shell's white wordmark */
.lens-logo--on-dark { display: none; }
:root[data-theme="dark"] .lens-logo--on-light { display: none; }
:root[data-theme="dark"] .lens-logo--on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lens-logo--on-light { display: none; }
  :root:not([data-theme="light"]) .lens-logo--on-dark { display: block; }
}

.lens-error {
  max-width: 560px;
  padding: var(--lens-sp-7) 0;
}
.lens-error__code {
  margin: 0;
  color: var(--lens-text-muted);
  font-family: var(--lens-font-mono);
  font-size: var(--lens-fs-figure-m);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lens-error__title {
  margin: var(--lens-sp-3) 0 var(--lens-sp-2);
  font-size: var(--lens-fs-title);
}
.lens-error__desc {
  margin: 0 0 var(--lens-sp-5);
  color: var(--lens-text);
  font-size: var(--lens-fs-lead);
}
.lens-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lens-sp-2);
}
/* Signed out, the error is the auth card itself (.lens-auth__card .lens-error--plain): the card's
   width and padding, which .lens-error above would otherwise override */
.lens-error--plain {
  max-width: 440px;
  padding: var(--lens-sp-6);
}
.lens-error--plain .lens-error__title { font-size: var(--lens-fs-section); }

/* ============================================================== print
   Only the page prints: the shell, the skip link and the toasts stay on screen (the report). */
@media print {
  .lens-skip, .lens-shell, .lens-subnav, .lens-toasts, .toast-container { display: none !important; }
  .lens-page { max-width: none; padding: 0; }
}
