/* =============================================================================
 * Minutely Components — Hybrid design system (uses minutely-tokens.css)
 * ============================================================================= */

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-base);
  min-height: 100vh;
  color: var(--text-default);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--gradient-glow);
  opacity: 0.65;
}

.font-ui { font-family: var(--font-ui); }
.font-doc { font-family: var(--font-doc); }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.font-serif, .display-serif { font-family: var(--font-doc); letter-spacing: -0.02em; }

.text-note {
  font-family: var(--font-doc);
  font-size: var(--text-note);
  line-height: var(--leading-note);
}

::selection { background: var(--brand-soft); color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

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

.app-section-title { color: var(--text-strong); font-weight: 650; letter-spacing: -0.01em; }
.app-muted { color: var(--text-muted) !important; }
.app-eyebrow {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Workflow chips */
.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}

.wf-chip--draft { color: var(--wf-draft-fg); background: var(--wf-draft-bg); border-color: var(--wf-draft-border); }
.wf-chip--pending, .wf-chip--in-review, .wf-chip--review { color: var(--wf-pending-fg); background: var(--wf-pending-bg); border-color: var(--wf-pending-border); }
.wf-chip--approved { color: var(--wf-approved-fg); background: var(--wf-approved-bg); border-color: var(--wf-approved-border); }
.wf-chip--rejected, .wf-chip--failed { color: var(--wf-rejected-fg); background: var(--wf-rejected-bg); border-color: var(--wf-rejected-border); }
.wf-chip--shared, .wf-chip--distributed { color: var(--wf-shared-fg); background: var(--wf-shared-bg); border-color: var(--wf-shared-border); }
.wf-chip--info, .wf-chip--ai-beta { color: var(--wf-info-fg); background: var(--wf-info-bg); border-color: var(--wf-info-border); }
.wf-chip--live { color: var(--wf-live-fg); background: var(--wf-live-bg); border-color: var(--wf-live-border); }
.wf-chip--archived, .wf-chip--muted, .wf-chip--ended { color: var(--wf-archived-fg); background: var(--wf-archived-bg); border-color: var(--wf-archived-border); }

.badge-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  font-family: var(--font-ui);
}
.badge-state::before { content: none; }
.badge-state.is-draft { color: var(--wf-draft-fg); background: var(--wf-draft-bg); border-color: var(--wf-draft-border); }
.badge-state.is-in-review { color: var(--wf-pending-fg); background: var(--wf-pending-bg); border-color: var(--wf-pending-border); }
.badge-state.is-approved { color: var(--wf-approved-fg); background: var(--wf-approved-bg); border-color: var(--wf-approved-border); }
.badge-state.is-failed { color: var(--wf-rejected-fg); background: var(--wf-rejected-bg); border-color: var(--wf-rejected-border); }
.badge-state.is-live { color: var(--wf-live-fg); background: var(--wf-live-bg); border-color: var(--wf-live-border); }
.badge-state.is-ai-beta { color: var(--wf-info-fg); background: var(--wf-info-bg); border-color: var(--wf-info-border); }
.badge-state.is-archived { color: var(--wf-archived-fg); background: var(--wf-archived-bg); border-color: var(--wf-archived-border); }

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 22px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.state-badge-live, .state-badge-approved { color: var(--wf-live-fg); background: var(--wf-live-bg); border-color: var(--wf-live-border); }
.state-badge-draft, .state-badge-review, .state-badge-soon { color: var(--wf-draft-fg); background: var(--wf-draft-bg); border-color: var(--wf-draft-border); }
.state-badge-muted { color: var(--wf-archived-fg); background: var(--wf-archived-bg); border-color: var(--wf-archived-border); }

.approval-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.approval-actions .btn-min--reject, .approval-actions .btn-outline-danger { margin-left: var(--space-4); }

.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-hover);
  --bs-btn-hover-border-color: var(--color-primary-hover);
  --bs-btn-color: var(--text-inverse);
  --bs-btn-border-radius: var(--radius-ui);
}
.btn-outline-primary {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-border-radius: var(--radius-ui);
}
.text-primary { color: var(--color-primary) !important; }
.btn-soft {
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  color: var(--color-primary);
  border-radius: var(--radius-ui);
}

.card-min, .app-shell-card, .card-glass, .meetings-list-card, .detail-info-card, .detail-tabs-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card) !important;
}

.note-doc { font-family: var(--font-doc); font-size: var(--text-note); line-height: var(--leading-note); color: var(--text-default); }
.note-ai-block {
  background: var(--note-ai-bg);
  border: 1px solid var(--note-ai-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
}
.note-ai-block__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.table, .table-min {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: var(--bg-inset);
  --bs-table-hover-bg: var(--color-primary-soft);
  --bs-table-border-color: var(--bg-border);
  --bs-table-color: var(--text-default);
}

.modal { position: fixed !important; inset: 0 !important; z-index: 1055 !important; }
.modal-backdrop { background-color: var(--overlay-scrim) !important; }
.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border-strong);
  border-radius: var(--radius-card);
  color: var(--text-default);
}
.modal-title { color: var(--text-strong); font-weight: 600; }
.modal-body { color: var(--text-default); }
.modal-body .form-control, .modal-body .form-select {
  background: var(--bg-surface);
  border-color: var(--bg-border);
  color: var(--text-default);
}

/* ─── Projects workspace shell (sidebar + topbar) ─── */

.projects-page {
  min-height: 100vh;
  background: var(--bg-base);
}

.main-workspace {
  min-height: 100vh;
  transition: margin-left 0.26s var(--ease-out);
}

/* Sidebar container */
.sidebar {
  top: 0;
  z-index: 200;
  height: 100vh;
  max-width: 256px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--bg-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--ease-out);
  will-change: transform;
}

.sidebar.sidebar--collapsed {
  transform: translateX(-100%);
}

.sidebar-spacer {
  transition: width 0.26s var(--ease-out);
}

.sidebar-spacer.sidebar--collapsed {
  width: 0 !important;
  flex: 0 !important;
  max-width: 0 !important;
}

.sidebar-logo-link {
  line-height: 0;
  flex: 1;
  min-width: 0;
}

.sidebar-logo-link img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: none !important;
}
html[data-theme="light"] .sidebar-logo-link img.minutely-logo--dark,
html[data-bs-theme="light"] .sidebar-logo-link img.minutely-logo--dark {
  display: block !important;
}
html[data-theme="dark"] .sidebar-logo-link img.minutely-logo--light,
html[data-bs-theme="dark"] .sidebar-logo-link img.minutely-logo--light {
  display: block !important;
}

.sidebar-close-btn,
.sidebar-collapse-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.sidebar-collapse-btn:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-border);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .sidebar-collapse-btn {
    display: none;
  }
}

.sidebar-nav-sub {
  margin-left: var(--space-2);
  padding-left: calc(var(--space-3) + 4px) !important;
  font-size: 0.82rem !important;
  opacity: 0.92;
}

.sidebar-nav-sub i {
  font-size: 0.95rem !important;
}

.sidebar-brand-row {
  gap: var(--space-2);
}

.event-template-form {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  max-width: min(100%, 320px);
}

.mom-template-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  max-width: min(100%, 360px);
}

.mom-template-form--compact {
  max-width: min(100%, 200px);
}

.mom-template-form__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.mom-template-form__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-template);
}

.mom-template-form__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mom-template-form__row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.mom-template-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.mom-template-form__footer a {
  color: var(--color-template);
}

.event-template-select,
.mom-template-select {
  min-width: 140px;
  max-width: 220px;
  font-size: 0.78rem;
  border-color: var(--color-template-border);
  background: var(--bg-surface);
}

.mom-template-select:focus {
  border-color: var(--color-template);
  box-shadow: 0 0 0 3px var(--color-template-soft);
}

.event-template-save,
.mom-template-save {
  white-space: nowrap;
  border-color: var(--color-template-border);
  color: var(--color-template);
}

.mom-template-save:hover {
  background: var(--color-template-soft);
  border-color: var(--color-template);
  color: var(--color-template-hover);
}

.detail-template-row {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-template-border);
  border-left: 3px solid var(--color-template);
  border-radius: var(--radius-md);
  background: var(--color-template-soft);
}

.detail-template-row .mom-template-form {
  max-width: 100%;
}

.upcoming-event-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--bg-border);
}

.upcoming-event-row:last-child {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .event-template-form,
  .mom-template-form {
    width: 100%;
    max-width: 100%;
  }
  .event-template-select,
  .mom-template-select {
    flex: 1;
    max-width: none;
  }
  .mom-template-form--compact {
    max-width: 100%;
  }
}

.sidebar-nav-scroll {
  min-height: 0;
  scrollbar-width: thin;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
}

.sidebar-nav-section {
  margin-bottom: var(--space-3);
}

.sidebar-nav-label {
  padding: 0.35rem var(--space-3);
  color: var(--text-tertiary);
  font-size: 0.66rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-main-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: var(--space-2) var(--space-3);
  margin-bottom: 0.125rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.9rem;
}

.sidebar-main-nav .nav-link i {
  font-size: var(--text-lg);
  opacity: 0.9;
}

.sidebar-main-nav .nav-link:hover {
  color: var(--text-primary);
  background: var(--brand-soft);
  border-color: var(--brand-border);
}

.sidebar-main-nav .nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-border);
  font-weight: var(--weight-semibold);
}

.sidebar-main-nav .nav-link.active i {
  color: var(--brand);
}

.sidebar-main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background: var(--signal);
  border-radius: 2px;
}

.sidebar-main-nav .nav-link-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.sidebar-main-nav .nav-link-disabled:hover {
  color: var(--text-secondary);
  background: transparent;
}

.sidebar-main-nav .state-badge,
.sidebar-main-nav .wf-chip {
  flex-shrink: 0;
}

.sidebar-hamburger-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.sidebar-hamburger-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

body.sidebar-open .sidebar-hamburger-btn {
  opacity: 0.4;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-scrim);
  z-index: 199;
  backdrop-filter: blur(2px);
  transition: opacity 0.26s;
}

.sidebar-overlay.active {
  display: block;
}

/* App topbar */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-base) 92%, transparent);
  border-bottom: 1px solid var(--bg-border);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: padding var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.app-topbar.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.app-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-6);
  gap: var(--space-4);
}

.app-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-topbar-project {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.app-topbar-theme-btn,
.app-topbar-billing-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-ui);
  cursor: pointer;
  font-size: 13px;
  font-weight: var(--weight-medium);
  font-family: var(--font-ui);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.app-topbar-theme-btn {
  width: 36px;
  padding: 0;
}

.app-topbar-theme-btn:hover,
.app-topbar-billing-btn:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.app-topbar-theme-btn:active,
.app-topbar-billing-btn:active {
  transform: translateY(0);
}

.app-topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--text-inverse);
  font-family: var(--font-ui);
  font-weight: var(--weight-semibold);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 3px var(--brand-border);
}

/* Profile dropdown */
.profile-menu-wrap {
  position: relative;
}

.app-topbar-avatar-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
}

.app-topbar-avatar-btn:hover .app-topbar-avatar {
  background: var(--brand-hover);
}

.app-topbar-avatar-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 230px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-ui);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  padding: 6px 0;
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown a,
.profile-dropdown button[role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px var(--space-4);
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
}

.profile-dropdown a:hover,
.profile-dropdown button[role="menuitem"]:hover {
  background: var(--bg-elevated);
}

.profile-dropdown a:focus-visible,
.profile-dropdown button[role="menuitem"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.profile-dropdown i {
  font-size: 15px;
  color: var(--text-secondary);
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 6px;
}

.profile-dropdown-id {
  min-width: 0;
}

.profile-dropdown-name {
  font-weight: var(--weight-semibold);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-sep {
  height: 1px;
  background: var(--bg-border);
  margin: 6px 0;
}

.profile-dropdown-danger,
.profile-dropdown-danger i {
  color: var(--danger) !important;
}

.profile-dropdown-danger:hover {
  background: var(--danger-soft) !important;
}

/* Legacy sidebar user bar + context menu */
.sidebar-user-section {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-top: 1px solid var(--bg-border);
}

.user-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
}

.user-bar:hover {
  background: var(--bg-elevated);
}

.user-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
}

.user-avatar-lg {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.9rem;
}

.user-bar-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-bar-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  opacity: 0.8;
}

.user-context-menu {
  position: absolute;
  bottom: 100%;
  left: var(--space-3);
  right: var(--space-3);
  margin-bottom: var(--space-1);
  max-width: 256px;
  background-color: var(--surface-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  z-index: 200;
  overflow: hidden;
}

.user-context-menu-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--bg-border);
}

.user-context-menu-info {
  min-width: 0;
}

.user-context-menu-name {
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-context-menu-email {
  font-size: 0.8rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-context-menu-items {
  padding: var(--space-1) 0;
}

.user-context-menu-label {
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4) var(--space-1);
  margin-top: var(--space-2);
}

.user-context-menu-label:first-of-type {
  margin-top: 0;
}

.user-context-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 0.6rem var(--space-4);
  border: none;
  background: none;
  color: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.user-context-item:hover {
  background: var(--bg-elevated);
}

.user-context-item-logout {
  color: var(--danger);
  margin-top: var(--space-1);
}

.user-context-item-logout:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.user-context-logout-form {
  width: 100%;
}

.user-context-logout-form .user-context-item {
  width: 100%;
}

/* Legacy nested sidebar dropdowns */
.account-dropdown,
.api-integration-dropdown,
.settings-dropdown {
  position: relative;
}

.account-submenu,
.api-integration-submenu,
.settings-submenu {
  transition: all var(--duration-slow) var(--ease-in-out);
}

.account-submenu .nav-link,
.api-integration-submenu .nav-link,
.settings-submenu .nav-link {
  font-size: 0.95em;
}

.account-caret,
.api-integration-caret,
.settings-caret {
  transform: rotate(0deg);
}

.account-caret-container,
.api-integration-caret-container,
.settings-caret-container {
  display: inline-flex;
  align-items: center;
  transform: translateY(5px);
}

/* Project selector (commented block in sidebar template) */
.project-dropdown-toggle {
  background-color: transparent;
  border: none;
  padding: var(--space-2) 0;
  font-weight: var(--weight-medium);
}

.project-dropdown-toggle:focus {
  box-shadow: none;
}

.project-selector .dropdown-menu {
  border-radius: var(--radius-sm);
}

.project-selector .dropdown-item {
  cursor: pointer;
}

.project-selector .dropdown-item.active {
  color: var(--bs-body-color);
}

/* Bootstrap chevron + collapse helpers used by sidebar */
[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

[aria-expanded="false"] .bi-chevron-down {
  transform: rotate(0deg);
}

.collapse,
.collapsing {
  transition-duration: 0s !important;
}

@media (max-width: 768px) {
  .sidebar {
    z-index: 300;
    transform: translateX(-100%);
  }

  .sidebar.sidebar--open {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }

  .sidebar-spacer {
    display: none !important;
  }

  .main-workspace {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .app-topbar-inner {
    padding: var(--space-2) var(--space-4);
  }

  .app-topbar-billing-btn span {
    display: none;
  }
}

@media (min-width: 769px) {
  .sidebar-overlay {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .app-topbar-inner {
    padding: 0 var(--space-3);
  }

  .app-topbar-project {
    font-size: 13px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.theme-toggle-icon-dark, .theme-toggle-icon-light { display: none; }
[data-theme="dark"] .theme-toggle-icon-dark, [data-bs-theme="dark"] .theme-toggle-icon-dark { display: inline; }
[data-theme="light"] .theme-toggle-icon-light, [data-bs-theme="light"] .theme-toggle-icon-light { display: inline; }

/* Logo assets: *-logo-dark.webp = dark ink (light theme), *-logo-light.webp = light ink (dark theme) */
.minutely-logo--light,
.minutely-logo--dark {
  display: none !important;
}
html[data-theme="light"] .minutely-logo--dark,
html[data-bs-theme="light"] .minutely-logo--dark {
  display: block !important;
}
html[data-theme="dark"] .minutely-logo--light,
html[data-bs-theme="dark"] .minutely-logo--light {
  display: block !important;
}

#minutely-busy-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-scrim);
  z-index: 1080;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
#minutely-busy-overlay > div,
.minutely-busy-panel {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  max-width: 420px;
  text-align: center;
  color: var(--text-strong);
  box-shadow: var(--shadow-lg);
}
.minutely-busy-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.minutely-busy-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.timestamp-pill, .minutely-timestamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
}

/* ── Auth pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}
.auth-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  animation: minutelyAuthIn 500ms var(--ease-out) both;
}
@keyframes minutelyAuthIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}
.auth-brand-logo {
  max-width: 180px;
  height: auto;
}
.auth-title {
  font-family: var(--font-doc);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 16px 0 4px;
  font-weight: var(--weight-regular);
  text-align: center;
}
.auth-subtitle {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--text-muted);
  margin: 0 0 28px;
  text-align: center;
}
.auth-google-wrap { margin-bottom: 16px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bg-border);
}
.auth-field {
  margin-bottom: 16px;
  position: relative;
}
.auth-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.auth-input,
.auth-page .form-control,
.auth-page .form-floating > .form-control {
  font-family: var(--font-ui);
  background: var(--bg-base);
  border: 1.5px solid var(--bg-border);
  border-radius: var(--radius-ui);
  color: var(--text-strong);
  padding: 12px 14px;
  font-size: var(--text-sm);
  width: 100%;
  height: 48px;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}
.auth-input--password { padding-right: 44px; }
.auth-input::placeholder,
.auth-page .form-control::placeholder {
  color: var(--text-muted);
}
.auth-input:hover,
.auth-page .form-control:hover {
  border-color: var(--brand-border);
}
.auth-input:focus,
.auth-page .form-control:focus {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
  outline: none;
  background: var(--bg-base);
}
.auth-page .form-floating > label {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}
.auth-page .form-floating > .form-control:focus ~ label,
.auth-page .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--brand);
  font-size: var(--text-xs);
}
.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: auto;
  bottom: 14px;
  transform: none;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
  z-index: 2;
}
.auth-password-toggle:hover { color: var(--text-strong); }
.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 18px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-default);
  cursor: pointer;
}
.auth-remember input[type="checkbox"] { accent-color: var(--brand); }
.auth-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: var(--weight-medium);
}
.auth-link:hover { color: var(--brand-hover); }
.auth-btn {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  height: 48px;
  border-radius: var(--radius-ui);
  border: 0;
  background: var(--brand);
  color: var(--text-inverse);
  padding: 0 20px;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.auth-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  color: var(--text-inverse);
}
.auth-btn:active { transform: translateY(0) scale(0.99); }
.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.auth-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
    color-mix(in srgb, var(--text-inverse) 35%, transparent) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 350ms ease-out;
}
.auth-btn.is-rippling::after { opacity: 1; }
.auth-btn-secondary {
  background: var(--bg-base);
  color: var(--text-strong);
  border: 1.5px solid var(--bg-border);
}
.auth-btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--brand-border);
  color: var(--brand);
}
.auth-terms {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  line-height: var(--leading-ui);
  color: var(--text-muted);
  text-align: center;
  margin: 16px 0 0;
}
.auth-terms a {
  color: var(--text-default);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-terms a:hover { color: var(--brand); }
.auth-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 18px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-ui);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
  font-family: var(--font-ui);
}
.auth-consent:hover { border-color: var(--brand-border); }
.auth-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.auth-consent-checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--bg-border);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 14px;
  transition: all 180ms var(--ease-out);
  margin-top: 1px;
}
.auth-consent-checkbox i {
  transform: scale(0.5);
  transition: transform 180ms var(--ease-out);
}
.auth-consent input[type="checkbox"]:checked + .auth-consent-checkbox {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-inverse);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.auth-consent input[type="checkbox"]:checked + .auth-consent-checkbox i {
  transform: scale(1);
}
.auth-consent input[type="checkbox"]:focus-visible + .auth-consent-checkbox {
  box-shadow: var(--shadow-brand);
}
.auth-consent-text {
  font-size: 13px;
  line-height: var(--leading-ui);
  color: var(--text-default);
}
.auth-consent-text a {
  color: var(--brand);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.auth-consent-text a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}
.auth-switch {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-border);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-default);
}
.auth-switch a {
  color: var(--brand);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.auth-switch a:hover { color: var(--brand-hover); text-decoration: underline; }
.auth-error {
  background: var(--semantic-error-soft);
  border: 1px solid color-mix(in srgb, var(--semantic-error) 30%, transparent);
  color: var(--semantic-error);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  margin-bottom: 16px;
  animation: minutelyAuthErr 220ms var(--ease-out);
}
.auth-error p { margin: 0; }
@keyframes minutelyAuthErr {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.auth-trust {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.auth-trust span { display: inline-flex; align-items: center; gap: 4px; }
.auth-trust i { color: var(--brand); font-size: 13px; }
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
  background: var(--bg-surface);
  border: 1.5px solid var(--bg-border);
  border-radius: var(--radius-ui);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.auth-google-btn:hover {
  border-color: var(--brand-border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  color: var(--text-strong);
}
.auth-google-btn-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.auth-confirm-illustration {
  width: 88px;
  height: 88px;
  margin: 4px auto 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: minutelyFadeInUp 320ms var(--ease-out) 80ms both;
}
.auth-confirm-illustration--success {
  background: var(--success-soft);
  color: var(--success);
}
.auth-confirm-illustration--warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.auth-confirm-illustration--danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.auth-confirm-body {
  text-align: center;
  color: var(--text-default);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0 0 18px;
}
.auth-confirm-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
}
.auth-confirm-summary-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
}
.auth-confirm-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.auth-confirm-value {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  word-break: break-all;
  text-align: right;
}
.auth-verification-illustration {
  width: 88px;
  height: 88px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: minutelyFadeInUp 320ms var(--ease-out) 80ms both;
}
.auth-verification-hint {
  text-align: center;
  margin-bottom: 20px;
}
.auth-verification-hint p {
  color: var(--text-default);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
}
.auth-cancel-body {
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--text-default);
  margin-bottom: 16px;
}
.auth-cancel-body a { color: var(--brand); font-weight: var(--weight-medium); }
.auth-countdown {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
.auth-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.review-status-banner {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-ui);
  font-weight: var(--weight-semibold);
  border: 1px solid;
}
.review-status-banner.approved { background: var(--wf-approved-bg); color: var(--wf-approved-fg); border-color: var(--wf-approved-border); }
.review-status-banner.rejected { background: var(--wf-rejected-bg); color: var(--wf-rejected-fg); border-color: var(--wf-rejected-border); }
.review-status-banner.distributed { background: var(--wf-shared-bg); color: var(--wf-shared-fg); border-color: var(--wf-shared-border); }

/* Approval action buttons */
.btn-min {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-ui);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.btn-min:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-min--approve {
  background: var(--action-approve-bg);
  color: var(--action-approve-fg);
  border-color: var(--action-approve-bg);
}
.btn-min--approve:hover:not(:disabled) { background: var(--action-approve-hover); border-color: var(--action-approve-hover); }
.btn-min--reject {
  background: var(--action-reject-bg);
  color: var(--action-reject-fg);
  border-color: var(--action-reject-border);
}
.btn-min--reject:hover:not(:disabled) { background: var(--semantic-error-soft); }
.btn-min--changes {
  background: var(--action-changes-bg);
  color: var(--action-changes-fg);
  border-color: var(--action-changes-border);
}
.btn-min--changes:hover:not(:disabled) { background: var(--semantic-info-soft); }
.btn-min--save {
  background: var(--bg-surface);
  color: var(--text-default);
  border-color: var(--bg-border);
}
.btn-min--save:hover:not(:disabled) { background: var(--bg-elevated); }

.card-min--workflow { border-left: 4px solid var(--signal); }

/* Public MOM review */
.review-shell { max-width: 920px; margin: 0 auto; padding: var(--space-8) var(--space-4); }
.review-card,
.review-section {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.review-card { padding: var(--space-5) var(--space-5) var(--space-4); margin-bottom: var(--space-4); }
.review-section { padding: var(--space-4) var(--space-5); margin-bottom: var(--space-3); }
.review-section h2 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2) 0;
}
.review-title {
  font-family: var(--font-doc);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: var(--leading-tight);
}
.review-editable {
  min-height: 1.6rem;
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px dashed transparent;
  outline: none;
  color: var(--text-default);
}
.review-editable:focus {
  border-color: var(--color-primary-border);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-focus);
}
.review-list { list-style: none; padding-left: 0; margin: 0; }
.review-list li {
  padding: var(--space-2) 0;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.review-list li::before { content: "\2022"; color: var(--signal); margin-top: 0.05rem; }
.review-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.review-footer .form-control,
.review-section .form-control {
  background: var(--bg-surface);
  border-color: var(--bg-border);
  color: var(--text-default);
  border-radius: var(--radius-ui);
}
.review-footer .form-control::placeholder,
.review-section .form-control::placeholder { color: var(--text-muted); }
.review-footer .form-control:focus,
.review-section .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.review-reviewer-name { max-width: 280px; flex: 1 1 200px; }
.review-note-human {
  background: var(--note-human-bg);
  border: 1px solid var(--note-human-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.action-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  align-items: center;
}
.action-row input {
  background: var(--bg-inset);
  color: var(--text-default);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}
.action-row input::placeholder { color: var(--text-muted); }
.action-row input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: var(--shadow-focus);
}
.action-row button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: var(--space-1);
}
.action-row button:hover { color: var(--semantic-error); }

@media (max-width: 640px) {
  .action-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--bg-border);
  }
  .action-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .action-row button { justify-self: end; }
  .review-footer { flex-direction: column; align-items: stretch; }
  .review-reviewer-name { max-width: none; }
  .approval-actions { justify-content: stretch; }
  .approval-actions .btn-min { flex: 1 1 auto; justify-content: center; }
}

.rv-transcript-summary {
  cursor: pointer;
  font-weight: var(--weight-semibold);
  font-family: var(--font-ui);
  color: var(--text-strong);
  list-style: none;
}
.rv-transcript-count { font-weight: var(--weight-regular); }
.rv-transcript-summary::-webkit-details-marker { display: none; }
.rv-transcript-summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: var(--space-2);
  color: var(--signal);
  transition: transform var(--duration-fast) var(--ease-out);
}
.rv-transcript[open] .rv-transcript-summary::before { transform: rotate(90deg); }
.rv-transcript-body { margin-top: var(--space-4); max-height: 440px; overflow: auto; }
.rv-transcript-line { padding: var(--space-2) 0; border-top: 1px solid var(--bg-border); }
.rv-transcript-line:first-child { border-top: 0; }
.rv-transcript-meta { display: flex; align-items: baseline; gap: var(--space-2); }
.rv-transcript-speaker {
  font-weight: var(--weight-semibold);
  font-family: var(--font-ui);
  color: var(--signal);
  font-size: var(--text-sm);
}
.rv-transcript-ts {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.rv-transcript-text {
  line-height: var(--leading-note);
  margin-top: var(--space-1);
  color: var(--text-default);
}

.review-expired-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-4);
}
.review-expired-card { padding: var(--space-6); }
.review-expired-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  margin: var(--space-2) 0 var(--space-3);
  line-height: var(--leading-tight);
}

@keyframes minutelyFadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: minutelyFadeInUp var(--duration-base) var(--ease-out) forwards; }
.min-h-0 { min-height: 0 !important; }
video { max-width: 100%; max-height: 500px; object-fit: contain; display: block; }
/* ─── Sprint 8: Marketing pages ─── */
.marketing-page {
  position: relative;
  color: var(--text-default);
  min-height: 100vh;
  font-family: var(--font-ui);
}

.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: background var(--duration-base) var(--ease-out),
    padding var(--duration-base) var(--ease-out),
    backdrop-filter var(--duration-base) var(--ease-out);
}

/* Top of page: full-width glass bar, nav links centered in the viewport */
.mkt-nav:not(.is-scrolled) {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg-base) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bg-border) 55%, transparent);
}

.mkt-nav-inner {
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  transition: max-width var(--duration-slow) var(--ease-out),
    padding var(--duration-slow) var(--ease-out),
    border-radius var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out),
    background var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out),
    backdrop-filter var(--duration-slow) var(--ease-out);
}

.mkt-nav:not(.is-scrolled) .mkt-logo { grid-column: 1; justify-self: start; }
.mkt-nav:not(.is-scrolled) .mkt-nav-links { grid-column: 2; justify-self: center; }
.mkt-nav:not(.is-scrolled) .mkt-nav-cta { grid-column: 3; justify-self: end; }

/* Scrolled: compact floating pill — tabs centered, solid surface */
.mkt-nav.is-scrolled {
  padding: 10px clamp(12px, 3vw, 24px) 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.mkt-nav.is-scrolled .mkt-nav-inner {
  max-width: min(920px, 100%);
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-border);
  box-shadow: var(--shadow-md);
  grid-template-columns: auto 1fr auto;
  gap: 12px;
}

.mkt-nav.is-scrolled .mkt-logo { grid-column: 1; justify-self: start; }
.mkt-nav.is-scrolled .mkt-nav-links {
  grid-column: 2;
  justify-self: center;
  gap: 22px;
}
.mkt-nav.is-scrolled .mkt-nav-cta {
  grid-column: 3;
  justify-self: end;
  gap: 8px;
}

.mkt-logo {
  font-family: var(--font-doc);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-decoration: none;
  display: grid;
  place-items: center start;
  height: 44px;
  min-width: 0;
  line-height: 0;
}
.mkt-logo > img {
  grid-area: 1 / 1;
  height: 44px;
  width: auto;
  max-width: min(160px, 36vw);
  object-fit: contain;
}
.mkt-nav.is-scrolled .mkt-logo {
  height: 34px;
}
.mkt-nav.is-scrolled .mkt-logo > img {
  height: 34px;
  max-width: 130px;
}
.mkt-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--gradient-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  font-family: var(--font-doc);
  box-shadow: var(--shadow-glow);
}

.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mkt-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-medium);
  font-family: var(--font-ui);
  transition: color var(--duration-fast) var(--ease-out);
}
.mkt-nav-links a:hover,
.mkt-nav-links a.is-active { color: var(--text-strong); }
.mkt-nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mkt-nav.is-scrolled .mkt-nav-cta .btn-ghost,
.mkt-nav.is-scrolled .mkt-nav-cta .btn-brand {
  padding: 7px 14px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .mkt-nav-inner {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }
  .mkt-nav-links { display: none; }
  .mkt-nav:not(.is-scrolled) .mkt-logo,
  .mkt-nav.is-scrolled .mkt-logo { grid-column: 1; }
  .mkt-nav:not(.is-scrolled) .mkt-nav-cta,
  .mkt-nav.is-scrolled .mkt-nav-cta { grid-column: 2; }
  .mkt-nav.is-scrolled .mkt-nav-inner {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }
}

.btn-ghost,
.btn-brand,
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-ui);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  border: 0;
  font-family: var(--font-ui);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text-strong); background: var(--bg-elevated); }
.btn-brand {
  background: var(--color-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-brand:hover {
  background: var(--color-primary-hover);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-brand:active { transform: scale(0.98); }
.btn-secondary-outline {
  background: transparent;
  color: var(--text-strong);
  border: 1.5px solid var(--bg-border);
}
.btn-secondary-outline:hover {
  border-color: var(--color-primary-border);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

.mkt-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-pill);
}

.mkt-headline {
  font-family: var(--font-doc);
  font-weight: var(--weight-regular);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: var(--leading-tight);
}

.theme-toggle {
  appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 16px;
}
.theme-toggle:hover {
  color: var(--text-strong);
  border-color: var(--color-primary-border);
  background: var(--color-primary-soft);
}
.theme-toggle .bi-moon-stars { display: inline-block; }
.theme-toggle .bi-sun { display: none; }
[data-theme="dark"] .theme-toggle .bi-moon-stars,
[data-bs-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun,
[data-bs-theme="dark"] .theme-toggle .bi-sun { display: inline-block; }

.mkt-footer {
  border-top: 1px solid var(--bg-border);
  background: var(--bg-surface);
  padding: 64px 24px 24px;
}
.mkt-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 980px) {
  .mkt-footer-inner { grid-template-columns: 1fr 1fr; }
}
.mkt-footer h4 {
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-family: var(--font-ui);
}
.mkt-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mkt-footer ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--duration-fast) var(--ease-out);
}
.mkt-footer ul a:hover { color: var(--text-strong); }
.mkt-footer-brand .tagline {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
  max-width: 240px;
  line-height: var(--leading-ui);
}
.mkt-footer-bar {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.mkt-footer-bar a { color: var(--text-muted); text-decoration: none; }
.mkt-footer-bar a:hover { color: var(--text-strong); }
.mkt-footer-socials { display: flex; gap: 16px; }
.mkt-footer-socials a { font-size: 16px; }

/* Site intro overlay (home) */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--bg-inset) 0%, color-mix(in srgb, var(--color-primary) 35%, var(--bg-inset)) 100%);
  cursor: pointer;
}
.site-intro__mark {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.site-intro__title {
  font-family: var(--font-doc);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--text-inverse);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.site-intro__tagline {
  color: color-mix(in srgb, var(--text-inverse) 55%, transparent);
  font-size: 15px;
  font-family: var(--font-ui);
}
.site-intro__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: color-mix(in srgb, var(--text-inverse) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-inverse) 20%, transparent);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--text-inverse);
  font-family: var(--font-ui);
  animation: introPulse 2s infinite;
}
.site-intro__hint {
  color: color-mix(in srgb, var(--text-inverse) 35%, transparent);
  font-size: 12px;
  margin-top: -8px;
  font-family: var(--font-ui);
}
@keyframes introPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--text-inverse) 25%, transparent); }
  50% { box-shadow: 0 0 0 10px transparent; }
}

/* Legal pages */
.legal-page {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 24px 96px;
}
.legal-page h1 {
  font-family: var(--font-doc);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  margin-bottom: 8px;
  color: var(--text-strong);
}
.legal-page .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-family: var(--font-ui);
}
.legal-page h2 {
  font-family: var(--font-doc);
  font-size: 1.1rem;
  font-weight: var(--weight-semibold);
  margin: 36px 0 12px;
  color: var(--text-strong);
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: var(--leading-note);
  color: var(--text-default);
  font-family: var(--font-ui);
}
.legal-page ul { padding-left: 20px; margin: 8px 0; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--color-primary); }
.legal-page code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* Demo booking */
.demo-page { min-height: 100vh; }
.demo-shell { max-width: 1080px; margin: 0 auto; padding: 56px 24px 96px; }
.demo-back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: var(--weight-medium);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-family: var(--font-ui);
}
.demo-back-link:hover { color: var(--text-strong); }
.demo-header { text-align: center; margin-bottom: 48px; }
.demo-header h1 {
  font-family: var(--font-doc);
  font-weight: var(--weight-regular);
  font-size: clamp(36px, 5vw, 56px);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text-strong);
}
.demo-header p {
  font-size: 17px;
  line-height: var(--leading-ui);
  color: var(--text-default);
  max-width: 580px;
  margin: 0 auto;
  font-family: var(--font-ui);
}
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 880px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.demo-card h3 {
  font-family: var(--font-doc);
  font-weight: var(--weight-regular);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--text-strong);
}
.demo-card p.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-family: var(--font-ui);
}
.demo-day { margin-bottom: 18px; }
.demo-day-label {
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-ui);
}
.demo-slot-row { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-slot {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-border);
  background: var(--bg-base);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: var(--font-ui);
}
.demo-slot:hover {
  border-color: var(--color-primary-border);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}
.demo-slot.is-active {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}
.demo-tz-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-border);
  font-family: var(--font-ui);
}
.demo-tz-line a { color: var(--color-primary); text-decoration: none; }
.demo-field { margin-bottom: 14px; }
.demo-field label {
  display: block;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  margin-bottom: 5px;
  font-family: var(--font-ui);
}
.demo-field input,
.demo-field textarea,
.demo-field select {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: 9px;
  color: var(--text-strong);
  font-size: 14px;
  font-family: var(--font-ui);
}
.demo-field input:focus,
.demo-field textarea:focus,
.demo-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.demo-field textarea { min-height: 90px; resize: vertical; }
.demo-submit {
  width: 100%;
  background: var(--color-primary);
  color: var(--text-inverse);
  border: 0;
  padding: 14px 20px;
  border-radius: 11px;
  font-weight: var(--weight-semibold);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  margin-top: 8px;
  font-family: var(--font-ui);
}
.demo-submit:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.demo-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
  justify-content: center;
  font-family: var(--font-ui);
}
.demo-trust span { display: inline-flex; align-items: center; gap: 5px; }
.demo-error-list {
  background: var(--semantic-error-soft);
  border: 1px solid var(--semantic-error);
  color: var(--semantic-error);
  padding: 12px 14px;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 13px;
  font-family: var(--font-ui);
}
.demo-error-list ul { margin: 0; padding-left: 18px; }

/* Demo success */
.demo-success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.demo-success-card {
  max-width: 560px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 18px;
  padding: 44px 38px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.demo-success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--semantic-success);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.demo-success-card h1 {
  font-family: var(--font-doc);
  font-weight: var(--weight-regular);
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.demo-success-card .lede {
  color: var(--text-default);
  font-size: 16px;
  line-height: var(--leading-ui);
  margin: 0 0 26px;
  font-family: var(--font-ui);
}
.demo-success-when {
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}
.demo-success-when .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.demo-success-when .when {
  font-size: 18px;
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
  font-family: var(--font-ui);
}
.demo-success-when .tz {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
  font-family: var(--font-ui);
}
.demo-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.demo-success-btn {
  padding: 11px 22px;
  border-radius: var(--radius-ui);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  transition: all var(--duration-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
}
.demo-success-btn-primary {
  background: var(--color-primary);
  color: var(--text-inverse) !important;
}
.demo-success-btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.demo-success-btn-secondary {
  background: transparent;
  color: var(--text-strong);
  border: 1px solid var(--bg-border);
}
.demo-success-btn-secondary:hover {
  border-color: var(--color-primary-border);
  color: var(--color-primary);
}
.demo-success-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: var(--leading-ui);
  margin: 0;
  font-family: var(--font-ui);
}
.demo-success-note a { color: var(--color-primary); }

/* Pricing page */
.pricing-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 24px 32px;
  text-align: center;
}
.pricing-hero h1 {
  font-family: var(--font-doc);
  font-weight: var(--weight-regular);
  font-size: clamp(40px, 6vw, 72px);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 18px;
}
.pricing-hero h1 .accent { color: var(--color-primary); font-style: italic; }
.pricing-hero p.lede {
  font-size: 18px;
  line-height: var(--leading-ui);
  color: var(--text-default);
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-ui);
}
.pricing-plans-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
}
.pricing-trust {
  border-top: 1px solid var(--bg-border);
  padding: 40px 24px;
  background: var(--bg-elevated);
}
.pricing-trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: var(--weight-medium);
  font-family: var(--font-ui);
}
.pricing-trust-inner span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-faq {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.pricing-faq h2 {
  font-family: var(--font-doc);
  font-weight: var(--weight-regular);
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-align: center;
  margin: 0 0 40px;
}
.pricing-faq-item {
  border-bottom: 1px solid var(--bg-border);
  padding: 20px 0;
}
.pricing-faq-item summary {
  cursor: pointer;
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-ui);
}
.pricing-faq-item summary::-webkit-details-marker { display: none; }
.pricing-faq-item summary::after {
  content: "+";
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  transition: transform var(--duration-base) var(--ease-out);
}
.pricing-faq-item[open] summary::after { transform: rotate(45deg); }
.pricing-faq-item p {
  color: var(--text-default);
  line-height: var(--leading-ui);
  margin: 12px 0 0;
  font-size: 15px;
  font-family: var(--font-ui);
}
.pricing-footer {
  border-top: 1px solid var(--bg-border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-ui);
}
.pricing-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 12px;
}
.pricing-footer a:hover { color: var(--text-strong); }
.pricing-auth-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-medium);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  font-family: var(--font-ui);
}
.pricing-auth-link:hover { color: var(--text-strong); background: var(--bg-elevated); }
.pricing-auth-cta {
  background: var(--color-primary);
  color: var(--text-inverse) !important;
  padding: 10px 18px;
  border-radius: var(--radius-ui);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: var(--font-ui);
}
.pricing-auth-cta:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

.mkt-form-result.is-success { color: var(--semantic-success); }
.mkt-form-result.is-error { color: var(--semantic-error); }

/* ─── Sprint 2: Meetings list & bot detail ─── */
.card-min--workflow {
  border-left: 3px solid var(--color-accent-gold) !important;
}

.meetings-list-card {
  overflow: hidden;
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm) !important;
}
[data-theme="dark"] .meetings-list-card,
[data-bs-theme="dark"] .meetings-list-card {
  background: var(--bg-elevated) !important;
}

.meeting-cards-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.meeting-card {
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  transition: box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  background: var(--bg-inset);
}
.meeting-card:hover {
  border-color: var(--bg-border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.meeting-card-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.meeting-card-field .field-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.meeting-card-field .field-value {
  font-size: var(--text-sm);
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meeting-card-field.field-title { flex: 1 1 240px; min-width: 0; }
.meeting-card-field.field-title .field-name {
  font-size: 0.95rem;
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meeting-card-field.field-title .field-url {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meeting-card-field.field-status { flex: 0 0 160px; }
.meeting-card-field.field-template { flex: 0 0 200px; }
.meeting-card-field.field-joinat { flex: 0 0 150px; }
.meeting-card-field.field-created { flex: 0 0 150px; text-align: right; }

.meeting-card-field.field-template .mom-template-form--compact {
  width: 100%;
}

.meeting-card-field.field-template .mom-template-form__row {
  width: 100%;
}

.meeting-card-field.field-template .mom-template-select {
  flex: 1;
  min-width: 0;
  max-width: none;
}

@media (max-width: 640px) {
  .meeting-card {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  .meeting-card-field.field-title,
  .meeting-card-field.field-status,
  .meeting-card-field.field-template,
  .meeting-card-field.field-joinat,
  .meeting-card-field.field-created,
  .meeting-card-field.field-meeting-id,
  .meeting-card-field.field-summary {
    flex: 1 1 auto;
  }
  .meeting-card-field.field-created { text-align: left; }
}

.status-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.status-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  color: var(--text-default);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  transition: all 180ms var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.status-tab:hover {
  color: var(--text-strong);
  background: var(--color-primary-soft);
  transform: translateY(-1px);
}
.status-tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.status-tab.active {
  color: var(--text-inverse);
  background: var(--color-primary);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-sm);
}
.status-tab.active:hover {
  background: var(--color-primary-hover);
  transform: none;
}
.status-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--bg-surface);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-default);
  transition: all 180ms var(--ease-out);
}
.status-tab.active .tab-count {
  background: color-mix(in srgb, var(--text-inverse) 22%, transparent);
  color: var(--text-inverse);
}

.meetings-subtitle {
  font-size: 0.9rem;
  color: var(--text-default);
  margin-top: calc(var(--space-2) * -1);
  margin-bottom: var(--space-5);
}
.meetings-empty-state { text-align: center; padding: var(--space-12) var(--space-6); }
.meetings-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent-soft);
  margin-bottom: var(--space-5);
}
.meetings-empty-icon i { font-size: 2rem; color: var(--color-accent-gold); }
.meetings-empty-title { color: var(--text-strong); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.meetings-empty-text {
  color: var(--text-default);
  max-width: 400px;
  margin: 0 auto var(--space-6);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Bot detail */
.bot-detail-page h2 { color: var(--text-strong); }

.detail-info-card {
  padding: 0;
  margin-bottom: var(--space-6);
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
}
.detail-info-card .card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--bg-border);
}
.detail-info-card .card-header-row .back-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-strong);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  transition: color var(--duration-base) var(--ease-out);
}
.detail-info-card .card-header-row .back-link:hover { color: var(--color-accent-gold); }
.detail-info-card .card-header-row .kebab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.detail-info-card .card-header-row .kebab-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-strong);
}
.detail-info-card .card-data-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
}
.detail-info-card .data-col {
  flex: 1 1 0;
  min-width: 0;
  padding-right: var(--space-5);
  border-right: 1px solid var(--bg-border);
}
.detail-info-card .data-col:last-child { border-right: none; padding-right: 0; }
.detail-info-card .data-col:not(:first-child) { padding-left: var(--space-5); }
.detail-info-card .info-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 3px;
  white-space: nowrap;
}
.detail-info-card .info-value {
  font-size: var(--text-sm);
  color: var(--text-strong);
  word-break: break-all;
}
.detail-info-card .info-value a { color: var(--color-primary-hover); }
.detail-info-card .info-value a:hover { color: var(--color-accent); }

@media (max-width: 640px) {
  .detail-info-card .card-data-row {
    flex-direction: column;
    gap: var(--space-4);
  }
  .detail-info-card .data-col {
    border-right: none;
    padding-right: 0;
    padding-left: 0 !important;
    border-bottom: 1px solid var(--bg-border);
    padding-bottom: var(--space-3);
  }
  .detail-info-card .data-col:last-child { border-bottom: none; padding-bottom: 0; }
}

.detail-tabs-card {
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm) !important;
}

.tabs-min,
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--bg-border);
  padding: 0 var(--space-4);
  flex-wrap: wrap;
  background: var(--bg-inset);
}
.tabs-min .detail-tab,
.detail-tabs .detail-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: var(--weight-medium);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
  user-select: none;
}
.tabs-min .detail-tab:hover,
.detail-tabs .detail-tab:hover { color: var(--text-strong); }
.tabs-min .detail-tab.active,
.detail-tabs .detail-tab.active {
  color: var(--text-strong);
  border-bottom-color: var(--color-primary);
}
.detail-tab-content-inner { padding: var(--space-5); }
.detail-tab-pane { display: none; }
.detail-tab-pane.active { display: block; }

.meeting-intelligence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: var(--space-4);
}
.intelligence-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-primary-border);
}
.intelligence-card:nth-child(1) { border-top-color: var(--wf-live-border); }
.intelligence-card:nth-child(2) { border-top-color: var(--wf-pending-border); }
.intelligence-card:nth-child(3) { border-top-color: var(--color-template-border); }
.intelligence-card strong { display: block; color: var(--text-strong); margin-bottom: 0.25rem; }
.intelligence-card span { color: var(--text-default); font-size: 0.84rem; }
@media (max-width: 992px) {
  .meeting-intelligence-strip { grid-template-columns: 1fr; }
}

/* Bot detail — timeline, recordings, participants */
.bot-detail-page .timeline-item {
  padding: var(--space-4);
  border-left: 2px solid var(--bg-border-strong);
  margin-left: var(--space-4);
  position: relative;
}
.bot-detail-page .timeline-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 1.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--bg-surface);
  border: 2px solid var(--color-accent-gold);
  border-radius: 50%;
}
.bot-detail-page .timeline-container { max-height: 700px; overflow-y: auto; }
.bot-detail-page .timeline-item h6 { color: var(--text-strong); }
.bot-detail-page .timeline-item .text-muted { color: var(--text-muted) !important; }

/* ─── Sprint 4: Recordings & transcript partials ─── */
.recording-item {
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.recording-container {
  display: flex;
  gap: var(--space-4);
  height: 600px;
}
.transcript-column {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
}
.transcript-column--auto {
  height: auto;
  max-height: 600px;
}
.video-column { flex: 1; min-width: 0; }
.recording-video-wrap {
  background: var(--bg-inset);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.recording-placeholder {
  height: 300px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
}
.transcription-selector { max-width: 300px; }

.transcript-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: 0.1rem 0 0.9rem;
  background: var(--surface-inset);
}
.transcript-toolbar-title {
  color: var(--text-primary);
  font-weight: 650;
}
.transcript-search {
  background: var(--surface-base);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--signal);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 40%, transparent);
  animation: minutelyPulse 1.2s infinite;
}
@keyframes minutelyPulse {
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--signal) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 0%, transparent); }
}

.utterance-item {
  margin-bottom: var(--space-4);
  padding: var(--space-2);
  border-bottom: 1px solid var(--bg-border);
  display: flex;
}
.speaker-bar {
  width: 4px;
  margin-right: 10px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.utterance-content { flex: 1; min-width: 0; }
.utterance-timestamp {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.utterance-timestamp.bold {
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}
.utterance-text {
  margin-top: 0.25rem;
  color: var(--text-strong);
  line-height: var(--leading-note);
}
.utterance-speaker {
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  margin-left: 0.45rem;
}
.word { display: inline; }
.bold { font-weight: var(--weight-bold); }
.highlighted { background-color: var(--accent-soft); }

.transcript-utterance {
  border: 1px solid transparent;
  border-bottom-color: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.55rem;
  transition: background var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.transcript-utterance:hover {
  background: color-mix(in srgb, var(--text-strong) 3%, transparent);
  border-color: var(--border-subtle);
}
.transcript-utterance--pending {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  animation: minutelyFadeInUp 220ms var(--ease-out);
}
.transcript-utterance--pending .utterance-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.25rem;
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    color-mix(in srgb, var(--bg-border) 55%, var(--bg-elevated)) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: minutelySkeletonShimmer 1.4s ease-in-out infinite;
}
@keyframes minutelySkeletonShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.transcript-skeleton {
  display: block;
  height: 0.7rem;
  border-radius: 0.35rem;
}
.transcript-skeleton--wide { width: 92%; }
.transcript-skeleton--mid { width: 62%; }

.utterance-transcribing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 0.05rem 0.45rem 0.05rem 0.5rem;
  border-radius: var(--radius-pill);
  line-height: 1;
  white-space: nowrap;
}
.utterance-transcribing-badge .dot-flash {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: minutelyDotFlash 1s ease-in-out infinite;
}
.utterance-transcribing-badge .dot-flash:nth-child(2) { animation-delay: 0.15s; }
.utterance-transcribing-badge .dot-flash:nth-child(3) { animation-delay: 0.30s; }
@keyframes minutelyDotFlash {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-1px); }
}

.transcript-live-status {
  margin-top: var(--space-4);
  padding: 0.85rem var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.transcript-live-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent);
  animation: minutelyLivePulse 1.2s ease-in-out infinite;
}
@keyframes minutelyLivePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 0%, transparent); }
}

.speaker-timeline-wrapper {
  margin-top: 0.75rem;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: var(--bg-inset);
}
.speaker-timeline-row { display: flex; }
.speaker-timeline-labels {
  flex-shrink: 0;
  max-width: 60px;
  overflow: hidden;
}
.speaker-timeline-tracks {
  flex: 1;
  position: relative;
  min-width: 0;
}
.speaker-timeline-label {
  height: 22px;
  line-height: 22px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 6px;
  margin-bottom: 2px;
}
.speaker-timeline-track {
  height: 22px;
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
  margin-bottom: 2px;
  cursor: pointer;
}
.speaker-timeline-bar {
  position: absolute;
  top: 2px;
  height: calc(100% - 4px);
  border-radius: var(--radius-xs);
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.speaker-timeline-bar:hover { opacity: 1; }
.speaker-timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--semantic-error);
  z-index: 10;
  pointer-events: none;
  transition: left 0.1s linear;
}

.bot-detail-page .nav-tabs .nav-link {
  color: var(--text-muted) !important;
  border-color: transparent var(--bg-border) transparent transparent !important;
  border-radius: 0 !important;
}
.bot-detail-page .nav-tabs .nav-link.active {
  color: var(--text-strong) !important;
  background: transparent !important;
  border-color: transparent var(--bg-border-strong) transparent transparent !important;
}
.bot-detail-page .nav-tabs .nav-item:last-child .nav-link { border-right: none !important; }

.bot-detail-page .alert-info,
.bot-detail-page #pane-participants .alert-info {
  background: var(--semantic-info-soft);
  border-color: color-mix(in srgb, var(--semantic-info) 30%, transparent);
  color: var(--text-strong);
  border-radius: var(--radius-sm);
}
.bot-detail-page .chat-message-item {
  background: var(--bg-elevated) !important;
  border-color: var(--text-muted) !important;
  color: var(--text-strong);
}
.bot-detail-page .chat-message-item .text-muted { color: var(--text-muted) !important; }
.bot-detail-page #recordings-loading p.text-muted { color: var(--text-muted) !important; }

.bot-detail-page .participants-list .participant-item {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  color: var(--text-strong);
}
.bot-detail-page .participants-list .participant-header .fw-semibold { color: var(--text-strong); }
.bot-detail-page .participants-list .participant-header .text-muted,
.bot-detail-page .participants-list .event-timestamp.text-muted,
.bot-detail-page .participants-list .event-content .text-muted small,
.bot-detail-page .participants-list .participant-events .text-muted {
  color: var(--text-muted) !important;
  font-size: 0.8rem;
}
.bot-detail-page .participants-list .participant-events-timeline .event-item {
  border-color: var(--bg-border) !important;
  padding: 0.75rem 0;
}
.bot-detail-page .participants-list .event-type { color: var(--text-strong); }
.bot-detail-page .participants-list .event-icon .text-success { color: var(--semantic-success) !important; }
.bot-detail-page .participants-list .event-icon .text-danger { color: var(--semantic-error) !important; }

.resend-btn {
  --bs-btn-padding-y: 0.2rem;
  --bs-btn-padding-x: 0.55rem;
  --bs-btn-font-size: 0.825rem;
  --bs-btn-border-radius: 0.25rem;
  line-height: 1.2;
}

/* MOM review partial */
.mom-review-shell { max-width: 920px; margin: 0 auto; }
.mom-review-header,
.mom-editor,
.mom-review-note {
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.mom-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.mom-review-title {
  color: var(--text-strong);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  margin: 0;
}
.mom-editor { padding: var(--space-5); }
.mom-editor .mom-section.note-ai-block { margin-top: 0; }
.mom-section { padding: var(--space-4) 0; border-top: 1px solid var(--bg-border); }
.mom-section:first-child { border-top: 0; padding-top: 0; }
.mom-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 0.75rem;
}
.mom-section-title {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: var(--weight-bold);
  margin: 0;
  font-family: var(--font-ui);
}
.mom-editable {
  outline: none;
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.45rem;
  margin-left: -0.45rem;
}
.mom-editable:focus {
  background: var(--note-ai-bg);
  box-shadow: 0 0 0 2px var(--note-ai-border);
}
.mom-list { margin: 0; padding-left: 0; list-style: none; }
.mom-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--text-default);
}
.mom-list i { color: var(--color-accent-gold); margin-top: 0.18rem; }
.mom-source-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-pill);
  color: var(--color-accent-gold);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent-gold) 25%, transparent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.mom-review-note {
  padding: 0.85rem var(--space-4);
  color: var(--text-default);
  margin-bottom: var(--space-4);
}
.mom-template-row {
  padding-top: var(--space-4);
  border-top: 1px solid var(--bg-border);
}

.mom-template-row .mom-template-form {
  max-width: 100%;
}
.mom-transcript {
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 0.75rem var(--space-4);
}
.mom-transcript-summary {
  cursor: pointer;
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
  font-size: 0.92rem;
  list-style: none;
}
.mom-transcript-summary::-webkit-details-marker { display: none; }
.mom-transcript-summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--color-accent-gold);
  transition: transform 140ms ease;
}
.mom-transcript[open] .mom-transcript-summary::before { transform: rotate(90deg); }
.mom-transcript-body { margin-top: 0.85rem; max-height: 420px; overflow: auto; }
.mom-transcript-line { padding: 0.45rem 0; border-top: 1px solid var(--bg-border); }
.mom-transcript-line:first-child { border-top: 0; }
.mom-transcript-meta { display: flex; align-items: baseline; gap: var(--space-2); }
.mom-transcript-speaker { color: var(--color-accent-gold); font-weight: var(--weight-semibold); font-size: 0.82rem; }
.mom-transcript-ts { color: var(--text-muted); font-size: 0.72rem; font-family: var(--font-mono); }
.mom-transcript-text { color: var(--text-default); line-height: var(--leading-note); font-size: 0.9rem; margin-top: 0.15rem; }

#apiCodeExample {
  font-family: var(--font-mono);
  white-space: pre;
  word-wrap: normal;
  display: block;
  line-height: 1.5;
}

/* ─── Sprint 5: Documents, templates, ask hub, chat ─── */

.workspace-page {
  max-width: 1080px;
}

.card-min-body {
  padding: var(--space-5);
}

.table-min thead th {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-color: var(--bg-border);
  padding: var(--space-3);
  background: var(--bg-inset);
}

.table-min tbody td {
  border-color: var(--bg-border);
  padding: var(--space-3);
  vertical-align: middle;
}

.template-card-title,
.ask-hub-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  margin-bottom: var(--space-2);
}

.template-section-list {
  font-size: 0.83rem;
  color: var(--text-default);
  margin-bottom: var(--space-3);
}

.ask-hub-card .card-min-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ask Minutely chat panel */
.chat-shell {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 480px;
}

.chat-header {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.chat-thread {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}

.chat-msg {
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.6rem;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-bubble {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  max-width: 78%;
  line-height: var(--leading-ui);
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-msg.user .chat-bubble {
  background: var(--color-primary-soft);
  color: var(--text-strong);
  border-top-right-radius: var(--radius-xs);
}

.chat-msg.assistant .chat-bubble {
  background: var(--bg-elevated);
  color: var(--text-default);
  border: 1px solid var(--bg-border);
  border-top-left-radius: var(--radius-xs);
}

.chat-citations {
  margin-top: 0.4rem;
}

.chat-citation-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent-gold) 25%, transparent);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-pill);
  margin: 0.1rem 0.2rem 0 0;
}

.chat-composer {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
}

.chat-composer textarea {
  flex: 1;
  resize: none;
  border: none;
  background: transparent;
  color: var(--text-default);
  outline: none;
  font-size: 0.92rem;
  min-height: 1.5rem;
  max-height: 6rem;
}

.chat-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-8) var(--space-4);
}

.chat-empty-icon {
  font-size: 2rem;
  color: var(--text-muted);
}

.chat-doc-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-default);
}

#chat-status.chat-status--error {
  color: var(--semantic-error);
}

@media (max-width: 640px) {
  .table-min thead th,
  .table-min tbody td {
    padding: var(--space-2);
  }

  .chat-shell {
    min-height: 420px;
    height: calc(100vh - 160px);
  }

  .chat-bubble {
    max-width: 92%;
  }
}

/* ─── Sprint 6: Settings, integrations, API keys, webhooks, calendars ─── */

.settings-page,
.credentials-page {
  max-width: 1180px;
}

.settings-page-title,
.credentials-page h1 {
  color: var(--text-strong);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.settings-page-lede,
.credentials-page .page-lede {
  color: var(--text-muted);
  margin: 0.4rem 0 0;
  max-width: 64ch;
}

.settings-table-card {
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.settings-table-card .table-min thead th {
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: var(--bg-border) !important;
}

.settings-table-card .table-min td {
  vertical-align: middle;
  color: var(--text-default);
}

.settings-empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.settings-empty-state p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.settings-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.modal-min .modal-header {
  border-bottom: 1px solid var(--bg-border);
  padding: var(--space-4) var(--space-5);
}

.modal-min .modal-footer {
  border-top: 1px solid var(--bg-border);
  padding: var(--space-3) var(--space-5);
}

.modal-min .modal-body .form-check-group,
.modal-min .triggers-panel {
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.form-control-secret {
  -webkit-text-security: disc;
  text-security: disc;
}

.form-control-readonly {
  pointer-events: none;
}

/* Integrations / credentials */
.integrations-group {
  margin-top: var(--space-8);
}

.integrations-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 0.85rem;
}

.integrations-group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}

.integrations-group-title .count {
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78rem;
}

.credential-card {
  margin-bottom: var(--space-4);
  overflow: hidden;
  padding: 0;
}

.credential-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--bg-border);
}

.credential-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-strong);
}

.credential-card__body {
  padding: 1.1rem;
  color: var(--text-default);
}

.credential-card__body p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.credential-card__body p:last-child {
  margin-bottom: 0;
}

.credential-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.credential-file-preview {
  display: none;
  max-height: 150px;
  overflow-y: auto;
  margin-top: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.credential-file-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.integration-tile {
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.92;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.integration-tile:hover {
  border-color: var(--bg-border-strong);
  transform: translateY(-1px);
  color: inherit;
}

.integration-tile--static {
  cursor: default;
}

.integration-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.integration-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--signal) 18%, transparent);
}

.integration-tile-title {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.integration-tile-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

/* Calendars */
.calendar-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0;
}

.calendar-info-banner {
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
}

.upcoming-events-card {
  margin-bottom: var(--space-4);
}

.upcoming-events-card .card-body {
  padding: 0.85rem var(--space-4);
}

.upcoming-event-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  border-top: 1px solid var(--bg-border);
}

.upcoming-event-row:first-child {
  border-top: 0;
}

.upcoming-event-title {
  font-size: 13.5px;
  color: var(--text-default);
}

.platform-uuid,
.truncated-field {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: top;
}

.clickable-row {
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}

table tbody tr.clickable-row:hover td {
  background-color: var(--bg-elevated);
}

.filter-panel .filter-header {
  background-color: var(--bg-inset);
  cursor: pointer;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
}

.filter-container {
  background-color: var(--bg-inset);
  padding: var(--space-4);
  border: 1px solid var(--bg-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-bottom: var(--space-5);
}

.filter-item {
  margin-bottom: var(--space-2);
}

.state-checkboxes,
.platform-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.state-checkbox,
.platform-checkbox {
  display: inline-flex;
  align-items: center;
}

.calendar-detail-page h2 {
  color: var(--text-strong);
}

.calendar-detail-page .sync-info,
.calendar-detail-page .event-info-card {
  background-color: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.calendar-detail-page .timeline-item {
  padding: var(--space-4);
  border-left: 2px solid var(--bg-border-strong);
  margin-left: var(--space-4);
  position: relative;
}

.calendar-detail-page .timeline-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--bg-surface);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}

.calendar-detail-page .timeline-container {
  max-height: 700px;
  overflow-y: auto;
}

.calendar-detail-tabs .nav-link {
  color: var(--text-muted) !important;
  border-right: 1px solid var(--bg-border) !important;
  border-radius: 0 !important;
}

.calendar-detail-tabs .nav-link.active {
  color: var(--text-strong) !important;
  border-right: 1px solid var(--bg-border) !important;
}

.calendar-detail-tabs .nav-item:last-child .nav-link {
  border-right: none !important;
}

.code-block-inset {
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  max-height: 400px;
  overflow-y: auto;
  font-size: var(--text-sm);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: var(--space-4);
  color: var(--text-default);
}

/* Team calendar */
.team-cal-shell {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

#teamCalendar {
  --fc-border-color: var(--bg-border);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: var(--bg-elevated);
  --fc-today-bg-color: var(--brand-soft);
  --fc-event-bg-color: var(--brand);
  --fc-event-border-color: var(--brand);
  --fc-button-bg-color: var(--bg-elevated);
  --fc-button-border-color: var(--bg-border);
  --fc-button-text-color: var(--text-primary);
  --fc-button-active-bg-color: var(--brand);
  --fc-button-active-border-color: var(--brand);
  --fc-button-hover-bg-color: var(--brand-soft);
  --fc-button-hover-border-color: var(--brand-border);
  color: var(--text-primary);
}

#teamCalendar .fc-toolbar-title {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

#teamCalendar .fc-event {
  font-size: 11.5px;
  border-radius: 5px;
  cursor: pointer;
}

#teamCalendar .fc-daygrid-day-number,
#teamCalendar .fc-col-header-cell-cushion {
  color: var(--text-secondary);
  text-decoration: none;
}

#teamCalendar a {
  color: inherit;
}

.team-cal-meta {
  color: var(--text-muted);
  font-size: 12.5px;
}

.team-cal-meta .dot {
  padding: 0 6px;
}

.team-cal-empty-icon {
  font-size: 28px;
  color: var(--text-muted);
}

.team-cal-empty-title {
  font-weight: 600;
  color: var(--text-strong);
}

/* Coming soon teaser */
.teaser-shell {
  max-width: 860px;
  margin: var(--space-8) auto;
}

.teaser-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  overflow: hidden;
}

.teaser-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal) 0%, transparent 70%);
}

.teaser-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--signal) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.teaser-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.teaser-title {
  color: var(--text-strong);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.5rem;
}

.teaser-lede {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 56ch;
  margin: 0;
}

.teaser-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.teaser-bullets li {
  display: flex;
  gap: 0.55rem;
  color: var(--text-default);
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
}

.teaser-bullets li i {
  color: var(--signal);
  margin-top: 0.15rem;
}

.teaser-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  position: relative;
  z-index: 1;
}

.teaser-mock {
  margin-top: 1.25rem;
  border: 1px dashed var(--bg-border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  padding: var(--space-4);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.teaser-mock-head {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.teaser-mock-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-border-strong);
}

.teaser-notify-note {
  margin-top: 0.75rem;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

/* ─── Sprint 6 part 1: Dashboard, billing, plans, team, settings ─── */

.card-min__header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--bg-border);
}

.card-min__body {
  padding: var(--space-5);
}

.card-min__title {
  font-size: 1.0625rem;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  margin: 0;
}

.user-avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.65rem;
  font-weight: var(--weight-semibold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-2);
  border: 1px solid var(--color-primary-border);
  flex-shrink: 0;
}

.alert-min {
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.alert-min--success {
  background: var(--semantic-success-soft);
  border-color: color-mix(in srgb, var(--semantic-success) 30%, transparent);
  color: var(--semantic-success);
}

.alert-min--danger {
  background: var(--semantic-error-soft);
  border-color: color-mix(in srgb, var(--semantic-error) 30%, transparent);
  color: var(--semantic-error);
}

.project-check-panel {
  background: var(--bg-inset);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  max-height: 200px;
  overflow-y: auto;
}

/* Dashboard */
.dashboard-page {
  max-width: 1180px;
}

.dashboard-hero {
  padding: 1.35rem;
}

.dashboard-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card {
  padding: 1rem;
}

.metric-value {
  color: var(--text-strong);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 1rem;
}

.dashboard-card {
  padding: 1rem;
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meeting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--bg-border);
  color: inherit;
  text-decoration: none;
}

.meeting-row:first-of-type {
  border-top: 0;
}

.meeting-row:hover {
  color: inherit;
}

.meeting-row-title {
  color: var(--text-strong);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-row-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.18rem;
}

.timeline-accent {
  display: inline-flex;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--signal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 12%, transparent);
}

.empty-panel {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--bg-border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-inset);
}

.roadmap-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.roadmap-card {
  padding: 0.9rem;
  opacity: 0.88;
}

.quickstart-step {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--bg-border);
}

.quickstart-step:first-child {
  border-top: 0;
}

@media (max-width: 992px) {
  .metric-grid,
  .dashboard-grid,
  .roadmap-strip {
    grid-template-columns: 1fr;
  }
}

/* Billing & plans */
.billing-page {
  max-width: 1180px;
}

.credit-balance-value {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.credit-balance-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.billing-section-title {
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-strong);
}

.checkout-dialog {
  max-width: 520px;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

#purchaseCreditsModal .modal-dialog,
#autopayModal .modal-dialog {
  max-width: 480px;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 480px) {
  #checkoutModal .checkout-dialog,
  #purchaseCreditsModal .modal-dialog,
  #autopayModal .modal-dialog {
    width: calc(100% - 1rem);
  }

  .checkout-modal .modal-body {
    padding: 1rem;
  }
}

.checkout-modal {
  background: var(--bg-surface);
  color: var(--text-default);
  border-radius: var(--radius-card);
  border: 1px solid var(--bg-border);
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.checkout-step.is-done {
  color: var(--semantic-success);
}

.checkout-step.is-active {
  color: var(--color-primary);
}

.checkout-step-sep {
  width: 18px;
  height: 1px;
  background: var(--bg-border);
  flex-shrink: 0;
}

.checkout-modal .modal-title {
  font-family: var(--font-doc);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.checkout-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.checkout-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.checkout-plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}

.checkout-plan-included {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.checkout-plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.checkout-plan-price-currency {
  color: var(--text-muted);
  font-size: 16px;
}

.checkout-plan-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.checkout-plan-price-per {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 2px;
}

.checkout-section {
  margin-bottom: 22px;
}

.checkout-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-section-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
  flex: 1;
}

.checkout-cadence-toggle {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-ui);
  padding: 4px;
  gap: 2px;
}

.checkout-cadence-option {
  margin: 0;
}

.checkout-cadence-option input {
  position: absolute;
  opacity: 0;
}

.checkout-cadence-option span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  color: var(--text-muted);
}

.checkout-cadence-option input:checked + span {
  background: var(--bg-surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}

.checkout-save-pill {
  background: var(--semantic-success);
  color: var(--text-inverse);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.checkout-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
}

.checkout-switch-row span:first-child {
  font-weight: 500;
  color: var(--text-strong);
}

.checkout-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.checkout-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.checkout-switch-track {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-pill);
  transition: all var(--duration-base) var(--ease-out);
}

.checkout-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-inverse);
  border-radius: 50%;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.checkout-switch input:checked + .checkout-switch-track {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkout-switch input:checked + .checkout-switch-track::after {
  transform: translateX(18px);
}

.checkout-autopay-detail {
  display: none;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--bg-border);
}

.checkout-autopay-detail.is-open {
  display: flex;
}

.checkout-mini-field {
  flex: 1;
}

.checkout-mini-field span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.checkout-mini-field input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-default);
  font-size: 14px;
}

.checkout-mini-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.checkout-credit-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-credit-preset {
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.checkout-credit-preset:hover {
  border-color: var(--color-primary-border);
  color: var(--text-strong);
}

.checkout-credit-preset.is-active {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.checkout-summary {
  background: var(--bg-elevated);
  border-radius: var(--radius-ui);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.checkout-summary-value {
  color: var(--text-strong);
  font-weight: 500;
}

.checkout-summary-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  border-top: 1px solid var(--bg-border);
  margin-top: 8px;
  padding-top: 10px;
}

.checkout-summary-total .checkout-summary-value {
  font-size: 18px;
  color: var(--color-primary);
}

.checkout-submit {
  width: 100%;
  background: var(--color-primary);
  color: var(--text-inverse);
  border: 0;
  padding: 14px 18px;
  border-radius: var(--radius-ui);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--duration-base) var(--ease-out);
}

.checkout-submit:hover {
  background: var(--color-primary-hover);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.checkout-submit:active {
  transform: translateY(0);
}

.checkout-trust {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin: 10px 0 0;
}

.purchase-summary-box {
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--bg-inset);
}

.purchase-amount-error {
  display: none;
  color: var(--semantic-error);
}

.plans-header {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.plans-header h3 {
  font-family: var(--font-doc);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 0.4rem;
  font-weight: 400;
}

.plans-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0;
}

.plans-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-ui);
  padding: 0.2rem;
  gap: 0.15rem;
  margin-top: 1rem;
}

.plans-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.plans-toggle button:hover {
  color: var(--text-strong);
}

.plans-toggle button.is-active {
  background: var(--bg-base);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}

.plans-toggle .save-pill {
  display: inline-block;
  background: var(--semantic-success);
  color: var(--text-inverse);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (max-width: 1479px) {
  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 640px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: transform var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
  min-height: 100%;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-md);
}

.plan-card.is-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-glow);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-accent) 4%, transparent) 0%,
    var(--bg-surface) 40%
  );
}

.plan-card.is-featured:hover {
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lg);
}

.plan-featured-pill {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-family: var(--font-ui);
}

.plan-card.is-current {
  border-color: var(--semantic-success);
}

.plan-current-pill {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--semantic-success);
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-family: var(--font-ui);
}

.plan-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.plan-card form {
  margin: 0;
  padding: 0;
}

.plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.plan-name.is-featured {
  color: var(--color-primary);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1;
}

.plan-cadence {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.plan-minutes {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.1rem;
  min-height: 2.4rem;
}

.plan-cta {
  width: 100%;
  margin-bottom: 0.7rem;
  height: 44px;
  border-radius: var(--radius-ui);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--duration-base) var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.plan-cta:hover {
  transform: translateY(-1px);
}

.plan-cta--primary {
  background: var(--color-primary);
  color: var(--text-inverse);
  border: 0;
  height: 48px;
}

.plan-cta--primary:hover {
  background: var(--color-primary-hover);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.plan-cta--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.plan-cta--secondary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.plan-cta-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: -0.35rem 0 0.85rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.plan-features li i {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.18rem;
  font-size: 0.95rem;
}

.plan-features .features-header {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.2rem;
  list-style: none;
}

.plans-trust-row {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.plans-trust-row i.icon-success {
  color: var(--semantic-success);
}

.plans-trust-row i.icon-info {
  color: var(--semantic-info);
}
