/* ============================================================
   myfirstmate management plane - Firstmate Design System
   "Talk to one agent. Ship with a crew."
   ------------------------------------------------------------
   This file is the app's single stylesheet entry (no Tailwind/
   build step, so dev and CI stay free of a JS toolchain). It is
   the production adoption of `.agents/skills/firstmate-design`:
   the design TOKENS are reproduced verbatim as CSS custom
   properties, then the component contracts (Button, Badge,
   Card, Logomark, Avatar, Input, …) and the two product
   surfaces (marketing landing `lp-*`, management console
   `cn-*`) are built on them. A 70s-nautical-TV-ad register on
   marketing; a calm, dense, usable console underneath.

   Token source of truth lives in the skill's tokens/*.css; keep
   the values below in sync if the skill is updated.
   ============================================================ */

/* Webfonts - Chango (Cooper-Black display substitute), Jost (Avant-Garde
   geometric sans, the whole UI/body), JetBrains Mono (code/tokens/terminal).
   The @import must lead the file. */
@import url("https://fonts.googleapis.com/css2?family=Chango&family=Jost:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* ---- Core brand hues ---- */
  --rust-700: #8f2f17;
  --rust-600: #a93a1f;
  --rust-500: #c0452a; /* PRIMARY - the FIRSTMATE title red-orange */
  --rust-400: #d35f3f;
  --rust-300: #e08365;
  --rust-100: #f4d8c9;
  --rust-050: #fbece3;

  --navy-700: #1a2238;
  --navy-600: #222c49;
  --navy-500: #2a3656; /* deep navy - captain's jacket, ink-on-light */
  --navy-300: #6c7796;
  --navy-200: #9aa6c0;
  --navy-100: #d9deea;

  --gold-600: #b5791c;
  --gold-500: #e0a52e; /* mustard signal-banner */
  --gold-300: #f0d38c;
  --gold-100: #f8ecc9;

  --ocean-600: #2f6688;
  --ocean-500: #3c7ea6;
  --ocean-200: #b6d4e2;
  --ocean-050: #e8f1f5;

  --sea-700: #234e3a;
  --sea-500: #2f6b4f; /* deep sea-green - success / "online" */
  --sea-200: #b9d4c5;
  --sea-050: #e9f2ec;

  --wood-600: #5e3a20;
  --wood-500: #7a4b2b;

  /* ---- Warm neutrals (paper & ink) ---- */
  --paper-000: #fbf4e2;
  --paper-100: #f6ecd3;
  --paper-200: #f0e3c4;
  --paper-300: #e7d6ae;
  --cream-line: #ddc89c;

  --ink-900: #241c14; /* near-black warm brown - primary text */
  --ink-700: #3f3224;
  --ink-500: #6f5e46;
  --ink-300: #9c8a6c;

  --white: #fffdf7;

  /* ---- Semantic aliases ---- */
  --color-primary: var(--rust-500);
  --color-primary-hover: var(--rust-600);
  --color-primary-press: var(--rust-700);
  --color-primary-ink: #fffdf7;
  --color-primary-soft: var(--rust-050);

  --color-accent: var(--navy-500);
  --color-accent-gold: var(--gold-500);

  --bg-page: var(--paper-100);
  --bg-sunk: var(--paper-200);
  --surface-card: var(--white);
  --surface-card-warm: var(--paper-000);
  --surface-raised: #ffffff;

  --text-strong: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-500);
  --text-faint: var(--ink-300);
  --text-on-dark: #f4ecd6;
  --text-on-dark-muted: #c4b89c;

  --border-default: var(--cream-line);
  --border-strong: var(--ink-900);
  --border-soft: var(--paper-300);

  /* status - warm, never clinical */
  --status-online: var(--sea-500);
  --status-online-soft: var(--sea-050);
  --status-warn: var(--gold-600);
  --status-warn-soft: var(--gold-100);
  --status-danger: var(--rust-600);
  --status-danger-soft: var(--rust-050);
  --status-info: var(--ocean-500);
  --status-info-soft: var(--ocean-050);

  /* dark "ocean depth" surfaces (terminal, code, CTA bands) */
  --depth-900: #161d2e;
  --depth-800: #1d2740;
  --depth-ink: #e7ddc6;

  /* ---- Type families ---- */
  --font-display: "Chango", "Cooper Black", Rockwell, Georgia, serif;
  --font-sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    monospace;
  --font-heading: var(--font-display);
  --font-body: var(--font-sans);
  --font-code: var(--font-mono);

  /* ---- Weights ---- */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
  --fw-black: 900;

  /* ---- Type scale ---- */
  --fs-display: 4.25rem;
  --fs-h1: 2.75rem;
  --fs-h2: 2rem;
  --fs-h3: 1.4rem;
  --fs-h4: 1.15rem;
  --fs-lg: 1.0625rem;
  --fs-base: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-2xs: 0.6875rem;

  /* ---- Line-heights ---- */
  --lh-tight: 1.04;
  --lh-snug: 1.18;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* ---- Tracking ---- */
  --ls-display: 0.005em;
  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.04em;
  --ls-caps: 0.16em;

  /* ---- Spacing (4px rhythm) ---- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 112px;

  /* layout */
  --container-max: 1040px;
  --container-app: 1180px;
  --container-prose: 680px;

  /* component insets */
  --pad-card: 24px;
  --pad-card-lg: 32px;
  --gutter: 24px;

  /* ---- Radii ---- */
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-banner: 7px; /* the 70s rounded-RECTANGLE sign - thick border does the work */
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px; /* tiny status dots / discs only */

  /* ---- Border widths ---- */
  --border-hair: 1px;
  --border-thick: 2px;
  --border-poster: 3px;

  /* ---- Soft warm shadows (console) ---- */
  --shadow-xs: 0 1px 2px rgba(36, 28, 20, 0.08);
  --shadow-sm: 0 1px 2px rgba(36, 28, 20, 0.06), 0 4px 10px rgba(36, 28, 20, 0.06);
  --shadow-md: 0 2px 4px rgba(36, 28, 20, 0.06), 0 12px 28px rgba(36, 28, 20, 0.1);
  --shadow-lg: 0 8px 20px rgba(36, 28, 20, 0.1), 0 24px 60px rgba(36, 28, 20, 0.14);

  /* ---- Hard offset "printed ink" shadows (poster) ---- */
  --shadow-hard: 4px 4px 0 var(--ink-900);
  --shadow-hard-sm: 3px 3px 0 var(--ink-900);
  --shadow-hard-rust: 5px 5px 0 var(--rust-500);
  --shadow-hard-navy: 5px 5px 0 var(--navy-500);

  --text-relief: 3px 3px 0 var(--paper-000), 4px 4px 0 var(--ink-900);
  --keyline-ink: inset 0 0 0 3px var(--paper-000),
    inset 0 0 0 4.2px rgba(36, 28, 20, 0.55);

  /* ---- Paper grain ---- */
  --texture-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.25, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;

  --focus-ring: 0 0 0 3px var(--gold-300);
}

/* ============================================================
   BASE
   ============================================================ */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--paper-200);
  border: 1px solid var(--border-default);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ink-900);
}

/* Inline icon - renders as <svg class="fm-ico">; component contexts size it. */
.fm-ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.18em;
}

/* ============================================================
   COMPONENT - Button
   ============================================================ */
.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius-banner);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  -webkit-font-smoothing: antialiased;
}
.fm-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.fm-btn:active {
  transform: translateY(1px);
}
.fm-btn[disabled],
.fm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.fm-btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.fm-btn--sm {
  font-size: var(--fs-xs);
  padding: 8px 16px;
}
.fm-btn--md {
  font-size: var(--fs-sm);
  padding: 11px 22px;
}
.fm-btn--lg {
  font-size: var(--fs-base);
  padding: 14px 28px;
}
.fm-btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-hard-sm);
}
.fm-btn--primary:hover {
  background: var(--color-primary-hover);
}
.fm-btn--primary:active {
  background: var(--color-primary-press);
  box-shadow: 1px 1px 0 var(--ink-900);
}
.fm-btn--secondary {
  background: var(--navy-500);
  color: var(--text-on-dark);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-hard-sm);
}
.fm-btn--secondary:hover {
  background: var(--navy-600);
}
.fm-btn--secondary:active {
  background: var(--navy-700);
  box-shadow: 1px 1px 0 var(--ink-900);
}
.fm-btn--ghost {
  background: var(--surface-card);
  color: var(--text-strong);
  border-color: var(--border-default);
}
.fm-btn--ghost:hover {
  background: var(--paper-100);
  border-color: var(--ink-500);
}
.fm-btn--gold {
  background: var(--gold-500);
  color: var(--navy-700);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-hard-sm);
}
.fm-btn--gold:hover {
  background: var(--gold-600);
  color: var(--white);
}
.fm-btn--gold:active {
  box-shadow: 1px 1px 0 var(--ink-900);
}
.fm-btn--danger {
  background: var(--surface-card);
  color: var(--status-danger);
  border-color: var(--rust-300);
}
.fm-btn--danger:hover {
  background: var(--status-danger-soft);
  border-color: var(--status-danger);
}
.fm-btn--light {
  background: var(--surface-card);
  color: var(--navy-500);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-hard-sm);
}
.fm-btn--light:hover {
  background: var(--paper-000);
}
.fm-btn--block {
  width: 100%;
}

/* ============================================================
   COMPONENT - Badge (enamel sign-pin)
   ============================================================ */
.fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 800;
  line-height: 1;
  padding: 5px 9px 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--ink-900);
  box-shadow: 2px 2px 0 var(--ink-900);
  white-space: nowrap;
}
.fm-badge svg {
  width: 13px;
  height: 13px;
  margin-top: -1px;
}
.fm-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex: none;
}
.fm-badge__dot--pulse {
  box-shadow: 0 0 0 0 currentColor;
  animation: fm-pulse 1.8s infinite;
}
@keyframes fm-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
  }
}
.fm-badge--online {
  background: var(--sea-500);
  color: var(--paper-000);
}
.fm-badge--warn {
  background: var(--gold-500);
  color: var(--navy-700);
}
.fm-badge--danger {
  background: var(--rust-600);
  color: var(--paper-000);
}
.fm-badge--info {
  background: var(--ocean-500);
  color: var(--paper-000);
}
.fm-badge--neutral {
  background: var(--paper-000);
  color: var(--ink-900);
}
.fm-badge--solid {
  background: var(--rust-500);
  color: var(--paper-000);
}

/* ============================================================
   COMPONENT - Card
   ============================================================ */
.fm-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.fm-card--warm {
  background: var(--surface-card-warm);
}
.fm-card--poster {
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-md);
}
.fm-card--flat {
  box-shadow: none;
}
.fm-card__pad {
  padding: var(--pad-card);
}
.fm-card__pad--lg {
  padding: var(--pad-card-lg);
}
.fm-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.fm-card__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-h4);
  color: var(--text-strong);
  margin: 0;
  line-height: 1.2;
}
.fm-card__title svg {
  width: 19px;
  height: 19px;
  color: var(--ink-500);
  flex: none;
}
.fm-card__sub {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 3px 0 0;
  line-height: 1.45;
}

/* ============================================================
   COMPONENT - Logomark (anchor-in-a-rust-disc)
   ============================================================ */
.fm-logomark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.fm-logomark__disc {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 999px;
  background: var(--rust-500);
  color: var(--paper-000);
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-hard-sm);
}
.fm-logomark__disc svg {
  width: 60%;
  height: 60%;
}
.fm-logomark__wm {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ============================================================
   COMPONENT - CapsuleBanner (sign-painted ribbon)
   ============================================================ */
.fm-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-banner);
  line-height: 1.15;
  letter-spacing: 0.005em;
  position: relative;
  white-space: nowrap;
}
.fm-capsule code {
  font-family: var(--font-mono);
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.92em;
}
.fm-capsule--gold {
  background: var(--gold-500);
  color: var(--navy-700);
  box-shadow: var(--shadow-hard-sm), inset 0 0 0 3px var(--gold-500),
    inset 0 0 0 4.2px rgba(36, 28, 20, 0.55);
}
.fm-capsule--cream {
  background: var(--paper-000);
  color: var(--ink-900);
  box-shadow: var(--shadow-hard-sm), inset 0 0 0 3px var(--paper-000),
    inset 0 0 0 4.2px rgba(36, 28, 20, 0.5);
}
.fm-capsule--rust {
  background: var(--rust-500);
  color: var(--paper-000);
  box-shadow: var(--shadow-hard-sm), inset 0 0 0 3px var(--rust-500),
    inset 0 0 0 4.2px rgba(251, 244, 226, 0.6);
}
.fm-capsule--navy {
  background: var(--navy-500);
  color: var(--paper-000);
  box-shadow: var(--shadow-hard-sm), inset 0 0 0 3px var(--navy-500),
    inset 0 0 0 4.2px rgba(251, 244, 226, 0.55);
}
.fm-capsule--sm {
  font-size: var(--fs-sm);
  padding: 9px 18px;
}
.fm-capsule--md {
  font-size: var(--fs-h4);
  padding: 12px 24px;
}
.fm-capsule--lg {
  font-size: var(--fs-h3);
  padding: 15px 30px;
}

/* ============================================================
   COMPONENT - SignLabel (wooden-sign / eyebrow)
   ============================================================ */
.fm-sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-size: var(--fs-xs);
  line-height: 1;
  white-space: nowrap;
}
.fm-sign--eyebrow {
  color: var(--rust-500);
}
.fm-sign--plate {
  color: var(--navy-500);
  background: var(--paper-000);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  box-shadow: var(--shadow-hard-sm);
}
.fm-sign--muted {
  color: var(--ink-500);
}
.fm-sign svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   COMPONENT - Avatar
   ============================================================ */
.fm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--paper-000);
  background: var(--navy-500);
  border: 2px solid var(--ink-900);
}
.fm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fm-avatar--rounded {
  border-radius: var(--radius-md);
}
.fm-avatar--circle {
  border-radius: 999px;
}
.fm-avatar--bot {
  background: var(--rust-500);
}

/* ============================================================
   COMPONENT - Input / field
   ============================================================ */
.fm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
}
.fm-field__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-body);
}
.fm-field__hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.fm-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fm-field__icon {
  position: absolute;
  left: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  pointer-events: none;
}
.fm-field__icon svg {
  width: 17px;
  height: 17px;
}
.fm-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-strong);
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.fm-input::placeholder {
  color: var(--text-faint);
}
.fm-field__wrap--icon .fm-input {
  padding-left: 38px;
}
.fm-input:hover {
  border-color: var(--ink-300);
}
.fm-input:focus {
  outline: none;
  border-color: var(--rust-400);
  box-shadow: var(--focus-ring);
}
.fm-input--error {
  border-color: var(--status-danger);
}
.fm-input--error:focus {
  box-shadow: 0 0 0 3px var(--rust-100);
}
.fm-input--mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.fm-field__err {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--status-danger);
  font-weight: 600;
}
.fm-field__err svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ============================================================
   COMPONENT - TweetCard
   ============================================================ */
.fm-tweet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--font-sans);
}
.fm-tweet__body {
  min-width: 0;
}
.fm-tweet__head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fm-tweet__name {
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--text-strong);
}
.fm-tweet__handle {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.fm-tweet__time {
  color: var(--text-faint);
  font-size: var(--fs-xs);
}
.fm-tweet__text {
  margin: 3px 0 0;
  font-size: var(--fs-base);
  color: var(--text-body);
  line-height: 1.45;
}
.fm-tweet__text .fm-mention {
  color: var(--ocean-600);
  font-weight: 700;
}
.fm-tweet__text code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--rust-600);
  background: none;
  border: none;
  padding: 0;
}

/* ============================================================
   COMPONENT - CodeField (copy-to-clipboard row)
   ============================================================ */
.fm-codefield {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fm-codefield__code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-strong);
  background: var(--paper-200);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-codefield__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 800;
  cursor: pointer;
  color: var(--text-body);
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: background var(--dur-fast), border-color var(--dur-fast),
    color var(--dur-fast);
}
.fm-codefield__btn:hover {
  background: var(--paper-100);
  border-color: var(--ink-300);
}
.fm-codefield__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.fm-codefield__btn svg {
  width: 14px;
  height: 14px;
}
.fm-codefield__btn.is-copied {
  color: var(--status-online);
  border-color: var(--sea-200);
  background: var(--status-online-soft);
}

/* ============================================================
   COMPONENT - ActivityItem (feed row)
   ============================================================ */
.fm-activity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-sans);
}
.fm-activity:first-child {
  border-top: none;
}
.fm-activity__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex: none;
  border: 1.5px solid transparent;
}
.fm-activity__icon svg {
  width: 18px;
  height: 18px;
}
.fm-activity__icon--reply {
  background: var(--status-online-soft);
  color: var(--status-online);
  border-color: var(--sea-200);
}
.fm-activity__icon--offline {
  background: var(--status-warn-soft);
  color: var(--gold-600);
  border-color: var(--gold-300);
}
.fm-activity__icon--question {
  background: var(--status-info-soft);
  color: var(--ocean-600);
  border-color: var(--ocean-200);
}
.fm-activity__body {
  min-width: 0;
  flex: 1 1 auto;
}
.fm-activity__title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--text-strong);
}
.fm-activity__text {
  margin: 2px 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.fm-activity__time {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  white-space: nowrap;
}

/* ============================================================
   COMPONENT - StepCard
   ============================================================ */
.fm-step {
  font-family: var(--font-sans);
}
.fm-step__num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--paper-000);
  background: var(--navy-500);
  border: 2px solid var(--ink-900);
  border-radius: 999px;
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 14px;
}
.fm-step--rust .fm-step__num {
  background: var(--rust-500);
}
.fm-step--gold .fm-step__num {
  background: var(--gold-500);
  color: var(--navy-700);
}
.fm-step__title {
  margin: 0 0 6px;
  font-size: var(--fs-h4);
  font-weight: 800;
  color: var(--text-strong);
}
.fm-step__text {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   CHROME - sticky parchment nav (shared by every page)
   ============================================================ */
.fm-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper-100) 86%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border-default);
}
.fm-nav__inner {
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fm-nav__inner--marketing {
  max-width: var(--container-max);
  height: 68px;
}
.fm-nav__inner--app {
  max-width: var(--container-app);
}
.fm-nav__links,
.fm-nav__anchors {
  display: flex;
  align-items: center;
}
.fm-nav__links {
  gap: var(--space-5);
}
.fm-nav__anchors {
  gap: 26px;
}
.fm-nav__anchors a {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-body);
  white-space: nowrap;
}
.fm-nav__anchors a:hover {
  color: var(--rust-600);
}
/* The single "Sign in" disclosure. The panel is absolutely positioned off the
   relative wrapper, so opening it never reflows the sticky bar. */
.fm-nav__sign-in {
  position: relative;
  display: flex;
  align-items: center;
}
.fm-nav__sign-in-caret {
  transition: transform var(--dur-fast) var(--ease-out);
}
.fm-nav__sign-in-trigger[aria-expanded="true"] .fm-nav__sign-in-caret {
  transform: rotate(180deg);
}
.fm-nav__sign-in-menu {
  position: absolute;
  /* Clears the sticky bar's bottom rule rather than straddling it. */
  top: calc(100% + 20px);
  right: 0;
  z-index: 30;
  min-width: 208px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--surface-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-banner);
  box-shadow: var(--shadow-hard-sm);
}
.fm-nav__sign-in-menu[hidden] {
  display: none;
}
.fm-nav__sign-in-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1;
  color: var(--text-strong);
  text-decoration: none;
  white-space: nowrap;
}
.fm-nav__sign-in-item:hover {
  background: var(--paper-100);
  color: var(--rust-600);
}
.fm-nav__sign-in-item:focus-visible {
  outline: none;
  background: var(--paper-100);
  box-shadow: var(--focus-ring);
}
.fm-nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.fm-nav__link {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-body);
  white-space: nowrap;
}
.fm-nav__link:hover {
  color: var(--rust-600);
}
.fm-nav__link--active {
  color: var(--rust-600);
}
.fm-nav__handle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ============================================================
   FLASH - branded toast
   ============================================================ */
/* Inline above the page column (like the console kit's cn-flash), not a fixed
   toast - so it never overlaps the dashboard head. Empty group collapses to 0. */
.fm-flash-group {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.fm-flash {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 16px 28px 0;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-hard-sm);
  background: var(--surface-card);
  font-size: var(--fs-sm);
  font-weight: 600;
  animation: fm-slide-in var(--dur-base) var(--ease-out);
}
@keyframes fm-slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fm-flash svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 1px;
}
.fm-flash--info {
  background: var(--status-online-soft);
  border-color: var(--sea-200);
  color: var(--sea-700);
}
.fm-flash--error {
  background: var(--status-danger-soft);
  border-color: var(--rust-300);
  color: var(--rust-700);
}
.fm-flash__body {
  min-width: 0;
}
.fm-flash__title {
  font-weight: 800;
  margin: 0 0 1px;
}
.fm-flash__msg {
  margin: 0;
}

/* ============================================================
   LANDING (marketing - 70s poster register)  .lp-*
   ============================================================ */
.lp-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}
.lp-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--text-strong);
  line-height: 1.12;
  margin: 16px 0 0;
}
.lp-p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 14px 0 0;
}
.lp-center {
  text-align: center;
}
.lp-narrow {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.lp-accent {
  color: var(--rust-500);
}

.lp-hero {
  background: var(--bg-page);
  background-image: var(--texture-paper);
  padding: 64px 0 24px;
}
.lp-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lp-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.2rem);
  letter-spacing: 0.005em;
  line-height: 1.08;
  color: var(--text-strong);
  margin: 18px 0 0;
  text-shadow: 2px 2px 0 var(--paper-000), 3px 3px 0 rgba(36, 28, 20, 0.16);
}
.lp-hero__lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px 0 0;
  line-height: 1.55;
}
.lp-hero__lead strong {
  color: var(--ocean-600);
  font-weight: 800;
}
.lp-hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.lp-hero__cta .fm-btn {
  flex: 1 1 calc(var(--space-10) * 3 + var(--space-7));
}
.lp-demo {
  max-width: 560px;
  width: 100%;
  margin: 52px auto 0;
  text-align: left;
}
.lp-demo__label {
  margin-bottom: 14px;
}
.lp-demo__rule {
  height: 1px;
  background: var(--border-soft);
  margin: 16px 0;
}

.lp-crew {
  background: var(--navy-600);
  background-image: var(--texture-paper);
  margin-top: 56px;
  padding: 64px 0;
}
.lp-crew__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.lp-crew__art img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 3px solid var(--ink-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  display: block;
}
.lp-crew__copy .lp-h2 {
  color: var(--paper-000);
}
.lp-crew__copy .lp-p {
  color: var(--text-on-dark-muted);
}
.lp-crew__copy > * + * {
  margin-top: 18px;
}

.lp-section {
  padding: 76px 0;
}
.lp-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 44px;
}
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-steps > div {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.lp-safe {
  background: var(--bg-sunk);
}
.lp-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 36px;
  max-width: 880px;
  margin: 0 auto;
}
.lp-trust__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lp-trust__ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--sea-500);
  background: var(--status-online-soft);
  border: 1.5px solid var(--sea-200);
}
.lp-trust__ic svg {
  width: 20px;
  height: 20px;
}
.lp-trust__item strong {
  display: block;
  font-size: var(--fs-h4);
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 3px;
}
.lp-trust__item span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.lp-ctaband {
  background: linear-gradient(160deg, var(--depth-900), var(--depth-800));
  border: 3px solid var(--ink-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 52px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lp-ctaband__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--paper-000);
  margin: 6px 0 0;
  letter-spacing: 0.005em;
  line-height: 1.12;
}
.lp-ctaband__p {
  color: var(--text-on-dark-muted);
  max-width: 460px;
  margin: 0 0 8px;
  font-size: var(--fs-lg);
}
.lp-ctaband__back {
  color: var(--gold-300);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-ctaband__back:hover {
  color: var(--paper-000);
}
.lp-ctaband__fine {
  color: var(--text-on-dark-muted);
  max-width: 460px;
  margin: 0;
  font-size: var(--fs-sm);
  opacity: 0.85;
}
.lp-ctaband__fine a {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Terms of service / legal prose page. */
.lp-legal .lp-h2 {
  margin-top: 8px;
}
.lp-legal__meta {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-top: 0;
}
.lp-legal__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h4);
  color: var(--text-strong);
  margin: 32px 0 10px;
  letter-spacing: 0.005em;
}
.lp-legal__back {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.lp-footer {
  border-top: 1px solid var(--border-default);
  background: var(--surface-card-warm);
}
.lp-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  flex-wrap: wrap;
}
.lp-footer__meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.lp-footer__url {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--ink-300);
}
a.lp-footer__url:hover {
  color: var(--rust-600);
}

/* ============================================================
   CONSOLE (management plane - usable register)  .cn-*
   ============================================================ */
.cn-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.cn-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cn-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.cn-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--text-strong);
  margin: 10px 0 0;
  line-height: 1.06;
}
.cn-subtitle {
  color: var(--text-muted);
  font-size: var(--fs-base);
  margin: 6px 0 0;
}
.cn-kv {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 12px 18px;
  align-items: center;
}
.cn-k {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
}
.cn-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-strong);
}
.cn-hint {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0 0 16px;
}
/* Free-tier usage meter on the dashboard. */
.cn-meter {
  display: grid;
  gap: 12px;
}
.cn-meter__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cn-meter__count {
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1;
}
.cn-meter__cap {
  color: var(--text-muted);
  font-weight: 500;
}
.cn-meter__unit {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.cn-meter__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-card-warm);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.cn-meter__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--rust-500);
  transition: width 240ms ease;
}
.cn-meter__note {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
/* Admin dashboard: inline connection status (badge + mono detail on one row). */
.cn-conn {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.cn-link {
  color: var(--rust-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cn-link:hover {
  color: var(--rust-700);
}
/* Admin dashboard: a responsive grid of compact stat tiles. */
.cn-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.cn-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  min-width: 0;
  background: var(--surface-card-warm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.cn-stat__num {
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1;
  color: var(--text-strong);
}
.cn-stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* Admin dashboard: the daily received-vs-posted bar chart. */
.cn-chart {
  display: grid;
  gap: 14px;
}
.cn-chart__legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cn-chart__key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.cn-chart__swatch {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-soft);
}
.cn-chart__swatch--received {
  background: var(--rust-500);
}
.cn-chart__swatch--posted {
  background: var(--navy-500);
}
.cn-chart__plot {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-top: 4px;
}
.cn-chart__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.cn-chart__stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
}
.cn-chart__bar {
  flex: 1 1 0;
  min-width: 0;
  max-width: 12px;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  align-self: flex-end;
}
.cn-chart__bar--active {
  min-height: 2px;
}
.cn-chart__bar--received {
  background: var(--rust-500);
}
.cn-chart__bar--posted {
  background: var(--navy-500);
}
.cn-chart__tick {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-faint);
}
.cn-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.cn-list li {
  padding-left: 4px;
}
.cn-list strong {
  color: var(--text-strong);
  font-weight: 600;
}
/* "Local firstmate" one-line .env setup steps */
.cn-setup {
  gap: 14px;
}
/* Let the grid item shrink so the embedded .env field ellipsizes instead of
   pushing its Copy button past the card edge. */
.cn-setup li {
  min-width: 0;
}
.cn-setup__env {
  margin-top: 10px;
}
.cn-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.cn-masked {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cn-masked .fm-codefield__code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-faint);
  background: var(--paper-200);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cn-masked__hint {
  flex: none;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  white-space: nowrap;
}
.cn-feed {
  margin-top: 4px;
}
.cn-empty {
  text-align: center;
  padding: 30px 0 14px;
  color: var(--text-muted);
}
.cn-empty svg {
  width: 26px;
  height: 26px;
  color: var(--ink-300);
}
.cn-empty p {
  font-size: var(--fs-sm);
  margin: 10px 0 0;
}
.cn-empty strong {
  color: var(--text-body);
}

/* ---- Auth / consent screen (bare full-screen) ---- */
.cn-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--bg-page);
  background-image: var(--texture-paper);
}
.cn-auth__card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 36px 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cn-auth__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--text-strong);
  margin: 18px 0 0;
  line-height: 1.1;
}
.cn-auth__sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 10px 0 0;
}
.cn-auth__field {
  width: 100%;
  margin: 24px 0 18px;
  text-align: left;
}
.cn-auth__hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 8px 0 16px;
  text-align: left;
}
.cn-auth__fine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin: 18px 0 0;
}
.cn-auth__fine svg {
  width: 13px;
  height: 13px;
}
.cn-auth__err {
  width: 100%;
  text-align: left;
  margin-top: 16px;
}
.cn-auth__cancel {
  margin: 18px 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.cn-auth__cancel a:hover {
  color: var(--rust-600);
}

@media (max-width: 860px) {
  .lp-crew__inner,
  .lp-steps,
  .lp-trust {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .fm-nav__inner {
    padding-inline: 18px;
  }
  /* Only the GitHub link lives here now; it yields to the Sign in control on
     a phone-width bar. */
  .fm-nav__anchors {
    display: none;
  }
  .fm-nav__links {
    gap: var(--space-2);
  }
  /* Signed-in sessions carry several nav links, so they drop to the anchor-only
     logo here. The marketing bar is now just wordmark + GitHub + Sign in, so it
     keeps its wordmark at every width. */
  .fm-nav:not(.fm-nav--marketing):not(.fm-nav--bot) .fm-logomark__wm {
    display: none;
  }
  .lp-hero__cta .fm-btn {
    flex-basis: 100%;
  }
  .fm-nav__right {
    gap: 14px;
  }
  .fm-nav__handle {
    display: none;
  }
  /* The signed-in bot account carries the most nav links (Dashboard, Admin, Bot
     account, Log out); drop the wordmark to the anchor-only logo here so they
     never overflow the sticky bar on a narrow screen. Scoped to bot sessions
     only (.fm-nav--bot) - every other session keeps the wordmark until 460px. */
  .fm-nav--bot .fm-logomark__wm {
    display: none;
  }
  .cn-kv {
    grid-template-columns: 1fr;
    gap: 5px 0;
  }
  .cn-k {
    margin-top: 8px;
  }
}
@media (max-width: 460px) {
  .lp-demo__label .fm-sign {
    white-space: normal;
    line-height: 1.35;
  }
  .fm-nav__inner {
    padding-inline: 16px;
  }
  .fm-nav__right {
    gap: 12px;
  }
  .fm-nav:not(.fm-nav--marketing) .fm-logomark__wm {
    display: none;
  }
}
