/* Kube Desk website. One stylesheet for every page.
   Tokens first; everything below derives from them. */

:root {
  color-scheme: light dark;

  --display: "Mona Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --paper: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --ink: #111318;
  --slate: #5a6170;
  --faint: #8a91a0;
  --rule: #dfe2e8;
  --rule-strong: #cbd0d9;
  --violet: #5b4fe8;
  --violet-ink: #4a3fd6;
  --violet-soft: rgba(91, 79, 232, 0.1);
  --on-violet: #ffffff;
  --night: #12102a;
  --night-2: #1b1840;
  --night-rule: rgba(255, 255, 255, 0.1);
  --night-ink: #eceaff;
  --night-slate: #a9a6cf;

  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.12);
  --warn: #c26a05;
  --warn-soft: rgba(217, 119, 6, 0.13);
  --bad: #dc2626;
  --bad-soft: rgba(220, 38, 38, 0.1);

  /* cluster identities, as in the app's rail */
  --c-pe: #8b5cf6;
  --c-st: #6366f1;
  --c-qa: #f97316;
  --c-es: #ec4899;

  --shadow-window: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 40px 80px -30px rgba(17, 19, 40, 0.35),
    0 12px 30px -12px rgba(17, 19, 40, 0.18);
  --shadow-pop: 0 18px 50px -12px rgba(17, 19, 40, 0.28), 0 2px 6px rgba(17, 19, 40, 0.08);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0d12;
    --surface: #12151b;
    --surface-2: #181c23;
    --ink: #e8ebf1;
    --slate: #9aa3b2;
    --faint: #6b7380;
    --rule: #20252e;
    --rule-strong: #2e3440;
    --violet: #8a82ff;
    --violet-ink: #a59fff;
    --violet-soft: rgba(138, 130, 255, 0.14);
    --on-violet: #0d0b24;
    --night: #100e26;
    --night-2: #1a1740;

    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, 0.13);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.13);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.12);

    --shadow-window: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 80px -30px rgba(0, 0, 0, 0.8),
      0 12px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--violet-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--violet-soft);
}

code,
kbd,
pre,
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
}

:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  padding: 0.08em 0.38em;
  border-radius: 5px;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.1em 0.42em;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78em;
  line-height: 1.5;
  text-align: center;
  vertical-align: 0.08em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--wide {
  max-width: calc(1320px + var(--gutter) * 2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* ---------- type ---------- */

.display {
  font-stretch: 125%;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-size: clamp(42px, 6.6vw, 96px);
}

.h2 {
  font-stretch: 118%;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(30px, 4.2vw, 52px);
}

.h3 {
  font-stretch: 108%;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-size: 19px;
}

.lede {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 34em;
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

/* "where in the app" label: tells the reader how to reach a feature */
.where {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--slate);
  margin-bottom: 18px;
}

.where::before {
  content: "";
  display: inline-block;
  margin-right: 9px;
  vertical-align: 1px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--violet);
}

.where kbd {
  font-size: 11px;
}

.muted {
  color: var(--slate);
}

/* ---------- buttons ---------- */

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--violet);
  color: var(--on-violet);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -8px rgba(91, 79, 232, 0.7);
}

.btn--primary:hover {
  background: color-mix(in oklab, var(--violet) 88%, black);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  border-color: var(--slate);
}

.btn--sm {
  --h: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
  gap: 7px;
}

.btn--sm svg {
  width: 15px;
  height: 15px;
}

.btn-sub {
  font-weight: 450;
  opacity: 0.75;
  font-size: 0.86em;
}

/* ---------- top bar (shaped like the app's title bar) ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.bar.is-stuck {
  border-bottom-color: var(--rule);
}

.bar__in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 680;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 15px;
}

.crumb span {
  color: var(--slate);
}

.jump {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  min-width: 230px;
  padding: 0 8px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--faint);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.jump:hover {
  border-color: var(--rule-strong);
}

.jump svg {
  width: 15px;
  height: 15px;
}

.jump kbd {
  margin-left: auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
}

.links a:hover,
.links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 960px) {
  .jump {
    min-width: 0;
  }
  .jump .jump__label {
    display: none;
  }
  .crumb {
    display: none;
  }
}

@media (max-width: 760px) {
  .links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .bar.is-open .links {
    display: flex;
  }
  .links a {
    padding: 12px 10px;
    font-size: 16px;
  }
  .menu-btn {
    display: inline-flex;
  }
  .bar .btn--sm {
    display: none;
  }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head .lede {
  justify-self: end;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head .lede {
    justify-self: start;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  isolation: isolate;
}

/* a faint grid, the texture of tables and rails */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 30% 0;
  z-index: -1;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.hero__copy {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: end;
}

.release-line {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--slate);
  font-size: 14px;
  text-decoration: none;
}

.release-line:hover {
  border-color: var(--rule-strong);
  text-decoration: none;
}

.release-line b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--violet-ink);
  background: var(--violet-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.hero__copy h1 {
  grid-column: 1 / -1;
  max-width: 13.5em;
}

.hero h1 .soft {
  color: var(--violet);
}

.hero__aside {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
}

.hero__act {
  display: grid;
  gap: 18px;
  justify-items: start;
}

@media (max-width: 900px) {
  .hero__aside {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fine {
  font-size: 14px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.fine span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fine svg {
  width: 14px;
  height: 14px;
}

.fine a {
  color: var(--slate);
}

@media (max-width: 900px) {
  .hero__copy {
    grid-template-columns: minmax(0, 1fr);
  }
}

.demo-wrap {
  margin-top: clamp(48px, 7vw, 80px);
}

.demo-hint {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14.5px;
  color: var(--slate);
  text-align: center;
}

.demo-hint kbd.is-hit {
  background: var(--violet);
  color: var(--on-violet);
  border-color: var(--violet);
}

/* ---------- the app window (shared by the hero demo and mocks) ---------- */

.app {
  --a-bg: #f7f8fa;
  --a-panel: #ffffff;
  --a-panel-2: #f1f3f6;
  --a-rail: #eceef2;
  --a-fg: #15181d;
  --a-muted: #5d6573;
  --a-faint: #8d95a3;
  --a-border: #e2e5ea;
  --a-hover: rgba(20, 30, 50, 0.045);
  --a-active: rgba(59, 108, 246, 0.1);
  --a-accent: #3b6cf6;
  font-size: 13px;
  line-height: 1.45;
  font-family: -apple-system, BlinkMacSystemFont, "Mona Sans", system-ui, sans-serif;
  font-stretch: 100%;
  color: var(--a-fg);
  background: var(--a-bg);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  .app {
    --a-bg: #0d0f13;
    --a-panel: #14171c;
    --a-panel-2: #1a1e25;
    --a-rail: #0a0c0f;
    --a-fg: #e6e9ee;
    --a-muted: #9aa3b2;
    --a-faint: #6b7380;
    --a-border: #232830;
    --a-hover: rgba(255, 255, 255, 0.045);
    --a-active: rgba(96, 140, 255, 0.14);
    --a-accent: #6b93ff;
    border-color: #2a2f3a;
  }
}

.app__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: var(--a-panel);
  border-bottom: 1px solid var(--a-border);
  white-space: nowrap;
}

.lights {
  display: flex;
  gap: 7px;
  flex: none;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.lights i:nth-child(2) {
  background: #febc2e;
}

.lights i:nth-child(3) {
  background: #28c840;
}

.app__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--a-faint);
  overflow: hidden;
}

.app__crumbs b {
  color: var(--a-fg);
  font-weight: 600;
}

.app__crumbs .ctx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--a-fg);
  font-weight: 500;
}

.app__crumbs .ctx i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cc, var(--a-accent));
}

.app__search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34%);
  height: 28px;
  padding: 0 6px 0 10px;
  border: 1px solid var(--a-border);
  border-radius: 7px;
  background: var(--a-bg);
  color: var(--a-faint);
  overflow: hidden;
}

.app__search svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.app__search span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app__search kbd {
  margin-left: auto;
  font-size: 10px;
  background: var(--a-panel);
  border-color: var(--a-border);
  color: var(--a-muted);
}

.app__body {
  display: grid;
  grid-template-columns: 56px 188px minmax(0, 1fr);
  height: clamp(460px, 46vw, 560px);
  position: relative;
}

.app__rail {
  background: var(--a-rail);
  border-right: 1px solid var(--a-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.rail-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: var(--a-muted);
  background: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.rail-btn svg {
  width: 17px;
  height: 17px;
}

.rail-btn:hover {
  background: var(--a-hover);
}

.rail-btn--cluster {
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 14%, var(--a-panel));
  border-color: color-mix(in srgb, var(--cc) 30%, transparent);
}

.rail-btn--cluster:hover {
  background: color-mix(in srgb, var(--cc) 22%, var(--a-panel));
}

.rail-btn[aria-current="true"] {
  box-shadow: 0 0 0 2px var(--a-rail), 0 0 0 4px var(--cc, var(--a-accent));
}

.rail-btn--home[aria-current="true"] {
  background: var(--a-active);
  color: var(--a-accent);
  box-shadow: none;
}

.rail-btn .st {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--a-rail);
  background: #22c55e;
}

.rail-btn .st.bad {
  background: #ef4444;
}

.rail-btn .num {
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--a-faint);
  font-family: var(--mono);
}

.rail-sep {
  width: 24px;
  height: 1px;
  background: var(--a-border);
  margin: 2px 0;
}

.app__side {
  background: var(--a-panel);
  border-right: 1px solid var(--a-border);
  padding: 10px 8px;
  overflow: hidden;
}

.side-h {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-faint);
  padding: 12px 10px 5px;
}

.side-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  color: var(--a-fg);
  cursor: pointer;
  text-align: left;
}

.side-btn svg {
  width: 15px;
  height: 15px;
  color: var(--a-muted);
  flex: none;
}

.side-btn:hover {
  background: var(--a-hover);
}

.side-btn[aria-current="page"] {
  background: var(--a-active);
  color: var(--a-accent);
  font-weight: 500;
}

.side-btn[aria-current="page"] svg {
  color: var(--a-accent);
}

.side-btn .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--a-faint);
  font-variant-numeric: tabular-nums;
}

.app__main {
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
}

.app__main h4 {
  font-family: inherit;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-stretch: 100%;
}

.app__sub {
  color: var(--a-muted);
  font-size: 12px;
  margin: 2px 0 16px;
}

.app__sub code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  background: var(--a-panel);
  border: 1px solid var(--a-border);
  border-left: 3px solid var(--sc, #22c55e);
  border-radius: 8px;
  padding: 10px 12px;
}

.stat span {
  display: block;
  color: var(--a-muted);
  font-size: 12px;
}

.stat b {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.stat small {
  color: var(--a-faint);
  font-size: 11px;
}

.panel {
  background: var(--a-panel);
  border: 1px solid var(--a-border);
  border-radius: 8px;
  overflow: hidden;
}

.panel + .panel {
  margin-top: 12px;
}

.panel__h {
  padding: 9px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--a-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel__h small {
  margin-left: auto;
  font-weight: 400;
  color: var(--a-faint);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grid-2 .panel + .panel {
  margin-top: 0;
}

.bars {
  padding: 4px 12px 10px;
}

.bars div {
  margin-top: 8px;
}

.bars p {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.bars p span:last-child {
  color: var(--a-muted);
  font-variant-numeric: tabular-nums;
}

.bars i {
  display: block;
  height: 4px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--a-panel-2);
  overflow: hidden;
}

.bars i::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
  background: #22c55e;
  border-radius: 4px;
  transition: width 0.4s ease;
}

table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.t th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--a-muted);
  padding: 7px 12px;
  border-bottom: 1px solid var(--a-border);
  background: var(--a-panel);
  white-space: nowrap;
}

.t td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--a-border);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.t tr:last-child td {
  border-bottom: 0;
}

.t tbody tr {
  cursor: default;
}

.t tbody tr.clickable {
  cursor: pointer;
}

.t tbody tr.clickable:hover td {
  background: var(--a-hover);
}

.t tbody tr[aria-selected="true"] td {
  background: var(--a-active);
}

.t .name {
  font-weight: 500;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t .dim {
  color: var(--a-muted);
}

.t tr.flash td {
  animation: flash 1.4s ease;
}

@keyframes flash {
  0% {
    background: color-mix(in srgb, var(--a-accent) 22%, transparent);
  }
  100% {
    background: transparent;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.warn {
  background: rgba(217, 119, 6, 0.13);
  color: #c26a05;
}

.badge.bad {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.badge.idle {
  background: var(--a-panel-2);
  color: var(--a-muted);
}

@media (prefers-color-scheme: dark) {
  .badge {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
  }
  .badge.warn {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
  }
  .badge.bad {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
  }
}

.ev {
  padding: 8px 12px;
  border-bottom: 1px solid var(--a-border);
  border-left: 3px solid #f59e0b;
}

.ev:last-child {
  border-bottom: 0;
}

.ev p:first-child {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.ev .reason {
  font-weight: 600;
  color: #c26a05;
}

.ev code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11.5px;
}

.ev .dim {
  color: var(--a-faint);
  font-size: 11.5px;
}

.ev p + p {
  color: var(--a-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ccard {
  background: var(--a-panel);
  border: 1px solid var(--a-border);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.ccard:hover {
  border-color: color-mix(in srgb, var(--cc) 45%, var(--a-border));
}

.ccard .tile {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 14%, var(--a-panel));
}

.ccard b {
  font-weight: 600;
  font-size: 14px;
}

.ccard code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--a-faint);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccard .tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--a-panel-2);
  color: var(--a-muted);
}

.tag.cur {
  background: var(--a-active);
  color: var(--a-accent);
}

.err-box {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
  .err-box {
    color: #f87171;
  }
}

.unreach {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.unreach svg {
  width: 30px;
  height: 30px;
  color: #ef4444;
}

.unreach .err-box {
  text-align: left;
}

.a-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--a-border);
  background: var(--a-panel);
  color: var(--a-fg);
  cursor: pointer;
}

.a-btn:hover {
  background: var(--a-panel-2);
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(330px, 70%);
  background: var(--a-panel);
  border-left: 1px solid var(--a-border);
  box-shadow: -20px 0 40px -24px rgba(0, 0, 0, 0.3);
  padding: 16px 18px;
  overflow: hidden;
  animation: drawer-in 0.18s ease;
}

@keyframes drawer-in {
  from {
    transform: translateX(16px);
    opacity: 0;
  }
}

.drawer header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.drawer header b {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.drawer header button {
  margin-left: auto;
  flex: none;
  border: 0;
  background: none;
  color: var(--a-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 5px;
}

.drawer header button:hover {
  background: var(--a-hover);
}

.drawer header svg {
  width: 16px;
  height: 16px;
}

.drawer dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin: 0;
}

.drawer dt {
  color: var(--a-muted);
}

.drawer dd {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer dd code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11.5px;
}

.drawer .tabs-mini {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--a-border);
  margin: 0 -18px 14px;
  padding: 0 14px;
}

.drawer .tabs-mini span {
  padding: 6px 8px;
  color: var(--a-muted);
  font-size: 12px;
}

.drawer .tabs-mini span:first-child {
  color: var(--a-fg);
  box-shadow: inset 0 -2px 0 var(--a-accent);
}

@media (max-width: 860px) {
  .app__body {
    grid-template-columns: 52px minmax(0, 1fr);
    height: 520px;
  }
  .app__side {
    display: none;
  }
  .app__search {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .t .hide-sm {
    display: none;
  }
  .rail-btn .num {
    display: none;
  }
}

@media (max-width: 520px) {
  .app__crumbs .ns,
  .app__crumbs .ns-sep {
    display: none;
  }
  .app__main {
    padding: 14px;
  }
  .stats .stat:nth-child(n + 3) {
    display: none;
  }
}

/* mobile-only page switcher inside the demo (the sidebar is hidden there) */
.app__pages {
  display: none;
  gap: 4px;
  margin: -4px 0 14px;
  overflow-x: auto;
}

.app__pages button {
  flex: none;
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--a-border);
  background: var(--a-panel);
  color: var(--a-muted);
  cursor: pointer;
}

.app__pages button[aria-current="page"] {
  background: var(--a-active);
  color: var(--a-accent);
  border-color: transparent;
}

@media (max-width: 860px) {
  .app__pages {
    display: flex;
  }
}

/* ---------- why ---------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: start;
}

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 40px;
}

.point h3 {
  margin-bottom: 8px;
}

.point p {
  color: var(--slate);
  font-size: 16px;
}

.point__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet-ink);
  margin-bottom: 16px;
}

.point__mark svg {
  width: 18px;
  height: 18px;
}

.spec {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.spec h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
  font-stretch: 100%;
}

.spec dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
}

.spec dt,
.spec dd {
  padding: 9px 0;
  border-top: 1px dashed var(--rule);
  margin: 0;
}

.spec dt {
  color: var(--slate);
  padding-right: 18px;
}

.spec dd {
  color: var(--ink);
  text-align: right;
}

.spec dd.good {
  color: var(--ok);
}

@media (max-width: 960px) {
  .why {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .points {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
}

.feature + .feature {
  border-top: 1px solid var(--rule);
}

.feature__text .h2 {
  font-size: clamp(28px, 3.3vw, 42px);
  margin-bottom: 18px;
}

.feature__text > p {
  color: var(--slate);
  font-size: 17px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
}

.ticks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.ticks li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 4px;
  background: var(--violet-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%235b4fe8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

@media (max-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* generic mock frame (a dialog or panel from the app) */
.mock {
  --a-bg: #f7f8fa;
  --a-panel: #ffffff;
  --a-panel-2: #f1f3f6;
  --a-fg: #15181d;
  --a-muted: #5d6573;
  --a-faint: #8d95a3;
  --a-border: #e2e5ea;
  --a-accent: #3b6cf6;
  --a-active: rgba(59, 108, 246, 0.1);
  --a-hover: rgba(20, 30, 50, 0.045);
  background: var(--a-panel);
  color: var(--a-fg);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  font-family: -apple-system, BlinkMacSystemFont, "Mona Sans", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .mock {
    --a-bg: #0d0f13;
    --a-panel: #14171c;
    --a-panel-2: #1a1e25;
    --a-fg: #e6e9ee;
    --a-muted: #9aa3b2;
    --a-faint: #6b7380;
    --a-border: #232830;
    --a-accent: #6b93ff;
    --a-active: rgba(96, 140, 255, 0.14);
    --a-hover: rgba(255, 255, 255, 0.045);
    border-color: #2a2f3a;
  }
}

.mock__h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--a-border);
  font-weight: 600;
}

.mock__h small {
  margin-left: auto;
  font-weight: 400;
  color: var(--a-faint);
  font-size: 12px;
}

.mock__h svg {
  width: 16px;
  height: 16px;
  color: var(--a-muted);
}

.mock__b {
  padding: 14px 16px;
}

.mock code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
}

.chip-c {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.chip-c::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cc);
}

/* watch: menu bar + notification */
.watch-stage {
  position: relative;
  padding: 0 0 20px;
}

.menubar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  height: 30px;
  padding: 0 14px;
  border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--rule));
  font-size: 13px;
  color: var(--slate);
  border: 1px solid var(--rule);
  border-bottom: 0;
}

.menubar .tray {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}

.menubar .tray svg {
  width: 14px;
  height: 14px;
}

.menubar .tray i {
  font-style: normal;
  color: var(--bad);
}

.watch-pane {
  border: 1px solid var(--rule);
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--paper));
  padding: 18px 18px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.notif {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 11px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-pop);
  font-size: 13px;
  line-height: 1.4;
}

.notif + .notif {
  margin-top: 10px;
}

.notif img {
  grid-row: span 3;
  width: 34px;
  height: 34px;
}

.notif b {
  font-weight: 600;
}

.notif .app-n {
  display: flex;
  justify-content: space-between;
  color: var(--slate);
  font-size: 12px;
}

.notif p:last-child {
  color: var(--slate);
}

.problems {
  font-size: 13px;
}

.problems .mock__b {
  padding: 6px;
}

.prob {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 2px 10px;
  padding: 8px 10px;
  border-radius: 8px;
}

.prob:hover {
  background: var(--a-hover);
}

.prob::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #ef4444;
  grid-row: span 2;
}

.prob.warn::before {
  background: #f59e0b;
}

.prob b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prob span {
  font-size: 12px;
  color: var(--a-muted);
}

.problems footer {
  border-top: 1px solid var(--a-border);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--a-muted);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .watch-pane {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* timeline */
.tl {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.tl li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 2px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--a-border);
  align-items: baseline;
}

.tl li:last-child {
  border-bottom: 0;
}

.tl time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--a-faint);
}

.tl .obj {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--a-muted);
}

.tl .what {
  grid-column: 2 / 3;
  font-weight: 500;
}

.tl .what code {
  font-size: 12px;
}

.tl .who {
  grid-row: 1 / span 2;
  grid-column: 3;
  align-self: center;
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--a-panel-2);
  color: var(--a-muted);
  white-space: nowrap;
}

.tl .who.helm {
  background: rgba(15, 98, 254, 0.1);
  color: #2d5fd8;
}

.tl .who.argo {
  background: rgba(239, 123, 77, 0.13);
  color: #c75a2e;
}

.tl .who.agent {
  background: var(--violet-soft);
  color: var(--violet-ink);
}

.tl .closed {
  font-size: 11px;
  color: var(--a-faint);
  border: 1px dashed var(--a-border);
  padding: 0 6px;
  border-radius: 5px;
  margin-left: 6px;
}

.tl .problem .what {
  color: #dc2626;
}

@media (prefers-color-scheme: dark) {
  .tl .problem .what {
    color: #f87171;
  }
  .tl .who.helm {
    color: #7aa2ff;
  }
  .tl .who.argo {
    color: #f6a07d;
  }
}

.diff {
  grid-column: 2 / -1;
  margin-top: 8px;
  border: 1px solid var(--a-border);
  border-radius: 7px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  background: var(--a-bg);
}

.diff div {
  padding: 0 10px;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diff .del {
  background: rgba(220, 38, 38, 0.09);
  color: #b91c1c;
}

.diff .add {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.diff .ctx {
  color: var(--a-muted);
}

@media (prefers-color-scheme: dark) {
  .diff .del {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.1);
  }
  .diff .add {
    color: #86efac;
    background: rgba(52, 211, 153, 0.1);
  }
}

@media (max-width: 520px) {
  .tl li {
    grid-template-columns: 1fr auto;
  }
  .tl time {
    grid-column: 1 / -1;
  }
  .tl .what,
  .diff {
    grid-column: 1 / -1;
  }
  .tl .who {
    grid-row: auto;
    grid-column: 2;
  }
}

/* impact + guardrail dialog */
.impact {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}

.impact li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--a-bg);
  border: 1px solid var(--a-border);
}

.sev {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dc2626;
}

.sev.warn {
  color: #c26a05;
}

.sev.info {
  color: var(--a-muted);
}

@media (prefers-color-scheme: dark) {
  .sev {
    color: #f87171;
  }
  .sev.warn {
    color: #fbbf24;
  }
}

.prod-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(220, 38, 38, 0.09);
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.prod-banner svg {
  width: 15px;
  height: 15px;
}

@media (prefers-color-scheme: dark) {
  .prod-banner {
    color: #f87171;
  }
}

.confirm {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.confirm label {
  font-size: 13px;
  color: var(--a-muted);
}

.confirm label code {
  color: var(--a-fg);
  font-weight: 600;
}

.confirm input {
  font: inherit;
  font-family: var(--mono);
  font-size: 13px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--a-border);
  background: var(--a-bg);
  color: var(--a-fg);
  width: 100%;
}

.confirm input:focus {
  outline: 2px solid var(--a-accent);
  outline-offset: -1px;
}

.mock__f {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--a-border);
  background: var(--a-bg);
}

.mock__f .note {
  margin-right: auto;
  font-size: 12px;
  color: var(--a-muted);
}

.a-btn--danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.a-btn--danger:hover {
  background: #b91c1c;
}

.a-btn--go {
  background: var(--a-accent);
  border-color: var(--a-accent);
  color: #fff;
}

.a-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- agents (night band) ---------- */

.night {
  background: radial-gradient(ellipse 70% 60% at 85% 0%, var(--night-2), transparent 70%), var(--night);
  color: var(--night-ink);
  border-top: 0 !important;
}

.night + .section {
  border-top: 0;
}

.night .h2,
.night h3 {
  color: #fff;
}

.night .lede,
.night .muted {
  color: var(--night-slate);
}

.night .where {
  color: var(--night-slate);
}

.night .where::before {
  background: #a59fff;
}

.night a {
  color: #c7c3ff;
}

.agents {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}

.perm {
  margin-top: 32px;
  border: 1px solid var(--night-rule);
  border-radius: 14px;
  overflow: hidden;
}

.perm__h {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--night-slate);
  border-bottom: 1px solid var(--night-rule);
  display: flex;
  justify-content: space-between;
}

.perm__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
}

.perm__row + .perm__row {
  border-top: 1px solid var(--night-rule);
}

.perm__row .chip-c {
  color: #fff;
}

.seg {
  margin-left: auto;
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--night-rule);
}

.seg button {
  font: inherit;
  font-size: 12.5px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--night-slate);
  cursor: pointer;
  white-space: nowrap;
}

.seg button:hover {
  color: #fff;
}

.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--night);
  font-weight: 600;
}

.perm__note {
  padding: 10px 16px 12px;
  font-size: 12.5px;
  color: var(--night-slate);
  border-top: 1px solid var(--night-rule);
  min-height: 42px;
}

.night .mock {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.approve__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.approve__who .av {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #d97757;
  color: #fff;
}

.approve__who .av svg {
  width: 16px;
  height: 16px;
}

.agent-reason {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--a-accent);
  background: var(--a-bg);
  border-radius: 0 8px 8px 0;
  color: var(--a-fg);
}

.agent-reason small {
  display: block;
  color: var(--a-muted);
  font-size: 11.5px;
  margin-bottom: 2px;
}

.call {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 12.5px;
  margin-bottom: 10px;
  color: var(--a-muted);
}

.call code {
  color: var(--a-fg);
}

.approve .diff {
  margin: 0 0 12px;
}

.tools {
  margin-top: 28px;
}

.tools h3 {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--night-slate);
  margin-bottom: 10px;
  font-stretch: 100%;
}

.tools ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tools li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--night-rule);
  color: #dcd9ff;
}

.tools li.w {
  border-color: rgba(165, 159, 255, 0.45);
  background: rgba(165, 159, 255, 0.1);
}

.cmd {
  margin-top: 40px;
  border: 1px solid var(--night-rule);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.cmd header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--night-rule);
  font-size: 13px;
  color: var(--night-slate);
}

.cmd pre {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #eceaff;
  overflow-x: auto;
}

.cmd pre .p {
  color: #8b88b8;
  user-select: none;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.copy svg {
  width: 13px;
  height: 13px;
}

.night .copy {
  border-color: var(--night-rule);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.copy.is-done {
  color: var(--ok);
}

.safety {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--night-rule);
}

.safety div {
  padding: 22px 22px 0 0;
}

.safety div + div {
  padding-left: 22px;
  border-left: 1px solid var(--night-rule);
}

.safety h3 {
  font-size: 15px;
  font-weight: 620;
  margin-bottom: 6px;
  font-stretch: 105%;
}

.safety p {
  font-size: 14.5px;
  color: var(--night-slate);
}

@media (max-width: 960px) {
  .agents {
    grid-template-columns: minmax(0, 1fr);
  }
  .safety {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .safety div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .safety {
    grid-template-columns: minmax(0, 1fr);
  }
  .safety div + div {
    padding-left: 0;
    border-left: 0;
  }
  .seg button {
    padding: 4px 7px;
    font-size: 12px;
  }
}

/* ---------- search + compare ---------- */

.across {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.across h3 {
  margin: 22px 0 6px;
}

.across > div > p {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 20px;
}

.sbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--a-border);
  font-family: var(--mono);
  font-size: 13.5px;
}

.sbox svg {
  width: 16px;
  height: 16px;
  color: var(--a-muted);
}

.sbox .q {
  color: var(--a-accent);
}

.sbox .caret {
  width: 1.5px;
  height: 17px;
  background: var(--a-accent);
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.sgroup {
  padding: 8px 6px 4px;
}

.sgroup + .sgroup {
  border-top: 1px solid var(--a-border);
}

.sgroup h5 {
  margin: 0;
  padding: 2px 10px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--a-muted);
  display: flex;
  justify-content: space-between;
}

.srow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
}

.srow:hover {
  background: var(--a-hover);
}

.srow span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srow small {
  color: var(--a-faint);
  font-size: 11.5px;
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.cmp th,
.cmp td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--a-border);
  text-align: left;
  white-space: nowrap;
}

.cmp th {
  font-weight: 500;
  font-size: 12px;
  color: var(--a-muted);
}

.cmp th .chip-c {
  color: var(--a-fg);
}

.cmp td:first-child {
  color: var(--a-muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

.cmp td code {
  font-size: 11.5px;
}

.cmp tr.differs td:not(:first-child) {
  background: rgba(217, 119, 6, 0.08);
}

.cmp tr.differs td:first-child::before {
  content: "≠ ";
  color: #c26a05;
  font-weight: 700;
}

.cmp tr:last-child td {
  border-bottom: 0;
}

.cmp-wrap {
  overflow-x: auto;
}

@media (max-width: 960px) {
  .across {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- gallery ---------- */

.gallery__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.gallery__tabs button {
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--slate);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery__tabs button:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.gallery__tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.gallery__tabs kbd {
  font-size: 10.5px;
}

.gallery__tabs button[aria-selected="true"] kbd {
  background: transparent;
  color: inherit;
  border-color: color-mix(in srgb, var(--paper) 40%, transparent);
}

.gallery__frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  aspect-ratio: 2200 / 1406;
}

.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__cap {
  margin-top: 14px;
  color: var(--slate);
  font-size: 15px;
  min-height: 1.6em;
}

.gallery__cap b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- kinds ---------- */

.kinds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.kind {
  padding: 22px 22px 26px 0;
  border-bottom: 1px solid var(--rule);
}

.kind:not(:nth-child(4n + 1)) {
  padding-left: 22px;
  border-left: 1px solid var(--rule);
}

.kind h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
  font-stretch: 100%;
}

.kind ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 3px;
  font-size: 15.5px;
}

.kind p {
  font-size: 15px;
  color: var(--slate);
}

@media (max-width: 960px) {
  .kinds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kind:not(:nth-child(4n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .kind:nth-child(2n) {
    padding-left: 22px;
    border-left: 1px solid var(--rule);
  }
}

.daily {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}

.daily h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.daily p {
  color: var(--slate);
  font-size: 15.5px;
}

@media (max-width: 860px) {
  .daily {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .daily {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- keys + privacy ---------- */

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.two h2 {
  margin-bottom: 24px;
}

.keys {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.keys td {
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  vertical-align: top;
}

.keys td:first-child {
  width: 128px;
  white-space: nowrap;
}

.keys kbd {
  font-size: 12px;
}

.keys td:last-child {
  color: var(--slate);
}

.privacy {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy li {
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
  color: var(--slate);
}

.privacy b {
  color: var(--ink);
  font-weight: 600;
  display: block;
}

@media (max-width: 860px) {
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- final download band ---------- */

.final {
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, var(--violet-soft), transparent 70%);
}

.final img {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 14px 24px rgba(91, 79, 232, 0.35));
}

.final .display {
  font-size: clamp(38px, 5.6vw, 72px);
}

.final .lede {
  margin: 20px auto 32px;
}

.final .cta {
  justify-content: center;
}

.final .fine {
  justify-content: center;
  margin-top: 22px;
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
  font-size: 14.5px;
  color: var(--slate);
}

.foot__in {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.foot h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
  font-stretch: 100%;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.foot a {
  color: var(--slate);
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot .brand {
  margin-bottom: 12px;
}

.foot__legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13.5px;
  color: var(--faint);
}

@media (max-width: 760px) {
  .foot__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot__in > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- command palette ---------- */

.pal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(10, 12, 20, 0.35);
  backdrop-filter: blur(3px);
}

.pal.is-open {
  display: flex;
}

.pal__box {
  width: min(600px, 100%);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: pal-in 0.14s ease;
}

@keyframes pal-in {
  from {
    transform: translateY(-6px) scale(0.99);
    opacity: 0;
  }
}

.pal__in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
}

.pal__in svg {
  width: 17px;
  height: 17px;
  color: var(--faint);
  flex: none;
}

.pal__in input {
  flex: 1;
  height: 54px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.pal__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 50vh;
  overflow-y: auto;
}

.pal__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.pal__list li small {
  margin-left: auto;
  color: var(--faint);
  font-size: 12.5px;
}

.pal__list li[aria-selected="true"] {
  background: var(--violet-soft);
  color: var(--violet-ink);
}

.pal__list li svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--faint);
}

.pal__list li[aria-selected="true"] svg {
  color: var(--violet-ink);
}

.pal__empty {
  padding: 18px;
  color: var(--slate);
  font-size: 14px;
}

.pal__foot {
  display: flex;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- sub pages ---------- */

.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 56px);
}

.page-head .display {
  font-size: clamp(42px, 6.4vw, 84px);
}

.page-head .lede {
  margin-top: 20px;
}

.dl-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px 28px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-pop);
}

.dl-card img {
  width: 72px;
  height: 72px;
}

.dl-card h2 {
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 26px;
}

.dl-card dl {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 14.5px;
}

.dl-card dl div {
  display: flex;
  gap: 6px;
}

.dl-card dt {
  color: var(--faint);
}

.dl-card dd {
  margin: 0;
  color: var(--ink);
}

.dl-card .cta {
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 760px) {
  .dl-card {
    grid-template-columns: auto 1fr;
  }
  .dl-card .cta {
    grid-column: 1 / -1;
  }
}

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  font-size: 14.5px;
}

.toc h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
  font-stretch: 100%;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--rule);
}

.toc li a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--slate);
  text-decoration: none;
}

.toc li a:hover {
  color: var(--ink);
}

.toc li a.is-active {
  color: var(--ink);
  border-left-color: var(--violet);
  font-weight: 550;
}

.toc li a small {
  color: var(--faint);
  font-size: 12px;
  margin-left: 6px;
}

@media (max-width: 860px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .toc {
    position: static;
  }
}

.prose {
  max-width: 760px;
}

.prose > section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.prose > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.prose h2 {
  font-stretch: 115%;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  margin-bottom: 14px;
}

.prose h3 {
  font-stretch: 106%;
  font-weight: 640;
  font-size: 18.5px;
  letter-spacing: -0.012em;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: var(--slate);
}

.prose p + p {
  margin-top: 12px;
}

.prose p strong,
.prose li strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  padding-left: 20px;
  margin: 10px 0 0;
}

.prose li + li {
  margin-top: 6px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0 !important;
  margin: 22px 0 0 !important;
  display: grid;
  gap: 0;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  margin: 0 !important;
}

.steps > li > * {
  grid-column: 2;
}

.steps > li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 9;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  background: var(--violet-soft);
  color: var(--violet-ink);
}

.steps > li > b {
  color: var(--ink);
  font-weight: 620;
  font-size: 17px;
}

.steps > li > p {
  margin-top: 4px;
}

.code {
  margin-top: 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.code header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--faint);
  font-family: var(--mono);
}

.code pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.code pre .p {
  color: var(--faint);
  user-select: none;
}

.code pre .c {
  color: var(--faint);
}

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--ink);
  font-size: 15px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}

.callout svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--warn);
}

.callout p {
  color: var(--ink) !important;
}

.reqs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.reqs div {
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

.reqs dt {
  font-size: 13px;
  color: var(--faint);
}

.reqs dd {
  margin: 4px 0 0;
  font-weight: 560;
  color: var(--ink);
}

@media (max-width: 700px) {
  .reqs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* changelog */
.release__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--faint);
}

.release__meta .v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.release__meta .latest {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-ink);
}

.release .h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 8px;
}

.release .summary {
  font-size: 18px;
  color: var(--slate);
  margin-bottom: 8px;
}

.release h3 {
  margin-top: 30px;
}

.release .also {
  margin-top: 28px;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

.hero-in > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-in > *:nth-child(2) {
  animation-delay: 0.06s;
}

.hero-in > *:nth-child(3) {
  animation-delay: 0.12s;
}

.demo-wrap.hero-rise {
  animation: rise 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* demo additions */
.drawer.still {
  animation: none;
}

.ev.normal {
  border-left-color: var(--a-border);
}

.ev.normal .reason {
  color: var(--a-muted);
}

.links .only-sm {
  display: none;
}

@media (max-width: 760px) {
  .links .only-sm {
    display: block;
  }
}

/* ---- 0.6: resource map ---- */

.rmap__canvas {
  position: relative;
  aspect-ratio: 640 / 300;
  margin: 14px;
  container-type: inline-size;
  background-color: var(--a-bg);
  background-image: radial-gradient(var(--a-border) 1px, transparent 1px);
  background-size: 16px 16px;
  border-radius: 10px;
}

.rmap__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rmap__lines path {
  fill: none;
  stroke: var(--a-faint);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
  transition: opacity 0.15s, stroke 0.15s;
}

.rmap__lines path.broken {
  stroke: #dc2626;
  stroke-dasharray: 4 3;
  opacity: 0.8;
}

.rmap__lines path.lit {
  stroke: var(--a-accent);
  stroke-width: 2.2;
  opacity: 1;
}

.rmap__lines path.dim {
  opacity: 0.15;
}

.rmap__col {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rn {
  --left: 10;
  --w: 120;
  pointer-events: auto;
  position: absolute;
  left: calc(var(--left) / 640 * 100%);
  top: calc((var(--y) - 21) / 300 * 100%);
  width: calc(var(--w) / 640 * 100%);
  height: calc(42 / 300 * 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 0 0.9cqw 0 1.2cqw;
  text-align: left;
  font: inherit;
  color: var(--a-fg);
  background: var(--a-panel);
  border: 1px solid var(--a-border);
  border-left: 3px solid #16a34a;
  border-radius: 7px;
  cursor: default;
  transition: opacity 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.rmap__col[style*="--x: 1"] .rn {
  --left: 190;
  --w: 110;
}

.rmap__col[style*="--x: 2"] .rn {
  --left: 330;
  --w: 110;
}

.rmap__col[style*="--x: 3"] .rn {
  --left: 470;
  --w: 160;
}

.rn b,
.rn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn b {
  font-size: max(9px, 1.95cqw);
  font-weight: 600;
}

.rn span {
  font-size: max(8px, 1.6cqw);
  color: var(--a-muted);
}

.rn.warn {
  border-left-color: #d97706;
}

.rn.bad {
  border-left-color: #dc2626;
}

.rn.idle {
  border-left-color: var(--a-faint);
}

.rn.missing {
  border-style: dashed;
  border-left-style: solid;
  background: transparent;
}

.rn.lit {
  box-shadow: 0 0 0 2px var(--a-accent);
}

.rn.dim {
  opacity: 0.35;
}

/* ---- 0.6: Helm ---- */

.hist {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.hist th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--a-faint);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid var(--a-border);
}

.hist td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--a-border);
  white-space: nowrap;
}

.hist td:nth-child(4) {
  white-space: normal;
  color: var(--a-muted);
}

.hist tr.on td {
  background: var(--a-active);
}

.a-btn--sm {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 9px;
}

.helm-mock .diff {
  margin-top: 0;
}

/* ---- 0.5: assistant ---- */

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.providers span {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
}

.chat .mock__b {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat .mock__h svg {
  color: #d97757;
}

.chat__q {
  align-self: flex-end;
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px 12px 3px 12px;
  background: var(--a-accent);
  color: #fff;
}

.chat__q small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}

.chat__tools {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chat__tools span {
  align-self: flex-start;
  max-width: 100%;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--a-border);
  border-radius: 7px;
  background: var(--a-bg);
  color: var(--a-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat__tools span.w {
  border-color: color-mix(in srgb, #d97706 45%, var(--a-border));
  color: #c26a05;
}

.chat__a p {
  margin: 0 0 8px;
}

.chat__a p:last-child {
  margin: 0;
}

.chat__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px 16px;
  padding: 9px 12px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  color: var(--a-faint);
  font-size: 13px;
}

.chat__in i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--a-accent);
  color: #fff;
}

/* the demo's map page */
.dmap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dmap__app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1.4fr);
  align-items: center;
  gap: 0;
  padding: 10px;
  border: 1px solid var(--a-border);
  border-radius: 9px;
  background: var(--a-panel);
}

.dmap__app.bad {
  border-color: rgba(220, 38, 38, 0.45);
}

.dmap__arrow {
  height: 1px;
  background: var(--a-faint);
  opacity: 0.6;
}

.dmap__pods {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dn {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid var(--a-border);
  border-left: 3px solid #16a34a;
  border-radius: 6px;
  background: var(--a-bg);
  font-size: 11.5px;
}

.dn b,
.dn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dn span {
  color: var(--a-muted);
  font-size: 10.5px;
}

.dn.warn {
  border-left-color: #d97706;
}

.dn.bad {
  border-left-color: #dc2626;
}

.dn.idle {
  border-left-color: var(--a-faint);
}
