/* ─────────────────────────────────────────────────────────────────────
 * Minutely components. Loaded after Bootstrap and the base styles so the
 * shared look wins. Uses tokens.css only — no raw colours here.
 * ───────────────────────────────────────────────────────────────────── */

/* ── Base type ─────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--canvas) !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, .h1, .h2, .display, .page-head h1 { font-family: var(--font-display); letter-spacing: -0.025em; }
h3, h4, h5, h6, .h3, .h4, .h5, .h6 { font-family: var(--font-body); letter-spacing: -0.01em; }
.text-secondary, .text-muted, .app-muted, .form-text, small.text-secondary { color: var(--text-secondary) !important; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
.tabular { font-variant-numeric: tabular-nums; }
::selection { background: var(--brand-glow); color: var(--text-primary); }

/* ── Ambient background: slow-breathing orbs + grain ───────────────── */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.ambient__orb { position: absolute; border-radius: 50%; will-change: transform; filter: blur(var(--orb-blur, 100px)); }
.ambient__orb--1 { width: 680px; height: 680px; left: -180px; top: -220px; background: var(--orb-green); animation: orbDrift1 34s ease-in-out infinite alternate; }
.ambient__orb--2 { width: 540px; height: 540px; right: -140px; top: -160px; background: var(--orb-mint); animation: orbDrift2 28s ease-in-out infinite alternate; --orb-blur: 90px; }
.ambient__orb--3 { width: 600px; height: 600px; left: 30%; bottom: -320px; background: var(--orb-teal); animation: orbDrift3 38s ease-in-out infinite alternate; --orb-blur: 110px; }
.ambient__orb--4 { width: 420px; height: 420px; right: 6%; top: 46%; background: var(--orb-warm); animation: orbDrift4 24s ease-in-out infinite alternate; --orb-blur: 120px; }
.ambient__grain {
  position: absolute; inset: 0; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes orbDrift1 { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(120px, 80px, 0) scale(1.08); } }
@keyframes orbDrift2 { 0% { transform: translate3d(0, 0, 0) scale(1.05); } 100% { transform: translate3d(-100px, 120px, 0) scale(0.95); } }
@keyframes orbDrift3 { 0% { transform: translate3d(0, 0, 0) scale(0.96); } 100% { transform: translate3d(-140px, -90px, 0) scale(1.06); } }
@keyframes orbDrift4 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-80px, -60px, 0); } }

/* ── Glass surfaces ────────────────────────────────────────────────── */
.glass, .card, .card-glass, .surface, .cx-card, .ws-doc, .ws-card, .ap-card, .hm-card, .meetings-list-card,
.up-panel, .dashboard-card, .cal-card, .cx-activity, .cx-meter, .mm-state, .mm-rewrite, .aud-card, .tpl-card, .dv-card {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 0 0 1px var(--glass-hairline), var(--shadow-1), var(--inner-light) !important;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
}
.card .card, .glass .glass { background: var(--bg-elevated) !important; box-shadow: none !important; backdrop-filter: none; }
.modal-content, .dropdown-menu, .popover, .toast, .offcanvas, .tooltip-inner { background: var(--solid) !important; color: var(--text-primary); border: 1px solid var(--line) !important; box-shadow: var(--shadow-3); }
.modal-content { border-radius: var(--radius-xl) !important; }
.modal-header, .modal-footer { border-color: var(--line) !important; }
/* Every dialog opens over a tinted, blurred page until it is closed (light + dark). */
.modal-backdrop, [data-bs-theme] .modal-backdrop { background-color: var(--scrim) !important; }
.modal-backdrop.fade { opacity: 0; transition: opacity var(--duration-base) var(--ease-out); }
.modal-backdrop.show { opacity: 1 !important; background: var(--scrim) !important; -webkit-backdrop-filter: var(--scrim-blur); backdrop-filter: var(--scrim-blur); }
body > div[style*="inset:0"][style*="z-index:10000"] { background: var(--scrim) !important; -webkit-backdrop-filter: var(--scrim-blur); backdrop-filter: var(--scrim-blur); }
#minutely-busy-overlay { background: var(--scrim) !important; -webkit-backdrop-filter: var(--scrim-blur) !important; backdrop-filter: var(--scrim-blur) !important; }
.modal.fade .modal-dialog { transform: translateY(8px) scale(.98); transition: transform var(--duration-slow) var(--ease-out); }
.modal.show .modal-dialog { transform: none; }
.modal-content { overflow: hidden; }
.modal-header { padding: 20px 24px 14px; gap: 12px; align-items: flex-start; }
.modal-header .modal-title { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.modal-body { padding: 18px 24px; }
.modal-footer { padding: 14px 24px 20px; gap: 8px; }
.modal-footer:not(.border-0) { background: var(--bg-elevated); }
.modal-footer > * { margin: 0; }
.modal-header .btn-close { margin: -2px -6px 0 auto; padding: 10px; border-radius: 999px; opacity: .65; }
.modal-header .btn-close:hover { opacity: 1; background-color: var(--hover); }
@media (max-width: 575.98px) { .modal-header { padding: 16px 18px 12px; } .modal-body { padding: 16px 18px; } .modal-footer { padding: 12px 18px 16px; } }
.dropdown-item { border-radius: 8px; color: var(--text-primary); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--hover); color: var(--text-primary); }
.dropdown-menu { padding: 6px; border-radius: 14px !important; }

/* ── Buttons: primary · secondary · ghost · destructive; 36px and 44px ── */
.btn, .h-btn {
  --btn-bg: transparent; --btn-fg: var(--text-primary); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-sm); padding: 0 16px;
  font-family: var(--font-body); font-size: var(--fs-14); font-weight: 600; line-height: 1.2;
  border-radius: var(--radius-pill) !important; border: 1px solid var(--btn-border) !important;
  background: var(--btn-bg) !important; color: var(--btn-fg) !important;
  opacity: 1; white-space: nowrap; text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), color var(--duration-fast);
}
.btn-sm, .btn-group-sm > .btn { min-height: var(--control-sm); padding: 0 14px; font-size: var(--fs-14); }
.btn-lg, .btn-xl, .h-btn { min-height: var(--control-lg); padding: 0 22px; font-size: 15px; }
.btn:active:not(:disabled), .h-btn:active { transform: translateY(1px) scale(0.99); }
.btn:hover:not(:disabled):not(.disabled) { transform: translateY(-1px); }

/* primary */
.btn-primary, .btn-teal, .btn-success, .btn-brand, .h-btn--primary, .btn-dark {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-border: var(--primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -8px rgba(11, 61, 46, 0.55);
}
.btn-primary:hover, .btn-teal:hover, .btn-success:hover, .btn-brand:hover, .h-btn--primary:hover, .btn-dark:hover { --btn-bg: var(--primary-hover); --btn-border: var(--primary-hover); }
.btn-primary:active, .btn-teal:active, .h-btn--primary:active { --btn-bg: var(--primary-active); }

/* secondary (glass + border) */
.btn-secondary, .btn-soft, .btn-outline-secondary, .btn-outline-primary, .btn-outline-teal, .btn-outline-success, .btn-light, .btn-outline-light, .h-btn--ghost {
  --btn-bg: var(--glass-strong); --btn-fg: var(--text-primary); --btn-border: var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-secondary:hover, .btn-soft:hover, .btn-outline-secondary:hover, .btn-outline-primary:hover, .btn-outline-teal:hover, .btn-outline-success:hover, .btn-light:hover, .btn-outline-light:hover, .h-btn--ghost:hover {
  --btn-bg: var(--solid); --btn-border: var(--grey-8); --btn-fg: var(--text-primary);
}

/* ghost */
.btn-link, .btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text-secondary); --btn-border: transparent; box-shadow: none;
}
.btn-link:hover, .btn-ghost:hover { --btn-bg: var(--hover); --btn-fg: var(--text-primary); transform: none !important; }
.btn-link.p-0, .btn.p-0 { min-height: 0; padding: 0 !important; border-radius: 4px !important; }
.btn-link.p-0:hover { --btn-bg: transparent; text-decoration: underline; }

/* destructive */
.btn-danger, .btn-outline-danger, .btn-destructive {
  --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-border: transparent;
}
.btn-danger:hover, .btn-outline-danger:hover, .btn-destructive:hover { --btn-bg: var(--red); --btn-fg: #ffffff; }
.btn-link.text-danger, .btn-link.cx-danger { --btn-fg: var(--danger); }

/* states */
.btn:focus-visible, .h-btn:focus-visible, a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
.form-control:focus-visible, .form-select:focus-visible, .form-check-input:focus-visible {
  outline: 2px solid var(--mint) !important; outline-offset: 2px; box-shadow: none;
}
.btn:disabled, .btn.disabled, .h-btn[aria-disabled="true"], fieldset:disabled .btn {
  opacity: 0.45 !important; cursor: not-allowed; pointer-events: auto; transform: none !important; box-shadow: none !important; filter: saturate(0.4);
}
.btn-close { min-height: 0; padding: 8px; border-radius: 8px !important; opacity: 0.7; }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.btn-close:hover { opacity: 1; background-color: var(--hover); }

/* ── Chips: one component, five tones, sentence case ───────────────── */
.chip, .state-badge, .badge, .ig-pill, .cx-chip, .ws-tag, .hm-status, .ap-pill, .ms-pill, .ap-tab span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; min-height: 22px;
  font-family: var(--font-body); font-size: var(--fs-12); font-weight: 600; line-height: 1.4;
  letter-spacing: 0 !important; text-transform: none !important;
  border-radius: var(--radius-pill); border: 0;
  background: var(--bg-elevated); color: var(--text-secondary);
  white-space: nowrap; vertical-align: middle;
}
.chip--success, .state-badge-live, .state-badge-approved, .badge.bg-success, .ig-pill--ok, .cx-chip--ok, .ws-tag--ok, .ap-pill--ok, .hm-status--success { background: var(--success-soft) !important; color: var(--success) !important; }
.chip--warning, .state-badge-soon, .state-badge-review, .cx-chip--warn, .ap-pill--warn, .hm-status--warning { background: var(--warning-soft) !important; color: var(--warning) !important; }
.chip--danger, .state-badge-error, .badge.bg-danger, .ig-pill--err, .cx-chip--bad, .ws-tag--bad, .hm-status--danger { background: var(--danger-soft) !important; color: var(--danger) !important; }
.chip--info, .badge.bg-primary, .ap-pill--info, .hm-status--progress { background: var(--info-soft) !important; color: var(--info) !important; }
.chip--neutral, .state-badge-muted, .state-badge-draft, .badge.bg-secondary, .hm-status--neutral { background: var(--bg-elevated) !important; color: var(--text-secondary) !important; }
.chip--live::before, .hm-status--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: livePulse 1.8s ease-out infinite; }
.hm-status--live { background: var(--success-soft) !important; color: var(--success) !important; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(95, 212, 168, 0.6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(95, 212, 168, 0); } }

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-control, .form-select {
  min-height: 40px; background-color: var(--solid) !important; color: var(--text-primary) !important;
  border: 1px solid var(--line-strong) !important; border-radius: var(--radius-sm) !important; font-size: 15px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.form-control-sm, .form-select-sm { min-height: 36px; font-size: var(--fs-14); }
textarea.form-control { min-height: 0; }
.form-control:hover, .form-select:hover { border-color: var(--grey-8) !important; }
.form-control:focus, .form-select:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--brand-glow) !important; }
.form-control::placeholder { color: var(--grey-10); }
.form-control:disabled, .form-control[readonly]:not(.form-control-plaintext), .form-select:disabled { background-color: var(--bg-elevated) !important; color: var(--text-secondary) !important; }
.form-label { font-size: var(--fs-14); font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-check-input { width: 18px; height: 18px; background-color: var(--solid); border: 1.5px solid var(--grey-8); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-switch .form-check-input { width: 36px; }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--brand-glow); border-color: var(--primary); }

/* ── Tables ────────────────────────────────────────────────────────── */
.table { --bs-table-bg: transparent; --bs-table-color: var(--text-primary); --bs-table-border-color: var(--line); --bs-table-hover-bg: var(--hover); margin-bottom: 0; }
.table > thead th { font-size: var(--fs-12); font-weight: 600; color: var(--text-secondary); text-transform: none; letter-spacing: 0; border-bottom-color: var(--line-strong); }
.table td, .table th { padding: 12px 14px; vertical-align: middle; }

/* ── Page anatomy ──────────────────────────────────────────────────── */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 420px; }
.page-head h1 { font-size: clamp(1.6rem, 2.4vw, var(--fs-32)); font-weight: 500; line-height: 1.15; margin: 0; color: var(--text-primary); }
.page-head p { color: var(--text-secondary); margin: 6px 0 0; max-width: 680px; font-size: 15px; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { font-family: var(--font-body); font-size: var(--fs-18); font-weight: 600; margin: 0 0 4px; }
.section-sub { color: var(--text-secondary); font-size: var(--fs-14); margin: 0 0 16px; }

/* ── Empty and error states: what · why · next ─────────────────────── */
.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.empty__title { font-family: var(--font-body); font-size: var(--fs-18); font-weight: 600; color: var(--text-primary); margin: 0; }
.empty__why { color: var(--text-secondary); max-width: 460px; margin: 0 0 10px; }
.empty--error .empty__icon { background: var(--danger-soft); color: var(--danger); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.notice > i { font-size: 18px; margin-top: 1px; }
.notice strong { display: block; color: var(--text-primary); }
.notice p { margin: 2px 0 0; color: var(--text-secondary); font-size: var(--fs-14); }
.notice--danger { background: var(--danger-soft); border-color: transparent; }
.notice--danger > i { color: var(--danger); }
.notice--warning { background: var(--warning-soft); border-color: transparent; }
.notice--warning > i { color: var(--warning); }
.notice--info > i { color: var(--info); }
.alert { border-radius: 14px; border: 1px solid transparent; }
.alert-info { background: var(--info-soft); color: var(--text-primary); }
.alert-warning { background: var(--warning-soft); color: var(--text-primary); }
.alert-danger { background: var(--danger-soft); color: var(--text-primary); }
.alert-success { background: var(--success-soft); color: var(--text-primary); }

/* ── Skeletons ─────────────────────────────────────────────────────── */
.skeleton { position: relative; overflow: hidden; background: var(--bg-elevated); border-radius: 8px; min-height: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--hover), transparent); animation: skeletonSweep 1.3s ease-in-out infinite; }
@keyframes skeletonSweep { to { transform: translateX(100%); } }

/* ── Segmented control ─────────────────────────────────────────────── */
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-elevated); border-radius: var(--radius-pill); max-width: 100%; overflow-x: auto; }
.segmented > a, .segmented > button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-secondary); font-size: var(--fs-14); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.segmented > a:hover, .segmented > button:hover { color: var(--text-primary); }
.segmented > .is-active, .segmented > [aria-selected="true"], .segmented > [aria-current="page"] { background: var(--seg-active); color: var(--text-primary); box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px -2px rgba(0, 0, 0, 0.25); }

/* ── Motion: enter (fade + 4px rise), staggered to 6 ───────────────── */
@keyframes enterRise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#content > *, #content > div > *:not(script):not(style):not(.modal):not(.offcanvas) { animation: enterRise var(--duration-slow) var(--ease-out) backwards; }
#content > div > *:nth-child(2) { animation-delay: 40ms; }
#content > div > *:nth-child(3) { animation-delay: 80ms; }
#content > div > *:nth-child(4) { animation-delay: 120ms; }
#content > div > *:nth-child(5) { animation-delay: 160ms; }
#content > div > *:nth-child(n+6) { animation-delay: 200ms; }
.stagger > * { animation: enterRise var(--duration-slow) var(--ease-out) backwards; }
.stagger > *:nth-child(2) { animation-delay: 40ms; } .stagger > *:nth-child(3) { animation-delay: 80ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; } .stagger > *:nth-child(5) { animation-delay: 160ms; }
.stagger > *:nth-child(n+6) { animation-delay: 200ms; }
.lift { transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.lift:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--glass-hairline), var(--shadow-2), var(--inner-light) !important; }
html.theme-fading, html.theme-fading * { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important; }

@media (prefers-reduced-motion: reduce) {
  .ambient__orb { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 2000; padding: 8px 14px; border-radius: 10px; background: var(--solid); color: var(--text-primary); box-shadow: var(--shadow-2); }

/* Inline code reads as text, not Bootstrap pink. */
code { color: var(--text-primary); background: var(--bg-elevated); padding: 1px 6px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.86em; }
pre code { background: none; padding: 0; }

/* Reserve the scrollbar's space so pages don't jump sideways when content grows. */
html { scrollbar-gutter: stable; }

/* Long button labels wrap on small screens instead of pushing the page sideways. */
@media (max-width: 575.98px) { .btn { white-space: normal; text-align: center; } }

/* Menus and drawers always sit above cards (glass blur creates its own layers). */
.dropdown-menu { z-index: 1070 !important; }
.offcanvas-backdrop { z-index: 1075; }
.offcanvas { z-index: 1080; }
.offcanvas-backdrop.show { opacity: 1; background: rgba(6, 12, 10, 0.32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.offcanvas { border-radius: 20px 0 0 20px; box-shadow: var(--shadow-3); }


/* ── Balanced card grids ───────────────────────────────────────────────
   Columns are chosen so rows divide evenly (8 → 4+4, 6 → 3+3, 4 → 2+2…).
   When a count can't divide (5, 7…), cards in the last row widen to fill it,
   so there is never a half-empty line. "small" = KPI-sized cards, "wide" =
   content cards (max 3 across). */
.pa-kpis, .pa-charts, .ints, .cx-grid, .upgrade-card-plans, .integrations-grid, .bgrid, .pa-grid, .mh-moments, .tp-grid, .phases, .trust-grid, .cp-grid, .bgrid--wide {
  display: flex !important; flex-wrap: wrap; gap: var(--bgap, 20px) !important;
  --bcols: 3;
}
:is(.pa-kpis, .pa-charts, .ints, .cx-grid, .upgrade-card-plans, .integrations-grid, .bgrid, .pa-grid, .mh-moments, .tp-grid, .phases, .trust-grid, .cp-grid, .bgrid--wide) > * {
  flex: 1 1 calc((100% - (var(--bcols) - 1) * var(--bgap, 20px)) / var(--bcols));
  min-width: 0; max-width: 100%; margin: 0 !important;
}
:is(.pa-kpis, .pa-charts, .ints, .cx-grid, .upgrade-card-plans, .integrations-grid, .bgrid) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(1)), .pa-charts:has(> :last-child:nth-child(1)), .ints:has(> :last-child:nth-child(1)), .cx-grid:has(> :last-child:nth-child(1)), .upgrade-card-plans:has(> :last-child:nth-child(1)), .integrations-grid:has(> :last-child:nth-child(1)), .bgrid:has(> :last-child:nth-child(1)) { --bcols: 1; }
.pa-kpis:has(> :last-child:nth-child(2)), .pa-charts:has(> :last-child:nth-child(2)), .ints:has(> :last-child:nth-child(2)), .cx-grid:has(> :last-child:nth-child(2)), .upgrade-card-plans:has(> :last-child:nth-child(2)), .integrations-grid:has(> :last-child:nth-child(2)), .bgrid:has(> :last-child:nth-child(2)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(3)), .pa-charts:has(> :last-child:nth-child(3)), .ints:has(> :last-child:nth-child(3)), .cx-grid:has(> :last-child:nth-child(3)), .upgrade-card-plans:has(> :last-child:nth-child(3)), .integrations-grid:has(> :last-child:nth-child(3)), .bgrid:has(> :last-child:nth-child(3)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(4)), .pa-charts:has(> :last-child:nth-child(4)), .ints:has(> :last-child:nth-child(4)), .cx-grid:has(> :last-child:nth-child(4)), .upgrade-card-plans:has(> :last-child:nth-child(4)), .integrations-grid:has(> :last-child:nth-child(4)), .bgrid:has(> :last-child:nth-child(4)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(5)), .pa-charts:has(> :last-child:nth-child(5)), .ints:has(> :last-child:nth-child(5)), .cx-grid:has(> :last-child:nth-child(5)), .upgrade-card-plans:has(> :last-child:nth-child(5)), .integrations-grid:has(> :last-child:nth-child(5)), .bgrid:has(> :last-child:nth-child(5)) { --bcols: 5; }
.pa-kpis:has(> :last-child:nth-child(6)), .pa-charts:has(> :last-child:nth-child(6)), .ints:has(> :last-child:nth-child(6)), .cx-grid:has(> :last-child:nth-child(6)), .upgrade-card-plans:has(> :last-child:nth-child(6)), .integrations-grid:has(> :last-child:nth-child(6)), .bgrid:has(> :last-child:nth-child(6)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(7)), .pa-charts:has(> :last-child:nth-child(7)), .ints:has(> :last-child:nth-child(7)), .cx-grid:has(> :last-child:nth-child(7)), .upgrade-card-plans:has(> :last-child:nth-child(7)), .integrations-grid:has(> :last-child:nth-child(7)), .bgrid:has(> :last-child:nth-child(7)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(8)), .pa-charts:has(> :last-child:nth-child(8)), .ints:has(> :last-child:nth-child(8)), .cx-grid:has(> :last-child:nth-child(8)), .upgrade-card-plans:has(> :last-child:nth-child(8)), .integrations-grid:has(> :last-child:nth-child(8)), .bgrid:has(> :last-child:nth-child(8)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(9)), .pa-charts:has(> :last-child:nth-child(9)), .ints:has(> :last-child:nth-child(9)), .cx-grid:has(> :last-child:nth-child(9)), .upgrade-card-plans:has(> :last-child:nth-child(9)), .integrations-grid:has(> :last-child:nth-child(9)), .bgrid:has(> :last-child:nth-child(9)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(10)), .pa-charts:has(> :last-child:nth-child(10)), .ints:has(> :last-child:nth-child(10)), .cx-grid:has(> :last-child:nth-child(10)), .upgrade-card-plans:has(> :last-child:nth-child(10)), .integrations-grid:has(> :last-child:nth-child(10)), .bgrid:has(> :last-child:nth-child(10)) { --bcols: 5; }
.pa-kpis:has(> :last-child:nth-child(11)), .pa-charts:has(> :last-child:nth-child(11)), .ints:has(> :last-child:nth-child(11)), .cx-grid:has(> :last-child:nth-child(11)), .upgrade-card-plans:has(> :last-child:nth-child(11)), .integrations-grid:has(> :last-child:nth-child(11)), .bgrid:has(> :last-child:nth-child(11)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(12)), .pa-charts:has(> :last-child:nth-child(12)), .ints:has(> :last-child:nth-child(12)), .cx-grid:has(> :last-child:nth-child(12)), .upgrade-card-plans:has(> :last-child:nth-child(12)), .integrations-grid:has(> :last-child:nth-child(12)), .bgrid:has(> :last-child:nth-child(12)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(13)), .pa-charts:has(> :last-child:nth-child(13)), .ints:has(> :last-child:nth-child(13)), .cx-grid:has(> :last-child:nth-child(13)), .upgrade-card-plans:has(> :last-child:nth-child(13)), .integrations-grid:has(> :last-child:nth-child(13)), .bgrid:has(> :last-child:nth-child(13)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(14)), .pa-charts:has(> :last-child:nth-child(14)), .ints:has(> :last-child:nth-child(14)), .cx-grid:has(> :last-child:nth-child(14)), .upgrade-card-plans:has(> :last-child:nth-child(14)), .integrations-grid:has(> :last-child:nth-child(14)), .bgrid:has(> :last-child:nth-child(14)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(15)), .pa-charts:has(> :last-child:nth-child(15)), .ints:has(> :last-child:nth-child(15)), .cx-grid:has(> :last-child:nth-child(15)), .upgrade-card-plans:has(> :last-child:nth-child(15)), .integrations-grid:has(> :last-child:nth-child(15)), .bgrid:has(> :last-child:nth-child(15)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(16)), .pa-charts:has(> :last-child:nth-child(16)), .ints:has(> :last-child:nth-child(16)), .cx-grid:has(> :last-child:nth-child(16)), .upgrade-card-plans:has(> :last-child:nth-child(16)), .integrations-grid:has(> :last-child:nth-child(16)), .bgrid:has(> :last-child:nth-child(16)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(17)), .pa-charts:has(> :last-child:nth-child(17)), .ints:has(> :last-child:nth-child(17)), .cx-grid:has(> :last-child:nth-child(17)), .upgrade-card-plans:has(> :last-child:nth-child(17)), .integrations-grid:has(> :last-child:nth-child(17)), .bgrid:has(> :last-child:nth-child(17)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(18)), .pa-charts:has(> :last-child:nth-child(18)), .ints:has(> :last-child:nth-child(18)), .cx-grid:has(> :last-child:nth-child(18)), .upgrade-card-plans:has(> :last-child:nth-child(18)), .integrations-grid:has(> :last-child:nth-child(18)), .bgrid:has(> :last-child:nth-child(18)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(19)), .pa-charts:has(> :last-child:nth-child(19)), .ints:has(> :last-child:nth-child(19)), .cx-grid:has(> :last-child:nth-child(19)), .upgrade-card-plans:has(> :last-child:nth-child(19)), .integrations-grid:has(> :last-child:nth-child(19)), .bgrid:has(> :last-child:nth-child(19)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(20)), .pa-charts:has(> :last-child:nth-child(20)), .ints:has(> :last-child:nth-child(20)), .cx-grid:has(> :last-child:nth-child(20)), .upgrade-card-plans:has(> :last-child:nth-child(20)), .integrations-grid:has(> :last-child:nth-child(20)), .bgrid:has(> :last-child:nth-child(20)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(21)), .pa-charts:has(> :last-child:nth-child(21)), .ints:has(> :last-child:nth-child(21)), .cx-grid:has(> :last-child:nth-child(21)), .upgrade-card-plans:has(> :last-child:nth-child(21)), .integrations-grid:has(> :last-child:nth-child(21)), .bgrid:has(> :last-child:nth-child(21)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(22)), .pa-charts:has(> :last-child:nth-child(22)), .ints:has(> :last-child:nth-child(22)), .cx-grid:has(> :last-child:nth-child(22)), .upgrade-card-plans:has(> :last-child:nth-child(22)), .integrations-grid:has(> :last-child:nth-child(22)), .bgrid:has(> :last-child:nth-child(22)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(23)), .pa-charts:has(> :last-child:nth-child(23)), .ints:has(> :last-child:nth-child(23)), .cx-grid:has(> :last-child:nth-child(23)), .upgrade-card-plans:has(> :last-child:nth-child(23)), .integrations-grid:has(> :last-child:nth-child(23)), .bgrid:has(> :last-child:nth-child(23)) { --bcols: 4; }
.pa-kpis:has(> :last-child:nth-child(24)), .pa-charts:has(> :last-child:nth-child(24)), .ints:has(> :last-child:nth-child(24)), .cx-grid:has(> :last-child:nth-child(24)), .upgrade-card-plans:has(> :last-child:nth-child(24)), .integrations-grid:has(> :last-child:nth-child(24)), .bgrid:has(> :last-child:nth-child(24)) { --bcols: 4; }
.pa-grid:has(> :last-child:nth-child(1)), .mh-moments:has(> :last-child:nth-child(1)), .tp-grid:has(> :last-child:nth-child(1)), .phases:has(> :last-child:nth-child(1)), .trust-grid:has(> :last-child:nth-child(1)), .cp-grid:has(> :last-child:nth-child(1)), .bgrid--wide:has(> :last-child:nth-child(1)) { --bcols: 1; }
.pa-grid:has(> :last-child:nth-child(2)), .mh-moments:has(> :last-child:nth-child(2)), .tp-grid:has(> :last-child:nth-child(2)), .phases:has(> :last-child:nth-child(2)), .trust-grid:has(> :last-child:nth-child(2)), .cp-grid:has(> :last-child:nth-child(2)), .bgrid--wide:has(> :last-child:nth-child(2)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(3)), .mh-moments:has(> :last-child:nth-child(3)), .tp-grid:has(> :last-child:nth-child(3)), .phases:has(> :last-child:nth-child(3)), .trust-grid:has(> :last-child:nth-child(3)), .cp-grid:has(> :last-child:nth-child(3)), .bgrid--wide:has(> :last-child:nth-child(3)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(4)), .mh-moments:has(> :last-child:nth-child(4)), .tp-grid:has(> :last-child:nth-child(4)), .phases:has(> :last-child:nth-child(4)), .trust-grid:has(> :last-child:nth-child(4)), .cp-grid:has(> :last-child:nth-child(4)), .bgrid--wide:has(> :last-child:nth-child(4)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(5)), .mh-moments:has(> :last-child:nth-child(5)), .tp-grid:has(> :last-child:nth-child(5)), .phases:has(> :last-child:nth-child(5)), .trust-grid:has(> :last-child:nth-child(5)), .cp-grid:has(> :last-child:nth-child(5)), .bgrid--wide:has(> :last-child:nth-child(5)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(6)), .mh-moments:has(> :last-child:nth-child(6)), .tp-grid:has(> :last-child:nth-child(6)), .phases:has(> :last-child:nth-child(6)), .trust-grid:has(> :last-child:nth-child(6)), .cp-grid:has(> :last-child:nth-child(6)), .bgrid--wide:has(> :last-child:nth-child(6)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(7)), .mh-moments:has(> :last-child:nth-child(7)), .tp-grid:has(> :last-child:nth-child(7)), .phases:has(> :last-child:nth-child(7)), .trust-grid:has(> :last-child:nth-child(7)), .cp-grid:has(> :last-child:nth-child(7)), .bgrid--wide:has(> :last-child:nth-child(7)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(8)), .mh-moments:has(> :last-child:nth-child(8)), .tp-grid:has(> :last-child:nth-child(8)), .phases:has(> :last-child:nth-child(8)), .trust-grid:has(> :last-child:nth-child(8)), .cp-grid:has(> :last-child:nth-child(8)), .bgrid--wide:has(> :last-child:nth-child(8)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(9)), .mh-moments:has(> :last-child:nth-child(9)), .tp-grid:has(> :last-child:nth-child(9)), .phases:has(> :last-child:nth-child(9)), .trust-grid:has(> :last-child:nth-child(9)), .cp-grid:has(> :last-child:nth-child(9)), .bgrid--wide:has(> :last-child:nth-child(9)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(10)), .mh-moments:has(> :last-child:nth-child(10)), .tp-grid:has(> :last-child:nth-child(10)), .phases:has(> :last-child:nth-child(10)), .trust-grid:has(> :last-child:nth-child(10)), .cp-grid:has(> :last-child:nth-child(10)), .bgrid--wide:has(> :last-child:nth-child(10)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(11)), .mh-moments:has(> :last-child:nth-child(11)), .tp-grid:has(> :last-child:nth-child(11)), .phases:has(> :last-child:nth-child(11)), .trust-grid:has(> :last-child:nth-child(11)), .cp-grid:has(> :last-child:nth-child(11)), .bgrid--wide:has(> :last-child:nth-child(11)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(12)), .mh-moments:has(> :last-child:nth-child(12)), .tp-grid:has(> :last-child:nth-child(12)), .phases:has(> :last-child:nth-child(12)), .trust-grid:has(> :last-child:nth-child(12)), .cp-grid:has(> :last-child:nth-child(12)), .bgrid--wide:has(> :last-child:nth-child(12)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(13)), .mh-moments:has(> :last-child:nth-child(13)), .tp-grid:has(> :last-child:nth-child(13)), .phases:has(> :last-child:nth-child(13)), .trust-grid:has(> :last-child:nth-child(13)), .cp-grid:has(> :last-child:nth-child(13)), .bgrid--wide:has(> :last-child:nth-child(13)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(14)), .mh-moments:has(> :last-child:nth-child(14)), .tp-grid:has(> :last-child:nth-child(14)), .phases:has(> :last-child:nth-child(14)), .trust-grid:has(> :last-child:nth-child(14)), .cp-grid:has(> :last-child:nth-child(14)), .bgrid--wide:has(> :last-child:nth-child(14)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(15)), .mh-moments:has(> :last-child:nth-child(15)), .tp-grid:has(> :last-child:nth-child(15)), .phases:has(> :last-child:nth-child(15)), .trust-grid:has(> :last-child:nth-child(15)), .cp-grid:has(> :last-child:nth-child(15)), .bgrid--wide:has(> :last-child:nth-child(15)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(16)), .mh-moments:has(> :last-child:nth-child(16)), .tp-grid:has(> :last-child:nth-child(16)), .phases:has(> :last-child:nth-child(16)), .trust-grid:has(> :last-child:nth-child(16)), .cp-grid:has(> :last-child:nth-child(16)), .bgrid--wide:has(> :last-child:nth-child(16)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(17)), .mh-moments:has(> :last-child:nth-child(17)), .tp-grid:has(> :last-child:nth-child(17)), .phases:has(> :last-child:nth-child(17)), .trust-grid:has(> :last-child:nth-child(17)), .cp-grid:has(> :last-child:nth-child(17)), .bgrid--wide:has(> :last-child:nth-child(17)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(18)), .mh-moments:has(> :last-child:nth-child(18)), .tp-grid:has(> :last-child:nth-child(18)), .phases:has(> :last-child:nth-child(18)), .trust-grid:has(> :last-child:nth-child(18)), .cp-grid:has(> :last-child:nth-child(18)), .bgrid--wide:has(> :last-child:nth-child(18)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(19)), .mh-moments:has(> :last-child:nth-child(19)), .tp-grid:has(> :last-child:nth-child(19)), .phases:has(> :last-child:nth-child(19)), .trust-grid:has(> :last-child:nth-child(19)), .cp-grid:has(> :last-child:nth-child(19)), .bgrid--wide:has(> :last-child:nth-child(19)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(20)), .mh-moments:has(> :last-child:nth-child(20)), .tp-grid:has(> :last-child:nth-child(20)), .phases:has(> :last-child:nth-child(20)), .trust-grid:has(> :last-child:nth-child(20)), .cp-grid:has(> :last-child:nth-child(20)), .bgrid--wide:has(> :last-child:nth-child(20)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(21)), .mh-moments:has(> :last-child:nth-child(21)), .tp-grid:has(> :last-child:nth-child(21)), .phases:has(> :last-child:nth-child(21)), .trust-grid:has(> :last-child:nth-child(21)), .cp-grid:has(> :last-child:nth-child(21)), .bgrid--wide:has(> :last-child:nth-child(21)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(22)), .mh-moments:has(> :last-child:nth-child(22)), .tp-grid:has(> :last-child:nth-child(22)), .phases:has(> :last-child:nth-child(22)), .trust-grid:has(> :last-child:nth-child(22)), .cp-grid:has(> :last-child:nth-child(22)), .bgrid--wide:has(> :last-child:nth-child(22)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(23)), .mh-moments:has(> :last-child:nth-child(23)), .tp-grid:has(> :last-child:nth-child(23)), .phases:has(> :last-child:nth-child(23)), .trust-grid:has(> :last-child:nth-child(23)), .cp-grid:has(> :last-child:nth-child(23)), .bgrid--wide:has(> :last-child:nth-child(23)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(24)), .mh-moments:has(> :last-child:nth-child(24)), .tp-grid:has(> :last-child:nth-child(24)), .phases:has(> :last-child:nth-child(24)), .trust-grid:has(> :last-child:nth-child(24)), .cp-grid:has(> :last-child:nth-child(24)), .bgrid--wide:has(> :last-child:nth-child(24)) { --bcols: 3; }
@media (max-width: 1100px) {
.pa-kpis:has(> :last-child:nth-child(1)), .pa-charts:has(> :last-child:nth-child(1)), .ints:has(> :last-child:nth-child(1)), .cx-grid:has(> :last-child:nth-child(1)), .upgrade-card-plans:has(> :last-child:nth-child(1)), .integrations-grid:has(> :last-child:nth-child(1)), .bgrid:has(> :last-child:nth-child(1)) { --bcols: 1; }
.pa-kpis:has(> :last-child:nth-child(2)), .pa-charts:has(> :last-child:nth-child(2)), .ints:has(> :last-child:nth-child(2)), .cx-grid:has(> :last-child:nth-child(2)), .upgrade-card-plans:has(> :last-child:nth-child(2)), .integrations-grid:has(> :last-child:nth-child(2)), .bgrid:has(> :last-child:nth-child(2)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(3)), .pa-charts:has(> :last-child:nth-child(3)), .ints:has(> :last-child:nth-child(3)), .cx-grid:has(> :last-child:nth-child(3)), .upgrade-card-plans:has(> :last-child:nth-child(3)), .integrations-grid:has(> :last-child:nth-child(3)), .bgrid:has(> :last-child:nth-child(3)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(4)), .pa-charts:has(> :last-child:nth-child(4)), .ints:has(> :last-child:nth-child(4)), .cx-grid:has(> :last-child:nth-child(4)), .upgrade-card-plans:has(> :last-child:nth-child(4)), .integrations-grid:has(> :last-child:nth-child(4)), .bgrid:has(> :last-child:nth-child(4)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(5)), .pa-charts:has(> :last-child:nth-child(5)), .ints:has(> :last-child:nth-child(5)), .cx-grid:has(> :last-child:nth-child(5)), .upgrade-card-plans:has(> :last-child:nth-child(5)), .integrations-grid:has(> :last-child:nth-child(5)), .bgrid:has(> :last-child:nth-child(5)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(6)), .pa-charts:has(> :last-child:nth-child(6)), .ints:has(> :last-child:nth-child(6)), .cx-grid:has(> :last-child:nth-child(6)), .upgrade-card-plans:has(> :last-child:nth-child(6)), .integrations-grid:has(> :last-child:nth-child(6)), .bgrid:has(> :last-child:nth-child(6)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(7)), .pa-charts:has(> :last-child:nth-child(7)), .ints:has(> :last-child:nth-child(7)), .cx-grid:has(> :last-child:nth-child(7)), .upgrade-card-plans:has(> :last-child:nth-child(7)), .integrations-grid:has(> :last-child:nth-child(7)), .bgrid:has(> :last-child:nth-child(7)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(8)), .pa-charts:has(> :last-child:nth-child(8)), .ints:has(> :last-child:nth-child(8)), .cx-grid:has(> :last-child:nth-child(8)), .upgrade-card-plans:has(> :last-child:nth-child(8)), .integrations-grid:has(> :last-child:nth-child(8)), .bgrid:has(> :last-child:nth-child(8)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(9)), .pa-charts:has(> :last-child:nth-child(9)), .ints:has(> :last-child:nth-child(9)), .cx-grid:has(> :last-child:nth-child(9)), .upgrade-card-plans:has(> :last-child:nth-child(9)), .integrations-grid:has(> :last-child:nth-child(9)), .bgrid:has(> :last-child:nth-child(9)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(10)), .pa-charts:has(> :last-child:nth-child(10)), .ints:has(> :last-child:nth-child(10)), .cx-grid:has(> :last-child:nth-child(10)), .upgrade-card-plans:has(> :last-child:nth-child(10)), .integrations-grid:has(> :last-child:nth-child(10)), .bgrid:has(> :last-child:nth-child(10)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(11)), .pa-charts:has(> :last-child:nth-child(11)), .ints:has(> :last-child:nth-child(11)), .cx-grid:has(> :last-child:nth-child(11)), .upgrade-card-plans:has(> :last-child:nth-child(11)), .integrations-grid:has(> :last-child:nth-child(11)), .bgrid:has(> :last-child:nth-child(11)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(12)), .pa-charts:has(> :last-child:nth-child(12)), .ints:has(> :last-child:nth-child(12)), .cx-grid:has(> :last-child:nth-child(12)), .upgrade-card-plans:has(> :last-child:nth-child(12)), .integrations-grid:has(> :last-child:nth-child(12)), .bgrid:has(> :last-child:nth-child(12)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(13)), .pa-charts:has(> :last-child:nth-child(13)), .ints:has(> :last-child:nth-child(13)), .cx-grid:has(> :last-child:nth-child(13)), .upgrade-card-plans:has(> :last-child:nth-child(13)), .integrations-grid:has(> :last-child:nth-child(13)), .bgrid:has(> :last-child:nth-child(13)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(14)), .pa-charts:has(> :last-child:nth-child(14)), .ints:has(> :last-child:nth-child(14)), .cx-grid:has(> :last-child:nth-child(14)), .upgrade-card-plans:has(> :last-child:nth-child(14)), .integrations-grid:has(> :last-child:nth-child(14)), .bgrid:has(> :last-child:nth-child(14)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(15)), .pa-charts:has(> :last-child:nth-child(15)), .ints:has(> :last-child:nth-child(15)), .cx-grid:has(> :last-child:nth-child(15)), .upgrade-card-plans:has(> :last-child:nth-child(15)), .integrations-grid:has(> :last-child:nth-child(15)), .bgrid:has(> :last-child:nth-child(15)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(16)), .pa-charts:has(> :last-child:nth-child(16)), .ints:has(> :last-child:nth-child(16)), .cx-grid:has(> :last-child:nth-child(16)), .upgrade-card-plans:has(> :last-child:nth-child(16)), .integrations-grid:has(> :last-child:nth-child(16)), .bgrid:has(> :last-child:nth-child(16)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(17)), .pa-charts:has(> :last-child:nth-child(17)), .ints:has(> :last-child:nth-child(17)), .cx-grid:has(> :last-child:nth-child(17)), .upgrade-card-plans:has(> :last-child:nth-child(17)), .integrations-grid:has(> :last-child:nth-child(17)), .bgrid:has(> :last-child:nth-child(17)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(18)), .pa-charts:has(> :last-child:nth-child(18)), .ints:has(> :last-child:nth-child(18)), .cx-grid:has(> :last-child:nth-child(18)), .upgrade-card-plans:has(> :last-child:nth-child(18)), .integrations-grid:has(> :last-child:nth-child(18)), .bgrid:has(> :last-child:nth-child(18)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(19)), .pa-charts:has(> :last-child:nth-child(19)), .ints:has(> :last-child:nth-child(19)), .cx-grid:has(> :last-child:nth-child(19)), .upgrade-card-plans:has(> :last-child:nth-child(19)), .integrations-grid:has(> :last-child:nth-child(19)), .bgrid:has(> :last-child:nth-child(19)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(20)), .pa-charts:has(> :last-child:nth-child(20)), .ints:has(> :last-child:nth-child(20)), .cx-grid:has(> :last-child:nth-child(20)), .upgrade-card-plans:has(> :last-child:nth-child(20)), .integrations-grid:has(> :last-child:nth-child(20)), .bgrid:has(> :last-child:nth-child(20)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(21)), .pa-charts:has(> :last-child:nth-child(21)), .ints:has(> :last-child:nth-child(21)), .cx-grid:has(> :last-child:nth-child(21)), .upgrade-card-plans:has(> :last-child:nth-child(21)), .integrations-grid:has(> :last-child:nth-child(21)), .bgrid:has(> :last-child:nth-child(21)) { --bcols: 3; }
.pa-kpis:has(> :last-child:nth-child(22)), .pa-charts:has(> :last-child:nth-child(22)), .ints:has(> :last-child:nth-child(22)), .cx-grid:has(> :last-child:nth-child(22)), .upgrade-card-plans:has(> :last-child:nth-child(22)), .integrations-grid:has(> :last-child:nth-child(22)), .bgrid:has(> :last-child:nth-child(22)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(23)), .pa-charts:has(> :last-child:nth-child(23)), .ints:has(> :last-child:nth-child(23)), .cx-grid:has(> :last-child:nth-child(23)), .upgrade-card-plans:has(> :last-child:nth-child(23)), .integrations-grid:has(> :last-child:nth-child(23)), .bgrid:has(> :last-child:nth-child(23)) { --bcols: 2; }
.pa-kpis:has(> :last-child:nth-child(24)), .pa-charts:has(> :last-child:nth-child(24)), .ints:has(> :last-child:nth-child(24)), .cx-grid:has(> :last-child:nth-child(24)), .upgrade-card-plans:has(> :last-child:nth-child(24)), .integrations-grid:has(> :last-child:nth-child(24)), .bgrid:has(> :last-child:nth-child(24)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(1)), .mh-moments:has(> :last-child:nth-child(1)), .tp-grid:has(> :last-child:nth-child(1)), .phases:has(> :last-child:nth-child(1)), .trust-grid:has(> :last-child:nth-child(1)), .cp-grid:has(> :last-child:nth-child(1)), .bgrid--wide:has(> :last-child:nth-child(1)) { --bcols: 1; }
.pa-grid:has(> :last-child:nth-child(2)), .mh-moments:has(> :last-child:nth-child(2)), .tp-grid:has(> :last-child:nth-child(2)), .phases:has(> :last-child:nth-child(2)), .trust-grid:has(> :last-child:nth-child(2)), .cp-grid:has(> :last-child:nth-child(2)), .bgrid--wide:has(> :last-child:nth-child(2)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(3)), .mh-moments:has(> :last-child:nth-child(3)), .tp-grid:has(> :last-child:nth-child(3)), .phases:has(> :last-child:nth-child(3)), .trust-grid:has(> :last-child:nth-child(3)), .cp-grid:has(> :last-child:nth-child(3)), .bgrid--wide:has(> :last-child:nth-child(3)) { --bcols: 3; }
.pa-grid:has(> :last-child:nth-child(4)), .mh-moments:has(> :last-child:nth-child(4)), .tp-grid:has(> :last-child:nth-child(4)), .phases:has(> :last-child:nth-child(4)), .trust-grid:has(> :last-child:nth-child(4)), .cp-grid:has(> :last-child:nth-child(4)), .bgrid--wide:has(> :last-child:nth-child(4)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(5)), .mh-moments:has(> :last-child:nth-child(5)), .tp-grid:has(> :last-child:nth-child(5)), .phases:has(> :last-child:nth-child(5)), .trust-grid:has(> :last-child:nth-child(5)), .cp-grid:has(> :last-child:nth-child(5)), .bgrid--wide:has(> :last-child:nth-child(5)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(6)), .mh-moments:has(> :last-child:nth-child(6)), .tp-grid:has(> :last-child:nth-child(6)), .phases:has(> :last-child:nth-child(6)), .trust-grid:has(> :last-child:nth-child(6)), .cp-grid:has(> :last-child:nth-child(6)), .bgrid--wide:has(> :last-child:nth-child(6)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(7)), .mh-moments:has(> :last-child:nth-child(7)), .tp-grid:has(> :last-child:nth-child(7)), .phases:has(> :last-child:nth-child(7)), .trust-grid:has(> :last-child:nth-child(7)), .cp-grid:has(> :last-child:nth-child(7)), .bgrid--wide:has(> :last-child:nth-child(7)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(8)), .mh-moments:has(> :last-child:nth-child(8)), .tp-grid:has(> :last-child:nth-child(8)), .phases:has(> :last-child:nth-child(8)), .trust-grid:has(> :last-child:nth-child(8)), .cp-grid:has(> :last-child:nth-child(8)), .bgrid--wide:has(> :last-child:nth-child(8)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(9)), .mh-moments:has(> :last-child:nth-child(9)), .tp-grid:has(> :last-child:nth-child(9)), .phases:has(> :last-child:nth-child(9)), .trust-grid:has(> :last-child:nth-child(9)), .cp-grid:has(> :last-child:nth-child(9)), .bgrid--wide:has(> :last-child:nth-child(9)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(10)), .mh-moments:has(> :last-child:nth-child(10)), .tp-grid:has(> :last-child:nth-child(10)), .phases:has(> :last-child:nth-child(10)), .trust-grid:has(> :last-child:nth-child(10)), .cp-grid:has(> :last-child:nth-child(10)), .bgrid--wide:has(> :last-child:nth-child(10)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(11)), .mh-moments:has(> :last-child:nth-child(11)), .tp-grid:has(> :last-child:nth-child(11)), .phases:has(> :last-child:nth-child(11)), .trust-grid:has(> :last-child:nth-child(11)), .cp-grid:has(> :last-child:nth-child(11)), .bgrid--wide:has(> :last-child:nth-child(11)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(12)), .mh-moments:has(> :last-child:nth-child(12)), .tp-grid:has(> :last-child:nth-child(12)), .phases:has(> :last-child:nth-child(12)), .trust-grid:has(> :last-child:nth-child(12)), .cp-grid:has(> :last-child:nth-child(12)), .bgrid--wide:has(> :last-child:nth-child(12)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(13)), .mh-moments:has(> :last-child:nth-child(13)), .tp-grid:has(> :last-child:nth-child(13)), .phases:has(> :last-child:nth-child(13)), .trust-grid:has(> :last-child:nth-child(13)), .cp-grid:has(> :last-child:nth-child(13)), .bgrid--wide:has(> :last-child:nth-child(13)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(14)), .mh-moments:has(> :last-child:nth-child(14)), .tp-grid:has(> :last-child:nth-child(14)), .phases:has(> :last-child:nth-child(14)), .trust-grid:has(> :last-child:nth-child(14)), .cp-grid:has(> :last-child:nth-child(14)), .bgrid--wide:has(> :last-child:nth-child(14)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(15)), .mh-moments:has(> :last-child:nth-child(15)), .tp-grid:has(> :last-child:nth-child(15)), .phases:has(> :last-child:nth-child(15)), .trust-grid:has(> :last-child:nth-child(15)), .cp-grid:has(> :last-child:nth-child(15)), .bgrid--wide:has(> :last-child:nth-child(15)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(16)), .mh-moments:has(> :last-child:nth-child(16)), .tp-grid:has(> :last-child:nth-child(16)), .phases:has(> :last-child:nth-child(16)), .trust-grid:has(> :last-child:nth-child(16)), .cp-grid:has(> :last-child:nth-child(16)), .bgrid--wide:has(> :last-child:nth-child(16)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(17)), .mh-moments:has(> :last-child:nth-child(17)), .tp-grid:has(> :last-child:nth-child(17)), .phases:has(> :last-child:nth-child(17)), .trust-grid:has(> :last-child:nth-child(17)), .cp-grid:has(> :last-child:nth-child(17)), .bgrid--wide:has(> :last-child:nth-child(17)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(18)), .mh-moments:has(> :last-child:nth-child(18)), .tp-grid:has(> :last-child:nth-child(18)), .phases:has(> :last-child:nth-child(18)), .trust-grid:has(> :last-child:nth-child(18)), .cp-grid:has(> :last-child:nth-child(18)), .bgrid--wide:has(> :last-child:nth-child(18)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(19)), .mh-moments:has(> :last-child:nth-child(19)), .tp-grid:has(> :last-child:nth-child(19)), .phases:has(> :last-child:nth-child(19)), .trust-grid:has(> :last-child:nth-child(19)), .cp-grid:has(> :last-child:nth-child(19)), .bgrid--wide:has(> :last-child:nth-child(19)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(20)), .mh-moments:has(> :last-child:nth-child(20)), .tp-grid:has(> :last-child:nth-child(20)), .phases:has(> :last-child:nth-child(20)), .trust-grid:has(> :last-child:nth-child(20)), .cp-grid:has(> :last-child:nth-child(20)), .bgrid--wide:has(> :last-child:nth-child(20)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(21)), .mh-moments:has(> :last-child:nth-child(21)), .tp-grid:has(> :last-child:nth-child(21)), .phases:has(> :last-child:nth-child(21)), .trust-grid:has(> :last-child:nth-child(21)), .cp-grid:has(> :last-child:nth-child(21)), .bgrid--wide:has(> :last-child:nth-child(21)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(22)), .mh-moments:has(> :last-child:nth-child(22)), .tp-grid:has(> :last-child:nth-child(22)), .phases:has(> :last-child:nth-child(22)), .trust-grid:has(> :last-child:nth-child(22)), .cp-grid:has(> :last-child:nth-child(22)), .bgrid--wide:has(> :last-child:nth-child(22)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(23)), .mh-moments:has(> :last-child:nth-child(23)), .tp-grid:has(> :last-child:nth-child(23)), .phases:has(> :last-child:nth-child(23)), .trust-grid:has(> :last-child:nth-child(23)), .cp-grid:has(> :last-child:nth-child(23)), .bgrid--wide:has(> :last-child:nth-child(23)) { --bcols: 2; }
.pa-grid:has(> :last-child:nth-child(24)), .mh-moments:has(> :last-child:nth-child(24)), .tp-grid:has(> :last-child:nth-child(24)), .phases:has(> :last-child:nth-child(24)), .trust-grid:has(> :last-child:nth-child(24)), .cp-grid:has(> :last-child:nth-child(24)), .bgrid--wide:has(> :last-child:nth-child(24)) { --bcols: 2; }
}
@media (max-width: 640px) {
  :is(.pa-kpis, .pa-charts, .ints, .cx-grid, .upgrade-card-plans, .integrations-grid, .bgrid) { --bcols: 2 !important; }
  :is(.pa-kpis, .pa-charts, .ints, .cx-grid, .upgrade-card-plans, .integrations-grid, .bgrid):has(> :last-child:nth-child(1)) { --bcols: 1 !important; }
  :is(.pa-grid, .mh-moments, .tp-grid, .phases, .trust-grid, .cp-grid, .bgrid--wide) { --bcols: 1 !important; }
}

/* Pricing: columns follow the cards that are actually shown (3 for individuals, 4 for teams). */
.plan-grid { grid-template-columns: repeat(var(--plan-cols, 4), minmax(0, 1fr)) !important; }
.plan-grid[data-count="1"] { --plan-cols: 1; } .plan-grid[data-count="2"] { --plan-cols: 2; }
.plan-grid[data-count="3"] { --plan-cols: 3; } .plan-grid[data-count="4"] { --plan-cols: 4; }
.plan-grid[data-count="5"], .plan-grid[data-count="6"] { --plan-cols: 3; }
@media (max-width: 1100px) { .plan-grid[data-count="4"] { --plan-cols: 2; } .plan-grid[data-count="5"], .plan-grid[data-count="6"] { --plan-cols: 2; } }
@media (max-width: 720px) { .plan-grid { --plan-cols: 1 !important; } }

/* Official brand logos sit on a white tile so dark marks (Notion, OpenAI) stay visible in dark mode. */
.logo-tile { --tile: 40px; width: var(--tile); height: var(--tile); flex: none; display: inline-grid; place-items: center; border-radius: calc(var(--tile) * 0.28); background: #ffffff; border: 1px solid rgba(22, 28, 24, 0.08); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.logo-tile img { width: 58%; height: 58%; object-fit: contain; }
.brand-img { display: inline-block; vertical-align: -4px; object-fit: contain; }
.logo-pair { display: inline-flex; }
.logo-pair .logo-tile + .logo-tile { margin-left: -10px; box-shadow: 0 0 0 2px var(--solid); }

/* People: photo or initials, always round. */
.avatar { --av: 32px; width: var(--av); height: var(--av); flex: none; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: calc(var(--av) * 0.38); letter-spacing: 0.02em; box-shadow: 0 0 0 1px var(--glass-hairline); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Type scale: one family (Geist), tight tracking on display sizes ──── */
h1, h2, .h1, .h2, .display, .page-head h1, .md-title, .h-title, .ws-title { font-family: var(--font-display); font-weight: 600 !important; letter-spacing: -0.03em; }
.page-head h1, .md-title { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.15; }
.section-title, .cx-group-head h2, .tp-name, .ws-card-title { font-weight: 600 !important; letter-spacing: -0.015em; }
.h-hero h1 { font-weight: 650 !important; letter-spacing: -0.045em !important; line-height: 1.02 !important; }
.h-title { letter-spacing: -0.04em !important; }
h3, h4, .h3, .h4 { font-weight: 600; letter-spacing: -0.01em; }

/* Pricing toggles use the shared segmented look; the two groups never touch. */
.plans-toggle { display: inline-flex !important; gap: 4px !important; padding: 4px !important; border-radius: var(--radius-pill) !important; background: var(--bg-elevated) !important; border: 0 !important; }
.plans-toggle button { min-height: 38px !important; padding: 0 16px !important; border: 0 !important; border-radius: var(--radius-pill) !important; background: transparent !important; color: var(--text-secondary) !important; font-size: var(--fs-14) !important; font-weight: 600 !important; display: inline-flex !important; align-items: center; gap: 6px; }
.plans-toggle button:hover { color: var(--text-primary) !important; }
.plans-toggle button.is-active { background: var(--seg-active) !important; color: var(--text-primary) !important; box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px -2px rgba(0, 0, 0, 0.25) !important; }
.plans-toggle button span, .plans-toggle .save-pill { text-transform: none !important; letter-spacing: 0 !important; }
.plans-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.plans-header > h3, .plans-header > p { flex: 0 0 100%; max-width: none !important; margin-bottom: 0; }
.plans-header > p { margin-bottom: 4px; color: var(--text-secondary); }

/* Choice cards (radio/checkbox inside a bordered label): the chosen one is obvious. */
label.border:has(> input:checked), label.border:has(input[type=radio]:checked), .choice-card:has(input:checked) { border-color: var(--primary) !important; background: var(--brand-soft); box-shadow: 0 0 0 1px var(--primary); }
[data-theme="dark"] label.border:has(input[type=radio]:checked), [data-theme="dark"] .choice-card:has(input:checked) { border-color: var(--mint) !important; box-shadow: 0 0 0 1px var(--mint); }
label.border:has(input[type=radio]) { cursor: pointer; transition: border-color var(--duration-fast), background var(--duration-fast); border-radius: 14px !important; }
label.border:has(input[type=radio]):hover { border-color: var(--grey-8) !important; }
.plans-header > .plans-toggle { margin: 0 !important; align-self: center; }
.plans-header { justify-content: flex-start !important; text-align: left !important; }
.plans-header > h3 { font-family: var(--font-display); font-weight: 600 !important; letter-spacing: -0.025em; font-size: clamp(1.35rem, 2vw, 1.6rem); }

/* ── Form errors: one look everywhere ──
   Error boxes (.auth-error, .alert-danger, .notice--danger) use a soft red
   wash with normal text so the message stays readable; the field itself
   carries the red. base.html marks fields named in [data-error-fields]
   with aria-invalid so this applies to server-side errors too. */
.alert-danger { border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.auth-error strong, .alert-danger strong, .auth-error p:first-child:not(:only-child) { color: var(--danger); }
.form-control.is-invalid, .form-select.is-invalid, .auth-input[aria-invalid="true"], .form-control[aria-invalid="true"], .form-select[aria-invalid="true"] {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px var(--danger-soft) !important;
}
.invalid-feedback, ul.errorlist, .field-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
ul.errorlist { list-style: none; padding: 0; margin-bottom: 0; }
