/* ── Inter, self-hosted ───────────────────────────────────────────────────────────────────────────
   Served from our own origin instead of fonts.googleapis.com. Three reasons, in order of weight:
     1. PRIVACY — a third-party font request hands every visitor's IP address to Google before they
        have interacted with anything. Self-hosting removes that entirely (and is what makes the
        `font-src 'self'` in our CSP possible).
     2. PERFORMANCE — the Google Fonts route costs two extra DNS lookups + TLS handshakes and a
        render-blocking stylesheet on a third-party origin before the first byte of font arrives.
     3. STABILITY — the font can no longer change or disappear underneath a deployment.
   One VARIABLE font covers 400–600 (the only weights this design uses), so the whole family is a
   single 47 KB request instead of three static faces. latin-ext is a separate subset the browser
   fetches only if the page actually contains those glyphs. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* Shared site styles — Autovideo launcher palette, flat surfaces */

:root {
  --site-bg: #111114;
  --site-panel: #18181b;
  --site-surface: #1c1c1f;
  --site-surface-raised: #222225;
  --site-border: #27272a;
  --site-sep: #1f1f22;
  --site-sep-strong: #1e1e22;
  --site-text: #ececf1;
  --site-value: #d4d4d8;
  --site-mute: #a1a1aa;
  --site-label: #8b8b92;
  --site-focus: #6b8699;
  --site-focus-glow: rgba(107, 134, 153, 0.28);
  --site-primary: #3d4f5f;
  --site-primary-hi: #4a5f72;
  --site-accent-border: rgba(107, 134, 153, 0.42);
  --site-action-bg: #131316;
  --site-action-bg-hover: #222225;
  --site-paper: #fafafa;
  --site-paper-text: #18181b;
  --site-paper-mute: #52525b;
  --site-paper-label: #71717a;
  --site-paper-border: #e4e4e7;
  --site-paper-surface: #ffffff;
}

html,
body {
  background: var(--site-bg);
  color: var(--site-text);
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

::selection {
  background: var(--site-focus);
  color: #fff;
}

.hair {
  background: var(--site-sep);
}
.hair-strong {
  background: var(--site-border);
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--site-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--site-focus-glow);
}

/* Primary CTA — white on dark (Cursor-style download) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--site-paper-text);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.14s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--site-text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: none;
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    filter 0.14s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--site-text);
}
.btn-ghost:active {
  filter: brightness(0.92);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  scrollbar-width: none;
}

.brand-mark {
  display: block;
  flex: none;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  flex: none;
  object-fit: contain;
}

.eyebrow {
  font-family: ui-monospace, 'Cascadia Mono', 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8b92;
}

/* App layout — centered column (navbar, pages, footer) */
.site-container {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Pricing cards — fixed intro block keeps dividers & CTAs aligned */
.pricing-plans {
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 100%;
}

.plan-card-intro {
  flex: none;
  height: 15.75rem;
  display: flex;
  flex-direction: column;
}

.plan-card-badge {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  height: 1.75rem;
  flex: none;
}

.plan-card-sub {
  flex: 1;
  min-height: 0;
  margin-top: 0.375rem;
}

.plan-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  height: 3.25rem;
  flex: none;
  margin-top: 1.5rem;
}

.plan-card-unit {
  height: 2.5rem;
  flex: none;
  margin-top: 0.5rem;
}

.plan-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.plan-card-features {
  min-height: 11.25rem;
}

.section-dark {
  background: var(--site-bg);
  color: var(--site-text);
}

.section-light {
  background: var(--site-paper);
  color: var(--site-paper-text);
}

.section-light .eyebrow {
  color: var(--site-paper-label);
}

.section-light .btn-primary {
  color: #fafafa;
  background: var(--site-paper-text);
  border-color: var(--site-paper-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.section-light .btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.section-light .btn-ghost {
  color: var(--site-paper-text);
  background: var(--site-paper-surface);
  border-color: var(--site-paper-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.section-light .btn-ghost:hover {
  background: #fafafa;
  border-color: #d4d4d8;
  color: var(--site-paper-text);
}

/* Interior pages reuse ink-* utilities — remap on light bands */
.section-light .text-ink-text {
  color: var(--site-paper-text);
}
.section-light .text-ink-mute {
  color: var(--site-paper-mute);
}
.section-light .text-ink-label {
  color: var(--site-paper-label);
}
.section-light .text-ink-value {
  color: var(--site-paper-mute);
}
.section-light .text-ink-faint {
  color: var(--site-paper-label);
}

.section-light .bg-ink-s1,
.section-light .bg-ink-s2,
.section-light .bg-ink-s3 {
  background-color: var(--site-paper-surface);
}
.section-light .border-ink-b1,
.section-light .border-ink-b2,
.section-light .border-ink-b3 {
  border-color: var(--site-paper-border);
}
.section-light .bg-ink-b2 {
  background-color: var(--site-paper-border);
}
.section-light .hair {
  background: var(--site-paper-border);
}
.section-light .bg-ink-ax {
  background-color: var(--site-paper-text);
}

.section-light .rounded-\[8px\].border.bg-ink-s2,
.section-light .rounded-\[6px\].border.bg-ink-s2 {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.app-screenshot-placeholder {
  background: var(--site-surface-raised, #1c1c1f);
}

.section-light .app-screenshot-placeholder {
  background: #f4f4f5;
}

/* Status & changelog tag chips — adaptive across light/dark bands.
   Inline-hex chips were unreadable on light sections; these remap like ink-* utilities. */
.tag-chip {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, 'Cascadia Mono', 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}
/* dark bands (default) */
.tag-chip--accent {
  background: rgba(107, 134, 153, 0.16);
  color: #c5d5e3;
  border-color: rgba(107, 134, 153, 0.42);
}
.tag-chip--neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  border-color: #2e2e33;
}
.tag-chip--muted {
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  border-color: #29292e;
}
/* light bands */
.section-light .tag-chip--accent {
  background: rgba(107, 134, 153, 0.16);
  color: #3c5161;
  border-color: rgba(107, 134, 153, 0.5);
}
.section-light .tag-chip--neutral {
  background: #f4f4f5;
  color: #52525b;
  border-color: #e4e4e7;
}
.section-light .tag-chip--muted {
  background: #fafafa;
  color: #71717a;
  border-color: #e4e4e7;
}

/* Navbar links & actions */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--site-value);
  border-radius: 6px;
  text-decoration: none;
  transition:
    color 0.14s ease,
    background-color 0.14s ease;
}

.nav-link:hover {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-signin {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--site-value);
  border-radius: 6px;
  text-decoration: none;
  transition:
    color 0.14s ease,
    background-color 0.14s ease;
}

.nav-signin:hover {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-signin.is-active {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-download {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.nav-on-light .nav-link {
  color: var(--site-paper-mute);
}
.nav-on-light .nav-link:hover {
  color: var(--site-paper-text);
  background: rgba(0, 0, 0, 0.05);
}
.nav-on-light .nav-link.is-active {
  color: var(--site-paper-text);
  background: rgba(0, 0, 0, 0.07);
}

.nav-on-light .nav-signin {
  color: var(--site-paper-mute);
}
.nav-on-light .nav-signin:hover {
  color: var(--site-paper-text);
  background: rgba(0, 0, 0, 0.05);
}
.nav-on-light .nav-signin.is-active {
  color: var(--site-paper-text);
  background: rgba(0, 0, 0, 0.07);
}

/* Navbar on home light bands */
.nav-on-light .btn-primary {
  color: #fafafa;
  background: var(--site-paper-text);
  border-color: var(--site-paper-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.nav-on-light .btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/*
 * Wordmark SVGs embed raster PNGs with soft alpha edges (export artifact).
 * Flatten to solid ink on paper / solid white on dark so the logo matches section bg.
 */
.brand-wordmark--on-paper {
  filter: brightness(0);
}

.brand-wordmark--on-dark {
  filter: brightness(0) invert(1);
}

.download-variant {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.download-variant-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--site-paper-border);
  background: var(--site-paper-surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.download-variant-btn:hover {
  border-color: #d4d4d8;
  background: #fafafa;
}

.download-variant-btn--active {
  border-color: var(--site-paper-text);
  background: #fafafa;
}

.download-variant-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-paper-text);
}

.download-variant-size {
  font-size: 0.6875rem;
  color: var(--site-paper-mute);
}

.download-cta {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  text-align: center;
}

.download-cta-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.download-cta-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.72;
  letter-spacing: 0.01em;
}

.download-alt {
  text-align: center;
}

.download-alt-trigger {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--site-paper-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.download-alt-trigger:hover {
  color: var(--site-paper-text);
}

.download-select {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  border: 1px solid var(--site-paper-border);
  background: var(--site-paper-surface);
  font-size: 0.8125rem;
  color: var(--site-paper-text);
  cursor: pointer;
}

.download-select:focus {
  outline: none;
  border-color: var(--site-focus);
  box-shadow: 0 0 0 2px rgba(107, 134, 153, 0.2);
}

/* Auth — above-the-fold split screen */
.auth-screen {
  min-height: calc(100svh - 3.5rem);
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
}

.auth-screen-inner {
  width: 100%;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  .auth-screen-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

.auth-screen-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .auth-screen-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.5rem 3rem;
  }

  .auth-intro {
    grid-column: span 5;
  }

  .auth-screen-form {
    grid-column: 7 / span 6;
  }
}

.auth-intro {
  min-width: 0;
}

.auth-card {
  border-radius: 8px;
  border: 1px solid var(--site-paper-border);
  background: var(--site-paper-surface);
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-card .btn-primary {
  color: #fafafa;
  background: var(--site-paper-text);
  border-color: var(--site-paper-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.auth-card .btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.auth-card .btn-ghost {
  color: var(--site-paper-text);
  background: var(--site-paper-surface);
  border-color: var(--site-paper-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-card .btn-ghost:hover {
  background: #fafafa;
  border-color: #d4d4d8;
  color: var(--site-paper-text);
}

@media (min-width: 640px) {
  .auth-card {
    padding: 1.5rem;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.auth-form-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.125rem;
}

.auth-oauth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
}

.auth-oauth-grid .btn-ghost {
  justify-content: center;
  width: 100%;
}

.auth-switch {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--site-paper-border);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--site-paper-mute);
}

.auth-switch-link {
  color: var(--site-paper-text);
  font-weight: 500;
  text-decoration: none;
}

.auth-switch-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal {
  margin-top: 0.875rem;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--site-paper-label);
}

.auth-inline-link {
  color: var(--site-paper-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--site-paper-border);
  transition: color 0.14s ease, text-decoration-color 0.14s ease;
}

.auth-inline-link:hover {
  color: var(--site-paper-text);
  text-decoration-color: #a1a1aa;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-family: ui-monospace, 'Cascadia Mono', 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--site-paper-label);
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.84375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--site-paper-text);
  background: var(--site-paper-surface);
  border: 1px solid var(--site-paper-border);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.form-input::placeholder {
  color: var(--site-paper-label);
}

.form-input:hover {
  border-color: #d4d4d8;
}

.form-input:focus {
  outline: none;
  border-color: #a1a1aa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(24, 24, 27, 0.06);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--site-paper-border);
}

/* Auth — password show/hide toggle */
.form-input-wrap {
  position: relative;
}

.form-input--with-toggle {
  padding-right: 2.75rem;
}

.form-input-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--site-paper-label);
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}

.form-input-toggle:hover {
  color: var(--site-paper-text);
  background: #f4f4f5;
}

.form-input-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.12);
}

/* Auth — buttons styled as inline links (forgot / back / resend) */
.auth-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.auth-resend {
  align-self: flex-start;
  margin-top: -0.25rem;
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-paper-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-resend:disabled {
  opacity: 0.5;
  cursor: default;
}

.auth-form-intro {
  margin-bottom: 0.25rem;
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--site-paper-mute);
}

.auth-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

/* Auth — disabled / in-flight buttons read as inactive */
.auth-card .btn-primary:disabled,
.auth-card .btn-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-card .btn-primary:disabled:hover,
.auth-card .btn-ghost:disabled:hover {
  background: var(--site-paper-text);
  border-color: var(--site-paper-text);
}

.auth-card .btn-ghost:disabled:hover {
  background: var(--site-paper-surface);
  border-color: var(--site-paper-border);
}

/* Auth — small field hints (e.g. Caps Lock) */
.form-hint {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--site-paper-mute);
}

.form-hint--warn {
  color: #b45309;
}

/* Auth — password strength meter */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.375rem;
}

.pw-strength-track {
  display: flex;
  gap: 3px;
  flex: 1;
}

.pw-strength-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--site-paper-border);
  transition: background 0.18s ease;
}

.pw-strength-label {
  font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Dashboard — same ink stack as home .section-dark (bg + s2 cards + b2 borders) */
.dash-body {
  overflow: hidden;
  height: 100svh;
  background: var(--site-bg);
}

.dash-body #root {
  height: 100%;
  min-height: 100svh;
}

.dash-app {
  --dash-pad-y: 1.5rem;
  --dash-pad-x: 1.75rem;
  --dash-gap-page: 0.75rem;
  --dash-pad-block: 1.125rem 1.375rem;
  --dash-gap-block: 0.875rem;
  display: flex;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--site-bg);
  color: var(--site-text);
}

.dash-app .eyebrow {
  color: var(--site-label);
}

/* Sidebar — single horizontal inset for all rows */
.dash-sidebar {
  --dash-side-pad-x: 0.625rem;
  display: flex;
  flex-direction: column;
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--site-sep);
  background: var(--site-bg);
  padding: 0.75rem var(--dash-side-pad-x);
  overflow: visible;
}

.dash-sidebar-back {
  margin-bottom: 0.375rem;
}

.dash-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dash-nav-heading {
  margin: 0.875rem 0 0.375rem;
  padding-left: var(--dash-side-pad-x);
}

.dash-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem var(--dash-side-pad-x);
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--site-mute);
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.dash-nav-item:hover {
  background: var(--site-panel);
  color: var(--site-text);
}

.dash-nav-item.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  color: var(--site-text);
}

.dash-nav-icon {
  opacity: 0.65;
  flex-shrink: 0;
}

.dash-nav-item.is-active .dash-nav-icon {
  opacity: 1;
  color: var(--site-focus);
}

.dash-sidebar-foot {
  margin-top: auto;
  padding-top: 0.625rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 20;
  overflow: visible;
}

.dash-upgrade-card {
  position: relative;
  display: block;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--site-sep);
  background: var(--site-surface);
  text-decoration: none;
  transition: border-color 0.14s ease;
}

.dash-upgrade-card:hover {
  border-color: var(--site-border);
}

.dash-upgrade-title {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-text);
}

.dash-upgrade-meta {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--site-mute);
}

.dash-upgrade-arrow {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  font-size: 0.8125rem;
  color: var(--site-focus);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.375rem var(--dash-side-pad-x);
}

.dash-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e879a6;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.dash-user-meta {
  min-width: 0;
  flex: 1;
}

.dash-user-email {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--site-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-plan {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--site-mute);
}

.dash-user-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0 -0.25rem 0 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--site-mute);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.dash-user-menu:hover,
.dash-user-menu.is-open {
  background: var(--site-panel);
  color: var(--site-text);
}

.dash-user-wrap {
  position: relative;
  width: 100%;
}

.dash-user-popover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.5rem);
  min-width: 15.5rem;
  border-radius: 10px;
  border: 1px solid var(--site-sep);
  background: var(--site-surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.dash-user-popover-head {
  padding: 0.75rem;
  border-bottom: 1px solid var(--site-sep);
}

.dash-user-popover-email {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--site-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-popover-upgrade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--site-border);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-text);
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.dash-user-popover-upgrade:hover {
  background: var(--site-panel);
  border-color: var(--site-border);
}

.dash-user-popover-body,
.dash-user-popover-foot {
  padding: 0.375rem;
}

.dash-user-popover-foot {
  border-top: 1px solid var(--site-sep);
}

.dash-user-popover-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
}

.dash-user-popover-item:hover {
  background: var(--site-panel);
}

.dash-user-popover-item span {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.dash-user-menu-icon {
  flex-shrink: 0;
  opacity: 0.85;
  color: var(--site-mute);
}

.dash-user-popover-item .dash-user-menu-icon:last-child {
  margin-left: auto;
  opacity: 0.5;
}

/* Main */
.dash-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--site-bg);
}

.dash-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.dash-content {
  width: 100%;
  padding: var(--dash-pad-y) var(--dash-pad-x) calc(var(--dash-pad-y) + 0.25rem);
}

.dash-page {
  display: flex;
  flex-direction: column;
  gap: var(--dash-gap-page);
  width: 100%;
}

/* Cursor-style bordered blocks */
.dash-block {
  border: 1px solid var(--site-sep);
  border-radius: 8px;
  background: var(--site-surface);
  padding: var(--dash-pad-block);
}

.dash-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: var(--dash-gap-block);
}

.dash-block-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--site-text);
}

.dash-block-meta {
  font-size: 0.75rem;
  color: var(--site-mute);
  white-space: nowrap;
}

.dash-block-nested {
  margin-top: var(--dash-gap-block);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--site-sep);
  background: var(--site-panel);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-block-nested--flat {
  margin-top: 0;
}

.dash-block-note {
  margin: 0.875rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--site-mute);
}

.dash-block-note--only {
  margin: 0;
}

.dash-inline-a {
  color: var(--site-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dash-inline-a:hover {
  color: var(--site-value);
}

/* Plan cards — vertical like Cursor */
.dash-plan-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dash-gap-page);
}

.dash-plan-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--dash-pad-block);
  border-radius: 8px;
  border: 1px solid var(--site-sep);
  background: var(--site-surface);
}

.dash-plan-card--featured {
  border-color: var(--site-border);
}

.dash-plan-card .eyebrow {
  margin: 0;
}

.dash-plan-name {
  margin: 0.375rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dash-plan-price-line {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dash-plan-currency {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--site-mute);
}

.dash-plan-unit {
  margin-left: 0.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--site-mute);
}

.dash-plan-meta {
  margin: 0.25rem 0 0;
  flex: 1;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--site-mute);
}

.dash-plan-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.625rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
}

/* Progress bars — thin, Cursor blue */
.dash-app {
  --dash-meter-fill: #5b9fd4;
  --dash-meter-track: #2a2a2e;
}

.dash-meter {
  margin: 0;
}

.dash-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  margin-bottom: 0.4375rem;
}

.dash-meter-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-text);
}

.dash-meter-pct {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--site-mute);
}

.dash-meter-track {
  height: 6px;
  border-radius: 999px;
  background: var(--dash-meter-track);
  overflow: hidden;
}

.dash-meter--spend .dash-meter-top {
  display: none;
}

.dash-meter--spend {
  margin-bottom: 0.625rem;
}

.dash-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--dash-meter-fill);
  transition: width 0.35s ease;
}

/* On-demand footer row */
.dash-ondemand-amount {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dash-ondemand-zero {
  color: var(--site-text);
}

.dash-ondemand-cap {
  color: var(--site-mute);
}

.dash-ondemand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.dash-ondemand-foot-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-text);
}

.dash-ondemand-foot--actions {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--site-sep);
}

.dash-limit-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dash-limit-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--site-sep);
  background: var(--site-action-bg);
}

.dash-limit-opt {
  padding: 0.3125rem 0.625rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--site-mute);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.dash-limit-opt--active {
  background: var(--site-surface-raised);
  color: var(--site-text);
}

.dash-limit-input-wrap {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border: 1px solid var(--site-sep);
  border-radius: 6px;
  background: var(--site-panel);
}

.dash-limit-currency {
  padding-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--site-mute);
}

.dash-limit-input {
  width: 2.75rem;
  padding: 0 0.5rem 0 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-text);
}

.dash-limit-input:focus {
  outline: none;
}

.dash-limit-save {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

/* Rows inside blocks */
.dash-row-list {
  border: 1px solid var(--site-sep);
  border-radius: 8px;
  overflow: hidden;
  background: var(--site-panel);
}

.dash-block > .dash-row-list {
  margin-top: 0;
}

.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6875rem 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--site-sep);
}

.dash-row:last-child {
  border-bottom: none;
}

.dash-row--link {
  text-decoration: none;
  transition: background 0.12s ease;
}

.dash-row--link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dash-row-label {
  color: var(--site-mute);
}

.dash-row-value {
  font-weight: 500;
  color: var(--site-text);
  text-align: right;
}

/* Overview */
.dash-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.dash-overview-metric {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  border-radius: 6px;
}

.dash-overview-metric.is-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dash-overview-metric-label {
  font-size: 0.6875rem;
  color: var(--site-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-overview-metric-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--site-text);
}

.dash-overview-divider {
  height: 1px;
  margin: 0.5rem 0;
  background: var(--site-sep);
}

.dash-overview-links {
  display: flex;
  flex-direction: column;
}

.dash-overview-link {
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-text);
  text-decoration: none;
  border-bottom: 1px solid var(--site-sep);
  transition: color 0.12s ease;
}

.dash-overview-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-overview-link:first-child {
  padding-top: 0;
}

.dash-overview-link:hover {
  color: var(--site-value);
}

/* Page header */
.dash-page-header {
  margin-bottom: 0.125rem;
}

.dash-page-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--site-text);
}

.dash-page-sub {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--site-mute);
}

.dash-block-meta--link {
  text-decoration: none;
  transition: color 0.12s ease;
}

.dash-block-meta--link:hover {
  color: var(--site-text);
}

.dash-block-meta--btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* Meter absolute-value detail */
.dash-meter-detail {
  margin-right: 0.5rem;
  color: var(--site-mute);
  font-weight: 400;
}

/* Bar chart */
.dash-chart {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.dash-chart-plot {
  position: relative;
}

.dash-chart-grid {
  position: absolute;
  inset: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.dash-chart-grid span {
  flex: 1;
  border-top: 1px solid var(--site-sep);
}

.dash-chart-grid span:first-child {
  border-top: none;
}

.dash-chart-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 184px;
}

.dash-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  min-width: 0;
}

.dash-chart-bar-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dash-chart-bar {
  position: relative;
  width: 100%;
  max-width: 56px;
  min-height: 4px;
  border-radius: 7px 7px 3px 3px;
  background: rgba(107, 134, 153, 0.28);
  transition: height 0.3s ease, background 0.18s ease;
}

.dash-chart-col:hover .dash-chart-bar {
  background: rgba(107, 134, 153, 0.42);
}

.dash-chart-bar.is-peak {
  background: linear-gradient(180deg, var(--site-focus) 0%, rgba(107, 134, 153, 0.6) 100%);
}

.dash-chart-bar-val {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--site-mute);
}

.dash-chart-bar.is-peak .dash-chart-bar-val {
  color: var(--site-text);
}

.dash-chart-label {
  font-size: 0.6875rem;
  color: var(--site-label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dash-chart-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--site-mute);
  padding-top: 0.75rem;
  border-top: 1px solid var(--site-sep);
}

.dash-chart-caption strong {
  color: var(--site-text);
  font-weight: 600;
}

.dash-chart-caption-sep {
  color: var(--site-label);
}

.dash-chart-caption-mute {
  color: var(--site-label);
}

/* Stat grid */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--dash-gap-page);
}

.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
  padding: var(--dash-pad-block);
  border-radius: 10px;
  border: 1px solid var(--site-sep);
  background: var(--site-panel);
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.dash-stat.is-link:hover {
  border-color: var(--site-border);
  background: var(--site-surface);
}

.dash-stat {
  gap: 0.3125rem;
}

.dash-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-label);
}

.dash-stat-value {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--site-text);
}

.dash-stat-sub {
  font-size: 0.75rem;
  color: var(--site-mute);
}

/* Table */
.dash-table {
  display: flex;
  flex-direction: column;
}

.dash-table-row {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--site-sep);
  font-size: 0.8125rem;
  color: var(--site-value);
}

.dash-table-row:last-child {
  border-bottom: none;
}

.dash-table-head {
  padding-top: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-label);
}

.dash-table-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-table-cell--end {
  text-align: right;
  justify-self: end;
}

.dash-table-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--site-mute);
  text-decoration: none;
  transition: color 0.12s ease;
}

.dash-table-link:hover {
  color: var(--site-text);
}

.dash-empty {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--site-mute);
}

/* Badge */
.dash-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.0625rem 0.4375rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  vertical-align: middle;
}

.dash-badge--ok {
  color: #7fc7a0;
  border-color: rgba(127, 199, 160, 0.32);
  background: rgba(127, 199, 160, 0.1);
}

.dash-badge--warn {
  color: #d6b46a;
  border-color: rgba(214, 180, 106, 0.32);
  background: rgba(214, 180, 106, 0.1);
}

.dash-table-cell .dash-badge {
  margin-left: 0;
}

/* Toggles */
.dash-toggle-list {
  display: flex;
  flex-direction: column;
}

.dash-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--site-sep);
}

.dash-toggle-row:first-child {
  padding-top: 0;
}

.dash-toggle-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.dash-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.dash-toggle-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-text);
}

.dash-toggle-desc {
  font-size: 0.75rem;
  color: var(--site-mute);
}

.dash-switch {
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--site-border);
  background: var(--site-action-bg);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.dash-switch.is-on {
  background: var(--site-focus);
  border-color: var(--site-focus);
}

.dash-switch-knob {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d4d4d8;
  transition: transform 0.16s ease, background 0.16s ease;
}

.dash-switch.is-on .dash-switch-knob {
  transform: translateX(16px);
  background: #fff;
}

/* Seats */
.dash-seat-list {
  display: flex;
  flex-direction: column;
}

.dash-seat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--site-sep);
}

.dash-seat:first-child {
  padding-top: 0;
}

.dash-seat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--site-text);
  text-transform: uppercase;
}

.dash-seat-icon--pending {
  color: var(--site-mute);
}

.dash-seat-meta {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  min-width: 0;
  flex: 1;
}

.dash-seat-name {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--site-text);
}

.dash-seat-detail {
  font-size: 0.75rem;
  color: var(--site-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-seat-action {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.25rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--site-mute);
  cursor: pointer;
  transition: color 0.12s ease;
}

.dash-seat-action:hover {
  color: #e08a8a;
}

.dash-seat-action--muted {
  color: var(--site-label);
  cursor: default;
}

.dash-seat-action--muted:hover {
  color: var(--site-label);
}

/* Invite */
.dash-invite {
  margin-top: var(--dash-gap-block);
}

.dash-invite-field {
  display: flex;
  gap: 0.5rem;
}

.dash-invite-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 0.625rem;
  border-radius: 7px;
  border: 1px solid var(--site-border);
  background: var(--site-action-bg);
  color: var(--site-text);
  font-size: 0.8125rem;
}

.dash-invite-input::placeholder {
  color: var(--site-label);
}

.dash-invite-input:focus {
  outline: none;
  border-color: var(--site-focus);
  box-shadow: 0 0 0 3px var(--site-focus-glow);
}

.dash-invite-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dash-invite-msg {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--site-mute);
}

.dash-invite-msg--error {
  color: #e08a8a;
}

/* Responsive */
@media (max-width: 960px) {
  .dash-plan-row,
  .dash-overview-metrics,
  .dash-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-content {
    padding: 0.75rem 0.875rem 1rem;
  }

  .dash-page {
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════════
   PRIVATE PREVIEW — shell, landing, auth/handoff surfaces
   Dark-only, matching the ink palette above. Every colour pair below meets WCAG AA (>= 4.5:1) for
   body text and >= 3:1 for large text and UI borders.
   ══════════════════════════════════════════════════════════════════════════════════════════════ */

/* Motion: honour the OS "reduce motion" setting everywhere, including the framer-motion shim, which
   animates via inline transitions. Without this the shim would animate for users who asked it not to. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen-reader-only, but focusable content stays reachable (see .preview-skip). */
.sr-only-abs {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.preview-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  background: var(--site-bg);
}

.preview-skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 50;
  border-radius: 6px;
  border: 1px solid var(--site-border);
  background: var(--site-panel);
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--site-text);
  transition: top 0.15s ease;
}
.preview-skip:focus {
  top: 0.75rem;
}

.preview-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  outline: none;
}

.preview-header {
  flex: none;
  padding: 1.5rem 0 0.5rem;
}
.preview-header-inner {
  display: flex;
  align-items: center;
}
.preview-brand {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0.25rem;
  margin: -0.25rem;
}

.preview-footer {
  flex: none;
  padding: 1.5rem 0 2rem;
}
.preview-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--site-sep);
  padding-top: 1.25rem;
}
.preview-footer-copy {
  font-size: 0.75rem;
  color: var(--site-label);
  margin: 0;
}
.preview-footer-nav {
  display: flex;
  gap: 1.25rem;
}
.preview-footer-nav a {
  font-size: 0.75rem;
  color: var(--site-mute);
  text-decoration: none;
  border-radius: 3px;
}
.preview-footer-nav a:hover {
  color: var(--site-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── landing ─────────────────────────────────────────────────────────────────────────────────── */

.preview-hero {
  /* padding-block, NOT the `padding` shorthand: this element also carries .site-container, whose
     horizontal padding is what keeps text off the edge of a phone screen. The shorthand would reset
     it to 0 and the bug is invisible on a desktop, where the 1040px max-width hides it. */
  padding-block: 3rem 3.5rem;
  text-align: left;
}
@media (min-width: 640px) {
  .preview-hero {
    padding-block: 4.5rem 5rem;
  }
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--site-accent-border);
  border-radius: 999px;
  padding: 0.3125rem 0.75rem;
  font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--site-value);
  background: rgba(107, 134, 153, 0.08);
}
.preview-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--site-focus);
}

.preview-hero-title {
  margin: 1.75rem 0 0;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: var(--site-text);
}
.preview-hero-sub {
  margin: 0.75rem 0 0;
  font-size: clamp(18px, 3.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--site-mute);
}
.preview-hero-lede {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--site-mute);
}
.preview-hero-lede strong {
  color: var(--site-value);
  font-weight: 600;
}

.preview-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.preview-actions .btn-primary,
.preview-actions .btn-ghost {
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
}

/* ── waitlist ────────────────────────────────────────────────────────────────────────────────── */

.waitlist {
  margin-top: 2rem;
  max-width: 28rem;
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
@media (min-width: 480px) {
  .waitlist-form {
    flex-direction: row;
    align-items: flex-start;
  }
}
.waitlist-field {
  flex: 1 1 auto;
  min-width: 0;
}
.waitlist-input {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid var(--site-border);
  background: var(--site-panel);
  padding: 0.6875rem 0.875rem;
  font-size: 0.875rem;
  color: var(--site-text);
  outline: none;
}
.waitlist-input::placeholder {
  color: var(--site-label);
}
.waitlist-input:hover {
  border-color: #34343a;
}
.waitlist-input:focus-visible {
  border-color: var(--site-focus);
  box-shadow: 0 0 0 3px var(--site-focus-glow);
}
.waitlist-input[aria-invalid='true'] {
  border-color: #f87171;
}
.waitlist-submit {
  min-height: 44px;
  flex: none;
}
/* Honeypot: hidden from people and assistive tech, present for bots. `display:none` is avoided because
   some bots skip such fields; this keeps it in the layout tree but out of view and out of tab order. */
.waitlist-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.waitlist-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--site-label);
}
.waitlist-note a {
  color: var(--site-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.waitlist-done {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: var(--site-panel);
  padding: 1rem 1.125rem;
}
.waitlist-done-mark {
  flex: none;
  margin-top: 2px;
  color: #4ade80;
}
.waitlist-done-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-text);
}
.waitlist-done-body {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--site-mute);
}

/* ── shared feedback primitives ───────────────────────────────────────────────────────────────── */

.preview-alert {
  margin-top: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--site-border);
  background: var(--site-panel);
  padding: 0.6875rem 0.875rem;
}
.preview-alert--error {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.07);
}
.preview-alert-text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--site-value);
}
.preview-alert--error .preview-alert-text {
  color: #fca5a5;
}
.preview-alert-action {
  flex: none;
}

.preview-spinner-wrap {
  display: inline-flex;
  align-items: center;
}
.preview-spinner {
  display: inline-block;
  border-radius: 50%;
  border: 2px solid rgba(236, 241, 248, 0.25);
  border-top-color: var(--site-text);
  animation: preview-spin 0.7s linear infinite;
}
@keyframes preview-spin {
  to {
    transform: rotate(360deg);
  }
}

.preview-avatar {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
}
.preview-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--site-value);
}

/* ── centred panel (login, signup, desktop handoff, app, 404) ─────────────────────────────────── */

.preview-panel {
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--site-border);
  background: var(--site-panel);
  padding: 1.75rem 1.5rem;
}
@media (min-width: 640px) {
  .preview-panel {
    padding: 2rem 1.875rem;
  }
}
.preview-panel-head {
  margin-bottom: 1.25rem;
}
.preview-panel-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--site-text);
}
.preview-panel-sub {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--site-mute);
}
.preview-panel-center {
  text-align: center;
}
.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.preview-stack .btn-primary,
.preview-stack .btn-ghost {
  width: 100%;
  min-height: 44px;
}

/* Returning-user identity row: avatar + display name + masked account hint. */
.preview-identity {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: var(--site-surface);
  padding: 0.875rem 1rem;
  text-align: left;
}
.preview-identity-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-text);
  overflow-wrap: anywhere;
}
.preview-identity-hint {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--site-label);
  font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* A short, quiet progress line for multi-step states (validating → authorising → returning). */
.preview-steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.preview-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--site-label);
}
.preview-step[data-state='active'] {
  color: var(--site-text);
}
.preview-step[data-state='done'] {
  color: var(--site-mute);
}

/* ── auth routes inside the preview shell ─────────────────────────────────────────────────────── */

.preview-auth {
  /* see .preview-hero — same element, same .site-container padding to preserve */
  padding-block: 2rem 3rem;
}
@media (min-width: 640px) {
  .preview-auth {
    padding-block: 3rem 4rem;
  }
}
.preview-auth-col {
  width: 100%;
  max-width: 27rem;
  margin: 0 auto;
}
.preview-auth-head {
  margin-bottom: 1.5rem;
}
.preview-auth-title {
  margin: 0.75rem 0 0;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--site-text);
}
.preview-auth-sub {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--site-mute);
}
.preview-auth-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--site-mute);
}
.preview-auth-foot a {
  color: var(--site-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Google renders its own button into this host (branding rules). Centre it in the card column. */
.auth-google-host {
  display: flex;
  justify-content: center;
  min-height: 40px;
}
.auth-google-host > div {
  max-width: 100%;
}

/* Legal pages (/privacy, /terms) inside the preview shell. */
.preview-legal-head {
  padding-block: 2.5rem 1.5rem;
}
.preview-legal-body {
  margin-top: 0.5rem;
}
.preview-main .preview-legal-body {
  align-self: stretch;
}

/* WCAG 2.2 SC 2.5.8 (Target Size, Minimum — 24×24 CSS px). The footer links and the wordmark are
   standalone controls, not links inline in a sentence, so the exception does not apply to them. */
.preview-footer-nav a,
.preview-brand,
.preview-skip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 0.25rem;
}
.preview-footer-nav {
  gap: 1rem;
}
/* Inline links inside a sentence keep their natural size (the SC 2.5.8 inline exception) but must
   stay unambiguously identifiable without relying on colour alone. */
.waitlist-note a,
.auth-inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── placeholder routes (/account, /billing, /settings, /download, /docs, /status, /admin) ────────
   These pages exist at their permanent URLs before their product does. The styling is deliberately
   plain: they must read as "not built yet, here is what it will be", never as a broken feature. */
.preview-placeholder {
  max-width: 42rem;
}
.preview-badge--sm {
  padding: 0.1875rem 0.5rem;
  font-size: 0.625rem;
}
.preview-placeholder-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: var(--site-panel);
  padding: 0.875rem 1rem;
}
.preview-placeholder-note p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--site-mute);
}
.preview-placeholder-grid {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .preview-placeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.preview-placeholder-card {
  border: 1px solid var(--site-sep);
  border-radius: 8px;
  background: var(--site-surface);
  padding: 0.875rem 1rem;
}
.preview-placeholder-card-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--site-text);
}
.preview-placeholder-card-body {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--site-label);
}
.preview-placeholder .preview-stack {
  margin-top: 1.5rem;
}
