:root {
  --brand-primary: 255 255 51;
  --brand-complementary: 15 35 24;
  --brand-white: 245 250 240;
  --brand-accent: var(--brand-complementary);
  --brand-surface: var(--brand-white);
  --brand-surface-2: var(--brand-white);
  --brand-ink: var(--brand-complementary);
  --brand-mute: var(--brand-complementary);
  --brand-line: var(--brand-complementary);
  --brand-ok: var(--brand-complementary);
  --brand-warn: var(--brand-primary);
  --brand-danger: var(--brand-complementary);
  --brand-gradient-soft: linear-gradient(135deg, rgb(var(--brand-white)) 0%, rgb(var(--brand-primary)) 100%);
}

html,
body {
  background: rgb(var(--brand-surface));
  color: rgb(var(--brand-ink));
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

* {
  letter-spacing: 0 !important;
}

.card,
.card-flat,
.card-tight {
  border: 1px solid rgb(var(--brand-line));
  border-radius: 12px;
  background: rgb(var(--brand-surface-2));
}

.card { padding: 1.5rem; box-shadow: 0 1px 2px rgb(var(--brand-ink) / 0.05); }
.card-flat { padding: 1.5rem; border-color: rgb(var(--brand-line) / 0.7); }
.card-tight { padding: 1.25rem; box-shadow: 0 1px 2px rgb(var(--brand-ink) / 0.05); }

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition: color 150ms, background-color 150ms, border-color 150ms, opacity 150ms;
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-danger:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background: rgb(var(--brand-primary));
  color: rgb(var(--brand-ink));
}

.btn-primary:hover { background: rgb(var(--brand-primary) / 0.9); }

.btn-secondary {
  border: 1px solid rgb(var(--brand-line));
  background: rgb(var(--brand-surface-2));
  color: rgb(var(--brand-ink));
}

.btn-secondary:hover { background: rgb(var(--brand-line) / 0.4); }

.btn-ghost {
  color: rgb(var(--brand-mute));
}

.btn-ghost:hover {
  color: rgb(var(--brand-ink));
  background: rgb(var(--brand-line) / 0.4);
}

.btn-danger {
  border: 1px solid rgb(var(--brand-danger) / 0.4);
  background: rgb(var(--brand-danger) / 0.1);
  color: rgb(var(--brand-danger));
}

.btn-danger:hover { background: rgb(var(--brand-danger) / 0.2); }

.btn-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(var(--brand-line));
  border-radius: 0.375rem;
  background: rgb(var(--brand-surface-2));
  color: rgb(var(--brand-mute));
  transition: color 150ms, background-color 150ms;
}

.btn-icon:hover {
  color: rgb(var(--brand-ink));
  background: rgb(var(--brand-line) / 0.4);
}

.input,
textarea.input,
select.input,
.input-num {
  width: 100%;
  border-radius: 0.375rem;
  border-color: rgb(var(--brand-line));
  background: rgb(var(--brand-surface-2));
  color: rgb(var(--brand-ink));
  font-size: 0.875rem;
}

.input::placeholder,
textarea.input::placeholder,
.input-num::placeholder {
  color: rgb(var(--brand-mute) / 0.6);
}

.input:focus,
textarea.input:focus,
select.input:focus,
.input-num:focus {
  outline: 2px solid transparent !important;
  border-color: rgb(var(--brand-primary)) !important;
  box-shadow: 0 0 0 1px rgb(var(--brand-primary)) !important;
  --tw-ring-color: rgb(var(--brand-primary) / 0.25);
}

.input-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.label,
.stat-label,
.table-hd {
  font-size: 11px;
  text-transform: uppercase;
  color: rgb(var(--brand-mute));
  font-weight: 500;
}

.label { margin-bottom: 0.375rem; }

.pill,
.pill-primary,
.pill-accent,
.pill-ok,
.pill-warn,
.pill-danger,
.pill-mute {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

.pill-primary {
  border: 1px solid rgb(var(--brand-primary));
  background: rgb(var(--brand-primary));
  color: rgb(var(--brand-ink));
}

.pill-accent {
  border: 1px solid rgb(var(--brand-accent) / 0.6);
  background: rgb(var(--brand-accent) / 0.3);
  color: rgb(var(--brand-ink));
}

.pill-ok {
  border: 1px solid rgb(var(--brand-ok) / 0.5);
  background: rgb(var(--brand-ok) / 0.25);
  color: rgb(var(--brand-ink));
}

.pill-warn {
  border: 1px solid rgb(var(--brand-warn));
  background: rgb(var(--brand-warn));
  color: rgb(var(--brand-ink));
}

.pill-danger {
  border: 1px solid rgb(var(--brand-danger) / 0.5);
  background: rgb(var(--brand-danger) / 0.2);
  color: rgb(var(--brand-danger));
}

.pill-mute {
  border: 1px solid rgb(var(--brand-line));
  background: rgb(var(--brand-line) / 0.5);
  color: rgb(var(--brand-mute));
}

.stat-num {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  user-select: none;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  transform: translateY(2px);
}

.brand-logo--sm { height: 1.25rem; }
.brand-logo--md { height: 1.75rem; }
.brand-logo--lg { height: 2.5rem; }

.public-nav .brand-logo {
  height: 1.75rem;
}

.public-page,
.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgb(var(--brand-surface));
}

.public-nav {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgb(var(--brand-line) / 0.6);
  background: rgb(var(--brand-surface));
  box-shadow: 0 1px 0 0 rgb(var(--brand-line) / 0.35);
}

.public-nav-inner {
  display: flex;
  height: 4rem;
  max-width: 80rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.public-nav-inner > a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.public-nav-link {
  color: rgb(var(--brand-mute));
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: none;
  transition: color 150ms;
}

.public-nav-link:hover {
  color: rgb(var(--brand-ink));
}

.auth-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 24rem;
}

.row-hover,
.row-divider {
  transition: background-color 150ms;
}

.row-hover:hover { background: rgb(var(--brand-line) / 0.3); }
.row-divider { border-bottom: 0; }
.row-divider:hover { background: transparent; }

.nav-link,
.sidenav-link {
  color: rgb(var(--brand-mute));
  border-radius: 0.375rem;
  transition: color 150ms, background-color 150ms;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.sidenav-link {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 13.5px;
}

.nav-link:hover,
.sidenav-link:hover {
  color: rgb(var(--brand-ink));
  background: rgb(var(--brand-line) / 0.4);
}

.nav-link-active,
.sidenav-link-active {
  color: rgb(var(--brand-ink));
  background: rgb(var(--brand-primary) / 0.35);
}

.gradient-text {
  background: var(--brand-gradient-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight {
  background: rgb(var(--brand-warn));
  color: rgb(var(--brand-ink));
  padding: 0 6px;
  border-radius: 4px;
}

.deck-frame {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgb(var(--brand-line) / 0.6);
}

.section-eyebrow,
.hero-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  color: rgb(var(--brand-mute));
  font-weight: 500;
}

.section-eyebrow { font-size: 10px; }

.section-title {
  margin-top: 0.5rem;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
}

.shell-panel {
  border: 1px solid rgb(var(--brand-line) / 0.4);
  border-radius: 20px;
  background: rgb(var(--brand-surface-2));
  box-shadow: 0 1px 2px rgb(var(--brand-ink) / 0.04), 0 8px 28px -12px rgb(var(--brand-ink) / 0.1);
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2.25rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  font-size: 11px;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgb(var(--brand-ok));
}

.hero-title {
  max-width: 680px;
  margin: 0;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 600;
}

.hero-sub {
  max-width: 540px;
  margin-top: 0.875rem;
  color: rgb(var(--brand-mute));
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bento {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 3.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.bento-cell {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(var(--brand-line));
  border-radius: 12px;
  background: rgb(var(--brand-surface-2));
  padding: 1.25rem;
}

.bento-cell-label {
  font-size: 11px;
  text-transform: uppercase;
  color: rgb(var(--brand-mute));
  font-weight: 600;
}

.bento-cell-value {
  margin-top: 0.75rem;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bento-cell-sub {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  color: rgb(var(--brand-mute));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.bento-headline {
  grid-row: span 2;
  justify-content: space-between;
  padding: 1.5rem;
  border-color: rgb(var(--brand-primary) / 0.35);
  background: rgb(var(--brand-primary) / 0.2);
}

.bento-headline .bento-cell-label { color: rgb(var(--brand-ink) / 0.6); }
.bento-headline .bento-cell-value { margin-top: auto; font-size: 72px; }
.bento-headline .bento-cell-sub { color: rgb(var(--brand-ink) / 0.75); }

.bento-spark,
.bento-mini-spark {
  display: flex;
  align-items: flex-end;
}

.bento-spark {
  height: 40px;
  gap: 3px;
  margin-top: 0.875rem;
}

.bento-mini-spark {
  height: 22px;
  gap: 2px;
  margin-top: auto;
}

.bento-spark > span,
.bento-mini-spark > span {
  flex: 1;
  border-radius: 2px;
}

.bento-spark > span { background: rgb(var(--brand-accent)); }
.bento-mini-spark > span { background: rgb(var(--brand-primary)); opacity: 0.75; }
.bento-trend-up { color: rgb(var(--brand-ok)); font-weight: 600; }
.bento-trend-down { color: rgb(var(--brand-danger)); font-weight: 600; }

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

.camp-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border: 1px solid rgb(var(--brand-line));
  border-radius: 12px;
  background: rgb(var(--brand-surface-2));
  padding: 1.25rem;
  transition: background-color 150ms;
}

.camp-card:hover { background: rgb(var(--brand-surface)); }
.camp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.camp-name { font-size: 15px; font-weight: 600; }
.camp-meta { margin-top: 0.25rem; color: rgb(var(--brand-mute)); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.camp-metrics { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.camp-stats { display: flex; gap: 1.5rem; color: rgb(var(--brand-mute)); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.camp-stats strong { margin-right: 0.25rem; color: rgb(var(--brand-ink)); font-weight: 600; }

.av-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgb(var(--brand-primary));
  color: rgb(var(--brand-ink));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0.25rem;
}

.section-h2 {
  color: rgb(var(--brand-ink));
  font-size: 15px;
  font-weight: 600;
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-strip {
  display: grid;
  gap: 1.5rem 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(var(--brand-line) / 0.4);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgb(var(--brand-line) / 0.5);
}

.dashboard-stat-note {
  margin-top: 0.25rem;
  color: rgb(var(--brand-mute));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.dashboard-attention {
  margin-bottom: 3rem;
}

.ops-list {
  border-top: 1px solid rgb(var(--brand-line) / 0.7);
}

.ops-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgb(var(--brand-line) / 0.7);
  padding: 0.875rem 0;
  color: rgb(var(--brand-ink));
  font-size: 0.875rem;
  transition: color 150ms;
}

.ops-row:hover { color: rgb(var(--brand-accent)); }

.ops-value {
  color: rgb(var(--brand-mute));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.th {
  border-bottom: 1px solid rgb(var(--brand-line) / 0.75);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 10px;
  line-height: 1rem;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(var(--brand-mute));
}

.td {
  border-bottom: 1px solid rgb(var(--brand-line) / 0.45);
  padding: 0.875rem 1rem;
  vertical-align: middle;
}

.tab {
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding: 0.75rem;
  color: rgb(var(--brand-mute));
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms, border-color 150ms;
}

.tab:hover,
.tab-active {
  color: rgb(var(--brand-ink));
}

.tab-active { border-color: rgb(var(--brand-ink)); }

.unit-affix {
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  user-select: none;
  color: rgb(var(--brand-mute));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgb(var(--brand-line) / 0.7);
  border-radius: 8px;
  background: rgb(var(--brand-surface-2));
  box-shadow: 0 1px 2px rgb(var(--brand-ink) / 0.04);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgb(var(--brand-surface-2));
  font-size: 0.875rem;
}

.data-table thead {
  background: rgb(var(--brand-accent) / 0.045);
}

.data-table tbody tr {
  transition: background-color 150ms;
}

.data-table tbody tr:hover {
  background: rgb(var(--brand-primary) / 0.08);
}

.data-table tbody tr:last-child .td {
  border-bottom: 0;
}

.data-table .td:first-child,
.data-table .th:first-child {
  padding-left: 1.125rem;
}

.data-table .td:last-child,
.data-table .th:last-child {
  padding-right: 1.125rem;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-field {
  width: 100%;
  max-width: 20rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
}

.action-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
  margin-bottom: 3rem;
}

.attention-card {
  border: 1px solid rgb(var(--brand-line));
  border-radius: 12px;
  background: rgb(var(--brand-surface-2));
  padding: 1rem;
  transition: background-color 150ms;
}

.attention-card:hover { background: rgb(var(--brand-surface)); }
.attention-kicker { font-size: 10px; text-transform: uppercase; color: rgb(var(--brand-mute)); font-weight: 600; }
.attention-value { margin-top: 0.5rem; font-family: Inter, ui-sans-serif, sans-serif; font-size: 1.5rem; line-height: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.attention-copy { margin-top: 0.375rem; color: rgb(var(--brand-mute)); font-size: 0.75rem; line-height: 1.5; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.form-step {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(var(--brand-line) / 0.4);
}

.step-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.summary-panel {
  border: 1px solid rgb(var(--brand-line));
  border-radius: 12px;
  background: rgb(var(--brand-surface-2));
  padding: 1.25rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  min-height: 1.5rem;
  margin-top: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(var(--brand-line));
  border-radius: 9999px;
  background: rgb(var(--brand-surface));
  padding: 0.125rem 0.625rem;
  color: rgb(var(--brand-ink));
  font-size: 11px;
}

.sequence-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgb(var(--brand-line) / 0.7);
  border-radius: 12px;
  background: rgb(var(--brand-surface-2));
  padding: 0.75rem;
}

.score-bar,
.camp-progress {
  display: inline-flex;
  width: 5rem;
  height: 0.375rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgb(var(--brand-complementary) / 0.18);
  vertical-align: middle;
}

.score-bar > span,
.camp-progress > span {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: rgb(var(--brand-primary));
}

.timeline-card {
  border-left-width: 2px;
  padding: 0.25rem 0 0.25rem 1rem;
}

.mobile-menu summary::-webkit-details-marker { display: none; }

.product-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  overflow: hidden;
  border-bottom: 1px solid rgb(var(--brand-line));
}

.product-hero-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.product-hero-eyebrow,
.product-section-eyebrow {
  margin: 0 0 1rem;
  color: rgb(var(--brand-mute));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1rem;
}

.product-hero-title {
  max-width: 48rem;
  margin: 0;
  color: rgb(var(--brand-ink));
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: clamp(3rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 600;
}

.product-hero-copy {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: rgb(var(--brand-mute));
  font-size: 1rem;
  line-height: 1.5;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.product-section {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
}

.product-section-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.product-section-title {
  max-width: 48rem;
  margin: 0 0 4rem;
  color: rgb(var(--brand-ink));
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 600;
}

.pipeline-list {
  width: 100%;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 0.5fr 1fr minmax(0, 4fr) 1.5fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgb(var(--brand-line) / 0.6);
}

.pipeline-index,
.pipeline-kind {
  color: rgb(var(--brand-mute));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1rem;
}

.pipeline-index { grid-column: 1; }
.pipeline-kind { grid-column: 2; }
.pipeline-main { grid-column: 3; }
.pipeline-end { grid-column: 4; }

.pipeline-kind {
  text-transform: uppercase;
}

.pipeline-title {
  color: rgb(var(--brand-ink));
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.pipeline-desc {
  margin-top: 0.25rem;
  color: rgb(var(--brand-mute));
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.pipeline-end {
  text-align: right;
}

@supports (height: 100svh) {
  .product-hero,
  .product-section {
    min-height: calc(100svh - 64px);
  }
}

.chart-grid {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 11rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgb(var(--brand-line) / 0.7);
}

.chart-day {
  display: flex;
  min-width: 8px;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.125rem;
}

.chart-bar-sent { width: 100%; border-radius: 0.125rem 0.125rem 0 0; background: rgb(var(--brand-primary) / 0.4); }
.chart-bar-opened { width: 100%; background: rgb(var(--brand-accent) / 0.4); }
.chart-bar-replied { width: 100%; background: rgb(var(--brand-ink)); }

.danger-action { color: rgb(var(--brand-danger)); }
.danger-action:hover { color: rgb(var(--brand-danger)); background: rgb(var(--brand-danger) / 0.1); }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

::selection {
  background: rgb(var(--brand-primary) / 0.35);
  color: rgb(var(--brand-ink));
}

.htmx-swapping { opacity: 0; transition: opacity 100ms ease-out; }
.htmx-settling { opacity: 1; transition: opacity 200ms ease-in; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgb(var(--brand-surface)); }
::-webkit-scrollbar-thumb { background: rgb(var(--brand-line)); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--brand-mute) / 0.5); }

@media (min-width: 640px) {
  .toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .summary-panel {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 900px) {
  .shell-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .hero,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .hero-actions > * {
    flex: 1 1 auto;
  }
  .bento,
  .attention-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bento-headline {
    grid-row: auto;
  }
  .bento-headline .bento-cell-value {
    font-size: 56px;
  }
}

@media (max-width: 640px) {
  .public-nav-inner {
    padding: 0 1rem;
  }
  .brand-logo--md {
    height: 1.5rem;
  }
  .product-hero-title {
    font-size: 2.625rem;
  }
  .pipeline-row {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem 1rem;
  }
  .pipeline-kind,
  .pipeline-end {
    grid-column: 2;
    text-align: left;
  }
  .pipeline-main {
    grid-column: 2;
  }
  .hero-title {
    font-size: 30px;
  }
  .section-title {
    font-size: 28px;
  }
  .stat-strip,
  .dashboard-stats,
  .attention-grid,
  .bento,
  .camp-grid {
    grid-template-columns: 1fr;
  }
  .sequence-row {
    grid-template-columns: 1fr;
  }
  .sequence-row > * {
    grid-column: auto !important;
  }
}
