:root {
  --admin-dark: #1d2327;
  --admin-hover: #2c3338;
  --blue: #2271b1;
  --blue-dark: #135e96;
  --blue-soft: #f0f6fc;
  --green: #008a20;
  --green-soft: #edfaef;
  --amber: #996800;
  --amber-soft: #fcf9e8;
  --red: #b32d2e;
  --red-soft: #fcf0f1;
  --text: #1d2327;
  --text-soft: #50575e;
  --text-faint: #646970;
  --border: #c3c4c7;
  --border-light: #dcdcde;
  --canvas: #f0f0f1;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 23px; font-weight: 400; line-height: 1.25; }
h2 { margin-bottom: 5px; font-size: 14px; font-weight: 600; line-height: 1.35; }
h3 { margin-bottom: 4px; font-size: 13px; line-height: 1.35; }
hr { margin: 18px 0; border: 0; border-top: 1px solid var(--border-light); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.grow { min-width: 0; flex: 1; }
.muted { color: var(--text-faint); }
.small { font-size: 11px; }
.preline { white-space: pre-line; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Salesforce/WordPress-style admin shell */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 220px;
  flex-direction: column;
  background: var(--admin-dark);
  color: #f0f0f1;
}
.brand {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid #3c434a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.brand-accent { color: inherit; }
.nav { display: flex; flex: 1; flex-direction: column; padding: 8px 0; }
.nav-link {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  color: #dcdcde;
  font-weight: 400;
}
.nav-link:hover { background: var(--admin-hover); color: #72aee6; text-decoration: none; }
.nav-link.active { position: relative; background: var(--blue); color: #fff; }
.nav-link.active::after {
  position: absolute;
  right: 0;
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent var(--canvas) transparent transparent;
  content: "";
}
.nav-icon { width: 18px; color: #a7aaad; font-size: 16px; line-height: 1; text-align: center; }
.nav-link.active .nav-icon { color: #fff; }
.nav-section { margin: 19px 14px 5px; color: #8c8f94; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-user {
  display: flex;
  min-height: 61px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #3c434a;
  background: #23282d;
}
.sidebar-user-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.sidebar-user-copy strong { overflow: hidden; color: #f0f0f1; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy span { color: #a7aaad; font-size: 10px; }
.app-main { min-height: 100vh; margin-left: 220px; }
.topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}
.topbar > :last-child { display: flex; align-items: center; gap: 7px; }
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.topbar-actions form { display: flex; margin: 0; }
.topbar-context { margin-bottom: 1px; color: var(--text-faint); font-size: 10px; }
.topbar-context span { padding: 0 3px; color: #a7aaad; }
.content { width: min(1500px, 100%); margin: 0 auto; padding: 20px 24px 34px; }
.app-footer { padding: 14px 24px 22px; color: var(--text-faint); font-size: 10px; text-align: center; }
.eyebrow { margin-bottom: 3px; color: var(--text-faint); font-size: 10px; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.eyebrow.light { color: var(--text-faint); }
.panel-description { margin: 0; color: var(--text-faint); font-size: 11px; }

/* Compact controls */
.button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f6f7f7;
  color: #2c3338;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 1px 0 var(--border);
}
.button:hover { border-color: #8c8f94; background: #f0f0f1; color: var(--text); text-decoration: none; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 1px 0 var(--blue-dark); }
.button.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.button.secondary { border-color: var(--blue); background: #fff; color: var(--blue); box-shadow: none; }
.button.secondary:hover { border-color: var(--blue-dark); background: var(--blue-soft); color: var(--blue-dark); }
.button.accent { border-color: var(--blue); background: var(--blue); color: #fff; }
.button.danger { border-color: var(--red); background: #fff; color: var(--red); box-shadow: none; }
.button.danger:hover { border-color: #8f2424; background: var(--red-soft); color: #8f2424; }
.button.compare-button { border-color: var(--blue); background: #fff; color: var(--blue); box-shadow: none; }
.button:disabled { cursor: default; opacity: .5; }
.button.disabled, .button.disabled:hover { cursor: not-allowed; border-color: var(--border); background: #f6f7f7; color: var(--text-faint); opacity: .72; }
.button.full { width: 100%; }
.button.small { min-height: 27px; padding: 3px 8px; font-size: 11px; }
.icon-button { padding: 2px 5px; border: 0; background: transparent; color: var(--text-faint); cursor: pointer; font-size: 18px; line-height: 1; }
.icon-button:hover { color: var(--red); }
.icon-button.inverse { color: #a7aaad; }
.text-link { font-size: 11px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #8c8f94;
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--text);
}
textarea { padding: 7px 8px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
label { color: #3c434a; font-size: 11px; font-weight: 500; }
label > input, label > select, label > textarea { display: block; margin-top: 4px; font-weight: 400; }
.field label { display: block; margin-bottom: 4px; }
.field-help { display: block; margin-top: 5px; color: var(--text-faint); font-size: 9px; }
.field .field-clear { display: flex; margin-top: 7px; }
.stacked-form { display: grid; gap: 13px; margin-top: 18px; }
.checkbox-line { display: flex; align-items: center; gap: 7px; font-weight: 400; }
.checkbox-line input { width: 15px; min-height: 15px; margin: 0; }

/* Flat panels and dashboard widgets */
.panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: -16px -16px 14px; padding: 11px 13px; border-bottom: 1px solid var(--border-light); }
.panel-header h2 { margin-bottom: 0; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(285px, .75fr); gap: 16px; }
.dashboard-search { display: flex; min-height: 73px; align-items: center; gap: 24px; margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--blue); }
.dashboard-search-copy { min-width: 280px; }
.dashboard-search-copy h2 { margin: 0; font-size: 15px; }
.dashboard-search-copy p { margin: 2px 0 0; color: var(--text-faint); font-size: 11px; }
.dashboard-search-form { display: grid; min-width: 430px; grid-template-columns: 120px 150px auto; align-items: end; gap: 8px; }
.dashboard-search-form.dashboard-member-search-form {
  width: min(680px, 100%);
  min-width: 0;
  margin-left: auto;
  grid-template-columns: minmax(145px, 1.3fr) 125px 135px 88px auto;
  align-items: center;
}
.dashboard-member-search-form input { min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { display: flex; min-height: 100px; flex-direction: column; padding: 0 13px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.metric-label { margin: 0 -13px 8px; padding: 7px 10px; border-bottom: 1px solid var(--border-light); background: #f6f7f7; color: #3c434a; font-size: 11px; font-weight: 600; }
.metric-card strong { margin: 0 0 4px; font-size: 24px; font-weight: 400; line-height: 1.15; }
.metric-card small { margin-top: auto; color: var(--text-faint); font-size: 10px; }
.metric-card .metric-status { font-size: 17px; }
.metric-status.good { color: var(--green); }
.source-panel { background: #fff; }
.carrier-update-scroll {
  height: 252px;
  padding-right: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.carrier-update-row { height: 84px; min-height: 84px; }
.carrier-update-logo {
  display: flex;
  width: 82px;
  height: 42px;
  flex: 0 0 82px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.carrier-update-logo img {
  display: block;
  max-width: 76px;
  max-height: 34px;
  object-fit: contain;
}
.carrier-update-logo.wellcare-logo img { width: 100%; height: 100%; }
.agent-resource-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -1px -1px;
  padding: 14px 1px 1px;
  border-top: 1px solid #dcdcde;
  background: #fff;
}

/* Notices, labels and compact rows */
.flash-stack { display: grid; gap: 7px; margin-bottom: 14px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--border-light); border-left: 4px solid var(--blue); border-radius: 0; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); font-size: 12px; }
.flash-success { border-left-color: var(--green); }
.flash-error { border-left-color: var(--red); }
.flash-close { border: 0; background: transparent; color: var(--text-faint); cursor: pointer; font-size: 16px; }
.notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 9px 11px; border: 1px solid var(--border-light); border-left: 4px solid var(--blue); border-radius: 0; background: #fff; color: var(--text-soft); font-size: 11px; }
.notice strong { color: var(--text); white-space: nowrap; }
.notice.warning { border-left-color: #dba617; }
.notice.danger { border-left-color: var(--red); }
.empty { padding: 32px 16px; color: var(--text-faint); text-align: center; }
.empty.compact { padding: 19px 8px; }
.empty h2, .empty h3 { color: var(--text); }
.list-rows { display: grid; }
.list-row { display: flex; min-height: 52px; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid #eee; color: var(--text); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { color: var(--text); text-decoration: none; }
.list-row .grow { display: flex; flex-direction: column; }
.list-row small { color: var(--text-faint); font-size: 10px; }
.avatar { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #646970; color: #fff; font-size: 10px; font-weight: 600; }
.avatar.soft { background: #dcdcde; color: #2c3338; }
.avatar.xl { width: 48px; height: 48px; font-size: 14px; }
.status, .pill { display: inline-flex; width: max-content; min-height: 19px; align-items: center; padding: 1px 6px; border: 1px solid var(--border-light); border-radius: 2px; background: #f6f7f7; color: var(--text-soft); white-space: nowrap; font-size: 9px; font-weight: 600; }
.status-lead, .status-running { border-color: #a7d0ef; background: var(--blue-soft); color: var(--blue-dark); }
.status-quoted { border-color: #e5d18b; background: var(--amber-soft); color: var(--amber); }
.status-enrolled, .status-completed { border-color: #a7d7ad; background: var(--green-soft); color: var(--green); }
.status-closed, .status-failed { border-color: #efb5b5; background: var(--red-soft); color: var(--red); }
.pill.category { border-color: #a7d0ef; background: var(--blue-soft); color: var(--blue-dark); }
.pill.danger { border-color: #efb5b5; background: var(--red-soft); color: var(--red); }
.pill-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }

/* Plan finder */
.plan-search-ai-open svg { width: 15px; height: 15px; fill: currentColor; }
.search-panel { margin-bottom: 14px; padding: 13px; }
.search-form { display: grid; grid-template-columns: 110px repeat(3, minmax(145px, 1fr)) auto; gap: 9px; align-items: end; }
.or-divider { align-self: center; color: var(--text-faint); font-size: 10px; text-align: center; }
.advanced-filters { grid-column: 1 / -2; padding-top: 8px; border-top: 1px solid var(--border-light); }
.advanced-filters summary { width: max-content; color: var(--blue); cursor: pointer; font-size: 11px; }
.advanced-grid { display: grid; grid-template-columns: minmax(260px, 420px); gap: 9px; margin-top: 9px; }
.search-submit { grid-column: -2 / -1; }
.geography-notice { display: block; }
.geography-notice > div:first-child { display: flex; gap: 7px; margin-bottom: 7px; }
.choice-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.choice-pill { padding: 3px 7px; border: 1px solid var(--border); border-radius: 2px; background: #f6f7f7; color: var(--text-soft); font-size: 10px; }
.choice-pill.selected { border-color: var(--blue); background: var(--blue); color: #fff; }
.results-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0 9px; }
.results-toolbar h2 { margin-bottom: 0; font-size: 16px; font-weight: 400; }
.compare-button-slot { display: flex; min-width: 154px; min-height: 32px; justify-content: flex-end; }
.button.compare-button.is-sticky {
  position: fixed;
  top: 82px;
  right: max(24px, calc((100vw - 1720px) / 2 + 24px));
  z-index: 70;
  box-shadow: 0 2px 7px rgba(29, 35, 39, .18);
}
.ai-filter-notice { justify-content: space-between; }
.ai-filter-notice > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.ai-filter-notice > div span { overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.ai-filter-notice .button { flex: 0 0 auto; }
.plan-search-ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 84;
  background: rgba(29, 35, 39, .42);
  opacity: 0;
  transition: opacity .18s ease;
}
.plan-search-ai-backdrop.open { opacity: 1; }
.plan-search-ai-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 85;
  display: flex;
  width: min(520px, 100vw);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid #3c434a;
  background: #151b20;
  color: #f0f0f1;
  box-shadow: -10px 0 28px rgba(29, 35, 39, .24);
  transform: translateX(102%);
  transition: transform .2s ease;
  visibility: hidden;
}
.plan-search-ai-drawer.open { transform: translateX(0); visibility: visible; }
.plan-search-ai-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #3c434a;
  background: #1d2327;
}
.plan-search-ai-header .eyebrow { margin-bottom: 1px; color: #a7aaad; }
.plan-search-ai-header h2 { margin: 0; color: #fff; font-size: 14px; }
.plan-search-ai-mark { display: inline-flex; color: #72aee6; }
.plan-search-ai-mark svg { width: 21px; height: 21px; fill: currentColor; }
.plan-search-ai-close {
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #a7aaad;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.plan-search-ai-close:hover, .plan-search-ai-close:focus-visible { color: #fff; outline: 0; }
.plan-search-ai-body { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow-y: auto; }
.plan-search-ai-context { display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; border-bottom: 1px solid #3c434a; background: #23282d; }
.plan-search-ai-context strong { color: #f0f0f1; font-size: 10px; text-transform: uppercase; }
.plan-search-ai-context span { color: #a7aaad; font-size: 11px; }
.plan-search-ai-messages { display: grid; gap: 10px; padding: 16px; }
.plan-search-ai-message { width: fit-content; max-width: 92%; padding: 9px 10px; border-left: 2px solid #72aee6; background: #23282d; color: #f0f0f1; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.plan-search-ai-message.user { margin-left: auto; border-right: 2px solid #8c8f94; border-left: 0; background: #2c3338; color: #fff; }
.plan-search-ai-message.loading { color: #a7aaad; }
.plan-search-ai-examples { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.plan-search-ai-examples button { padding: 5px 8px; border: 1px solid #50575e; border-radius: 2px; background: #23282d; color: #c3c4c7; cursor: pointer; font-size: 10px; }
.plan-search-ai-examples button:hover, .plan-search-ai-examples button:focus-visible { border-color: #72aee6; color: #fff; outline: 0; }
.plan-search-ai-form { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #3c434a; background: #1d2327; }
.plan-search-ai-form textarea { width: 100%; resize: vertical; border-color: #50575e; background: #2c3338; color: #fff; }
.plan-search-ai-form textarea::placeholder { color: #a7aaad; }
.plan-search-ai-form textarea:focus { border-color: #72aee6; box-shadow: 0 0 0 1px #72aee6; outline: 0; }
.plan-search-ai-form .button { width: 100%; }
.plan-search-ai-form .button:disabled { opacity: .55; }
.plan-list { display: grid; gap: 7px; }
.plan-card { position: relative; min-height: 96px; padding: 17px 54px 17px 17px; border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.035); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.plan-card:hover, .plan-card:focus-visible { border-color: #8c8f94; border-left-color: var(--blue-dark); box-shadow: 0 2px 5px rgba(0,0,0,.07); outline: 0; }
.plan-card.expanded { border-left-color: var(--blue-dark); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.plan-card.sanctioned { border-left-color: var(--red); }
.compare-check { position: absolute; top: 7px; right: 9px; display: flex; align-items: center; gap: 4px; color: var(--text-faint); font-size: 9px; font-weight: 400; }
.compare-check input { width: 14px; min-height: 14px; margin: 0; }
.plan-ai-trigger {
  position: absolute;
  top: 29px;
  right: 8px;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid #72aee6;
  border-radius: 2px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}
.plan-ai-trigger:hover, .plan-ai-trigger:focus-visible { border-color: var(--blue-dark); background: var(--blue-soft); color: var(--blue-dark); outline: 0; }
.plan-ai-trigger svg { width: 13px; height: 13px; fill: currentColor; }
.plan-ai-panel {
  width: min(620px, 100%);
  margin: 14px 0 2px auto;
  overflow: hidden;
  border: 1px solid #3c434a;
  border-radius: 3px;
  background: #151b20;
  color: #f0f0f1;
  cursor: default;
  box-shadow: 0 2px 8px rgba(29, 35, 39, .16);
}
.plan-ai-panel[hidden] { display: none; }
.plan-ai-header { display: flex; min-height: 34px; align-items: center; gap: 7px; padding: 6px 9px; border-bottom: 1px solid #3c434a; background: #1d2327; }
.plan-ai-header strong { font-size: 10px; font-weight: 600; }
.plan-ai-mark { display: inline-flex; color: #72aee6; }
.plan-ai-mark svg { width: 14px; height: 14px; fill: currentColor; }
.plan-ai-close { margin-left: auto; padding: 0 3px; border: 0; background: transparent; color: #a7aaad; cursor: pointer; font-size: 18px; line-height: 1; }
.plan-ai-close:hover, .plan-ai-close:focus-visible { color: #fff; outline: 0; }
.plan-ai-messages { display: grid; max-height: 210px; gap: 8px; padding: 10px; overflow-y: auto; }
.plan-ai-message { width: fit-content; max-width: 92%; padding: 7px 8px; border-left: 2px solid #72aee6; background: #23282d; color: #f0f0f1; font-size: 11px; line-height: 1.45; white-space: pre-wrap; }
.plan-ai-message.user { margin-left: auto; border-right: 2px solid #8c8f94; border-left: 0; background: #2c3338; color: #fff; }
.plan-ai-message.loading { color: #a7aaad; }
.plan-ai-caret { display: inline-block; width: 1px; height: 12px; margin-left: 2px; background: #72aee6; vertical-align: -2px; animation: plan-ai-caret 1s steps(1) infinite; }
.plan-ai-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px; border-top: 1px solid #3c434a; background: #1d2327; }
.plan-ai-form input { min-height: 31px; border-color: #50575e; background: #2c3338; color: #fff; }
.plan-ai-form input::placeholder { color: #a7aaad; }
.plan-ai-form input:focus { border-color: #72aee6; box-shadow: 0 0 0 1px #72aee6; }
.plan-ai-form button { min-width: 54px; min-height: 31px; padding: 4px 10px; border: 1px solid var(--blue); border-radius: 2px; background: var(--blue); color: #fff; cursor: pointer; font-size: 10px; font-weight: 600; }
.plan-ai-form button:hover, .plan-ai-form button:focus-visible { border-color: #72aee6; background: var(--blue-dark); outline: 0; }
.plan-ai-form button:disabled { cursor: default; opacity: .55; }
@keyframes plan-ai-caret { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.plan-card-summary { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, .9fr); gap: 24px; align-items: center; min-height: 60px; }
.plan-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
.plan-carrier-logo { display: flex; width: 76px; height: 48px; flex: 0 0 76px; align-items: center; justify-content: center; overflow: hidden; border: 0; background: transparent; }
.plan-carrier-logo img { display: block; max-width: 72px; max-height: 44px; object-fit: contain; }
.plan-identity h3 { margin-bottom: 2px; font-size: 13px; font-weight: 600; }
.plan-identity p { margin-bottom: 0; color: var(--text-faint); font-size: 10px; }
.plan-identity .plan-sanction-warning { margin-top: 4px; color: var(--red); font-weight: 600; }
.carrier-logo-text { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border-light); border-radius: 2px; background: #f6f7f7; color: #3c434a; font-size: 11px; font-weight: 600; }
.carrier-logo-text.large { width: 52px; height: 52px; font-size: 14px; }
.plan-facts { display: grid; gap: 12px; margin: 0; }
.plan-facts-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-facts-details { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 15px 0 1px; border-top: 1px solid var(--border-light); }
.plan-facts-details .medicaid-eligibility { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--border-light); }
.plan-facts dt { color: var(--text-faint); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.plan-facts dd { margin: 3px 0 0; font-size: 12px; font-weight: 600; }
.plan-card-expanded { margin-top: 15px; }
.plan-card-expanded[hidden] { display: none; }
.plan-card-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-top: 14px; }
.plan-card-actions .button { min-height: 32px; padding: 6px 9px; font-size: 10px; text-align: center; }
.plan-card-toggle { position: absolute; right: 13px; bottom: 12px; display: grid; width: 30px; min-height: 30px; place-items: center; padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--blue); cursor: pointer; }
.plan-card-toggle:hover, .plan-card-toggle:focus-visible { background: var(--blue-soft); outline: 1px solid #72aee6; }
.plan-card-toggle svg { width: 20px; height: 20px; fill: currentColor; transition: transform .15s ease; }
.plan-card.expanded .plan-card-toggle svg { transform: rotate(180deg); }
.stars { color: #dba617; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 17px 0; font-size: 11px; }

/* Client provider drawer */
.plan-context-actions { display: flex; justify-content: flex-end; gap: 7px; margin: 0 0 7px; }
.doctors-button svg, .medications-button svg, .provider-search-form .button svg { width: 15px; height: 15px; fill: currentColor; }
.medication-search-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.medication-search-form .button { grid-column: auto; white-space: nowrap; }
.provider-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(29, 35, 39, .38);
  opacity: 0;
  transition: opacity .18s ease;
}
.provider-drawer-backdrop.open { opacity: 1; }
.provider-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 81;
  display: flex;
  width: min(500px, 100vw);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid #8c8f94;
  background: #fff;
  box-shadow: -8px 0 24px rgba(29, 35, 39, .18);
  transform: translateX(102%);
  transition: transform .2s ease;
  visibility: hidden;
}
.provider-drawer.open { transform: translateX(0); visibility: visible; }
.provider-drawer-header {
  display: flex;
  min-height: 86px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #f6f7f7;
}
.provider-drawer-header .eyebrow { color: var(--blue-dark); }
.provider-drawer-header h2 { margin: 0 0 2px; font-size: 19px; font-weight: 500; }
.provider-drawer-header p:last-child { margin: 0; color: var(--text-faint); font-size: 10px; }
.provider-drawer-close, .provider-remove-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}
.provider-drawer-close:hover { border-color: var(--border); background: #fff; color: var(--text); }
.provider-drawer-close svg { width: 18px; height: 18px; fill: currentColor; }
.provider-drawer-body { flex: 1; min-height: 0; overflow-y: auto; }
.provider-section { padding: 18px 20px; border-bottom: 1px solid var(--border-light); }
.provider-search-section {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 0 2px 5px rgba(29, 35, 39, .08);
}
.provider-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.provider-section-heading h3 { margin: 0 0 2px; font-size: 13px; }
.provider-section-heading p { margin: 0; color: var(--text-faint); font-size: 10px; }
.provider-empty { margin: 0; padding: 13px; border: 1px dashed var(--border); background: #f9f9f9; color: var(--text-faint); font-size: 11px; text-align: center; }
.saved-doctor-list { display: grid; gap: 8px; }
.provider-result-list { display: none; }
.provider-result-list:not(:empty) {
  display: grid;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #f6f7f7;
}
.saved-doctor-card, .provider-result-card { padding: 12px; border: 1px solid var(--border-light); border-left: 3px solid var(--blue); background: #fff; }
.provider-result-card { border-left-color: #8c8f94; }
.provider-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.provider-card-heading > div { display: flex; min-width: 0; flex-direction: column; }
.provider-card-heading strong { color: var(--text); font-size: 12px; }
.provider-card-heading span { margin-top: 2px; color: var(--text-soft); font-size: 10px; }
.saved-doctor-card p, .provider-result-card p { margin: 8px 0; color: var(--text-soft); font-size: 10px; line-height: 1.5; }
.provider-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-faint); font-size: 9px; }
.provider-result-card .provider-card-meta { margin-bottom: 9px; }
.provider-remove-button { width: 26px; height: 26px; }
.provider-remove-button:hover { border-color: #efb5b5; background: var(--red-soft); color: var(--red); }
.provider-remove-button:disabled { cursor: wait; opacity: .55; }
.provider-remove-button svg { width: 15px; height: 15px; fill: currentColor; }
.provider-search-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.provider-search-form label { display: block; }
.provider-search-form input { margin-top: 4px; }
.provider-search-form .button { grid-column: 1 / -1; }
.provider-search-status { min-height: 22px; padding: 11px 0 3px; color: var(--text-faint); font-size: 10px; }
.provider-search-status.error { color: var(--red); }
.provider-result-card .button { width: 100%; min-height: 29px; font-size: 10px; }
.provider-drawer-footer { padding: 11px 20px; border-top: 1px solid var(--border-light); background: #f6f7f7; color: var(--text-faint); font-size: 9px; line-height: 1.45; }
body.provider-drawer-open { overflow: hidden; }

/* Detail and cases */
.plan-detail-hero, .case-summary { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.plan-detail-hero h2, .case-summary h2 { margin-bottom: 2px; font-size: 18px; font-weight: 400; }
.plan-detail-hero p, .case-summary p { margin-bottom: 3px; color: var(--text-faint); }
.plan-detail-hero .mono { color: var(--text-faint); font-size: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 12px; }
.sticky-panel { position: sticky; top: 14px; }
#save-plan-form label { display: block; margin-top: 9px; }
#save-plan-form label:first-of-type { margin-top: 0; }
#save-plan-form .button { margin-top: 9px; }
.definition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--border-light); }
.definition-grid div { min-height: 67px; padding: 10px; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.definition-grid div:nth-child(3n) { border-right: 0; }
.definition-grid dt, .stacked-definition dt, .summary-inline dt { color: var(--text-faint); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.definition-grid dd, .stacked-definition dd, .summary-inline dd { margin: 4px 0 0; font-size: 11px; font-weight: 500; }
.definition-grid .wide { grid-column: span 2; }
.area-details summary { color: var(--blue); cursor: pointer; font-size: 11px; }
.area-grid { display: grid; max-height: 260px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 10px; overflow: auto; }
.area-grid span { padding: 5px 6px; border: 1px solid #eee; background: #f6f7f7; font-size: 9px; }
.count-badge { padding: 2px 6px; border: 1px solid var(--border-light); background: #f6f7f7; color: var(--text-faint); font-size: 9px; }
.source-card { font-size: 11px; }
.summary-inline { display: grid; min-width: 280px; grid-template-columns: repeat(2, 1fr); gap: 13px; margin: 0; }
.stacked-definition { display: grid; gap: 0; margin: 12px 0 0; }
.stacked-definition div { padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.saved-plan-list { display: grid; gap: 6px; }
.saved-plan { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--border-light); background: #fff; }
.saved-plan h3 { margin: 3px 0 2px; }
.saved-plan p { margin-bottom: 0; color: var(--text-faint); font-size: 10px; }
.saved-plan.current-plan { border-left: 3px solid var(--blue); background: #fff; }
.saved-plan.past-plan { border-left: 3px solid #8c8f94; background: #f6f7f7; }
.panel-subsection-header { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.panel-subsection-header .eyebrow { margin: 0; }
.panel-subsection-header h2 { margin: 0; font-size: 13px; }
.panel-subsection-header .pill { margin-left: auto; }
.plan-history-list { margin-top: 9px; }
.sensitive-field-list { display: grid; margin-top: 10px; border: 1px solid var(--border-light); }
.sensitive-field-row { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 8px 9px; border-bottom: 1px solid var(--border-light); }
.sensitive-field-row:last-child { border-bottom: 0; }
.sensitive-field-row .grow { display: flex; flex-direction: column; gap: 3px; }
.sensitive-field-row small { color: var(--text-faint); font-size: 9px; }
.sensitive-field-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.sensitive-reveal-button { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); cursor: pointer; }
.sensitive-reveal-button:hover { background: var(--blue-soft); color: var(--blue-dark); }
.sensitive-reveal-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.sensitive-reveal-button:disabled { cursor: wait; opacity: .55; }
.visibility-icon { grid-area: 1 / 1; width: 18px; height: 18px; }

/* Forms and data tables */
.form-layout { display: grid; gap: 12px; }
.form-section { max-width: 1050px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field.wide { grid-column: 1 / -1; }
.form-actions { display: flex; max-width: 1050px; justify-content: flex-end; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 7px 9px; border-bottom: 1px solid var(--border); background: #f6f7f7; color: #3c434a; font-size: 9px; font-weight: 600; text-align: left; text-transform: uppercase; }
.data-table td { padding: 9px; border-bottom: 1px solid var(--border-light); font-size: 11px; vertical-align: middle; }
.data-table td > small { display: block; margin-top: 2px; color: var(--text-faint); font-size: 9px; }
.data-table tr:last-child td { border-bottom: 0; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: var(--blue-soft); }
.hash { display: block; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error-text { color: var(--red) !important; }
.admin-users { align-items: start; }
.client-list-header { align-items: flex-end; }
.client-list-search { display: grid; grid-template-columns: minmax(240px, 360px) auto auto; align-items: end; gap: 6px; }
.client-list-search label { margin: 0; }
.client-case-table th:last-child, .client-case-table td:last-child { width: 230px; text-align: right; }
.client-case-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.client-import-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 16px; align-items: start; }
.client-import-panel .stacked-form { max-width: 650px; }
.client-import-panel input[type="file"] { min-height: 40px; padding: 7px; }
.client-import-panel .button[type="submit"] { width: max-content; }
.client-import-notice { margin: 0; }
.client-import-fields > p:not(.eyebrow) { margin-bottom: 11px; color: var(--text-soft); font-size: 11px; }
.import-field-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.import-field-list code { padding: 3px 5px; border: 1px solid var(--border-light); border-radius: 2px; background: #f6f7f7; color: #3c434a; font-size: 9px; }
.client-import-fields .import-zip-note { margin-bottom: 0; padding-top: 11px; border-top: 1px solid var(--border-light); line-height: 1.55; }
.import-results { margin-top: 16px; }
.import-message-group { margin-top: 12px; padding: 10px 12px; border-left: 4px solid var(--border); background: #f6f7f7; }
.import-message-group h3 { margin-bottom: 6px; }
.import-message-group ul { max-height: 260px; margin: 0; padding-left: 19px; overflow: auto; }
.import-message-group li { margin: 3px 0; font-size: 10px; }
.import-errors { border-left-color: var(--red); background: var(--red-soft); }
.import-warnings { border-left-color: #dba617; background: var(--amber-soft); }
.import-clean-result { margin: 0; color: var(--green); }
.integration-settings-layout { align-items: start; }
.integration-settings-panel { max-width: 820px; }
.crm-settings-form { margin-top: 16px; }
.integration-form-actions { justify-content: flex-start; }
.disconnect-integration-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.integration-summary-panel > p:not(.eyebrow) { color: var(--text-soft); font-size: 11px; line-height: 1.6; }
.integration-security-notice { margin: 16px 0 0; }
.crm-push-status { margin-top: 14px; }
.crm-push-status p { margin: 4px 0 0; color: var(--text-faint); font-size: 10px; }
.carrier-access-panel { padding-bottom: 12px; }
.carrier-access-header { align-items: center; }
.carrier-access-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.carrier-access-tools label { width: min(420px, 100%); }
.carrier-access-actions { display: flex; gap: 6px; }
.carrier-access-table-wrap { max-height: 58vh; border: 1px solid var(--border-light); }
.carrier-access-table thead { position: sticky; top: 0; z-index: 1; }
.carrier-access-table th:first-child, .carrier-access-table td:first-child { width: 70px; text-align: center; }
.carrier-access-table th:last-child, .carrier-access-table td:last-child { width: 120px; text-align: right; }
.carrier-access-table input[type="checkbox"] { width: 16px; min-height: 16px; margin: 0; }
.carrier-access-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }

/* Comparison */
.compare-scroll { overflow-x: auto; padding: 0; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 9px 11px; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.compare-table th:first-child { width: 210px; background: #f6f7f7; }
.compare-table thead th { background: #fff; }
.compare-table thead th:not(:first-child) a { display: block; margin: 6px 0 2px; color: var(--text); font-size: 12px; }
.compare-table thead small { display: block; color: var(--text-faint); font-size: 9px; font-weight: 400; }
.compare-table tbody th { color: #3c434a; font-size: 10px; font-weight: 600; }
.compare-table td { font-size: 11px; font-weight: 500; }

/* Public MedicareZulu landing page */
.marketing-body {
  min-height: 100vh;
  background: #fff;
  color: #17212b;
  font-size: 15px;
}
.landing-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #dfe3e7;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.landing-nav { display: flex; min-height: 68px; align-items: center; gap: 30px; }
.landing-brand { color: #111820; font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.landing-brand:hover { color: #111820; text-decoration: none; }
.landing-nav-links { display: flex; align-items: center; gap: 27px; margin-left: 30px; }
.landing-nav-links a, .landing-text-link { color: #3d4b57; font-size: 13px; font-weight: 600; }
.landing-nav-links a:hover, .landing-text-link:hover { color: var(--blue); text-decoration: none; }
.landing-nav-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.landing-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid #2b7fbe;
  border-radius: 3px;
  background: #2b7fbe;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 1px 0 #135e96;
}
.landing-button:hover { border-color: #135e96; background: #135e96; color: #fff; text-decoration: none; }
.landing-button-small { min-height: 36px; padding: 7px 13px; font-size: 12px; }
.landing-button-large { min-height: 48px; padding: 12px 20px; font-size: 14px; }
.landing-button-ghost { border-color: #61717f; background: transparent; color: #eef5fa; box-shadow: none; }
.landing-button-ghost:hover { border-color: #eef5fa; background: rgba(255,255,255,.07); color: #fff; }
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
  background: linear-gradient(135deg, #111820 0%, #19242d 58%, #10161c 100%);
  color: #fff;
}
.landing-hero::before {
  position: absolute;
  top: -250px;
  left: 48%;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(114,174,230,.18);
  border-radius: 50%;
  content: "";
}
.landing-hero::after {
  position: absolute;
  right: -160px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(114,174,230,.12);
  border-radius: 50%;
  content: "";
}
.landing-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .83fr) minmax(560px, 1.17fr); align-items: center; gap: 58px; }
.landing-kicker { margin-bottom: 14px; color: #2b7fbe; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.landing-hero .landing-kicker { color: #72aee6; }
.landing-hero h1 { max-width: 620px; margin: 0; color: #fff; font-size: clamp(39px, 4.5vw, 61px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.landing-lead { max-width: 590px; margin: 25px 0 0; color: #c5d0d9; font-size: 17px; line-height: 1.68; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.landing-trust-list { display: flex; flex-wrap: wrap; gap: 16px 22px; margin: 28px 0 0; padding: 0; color: #aab8c3; font-size: 11px; list-style: none; }
.landing-trust-list li { display: flex; align-items: center; gap: 7px; }
.landing-trust-list span { color: #72aee6; font-weight: 800; }
.landing-product-frame { overflow: hidden; border: 1px solid #475663; border-radius: 5px; background: #eef0f2; box-shadow: 0 28px 70px rgba(0,0,0,.38); transform: rotate(.35deg); }
.landing-product-topbar { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 14px; border-bottom: 1px solid #dcdcde; background: #fff; color: #1d2327; }
.landing-product-topbar > div { display: flex; flex-direction: column; }
.landing-product-topbar small { color: #646970; font-size: 8px; }
.landing-product-topbar strong { font-size: 16px; font-weight: 500; }
.landing-ai-button { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 2px; background: var(--blue); color: #fff; font-size: 9px; font-weight: 700; }
.landing-ai-button svg { width: 12px; height: 12px; fill: currentColor; }
.landing-product-body { padding: 13px; }
.landing-search-demo { display: grid; grid-template-columns: .7fr 1.3fr 1.1fr auto; gap: 7px; padding: 10px; border: 1px solid #c3c4c7; background: #fff; }
.landing-search-demo > div { display: flex; min-width: 0; min-height: 47px; flex-direction: column; gap: 5px; padding: 5px 7px; border: 1px solid #8c8f94; background: #fff; }
.landing-search-demo small, .landing-results-demo-head small, .landing-demo-fact small { color: #646970; font-size: 7px; text-transform: uppercase; }
.landing-search-demo strong { overflow: hidden; color: #2c3338; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.landing-search-demo > span { display: inline-flex; min-height: 34px; align-self: end; align-items: center; padding: 6px 9px; border-radius: 2px; background: var(--blue); color: #fff; font-size: 8px; font-weight: 700; }
.landing-ai-filter-demo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 8px 10px; border: 1px solid #dcdcde; border-left: 3px solid var(--blue); background: #fff; color: #2c3338; }
.landing-ai-filter-demo > div { display: flex; flex-direction: column; }
.landing-ai-filter-demo strong { font-size: 8px; }
.landing-ai-filter-demo small { color: #50575e; font-size: 8px; }
.landing-ai-filter-demo > span { color: #008a20; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.landing-results-demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px 1px 7px; color: #1d2327; }
.landing-results-demo-head > div { display: flex; flex-direction: column; }
.landing-results-demo-head strong { font-size: 10px; font-weight: 500; }
.landing-results-demo-head > span { color: var(--blue); font-size: 8px; }
.landing-plan-demo { position: relative; display: grid; min-height: 72px; grid-template-columns: 40px minmax(180px, 1fr) 83px 70px; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 65px 10px 11px; border: 1px solid #c3c4c7; border-left: 3px solid var(--blue); background: #fff; color: #1d2327; }
.landing-demo-logo { display: grid; width: 36px; height: 36px; place-items: center; background: #f0ece2; color: #8e24aa; font-size: 18px; font-weight: 800; }
.landing-demo-logo-alt { background: #eef1f8; color: #1f3c88; font-family: Georgia, serif; font-size: 16px; }
.landing-demo-name { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.landing-demo-name strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.landing-demo-name small { color: #646970; font-size: 7px; }
.landing-demo-fact { display: flex; flex-direction: column; gap: 3px; }
.landing-demo-fact strong { font-size: 9px; }
.landing-demo-ask { position: absolute; top: 25px; right: 8px; padding: 4px 6px; border: 1px solid #72aee6; color: var(--blue); font-size: 7px; font-weight: 700; }
.landing-proof { border-bottom: 1px solid #e1e5e8; background: #fff; }
.landing-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.landing-proof-grid > div { display: flex; min-height: 112px; flex-direction: column; justify-content: center; padding: 20px 27px; border-right: 1px solid #e1e5e8; }
.landing-proof-grid > div:first-child { border-left: 1px solid #e1e5e8; }
.landing-proof-grid strong { margin-bottom: 5px; color: #17212b; font-size: 17px; }
.landing-proof-grid span { color: #66737e; font-size: 12px; }
.landing-section { padding: 102px 0; background: #fff; }
.landing-section-heading { max-width: 720px; margin: 0 auto 49px; text-align: center; }
.landing-section-heading h2, .landing-agency-copy h2, .landing-final-cta h2 { margin: 0; color: #17212b; font-size: clamp(31px, 3.4vw, 45px); font-weight: 700; letter-spacing: -.035em; line-height: 1.13; }
.landing-section-heading > p:last-child { max-width: 650px; margin: 17px auto 0; color: #66737e; font-size: 16px; line-height: 1.65; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dfe3e7; border-left: 1px solid #dfe3e7; }
.landing-feature-card { min-height: 255px; padding: 32px; border-right: 1px solid #dfe3e7; border-bottom: 1px solid #dfe3e7; background: #fff; }
.landing-feature-card:hover { background: #f8fafb; }
.landing-feature-icon { display: grid; width: 39px; height: 39px; margin-bottom: 25px; place-items: center; border: 1px solid #acd1ec; background: #f0f6fc; color: var(--blue); font-size: 20px; font-weight: 700; }
.landing-feature-card h3 { margin: 0 0 11px; color: #17212b; font-size: 17px; }
.landing-feature-card p { margin: 0; color: #66737e; font-size: 13px; line-height: 1.7; }
.landing-workflow-section { border-top: 1px solid #e1e5e8; border-bottom: 1px solid #e1e5e8; background: #f4f6f8; }
.landing-workflow-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr); gap: 95px; align-items: start; }
.landing-section-heading-left { margin: 0; text-align: left; }
.landing-section-heading-left > p:last-of-type { margin-right: 0; margin-left: 0; }
.landing-inline-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 25px; color: var(--blue); font-size: 13px; font-weight: 700; }
.landing-inline-link:hover { color: var(--blue-dark); text-decoration: none; }
.landing-step-list { margin: 0; padding: 0; border-top: 1px solid #cdd3d8; list-style: none; }
.landing-step-list li { display: grid; grid-template-columns: 55px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid #cdd3d8; }
.landing-step-list li > span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.landing-step-list strong { display: block; margin-bottom: 6px; color: #17212b; font-size: 17px; }
.landing-step-list p { margin: 0; color: #66737e; font-size: 13px; line-height: 1.65; }
.landing-agency-section { background: #fff; }
.landing-agency-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); align-items: center; gap: 90px; }
.landing-agency-copy > p:not(.landing-kicker) { margin: 21px 0 0; color: #66737e; font-size: 16px; line-height: 1.68; }
.landing-agency-copy ul { display: grid; gap: 11px; margin: 25px 0 0; padding: 0; color: #33424f; font-size: 13px; list-style: none; }
.landing-agency-copy li { position: relative; padding-left: 22px; }
.landing-agency-copy li::before { position: absolute; top: 1px; left: 0; color: var(--blue); font-weight: 800; content: "✓"; }
.landing-agency-panel { overflow: hidden; border: 1px solid #c8ced3; border-top: 3px solid var(--blue); background: #fff; box-shadow: 0 24px 50px rgba(23,33,43,.12); }
.landing-agency-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #dfe3e7; background: #f6f7f7; }
.landing-agency-panel-head span { color: #17212b; font-size: 12px; font-weight: 700; }
.landing-agency-panel-head small { color: #66737e; font-size: 9px; }
.landing-agency-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid #e6e9eb; }
.landing-agency-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #1d2327; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.landing-agency-avatar-agent { background: #646970; }
.landing-agency-row > div { display: flex; flex-direction: column; }
.landing-agency-row strong { color: #17212b; font-size: 12px; }
.landing-agency-row small { color: #66737e; font-size: 9px; }
.landing-agency-row em { padding: 3px 7px; border: 1px solid #a7d7ad; background: #edfaef; color: #008a20; font-size: 8px; font-style: normal; font-weight: 700; }
.landing-agency-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 16px; background: #f8fafb; }
.landing-agency-control > div { display: flex; flex-direction: column; }
.landing-agency-control strong { color: #17212b; font-size: 11px; }
.landing-agency-control small { color: #66737e; font-size: 9px; }
.landing-agency-control > span { color: var(--blue); font-size: 9px; font-weight: 700; }
.landing-final-cta { padding: 70px 0; background: #17212b; color: #fff; }
.landing-final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 55px; }
.landing-final-cta h2 { color: #fff; font-size: clamp(29px, 3.1vw, 41px); }
.landing-final-actions { display: flex; min-width: 245px; align-items: center; flex-direction: column; gap: 14px; }
.landing-text-link-light { color: #c5d0d9; font-size: 11px; }
.landing-text-link-light:hover { color: #fff; }
.landing-footer { padding: 28px 0; border-top: 1px solid #dfe3e7; background: #fff; }
.landing-footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; }
.landing-footer strong { color: #17212b; font-size: 15px; }
.landing-footer p { max-width: 670px; margin: 0; color: #7a858e; font-size: 9px; line-height: 1.5; }
.landing-footer-inner > div { display: flex; gap: 18px; }
.landing-footer a { font-size: 10px; font-weight: 600; }

@media (max-width: 1040px) {
  .landing-hero { padding-top: 72px; }
  .landing-hero-grid { grid-template-columns: 1fr; }
  .landing-hero-copy { max-width: 740px; }
  .landing-product-frame { width: min(760px, 100%); transform: none; }
  .landing-feature-card { padding: 27px; }
  .landing-workflow-layout, .landing-agency-layout { gap: 55px; }
}

@media (max-width: 820px) {
  .landing-nav-links { display: none; }
  .landing-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-proof-grid > div:nth-child(3) { border-left: 1px solid #e1e5e8; }
  .landing-proof-grid > div:nth-child(-n+2) { border-bottom: 1px solid #e1e5e8; }
  .landing-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-workflow-layout, .landing-agency-layout { grid-template-columns: 1fr; }
  .landing-final-cta-inner { align-items: flex-start; flex-direction: column; }
  .landing-final-actions { align-items: flex-start; }
  .landing-footer-inner { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .landing-container { width: min(1180px, calc(100% - 28px)); }
  .landing-header { position: static; }
  .landing-nav { min-height: 61px; gap: 15px; }
  .landing-brand { font-size: 16px; }
  .landing-nav-actions { gap: 11px; }
  .landing-nav-actions .landing-text-link { display: none; }
  .landing-button-small { min-height: 34px; padding: 6px 10px; }
  .landing-hero { padding: 58px 0 60px; }
  .landing-hero-grid { gap: 42px; }
  .landing-hero h1 { font-size: 39px; }
  .landing-lead { font-size: 15px; }
  .landing-hero-actions { align-items: stretch; flex-direction: column; }
  .landing-hero-actions .landing-button { width: 100%; }
  .landing-trust-list { align-items: flex-start; flex-direction: column; gap: 9px; }
  .landing-product-frame { overflow-x: auto; }
  .landing-product-topbar, .landing-product-body { min-width: 570px; }
  .landing-proof-grid, .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-proof-grid > div { min-height: 92px; border-left: 1px solid #e1e5e8; border-bottom: 1px solid #e1e5e8; }
  .landing-section { padding: 72px 0; }
  .landing-section-heading { margin-bottom: 35px; }
  .landing-section-heading h2, .landing-agency-copy h2 { font-size: 32px; }
  .landing-feature-card { min-height: 0; }
  .landing-step-list li { grid-template-columns: 42px 1fr; gap: 12px; }
  .landing-agency-panel { overflow-x: auto; }
  .landing-agency-panel > * { min-width: 390px; }
  .landing-final-cta { padding: 55px 0; }
}

/* Refined public landing page: restrained insurance-software presentation */
.marketing-body { background: #fff; color: #1d2327; font-size: 14px; }
.landing-header { position: relative; border-bottom-color: #dcdcde; background: #fff; backdrop-filter: none; }
.landing-nav { min-height: 64px; }
.landing-brand { font-size: 18px; letter-spacing: -.015em; }
.landing-nav-links { margin-left: 42px; }
.landing-nav-links a, .landing-text-link { color: #50575e; font-size: 12px; font-weight: 600; }
.landing-button { border-radius: 2px; background: #2271b1; box-shadow: none; }
.landing-button:hover { background: #135e96; }
.landing-hero-refined { padding: 72px 0 78px; background: #f3f5f6; color: #1d2327; }
.landing-hero-refined::before, .landing-hero-refined::after { display: none; }
.landing-hero-grid-refined { grid-template-columns: minmax(360px, .76fr) minmax(570px, 1.24fr); gap: 68px; }
.landing-hero-copy-refined .landing-kicker { margin-bottom: 13px; color: #2271b1; font-size: 10px; letter-spacing: .075em; }
.landing-hero-copy-refined h1 { color: #1d2327; font-size: clamp(39px, 4vw, 52px); font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
.landing-hero-copy-refined .landing-lead { margin-top: 21px; color: #50575e; font-size: 16px; line-height: 1.65; }
.landing-hero-copy-refined .landing-hero-actions { margin-top: 27px; }
.landing-button-outline { border-color: #8c8f94; background: #fff; color: #2c3338; box-shadow: none; }
.landing-button-outline:hover { border-color: #50575e; background: #f6f7f7; color: #1d2327; }
.landing-hero-note { margin: 18px 0 0; color: #787c82; font-size: 10px; }
.landing-product-frame-refined { border-color: #b7bcc1; border-radius: 2px; box-shadow: 0 12px 30px rgba(29,35,39,.12); transform: none; }
.landing-product-frame-refined .landing-product-topbar { min-height: 58px; }
.landing-product-frame-refined .landing-product-body { background: #f0f0f1; }
.landing-product-frame-refined .landing-plan-demo { min-height: 69px; }
.landing-product-frame-refined .landing-demo-ask { background: #fff; }
.landing-data-strip { border-top: 1px solid #dcdcde; border-bottom: 1px solid #dcdcde; background: #fff; }
.landing-data-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.landing-data-strip-grid > div { display: flex; min-height: 96px; flex-direction: column; justify-content: center; padding: 18px 28px; border-right: 1px solid #dcdcde; }
.landing-data-strip-grid > div:first-child { border-left: 1px solid #dcdcde; }
.landing-data-strip-grid strong { margin-bottom: 4px; color: #1d2327; font-size: 13px; }
.landing-data-strip-grid span { color: #646970; font-size: 10px; line-height: 1.45; }
.landing-product-section { padding: 88px 0 92px; }
.landing-simple-heading { display: grid; grid-template-columns: 130px minmax(0, 560px) minmax(260px, 1fr); align-items: start; gap: 32px; margin-bottom: 42px; }
.landing-simple-heading > span, .landing-section-label { padding-top: 7px; color: #2271b1; font-size: 10px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.landing-simple-heading h2 { margin: 0; color: #1d2327; font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.landing-simple-heading p { margin: 5px 0 0; color: #646970; font-size: 13px; line-height: 1.7; }
.landing-capability-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #c3c4c7; border-left: 1px solid #c3c4c7; }
.landing-capability-list article { display: grid; min-height: 176px; grid-template-columns: 38px 1fr; gap: 18px; padding: 29px; border-right: 1px solid #c3c4c7; border-bottom: 1px solid #c3c4c7; background: #fff; }
.landing-capability-list article > span { color: #787c82; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.landing-capability-list h3 { margin: 0 0 7px; color: #1d2327; font-size: 15px; font-weight: 600; }
.landing-capability-list p { margin: 0; color: #646970; font-size: 12px; line-height: 1.65; }
.landing-document-section { padding: 82px 0; background: #1d2327; color: #f0f0f1; }
.landing-document-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr); align-items: start; gap: 90px; }
.landing-document-copy .landing-section-label { display: block; margin-bottom: 16px; padding: 0; color: #72aee6; }
.landing-document-copy h2 { margin: 0; color: #fff; font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.landing-document-copy p { margin: 19px 0 0; color: #c3c4c7; font-size: 13px; line-height: 1.75; }
.landing-document-process { border-top: 1px solid #50575e; }
.landing-document-process > div { display: grid; grid-template-columns: 35px 1fr; gap: 18px; padding: 19px 0; border-bottom: 1px solid #50575e; }
.landing-document-process > div > span { color: #72aee6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.landing-document-process p { display: flex; margin: 0; flex-direction: column; gap: 4px; }
.landing-document-process strong { color: #f0f0f1; font-size: 12px; }
.landing-document-process small { color: #a7aaad; font-size: 10px; }
.landing-agency-section-refined { padding: 88px 0; background: #f6f7f7; }
.landing-agency-layout-refined { gap: 95px; }
.landing-agency-copy-refined .landing-section-label { display: block; margin-bottom: 15px; padding: 0; }
.landing-agency-copy-refined h2 { font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.landing-agency-copy-refined > p:not(.landing-kicker) { margin-top: 18px; font-size: 13px; line-height: 1.75; }
.landing-agency-copy-refined ul { font-size: 12px; }
.landing-agency-panel-refined { border-radius: 0; border-top-width: 2px; box-shadow: 0 8px 24px rgba(29,35,39,.08); }
.landing-final-cta-refined { padding: 56px 0; background: #fff; color: #1d2327; border-top: 1px solid #dcdcde; }
.landing-final-cta-refined .landing-section-label { display: block; margin-bottom: 8px; padding: 0; }
.landing-final-cta-refined h2 { color: #1d2327; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.landing-final-actions-refined { min-width: 270px; align-items: flex-end; }
.landing-final-actions-refined .landing-text-link-light { color: #50575e; }
.landing-final-actions-refined .landing-text-link-light:hover { color: #2271b1; }
.landing-footer { background: #f6f7f7; }

@media (max-width: 1040px) {
  .landing-hero-grid-refined { grid-template-columns: 1fr; gap: 45px; }
  .landing-hero-copy-refined { max-width: 680px; }
  .landing-product-frame-refined { width: min(800px, 100%); }
  .landing-simple-heading { grid-template-columns: 100px 1fr; }
  .landing-simple-heading p { grid-column: 2; }
  .landing-document-layout { gap: 55px; }
}

@media (max-width: 760px) {
  .landing-data-strip-grid { grid-template-columns: 1fr; }
  .landing-data-strip-grid > div { min-height: 80px; border-bottom: 1px solid #dcdcde; border-left: 1px solid #dcdcde; }
  .landing-capability-list { grid-template-columns: 1fr; }
  .landing-simple-heading { grid-template-columns: 1fr; gap: 12px; }
  .landing-simple-heading p { grid-column: auto; }
  .landing-document-layout { grid-template-columns: 1fr; gap: 42px; }
  .landing-final-actions-refined { align-items: flex-start; }
}

@media (max-width: 620px) {
  .landing-hero-refined { padding: 50px 0 56px; }
  .landing-hero-copy-refined h1 { font-size: 37px; }
  .landing-product-section, .landing-agency-section-refined { padding: 67px 0; }
  .landing-document-section { padding: 62px 0; }
  .landing-simple-heading h2, .landing-document-copy h2, .landing-agency-copy-refined h2 { font-size: 29px; }
  .landing-capability-list article { min-height: 0; padding: 24px 20px; }
  .landing-final-cta-refined { padding: 47px 0; }
}

/* WordPress-like sign in */
.auth-body { display: grid; min-height: 100vh; place-items: center; padding: 30px 16px; background: #f0f0f1; }
.auth-shell { width: min(360px, 100%); }
.auth-brand { justify-content: center; margin-bottom: 18px; border: 0; color: var(--text); font-size: 18px; }
.auth-brand:hover { color: var(--text); }
.auth-card { padding: 24px; border: 1px solid var(--border); border-radius: 0; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-card h1 { margin: 3px 0 5px; font-size: 21px; font-weight: 400; }
.auth-source { margin: 14px 0 0; color: var(--text-faint); font-size: 9px; text-align: center; }

@media (max-width: 1160px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-search { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dashboard-search-form.dashboard-member-search-form { width: 100%; margin-left: 0; }
  .search-form { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .or-divider { display: none; }
  .advanced-filters { grid-column: 1 / -2; }
  .search-submit { grid-column: -2 / -1; }
  .plan-card-summary { grid-template-columns: minmax(240px, 1fr) minmax(250px, .8fr); }
  .plan-facts-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .sidebar { position: static; width: 100%; }
  .brand { min-height: 48px; }
  .nav { flex: none; flex-direction: row; overflow-x: auto; padding: 0; }
  .nav-link { white-space: nowrap; }
  .nav-link.active::after, .nav-section, .sidebar-user { display: none; }
  .app-main { margin-left: 0; }
  .topbar { padding: 11px 16px; }
  .content { padding: 16px; }
  .button.compare-button.is-sticky { top: 12px; right: 16px; }
  .two-column, .detail-layout, .client-import-layout { grid-template-columns: 1fr; }
  .dashboard-search { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dashboard-search-form { min-width: 0; width: 100%; }
  .sticky-panel { position: static; }
  .definition-grid { grid-template-columns: repeat(2, 1fr); }
  .definition-grid div:nth-child(3n) { border-right: 1px solid var(--border-light); }
  .definition-grid div:nth-child(2n) { border-right: 0; }
  .search-form { grid-template-columns: repeat(2, 1fr); }
  .or-divider { display: none; }
  .advanced-filters, .search-submit { grid-column: 1 / -1; }
  .plan-card-summary { grid-template-columns: 1fr; gap: 13px; }
  .plan-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card-actions .enroll-action, .plan-card-actions .details-action { grid-column: auto; }
  .client-list-header { align-items: stretch; flex-direction: column; }
  .client-list-search { width: 100%; grid-template-columns: minmax(180px, 1fr) auto auto; }
}

@media (max-width: 600px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .content { padding: 12px 9px 25px; }
  .metric-grid, .form-grid, .advanced-grid, .search-form, .definition-grid, .area-grid { grid-template-columns: 1fr; }
  .dashboard-search-form, .dashboard-search-form.dashboard-member-search-form { grid-template-columns: 1fr; }
  .definition-grid div { border-right: 0 !important; }
  .plan-facts-details { grid-template-columns: repeat(2, 1fr); }
  .plan-card-actions { grid-template-columns: 1fr; }
  .plan-ai-panel { width: 100%; }
  .plan-detail-hero, .case-summary { align-items: flex-start; flex-wrap: wrap; }
  .summary-inline { min-width: 100%; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .compare-button-slot { justify-content: flex-start; }
  .button.compare-button.is-sticky { right: 9px; }
  .geography-notice > div:first-child, .notice { flex-direction: column; }
  .carrier-access-tools { align-items: stretch; flex-direction: column; }
  .client-list-search { grid-template-columns: 1fr; }
  .provider-search-form { grid-template-columns: 1fr; }
  .provider-drawer { width: 100vw; }
  .plan-search-ai-drawer { width: 100vw; }
  .ai-filter-notice { align-items: stretch; }
  .ai-filter-notice > div span { white-space: normal; }
}

/* MedicareZulu agent RTS carrier management */
.rts-header { align-items: center; }
.rts-header-actions, .rts-actions, .rts-footer { display: flex; align-items: center; gap: 8px; }
.rts-user-email { margin: 4px 0 0; color: var(--text-faint); font-size: 11px; }
.rts-tools { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.rts-tools label { width: min(420px, 100%); }
.rts-table-wrap { max-height: 58vh; border: 1px solid var(--border-light); }
.rts-table th:first-child, .rts-table td:first-child { width: 70px; text-align: center; }
.rts-table th:last-child, .rts-table td:last-child { width: 120px; text-align: right; }
.rts-table input[type="checkbox"] { width: 16px; min-height: 16px; margin: 0; }
.rts-footer { justify-content: space-between; margin: 14px -16px -16px; padding: 11px 13px; border-top: 1px solid var(--border-light); }
.list-row .rts-user-button { flex: 0 0 auto; }
@media (max-width: 760px) {
  .rts-header, .rts-tools, .rts-footer { align-items: stretch; flex-direction: column; }
  .rts-header-actions { flex-wrap: wrap; }
}

/* MedicareZulu RTS at a glance */
.admin-users-rts-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.rts-overview-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rts-overview-summary article { display: flex; min-height: 76px; flex-direction: column; justify-content: center; padding: 12px 14px; border: 1px solid var(--border); background: #fff; }
.rts-overview-summary span { color: var(--text-faint); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.rts-overview-summary strong { margin-top: 3px; font-size: 24px; font-weight: 500; }
.rts-overview-header { align-items: center; }
.rts-overview-tools { display: grid; grid-template-columns: minmax(220px, 1fr) 260px; gap: 12px; margin-bottom: 14px; }
.rts-agent-list { display: grid; gap: 12px; }
.rts-agent-card { border: 1px solid var(--border); background: #fff; }
.rts-agent-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); background: #f8f9fa; }
.rts-agent-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rts-agent-identity h3 { margin: 0; font-size: 14px; }
.rts-agent-identity p { margin: 2px 0 0; color: var(--text-faint); font-size: 10px; }
.rts-agent-progress { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 7px; text-align: right; }
.rts-agent-progress strong { font-size: 14px; }
.rts-agent-progress span { color: var(--text-faint); font-size: 10px; }
.rts-readiness-columns { display: grid; grid-template-columns: 1fr 1fr; }
.rts-readiness-columns > section { min-width: 0; padding: 12px 14px 14px; }
.rts-readiness-columns > section + section { border-left: 1px solid var(--border-light); }
.rts-readiness-columns h4 { display: flex; justify-content: space-between; margin: 0 0 9px; font-size: 11px; text-transform: uppercase; }
.rts-readiness-columns h4 span { color: var(--text-faint); }
.rts-carrier-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rts-carrier-tag { display: inline-flex; padding: 3px 6px; border: 1px solid var(--border-light); border-radius: 2px; font-size: 10px; line-height: 1.25; }
.rts-carrier-tag.ready { border-color: #a7d7ad; background: var(--green-soft); color: var(--green); }
.rts-carrier-tag.not-ready { border-color: #dfc3c3; background: #fff7f7; color: #8a2424; }
.rts-empty-state { margin: 0; color: var(--text-faint); font-size: 11px; }
.rts-empty-state.complete { color: var(--green); }
@media (max-width: 800px) {
  .rts-overview-summary, .rts-overview-tools, .rts-readiness-columns { grid-template-columns: 1fr; }
  .rts-readiness-columns > section + section { border-top: 1px solid var(--border-light); border-left: 0; }
  .rts-agent-card > header { align-items: flex-start; flex-direction: column; }
  .rts-agent-progress { grid-template-columns: auto auto; text-align: left; }
  .rts-agent-progress .button { grid-column: 1 / -1; }
}

/* MedicareZulu plan-tile RTS status */
.plan-rts-tile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
  position: relative;
}

.plan-rts-warning {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.16rem 0.48rem;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.1;
}

.plan-rts-details {
  position: relative;
}

.plan-rts-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.5rem;
  padding: 0.16rem 0.48rem;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  list-style: none;
  line-height: 1.1;
  user-select: none;
}

.plan-rts-details > summary::-webkit-details-marker {
  display: none;
}

.plan-rts-details > summary::after {
  content: "▾";
  font-size: 0.65rem;
}

.plan-rts-details[open] > summary::after {
  content: "▴";
}

.plan-rts-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.12rem;
  height: 1.12rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.66rem;
}

.plan-rts-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.42rem);
  left: 0;
  width: min(22rem, 78vw);
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  color: #1f2937;
}

.plan-rts-dropdown > strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

.plan-rts-dropdown ul {
  display: grid;
  gap: 0.2rem;
  max-height: 15rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.plan-rts-dropdown li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  align-items: center;
  gap: 0.48rem;
  padding: 0.38rem;
  border-radius: 0.35rem;
  background: #f8fafc;
}
.sidebar-brand-logo {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 190px;
  overflow: hidden;
}

.medicarezulu-sidebar-logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.mz-white-label-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 190px;
}
.landing-brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.auth-brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.mz-white-label-brand img {
  display: block;
  max-width: 175px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.plan-rts-avatar {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 800;
}

.plan-rts-dropdown li strong,
.plan-rts-dropdown li small {
  display: block;
  overflow-wrap: anywhere;
}

.plan-rts-dropdown li strong {
  font-size: 0.76rem;
}

.plan-rts-dropdown li small,
.plan-rts-dropdown p {
  margin: 0;
  color: #64748b;
  font-size: 0.7rem;
}

@media (max-width: 640px) {
  .plan-rts-dropdown {
    width: min(19rem, calc(100vw - 3rem));
  }
}

/* MedicareZulu retained client registry */
.registry-search-panel {
  display: grid;
  gap: 1rem;
}

.registry-search-panel .panel-header p:last-child {
  max-width: 760px;
  margin: 0.35rem 0 0;
  color: var(--text-faint);
}

.registry-search-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.75rem;
}

.registry-search-form .button {
  white-space: nowrap;
}

.registry-errors {
  padding: 0.7rem 0.85rem;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  background: #fef2f2;
  color: #991b1b;
}

.registry-errors p {
  margin: 0;
}

.registry-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.registry-results-heading h2 {
  margin: 0.1rem 0 0;
}

.registry-client-card {
  display: grid;
  gap: 0.9rem;
}

.registry-client-header,
.registry-client-identity,
.registry-section-heading {
  display: flex;
  align-items: center;
}

.registry-client-header {
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.registry-client-identity {
  min-width: 0;
  gap: 0.65rem;
}

.registry-client-identity h3,
.registry-client-identity p,
.registry-client-sections h4,
.registry-client-sections p {
  margin: 0;
}

.registry-client-identity p,
.registry-client-sections p,
.registry-medical-list span {
  color: var(--text-faint);
  font-size: 0.76rem;
}

.registry-client-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.registry-client-sections > section {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #fff;
}

.registry-section-heading {
  justify-content: space-between;
  gap: 0.5rem;
}

.registry-medical-list {
  display: grid;
  gap: 0.45rem;
  max-height: 13rem;
  margin: 0.55rem 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.registry-medical-list li {
  display: grid;
  gap: 0.08rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}

.registry-medical-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.registry-medical-list strong {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .registry-search-form,
  .registry-client-sections {
    grid-template-columns: 1fr;
  }

  .registry-search-form .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .registry-client-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* MedicareZulu retained client dashboard lookup v2 */
/* Dashboard retained-client lookup and read-only plan context */
.mz-search-group-header .mz-client-help {
  max-width: 520px;
  text-align: right;
  line-height: 1.35;
  white-space: normal;
}

.mz-plan-search-actions {
  display: flex;
  flex-direction: column;
  align-self: end;
  gap: 6px;
}

.mz-plan-search-actions .button {
  min-height: 36px;
  white-space: nowrap;
}

.mz-client-lookup-result {
  margin: 0 10px 10px;
  padding: 10px 12px;
  border: 1px solid #c3c4c7;
  border-radius: 2px;
  background: #f6f7f7;
  color: #1d2327;
  font-size: 11px;
}

.mz-client-lookup-result.found {
  border-left: 4px solid #00a32a;
  background: #f0f8f1;
}

.mz-client-lookup-result.not-found {
  border-left: 4px solid #dba617;
  background: #fff8e5;
}

.mz-client-lookup-result.error {
  border-left: 4px solid #d63638;
  background: #fcf0f1;
}

.mz-client-found-heading,
.mz-client-found-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mz-client-found-heading strong {
  font-size: 12px;
}

.mz-client-found-heading span,
.mz-client-found-actions span,
.mz-client-match-note {
  color: #646970;
}

.mz-client-found-detail {
  display: grid;
  gap: 3px;
  margin: 7px 0;
}

.mz-client-found-detail p {
  margin: 0;
}

.registry-plan-client-context {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 4px solid #2271b1;
}

.registry-plan-client-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdcde;
}

.registry-plan-client-heading h2,
.registry-plan-client-heading p {
  margin: 0;
}

.registry-plan-client-heading h2 {
  margin: 2px 0 3px;
  font-size: 16px;
}

.registry-plan-client-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 18px;
  padding-top: 12px;
}

.registry-plan-client-grid p {
  margin: 4px 0 0;
  color: #50575e;
}

.registry-plan-client-grid ul {
  margin: 5px 0 0 18px;
  padding: 0;
}

.registry-plan-client-grid li {
  margin: 2px 0;
}

.registry-current-plan-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid #dba617;
  border-radius: 2px;
  background: #fff8e5;
  color: #7a4b00;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  vertical-align: middle;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .mz-plan-search-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .mz-search-group-header .mz-client-help {
    max-width: none;
    text-align: left;
  }

  .mz-search-group-header,
  .mz-client-found-heading,
  .mz-client-found-actions,
  .registry-plan-client-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mz-plan-search-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .registry-plan-client-grid {
    grid-template-columns: 1fr;
  }
}

/* MedicareZulu bulk soft-delete v8 */
.mz-bulk-client-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  background: #fff;
}

.mz-bulk-select-all,
.mz-case-select-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mz-bulk-select-all input,
.mz-client-bulk-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
}

.mz-case-select-control {
  margin-right: 8px;
  vertical-align: middle;
}

.mz-bulk-selected-count {
  color: #646970;
  font-size: 12px;
}

#mz-delete-selected-clients {
  margin-left: auto;
}

#mz-delete-selected-clients:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .mz-bulk-client-toolbar {
    flex-wrap: wrap;
  }
  #mz-delete-selected-clients {
    width: 100%;
    margin-left: 0;
  }
}

/* MedicareZulu bulk toolbar inline v9 */
.mz-bulk-client-toolbar {
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
}

/* MedicareZulu settings tabs v10 */
.mz-settings-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid #dcdcde;
}

.mz-settings-tab {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 10px 14px 9px;
  color: #50575e;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mz-settings-tab:hover { color: #135e96; }
.mz-settings-tab.is-active {
  border-bottom-color: #2271b1;
  color: #1d2327;
}
.mz-settings-panel[hidden] { display: none !important; }
.mz-privacy-panel { max-width: 720px; }
.mz-password-card { padding: 18px; }
.mz-password-card h2 { margin: 0 0 4px; }
.mz-password-card .panel-description { margin: 0 0 18px; }
.mz-password-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}
.mz-password-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.mz-password-form input { width: 100%; }
.mz-password-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .mz-settings-tabs { overflow-x: auto; }
  .mz-settings-tab { white-space: nowrap; }
}

/* MedicareZulu white labeling v11 */
.mz-white-label-panel { max-width: 820px; }
.mz-white-label-card { padding: 18px; }
.mz-white-label-card h2 { margin: 0 0 4px; }
.mz-white-label-card .panel-description { margin: 0 0 18px; }
.mz-white-label-form { display: grid; gap: 18px; }
.mz-white-label-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mz-white-label-form label { display: grid; gap: 6px; font-weight: 600; }
.mz-white-label-form input[type="text"], .mz-white-label-form input[type="file"] { width: 100%; }
.mz-brand-color-row { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px; }
.mz-brand-color-row input[type="color"] { width: 54px; height: 38px; padding: 2px; }
.mz-current-logo { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #dcdcde; border-radius: 4px; }
.mz-current-logo img { max-width: 180px; max-height: 56px; object-fit: contain; }
.mz-white-label-actions { display: flex; justify-content: flex-start; }
.mz-white-label-brand { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; }
.mz-white-label-brand img { display: block; max-height: 38px; max-width: 150px; object-fit: contain; }
@media (max-width: 700px) { .mz-white-label-grid { grid-template-columns: 1fr; } }

/* MedicareZulu white-label default colors v12 */
.mz-white-label-actions { gap: 10px; flex-wrap: wrap; }

/* MedicareZulu show-only-RTS filter v10 */
.rts-only-filter-field {
  display: flex;
  align-items: end;
}
.rts-only-filter {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}
.rts-only-filter input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

/* MedicareZulu plan-year switcher v1 */
.plan-year-switcher {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin: 0 0 2px;
}

.plan-year-segmented {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #b8c0c8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.plan-year-segmented input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.plan-year-segmented label {
  min-width: 58px;
  padding: 6px 13px;
  margin: 0;
  border-right: 1px solid #b8c0c8;
  color: #50575e;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.plan-year-segmented label:last-of-type {
  border-right: 0;
}

.plan-year-segmented input[type="radio"]:checked + label {
  color: #fff;
  background: var(--mz-plan-year-active, #2271b1);
}

.plan-year-segmented input[type="radio"]:focus-visible + label {
  position: relative;
  z-index: 1;
  outline: 2px solid #2271b1;
  outline-offset: -2px;
}

.plan-year-segmented label:hover {
  background: #f0f6fc;
}

.plan-year-segmented input[type="radio"]:checked + label:hover {
  background: var(--mz-plan-year-active, #2271b1);
}

/* MedicareZulu landing legal links v1 */
.mz-landing-legal-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.4;
}
.mz-landing-legal-links a {
  color: inherit;
  opacity: 0.78;
  text-decoration: none;
  font-weight: 700;
}
.mz-landing-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
.mz-landing-legal-links span { opacity: 0.4; }

