/* ═══════════════════════════════════════════════════════════════
   FindInvestors Workspace · CRM styling
   All-light, hairline-structural, cobalt accent <5% viewport.
   ═══════════════════════════════════════════════════════════════ */

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

/* The `hidden` attribute must win over component display rules. Without this,
   any component that sets `display` (.modal-overlay, .auth-form, .deck-email…)
   stays laid out while hidden — the paywall overlay in particular sat invisible
   over the whole page and swallowed every click, including Sign In. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* ═══════════════════════════════════════════════════════════════
   FindInvestors Workspace · Component Styles
   Auth screen, lead search, pagination, paywall, user sidebar,
   toast variants, pitch detail, loading spinner.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Auth Screen ─── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, oklch(55% 0.2 250) 0%, oklch(45% 0.21 250) 50%, oklch(30% 0.1 260) 100%);
  padding: 2rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-paper);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px oklch(22% 0.016 300 / 0.25);
  overflow: hidden;
}
.auth-card__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem 0;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 1.25rem;
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
}
.auth-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-form__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: 1.25rem;
  margin: 0;
  color: var(--color-ink);
}
.auth-form__error {
  background: oklch(52% 0.19 25 / 0.1);
  border: 1px solid oklch(52% 0.19 25 / 0.3);
  color: oklch(42% 0.19 25);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
}
.auth-form__submit {
  width: 100%;
  padding: 0.7rem 1.1rem;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
.auth-form__switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}
.auth-form__switch a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
}
.auth-form__switch a:hover { text-decoration: underline; }

/* ─── Sidebar User Footer ─── */
.sidebar__lists {
  padding: 0.5rem 0;
  border-top: var(--rule) solid var(--color-rule);
}
.sidebar__lists:empty { display: none; }
.sidebar__lists-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.5rem 1.25rem 0.25rem;
}
.sidebar__link--list {
  font-size: 0.8125rem;
  padding: 0.4rem 1.25rem;
}
.sidebar__list-count {
  color: var(--color-muted);
  font-size: 0.75rem;
}
.sidebar__footer {
  border-top: var(--rule) solid var(--color-rule);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem;
}
.sidebar__user-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}
.sidebar__user-name {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar__user-plan {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.sidebar__user-plan--pro {
  color: var(--color-accent);
  font-weight: var(--weight-semi);
}
.sidebar__logout {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  background: none;
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-btn);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: color var(--t-quiet), border-color var(--t-quiet);
  text-align: center;
}
.sidebar__logout:hover {
  color: oklch(52% 0.19 25);
  border-color: oklch(52% 0.19 25 / 0.3);
}
.btn--upgrade {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: none;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}
.btn--upgrade:hover {
  background: var(--color-accent-2);
}

/* ─── Lead Search ─── */
.leads-search-bar {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule);
  flex-wrap: wrap;
}
.leads-search-bar .form-input { flex: 1; min-width: 180px; }
.leads-search-bar .form-select { width: auto; min-width: 160px; }

.leads-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-muted);
}
.leads-loading__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-rule-2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Lead Email Cells ─── */
.lead-email__masked {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-muted);
  cursor: help;
}
.lead-email__value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-ink-2);
}

/* ─── Pagination ─── */
.leads-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: var(--rule) solid var(--color-rule);
}
.leads-pagination__count {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-muted);
}
.leads-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.leads-pagination__page {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: 0.9375rem;
  color: var(--color-ink);
}

/* ─── Bulk Actions ─── */
.leads-bulk-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-top: var(--rule) solid var(--color-rule);
  background: var(--color-paper-2);
  align-items: center;
}
.leads-bulk-actions .form-select { width: auto; }

/* ─── Pitch History Detail ─── */
.pitch-history-detail td {
  padding: 0 !important;
  border-bottom: var(--rule) solid var(--color-rule) !important;
  background: var(--color-paper-2);
}
.pitch-detail {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pitch-detail__row {
  font-size: 0.875rem;
  color: var(--color-ink-2);
}
.pitch-detail__row strong {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}
.pitch-detail__error { color: oklch(52% 0.19 25); }
.pitch-detail__body {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--color-paper);
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink-2);
  white-space: pre-wrap;
}

/* ─── Toggle Label ─── */
.form-row--inline {
  flex-direction: row;
  align-items: center;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-ink-2);
  cursor: pointer;
}
.toggle-label input { cursor: pointer; }

/* ─── List Detail Panel ─── */
.list-card__view {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* ─── Paywall Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(22% 0.016 300 / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.modal-card {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px oklch(22% 0.016 300 / 0.25);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--color-ink); }
.modal-card__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--color-ink);
}
.modal-card__body {
  font-size: 0.9375rem;
  color: var(--color-ink-2);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.modal-card__price {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.modal-card__price span {
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: var(--weight-medium);
}
.modal-card__cta {
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0.7rem;
  font-size: 0.9375rem;
}
.modal-card .btn--ghost {
  width: 100%;
}

/* ─── Toast Variants ─── */
.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast--success {
  background: oklch(42% 0.15 145);
  color: oklch(99% 0.004 145);
}
.toast--error {
  background: oklch(48% 0.19 25);
  color: oklch(99% 0.004 25);
}
.toast__icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─── Activity Feed Dots ─── */
.activity-item__dot--sent { background: var(--color-rule-2); }
.activity-item__dot--opened { background: oklch(62% 0.13 250); }
.activity-item__dot--replied { background: var(--color-accent); }
.activity-item__dot--failed { background: oklch(52% 0.19 25); }

/* ─── Responsive for new components ─── */
@media (max-width: 768px) {
  .leads-search-bar { flex-direction: column; }
  .leads-search-bar .form-input,
  .leads-search-bar .form-select { width: 100%; }
  .leads-pagination { flex-direction: column; gap: 0.5rem; }
  .auth-card { max-width: 360px; }
  .modal-card { padding: 1.5rem; }
  .sidebar__footer { padding: 0.5rem; }
}
@media (max-width: 414px) {
  .leads-bulk-actions { flex-direction: column; align-items: stretch; }
  .leads-bulk-actions .form-select,
  .leads-bulk-actions .btn { width: 100%; }
  .leads-pagination__controls { width: 100%; justify-content: space-between; }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  text-decoration: none;
  border-radius: 0 0 var(--radius-btn) 0;
}
.skip-link:focus { top: 0; }

/* ─── Layout ─── */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  border-right: var(--rule) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--color-paper);
  z-index: 40;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 1.0625rem;
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
}
.sidebar__mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--color-accent);
  flex-shrink: 0;
}
.sidebar__nav {
  flex: 1;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  color: var(--color-ink-2);
  text-decoration: none;
  transition: background var(--t-quiet), color var(--t-quiet);
  border-left: 2px solid transparent;
}
.sidebar__link:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}
.sidebar__link.is-active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  background: var(--color-accent-dim);
}
.sidebar__link svg { flex-shrink: 0; opacity: 0.7; }
.sidebar__link.is-active svg { opacity: 1; }
.sidebar__footer {
  border-top: var(--rule) solid var(--color-rule);
  padding: 0.75rem 0;
}
.sidebar__link--back {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.sidebar__toggle { display: none; }

/* ─── Main content ─── */
.dash-main {
  padding: 0;
  min-width: 0;
}
.dash-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.75rem;
  height: 60px;
  border-bottom: var(--rule) solid var(--color-rule);
  background: oklch(98.5% 0.004 250 / 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.dash-menu-btn {
  display: none;
  background: none;
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-btn);
  padding: 0.4rem;
  cursor: pointer;
  color: var(--color-ink);
}
.dash-topbar__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: 1.125rem;
  letter-spacing: var(--tracking-snug);
  margin: 0;
  flex: 1;
}
.dash-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dash-quick {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: var(--rule) solid oklch(55% 0.2 250 / 0.3);
  border-radius: var(--radius-btn);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background var(--t-quiet), border-color var(--t-quiet);
}
.dash-quick:hover {
  background: oklch(55% 0.2 250 / 0.16);
  border-color: var(--color-accent);
}
.dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--rule) solid var(--color-rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  color: var(--color-muted);
  background: var(--color-paper-2);
}

/* ─── Views ─── */
.dash-view { display: none; padding: 1.75rem; }
.dash-view.is-active { display: block; }

/* ─── Stats grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.25rem;
  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-card__label {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.stat-card__value {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 2rem;
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
  line-height: 1;
}

/* ─── Overview grid ─── */
.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

/* ─── Panel ─── */
.panel {
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  overflow: hidden;
  margin-bottom: 1rem;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule);
}
.panel__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: 1.0625rem;
  letter-spacing: var(--tracking-snug);
  margin: 0;
  color: var(--color-ink);
}
.panel__hint {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-muted);
  letter-spacing: var(--tracking-label);
}

/* ─── Activity feed ─── */
.activity-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule);
}
.activity-item:last-child { border-bottom: none; }
.activity-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-rule-2);
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.activity-item__text {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--color-ink-2);
}
.activity-item__time {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-muted);
  white-space: nowrap;
}

/* ─── Quick actions ─── */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.quick-action {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-bottom: var(--rule) solid var(--color-rule);
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--t-quiet);
}
.quick-action:last-child { border-bottom: none; }
.quick-action:hover { background: var(--color-paper-2); }
.quick-action__label {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  font-weight: var(--weight-semi);
  color: var(--color-ink);
}
.quick-action__hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-btn);
  border: var(--rule) solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-quiet), border-color var(--t-quiet), color var(--t-quiet);
  line-height: 1.4;
}
.btn--accent {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.btn--accent:hover {
  background: var(--color-accent-2);
}
.btn--ghost {
  background: transparent;
  border-color: var(--color-rule-2);
  color: var(--color-ink-2);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--small {
  font-size: var(--step-small);
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ─── Forms ─── */
.pitch-form, .settings-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-label {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.form-input, .form-select, .form-textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-ink);
  background: var(--color-paper);
  border: var(--rule) solid var(--color-rule-2);
  border-radius: var(--radius-btn);
  padding: 0.55rem 0.75rem;
  width: 100%;
  transition: border-color var(--t-quiet), box-shadow var(--t-quiet);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
  font-family: var(--font-body);
}
.form-input-group {
  display: flex;
  gap: 0.5rem;
}
.form-input-group .form-input { flex: 1; }
.form-input-group .form-select { width: auto; min-width: 160px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.char-count {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-muted);
  text-align: right;
}
.form-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* ─── File upload ─── */
.file-upload {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.file-upload input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-upload__label {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-ink-2);
  border: var(--rule) solid var(--color-rule-2);
  border-radius: var(--radius-btn);
  padding: 0.4rem 0.8rem;
  transition: border-color var(--t-quiet), color var(--t-quiet);
}
.file-upload:hover .file-upload__label {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.file-upload__name {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ─── Pitches layout ─── */
.pitches-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

/* ─── Filter chips ─── */
.filter-group {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-paper);
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-btn);
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all var(--t-quiet);
}
.filter-chip:hover {
  border-color: var(--color-rule-2);
  color: var(--color-ink-2);
}
.filter-chip.is-active {
  background: var(--color-accent-dim);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ─── Data table ─── */
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: left;
  padding: 0.7rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule-2);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 0.7rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule);
  color: var(--color-ink-2);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-paper-2); }
.data-table__empty td {
  text-align: center;
  color: var(--color-muted);
  padding: 2rem 1.25rem;
}
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: var(--weight-semi);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: var(--rule) solid var(--color-rule-2);
}
.status-badge--sent { color: var(--color-muted); }
.status-badge--opened { color: var(--color-ink-2); border-color: var(--color-rule-2); }
.status-badge--replied { color: var(--color-accent); border-color: oklch(55% 0.2 250 / 0.3); background: var(--color-accent-dim); }
.status-badge--failed { color: oklch(52% 0.19 25); border-color: oklch(52% 0.19 25 / 0.3); }
.status-badge--draft { color: var(--color-muted); border-color: var(--color-rule); }
.row-action {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  transition: color var(--t-quiet);
}
.row-action:hover { color: var(--color-accent); }

/* ─── Investor Lists ─── */
.lists-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  align-items: start;
}
.lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 1.25rem;
}
.list-card {
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--t-quiet);
}
.list-card:hover { border-color: var(--color-rule-2); }
.list-card--empty {
  grid-column: 1 / -1;
  border: none;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9375rem;
  padding: 2rem;
}
.list-card__name {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: 1rem;
  color: var(--color-ink);
}
.list-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-muted);
  letter-spacing: var(--tracking-label);
}
.list-card__count {
  color: var(--color-accent);
  font-weight: var(--weight-semi);
}
.list-card__delete {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: color var(--t-quiet);
}
.list-card__delete:hover { color: oklch(52% 0.19 25); }

/* ─── Analytics ─── */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.analytics-grid .panel:last-child {
  grid-column: 1 / -1;
}
.chart-bars {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 1.25rem;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
}
.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 120px;
}
.chart-bar__label {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.chart-bar__track {
  width: 48px;
  height: 120px;
  background: var(--color-paper-2);
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.chart-bar__fill {
  width: 100%;
  background: var(--color-rule-2);
  border-radius: var(--radius-btn) var(--radius-btn) 0 0;
  transition: height 600ms var(--ease-out);
}
.chart-bar__fill--accent { background: var(--color-accent); }
.chart-bar__fill--accent2 { background: var(--color-accent-2); }
.chart-bar__val {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 1.125rem;
  color: var(--color-ink);
}

/* ─── Coverage timeline ─── */
.coverage-timeline {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-height: 160px;
}
.timeline-empty {
  width: 100%;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
  padding: 2rem 0;
}
.coverage-timeline__bar {
  flex: 1;
  background: var(--color-paper-2);
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-btn) var(--radius-btn) 0 0;
  min-height: 4px;
  transition: height 600ms var(--ease-out);
  position: relative;
}
.coverage-timeline__bar--accent {
  background: var(--color-accent-dim);
  border-color: oklch(55% 0.2 250 / 0.3);
}

/* ─── Top pitches ─── */
.top-pitches {
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-pitch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule);
  gap: 1rem;
}
.top-pitch:last-child { border-bottom: none; }
.top-pitch__subject {
  font-size: 0.875rem;
  color: var(--color-ink-2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-pitch__rate {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--color-accent);
  font-weight: var(--weight-semi);
  white-space: nowrap;
}
.top-pitch__empty {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
  padding: 2rem 1.25rem;
}

/* ─── Settings ─── */
.settings-layout {
  max-width: 720px;
}
.conn-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.conn-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-rule-2);
}
.conn-status.is-connected .conn-status__dot {
  background: oklch(62% 0.17 145);
}
.conn-status.is-connected .conn-status__text {
  color: oklch(42% 0.15 145);
}
.conn-type-selector {
  display: flex;
  gap: 0;
  border-bottom: var(--rule) solid var(--color-rule);
}
.conn-type {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  background: none;
  border: none;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--t-quiet), border-color var(--t-quiet);
}
.conn-type:hover { color: var(--color-ink-2); }
.conn-type.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.875rem;
  z-index: 100;
  box-shadow: 0 4px 12px oklch(22% 0.016 300 / 0.15);
  animation: toast-in 240ms var(--ease-out);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .pitches-layout { grid-template-columns: 1fr; }
  .lists-layout { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform var(--t-quiet);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__toggle {
    display: flex;
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-accent-ink);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 2px 8px oklch(22% 0.016 300 / 0.2);
  }
  .dash-menu-btn { display: flex; }
  .dash-view { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .stat-card { padding: 1rem; }
  .stat-card__value { font-size: 1.5rem; }
  .chart-bars { gap: 1rem; }
  .chart-bar__track { width: 36px; height: 100px; }
}

@media (max-width: 414px) {
  .dash-topbar { padding: 0 1rem; height: 54px; }
  .dash-topbar__title { font-size: 1rem; }
  .dash-quick span { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-input-group { flex-direction: column; }
  .form-input-group .form-select { width: 100%; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .toast { left: 1rem; right: 1rem; bottom: 1rem; }
}

@media (max-width: 320px) {
  .dash-view { padding: 0.75rem; }
  .panel__head { padding: 0.75rem 1rem; }
  .pitch-form, .settings-form { padding: 1rem; }
  .data-table thead th, .data-table tbody td { padding: 0.5rem 0.75rem; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Pitch Deck Builder
   ═══════════════════════════════════════════════════════════════ */
.deck-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
}
.deck-form { padding: 1.25rem; }
.deck-form .form-grid { margin-bottom: 1rem; }
.form-hint {
  font-weight: var(--weight-regular);
  color: var(--color-muted);
  text-transform: none;
  letter-spacing: 0;
}
.form-hint::before { content: "· "; }

.deck-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule);
}
.deck-actions__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.deck-slides {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  max-height: 44rem;
  overflow-y: auto;
}
.deck-empty {
  margin: 0;
  padding: 1.5rem 0;
  color: var(--color-muted);
  font-size: var(--step-small);
  line-height: 1.6;
}

.slide-card {
  border: var(--rule) solid var(--color-rule);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  background: var(--color-paper);
}
.slide-card--cover, .slide-card--closing { background: var(--color-paper-2); }
.slide-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.slide-card__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-accent);
}
.slide-card__kind {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
}
.slide-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--weight-semi);
  line-height: 1.3;
  color: var(--color-ink);
}
.slide-card__sub, .slide-card__body {
  margin: 0 0 0.45rem;
  font-size: var(--step-small);
  line-height: 1.55;
  color: var(--color-ink-2);
}
.slide-card__bullets {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: var(--step-small);
  line-height: 1.6;
  color: var(--color-ink-2);
}
.slide-card__bullets li { margin-bottom: 0.2rem; }
.slide-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.35rem;
}
.slide-metric {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 6.5rem;
  padding: 0.5rem 0.7rem;
  background: var(--color-paper-2);
  border-radius: var(--radius-sm);
}
.slide-metric__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--weight-bold);
  color: var(--color-ink);
}
.slide-metric__label {
  font-size: 0.68rem;
  color: var(--color-muted);
  line-height: 1.3;
}
.slide-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: var(--rule) solid var(--color-rule);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.deck-email {
  padding: 1.25rem;
  border-top: var(--rule) solid var(--color-rule);
}
.deck-email__title {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
}
.deck-email__subject {
  font-weight: var(--weight-semi);
  font-size: var(--step-small);
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}
.deck-email__body, .followup-card__body {
  margin: 0;
  padding: 0.8rem 0.9rem;
  background: var(--color-paper-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--step-small);
  line-height: 1.6;
  color: var(--color-ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.deck-followups { margin-top: 1.25rem; }
.followup-card { margin-bottom: 0.75rem; }
.followup-card__day {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.followup-card__subject {
  font-size: var(--step-small);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}
.followup-card__body { margin-top: 0.35rem; }

/* ═══════════════════════════════════════════════════════════════
   Autopilot
   ═══════════════════════════════════════════════════════════════ */
.auto-status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.25rem 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
}
.auto-status__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-rule-strong);
}
.auto-status__dot--live {
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-dim);
  animation: auto-pulse 2s var(--ease-in-out) infinite;
}
@keyframes auto-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--color-accent-dim); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
.auto-status__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.auto-status__text strong {
  font-family: var(--font-display);
  font-size: var(--step-small);
  color: var(--color-ink);
}
.auto-status__text span {
  font-size: var(--step-small);
  color: var(--color-muted);
}
.auto-status__actions {
  display: flex;
  gap: 0.5rem;
  flex: none;
}

.auto-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
  align-items: start;
}
.auto-layout .panel:nth-child(3),
.auto-layout .panel:nth-child(4) { grid-column: 1 / -1; }

.day-toggles { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.day-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-btn);
  font-size: 0.72rem;
  color: var(--color-ink-2);
  cursor: pointer;
  transition: border-color var(--t-quiet), color var(--t-quiet);
}
.day-toggle:has(input:checked) {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}
.day-toggle input { margin: 0; accent-color: var(--color-accent); }

.sequence-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
}
.sequence-step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem;
  border: var(--rule) solid var(--color-rule);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
}
.sequence-step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.sequence-step__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-accent);
  font-weight: var(--weight-semi);
  margin-right: auto;
}
.sequence-step__day {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--color-muted);
}
.form-input--tiny { width: 4.5rem; padding: 0.25rem 0.4rem; font-size: 0.78rem; }
.toggle-label--tight { font-size: 0.72rem; }
.sequence-hint {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--color-muted);
}
.sequence-hint code {
  padding: 0.05rem 0.3rem;
  border-radius: var(--radius-sm);
  background: var(--color-paper-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-ink-2);
}

.row-action--danger { color: var(--color-negative); }
.pitch-status--queued  { background: var(--color-paper-3); color: var(--color-muted); }
.pitch-status--active  { background: var(--color-accent-dim); color: var(--color-accent); }
.pitch-status--done    { background: var(--color-paper-3); color: var(--color-ink-2); }
.pitch-status--bounced { background: oklch(52% 0.19 25 / 0.1); color: var(--color-negative); }
.activity-item--error .activity-item__dot { background: var(--color-negative); }
.activity-item--success .activity-item__dot { background: var(--color-accent); }

@media (max-width: 1100px) {
  .deck-layout, .auto-layout { grid-template-columns: minmax(0, 1fr); }
  .auto-layout .panel { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .auto-status { flex-wrap: wrap; }
  .auto-status__actions { width: 100%; }
  .auto-status__actions .btn { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   Deck toolbar · themes · slide art
   ═══════════════════════════════════════════════════════════════ */
.deck-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  border-bottom: var(--rule) solid var(--color-rule);
}
.deck-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.deck-toolbar__label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
  margin-right: 0.2rem;
}
.form-select--tight {
  width: auto;
  padding: 0.28rem 1.6rem 0.28rem 0.5rem;
  font-size: 0.76rem;
}

.theme-swatches { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.theme-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.5rem 0.22rem 0.28rem;
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius-btn);
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  color: var(--color-ink-2);
  transition: border-color var(--t-quiet), color var(--t-quiet);
}
.theme-swatch:hover { border-color: var(--color-rule-strong); }
.theme-swatch.is-active {
  border-color: var(--color-accent);
  color: var(--color-ink);
  font-weight: var(--weight-medium);
}
.theme-swatch__chip {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex: none;
}
.theme-swatch.is-active .theme-swatch__chip { outline: 2px solid var(--color-accent); outline-offset: 1px; }

.slide-art {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: var(--rule) dashed var(--color-rule);
}
.slide-art__thumb {
  width: 68px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
}
.slide-art__prompt {
  font-size: 0.7rem;
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Present mode
   ═══════════════════════════════════════════════════════════════ */
.present {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  background: oklch(14% 0.012 300);
}
.present__stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  min-height: 0;
  cursor: pointer;
}
.present__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem;
  background: oklch(18% 0.012 300);
}
.present__btn {
  border: var(--rule) solid oklch(34% 0.012 300);
  background: none;
  color: oklch(88% 0.006 300);
  border-radius: var(--radius-btn);
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.present__btn:hover { border-color: oklch(55% 0.012 300); }
.present__btn--close { margin-left: 0.6rem; }
.present__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: oklch(70% 0.008 300);
  min-width: 4.5rem;
  text-align: center;
}

/* One slide, locked to 16:9 and scaled to whatever space is left. */
.ps-slide {
  position: relative;
  width: min(100%, calc((100vh - 5.5rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 24px 70px oklch(0% 0 0 / 0.45);
  container-type: inline-size;
}
.ps-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 0.63cqw; }
.ps-art {
  position: absolute;
  background-size: cover;
  background-position: center;
}
.ps-art--bleed { inset: 0; }
.ps-art--panel { top: 0; right: 0; bottom: 0; width: 38cqw; }
.ps-art--band  { left: 0; right: 0; bottom: 0; height: 24.4cqw; }
.ps-scrim { position: absolute; inset: 0; }

.ps-body-wrap {
  position: absolute;
  inset: 0;
  padding: 8.5cqw 6.7cqw 7cqw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ps-body-wrap.is-narrow { right: 40cqw; }
.ps-eyebrow {
  margin: 0 0 1.4cqw;
  font-family: var(--font-display);
  font-size: 1.05cqw;
  font-weight: var(--weight-bold);
  letter-spacing: 0.17em;
}
.ps-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: 1.16;
  font-size: 3.6cqw;          /* overridden inline per title length */
  letter-spacing: var(--tracking-snug);
}
.ps-rule { display: block; width: 5.9cqw; height: 0.27cqw; margin: 2cqw 0 2.4cqw; }
.ps-sub {
  margin: 1.4cqw 0 0;
  max-width: 62cqw;
  font-size: 1.85cqw;
  line-height: 1.5;
  opacity: 0.82;
}
.ps-body {
  margin: 0;
  max-width: 52cqw;
  font-size: 1.6cqw;
  line-height: 1.55;
  opacity: 0.78;
}
.ps-bullets {
  margin: 1.6cqw 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.6cqw;
  line-height: 1.45;
}
.ps-bullets li {
  display: flex;
  align-items: baseline;
  gap: 1.2cqw;
  margin-bottom: 1.2cqw;
}
.ps-bullets li span { width: 0.55cqw; height: 0.55cqw; flex: none; }
.ps-metrics { display: flex; gap: 2.1cqw; margin-top: 1cqw; width: 100%; }
.ps-metric {
  flex: 1;
  min-width: 0;
  padding: 2cqw 1.9cqw;
  display: flex;
  flex-direction: column;
  gap: 0.7cqw;
}
.ps-metric__v {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 3.4cqw;
  line-height: 1;
}
.ps-metric__l { font-size: 1.2cqw; line-height: 1.3; opacity: 0.66; }
.ps-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3.4cqw;
  margin-top: auto;
  padding-top: 1.8cqw;
  border-top: 1px solid currentColor;
  width: 100%;
  font-size: 1.25cqw;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .deck-toolbar__row { gap: 0.4rem; }
  .theme-swatch__name { display: none; }
}
