:root { --practice-max: 880px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar { display: none; }

body {
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: 76px;
  overflow-x: hidden;
}

button { color: inherit; }

.practice-hero {
  min-height: 191px;
  padding: calc(11px + env(safe-area-inset-top)) 20px 28px;
}

.practice-hero::before {
  bottom: -30px;
  height: 34px;
}

.practice-hero .dusk-disc {
  right: max(25px, calc((100vw - var(--practice-max)) / 2 + 25px));
  top: 72px;
  width: 34px;
  height: 34px;
  box-shadow: 0 0 28px rgba(242, 181, 126, .72);
}

.practice-hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--practice-max);
  margin: 0 auto;
}

.practice-hero-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.practice-wordmark {
  color: var(--sky-ink);
  font: 600 16px/1 'Source Serif 4', serif;
  letter-spacing: .115em;
  text-transform: uppercase;
  white-space: nowrap;
}

.practice-name {
  margin-top: 8px;
  color: rgba(248, 238, 231, .9);
  font-size: 11px;
}

.practice-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.practice-icon-button,
.practice-avatar-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: var(--sky-ink);
  background: rgba(255, 255, 255, .08);
}

.practice-icon-button .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 350;
}

.practice-avatar-button {
  overflow: hidden;
  padding: 2px;
  border-color: rgba(255, 255, 255, .62);
  background: #fff8f0;
  box-shadow: 0 0 0 2px rgba(231, 161, 120, .34);
}

.practice-avatar-button img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  transform: scale(.88);
}

.practice-hero-copy { margin-top: 11px; padding-right: 45px; }

.practice-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.practice-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: rgba(255, 241, 231, .92);
  background: rgba(255, 255, 255, .11);
  font-size: 9px;
  font-weight: 600;
}

.practice-badges .material-symbols-rounded { font-size: 12px; }
.practice-badges .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }

.practice-hero h1 {
  margin-top: 12px;
  color: var(--sky-ink);
  font: 600 29px/1.02 'Source Serif 4', serif;
  letter-spacing: -.025em;
}

.practice-hero-description,
.practice-hero-trust {
  color: rgba(248, 238, 231, .9);
  font-size: 10.5px;
  line-height: 1.4;
}

.practice-hero-description { margin-top: 8px; }

.practice-hero-trust {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.practice-hero-trust .material-symbols-rounded { font-size: 14px; }

.practice-tabs {
  position: relative;
  z-index: 7;
  width: calc(100% - 40px);
  max-width: 600px;
  height: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 10px auto 0;
  padding: 5px;
  border: 1px solid var(--dusk-line);
  border-radius: 999px;
  background: rgba(255, 250, 245, .98);
  box-shadow: 0 12px 28px -25px rgba(58, 45, 39, .55);
}

.practice-tabs button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: #947a6b;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}

.practice-tabs button[aria-disabled="true"] { opacity: .46; cursor: not-allowed; }
.practice-tabs .material-symbols-rounded { font-size: 16px; }
.practice-tabs .filled { font-variation-settings: 'FILL' 1, 'wght' 450; }

.practice-tabs button.active {
  color: var(--dusk-pill-text);
  background: var(--dusk-pill);
}

.practice-main {
  width: 100%;
  max-width: var(--practice-max);
  margin: 0 auto;
  padding: 14px 19px 24px;
}

[data-practice-panel][hidden] { display: none; }
#practice-panel-progress { padding-bottom: 32px; }
#practice-panel-cohorts { padding-bottom: 32px; }

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

.practice-metric-card,
.practice-glance-card,
.functional-card,
.takeaways-card {
  border: 1px solid var(--dusk-line);
  background: var(--dusk-card-2);
  box-shadow: 0 12px 30px -28px rgba(58, 45, 39, .45);
}

.practice-metric-card {
  min-width: 0;
  min-height: 90px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 6px 7px;
  padding: 11px 8px;
  border-radius: 14px;
}

.practice-metric-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.practice-metric-icon .material-symbols-rounded { font-size: 18px; }
.practice-metric-icon .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }

.practice-metric-label {
  align-self: center;
  color: var(--dusk-ink);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.practice-metric-card > strong {
  grid-column: 1 / -1;
  justify-self: center;
  font: 500 22px/1 'Source Serif 4', serif;
}

.purple .practice-metric-icon, .purple .functional-icon { color: #806ba0; background: rgba(139, 127, 163, .14); }
.green .practice-metric-icon, .green .functional-icon { color: #69845f; background: rgba(125, 144, 108, .14); }
.blue .practice-metric-icon, .blue .functional-icon { color: #5e7fa8; background: rgba(127, 148, 173, .14); }
.amber .practice-metric-icon, .amber .functional-icon { color: #e0933b; background: rgba(217, 163, 92, .15); }
.practice-metric-card.purple > strong { color: #7f69a1; }
.practice-metric-card.green > strong { color: #6e8a63; }
.practice-metric-card.blue > strong { color: #5f81aa; }
.practice-metric-card.amber > strong { color: #df9134; }

.practice-section-title {
  margin: 15px 8px 6px;
  color: var(--dusk-ink);
  font: 600 13px/1.1 'Source Serif 4', serif;
}

.practice-glance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.practice-glance-card {
  min-width: 0;
  min-height: 161px;
  padding: 10px 12px 8px;
  border-radius: 14px;
}

.practice-glance-card header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.practice-glance-card h3 {
  font: 600 11px/1.1 'Source Serif 4', serif;
}

.glance-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
}

.glance-icon.purple { background: linear-gradient(135deg, #aa92c4, #756397); }
.glance-icon.green { background: linear-gradient(135deg, #9aad8c, #63805d); }
.glance-icon .material-symbols-rounded { font-size: 17px; }

.glance-list > div {
  min-height: 27px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--dusk-line);
}

.glance-list > div:first-child { border-top: 0; }
.glance-list dt { color: var(--dusk-copy); font-size: 8.5px; }
.glance-list dd { font: 600 12px/1 'Source Serif 4', serif; }
.purple-values dd { color: #8470a4; }
.green-values dd { color: #6e8b64; }

.glance-footnote {
  margin-top: 2px;
  color: var(--dusk-muted);
  font-size: 7px;
}

.functional-title { margin-top: 14px; }

.functional-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.functional-card {
  min-width: 0;
  min-height: 98px;
  padding: 9px 8px 8px;
  border-radius: 14px;
}

.functional-card header {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.functional-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.functional-icon .material-symbols-rounded { font-size: 16px; }
.functional-icon .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }

.functional-card header span:last-child { min-width: 0; display: flex; flex-direction: column; }
.functional-card header strong { color: var(--dusk-ink); font: 500 8px/1.2 'Source Serif 4', serif; }
.functional-card header small { margin-top: 3px; font-size: 7px; font-weight: 700; }
.functional-card > b { display: block; margin-top: 9px; text-align: center; font: 500 16px/1 'Source Serif 4', serif; }
.functional-card > p { margin-top: 10px; color: var(--dusk-ink); font-size: 7.5px; text-align: center; }
.functional-card.purple small, .functional-card.purple > b { color: #806ba0; }
.functional-card.green small, .functional-card.green > b { color: #6e8a63; }
.functional-card.blue small, .functional-card.blue > b { color: #5e7fa8; }
.functional-card.amber small, .functional-card.amber > b { color: #dd8c31; }

.takeaways-card {
  margin-top: 9px;
  padding: 9px 10px 8px;
  border-radius: 14px;
}

.takeaways-card h2 { font: 600 12px/1 'Source Serif 4', serif; }

.takeaways-card ul {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  list-style: none;
}

.takeaways-card li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--dusk-copy);
  font-size: 7.8px;
  line-height: 1.25;
}

.takeaway-dot {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
}

.takeaway-dot.purple { background: #8671a4; }
.takeaway-dot.green { background: #6e8a64; }
.takeaway-dot.amber { background: #d69a65; }
.takeaway-dot .material-symbols-rounded { font-size: 9px; }
.takeaway-dot .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }

.takeaways-note {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(139, 127, 163, .17);
  border-radius: 6px;
  color: #766391;
  background: rgba(139, 127, 163, .12);
  font: 500 8px/1.25 'Source Serif 4', serif;
}

.takeaways-note .material-symbols-rounded { font-size: 15px; }

/* Progress */
.progress-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.progress-metric-card,
.client-progress-card,
.improvement-chart,
.review-queue,
.caseload-card,
.caseload-list {
  border: 1px solid var(--dusk-line);
  background: var(--dusk-card-2);
  box-shadow: 0 12px 30px -28px rgba(58, 45, 39, .45);
}

.progress-metric-card {
  min-width: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9px 10px;
  border-radius: 14px;
}

.progress-metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.progress-metric-icon .material-symbols-rounded { font-size: 20px; }
.progress-metric-icon .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }
.progress-metric-card.purple .progress-metric-icon { color: #7563a7; background: rgba(123, 104, 170, .13); }
.progress-metric-card.green .progress-metric-icon { color: #4c8d51; background: rgba(89, 144, 81, .14); }
.progress-metric-card.amber .progress-metric-icon { color: #ef6d18; background: rgba(239, 115, 31, .13); }
.progress-metric-card.blue .progress-metric-icon { color: #2f78b8; background: rgba(74, 128, 179, .14); }

.progress-metric-card h2 {
  width: 100%;
  min-height: 24px;
  margin-top: 7px;
  color: var(--dusk-ink);
  font: 500 11px/1.12 'Source Serif 4', serif;
}

.progress-metric-card strong {
  margin-top: 3px;
  font: 500 27px/1 'Source Serif 4', serif;
}

.progress-metric-card.purple strong { color: #6d5ba4; }
.progress-metric-card.green strong { color: #4d9052; }
.progress-metric-card.amber strong { color: #ec6610; }
.progress-metric-card.blue strong { color: #2f79b9; }
.progress-metric-card p { width: 100%; margin-top: 7px; color: var(--dusk-copy); font-size: 8px; line-height: 1.15; }

.client-progress-card,
.caseload-card {
  margin-top: 14px;
  padding: 8px;
  border-radius: 14px;
}

.client-progress-card > h2,
.caseload-card > h2 {
  margin: 0 0 8px 1px;
  font: 600 15px/1.1 'Source Serif 4', serif;
}

.client-progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 8px;
}

.improvement-chart,
.review-queue {
  min-width: 0;
  border-radius: 10px;
  box-shadow: none;
}

.improvement-chart { padding: 10px 9px 8px; }
.improvement-chart h3,
.review-queue h3 {
  color: var(--dusk-ink);
  font: 600 10px/1.1 'Source Serif 4', serif;
}

.improvement-chart h3 { display: flex; align-items: center; gap: 3px; }
.improvement-chart h3 .material-symbols-rounded,
.caseload-card > h2 .material-symbols-rounded { font-size: 11px; vertical-align: -1px; }

#progress-chart {
  width: 100%;
  height: 165px;
  display: block;
  margin-top: 4px;
}

.chart-legend {
  display: flex;
  justify-content: space-around;
  gap: 5px;
  margin-top: 1px;
  color: var(--dusk-ink);
  font-size: 7.5px;
}

.chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.chart-legend i { width: 11px; height: 2px; display: inline-block; border-radius: 3px; }
.chart-legend .blue i { background: #2f7fbd; }
.chart-legend .green i { background: #4c8d51; }
.chart-legend .purple i { background: #6958a2; }
.chart-legend .amber i { background: #ef6812; }

.review-queue { padding: 10px 7px 7px; }
.review-queue h3 { margin: 0 0 7px 2px; }
.review-queue ul { list-style: none; }
.review-queue li {
  min-height: 48px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-top: 1px solid var(--dusk-line);
}
.review-queue li:first-child { border-top: 0; }
.client-initial {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 11px;
}
.client-initial.amber { color: #ed6712; background: rgba(239, 115, 31, .12); }
.client-initial.purple { color: #6d5aa3; background: rgba(123, 104, 170, .12); }
.client-initial.green { color: #4c8d51; background: rgba(89, 144, 81, .13); }
.client-initial.blue { color: #2f78b8; background: rgba(74, 128, 179, .13); }
.review-queue li > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.review-queue strong { color: var(--dusk-ink); font-size: 8.5px; font-weight: 600; }
.review-queue small { margin-top: 2px; color: var(--dusk-copy); font-size: 7px; line-height: 1.25; }
.review-queue li > .material-symbols-rounded { color: #967b6d; font-size: 14px; }

.caseload-card { padding: 11px 14px 9px; }
.caseload-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}
.caseload-donut {
  position: relative;
  width: 126px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#6d5ba4 0 38%, #4d9052 38% 67%, #ed791d 67% 88%, #2f7fbd 88% 100%);
  transform: rotate(-1deg);
}
.caseload-donut::after {
  content: '';
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--dusk-card-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
}
.donut-label { position: absolute; z-index: 1; color: #fff; font-size: 9px; transform: rotate(1deg); }
.donut-label.eri { top: 25%; right: 13%; }
.donut-label.asi { right: 30%; bottom: 12%; }
.donut-label.bsi { left: 10%; bottom: 29%; }
.donut-label.csfi { top: 10%; left: 27%; }
.caseload-list { border-radius: 9px; box-shadow: none; }
.caseload-list > div {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-top: 1px solid var(--dusk-line);
}
.caseload-list > div:first-child { border-top: 0; }
.caseload-list dt { display: flex; align-items: center; gap: 10px; color: var(--dusk-ink); font-size: 8px; }
.caseload-list dt .material-symbols-rounded { font-size: 16px; }
.caseload-list dt .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }
.caseload-list .purple { color: #6d5ba4; }
.caseload-list .green { color: #4d9052; }
.caseload-list .amber { color: #ed6c15; }
.caseload-list .blue { color: #2f78b8; }
.caseload-list dd { color: var(--dusk-ink); font: 600 13px/1 'Source Serif 4', serif; }
.caseload-note { margin: 7px 0 0; color: var(--dusk-copy); font-size: 7.5px; }
.caseload-note strong { font-weight: 600; }

/* Cohorts */
.cohort-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cohort-metric-card,
.cohort-comparison-card,
.cohort-chart-card,
.cohort-insight-card,
.cohort-note {
  border: 1px solid var(--dusk-line);
  background: var(--dusk-card-2);
  box-shadow: 0 12px 30px -28px rgba(58, 45, 39, .45);
}

.cohort-metric-card {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 9px;
  border-radius: 14px;
  text-align: center;
}
.cohort-metric-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.cohort-metric-icon .material-symbols-rounded { font-size: 17px; }
.cohort-metric-icon .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }
.cohort-metric-card.purple .cohort-metric-icon { color: #7763a0; background: rgba(123, 104, 170, .13); }
.cohort-metric-card.amber .cohort-metric-icon { color: #d8873b; background: rgba(220, 144, 72, .14); }
.cohort-metric-card.red .cohort-metric-icon { color: #c9685e; background: rgba(201, 104, 94, .14); }
.cohort-metric-card.green .cohort-metric-icon { color: #62835b; background: rgba(101, 137, 92, .14); }
.cohort-metric-card h2 {
  min-height: 20px;
  display: flex;
  align-items: center;
  margin-top: 7px;
  color: var(--dusk-ink);
  font-size: 7.5px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cohort-metric-card strong { margin-top: 5px; color: var(--dusk-ink); font: 500 23px/1 'Source Serif 4', serif; }
.cohort-metric-card p { margin-top: 4px; color: var(--dusk-copy); font-size: 8px; }

.cohort-comparison-card,
.cohort-chart-card {
  margin-top: 9px;
  padding: 10px;
  border-radius: 14px;
}
.cohort-card-heading { display: flex; align-items: center; gap: 10px; }
.cohort-card-heading > span:last-child { min-width: 0; }
.cohort-card-heading h2,
.cohort-insight-card h2 { color: var(--dusk-ink); font: 600 13px/1.15 'Source Serif 4', serif; }
.cohort-card-heading p,
.cohort-insight-card p { margin-top: 3px; color: var(--dusk-copy); font-size: 8px; line-height: 1.3; }
.cohort-heading-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
}
.cohort-heading-icon.purple { color: #79659d; background: rgba(123, 104, 170, .13); }
.cohort-heading-icon.amber { color: #db8b39; background: rgba(220, 144, 72, .14); }
.cohort-heading-icon .material-symbols-rounded { font-size: 20px; }
.cohort-heading-icon .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }

.cohort-table-wrap { margin-top: 8px; overflow: hidden; border: 1px solid var(--dusk-line); border-radius: 8px; }
.cohort-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: var(--dusk-ink); font-size: 8px; }
.cohort-table th,
.cohort-table td { height: 22px; padding: 3px 5px; border-top: 1px solid var(--dusk-line); text-align: center; }
.cohort-table thead th { height: 22px; border-top: 0; font-weight: 500; }
.cohort-table thead th:first-child { width: 42%; }
.cohort-table tbody th { text-align: left; font-weight: 400; }
.cohort-table tbody th .material-symbols-rounded { width: 12px; margin-right: 6px; font-size: 12px; vertical-align: -3px; }
.cohort-table .filled { font-variation-settings: 'FILL' 1, 'wght' 400; }
.cohort-table .high, .cohort-table .purple { color: #7562a0; }
.cohort-table .moderate { color: #d77c2a; }
.cohort-table .low { color: #c85f55; }
.cohort-table .green { color: #668b60; }
.cohort-table .blue { color: #5f82aa; }

.cohort-card-heading.compact { gap: 10px; }
.cohort-chart-legend { display: flex; justify-content: center; gap: 18px; margin: -1px 0 5px 42px; color: var(--dusk-ink); font-size: 8px; }
.cohort-chart-legend span { display: flex; align-items: center; gap: 5px; }
.cohort-chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.cohort-chart-legend .high i, .cohort-bars .bar.high { background: #8a7aa4; }
.cohort-chart-legend .moderate i, .cohort-bars .bar.moderate { background: #dc914d; }
.cohort-chart-legend .low i, .cohort-bars .bar.low { background: #cb6b62; }
.cohort-bars { position: relative; height: 116px; padding: 5px 5px 17px 42px; }
.cohort-y-label { position: absolute; left: 2px; top: 45px; color: var(--dusk-ink); font-size: 7.5px; transform: rotate(-90deg); }
.cohort-grid-lines { position: absolute; inset: 4px 5px 17px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.cohort-grid-lines::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, var(--dusk-line) 0 1px, transparent 1px 25%); opacity: .85; }
.cohort-grid-lines span { position: relative; left: -3px; color: var(--dusk-copy); font-size: 7px; text-align: left; transform: translateX(-100%); }
.cohort-bar-groups { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-bottom: 1px solid #cfc1b6; }
.cohort-bar-group { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; position: relative; padding-bottom: 1px; }
.cohort-bar-group .bar { width: 14px; height: var(--bar-height); position: relative; border-radius: 2px 2px 0 0; transform-origin: bottom; }
.cohort-bar-group .bar b { position: absolute; left: 50%; top: -11px; color: var(--dusk-ink); font-size: 7px; font-weight: 500; transform: translateX(-50%); }
.cohort-bar-group > strong { position: absolute; bottom: -15px; left: 50%; color: var(--dusk-ink); font-size: 7.5px; font-weight: 500; transform: translateX(-50%); }
[data-practice-panel="cohorts"] .practice-reveal .bar { animation: cohortBarGrow .72s cubic-bezier(.22, 1, .36, 1) calc(var(--practice-delay, 0ms) + 180ms) both; }
@keyframes cohortBarGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.cohort-insight-card {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 14px;
}
.cohort-note {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  color: var(--dusk-copy);
  font-size: 8px;
  line-height: 1.25;
}
.cohort-note .material-symbols-rounded { color: #8b7a81; font-size: 18px; }

.practice-dock {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(9px + env(safe-area-inset-bottom));
  width: calc(100% - 22px);
  max-width: 618px;
  min-height: 47px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--dusk-line);
  border-radius: 999px;
  background: rgba(255, 252, 248, .96);
  box-shadow: 0 13px 34px -18px rgba(58, 45, 39, .45);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.practice-dock a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #9a7f70;
  background: transparent;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}

.practice-dock > span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #9a7f70;
  font-size: 10.5px;
  font-weight: 700;
}

.practice-dock .practice-dock-disabled { opacity: .46; cursor: not-allowed; }

.practice-dock .material-symbols-rounded { font-size: 17px; }
.practice-dock .active { color: var(--dusk-pill-text); background: var(--dusk-pill); }
.practice-dock .active .material-symbols-rounded { color: var(--dusk-pill-icon); font-variation-settings: 'FILL' 1, 'wght' 450; }

.practice-analytics-status {
  min-height: 18px;
  margin: 0 2px 10px;
  color: var(--dusk-muted);
  font-size: 9px;
  line-height: 1.35;
}

[data-suppressed="true"] { border-style: dashed; }
[data-suppressed="true"] > strong,
[data-suppressed="true"] > b { color: var(--dusk-muted) !important; }

.practice-long-value {
  max-width: 145px;
  text-align: right;
  line-height: 1.2 !important;
}

.functional-contributors {
  display: block;
  min-height: 12px;
  margin-top: 4px;
  color: var(--dusk-muted);
  font-size: 6.5px;
  line-height: 1.2;
  text-align: center;
}

.practice-analytics-boundary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
}

.practice-analytics-boundary > .material-symbols-rounded { color: #745ca7; font-size: 19px; }
.practice-analytics-boundary h2 { margin-bottom: 4px; }
.practice-analytics-boundary p { color: var(--dusk-copy); font-size: 8px; line-height: 1.45; }

.practice-analytics-caveat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 9px 4px 0;
  color: var(--dusk-muted);
  font-size: 7.5px;
  line-height: 1.45;
}

.practice-analytics-caveat .material-symbols-rounded { flex: 0 0 auto; font-size: 16px; }

@media (min-width: 701px) {
  .practice-tabs { max-width: 840px; height: 48px; }
  .practice-tabs button { font-size: 11px; }
  .practice-main { padding: 20px 20px 34px; }
  .practice-analytics-status { margin-bottom: 14px; font-size: 10.5px; }
  .practice-metric-grid, .practice-glance-grid { gap: 12px; }
  .practice-metric-card { min-height: 118px; padding: 16px 14px; border-radius: 18px; }
  .practice-metric-label { font-size: 10px; }
  .practice-metric-card > strong { font-size: 30px; }
  .practice-section-title { margin: 22px 10px 9px; font-size: 17px; }
  .practice-glance-card { min-height: 195px; padding: 16px 18px 12px; border-radius: 18px; }
  .practice-glance-card h3 { font-size: 14px; }
  .glance-list > div { min-height: 34px; }
  .glance-list dt { font-size: 10px; }
  .glance-list dd { font-size: 13px; }
  .functional-grid { gap: 10px; }
  .functional-card { min-height: 140px; padding: 14px 12px; border-radius: 18px; }
  .functional-card header { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .functional-icon { width: 32px; height: 32px; }
  .functional-card header strong { font-size: 10.5px; }
  .functional-card header small { font-size: 8px; }
  .functional-card > b { margin-top: 14px; font-size: 24px; }
  .functional-card > p { margin-top: 10px; font-size: 9.5px; }
  .functional-contributors { font-size: 8px; }
  .practice-analytics-boundary { margin-top: 14px; padding: 16px 18px; border-radius: 18px; }
  .practice-analytics-boundary h2 { font-size: 15px; }
  .practice-analytics-boundary p { font-size: 10px; }
  .practice-analytics-caveat { font-size: 9px; }
  .practice-dock { max-width: 840px; }
}

.practice-reveal { animation: practiceReveal .55s cubic-bezier(.22, 1, .36, 1) var(--practice-delay, 0ms) both; }
.practice-row-reveal { animation: practiceRowReveal .42s ease-out var(--practice-delay, 0ms) both; }

@keyframes practiceReveal {
  from { opacity: 0; transform: translateY(8px) scale(.994); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes practiceRowReveal {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

html.dark .practice-tabs,
html.dark .practice-metric-card,
html.dark .practice-glance-card,
html.dark .functional-card,
html.dark .takeaways-card,
html.dark .progress-metric-card,
html.dark .client-progress-card,
html.dark .improvement-chart,
html.dark .review-queue,
html.dark .caseload-card,
html.dark .caseload-list,
html.dark .cohort-metric-card,
html.dark .cohort-comparison-card,
html.dark .cohort-chart-card,
html.dark .cohort-insight-card,
html.dark .cohort-note,
html.dark .practice-dock {
  background: rgba(33, 30, 44, .95);
}

@media (max-width: 419px) {
  .practice-hero { min-height: 202px; padding-inline: 16px; }
  .practice-wordmark { font-size: 14px; }
  .practice-name { font-size: 10px; }
  .practice-icon-button, .practice-avatar-button { width: 32px; height: 32px; }
  .practice-hero-copy { padding-right: 30px; }
  .practice-hero h1 { font-size: 27px; }
  .practice-hero-description, .practice-hero-trust { font-size: 9.5px; }
  .practice-tabs { width: calc(100% - 22px); }
  .practice-tabs button { gap: 5px; padding-inline: 3px; font-size: 9px; }
  .practice-main { padding-inline: 12px; }
  .practice-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-metric-card { min-height: 82px; }
  .practice-glance-grid { grid-template-columns: 1fr; }
  .practice-glance-card { min-height: 150px; }
  .functional-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .functional-card { min-height: 94px; }
  .practice-dock a { gap: 4px; padding-inline: 5px; font-size: 9px; }
  .progress-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-metric-card { min-height: 126px; }
  .client-progress-grid { grid-template-columns: 1fr; }
  .caseload-grid { grid-template-columns: 1fr; gap: 12px; }
  .caseload-list { width: 100%; }
  .cohort-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cohort-metric-card { min-height: 105px; }
  .cohort-table { min-width: 420px; }
  .cohort-table-wrap { overflow-x: auto; }
  .cohort-bar-group .bar { width: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .practice-reveal, .practice-row-reveal { animation: none !important; }
  [data-practice-panel="cohorts"] .practice-reveal .bar { animation: none !important; }
}

/* Wide desktop: same 1160px shell as the rest of the practice admin app,
   so moving between its tabs does not change the column width. The grids
   here are already multi-column; they simply get more room. */
@media (min-width: 1000px) {
  :root { --practice-max: 1160px; }

  /* The dock is a phone pattern: pinned to the bottom of the viewport, it
     floats over the content and is the first thing anything else on screen
     covers. On a desktop it belongs in the page, under the UI it navigates, which is what the clinician workspace does when it swaps its hotbar
     for inline tabs above 820px. */
  /* Back on the viewport, because each admin page is its own document:
     in flow the dock landed at a different height on every tab, so the
     nav you just clicked jumped hundreds of pixels. Lifted clear of the
     preview banner rather than hidden behind it. */
  .practice-dock {
    position: fixed;
    bottom: calc(16px + var(--ed-preview-banner-h, 0px));
    left: 50%;
    transform: translateX(-50%);
    /* 618, matching the other three admin pages. Sizing it to this
       page's wider tab row instead made the dock grow and slide left
       whenever you arrived here from Home or Settings; it is shared
       furniture across four separate documents, so it has to be
       identical on all of them. */
    width: min(618px, 100%);
    max-width: 618px;
    box-shadow: 0 10px 28px -20px rgba(58,45,39,.45);
  }

  /* One hero height across the four admin pages. They are separate
     documents, so an uneven hero moves the whole page down as you
     switch tabs and the change reads as a glitch. */
  /* One hero across the four admin pages: same height and the same
     type. Home was running a 38px h1 and an 18px wordmark against
     29px and 16px everywhere else, so the banner visibly changed
     weight as you moved between tabs. */
  .practice-hero { min-height: 172px; padding-bottom: 26px; }
  .practice-hero h1 { font-size: 29px; line-height: 1.08; }
  .practice-wordmark { font-size: 16px; }

  /* The dock floats over the page, so the last card needs room to
     scroll out from under it, banner included. */
  .practice-main { padding-bottom: calc(104px + var(--ed-preview-banner-h, 0px)); }

  /* Density pass so the page fits a laptop screen. */
  .practice-main { padding-bottom: calc(72px + var(--ed-preview-banner-h, 0px)); }
}

/* Improvement report: readable explanatory copy at every viewport size. */
.practice-report-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.practice-analytics-status { font-size: 13px; }
.practice-retry-button { flex: 0 0 auto; border: 1px solid #806ba0; border-radius: 999px; background: transparent; color: #745c98; padding: 8px 14px; font: 700 13px 'Albert Sans', sans-serif; cursor: pointer; }
.practice-retry-button:hover { background: rgba(128, 107, 160, .1); }
.practice-report-asof { margin: 0 2px 16px; padding: 11px 14px; border: 1px solid #decfe4; border-radius: 12px; background: rgba(128, 107, 160, .07); color: var(--dusk-copy); font-size: 13px; line-height: 1.45; }
.practice-report-asof strong { color: var(--dusk-ink); }
.practice-metric-card { position: relative; }
.practice-kpi-info { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: var(--dusk-muted); font: 700 13px/1 'Albert Sans', sans-serif; cursor: pointer; }
.practice-kpi-info:hover, .practice-kpi-info[aria-expanded="true"] { color: #745c98; background: rgba(128, 107, 160, .1); }
.practice-kpi-info:focus-visible { outline: 2px solid #745c98; outline-offset: 2px; }
.practice-metric-card.kpi-tooltip-open { z-index: 20; }
.practice-kpi-explanation { position: absolute; z-index: 21; top: 38px; width: min(280px, calc(100vw - 32px)); padding: 13px 15px; border: 1px solid #d9bea1; border-radius: 14px; background: #f4e7d6; color: #59483f; box-shadow: 0 14px 28px -12px rgba(70, 47, 36, .32); pointer-events: none; }
.practice-metric-card:nth-child(odd) .practice-kpi-explanation { left: 0; }
.practice-metric-card:nth-child(even) .practice-kpi-explanation { right: 0; }
.practice-kpi-explanation[hidden] { display: none; }
.practice-kpi-explanation strong { display: block; color: var(--dusk-ink); font-size: 13px; }
.practice-kpi-explanation p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
html.dark .practice-kpi-explanation { border-color: #a89076; background: #493d37; color: #f5e8d7; }
html.dark .practice-kpi-explanation strong { color: #fff5e9; }
.practice-score-explainer { margin: 0 8px 12px; color: var(--dusk-copy); font-size: 13px; line-height: 1.5; }
.practice-metric-card { min-height: 120px; }
.practice-metric-label { font-size: 12px; line-height: 1.25; }
.practice-glance-card { min-height: 200px; }
.glance-list > div { min-height: 40px; }
.glance-list dt { font-size: 12px; line-height: 1.3; }
.glance-list dd { font-size: 14px; line-height: 1.3; }
.glance-list .practice-population-row { grid-template-columns: minmax(0, 1fr) minmax(0, 55%); }
.practice-population-row dd { text-align: right; overflow-wrap: anywhere; }
.functional-card { min-height: 170px; }
.functional-card header strong { font-size: 13px; }
.functional-card header small { font-size: 11px; }
.functional-card > p { font-size: 12px; }
.functional-contributors { font-size: 11px; }
.practice-analytics-boundary p, .practice-analytics-caveat { font-size: 12px; }
@media (max-width: 419px) {
  .practice-metric-card { min-height: 120px; }
  .practice-glance-card { min-height: 200px; }
  .functional-card { min-height: 170px; }
  .functional-card header { grid-template-columns: 28px minmax(0, 1fr); gap: 6px; }
  .functional-card header strong { font-size: 12px; }
  .practice-kpi-info { top: 8px; right: 8px; }
}
