/* ==========================================================================
   RedFlag — front-end UI kit
   Editable design tokens live at the top. Change colors/spacing/radii here
   and they cascade through the whole site.
   ========================================================================== */

:root {
  /* --- Brand --- */
  --brand: #dc1e3d;
  --brand-dark: #b41932;
  --brand-bg: #fce9ec;

  /* Add Data Source page only — its buttons use this blue accent instead
     of the site's red --brand, per a page-specific design request. Not
     used anywhere else. */
  --wizard-accent: #003dae;
  --wizard-accent-dark: #002d82;
  --wizard-accent-bg: #e7ecf7;

  /* --- Surfaces --- */
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-muted: #f6f7fa;
  --border: #e7e9ee;

  /* --- Text --- */
  --text-primary: #1c2230;
  --text-secondary: #6b7280;
  --text-muted: #9aa1ae;

  /* --- Status colors --- */
  --green: #12b76a;
  --green-bg: #e6f8ef;
  --red: #f04438;
  --red-bg: #fdeceb;
  --orange: #e08a2b;
  --yellow: #eab308;
  --orange-bg: #fbf0e2;
  --blue: #2f6fed;
  --blue-bg: #e9f0fe;
  --amber: #f2b705;
  --purple: #7c4fe0;
  --purple-bg: #f0ebfc;

  /* --- Layout --- */
  --topnav-h: 76px;
  --page-max-w: 1360px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(20, 24, 33, 0.04), 0 1px 8px rgba(20, 24, 33, 0.04);
  --shadow-menu: 0 16px 40px rgba(20, 24, 33, 0.14), 0 2px 8px rgba(20, 24, 33, 0.06);
  --gap: 24px;

  /* --- Type --- */
  --font-regular: "Gotham", "Gotham SSm A", "Gotham SSm B", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-medium: "Gotham Medium", "Gotham SSm Medium A", "Gotham SSm Medium B", var(--font-regular);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-regular);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* --- App shell --- */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app .page {
  flex: 1;
  width: 100%;
}

/* --- Top navigation bar --- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topnav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}

.topnav-brand:hover .brand-name {
  color: var(--brand-dark);
}

.brand-mark {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  height: 100%;
  width: auto;
  display: block;
}

/* Hudson Valley Medical Group home page: client logo lockup (mark + full
   wordmark) replaces the RedFlag mark+name — a bit taller than the default
   34px icon slot so the wordmark stays legible. */
.brand-mark--client {
  height: 44px;
}

.brand-name {
  font-weight: 800;
  font-family: var(--font-medium);
  letter-spacing: 0.03em;
  font-size: 15px;
  color: var(--brand);
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Compact search box to the left of the Menu trigger. */
.topnav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--text-muted);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.topnav-search svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.topnav-search input {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
}

.topnav-search input::placeholder {
  color: var(--text-muted);
}

.topnav-search:focus-within {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.topnav-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

/* --- Account trigger + dropdown menu --- */

.account-wrap {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
}

.account-trigger:hover,
.account-wrap.open .account-trigger {
  box-shadow: var(--shadow-card);
}

.trigger-label {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
}

.trigger-hamburger {
  display: flex;
  color: var(--text-primary);
}

.trigger-hamburger svg {
  width: 16px;
  height: 16px;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 272px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  padding: 8px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.account-wrap.open .account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-section-label {
  padding: 6px 10px 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
  text-align: left;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-medium);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.menu-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.menu-item:hover {
  background: var(--surface-muted);
}

.menu-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
}

.menu-promo:hover {
  background: var(--surface-muted);
}

.menu-promo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-promo-text strong {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
}

.menu-promo-text span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.menu-promo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-promo-icon svg {
  width: 18px;
  height: 18px;
}

.bell {
  color: var(--text-muted);
  display: flex;
}

.bell svg {
  width: 20px;
  height: 20px;
}

/* --- Dashboard hero search --- */

.hero-search-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-search-inner h1 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.28;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.hero-tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--surface-muted);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.hero-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-medium);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.hero-tab.is-active {
  background: var(--text-primary);
  color: #ffffff;
}

.hero-search-bar {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  height: 58px;
  padding: 0 20px 0 28px;
  font-size: 15px;
  font-family: var(--font-regular);
  color: var(--text-primary);
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-search-btn {
  flex-shrink: 0;
  width: 64px;
  border: none;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-search-btn:hover {
  background: var(--brand-dark);
}

.hero-search-btn svg {
  width: 20px;
  height: 20px;
}

.hero-search {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 68px 40px 60px;
  text-align: center;
}

/* Fixed compact bar: hidden above the viewport until the hero scrolls out
   of view, then slides in just under the top nav. */
.compact-search {
  position: fixed;
  top: var(--topnav-h);
  left: 0;
  right: 0;
  z-index: 35;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 40px;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

body.search-collapsed .compact-search {
  transform: translateY(0);
}

.compact-search-inner {
  max-width: 640px;
  margin: 0 auto;
}

.compact-search-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-regular);
  text-align: left;
}

.compact-search-trigger:hover {
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.compact-search-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.compact-search-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reopened search: a full panel that drops down under the compact bar
   without scrolling the page, plus a backdrop to dismiss it. */
.search-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 18, 0.45);
  z-index: 42;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

body.search-overlay-open .search-overlay-backdrop {
  opacity: 1;
  visibility: visible;
}

.search-overlay {
  position: fixed;
  top: calc(var(--topnav-h) + 64px);
  left: 0;
  right: 0;
  z-index: 43;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 40px 44px;
  text-align: center;
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

body.search-overlay-open .search-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Page content --- */

.page {
  max-width: var(--page-max-w);
  margin: 0 auto;
  padding: 28px 40px 56px;
}

.topbar {
  margin-bottom: var(--gap);
  padding: 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 800;
  font-family: var(--font-medium);
}

.topbar-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* "Current Model" row — trial placement on Rule Management only while the
   UI is reviewed; js/main.js keeps .current-model-name in sync with
   whichever investigation model was last picked on the Investigation
   Models page (shares the [data-active-model] mechanism used elsewhere). */

.current-model-row {
  margin: 0 0 var(--gap);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.current-model-label {
  color: var(--text-muted);
}

.current-model-name {
  color: var(--brand);
}

.topbar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn:hover {
  background: var(--surface-muted);
}

/* --- Stat cards --- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
}

.stat-card .badge {
  margin-bottom: 18px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-medium);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-value.green { color: var(--green); }
.stat-value.red { color: var(--red); }
.stat-value.orange { color: var(--orange); }
.stat-value.blue { color: var(--blue); }

.stat-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  min-height: 34px;
}

.stat-link {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
}

.stat-link svg {
  width: 14px;
  height: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
}

.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }

.badge-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
  background: var(--blue-bg);
  color: var(--blue);
}

/* --- Charts row --- */

.charts-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--gap);
}

.card h2 {
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 700;
  font-family: var(--font-medium);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.select {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
}

.donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--border) 0deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.donut::after {
  content: "";
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--surface);
}

.empty-note {
  font-size: 13px;
  color: var(--text-muted);
}

.legend {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-medium);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.critical { background: var(--red); }
.dot.high { background: var(--orange); }
.dot.medium { background: var(--amber); }
.dot.low { background: var(--green); }

.chart-svg {
  width: 100%;
  height: 260px;
  display: block;
}

.chart-svg .grid-line {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-svg .axis-label {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: inherit;
}

.chart-svg .trend-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-svg .trend-area {
  opacity: 1;
}

.chart-svg .trend-dot {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 2;
}

.chart-svg .trend-dot.is-last {
  fill: var(--blue);
}

.chart-svg .trend-value-label {
  fill: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
}

.select svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Risk exposure views (dashboard) --- */

.section-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.exposure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

.exposure-grid .card {
  display: flex;
  flex-direction: column;
}

.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 0 20px;
}

.donut-svg {
  width: 176px;
  height: 176px;
  display: block;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 10px));
  text-align: center;
}

.donut-center-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
  line-height: 1.1;
}

.donut-center-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.legend-stacked {
  flex-direction: column;
  gap: 10px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.legend-row .dot {
  flex-shrink: 0;
}

.legend-label {
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-value {
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  flex-shrink: 0;
}

.exposure-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}

.exposure-bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exposure-bar-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-medium);
  line-height: 1.35;
}

.exposure-bar-label .dot {
  margin-top: 5px;
}

.exposure-bar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exposure-bar-track {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  overflow: hidden;
}

.exposure-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.exposure-bar-fill.critical { background: var(--red); }
.exposure-bar-fill.high { background: var(--orange); }
.exposure-bar-fill.medium { background: var(--amber); }
.exposure-bar-fill.low { background: var(--green); }

.exposure-bar-value {
  flex-shrink: 0;
  width: 52px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  text-align: right;
}

/* --- Fraud Risk page: Regulatory Flags card (replaces the Home
   dashboard's Exposure Trend chart in the same grid slot) --- */

.reg-folder-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.reg-folder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.reg-folder .dot {
  flex-shrink: 0;
}

.reg-folder-name {
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reg-folder-count-inline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- Dashboard: search placeholder + profile card sections --- */

.section-block {
  margin-bottom: 40px;
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  font-family: var(--font-medium);
}

.section-head.compact h2 {
  font-size: 16px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px 20px;
}

/* Outer wrapper: positions the tooltip. Grid items are stacked among their
   siblings by z-index (auto = source order), so a plain z-index:auto card
   later in the grid paints its whole box — including its own image — on
   top of an earlier card's tooltip, however high the tooltip's own
   z-index is. Bumping the hovered/focused card's z-index above its
   siblings brings its tooltip along with it and fixes that. */
.profile-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

.profile-card.has-tooltip:hover,
.profile-card.has-tooltip:focus-within {
  z-index: 50;
}

/* Inner surface: everything the hover-lift affordance actually touches.
   `transform` creates a new stacking context on whatever it's applied to;
   keeping it off the outer .profile-card (and off the .profile-tooltip's
   positioned ancestor entirely — the tooltip is a sibling, not a child, of
   this element) means the tooltip's z-index isn't trapped inside a
   context that can paint behind a later, untransformed sibling card. */
.profile-card-surface {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-card-surface.is-clickable {
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-card-surface.is-clickable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* --- Profile tooltip (rich hover popover) --- */

/* Opens to the side, flush against the card's own edge (no gap) — a plain
   rounded rectangle, no pointer/arrow. */
.profile-tooltip {
  position: absolute;
  top: 98px;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-menu);
  padding: 14px 16px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

/* Flush against the right edge of the card, roughly level with the face. */
.tooltip-right .profile-tooltip {
  left: 100%;
  transform: translateY(-50%) translateX(-6px);
}

.tooltip-right.has-tooltip:hover .profile-tooltip,
.tooltip-right.has-tooltip:focus-within .profile-tooltip {
  transform: translateY(-50%) translateX(0);
}

/* Flush against the left edge of the card, roughly level with the face. */
.tooltip-left .profile-tooltip {
  right: 100%;
  transform: translateY(-50%) translateX(6px);
}

.tooltip-left.has-tooltip:hover .profile-tooltip,
.tooltip-left.has-tooltip:focus-within .profile-tooltip {
  transform: translateY(-50%) translateX(0);
}

.profile-card.has-tooltip:hover .profile-tooltip,
.profile-card.has-tooltip:focus-within .profile-tooltip {
  opacity: 1;
  visibility: visible;
}

.profile-tooltip-title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.profile-tooltip ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-tooltip li {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}


.profile-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-muted);
  margin-bottom: 10px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo.is-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-photo.is-group .group-logo {
  display: flex;
  color: rgba(255, 255, 255, 0.9);
}

.profile-photo.is-group .group-logo svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.6;
}

.profile-photo.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
}

.profile-photo.img-fallback::after {
  content: attr(data-initials);
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: #ffffff;
}

.profile-photo.is-group .group-mark {
  color: #fff;
  font-weight: 800;
  font-family: var(--font-medium);
  font-size: 16px;
  text-align: center;
  padding: 0 14px;
  letter-spacing: 0.01em;
}

.flag-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 26, 0.7);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.flag-btn:hover {
  background: rgba(15, 18, 26, 0.85);
}

.flag-btn svg {
  width: 16px;
  height: 16px;
}

/* Brighter, higher-contrast red/orange so the icon reads clearly against
   the (mostly opaque) dark circle regardless of the photo underneath. The
   flag shape itself is filled solid (not just outlined) so the color reads
   at a glance; the pole stays a plain stroke since it isn't a closed path. */
.flag-btn.flag-red svg { stroke: #ff5450; }
.flag-btn.flag-red svg path { fill: #ff5450; }
.flag-btn.flag-blue svg { stroke: #8d96a5; }
.flag-btn.flag-blue svg path { fill: #8d96a5; }

/* Yellow/orange flag badge removed per design request — medium-risk
   profiles no longer show the corner flag icon at all. */
.flag-btn.flag-orange { display: none; }

.profile-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.profile-meta {
  min-width: 0;
}

.profile-name {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-medium);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-line {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.profile-line strong {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-medium);
}

.profile-line strong.flag-score-value {
  color: var(--brand);
}

.info-btn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  padding: 0;
  margin-top: 2px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-btn svg {
  width: 18px;
  height: 18px;
  stroke: #000;
}

.info-btn:hover {
  opacity: 0.65;
}

/* --- Placeholder / empty state pages --- */

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 64px 32px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* display only when not hidden — same pattern as .wizard-panel /
   .connect-privacy elsewhere in this file — so the Saved page (the one
   place this toggles at runtime, via #savedProfilesEmpty) can actually
   hide it instead of the [hidden] attribute losing to this rule's own
   explicit display value. */
.empty-state:not([hidden]) {
  display: flex;
}

.empty-state .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.empty-state .icon-circle svg {
  width: 26px;
  height: 26px;
}

.empty-state .badge {
  margin-bottom: 14px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 360px;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--page-max-w);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-brand {
  font-weight: 700;
  font-family: var(--font-medium);
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.footer-copy {
  flex: 1;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* --- Flag Management --- */

.flag-mgmt-card {
  padding: 20px;
}

.flag-mgmt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.flag-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.flag-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.flag-search input {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
}

.flag-search input::placeholder {
  color: var(--text-muted);
}

.flag-mgmt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.flag-mgmt-actions .btn svg {
  width: 15px;
  height: 15px;
}

.flag-mgmt-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.filters-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.filters-label svg {
  width: 14px;
  height: 14px;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 10px center;
  background-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 30px 8px 12px;
  cursor: pointer;
}

.flag-table-wrap {
  overflow-x: auto;
}

.flag-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.flag-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  padding: 12px 14px;
  background: var(--surface-muted);
  white-space: nowrap;
}

.flag-table thead th:first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.flag-table thead th:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.sort-btn svg {
  width: 13px;
  height: 13px;
}

.flag-table tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.flag-table tbody tr:last-child td {
  border-bottom: none;
}

.table-link {
  color: var(--blue);
  font-weight: 600;
  font-family: var(--font-medium);
}

.table-link:hover {
  text-decoration: underline;
}

.severity-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-medium);
  letter-spacing: 0.03em;
  background: var(--surface);
  border: 1.5px solid currentColor;
}

.severity-chip.critical { color: var(--red); }
.severity-chip.high { color: var(--orange); }
.severity-chip.medium { color: var(--amber); }
.severity-chip.low { color: var(--green); }

.category-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.badge.muted { background: var(--surface-muted); color: var(--text-secondary); }

.col-date {
  color: var(--text-secondary);
  white-space: nowrap;
}

.col-actions {
  width: 40px;
  text-align: right;
}

.col-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.card-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.row-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--surface-muted);
  color: var(--text-secondary);
  cursor: pointer;
}

.row-menu-btn svg {
  width: 16px;
  height: 16px;
}

.row-menu {
  position: relative;
  display: inline-block;
}

.row-menu.open .row-menu-btn {
  background: var(--brand-bg);
  color: var(--brand);
}

.row-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-menu);
  padding: 6px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.row-menu.open .row-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.row-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-primary);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.row-menu-item:hover {
  background: var(--surface-muted);
}

.row-menu-item svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.flag-table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 14px;
}

.flag-mgmt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.page-btn, .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  cursor: pointer;
}

.page-btn svg {
  width: 15px;
  height: 15px;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.page-btn:not(:disabled):hover, .page-num:hover {
  background: var(--surface-muted);
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-num.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* --- Import Data --- */

.import-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--gap);
}

.import-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}

.import-tab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.import-tab:hover {
  background: var(--surface-muted);
}

.import-tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.import-tab.is-active:hover {
  background: var(--blue);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.import-tab.import-refresh svg.is-spinning {
  animation: spin 0.6s linear;
}

.import-panel {
  display: none;
}

.import-panel.is-active {
  display: block;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: #fff;
  margin-bottom: 18px;
}

.stat-badge.blue { background: var(--blue); }
.stat-badge.green { background: var(--green); }
.stat-badge.orange { background: var(--orange); }
.stat-badge.red { background: var(--red); }

.ingestion-activity-card {
  margin-bottom: var(--gap);
}

.ingestion-activity-card h2 {
  margin-bottom: 16px;
}

.ingestion-chart {
  height: 320px;
}

/* --- Profile detail page (Dr. Doyle) --- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.back-link-arrow {
  font-size: 14px;
  line-height: 1;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Row pairing the back-link with a direct shortcut to Saved, sitting just
   above the match-count badge on a drill-down chip's result page. */
.drilldown-result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.drilldown-result-topline .back-link {
  margin-bottom: 0;
}

/* Plain underlined blue link, no arrow/pill — sits on the right side of
   the topline. */
.saved-shortcut-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--blue);
  text-decoration: underline;
}

.saved-shortcut-link:hover {
  color: var(--blue);
}

.profile-detail {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.profile-detail .card h2 {
  margin: 0 0 18px;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

.profile-photo-card {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 0;
}

.profile-photo-lg {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

/* Detail-page hero photo has no real image on file for a connected-data
   practitioner — same broken-image-to-initials fallback used for the
   profile grid and case folders, sized for this larger card instead. */
.profile-photo-card.img-fallback {
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: #0f766e;
}

.profile-photo-card.img-fallback::after {
  content: attr(data-initials);
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: #ffffff;
}

.profile-id-name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-medium);
}

.profile-id-tag {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.profile-id-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-id-meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  gap: 12px;
}

.profile-id-meta.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.profile-id-meta.two-col > div {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.profile-id-meta.two-col .meta-value {
  text-align: left;
}

.meta-label {
  color: var(--text-secondary);
}

.meta-value {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-medium);
  text-align: right;
}

.risk-summary-card {
  display: flex;
  flex-direction: column;
}

.risk-summary-card.two-col {
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.risk-summary-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.risk-summary-card.two-col .risk-score-quote {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.risk-level-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-medium);
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--red);
}

.risk-score-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 20px;
}

.risk-score-value {
  font-size: 44px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--red);
  line-height: 1;
  margin-top: 4px;
}

.risk-score-max {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

.risk-score-quote {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-style: italic;
  line-height: 1.55;
}

.risk-score-quote--violations {
  font-style: normal;
}
.risk-violation-line {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.4;
}
.risk-violation-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.risk-violation-amt {
  color: var(--red);
  font-weight: 700;
}

.stat-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 20px;
}

.stat-mini-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 16px;
}

.stat-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-mini-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.stat-mini-value {
  font-size: 19px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.stat-mini-value.accent {
  color: var(--red);
}

.risk-indicator-list {
  display: flex;
  flex-direction: column;
}

.risk-indicator {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.risk-indicator:first-child {
  padding-top: 0;
}

.risk-indicator:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.risk-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.risk-dot.critical { background: var(--red); }
.risk-dot.high { background: var(--orange); }

.risk-indicator-title {
  font-weight: 700;
  font-family: var(--font-medium);
  font-size: 14px;
  margin-bottom: 4px;
}

.risk-indicator-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.pattern-grid > .card {
  min-width: 0;
}

.pattern-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.exposure-bar-fill.c-brand { background: var(--brand); }
.exposure-bar-fill.c-orange { background: var(--orange); }
.exposure-bar-fill.c-blue { background: var(--blue); }
.exposure-bar-fill.c-slate { background: #5b6b82; }
.exposure-bar-fill.purple { background: var(--purple); }
.exposure-bar-label .dot.purple { background: var(--purple); }

.exposure-bar-label .dot.c-brand { background: var(--brand); }
.exposure-bar-label .dot.c-orange { background: var(--orange); }
.exposure-bar-label .dot.c-blue { background: var(--blue); }
.exposure-bar-label .dot.c-slate { background: #5b6b82; }

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--text-muted);
}

.timeline-item.is-alert .timeline-dot {
  border-color: var(--red);
  background: var(--red);
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timeline-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
}

.timeline-item.is-alert .timeline-text strong {
  color: var(--red);
}

.flag-table .col-num {
  text-align: right;
}

.accent-text {
  color: var(--red);
}

.review-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.review-status-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.review-status-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.next-step-callout {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  margin-bottom: 16px;
}

.next-step-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.next-step-heading {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-medium);
  margin-bottom: 6px;
}

.next-step-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.disclaimer-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.disclaimer-note strong {
  color: var(--text-secondary);
}

/* --- Data page (Data Status: high-level, read-only view) --- */

.ds-coverage-card {
  padding: 32px;
  margin-bottom: var(--gap);
}

.ds-coverage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.ds-coverage-head h2 {
  font-size: 26px;
  margin: 0;
}

.ds-coverage-info {
  display: inline-flex;
  color: var(--text-muted);
}

.ds-coverage-info svg {
  width: 20px;
  height: 20px;
}

.ds-coverage-sub {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--text-secondary);
}

.ds-coverage-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ds-coverage-value {
  font-size: 52px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--green);
  line-height: 1;
  flex-shrink: 0;
}

.ds-coverage-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--green-bg);
  color: var(--green);
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-medium);
  flex-shrink: 0;
}

.ds-coverage-bar-wrap {
  flex: 1;
  min-width: 240px;
}

.ds-coverage-track.exposure-bar-track {
  height: 10px;
}

.ds-coverage-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Data Ingestion card: two stacked horizontal bars — records ingested
   (always 100%, full solid bar) directly above fields complete (the real,
   partial percentage) — so the two numbers read as one ingestion story
   instead of two disconnected stats. */
.ds-ingestion-bars {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ds-ingestion-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ds-ingestion-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 160px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.ds-ingestion-bar-track {
  flex: 1;
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  overflow: hidden;
}

.ds-ingestion-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.ds-ingestion-bar-value {
  width: 260px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.ds-ingestion-bar-value strong {
  color: var(--text-primary);
  font-family: var(--font-medium);
}

.ds-field-count {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.flag-table code {
  font-size: 12px;
  background: var(--surface-muted);
  border-radius: 4px;
  padding: 1px 5px;
}

/* File Information card: icon + label + value rows, real facts about the
   one connected CSV (type, size, record/field counts, last modified,
   source) — no chart, just a plain fact sheet next to Data Ingestion. */
.ds-fileinfo-card h2 {
  font-size: 20px;
  margin: 0 0 20px;
}

.ds-fileinfo-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ds-fileinfo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ds-fileinfo-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
}

.ds-fileinfo-value {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  text-align: right;
}

/* Data page left rail: fixed and flush to the viewport's left edge (not a
   card floating in the page grid), running the full height below the top
   nav. Import Data is pinned to the bottom of that fixed panel — the list
   above it takes the flexible space, so the button never scrolls away.
   Only the connected CSV is a real, working entry — the second is inert
   placeholder text so the list reads as more than one source, matching
   the requested reference layout. */
.page:has(.ds-page-grid) {
  max-width: none;
  padding: 0;
}

.ds-page-grid {
  position: relative;
  margin-left: 240px;
  display: flex;
  justify-content: center;
}

.ds-sources-sidebar {
  position: fixed;
  top: var(--topnav-h);
  left: 0;
  bottom: 0;
  width: 240px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 20px;
  overflow-y: auto;
}

.ds-sources-title {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 18px;
}

.ds-sources-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}

.ds-source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
  text-decoration: none;
  padding: 9px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-sm);
}

/* Was the red brand color — clashed with the green active-state dot now
   used on these same rows. A neutral background tint reads as "hoverable"
   without implying anything about active/inactive state. */
a.ds-source-item:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.ds-source-item.is-fictitious {
  cursor: default;
  color: var(--text-secondary);
}

/* The currently open source, highlighted so it's clear at a glance which
   file the rest of the page describes. */
.ds-source-item.is-active {
  background: var(--surface-muted);
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

/* Small solid dot marking the source that's actually active on this page —
   independent of list position, since position is now fixed by recency. */
.ds-active-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Same size as the real dot, just invisible — keeps every entry's text
   starting at the same left edge whether or not it's the active one. */
.ds-active-dot-placeholder {
  background: transparent;
}

.ds-sources-sidebar .import-data-trigger {
  flex-shrink: 0;
}

.ds-sources-main {
  width: 100%;
  min-width: 0;
  max-width: calc(var(--page-max-w) - 240px);
  padding: 28px 40px 56px;
}

@media (max-width: 900px) {
  .page:has(.ds-page-grid) { max-width: var(--page-max-w); padding: 28px 40px 56px; }
  .ds-page-grid { margin-left: 0; display: block; }
  .ds-sources-sidebar { position: static; width: auto; border-right: none; border-bottom: 1px solid var(--border); margin-bottom: var(--gap); }
  .ds-sources-main { max-width: none; padding: 0; }
}

/* Title-row info icon: hovering/focusing it reveals a rich popover with
   the ingestion summary plus the file's facts (type, size, records,
   fields, last modified, source) — there's no separate File Information
   card on the page anymore, this is the one place those facts live. */
.ds-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-title-info-wrap {
  position: relative;
  display: inline-flex;
}

.ds-title-info-wrap .ds-coverage-info {
  cursor: pointer;
}

.ds-title-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-menu);
  padding: 16px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  transform: translateY(-4px);
}

.ds-title-info-wrap:hover .ds-title-tooltip,
.ds-title-info-wrap:focus-within .ds-title-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ds-title-tooltip-lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ds-title-tooltip-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.ds-title-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 3px 0;
}

.ds-title-tooltip-row strong {
  color: var(--text-primary);
  font-family: var(--font-medium);
}

/* Missing/Partial Fields table: a group header row (spanning both columns)
   above each set of individual field rows, so "prescriber_name" and its
   siblings each get their own line without repeating the group's shared
   percentage or explanation on every row. */
.ds-field-group-row td {
  background: var(--surface-muted);
  padding-top: 10px;
  padding-bottom: 10px;
}

.ds-field-group-name {
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  font-size: 13.5px;
}

.ds-field-group-count {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
}

.ds-field-group-why {
  display: block;
  color: var(--text-secondary);
  font-size: 12.5px;
  margin-top: 2px;
}

/* --- Import Data modal: opened from the "Import Data" button at the top
   of the Data page. Stays open until the user dismisses it (backdrop
   click, Escape, or the close button) — see js/main.js. --- */

.import-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 18, 0.45);
  z-index: 52;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

body.import-modal-open .import-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.import-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 53;
  width: 480px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -48%);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

body.import-modal-open .import-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.import-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.import-modal-head h2 {
  margin: 0;
}

.import-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.import-modal-close:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.import-modal-close svg {
  width: 16px;
  height: 16px;
}

.import-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin: 8px 0 20px;
  padding: 32px 20px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.import-dropzone:hover,
.import-dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-bg);
}

.import-dropzone-icon {
  display: inline-flex;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.import-dropzone.is-dragover .import-dropzone-icon {
  color: var(--brand);
}

.import-dropzone-icon svg {
  width: 30px;
  height: 30px;
}

.import-dropzone-title {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.import-dropzone-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.import-dropzone-file {
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
}

.import-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --- Data Sources page --- */

.ds-actions-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: var(--gap);
  font-size: 13px;
  color: var(--text-secondary);
}

.ds-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--brand);
}

.ds-guide-link svg { width: 15px; height: 15px; }

.ds-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.ds-updated svg { width: 14px; height: 14px; }

.ds-updated-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.ds-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}

.ds-refresh-btn svg { width: 15px; height: 15px; }

.ds-refresh-btn:hover { background: var(--surface-muted); }

.ds-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.ds-kpi-card {
  padding: 20px;
}

.ds-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ds-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-kpi-icon svg { width: 18px; height: 18px; }

.ds-kpi-icon.blue { background: var(--blue-bg); color: var(--blue); }
.ds-kpi-icon.green { background: var(--green-bg); color: var(--green); }
.ds-kpi-icon.red { background: var(--red-bg); color: var(--red); }
.ds-kpi-icon.orange { background: var(--orange-bg); color: var(--orange); }

.ds-kpi-value {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-medium);
  line-height: 1;
  margin-bottom: 8px;
}

.ds-kpi-label {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ds-kpi-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.ds-kpi-desc.green { color: var(--green); font-weight: 600; }
.ds-kpi-desc.red { color: var(--red); font-weight: 600; }

.ds-tabs {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  margin: -22px -22px 20px;
  padding: 0 22px;
}

.ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 2px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  cursor: pointer;
}

.ds-tab-count {
  color: var(--text-muted);
  font-weight: 600;
}

.ds-tab:hover { color: var(--text-primary); }

.ds-tab.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.ds-tab.is-active .ds-tab-count { color: var(--blue); }

.ds-source-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-source-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-source-icon svg { width: 16px; height: 16px; }

.ds-source-icon.lg {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}

.ds-source-icon.lg svg { width: 20px; height: 20px; }

.ds-source-name {
  display: block;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.ds-source-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ds-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot.green { background: var(--green); }
.dot.gray { background: var(--text-muted); }
.dot.blue { background: var(--blue); }
.dot.purple { background: var(--purple); }
.dot.orange { background: var(--orange); }

.ds-cell-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.ds-cell-muted {
  color: var(--text-muted);
}

.ds-delta {
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

.ds-delta.green { color: var(--green); }
.ds-delta.red { color: var(--red); }

.ds-quality {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-quality-pct {
  font-weight: 600;
  font-family: var(--font-medium);
  width: 42px;
  flex-shrink: 0;
}

.ds-quality-track.exposure-bar-track {
  width: 70px;
}

.ds-next.is-overdue {
  color: var(--red);
  font-weight: 700;
}

.ds-row.is-selected td {
  background: var(--surface-muted);
}

/* --- Data Sources detail panel --- */

.ds-detail-panel {
  position: relative;
  margin-top: var(--gap);
}

.ds-detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ds-detail-close svg { width: 14px; height: 14px; }

.ds-detail-close:hover { background: var(--surface-muted); }

.ds-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 32px;
}

.ds-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ds-detail-name {
  font-weight: 700;
  font-family: var(--font-medium);
  margin-bottom: 4px;
}

.ds-detail-field {
  margin-bottom: 14px;
}

.ds-detail-field-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.ds-detail-field-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.ds-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
}

.ds-detail-subhead {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
  margin: 0 0 12px;
}

.ds-pipeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ds-pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ds-pipeline-check {
  color: var(--green);
  flex-shrink: 0;
}

.ds-pipeline-check svg { width: 16px; height: 16px; }

.ds-pipeline-title {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
}

.ds-pipeline-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.ds-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.ds-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ds-history-date {
  font-size: 13px;
  font-weight: 500;
}

.ds-history-records {
  font-size: 12px;
  color: var(--text-muted);
}

.ds-quality-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.ds-quality-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.ds-quality-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ds-quality-row-value {
  font-weight: 600;
  font-family: var(--font-medium);
}

/* --- Scoring page: investigation model picker --- */

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  min-height: 190px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.model-card-active-tag {
  display: none;
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 3px 10px;
  font-size: 11px;
}

.model-card.is-current .model-card-active-tag {
  display: inline-flex;
}

.model-card:hover {
  border-color: var(--text-muted);
}

.model-card.is-selected {
  border-color: var(--brand);
  background: var(--brand-bg);
  box-shadow: 0 0 0 1px var(--brand);
}

.model-card-title {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-medium);
  margin: 0 0 10px;
  color: var(--text-primary);
}

.model-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.model-card-stat {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.model-card-stat strong {
  color: var(--text-primary);
}

.model-card-request {
  align-items: center;
  text-align: center;
  justify-content: center;
  border-style: dashed;
  background: var(--surface-muted);
}

.model-card-request:hover {
  border-color: var(--text-muted);
  background: var(--surface-muted);
}

.model-card-request-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.model-card-request-icon svg {
  width: 18px;
  height: 18px;
}

.model-card-request .model-card-desc {
  text-align: center;
}

/* Switching-model status: a centered RedFlag logo over a loading bar,
   shown for ~3s whenever a user picks a different investigation model
   (js/main.js). Sits directly on the page background — no card. */

.model-switch-status {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: var(--gap);
  padding: 40px 20px;
  background: transparent;
}

.model-switch-status.is-active {
  display: flex;
}

.model-switch-logo {
  height: 56px;
  width: auto;
  display: block;
}

.model-switch-track {
  width: 260px;
  max-width: 80%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  overflow: hidden;
}

.model-switch-fill {
  width: 0%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--brand);
}

.model-switch-status.is-active .model-switch-fill {
  animation: model-switch-fill 3s linear forwards;
}

.model-switch-label {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

@keyframes model-switch-fill {
  from { width: 0%; }
  to { width: 100%; }
}


/* --- Model Management page (admin) --- */

.stats-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mm-model-desc {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 480px;
}

/* --- Model scoring settings page --- */

.card-sub {
  margin: -8px 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.col-weight {
  width: 130px;
}

.col-contribution {
  width: 220px;
}

.weight-input {
  width: 64px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  text-align: center;
}

.weight-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
}

.weight-track.exposure-bar-track {
  width: 90px;
}

.weight-total-row td {
  padding-top: 16px;
  border-top: 2px solid var(--border);
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.stat-value.is-balanced { color: var(--green); }
.stat-value.is-unbalanced { color: var(--red); }

/* --- Responsive --- */

/* --- Fraud Risk: "Investigative Leads" tiles --- */

.risk-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.risk-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.risk-tile:hover {
  border-color: var(--text-muted);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.risk-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}


.risk-tile-label {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  flex: 1;
}

.risk-tile-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
}

.risk-tile-arrow svg { width: 16px; height: 16px; }

.risk-tile-stat {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.1;
}

.risk-tile-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 18px;
  min-height: 40px;
}

.risk-tile-visual {
  margin-top: auto;
}

.tile-spark-wrap,
.tile-network-wrap {
  margin-top: 4px;
}

.tile-spark-svg,
.tile-network-svg {
  width: 100%;
  height: 56px;
  display: block;
}

.risk-tile-gauge-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tile-gauge-svg {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.risk-tile-gauge-caption {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tile-bar-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tile-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tile-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  width: 112px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-bar-track {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  overflow: hidden;
}

.tile-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.tile-bar-fill.red { background: var(--red); }
.tile-bar-fill.black { background: var(--text-primary); }
.tile-bar-fill.blue { background: var(--blue); }

.tile-bar-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}

.tile-network-svg .net-edge {
  stroke: var(--border);
  stroke-width: 1.5;
}

.tile-network-svg .net-node {
  fill: var(--surface);
  stroke: var(--red);
  stroke-width: 2;
}

.tile-network-svg .net-node.is-hub {
  fill: var(--red);
  stroke: var(--red);
}

/* --- Cases page: model-switch dropdown --- */

.case-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.case-switch-status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.case-switch-status.is-active {
  display: flex;
}

.model-switch-logo-sm {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.case-switch-track-sm {
  width: 90px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  overflow: hidden;
  flex-shrink: 0;
}

.case-switch-fill-sm {
  width: 0%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--brand);
}

.case-switch-status.is-active .case-switch-fill-sm {
  animation: model-switch-fill 3s linear forwards;
}

.case-switch-label-sm {
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .case-toolbar { flex-wrap: wrap; }
}

.model-toggle {
  position: relative;
}

.model-toggle-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
}

.model-toggle-trigger:hover,
.model-toggle.open .model-toggle-trigger {
  box-shadow: var(--shadow-card);
}

.model-toggle-trigger svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.model-toggle-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.model-toggle-value {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--brand);
  white-space: nowrap;
}

.model-toggle-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 288px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  padding: 8px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.model-toggle.open .model-toggle-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.model-toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.model-toggle-option:hover {
  background: var(--surface-muted);
}

.model-toggle-option.is-selected {
  background: var(--brand-bg);
  color: var(--brand-dark);
}

/* --- Cases page: "little folder" case cards --- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px var(--gap);
}

.case-folder {
  display: flex;
  flex-direction: column;
}

.case-folder-tab {
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  z-index: 1;
  margin-bottom: -1px;
}

.case-folder-tab.high { background: var(--red); }
.case-folder-tab.medium { background: var(--orange); }
.case-folder-tab.low { background: var(--blue); }

.case-folder-surface {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.case-folder-surface.is-clickable {
  cursor: pointer;
}

.case-folder-surface.is-clickable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-menu);
}

.case-folder-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.case-photo {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-photo.img-fallback {
  background: #0f766e;
}

.case-photo.img-fallback::after {
  content: attr(data-initials);
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: #ffffff;
}

.case-photo.is-clinic .group-logo {
  display: flex;
  color: #fff;
}

.case-photo.is-clinic .group-logo svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.case-folder-headtext {
  min-width: 0;
}

.case-folder-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.case-folder-name {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-medium);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-folder-tag {
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-folder-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
}

.case-folder-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}

.case-folder-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.case-folder-stat span {
  font-size: 11px;
  color: var(--text-muted);
}

.case-folder-stat strong {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-medium);
}

.case-folder-model {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.case-folder-model svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.case-folder-model strong {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-medium);
}

.case-folder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.case-folder-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.case-folder-status svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.case-folder-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--brand);
}

.case-folder-cta svg {
  width: 14px;
  height: 14px;
}

.case-folder-surface.is-clickable:hover .case-folder-cta {
  color: var(--brand-dark);
}

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .exposure-grid { grid-template-columns: 1fr; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .pattern-grid { grid-template-columns: 1fr; }
  .stat-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .review-status-grid { grid-template-columns: repeat(2, 1fr); }
  .ds-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .ds-detail-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-tile-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .risk-summary-card.two-col { flex-direction: column; align-items: flex-start; }
  .risk-summary-card.two-col .risk-score-quote { padding-left: 0; border-left: none; padding-top: 14px; border-top: 1px solid var(--border); }
  .profile-id-meta.two-col { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .topnav-search { display: none; }
  .topnav-divider { display: none; }
}

@media (max-width: 720px) {
  .topnav { padding: 0 16px; gap: 16px; }
  .brand-name { display: none; }
  .page { padding: 20px 16px 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; padding: 16px; }
  .footer-copy { order: 3; flex-basis: 100%; }
  .flag-search { max-width: none; }
  .import-tabs { justify-content: flex-start; }
  .ds-kpi-grid { grid-template-columns: 1fr; }
  .ds-actions-row { flex-wrap: wrap; }
  .ds-updated { margin-left: 0; }
  .model-grid { grid-template-columns: 1fr; }
  .risk-tile-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
}

/* --- Case detail page (single case investigation view) --- */

.case-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gap);
  align-items: start;
}

.case-detail-main {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

.case-detail-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

.case-detail-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.case-detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.badge.dark {
  background: var(--text-primary);
  color: #fff;
}

.badge.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.case-detail-title {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-medium);
  margin: 0 0 10px;
}

.case-detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 24px;
}

.case-panel-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.case-theory-card {
  display: flex;
  flex-direction: column;
}

.case-theory-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.case-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.case-development-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.case-development-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.case-checklist {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 18px 0 20px;
}

.case-checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.case-checklist-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.case-checklist-item.is-done .case-checklist-label {
  color: var(--text-primary);
}

.case-checklist-label svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.case-status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.case-status-dot svg {
  width: 10px;
  height: 10px;
  color: #fff;
}

.case-status-dot.is-done {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.case-status-dot.is-partial {
  border-color: var(--text-primary);
  background: linear-gradient(90deg, var(--text-primary) 50%, var(--surface) 50%);
}

.case-development-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.case-development-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-development-stat strong {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.case-development-stat span {
  font-size: 11px;
  color: var(--text-muted);
}

.btn.block {
  width: 100%;
  justify-content: center;
}

.case-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-key-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-key-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 4px;
  border: none;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
}

.case-key-link:hover {
  background: var(--surface-muted);
}

.case-key-link svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.case-key-link span {
  flex: 1;
}

.case-key-link .chevron-right-icon {
  width: 14px;
  height: 14px;
}

/* --- Cases page: Governing Regulations tile --- */

.legal-ref-list .legal-ref-hidden:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-ref-link {
  text-decoration: none;
  color: inherit;
}

.legal-ref-link > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.legal-ref-citation {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
}

.legal-ref-external {
  width: 14px !important;
  height: 14px !important;
  color: var(--text-muted) !important;
}

#legalRefToggle.is-expanded svg {
  transform: rotate(180deg);
}

.case-activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-activity-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.case-activity-row .ds-source-icon {
  width: 28px;
  height: 28px;
}

.case-activity-row .ds-source-icon svg {
  width: 14px;
  height: 14px;
}

.case-activity-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.case-activity-time {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Investigative timeline (event rows inside the Overview tab card) */

.case-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.case-timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-timeline-actions .btn svg {
  width: 15px;
  height: 15px;
}

.case-event-list {
  margin-top: 10px;
}

.case-event-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.case-event-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.case-event-date {
  width: 82px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  line-height: 1.4;
}

.case-event-row .ds-source-icon {
  margin-top: 1px;
}

.case-event-body {
  flex: 1;
  min-width: 0;
}

.case-event-title {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 3px;
}

.case-event-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 6px;
}

.case-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.case-event-meta span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.case-event-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Top findings + subject network row */

.case-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.finding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-primary);
}

.finding-row:last-of-type {
  border-bottom: none;
}

.subject-network {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 18px;
}

.subject-network-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.subject-network-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.subject-network-item.is-clickable,
.subject-network-hub.is-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.subject-network-item.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-menu);
  border-color: var(--brand);
}

.subject-network-hub.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-menu);
  border-color: var(--brand);
}

.subject-network-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.subject-network-text {
  display: block;
  min-width: 0;
  flex: 1;
}

.subject-network-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.subject-network-item .role {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.subject-network-col.left .subject-network-item::after,
.subject-network-col.right .subject-network-item::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--border);
}

.subject-network-col.left .subject-network-item::after { right: -18px; }
.subject-network-col.right .subject-network-item::before { left: -18px; }

.subject-network-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  text-align: center;
  width: 100%;
  min-width: 0;
}

.subject-network-hub strong {
  white-space: normal;
}

.subject-network-hub svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.subject-network-hub strong {
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.subject-network-hub span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.stat-mini-grid.cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
  .case-detail-layout { grid-template-columns: 1fr; }
  .case-detail-top { grid-template-columns: 1fr; }
  .case-split-row { grid-template-columns: 1fr; }
  .stat-mini-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .stat-mini-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .subject-network { grid-template-columns: 1fr; }
  .subject-network-col.left .subject-network-item::after,
  .subject-network-col.right .subject-network-item::before { display: none; }
  .case-event-row { flex-wrap: wrap; }
  .case-event-date { width: auto; }
}

/* --- Create Model page: breadcrumb + condition/weight builder --- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-medium);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb-sep {
  display: inline-flex;
  color: var(--text-muted);
}

.breadcrumb-sep svg {
  width: 13px;
  height: 13px;
}

.breadcrumb-current {
  color: var(--text-primary);
}

.builder-section {
  margin-bottom: var(--gap);
}

.builder-section-label {
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-info {
  display: inline-flex;
  color: var(--text-muted);
  cursor: help;
}

.form-info svg {
  width: 14px;
  height: 14px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
}

.form-textarea {
  resize: vertical;
  min-height: 44px;
}

.form-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 12px center;
  background-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 34px 10px 12px;
  cursor: pointer;
}

.btn.accent {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}

.btn.accent:hover {
  background: var(--brand-bg);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.condition-logic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.condition-logic-row .form-select {
  width: 100px;
  flex-shrink: 0;
}

.condition-logic-row-sm {
  margin-bottom: 0;
  font-size: 13px;
}

.condition-logic-row-sm .form-select {
  width: 84px;
  padding: 7px 28px 7px 10px;
  font-size: 12.5px;
}

.condition-tree {
  position: relative;
  padding-left: 4px;
}

.condition-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.condition-index {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.condition-tree > .condition-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 34px;
  bottom: -14px;
  width: 0;
  border-left: 2px dashed var(--border);
  z-index: 0;
}

.condition-connector {
  display: flex;
  align-items: center;
  padding: 6px 0 6px 6px;
  position: relative;
}

.condition-connector-label {
  margin-left: 34px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-medium);
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.condition-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0;
  min-width: 0;
}

.condition-row .form-select,
.condition-row .form-input {
  flex: 1;
  min-width: 140px;
}

.condition-value-pair {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 140px;
}

.condition-value-pair .form-input {
  width: 72px;
  flex: none;
}

.condition-value-pair .form-select {
  flex: 1;
  min-width: 0;
}

.condition-remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.condition-remove:hover {
  background: var(--red-bg);
  color: var(--red);
}

.condition-group {
  flex: 1;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--surface-muted);
  min-width: 0;
}

.condition-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.condition-group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.condition-group-list .condition-item {
  gap: 10px;
}

.condition-group-list .condition-index {
  width: 26px;
  height: 26px;
  font-size: 11.5px;
}

.condition-group-list .condition-connector-label {
  margin-left: 26px;
}

.builder-add-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.weight-scoring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.severity-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.severity-select-wrap {
  position: relative;
  flex: 1;
}

.severity-select-wrap .dot {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.severity-select-wrap .severity-select {
  width: 100%;
  padding-left: 28px;
}

.weight-input-suffix {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .weight-scoring-grid { grid-template-columns: 1fr; }
  .condition-row .form-select,
  .condition-row .form-input,
  .condition-value-pair { min-width: 100%; }
}

/* --- Add Data Source: 4-step wizard (Select Source / Connect / Validate /
   Activate) reached from Data Management's "Add Data Source" button. --- */

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wizard-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  font-family: var(--font-medium);
  background: var(--surface);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.wizard-step-circle svg {
  width: 13px;
  height: 13px;
}

.wizard-step-label {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-muted);
  white-space: nowrap;
}

.wizard-step.is-active .wizard-step-circle,
.wizard-step.is-done .wizard-step-circle {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.wizard-step.is-active .wizard-step-label,
.wizard-step.is-done .wizard-step-label {
  color: var(--text-primary);
}

.wizard-step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
  min-width: 24px;
  transition: background 0.2s;
}

.wizard-step.is-done + .wizard-step-connector {
  background: var(--brand);
}

.wizard-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.wizard-panel-title {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-medium);
  margin: 0 0 4px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.source-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.source-option:hover {
  border-color: var(--wizard-accent);
  background: var(--wizard-accent-bg);
}

.source-option.is-selected {
  border-color: var(--wizard-accent);
  background: var(--wizard-accent-bg);
  box-shadow: 0 0 0 3px var(--wizard-accent-bg);
}

.source-option-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.source-option-icon svg {
  width: 18px;
  height: 18px;
}

.source-option.is-selected .source-option-icon {
  background: var(--wizard-accent);
  color: #fff;
}

.source-option-text {
  flex: 1;
  min-width: 0;
}

.source-option-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 3px;
}

.source-option-desc {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.connect-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}

.connect-head-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg);
  color: var(--brand);
  flex-shrink: 0;
}

.connect-head-icon svg {
  width: 21px;
  height: 21px;
}

.connect-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0 20px;
}

.connect-privacy:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 18px;
}

.connect-privacy-icon {
  display: inline-flex;
  color: var(--text-muted);
}

.connect-privacy-icon svg {
  width: 14px;
  height: 14px;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  background: var(--surface-muted);
  transition: border-color 0.15s, background 0.15s;
}

.upload-dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-bg);
}

.upload-dropzone-icon {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.upload-dropzone-icon svg {
  width: 30px;
  height: 30px;
}

.upload-dropzone-title {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin: 0;
}

.upload-dropzone-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.upload-dropzone-filename {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}

.validate-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 20px;
}

.validate-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.validate-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.validate-check-icon svg {
  width: 13px;
  height: 13px;
}

.validate-check.is-checking {
  border-color: var(--blue);
  background: var(--blue-bg);
}

.validate-check.is-checking .validate-check-icon {
  color: var(--blue);
  animation: validate-spin 0.9s linear infinite;
}

.validate-check.is-done {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--text-primary);
}

.validate-check.is-done .validate-check-icon {
  color: var(--green);
}

@keyframes validate-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.activate-summary {
  text-align: center;
  padding: 40px 22px;
}

.activate-summary-icon {
  display: inline-flex;
  color: var(--green);
  margin-bottom: 14px;
}

.activate-summary-icon svg {
  width: 44px;
  height: 44px;
}

.activate-summary .wizard-panel-title {
  margin-bottom: 8px;
}

.activate-summary .card-sub {
  margin: 0 auto;
  max-width: 440px;
}

@media (max-width: 720px) {
  .wizard-step-label { display: none; }
  .wizard-step.is-active .wizard-step-label { display: inline; }
  .source-grid { grid-template-columns: 1fr; }
  .connect-head { flex-direction: column; }
}

/* --- Add Data Source: bespoke Connect-step layouts for PDMP and Medicare
   Claims (a compact file-picker row, a radio "connection method" card
   group, and a muted "Secure & Compliant" info box). --- */

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.connect-head-icon.is-text {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-medium);
  letter-spacing: 0.02em;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 8px 8px 12px;
  background: var(--surface);
}

.file-row-icon {
  display: inline-flex;
  color: var(--text-muted);
  flex-shrink: 0;
}

.file-row-icon svg {
  width: 16px;
  height: 16px;
}

.file-row-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row-text.has-file {
  color: var(--text-primary);
  font-weight: 600;
}

.method-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.method-option:hover {
  border-color: var(--wizard-accent);
}

.method-option.is-selected {
  border-color: var(--wizard-accent);
  background: var(--wizard-accent-bg);
}

.method-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--wizard-accent);
  flex-shrink: 0;
}

.method-option-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.method-option-icon svg {
  width: 16px;
  height: 16px;
}

.method-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method-option-title {
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.method-option-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.method-option-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.secure-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 4px;
}

.secure-box-icon {
  display: inline-flex;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 1px;
}

.secure-box-icon svg {
  width: 16px;
  height: 16px;
}

.secure-box-title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.secure-box-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.connect-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--brand);
  margin-top: 14px;
}

.connect-learn-link svg {
  width: 13px;
  height: 13px;
}

/* Add Data Source: CTA buttons use the site's standard red --brand (same
   as every other page). The page-specific --wizard-accent blue is used
   instead for the hover/active state of selectable cards — see
   .source-option and .method-option above. */

/* --- Data Status "See Details" drill-down chip catalog --- */

.drilldown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .drilldown-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Category-page real-data visuals: interstate pin map, diagnosis pie,
   medication-dosage bar chart, prescriber-overlap Venn diagram. Each sits
   in its own .chart-card below the chip grid on its category's page. --- */

.chart-card, .interstate-map-card {
  padding: 22px 24px;
}

.chart-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin: 0;
}
.chart-card-title svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

/* Interstate prescriber choropleth — real state outlines, grey by default,
   red-tinted (opacity by count) for states with multi-state prescribers.
   The exact count only appears on hover, via each path's native title. */
.interstate-map-svg {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.us-state {
  fill: #dde1e8;
  stroke: #fff;
  stroke-width: 1.2;
  transition: filter 0.12s ease;
}
.us-state:hover {
  filter: brightness(0.92);
}
.us-state-flagged {
  fill: var(--red);
  cursor: pointer;
}

/* DEA home-page lead map: big and near full-bleed under the top nav rather
   than a small card-sized chart like the interstate drilldown map above. */
.dea-hero-map-card {
  padding: 24px 28px 32px;
}
.dea-hero-map-svg {
  width: 100%;
  max-width: none;
  height: 72vh;
  max-height: 780px;
  min-height: 420px;
  display: block;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .dea-hero-map-svg { height: 50vh; min-height: 320px; }
}

/* Diagnosis breakdown pie */
.pie-chart-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.pie-chart-svg {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}
.pie-chart-svg path, .pie-chart-svg circle {
  stroke: #fff;
  stroke-width: 1.5;
}
.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 220px;
}
.pie-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pie-legend-row .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pie-legend-label { flex: 1; color: var(--text-primary); }
.pie-legend-value { font-weight: 700; font-family: var(--font-medium); color: var(--text-primary); }

/* Medication-dosage bar chart reuses .exposure-bar-* from the exposure
   widget elsewhere in the app; .exposure-bar-list just stacks the rows. */
.exposure-bar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Encounters-page top-8 combined timeline */
.timeline-chart-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.timeline-svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  flex-shrink: 0;
}
.timeline-gridline { stroke: var(--border); stroke-width: 1; }
.timeline-axis-line { stroke: var(--text-muted); stroke-width: 1; }
.timeline-axis-label {
  font-size: 10px;
  font-family: var(--font-medium);
  fill: var(--text-secondary);
}
.timeline-legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 220px;
}
.timeline-legend-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
}
.timeline-legend-row .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}
.timeline-legend-name {
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
}
.timeline-legend-bucket {
  color: var(--text-secondary);
  font-size: 11.5px;
}

/* Prescriber-overlap Venn diagram */
.venn-row {
  display: flex;
  justify-content: center;
}
.venn-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.venn-svg {
  width: 100%;
  height: auto;
  display: block;
}
.venn-circle {
  fill-opacity: 0.55;
  mix-blend-mode: multiply;
}
.venn-a { fill: var(--red); }
.venn-b { fill: var(--blue); }
.venn-c { fill: var(--yellow); }
.venn-set-label {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-medium);
  fill: var(--text-primary);
}
.venn-count {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-medium);
  fill: var(--text-primary);
  text-anchor: middle;
}
.venn-count-overlap { fill: #fff; }

/* Hover hotspot over the overlap lens — positioned by percentage over the
   600x220 venn viewBox (lens spans roughly x:275-325, y:35-185), listing
   the real overlapping prescribers by name on hover, same popover styling
   as .chip-tooltip elsewhere in the app. */
.venn-overlap-hotspot {
  position: absolute;
  left: 45.8%;
  top: 15%;
  width: 8.4%;
  height: 70%;
  cursor: pointer;
}
/* Compound selectors (.chip-tooltip.venn-tooltip) so these win over the
   generic .chip-tooltip rules further down regardless of source order. */
.chip-tooltip.venn-tooltip {
  left: 50%;
  top: auto;
  bottom: 100%;
  margin-top: 0;
  transform: translateX(-50%) translateY(-8px);
  width: 260px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
}
.venn-overlap-hotspot:hover .chip-tooltip.venn-tooltip,
.venn-overlap-hotspot:focus-within .chip-tooltip.venn-tooltip,
.venn-overlap-hotspot:focus .chip-tooltip.venn-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-12px);
}

/* Drill-down hub: 6 category buttons (Provider Activity, Prescription
   Details, Patient Behavior, Clinical Context, Additional Patterns,
   Limited by Available Data) sitting above the per-category pages — pick
   one to see just its chips. The wrap centers the fixed-width grid within
   the page's left/right margins without touching the left-aligned title
   and disclaimer text above it. */
.drilldown-category-grid-wrap {
  display: flex;
  justify-content: center;
}

.drilldown-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 250px));
  gap: 20px;
}

@media (max-width: 900px) {
  .drilldown-category-grid { grid-template-columns: repeat(2, minmax(0, 250px)); }
}

/* Medical-officer home page: the 4-category patterns grid sits directly on
   Home (see _dashboard_patterns_grid_html) and should read as one even row
   of 4, not wrap like the full drill-down hub's 3-column grid above. Scoped
   to this modifier only so data-drilldown.html's own layout is untouched. */
.drilldown-category-grid--home {
  grid-template-columns: repeat(4, minmax(0, 250px));
}

@media (max-width: 1100px) {
  .drilldown-category-grid--home { grid-template-columns: repeat(2, minmax(0, 250px)); }
}

/* Patient Care / Compliance star ratings on Hudson Valley's Recently
   Viewed cards — illustrative placeholder fill, not a live computed score
   (see _star_rating_html). Empty stars render as a light outline so the
   unfilled portion doesn't read as an error state. */
.rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
}

.rating-star {
  width: 14px;
  height: 14px;
  color: var(--border, #d8dce1);
}

.rating-star svg {
  width: 100%;
  height: 100%;
  stroke: none;
  fill: currentColor;
}

.rating-star.is-filled {
  color: #f5a623;
}

.drilldown-disclaimer {
  color: var(--text-secondary);
  font-style: italic;
}

.drilldown-category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* flex-start (not center) so the icon lands at the same fixed offset
     from the top of every card — with justify-content:center, a 2-line
     title (e.g. "Inter-State Prescribers") shifts that card's whole
     content block, and its icon, out of line with its row neighbors. */
  justify-content: flex-start;
  text-align: center;
  gap: 8px;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.drilldown-category-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

/* No background chip — keeps it light and lets the icon read as a big
   visual anchor rather than a small boxed glyph. Black rather than blue
   so it doesn't compete with the blue label directly beneath it. */
.drilldown-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3d4a5c;
  margin-bottom: 6px;
}

.drilldown-category-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.75;
}

.drilldown-category-label {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reserves 2 lines' worth of height so a 1-line title (most of them)
     and a 2-line title (e.g. "Limited by Available Data") both leave the
     count/meta lines below starting at the same fixed position. */
  min-height: 42px;
  font-size: 21px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.drilldown-category-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.drilldown-category-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.drilldown-category-num {
  color: var(--red);
  font-weight: 700;
}

/* Each category's own page title (back to a dedicated page per category —
   see data_drilldown_category_body in build.py). */
.drilldown-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin: 4px 0 6px;
}

.drilldown-category-title svg {
  width: 24px;
  height: 24px;
  color: #3d4a5c;
}

.chip-wrap {
  position: relative;
}

.drilldown-chip {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* space-between (not a fixed gap) so the match count always sits at the
     card's bottom edge, even when a neighboring card's label wraps to a
     second line and stretches the whole row taller. */
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.drilldown-chip-count {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-secondary);
}

.drilldown-chip-count-num {
  color: var(--red);
}

/* Thin blue stroke on hover/focus — no more permanent green border or
   red shadow-lift, just a subtle 1px outline so the whole grid stays
   visually calm until you're actually pointed at a chip. */
.drilldown-chip:hover,
.chip-wrap:focus-within .drilldown-chip {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.drilldown-chip-label {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-medium);
  line-height: 1.4;
  color: var(--text-primary);
}

/* Permanent green stroke (distinct from the blue hover outline above) on a
   "Limited by Available Data" chip whose underlying field is no longer at
   0% in this connected source — still not enough to compute the metric,
   but visibly different from a field with no data at all. */
.drilldown-chip.has-partial-data {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.drilldown-chip-note {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--green);
}

.chip-badge {
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-medium);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.chip-badge.ready {
  color: var(--green);
  background: var(--green-bg);
}

.chip-badge.pending {
  color: var(--text-muted);
  background: var(--surface-muted);
}

/* Popover on hover — same visual language as .profile-tooltip (home page
   card tooltips), just anchored below a chip instead of beside a card. */
.chip-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-menu);
  padding: 12px 14px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  transform: translateY(-4px);
}

.chip-wrap:hover .chip-tooltip,
.chip-wrap:focus-within .chip-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chip-tooltip-title {
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.chip-tooltip-row {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.chip-tooltip-row strong {
  color: var(--text-primary);
}

.chip-tooltip-row + .chip-tooltip-row {
  margin-top: 4px;
}

/* --- Drill-down results page: Spotify-style row list --- */

.result-list-card {
  padding: 8px;
}

.result-list {
  display: flex;
  flex-direction: column;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.result-row.is-clickable {
  cursor: pointer;
}

.result-row:hover {
  background: var(--surface-muted);
}

/* Square thumbnail, 1/4 the size of the home page's profile-photo cards
   (roughly 224px there) — initials-only by design, same dark-grey /
   white-initials treatment as every broken-photo card sitewide. */
.result-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-medium);
  letter-spacing: 0.02em;
}

.result-meta {
  flex: 1;
  min-width: 0;
}

.result-name {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Saved page only. One compact grey line — where they practice/live, their
   own top diagnosis/medication when the saving chip surfaces one, and the
   metric + value that actually put them on that list — replacing what was
   previously two separate lines, since a saved row can come from any of
   the drill-down lists and this is the "what matters" summary either way. */
.saved-profile-meta {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Thumbnail doubles as the entity-type label: initials on top, "Provider"
   / "Patient" / "Group" stacked directly beneath in the same dark square,
   rather than as separate elements in the row. */
.saved-profile-thumb {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 58px;
}

.saved-thumb-initials {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-medium);
  letter-spacing: 0.02em;
  line-height: 1;
}

.saved-thumb-type {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
}

.saved-thumb-icon {
  width: 13px;
  height: 13px;
}

/* Saved page only: patient thumbnails are circular, distinguishing them
   at a glance from the square provider/group thumbnails. */
.saved-thumb-circle {
  border-radius: 50%;
}

/* Dark-teal thumbnail fill (initials, provider/group stethoscope icon)
   is now the sitewide default set on .result-thumb / .profile-photo /
   .profile-photo-card / .case-photo fallbacks — no per-page override
   needed here any more. */

/* A little extra breathing room between saved rows plus a hairline
   separating them, rather than the tighter, borderless spacing other
   result lists use. */
.saved-profile-row {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.saved-profile-row:last-child {
  border-bottom: none;
}

/* Saved page: providers on the left, patients on the right, instead of one
   full-width list with a lot of empty space next to short rows. */
.saved-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.saved-column-title {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  margin: 4px 8px 8px;
}

.saved-column-empty {
  padding: 0 8px 8px;
}

.result-value {
  flex: none;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  padding-left: 12px;
}

/* --- Drill-down results page: column header + sortable value column --- */

.result-list-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.result-list-col-label {
  flex: 1;
  min-width: 0;
  padding-left: 70px; /* aligns under the name, past the 56px thumbnail + gap */
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.result-sort-toggle {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.12s ease;
}

.result-sort-toggle:hover {
  color: var(--text-primary);
}

.result-sort-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.result-sort-toggle[data-sort-dir="asc"] svg {
  transform: rotate(180deg);
}

/* --- Drill-down results: optional "most-prescribed medication" column
   (patient-medication-count only) and the results-list pagination bar --- */

.result-medication-label {
  flex: none;
  width: 260px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.result-medication {
  flex: none;
  width: 260px;
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

/* --- Save-to-profile control on a results row (currently Inter-State
   Prescribers only) and its "already saved" state — see js/main.js for
   the localStorage-backed toggle and the Saved page it feeds. Icon-only,
   no button box — an outline bookmark by default, filled red once saved. */
.result-save-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.12s ease;
}

.result-save-btn svg {
  width: 18px;
  height: 18px;
}

.result-save-btn:hover {
  color: var(--red);
}

.result-save-btn.is-saved {
  color: var(--red);
}

.result-save-btn.is-saved svg {
  fill: currentColor;
}

.result-pagination {
  margin: 4px 4px 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}


/* Hudson Valley Medical Group home page only: the page background is the
   blue from the centre of the client logo's wave (sampled from the logo
   file) instead of the default grey-blue. White cards keep their own
   surface; everything that sits directly on the blue is switched from the
   grey secondary text to dark text so it stays readable (>= 4.8:1). */
body.home-mo {
  --home-blue: #65959e;
  --home-ink: #0f1c2e;
  background: var(--home-blue);
}

body.home-mo .section-head h2,
body.home-mo .profile-name,
body.home-mo .profile-line,
body.home-mo .profile-line strong,
body.home-mo .current-model-label,
body.home-mo .current-model-name,
body.home-mo .site-footer .footer-brand,
body.home-mo .site-footer .footer-copy,
body.home-mo .site-footer .footer-links a {
  color: var(--home-ink);
}

body.home-mo .profile-line strong.flag-score-value {
  color: var(--home-ink);
}

body.home-mo .site-footer {
  border-top-color: rgba(15, 28, 46, 0.18);
}

/* Cards that live inside the blue page keep their normal text colours. */
body.home-mo .card .profile-line,
body.home-mo .profile-tooltip .profile-line {
  color: var(--text-secondary);
}

/* Hudson Valley home page only: top nav takes a lighter tint of the sage
   green from the logo's right-hand panel (#7e9d87, ~62% toward white). The
   logo has a transparent background, so it sits on the tint as-is. */
body.mo-site .topnav {
  background: #cbd8d0;
  border-bottom-color: rgba(15, 28, 46, 0.12);
}

/* Hudson Valley home page only: the 4 category tiles take a light,
   highlight-level tint of the page blue (#65959e, ~82% toward white); the
   white outer "Explore Prescribing Patterns" card around them is unchanged. */
body.home-mo .drilldown-category-grid--home .drilldown-category-btn {
  background: #dfeaec;
  border-color: #c3d6da;
}

body.home-mo .drilldown-category-grid--home .drilldown-category-btn:hover {
  background: #e9f1f3;
  border-color: #65959e;
  box-shadow: 0 0 0 1px #65959e;
}

/* Hudson Valley home page: the patterns section is a full-width, square-
   cornered white band under the nav (not a rounded card inside the page
   container), taller than before, with the 4 tiles a little larger. */
.patterns-band {
  background: #fff;
  border-bottom: 1px solid rgba(15, 28, 46, 0.12);
}

.patterns-band-inner {
  max-width: var(--page-max-w);
  margin: 0 auto;
  padding: 44px 40px 56px;
}

.patterns-band-title {
  margin: 0 0 28px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
}

.patterns-band .drilldown-category-grid--home {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1200px) {
  .patterns-band .drilldown-category-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .patterns-band-inner { padding: 28px 16px 36px; }
}

/* Recently viewed now sits inside the white patterns band (Hudson Valley
   home). On white, the empty rating stars need a visible grey. */
.patterns-band-recent {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.patterns-band .rating-star {
  color: #d3d8df;
}

.patterns-band .rating-star.is-filled {
  color: #f5a623;
}

/* Hudson Valley home page "Site Map": text only, deliberately not links.
   Sits on the blue page area, so text uses the same dark ink as the rest
   of what's on the blue (>= 4.8:1). */
.site-map {
  padding: 8px 0 24px;
}

.site-map-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--home-ink, #0f1c2e);
}

.site-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px 32px;
}

.site-map-group-title {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-ink, #0f1c2e);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(15, 28, 46, 0.28);
}

.site-map-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-map-list li {
  font-size: 14px;
  line-height: 1.35;
  color: var(--home-ink, #0f1c2e);
  cursor: default;
}

/* Short plain-language summary under each Hudson Valley home-page tile. */
.drilldown-category-summary {
  font-size: 14px;
  line-height: 1.5;
  color: #3a4756;
  text-align: center;
  padding: 0 4px;
}

/* Hudson Valley home page only: footer strip ("Powered by Red Flag") uses the
   darkest navy from the client logo (#172b3e, sampled from its wordmark) with
   white text. This comes after the earlier home-mo footer ink rules so it wins. */
body.mo-site .site-footer {
  background: #172b3e;
  border-top: 0;
}

body.mo-site .site-footer .footer-brand,
body.mo-site .site-footer .footer-copy,
body.mo-site .site-footer .footer-links a {
  color: #ffffff;
}

body.mo-site .site-footer .footer-copy,
body.mo-site .site-footer .footer-links a {
  opacity: 0.85;
}

/* Site Map text in the footer navy (size unchanged). */
body.home-mo .site-map-title,
body.home-mo .site-map-group-title,
body.home-mo .site-map-list li {
  color: #172b3e;
}
body.home-mo .site-map-group-title {
  border-bottom-color: rgba(23, 43, 62, 0.35);
}

/* Hudson Valley home page: map above "Explore Prescribing Patterns".
   Static image + Uber-style halo markers (flat colour dot, white ring, soft
   glow, slow expanding pulse). Marker sizes are fixed px so they read the
   same at any map width; positions are % of the image. */
/* Home-page map: sits inside the page margins (same 32px side margin as the
   top nav), rounded, full image visible (no cropping), with the Key beside it. */
.patterns-band-map {
  position: relative;
  align-self: start;
  aspect-ratio: 2000 / 998;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  background: #e9e9e9;
  box-shadow: none;
  border: 1px solid #dde3e6;
}
.patterns-band-map-stage {
  position: absolute;
  inset: 0;
}
.patterns-band-map-stage > img {
  display: block;
  width: 100%;
  height: 100%;
}
.map-halo {
  --halo: #e5322d;
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.map-halo--high     { --halo: #e5322d; }
.map-halo--moderate { --halo: #f5a623; }
.map-halo--low      { --halo: #12a150; }
.map-halo > i {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.map-halo-glow {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, color-mix(in srgb, var(--halo) 38%, transparent) 0%, color-mix(in srgb, var(--halo) 16%, transparent) 55%, transparent 72%);
}
.map-halo-ring {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--halo);
  background: color-mix(in srgb, var(--halo) 14%, transparent);
  opacity: 0;
  animation: map-halo-pulse 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.map-halo-ring--2 { animation-delay: 1.4s; }
.map-halo-dot {
  width: 14px;
  height: 14px;
  background: var(--halo);
  border: 1.5px solid #ffffff;
  box-sizing: content-box;
  width: 12px;
  height: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
@keyframes map-halo-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.25); opacity: 0.85; }
  80%  { opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-halo-ring { animation: none; opacity: 0.35; transform: translate(-50%, -50%) scale(0.8); }
}
@media (max-width: 720px) {
  .map-halo-glow, .map-halo-ring { width: 40px; height: 40px; }
}

/* Hudson Valley home page: map + Key on the white band. The Key is exactly as
   wide as the nav's Search-box-to-Menu span (220 search + 16 + 1 divider + 16
   + ~98 Menu = 351px) and shares the nav's 32px right margin, so its left edge
   lines up with the Search box and its right edge with the Menu button. */
.patterns-band-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 351px;
  gap: 40px;
  align-items: start;
  padding: 32px 32px 0;
  background: #ffffff;
}
.map-key {
  box-sizing: border-box;
  width: 351px;
  padding: 4px 0 0;
}
.map-key-title {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: #0f1c2e;
}
.map-key-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.map-key-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 14px;
  align-items: start;
}
/* Key icon: just the marker's coloured oval + its stroke (white gap, then a
   coloured outline) - no glow. */
.map-key-dot {
  --halo: #e5322d;
  box-sizing: content-box;
  display: block;
  width: 10px;
  height: 10px;
  margin: 3px 0 0 3px;
  border-radius: 50%;
  background: var(--halo);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1.5px var(--halo);
}
.map-key-dot--high     { --halo: #e5322d; }
.map-key-dot--moderate { --halo: #f5a623; }
.map-key-dot--low      { --halo: #12a150; }
.map-key-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: #0f1c2e;
  margin-bottom: 3px;
}
.map-key-desc {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #44505e;
}
.map-key-note {
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 28, 46, 0.12);
  font-size: 12px;
  line-height: 1.45;
  color: #6b7785;
}
@media (max-width: 900px) {
  .patterns-band-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 24px 0; }
  .map-key { width: auto; }
  .patterns-band-map { border-radius: 12px; }
}

/* Hudson Valley home page: Recently viewed provider tiles, a touch darker
   than the sitewide #0f766e teal. */
body.mo-site .profile-photo,
body.mo-site .profile-photo.img-fallback {
  background: #0b6259;
}

/* Recently viewed cards: name (+ info button) above the photo tile, concern
   level below it - a single solid circle in the key's colour and the label in
   regular-weight dark grey. */
.profile-body--top {
  margin-bottom: 8px;
}
.concern-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 400;
  color: #4a5360;
}
.concern-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e5322d;
}
.concern-dot--high     { background: #e5322d; }
.concern-dot--moderate { background: #f5a623; }
.concern-dot--low      { background: #12a150; }

/* Recently viewed: slightly larger doctor names; "?" tooltip button sits at the
   right end of the concern row, below the tile. */
.patterns-band-recent .profile-name {
  font-size: 16px;
}
body.mo-site .profile-body:not(.profile-body--top) {
  align-items: center;
}
body.mo-site .profile-body:not(.profile-body--top) .info-btn {
  margin-top: 0;
}

/* Recently viewed tiles carry the doctor's full name (no initials). */
body.mo-site .profile-photo.img-fallback {
  padding: 0 14px;
}
body.mo-site .profile-photo.img-fallback::after {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

/* Structured Risk indicators tooltip (Dr. Whitmore, Hudson Valley home):
   icon + header + placeholder text per indicator. */
.profile-tooltip--rich {
  width: 300px;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Shorter fixed-height card so it stays inside the window and is easy to
     move into and out of; the list inside scrolls. */
  height: 520px;
  max-height: calc(100vh - 24px);
  overflow: hidden;
}
.risk-ind-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 12px;
}
.risk-ind-actions {
  flex: none;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border, #dde6e8);
  background: var(--surface, #fff);
}
.risk-ind-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a929e;
  cursor: pointer;
}
.risk-ind-action svg { width: 18px; height: 18px; }
.risk-ind-action:hover { background: #f1f3f5; color: #5b6472; }
.profile-tooltip--rich .profile-tooltip-title {
  font-size: 15px;
  margin-bottom: 12px;
}
.profile-tooltip--rich .risk-ind-list {
  padding-left: 0;
  list-style: none;
  gap: 12px;
}
.risk-ind {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  align-items: start;
}
.risk-ind-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e6efee;
  color: #0b6259;
}
.risk-ind-icon svg {
  width: 16px;
  height: 16px;
}
.risk-ind-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.risk-ind-head {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-medium);
  color: var(--text-primary);
  line-height: 1.3;
}
.risk-ind-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* ---- Hudson Valley build: every page shares the home page's look --------
   (sage nav with the client logo and navy "Powered by Red Flag" footer are
   set above via body.mo-site; here: white page, client-teal accents.) */
body.mo-site:not(.home-mo) {
  --bg: #ffffff;
  --border: #dde6e8;
}
body.mo-site {
  --brand: #2f6c75;
  --brand-dark: #245660;
  --brand-bg: #e1edef;
}

/* Site Map entries are real links now; they keep the same size and navy. */
.site-map-list a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.site-map-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-map-list a:focus-visible {
  outline: 2px solid #172b3e;
  outline-offset: 2px;
  border-radius: 3px;
}

/* PDMP check rate in the Risk indicators tooltip: percentage in the footer navy. */
.risk-ind-text .risk-ind-rate {
  color: #172b3e;
  font-weight: 700;
  font-size: 15px;
}

/* Map key: provider count heading + dummy reporting-period selector. */
.map-key-title {
  margin-bottom: 14px;
}
.reporting-period {
  margin: 0 0 24px;
}
.reporting-period-label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #4a5360;
}
.reporting-period-select-wrap {
  position: relative;
}
.reporting-period-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 42px 11px 18px;
  font: inherit;
  font-size: 15px;
  color: #0f1c2e;
  background: #fff;
  border: 1px solid #cdd5db;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.reporting-period-select:focus-visible {
  outline: 2px solid #172b3e;
  outline-offset: 2px;
}
.reporting-period-select-wrap svg {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #4a5360;
  pointer-events: none;
}

/* Reporting period now sits where the footnote was: top rule, below the key. */
.map-key-title {
  margin-bottom: 22px;
}
.map-key-period {
  margin: 0 0 26px;
}
.map-key-period .reporting-period {
  margin: 0;
}

/* Title above the map (spans both columns, left-aligned with the map). */
.patterns-band-hero-title {
  grid-column: 1 / -1;
  margin: 0 0 -26px;
}

/* Hudson Valley home: category tiles all the same size. Drop the square
   aspect-ratio (it let text push some tiles taller), stretch every tile to the
   tallest in the row, and reserve two lines for the title so icons, titles and
   descriptions line up across tiles. */
.patterns-band .drilldown-category-grid--home {
  align-items: stretch;
}
.patterns-band .drilldown-category-grid--home .drilldown-category-btn {
  aspect-ratio: auto;
  height: 100%;
  min-height: 300px;
}
.patterns-band .drilldown-category-grid--home .drilldown-category-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
}

/* Reporting period line at the top of Sarah's Risk indicators tooltip: plain
   text (not a dropdown) saying what dates the figures cover. */
.risk-ind-period {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  margin: 0;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border, #dde6e8);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 700;
}
.risk-ind-period-label {
  font-size: 12px;
  font-weight: 400;
  color: #4a5360;
}

/* Keep a rich tooltip open while the pointer is over it (it sits flush against
   its card and is a child of the card, so hovering it keeps the card hovered). */
body.mo-site .profile-card.has-tooltip:hover .profile-tooltip,
body.mo-site .profile-card.has-tooltip:focus-within .profile-tooltip {
  pointer-events: auto;
}

/* "Copied" confirmation next to the copy / share icons. */
.risk-ind-copied {
  align-self: center;
  margin-left: 6px;
  font-size: 12px;
  color: #5b6472;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.risk-ind-copied.is-on { opacity: 1; }

/* Tooltip body takes the light blue of the category tiles (Encounters etc.); the pinned date strip on top
   and the icon bar at the bottom stay white. */
.profile-tooltip--rich .risk-ind-scroll {
  background: #172b3e;
}
.profile-tooltip--rich .risk-ind-icon {
  background: #dfeaec;
  color: #172b3e;
}
.profile-tooltip--rich .risk-ind-text {
  color: #3a4452;
}

/* Tooltip header (reporting period) and footer (copy / share) take Sarah's tile
   black, with white type and icons. */
.profile-tooltip--rich .risk-ind-period,
.profile-tooltip--rich .risk-ind-actions {
  background: #172b3e;
  border-color: #172b3e;
}
.profile-tooltip--rich .risk-ind-period,
.profile-tooltip--rich .risk-ind-period-label {
  color: #ffffff;
}
.profile-tooltip--rich .risk-ind-action {
  color: #ffffff;
}
.profile-tooltip--rich .risk-ind-action:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.profile-tooltip--rich .risk-ind-copied {
  color: #ffffff;
}

/* All-navy tooltip: light type on the dark body, hairlines between sections. */
.profile-tooltip--rich {
  background: #172b3e;
  border-color: #172b3e;
}
.profile-tooltip--rich .risk-ind-head {
  color: #ffffff;
}
.profile-tooltip--rich .risk-ind-text {
  color: #c4cfda;
}
.profile-tooltip--rich .risk-ind-text .risk-ind-rate {
  color: #ffffff;
}
.profile-tooltip--rich .risk-ind-period {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.profile-tooltip--rich .risk-ind-actions {
  border-top-color: rgba(255, 255, 255, 0.16);
}

/* Tooltip numbers now lead the sentence on the same line, a notch larger. */
.profile-tooltip--rich .risk-ind-text .risk-ind-rate {
  font-size: 16px;
  line-height: 1.2;
}

/* Light (mostly white) variant of the Risk indicators tooltip, for comparison
   with the navy one: white card, dark type, original soft icon tiles. */
.profile-tooltip--rich.profile-tooltip--light {
  background: #ffffff;
  border-color: var(--border, #dde6e8);
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-scroll {
  background: #ffffff;
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-period,
.profile-tooltip--rich.profile-tooltip--light .risk-ind-actions {
  background: #ffffff;
  border-color: var(--border, #dde6e8);
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-period {
  color: var(--text-primary);
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-period-label {
  color: #4a5360;
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-head {
  color: var(--text-primary);
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-text {
  color: #4a5360;
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-text .risk-ind-rate {
  color: #172b3e;
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-icon {
  background: #e6efee;
  color: #0b6259;
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-action {
  color: #8a929e;
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-action:hover {
  background: #f1f3f5;
  color: #5b6472;
}
.profile-tooltip--rich.profile-tooltip--light .risk-ind-copied {
  color: #5b6472;
}

/* "See full profile" CTA in the tooltip footer, pushed to the right. */
.risk-ind-actions { align-items: center; }
.risk-ind-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.risk-ind-cta svg { width: 16px; height: 16px; }
.risk-ind-cta:hover { background: rgba(255,255,255,0.12); }
.profile-tooltip--rich.profile-tooltip--light .risk-ind-cta { color: #0b6259; }
.profile-tooltip--rich.profile-tooltip--light .risk-ind-cta:hover { background: #e6efee; }

/* Hudson Valley: provider tiles stay put on hover (no lift or shadow jump). */
body.mo-site .profile-card-surface.is-clickable:hover {
  transform: none;
  box-shadow: none;
}

/* Concern dots: a bit smaller, nudged right of the tile's left edge. */
body.mo-site .concern-dot {
  width: 11px;
  height: 11px;
  margin-left: 6px;
}

/* Status dot sits just left of the percentage. */
.risk-ind-rate .risk-ind-dot {
  display: inline-block;
  position: relative;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 2px;
}

/* Rich tooltips: more room between rows, slightly smaller icon tiles. */
.profile-tooltip--rich .risk-ind-list { gap: 20px; }
.profile-tooltip--rich .risk-ind { grid-template-columns: 26px 1fr; column-gap: 12px; }
.profile-tooltip--rich .risk-ind-icon { width: 26px; height: 26px; border-radius: 7px; }
.profile-tooltip--rich .risk-ind-icon svg { width: 14px; height: 14px; }

/* Hudson Valley: keyboard focus alone (not a stray click) keeps a tooltip open;
   once the pointer leaves, a tooltip closes unless focus is a keyboard focus. */
body.mo-site .profile-card.has-tooltip:focus-within:not(:hover):not(:has(:focus-visible)) .profile-tooltip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Encounters page: short visits x controlled medications scatter. */
.sc-zone { fill: #0b6259; fill-opacity: 0.08; stroke: #0b6259; stroke-opacity: 0.35; stroke-dasharray: 4 3; }
.sc-zone-label { font-size: 11px; font-family: var(--font-medium); fill: #0b6259; }
.sc-axis-title { font-size: 11px; font-family: var(--font-medium); fill: var(--text-secondary); }
.sc-dot { fill: #9db3b8; fill-opacity: 0.75; }
.sc-dot:hover { fill: #5b7a80; }
.sc-hit-dot { fill: #0b6259; stroke: #ffffff; stroke-width: 1.5; }
.sc-hit-num { font-size: 9px; font-weight: 700; fill: #ffffff; pointer-events: none; }
.sc-legend { gap: 12px; }
.sc-legend-row { display: flex; align-items: center; gap: 10px; }
.sc-legend-num {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: #0b6259; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.sc-legend-body { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.sc-legend-name { font-weight: 600; color: var(--text-primary); }
.sc-legend-stats { color: var(--text-secondary); }
.sc-legend-stats strong { color: var(--text-primary); }
.sc-axis-break { font-size: 13px; font-weight: 700; fill: var(--text-muted); }

/* Key under the short-visits chart. */
.sc-key { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.sc-key-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.sc-key-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; }
.sc-key-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.sc-key-item strong { color: var(--text-primary); }
.sc-key-dot, .sc-key-zone, .sc-key-arrow { flex: none; width: 22px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.sc-key-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9db3b8; }
.sc-key-dot--hit { height: 20px; width: 20px; border-radius: 50%; background: #0b6259; color: #fff; font-size: 11px; font-weight: 700; margin-left: 1px; margin-right: -1px; }
.sc-key-dot--hit::before { display: none; }
.sc-key-zone { height: 16px; border: 1.5px dashed rgba(11,98,89,.55); background: rgba(11,98,89,.1); border-radius: 3px; }
.sc-key-arrow { font-size: 18px; font-weight: 700; color: #0b6259; line-height: 1; }
@media (max-width: 800px) { .sc-key-grid { grid-template-columns: 1fr; } }

/* Scatter: neutral shaded zone and slate key dot so the multicolour provider dots stand out. */
.sc-zone { fill: #5b6b82; fill-opacity: 0.07; stroke: #5b6b82; stroke-opacity: 0.4; }
.sc-zone-label { fill: #5b6b82; }
.sc-key-dot--hit { background: #5b6b82; }
.sc-key-zone { border-color: rgba(91,107,130,.55); background: rgba(91,107,130,.1); }
.sc-key-arrow { color: #5b6b82; }

/* Short-visits chart: chart runs the full width of the card (same width as the Key),
   names sit in a slim column whose top lines up with the top of the plot area. */
.sc-row { flex-wrap: nowrap; gap: 28px; }
.sc-row .sc-svg { max-width: none; flex: 1 1 0; min-width: 0; }
.sc-row .sc-legend { flex: none; width: 250px; min-width: 0; padding-top: 16px; }
.sc-key-break { font-size: 14px; letter-spacing: -1px; }
@media (max-width: 900px) {
  .sc-row { flex-wrap: wrap; }
  .sc-row .sc-svg { flex: 1 1 100%; }
  .sc-row .sc-legend { width: 100%; padding-top: 0; }
}

/* Providers list: title block on top, tighter rows; badges and chart dots are the same size. */
.sc-row .sc-legend { padding-top: 14px; gap: 8px; }
.sc-legend-head { margin: 0 0 10px; }
.sc-legend-title { margin: 0 0 3px; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.sc-legend-sub { margin: 0; font-size: 13px; line-height: 1.35; color: var(--text-secondary); }
.sc-hit-num { font-size: 11px; }

/* Compact so chart + key fit above the fold. */
.sc-row .sc-legend { gap: 6px; padding-top: 12px; }
.sc-legend-head { margin-bottom: 6px; }
.sc-key { margin-top: 12px; padding-top: 12px; }
.sc-key-title { margin-bottom: 8px; }
.sc-key-grid { gap: 8px 28px; }
.sc-key-item { font-size: 12.5px; line-height: 1.35; }
.chart-card:has(.sc-row) { padding-top: 14px; padding-bottom: 16px; }

/* Prescription Details: telehealth prescriptions in unlicensed states (US map + Key). */
.utm-card { padding: 26px 28px 28px; }
.utm-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; font-family: var(--font-medium); color: #0f1c2e; }
.utm-sub { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: #4a5360; max-width: 760px; }
.utm-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 22px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.utm-stat { display: flex; align-items: baseline; gap: 8px; }
.utm-stat-num { font-size: 26px; font-weight: 700; font-family: var(--font-medium); color: #0f1c2e; }
.utm-stat-label { font-size: 14px; color: #4a5360; }
.utm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 351px; gap: 40px; align-items: start; }
.utm-map { position: relative; aspect-ratio: 456.1 / 254.5; border-radius: 16px; background: #eef2f4; overflow: hidden; isolation: isolate; box-shadow: 0 1px 2px rgba(15,28,46,.08), 0 8px 24px rgba(15,28,46,.1); }
.utm-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.utm-state { fill: #d5dbe1; stroke: #ffffff; stroke-width: 0.6; outline: none; transition: filter .12s ease; }
.utm-state--high { fill: #e5322d; cursor: pointer; }
.utm-state--moderate { fill: #f5a623; cursor: pointer; }
.utm-state--low { fill: #12a150; fill-opacity: .8; cursor: pointer; }
.utm-state--high:hover, .utm-state--moderate:hover, .utm-state--low:hover,
.utm-state--high:focus-visible, .utm-state--moderate:focus-visible, .utm-state--low:focus-visible { filter: brightness(.88); stroke: #172b3e; stroke-width: 1; }
.map-key-dot--none { --halo: #c3cbd3; }
.utm-key-how { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(15,28,46,.12); font-size: 14px; line-height: 1.5; color: #44505e; }
.utm-key-how p { margin: 0 0 10px; }
.utm-key-how strong { color: #0f1c2e; }
.utm-key-pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e5322d; box-shadow: 0 0 0 4px rgba(229,50,45,.22); margin: 0 10px 0 4px; }
.utm-tip { position: absolute; z-index: 5; min-width: 220px; max-width: 280px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(15,28,46,.18); pointer-events: none; font-size: 13px; line-height: 1.4; color: #44505e; }
.utm-tip-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #0f1c2e; margin-bottom: 6px; }
.utm-tip-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.utm-tip-dot--high { background: #e5322d; } .utm-tip-dot--moderate { background: #f5a623; } .utm-tip-dot--low { background: #12a150; }
.utm-tip strong { color: #0f1c2e; }
.utm-tip-list { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); list-style: none; }
.utm-tip-list li { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) { .utm-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .utm-key { width: auto; } }
.utm-left { min-width: 0; }
.utm-prov { margin-top: 22px; }
.utm-prov-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; font-family: var(--font-medium); color: #0f1c2e; }
.utm-prov-list { list-style: none; margin: 0; padding: 0; }
.utm-prov-row { display: grid; grid-template-columns: 26px minmax(0, 1.3fr) minmax(0, 1.4fr) 130px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; color: #44505e; }
.utm-prov-rank { width: 20px; height: 20px; border-radius: 50%; background: #172b3e; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.utm-prov-name { font-weight: 600; color: #0f1c2e; }
.utm-prov-rx { text-align: right; }
.utm-prov-rx strong { color: #0f1c2e; font-size: 16px; }
@media (max-width: 700px) { .utm-prov-row { grid-template-columns: 26px 1fr auto; } .utm-prov-meta { display: none; } }
.utm-prov-sub { margin: -2px 0 10px; font-size: 14px; line-height: 1.45; color: #4a5360; }
.utm-card { padding-top: 22px; }
.utm-stats { margin-top: 0; padding-top: 0; border-top: 0; }

/* Map keys (home + telehealth page): a plain filled oval, no stroke or ring. */
.map-key-dot {
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  margin: 4px 0 0 2px;
  border: 0;
  box-shadow: none;
  background: var(--halo);
}
.utm-key-pulse { box-shadow: none; width: 12px; height: 12px; margin: 0 10px 0 2px; vertical-align: -1px; }
.utm-key .map-key-title { margin-bottom: 30px; }

/* Hovering / focusing a state: just a slight darkening, no outline. */
.utm-state--high:hover, .utm-state--moderate:hover, .utm-state--low:hover,
.utm-state--high:focus-visible, .utm-state--moderate:focus-visible, .utm-state--low:focus-visible {
  stroke: #ffffff;
  stroke-width: 0.6;
}

/* Telehealth map: a slightly lighter red for high-concern states so the pulsing markers stand out. */
.utm-state--high { fill: #ef6c66; }
.utm-key .map-key-dot--high, .utm-key-pulse { --halo: #ef6c66; }
.utm-key-pulse { background: #e5322d; }
.utm-tip-dot--high { background: #ef6c66; }
.utm-key .map-key-dot--high { background: #ef6c66; }

/* Encounters scatter: reporting-period dropdown above the providers list. */
.sc-legend .sc-period { margin: 0 0 18px; }
.sc-legend .sc-period .reporting-period-label { margin-bottom: 8px; font-size: 13px; }
.sc-legend .sc-period .reporting-period-select { padding: 9px 36px 9px 14px; font-size: 14px; text-overflow: ellipsis; }
.sc-legend .sc-period .reporting-period-select-wrap svg { right: 12px; width: 16px; height: 16px; }

/* Reporting-period dropdowns: no dark focus outline anywhere. */
.reporting-period-select,
.reporting-period-select:focus,
.reporting-period-select:focus-visible,
.reporting-period-select:active { outline: none; box-shadow: none; }
.reporting-period-select:focus, .reporting-period-select:focus-visible { border-color: #cdd5db; }

/* Medications (Hudson Valley): providers vs peers on one controlled medication. */
.cv-card { padding: 26px 28px 28px; }
.cv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.cv-head-text { margin: 0; font-size: 14px; line-height: 1.45; color: #4a5360; }
.cv-head .reporting-period { margin: 0; flex: none; width: 320px; }
.cv-head .reporting-period-label { margin-bottom: 8px; font-size: 13px; }
.cv-head .reporting-period-select { padding: 9px 36px 9px 14px; font-size: 14px; }
.cv-head .reporting-period-select-wrap svg { right: 12px; width: 16px; height: 16px; }
.cv-cols, .cv-row { display: grid; grid-template-columns: 26px minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, 1.5fr) 100px 100px 90px; align-items: center; gap: 14px; }
.cv-cols { padding: 0 0 10px; font-size: 13px; font-weight: 600; color: #0f1c2e; border-bottom: 1px solid var(--border); }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-row { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: #44505e; }
.cv-rank { width: 20px; height: 20px; border-radius: 50%; background: #172b3e; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cv-prov { font-weight: 600; color: #0f1c2e; }
.cv-med { color: #0f1c2e; }
.cv-med small { display: block; margin-top: 2px; font-size: 12px; color: #6b7684; }
.cv-num { text-align: right; }
.cv-num strong { color: #0f1c2e; font-size: 16px; }
.cv-x { text-align: right; font-weight: 700; color: #0f1c2e; }
.cv-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: #eef1f4; }
.cv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #5b6b82; }
.cv-tick { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #0f1c2e; border-radius: 1px; }
.cv-key { margin-top: 22px; }
.cv-key-fill { flex: none; width: 22px; height: 10px; margin-top: 4px; border-radius: 5px; background: #5b6b82; }
.cv-key-tick { flex: none; width: 22px; height: 16px; margin-top: 1px; background: linear-gradient(#0f1c2e,#0f1c2e) center / 2px 100% no-repeat; }
.cv-key-x { flex: none; width: 22px; font-size: 13px; font-weight: 700; color: #0f1c2e; }
@media (max-width: 900px) { .cv-head { flex-direction: column; align-items: stretch; } .cv-head .reporting-period { width: 100%; } .cv-cols { display: none; } .cv-row { grid-template-columns: 26px 1fr 1fr; } .cv-bar { grid-column: 2 / -1; } }
.cv-cols, .cv-row { grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1.75fr) minmax(0, 1.25fr) 100px 100px 90px; }
.cv-med { white-space: nowrap; }
.cv-key-tick { margin-top: 0; }

/* Medications v2: one controlled medication at a time. */
.cv2-card { padding: 26px 28px 28px; }
.cv2-head { display: flex; gap: 24px; margin-bottom: 26px; }
.cv2-head .reporting-period { margin: 0; width: 320px; }
.cv2-head .reporting-period-label { margin-bottom: 8px; font-size: 13px; }
.cv2-head .reporting-period-select { padding: 9px 36px 9px 14px; font-size: 14px; }
.cv2-head .reporting-period-select-wrap svg { right: 12px; width: 16px; height: 16px; }
.cv2-peer, .cv2-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 90px; align-items: center; gap: 16px; font-size: 14px; color: #44505e; }
.cv2-peer { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.cv2-name { font-weight: 600; color: #0f1c2e; }
.cv2-track { display: block; position: relative; height: 18px; }
.cv2-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.cv2-bar--peer { background: #b9c1cb; }
.cv2-val { text-align: right; white-space: nowrap; }
.cv2-val strong { color: #0f1c2e; font-size: 16px; }
.cv2-val small { margin-left: 6px; font-size: 12px; color: #6b7684; }
.cv2-sub { margin: 18px 0 8px; font-size: 14px; color: #4a5360; }
.cv2-list { list-style: none; margin: 0; padding: 0; position: relative; }
.cv2-row { padding: 9px 0; }
.cv2-list::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(236px + (100% - 236px - 106px) * var(--peer) / 100); border-left: 1.5px dashed #9aa4b0; pointer-events: none; }
.cv2-panel[hidden] { display: none; }
.cv2-key-grey { flex: none; width: 22px; height: 10px; margin-top: 4px; border-radius: 3px; background: #b9c1cb; }
.cv2-key-color { flex: none; width: 22px; height: 10px; margin-top: 4px; border-radius: 3px; background: linear-gradient(90deg,#e0393e 0 33%,#f28c28 33% 66%,#e8b93a 66%); }
@media (max-width: 900px) { .cv2-head { flex-direction: column; } .cv2-head .reporting-period { width: 100%; } .cv2-peer, .cv2-row { grid-template-columns: 1fr 70px; } .cv2-track { grid-column: 1 / -1; order: 3; } .cv2-list::after { display: none; } }

.cv2-list::after { content: none; }
.cv2-guide { position: absolute; top: 0; bottom: 0; left: 236px; right: 106px; pointer-events: none; }
.cv2-guide span { position: absolute; top: 0; bottom: 0; border-left: 1.5px dashed #8a95a3; }
@media (max-width: 900px) { .cv2-guide { display: none; } }

/* Diagnosis (Hudson Valley): interactive pie of diagnoses on controlled-drug prescriptions. */
.dx-card { position: relative; padding: 26px 28px 30px; }
.dx-row-wrap { display: flex; align-items: center; gap: 56px; }
.dx-pie { width: 340px; flex: none; overflow: visible; }
.dx-slice { cursor: pointer; outline: none; stroke: #fff; stroke-width: 1.5; transition: transform .15s ease, opacity .15s ease; transform-box: view-box; }
.dx-card.is-active .dx-slice { opacity: .38; }
.dx-card.is-active .dx-slice.is-on { opacity: 1; transform: translate(var(--dx), var(--dy)); }
.dx-legend { flex: 1; min-width: 0; }
.dx-row { cursor: pointer; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; transition: background .12s ease, opacity .12s ease; font-size: 15px; }
.dx-card.is-active .dx-row { opacity: .45; }
.dx-card.is-active .dx-row.is-on { opacity: 1; background: #f1f4f7; }
.dx-tip { position: fixed; z-index: 60; width: 320px; height: auto; max-height: calc(100vh - 24px); opacity: 1; visibility: visible; pointer-events: none; top: 0; left: 0; transform: none; overflow: auto; }
.dx-tip[hidden] { display: none; }
.dx-tip-title { display: flex; align-items: center; gap: 10px; padding: 14px 18px 4px; font-size: 15px; font-weight: 700; color: #0f1c2e; }
.dx-tip-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dx-tip-list { padding: 8px 18px 14px; margin: 0; }
@media (max-width: 900px) { .dx-row-wrap { flex-direction: column; align-items: stretch; gap: 24px; } .dx-pie { width: 100%; max-width: 340px; align-self: center; } }
.pie-chart-svg.dx-pie { width: 360px; height: 360px; }
.dx-row-wrap { gap: 48px; }
@media (max-width: 900px) { .pie-chart-svg.dx-pie { width: 100%; height: auto; max-width: 340px; } }

/* Medications v3: peer average at the bottom, green guide line, licensing filter. */
.cv2-chart { position: relative; }
.cv2-chart .cv2-peer { margin-top: 6px; padding: 18px 0 0; border-bottom: 0; border-top: 1px solid var(--border); }
.cv2-chart .cv2-guide { position: absolute; top: 0; bottom: 0; left: 236px; right: 106px; pointer-events: none; }
.cv2-chart .cv2-guide span { position: absolute; top: 0; bottom: 0; border-left: 2px dashed #0b6259; }
.cv2-view--unlic { display: none; }
.cv2-card.is-unlic .cv2-view--unlic { display: block; }
.cv2-card.is-unlic .cv2-view--all { display: none; }
.cv2-sub { margin-top: 0; }
.cv2-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: #6b7684; }
.cv2-empty { margin: 4px 0 18px; font-size: 14px; color: #4a5360; }
.cv2-head { align-items: flex-end; flex-wrap: wrap; }
.cv2-head .cv2-filter { width: auto; }
.cv2-check { display: flex; align-items: center; gap: 10px; height: 37px; box-sizing: border-box; padding: 0 14px; border: 1px solid #cdd5db; border-radius: var(--radius-md); background: #fff; font-size: 14px; color: #0f1c2e; cursor: pointer; }
.cv2-check input { width: 16px; height: 16px; margin: 0; accent-color: #0b6259; cursor: pointer; }
.cv2-check:has(input:focus-visible) { outline: none; }
.cv2-bar--peer { background: #b9c1cb; }
@media (max-width: 900px) { .cv2-chart .cv2-guide { display: none; } }
.cv2-chart .cv2-guide { top: 40px; }
.cv2-sub { margin: 0 0 8px; line-height: 22px; }

.cv2-card.is-unlic .cv2-guide--noun { display: none; }
.cv2-head .reporting-period:first-child { width: 360px; }

/* Diagnosis tooltip: no icon tiles; legend is static (only the pie is interactive). */
.dx-tip .risk-ind { gap: 0; }
.dx-row { cursor: default; }
.dx-tip-title { padding-bottom: 6px; }
.dx-tip .risk-ind { grid-template-columns: 1fr; column-gap: 0; }
.dx-tip .dx-tip-list { padding: 6px 0 14px; }
.dx-tip .risk-ind { padding: 7px 18px; }
.dx-card.is-active .dx-row, .dx-card.is-active .dx-row.is-on { opacity: 1; background: transparent; }
.dx-tip .risk-ind-list { gap: 0; }
.dx-tip .risk-ind { padding: 8px 18px; }
.cv2-check { border: 0; background: transparent; padding: 0; border-radius: 0; }

/* Hudson Valley: Site Map band on every page below home (same teal + ink as the home page). */
.site-map-band { background: #65959e; padding: 36px 0 20px; }
.site-map-band-inner { max-width: var(--page-max-w); margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.site-map-band .site-map { padding: 0 0 8px; }
.site-map-band .site-map-title,
.site-map-band .site-map-group-title,
.site-map-band .site-map-list li { color: #172b3e; }
.site-map-band .site-map-group-title { border-bottom-color: rgba(23, 43, 62, 0.35); }
/* The Data Status sidebar is fixed; keep the site map and footer above it. */
body.mo-site .site-map-band, body.mo-site .site-footer { position: relative; z-index: 12; }

/* Inter-State Prescribers (Hudson Valley): provider -> state network graph. */
.nw { position: relative; min-width: 0; }
.nw > svg { width: 100%; height: auto; display: block; overflow: visible; }
.nw-col { font-size: 11px; font-weight: 700; letter-spacing: .08em; fill: #6b7684; }
.nw-edge { fill: none; stroke-linecap: round; opacity: .5; transition: opacity .15s ease; }
.nw-node { outline: none; cursor: pointer; transition: opacity .15s ease; }
.nw-hit { fill: transparent; }
.nw-label { font-size: 13px; fill: #0f1c2e; font-weight: 600; }
.nw-sub { font-size: 11.5px; fill: #6b7684; font-weight: 400; }
.nw-ring { fill: #fff; stroke-width: 3; }
.nw.is-active .nw-edge { opacity: .06; }
.nw.is-active .nw-edge.is-on { opacity: .9; }
.nw.is-active .nw-node { opacity: .3; }
.nw.is-active .nw-node.is-on { opacity: 1; }
.nw-tip { position: fixed; z-index: 60; min-width: 220px; max-width: 280px; pointer-events: none; }
.nw-tip[hidden] { display: none; }
.nw-tip .utm-tip-list li span:last-child { font-weight: 600; color: #0f1c2e; }
@media (max-width: 900px) { .nw-label { font-size: 12px; } }

/* Diagnosis tooltip: navy title bar, one body size; legend names in the footer navy. */
.dx-tip .dx-tip-title { display: block; margin: 0; padding: 14px 18px; background: #172b3e; color: #ffffff; font-size: 17px; line-height: 1.3; font-weight: 700; }
.dx-tip .dx-tip-list { padding: 8px 0 10px; }
.dx-tip .risk-ind-head,
.dx-tip .risk-ind-text,
.dx-tip .risk-ind-text .risk-ind-rate { font-size: 13px; line-height: 1.45; }
.dx-tip .risk-ind-text .risk-ind-rate { font-weight: 700; color: #172b3e; }
.dx-legend .pie-legend-label,
.dx-legend .pie-legend-value { color: #172b3e; }

.nw-ring { stroke-width: 3.5; }
.utm-card:has(.nw) { padding-top: 30px; }

/* Diagnosis: shared card with filters; each view is a plain block inside it. */
.dx-shell { padding: 26px 28px 30px; }
.dx-controls { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.dx-controls .reporting-period { margin: 0; width: 320px; }
.dx-controls .reporting-period-label { margin-bottom: 8px; font-size: 13px; }
.dx-controls .reporting-period-select { padding: 9px 36px 9px 14px; font-size: 14px; }
.dx-controls .reporting-period-select-wrap svg { right: 12px; width: 16px; height: 16px; }
.dx-controls .dx-filter { width: auto; }
.dx-checks { display: flex; gap: 22px; align-items: center; }
.dx-hint { margin: 0 0 14px; }
.dx-view.dx-card { padding: 0; }
.dx-view[hidden] { display: none; }

/* v143: filled state circles with the count inside; pie total */
.nw-ring { stroke: none; stroke-width: 0; }
.nw-num { font-size: 12px; font-weight: 700; fill: #fff; pointer-events: none; }
.nw-num--moderate { fill: #172b3e; }
.dx-pie-col { display: flex; flex-direction: column; align-items: center; flex: none; }
.dx-total { margin: 6px 0 0; font-size: 15px; color: #172b3e; text-align: center; }
.dx-total strong { font-size: 18px; }
.nw-ring--high { fill: #ef6c66; }
.nw-ring--moderate { fill: #f5a623; }
.nw-ring--low { fill: #12a150; }
/* v144: providers neutral, only the state side carries colour */
.nw-edge { opacity: .45; }
.nw.is-active .nw-edge.is-on { stroke: #4f5f73; opacity: .85; }
/* v145: inter-state filter + bottom column labels */
.nw[hidden] { display: none; }
.nw-filter { margin-top: 16px; }
.map-key-period .reporting-period.nw-filter { margin-top: 18px; }

/* v148 (Hudson Valley): controls share the dropdown's 12px corner radius */
body.mo-site .topnav-search,
body.mo-site .account-trigger,
body.mo-site .compact-search-trigger,
body.mo-site .hero-search-bar,
body.mo-site .flag-search,
body.mo-site .btn,
body.mo-site .hero-tabs,
body.mo-site .hero-tab,
body.mo-site .import-tab,
body.mo-site .model-toggle-trigger { border-radius: var(--radius-md); }
body.mo-site .account-menu { border-radius: var(--radius-md); }

/* v149: clickable city pulses; square map corners; city table button */
.map-halo-hit { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; cursor: pointer; z-index: 3; }
.map-halo-hit:focus-visible { outline: 2px solid #172b3e; outline-offset: -2px; }
.map-halo-hit:hover { background: rgba(23,43,62,.06); }
body.mo-site .patterns-band-map { border-radius: 0; }
.flag-table td .btn { white-space: nowrap; }
/* v152: black-and-white Northeast map photo */
.patterns-band-map--ne { aspect-ratio: 2090 / 1190; }
/* v158: 13% white wash over the map, under the pulses */
.patterns-band-map--ne .patterns-band-map-stage::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.13); pointer-events: none; }
/* v157: city names in black, clickable (the image's own labels for these 7 cities are removed) */
.patterns-band-map--ne { container-type: inline-size; }
.map-city-label {
  position: absolute; z-index: 4; transform: translate(14px, -50%);
  font-size: 15px; font-size: 1.5cqw; font-weight: 600; line-height: 1; color: #000;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px rgba(255,255,255,.9);
}
.map-city-label--left { transform: translate(calc(-100% - 14px), -50%); }
.map-city-label:hover { text-decoration: underline; }
.map-city-label:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* v159: minimal practitioner profile (Hudson Valley) */
.pf-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 28px; }
.pf-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #172b3e; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.pf-name { margin: 0; font-size: 30px; line-height: 1.15; color: #172b3e; }
.pf-meta { margin: 4px 0 0; font-size: 14px; color: #6b7684; }
.pf-concern { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #172b3e; }
.pf-concern .map-key-dot { margin: 0; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; margin-bottom: 36px; }
.pf-stat { padding: 20px 0 20px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid #e3e8ec; }
.pf-stat:first-child { padding-left: 0; border-left: 0; }
.pf-stat-num { font-size: 32px; font-weight: 700; line-height: 1; color: #172b3e; }
.pf-stat-label { font-size: 13px; color: #6b7684; }
.pf-sec { margin: 0 0 40px; }
.pf-sec-title { margin: 0 0 16px; font-size: 17px; font-weight: 700; color: #172b3e; }
.pf-sec-title span { margin-left: 8px; font-size: 13px; font-weight: 400; color: #6b7684; }
.pf-meds { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.pf-med { display: grid; grid-template-columns: 230px 1fr 110px; align-items: center; gap: 16px; font-size: 14px; color: #172b3e; }
.pf-med-track { position: relative; height: 12px; border-radius: 6px; background: #eef1f4; }
.pf-med-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: #172b3e; }
.pf-med-peer { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 2px dashed #0b6259; }
.pf-med-num { text-align: right; white-space: nowrap; }
.pf-med-num em { font-style: normal; color: #6b7684; font-size: 13px; }
.pf-dx { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.pf-donut { width: 200px; height: 200px; flex: none; }
.pf-donut-num { font-size: 34px; font-weight: 700; fill: #172b3e; }
.pf-dx-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 280px; max-width: 560px; }
.pf-dx-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef1f4; font-size: 14px; color: #172b3e; }
.pf-dx-list .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pf-dx-name { flex: 1; }
.pf-dx-pct { font-weight: 700; }
.pf-net { max-width: 760px; position: relative; }
.pf-net .nw { width: 100%; }
@media (max-width: 760px) { .pf-stats { grid-template-columns: 1fr 1fr; } .pf-stat:nth-child(3) { padding-left: 0; border-left: 0; } .pf-med { grid-template-columns: 1fr; gap: 6px; } .pf-med-num { text-align: left; } .pf-head { flex-wrap: wrap; } .pf-concern { margin-left: 0; } }

/* v160: concern dots + key on city pages, hover cards on encounters / medication bars */
.pf-key-strip { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0 0 18px; padding: 0; list-style: none; }
.pf-key-strip .map-key-item { display: flex; align-items: flex-start; gap: 10px; }
.pf-key-strip .map-key-desc { display: inline; margin-left: 8px; font-weight: 400; color: #6b7684; }
.pf-key-strip .map-key-label { font-weight: 700; }
.pf-name-cell { display: inline-flex; align-items: center; gap: 10px; }
.pf-name-cell .map-key-dot { margin: 0; flex: none; }
.pf-tip-host { position: relative; cursor: default; outline: none; }
td .pf-tip-host { border-bottom: 1px dotted #9aa4b0; padding-bottom: 1px; }
td .pf-tip-host:hover, td .pf-tip-host:focus { color: #172b3e; border-bottom-color: #172b3e; }
.pf-med.pf-tip-host { border-bottom: 0; }
.pf-med.pf-tip-host:hover .pf-med-bar, .pf-med.pf-tip-host:focus .pf-med-bar { background: #0b6259; }
.map-key-list.pf-key-strip { flex-direction: row; flex-wrap: wrap; gap: 8px 36px; margin: 0 0 18px; }
.pf-key-strip .map-key-item { display: inline-flex; align-items: center; gap: 10px; grid-template-columns: none; }
.pf-key-strip .map-key-dot { margin: 0; flex: none; }
.pf-key-strip .map-key-item .map-key-label { display: inline; margin: 0; font-size: 14px; }
.pf-key-strip .map-key-item .map-key-desc { display: inline; margin: 0 0 0 8px; font-size: 14px; color: #6b7684; }

/* v161: key with an info icon */
.pf-key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 18px; }
.pf-key .pf-key-strip { margin: 0; }
.pf-key-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #172b3e; }
.pf-info { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; color: #6b7684; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; }
.pf-info svg { width: 18px; height: 18px; }
.pf-info:hover, .pf-info:focus-visible { color: #172b3e; background: #eef1f4; }
.dx-tip.pf-info-tip { width: 380px; text-align: left; font-weight: 400; }
.pf-info-tip .risk-ind-text { display: block; }

/* ---- v162: every hover card uses the Telehealth tooltip look ---- */
.utm-tip.dx-tip { position: fixed; z-index: 60; top: 0; left: 0; width: 300px; min-width: 0; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto; padding: 12px 14px; text-align: left; font-weight: 400; pointer-events: none; }
.utm-tip.dx-tip[hidden] { display: none; }
.utm-tip.dx-tip.pf-info-tip { width: 360px; }
.utm-tip-sum { color: #44505e; }
.utm-tip-sum strong { color: #0f1c2e; }
.utm-tip-list li { align-items: baseline; }
.utm-tip-list li > span:first-child { flex: none; color: #44505e; }
.utm-tip-list li { flex-wrap: wrap; }
.utm-tip-val { display: contents; }
.utm-tip-val strong { font-weight: 600; color: #0f1c2e; margin-left: auto; text-align: right; }
.utm-tip-val small { flex: 0 0 100%; text-align: left; font-size: 12px; line-height: 1.35; color: #6a7480; margin-top: 1px; }
.utm-tip-list li.utm-tip-note { display: block; margin-top: 8px; }
.utm-tip-list li.utm-tip-note:first-child { margin-top: 0; }
.utm-tip-note strong { display: block; color: #0f1c2e; margin-bottom: 1px; }
.utm-tip-note span { color: #44505e; }
.tt-pop { transform: none; }
[data-tt] { cursor: default; }
.sc-hit-dot[data-tt], .sc-dot[data-tt] { cursor: pointer; }
.cv2-row[data-tt]:focus-visible, .cv2-peer[data-tt]:focus-visible { outline: 2px solid #172b3e; outline-offset: 2px; border-radius: 6px; }
.utm-tip.dx-tip .utm-tip-list li { column-gap: 12px; row-gap: 0; }
.utm-tip.dx-tip .utm-tip-list li + li { margin-top: 7px; }
.utm-tip.dx-tip .utm-tip-list li.utm-tip-note + li.utm-tip-note { margin-top: 10px; }
.utm-tip-dot--high { background: #e5322d; }
.utm-key .map-key-dot--high { background: #e5322d; --halo: #e5322d; }
.intro-red { color: #e5322d; font-weight: 600; }

/* v166 (Hudson Valley, Telehealth page only): top nav in the footer navy, logo in white */
body.tele-nav .topnav { background: #172b3e; border-bottom-color: #172b3e; }
body.tele-nav .topnav-divider { background: rgba(255,255,255,.22); }

/* v172 (Hudson Valley): tabs across the top of the five pattern pages */
.cat-tabs { display: flex; gap: 4px; margin: 0 0 22px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px 13px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: #5b6673; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: color .12s ease, border-color .12s ease; }
.cat-tab svg { width: 18px; height: 18px; flex: none; }
.cat-tab:hover { color: #172b3e; border-bottom-color: #c3ccd6; }
.cat-tab.is-active { color: #172b3e; border-bottom-color: #172b3e; }
.cat-tab:focus-visible { outline: 2px solid #172b3e; outline-offset: -2px; border-radius: 6px; }
.cat-tab:first-child { margin-left: auto; }
.cat-tab:last-child { margin-right: auto; }
/* v177: no full-width hairline under the tabs; active tab underlined in red */
.cat-tabs { border-bottom: 0; }
.cat-tab { margin-bottom: 0; }
.cat-tab.is-active { border-bottom-color: #e5322d; }
.cat-tab.is-active { border-bottom-color: #65959e; }
.cv2-check input { accent-color: #172b3e; }

/* v190: hover-card typography: even row rhythm, label / value / caption hierarchy */
.utm-tip.dx-tip { width: 320px; padding: 14px 16px 6px; }
.utm-tip.dx-tip .utm-tip-name { font-size: 16px; line-height: 1.3; margin-bottom: 4px; }
.utm-tip.dx-tip .utm-tip-sum { font-size: 14px; line-height: 1.4; margin-bottom: 10px; }
.utm-tip.dx-tip .utm-tip-list { margin: 0; padding: 0; border-top: 1px solid var(--border); }
.utm-tip.dx-tip .utm-tip-list li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; margin: 0; padding: 10px 0; border-top: 1px solid #eef1f4; font-size: 13px; line-height: 1.4; }
.utm-tip.dx-tip .utm-tip-list li:first-child { border-top: 0; }
.utm-tip.dx-tip .utm-tip-list li > span:first-child { flex: 1 1 auto; font-size: 13px; color: #5b6673; }
.utm-tip.dx-tip .utm-tip-val strong { font-size: 14px; line-height: 1.35; font-weight: 700; color: #0f1c2e; }
.utm-tip.dx-tip .utm-tip-val small { flex: 0 0 100%; margin-top: 0; font-size: 12px; line-height: 1.45; color: #6a7480; }
.utm-tip.dx-tip .utm-tip-stack > span:first-child { flex: 0 0 100%; }
.utm-tip.dx-tip .utm-tip-stack .utm-tip-val strong { flex: 0 0 100%; margin-left: 0; text-align: left; }
.utm-tip.dx-tip .utm-tip-list li.utm-tip-note { display: block; }
.utm-tip.dx-tip .utm-tip-note strong { font-size: 13px; margin-bottom: 2px; }
.utm-tip.dx-tip.pf-info-tip { width: 360px; }
.utm-tip.dx-tip .utm-tip-val strong { text-wrap: balance; }

/* v191: city page key = the home map's key, across the page, with this city's level marked */
.map-key.pf-citykey { width: auto; padding: 0; margin: 4px 0 26px; }
.pf-citykey .map-key-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 20px; }
.pf-citykey .map-key-title .pf-info { display: inline-flex; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: #172b3e; cursor: pointer; }
.pf-citykey .map-key-title .pf-info svg { width: 20px; height: 20px; }
.pf-citykey-list { flex-direction: row; gap: 48px; }
.pf-citykey-list .map-key-item { flex: 1 1 0; min-width: 0; }
.pf-here-tag { display: inline-block; margin-left: 10px; padding: 1px 9px; border-radius: 999px; background: #eef2f5; color: #44505e; font-size: 12px; font-weight: 600; vertical-align: 1px; }
@media (max-width: 900px) { .pf-citykey-list { flex-direction: column; gap: 22px; } }
.utm-tip.dx-tip .utm-tip-list li.utm-tip-note { border-top: 0; padding: 5px 0; }
.map-key.pf-citykey { margin-top: 20px; }

/* v192: Diagnosis hover card in one text color (footer navy); hierarchy comes from weight and size */
.utm-tip.dx-tip[data-dx-tip], .utm-tip.dx-tip[data-dx-tip] * { color: #172b3e !important; }

/* v194: Diagnosis hover card: one color, one text size (title aside), two weights only */
.utm-tip.dx-tip[data-dx-tip] .utm-tip-sum,
.utm-tip.dx-tip[data-dx-tip] .utm-tip-list li,
.utm-tip.dx-tip[data-dx-tip] .utm-tip-list li > span:first-child,
.utm-tip.dx-tip[data-dx-tip] .utm-tip-val small,
.utm-tip.dx-tip[data-dx-tip] .utm-tip-val strong { font-size: 14px; line-height: 1.4; }
.utm-tip.dx-tip[data-dx-tip] .utm-tip-sum strong { font-weight: 700; }
.utm-tip.dx-tip[data-dx-tip] { width: 300px; }
.utm-tip.dx-tip[data-dx-tip] .utm-tip-name { margin-bottom: 8px; }

/* v196: pattern pages: all descriptive text (subtitle, hints, captions, key notes) at the subtitle's 13px */
body.pattern-page .card-sub,
body.pattern-page .reporting-period-label,
body.pattern-page .sc-key-item > span,
body.pattern-page .cv2-sub,
body.pattern-page .cv2-note,
body.pattern-page .utm-prov-sub,
body.pattern-page .utm-key-how,
body.pattern-page .utm-key-how p,
body.pattern-page .map-key-note,
body.pattern-page .map-key-desc,
body.pattern-page .cv2-empty,
body.pattern-page .cv-key span { font-size: 13px; }

/* v201: Telehealth / Inter-State key text styled like the home key: regular grey with a bold lead-in */
body.pattern-page .utm-key .map-key-desc { font-weight: 400; color: #44505e; }
body.pattern-page .utm-key .map-key-desc strong { font-weight: 700; color: #44505e; }
.sc-key-dot:not(.sc-key-dot--hit) { height: 16px; margin-top: 0; }

/* v203: temporary compliance profile (Sarah Abernathy) */
.tp-period { margin: 0 0 28px; max-width: 320px; }
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.tp-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px 24px; display: flex; flex-direction: column; }
.tp-label { margin: 0 0 14px; font-size: 15px; font-weight: 700; font-family: var(--font-medium); color: #172b3e; }
.tp-num { margin: 0 0 12px; font-size: 40px; font-weight: 700; line-height: 1; color: #172b3e; }
.tp-bar { display: block; height: 6px; border-radius: 999px; background: #e3e8ec; overflow: hidden; margin-bottom: 14px; }
.tp-bar > span { display: block; height: 100%; border-radius: 999px; background: #172b3e; }
.tp-text { margin: 0; font-size: 13px; line-height: 1.5; color: #44505e; }
@media (max-width: 1000px) { .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tp-grid { grid-template-columns: 1fr; } }

/* v204: temp Sarah page: colour-coded bars tied to the key */
.tp-bar--high > span     { background: #e5322d; }
.tp-bar--moderate > span { background: #f5a623; }
.tp-bar--low > span      { background: #12a150; }
.map-key.tp-key { margin: 4px 0 28px; }

/* v205: temp Sarah page uses the home layout: tiles in the map's space, key + date range at right */
.tp-name { margin: 16px 0 28px; }
.tp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 351px; gap: 40px; align-items: start; margin-bottom: 40px; }
.tp-layout .tp-grid { margin-bottom: 0; }
.tp-layout .map-key { padding-top: 0; }
@media (max-width: 1100px) { .tp-layout .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tp-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .tp-layout .map-key { width: auto; } }
@media (max-width: 600px) { .tp-layout .tp-grid { grid-template-columns: minmax(0, 1fr); } }
.tp-layout .tp-card { padding: 22px 20px 24px; }
.tp-layout .tp-label { font-size: 14px; white-space: nowrap; }

/* v206: temp Sarah page: one Prescriber Overview tile (identity + overview), full width above tiles + key */
.tp-name { margin-bottom: 20px; }
.tp-overview { background:#fff; border:1px solid var(--border); border-radius:12px; padding:22px 24px 26px; margin-bottom: 28px; }
.tp-ov-title { margin:0 0 18px; font-size:18px; font-weight:700; font-family:var(--font-medium); color:#172b3e; }
.tp-ov-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 32px; }
.tp-ov-item { display:flex; flex-direction:column; gap:4px; min-width:0; }
.tp-ov-label { font-size:13px; color:#6b7280; }
.tp-ov-value { font-size:16px; font-weight:700; line-height:1.35; color:#172b3e; }
@media (max-width: 900px) { .tp-ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tp-ov-grid { grid-template-columns: minmax(0, 1fr); } }

/* v207: temp Sarah overview tile takes the home page's Encounters tile colors */
.tp-overview { background: #dfeaec; border-color: #c3d6da; }

/* v208: temp Sarah overview: six items, three per row */
.tp-ov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tp-ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tp-ov-grid { grid-template-columns: minmax(0, 1fr); } }

/* v209: temp Sarah page: name + Prescriber Overview sit on a full-width light-blue band (home tile blue) */
.tp-band { background: #dfeaec; border-bottom: 1px solid #c3d6da; }
.tp-band-inner { max-width: var(--page-max-w); margin: 0 auto; padding: 36px 40px 40px; box-sizing: border-box; }
.tp-band .tp-name { margin: 0 0 26px; }
.tp-band .tp-ov-title { margin-bottom: 16px; }
.tp-overview { background: none; border: 0; padding: 0; }

/* v210: temp Sarah page: tile icons (top right) and a frozen name header that appears once the band scrolls away */
.tp-card { position: relative; }
.tp-icon { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; color: #172b3e; display: inline-flex; }
.tp-icon svg { width: 22px; height: 22px; }
.tp-label { padding-right: 34px; }
.tp-layout .tp-label { white-space: normal; }
.tp-sticky { position: fixed; top: var(--topnav-h); left: 0; right: 0; z-index: 35; background: #dfeaec; border-bottom: 1px solid #c3d6da; transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility .2s; }
.tp-sticky.is-on { transform: none; opacity: 1; visibility: visible; }
.tp-sticky-inner { max-width: var(--page-max-w); margin: 0 auto; padding: 14px 40px; box-sizing: border-box; font-size: 20px; font-weight: 700; font-family: var(--font-medium); color: #172b3e; }
.tp-layout .tp-label { font-size: 13px; padding-right: 26px; white-space: nowrap; }

/* v211: temp Sarah tile icons a bit lighter */
.tp-icon { color: #7a8998; }

/* v212: frozen name header takes the Site Map blue (band above it stays light blue) */
.tp-sticky { background: #65959e; border-bottom-color: #65959e; }

/* v213: temp Sarah page: Encounter Patterns tile, full width under the metric tiles + key */
.tp-card.tp-wide { margin: 0 0 28px; padding: 22px 24px 26px; }
.tp-wide .tp-ov-title { margin-bottom: 18px; }
.tp-ov-value--red { color: #e5322d; }

/* v214: Encounter Patterns sits above the metric tiles; no red value text */
.tp-card.tp-wide { margin: 0 0 28px; }

/* v215: Encounter Patterns lives on the full-width blue band, under the Prescriber Overview (no tile) */
.tp-band-sec { margin-top: 30px; }
.tp-band-sec .tp-ov-title { margin: 0 0 16px; }

/* v216: name strip on the frozen-header blue from the start; Peer Comparison joins the light-blue band */
.tp-namebar { background: #65959e; }
.tp-namebar .tp-band-inner { padding: 26px 40px; }
.tp-namebar .tp-name { margin: 0; }
.tp-band .tp-band-inner { padding-top: 32px; }
.tp-band { border-bottom: 0; }
.tp-peer { width: 100%; border-collapse: collapse; font-size: 14px; color: #172b3e; }
.tp-peer th { text-align: left; font-size: 13px; font-weight: 600; color: #44505e; background: rgba(255,255,255,.55); padding: 12px 16px; }
.tp-peer th:first-child { border-radius: 10px 0 0 10px; }
.tp-peer th:last-child { border-radius: 0 10px 10px 0; }
.tp-peer td { padding: 14px 16px; border-bottom: 1px solid #c3d6da; }
.tp-peer tbody tr:last-child td { border-bottom: 0; }
.tp-peer .col-num { text-align: right; }

/* v217: band section headers: small grey all-caps; Peer Comparison is one plain-language sentence */
.tp-band .tp-ov-title { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; font-family: inherit; }
.tp-peer-line { margin: 0; max-width: 780px; font-size: 16px; line-height: 1.5; color: #172b3e; }

/* v218: no band headers; the peer sentence uses the same type as the figures (e.g. 282) */
.tp-peer-line { font-size: 16px; font-weight: 700; line-height: 1.45; color: #172b3e; max-width: 820px; }
.tp-band .tp-band-inner { padding-top: 36px; }

/* v219: "Peer Comparison" label in the figures' label type; sentence runs out to the end of the Practice States value (PA) */
.tp-band-sec .tp-ov-label { display: block; margin-bottom: 4px; }
.tp-peer-line { max-width: calc(66.667% + 257px); }
@media (max-width: 900px) { .tp-peer-line { max-width: none; } }
.tp-band-sec .tp-ov-grid .tp-ov-label { margin-bottom: 0; }
.tp-peer-line { max-width: calc(66.667% + 282px); }

/* v220: Peer comparison toggle; when on, peer medians appear in grey after Sarah's figures */
.tp-toggle-row { display: flex; justify-content: flex-end; margin: -8px 0 8px; }
.tp-switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: #172b3e; }
.tp-switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #b7c6cb; transition: background .15s; flex: none; }
.tp-switch-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.tp-switch[aria-checked="true"] .tp-switch-track { background: #172b3e; }
.tp-switch[aria-checked="true"] .tp-switch-knob { transform: translateX(16px); }
.tp-switch:focus-visible .tp-switch-track { outline: 2px solid #172b3e; outline-offset: 2px; }
.tp-peer-val { display: none; font-weight: 400; color: #6b7280; }
.tp-band.show-peers .tp-peer-val { display: inline; }

/* v221: grey peer-average bar under each tile's bar, explained in the key */
.tp-bar--peer { height: 4px; margin: -6px 0 6px; background: #eef1f4; }
.tp-bar--peer > span { background: #9aa5b1; }
.tp-peer-cap { display: block; margin: 0 0 12px; font-size: 12px; color: #6b7280; }
.map-key-dot--peer { width: 12px; height: 5px; margin: 8px 0 0 2px; border-radius: 3px; background: #9aa5b1; }

/* v223: peer bar = same size as the bar above it, a hair beneath it, no caption */
.tp-bar--peer { height: 6px; margin: -11px 0 14px; background: #e3e8ec; }
.tp-bar--peer > span { background: #9aa5b1; }
.map-key-dot--peer { height: 6px; margin-top: 7px; }

/* v224: no grey bars; the toggle shows the peer average in grey, small, beside each big number */
.tp-bar--peer, .tp-peer-cap { display: none; }
.tp-show-peers .tp-peer-val { display: inline; }
.tp-peer-val--tile { margin-left: 6px; font-size: 14px; font-weight: 400; color: #6b7280; letter-spacing: 0; vertical-align: baseline; white-space: nowrap; }
.tp-peer-val--tile { margin-left: 0; }

/* v225: Provider history (latest 10; "See full log" opens a scrollable full list) */
.tp-card.tp-history { margin: 28px 0 40px; padding: 22px 24px 18px; }
.tp-hist-title { margin: 0 0 14px; font-size: 18px; font-weight: 700; font-family: var(--font-medium); color: #172b3e; }
.tp-hist-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #172b3e; }
.tp-hist-table th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 13px; font-weight: 600; color: #6b7280; background: #f3f6f8; padding: 10px 14px; }
.tp-hist-table th:first-child { border-radius: 8px 0 0 8px; }
.tp-hist-table th:last-child { border-radius: 0 8px 8px 0; }
.tp-hist-table td { padding: 12px 14px; border-bottom: 1px solid #e3e8ec; vertical-align: top; }
.tp-hist-when { width: 230px; color: #44505e; white-space: nowrap; }
.tp-hist-extra { display: none; }
.tp-history.is-open .tp-hist-extra { display: table-row; }
.tp-history.is-open .tp-hist-scroll { max-height: 520px; overflow: auto; }
.tp-hist-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.tp-hist-count { font-size: 13px; color: #6b7280; }
.tp-hist-btn { font: inherit; font-size: 14px; font-weight: 600; color: #172b3e; background: #fff; border: 1px solid #b7c6cb; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.tp-hist-btn:hover { background: #eef4f5; border-color: #172b3e; }
@media (max-width: 600px) { .tp-hist-when { width: 150px; white-space: normal; } .tp-hist-foot { flex-direction: column; align-items: flex-start; } }

/* v228: log lines get a Site Map blue bullet, joined to the next line by a thin blue line */
.tp-hist-table td { border-bottom: 0; }
.tp-hist-table th.tp-hist-dot-h, .tp-hist-table td.tp-hist-dot { width: 34px; padding: 0; }
.tp-hist-table td.tp-hist-dot { position: relative; }
.tp-hist-table td.tp-hist-dot::before { content: ""; position: absolute; left: 14px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #65959e; box-shadow: 0 0 0 3px #fff; z-index: 1; }
.tp-hist-table td.tp-hist-dot::after { content: ""; position: absolute; left: 18.25px; top: 22px; width: 1.5px; height: 100%; background: #65959e; opacity: .7; }
.tp-hist-table tbody tr:last-child td.tp-hist-dot::after { display: none; }
.tp-history:not(.is-open) .tp-hist-table tbody tr:nth-child(10) td.tp-hist-dot::after { display: none; }
.tp-hist-table th:first-child { border-radius: 8px 0 0 8px; }

/* v229: Activity first (darker, larger), Date second */
.tp-hist-table td.tp-hist-act { font-size: 16px; line-height: 1.4; color: #0b1624; padding-top: 10px; }
.tp-hist-table td.tp-hist-when { width: 240px; text-align: right; font-size: 14px; color: #6b7280; padding-top: 12px; }
.tp-hist-table th.tp-hist-when-h { width: 240px; text-align: right; }
.tp-hist-table th:last-child { border-radius: 0 8px 8px 0; }
@media (max-width: 600px) { .tp-hist-table td.tp-hist-when, .tp-hist-table th.tp-hist-when-h { width: 120px; } }

/* v230: no column header row; Activity in bold */
.tp-hist-table td.tp-hist-act { font-weight: 700; }

/* v231: contact icons beside Sarah's name */
.tp-name-row { display: flex; align-items: center; gap: 22px; }
.tp-contact { display: inline-flex; align-items: center; gap: 10px; }
.tp-contact-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.38); color: #172b3e; cursor: pointer; transition: background .15s; }
.tp-contact-btn:hover, .tp-contact-btn:focus-visible { background: #fff; outline: none; }
.tp-contact-btn svg { width: 20px; height: 20px; }

/* v232: log type matches the overview ("Physician Group" = bold 16px navy; labels = 13px grey) */
.tp-hist-table td.tp-hist-act { font-size: 16px; font-weight: 700; line-height: 1.35; color: #172b3e; }
.tp-hist-table td.tp-hist-when { font-size: 13px; font-weight: 400; color: #6b7280; }

/* v233: contact icons open a small card with the details (email, phone, message) */
.tp-contact-item { position: relative; }
.tp-contact-btn[aria-expanded="true"] { background: #fff; }
.tp-pop { position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; width: 300px; box-sizing: border-box; padding: 14px 16px 14px; background: #fff; border: 1px solid #c3d6da; border-radius: 12px; box-shadow: 0 10px 28px rgba(23,43,62,.18); color: #172b3e; }
.tp-pop[hidden] { display: none; }
.tp-pop::before { content: ""; position: absolute; top: -6px; left: 14px; width: 10px; height: 10px; background: #fff; border-left: 1px solid #c3d6da; border-top: 1px solid #c3d6da; transform: rotate(45deg); }
.tp-pop-label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 2px; }
.tp-pop-value { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.tp-pop-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tp-pop-link { font-size: 14px; font-weight: 600; color: #172b3e; text-decoration: underline; text-underline-offset: 3px; }
.tp-pop-copy { font: inherit; font-size: 13px; font-weight: 600; color: #172b3e; background: #fff; border: 1px solid #b7c6cb; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.tp-pop-copy:hover { background: #eef4f5; border-color: #172b3e; }
.tp-pop { width: 340px; }
.tp-pop-value { word-break: normal; overflow-wrap: anywhere; }

/* v234: small red flag beside "No PDMP lookup on record" */
.tp-hist-flag { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: #e5322d; }
.tp-hist-flag svg { width: 15px; height: 15px; fill: currentColor; }

/* v235: the red flag beside Encounters shows only while Peer comparison is on */
.tp-peer-val.tp-hist-flag { margin-left: 4px; }
.tp-show-peers .tp-peer-val.tp-hist-flag { display: inline-flex; }
.tp-peer-val.tp-hist-flag { display: none; }
.tp-show-peers .tp-peer-val.tp-hist-flag { display: inline-flex; }

/* v237: patient-care rating beside the name */
.tp-rating { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; padding-left: 24px; border-left: 1px solid rgba(23,43,62,.25); color: #172b3e; }
.tp-stars { display: inline-flex; gap: 2px; }
.tp-star { display: inline-flex; color: rgba(255,255,255,.55); }
.tp-star.is-on { color: #f5a623; }
.tp-star svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.tp-rating-num { font-size: 18px; font-weight: 700; }
.tp-rating-link { font-size: 14px; font-weight: 600; color: #172b3e; text-decoration: underline; text-underline-offset: 3px; }
.tp-rating-link:hover { color: #000; }
@media (max-width: 760px) { .tp-name-row { flex-wrap: wrap; } .tp-rating { margin-left: 0; padding-left: 0; border-left: 0; } }

/* v238: rating sits under the name */
.tp-name-col { display: flex; flex-direction: column; gap: 6px; }
.tp-name-col .tp-rating { margin-left: 0; padding-left: 0; border-left: 0; }
.tp-name-col .tp-star svg { width: 18px; height: 18px; }
.tp-name-col .tp-rating-num { font-size: 16px; }
.tp-name-col .tp-rating-link { font-size: 13px; }
.tp-namebar .tp-band-inner { padding: 20px 40px; }

/* v239: reporting period above the tiles; key removed; tiles span the full content width */
.tp-period { margin: 28px 0 20px; max-width: 351px; }
.tp-layout.tp-layout--full { display: block; margin-bottom: 40px; }
.tp-period { margin-top: 0; }

/* v240: nine rows instead of a 3x3 grid; bar fill uses the Site Map blue */
.tp-layout--full .tp-grid { grid-template-columns: 1fr; gap: 12px; }
.tp-layout--full .tp-grid .tp-card { display: grid; grid-template-columns: 26px minmax(240px, 1.3fr) 150px minmax(180px, 1fr); grid-template-areas: "icon label num bar" "icon text num bar"; column-gap: 24px; row-gap: 4px; align-items: center; padding: 18px 24px; }
.tp-layout--full .tp-grid .tp-icon { position: static; grid-area: icon; align-self: center; width: 24px; height: 24px; }
.tp-layout--full .tp-grid .tp-icon svg { width: 24px; height: 24px; }
.tp-layout--full .tp-grid .tp-label { grid-area: label; margin: 0; padding: 0; font-size: 15px; white-space: normal; align-self: end; }
.tp-layout--full .tp-grid .tp-text { grid-area: text; align-self: start; }
.tp-layout--full .tp-grid .tp-num { grid-area: num; margin: 0; font-size: 34px; white-space: nowrap; }
.tp-layout--full .tp-grid .tp-bar { grid-area: bar; margin: 0; height: 12px; }
.tp-layout--full .tp-grid .tp-bar > span { background: #65959e; }
@media (max-width: 800px) {
  .tp-layout--full .tp-grid .tp-card { grid-template-columns: 26px 1fr auto; grid-template-areas: "icon label num" "icon text text" "bar bar bar"; row-gap: 8px; }
  .tp-layout--full .tp-grid .tp-bar { margin-top: 4px; }
}
.tp-layout--full .tp-grid .tp-card { grid-template-columns: 26px minmax(240px, 1.2fr) 300px minmax(160px, 1fr); }
@media (max-width: 1100px) { .tp-layout--full .tp-grid .tp-card { grid-template-columns: 26px minmax(200px, 1fr) 280px; grid-template-areas: "icon label num" "icon text num" "bar bar bar"; row-gap: 8px; } }
@media (max-width: 800px) {
  .tp-layout--full .tp-grid .tp-card { grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "icon label" "icon num" "icon text" "bar bar"; }
  .tp-layout--full .tp-grid .tp-num { font-size: 28px; white-space: normal; }
}

/* v241: Reviews column (stars) on the city practitioner table */
.pf-rev { display: inline-flex; align-items: center; gap: 8px; }
.pf-rev .tp-star { color: #d5dbe0; }
.pf-rev .tp-star.is-on { color: #f5a623; }
.pf-rev .tp-star svg { width: 16px; height: 16px; }
.pf-rev-num { font-weight: 700; color: #172b3e; }
.pf-rev-cnt { color: #6b7280; font-size: 13px; }

/* v242: livelier profile bars: brighter blue gradient with a soft gloss, grow-in on load */
.tp-layout--full .tp-grid .tp-bar { height: 14px; background: #e1edf0; box-shadow: inset 0 1px 2px rgba(23,43,62,.08); }
.tp-layout--full .tp-grid .tp-bar > span {
  background: linear-gradient(90deg, #5b929d 0%, #3fa6c0 55%, #43bfd6 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 2px 6px rgba(63,166,192,.35);
  position: relative; overflow: hidden;
  transform-origin: left center; animation: tpBarGrow .9s cubic-bezier(.22,.8,.3,1) both;
}
.tp-layout--full .tp-grid .tp-bar > span::after {
  content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
}
@keyframes tpBarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tp-layout--full .tp-grid .tp-bar > span { animation: none; } }

/* v244: bar colour preview swatches (temp Sarah page) */
.tp-period { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.tp-period .reporting-period { width: 351px; max-width: 100%; }
.tp-swatches { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.tp-swatches-label { font-size: 13px; color: #6b7280; margin-right: 4px; }
.tp-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d2d9; cursor: pointer; padding: 0; }
.tp-swatch.is-active { box-shadow: 0 0 0 2px #172b3e; }
.tp-swatch--concern { background: conic-gradient(#e5322d 0 33%, #f5a623 0 66%, #12a150 0); }
.tp-layout--full .tp-grid .tp-bar > span { background: linear-gradient(90deg, var(--tp-from, #5b929d) 0%, var(--tp-to, #43bfd6) 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 2px 6px rgba(23,43,62,.18); }
.tp-concern .tp-layout--full .tp-grid .tp-bar--high > span { background: linear-gradient(90deg, #d42a26, #ff6a5f); }
.tp-concern .tp-layout--full .tp-grid .tp-bar--moderate > span { background: linear-gradient(90deg, #e08e0b, #ffc65c); }
.tp-concern .tp-layout--full .tp-grid .tp-bar--low > span { background: linear-gradient(90deg, #0e8a45, #4fd48a); }

/* v245: bars are a flat violet (no gradient, no gloss); swatch preview removed */
.tp-layout--full .tp-grid .tp-bar > span { background: #915deb; box-shadow: none; }
.tp-layout--full .tp-grid .tp-bar > span::after { display: none; }

/* v246: number right after the icon; peer average on its own line under the description */
.tp-layout--full .tp-grid .tp-card { grid-template-columns: 26px 120px minmax(240px, 1.2fr) minmax(160px, 1fr); grid-template-areas: "icon num label bar" "icon num text bar" "icon num peer bar"; column-gap: 24px; row-gap: 4px; }
.tp-layout--full .tp-grid .tp-num { grid-area: num; align-self: center; }
.tp-layout--full .tp-grid .tp-peer-line { grid-area: peer; display: none; margin: 0; align-self: start; font-size: 13px; color: #6b7280; }
.tp-show-peers .tp-layout--full .tp-grid .tp-peer-line { display: block; }
.tp-layout--full .tp-grid .tp-peer-line .tp-peer-val--tile { font-size: 13px; }
@media (max-width: 1100px) { .tp-layout--full .tp-grid .tp-card { grid-template-columns: 26px 110px minmax(0, 1fr); grid-template-areas: "icon num label" "icon num text" "icon num peer" "bar bar bar"; row-gap: 4px; } .tp-layout--full .tp-grid .tp-bar { margin-top: 8px; } }
@media (max-width: 800px) { .tp-layout--full .tp-grid .tp-card { grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "icon num" "icon label" "icon text" "icon peer" "bar bar"; } }

/* v247: bars half height */
.tp-layout--full .tp-grid .tp-bar { height: 7px; }

/* v248: icon sits left of the header (number first); averages that raise a flag are red */
.tp-layout--full .tp-grid .tp-card { grid-template-columns: 120px 24px minmax(240px, 1.2fr) minmax(160px, 1fr); grid-template-areas: "num icon label bar" "num . text bar" "num . peer bar"; column-gap: 14px; }
.tp-layout--full .tp-grid .tp-num { margin-right: 10px; }
.tp-layout--full .tp-grid .tp-icon { align-self: center; }
.tp-peer-flagged, .tp-peer-flagged .tp-peer-val, .tp-peer-val.tp-peer-flagged { color: #e5322d; }
@media (max-width: 1100px) { .tp-layout--full .tp-grid .tp-card { grid-template-columns: 110px 24px minmax(0, 1fr); grid-template-areas: "num icon label" "num . text" "num . peer" "bar bar bar"; } }
@media (max-width: 800px) { .tp-layout--full .tp-grid .tp-card { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "num num" "icon label" ". text" ". peer" "bar bar"; } }
.tp-layout--full .tp-grid .tp-label { align-self: center; line-height: 24px; }
.tp-layout--full .tp-grid .tp-icon { align-self: center; width: 22px; height: 22px; }
.tp-layout--full .tp-grid .tp-icon svg { width: 22px; height: 22px; }
.tp-layout--full .tp-grid .tp-icon { transform: translateY(3px); }

/* v249: Provider history filter */
.tp-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.tp-hist-head .tp-hist-title { margin: 0; }
.tp-filter { position: relative; }
.tp-filter-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: #172b3e; background: #fff; border: 1px solid #b7c6cb; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.tp-filter-btn:hover, .tp-filter-btn[aria-expanded="true"] { background: #eef4f5; border-color: #172b3e; }
.tp-filter-btn svg { width: 15px; height: 15px; }
.tp-filter-badge { font-size: 12px; font-weight: 700; color: #fff; background: #65959e; border-radius: 999px; padding: 1px 8px; }
.tp-filter-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 320px; background: #fff; border: 1px solid #c9d6da; border-radius: 12px; box-shadow: 0 12px 32px rgba(23,43,62,.16); padding: 14px 16px 12px; }
.tp-filter-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.tp-filter-opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14px; color: #172b3e; }
.tp-filter-opt input { width: 16px; height: 16px; accent-color: #65959e; margin: 0; }
.tp-filter-text { flex: 1; }
.tp-filter-n { font-size: 13px; color: #6b7280; }
.tp-filter-actions { display: flex; gap: 16px; border-top: 1px solid #e3e8ec; margin-top: 8px; padding-top: 10px; }
.tp-filter-actions button { font: inherit; font-size: 13px; font-weight: 600; color: #3b6f7a; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.tp-hist-table tr.tp-hist-off { display: none !important; }
.tp-history .tp-hist-table tbody tr.tp-hist-last td.tp-hist-dot::after { display: none !important; }
.tp-history:not(.is-open) .tp-hist-table tbody tr:nth-child(10) td.tp-hist-dot::after { display: block; }
.tp-hist-empty td { padding: 22px 14px; color: #6b7280; font-size: 14px; }

/* v250: column headers above the nine rows */
.tp-grid-head { display: grid; grid-template-columns: 120px 24px minmax(240px, 1.2fr) minmax(160px, 1fr); column-gap: 14px; padding: 0 25px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.tp-gh-num { grid-column: 1; }
.tp-gh-act { grid-column: 2 / 4; }
.tp-gh-bar { grid-column: 4; }
@media (max-width: 1100px) { .tp-grid-head { display: none; } }

/* v253: profile overview + Encounters section on a temp profile */
.tp-overview { margin: 8px 0 12px; }
.tp-overview .pf-stats { margin-bottom: 40px; }
.tp-overview .pf-meds { max-width: none; }
.tp-enc-legend { display: flex; gap: 20px; font-size: 13px; color: #6b7684; margin: -4px 0 8px; }
.tp-enc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.tp-enc-key { display: inline-block; }
.tp-enc-key--bar { width: 12px; height: 12px; border-radius: 3px; background: #172b3e; }
.tp-enc-key--peer { width: 16px; height: 0; border-top: 2px dashed #0b6259; }
.tp-enc-chart { width: 100%; height: auto; display: block; margin-bottom: 22px; }
.tp-enc-bar { fill: #172b3e; }
.tp-enc-bar:hover { fill: #0b6259; }
.tp-enc-peer { stroke: #0b6259; stroke-width: 2; stroke-dasharray: 4 3; }
.tp-enc-grid { stroke: #e3e8ec; stroke-width: 1; }
.tp-enc-axis { font-size: 12px; fill: #6b7684; font-family: inherit; }
.tp-enc-rows { margin-top: 4px; }

/* v254: overview bars match the purple tiles; peer average details only with Peer comparison on */
.tp-overview .pf-med-track { height: 7px; border-radius: 999px; background: #e1edf0; }
.tp-overview .pf-med-bar { background: #915deb; border-radius: 999px; }
.tp-overview .pf-med.pf-tip-host:hover .pf-med-bar, .tp-overview .pf-med.pf-tip-host:focus .pf-med-bar { background: #915deb; }
.tp-overview .pf-med-peer { display: none; top: -6px; bottom: -6px; border-left: 2px dashed #172b3e; }
.tp-show-peers .tp-overview .pf-med-peer { display: block; }
.tp-overview .pf-med-num em { display: none; }
.tp-show-peers .tp-overview .pf-med-num em { display: inline; }

/* v255: concern level under the reviews */
.tp-concern-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #172b3e; }
.tp-concern-line .map-key-dot { width: 12px; height: 12px; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }

/* v256: name-strip stars are single-colour navy (no gold, no white); concern dot has no white ring */
.tp-namebar .tp-star { color: rgba(23,43,62,.28); }
.tp-namebar .tp-star.is-on { color: #172b3e; }
.tp-concern-line .map-key-dot { box-shadow: none; }

/* v257: overview sections: more air between them, larger headers, one centred column of equal width */
.tp-overview { padding: 24px 0 8px; }
.tp-overview .pf-stats, .tp-overview .pf-sec { max-width: 980px; margin-left: auto; margin-right: auto; }
.tp-overview .pf-stats { margin-bottom: 72px; }
.tp-overview .pf-sec { margin-bottom: 72px; }
.tp-overview .pf-sec-title { margin-bottom: 24px; font-size: 22px; }
.tp-overview .pf-sec-title span { font-size: 14px; margin-left: 10px; }
.tp-overview .pf-meds { gap: 18px; }
.tp-overview .pf-dx { gap: 56px; justify-content: space-between; flex-wrap: nowrap; }
.tp-overview .pf-donut { width: 220px; height: 220px; }
.tp-overview .pf-dx-list { max-width: none; min-width: 0; }
.tp-overview .pf-net { max-width: none; }
@media (max-width: 760px) { .tp-overview .pf-dx { flex-wrap: wrap; } }

/* v258: overview sections span the same width as the content above and below */
.tp-overview .pf-stats, .tp-overview .pf-sec { max-width: none; margin-left: 0; margin-right: 0; }
.tp-overview .pf-net { max-width: 860px; }

/* v259: smaller compliance numbers */
.tp-layout--full .tp-grid .tp-num { font-size: 26px; }
@media (max-width: 800px) { .tp-layout--full .tp-grid .tp-num { font-size: 24px; } }

/* v261: timeline bullets use the tile purple */
.tp-hist-table td.tp-hist-dot::before { background: #915deb; }

/* v262: merged stat strip (two rows) with peer averages */
.tp-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 0; border-bottom: 1px solid #e3e8ec; }
.tp-stats .pf-stat { border-top: 1px solid #e3e8ec; padding: 22px 0 22px 24px; border-left: 1px solid #e3e8ec; }
.tp-stats .pf-stat:nth-child(4n+1) { padding-left: 0; border-left: 0; }
.tp-stats .pf-stat-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.tp-stats .tp-stat-peer { font-size: 16px; font-weight: 400; color: #6b7280; }
.tp-stats .tp-stat-peer.tp-peer-flagged { color: #e5322d; }
.tp-stats .tp-peer-val { display: none; }
.tp-show-peers .tp-stats .tp-peer-val { display: inline; }
.tp-show-peers .tp-stats .tp-peer-val.tp-hist-flag { display: inline-flex; }
.tp-stats .pf-stat-label { font-size: 13px; }
@media (max-width: 900px) { .tp-stats { grid-template-columns: repeat(2, 1fr); } .tp-stats .pf-stat:nth-child(4n+1) { padding-left: 24px; border-left: 1px solid #e3e8ec; } .tp-stats .pf-stat:nth-child(2n+1) { padding-left: 0; border-left: 0; } }
.tp-stats::after { content: ""; border-top: 1px solid #e3e8ec; border-left: 1px solid #e3e8ec; }
@media (max-width: 900px) { .tp-stats::after { display: none; } }

/* v263: Compliance card (one outline, like Provider history); Peer comparison switch beside the Reporting period in tile purple */
.tp-card.tp-compliance { margin: 8px 0 40px; padding: 22px 24px 8px; display: block; }
.tp-compliance .tp-layout--full { margin-bottom: 0; }
.tp-compliance .tp-grid-head { padding: 0; margin: 0 0 6px; }
.tp-compliance .tp-grid { gap: 0; }
.tp-compliance .tp-layout--full .tp-grid .tp-card { border: 0; border-top: 1px solid #e3e8ec; border-radius: 0; background: none; box-shadow: none; padding: 20px 0; }
.tp-period .tp-switch { margin-bottom: 8px; }
.tp-switch[aria-checked="true"] .tp-switch-track { background: #915deb; }
.tp-switch:focus-visible .tp-switch-track { outline-color: #915deb; }
.tp-period .tp-switch { align-self: flex-start; margin: 40px 0 0; }

/* v264: more room under the Compliance title; no rules between the nine metrics */
.tp-compliance .tp-hist-title { margin-bottom: 28px; }
.tp-compliance .tp-layout--full .tp-grid .tp-card { border-top: 0; }
.tp-compliance .tp-grid-head { margin-bottom: 4px; }

/* v265: Home map + Key line up with the content column below (same max width and 40px gutters) */
body.mo-site .patterns-band-hero { box-sizing: border-box; max-width: var(--page-max-w); margin-left: auto; margin-right: auto; padding: 32px 40px 0; }
@media (max-width: 900px) { body.mo-site .patterns-band-hero { padding: 24px 24px 0; } }

/* v268: concern shown as a plain, colourless chip (trial on Mary Sorensen) */
.tp-concern-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #fff; color: #172b3e; font-size: 12.5px; font-weight: 700; line-height: 1.4; letter-spacing: .01em; }

/* v269: concern chip matches the contact icon buttons (same translucent fill), with space above */
.tp-concern-line { margin-top: 8px; }
.tp-concern-chip { background: rgba(255,255,255,.38); color: #172b3e; }

/* v270: chip on white; colour only for Low concern */
.tp-concern-chip { background: #fff; color: #172b3e; }
.tp-concern-chip--low { color: #0b7a3c; }

/* v271: no colour on the concern chip */
.tp-concern-chip--low { color: #172b3e; }

/* v272: concern chip in navy with white text */
.tp-concern-chip, .tp-concern-chip--low { background: #172b3e; color: #fff; }

/* v273: stats strip is a closed box (left/right edges drawn) with more room around the text */
.tp-stats { border: 1px solid #e3e8ec; }
.tp-stats .pf-stat { border-top: 0; border-left: 1px solid #e3e8ec; padding: 28px 30px; }
.tp-stats .pf-stat:nth-child(n+5) { border-top: 1px solid #e3e8ec; }
.tp-stats .pf-stat:nth-child(4n+1) { padding-left: 30px; border-left: 0; }
.tp-stats::after { border-top: 1px solid #e3e8ec; border-left: 1px solid #e3e8ec; }
@media (max-width: 900px) {
  .tp-stats .pf-stat, .tp-stats .pf-stat:nth-child(4n+1) { padding: 24px 22px; border-top: 1px solid #e3e8ec; border-left: 1px solid #e3e8ec; }
  .tp-stats .pf-stat:nth-child(-n+2) { border-top: 0; }
  .tp-stats .pf-stat:nth-child(2n+1) { padding-left: 22px; border-left: 0; }
}

/* v275: home "Recently viewed" tiles are circles */
body.mo-site .patterns-band-recent .profile-photo { border-radius: 50%; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback { padding: 0 26px; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback::after { font-size: 20px; }
body.mo-site .patterns-band-recent .profile-card-surface.is-clickable:hover { box-shadow: none; }
body.mo-site .patterns-band-recent .profile-card-surface.is-clickable:hover .profile-photo { box-shadow: var(--shadow-card); }

/* v277: Recently viewed circles are much smaller and navy */
body.mo-site .patterns-band-recent .profile-grid { grid-template-columns: repeat(6, 140px); justify-content: start; gap: 22px 28px; }
body.mo-site .patterns-band-recent .profile-photo,
body.mo-site .patterns-band-recent .profile-photo.img-fallback { background: #172b3e; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback { padding: 0 16px; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback::after { font-size: 14px; line-height: 1.25; }
body.mo-site .patterns-band-recent .profile-name { font-size: 15px; }
body.mo-site .patterns-band-recent .concern-line { white-space: nowrap; gap: 7px; font-size: 13px; }
body.mo-site .patterns-band-recent .concern-dot { width: 12px; height: 12px; }

/* v278: Recently viewed circles are navy outlines with navy text; eight across fill the row */
body.mo-site .patterns-band-recent .profile-grid { grid-template-columns: repeat(8, 140px); justify-content: space-between; gap: 22px 0; }
body.mo-site .patterns-band-recent .profile-photo,
body.mo-site .patterns-band-recent .profile-photo.img-fallback { background: transparent; box-shadow: inset 0 0 0 2px #172b3e; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback::after { color: #172b3e; }
body.mo-site .patterns-band-recent .profile-card-surface.is-clickable:hover .profile-photo { box-shadow: inset 0 0 0 2px #172b3e, var(--shadow-card); }
@media (max-width: 1240px) { body.mo-site .patterns-band-recent .profile-grid { grid-template-columns: repeat(auto-fill, 140px); justify-content: start; gap: 22px 24px; } }

/* v279: home map base is a neutral, slightly lighter greyscale (no warm cast); pulses keep their colours */
.patterns-band-map--ne { background: #e6e7e8; }
.patterns-band-map--ne .patterns-band-map-stage > img { filter: grayscale(1) brightness(1.07) contrast(1.06); }
.patterns-band-map--ne .patterns-band-map-stage::before { background: rgba(255, 255, 255, 0.16); }

/* v280: Recently viewed circles: mid grey fill, white text */
body.mo-site .patterns-band-recent .profile-photo,
body.mo-site .patterns-band-recent .profile-photo.img-fallback { background: #6b7280; box-shadow: none; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback::after { color: #fff; }
body.mo-site .patterns-band-recent .profile-card-surface.is-clickable:hover .profile-photo { box-shadow: var(--shadow-card); }

/* v281: circles a bit smaller (card columns stay 140px wide) */
body.mo-site .patterns-band-recent .profile-photo { width: 116px; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback { padding: 0 8px; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback::after { font-size: 13px; }
body.mo-site .patterns-band-recent .profile-photo.img-fallback::after { font-size: 12.5px; }

/* v282: Recently viewed circles in the page's green */
body.mo-site .patterns-band-recent .profile-photo,
body.mo-site .patterns-band-recent .profile-photo.img-fallback { background: #12a150; }

/* v283: hunter green, less bright */
body.mo-site .patterns-band-recent .profile-photo,
body.mo-site .patterns-band-recent .profile-photo.img-fallback { background: #355e3b; }

/* v284: Recently viewed circles in the bar purple */
body.mo-site .patterns-band-recent .profile-photo,
body.mo-site .patterns-band-recent .profile-photo.img-fallback { background: #915deb; }

/* v285: Recently viewed circles in the supplied blue-grey */
body.mo-site .patterns-band-recent .profile-photo,
body.mo-site .patterns-band-recent .profile-photo.img-fallback { background: #75999c; }

/* v286: RedFlag wordmark on the navy bar (home page) */
.brand-name--onnavy, .topnav-brand:hover .brand-name--onnavy { color: #fff; font-size: 20px; }
body.mo-site .topnav-brand .brand-mark:not(.brand-mark--client) { height: 38px; }

/* v287: group tiles under Recently viewed: rounded squares, same size/colour as the provider circles */
body.mo-site .patterns-band-recent .profile-photo--square { border-radius: 14px; }
body.mo-site .patterns-band-recent #recentGroups { margin-top: 30px; }
body.mo-site .patterns-band-recent #recentGroups .profile-photo.img-fallback { padding: 0 10px; }

/* v288: Risk tiles at the bottom of the home page, coloured from the scatter-plot palette */
.mo-home-risk { margin-top: 72px; padding-bottom: 8px; }
.mo-home-risk .patterns-band-title { margin-bottom: 20px; }
.mo-home-risk .exposure-grid .card { border: 1px solid #dfe8e8; box-shadow: 0 1px 2px rgba(23,43,62,.04); }
.mo-home-risk .dot.critical, .mo-home-risk .exposure-bar-fill.critical { background: #e0242f; }
.mo-home-risk .dot.high, .mo-home-risk .exposure-bar-fill.high { background: #f27b2b; }
.mo-home-risk .dot.medium, .mo-home-risk .exposure-bar-fill.medium { background: #e8b13a; }
.mo-home-risk .exposure-bar-track { background: #e6eded; }
.mo-home-risk .reg-folder { border-color: #dfe8e8; }
body.mo-site .patterns-band-recent #recentGroups { margin-top: 44px; }

/* v290: "See all" tile at the end of the Providers and Group practices rows */
body.mo-site .patterns-band-recent .profile-photo.profile-photo--seeall {
  background: transparent; box-shadow: inset 0 0 0 1.5px #172b3e; color: #172b3e;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px;
  font-weight: 700; font-size: 15px; margin-bottom: 0;
}
body.mo-site .patterns-band-recent .profile-photo--seeall svg { width: 18px; height: 18px; }
body.mo-site .patterns-band-recent .profile-card--seeall .profile-card-surface.is-clickable:hover .profile-photo { background: #172b3e; color: #fff; }

/* v291: no dropdown chips in the corner of the home Risk cards */
.mo-home-risk .card-head .select { display: none; }
.mo-home-risk .card-head { min-height: 0; }

/* v292: See all tiles: no stroke, soft light fill instead */
body.mo-site .patterns-band-recent .profile-photo.profile-photo--seeall { box-shadow: none; background: #e6eded; }
body.mo-site .patterns-band-recent .profile-card--seeall .profile-card-surface.is-clickable:hover .profile-photo { box-shadow: none; }

/* v292b: See all tiles: no background colour at all (text + arrow only) */
body.mo-site .patterns-band-recent .profile-photo.profile-photo--seeall { background: transparent; }
body.mo-site .patterns-band-recent .profile-card--seeall .profile-card-surface.is-clickable:hover .profile-photo { background: transparent; color: #172b3e; text-decoration: underline; }

/* v293: Explore Prescribing Patterns buttons: icon, title and text left-aligned */
.patterns-band .drilldown-category-grid--home .drilldown-category-btn { align-items: flex-start; text-align: left; padding: 28px 26px 24px; }
.patterns-band .drilldown-category-grid--home .drilldown-category-label { justify-content: flex-start; text-align: left; }
.patterns-band .drilldown-category-grid--home .drilldown-category-summary { text-align: left; padding: 0; }

/* v293: regulatory flag rows on the home Risk tile are links */
a.reg-folder { text-decoration: none; color: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
a.reg-folder:hover { background: #f3f7f7; border-color: #c9d8d8; }

/* v294: six pattern tiles across on the home page */
.patterns-band .drilldown-category-grid--home { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .patterns-band .drilldown-category-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.patterns-band .drilldown-category-grid--home .drilldown-category-btn { padding: 26px 20px 22px; }
.patterns-band .drilldown-category-grid--home .drilldown-category-summary { font-size: 13.5px; }

/* v294: concern level in the provider list views */
.flag-table .concern-line { white-space: nowrap; }

/* v294: Specialty page: table with bars */
.sp-shell { padding: 26px 28px 30px; }
.sp-head, .sp-row, .sp-foot { display: grid; grid-template-columns: minmax(220px, 1.3fr) 90px minmax(260px, 2.4fr) 70px; align-items: center; column-gap: 24px; }
.sp-head { padding: 10px 14px; font-size: 13px; font-weight: 600; color: #4a5568; background: #f3f5f8; border-radius: 10px; }
.sp-list { list-style: none; margin: 4px 0 0; padding: 0; }
.sp-row { padding: 16px 14px; border-bottom: 1px solid #e6ebf0; cursor: default; transition: background .12s; }
.sp-row:hover, .sp-row:focus-visible { background: #f5f8fa; outline: none; }
.sp-name { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #172b3e; }
.sp-name .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sp-num, .sp-pct { text-align: right; font-size: 15px; color: #172b3e; font-variant-numeric: tabular-nums; }
.sp-pct { font-weight: 700; }
.sp-bar-cell { display: flex; align-items: center; gap: 14px; }
.sp-track { flex: 1; height: 12px; border-radius: 6px; background: #e8eef0; overflow: hidden; }
.sp-bar { display: block; height: 100%; border-radius: 6px; }
.sp-val { min-width: 54px; text-align: right; font-size: 15px; color: #172b3e; font-variant-numeric: tabular-nums; }
.sp-foot { padding: 16px 14px 4px; font-weight: 700; }
.sp-foot .sp-name { font-weight: 700; }
.sp-foot .sp-bar-cell { justify-content: flex-end; }
@media (max-width: 800px) { .sp-head, .sp-row, .sp-foot { grid-template-columns: 1.4fr 60px 1.6fr 56px; column-gap: 12px; } }
.sp-head .sp-num, .sp-head .sp-pct { font-size: 13px; font-weight: 600; color: #4a5568; }

/* v296: provider list pages (flag + city): concern as a micro chip under the name, plain-language key on top */
.flag-table .col-name .pf-name-cell { display: block; }
.list-concern { display: block; margin-top: 6px; }
.list-concern .tp-concern-chip { padding: 2px 9px; font-size: 11.5px; font-weight: 600; }
.lk-key { display: flex; align-items: flex-start; gap: 10px 28px; flex-wrap: wrap; margin: 0 0 22px; }
.lk-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #172b3e; padding-top: 3px; }
.lk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.lk-item { display: inline-flex; align-items: center; gap: 10px; }
.lk-item .tp-concern-chip { padding: 2px 10px; font-size: 12px; font-weight: 600; }
.lk-desc { font-size: 14px; color: #5a6676; }
.lk-key { flex-direction: column; gap: 10px; }
.lk-list { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.lk-item .tp-concern-chip { min-width: 98px; text-align: center; }

/* v297: concern chips in the provider lists and their key: soft colour-coded fills */
.list-concern .tp-concern-chip--high, .lk-item .tp-concern-chip--high { background: #fde3e1; color: #a8231c; }
.list-concern .tp-concern-chip--moderate, .lk-item .tp-concern-chip--moderate { background: #fdefd0; color: #8a5200; }
.list-concern .tp-concern-chip--low, .lk-item .tp-concern-chip--low { background: #dcf2e3; color: #166a38; }

/* v298: flag-type numbers on the home Risk tile link to the provider lists */
.exposure-bar-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.exposure-bar-link:hover, .exposure-bar-link:focus-visible { color: #172b3e; border-bottom-color: currentColor; }

/* v299: group practice square tiles 20% darker than the provider circles */
body.mo-site .patterns-band-recent .profile-photo.profile-photo--square:not(.profile-photo--seeall) { background: #5e7a7d; }

/* v300: info icon beside the flag page title */
.drilldown-category-title .flag-title-info { width: 26px; height: 26px; margin-left: -2px; flex: none; }
.drilldown-category-title .flag-title-info svg { width: 20px; height: 20px; color: #6b7684; }
.drilldown-category-title .flag-title-info:hover svg, .drilldown-category-title .flag-title-info:focus-visible svg { color: #172b3e; }

/* v301: inline bold inside hover-card notes */
.utm-tip-note b.tip-b { display: inline; font-weight: 700; color: #0f1c2e; }

/* v302: concern key — label on the left, the three chips to its right */
.lk-key { flex-direction: row; align-items: flex-start; gap: 10px 32px; }
.lk-title { padding-top: 2px; min-width: 150px; }
@media (max-width: 720px) { .lk-key { flex-direction: column; } }

/* v303: Sort menu on the provider list pages */
.ls-menu { position: relative; }
.ls-btn { gap: 8px; }
.ls-btn .ls-cur { font-weight: 500; color: #5a6676; }
.ls-btn .ls-cur::before { content: "\00b7"; margin-right: 8px; color: #9aa4b0; }
.ls-btn > svg:last-child { width: 14px; height: 14px; transition: transform .15s; }
.ls-menu.is-open .ls-btn > svg:last-child { transform: rotate(180deg); }
.ls-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 250px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #dfe6e6; border-radius: 12px; box-shadow: 0 10px 28px rgba(23,43,62,.14); }
.ls-list[hidden] { display: none; }
.ls-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 0; background: transparent; border-radius: 8px; font: inherit; font-size: 14px; color: #172b3e; text-align: left; cursor: pointer; }
.ls-list button:hover, .ls-list button:focus-visible { background: #f1f5f5; outline: none; }
.ls-list button svg { width: 15px; height: 15px; opacity: 0; color: #172b3e; }
.ls-list button[aria-checked="true"] { font-weight: 700; }
.ls-list button[aria-checked="true"] svg { opacity: 1; }

/* v304: concern key as a right-aligned, outlined legend box with a caption underneath */
.lk-key { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: fit-content; max-width: 100%; margin: 20px 0 22px auto; padding: 14px 18px 10px; border: 1px solid #dfe6e6; border-radius: 12px; background: #fff; }
.lk-key .lk-list { gap: 8px; }
.lk-key .lk-title { padding: 8px 0 0; min-width: 0; width: 100%; border-top: 1px solid #edf1f1; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #6b7684; gap: 4px; }
.lk-key .lk-title .pf-info { width: 20px; height: 20px; }
.lk-key .lk-title .pf-info svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .lk-key { margin-left: 0; } }

/* v305: Export beside search; Filter + Sort on the right */
.flag-mgmt-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.flag-mgmt-left .flag-search { flex: 1 1 260px; }
.flag-mgmt-actions .ls-menu .ls-btn svg:first-child { width: 15px; height: 15px; }
.lf-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #172b3e; color: #fff; font-size: 11px; font-weight: 700; }
.lf-count[hidden] { display: none; }
.lf-list { min-width: 270px; }
.lf-list ul { list-style: none; margin: 0; padding: 0; }
.lf-opt { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #172b3e; }
.lf-opt:hover { background: #f1f5f5; }
.lf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lf-box { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border: 1.5px solid #b9c4c4; border-radius: 5px; background: #fff; }
.lf-box svg { width: 12px; height: 12px; color: #fff; opacity: 0; stroke-width: 3; }
.lf-opt input:checked + .lf-box { background: #172b3e; border-color: #172b3e; }
.lf-opt input:checked + .lf-box svg { opacity: 1; }
.lf-opt input:focus-visible + .lf-box { outline: 2px solid #65959e; outline-offset: 2px; }
.lf-txt small { display: block; font-size: 12px; color: #6b7684; margin-top: 1px; }
.lf-foot { border-top: 1px solid #edf1f1; margin-top: 4px; padding: 6px 6px 2px; }
.lf-clear { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: #5a6676; cursor: pointer; padding: 6px; }
.lf-clear:hover { color: #172b3e; }
.flag-row[hidden] { display: none; }
.lf-empty td { padding: 28px 16px; text-align: center; color: #6b7684; font-size: 14px; }
.lf-empty[hidden] { display: none; }

/* v306: concern key left-aligned, no divider */
.lk-key { margin: 20px auto 22px 0; }
.lk-key .lk-title { border-top: 0; padding-top: 0; }

/* v307: search + export sit to the right of the concern key */
.lk-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 20px 0 22px; }
.lk-row .lk-key { margin: 0; }
.lk-row .flag-mgmt-left { flex: 0 1 560px; justify-content: flex-end; }
.lk-row .flag-mgmt-left .flag-search { flex: 1 1 280px; max-width: 420px; }
.lk-row + .flag-mgmt-card .flag-mgmt-toolbar { justify-content: flex-end; }
@media (max-width: 900px) { .lk-row .flag-mgmt-left { flex: 1 1 100%; justify-content: flex-start; } }

/* v308: bold provider names, more room above the chip, navy chip text */
.flag-table .pf-name-cell { font-weight: 700; color: #172b3e; }
.flag-table .list-concern { margin-top: 10px; }
.list-concern .tp-concern-chip--high, .list-concern .tp-concern-chip--moderate, .list-concern .tp-concern-chip--low,
.lk-item .tp-concern-chip--high, .lk-item .tp-concern-chip--moderate, .lk-item .tp-concern-chip--low { color: #172b3e; }

/* v309: Export + search back in the table toolbar (Export first) */
.flag-mgmt-left { justify-content: flex-start; }
.flag-mgmt-left .flag-search { flex: 1 1 260px; max-width: 420px; }

/* v310: whole exposure row is a hot spot into the provider list */
a.exposure-bar-row--link { display: flex; text-decoration: none; color: inherit; margin: -8px -12px; padding: 8px 12px; border-radius: 12px; cursor: pointer; transition: background .15s; }
a.exposure-bar-row--link:hover, a.exposure-bar-row--link:focus-visible { background: #f1f5f5; outline: none; }
a.exposure-bar-row--link:hover .exposure-bar-label, a.exposure-bar-row--link:focus-visible .exposure-bar-label { color: #172b3e; }
a.exposure-bar-row--link:hover .exposure-bar-value { text-decoration: underline; text-underline-offset: 3px; }
a.exposure-bar-row--link:focus-visible { box-shadow: 0 0 0 2px #65959e; }

/* v310: concern chips = neutral chip with a colored dot, navy text (option G) */
.list-concern .tp-concern-chip, .lk-item .tp-concern-chip { background: #eef1f4; color: #172b3e; display: inline-flex; align-items: center; gap: 6px; border: 0; }
.list-concern .tp-concern-chip::before, .lk-item .tp-concern-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: #12a150; }
.list-concern .tp-concern-chip--high, .lk-item .tp-concern-chip--high { background: #eef1f4; color: #172b3e; }
.list-concern .tp-concern-chip--moderate, .lk-item .tp-concern-chip--moderate { background: #eef1f4; color: #172b3e; }
.list-concern .tp-concern-chip--low, .lk-item .tp-concern-chip--low { background: #eef1f4; color: #172b3e; }
.list-concern .tp-concern-chip--high::before, .lk-item .tp-concern-chip--high::before { background: #e5322d; }
.list-concern .tp-concern-chip--moderate::before, .lk-item .tp-concern-chip--moderate::before { background: #f5a623; }
.list-concern .tp-concern-chip--low::before, .lk-item .tp-concern-chip--low::before { background: #12a150; }
.lk-item .tp-concern-chip { min-width: 112px; justify-content: flex-start; padding-left: 10px; }

/* v311: CTAs share the Explore-tile palette and "cover" hover (pale teal fill + teal ring) */
body.tele-nav .btn { transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }
body.tele-nav .btn:hover, body.tele-nav .btn:focus-visible { background: #e9f1f3; border-color: #65959e; box-shadow: 0 0 0 1px #65959e; color: #172b3e; outline: none; }
body.tele-nav .btn.primary { background: #4a7a83; border-color: #4a7a83; color: #fff; }
body.tele-nav .btn.primary:hover, body.tele-nav .btn.primary:focus-visible { background: #e5eff1; border-color: #578b93; box-shadow: 0 0 0 1px #578b93; color: #172b3e; }
body.tele-nav .btn.accent { background: #fff; border-color: #65959e; color: #3f6f78; }
body.tele-nav .btn.accent:hover, body.tele-nav .btn.accent:focus-visible { background: #e5eff1; border-color: #578b93; box-shadow: 0 0 0 1px #578b93; color: #172b3e; }
body.tele-nav .ls-btn:hover, body.tele-nav .ls-menu.is-open .ls-btn { background: #e9f1f3; border-color: #65959e; box-shadow: 0 0 0 1px #65959e; }

/* v312: Regulatory Flags tile uses the Exposure bar layout, in the patterns-area palette (blue, purple, teal, slate) */
.mo-home-risk .dot.rf-c0, .mo-home-risk .exposure-bar-fill.rf-c0 { background: #2f80c8; }
.mo-home-risk .dot.rf-c1, .mo-home-risk .exposure-bar-fill.rf-c1 { background: #6a55c0; }
.mo-home-risk .dot.rf-c2, .mo-home-risk .exposure-bar-fill.rf-c2 { background: #17a89a; }
.mo-home-risk .dot.rf-c3, .mo-home-risk .exposure-bar-fill.rf-c3 { background: #4b5a70; }
.rf-bars-note { margin: 16px 0 0; font-size: 12px; color: #6b7684; }

/* v313: concern chips get a stroke matching their dot */
.list-concern .tp-concern-chip, .lk-item .tp-concern-chip { border: 1.5px solid; padding-top: 1px; padding-bottom: 1px; }
.list-concern .tp-concern-chip--high, .lk-item .tp-concern-chip--high { border-color: #e5322d; }
.list-concern .tp-concern-chip--moderate, .lk-item .tp-concern-chip--moderate { border-color: #f5a623; }
.list-concern .tp-concern-chip--low, .lk-item .tp-concern-chip--low { border-color: #12a150; }

/* v314: Regulatory Flags bars all use the site purple */
.mo-home-risk .dot.rf-c0, .mo-home-risk .dot.rf-c1, .mo-home-risk .dot.rf-c2, .mo-home-risk .dot.rf-c3,
.mo-home-risk .exposure-bar-fill.rf-c0, .mo-home-risk .exposure-bar-fill.rf-c1, .mo-home-risk .exposure-bar-fill.rf-c2, .mo-home-risk .exposure-bar-fill.rf-c3 { background: #915deb; }

/* v315: chip stroke at half width */
.list-concern .tp-concern-chip, .lk-item .tp-concern-chip { border-width: 0.75px; padding-top: 1.75px; padding-bottom: 1.75px; }

/* v316: home Risk bar tiles — purple bars, no dots beside the labels */
.mo-home-risk .exposure-bars .exposure-bar-label .dot { display: none; }
.mo-home-risk .exposure-bars .exposure-bar-label { gap: 0; }
.mo-home-risk .exposure-bar-fill.critical, .mo-home-risk .exposure-bar-fill.high, .mo-home-risk .exposure-bar-fill.medium, .mo-home-risk .exposure-bar-fill.low { background: #915deb; }

/* v317: smaller dots inside the concern chips */
.list-concern .tp-concern-chip::before, .lk-item .tp-concern-chip::before { width: 6px; height: 6px; }
.list-concern .tp-concern-chip, .lk-item .tp-concern-chip { gap: 5px; }

/* v321: flag donuts — clickable legend rows */
a.legend-row--link { text-decoration: none; color: inherit; margin: -5px -10px; padding: 5px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
a.legend-row--link:hover, a.legend-row--link:focus-visible { background: #f1f5f5; outline: none; }
a.legend-row--link:hover .legend-label { color: #172b3e; }
a.legend-row--link:hover .legend-value { text-decoration: underline; text-underline-offset: 3px; }

/* v322: donut pieces grow on hover (home Risk row) */
.mo-home-risk .donut-svg { overflow: visible; }
.mo-home-risk .donut-seg { transform-origin: 100px 100px; transition: transform .18s ease; }
.mo-home-risk .donut-seg:hover, .mo-home-risk .donut-seg.is-hover { transform: scale(1.07); }
.mo-home-risk .donut-seg-link { cursor: pointer; outline: none; }
.mo-home-risk .donut-seg-link:focus-visible .donut-seg { transform: scale(1.07); }

/* v323: donut pieces darken on hover instead of growing */
.mo-home-risk .donut-seg { transform: none !important; transition: filter .15s ease; }
.mo-home-risk .donut-seg:hover, .mo-home-risk .donut-seg.is-hover, .mo-home-risk .donut-seg-link:focus-visible .donut-seg { filter: brightness(0.78) saturate(1.1); }

/* v324: click a city on the home map -> summary card (mock interaction) */
.map-pop { position: absolute; z-index: 8; width: 300px; padding: 16px 18px 16px; background: #fff; border: 1px solid #dfe6e6; border-radius: 14px; box-shadow: 0 14px 36px rgba(23,43,62,.22); text-align: left; font-size: 13px; color: #44505e; }
.map-pop[hidden] { display: none; }
.map-pop.mp--r { margin-left: 26px; }
.map-pop.mp--l { margin-left: -326px; }
.map-pop.mp--down { margin-top: -18px; }
.map-pop.mp--up { transform: translateY(-100%); margin-top: 18px; }
.map-pop { animation: mpIn .16s ease-out; }
@keyframes mpIn { from { opacity: 0; } to { opacity: 1; } }
.mp-close { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border: 0; background: transparent; border-radius: 50%; font-size: 20px; line-height: 1; color: #6b7684; cursor: pointer; }
.mp-close:hover { background: #eef1f4; color: #172b3e; }
.mp-head { display: flex; align-items: center; gap: 8px; padding-right: 26px; }
.mp-head .map-key-dot { flex: none; margin: 0; }
.mp-title { font-size: 16px; font-weight: 800; color: #172b3e; }
.mp-level { margin-left: auto; font-size: 11px; font-weight: 600; color: #6b7684; white-space: nowrap; }
.mp-lead { margin: 8px 0 12px; font-size: 13.5px; color: #172b3e; }
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mp-stats div { background: #f4f7f7; border-radius: 10px; padding: 8px 10px; }
.mp-stats b { display: block; font-size: 16px; color: #172b3e; }
.mp-stats span { font-size: 11px; color: #6b7684; }
.mp-list { list-style: none; margin: 0 0 14px; padding: 0; }
.mp-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #edf1f1; }
.mp-name { font-weight: 700; color: #172b3e; font-size: 13px; }
.mp-list .list-concern { margin: 0; }
.mp-cta { width: 100%; justify-content: center; text-decoration: none; }
.map-halo.is-selected .map-halo-dot { box-shadow: 0 0 0 4px rgba(23,43,62,.25); }
.patterns-band-map--ne .map-city-label.is-selected { font-weight: 800; }
.map-pop.mp--l { margin-left: 0; left: max(12px, calc(var(--x) - 326px)) !important; }
.map-pop.mp--edge { margin-left: 0; left: 12px !important; }

/* v326: Flagged Visits donut — block-arrow pieces, darker outline on hover */
.mo-home-risk .donut-svg--arrows .donut-seg { transition: stroke-width .12s ease; stroke: transparent; stroke-width: 0; stroke-linejoin: miter; stroke-miterlimit: 6; paint-order: stroke; }
.mo-home-risk .donut-svg--arrows .donut-seg:hover, .mo-home-risk .donut-svg--arrows .donut-seg.is-hover,
.mo-home-risk .donut-svg--arrows .donut-seg-link:focus-visible .donut-seg { filter: none; stroke: var(--sd); stroke-width: 3; }

/* v327: interlocking arrows — a hairline stroke in the piece's own color hides anti-alias seams */
.mo-home-risk .donut-svg--arrows .donut-seg { stroke: var(--sc); stroke-width: 0.6; }
.mo-home-risk .donut-svg--arrows .donut-seg:hover, .mo-home-risk .donut-svg--arrows .donut-seg.is-hover,
.mo-home-risk .donut-svg--arrows .donut-seg-link:focus-visible .donut-seg { stroke: var(--sd); stroke-width: 3; }

/* v329: Flagged Visits by Type — icon pictogram (no donut) */
.vi-list { --vi-size: 13px; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.vi-row { display: block; text-decoration: none; color: inherit; margin: 0 -12px; padding: 9px 12px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.vi-row:hover, .vi-row:focus-visible { background: #f1f5f5; outline: none; }
.vi-top { display: flex; align-items: center; gap: 10px; }
.vi-badge { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; box-shadow: 0 0 0 0 var(--cd); transition: box-shadow .15s; }
.vi-badge svg { width: 16px; height: 16px; }
.vi-row:hover .vi-badge, .vi-row:focus-visible .vi-badge { box-shadow: 0 0 0 2px var(--cd); }
.vi-label { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #44505e; }
.vi-row:hover .vi-label { color: #172b3e; }
.vi-val { font-size: 14px; font-weight: 800; color: #172b3e; }
.vi-row:hover .vi-val { text-decoration: underline; text-underline-offset: 3px; }
.vi-units { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0 40px; }
.vi-u { width: var(--vi-size); height: var(--vi-size); overflow: hidden; display: inline-block; color: var(--c); flex: none; }
.vi-u svg { width: var(--vi-size); height: var(--vi-size); display: block; stroke-width: 2.2; }
.vi-row:hover .vi-u { color: var(--cd); }
.vi-key { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: #6b7684; }
.vi-key-icon svg { width: 13px; height: 13px; display: block; }
.vi-list { --vi-size: 22px; }
.vi-units { gap: 6px; margin-top: 10px; }
.vi-u svg { stroke-width: 1.8; }

/* v330: lighter grey chip fill */
.list-concern .tp-concern-chip, .lk-item .tp-concern-chip,
.list-concern .tp-concern-chip--high, .list-concern .tp-concern-chip--moderate, .list-concern .tp-concern-chip--low,
.lk-item .tp-concern-chip--high, .lk-item .tp-concern-chip--moderate, .lk-item .tp-concern-chip--low { background: #f7f8fa; }

/* v331: chip stroke a touch thicker (0.75px -> 1.1px) */
.list-concern .tp-concern-chip, .lk-item .tp-concern-chip { border-width: 1.1px; padding-top: 1.4px; padding-bottom: 1.4px; }

/* v332: Flagged Visits by Type — icon badge + simple purple bar on grey (no icon rows, no ring) */
.vi-list { gap: 4px; }
.vi-badge, .vi-row:hover .vi-badge, .vi-row:focus-visible .vi-badge { box-shadow: none; }
.vi-bar { height: 9px; margin: 10px 0 0 40px; background: #e4ebeb; border-radius: 5px; overflow: hidden; }
.vi-bar i { display: block; height: 100%; background: #915deb; border-radius: 5px; }
.vi-row:hover .vi-bar i { background: #7d46d6; }

/* v339: Visits by Flag Type — smaller icon badge, sits level with its label/number */
.vi-top { gap: 9px; }
.vi-badge { width: 25px; height: 25px; position: relative; top: 1px; }
.vi-badge svg { width: 13px; height: 13px; }
.vi-bar { margin-left: 34px; }

/* v340: Providers by Corporate Structure — whole donut + center number open the all-providers list (no per-slice links) */
.mo-home-risk a.donut-wrap--link { text-decoration: none; color: inherit; cursor: pointer; border-radius: 16px; outline: none; }
.mo-home-risk .donut-wrap--link .donut-seg { transition: filter .15s ease; }
.mo-home-risk .donut-wrap--link:hover .donut-seg, .mo-home-risk .donut-wrap--link:focus-visible .donut-seg { filter: brightness(0.82) saturate(1.1); }
.mo-home-risk .donut-wrap--link:hover .donut-center-value, .mo-home-risk .donut-wrap--link:focus-visible .donut-center-value { text-decoration: underline; text-underline-offset: 4px; }
.mo-home-risk .donut-wrap--link .donut-seg.is-hover { filter: brightness(0.78) saturate(1.1); }

/* v341: Visits by Flag Type — icon badges in the bar purple, nudged lower */

/* v342: Visits by Flag Type — icons nudged lower, ranked high to low (bars back to purple in v343) */
.vi-badge, .vi-row:hover .vi-badge, .vi-row:focus-visible .vi-badge { top: 5px; }

/* v344: Visits by Flag Type — icon badges back to the four clinic colors (same size and position as v343) */
.vi-badge, .vi-row:hover .vi-badge, .vi-row:focus-visible .vi-badge { background: var(--c); }

/* v346: provider lists — no chips; a colored dot to the left of the name (key matches) */
.flag-table .col-name .pf-name-cell { display: inline-flex; align-items: center; gap: 10px; }
.pf-cdot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; background: #12a150; }
.pf-cdot--high { background: #e5322d; }
.pf-cdot--moderate { background: #f5a623; }
.pf-cdot--low { background: #12a150; }
.lk-item .lk-lab { display: inline-flex; align-items: center; gap: 9px; min-width: 112px; font-size: 13px; font-weight: 600; color: #172b3e; }

/* v348: slightly smaller concern dots beside provider names */
.pf-cdot { width: 8px; height: 8px; }
.flag-table .col-name .pf-name-cell { gap: 9px; }
.lk-item .lk-lab .pf-cdot { width: 8px; height: 8px; }

/* v351: concern key — bold black numbers */
.lk-desc .lk-n { font-weight: 800; color: #172b3e; }

/* v354: CPOM tooltip links + the law page */
.pf-info-tip--law .tip-law-link { display: inline-block; margin: 0 12px 0 0; font-weight: 700; color: #172b3e; text-decoration: underline; text-underline-offset: 3px; }
.pf-info-tip--law .tip-law-link:hover { color: #0a7c91; }
.pf-info-tip--law .tip-law-all { margin-right: 0; }
.utm-tip.dx-tip.pf-info-tip--law { pointer-events: auto; }
.law-lead-sub { margin: -4px 0 18px; }
.law-intro { padding: 22px 24px; max-width: 920px; }
.law-intro > p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: #2c3a4a; }
.law-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.law-three > div { background: #f7f8fa; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.law-three b { font-size: 13px; color: #172b3e; }
.law-three span { font-size: 14px; line-height: 1.5; color: #5a6676; }
.law-h2 { margin: 34px 0 4px; font-size: 20px; color: #172b3e; }
.law-h2-sub { margin: 0 0 14px; max-width: 760px; }
.law-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.law-grid--3 { grid-template-columns: repeat(3, 1fr); }
.law-card { padding: 20px 22px; scroll-margin-top: 90px; }
.law-card--lead { grid-column: 1 / -1; border-color: #c9d6d6; box-shadow: 0 0 0 1px #c9d6d6 inset; }
.law-card:target { box-shadow: 0 0 0 2px #915deb inset; }
.law-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.law-card-head h3 { margin: 0; font-size: 18px; color: #172b3e; }
.law-tag { font-size: 12px; font-weight: 600; color: #5a6676; background: #eef1f4; border-radius: 999px; padding: 2px 10px; }
.law-stat { margin: 8px 0 10px; font-size: 13px; color: #5a6676; }
.law-stat b { color: #172b3e; font-weight: 800; }
.law-stat--none { color: #8a95a3; }
.law-sum { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: #2c3a4a; }
.law-card h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .02em; color: #6b7684; font-weight: 600; }
.law-cites { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #44505e; }
.law-cites b { color: #172b3e; font-weight: 700; }
.law-cites span { color: #6b7684; }
.law-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.law-src { font-size: 13.5px; font-weight: 600; color: #172b3e; text-decoration: underline; text-underline-offset: 3px; }
.law-src:hover { color: #0a7c91; }
.law-note { margin: 28px 0 12px; max-width: 760px; font-size: 13px; line-height: 1.5; color: #6b7684; }
@media (max-width: 900px) { .law-three, .law-grid, .law-grid--3 { grid-template-columns: 1fr; } }

/* v355: law pages — stat label */
.law-stat-lab { display: inline-block; min-width: 128px; color: #6b7684; font-weight: 600; }

/* v356: Laws holding page */
a.law-index-card { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
a.law-index-card:hover, a.law-index-card:focus-visible { border-color: #65959e; box-shadow: 0 0 0 1px #65959e; outline: none; }
.law-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.law-flag { font-size: 12.5px; font-weight: 600; color: #172b3e; background: #eef1f4; border-radius: 999px; padding: 3px 11px; }
.law-open { font-size: 13.5px; font-weight: 700; color: #172b3e; text-decoration: underline; text-underline-offset: 3px; }

/* v357: Medical Practitioners in the new list UI */
.flag-table td.col-struct { white-space: nowrap; }

/* v358: Patients in the new list UI */
.pt-note { padding: 0 20px 12px; margin: 0; }
.pt-flag { font-weight: 700; color: #172b3e; }
.pt-flag--none { font-weight: 400; color: #8a95a3; }
.flag-table td.col-nowrap { white-space: nowrap; }

/* v361: Number of Providers with Flags — table-style rows (dot, label, count, bar over grey) */
.fb-list { margin-top: 4px; }
.fb-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 34px 104px; align-items: center; column-gap: 12px; padding: 14px 4px; margin: 0 -4px; border-top: 1px solid #e3eaea; text-decoration: none; color: inherit; border-radius: 0; transition: background .15s; }
.fb-row:first-child { border-top: 0; }
.fb-row:hover, .fb-row:focus-visible { background: #f1f5f5; outline: none; }
.fb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fb-label { font-size: 13.5px; color: #172b3e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-val { font-size: 14px; color: #172b3e; text-align: right; }
.fb-row:hover .fb-val { text-decoration: underline; text-underline-offset: 3px; }
.fb-bar { height: 9px; border-radius: 5px; background: #e4ebeb; overflow: hidden; }
.fb-bar i { display: block; height: 100%; background: var(--c); border-radius: 5px; }
.fb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; border-top: 1px solid #e3eaea; font-size: 12.5px; color: #6b7684; }
.fb-total b { font-size: 14px; font-weight: 800; color: #172b3e; }

/* v364: Patient profile (Hudson Valley) */
.pf-name-link { color: inherit; font-weight: inherit; text-decoration: none; }
.pf-name-link:hover, .pf-name-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
.pt-why { font-size: 14px; font-weight: 500; color: #3d4a5a; margin-left: 12px; }
.tp-concern-line:has(.pt-why) { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.pt-ov-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pt-ov-link:hover { color: #6a2fd1; }
.pt-fb { max-width: 560px; }
.pt-hist-sub { display: block; font-size: 13px; font-weight: 500; color: #5a6676; margin-top: 2px; }
.pt-states { display: flex; align-items: center; gap: 18px; max-width: 760px; flex-wrap: wrap; }
.pt-state { display: flex; align-items: center; gap: 12px; }
.pt-state-code { width: 52px; height: 52px; border-radius: 12px; background: #e9defb; color: #3a1d75; font-weight: 800; font-size: 17px; display: grid; place-items: center; flex: none; }
.pt-state-role { font-size: 14px; font-weight: 600; color: #172b3e; max-width: 190px; line-height: 1.3; }
.pt-state-link { flex: 1 1 120px; min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #172b3e; }
.pt-state-link i { display: block; width: 100%; height: 2px; background: #915deb; position: relative; }
.pt-state-link i::after { content: ""; position: absolute; right: 0; top: -4px; border-left: 8px solid #915deb; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.pt-state-note { margin: 14px 0 0; font-size: 14px; color: #3d4a5a; }

/* v365: Cases in the new list UI */
.case-id { display: inline-flex; flex-direction: column; gap: 2px; }
.case-id-name { font-weight: 700; color: #172b3e; }
.case-id-num { font-size: 12px; color: #6b7684; font-weight: 500; letter-spacing: .02em; }
.pf-name-cell:has(.case-id) { align-items: flex-start; }
.pf-name-cell:has(.case-id) .pf-cdot { margin-top: 0; }
.pf-name-cell:has(.case-id) { align-items: center; }
.legal-ref-list a.legal-ref-link:hover { border-color: #65959e; }

/* v366: patient Demographics tile */
.tp-demo { margin-top: 28px; }
.tp-demo .pt-demo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
@media (max-width: 900px) { .tp-demo .pt-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tp-demo .pt-demo-grid { grid-template-columns: minmax(0, 1fr); } }

/* v370: Profile (Hudson Valley), social-profile layout */
.me-card { padding: 0; overflow: hidden; margin-bottom: 20px; }
.me-banner { position: relative; height: 170px; }
.me-banner-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.me-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #172b3e; display: grid; place-items: center; cursor: pointer; }
.me-icon-btn svg { width: 18px; height: 18px; }
.me-icon-btn:hover { background: #fff; box-shadow: 0 0 0 1px #65959e; }
.me-banner-btn { position: absolute; top: 16px; right: 18px; }
.me-card-body { position: relative; padding: 0 28px 28px; }
.me-avatar { display: grid; place-items: center; width: 132px; height: 132px; margin-top: -66px; border-radius: 50%; background: #172b3e; color: #fff; font-size: 40px; font-weight: 700; letter-spacing: .02em; border: 5px solid #fff; box-sizing: border-box; }
.me-edit-btn { position: absolute; top: 14px; right: 24px; background: transparent; }
.me-id-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 14px; flex-wrap: wrap; }
.me-name { margin: 0; font-size: 28px; line-height: 1.15; color: #172b3e; }
.me-role { margin: 6px 0 0; font-size: 16px; color: #172b3e; }
.me-meta { margin: 4px 0 0; font-size: 14px; color: #6b7684; }
.me-org { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: #172b3e; }
.me-org small { display: block; font-size: 12.5px; font-weight: 500; color: #6b7684; margin-top: 2px; }
.me-org-mark { width: 44px; height: 44px; border-radius: 8px; background: #2f6c75; color: #fff; display: grid; place-items: center; flex: none; }
.me-org-mark svg { width: 22px; height: 22px; }
.me-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.me-goal { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; max-width: 520px; padding: 14px 18px; border-radius: 12px; background: #e3eef0; }
.me-goal-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4a6670; }
.me-goal-text { font-size: 16px; font-weight: 700; line-height: 1.4; color: #172b3e; }
.me-sec { padding: 24px 28px; margin-bottom: 20px; }
.me-sec .pf-sec-title { margin: 0 0 14px; }
.me-text { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.6; color: #2b3a4a; }
.me-quote { margin: 16px 0 0; max-width: 760px; padding-left: 16px; border-left: 3px solid #65959e; font-size: 16px; line-height: 1.55; font-style: italic; color: #2b3a4a; }
.me-traits { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: #172b3e; }
.me-traits span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7684; margin-bottom: 4px; }
.me-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; align-items: stretch; }
.me-cols .me-sec { margin-bottom: 0; }
.me-list { list-style: none; margin: 0; padding: 0; }
.me-list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid #e3eaea; font-size: 14.5px; line-height: 1.45; color: #2b3a4a; }
.me-list li:first-child { border-top: 0; padding-top: 0; }
.me-ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: #4a6670; }
.me-ico svg { width: 18px; height: 18px; }
.me-bang { flex: none; width: 24px; height: 24px; margin: 2px 2px 0; border-radius: 50%; background: #fde8e7; color: #e5322d; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.me-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.me-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #2b3a4a; }
.me-steps a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.me-steps a:hover { color: #2f6c75; }
.me-step { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e3eef0; color: #172b3e; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.me-need { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #e3eaea; font-size: 15px; line-height: 1.55; color: #2b3a4a; max-width: 820px; }
.me-need b { color: #172b3e; }
@media (max-width: 1000px) { .me-cols { grid-template-columns: minmax(0, 1fr); } .me-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .me-card-body { padding: 0 18px 22px; } .me-sec { padding: 20px 18px; } .me-avatar { width: 108px; height: 108px; margin-top: -54px; font-size: 32px; } }

/* v370 fixes: keep the avatar's negative margin inside the body, and size the name above .card h2 */
.me-card-body { display: flow-root; }
.me-edit-btn { top: 14px; }
.me-card .me-name { font-size: 28px; line-height: 1.15; font-weight: 700; margin: 0; }

/* v371: Edit Scoring Model (Hudson Valley) */
.sm-facts { display: flex; flex-wrap: wrap; padding: 0; margin-bottom: 20px; }
.sm-fact { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; padding: 20px 26px; border-left: 1px solid #e3eaea; }
.sm-fact:first-child { border-left: 0; }
.sm-fact-label { font-size: 12.5px; color: #6b7684; }
.sm-fact-value { font-size: 20px; font-weight: 700; color: #172b3e; display: inline-flex; align-items: center; gap: 8px; }
.sm-fact-value.is-unbalanced { color: #e5322d; }
.sm-fact-note { font-size: 13px; color: #6b7684; }
.sm-live { width: 9px; height: 9px; border-radius: 50%; background: #12a150; }
.sm-comp { display: flex; align-items: flex-start; gap: 14px; }
.sm-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 6px; }
.sm-dot--hollow { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.sm-comp-name { display: block; font-weight: 700; font-size: 15px; color: #172b3e; }
.sm-comp-desc { display: block; font-size: 13.5px; line-height: 1.45; color: #5a6676; margin-top: 2px; max-width: 520px; }
.sm-table td.sm-seen { font-size: 13.5px; color: #3d4a5a; white-space: nowrap; }
.sm-share { display: flex; align-items: center; gap: 12px; }
.sm-share-pct { width: 34px; font-weight: 700; color: #172b3e; font-size: 14px; }
.sm-share-track { flex: 1; height: 9px; border-radius: 5px; background: #e4ebeb; overflow: hidden; min-width: 90px; }
.sm-share-track i { display: block; height: 100%; background: var(--c); border-radius: 5px; transition: width .15s; }
.sm-table .weight-input { border-color: #d7e0e0; }
.sm-table .weight-input:focus { border-color: #65959e; box-shadow: 0 0 0 1px #65959e; outline: none; }
.sm-how { margin-top: 28px; }
.sm-how .pf-sec-title { margin: 0 0 8px; }
.sm-how-text { margin: 0 0 16px; max-width: 720px; font-size: 15px; line-height: 1.6; color: #2b3a4a; }

/* v372: profile photo slot (falls back to initials when no image is present) */
.me-avatar { position: relative; overflow: hidden; }
.me-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* v376: Notifications (Hudson Valley) */
.nt-card { padding: 8px 28px 20px; }
.nt-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e3eaea; flex-wrap: wrap; }
.nt-tabs { display: flex; gap: 22px; }
.nt-tab { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 15px; font-weight: 600; color: #6b7684; cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; gap: 8px; align-items: center; }
.nt-tab span { font-size: 12px; font-weight: 700; color: #4a6670; background: #e3eef0; border-radius: 999px; padding: 1px 8px; }
.nt-tab.is-active { color: #172b3e; border-bottom-color: #65959e; }
.nt-group { padding-top: 22px; }
.nt-group-title { margin: 0 0 6px; font-size: 16px; color: #172b3e; display: flex; align-items: baseline; gap: 12px; }
.nt-group-title span { font-size: 13px; font-weight: 500; color: #6b7684; }
.nt-row { display: grid; grid-template-columns: 10px 28px minmax(0, 1fr) auto; column-gap: 14px; align-items: start; padding: 16px 10px; margin: 0 -10px; border-top: 1px solid #e3eaea; text-decoration: none; color: inherit; border-radius: 0; transition: background .15s; }
.nt-group-title + .nt-row { border-top: 0; }
.nt-row:hover, .nt-row:focus-visible { background: #f1f5f5; outline: none; }
.nt-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 9px; }
.nt-row.is-unread .nt-dot { background: #2f6c75; }
.nt-main { display: flex; flex-direction: column; gap: 3px; }
.nt-title { font-size: 15px; font-weight: 600; color: #172b3e; }
.nt-row.is-unread .nt-title { font-weight: 800; }
.nt-text { font-size: 14px; line-height: 1.5; color: #4a5767; max-width: 760px; }
.nt-time { font-size: 13px; color: #6b7684; white-space: nowrap; padding-top: 2px; }
.nt-empty { margin: 28px 0 8px; text-align: center; font-size: 15px; color: #6b7684; }
.nt-card.is-unread-only .nt-row:not(.is-unread) { display: none; }
.nt-card.is-unread-only .nt-group:not(:has(.is-unread)) { display: none; }
@media (max-width: 600px) { .nt-card { padding: 8px 16px 16px; } .nt-row { grid-template-columns: 8px 24px minmax(0, 1fr); } .nt-time { grid-column: 3; } }

/* v376: footer brand matches the top-bar logo (mark + REDFLAG wordmark), footer colour unchanged */
.footer-brand--logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-powered { font-size: 12px; font-weight: 500; color: #fff; opacity: .85; margin-right: 2px; }
.footer-brand--logo .brand-mark { height: 30px; }
.footer-brand--logo .brand-name { display: inline; font-size: 20px; }

/* v377: footer lockup moved to the bottom-right and scaled down ~35% */
.footer-copy { order: 1; }
.footer-links { order: 2; }
.footer-brand--logo { order: 3; margin-left: 28px; gap: 8px; }
.footer-powered { font-size: 12px; }
.footer-brand--logo .brand-mark { height: 20px; }
.footer-brand--logo .brand-name { font-size: 13px; }
@media (max-width: 720px) { .footer-copy { order: 4; } .footer-brand--logo { margin-left: auto; } }

/* v377: Help Center (Hudson Valley) */
.hc-search { max-width: 560px; margin-bottom: 8px; }
.hc-sec { padding-top: 28px; }
.hc-sec .pf-sec-title { margin: 0 0 14px; }
.hc-steps { max-width: 900px; }
.hc-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 64px; align-items: start; }
.hc-q { border-top: 1px solid #e3eaea; }
.hc-q:last-child { border-bottom: 1px solid #e3eaea; }
.hc-q summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-size: 15.5px; font-weight: 600; color: #172b3e; position: relative; }
.hc-q summary::-webkit-details-marker { display: none; }
.hc-q summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid #65959e; border-bottom: 2px solid #65959e; transform: rotate(45deg); transition: transform .15s; }
.hc-q[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hc-q summary:hover { color: #2f6c75; }
.hc-q p { margin: 0 0 18px; max-width: 640px; font-size: 15px; line-height: 1.6; color: #2b3a4a; }
.hc-q a, .hc-contact a { color: #2f6c75; text-decoration: underline; text-underline-offset: 3px; }
.hc-law { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #e3eaea; text-decoration: none; color: inherit; }
.hc-law:first-child { border-top: 0; padding-top: 0; }
.hc-law strong { display: block; font-size: 15px; color: #172b3e; }
.hc-law small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: #5a6676; }
.hc-law svg { flex: none; width: 18px; height: 18px; color: #65959e; }
.hc-law:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hc-laws { margin-bottom: 12px; }
.hc-gloss { margin: 0; }
.hc-term { padding: 11px 0; border-top: 1px solid #e3eaea; }
.hc-term:first-child { border-top: 0; padding-top: 0; }
.hc-term dt { font-size: 14px; font-weight: 700; color: #172b3e; }
.hc-term dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #4a5767; }
.hc-contact { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: #2b3a4a; }
@media (max-width: 900px) { .hc-cols { grid-template-columns: minmax(0, 1fr); } }

/* v378: Cases as large folders (3 x 2) */
.cf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; margin: 36px 0 40px; }
.cf { position: relative; display: block; height: 232px; text-decoration: none; color: inherit; }
.cf-back { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; background: #9dbfc5; border-radius: 0 20px 20px 20px; }
.cf-back::before { content: ""; position: absolute; left: 0; top: -22px; width: 38%; height: 26px; background: #9dbfc5; border-radius: 14px 18px 0 0; }
.cf-paper { position: absolute; left: 18px; right: 18px; top: 38px; height: 120px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(23,43,62,.18); transition: transform .18s; }
.cf-paper::before, .cf-paper::after { content: ""; position: absolute; left: 18px; height: 6px; border-radius: 3px; background: #e3eaea; }
.cf-paper::before { top: 18px; width: 46%; }
.cf-paper::after { top: 34px; width: 30%; }
.cf-front { position: absolute; left: 0; right: 0; bottom: 0; top: 84px; background: #dbe9eb; border-radius: 20px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 -1px 0 rgba(255,255,255,.5) inset; transition: background .18s; }
.cf:hover .cf-paper, .cf:focus-visible .cf-paper { transform: translateY(-10px); }
.cf:hover .cf-front, .cf:focus-visible .cf-front { background: #e6f0f2; }
.cf:focus-visible { outline: none; }
.cf:focus-visible .cf-front { box-shadow: 0 0 0 2px #65959e; }
.cf-name { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; line-height: 1.25; color: #172b3e; }
.cf-name .pf-cdot { flex: none; margin: 0; }
.cf-status { font-size: 14.5px; font-weight: 600; color: #2b3a4a; padding-left: 18px; }
.cf-last { font-size: 13.5px; color: #5a6676; padding-left: 18px; margin-top: auto; }
@media (max-width: 1000px) { .cf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cf-grid { grid-template-columns: minmax(0, 1fr); } }

/* v379: single grey icon beside the Risk tile titles */
.card-head h2.tile-title { display: flex; align-items: center; gap: 10px; }
.tile-ico { flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center; color: #8a95a3; }
.tile-ico svg { width: 20px; height: 20px; }

/* v380: Cases folders about one third smaller */
.cf-grid { grid-template-columns: repeat(3, 272px); gap: 34px 28px; margin: 30px 0 36px; justify-content: start; }
.cf { height: 156px; }
.cf-back { top: 15px; border-radius: 0 14px 14px 14px; }
.cf-back::before { top: -15px; height: 18px; border-radius: 10px 12px 0 0; }
.cf-paper { left: 12px; right: 12px; top: 26px; height: 82px; border-radius: 6px; }
.cf-paper::before { left: 12px; top: 12px; height: 4px; }
.cf-paper::after { left: 12px; top: 23px; height: 4px; }
.cf-front { top: 56px; border-radius: 14px; padding: 17px 18px 14px; gap: 4px; }
.cf:hover .cf-paper, .cf:focus-visible .cf-paper { transform: translateY(-7px); }
.cf-name { font-size: 15px; gap: 8px; }
.cf-status { font-size: 12.5px; padding-left: 15px; }
.cf-last { font-size: 12px; padding-left: 15px; }
@media (max-width: 1000px) { .cf-grid { grid-template-columns: repeat(2, 272px); } }
@media (max-width: 640px) { .cf-grid { grid-template-columns: minmax(0, 272px); } }

/* v382: narrower folders (about 20% less), no last-opened line, group centred */
.cf-grid { grid-template-columns: repeat(3, 218px); justify-content: center; gap: 34px 26px; }
.cf { height: 140px; }
.cf-paper { height: 70px; }
.cf-front { top: 52px; padding: 16px 14px 14px; justify-content: center; gap: 5px; }
.cf-name { font-size: 14px; gap: 7px; }
.cf-status { font-size: 12.5px; padding-left: 14px; }
@media (max-width: 800px) { .cf-grid { grid-template-columns: repeat(2, 218px); } }
@media (max-width: 520px) { .cf-grid { grid-template-columns: minmax(0, 218px); } }
.cf-paper::before { top: 10px; }
.cf-paper::after { top: 19px; }

/* v386: Red Flag mark worked into the profile banner, in tones of the banner palette */
.me-banner { overflow: hidden; }
.me-banner-logo { position: absolute; width: auto; display: block; pointer-events: none; user-select: none; }
.me-banner-logo--lg { height: 230px; left: 30%; top: -26px; }
.me-banner-logo--sm { height: 100px; left: 76%; top: 34px; }

/* v387: Data page (UX4 medical officer) — teal and purple only, field chips like the site chips, even gaps between field groups */
body.tele-nav .ds-ing-a { background: #65959e !important; }
body.tele-nav .ds-ing-b { background: var(--purple) !important; }
body.tele-nav .ds-sources-main .exposure-bar-fill.low,
body.tele-nav .ds-sources-main .exposure-bar-fill.high,
body.tele-nav .ds-sources-main .exposure-bar-fill.critical { background: #65959e; }   /* one teal for every field bar, whatever the completion */
body.tele-nav .ds-sources-main .flag-table code { font-family: inherit; font-size: 12px; font-weight: 600; background: #eef1f4; color: #172b3e; border-radius: 999px; padding: 3px 11px; line-height: 1.4; letter-spacing: .01em; }
body.tele-nav .ds-gap-row td { padding: 0; height: 24px; border: 0; background: transparent; }
body.tele-nav .flag-table tbody tr.ds-gap-row:first-child { display: none; }
body.tele-nav .flag-table tbody tr:has(+ .ds-gap-row) td { border-bottom: 0; }
body.tele-nav .ds-field-group-row td { border-radius: var(--radius-sm); padding: 12px 14px; }

/* v388: Cases — Laws tile on the left, concern key on the right, one row */
body.tele-nav .cases-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
body.tele-nav .cases-bottom > .card, body.tele-nav .cases-bottom > .lk-key { margin: 0; height: 100%; }
@media (max-width: 900px) { body.tele-nav .cases-bottom { grid-template-columns: minmax(0, 1fr); } }
body.tele-nav .cases-bottom > .lk-key { width: 100%; max-width: none; justify-content: center; align-items: flex-start; gap: 14px; padding: 20px 24px; box-sizing: border-box; border-radius: var(--radius-lg, 16px); }

/* v389: group profile page (Fairhaven) — provider rows */
body.tele-nav .gp-list { display: flex; flex-direction: column; border: 1px solid #dfe6e6; border-radius: 12px; overflow: hidden; background: #fff; }
body.tele-nav .gp-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) 20px; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid #edf1f1; color: #172b3e; text-decoration: none; font-size: 14px; }
body.tele-nav .gp-row:last-child { border-bottom: 0; }
body.tele-nav .gp-row:hover { background: #f4f8f8; }
body.tele-nav .gp-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.tele-nav .gp-name b { font-weight: 700; }
body.tele-nav .gp-fig { color: #6b7684; }
body.tele-nav .gp-fig b { color: #172b3e; font-weight: 700; }
body.tele-nav .gp-go { width: 16px; height: 16px; color: #9aa4b0; }
body.tele-nav .gp-list + .lk-key { margin: 16px 0 0 auto; }
@media (max-width: 720px) { body.tele-nav .gp-row { grid-template-columns: minmax(0, 1fr) 20px; } body.tele-nav .gp-row .gp-fig { display: none; } }
body.tele-nav .gp-band .tp-ov-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { body.tele-nav .gp-band .tp-ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v390: Fraud Risk page (UX4 medical officer) — Home tile style */
body.tele-nav .fr-sec { margin: 0 0 56px; }
body.tele-nav .fr-sec-title { margin: 0 0 20px; font-size: 20px; font-weight: 700; color: #1c2230; }
body.tele-nav .fr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { body.tele-nav .fr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.tele-nav .fr-grid { grid-template-columns: minmax(0, 1fr); } }
body.tele-nav .fr-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 24px 22px; background: #dfeaec; border: 1px solid #c3d6da; border-radius: 16px; color: #1c2230; text-decoration: none; }
body.tele-nav .fr-tile:hover { background: #e9f1f3; }
body.tele-nav .fr-tile-icon { width: 34px; height: 34px; margin-bottom: 6px; color: #3d4a5c; display: flex; }
body.tele-nav .fr-tile-icon svg { width: 34px; height: 34px; }
body.tele-nav .fr-tile-title { font-size: 19px; font-weight: 800; line-height: 1.25; }
body.tele-nav .fr-tile-stat { font-size: 28px; font-weight: 800; line-height: 1.2; margin-top: 6px; }
body.tele-nav .fr-tile-desc { font-size: 13.5px; line-height: 1.5; color: #3a4756; flex: 1; }
body.tele-nav .fr-tile-go { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: #1c2230; }
body.tele-nav .fr-tile-go svg { width: 15px; height: 15px; }
body.tele-nav .fr-sec .section-block { margin: 0; }

/* v390: Fraud Risk tweaks; save-profile button beside the contact icons; Saved page in the new style */
body.tele-nav .fr-sec .card-head .select { display: none; }
body.tele-nav .fr-sec-title { margin-top: 0; }
body.tele-nav .topbar + .fr-sec, body.tele-nav .page > .fr-sec:first-child { margin-top: 28px; }
body.tele-nav .tp-contact-btn.tp-save-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.38); color: #172b3e; }
body.tele-nav .tp-contact-btn.tp-save-btn:hover, body.tele-nav .tp-contact-btn.tp-save-btn:focus-visible { background: #fff; color: #172b3e; }
body.tele-nav .tp-contact-btn.tp-save-btn svg { width: 20px; height: 20px; }
body.tele-nav .tp-contact-btn.tp-save-btn.is-saved { background: #172b3e; color: #fff; }
body.tele-nav .tp-contact-btn.tp-save-btn.is-saved svg { fill: currentColor; }
body.tele-nav .result-save-btn:hover, body.tele-nav .result-save-btn.is-saved { color: #172b3e; }
body.tele-nav .saved-columns[hidden] { display: none; }
body.tele-nav .saved-columns { align-items: start; gap: 24px; }
body.tele-nav .saved-profile-link { color: #172b3e; text-decoration: none; font-weight: 700; }
body.tele-nav .saved-profile-link:hover { text-decoration: underline; text-decoration-color: #65959e; text-underline-offset: 3px; }
body.tele-nav .saved-profile-thumb { background: #568089; }

/* v391: group page — concern key sits to the right of Warning Signs */
body.tele-nav .gp-warn { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
body.tele-nav .gp-warn .fb-list { flex: 0 1 480px; min-width: 300px; }
body.tele-nav .gp-warn .lk-key { margin: 0; }

/* v392: provider list rows are links (no See profile button) */
body.tele-nav .flag-table tr[data-href] { cursor: pointer; }
body.tele-nav .flag-table tr[data-href]:hover td { background: #f4f8f8; }
body.tele-nav .flag-table tr[data-href]:focus-visible { outline: 2px solid #65959e; outline-offset: -2px; }

/* v393: the word High on a profile's concern chip is red (on the navy chip) */
body.tele-nav .tp-namebar .tp-chip-hi { color: #ff5a55; }

/* v394: taller provider list rows (more air above and below each name; text size unchanged) */
body.tele-nav .flag-table:has(.pf-name-cell) tbody td { padding-top: 26px; padding-bottom: 26px; }
body.tele-nav .gp-row { padding-top: 22px; padding-bottom: 22px; }

/* v395: saved bookmark keeps the same background as the other contact icons; the icon itself turns solid navy */
body.tele-nav .tp-contact-btn.tp-save-btn.is-saved { background: rgba(255,255,255,.38); color: #172b3e; }
body.tele-nav .tp-contact-btn.tp-save-btn.is-saved:hover, body.tele-nav .tp-contact-btn.tp-save-btn.is-saved:focus-visible { background: #fff; }
body.tele-nav .tp-contact-btn.tp-save-btn.is-saved svg { fill: #172b3e; stroke: #172b3e; }

/* v396: the whole "High concern" label on a profile's chip is red */
body.tele-nav .tp-namebar .tp-concern-chip--high { color: #ff5a55; }

/* v399: Saved page — three columns (Providers, Groups, Patients), minimal meta */
body.tele-nav .saved-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { body.tele-nav .saved-columns { grid-template-columns: minmax(0, 1fr); } }
body.tele-nav .saved-profile-meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* v400: stat tiles — number, label, then the average and flag together on a third row */
body.tele-nav .tp-stats .pf-stat { display: flex; flex-direction: column; }
body.tele-nav .tp-stats .tp-stat-sub { display: none; align-items: center; gap: 4px; margin-top: 8px; }
body.tele-nav.tp-show-peers .tp-stats .tp-stat-sub { display: flex; }
body.tele-nav .tp-stats .tp-stat-sub .tp-peer-val { display: inline; }
body.tele-nav .tp-stats .tp-stat-sub .tp-peer-val.tp-hist-flag { display: inline-flex; margin-left: 2px; }

/* v401: Saved page rows — name plus the concern chip only */
body.tele-nav .saved-profile-meta { display: block; -webkit-line-clamp: unset; overflow: visible; margin-top: 8px; }
body.tele-nav .saved-profile-meta .list-concern { margin-top: 0; }
body.tele-nav .saved-profile-meta .tp-concern-chip { background: #eef1f4; border: 0; color: #172b3e; }
body.tele-nav .list-concern .tp-concern-chip--none::before { background: #b3bcc8; }

/* v403: average line and its flag match the label size */
body.tele-nav .tp-stats .tp-stat-sub { font-size: 13px; gap: 5px; }
body.tele-nav .tp-stats .tp-stat-sub .tp-peer-val, body.tele-nav .tp-stats .tp-stat-sub .tp-stat-peer { font-size: 13px; line-height: 1.3; }
body.tele-nav .tp-stats .tp-stat-sub .tp-hist-flag { margin: 0; vertical-align: baseline; }
body.tele-nav .tp-stats .tp-stat-sub .tp-hist-flag svg { width: 13px; height: 13px; }

/* v406: profile concern chip text colour follows the level (red / yellow / green on the navy chip) */
body.tele-nav .tp-namebar .tp-concern-chip--high, body.tele-nav .tp-namebar .tp-concern-chip--high .tp-chip-hi { color: #ff5a55; }
body.tele-nav .tp-namebar .tp-concern-chip--moderate { color: #ffbf3f; }
body.tele-nav .tp-namebar .tp-concern-chip--low { color: #3dd68c; }

/* v410: Groups list toolbar — filter and sort sit on the right */
body.tele-nav .gp-toolbar { justify-content: flex-end; }

/* v412: Fairhaven group page — Providers / Patients in the overview open a short list */
body.tele-nav .tp-ov-item--pop { position: relative; }
body.tele-nav .tp-ov-trigger { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.tele-nav .tp-ov-trigger .tp-ov-value { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; text-decoration-color: rgba(23,43,62,.45); }
body.tele-nav .tp-ov-trigger .tp-ov-value svg { width: 16px; height: 16px; transition: transform .15s ease; }
body.tele-nav .tp-ov-trigger[aria-expanded="true"] .tp-ov-value svg { transform: rotate(180deg); }
body.tele-nav .tp-ov-trigger:focus-visible { outline: 2px solid #172b3e; outline-offset: 4px; border-radius: 4px; }
body.tele-nav .gp-pop { position: absolute; z-index: 40; top: calc(100% + 10px); left: -12px; width: max-content; min-width: 230px; max-width: min(300px, calc(100vw - 32px)); box-sizing: border-box; padding: 14px 12px 12px; background: #fff; border: 1px solid #c3d6da; border-radius: 12px; box-shadow: 0 10px 28px rgba(23,43,62,.18); color: #172b3e; }
body.tele-nav .gp-pop[hidden] { display: none; }
body.tele-nav .gp-pop-title { margin: 0 6px 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5b6b7a; }
body.tele-nav .gp-pop-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
body.tele-nav .gp-pop-list a, body.tele-nav .gp-pop-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; color: #172b3e; text-decoration: none; }
body.tele-nav .gp-pop-list a:hover { background: #eef4f5; }
body.tele-nav .gp-pop-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tele-nav .gp-pop-fig { font-size: 13px; color: #5b6b7a; white-space: nowrap; }
body.tele-nav .gp-pop-all { display: flex; align-items: center; justify-content: space-between; margin: 8px 6px 0; padding-top: 10px; border-top: 1px solid #e3ecee; font-size: 14px; font-weight: 600; color: #172b3e; text-decoration: none; }
body.tele-nav .gp-pop-all:hover { text-decoration: underline; }
body.tele-nav .gp-pop-all .gp-go { width: 16px; height: 16px; }

/* v413: Fairhaven group page — the Patients / Providers stat tiles show the same short lists */
body.tele-nav .pf-stat--pop { position: relative; cursor: default; }
body.tele-nav .pf-stat--pop:focus-visible { outline: 2px solid #172b3e; outline-offset: -2px; }
body.tele-nav .pf-stat--pop .pf-stat-num { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 6px; text-decoration-color: rgba(23,43,62,.4); align-self: flex-start; }
body.tele-nav .pf-stat--pop.is-open { z-index: 41; }
body.tele-nav .pf-stat--pop .gp-pop { top: calc(100% - 10px); left: 12px; }

/* v414: column label above the prescription counts */
body.tele-nav .pf-med--head { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b7684; margin-bottom: -6px; }

/* menu-ask-logo */
.menu-item .menu-ask-logo { display: block; width: 18px; height: 18px; flex-shrink: 0; background-color: var(--text-secondary); -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAACaCAYAAABi6IxbAAAmBUlEQVR42u19e3hdVZn3733X2ifJyb1QEJpL25RSCqJjq1yaSzvgiM7oJ4zpDNZRUUQZHRGv83khDV5GZ0QQEdERFFHAHsTRcRwRtZwklYvtJ1Yo0KaXnKSUizRtknNycvZe7/v9sc9pQqFJ2tzTrOfJ85wmT/dZe/3We78Bx8HajBUeAOyorL12R1XdlwFA0WAxt2b+ygG5vbr2yr3VDbq3ukF3VNV9aCjws3nxbKdcQjx4sqru8mLYmwdUXFrFlbD9xlNVtVesxBZ/toNMsxncldjib686f10RRX7Yr04k+74GkHw2pk/c5UsTrbcqGiwhHswBPMPAfaqi9tKoMT/yVTQAiLPvK4BaQCPE3C/Bu07r3PSD2QoyzUaZS4gH2ytqLysw5rZARfwh4OZWDuQCMnxQ3fuWJVq/OxtB5tkDLGhjDtzK2iuLjL3NVxEf+hJwsy9OAUD96lwJmf/cWVX3QUI82IgGq7Po4vNsATeGRl6DeLCzsu5fS4y9Oa3OOYAYRMO8PDmA0+pcEZubdlTWfmYN4kEMjTxbQKZZAC4DUAK0var2q6XsfaxHfCcgplG+nwLKUClhz/RKcP3iROtHKWTjTIDMATxl4DYaQsw9tnx5pDB54m3FZNYdED9QkKWjvygga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qfUTBobRYex6Y1osEs6f795YaKloUf9jxmiVDFbVmgwEbK2iC1b4v4+dR9fmGipr+lqfSTXk3PNJNmxxwXAOTt6DeJBto0x1XS0fa0/kPMyIg+Xs2cVYXxyPGprFerK2bMZkc0D0FWLOlquy9nvuZ7ZmDGTzTHTqhiaJSwXbbDL9rZt7S36S32P+LeUsmf40EjXY5e3DEgpeyYpwXd2E9Ut7Wj5o2a7v66d5ux4xsng4YGOBxvQaM7aFvMBXNleuerJfLY3DKioGzK7/ijmGasBkE/Mvc7/aE1n2/WD7RtiwUw9pxndsT2bN4ZQNm/6etq5SyPE6gGqGP1AZgWpBTRCpEkXrKvpbLs+J2tnItXOGoCHyubNWOEt6Wq7Oyn+2y0x8Sg7qCkAo1CPmHudrFvatenO3FST2dBecdbMXFiJLf5mrPCWdf7+xymRKwvIeArVUWjLmm9MJOmCDy3vart7M1Z4K7HFny3nMquGauRAPr2z9dt94t9Yzh6x4ojykxVBOXvU54JvLuva9M3ZBu6sAxgAVmBLsAGNJlPc/Yl9wcBeJS05IvUSip91A/uQV/SxDWg0K7AlmG3nMesAJkDn4zk6a9u2TBryf4crOSIlk3TymaXtvxqYj+doNo4fmJUzCddke0jusv0/RyZ6OvDiIrTV2c9K+gef8ESYMht3s/Es/j9fD3gE67U6tgAAAABJRU5ErkJggg==) no-repeat center / auto 18px; }

/* city lists: hover card now hangs off the provider name (Reviews column removed) */
.flag-table .pf-name-cell.pf-tip-host { border-bottom: 0; padding-bottom: 0; }

/* provider overview: with License and Prescriber ID removed, four items sit on one row */
.tp-ov-grid:has(> .tp-ov-item:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .tp-ov-grid:has(> .tp-ov-item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tp-ov-grid:has(> .tp-ov-item:nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); } }


/* --- Empty states that sit inside lists, cards and charts (Fair Haven) --- */
.empty-state--inline { box-shadow: none; border-style: dashed; padding: 44px 24px; margin: 20px 0 4px; background: var(--surface-muted, #f6f8fa); }
.flag-mgmt-card > .empty-state--inline, .card > .empty-state--inline { margin: 20px; }
.empty-state--inline p { margin-bottom: 0; }
.empty-state--inline .btn { margin-top: 18px; }
.empty-state--tile { padding: 28px 18px; margin: 0; align-self: stretch; justify-content: center; }
.empty-state--tile p { font-size: 13px; margin-bottom: 0; }
.flag-mgmt-toolbar button[disabled], .flag-mgmt-toolbar input[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.gp-row--static { cursor: default; }
.gp-row--static:hover { background: inherit; }

/* Home map: United States, Fair Haven states highlighted */
.patterns-band-map--us { aspect-ratio: 456.1 / 254.5; container-type: inline-size; background: #eef1f3; }
.patterns-band-map--us .patterns-band-map-stage::before { display: none; }
.us-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.us-st { fill: #dfe4e8; stroke: #ffffff; stroke-width: .7; stroke-linejoin: round; }
.us-st.is-lit { fill: #b9c8d0; }
.patterns-band-map--us .map-halo-glow, .patterns-band-map--us .map-halo-ring { width: 44px; height: 44px; }
.patterns-band-map--us .map-halo-dot { width: 9px; height: 9px; }
.patterns-band-map--us .map-city-label { font-size: 11px; font-size: 1.15cqw; transform: translate(9px, -50%); }
.profile-card--empty { display: flex; }
.profile-card--empty .empty-state { margin: 0; width: 100%; }

.flag-table-wrap[hidden], .flag-mgmt-pagination[hidden] { display: none !important; }
.cases-bottom .lk-key { align-self: start; }

/* Florida zoom view: flat frame (no drop shadow), light base map, halos + cards like the earlier map */
.patterns-band-map--se, .patterns-band-map--us { box-shadow: none; border: 1px solid #dde3e6; }
.patterns-band-map--se { aspect-ratio: 1000 / 568; container-type: inline-size; background: #d5dadd; }
.patterns-band-map--se .patterns-band-map-stage::before { display: none; }
.patterns-band-map[hidden] { display: none; }
.fl-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fl-water { fill: #d5dadd; }
.fl-land { fill: #e8eaeb; }
.fl-land--fl { fill: #f8f8f7; }
.fl-county { fill: none; stroke: #e1e4e5; stroke-width: .7; stroke-linejoin: round; }
.fl-border { fill: none; stroke: #b6bdc2; stroke-width: 1.1; stroke-linejoin: round; }
.map-state-label { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-size: 13px; font-size: 1.5cqw; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #a3acb2; pointer-events: none; white-space: nowrap; }
.map-state-label--out { color: #aeb6bb; }
.map-water-label { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-size: 12px; font-size: 1.3cqw; font-style: italic; letter-spacing: .12em; color: #8e9aa2; pointer-events: none; white-space: nowrap; }
.map-town { position: absolute; z-index: 2; transform: translate(8px, -50%); font-size: 11px; font-size: 1.1cqw; font-weight: 500; color: #626d75; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.map-town::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #8e99a1; }
.patterns-band-map--se .map-halo-glow, .patterns-band-map--se .map-halo-ring { width: 84px; height: 84px; }
.patterns-band-map--se .map-halo-dot { width: 11px; height: 11px; }
.patterns-band-map--se .map-city-label { font-size: 14px; font-size: 1.55cqw; font-weight: 700; }
.patterns-band-map--se .map-halo-hit { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.map-view-toggle { position: absolute; z-index: 9; top: 12px; left: 12px; display: inline-flex; padding: 3px; gap: 2px; background: #fff; border: 1px solid #dde3e6; border-radius: 999px; }
.map-view-toggle button { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: #44505e; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.map-view-toggle button:hover { background: #eef2f3; }
.map-view-toggle button.is-on { background: #172b3e; color: #fff; }
.map-view-toggle button:focus-visible { outline: 2px solid #172b3e; outline-offset: 2px; }
.mp-list li { flex-wrap: wrap; row-gap: 2px; }
.mp-list li .mp-name { flex: 1 1 auto; }
.mp-sub { order: 3; flex: 0 0 100%; font-size: 12px; color: #6b7684; }
.map-pop { box-shadow: 0 8px 24px rgba(23,43,62,.16); }
.mp-list li a.mp-name { text-decoration: none; }
.mp-list li a.mp-name:hover { text-decoration: underline; }
.mp-cta + .mp-cta { margin-top: 8px; }
button.mp-cta { border: 0; font: inherit; cursor: pointer; }
.map-eddie { margin-top: 24px; padding: 14px 16px; background: #fff; border: 1px solid #dde3e6; border-radius: 14px; }
.map-eddie-head { display: flex; align-items: center; gap: 8px; }
.map-eddie-head .map-key-dot { margin: 0; flex: none; }
.map-eddie-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7684; }
.map-eddie-name { display: block; margin: 6px 0 10px; font-size: 16px; font-weight: 800; color: #172b3e; text-decoration: none; }
.map-eddie-name:hover { text-decoration: underline; }
.map-eddie-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.map-eddie-stats div { background: #f4f7f7; border-radius: 10px; padding: 7px 10px; }
.map-eddie-stats b { display: block; font-size: 16px; color: #172b3e; }
.map-eddie-stats span { font-size: 11px; color: #6b7684; }
.map-eddie-link { font-size: 13px; font-weight: 600; color: #172b3e; }

/* Southeast view tuning */
.patterns-band-map--se .map-pop { transform: none; margin-top: 0; top: clamp(172px, var(--y), calc(100% - 172px)) !important; translate: 0 -50%; }
.fl-land { fill: #f6f6f5; }
.fl-border { stroke: #b6bdc2; stroke-width: .9; }
.patterns-band-map--se .map-halo-glow, .patterns-band-map--se .map-halo-ring { width: 64px; height: 64px; }
.patterns-band-map--se .map-halo-dot { width: 10px; height: 10px; }
.patterns-band-map--se .map-halo-hit { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.patterns-band-map--se .map-city-label { font-size: 13px; font-size: 1.4cqw; font-weight: 700; }
.patterns-band-map--se .map-state-label { font-size: 11px; font-size: 1.15cqw; letter-spacing: .12em; }
.patterns-band-map--se .map-town { font-size: 10px; font-size: 1cqw; }
.patterns-band-map--se .map-water-label { font-size: 11px; font-size: 1.15cqw; }

/* Slower pulses on the home map */
.patterns-band-map--se .map-halo-ring { animation-duration: 5.6s; }
.patterns-band-map--se .map-halo-ring--2 { animation-delay: 2.8s; }

/* Provider rows in the map tooltip are live links with a hover state */
.patterns-band-map--se .map-pop { top: clamp(215px, var(--y), calc(100% - 215px)) !important; }
.mp-list li:has(> .mp-row) { padding: 0; }
.mp-list .mp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 8px; margin: 0 -8px; box-sizing: content-box; border-radius: 8px; text-decoration: none; color: inherit; transition: background .12s; }
.mp-list .mp-row:hover, .mp-list .mp-row:focus-visible { background: #eaf1f2; outline: none; }
.mp-list .mp-row:hover .mp-name, .mp-list .mp-row:focus-visible .mp-name { text-decoration: underline; }
.mp-list .mp-row::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 1.6px solid #8e99a1; border-right: 1.6px solid #8e99a1; transform: rotate(45deg); margin: 0 2px 0 0; opacity: 0; transition: opacity .12s; }
.mp-list .mp-row:hover::after, .mp-list .mp-row:focus-visible::after { opacity: 1; }
.mp-list .mp-row .list-concern { margin-left: auto; }

/* Diagnosis pie hover card: top 3 prescribed + top 3 prescribers */
.dx3-tip { min-width: 280px; }
.dx3-sec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border, #e3e8ea); }
.dx3-sec:first-of-type { margin-top: 8px; }
.dx3-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #6a7480; margin-bottom: 4px; }
.dx3-list { list-style: none; margin: 0; padding: 0; }
.dx3-list li { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; font-size: 14px; }
.dx3-rank { flex: none; width: 16px; font-size: 12px; font-weight: 700; color: #8e99a1; }
.dx3-name { flex: 1; font-weight: 600; color: #0f1c2e; }
.dx3-n { flex: none; font-weight: 600; color: #44505e; font-variant-numeric: tabular-nums; }

/* Home "Group Practices": Add a Group tile is the same height as the group tile (photo square) */
.patterns-band-recent .profile-card--empty { align-self: start; }
.patterns-band-recent .profile-card--empty .empty-state--tile { height: var(--tile-h, 116px); min-height: 0; padding: 10px 12px; gap: 0; align-self: start; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.patterns-band-recent .profile-card--empty .icon-circle { width: 30px; height: 30px; margin: 0 0 6px; }
.patterns-band-recent .profile-card--empty .icon-circle svg { width: 16px; height: 16px; }
.patterns-band-recent .profile-card--empty h3 { font-size: 14px; line-height: 1.2; margin: 0 0 8px; }
.patterns-band-recent .profile-card--empty p { display: none; }
.patterns-band-recent .profile-card--empty .btn { margin: 0; padding: 5px 12px; font-size: 12px; min-height: 0; }
.patterns-band-recent .profile-card--empty .icon-circle { display: none; }
.patterns-band-recent .profile-card--empty .empty-state--tile { width: 100%; }
.patterns-band-recent .profile-card--empty h3 { margin-bottom: 10px; }
.patterns-band-recent .profile-card--empty .empty-state--tile { width: 116px; }

/* Import Data page: same pattern as the rest of the site (underlined tabs, plain cards, dashed empty states) */
.imp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.imp-refresh { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.imp-refresh svg { width: 16px; height: 16px; }
.imp-panel[hidden] { display: none; }
.imp-panel > * + * { margin-top: 20px; }
.imp-panel .empty-state--inline { margin: 0; }
.imp-panel .empty-state--inline + .card, .imp-panel .card + .empty-state--inline { margin-top: 20px; }
.imp-card { padding: 22px 24px 8px; }
.imp-card-title { margin: 0 0 14px; font-size: 17px; font-weight: 800; color: #172b3e; }
.imp-drop { transition: background .15s ease, border-color .15s ease; }
.imp-drop.is-over { background: #eaf1f2; border-color: #65959e; }
.imp-choose { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; cursor: pointer; }
.imp-files { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; display: inline-block; font-size: 13px; color: #44505e; }
.imp-files li { padding: 4px 0; }
.imp-files[hidden] { display: none; }
button.cat-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-family: inherit; cursor: pointer; }
button.cat-tab:hover { border-bottom-color: #c3ccd6; }
button.cat-tab.is-active { border-bottom-color: #65959e; }
.imp-panel .utm-card { padding: 0; }
.imp-panel .utm-card .utm-stats { margin: 0; padding: 22px 24px; border-bottom: 0; }

/* Home Risk row: Telehealth vs In-Person tile */
.tele-hero { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 12px; }
.tele-pct { font-size: 34px; font-weight: 800; color: #172b3e; line-height: 1; }
.tele-cap { font-size: 13px; color: #6b7684; }
.tele-split { height: 12px; border-radius: 6px; background: #d6dee6; overflow: hidden; }
.tele-split i { display: block; height: 100%; background: #2f80c8; border-radius: 6px 0 0 6px; }
.tele-key { display: flex; gap: 20px; margin: 10px 0 4px; font-size: 13px; color: #44505e; }
.tele-key b { color: #172b3e; margin-left: 4px; }
.tele-key .tk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.tele-key .tk--t { background: #2f80c8; }
.tele-key .tk--p { background: #d6dee6; }
.tele-sub { display: flex; justify-content: space-between; gap: 8px; margin: 14px 0 2px; padding-top: 12px; border-top: 1px solid #e3eaea; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #44505e; }
.tele-sub span { font-weight: 400; color: #6b7684; }
.tele-row { padding-top: 11px; padding-bottom: 11px; }
.tele-row .fb-bar { position: relative; }
.tele-row .fb-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--avg); width: 2px; margin-left: -1px; background: #172b3e; opacity: .55; }
.fb-list > .tele-row:first-child { border-top: 0; }

/* Case file page */
.cf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 8px; }
.cf-chip { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: #eaf1f2; color: #3d5560; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.cf-caveat { margin: 0 0 18px; font-size: 14px; color: #44505e; }
.cf-print { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; }
.cf-print svg { width: 16px; height: 16px; }
.cf-sec { margin: 0 0 30px; }
.cf-sec h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: #172b3e; }
.cf-sec p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #2a3a4a; max-width: 880px; }
.cf-figs { margin-top: 6px; padding: 0; }
.cf-figs .utm-stats { margin: 0; padding: 20px 24px; border-bottom: 0; }
.cf-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 4px 22px; background: #fff; border: 1px solid #dfe8e8; border-radius: 14px; }
.cf-kv > div { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid #edf1f1; }
.cf-kv > div:nth-child(-n+2) { border-top: 0; }
.cf-kv dt { flex: 0 0 150px; font-size: 13px; color: #6b7684; }
.cf-kv dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #172b3e; }
.cf-table { width: 100%; }
.cf-table td, .cf-table th { vertical-align: top; }
.cf-table td { font-size: 14px; line-height: 1.5; }
.cf-table .num, .cf-table th.num { text-align: right; white-space: nowrap; }
.cf-narrow { max-width: 720px; }
.cf-table tfoot td { border-top: 1px solid #dfe8e8; padding-top: 10px; }
.cf-focus td { background: #f1f7f8; font-weight: 600; }
.cf-over { color: #c9302c; font-weight: 700; }
.cf-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.cf-list { margin: 0 0 14px; padding-left: 22px; font-size: 15px; line-height: 1.65; color: #2a3a4a; max-width: 880px; }
.cf-list li { margin-bottom: 6px; }
.cf-note { font-size: 13px !important; color: #6b7684 !important; }
.cf-price { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-weight: 600; white-space: nowrap; }
.cf-price input { width: 84px; padding: 5px 8px; border: 1px solid #c9d3dc; border-radius: 8px; font: inherit; font-size: 13px; }
@media (max-width: 820px) { .cf-kv { grid-template-columns: 1fr; } .cf-kv > div:nth-child(2) { border-top: 1px solid #edf1f1; } .cf-head { flex-direction: column; } .cf-print { margin-top: 0; } }
@media print {
  .topnav, .site-map-band, .site-footer, footer, .back-link, .cf-print, .cf-price input { display: none !important; }
  .cf-sec { break-inside: avoid; }
  body { background: #fff; }
}

/* ===== Case file design options (co-) ===== */
.co-switch { position: sticky; top: 0; z-index: 30; display: flex; gap: 6px; justify-content: center; padding: 10px 16px; background: #fff; border-bottom: 1px solid #dde4e7; }
.co-switch a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #4b5866; text-decoration: none; border: 1px solid #dde4e7; }
.co-switch a[aria-current="page"] { background: #172b3e; color: #fff; border-color: #172b3e; }
.co-switch a:hover { border-color: #915deb; }
.co-sub { margin-left: 14px; font-size: 14px; color: rgba(255,255,255,.82); }
body.co-body .tp-namebar .tp-concern-line { display: flex; align-items: center; flex-wrap: wrap; }
.co-print { cursor: pointer; }
.co-page { max-width: 1120px; }
.co-caveat { margin: 0 0 28px; padding: 12px 16px; border-left: 4px solid #915deb; background: #f4effd; border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.5; color: #172b3e; }
.co-lede { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: #2b3a4a; max-width: 820px; }
.co-page .pf-sec { margin: 0 0 64px; }
.co-page .pf-sec-title { margin-bottom: 18px; }
.co-stats { margin: -24px 0 64px; }
.co-meds .pf-med-bar { background: #915deb; border-radius: 999px; }
.co-meds .pf-med-num em { font-style: normal; color: #6b7684; font-size: 12.5px; }
/* state rows */
.co-states { display: grid; gap: 10px; }
.co-state { display: grid; grid-template-columns: 44px 24px minmax(0,1fr) 110px; align-items: center; gap: 12px; font-size: 14px; }
.co-st-code { font-weight: 700; color: #172b3e; }
.co-st-x { color: #c4302b; font-weight: 700; }
.co-st-ok { color: #0b6259; font-weight: 700; }
.co-state .pf-med-track { position: relative; display: block; height: 12px; border-radius: 999px; background: #eef1f3; }
.co-state .pf-med-bar { background: #915deb; border-radius: 999px; }
.co-st-n { color: #4b5866; text-align: right; }
.co-state--ok { color: #6b7684; }
.co-state--ok .co-st-lic { grid-column: 3 / 5; }
/* exposure cards */
.co-xrow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.co-xcard, .co-rung { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border: 1px solid #dde4e7; border-radius: 14px; background: #fff; }
.co-xkind { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: #eef1f3; color: #4b5866; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.co-x-claims .co-xkind { background: #e4dff6; color: #4a2c93; }
.co-x-guess .co-xkind { background: #fff3d6; color: #8a5a00; }
.co-xnum { font-size: 26px; font-weight: 700; line-height: 1.15; color: #172b3e; margin-top: 6px; }
.co-x-claims .co-xnum { color: #6a3fc4; }
.co-xlabel { font-size: 14px; font-weight: 700; color: #172b3e; }
.co-xnote { font-size: 13px; line-height: 1.45; color: #5b6877; }
@media (max-width: 1000px) { .co-xrow { grid-template-columns: repeat(2, minmax(0,1fr)); } }
/* exhibits */
.co-exh { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.co-ex { display: flex; gap: 14px; padding: 16px; border: 1px solid #dde4e7; border-radius: 12px; background: #fff; }
.co-ex-k { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #e4dff6; color: #4a2c93; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.co-ex strong { display: block; font-size: 14.5px; color: #172b3e; }
.co-ex p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #5b6877; }
@media (max-width: 760px) { .co-exh { grid-template-columns: 1fr; } }
.co-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.co-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border: 1px solid #dde4e7; border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.5; color: #2b3a4a; }
.co-steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #915deb; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.co-check { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.co-check li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid #dde4e7; border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.5; color: #2b3a4a; }
.co-box { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid #915deb; border-radius: 6px; }
/* ---- Option B timeline ---- */
.co-tl { position: relative; margin: 0; padding: 0; list-style: none; }
.co-tl::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #d9cdf6; }
.co-tl-item { position: relative; padding: 0 0 18px 56px; }
.co-tl-node { position: absolute; left: 0; top: 4px; width: 36px; height: 36px; border-radius: 50%; background: #915deb; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px #fff; }
.co-tl-node--dot { left: 8px; top: 14px; width: 20px; height: 20px; }
.co-tl-item--over .co-tl-node--dot { background: #e5322d; }
.co-tl-card { padding: 18px 20px; border: 1px solid #dde4e7; border-radius: 14px; background: #fff; }
.co-tl-card h3 { margin: 0 0 6px; font-size: 17px; color: #172b3e; }
.co-tl-card p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: #2b3a4a; max-width: 760px; }
.co-tl-card--sm { padding: 12px 16px; }
.co-tl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.co-tl-top strong { font-size: 15px; color: #172b3e; }
.co-tl-pt, .co-tl-vt { color: #5b6877; }
.co-tl-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; font-size: 13.5px; color: #4b5866; }
.co-tl-meta b { color: #172b3e; }
.co-tl-paid { margin-left: auto; font-weight: 700; color: #6a3fc4; }
.co-over-tag { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fde3e1; color: #a8231c; font-size: 11.5px; font-weight: 700; }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.co-chip { padding: 5px 11px; border-radius: 999px; background: #eef1f3; color: #172b3e; font-size: 13px; font-weight: 600; }
.co-chip--no { background: #fde3e1; color: #a8231c; }
.co-chip--ok { background: #dff3ec; color: #0b6259; }
.co-chip--money { background: #e4dff6; color: #4a2c93; }
.co-bars { display: grid; gap: 8px; max-width: 560px; }
.co-bars div { display: grid; grid-template-columns: 130px minmax(0,1fr) 36px; align-items: center; gap: 12px; font-size: 13.5px; color: #4b5866; }
.co-bars u { display: block; height: 10px; border-radius: 999px; background: #eef1f3; text-decoration: none; }
.co-bars i { display: block; height: 100%; border-radius: 999px; background: #915deb; }
.co-bars b { color: #172b3e; text-align: right; }
.co-ladder { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr; align-items: stretch; gap: 0; }
.co-rung-arr { display: flex; align-items: center; justify-content: center; font-size: 28px; color: #915deb; }
@media (max-width: 1000px) { .co-ladder { grid-template-columns: 1fr; gap: 8px; } .co-rung-arr { transform: rotate(90deg); } }
/* ---- Option C evidence board ---- */
.co-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 36px; align-items: start; }
.co-index { position: sticky; top: 64px; padding: 4px 0; }
.co-index-title { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7684; }
.co-index-title--2 { margin-top: 26px; }
.co-sec-nav, .co-ex-nav { margin: 0; padding: 0; list-style: none; }
.co-sec-nav a { display: block; padding: 7px 12px; margin-left: -12px; border-left: 3px solid transparent; font-size: 14px; color: #4b5866; text-decoration: none; }
.co-sec-nav a:hover { color: #172b3e; }
.co-sec-nav a.is-on { border-left-color: #915deb; background: #f4effd; color: #172b3e; font-weight: 700; border-radius: 0 8px 8px 0; }
.co-ex-nav li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; font-size: 13px; line-height: 1.4; color: #5b6877; }
.co-ex-nav span { flex: none; width: 22px; height: 22px; border-radius: 6px; background: #e4dff6; color: #4a2c93; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.co-card { margin: 0 0 22px; padding: 24px 26px; border: 1px solid #dde4e7; border-radius: 16px; background: #fff; scroll-margin-top: 70px; }
.co-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #eef1f3; }
.co-card-h h2 { margin: 0; font-size: 20px; color: #172b3e; }
.co-tag { padding: 4px 10px; border-radius: 999px; background: #e4dff6; color: #4a2c93; font-size: 12px; font-weight: 700; white-space: nowrap; }
.co-figs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 6px; }
.co-figs div { padding: 14px 16px; border-radius: 12px; background: #f4effd; }
.co-figs b { display: block; font-size: 30px; line-height: 1.1; color: #4a2c93; }
.co-figs span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: #4b5866; }
@media (max-width: 900px) { .co-figs { grid-template-columns: repeat(2, minmax(0,1fr)); } .co-layout { grid-template-columns: 1fr; } .co-index { display: none; } }
.co-kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 28px; margin: 0 0 22px; }
.co-kv dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7684; }
.co-kv dd { margin: 3px 0 0; font-size: 15px; color: #172b3e; }
.co-finds { display: grid; gap: 12px; }
.co-find { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #f7f9fa; }
.co-find h3 { margin: 0 0 3px; font-size: 15px; color: #172b3e; }
.co-find p { margin: 0; font-size: 14px; line-height: 1.5; color: #4b5866; }
.co-ledger { width: 100%; border-collapse: collapse; }
.co-ledger th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7684; border-bottom: 2px solid #172b3e; }
.co-ledger td { padding: 14px 10px; border-bottom: 1px dashed #cfd7dc; vertical-align: top; font-size: 14.5px; color: #172b3e; }
.co-ledger td small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: #5b6877; max-width: 460px; }
.co-ledger .num, .co-ledger th.num { text-align: right; white-space: nowrap; font-weight: 700; font-size: 16px; }
.co-kind { padding: 3px 9px; border-radius: 999px; background: #eef1f3; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.co-kind--claims { background: #e4dff6; color: #4a2c93; }
.co-kind--guess { background: #fff3d6; color: #8a5a00; }
.co-card .flag-table-wrap { margin-top: 14px; }
@media print { .co-switch, .co-index { display: none; } .co-layout { display: block; } }
body.tele-nav .gp-title-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 10px; color: #172b3e; vertical-align: middle; position: relative; top: -2px; }
body.tele-nav .gp-title-icon svg { width: 25px; height: 25px; stroke-width: 2; position: relative; top: 1px; }
body.co-body .tp-name-row .tp-contact { margin-left: auto; }
.co-card .cf-table th, .co-card .cf-table td { white-space: nowrap; }
.co-card .flag-table-wrap { overflow-x: auto; }
.co-ledger th.num { font-size: 11px; }
.co-card .cf-table th, .co-card .cf-table td { padding-left: 8px; padding-right: 8px; font-size: 13px; }
.co-card .cf-table th, .co-card .cf-table td { padding-left: 6px; padding-right: 6px; font-size: 12.5px; }
.co-card .cf-table { min-width: 0; }
/* ===== compare + hybrids ===== */
.co-fact { display: inline-flex; flex-direction: column; margin-right: 34px; font-size: 15px; font-weight: 600; color: #fff; }
.co-fact i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 2px; }
.co-facts { display: flex; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.28); }
body.co-body .tp-namebar .tp-name-row { flex-wrap: wrap; }
body.co-body .tp-namebar .co-facts { order: 5; flex-basis: 100%; }
.co-switch-cmp { border-color: #915deb; color: #4a2c93; }
.co-switch-cmp[aria-current="page"] { background: #915deb; border-color: #915deb; color: #fff; }
.cmp-top { max-width: 1120px; margin: 0 auto; padding: 30px 40px 0; }
.cmp-top h1 { margin: 0 0 4px; font-size: 30px; color: #172b3e; }
.cmp-top p { margin: 0; color: #5b6877; }
.cmp.co-page { padding-top: 22px; padding-bottom: 110px; }
.cmp-sec { margin: 0 0 64px; }
.cmp-sec-h { display: flex; align-items: baseline; gap: 16px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #172b3e; }
.cmp-sec-h h2 { margin: 0; font-size: 22px; color: #172b3e; }
.cmp-sec-h p { margin: 0; color: #5b6877; font-size: 14.5px; }
.cmp-var { margin: 0 0 26px; border: 1px solid #dde4e7; border-radius: 16px; background: #fff; overflow: hidden; }
.cmp-var.is-picked { border-color: #915deb; box-shadow: 0 0 0 3px #e4dff6; }
.cmp-var-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f7f9fa; border-bottom: 1px solid #e6ecee; }
.cmp-var.is-picked .cmp-var-h { background: #f4effd; }
.cmp-var-tag { min-width: 42px; padding: 3px 10px; border-radius: 999px; background: #172b3e; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.cmp-var-lab { font-size: 14px; font-weight: 600; color: #172b3e; }
.cmp-pick { margin-left: auto; padding: 6px 16px; border-radius: 999px; border: 1px solid #915deb; background: #fff; color: #4a2c93; font-weight: 700; font-size: 13px; cursor: pointer; }
.cmp-pick[aria-pressed="true"] { background: #915deb; color: #fff; }
.cmp-var-b { padding: 26px 26px 6px; }
.cmp-var-b--bleed { padding: 0; }
.cmp-var-b .pf-sec { margin-bottom: 20px; }
.cmp-var-b .co-card { margin-bottom: 20px; }
.cmp-var-b .tp-namebar, .cmp-var-b .tp-band { position: static; }
.cmp-var-b .co-stats { margin: 0 0 20px; }
.cmp-var-b .co-xrow { margin-bottom: 14px; }
.cmp-tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 92vw; padding: 10px 14px; border-radius: 16px; background: #172b3e; color: #fff; box-shadow: 0 8px 28px rgba(23,43,62,.35); font-size: 13px; }
.cmp-tray[hidden] { display: none; }
.cmp-chip { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14); }
.cmp-chip b { color: #d9cdf6; }
.cmp-tray button { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; }
/* layout wireframes */
.cmp-lay { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 0; }
.cmp-lay figure { margin: 0; padding: 12px; border: 1px solid #dde4e7; border-radius: 14px; background: #fff; }
.cmp-lay figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: #5b6877; }
.cmp-lay figcaption strong { display: block; color: #172b3e; font-size: 13.5px; }
.wf { height: 150px; padding: 8px; border-radius: 8px; background: #f4f7f8; display: flex; flex-direction: column; gap: 5px; }
.wf .b { display: block; border-radius: 4px; background: #c8d3d8; }
.wf .h { height: 16px; background: #65959e; }
.wf .s { height: 14px; background: #9dbfc5; }
.wf .l { height: 12px; }
.wf .tabs { height: 9px; background: #d9cdf6; }
.wf .c { height: 100%; background: #fff; border: 1px solid #c8d3d8; }
.wfx { flex: 1; display: grid; grid-template-columns: 28% 1fr; gap: 6px; min-height: 0; }
.wfx .side { height: 100%; background: #d9cdf6; }
.wfc { display: flex; flex-direction: column; gap: 5px; min-height: 0; }
.wf-e .c { flex: 1; }
@media (max-width: 900px) { .cmp-lay { grid-template-columns: repeat(2, minmax(0,1fr)); } }
/* mix variants */
.co-stats--in { margin: 4px 0 8px; }
.co-split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 28px; align-items: center; }
.co-split .co-lede { margin: 0; }
.co-figs--2 { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 0; }
@media (max-width: 900px) { .co-split { grid-template-columns: 1fr; } }
.co-bigfinds { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.co-bigfind { padding: 18px 20px; border: 1px solid #e3e9ec; border-radius: 14px; background: #f9fafb; }
.co-bf-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.co-bigfind b { display: block; font-size: 34px; line-height: 1.1; color: #4a2c93; }
.co-bigfind h3 { margin: 6px 0 4px; font-size: 15px; color: #172b3e; }
.co-bigfind p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #4b5866; }
.co-ri-ex .risk-indicator { align-items: flex-start; }
.co-ri-ex .risk-indicator .co-tag { margin-left: auto; flex: none; }
.co-seg { display: flex !important; overflow: hidden; }
.co-seg i { display: block; height: 100%; }
.co-seg-ok { background: #b99af2; }
.co-seg-over { background: #4a2c93; }
.co-legend { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12.5px; color: #5b6877; }
.co-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-left: 12px; }
.co-legend i:first-child { margin-left: 0; }
.co-medtbl { width: 100%; border-collapse: collapse; }
.co-medtbl th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7684; border-bottom: 2px solid #172b3e; }
.co-medtbl td { padding: 12px 10px; border-bottom: 1px solid #eef1f3; font-size: 14.5px; color: #172b3e; }
.co-medtbl .num, .co-medtbl th.num { text-align: right; }
.co-medtbl td:nth-child(2) { display: flex; align-items: center; gap: 12px; }
.co-medtbl .pf-med-track { position: relative; display: block; flex: 1; height: 10px; border-radius: 999px; background: #eef1f3; }
.co-medtbl .pf-med-bar { background: #915deb; border-radius: 999px; }
.co-focusrow { background: #f4effd; }
.co-focusrow .co-tag { margin-left: 8px; text-decoration: none; }
.co-stiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.co-stile { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.co-stile--no { background: #fdf0ef; border-color: #f3c4c1; }
.co-stile--ok { background: #eef8f4; border-color: #c5e6da; }
.co-stile-code { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #172b3e; }
.co-stile b { font-size: 30px; line-height: 1.15; color: #172b3e; }
.co-stile--no b { color: #a8231c; }
.co-stile--ok b { color: #0b6259; }
.co-stile span:not(.co-stile-code) { font-size: 13px; color: #4b5866; }
.co-stile em { margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: #5b6877; }
@media (max-width: 900px) { .co-stiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.co-two { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 30px; }
.co-colh { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7684; }
.co-colh span { margin-left: 8px; text-transform: none; letter-spacing: 0; font-weight: 600; color: #8a95a1; }
.co-note2 { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #5b6877; }
.co-two .co-state { grid-template-columns: 34px 20px minmax(0,1fr) 84px; margin-bottom: 8px; }
@media (max-width: 900px) { .co-two { grid-template-columns: 1fr; } }
.co-chips--sum { margin-bottom: 4px; }
.cf-overcell { background: #fdf0ef; }
.co-pts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.co-pt { padding: 16px 18px; border: 1px solid #e3e9ec; border-radius: 14px; background: #f9fafb; }
.co-pt--over { border-color: #f3c4c1; background: #fffafa; }
.co-pt-h { display: flex; align-items: center; gap: 10px; }
.co-pt-h strong { font-size: 15px; color: #172b3e; }
.co-pt-s { margin: 4px 0 10px; font-size: 13px; color: #5b6877; }
.co-pt ul { margin: 0; padding: 0; list-style: none; }
.co-pt li { display: grid; grid-template-columns: 92px 74px minmax(0,1fr) 62px; gap: 8px; padding: 6px 0; border-top: 1px solid #eef1f3; font-size: 12.5px; color: #4b5866; }
.co-pt li b { color: #172b3e; }
.co-pt li span:last-child { text-align: right; font-weight: 700; color: #6a3fc4; }
.co-pt-h .co-over-tag { margin-left: auto; }
@media (max-width: 900px) { .co-pts { grid-template-columns: 1fr; } }
.co-rules { display: grid; gap: 10px; }
.co-rule { display: grid; grid-template-columns: minmax(0,1fr) auto 190px; gap: 16px; align-items: center; padding: 14px 16px 14px 18px; border-radius: 12px; background: #f9fafb; border-left: 5px solid #cfd7dc; }
.co-rule--claims { border-left-color: #915deb; background: #f8f5fe; }
.co-rule--theory { border-left-color: #8a95a1; }
.co-rule--guess { border-left-color: #e0a31f; background: #fffaf0; }
.co-rule strong { display: block; font-size: 14.5px; color: #172b3e; }
.co-rule small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: #5b6877; }
.co-rule b { text-align: right; font-size: 17px; color: #172b3e; }
@media (max-width: 900px) { .co-rule { grid-template-columns: 1fr; } .co-rule b { text-align: left; } }
.co-anchor { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr); gap: 28px; align-items: start; }
.co-anchor-l { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 14px; background: #f4effd; }
.co-anchor-l b { font-size: 40px; line-height: 1.1; color: #4a2c93; margin-top: 8px; }
.co-anchor-l strong { color: #172b3e; }
.co-anchor-l small { font-size: 13px; line-height: 1.5; color: #4b5866; }
.co-anchor-r .co-ledger td { padding: 12px 10px; }
@media (max-width: 900px) { .co-anchor { grid-template-columns: 1fr; } }
.co-exlist { margin: 0; padding: 0; list-style: none; }
.co-exlist li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid #eef1f3; }
.co-exlist li:first-child { border-top: 0; }
.co-exlist span { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #e4dff6; color: #4a2c93; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.co-exlist strong { display: block; font-size: 14.5px; color: #172b3e; }
.co-exlist small { display: block; margin-top: 2px; font-size: 13px; color: #5b6877; line-height: 1.45; }
.co-ex-go { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #4a2c93; text-decoration: none; }
.co-ex-go:hover { text-decoration: underline; }
.co-plain { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; line-height: 1.55; color: #2b3a4a; }
.co-check--who li { align-items: center; }
.co-check--who li > div { flex: 1; }
.co-check--who .co-tag { flex: none; }
/* hybrid pages */
.co-anc { scroll-margin-top: 70px; }
.co-board > .pf-sec, .co-board > .co-stats, .co-board > .co-caveat { max-width: none; }
.co-onecol { max-width: 980px; }
.co-tabs { position: sticky; top: 49px; z-index: 20; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: #fff; border-bottom: 1px solid #dde4e7; }
.co-tabs a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #4b5866; text-decoration: none; }
.co-tabs a:hover { background: #f4effd; }
.co-tabs a.is-on { background: #172b3e; color: #fff; }
.co-price { display: block; margin: 12px 0 0 10px; font-size: 13px; color: #4b5866; }
.co-price input { width: 84px; padding: 5px 8px; border: 1px solid #c8d3d8; border-radius: 8px; font: inherit; }
.co-board > .back-link { display: inline-block; margin-bottom: 18px; }
.co-layout .co-anchor { grid-template-columns: 1fr; gap: 20px; }
.co-layout .co-anchor-l { display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: 24px; align-items: center; }
.co-layout .co-anchor-l .co-xkind { grid-column: 1 / -1; justify-self: start; }
.co-layout .co-anchor-l b { grid-row: 2 / span 2; margin: 0; }
.co-layout .co-anchor-l strong { align-self: end; }
.co-layout .co-anchor-l small { align-self: start; }
.co-layout .co-anchor-r .co-ledger td:first-child { width: 52%; }
.co-sub { display: none; }
body.co-body .tp-contact { display: flex; align-items: center; gap: 10px; }
.co-export { position: relative; }
.co-export-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 190px; padding: 6px; border: 1px solid #dde4e7; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(23,43,62,.18); }
.co-export-menu[hidden] { display: none; }
.co-export-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; font-size: 14px; color: #172b3e; cursor: pointer; }
.co-export-menu button:hover { background: #f4effd; }
@media print { .co-export, .co-print { display: none; } }
.co-bf-top { justify-content: flex-end; }
.co-bigfind b { color: #172b3e; }
/* exhibit letter badges: neutral, not purple */
.co-ex-nav span, .co-ex-k, .co-exlist span { background: #e8edf0; color: #172b3e; }
/* ===== exposure card options (co2-) ===== */
.co2-d { font-weight: 400; color: #5b6877; }
.co2-terms { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dde4e7; border-radius: 12px; overflow: hidden; }
.co2-terms th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7684; background: #f7f9fa; border-bottom: 1px solid #dde4e7; }
.co2-terms td { padding: 12px 14px; border-bottom: 1px solid #eef1f3; font-size: 14px; line-height: 1.5; color: #4b5866; vertical-align: top; }
.co2-terms td:first-child { color: #172b3e; white-space: nowrap; }
.co2-terms td strong { color: #172b3e; }
.co2-b { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: #eef1f3; color: #4b5866; }
.co2-b--rec { background: #dff3ec; color: #0b6259; }
.co2-b--est { background: #fff3d6; color: #8a5a00; }
.co2-n { width: 36px; color: #8a95a1; font-weight: 700; }
.co2-sod td:nth-child(3) { white-space: nowrap; }
.co2-scale { display: grid; gap: 14px; margin-top: 8px; }
.co2-srow { display: grid; grid-template-columns: 250px minmax(0,1fr) 190px; gap: 18px; align-items: center; }
.co2-sl { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.co2-sl strong { font-size: 14.5px; color: #172b3e; }
.co2-sv { text-align: right; font-size: 16px; color: #172b3e; }
.co2-strack { position: relative; height: 16px; border-radius: 999px; background: #eef1f3; }
.co2-strack--ax { background: none; height: 26px; border-top: 2px solid #172b3e; border-radius: 0; }
.co2-strack--ax span { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: #5b6877; }
.co2-strack--ax i { position: absolute; left: 50%; top: -2px; width: 2px; height: 8px; background: #172b3e; transform: translateX(-50%); }
.co2-sbar { position: absolute; top: 0; height: 100%; border-radius: 999px; background: #8a95a1; }
.co2-sbar--rec { background: #0b6259; }
.co2-sbar--est { background: #e0a31f; }
.co2-sbar--law { background: #4b5866; }
@media (max-width: 900px) { .co2-srow { grid-template-columns: 1fr; gap: 6px; } .co2-sv { text-align: left; } }
.co2-sched th, .co2-sched td { white-space: nowrap; }
.co2-sched tfoot td { padding: 12px 14px; border-top: 2px solid #172b3e; background: #f7f9fa; }
.co2-sched tfoot .co2-pen td { border-top: 1px solid #dde4e7; background: #fff; white-space: normal; }
.co2-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.co2-col { padding: 18px 20px; border: 1px solid #e3e9ec; border-top: 5px solid #cfd7dc; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.co2-col--rec { border-top-color: #0b6259; }
.co2-col--law { border-top-color: #4b5866; }
.co2-col--est { border-top-color: #e0a31f; }
.co2-col-h { margin: 0; font-size: 15px; font-weight: 700; color: #172b3e; }
.co2-col-c { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7684; }
.co2-col b { font-size: 24px; line-height: 1.2; color: #172b3e; margin-top: 6px; }
.co2-col span { font-size: 13px; line-height: 1.5; color: #5b6877; }
@media (max-width: 900px) { .co2-cols { grid-template-columns: 1fr; } }
.co2-inputs { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #f7f9fa; }
.co2-in { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #4b5866; }
.co2-field { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: #172b3e; }
.co2-field input { width: 100px; padding: 7px 9px; border: 1px solid #c8d3d8; border-radius: 8px; font: inherit; }
.co2-reset { padding: 8px 16px; border-radius: 999px; border: 1px solid #172b3e; background: #fff; color: #172b3e; font-weight: 700; font-size: 13px; cursor: pointer; margin-left: auto; }
.co2-prose p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: #2b3a4a; max-width: 760px; }
.co2-prose strong { color: #172b3e; }
.co2-strack--ax span { padding-top: 10px; }
/* active section marker: teal instead of purple */
.co-sec-nav a.is-on { border-left-color: #5b929d; background: #e3eeef; }
.co-tabs a:hover { background: #e3eeef; }
/* active section marker: the same light green as the licensed-state chips */
.co-sec-nav a.is-on { border-left-color: #0b6259; background: #dff3ec; color: #0b6259; }
.co-tabs a:hover { background: #dff3ec; }
/* active section marker: simple grey */
.co-sec-nav a.is-on { border-left-color: #8a95a1; background: #eef1f3; color: #172b3e; }
.co-tabs a:hover { background: #eef1f3; }
/* red flags for a criminal case */
.co-flags { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.co-flags li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid #eef1f3; }
.co-flags li:first-child { border-top: 0; padding-top: 4px; }
.co-flag-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #172b3e; color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.co-flag-b { flex: 1; min-width: 0; }
.co-flag-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.co-flag-h h3 { margin: 0; font-size: 17px; color: #172b3e; }
.co-flag-b p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; color: #2b3a4a; max-width: 820px; }
.co-flag-b strong { color: #172b3e; }
/* estimate tags: neutral grey, no yellow */
.co-kind--guess, .co-x-guess .co-xkind, .co2-b--est { background: #eef1f3; color: #4b5866; }
.co-rule--guess { border-left-color: #8a95a1; background: #f9fafb; }
.co-sbar--est, .co2-col--est { border-color: #8a95a1; }
.co2-col--est { border-top-color: #8a95a1; }
.co2-sbar--est { background: #8a95a1; }
.co-rf { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: #e5322d; }
.co-rf svg { width: 15px; height: 15px; fill: currentColor; }
.co-bf-top { justify-content: space-between; }
.co-bf-top .co-rf { margin-left: 0; }
.pf-stat-label .co-rf { margin-left: 6px; }
.cf-note .co-rf { margin-left: 0; margin-right: 4px; vertical-align: -3px; }
.cf-table .co-rf { margin-left: 4px; vertical-align: -2px; }
.co-nw { white-space: nowrap; }
.co-layout .co-anchor-l b { grid-row: 1 / span 2; }

/* Home, Risk row: two tiles in two equal columns */
.mo-home-risk .exposure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .mo-home-risk .exposure-grid { grid-template-columns: 1fr; } }

/* Home, Risk row: wider bars to fill the empty space between label and bar */
.mo-home-risk .fb-row { grid-template-columns: 10px minmax(0, 1fr) 34px minmax(150px, 48%); }
@media (max-width: 520px) { .mo-home-risk .fb-row { grid-template-columns: 10px minmax(0, 1fr) 34px 96px; } }

/* Home, "Add a Group" tile: original pill button, stroke removed */
.patterns-band-recent .profile-card--empty .btn, body.tele-nav .patterns-band-recent .profile-card--empty .btn:hover, body.tele-nav .patterns-band-recent .profile-card--empty .btn:focus-visible { border: 0; box-shadow: none; }

/* Home, "Add a Group" tile: plus icon above the title */
.patterns-band-recent .profile-card--empty .icon-circle { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 0 8px; }
.patterns-band-recent .profile-card--empty .icon-circle svg { width: 16px; height: 16px; }
