#cabinet.crm-showcase {
  --crm-ink: #102e2a;
  --crm-muted: #405b53;
  --crm-accent: #07675b;
  --crm-line: #cdd6cb;
  --crm-mint: #9ab3a5;
  color: var(--crm-ink);
  background: var(--cream);
  padding-block: clamp(48px, 7vw, 96px);
}

.crm-layout {
  max-width: 1220px;
}

.crm-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  column-gap: clamp(26px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.crm-intro .kicker {
  grid-column: 1 / -1;
  margin-bottom: 15px;
}

.crm-intro h2 {
  grid-row: span 2;
  align-self: start;
  margin: 0;
  max-width: 16ch;
  font-size: clamp(33px, 4.7vw, 68px);
  line-height: 1.02;
  text-wrap: balance;
}

.crm-lead, .crm-details, .crm-note {
  margin: 0;
  line-height: 1.52;
}

.crm-lead {
  font-size: clamp(17px, 1.65vw, 22px);
}

.crm-details {
  margin-top: 12px;
  color: var(--crm-muted);
  font-size: 15px;
}

.crm-note {
  margin-top: 14px;
  color: var(--crm-muted);
  font-size: 13px;
}

.dental-underlined-nav {
  display: grid;
  border-block: 1px solid var(--nav-rule);
}

.dental-underlined-nav button {
  min-width: 0;
  min-height: 48px;
  padding: 8px 5px;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--nav-muted);
  font: inherit;
  font-size: clamp(12px, 1.25vw, 15px);
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.dental-underlined-nav button:is([aria-selected="true"], [aria-current="true"]) {
  color: var(--nav-accent);
  border-bottom-color: currentColor;
}

.dental-underlined-nav button:focus-visible { outline-offset: -4px; }

.crm-tabs {
  --nav-rule: var(--crm-line);
  --nav-muted: var(--crm-muted);
  --nav-accent: var(--crm-accent);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.crm-tabs button {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 6px 8px;
  font-size: clamp(13px, 1.15vw, 15px);
  text-align: center;
  text-wrap: balance;
}

.crm-tabs button:hover, .crm-arrows button:not(:disabled):hover {
  background: #e7eee4;
  color: var(--crm-accent);
}

.crm-showcase :focus-visible {
  outline: 2px solid var(--crm-accent);
  outline-offset: 2px;
}

.crm-showcase .crm-tabs button:focus-visible { outline-offset: -4px; }

.crm-slide[hidden] {
  display: none;
}

.crm-caption {
  padding-block: 8px clamp(14px, 2vw, 24px);
}

.crm-caption h3 {
  margin: 0;
  font-size: clamp(19px, 2.05vw, 28px);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.crm-caption p {
  margin: 5px 0 0;
  color: var(--crm-muted);
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.45;
}

.crm-window {
  padding-bottom: 8px;
  color: var(--crm-ink);
}

.crm-period {
  margin: 0;
  color: var(--crm-accent);
  font-size: 13px;
}

.crm-axis-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: center;
  isolation: isolate;
  margin-top: 8px;
}

.crm-axis-result { position: relative; z-index: 1; }
.crm-feature { margin: 0; }
.crm-feature dt {
  color: var(--crm-accent);
  font-size: clamp(14px, 1.6vw, 18px);
}

.crm-feature dd {
  margin: 7px 0 0;
  font-size: clamp(36px, 6.7vw, 88px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.058em;
  line-height: 1;
  white-space: nowrap;
}

.crm-formula {
  margin: 11px 0 0;
  color: var(--crm-muted);
  font-size: 14px;
}

.crm-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.12;
  object-fit: cover;
  margin-block: -5px;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to right, transparent, #000 24%, #000 79%, transparent),
              linear-gradient(to bottom, transparent, #000 22%, #000 76%, transparent);
  mask-composite: intersect;
}

.crm-axis h4, .crm-metric-report h4 {
  margin: 0 0 12px;
  color: var(--crm-ink);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.crm-axis-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.crm-axis-path.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crm-axis-path li {
  position: relative;
  min-width: 0;
  padding: 10px 8px 0 0;
  border-top: 1px solid var(--crm-mint);
}
.crm-axis-path li::before {
  content: "";
  position: absolute;
  inset: -4px auto auto 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crm-accent);
}
.crm-axis-path strong, .crm-axis-path span { display: block; }
.crm-axis-path strong {
  font-size: clamp(20px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.crm-axis-path span {
  margin-top: 3px;
  color: var(--crm-muted);
  font-size: 13px;
  line-height: 1.27;
}

.crm-metric-report { margin-top: clamp(21px, 3.7vw, 42px); }
.crm-metric-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3.5vw, 43px);
  padding-block: 12px 8px;
  border-block: 1px solid var(--crm-line);
}
.crm-metric-group h5 {
  margin: 0 0 4px;
  color: var(--crm-accent);
  font-size: 14px;
  font-weight: 800;
}
.crm-metric-group dl { margin: 0; }
.crm-metric-group dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding-block: 7px;
}
.crm-metric-group dl > div + div { border-top: 1px solid var(--crm-line); }
.crm-metric-group dt {
  color: var(--crm-muted);
  font-size: 13px;
  line-height: 1.35;
}
.crm-metric-group dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.crm-detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.35;
}
.crm-detail caption {
  padding-block: 18px 8px;
  color: var(--crm-accent);
  text-align: start;
  font-weight: 800;
}
.crm-detail th, .crm-detail td {
  border-bottom: 1px solid var(--crm-line);
  padding: 7px 4px;
  text-align: start;
}
.crm-detail thead th { color: var(--crm-muted); }
.crm-detail tbody th { font-weight: 500; }
.crm-detail :is(td, th):not(:first-child) { text-align: end; }
.crm-detail td { font-variant-numeric: tabular-nums; }

.crm-dialogue {
  margin: 8px 0 0;
  border-bottom: 1px solid var(--crm-line);
  font-size: 14px;
}
.crm-dialogue summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  color: var(--crm-accent);
  font-weight: 800;
}
.crm-dialogue p { margin: 0 0 10px; }
.crm-dialogue strong { display: block; color: var(--crm-muted); }
.crm-dashboard-note {
  margin: 0;
  padding-top: 12px;
  color: var(--crm-muted);
  font-size: 13px;
  line-height: 1.42;
}

.crm-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.crm-counter {
  margin: 0;
  color: var(--crm-muted);
  font-size: 13px;
}

.crm-counter [data-crm-name] {
  color: var(--crm-ink);
  font-weight: 800;
}

.crm-arrows { display: flex; flex: none; gap: 4px; }

.crm-arrows button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--crm-accent);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

@media (min-width: 1081px) {
  .crm-tabs {
    display: flex;
    justify-content: space-between;
    gap: 4px;
  }

  .crm-tabs button {
    flex: none;
    white-space: nowrap;
  }
}

@media (max-width: 1080px) {
  .crm-tabs button:nth-child(n+5) { border-top: 1px solid var(--crm-line); }
}

@media (max-width: 560px) {
  .crm-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-tabs button:nth-child(n+3) { border-top: 1px solid var(--crm-line); }
  .crm-counter { font-size: 12px; }
}

@media (max-width: 720px) {
  .crm-intro { display: block; }
  .crm-intro h2 { margin-bottom: 14px; }
  .crm-axis-intro { grid-template-columns: 1fr; margin-top: 18px; }
  .crm-art { width: min(100%, 420px); justify-self: end; aspect-ratio: 2.55; margin-block: 0 6px; }
  .crm-axis-path strong { font-size: clamp(17px, 4.4vw, 24px); }
  .crm-axis-path span { font-size: 11px; overflow-wrap: anywhere; }
  .crm-metric-layout { grid-template-columns: 1fr; padding-block: 0; }
  .crm-metric-group { padding-block: 9px; }
  .crm-metric-group + .crm-metric-group { border-top: 1px solid var(--crm-line); }
}

@media (max-width: 390px) {
  .crm-feature dd { font-size: 32px; }
  .crm-axis-path strong { font-size: 16px; }
  .crm-axis-path li { padding-right: 4px; }
  .crm-axis-path.is-funnel {
    grid-template-columns: .85fr 1.27fr .94fr .94fr;
  }
}

