:root {
  color-scheme: dark;
  --bg: #181a20;
  --sidebar: #1e2026;
  --surface: #22252c;
  --panel-surface: #22252cf0;
  --surface-2: #272a32;
  --raised: #30343d;
  --hover: #343944;
  --border: #373b45;
  --border-strong: #494f5d;
  --text: #f7f7fa;
  --muted: #b7bcc6;
  --quiet: #aaafba;
  --accent: #dbe0e9;
  --on-accent: #1b1d24;
  --active: #373d48;
  --green: #b5e1c4;
  --green-bg: #283a32;
  --blue: #c5d3f1;
  --blue-bg: #303a4e;
  --amber: #f0d19b;
  --amber-bg: #423725;
  --red: #f3b4b2;
  --red-bg: #443033;
  --funnel-2: #9ca6b8;
  --funnel-3: #778295;
  --grid: #383c46;
  --prior: #8f97a8;
  --shadow: 0 18px 64px #080a144f;
  --wave-back: #303747;
  --wave-strong: #596274;
  --wave-mid: #40495b;
  --wave-fade: #3e475b;
  --wave-edge: #707a8b;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --radius: 18px;
  --small-radius: 11px;
  --speed: 150ms;
  --sidebar-width: 266px;
  --gutter: clamp(22px, 2.4vw, 40px);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f9;
  --sidebar: #f5f5f8;
  --surface: #fbfbfd;
  --panel-surface: #fafafdce;
  --surface-2: #f2f2f6;
  --raised: #e7e8ed;
  --hover: #e9eaf0;
  --border: #e1e2e8;
  --border-strong: #d4d6de;
  --text: #101217;
  --muted: #4e535d;
  --quiet: #626875;
  --accent: #353b46;
  --on-accent: #fff;
  --active: #e2e4eb;
  --green: #28513c;
  --green-bg: #e5eee9;
  --blue: #3f5069;
  --blue-bg: #e6eaf3;
  --amber: #674918;
  --amber-bg: #f1eee5;
  --red: #80403f;
  --red-bg: #f0e6e7;
  --funnel-2: #646b77;
  --funnel-3: #8c939f;
  --grid: #e0e1e7;
  --prior: #a1a7b0;
  --shadow: 0 18px 64px #252a3b22;
  --wave-back: #e3e5ed;
  --wave-strong: #c7cdd8;
  --wave-mid: #c4c9d4;
  --wave-fade: #d8dce6;
  --wave-edge: #fff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.portal-entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.crm-tabs {
  justify-content: flex-start;
  margin-bottom: 14px;
}
.crm-note {
  margin: 10px 18px 16px;
  color: var(--muted);
  font-size: .875rem;
}
.crm-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.crm-metrics > div {
  padding: 15px;
  margin: 0;
}
.crm-metrics dt {
  color: var(--muted);
  font-size: .81rem;
}
.crm-metrics dd {
  margin: 4px 0 0;
  font-size: 1.4rem;
  font-weight: 690;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.crm-chart {
  display: flex;
  gap: 2px;
  align-items: stretch;
  height: 140px;
  margin: 14px 20px 22px;
  border-bottom: 1px solid var(--grid);
}
.crm-chart > div {
  min-width: 0;
  display: flex;
  align-items: end;
  flex: 1;
}
.crm-chart i {
  display: block;
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.crm-pipeline-filters {
  align-items: flex-end;
}
.crm-pipeline-filters > label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: .82rem;
  color: var(--muted);
}
.crm-pipeline-filters input {
  min-height: 38px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--small-radius);
  padding: 5px 9px;
}
.crm-board {
  display: flex;
  gap: 14px;
  padding: 8px 16px 16px;
  overflow-x: auto;
}
.crm-stage {
  flex: 0 0 min(260px, 83%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.crm-stage h3,
.crm-stage li {
  padding: 11px 12px;
}
.crm-stage h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .9rem;
}
.crm-stage ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.crm-stage li {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.portal-entry-panel {
  width: min(100%, 420px);
  padding: 28px;
}
.portal-entry-panel h1 {
  margin: 20px 0 0;
}
.workspace-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.workspace-loading h1 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}
.workspace-spinner {
  flex: none;
  width: 23px;
  height: 23px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .workspace-spinner {
    animation: workspace-spin 850ms linear infinite;
  }
}
@keyframes workspace-spin {
  to {
    transform: rotate(1turn);
  }
}
.portal-entry-panel p:empty {
  display: none;
}
.portal-entry-panel form {
  margin: 18px 0 12px;
}
.portal-entry-panel > .button + .button,
.sidebar-footer > .button + .button {
  margin-top: 8px;
}
.auth-help {
  color: var(--muted);
  margin-top: -7px;
}
.auth-toggle {
  justify-self: start;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  scrollbar-color: var(--border-strong) var(--bg);
  accent-color: var(--accent);
}
::selection {
  background: var(--active);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  transition:
    background var(--speed),
    border-color var(--speed),
    color var(--speed);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
small {
  font-size: 0.8125rem;
  color: var(--muted);
}
svg {
  flex: none;
  vertical-align: middle;
}
.boot {
  display: grid;
  place-items: center;
  height: 100vh;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px;
  background: var(--surface);
}
.skip-link:focus {
  transform: none;
}
.layout {
  min-height: 100vh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 23px 18px 34px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  margin: 0 0 26px;
  width: max-content;
  font-size: 1.14rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.sidebar .brand {
  margin-left: 14px;
}
:root[data-theme="dark"] .brand img {
  filter: invert(1);
}
.brand small {
  display: block;
  margin-top: 7px;
  font-size: 0.57rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.org-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px 11px;
  background: transparent;
  cursor: pointer;
}
.org-switch:hover {
  background: var(--hover);
}
.org-switch:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.org-switch select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.org-avatar,
.account-avatar,
.person {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--raised);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
}
.org-caption,
.account > span:last-child {
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.org-caption strong,
.account strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  font-weight: 650;
}
.org-caption small,
.account small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
}
.org-switch > svg {
  color: var(--quiet);
}
.nav-group {
  margin-top: 27px;
}
.nav-group + .nav-group {
  margin-top: 36px;
}
.nav-label {
  padding: 0 9px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.23em;
}
.nav-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 18px;
  margin: 1px 0;
  padding: 8px 15px;
  border-radius: 13px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 530;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--hover);
  color: var(--text);
}
.nav-link.active {
  background: var(--active);
  color: var(--text);
  font-weight: 650;
}
.nav-link small {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--raised);
  font-size: 0.71rem;
}
.sidebar-footer {
  position: relative;
  margin-top: auto;
  padding: 28px 4px 0;
}
.sidebar-footer > .button {
  display: flex;
  width: max-content;
  background: transparent;
}
.sidebar-footer > .button:hover {
  background: var(--hover);
}
.sidebar-footer .theme-button {
  position: absolute;
  right: 0;
  bottom: 0;
  border-color: transparent;
  background: transparent;
}
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 10px 13px;
  border-bottom: 1px solid var(--border);
}
.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: 6px;
}
.demo-note strong,
.demo-note small {
  display: block;
  font-size: 0.75rem;
}
.demo-note small {
  font-size: 0.69rem;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 8px 3px;
}
.account-avatar {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.workspace {
  position: relative;
  isolation: isolate;
  margin-left: var(--sidebar-width);
  min-width: 0;
}
.workspace-backdrop {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  width: 100%;
  height: 335px;
  opacity: 0.52;
  mask-image: linear-gradient(#000 0 57%, transparent 100%);
}
.workspace-overview .workspace-backdrop {
  opacity: 1;
}
.topbar {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 max(22px, calc(var(--gutter) - 14px)) 0 var(--gutter);
  background: transparent;
}
.breadcrumbs,
.top-actions,
.hero-meta,
.section-label,
.kpi-bottom,
.chart-legend {
  display: flex;
  align-items: center;
}
.breadcrumbs {
  gap: 10px;
  font-size: 0.875rem;
  min-width: 0;
}
.breadcrumb-divider {
  color: var(--quiet);
}
.breadcrumbs strong {
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-actions {
  gap: 9px;
  flex: none;
}
.toolbar-org {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-width: 0;
}
.toolbar-org select {
  appearance: none;
  min-width: 0;
  width: 100%;
  max-width: 160px;
  text-overflow: ellipsis;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 6px 23px 6px 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
}
.toolbar-org select option {
  background: var(--surface);
  color: var(--text);
}
.toolbar-org svg {
  pointer-events: none;
  position: absolute;
  right: 3px;
}
.top-actions .toolbar-icon {
  position: relative;
  border-color: transparent;
  background: transparent;
  color: var(--text);
}
.top-actions .toolbar-icon:hover,
.toolbar-account:hover {
  background: var(--hover);
}
.notification-dot {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  outline: 2px solid var(--bg);
}
.account-avatar.toolbar-account {
  padding: 0;
}
.button,
.icon-button,
.select-shell,
.search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--small-radius);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 570;
  white-space: nowrap;
}
.button:hover:not(:disabled),
.icon-button:hover,
.select-shell:hover {
  background: var(--hover);
  border-color: var(--prior);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.button.primary:hover {
  background: color-mix(in srgb, var(--accent), var(--text) 14%);
  border-color: var(--accent);
}
.button.small {
  font-size: 0.8125rem;
  min-height: 34px;
  padding: 5px 10px;
}
.icon-button {
  padding: 0;
  width: 38px;
  color: var(--muted);
}
.info-button {
  display: grid;
  border: 0;
  background: none;
  color: var(--quiet);
  padding: 3px;
  border-radius: 4px;
}
.info-button:hover {
  color: var(--accent);
}
.select-shell {
  position: relative;
  padding: 0;
  gap: 0;
}
.select-shell > svg {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: var(--muted);
  right: 9px;
}
.select-shell > svg:first-child:not(:last-child) {
  left: 10px;
  right: auto;
}
.select-shell select {
  appearance: none;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  padding: 6px 30px 6px 11px;
  cursor: pointer;
  font-weight: inherit;
  font-size: inherit;
  text-overflow: ellipsis;
}
.select-shell select option,
.org-switch select option {
  background: var(--surface);
  color: var(--text);
}
.select-shell > svg:first-child + select {
  padding-left: 34px;
}
.menu-button,
.mobile-scrim {
  display: none;
}
.main {
  max-width: 85vw;
  margin: auto;
  padding: 24px max(22px, calc(var(--gutter) - 12px)) 0 var(--gutter);
}
.main:focus {
  outline: none;
}
.hero {
  padding: 0 0 0 7px;
  margin-bottom: 15px;
}
.hero-overline {
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 680;
}
.hero h1,
.page-heading h1 {
  margin: 0;
  font-weight: 740;
  letter-spacing: -0.04em;
  font-size: 2.65rem;
  line-height: 1.12;
  text-wrap: balance;
}
.hero p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 68ch;
  margin-top: 2px;
}
.hero-meta {
  gap: 12px 22px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.website-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  color: var(--text);
  background: var(--panel-surface);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.hero-meta .website-status {
  color: var(--text);
  background: var(--raised);
  border-color: transparent;
}
.hero-meta .website-status.amber {
  color: var(--amber);
  background: var(--amber-bg);
}
.overview-period {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--quiet);
  font-size: 0.75rem;
}
.section-label {
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 13px;
}
.section-label h2 {
  font-size: 1.13rem;
  letter-spacing: -0.028em;
  font-weight: 690;
}
.section-label p,
.panel-heading p,
.page-heading p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 3px;
}
.main-footer > span > span {
  margin: 0 4px;
  color: var(--quiet);
}
.kpi-grid,
.dashboard-grid,
.card-grid,
.two-col {
  display: grid;
  gap: 17px;
  margin-bottom: 16px;
}
.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi,
.panel,
.full-insight {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-surface);
}
.kpi {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  column-gap: 23px;
  min-height: 111px;
  padding: 10px 15px 13px;
}
.tile-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--text);
  background: var(--raised);
}
.kpi > .tile-icon {
  width: 38px;
  height: 38px;
}
.kpi-content {
  padding-top: 2px;
  min-width: 0;
}
.kpi > .info-button {
  position: absolute;
  top: 10px;
  right: 9px;
}
.kpi-label {
  padding-right: 19px;
  font-size: 0.83rem;
  color: var(--text);
  font-weight: 640;
}
.kpi-value {
  font-size: 1.9rem;
  letter-spacing: -0.045em;
  font-weight: 740;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin: 3px 0 5px;
}
.kpi-bottom {
  position: relative;
  gap: 7px;
  white-space: nowrap;
}
.delta {
  background: var(--green-bg);
  color: var(--green);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.69rem;
  font-weight: 620;
  position: relative;
  z-index: 1;
}
.delta.negative {
  color: var(--red);
  background: var(--red-bg);
}
.delta.neutral {
  color: var(--quiet);
  background: var(--raised);
}
.kpi-caption {
  color: var(--quiet);
  font-size: 0.68rem;
}
.sparkline {
  position: absolute;
  bottom: 20px;
  right: 16px;
  width: clamp(25px, 5vw, 74px);
  height: 28px;
  color: var(--accent);
  opacity: 0.83;
  overflow: visible;
  pointer-events: none;
}
.dashboard-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}
.overview-details {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel {
  overflow: hidden;
  margin-bottom: 16px;
}
.dashboard-grid > .panel,
.two-col > .panel,
.card-grid > .panel {
  margin-bottom: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 21px 11px;
}
.panel-heading-label {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}
.panel-symbol {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
}
.panel-heading h2 {
  font-size: 1.075rem;
  letter-spacing: -0.032em;
  line-height: 1.3;
  font-weight: 720;
}
.panel-heading p {
  font-size: 0.81rem;
}
.performance {
  padding-bottom: 6px;
}
.chart-select {
  width: 132px;
  flex: none;
}
.chart-legend {
  gap: 22px;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 1px 20px 10px 71px;
}
.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  height: 3px;
  width: 15px;
  border-radius: 3px;
  background: var(--accent);
}
.chart-legend span:nth-child(2) i {
  background: var(--prior);
}
.chart {
  position: relative;
  margin: 0 27px 0 20px;
  border-radius: 6px;
}
.trend-chart {
  display: block;
  width: 100%;
  height: 175px;
  overflow: visible;
}
.trend-chart text {
  fill: var(--quiet);
  font-family: var(--sans);
  font-size: 11px;
}
.chart-gridline {
  stroke: var(--grid);
  stroke-width: 1;
}
.current-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.prior-line {
  fill: none;
  stroke: var(--prior);
  stroke-width: 1.5;
}
.chart-marker path {
  stroke: var(--prior);
  stroke-dasharray: 3 3;
}
.chart-marker circle {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart-tooltip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  display: grid;
  min-width: 130px;
  padding: 8px 11px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
}
.chart-tooltip span {
  font-size: 0.75rem;
  color: var(--muted);
}
.funnel,
.padded-bars {
  display: grid;
  gap: 20px;
  padding: 8px 19px 18px;
}
.journey .panel-heading {
  padding-inline: 29px;
}
.funnel {
  gap: 9px;
  padding: 4px 33px 11px;
}
.bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.82rem;
  color: var(--text);
}
.bar-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 620;
  white-space: nowrap;
}
.bar {
  height: 8px;
  background: var(--raised);
  border-radius: 4px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.conversion-note {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 3px 29px 17px;
  padding: 8px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.conversion-note .tile-icon {
  width: 39px;
  height: 39px;
}
.conversion-note strong,
.conversion-note span:not(.tile-icon) {
  display: block;
  line-height: 1.3;
}
.conversion-note strong {
  font-size: 1.2rem;
  font-weight: 740;
  letter-spacing: -0.04em;
}
.conversion-note span:not(.tile-icon) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}
.panel-foot {
  margin: 0 19px 14px;
  font-size: 0.77rem;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 0.71rem;
  font-weight: 620;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--raised);
  color: var(--muted);
  padding: 4px 10px;
}
.green {
  background: var(--green-bg);
  color: var(--green);
}
.blue {
  background: var(--blue-bg);
  color: var(--blue);
}
.amber {
  background: var(--amber-bg);
  color: var(--amber);
}
.red {
  background: var(--red-bg);
  color: var(--red);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.79rem;
  font-weight: 650;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.recent-list,
.activity {
  padding: 0 19px 10px;
}
.recent-item,
.request-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  border-radius: 0;
}
.recent-item:hover,
.request-row:hover {
  background: var(--hover);
}
.recent-item time,
.activity time {
  color: var(--quiet);
  font-size: 0.75rem;
  white-space: nowrap;
}
.recent-text,
.request-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.recent-text strong,
.request-row strong {
  display: block;
  font-weight: 630;
  font-size: 0.85rem;
}
.recent-text small,
.request-row small,
.activity small {
  display: block;
  font-size: 0.78rem;
}
.person {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--muted);
}
.overview-details .panel-heading {
  padding-bottom: 8px;
}
.overview-details .recent-list {
  padding-inline: 22px;
}
.overview-details .recent-item {
  padding-block: 5px;
  gap: 11px;
}
.overview-details .recent-text strong {
  overflow-wrap: anywhere;
  line-height: 1.28;
}
.overview-details .recent-item time {
  min-width: 48px;
  text-align: right;
}
.overview-details .recent-item .badge {
  background: var(--raised);
  color: var(--text);
}
.overview-details .action-panel .empty {
  padding: 18px 15px 24px;
  gap: 5px;
}
.overview-details .action-panel .empty > .tile-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
}
.overview-details .action-panel .empty h3 {
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}
.insight {
  display: flex;
  gap: 11px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.insight-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
}
.insight h3,
.project h3,
.offering h3,
.integration h3,
.plan h3 {
  font-size: 0.95rem;
  font-weight: 675;
  letter-spacing: -0.018em;
}
.insight h3 {
  margin: 6px 0 3px;
}
.insight p,
.plan p {
  font-size: 0.83rem;
  color: var(--muted);
}
.full-insight {
  padding: 20px;
  gap: 13px;
}
.full-insight h3 {
  font-size: 1.08rem;
  margin: 8px 0 5px;
}
.full-insight p {
  margin-bottom: 9px;
  font-size: 0.92rem;
}
.full-insight small {
  display: block;
}
.activity {
  list-style: none;
  margin: 0;
}
.activity li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.activity li > div {
  flex: 1;
}
.activity strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 640;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding: 17px 0 22px;
  color: var(--quiet);
  font-size: 0.75rem;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  margin: 5px 0 24px;
}
.page-heading h1 {
  font-size: 2.5rem;
  margin: 0 0 7px;
}
.page-heading p {
  font-size: 0.95rem;
}
.empty {
  text-align: center;
  display: grid;
  justify-items: center;
  padding: 31px 18px 36px;
  gap: 8px;
}
.empty > .tile-icon {
  width: 40px;
  height: 40px;
}
.empty h3 {
  font-size: 1rem;
}
.empty p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.875rem;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
th,
td {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}
thead th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.81rem;
}
td {
  color: var(--muted);
}
tbody th {
  font-weight: 580;
}
tbody tr:hover {
  background: var(--surface-2);
}
.table-link {
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  padding: 0;
  border-radius: 3px;
}
.table-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.table-link small,
.table-org small {
  display: block;
  font-weight: 400;
}
.table-org {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 14px;
}
.search {
  justify-content: flex-start;
  color: var(--muted);
  padding: 0 10px;
}
.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search input {
  border: 0;
  background: none;
  width: 150px;
  min-height: 36px;
  outline: none !important;
  color: var(--text);
  font-size: 0.875rem;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.83rem;
}
.table-footer > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.source-strip,
.preview-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  margin-bottom: 16px;
}
.source-strip > svg,
.preview-banner > svg {
  color: var(--accent);
}
.source-strip > div,
.preview-banner > span {
  flex: 1;
}
.source-strip strong {
  display: block;
  font-size: 0.9rem;
}
.source-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
}
.project {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.project > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.project ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 4px;
}
.project li {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}
.project li svg {
  color: var(--accent);
  margin-right: 4px;
}
progress {
  appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  display: block;
  border-radius: 5px;
  overflow: hidden;
  background: var(--raised);
}
progress::-webkit-progress-bar {
  background: var(--raised);
}
progress::-webkit-progress-value {
  background: var(--accent);
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.request-row {
  padding: 11px 17px;
}
.plan,
.workspace-summary,
.outcome-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 19px 20px;
}
.plan > div,
.workspace-summary > div {
  flex: 1;
}
.plan > .tile-icon {
  width: 42px;
  height: 42px;
}
.workspace-summary small {
  display: block;
}
.onboarding-panel .workspace-summary small {
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .onboarding-panel .panel-heading,
  .onboarding-panel .workspace-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .onboarding-panel .workspace-summary {
    gap: 8px;
  }
}
.offering,
.integration {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
}
.offering > .tile-icon {
  margin-bottom: 3px;
}
.offering p,
.integration p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.offering .button,
.integration .button {
  margin-top: auto;
  white-space: normal;
  text-align: left;
}
.integration-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
}
.integration-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--raised);
  font-size: 0.77rem;
  font-weight: 750;
}
.integration small {
  margin-bottom: 6px;
}
.outcome-stats {
  gap: 32px;
  flex-wrap: wrap;
}
.outcome-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.outcome-stats strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.045em;
}
.settings-form {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  flex-wrap: wrap;
  padding: 7px 19px 19px;
}
.settings-form label,
.stack-form label {
  display: grid;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 570;
}
.settings-form input,
.stack-form input,
.stack-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 39px;
  color: var(--text);
}
.settings-form input[type="number"] {
  max-width: 11rem;
}
.stack-form textarea {
  resize: vertical;
  min-height: 75px;
}
dialog {
  width: min(calc(100% - 24px), 520px);
  max-height: calc(100% - 24px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #13162180;
}
dialog.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  max-height: 100dvh;
  height: 100dvh;
  border-radius: 14px 0 0 14px;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 21px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.dialog-head h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.dialog-head p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
.dialog-body {
  padding: 18px 21px 22px;
}
.stack-form {
  display: grid;
  gap: 13px;
}
.stack-form .select-shell {
  justify-self: stretch;
  color: var(--text);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}
.form-note,
.dialog-section > p {
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.dialog-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 12px;
}
.dialog-section h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.dialog-section p + p,
.dialog-section .badge + p {
  margin-top: 7px;
}
.dialog-section small {
  display: block;
  margin-top: 6px;
}
.lead-badges {
  display: flex;
  gap: 7px;
}
.lead-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.lead-fields dt {
  color: var(--muted);
  font-size: 0.78rem;
}
.lead-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}
.notes {
  padding-left: 18px;
  margin: 5px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.assistant-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.assistant-choices .button {
  white-space: normal;
}
#toast {
  pointer-events: none;
  position: fixed;
  z-index: 10;
  bottom: 20px;
  right: 20px;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--raised);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(9px);
  transition:
    opacity var(--speed),
    transform var(--speed);
}
#toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 1200px) {
  .kpi-caption {
    display: none;
  }
  .kpi {
    column-gap: 11px;
  }
  .sparkline {
    width: 34px;
    right: 10px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
  .overview-details {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}
@media (max-width: 1010px) {
  :root {
    --sidebar-width: 217px;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .card-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .panel-heading,
  .journey .panel-heading {
    padding-inline: 14px;
  }
  .panel-heading-label {
    gap: 11px;
  }
  .chart-legend {
    padding-left: 55px;
  }
  .funnel,
  .padded-bars {
    padding-inline: 14px;
  }
  .conversion-note {
    margin-inline: 14px;
  }
}
@media (max-width: 820px) {
  :root {
    --sidebar-width: 244px;
  }
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform var(--speed),
      visibility var(--speed);
  }
  .sidebar.open {
    transform: none;
    visibility: visible;
  }
  .workspace {
    margin-left: 0;
  }
  .menu-button {
    display: inline-flex;
    flex: none;
  }
  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 4;
    background: #11152199;
    border: 0;
    width: 100%;
    height: 100%;
  }
  .mobile-scrim.visible {
    display: block;
  }
  .main {
    padding-top: 19px;
  }
  .topbar {
    height: 62px;
  }
  .kpi-caption {
    display: inline;
  }
  .workspace-backdrop {
    height: 260px;
  }
  .workspace-overview .workspace-backdrop {
    opacity: 0.65;
  }
}
@media (max-width: 620px) {
  .topbar {
    padding: 0 12px;
    gap: 7px;
  }
  .main {
    padding-inline: 12px;
  }
  .breadcrumbs {
    gap: 7px;
  }
  .workspace-overview .breadcrumbs {
    flex: 1;
  }
  .breadcrumbs .toolbar-org {
    max-width: 130px;
  }
  .workspace:not(.workspace-overview) .toolbar-org {
    display: none;
  }
  .breadcrumb-divider,
  .export-button span,
  .top-actions .toolbar-search {
    display: none;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions .button,
  .top-actions .icon-button {
    width: 32px;
    min-height: 34px;
    padding: 0;
  }
  .top-actions .account-avatar {
    width: 31px;
    height: 31px;
  }
  .date-select select {
    font-size: 0.72rem;
    padding-left: 25px;
    padding-right: 19px;
  }
  .date-select > svg:first-child {
    left: 6px;
    width: 13px;
  }
  .date-select > svg:last-child {
    right: 5px;
    width: 11px;
  }
  .hero {
    padding-inline: 4px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    max-width: 38ch;
  }
  .hero-meta {
    gap: 7px 10px;
  }
  .section-label {
    margin-top: 19px;
  }
  .section-label p {
    font-size: 0.78rem;
  }
  .kpi-grid {
    gap: 9px;
  }
  .kpi {
    grid-template-columns: 27px minmax(0, 1fr);
    column-gap: 7px;
    min-height: 101px;
    padding: 9px 7px;
  }
  .kpi > .tile-icon {
    width: 27px;
    height: 29px;
  }
  .kpi > .tile-icon svg {
    width: 17px;
    height: 17px;
  }
  .kpi > .info-button {
    top: 7px;
    right: 3px;
  }
  .kpi-label {
    padding-right: 14px;
    font-size: 0.74rem;
  }
  .kpi-value {
    font-size: 1.54rem;
  }
  .kpi-caption {
    display: none;
  }
  .sparkline {
    width: 25px;
    height: 14px;
    right: 7px;
    bottom: 11px;
    opacity: 0.6;
  }
  .dashboard-grid,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .card-grid {
    gap: 9px;
  }
  .offering,
  .integration {
    padding: 12px;
  }
  .offering .button,
  .integration .button {
    font-size: 0.78rem;
    padding-inline: 8px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin: 2px 0 18px;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .page-heading p {
    font-size: 0.875rem;
  }
  .source-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .source-strip > div {
    flex-basis: calc(100% - 35px);
  }
  .preview-banner {
    flex-wrap: wrap;
  }
  .plan,
  .workspace-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .table-footer {
    padding-inline: 11px;
  }
  .table-footer > div {
    gap: 5px;
  }
  .table-footer .button {
    padding-inline: 6px;
  }
}
@media (max-width: 370px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar .breadcrumbs strong {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.org-switch .org-avatar {
  width: 35px;
  height: 35px;
}
.org-caption strong {
  font-size: 0.85rem;
}
.dialog-error {
  margin: 0 0 12px;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 0.875rem;
}
.recent-grade {
  flex: none;
}
@media (max-width: 1010px) {
  .recent-grade {
    display: none;
  }
}
@media (max-width: 620px) {
  .section-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .chart-select {
    width: 118px;
  }
  .chart-select select {
    padding-left: 29px;
    padding-right: 22px;
  }
  .chart-select > svg:first-child {
    left: 8px;
    width: 14px;
  }
  .chart-select > svg:last-child {
    right: 6px;
    width: 12px;
  }
}
