/* Lola Brand 1.2.0 - generated by tools/build.py from tokens/tokens.json. Do not edit by hand. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --font-sans: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --cloud: #f5f5ed;
  --earth: #6d6151;
  --oat: #eae5df;
  --sand: #d3c7bb;
  --dust: #c1bab2;
  --wet-cement: #a6a094;
  --charcoal: #4b4a48;
  --midnight: #2d2f2f;
  --surface: #ffffff;
  --surface-raised: #f9f7f6;
  --surface-tint: #eae5df;
  --surface-deep: #6d6151;
  --surface-invert: #2d2f2f;
  --ink: #2d2f2f;
  --ink-muted: #6d6151;
  --ink-subtle: #666666;
  --ink-invert: #f5f5ed;
  --ink-on-deep: #f5f5ed;
  --line-hairline: #e3ded8;
  --line-strong: #988c7f;
  --focus-ring: #2d2f2f;
  --focus-ring-invert: #f5f5ed;
  --chart-series: #988c7f;
  --chart-compare: #d7d2cd;
  --chart-accent: #4b4a48;
  --chart-ink: #1f1d1a;
  --chart-label: #4b4a48;
  --chart-muted: #8e8a84;
  --chart-line: #3b3d3d;
  --chart-grid: #e6e4e0;
  --chart-axis: #c9c6c1;
  --chart-chip: #d7d2cd;
  --chart-card: #fbfbf8;
  --cornflower: #7d93a8;
  --cornflower-tint: #dce3ea;
  --cornflower-deep: #3e5a73;
  --lavender: #a395ac;
  --lavender-tint: #e5dee8;
  --lavender-deep: #5b4a66;
  --sage: #8b9878;
  --sage-tint: #dee3d5;
  --sage-deep: #4c5a3d;
  --ochre: #b8925a;
  --ochre-tint: #ede0cb;
  --ochre-deep: #7a5a2a;
  --terracotta: #b0584a;
  --terracotta-tint: #f1dcd7;
  --terracotta-deep: #7a3a2e;
  --status-success: #8b9878;
  --status-success-tint: #dee3d5;
  --status-success-text: #4c5a3d;
  --status-warning: #b8925a;
  --status-warning-tint: #ede0cb;
  --status-warning-text: #7a5a2a;
  --status-error: #b0584a;
  --status-error-tint: #f1dcd7;
  --status-error-text: #7a3a2e;
  --status-good: #8db06e;
  --status-good-tint: #e4edd9;
  --status-good-text: #4c5a3d;
  --status-critical: #a8382d;
  --status-critical-tint: #f3d9d5;
  --status-critical-text: #8f2c22;
  --status-info: #3e5a73;
  --status-info-tint: #dce3ea;
  --status-neutral: #a6a094;
  --link: #3e5a73;
  --surface-hover: #f3f0ec;
  --surface-selected: #eae5df;
  --series-1: #3e5a73;
  --series-2: #b0584a;
  --series-3: #8b9878;
  --series-4: #b8925a;
  --series-5: #a395ac;
  --series-6: #6d6151;
  --series-7: #5b4a66;
  --series-8: #4b4a48;
  --series-now: #2d2f2f;
  --heat-1: #dce3ea;
  --heat-2: #b9c6d3;
  --heat-3: #8ea3b7;
  --heat-4: #5c7690;
  --heat-5: #3e5a73;
  --map-land: #f3f1ec;
  --map-border: #d9d3cc;
  --map-water: #ffffff;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-none: none;
  --shadow-raised: 0 1px 2px rgba(45, 47, 47, 0.08);
  --ease-out: cubic-bezier(.165,.84,.44,1);
  --ease-standard: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.16,1,.3,1);
  --dur-instant: 80ms;
  --dur-fast: 140ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --dur-data: 600ms;
  --row-compact: 32px;
  --row-comfortable: 44px;
  --control-compact: 28px;
  --control: 36px;
  --page-max: 1280px;
  --page-max-read: 1120px;
  --z-sticky: 10;
  --z-dropdown: 100;
  --z-drawer: 200;
  --z-toast: 300;
  --z-tooltip: 400;
  --icon-sm: 14px;
  --icon: 16px;
  --icon-lg: 20px;
  --t-display-xl-size: 64px; --t-display-xl-lh: 61px; --t-display-xl-weight: 300; --t-display-xl-track: -0.02em;
  --t-display-size: 48px; --t-display-lh: 48px; --t-display-weight: 300; --t-display-track: -0.02em;
  --t-title-size: 32px; --t-title-lh: 36px; --t-title-weight: 400; --t-title-track: -0.01em;
  --t-display-caps-size: 48px; --t-display-caps-lh: 50px; --t-display-caps-weight: 700; --t-display-caps-track: 0.01em;
  --t-title-caps-size: 32px; --t-title-caps-lh: 34px; --t-title-caps-weight: 700; --t-title-caps-track: 0.01em;
  --t-heading-size: 22px; --t-heading-lh: 28px; --t-heading-weight: 500; --t-heading-track: normal;
  --t-heading-caps-size: 18px; --t-heading-caps-lh: 22px; --t-heading-caps-weight: 700; --t-heading-caps-track: 0.03em;
  --t-lede-size: 18px; --t-lede-lh: 26px; --t-lede-weight: 400; --t-lede-track: normal;
  --t-body-size: 16px; --t-body-lh: 24px; --t-body-weight: 400; --t-body-track: normal;
  --t-body-sm-size: 14px; --t-body-sm-lh: 21px; --t-body-sm-weight: 400; --t-body-sm-track: normal;
  --t-caption-size: 12px; --t-caption-lh: 16px; --t-caption-weight: 400; --t-caption-track: normal;
  --t-ui-size: 13px; --t-ui-lh: 18px; --t-ui-weight: 400; --t-ui-track: normal;
  --t-ui-strong-size: 13px; --t-ui-strong-lh: 18px; --t-ui-strong-weight: 500; --t-ui-strong-track: normal;
  --t-nav-size: 11px; --t-nav-lh: 14px; --t-nav-weight: 600; --t-nav-track: 0.08em;
  --t-stat-sm-size: 28px; --t-stat-sm-lh: 30px; --t-stat-sm-weight: 700; --t-stat-sm-track: -0.01em;
  --t-eyebrow-size: 11px; --t-eyebrow-lh: 14px; --t-eyebrow-weight: 600; --t-eyebrow-track: 0.14em;
  --t-label-size: 12px; --t-label-lh: 16px; --t-label-weight: 600; --t-label-track: 0.08em;
  --t-numeral-size: 40px; --t-numeral-lh: 40px; --t-numeral-weight: 300; --t-numeral-track: normal;
  --t-stat-size: 44px; --t-stat-lh: 44px; --t-stat-weight: 700; --t-stat-track: -0.01em;
  --t-data-size: 14px; --t-data-lh: 20px; --t-data-weight: 500; --t-data-track: normal;
  --t-footer-size: 9px; --t-footer-lh: 12px; --t-footer-weight: 400; --t-footer-track: 0.02em;
  --t-chart-title-size: 34px; --t-chart-title-lh: 42px; --t-chart-title-weight: 620; --t-chart-title-track: normal;
  --t-chart-value-size: 22px; --t-chart-value-lh: 26px; --t-chart-value-weight: 600; --t-chart-value-track: normal;
  --t-chart-label-size: 22px; --t-chart-label-lh: 26px; --t-chart-label-weight: 400; --t-chart-label-track: normal;
  --t-chart-rank-size: 24px; --t-chart-rank-lh: 28px; --t-chart-rank-weight: 650; --t-chart-rank-track: normal;
  --t-chart-chip-size: 20px; --t-chart-chip-lh: 24px; --t-chart-chip-weight: 560; --t-chart-chip-track: normal;
  --t-chart-header-size: 15px; --t-chart-header-lh: 20px; --t-chart-header-weight: 400; --t-chart-header-track: 1.4px;
  --t-chart-axis-size: 20px; --t-chart-axis-lh: 24px; --t-chart-axis-weight: 400; --t-chart-axis-track: normal;
  --t-chart-kpi-label-size: 12px; --t-chart-kpi-label-lh: 16px; --t-chart-kpi-label-weight: 600; --t-chart-kpi-label-track: normal;
  --t-chart-kpi-value-size: 17px; --t-chart-kpi-value-lh: 21px; --t-chart-kpi-value-weight: 600; --t-chart-kpi-value-track: normal;
}

/* Dark is opt-in: set data-theme="dark" on <html>, or data-theme="auto" to follow the OS. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #2d2f2f;
  --surface-raised: #3a3a38;
  --surface-tint: #4b4a48;
  --surface-invert: #f5f5ed;
  --ink: #f5f5ed;
  --ink-muted: #c1bab2;
  --ink-subtle: #b0a9a0;
  --ink-invert: #2d2f2f;
  --line-hairline: #45443f;
  --focus-ring: #f5f5ed;
  --focus-ring-invert: #2d2f2f;
  --chart-series: #b3a79a;
  --chart-compare: #5a5651;
  --chart-accent: #f5f5ed;
  --chart-ink: #f5f5ed;
  --chart-muted: #a39d94;
  --chart-line: #e6e2d8;
  --chart-grid: #45443f;
  --chart-axis: #5c5a55;
  --chart-chip: #5a5651;
  --chart-card: #353533;
  --cornflower-tint: #343e48;
  --cornflower-deep: #a9bdd1;
  --lavender-tint: #423c47;
  --lavender-deep: #cbbdd4;
  --sage-tint: #3b4433;
  --sage-deep: #b9c6a5;
  --ochre-tint: #4b4030;
  --ochre-deep: #e0c08f;
  --terracotta-tint: #4d3430;
  --terracotta-deep: #e8a99d;
  --status-success-tint: #3b4433;
  --status-success-text: #b9c6a5;
  --status-warning-tint: #4b4030;
  --status-warning-text: #e0c08f;
  --status-error-tint: #4d3430;
  --status-error-text: #e8a99d;
  --status-good-tint: #3b4932;
  --status-good-text: #b9c6a5;
  --status-critical-tint: #4e2b27;
  --status-critical-text: #f0a69c;
  --status-info: #a9bdd1;
  --status-info-tint: #343e48;
  --link: #a9bdd1;
  --surface-hover: #43423f;
  --surface-selected: #4b4a48;
  --series-1: #a9bdd1;
  --series-7: #cbbdd4;
  --map-land: #383836;
  --map-border: #4f4d48;
  --map-water: #2d2f2f;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --surface: #2d2f2f;
    --surface-raised: #3a3a38;
    --surface-tint: #4b4a48;
    --surface-invert: #f5f5ed;
    --ink: #f5f5ed;
    --ink-muted: #c1bab2;
    --ink-subtle: #b0a9a0;
    --ink-invert: #2d2f2f;
    --line-hairline: #45443f;
    --focus-ring: #f5f5ed;
    --focus-ring-invert: #2d2f2f;
    --chart-series: #b3a79a;
    --chart-compare: #5a5651;
    --chart-accent: #f5f5ed;
    --chart-ink: #f5f5ed;
    --chart-muted: #a39d94;
    --chart-line: #e6e2d8;
    --chart-grid: #45443f;
    --chart-axis: #5c5a55;
    --chart-chip: #5a5651;
    --chart-card: #353533;
    --cornflower-tint: #343e48;
    --cornflower-deep: #a9bdd1;
    --lavender-tint: #423c47;
    --lavender-deep: #cbbdd4;
    --sage-tint: #3b4433;
    --sage-deep: #b9c6a5;
    --ochre-tint: #4b4030;
    --ochre-deep: #e0c08f;
    --terracotta-tint: #4d3430;
    --terracotta-deep: #e8a99d;
    --status-success-tint: #3b4433;
    --status-success-text: #b9c6a5;
    --status-warning-tint: #4b4030;
    --status-warning-text: #e0c08f;
    --status-error-tint: #4d3430;
    --status-error-text: #e8a99d;
    --status-good-tint: #3b4932;
    --status-good-text: #b9c6a5;
    --status-critical-tint: #4e2b27;
    --status-critical-text: #f0a69c;
    --status-info: #a9bdd1;
    --status-info-tint: #343e48;
    --link: #a9bdd1;
    --surface-hover: #43423f;
    --surface-selected: #4b4a48;
    --series-1: #a9bdd1;
    --series-7: #cbbdd4;
    --map-land: #383836;
    --map-border: #4f4d48;
    --map-water: #2d2f2f;
  }
}

/* Type styles as utility classes: class="t-title", "t-label", ... */
.t-display-xl { font-size: var(--t-display-xl-size); line-height: var(--t-display-xl-lh); font-weight: var(--t-display-xl-weight); letter-spacing: var(--t-display-xl-track); }
.t-display { font-size: var(--t-display-size); line-height: var(--t-display-lh); font-weight: var(--t-display-weight); letter-spacing: var(--t-display-track); }
.t-title { font-size: var(--t-title-size); line-height: var(--t-title-lh); font-weight: var(--t-title-weight); letter-spacing: var(--t-title-track); }
.t-display-caps { font-size: var(--t-display-caps-size); line-height: var(--t-display-caps-lh); font-weight: var(--t-display-caps-weight); letter-spacing: var(--t-display-caps-track); text-transform: uppercase; }
.t-title-caps { font-size: var(--t-title-caps-size); line-height: var(--t-title-caps-lh); font-weight: var(--t-title-caps-weight); letter-spacing: var(--t-title-caps-track); text-transform: uppercase; }
.t-heading { font-size: var(--t-heading-size); line-height: var(--t-heading-lh); font-weight: var(--t-heading-weight); letter-spacing: var(--t-heading-track); }
.t-heading-caps { font-size: var(--t-heading-caps-size); line-height: var(--t-heading-caps-lh); font-weight: var(--t-heading-caps-weight); letter-spacing: var(--t-heading-caps-track); text-transform: uppercase; }
.t-lede { font-size: var(--t-lede-size); line-height: var(--t-lede-lh); font-weight: var(--t-lede-weight); letter-spacing: var(--t-lede-track); }
.t-body { font-size: var(--t-body-size); line-height: var(--t-body-lh); font-weight: var(--t-body-weight); letter-spacing: var(--t-body-track); }
.t-body-sm { font-size: var(--t-body-sm-size); line-height: var(--t-body-sm-lh); font-weight: var(--t-body-sm-weight); letter-spacing: var(--t-body-sm-track); }
.t-caption { font-size: var(--t-caption-size); line-height: var(--t-caption-lh); font-weight: var(--t-caption-weight); letter-spacing: var(--t-caption-track); }
.t-ui { font-size: var(--t-ui-size); line-height: var(--t-ui-lh); font-weight: var(--t-ui-weight); letter-spacing: var(--t-ui-track); }
.t-ui-strong { font-size: var(--t-ui-strong-size); line-height: var(--t-ui-strong-lh); font-weight: var(--t-ui-strong-weight); letter-spacing: var(--t-ui-strong-track); }
.t-nav { font-size: var(--t-nav-size); line-height: var(--t-nav-lh); font-weight: var(--t-nav-weight); letter-spacing: var(--t-nav-track); text-transform: uppercase; }
.t-stat-sm { font-size: var(--t-stat-sm-size); line-height: var(--t-stat-sm-lh); font-weight: var(--t-stat-sm-weight); letter-spacing: var(--t-stat-sm-track); font-variant-numeric: tabular-nums; }
.t-eyebrow { font-size: var(--t-eyebrow-size); line-height: var(--t-eyebrow-lh); font-weight: var(--t-eyebrow-weight); letter-spacing: var(--t-eyebrow-track); text-transform: uppercase; }
.t-label { font-size: var(--t-label-size); line-height: var(--t-label-lh); font-weight: var(--t-label-weight); letter-spacing: var(--t-label-track); text-transform: uppercase; }
.t-numeral { font-size: var(--t-numeral-size); line-height: var(--t-numeral-lh); font-weight: var(--t-numeral-weight); letter-spacing: var(--t-numeral-track); font-variant-numeric: tabular-nums; }
.t-stat { font-size: var(--t-stat-size); line-height: var(--t-stat-lh); font-weight: var(--t-stat-weight); letter-spacing: var(--t-stat-track); font-variant-numeric: tabular-nums; }
.t-data { font-size: var(--t-data-size); line-height: var(--t-data-lh); font-weight: var(--t-data-weight); letter-spacing: var(--t-data-track); font-variant-numeric: tabular-nums; }
.t-footer { font-size: var(--t-footer-size); line-height: var(--t-footer-lh); font-weight: var(--t-footer-weight); letter-spacing: var(--t-footer-track); }
.t-chart-title { font-size: var(--t-chart-title-size); line-height: var(--t-chart-title-lh); font-weight: var(--t-chart-title-weight); letter-spacing: var(--t-chart-title-track); }
.t-chart-value { font-size: var(--t-chart-value-size); line-height: var(--t-chart-value-lh); font-weight: var(--t-chart-value-weight); letter-spacing: var(--t-chart-value-track); font-variant-numeric: tabular-nums; }
.t-chart-label { font-size: var(--t-chart-label-size); line-height: var(--t-chart-label-lh); font-weight: var(--t-chart-label-weight); letter-spacing: var(--t-chart-label-track); }
.t-chart-rank { font-size: var(--t-chart-rank-size); line-height: var(--t-chart-rank-lh); font-weight: var(--t-chart-rank-weight); letter-spacing: var(--t-chart-rank-track); }
.t-chart-chip { font-size: var(--t-chart-chip-size); line-height: var(--t-chart-chip-lh); font-weight: var(--t-chart-chip-weight); letter-spacing: var(--t-chart-chip-track); }
.t-chart-header { font-size: var(--t-chart-header-size); line-height: var(--t-chart-header-lh); font-weight: var(--t-chart-header-weight); letter-spacing: var(--t-chart-header-track); }
.t-chart-axis { font-size: var(--t-chart-axis-size); line-height: var(--t-chart-axis-lh); font-weight: var(--t-chart-axis-weight); letter-spacing: var(--t-chart-axis-track); }
.t-chart-kpi-label { font-size: var(--t-chart-kpi-label-size); line-height: var(--t-chart-kpi-label-lh); font-weight: var(--t-chart-kpi-label-weight); letter-spacing: var(--t-chart-kpi-label-track); }
.t-chart-kpi-value { font-size: var(--t-chart-kpi-value-size); line-height: var(--t-chart-kpi-value-lh); font-weight: var(--t-chart-kpi-value-weight); letter-spacing: var(--t-chart-kpi-value-track); font-variant-numeric: tabular-nums; }

/* Lola Brand 1.2.0 - base layer. Load after lola-tokens.css.
   White ground, Midnight ink, Helvetica stack, tonal surfaces, no shadows.
   Density: comfortable by default; set data-density="compact" on <html> (or any
   wrapper) for boards and dense tools. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern";
  accent-color: var(--midnight);
}
:root[data-theme="dark"] body { accent-color: var(--cloud); }

[data-density="compact"] { --row: var(--row-compact); --ctl: var(--control-compact); --pad: var(--space-4); font-size: var(--t-ui-size); line-height: var(--t-ui-lh); }
:root, [data-density="comfortable"] { --row: var(--row-comfortable); --ctl: var(--control); --pad: var(--space-5); }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1 { font-size: var(--t-title-size); line-height: var(--t-title-lh); font-weight: 400; letter-spacing: var(--t-title-track); }
h2 { font-size: var(--t-heading-size); line-height: var(--t-heading-lh); font-weight: 500; }
h3 { font-size: var(--t-heading-caps-size); line-height: var(--t-heading-caps-lh); font-weight: 700; letter-spacing: var(--t-heading-caps-track); text-transform: uppercase; }
[data-density="compact"] h1 { font-size: 24px; line-height: 28px; }
[data-density="compact"] h2 { font-size: 16px; line-height: 22px; }
[data-density="compact"] h3 { font-size: var(--t-nav-size); line-height: var(--t-nav-lh); font-weight: 600; letter-spacing: var(--t-nav-track); color: var(--ink-muted); }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--ink); }
img, svg, video, canvas { display: block; max-width: 100%; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:disabled { cursor: not-allowed; }
hr { border: 0; height: 1px; background: var(--line-hairline); margin: var(--space-5) 0; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }
::selection { background: var(--surface-selected); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Page frame */
.lola-wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-6); }
.lola-wrap--read { max-width: var(--page-max-read); }
@media (max-width: 640px) { .lola-wrap { padding: 0 var(--space-4); } }
.stack > * + * { margin-top: var(--stack, var(--space-5)); }
.row { display: flex; align-items: center; gap: var(--space-3); }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* Icons: <svg class="ri"><use href="lola-icons.svg#ri-search-line"/></svg> */
.ri { width: var(--icon); height: var(--icon); fill: currentColor; display: inline-block; vertical-align: -0.2em; }
.ri--sm { width: var(--icon-sm); height: var(--icon-sm); }
.ri--lg { width: var(--icon-lg); height: var(--icon-lg); }

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

/* Lola Brand 1.2.0 - components. Load after lola-base.css.
   Rules: tonal surfaces (tint or hairline, never a shadow on content), square
   buttons and tabs, 6px inputs and chips, 12px cards, uppercase 11px labels,
   bold figures, Midnight for the one active/primary thing. */

/* ── Top bar ───────────────────────────────────────────────────────────── */
.lola-topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--surface); border-bottom: 1px solid var(--line-hairline); }
.lola-topbar__inner { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-6); height: 56px; display: flex; align-items: center; gap: var(--space-5); }
.lola-logo { display: block; width: 58px; height: 32px; flex: none; background: var(--ink); -webkit-mask: var(--lola-logo-url, url("lola-logo.svg")) center / contain no-repeat; mask: var(--lola-logo-url, url("lola-logo.svg")) center / contain no-repeat; }
.lola-topbar__app { font-size: var(--t-nav-size); line-height: var(--t-nav-lh); font-weight: 600; letter-spacing: var(--t-nav-track); text-transform: uppercase; color: var(--ink-muted); padding-left: var(--space-4); border-left: 1px solid var(--line-hairline); white-space: nowrap; }
.lola-topbar__spacer { flex: 1 1 auto; }
@media (max-width: 640px) { .lola-topbar__inner { padding: 0 var(--space-4); gap: var(--space-3); } .lola-topbar__app { display: none; } }

/* Top bar actions: the one standard right side of every Lola tool's top bar.
   Order: freshness, then scope pickers (warehouse, range), then the theme toggle, then account.
   <div class="lola-topbar__actions">
     <span class="lola-fresh"><span class="lola-dot lola-dot--live"></span>Landis · data as of 6:44 AM</span>
     <select class="lola-select lola-select--bar">…</select>
     <button class="lola-btn lola-btn--ghost lola-theme-toggle" data-lola-theme-toggle>
       <svg class="ri ri-when-light"><use href="…#ri-moon-line"/></svg><svg class="ri ri-when-dark"><use href="…#ri-sun-line"/></svg>
       <span data-theme-label>Dark mode</span></button>
     <button class="lola-btn lola-btn--ghost">…Log out</button>
   </div>
   Phones: labels hide, buttons become 44px icon buttons, freshness drops to a second row (see lola-topbar__meta). */
.lola-topbar__actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; min-width: 0; }
.lola-topbar__actions .lola-btn { height: 32px; padding: 0 var(--space-2); }
.lola-topbar__actions .lola-select--bar, .lola-select.lola-select--bar { width: auto; height: 32px; padding-left: var(--space-3); font-size: 13px; }
.lola-theme-toggle .ri-when-dark { display: none; }
:root[data-theme="dark"] .lola-theme-toggle .ri-when-light { display: none; }
:root[data-theme="dark"] .lola-theme-toggle .ri-when-dark { display: inline-block; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .lola-theme-toggle .ri-when-light { display: none; } :root[data-theme="auto"] .lola-theme-toggle .ri-when-dark { display: inline-block; } }
.lola-topbar__meta { display: none; }
@media (max-width: 760px) {
  .lola-topbar__actions { gap: var(--space-1); }
  .lola-topbar__actions .lola-btn { width: 44px; height: 44px; padding: 0; }
  .lola-topbar__actions .lola-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lola-topbar__actions .lola-btn .ri { width: 20px; height: 20px; }
  .lola-topbar__actions .lola-select--bar, .lola-select.lola-select--bar { height: 44px; font-size: 16px; }
  .lola-topbar__actions > .lola-fresh { display: none; }
  .lola-topbar__meta { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-4) var(--space-2); }
}

/* Nav tabs: storefront collection tabs. Text, uppercase, an underline that slides in. */
.lola-nav { display: flex; gap: var(--space-5); overflow-x: auto; scrollbar-width: none; }
.lola-nav a, .lola-nav button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 18px 0 17px; border: 0; background: none; color: var(--ink-muted); text-decoration: none; white-space: nowrap; font-size: var(--t-nav-size); line-height: var(--t-nav-lh); font-weight: 600; letter-spacing: var(--t-nav-track); text-transform: uppercase; transition: color var(--dur-fast) var(--ease-out); }
.lola-nav a::after, .lola-nav button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.lola-nav a:hover, .lola-nav button:hover { color: var(--ink); }
.lola-nav [aria-current="page"], .lola-nav [aria-selected="true"] { color: var(--ink); }
.lola-nav [aria-current="page"]::after, .lola-nav [aria-selected="true"]::after { transform: scaleX(1); }

/* Page header (org PageHeader, tool sizing) */
.lola-pagehead { padding: var(--space-6) 0 var(--space-5); display: flex; align-items: flex-end; gap: var(--space-5); flex-wrap: wrap; }
.lola-pagehead__text { flex: 1 1 320px; min-width: 0; }
.lola-eyebrow { font-size: var(--t-eyebrow-size); line-height: var(--t-eyebrow-lh); font-weight: 600; letter-spacing: var(--t-eyebrow-track); text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-2); }
.lola-lede { color: var(--ink-muted); margin-top: var(--space-2); max-width: 64ch; }

/* ── Buttons: square, uppercase, Midnight primary ──────────────────────── */
.lola-btn { --b-bg: var(--surface-invert); --b-fg: var(--ink-invert); --b-bd: var(--surface-invert);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--ctl); padding: 0 var(--space-4);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd); border-radius: var(--radius-none);
  font-size: var(--t-nav-size); line-height: 1; font-weight: 600; letter-spacing: var(--t-nav-track); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-out); }
.lola-btn:hover { --b-bg: var(--charcoal); --b-bd: var(--charcoal); color: var(--b-fg); }
.lola-btn:active { transform: scale(0.97); }
.lola-btn--secondary { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.lola-btn--secondary:hover { --b-bg: var(--surface-hover); --b-bd: var(--ink); }
.lola-btn--ghost { --b-bg: transparent; --b-fg: var(--ink-muted); --b-bd: transparent; padding: 0 var(--space-2); }
.lola-btn--ghost:hover { --b-bg: var(--surface-hover); --b-fg: var(--ink); --b-bd: transparent; }
.lola-btn--icon { width: var(--ctl); padding: 0; }
.lola-btn--danger { --b-bg: var(--status-critical); --b-bd: var(--status-critical); --b-fg: #fff; }
.lola-btn--danger:hover { --b-bg: var(--status-critical-text); --b-bd: var(--status-critical-text); }
.lola-btn[disabled], .lola-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.lola-btn .ri { width: var(--icon-sm); height: var(--icon-sm); }
:root[data-theme="dark"] .lola-btn:hover { --b-bg: var(--dust); --b-bd: var(--dust); }

/* ── Inputs ────────────────────────────────────────────────────────────── */
.lola-field { display: grid; gap: 6px; }
.lola-field__label { font-size: var(--t-label-size); line-height: var(--t-label-lh); font-weight: 600; letter-spacing: var(--t-label-track); text-transform: uppercase; color: var(--ink-muted); }
.lola-field__hint { font-size: var(--t-caption-size); line-height: var(--t-caption-lh); color: var(--ink-subtle); }
.lola-input, .lola-select, .lola-textarea { width: 100%; height: var(--ctl); padding: 0 var(--space-3); background: var(--surface); color: var(--ink); border: 1px solid var(--dust); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.lola-textarea { height: auto; min-height: 96px; padding: var(--space-2) var(--space-3); resize: vertical; field-sizing: content; }
.lola-input::placeholder, .lola-textarea::placeholder { color: var(--ink-subtle); }
.lola-input:hover, .lola-select:hover, .lola-textarea:hover { border-color: var(--line-strong); }
.lola-input:focus, .lola-select:focus, .lola-textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lola-input[aria-invalid="true"] { border-color: var(--status-critical); box-shadow: 0 0 0 1px var(--status-critical); }
.lola-select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.lola-search { position: relative; }
.lola-search .ri { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-subtle); pointer-events: none; transition: color var(--dur-fast) var(--ease-out); }
.lola-search .lola-input { padding-left: 32px; }
.lola-search:focus-within .ri { color: var(--ink); }
.lola-kbd { font-family: var(--font-sans); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-hairline); border-radius: 4px; color: var(--ink-subtle); background: var(--surface-raised); }

/* Toggle switch: <label class="lola-switch"><input type="checkbox"><span></span> Label</label> */
.lola-switch { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; user-select: none; }
.lola-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lola-switch span { position: relative; width: 30px; height: 18px; border-radius: var(--radius-pill); background: var(--dust); transition: background-color var(--dur-base) var(--ease-standard); flex: none; }
.lola-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform var(--dur-base) var(--ease-spring); }
.lola-switch input:checked + span { background: var(--ink); }
.lola-switch input:checked + span::after { transform: translateX(12px); }
.lola-switch input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.lola-switch:active span::after { width: 17px; }
.lola-switch input:checked:active + span::after { transform: translateX(9px); }

/* Segmented control: square, Midnight on the selected segment */
.lola-seg { display: inline-flex; border: 1px solid var(--dust); background: var(--surface); }
.lola-seg button { height: calc(var(--ctl) - 2px); padding: 0 var(--space-3); border: 0; border-right: 1px solid var(--dust); background: transparent; color: var(--ink); font-size: var(--t-nav-size); font-weight: 600; letter-spacing: var(--t-nav-track); text-transform: uppercase; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.lola-seg button:last-child { border-right: 0; }
.lola-seg button:hover { background: var(--surface-hover); }
.lola-seg button[aria-pressed="true"] { background: var(--surface-invert); color: var(--ink-invert); }

/* ── Chips, badges, status ─────────────────────────────────────────────── */
.lola-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); border: 1px solid var(--line-hairline); background: var(--surface); color: var(--ink); font-size: 12px; line-height: 1; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
button.lola-chip:hover { background: var(--surface-hover); border-color: var(--dust); }
.lola-chip[aria-pressed="true"] { background: var(--surface-invert); border-color: var(--surface-invert); color: var(--ink-invert); }
.lola-chip .ri { width: 12px; height: 12px; }
.lola-chip--pop { animation: lola-pop var(--dur-base) var(--ease-spring); }

.lola-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; line-height: 1; font-weight: 500; white-space: nowrap; background: var(--surface-tint); color: var(--ink); }
.lola-badge--good { background: var(--status-good-tint); color: var(--status-good-text); }
.lola-badge--warn { background: var(--status-warning-tint); color: var(--status-warning-text); }
.lola-badge--error { background: var(--status-error-tint); color: var(--status-error-text); }
.lola-badge--critical { background: var(--status-critical-tint); color: var(--status-critical-text); }
.lola-badge--info { background: var(--status-info-tint); color: var(--status-info); }

.lola-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--status-neutral); }
.lola-dot--good { background: var(--status-good); }
.lola-dot--warn { background: var(--status-warning); }
.lola-dot--error { background: var(--status-error); }
.lola-dot--critical { background: var(--status-critical); }
.lola-dot--live { background: var(--status-good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-good) 60%, transparent); animation: lola-ping 2.4s var(--ease-out) infinite; }

/* Freshness: "Updated 2 min ago" with a live dot; stale turns ochre, dead turns brick */
.lola-fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.lola-fresh[data-state="stale"] { color: var(--status-warning-text); }
.lola-fresh[data-state="stale"] .lola-dot { background: var(--status-warning); animation: none; }
.lola-fresh[data-state="dead"] { color: var(--status-critical-text); }
.lola-fresh[data-state="dead"] .lola-dot { background: var(--status-critical); animation: none; }

/* ── Cards and KPI tiles ───────────────────────────────────────────────── */
.lola-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
@media (max-width: 960px) { .lola-grid { --cols: 2 !important; } }
@media (max-width: 560px) { .lola-grid { --cols: 1 !important; } }
.lola-card { background: var(--surface-raised); border-radius: var(--radius-md); padding: var(--pad); min-width: 0; }
.lola-card--outline { background: var(--surface); border: 1px solid var(--line-hairline); }
.lola-card--tint { background: var(--surface-tint); }
.lola-card--invert { background: var(--surface-invert); color: var(--ink-invert); }
a.lola-card, .lola-card--interactive { display: block; color: inherit; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out); }
a.lola-card:hover, .lola-card--interactive:hover { background: var(--surface-hover); }
.lola-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.lola-card__title { font-size: var(--t-nav-size); line-height: var(--t-nav-lh); font-weight: 600; letter-spacing: var(--t-nav-track); text-transform: uppercase; color: var(--ink-muted); }

.lola-kpi { display: flex; flex-direction: column; gap: 6px; }
.lola-kpi__label { font-size: var(--t-label-size); line-height: var(--t-label-lh); font-weight: 600; letter-spacing: var(--t-label-track); text-transform: uppercase; color: var(--ink-subtle); }
.lola-kpi__value { font-size: var(--t-stat-size); line-height: var(--t-stat-lh); font-weight: 700; letter-spacing: var(--t-stat-track); font-variant-numeric: tabular-nums; color: var(--ink); }
[data-density="compact"] .lola-kpi__value { font-size: var(--t-stat-sm-size); line-height: var(--t-stat-sm-lh); }
.lola-kpi__note { font-size: var(--t-body-sm-size); line-height: var(--t-body-sm-lh); color: var(--ink-muted); }
.lola-kpi__delta { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.lola-kpi__spark { height: 28px; margin-top: var(--space-2); }

/* Meter: capacity or progress against a cap */
.lola-meter { position: relative; height: 6px; background: var(--surface-tint); overflow: hidden; }
.lola-meter > i { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); background: var(--ink); transition: width var(--dur-data) var(--ease-out); }
.lola-meter[data-state="warn"] > i { background: var(--status-warning); }
.lola-meter[data-state="over"] > i { background: var(--status-critical); }
.lola-meter > b { position: absolute; top: -3px; bottom: -3px; left: var(--mark, 100%); width: 1px; background: var(--charcoal); }

/* ── Tables: hairlines, no zebra, sticky uppercase header, tone hover ──── */
.lola-table-wrap { overflow: auto; border: 1px solid var(--line-hairline); border-radius: var(--radius-md); background: var(--surface); }
.lola-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.lola-table th, .lola-table td { height: var(--row); padding: 0 var(--space-3); text-align: left; border-bottom: 1px solid var(--line-hairline); white-space: nowrap; }
.lola-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-size: var(--t-nav-size); line-height: var(--t-nav-lh); font-weight: 600; letter-spacing: var(--t-nav-track); text-transform: uppercase; color: var(--ink-muted); }
.lola-table tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
.lola-table tbody tr:hover { background: var(--surface-hover); }
.lola-table tbody tr[aria-selected="true"] { background: var(--surface-selected); }
.lola-table tbody tr:last-child td { border-bottom: 0; }
.lola-table .num { text-align: right; }
.lola-table .wrap { white-space: normal; }
.lola-table th[aria-sort] { cursor: pointer; user-select: none; }
.lola-table th[aria-sort] .ri { width: 12px; height: 12px; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.lola-table th[aria-sort]:hover .ri { opacity: .5; }
.lola-table th[aria-sort="ascending"] .ri, .lola-table th[aria-sort="descending"] .ri { opacity: 1; }
.lola-table th[aria-sort="ascending"] .ri { transform: rotate(180deg); }

/* Spec table (org SpecTable) */
.lola-spec { width: 100%; border-collapse: collapse; }
.lola-spec th, .lola-spec td { padding: var(--space-3) 0; text-align: left; vertical-align: top; }
.lola-spec tr + tr > * { border-top: 1px solid var(--line-hairline); }
.lola-spec th { width: 34%; padding-right: var(--space-4); color: var(--ink-subtle); font-weight: 400; }

/* ── Filter bar ────────────────────────────────────────────────────────── */
.lola-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-3) 0; }
.lola-filters .lola-search { width: 240px; }
@media (max-width: 560px) { .lola-filters .lola-search { width: 100%; } }

/* ── Banners, toasts, tooltips ─────────────────────────────────────────── */
.lola-banner { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface-tint); color: var(--ink); }
.lola-banner .ri { margin-top: 2px; }
.lola-banner--info { background: var(--status-info-tint); }
.lola-banner--warn { background: var(--status-warning-tint); }
.lola-banner--warn .ri { color: var(--status-warning-text); }
.lola-banner--critical { background: var(--status-critical-tint); }
.lola-banner--critical .ri { color: var(--status-critical-text); }

.lola-toasts { position: fixed; z-index: var(--z-toast); right: var(--space-5); bottom: var(--space-5); display: grid; gap: var(--space-2); width: min(360px, calc(100vw - 32px)); }
.lola-toast { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface-invert); color: var(--ink-invert); box-shadow: var(--shadow-raised); animation: lola-rise var(--dur-slow) var(--ease-spring); font-size: var(--t-body-sm-size); }
.lola-toast[data-leaving] { animation: lola-sink var(--dur-base) var(--ease-out) forwards; }
.lola-toast__action { margin-left: auto; background: none; border: 0; color: inherit; font-size: var(--t-nav-size); font-weight: 600; letter-spacing: var(--t-nav-track); text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.lola-toast__timer { height: 2px; background: currentColor; opacity: .35; transform-origin: left; animation: lola-drain var(--toast-ms, 5000ms) linear forwards; }

[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; z-index: var(--z-tooltip); left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); padding: 5px 8px; background: var(--surface-invert); color: var(--ink-invert); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); transition-delay: 0ms; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 350ms; }

/* ── Drawer (dialog) ───────────────────────────────────────────────────── */
dialog.lola-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: none; width: min(480px, 100vw); padding: 0; border: 0; border-left: 1px solid var(--line-hairline); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-raised); }
dialog.lola-drawer[open] { animation: lola-slide-in var(--dur-slow) var(--ease-out); }
dialog.lola-drawer::backdrop { background: rgb(45 47 47 / .18); animation: lola-fade var(--dur-slow) var(--ease-out); }
.lola-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line-hairline); }
.lola-drawer__body { padding: var(--space-5); overflow: auto; }

/* Accordion: <details class="lola-acc"><summary>…</summary>…</details> */
.lola-acc { border-bottom: 1px solid var(--line-hairline); }
.lola-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; cursor: pointer; font-weight: 500; }
.lola-acc > summary::-webkit-details-marker { display: none; }
.lola-acc > summary .ri { transition: transform var(--dur-base) var(--ease-out); color: var(--ink-subtle); }
.lola-acc[open] > summary .ri { transform: rotate(180deg); }
.lola-acc > :not(summary) { padding-bottom: var(--space-4); animation: lola-fade var(--dur-base) var(--ease-out); }

/* ── Empty, loading, error states ──────────────────────────────────────── */
.lola-state { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-7) var(--space-5); text-align: center; color: var(--ink-muted); }
.lola-state .ri { width: 24px; height: 24px; color: var(--ink-subtle); }
.lola-state__title { color: var(--ink); font-weight: 500; }
.lola-skel { display: block; height: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--surface-tint) 0%, var(--surface-raised) 50%, var(--surface-tint) 100%); background-size: 200% 100%; animation: lola-shimmer 1.4s linear infinite; }
.lola-spin { animation: lola-spin .9s linear infinite; }

/* Legend */
.lola-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 12px; color: var(--ink-muted); }
.lola-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lola-legend i { width: 10px; height: 10px; display: inline-block; background: var(--c, var(--chart-series)); }
.lola-legend i.line { height: 2px; }

/* Footnotes (org rule: caveats go here, never on the chart) */
.lola-footnotes { margin-top: var(--space-4); font-size: var(--t-caption-size); line-height: var(--t-caption-lh); color: var(--ink-subtle); max-width: 80ch; }
.lola-footer { margin-top: var(--space-8); padding: var(--space-5) 0; border-top: 1px solid var(--line-hairline); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: var(--t-caption-size); color: var(--ink-subtle); }
.lola-footer .lola-logo { width: 44px; height: 24px; background: var(--ink-subtle); }

/* Lola Brand 1.2.0 - micro-interactions. Load after lola-components.css.
   Vocabulary adapted from typeui.sh/micro-interactions within the brand's tonal
   rule: tone shifts, opacity and small transforms on small elements. Content
   blocks never lift, scale or cast shadows. Everything respects
   prefers-reduced-motion (see lola-base.css). */

@keyframes lola-pop     { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes lola-rise    { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lola-sink    { to { transform: translateY(6px); opacity: 0; } }
@keyframes lola-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes lola-slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lola-drain   { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes lola-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes lola-spin    { to { transform: rotate(360deg); } }
@keyframes lola-shake   { 0%, 100% { transform: none; } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes lola-ping    { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-good) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes lola-flash   { from { background-color: var(--status-warning-tint); } to { background-color: transparent; } }
@keyframes lola-tick-up { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lola-draw    { from { stroke-dashoffset: var(--len, 1000); } to { stroke-dashoffset: 0; } }

/* Press: buttons and chips compress slightly (lola-btn already has it) */
.mi-press { transition: transform var(--dur-instant) var(--ease-out); }
.mi-press:active { transform: scale(.97); }

/* Denied action: a short shake on an invalid submit or blocked action */
.mi-shake { animation: lola-shake 320ms var(--ease-standard); }

/* Copy feedback / swap state icon: two icons stacked, swap on [data-done] */
.mi-swap { position: relative; display: inline-grid; }
.mi-swap > * { grid-area: 1 / 1; transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring); }
.mi-swap > :last-child { opacity: 0; transform: scale(.5); }
.mi-swap[data-done] > :first-child { opacity: 0; transform: scale(.5); }
.mi-swap[data-done] > :last-child { opacity: 1; transform: none; }

/* Refresh spin: rotate the icon once per click; loops while [aria-busy] */
.mi-refresh .ri { transition: transform 500ms var(--ease-out); }
.mi-refresh:active .ri { transform: rotate(-90deg); }
.mi-refresh[aria-busy="true"] .ri { animation: lola-spin .9s linear infinite; }

/* Hold to confirm: a fill sweeps under the label while pressed */
.mi-hold { position: relative; overflow: hidden; isolation: isolate; }
.mi-hold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--status-critical); transform: scaleX(0); transform-origin: left; transition: transform 160ms var(--ease-out); }
.mi-hold:active::before { transform: scaleX(1); transition: transform var(--hold-ms, 900ms) linear; }

/* Value changed: a live number flashes ochre-tint once (wire with lolaFlash()) */
.mi-flash { animation: lola-flash 1200ms var(--ease-out); }

/* Counter tick: new digits slide up (wire with lolaTick()) */
.mi-tick { display: inline-block; overflow: hidden; vertical-align: bottom; }
.mi-tick > span { display: inline-block; animation: lola-tick-up var(--dur-base) var(--ease-spring); }

/* Reveal secondary actions on row hover / focus */
.mi-reveal { opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
:hover > .mi-reveal, :focus-within > .mi-reveal, tr:hover .mi-reveal, tr:focus-within .mi-reveal { opacity: 1; transform: none; }

/* Arrive: list items, chips and toasts entering */
.mi-arrive { animation: lola-rise var(--dur-slow) var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 30ms); }
.mi-fade { animation: lola-fade var(--dur-base) var(--ease-out) both; }

/* Chart draw-in: path strokes draw once on first render */
.mi-draw { stroke-dasharray: var(--len, 1000); animation: lola-draw var(--dur-data) var(--ease-out) both; }

/* Chevron nudge on links that go somewhere */
.mi-nudge .ri { transition: transform var(--dur-fast) var(--ease-out); }
.mi-nudge:hover .ri { transform: translateX(2px); }

/* Lola Brand 1.2.0 - chart styles for inline SVG charts (lola-charts.js or hand-written).
   Org rules kept: chart-series for the primary measure, chart-compare for the second,
   chart-accent for the one mark that carries the claim. Multi-series tool charts use
   --series-1..8 in order. No subtitles or footnotes on the chart; caveats go in
   .lola-footnotes. Bars and plots are square (radius 0). */

.lola-chart { position: relative; width: 100%; }
.lola-chart svg { overflow: visible; width: 100%; height: auto; font-family: var(--font-sans); }
.lola-chart__title { font-size: var(--t-nav-size); line-height: var(--t-nav-lh); font-weight: 600; letter-spacing: var(--t-nav-track); text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3); }

.lc-grid line { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.lc-axis line, .lc-axis path { stroke: var(--chart-axis); stroke-width: 1; shape-rendering: crispEdges; }
.lc-tick { fill: var(--ink-subtle); font-size: 11px; font-variant-numeric: tabular-nums; }
.lc-label { fill: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.lc-label--muted { fill: var(--ink-subtle); }
.lc-value { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.lc-bar { fill: var(--chart-series); transition: fill var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.lc-bar--compare { fill: var(--chart-compare); }
.lc-bar--accent { fill: var(--chart-accent); }
.lc-line { fill: none; stroke: var(--c, var(--chart-line)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-line--compare { stroke: var(--chart-compare); stroke-dasharray: 4 3; }
.lc-line--thin { stroke-width: 1.5; }
.lc-area { fill: var(--c, var(--chart-series)); opacity: .14; }
.lc-dot { fill: var(--surface); stroke: var(--c, var(--chart-line)); stroke-width: 2; }
.lc-ref { stroke: var(--charcoal); stroke-width: 1; stroke-dasharray: 3 3; }
.lc-ref--cap { stroke: var(--status-critical); stroke-dasharray: none; }
.lc-ref-label { fill: var(--charcoal); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lc-now { stroke: var(--series-now); stroke-width: 1; }
.lc-band { fill: var(--surface-tint); opacity: .6; }

/* Hover: dim the rest, keep the hovered mark full strength */
.lc-hoverable:hover .lc-bar { opacity: .45; }
.lc-hoverable .lc-bar:hover { opacity: 1; }
.lc-crosshair { stroke: var(--ink); stroke-width: 1; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); pointer-events: none; }
.lola-chart:hover .lc-crosshair { opacity: .35; }

/* Tooltip (positioned by lola-charts.js) */
.lc-tip { position: absolute; z-index: var(--z-tooltip); pointer-events: none; min-width: 120px; padding: 8px 10px; background: var(--surface-invert); color: var(--ink-invert); font-size: 12px; line-height: 17px; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(4px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.lc-tip[data-show] { opacity: 1; transform: none; }
.lc-tip b { font-weight: 600; }
.lc-tip .k { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.lc-tip .k i { width: 8px; height: 8px; display: inline-block; background: var(--c); }

/* Heat grid */
.lc-heat rect { shape-rendering: crispEdges; stroke: var(--surface); stroke-width: 1; }

/* Sparkline */
.lola-spark { display: block; width: 100%; height: 28px; overflow: visible; }
.lola-spark path { fill: none; stroke: var(--chart-line); stroke-width: 1.5; }
.lola-spark circle { fill: var(--series-now); }

/* Maps (SVG/topojson): quiet land, hairline borders, data marks carry the color */
.lc-map .land { fill: var(--map-land); stroke: var(--map-border); stroke-width: .6; }
.lc-map .mark { fill: var(--c, var(--series-1)); fill-opacity: .7; stroke: var(--surface); stroke-width: .5; }
.lc-map .route { fill: none; stroke: var(--c, var(--series-1)); stroke-opacity: .35; stroke-width: 1; }
.lc-map .site { fill: var(--midnight); stroke: var(--surface); stroke-width: 1.5; }
