:root {
  --ink: #17212b;
  --muted: #637083;
  --line: #d8e0e7;
  --panel: #ffffff;
  --canvas: #f4f7fa;
  --nav: #102736;
  --nav-2: #16394a;
  --teal: #0f766e;
  --teal-soft: #dff3f0;
  --blue: #315b8a;
  --amber: #b7791f;
  --amber-soft: #fff3d7;
  --red: #b42318;
  --red-soft: #fde7e3;
  --green: #16784d;
  --green-soft: #dff5e8;
  --violet: #665191;
  --shadow: 0 18px 55px rgba(20, 37, 54, 0.12);
  --font-primary: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-subtitle: Montserrat, Arial, sans-serif;
  font-family: var(--font-primary);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-primary);
}

body.is-unauthenticated .app-shell {
  display: none;
}

body.is-authenticated .auth-gate {
  display: none;
}

.auth-gate {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--nav) 0%, #173b4e 42%, var(--canvas) 42%);
  padding: 28px;
  position: relative;
  overflow: auto;
}

.auth-video-bg,
.auth-video-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-video-bg {
  object-fit: cover;
  z-index: 0;
  background: linear-gradient(180deg, var(--nav), #173b4e);
}

.auth-video-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 39, 54, 0.82) 0%, rgba(16, 39, 54, 0.36) 46%, rgba(16, 39, 54, 0.7) 100%),
    linear-gradient(180deg, rgba(16, 39, 54, 0.28) 0%, rgba(244, 247, 250, 0.36) 74%, rgba(244, 247, 250, 0.7) 100%);
  pointer-events: none;
}

.auth-brand {
  max-width: 1120px;
  margin: 0 auto 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  position: relative;
  z-index: 2;
}

.auth-brand img {
  width: 148px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.92);
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 22px;
  line-height: 1.1;
}

.auth-brand span {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 3px;
}

.auth-panel {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: 26px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.auth-copy,
.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-copy {
  padding: 34px;
}

.auth-copy h1 {
  max-width: 680px;
  margin: 14px 0 12px;
  color: var(--nav);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.auth-steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fbfd;
}

.auth-steps strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9edf8;
  color: var(--nav);
  margin-bottom: 12px;
}

.auth-steps span {
  display: block;
  color: var(--nav);
  font-weight: 750;
  line-height: 1.3;
}

.auth-card {
  padding: 22px;
  align-self: start;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--nav);
  font-weight: 800;
}

.auth-tabs button.is-active {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.is-current {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--nav);
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfdff;
}

.auth-status {
  min-height: 20px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 750;
}

.auth-status.is-error {
  color: var(--red);
}

.auth-build-note {
  margin-top: 8px;
  color: rgba(15, 45, 71, 0.62);
  font-size: 0.74rem;
  text-align: center;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  background: linear-gradient(180deg, var(--nav), var(--nav-2));
  color: white;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #ecf7f4;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 8px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle,
.tenant-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.ico {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #9ee1d8;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
}

.tenant-name {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 4px;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.15;
}

h2 {
  font-size: 16px;
  line-height: 1.2;
}

h3 {
  font-size: 14px;
}

.topbar p {
  margin-top: 5px;
  color: var(--muted);
}

.top-actions,
.report-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.primary-button,
.secondary-button,
.icon-button,
.small-button {
  border: 1px solid transparent;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 750;
}

.primary-button {
  background: var(--teal);
  color: white;
}

.secondary-button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.icon-button {
  width: 38px;
  padding: 0;
  background: white;
  border-color: var(--line);
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  background: #eef4f7;
  color: var(--ink);
  border-color: var(--line);
}

.full {
  width: 100%;
}

.view {
  display: none;
}

.view.is-current {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric-card,
.panel,
.question-list-panel,
.question-detail,
.section-rail,
.report-page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(20, 37, 54, 0.04);
}

.metric-card {
  padding: 16px;
  min-height: 110px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.metric-value {
  font-size: 30px;
  font-weight: 850;
  margin-top: 8px;
}

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

.overview-grid,
.two-column,
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
  gap: 14px;
}

.span-2 {
  grid-column: span 1;
}

.panel {
  padding: 16px;
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pill,
.mini-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  background: var(--teal-soft);
  color: var(--teal);
  white-space: nowrap;
}

.mini-count {
  background: var(--amber-soft);
  color: var(--amber);
}

canvas {
  width: 100%;
  max-width: 100%;
  display: block;
}

.chart-frame {
  width: calc(100% - 28px);
  margin: 14px;
  overflow-x: auto;
  overflow-y: hidden;
}

.maturity-frame {
  min-height: 484px;
}

#maturityCanvas {
  width: 100%;
  max-width: none;
  min-height: 0;
}

.domain-graphic {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.domain-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(160px, 1.2fr) minmax(76px, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.domain-title {
  min-width: 0;
}

.domain-title strong,
.domain-title span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-title strong {
  color: #24364b;
  font-size: 13px;
}

.domain-title span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.domain-bar {
  min-width: 0;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.domain-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0176d3;
}

.domain-row.is-critical .domain-bar span {
  background: #ba0517;
}

.domain-row.is-exposed .domain-bar span {
  background: #fe9339;
}

.domain-row.is-strong .domain-bar span {
  background: #2e844a;
}

.domain-flags {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.heatmap {
  display: grid;
  gap: 8px;
}

.risk-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.donut-frame {
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
}

#riskDonutCanvas {
  width: 100%;
  height: 100%;
}

.risk-legend {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.risk-legend-item {
  display: grid;
  grid-template-columns: 12px 30px minmax(68px, 1fr) minmax(30px, auto);
  align-items: center;
  gap: 6px;
  font-size: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.risk-legend-item strong {
  color: #032d60;
}

.risk-legend-item em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
  min-width: 0;
}

.risk-legend-item span:not(.risk-dot) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(20, 61, 87, 0.06);
}

.risk-drivers {
  display: grid;
  gap: 8px;
}

.risk-driver {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px;
  background: white;
}

.risk-driver strong,
.risk-driver span {
  display: block;
  min-width: 0;
}

.risk-driver strong {
  font-size: 12px;
  color: #181818;
}

.risk-driver span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.driver-score {
  color: #032d60;
  font-size: 15px;
  font-weight: 850;
  text-align: right;
}

.driver-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.driver-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ba0517, #fe9339);
}

.heat-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 10px;
}

.heat-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heat-bar {
  height: 10px;
  border-radius: 999px;
  background: #e9eef2;
  overflow: hidden;
}

.heat-fill {
  height: 100%;
  background: var(--red);
}

.heat-count {
  text-align: right;
  font-weight: 850;
}

.section-table,
.compact-list,
.evidence-list,
.review-list {
  display: grid;
  gap: 8px;
}

.section-row,
.compact-item,
.evidence-item,
.review-item,
.control-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.section-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 78px 78px;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.section-title {
  font-weight: 750;
  min-width: 0;
}

.section-purpose {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assessment-layout {
  display: grid;
  grid-template-columns: 290px minmax(330px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  min-height: calc(100vh - 116px);
}

.section-rail,
.question-list-panel,
.question-detail {
  padding: 14px;
  min-height: 0;
}

.section-rail {
  display: grid;
  gap: 8px;
  align-content: start;
}

.section-button {
  border: 1px solid var(--line);
  background: white;
  text-align: left;
  border-radius: 8px;
  padding: 10px;
}

.section-button.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.section-button strong {
  display: block;
  font-size: 13px;
}

.section-button span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 8px;
  margin-bottom: 10px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 40px;
  padding: 9px 10px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.control-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 3px;
}

.control-card {
  width: 100%;
  text-align: left;
  padding: 11px;
  background: white;
}

.control-card.is-selected {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.control-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  min-width: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  background: #edf2f7;
  color: #425466;
  white-space: normal;
  line-height: 1.2;
}

.tag.critical {
  background: var(--red-soft);
  color: var(--red);
}

.tag.approved {
  background: var(--green-soft);
  color: var(--green);
}

.tag.review {
  background: var(--amber-soft);
  color: var(--amber);
}

.question-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.detail-header > div {
  min-width: 0;
}

.detail-header .pill {
  max-width: 138px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  padding-top: 6px;
  padding-bottom: 6px;
}

.question-text {
  font-size: 18px;
  line-height: 1.38;
  margin-top: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-block {
  border: 1px solid var(--line);
  background: #fbfcfd;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

.detail-block h3 {
  margin-bottom: 8px;
}

@container (min-width: 560px) {
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 6px;
}

.maturity-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.segment {
  border: 1px solid var(--line);
  min-height: 42px;
  border-radius: 8px;
  background: white;
  font-weight: 850;
  min-width: 0;
}

.segment.is-selected {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.evidence-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 6px;
}

.question-detail input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.file-upload-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 8px;
}

.file-upload-wrap input[type="file"] {
  min-height: auto;
  border: 0;
  padding: 0;
}

.ai-finding {
  border-left: 4px solid var(--blue);
  background: #f3f7fb;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.45;
}

.source-page {
  align-items: start;
}

.source-filter-row {
  margin-bottom: 12px;
}

.source-list,
.case-list,
.source-card-grid,
.case-card-grid,
.source-reference-list {
  display: grid;
  gap: 10px;
}

.source-card-grid,
.case-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-card,
.case-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 11px;
  min-width: 0;
}

.source-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.source-card strong,
.case-card strong {
  display: block;
  line-height: 1.25;
  margin-bottom: 4px;
}

.source-use,
.source-note,
.case-principle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 8px;
}

.case-principle {
  color: var(--ink);
}

.source-note {
  background: #f6f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 10px;
}

.panel-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.source-link {
  display: inline-flex;
  margin-top: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

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

.source-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.source-mini a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: white;
  font-size: 11px;
  font-weight: 850;
  padding: 3px 7px;
  text-decoration: none;
}

.source-reference-list a {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(180px, 0.6fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  background: #fbfcfd;
}

.source-reference-list span,
.source-reference-list em {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.question-detail .inline-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, max-content));
  align-items: start;
}

.question-detail .inline-actions button {
  max-width: 100%;
  white-space: normal;
}

.compact-item,
.evidence-item,
.review-item {
  padding: 11px;
}

.compact-item strong,
.evidence-item strong,
.review-item strong {
  display: block;
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.standards {
  display: grid;
  gap: 10px;
}

.standard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.evidence-intelligence-panel {
  margin-top: 14px;
}

.evidence-intelligence-list {
  display: grid;
  gap: 12px;
}

.evidence-intelligence-card,
.evidence-intelligence-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.evidence-intelligence-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.evidence-intelligence-heading strong,
.evidence-intelligence-heading span {
  display: block;
}

.evidence-intelligence-heading > div > span,
.evidence-finding span {
  color: var(--muted);
  font-size: 12px;
}

.evidence-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.evidence-intelligence-grid h3 {
  margin: 0 0 8px;
}

.evidence-finding {
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

.evidence-finding p {
  margin: 4px 0;
}

@media (max-width: 760px) {
  .evidence-intelligence-heading,
  .evidence-intelligence-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.standard-card.gold {
  background: #fff8df;
}

.standard-card.silver {
  background: #f1f4f7;
}

.standard-card.bronze {
  background: #f8efe8;
}

.review-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
}

.notes-area {
  min-height: 260px;
  width: 100%;
  max-width: 100%;
  resize: vertical;
  margin-bottom: 12px;
}

.panel .full {
  width: 100%;
  max-width: 100%;
}

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

.kanban-column {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-height: 420px;
}

.kanban-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 850;
  margin-bottom: 10px;
}

.task-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.task-card strong {
  display: block;
  margin-bottom: 6px;
}

.report-actions {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.report-page {
  padding: 30px;
  max-width: 1060px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.report-cover {
  border-bottom: 4px solid var(--teal);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.report-section {
  margin-top: 22px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.report-kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .brand-block {
    justify-content: center;
  }

  .brand-block > div:not(.brand-mark),
  .nav-item span:not(.ico),
  .sidebar-footer {
    display: none;
  }

  .assessment-layout,
  .overview-grid,
  .two-column,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .section-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .auth-gate {
    padding: 18px;
    background: linear-gradient(180deg, var(--nav) 0%, #173b4e 30%, var(--canvas) 30%);
  }

  .auth-brand {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .auth-brand img {
    width: 112px;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-copy,
  .auth-card {
    padding: 20px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .auth-copy p {
    font-size: 16px;
  }

  .auth-steps {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

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

  .workspace {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-grid,
  .detail-grid,
  .source-card-grid,
  .case-card-grid,
  .risk-visual,
  .domain-row,
  .kanban,
  .report-grid,
  .source-reference-list a {
    grid-template-columns: 1fr;
  }

  .domain-flags {
    justify-content: flex-start;
  }

  .detail-header {
    grid-template-columns: 1fr;
  }

  .detail-header .pill {
    justify-self: start;
    max-width: none;
  }

  .assessment-layout {
    grid-template-columns: 1fr;
  }

  .section-rail {
    grid-template-columns: 1fr;
  }
}

@media print {
  .sidebar,
  .global-nav,
  .topbar,
  .report-actions,
  .view:not(#view-report) {
    display: none !important;
  }

  .app-shell,
  .workspace {
    display: block;
    padding: 0;
    background: white;
  }

  #view-report {
    display: block !important;
  }

  .report-page {
    box-shadow: none;
    border: 0;
    max-width: none;
  }
}

/* Detail-panel collision guard */
.question-detail .detail-header {
  grid-template-columns: 1fr;
  padding-bottom: 2px;
}

.question-detail > .detail-grid {
  margin-top: 2px;
}

/* Salesforce Lightning-inspired visual system */
:root {
  --ink: #181818;
  --muted: #5f6a7d;
  --line: #c9c9c9;
  --panel: #ffffff;
  --canvas: #f3f3f3;
  --nav: #ffffff;
  --nav-2: #ffffff;
  --teal: #0176d3;
  --teal-soft: #eef4ff;
  --blue: #0176d3;
  --amber: #8f6500;
  --amber-soft: #fff4d6;
  --red: #ba0517;
  --red-soft: #fef1ee;
  --green: #2e844a;
  --green-soft: #ebf7e6;
  --violet: #7356bf;
  --shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
}

body {
  background: var(--canvas);
}

.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  grid-template-rows: 56px minmax(0, 1fr);
}

.global-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px minmax(210px, 300px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 8px 14px;
  background: #ffffff;
  border-bottom: 1px solid #d8dde6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-launcher {
  width: 32px;
  height: 32px;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-auto-rows: 4px;
  place-content: center;
  gap: 4px;
  background: #f7f9fb;
}

.app-launcher span {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #0176d3;
}

.cloud-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, #0176d3, #1b96ff);
  font-size: 12px;
  font-weight: 850;
}

.global-title {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.global-title strong {
  font-size: 15px;
  line-height: 1.1;
}

.global-title span {
  color: var(--muted);
  font-size: 11px;
}

.global-search-wrap {
  position: relative;
  max-width: 680px;
  min-width: 0;
}

.global-search-ai-mark {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #143d57, #3f6f8d);
  color: #ffffff;
  font-family: var(--font-subtitle);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  transform: translateY(-50%);
}

.global-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(126, 164, 188, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(72, 214, 200, 0.45), rgba(63, 111, 141, 0.55)) border-box;
  color: #143d57;
  display: block;
  padding: 0 48px 0 50px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 10px 30px rgba(20, 61, 87, 0.12);
}

.global-search::placeholder {
  color: #6e7d86;
  font-weight: 600;
}

.global-search:focus {
  border-color: rgba(72, 214, 200, 0.82);
  box-shadow: 0 0 0 4px rgba(72, 214, 200, 0.18), 0 12px 34px rgba(20, 61, 87, 0.16);
  outline: none;
}

.global-search-mic {
  position: absolute;
  right: 7px;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(63, 111, 141, 0.22);
  border-radius: 50%;
  background: #eef7f8;
  color: #143d57;
  cursor: pointer;
  transform: translateY(-50%);
}

.global-search-mic svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.global-search-mic:hover,
.global-search-mic:focus {
  background: #dff6f4;
  color: #0b2f45;
  outline: none;
}

.global-search-mic.is-listening {
  background: #143d57;
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(72, 214, 200, 0.22);
}

.global-search-mic[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.global-search-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 430px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #d5dde2;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(16, 45, 66, 0.18);
  padding: 8px;
}

.global-search-result {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  text-align: left;
}

.global-search-result:hover,
.global-search-result:focus {
  background: #e6f0f4;
  outline: none;
}

.global-search-result strong,
.global-search-result em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result strong {
  color: #143d57;
  font-size: 13px;
}

.global-search-result em {
  color: #66747d;
  font-size: 12px;
  font-style: normal;
}

.search-type {
  color: #3f6f8d;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.search-empty {
  color: #66747d;
  font-size: 12px;
  padding: 12px;
}

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

.backend-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd9e3;
  border-radius: 999px;
  background: #f7f9fb;
  color: #354b5d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 0 10px;
  white-space: nowrap;
}

.backend-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7f8c96;
  margin-right: 7px;
}

.backend-status.is-online {
  border-color: #bfe8d1;
  background: #eefaf3;
  color: #0f6848;
}

.backend-status.is-online::before {
  background: #16a05d;
}

.backend-status.is-working {
  border-color: #b7d8f4;
  background: #eef6ff;
  color: #0b5cab;
}

.backend-status.is-working::before {
  background: #0176d3;
}

.backend-status.is-offline {
  border-color: #f0c5be;
  background: #fff3f1;
  color: #9d261d;
}

.backend-status.is-offline::before {
  background: #e11931;
}

.utility-button,
.avatar-button {
  min-height: 32px;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  background: #ffffff;
  color: #032d60;
  font-weight: 750;
  padding: 0 10px;
}

.avatar-button {
  width: 32px;
  padding: 0;
  border-radius: 999px;
  color: white;
  background: #0176d3;
}

.sidebar {
  grid-row: 2;
  background: #ffffff;
  color: var(--ink);
  border-right: 1px solid #d8dde6;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.02);
  height: calc(100vh - 56px);
  top: 56px;
  padding: 16px 12px;
  gap: 18px;
}

.brand-block {
  border: 1px solid #d8dde6;
  border-radius: 4px;
  padding: 10px;
  background: #f7f9fb;
}

.brand-mark {
  background: #0176d3;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.brand-name {
  color: #032d60;
  font-size: 15px;
}

.brand-subtitle,
.tenant-label {
  color: #667085;
}

.nav-list {
  gap: 2px;
}

.legacy-nav {
  display: none !important;
}

.nav-item {
  color: #181818;
  border-radius: 4px;
  padding: 9px 10px;
  border-left: 3px solid transparent;
  font-weight: 650;
}

.nav-item:hover {
  background: #f3f7ff;
  color: #032d60;
}

.nav-item.is-active {
  background: #eef4ff;
  color: #032d60;
  border-left-color: #0176d3;
}

.ico {
  font-size: 0;
  color: #0176d3;
  border-radius: 4px;
  background: #eaf5fe;
  width: 24px;
  height: 24px;
}

.ico::before {
  font-size: 11px;
  font-weight: 850;
}

.nav-item[data-view="customer"] .ico::before { content: "C"; }
.nav-item[data-view="executive"] .ico::before { content: "X"; }
.nav-item[data-view="health"] .ico::before { content: "H"; }
.nav-item[data-view="teaser"] .ico::before { content: "R"; }
.nav-item[data-view="portal"] .ico::before { content: "A"; }
.nav-item[data-view="overview"] .ico::before { content: "O"; }
.nav-item[data-view="assessment"] .ico::before { content: "I"; }
.nav-item[data-view="evidence"] .ico::before { content: "E"; }
.nav-item[data-view="advisor"] .ico::before { content: "V"; }
.nav-item[data-view="remediation"] .ico::before { content: "R"; }
.nav-item[data-view="report"] .ico::before { content: "P"; }
.nav-item[data-view="sources"] .ico::before { content: "S"; }

.sidebar-footer {
  border-top-color: #d8dde6;
}

.tenant-name {
  color: #032d60;
}

.workspace {
  grid-row: 2;
  padding: 16px 18px 24px;
}

.topbar {
  background: #ffffff;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

h1 {
  font-size: 21px;
  color: #032d60;
}

h2 {
  color: #181818;
  font-size: 15px;
}

.primary-button,
.secondary-button,
.icon-button,
.small-button {
  border-radius: 4px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 750;
}

.primary-button {
  background: #0176d3;
  border-color: #0176d3;
}

.primary-button:hover {
  background: #014486;
  border-color: #014486;
}

.secondary-button,
.icon-button,
.small-button {
  background: #ffffff;
  color: #0176d3;
  border-color: #d8dde6;
}

#resetDemo {
  min-width: 54px;
  font-size: 0;
}

#resetDemo::before {
  content: "Reset";
  font-size: 12px;
}

.metrics-grid {
  gap: 12px;
}

.metric-card,
.panel,
.question-list-panel,
.question-detail,
.section-rail,
.report-page {
  border-color: #d8dde6;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 96px;
  padding: 14px;
  border-top: 3px solid #0176d3;
}

.metric-label {
  color: #444b5a;
  font-size: 11px;
}

.metric-value {
  color: #032d60;
  font-size: 28px;
}

.panel {
  padding: 0;
}

.panel-header {
  min-height: 46px;
  padding: 12px 14px;
  margin-bottom: 0;
  border-bottom: 1px solid #d8dde6;
  background: #f7f9fb;
}

.panel > :not(.panel-header) {
  margin: 14px;
  max-width: calc(100% - 28px);
  min-width: 0;
}

.panel > canvas {
  width: calc(100% - 28px);
}

.pill,
.mini-count,
.tag {
  border-radius: 999px;
  font-size: 11px;
}

.pill {
  background: #eaf5fe;
  color: #032d60;
}

.mini-count {
  background: #fff4d6;
  color: #8f6500;
}

.section-row,
.compact-item,
.evidence-item,
.review-item,
.control-card,
.source-card,
.case-card,
.task-card,
.detail-block,
.report-kpi {
  border-color: #d8dde6;
  border-radius: 4px;
  background: #ffffff;
}

.section-row,
.compact-item,
.evidence-item,
.review-item {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.assessment-layout {
  grid-template-columns: 260px minmax(330px, 0.85fr) minmax(0, 1.25fr);
  min-height: calc(100vh - 128px);
}

.section-rail,
.question-list-panel,
.question-detail {
  padding: 10px;
}

.section-button {
  border-color: #d8dde6;
  border-radius: 4px;
  background: #ffffff;
}

.section-button.is-selected {
  border-color: #0176d3;
  background: #eef4ff;
  box-shadow: inset 3px 0 0 #0176d3;
}

input,
select,
textarea {
  border-color: #d8dde6;
  border-radius: 4px;
  min-height: 36px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0176d3;
  box-shadow: 0 0 3px #0176d3;
}

.control-card {
  border-left: 3px solid transparent;
}

.control-card.is-selected {
  border-color: #0176d3;
  box-shadow: inset 3px 0 0 #0176d3;
  background: #f7fbff;
}

.segment {
  border-radius: 4px;
}

.segment.is-selected {
  background: #0176d3;
  border-color: #0176d3;
}

.ai-finding {
  border-left-color: #0176d3;
  background: #eef4ff;
  border-radius: 4px;
}

.source-link,
.source-mini a {
  color: #0176d3;
}

.kanban-column {
  border-color: #d8dde6;
  border-radius: 4px;
  background: #f7f9fb;
}

.kanban-title {
  color: #032d60;
}

.report-page {
  box-shadow: none;
}

.report-cover {
  border-bottom-color: #0176d3;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: 56px minmax(0, 1fr);
  }

  .global-nav {
    grid-template-columns: 40px 40px minmax(160px, 1fr) auto;
  }

  .global-search {
    display: none;
  }

  .global-search-wrap {
    display: none;
  }

  .sidebar {
    height: calc(100vh - 56px);
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .global-nav {
    grid-template-columns: 34px 34px 1fr auto;
    position: static;
  }

  .global-title span,
  .utility-button {
    display: none;
  }

  .sidebar,
  .workspace {
    grid-row: auto;
  }

  .sidebar {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d8dde6;
  }
}

/* Ally Health branded theme */
:root {
  --ink: #102d42;
  --muted: #66747d;
  --line: #d5dde2;
  --panel: #ffffff;
  --canvas: #f2f5f6;
  --nav: #ffffff;
  --nav-2: #ffffff;
  --teal: #153e57;
  --teal-soft: #e9f1f5;
  --blue: #3f6f8d;
  --amber: #9a6a25;
  --amber-soft: #f8ecd6;
  --red: #b4232a;
  --red-soft: #fae7e8;
  --green: #2f6f68;
  --green-soft: #e4f1ef;
  --violet: #566d7b;
  --shadow: 0 2px 8px rgba(16, 45, 66, 0.08);
}

body {
  background: #eef2f4;
  color: var(--ink);
}

.global-nav {
  background: #143d57;
  border-bottom-color: #0f334a;
  color: #ffffff;
  grid-template-columns: 40px minmax(240px, 360px) minmax(260px, 1fr) auto;
}

.app-launcher {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.app-launcher span {
  background: #d9e8ef;
}

.brand-logo-tile {
  height: 44px;
  width: 168px;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.brand-logo-tile img,
.brand-logo-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-tile img {
  object-position: center;
}

.cloud-badge {
  background: #ffffff;
  color: #143d57;
}

.global-title strong {
  color: #ffffff;
}

.global-title span {
  color: #d4e3eb;
}

.global-search {
  border-color: rgba(72, 214, 200, 0.42);
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(115deg, rgba(126, 164, 188, 0.72), rgba(72, 214, 200, 0.82)) border-box;
  color: #143d57;
}

.global-search::placeholder {
  color: #6e7d86;
}

.global-search:focus {
  border-color: rgba(72, 214, 200, 0.82);
  box-shadow: 0 0 0 4px rgba(72, 214, 200, 0.18), 0 12px 34px rgba(20, 61, 87, 0.16);
}

.utility-button {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.avatar-button {
  background: #ffffff;
  color: #143d57;
  border-color: #ffffff;
}

.avatar-button {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu {
  position: fixed;
  top: 64px;
  right: 16px;
  z-index: 80;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 82px);
  overflow: auto;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(16, 45, 66, 0.24);
}

.account-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4eaee;
}

.account-card-head strong,
.account-card-head span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card-head strong {
  color: #143d57;
  font-size: 17px;
}

.account-card-head span {
  color: #6e7d86;
  font-size: 13px;
}

.account-avatar-large {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e6f0f4;
  color: #143d57;
  font-size: 20px;
  font-weight: 850;
  border: 1px solid #d5dde2;
}

.account-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.account-tabs button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid #d5dde2;
  border-radius: 4px;
  background: #f8fafb;
  color: #143d57;
  font-size: 12px;
  font-weight: 800;
}

.account-tabs button.is-active {
  background: #143d57;
  border-color: #143d57;
  color: #ffffff;
}

.account-pane {
  display: none;
  gap: 10px;
}

.account-pane.is-current {
  display: grid;
}

.account-pane label {
  display: grid;
  gap: 5px;
  color: #223f52;
  font-size: 12px;
  font-weight: 800;
}

.account-pane input,
.account-pane select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d5dde2;
  border-radius: 4px;
  background: #ffffff;
  color: #1f2933;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.account-check {
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.account-check input {
  width: auto;
  min-height: auto;
  padding: 0;
}

.account-user-list {
  display: grid;
  gap: 8px;
}

.account-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d5dde2;
  border-radius: 6px;
  background: #f8fafb;
}

.account-user strong,
.account-user span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user strong {
  color: #143d57;
}

.account-user span {
  color: #6e7d86;
  font-size: 12px;
}

.account-user button {
  min-height: 30px;
  border: 1px solid #d5dde2;
  border-radius: 4px;
  background: #ffffff;
  color: #143d57;
  font-weight: 800;
}

.account-add-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.account-status {
  min-height: 20px;
  color: #6e7d86;
  font-size: 12px;
  font-weight: 750;
}

.account-status.is-error {
  color: #c4001a;
}

.account-status.is-success {
  color: #087d48;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e4eaee;
}

.access-pill {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #d5dde2;
  border-radius: 999px;
  background: #e6f0f4;
  color: #143d57;
  font-size: 12px;
  font-weight: 850;
}

.nav-item.is-locked {
  opacity: 0.52;
}

.nav-item.is-locked::after {
  content: "Locked";
  margin-left: auto;
  color: #6e7d86;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-console,
.physician-portal {
  display: grid;
  gap: 14px;
}

.customer-hero,
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.portal-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #3f6f8d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-hero h2,
.portal-hero h2 {
  margin: 0 0 6px;
  color: #143d57;
  font-size: 24px;
}

.customer-hero p,
.portal-hero p,
.portal-sync p {
  margin: 0;
  color: #5d6f79;
  line-height: 1.45;
}

.customer-access-panel {
  padding: 0;
  overflow: hidden;
}

.mobile-intake-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.mobile-intake-copy h2 {
  margin: 0 0 7px;
  color: #143d57;
  font-size: 22px;
}

.mobile-intake-copy p {
  margin: 0;
  color: #5d6f79;
  line-height: 1.45;
}

.mobile-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.mobile-link-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 10px;
  border: 1px solid #d5dde2;
  border-radius: 4px;
  background: #f8fafb;
  color: #143d57;
  font-size: 12px;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  background: #ffffff;
}

.qr-card span {
  color: #66747d;
  font-size: 12px;
  font-weight: 850;
}

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

.locked-feature-grid,
.customer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.customer-registration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #d5dde2;
}

.customer-registration label {
  display: grid;
  gap: 5px;
  color: #143d57;
  font-size: 12px;
  font-weight: 850;
}

.customer-registration input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d5dde2;
  border-radius: 4px;
  padding: 0 10px;
  color: #1f2933;
  font-size: 14px;
}

.customer-registration .account-check,
.customer-registration .registration-status,
.customer-registration button {
  grid-column: 1 / -1;
}

.registration-status {
  min-height: 18px;
  color: #66747d;
  font-size: 12px;
  font-weight: 750;
}

.registration-status.is-error {
  color: #c4001a;
}

.locked-feature-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d5dde2;
  border-radius: 6px;
  background: #f8fafb;
}

.locked-feature-grid strong,
.locked-feature-grid span {
  display: block;
}

.locked-feature-grid span {
  margin-top: 5px;
  color: #66747d;
  font-size: 12px;
  line-height: 1.35;
}

.customer-access-panel .inline-actions {
  padding: 0 14px 14px;
}

.customer-links {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.is-locked-card .metric-value {
  color: #6e7d86;
}

.portal-progress-card {
  width: 220px;
  padding: 16px;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  background: #ffffff;
}

.portal-progress-card strong,
.portal-progress-card span {
  display: block;
}

.portal-progress-card strong {
  color: #143d57;
  font-size: 32px;
}

.portal-progress-card span {
  color: #66747d;
  font-size: 13px;
}

.portal-progress-track {
  height: 8px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: #dce3e8;
}

.portal-progress-track span {
  height: 100%;
  border-radius: inherit;
  background: #3f6f8d;
}

.portal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  gap: 14px;
  align-items: start;
}

.portal-map,
.portal-card,
.portal-sync,
.regulatory-watch {
  border: 1px solid #d5dde2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.portal-map,
.portal-sync {
  padding: 12px;
}

.portal-card {
  padding: 16px;
}

.portal-panel-head,
.portal-question-top,
.watch-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.portal-panel-head h3,
.portal-choice-group h3,
.portal-required h3,
.watch-grid h3 {
  margin: 0;
  color: #143d57;
  font-size: 14px;
}

.portal-section-button {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #d5dde2;
  border-radius: 6px;
  background: #f8fafb;
  color: #223f52;
  text-align: left;
}

.portal-section-button.is-selected {
  border-color: #3f6f8d;
  background: #e6f0f4;
}

.portal-section-button strong,
.portal-section-button span {
  display: block;
}

.portal-section-button span,
.portal-step {
  color: #66747d;
  font-size: 12px;
}

.portal-question-text {
  color: #1f2933;
  font-size: 20px;
  line-height: 1.45;
}

.portal-advisor-note {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe3ec;
  border-radius: 8px;
  background: #eef7fb;
  color: #143d57;
  font-size: 15px;
  line-height: 1.45;
}

.portal-advisor-note strong {
  display: block;
  margin-bottom: 4px;
  color: #0b344f;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-advisor-note span {
  display: block;
}

.portal-label,
.portal-required,
.portal-choice-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.portal-label {
  color: #143d57;
  font-weight: 850;
}

.portal-label textarea {
  min-height: 145px;
  resize: vertical;
  border: 1px solid #d5dde2;
  border-radius: 6px;
  padding: 12px;
  color: #1f2933;
  font-size: 15px;
  line-height: 1.45;
}

.portal-maturity,
.portal-evidence-confidence,
.portal-upload-grid,
.portal-actions,
.watch-grid {
  display: grid;
  gap: 10px;
}

.portal-maturity {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.portal-maturity .segment {
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: center;
  min-height: 56px;
  padding: 6px 4px;
  line-height: 1.1;
  overflow: hidden;
}

.portal-maturity .segment strong,
.portal-maturity .segment span {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-maturity .segment span {
  font-size: 13px;
}

.portal-evidence-confidence {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.portal-upload-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 14px;
}

.portal-upload {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px dashed #9db5c5;
  border-radius: 8px;
  background: #f8fafb;
  color: #143d57;
}

.portal-upload span {
  color: #66747d;
  font-size: 12px;
  line-height: 1.35;
}

.portal-upload input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  color: #143d57;
  font-size: 13px;
}

.portal-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.portal-actions {
  grid-template-columns: auto auto 1fr;
  margin-top: 16px;
}

.portal-actions .primary-button {
  justify-self: end;
}

.regulatory-watch {
  margin-bottom: 14px;
  overflow: hidden;
}

.watch-summary {
  padding: 14px;
  border-bottom: 1px solid #d5dde2;
}

.watch-summary strong,
.watch-summary span {
  display: block;
}

.watch-summary span {
  color: #66747d;
  font-size: 13px;
}

.watch-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding: 14px;
}

.watch-target,
.watch-alert {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #d5dde2;
  border-radius: 6px;
  background: #f8fafb;
}

.watch-target + .watch-target,
.watch-alert + .watch-alert {
  margin-top: 8px;
}

.watch-alert {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.watch-alert span,
.watch-alert em,
.watch-target span {
  color: #66747d;
  font-size: 12px;
  font-style: normal;
}

.watch-alert.is-reviewed {
  opacity: 0.72;
}

/* Executive Intelligence Center */
.executive-center {
  display: grid;
  gap: 12px;
}

.executive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 28px;
  align-items: center;
  min-height: 132px;
  padding: 28px 36px;
  background:
    radial-gradient(circle at top right, rgba(36, 198, 183, 0.24), transparent 34%),
    linear-gradient(135deg, #06243a 0%, #143d57 54%, #315a71 100%);
  color: #ffffff;
  overflow: hidden;
}

.executive-hero h2 {
  max-width: 980px;
  color: #ffffff;
  margin: 8px 0 10px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
}

.executive-hero p {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.executive-ai-pulse {
  border: 1px solid rgba(163, 213, 232, 0.32);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 24px rgba(36, 198, 183, 0.16);
  justify-self: stretch;
}

.executive-ai-pulse span,
.forecast-step span,
.forecast-confidence span,
.executive-mini-card span,
.executive-timeline-item span {
  display: block;
  color: #6b7b85;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.executive-ai-pulse span {
  color: #24c6b7;
}

.executive-ai-pulse strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
}

.executive-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.executive-health-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.executive-disclosure-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.executive-disclosure-panel {
  overflow: hidden;
}

.executive-section-card {
  width: 100%;
  min-height: 132px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(63, 111, 141, 0.3);
  border-radius: 7px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at top right, rgba(72, 214, 200, 0.16), transparent 34%),
    linear-gradient(135deg, #143d57, #315a71);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.executive-section-card:hover {
  border-color: rgba(72, 214, 200, 0.82);
  box-shadow: 0 16px 32px rgba(20, 61, 87, 0.12);
  transform: translateY(-1px);
}

.executive-section-card[aria-expanded="true"] {
  border-color: rgba(72, 214, 200, 0.88);
  background:
    radial-gradient(circle at top right, rgba(72, 214, 200, 0.24), transparent 34%),
    linear-gradient(135deg, #06243a, #315a71);
}

.executive-section-card span {
  color: #48d6c8;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-section-card strong {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.executive-section-card em {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.executive-section-card i {
  color: #ffffff;
  font-style: normal;
  font-weight: 850;
}

.executive-section-card b {
  width: fit-content;
  margin-top: 4px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #48d6c8;
  color: #06243a;
  font-family: var(--font-subtitle);
  font-size: 13px;
}

.executive-panel-details {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #d5dde2;
  background: #f8fbfc;
}

.executive-disclosure-panel:not(.is-expanded) > .executive-panel-details,
.executive-disclosure-panel > .executive-panel-details[hidden] {
  display: none !important;
}

.executive-disclosure-panel.is-expanded > .executive-panel-details {
  display: grid;
}

.executive-score-card {
  min-width: 0;
  overflow: hidden;
}

.executive-score-body,
.resilience-summary {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.resilience-summary {
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: start;
}

.executive-donut {
  --score: 0%;
  --score-color: #24c6b7;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--score-color) var(--score), #e2e9ed 0);
  box-shadow: 0 14px 28px rgba(20, 61, 87, 0.12);
  position: relative;
  flex: 0 0 auto;
}

.executive-donut.small {
  width: 108px;
  height: 108px;
}

.executive-donut span {
  color: #06243a;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-9px);
}

.executive-donut small {
  position: absolute;
  top: calc(50% + 13px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  max-width: 78px;
  color: #60717d;
  font-family: "Montserrat", sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.executive-donut.small span {
  font-size: 30px;
}

.executive-donut.small small {
  top: calc(50% + 12px);
  max-width: 82px;
  font-size: 8px;
}

.executive-score-copy strong,
.resilience-lists strong {
  display: block;
  color: #143d57;
  font-size: 15px;
  font-weight: 800;
}

.executive-score-copy p,
.executive-score-copy em,
.resilience-lists li,
.executive-mini-card p,
.executive-recommendation p,
.executive-roadmap-step p,
.executive-timeline-item p {
  color: #61727f;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.forecast-ladder {
  display: grid;
  gap: 7px;
}

.forecast-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #d4e0e6;
  border-radius: 8px;
  background: #f8fbfc;
}

.forecast-step.is-current {
  border-color: #3f6f8d;
  background: #edf6fa;
}

.forecast-step strong {
  color: #06243a;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 1;
  min-width: 52px;
  text-align: right;
}

.forecast-confidence {
  padding: 9px 10px;
  border-radius: 8px;
  background: #143d57;
  color: #ffffff;
}

.forecast-confidence strong {
  color: #ffffff;
}

.forecast-confidence span {
  color: rgba(255, 255, 255, 0.72);
}

.resilience-lists {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.resilience-lists ul {
  margin: 5px 0 0;
  padding-left: 16px;
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.executive-grid .panel {
  min-width: 0;
  overflow: hidden;
}

.executive-score-card > :not(.panel-header),
.practice-health-score-panel > :not(.panel-header),
.health-live-feed-panel > :not(.panel-header) {
  margin: 12px;
  max-width: calc(100% - 24px);
}

.executive-score-card .panel-header,
.practice-health-score-panel .panel-header,
.health-live-feed-panel .panel-header {
  min-height: 42px;
  padding: 10px 14px;
}

.executive-score-card .panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.executive-score-card .panel-header h2 {
  min-width: 0;
  line-height: 1.08;
}

.executive-score-card .panel-header .pill {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.executive-actions-panel,
.executive-roadmap-panel {
  grid-column: span 2;
}

.executive-mini-card,
.executive-recommendation,
.executive-roadmap-step,
.executive-timeline-item {
  padding: 10px;
  border: 1px solid #d4e0e6;
  border-radius: 8px;
  background: #ffffff;
}

.executive-mini-card + .executive-mini-card,
.executive-recommendation + .executive-recommendation,
.executive-roadmap-step + .executive-roadmap-step,
.executive-timeline-item + .executive-timeline-item {
  margin-top: 8px;
}

.executive-mini-card strong,
.executive-recommendation strong,
.executive-roadmap-step strong,
.executive-timeline-item strong {
  display: block;
  margin-top: 4px;
  color: #143d57;
  font-weight: 800;
}

.executive-recommendation {
  display: grid;
  gap: 8px;
}

.executive-recommendation > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.recommendation-impact span {
  padding: 7px;
  border-radius: 8px;
  background: #eef5f7;
  color: #39556a;
  font-size: 12px;
  font-weight: 700;
}

.recommendation-impact b {
  color: #16a05d;
}

.executive-roadmap-step {
  border-left: 4px solid #b8cbd5;
}

.executive-roadmap-step.is-active {
  border-left-color: #24c6b7;
  background: #f2fbfa;
}

.executive-roadmap-step em {
  display: block;
  margin-top: 7px;
  color: #426276;
  font-family: var(--font-subtitle);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.executive-line-chart {
  min-height: 138px;
  display: grid;
  grid-template-rows: minmax(92px, 1fr) auto;
  gap: 8px;
}

.executive-line-chart svg {
  width: 100%;
  height: 104px;
  border-radius: 8px;
  background:
    linear-gradient(#edf4f7 1px, transparent 1px),
    linear-gradient(90deg, #edf4f7 1px, transparent 1px);
  background-size: 100% 33%, 25% 100%;
}

.executive-line-chart polyline {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.executive-line-chart div {
  display: flex;
  justify-content: space-between;
  color: #143d57;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
}

.mini-count {
  min-width: 32px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f0f4;
  color: #143d57;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
}

/* Practice Health Dashboard */
.practice-health-dashboard {
  display: grid;
  gap: 12px;
}

.practice-health-hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 188px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(248, 252, 253, 0.98), rgba(231, 245, 247, 0.92)),
    #f8fcfd;
  border-color: #d4e2e8;
  color: #143d57;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 61, 87, 0.08);
}

.practice-health-hero > :not(.panel-header),
.executive-hero > :not(.panel-header) {
  margin: 0;
  max-width: 100%;
}

.practice-health-copy h2 {
  color: #ffffff;
  margin: 4px 0 8px;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.1;
}

.practice-health-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.42;
}

.health-spotlight {
  min-width: 0;
}

.health-spotlight-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 14px;
  animation: healthSpotlightFade 540ms ease both;
}

.health-spotlight-media,
.health-spotlight-copy {
  min-width: 0;
  border-radius: 7px;
}

.health-spotlight-media {
  position: relative;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 20px 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 36, 58, 0.18), rgba(6, 36, 58, 0.76)),
    linear-gradient(135deg, #3f6f8d, #48d6c8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 32px rgba(20, 61, 87, 0.14);
}

.health-spotlight-media img,
.health-article-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.health-spotlight-media.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(6, 36, 58, 0.78), rgba(6, 36, 58, 0.34) 56%, rgba(6, 36, 58, 0.58)),
    linear-gradient(0deg, rgba(6, 36, 58, 0.62), rgba(6, 36, 58, 0.1));
  z-index: 1;
}

.health-spotlight-media.has-image::after {
  display: none;
}

.health-spotlight-media::before,
.health-spotlight-media::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.health-spotlight-media::before {
  width: 210px;
  height: 210px;
  right: -54px;
  top: -64px;
}

.health-spotlight-media::after {
  width: 106px;
  height: 106px;
  left: 52px;
  bottom: 34px;
  box-shadow: 190px 34px 0 rgba(255, 255, 255, 0.09);
}

.health-spotlight-card.is-cyber .health-spotlight-media {
  background:
    linear-gradient(135deg, rgba(6, 36, 58, 0.22), rgba(6, 36, 58, 0.8)),
    linear-gradient(135deg, #006bb6, #24c6b7);
}

.health-spotlight-card.is-clinical .health-spotlight-media {
  background:
    linear-gradient(135deg, rgba(6, 36, 58, 0.18), rgba(6, 36, 58, 0.74)),
    linear-gradient(135deg, #16a05d, #7bd3ff);
}

.health-spotlight-card.is-financial .health-spotlight-media {
  background:
    linear-gradient(135deg, rgba(6, 36, 58, 0.2), rgba(6, 36, 58, 0.78)),
    linear-gradient(135deg, #7b5700, #ffc928);
}

.health-spotlight-media > * {
  position: relative;
  z-index: 1;
}

.health-spotlight-media h2 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 2.25vw, 35px);
  line-height: 1.05;
}

.health-spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.health-spotlight-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 800;
}

.health-spotlight-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(63, 111, 141, 0.18);
  box-shadow: 0 14px 30px rgba(20, 61, 87, 0.08);
}

.health-spotlight-copy strong {
  color: #143d57;
  font-size: 21px;
  line-height: 1.12;
}

.health-spotlight-copy p {
  color: #4f6474;
  font-family: var(--font-subtitle);
  font-size: 14px;
  line-height: 1.45;
}

.health-spotlight-copy .small-button {
  width: fit-content;
  background: #48d6c8;
  border-color: #48d6c8;
  color: #06243a;
}

.health-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.health-spotlight-actions .source-link-button {
  background: #ffffff;
  border-color: #ffffff;
  color: #143d57;
  text-decoration: none;
}

@keyframes healthSpotlightFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.health-reward {
  width: 100%;
  min-width: 0;
}

.health-reward span,
.health-card-footer span,
.roadmap-step span,
.health-driver span,
.urgent-item em {
  display: block;
  color: #66747d;
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-style: normal;
}

.health-reward span {
  color: rgba(72, 214, 200, 0.95);
  font-weight: 800;
  text-transform: uppercase;
}

.health-reward strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
}

.health-next-action-card {
  width: 100%;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(72, 214, 200, 0.46);
  border-radius: 8px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at top right, rgba(72, 214, 200, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 34px rgba(6, 36, 58, 0.18);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
}

.health-next-action-panel .health-next-action-card {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(72, 214, 200, 0.2), transparent 34%),
    linear-gradient(135deg, #06243a, #315a71);
}

.health-action-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.health-forecast-panel .forecast-ladder {
  padding: 12px;
}

.health-forecast-panel .forecast-confidence {
  margin-top: 4px;
}

.health-action-tile-panel {
  overflow: hidden;
}

.health-section-action-card {
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at top right, rgba(72, 214, 200, 0.16), transparent 34%),
    linear-gradient(135deg, #143d57, #315a71);
}

.health-section-action-card:hover {
  transform: none;
}

.health-section-action-card[aria-expanded="true"] {
  border-color: rgba(72, 214, 200, 0.82);
  background:
    radial-gradient(circle at top right, rgba(72, 214, 200, 0.24), transparent 34%),
    linear-gradient(135deg, #06243a, #315a71);
}

.health-section-action-card i {
  color: #ffffff;
  font-style: normal;
  font-weight: 850;
}

.health-action-tile-panel .health-panel-details {
  padding: 12px;
  border-top: 1px solid #d5dde2;
  background: #f8fbfc;
}

.health-action-tile-panel:not(.is-expanded) > .health-panel-details,
.health-action-tile-panel > .health-panel-details[hidden] {
  display: none !important;
}

.health-action-tile-panel.is-expanded > .health-panel-details {
  display: block;
}

.health-next-action-card:hover {
  border-color: rgba(72, 214, 200, 0.8);
  transform: translateY(-1px);
}

.health-next-action-card span {
  color: #48d6c8;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.health-next-action-card strong {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.health-next-action-card em {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-style: normal;
}

.health-next-action-card b {
  width: fit-content;
  margin-top: 4px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #48d6c8;
  color: #06243a;
  font-family: var(--font-subtitle);
  font-size: 13px;
}

.practice-health-grid {
  display: grid;
  grid-template-columns: minmax(520px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
}

.practice-health-score-panel,
.health-roadmap-panel,
.health-urgent-panel {
  align-self: start;
}

.health-roadmap-inline {
  margin: 14px 16px 16px;
  padding-top: 14px;
  border-top: 1px solid #d5dde2;
}

.health-roadmap-inline-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.health-roadmap-inline-header h3 {
  margin: 4px 0 0;
  color: #06243a;
  font-size: clamp(20px, 1.55vw, 25px);
  line-height: 1.08;
}

.roadmap-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.health-roadmap-inline .roadmap-consult-status {
  margin: 0 0 12px;
}

.health-roadmap-inline .health-roadmap {
  gap: 10px;
}

.practice-health-access-panel {
  overflow: hidden;
}

.practice-health-access-panel .metrics-grid {
  margin-bottom: 0;
}

.health-access-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.health-mobile-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px dashed rgba(126, 164, 188, 0.42);
  border-radius: 8px;
  background: #f8fbfc;
}

.health-mobile-access h3 {
  margin: 4px 0 8px;
  color: #143d57;
  font-size: 20px;
}

.health-mobile-access p {
  color: #566875;
  font-family: var(--font-subtitle);
  font-size: 13px;
  line-height: 1.5;
}

.qr-card.compact {
  min-width: 112px;
  padding: 10px;
}

.qr-card.compact .qr-svg {
  width: 88px;
  height: 88px;
}

.health-access-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(126, 164, 188, 0.28);
  border-radius: 8px;
  background: #ffffff;
}

.health-access-actions .health-access-note {
  flex: 1 1 100%;
  color: #566875;
  font-family: var(--font-subtitle);
  font-size: 13px;
  line-height: 1.5;
}

.health-access-note strong {
  display: block;
  color: #143d57;
  font-family: var(--font-title);
  font-size: 16px;
}

.health-action-panel,
.health-feed-panel {
  min-width: 0;
}

.health-score-wrap {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.health-donut {
  --health-score: 0%;
  --health-color: #48d6c8;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
    conic-gradient(var(--health-color) var(--health-score), #e8eef2 0);
  box-shadow: 0 18px 38px rgba(20, 61, 87, 0.13);
  position: relative;
}

.health-donut::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  border: 1px solid rgba(126, 164, 188, 0.28);
}

.health-donut span {
  color: #143d57;
  font-family: var(--font-title);
  font-size: 46px;
  font-weight: 800;
  line-height: 0.9;
  position: absolute;
  top: calc(50% - 34px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.health-donut small {
  color: #66747d;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  position: absolute;
  top: calc(50% + 17px);
  left: 50%;
  width: 96px;
  text-align: center;
  transform: translateX(-50%);
  z-index: 1;
}

.customer-health-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(126, 164, 188, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 247, 249, 0.92), rgba(255, 255, 255, 0.96));
}

.customer-health-preview strong {
  display: block;
  color: #143d57;
  font-size: 18px;
  line-height: 1.2;
}

.customer-health-preview span {
  display: block;
  margin-top: 6px;
  color: #566875;
  font-family: var(--font-subtitle);
  font-size: 13px;
  line-height: 1.5;
}

.health-donut.compact {
  width: 88px;
  box-shadow: 0 10px 22px rgba(20, 61, 87, 0.1);
}

.health-donut.compact::after {
  inset: 8px;
}

.health-donut.compact span {
  font-size: 28px;
  top: calc(50% - 22px);
}

.health-donut.compact small {
  top: calc(50% + 11px);
  width: 68px;
  font-size: 9px;
}

.health-drivers {
  display: grid;
  gap: 8px;
}

.health-driver {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 4px 10px;
  align-items: center;
}

.health-driver strong {
  color: #143d57;
  font-size: 15px;
  line-height: 1.1;
}

.health-driver span {
  font-size: 12px;
  line-height: 1.2;
}

.health-driver em {
  color: #143d57;
  font-family: var(--font-subtitle);
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.health-driver-bar {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: #e8eef2;
  overflow: hidden;
}

.health-driver-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f6f8d, #48d6c8);
}

.health-driver.is-signal {
  padding: 9px;
  border: 1px solid rgba(72, 214, 200, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(72, 214, 200, 0.16), rgba(232, 244, 250, 0.74));
}

.health-driver.is-signal strong,
.health-driver.is-signal em {
  color: #08324f;
}

.health-driver.is-signal .health-driver-bar span {
  background: linear-gradient(90deg, #02c8be, #0b79c7);
}

.health-trend {
  margin: 12px 14px 14px;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfc;
}

.health-trend-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.health-trend-head strong {
  color: #143d57;
}

.health-trend-head span {
  color: #66747d;
  font-family: var(--font-subtitle);
  font-size: 13px;
}

.health-trend svg {
  width: 100%;
  height: 50px;
  display: block;
}

.health-trend polyline {
  fill: none;
  stroke: #48d6c8;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 10px rgba(72, 214, 200, 0.22));
}

.health-action-list,
.health-feed,
.health-urgent-list,
.health-roadmap,
.health-achievements,
.health-advisor-messages {
  display: grid;
  gap: 12px;
}

.roadmap-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.section-toggle {
  min-height: 32px;
  border: 1px solid #cbd8df;
  border-radius: 999px;
  padding: 0 13px;
  background: #ffffff;
  color: #143d57;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.section-toggle:hover {
  border-color: #3f6f8d;
  background: #f2f8fb;
}

.health-disclosure-panel {
  overflow: hidden;
}

.health-panel-preview {
  width: calc(100% - 24px);
  margin: 12px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at right top, rgba(72, 214, 200, 0.16), transparent 36%),
    #f8fbfc;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.health-panel-preview:hover {
  border-color: rgba(72, 214, 200, 0.72);
  box-shadow: 0 14px 28px rgba(20, 61, 87, 0.1);
  transform: translateY(-1px);
}

.health-panel-preview strong,
.health-panel-preview em {
  display: block;
}

.health-panel-preview strong {
  color: #143d57;
  font-size: 18px;
  line-height: 1.15;
}

.health-panel-preview em {
  margin-top: 5px;
  color: #536677;
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.health-panel-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-subtitle);
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(135deg, #143d57, #3f6f8d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.health-panel-icon.education-icon {
  background: linear-gradient(135deg, #006bb6, #24c6b7);
}

.health-panel-icon.guidance-icon {
  background: linear-gradient(135deg, #a01324, #ff7a1a);
}

.health-panel-icon.milestone-icon {
  background: linear-gradient(135deg, #0b5f63, #48d6c8);
}

.health-panel-icon.advisor-icon {
  background: linear-gradient(135deg, #315a71, #06243a);
}

.health-panel-details {
  display: grid;
  gap: 12px;
}

@media (max-width: 760px) {
  .roadmap-header-actions {
    justify-content: flex-start;
  }

  .health-panel-preview {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .health-panel-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .health-panel-preview strong {
    font-size: 16px;
  }
}

.roadmap-consult-status {
  margin: 12px 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(72, 214, 200, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(72, 214, 200, 0.14), rgba(248, 251, 252, 0.94));
}

.roadmap-consult-status:empty {
  display: none;
}

.roadmap-consult-status strong {
  display: block;
  color: #143d57;
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-weight: 850;
}

.roadmap-consult-status span {
  display: block;
  margin-top: 4px;
  color: #536677;
  font-family: var(--font-subtitle);
  font-size: 12px;
  line-height: 1.35;
}

.health-live-feed-panel {
  overflow: hidden;
}

.health-article-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 48%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.health-article-card {
  min-height: 288px;
  display: grid;
  grid-template-rows: 118px minmax(0, 1fr);
  border: 1px solid #d5dde2;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 14px 26px rgba(20, 61, 87, 0.08);
}

.health-article-image {
  position: relative;
  min-height: 118px;
  background:
    linear-gradient(135deg, rgba(6, 36, 58, 0.2), rgba(6, 36, 58, 0.72)),
    linear-gradient(135deg, #3f6f8d, #48d6c8);
  overflow: hidden;
}

.health-article-image::before,
.health-article-image::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.health-article-image::before {
  width: 130px;
  height: 130px;
  right: -42px;
  top: -44px;
}

.health-article-image::after {
  width: 70px;
  height: 70px;
  left: 28px;
  bottom: 24px;
  box-shadow: 120px 28px 0 rgba(255, 255, 255, 0.1);
}

.health-article-image.has-image::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(6, 36, 58, 0.16), rgba(6, 36, 58, 0.68));
  z-index: 1;
}

.health-article-image.has-image::after {
  display: none;
}

.health-article-card.is-cyber .health-article-image {
  background:
    linear-gradient(135deg, rgba(6, 36, 58, 0.24), rgba(6, 36, 58, 0.78)),
    linear-gradient(135deg, #006bb6, #24c6b7);
}

.health-article-card.is-clinical .health-article-image {
  background:
    linear-gradient(135deg, rgba(6, 36, 58, 0.18), rgba(6, 36, 58, 0.72)),
    linear-gradient(135deg, #16a05d, #7bd3ff);
}

.health-article-card.is-financial .health-article-image {
  background:
    linear-gradient(135deg, rgba(6, 36, 58, 0.22), rgba(6, 36, 58, 0.76)),
    linear-gradient(135deg, #7b5700, #ffc928);
}

.health-article-image span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #143d57;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 2;
}

.health-article-body {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
}

.health-article-body span {
  color: #66747d;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.health-article-body strong {
  color: #143d57;
  line-height: 1.2;
}

.health-article-body p {
  color: #536677;
  font-family: var(--font-subtitle);
  font-size: 12px;
  line-height: 1.35;
}

.health-action-card,
.health-feed-card,
.urgent-item,
.roadmap-step,
.achievement-card,
.advisor-message-card,
.health-empty {
  border: 1px solid #d5dde2;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.health-action-card strong,
.health-feed-card strong,
.urgent-item strong,
.achievement-card strong,
.advisor-message-card strong,
.health-empty strong {
  display: block;
  color: #143d57;
  line-height: 1.25;
}

.health-action-card p,
.health-feed-card p,
.urgent-item p,
.roadmap-step p,
.achievement-card p,
.advisor-message-card p {
  margin-top: 7px;
  color: #536677;
  font-family: var(--font-subtitle);
  font-size: 13px;
  line-height: 1.45;
}

.achievement-card {
  background: linear-gradient(135deg, #ffffff, #f1fbf9);
  border-color: rgba(72, 214, 200, 0.38);
}

.achievement-card span,
.advisor-message-card span {
  display: block;
  color: #66747d;
  font-family: var(--font-subtitle);
  font-size: 12px;
  margin-bottom: 5px;
}

.advisor-message-card {
  border-left: 4px solid #3f6f8d;
}

.health-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.health-review-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f5f8fa;
}

.health-review-status span {
  color: #66747d;
  font-family: var(--font-subtitle);
  font-size: 12px;
}

.health-review-status strong {
  color: #143d57;
  font-family: var(--font-subtitle);
  font-size: 12px;
}

.health-action-card.is-complete,
.health-feed-card.is-reviewed,
.health-article-card.is-reviewed {
  background: #f1fbf9;
  border-color: rgba(72, 214, 200, 0.42);
}

.health-actions-modal[hidden] {
  display: none;
}

.health-actions-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 36, 58, 0.5);
}

.health-actions-dialog {
  width: min(860px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(6, 36, 58, 0.32);
  padding: 18px;
}

.health-actions-intro {
  margin: 8px 0 16px;
  color: #536677;
  font-family: var(--font-subtitle);
  font-size: 13px;
}

.roadmap-step {
  border-left: 4px solid #d5dde2;
}

.roadmap-step.is-active {
  border-left-color: #48d6c8;
  background: #f7fcfb;
}

.roadmap-step-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.roadmap-step-head b {
  color: #0b5f63;
  font-family: var(--font-subtitle);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.roadmap-step strong {
  display: block;
  margin-top: 4px;
  color: #143d57;
}

.roadmap-impact {
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(232, 244, 250, 0.86);
}

.roadmap-impact span {
  color: #0b5f63;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.roadmap-impact em {
  display: block;
  margin-top: 3px;
  color: #425c6f;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-style: normal;
  line-height: 1.38;
}

.urgent-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.tag.critical,
.tag.high {
  color: #8b000e;
  background: #ffe9ec;
}

.tag.moderate {
  color: #7b5700;
  background: #fff3ce;
}

.health-empty span {
  display: block;
  margin-top: 4px;
  color: #66747d;
  font-family: var(--font-subtitle);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .executive-hero,
  .executive-score-row,
  .executive-grid,
  .executive-score-body,
  .resilience-summary {
    grid-template-columns: 1fr;
  }

  .executive-actions-panel,
  .executive-roadmap-panel {
    grid-column: auto;
  }

  .executive-health-stack {
    grid-template-columns: 1fr;
  }

  .health-spotlight-card {
    grid-template-columns: 1fr;
  }

  .health-spotlight-copy {
    align-content: start;
  }

  .practice-health-grid,
  .health-score-wrap {
    grid-template-columns: 1fr;
  }

  .practice-health-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .health-reward {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .executive-hero {
    padding: 18px;
  }

  .practice-health-hero {
    padding: 12px;
  }

  .health-roadmap-inline-header,
  .roadmap-inline-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .health-spotlight-media {
    padding: 18px;
  }

  .health-spotlight-media h2 {
    font-size: 24px;
  }

  .health-spotlight-copy {
    padding: 16px;
  }

  .executive-score-body,
  .resilience-summary {
    justify-items: start;
  }

  .executive-donut {
    width: 124px;
    height: 124px;
  }

  .executive-donut span {
    font-size: 34px;
  }

  .recommendation-impact {
    grid-template-columns: 1fr 1fr;
  }

  .health-article-carousel {
    grid-auto-columns: minmax(260px, 92%);
  }

  .health-actions-modal {
    padding: 10px;
  }

  .health-actions-dialog {
    max-height: 92vh;
  }
}

.sidebar {
  background: #ffffff;
  border-right-color: #d5dde2;
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand-block {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(20, 61, 87, 0.98), rgba(8, 34, 54, 0.98)),
    #143d57;
  border-color: rgba(96, 164, 197, 0.34);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(12, 37, 55, 0.16);
  color: #ffffff;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  justify-items: stretch;
  text-align: left;
  gap: 8px;
  min-height: 106px;
  padding: 12px 10px;
  overflow: hidden;
}

.brand-logo-panel {
  width: 104px;
  height: 70px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  align-self: center;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  justify-self: center;
}

.brand-product-block {
  min-width: 0;
  align-self: center;
  padding-left: 8px;
  padding-right: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

.brand-logo-panel img {
  filter: brightness(0) invert(1) opacity(0.94);
}

.brand-mark {
  background: #143d57;
}

.brand-name,
.tenant-name,
h1,
.metric-value,
.driver-score {
  color: #143d57;
}

.brand-name {
  color: #ffffff;
  font-size: 14px;
  line-height: 0.98;
  overflow-wrap: normal;
}

.brand-name span {
  display: block;
  white-space: nowrap;
}

.brand-name em {
  color: #48d6c8;
  font-style: normal;
}

.brand-name sup {
  margin-left: 1px;
  font-size: 0.45em;
  line-height: 0;
}

.brand-byline {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-subtitle);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

.brand-subtitle {
  display: none;
  max-width: 108px;
  margin-top: 9px;
  color: rgba(72, 214, 200, 0.9);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.12;
  text-transform: uppercase;
}

.tenant-label {
  color: #6e7d86;
}

.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-bottom: 22px;
}

.tenant-label,
.tenant-name {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tenant-name {
  line-height: 1.25;
  white-space: normal;
}

.nav-item {
  color: #223f52;
  position: relative;
}

.nav-alert-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0 7px;
  background: #d9152f;
  color: #ffffff;
  font-family: var(--font-subtitle);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px #ffffff;
}

.nav-item:hover {
  background: #eef5f7;
  color: #143d57;
}

.nav-item.is-active {
  background: #e6f0f4;
  color: #143d57;
  border-left-color: #3f6f8d;
}

.ico {
  color: #3f6f8d;
  background: #e6f0f4;
}

.topbar,
.panel,
.metric-card,
.question-list-panel,
.question-detail,
.section-rail,
.report-page {
  border-color: #d5dde2;
  box-shadow: var(--shadow);
}

.panel-header {
  background: #f8fafb;
  border-bottom-color: #d5dde2;
}

.primary-button,
.segment.is-selected {
  background: #143d57;
  border-color: #143d57;
}

.primary-button:hover {
  background: #0f334a;
  border-color: #0f334a;
}

.primary-button.compact {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.secondary-button,
.icon-button,
.small-button,
.source-link,
.source-mini a {
  color: #143d57;
}

.pill,
.maturity-status {
  background: #e6f0f4;
  color: #143d57;
}

.metric-card {
  border-top-color: #3f6f8d;
}

.domain-row.is-critical .domain-bar span {
  background: #b4232a;
}

.domain-row.is-managed .domain-bar span,
.domain-bar span {
  background: #3f6f8d;
}

.domain-row.is-strong .domain-bar span {
  background: #2f6f68;
}

.domain-row.is-exposed .domain-bar span {
  background: #c7793f;
}

.report-cover {
  border-bottom-color: #143d57;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .global-nav {
    grid-template-columns: 40px minmax(170px, 260px) minmax(220px, 1fr) auto;
  }

  .global-search-wrap,
  .global-search {
    display: block;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-map,
  .portal-sync {
    order: 2;
  }

  .portal-card {
    order: 1;
  }

  .sidebar {
    width: 88px;
    padding: 14px 10px;
    overflow: hidden;
    align-items: center;
  }

  .brand-block,
  .sidebar-footer {
    display: none;
  }

  .nav-list {
    width: 100%;
    justify-items: center;
  }

  .nav-item {
    width: 48px;
    min-width: 48px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border-left: 0;
    border-radius: 8px;
    overflow: hidden;
  }

  .nav-item span:not(.ico),
  .nav-item.is-locked::after {
    display: none !important;
  }

  .nav-item .nav-alert-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 18px;
    height: 18px;
    display: inline-grid !important;
    padding: 0 5px;
    font-size: 10px;
  }

  .nav-item.is-active {
    box-shadow: inset 3px 0 0 #3f6f8d;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .global-nav {
    grid-template-columns: 34px 1fr auto;
  }

  .global-search-wrap {
    display: none;
  }

  .account-menu {
    top: 62px;
    right: 8px;
    width: calc(100vw - 16px);
  }

  .account-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-add-user {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d8dde6;
    align-items: stretch;
  }

  .brand-block,
  .sidebar-footer {
    display: none;
  }

  .nav-list {
    display: flex;
    width: 100%;
    overflow-x: auto;
    justify-items: initial;
  }

  .nav-item {
    flex: 0 0 48px;
  }

  .customer-hero,
  .mobile-intake-panel,
  .health-access-body,
  .health-mobile-access,
  .portal-hero,
  .portal-layout,
  .watch-grid {
    grid-template-columns: 1fr;
  }

  .portal-progress-card {
    width: 100%;
  }

  .locked-feature-grid,
  .customer-registration,
  .customer-links,
  .portal-maturity,
  .portal-evidence-confidence,
  .portal-upload-grid,
  .portal-actions {
    grid-template-columns: 1fr;
  }

  .portal-actions .primary-button {
    justify-self: stretch;
  }

  .watch-alert {
    grid-template-columns: 1fr;
  }

  .mobile-link-row {
    grid-template-columns: 1fr;
  }

  .qr-svg {
    width: 148px;
    height: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-video-bg {
    display: none;
  }
}

/* Login gate overrides: keep the unauthenticated screen insulated from later dashboard theme rules. */
body.is-unauthenticated {
  color: var(--ink);
  background: var(--canvas);
}

body.is-unauthenticated .auth-gate {
  display: block;
}

body.is-unauthenticated .auth-brand strong {
  color: #ffffff;
}

body.is-unauthenticated .auth-brand span {
  color: rgba(255, 255, 255, 0.78);
}

body.is-unauthenticated .auth-card {
  color: var(--ink);
  background: #ffffff;
}

body.is-unauthenticated .auth-copy {
  color: #ffffff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 14px 0 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

body.is-unauthenticated .auth-copy .portal-kicker {
  color: #d8edf8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

body.is-unauthenticated .auth-copy h1 {
  color: #ffffff;
  display: block;
  min-height: 0;
  max-width: 760px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.58);
}

body.is-unauthenticated .auth-copy p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

body.is-unauthenticated .auth-steps div {
  color: #ffffff;
  background: rgba(16, 39, 54, 0.44);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(7px);
}

body.is-unauthenticated .auth-steps strong {
  color: #102736;
  background: rgba(216, 237, 248, 0.94);
  text-shadow: none;
}

body.is-unauthenticated .auth-steps span {
  color: #ffffff;
}

body.is-unauthenticated .auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.is-unauthenticated .auth-tabs button {
  color: #143d57;
  background: #ffffff;
  border-color: #d5dde2;
}

body.is-unauthenticated .auth-tabs button.is-active {
  color: #ffffff;
  background: #143d57;
  border-color: #143d57;
}

body.is-unauthenticated .auth-form label {
  color: #143d57;
}

body.is-unauthenticated .auth-form input {
  color: #17212b;
  background: #fbfdff;
}

body.is-unauthenticated .auth-form .primary-button {
  color: #ffffff;
  background: #143d57;
}

/* Ally Health brand typography */
body,
.auth-copy h1,
.auth-brand strong,
.global-title strong,
.brand-name,
.topbar h1,
.panel h2,
.panel h3,
.customer-hero h2,
.mobile-intake-copy h2,
.portal-hero h2,
.metric-value {
  font-family: var(--font-primary);
}

.auth-brand span,
.brand-subtitle,
.tenant-label,
.topbar p,
.global-title span,
.metric-label,
.metric-note,
.portal-kicker,
.account-card-head span,
.global-search-result em,
.search-type,
.backend-status,
.pill,
.mini-count,
.tag,
.tenant-name {
  font-family: var(--font-subtitle);
  font-size: 13px;
  letter-spacing: 0;
}

button,
input,
select,
textarea,
.nav-item,
.small-button,
.secondary-button,
.primary-button {
  font-family: var(--font-subtitle);
}

/* Compact landing login card */
body.is-unauthenticated .auth-panel {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 360px);
  gap: 34px;
  align-items: start;
}

body.is-unauthenticated .auth-card {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(8, 25, 38, 0.2);
  backdrop-filter: blur(10px);
}

body.is-unauthenticated .auth-tabs {
  gap: 6px;
  margin-bottom: 14px;
}

body.is-unauthenticated .auth-tabs button {
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

body.is-unauthenticated .auth-form {
  gap: 11px;
}

body.is-unauthenticated .auth-form label {
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

body.is-unauthenticated .auth-form input {
  min-height: 39px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
}

body.is-unauthenticated .auth-form .primary-button {
  min-height: 39px;
  border-radius: 6px;
  margin-top: 2px;
  font-size: 13px;
}

body.is-unauthenticated .auth-status {
  min-height: 16px;
  margin-top: 10px;
  font-size: 12px;
}

body.is-unauthenticated .auth-link-button {
  width: fit-content;
  min-height: auto;
  border: 0;
  background: transparent;
  color: #143d57;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.is-unauthenticated .auth-link-button:hover,
body.is-unauthenticated .auth-link-button:focus {
  color: #315b8a;
}

body.is-unauthenticated .auth-help {
  margin: 0;
  color: #536579;
  font-family: var(--font-subtitle);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  body.is-unauthenticated .auth-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.is-unauthenticated .auth-card {
    max-width: none;
    justify-self: stretch;
  }
}

/* Integrated mockup landing page */
body.is-unauthenticated .auth-gate {
  min-height: 100vh;
  padding: 26px clamp(24px, 6vw, 82px) 34px;
  background: #061d31;
}

body.is-unauthenticated .auth-video-overlay {
  background:
    linear-gradient(90deg, rgba(5, 25, 43, 0.96) 0%, rgba(5, 25, 43, 0.82) 34%, rgba(5, 25, 43, 0.48) 62%, rgba(5, 25, 43, 0.86) 100%),
    linear-gradient(180deg, rgba(5, 25, 43, 0.18) 0%, rgba(5, 25, 43, 0.78) 100%);
}

body.is-unauthenticated .auth-version-badge {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(111, 214, 204, 0.36);
  border-radius: 8px;
  background: rgba(111, 214, 204, 0.72);
  color: #063447;
  padding: 0 14px;
  font-family: var(--font-subtitle);
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

body.is-unauthenticated .auth-version-badge strong,
body.is-unauthenticated .auth-version-badge span {
  font-family: var(--font-subtitle);
  font-size: 12px;
  line-height: 1;
}

body.is-unauthenticated .auth-version-badge span::before {
  content: "- ";
  opacity: 0.7;
}

body.is-unauthenticated .auth-brand {
  max-width: 1180px;
  margin: 28px auto 34px;
  align-items: center;
  gap: 28px;
}

body.is-unauthenticated .auth-ally-lockup img {
  width: clamp(190px, 20vw, 260px);
  filter: brightness(0) invert(1) opacity(0.96);
}

body.is-unauthenticated .auth-brand-divider {
  width: 1px;
  align-self: stretch;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.5);
}

body.is-unauthenticated .auth-product-lockup strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: clamp(31px, 3vw, 45px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
}

body.is-unauthenticated .auth-product-lockup em {
  color: #18d5c7;
  font-style: normal;
}

body.is-unauthenticated .auth-product-lockup sup {
  color: #18d5c7;
  font-family: var(--font-subtitle);
  font-size: 11px;
  margin-left: 2px;
}

body.is-unauthenticated .auth-product-lockup span,
body.is-unauthenticated .auth-product-lockup small {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-subtitle);
  letter-spacing: 0;
}

body.is-unauthenticated .auth-product-lockup span {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 600;
}

body.is-unauthenticated .auth-product-lockup small {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

body.is-unauthenticated .auth-panel {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 355px);
  gap: clamp(34px, 7vw, 98px);
  align-items: center;
}

body.is-unauthenticated .auth-copy {
  padding: 0;
  max-width: 670px;
}

body.is-unauthenticated .auth-copy .portal-kicker {
  color: #19d4c6;
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.is-unauthenticated .auth-copy h1 {
  max-width: 610px;
  margin: 18px 0 18px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: clamp(39px, 4.7vw, 62px);
  line-height: 0.96;
  font-weight: 700;
}

body.is-unauthenticated .auth-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-subtitle);
  font-size: 15px;
  line-height: 1.55;
}

body.is-unauthenticated .auth-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
}

body.is-unauthenticated .auth-steps div {
  min-height: 124px;
  padding: 0 26px 0 0;
  border: 0;
  border-right: 1px solid rgba(25, 212, 198, 0.42);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

body.is-unauthenticated .auth-steps div + div {
  padding-left: 26px;
}

body.is-unauthenticated .auth-steps div:last-child {
  border-right: 0;
}

body.is-unauthenticated .auth-steps strong {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border: 1px solid rgba(25, 212, 198, 0.42);
  background: rgba(25, 212, 198, 0.14);
  color: #dffbf8;
  font-family: var(--font-subtitle);
  font-size: 14px;
}

body.is-unauthenticated .auth-steps span {
  color: #ffffff;
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

body.is-unauthenticated .auth-steps small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-subtitle);
  font-size: 11.5px;
  line-height: 1.35;
  text-shadow: none;
}

body.is-unauthenticated .auth-card {
  max-width: 355px;
  justify-self: end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

body.is-unauthenticated .auth-tabs {
  gap: 10px;
  margin-bottom: 22px;
}

body.is-unauthenticated .auth-tabs button {
  min-height: 43px;
  border: 0;
  border-radius: 6px;
  background: #f8fbfd;
  color: #0d2d49;
  font-size: 13px;
  font-weight: 800;
}

body.is-unauthenticated .auth-tabs button.is-active {
  background: linear-gradient(180deg, #062747, #021b35);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(5, 25, 43, 0.22);
}

body.is-unauthenticated .auth-form {
  gap: 14px;
}

body.is-unauthenticated .auth-form label {
  color: #0d2d49;
  font-size: 13px;
  font-weight: 800;
}

body.is-unauthenticated .auth-form input {
  min-height: 43px;
  border: 0;
  border-radius: 5px;
  background: #fff7ad;
  color: #051b31;
  font-size: 13px;
  font-weight: 700;
}

body.is-unauthenticated .auth-form .primary-button {
  min-height: 46px;
  margin-top: 3px;
  border-radius: 6px;
  background: linear-gradient(180deg, #062747, #021b35);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(5, 25, 43, 0.25);
}

body.is-unauthenticated .auth-link-button {
  color: #0d2d49;
  font-size: 12px;
  font-weight: 800;
}

body.is-unauthenticated .auth-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: #24445c;
  font-family: var(--font-subtitle);
  font-size: 11px;
  font-weight: 700;
}

body.is-unauthenticated .auth-secure-note span {
  color: #18a99c;
  font-size: 13px;
}

@media (max-width: 900px) {
  body.is-unauthenticated .auth-gate {
    padding: 20px;
  }

  body.is-unauthenticated .auth-brand {
    gap: 16px;
    margin-top: 18px;
  }

  body.is-unauthenticated .auth-brand-divider {
    display: none;
  }

  body.is-unauthenticated .auth-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.is-unauthenticated .auth-card {
    max-width: none;
    justify-self: stretch;
  }

  body.is-unauthenticated .auth-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.is-unauthenticated .auth-steps div,
  body.is-unauthenticated .auth-steps div + div {
    min-height: 0;
    padding: 0;
    border-right: 0;
  }
}

/* Full-cover mockup overlay over doctor video */
body.is-unauthenticated .auth-gate {
  height: 100vh;
  min-height: 720px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px clamp(30px, 6.5vw, 86px) 28px;
  overflow: hidden;
  isolation: isolate;
}

body.is-unauthenticated .auth-video-bg {
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.015);
}

body.is-unauthenticated .auth-video-overlay {
  background:
    radial-gradient(circle at 57% 42%, rgba(12, 35, 55, 0.18) 0%, rgba(12, 35, 55, 0.42) 32%, rgba(3, 18, 34, 0.88) 78%),
    linear-gradient(90deg, rgba(3, 18, 34, 0.98) 0%, rgba(3, 18, 34, 0.88) 36%, rgba(3, 18, 34, 0.42) 58%, rgba(3, 18, 34, 0.82) 100%),
    linear-gradient(180deg, rgba(3, 18, 34, 0.18) 0%, rgba(3, 18, 34, 0.78) 100%);
}

body.is-unauthenticated .auth-version-badge {
  position: absolute;
  top: 14px;
  left: clamp(22px, 5vw, 74px);
  min-height: 28px;
  padding: 0 14px;
  z-index: 3;
}

body.is-unauthenticated .auth-brand {
  width: 100%;
  max-width: 1180px;
  margin: 44px auto 0;
  z-index: 2;
}

body.is-unauthenticated .auth-ally-lockup img {
  width: clamp(180px, 17vw, 245px);
}

body.is-unauthenticated .auth-brand-divider {
  min-height: 82px;
}

body.is-unauthenticated .auth-product-lockup strong {
  font-size: clamp(30px, 3.1vw, 44px);
}

body.is-unauthenticated .auth-panel {
  width: 100%;
  max-width: 1180px;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(310px, 355px);
  column-gap: clamp(48px, 8vw, 118px);
  align-items: start;
  z-index: 2;
}

body.is-unauthenticated .auth-copy {
  align-self: stretch;
  display: grid;
  align-content: start;
  max-width: 660px;
  padding: clamp(8px, 2.5vh, 22px) 0 18px;
}

body.is-unauthenticated .auth-copy .portal-kicker {
  margin-bottom: 14px;
}

body.is-unauthenticated .auth-copy h1 {
  max-width: 565px;
  margin: 0 0 20px;
  font-size: clamp(39px, 4.55vw, 60px);
  line-height: 0.98;
}

body.is-unauthenticated .auth-copy p {
  max-width: 600px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

body.is-unauthenticated .auth-steps {
  align-self: start;
  margin-top: clamp(18px, 3.5vh, 34px);
}

body.is-unauthenticated .auth-steps div {
  min-height: 118px;
}

body.is-unauthenticated .auth-card {
  align-self: start;
  margin-top: clamp(44px, 8vh, 82px);
}

body.is-unauthenticated .auth-secure-note {
  margin-bottom: 2px;
}

@media (min-width: 1180px) and (max-height: 820px) {
  body.is-unauthenticated .auth-brand {
    margin-top: 20px;
  }

  body.is-unauthenticated .auth-copy h1 {
    font-size: 46px;
    margin-bottom: 14px;
  }

  body.is-unauthenticated .auth-copy p {
    font-size: 13px;
    line-height: 1.45;
  }

  body.is-unauthenticated .auth-quick-actions {
    margin-top: 16px;
  }

  body.is-unauthenticated .auth-steps {
    margin-top: 18px;
  }

  body.is-unauthenticated .auth-steps div {
    min-height: 94px;
  }

  body.is-unauthenticated .auth-step-icon-row {
    margin-bottom: 8px;
  }

  body.is-unauthenticated .auth-steps small {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.25;
  }
}

@media (max-width: 900px) {
  body.is-unauthenticated .auth-gate {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    padding: 18px 20px 28px;
  }

  body.is-unauthenticated .auth-version-badge {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 16px;
  }

  body.is-unauthenticated .auth-brand {
    margin: 0 auto 26px;
    flex-wrap: wrap;
  }

  body.is-unauthenticated .auth-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.is-unauthenticated .auth-copy {
    align-content: start;
    padding-bottom: 0;
  }

  body.is-unauthenticated .auth-steps div {
    min-height: 0;
  }

  body.is-unauthenticated .auth-card {
    margin-top: 0;
  }
}

/* Landing feature icons inspired by mockup */
body.is-unauthenticated .auth-step-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

body.is-unauthenticated .auth-step-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #20d4c8;
  filter: drop-shadow(0 0 10px rgba(32, 212, 200, 0.28));
}

body.is-unauthenticated .auth-step-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-unauthenticated .auth-step-icon svg rect,
body.is-unauthenticated .auth-step-icon svg circle {
  fill: rgba(32, 212, 200, 0.14);
}

body.is-unauthenticated .auth-step-icon-row strong {
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid rgba(32, 212, 200, 0.26);
  background: rgba(32, 212, 200, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(32, 212, 200, 0.12);
}

body.is-unauthenticated .auth-steps > div > span {
  display: block;
}

body.is-unauthenticated .auth-quick-actions {
  margin-top: 22px;
}

/* Exact landing icon polish */
body.is-unauthenticated .auth-step-icon .icon-main {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-unauthenticated .auth-step-icon .icon-glow {
  fill: rgba(32, 212, 200, 0.08);
  stroke: rgba(32, 212, 200, 0.38);
  stroke-width: 1.6;
}

body.is-unauthenticated .auth-step-icon .icon-fill,
body.is-unauthenticated .auth-step-icon .bar-fill {
  fill: rgba(32, 212, 200, 0.28);
  stroke: currentColor;
  stroke-width: 1.9;
}

body.is-unauthenticated .auth-step-icon.icon-brain {
  width: 39px;
  height: 39px;
}

body.is-unauthenticated .auth-step-icon.icon-bars {
  width: 37px;
  height: 37px;
}

/* Physician Practice Risk Index */
.teaser-console {
  display: grid;
  gap: 16px;
}

.teaser-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.teaser-hero h2,
.teaser-lead-form h3,
.teaser-result-hero h3 {
  margin: 0 0 6px;
  color: #143d57;
}

.teaser-hero p,
.teaser-result-hero p,
.teaser-empty span,
.teaser-progress-strip span,
.teaser-insights span {
  color: #5f6f7a;
  line-height: 1.45;
}

.teaser-panel {
  padding: 0;
  overflow: hidden;
}

.teaser-status {
  min-height: 20px;
  margin: 14px;
  color: #143d57;
  font-weight: 700;
}

.teaser-status.is-error {
  color: #b00020;
}

.teaser-empty {
  margin: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px dashed #9db7c7;
  border-radius: 8px;
  padding: 18px;
  background: #f8fbfd;
}

.teaser-empty strong,
.teaser-empty span {
  display: block;
}

.teaser-question-form,
.teaser-lead-layout,
.teaser-results {
  display: grid;
  gap: 16px;
  margin: 14px;
}

.teaser-progress-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.teaser-progress-strip div,
.teaser-insights div {
  border: 1px solid #d5dde2;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.teaser-progress-strip strong {
  display: block;
  color: #143d57;
  font-size: 22px;
}

.teaser-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.teaser-question-card {
  min-width: 0;
  margin: 0;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.teaser-question-card legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #143d57;
  font-weight: 800;
}

.teaser-question-card legend span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e3f6fb;
  color: #143d57;
  font-family: var(--font-subtitle);
  font-size: 12px;
}

.teaser-question-card p {
  margin: 0 0 12px;
  color: #1b2a33;
  line-height: 1.45;
}

.teaser-score-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  gap: 8px;
}

.teaser-score-row label {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid #cbd6dd;
  border-radius: 8px;
  padding: 8px;
  color: #143d57;
  background: #ffffff;
  cursor: pointer;
}

.teaser-score-row label.is-selected {
  border-color: #143d57;
  background: #e5f4f9;
  box-shadow: inset 4px 0 0 #143d57;
}

.teaser-score-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.teaser-score-row b {
  font-family: var(--font-subtitle);
  font-size: 20px;
}

.teaser-score-row span {
  color: #5f6f7a;
  font-size: 11px;
  line-height: 1.2;
}

.teaser-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.teaser-lead-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.teaser-score-summary,
.teaser-result-hero {
  border-radius: 8px;
  padding: 18px;
  background: #143d57;
  color: #ffffff;
}

.teaser-score-summary span,
.teaser-score-summary em {
  display: block;
}

.teaser-score-summary strong {
  display: block;
  margin: 10px 0;
  font-family: var(--font-subtitle);
  font-size: 66px;
  line-height: 1;
}

.teaser-score-summary p {
  color: rgba(255, 255, 255, 0.8);
}

.teaser-lead-form {
  display: grid;
  gap: 12px;
}

.teaser-lead-form label {
  display: grid;
  gap: 6px;
  color: #143d57;
  font-weight: 800;
}

.teaser-lead-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd6dd;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.teaser-unlock-head h2 {
  max-width: 760px;
}

.teaser-unlock-head p {
  max-width: 720px;
}

.teaser-unlock-layout {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
}

.teaser-score-summary.teaser-unlock-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 8%, rgba(72, 214, 200, 0.34), transparent 26%),
    linear-gradient(145deg, #07304b 0%, #143d57 58%, #295f72 100%);
  box-shadow: 0 24px 54px rgba(6, 36, 58, 0.18);
}

.teaser-score-summary.teaser-unlock-panel::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -22%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.teaser-score-summary.teaser-unlock-panel > * {
  position: relative;
  z-index: 1;
}

.unlock-burst {
  position: absolute;
  inset: 18px 18px auto auto;
  width: 90px;
  height: 90px;
  opacity: 0.9;
}

.unlock-burst span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: #48d6c8;
}

.unlock-burst span:nth-child(1) {
  width: 52px;
  height: 8px;
  right: 10px;
  top: 20px;
  transform: rotate(-24deg);
}

.unlock-burst span:nth-child(2) {
  width: 9px;
  height: 42px;
  right: 40px;
  top: 6px;
  transform: rotate(18deg);
}

.unlock-burst span:nth-child(3) {
  width: 16px;
  height: 16px;
  right: 5px;
  top: 4px;
  background: #ffffff;
}

.teaser-score-summary.teaser-unlock-panel > span {
  color: #48d6c8;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.teaser-score-summary.teaser-unlock-panel strong {
  margin: 8px 0 2px;
  color: #ffffff;
  font-size: clamp(58px, 7vw, 92px);
}

.teaser-score-summary.teaser-unlock-panel em {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.1;
}

.teaser-score-summary.teaser-unlock-panel p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.38;
}

.unlock-meter {
  height: 10px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.unlock-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #48d6c8, #ffffff);
}

.unlock-caption {
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-subtitle);
  font-size: 12px;
  line-height: 1.35;
}

.unlock-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.unlock-features div {
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.unlock-features b,
.unlock-features span {
  display: block;
}

.unlock-features b {
  color: #ffffff;
  font-family: var(--font-subtitle);
  font-size: 12px;
  line-height: 1.25;
}

.unlock-features span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.3;
}

.teaser-unlock-form {
  align-content: start;
  gap: 10px;
}

.teaser-unlock-form > div:first-child {
  padding: 14px;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  background: #f7fbfc;
}

.teaser-unlock-form h3 {
  margin-bottom: 6px;
  color: #143d57;
  font-size: 24px;
  line-height: 1.1;
}

.teaser-unlock-form p {
  color: #5a6b78;
  font-family: var(--font-subtitle);
  font-size: 13px;
  line-height: 1.45;
}

.teaser-unlock-form label {
  gap: 5px;
}

.teaser-unlock-form input {
  min-height: 40px;
  background: #ffffff;
}

.unlock-next-step {
  padding: 12px 14px;
  border: 1px solid rgba(72, 214, 200, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #f1fbf9, #ffffff);
}

.unlock-next-step strong,
.unlock-next-step span {
  display: block;
}

.unlock-next-step strong {
  color: #143d57;
}

.unlock-next-step span {
  margin-top: 4px;
  color: #566875;
  font-family: var(--font-subtitle);
  font-size: 12px;
  line-height: 1.4;
}

.unlock-submit {
  box-shadow: 0 16px 32px rgba(20, 61, 87, 0.2);
}

.teaser-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
}

.teaser-result-hero h3,
.teaser-result-hero p,
.teaser-result-hero .portal-kicker {
  color: #ffffff;
}

.teaser-score-orb {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.teaser-score-orb strong {
  font-family: var(--font-subtitle);
  font-size: 50px;
  line-height: 1;
}

.teaser-score-orb span {
  font-size: 12px;
}

.teaser-score-summary.low,
.teaser-result-hero.low {
  background: #12784d;
}

.teaser-score-summary.moderate,
.teaser-result-hero.moderate {
  background: #8b6a00;
}

.teaser-score-summary.elevated,
.teaser-result-hero.elevated {
  background: #b85c00;
}

.teaser-score-summary.high,
.teaser-result-hero.high {
  background: #b53520;
}

.teaser-score-summary.significant,
.teaser-result-hero.significant {
  background: #8f1227;
}

.teaser-domain-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.teaser-domain-results div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  padding: 12px;
}

.teaser-domain-results strong {
  color: #143d57;
}

.teaser-domain-results span {
  color: #143d57;
  font-family: var(--font-subtitle);
  font-size: 20px;
  font-weight: 800;
}

.teaser-domain-results i {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e7eb;
}

.teaser-domain-results b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #20bfc3;
}

.teaser-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.teaser-insights strong,
.teaser-insights span {
  display: block;
}

.practice-health-impact {
  padding: 14px 16px;
  border: 1px solid rgba(72, 214, 200, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(72, 214, 200, 0.14), rgba(232, 244, 250, 0.86));
}

.practice-health-impact strong {
  display: block;
  margin-bottom: 4px;
  color: #08324f;
  font-family: var(--font-subtitle);
  font-weight: 850;
}

.practice-health-impact span {
  display: block;
  color: #4f6574;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .teaser-hero,
  .teaser-empty,
  .teaser-lead-layout,
  .teaser-result-hero,
  .teaser-domain-results,
  .teaser-insights {
    grid-template-columns: 1fr;
  }

  .teaser-question-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .teaser-progress-strip,
  .teaser-score-row {
    grid-template-columns: 1fr;
  }

  .teaser-score-row label {
    min-height: 54px;
  }

  .teaser-actions {
    justify-content: stretch;
  }

  .teaser-actions button {
    flex: 1 1 100%;
  }
}

/* Risk Index modal overlay */
.teaser-modal[hidden] {
  display: none;
}

body.has-teaser-modal {
  overflow: hidden;
}

.teaser-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.teaser-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 20%, rgba(32, 212, 200, 0.18), transparent 36%),
    rgba(4, 20, 35, 0.78);
  backdrop-filter: blur(8px);
}

.teaser-modal-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(840px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.teaser-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: 12px 12px 0 0;
  border: 1px solid #cbd6dd;
  border-radius: 50%;
  background: #ffffff;
  color: #143d57;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.teaser-modal-head {
  padding: 28px 32px 8px;
}

.teaser-modal-head h2 {
  margin: 0 0 8px;
  color: #143d57;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.teaser-modal-head p {
  max-width: 680px;
  margin: 0;
  color: #5f6f7a;
  line-height: 1.5;
}

.teaser-modal-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 32px 0;
}

.teaser-modal-progress div,
.teaser-console-transfer div {
  border: 1px solid #d5dde2;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.teaser-modal-progress strong,
.teaser-modal-progress span,
.teaser-console-transfer strong,
.teaser-console-transfer span {
  display: block;
}

.teaser-modal-progress strong {
  color: #143d57;
  font-family: var(--font-subtitle);
  font-size: 22px;
}

.teaser-modal-progress span,
.teaser-console-transfer span {
  color: #5f6f7a;
}

.teaser-modal-question {
  display: grid;
  gap: 16px;
  padding: 16px 32px 32px;
}

.teaser-question-card-single {
  padding: 20px;
}

.teaser-question-card-single p {
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.24;
}

.teaser-modal-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.teaser-step-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.teaser-step-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #d8e2e8;
  cursor: pointer;
}

.teaser-step-dots button.is-answered {
  background: #20bfc3;
}

.teaser-step-dots button.is-current {
  outline: 3px solid rgba(20, 61, 87, 0.18);
  background: #143d57;
}

.teaser-console-transfer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 760px) {
  .teaser-modal {
    padding: 10px;
  }

  .teaser-modal-dialog {
    max-height: calc(100vh - 20px);
  }

  .teaser-modal-head,
  .teaser-modal-question {
    padding-left: 18px;
    padding-right: 18px;
  }

  .teaser-modal-progress,
  .teaser-modal-nav,
  .teaser-console-transfer {
    grid-template-columns: 1fr;
  }

  .teaser-modal-progress {
    margin-left: 18px;
    margin-right: 18px;
  }
}

/* Practice Readiness Score-style modal */
.teaser-modal {
  padding: 16px;
  background: rgba(9, 34, 53, 0.52);
  backdrop-filter: blur(16px);
}

.teaser-modal-backdrop {
  background: transparent;
  backdrop-filter: none;
}

.teaser-modal-dialog {
  width: min(1180px, calc(100vw - 28px));
  height: min(840px, calc(100dvh - 16px));
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(10, 43, 67, 0.2);
}

.teaser-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  float: none;
  margin: 0;
  border-color: #d8e1e6;
  box-shadow: 0 10px 22px rgba(10, 43, 67, 0.12);
}

.risk-index-card,
.risk-index-grid {
  height: 100%;
  min-height: 0;
}

.risk-index-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.42fr);
}

.risk-index-brand {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(rgba(18, 58, 84, 0.94), rgba(18, 58, 84, 0.94)),
    linear-gradient(135deg, #123a54, #0b2b43);
}

.risk-index-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 43, 67, 0.86), rgba(10, 43, 67, 0.72)),
    linear-gradient(90deg, rgba(10, 43, 67, 0.88), rgba(10, 43, 67, 0.52));
}

.risk-index-brand > :not(.risk-index-video) {
  position: relative;
  z-index: 2;
}

.risk-index-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(0.86) contrast(1.08);
}

.risk-index-brand-lockup {
  display: grid;
  grid-template-columns: minmax(96px, 0.62fr) 1px minmax(96px, 0.9fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.risk-index-ally-mark {
  min-width: 0;
}

.risk-index-ally-mark img {
  display: block;
  width: min(124px, 100%);
  height: auto;
  filter: brightness(0) invert(1) opacity(0.96);
}

.risk-index-brand-divider {
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.62), transparent);
}

.risk-index-product-mark {
  min-width: 0;
  color: #ffffff;
}

.risk-index-product-mark strong,
.risk-index-product-mark span,
.risk-index-product-mark small {
  display: block;
}

.risk-index-product-mark strong {
  color: #ffffff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.12rem, 1.65vw, 1.42rem);
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.risk-index-product-mark em {
  color: #48d6c8;
  font-style: normal;
}

.risk-index-product-mark sup {
  margin-left: 2px;
  color: #48d6c8;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.42em;
}

.risk-index-product-mark span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
}

.risk-index-product-mark small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.risk-index-brand .portal-kicker {
  color: #ffffff;
}

.risk-index-brand h2,
.risk-index-flow h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.risk-index-brand h2 {
  color: #ffffff;
}

.risk-index-brand p:not(.portal-kicker) {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.risk-index-visual {
  position: relative;
  min-height: 210px;
  margin-top: auto;
  padding-top: 20px;
}

.risk-index-visual::before {
  content: "";
  position: absolute;
  inset: 28px 8px 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 43, 67, 0.18), rgba(10, 43, 67, 0.34)),
    linear-gradient(90deg, transparent 31px, rgba(255, 255, 255, 0.08) 32px),
    linear-gradient(transparent 31px, rgba(255, 255, 255, 0.08) 32px);
  background-size: auto, 32px 32px, 32px 32px;
}

.risk-index-pulse,
.risk-index-lines,
.risk-index-gauge {
  position: relative;
  z-index: 2;
}

.risk-index-pulse {
  width: min(260px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.risk-index-pulse > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 26%, transparent 27%),
    conic-gradient(#6f9fbe, #ffffff, #6f9fbe);
}

.risk-index-pulse strong,
.risk-index-pulse small {
  display: block;
}

.risk-index-pulse small {
  color: rgba(255, 255, 255, 0.72);
}

.risk-index-lines {
  width: 72%;
  margin: 18px 0 0 auto;
  display: grid;
  gap: 9px;
}

.risk-index-lines span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.risk-index-lines span:nth-child(1) {
  width: 76%;
}

.risk-index-lines span:nth-child(2) {
  width: 100%;
}

.risk-index-lines span:nth-child(3) {
  width: 58%;
}

.risk-index-gauge {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 18px 18px 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #123a54 0 62%, transparent 63%),
    conic-gradient(#6f9fbe calc(var(--completion) * 1%), rgba(255, 255, 255, 0.22) 0);
}

.risk-index-gauge span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #123a54;
  color: #ffffff;
  text-align: center;
}

.risk-index-gauge strong {
  font-size: 1.16rem;
  line-height: 1;
}

.risk-index-gauge small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.risk-index-flow {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 22px 28px 16px;
}

.risk-index-progress {
  flex: 0 0 auto;
  margin: 0 58px 14px 0;
}

.risk-index-progress span {
  display: block;
  margin-bottom: 6px;
  color: #687782;
  font-size: 0.88rem;
  font-weight: 700;
}

.risk-index-progress div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf1;
}

.risk-index-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #153f5b, #6f9fbe);
  transition: width 220ms ease;
}

.risk-index-flow .teaser-modal-head {
  padding: 0;
  overflow: visible;
}

.risk-index-flow .teaser-modal-head h2 {
  max-width: 720px;
  line-height: 1.16;
  padding-bottom: 6px;
  overflow: visible;
}

.risk-index-flow .teaser-modal-head p {
  max-width: 620px;
  color: #687782;
  line-height: 1.55;
}

.risk-index-flow .question-meta {
  margin-bottom: 14px;
}

.risk-index-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
  margin: 20px 0 24px;
  list-style: none;
}

.risk-index-trust li {
  min-height: 64px;
  display: flex;
  align-items: end;
  padding: 12px;
  border: 1px solid #d8e1e6;
  border-radius: 12px;
  background: #f4f7f8;
  color: #123a54;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.risk-index-start-row {
  justify-content: flex-start;
}

.risk-index-flow .teaser-modal-question {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 10px 18px 0;
  scrollbar-gutter: stable;
}

.risk-index-flow--question {
  overflow: hidden;
}

.risk-index-flow--question .teaser-modal-head {
  flex: 0 0 auto;
}

.risk-index-flow--question .teaser-modal-head h2 {
  max-width: 880px;
  font-size: clamp(1.65rem, 1.9vw, 2.08rem);
  line-height: 1.05;
}

.risk-index-flow .teaser-modal-question h2,
.risk-index-flow .teaser-results h2,
.risk-index-flow .teaser-lead-form h3 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.08;
}

.risk-index-flow .teaser-question-card-single {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border: 0;
  padding: 0 6px 4px 0;
  scrollbar-gutter: stable;
}

.risk-index-flow .teaser-question-card-single legend,
.risk-index-flow .teaser-question-card-single p {
  display: none;
}

.risk-index-flow .teaser-score-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 10px 0;
}

.risk-index-flow .teaser-score-row label {
  min-height: 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 7px 12px;
  border: 1px solid #d8e1e6;
  border-radius: 14px;
  background: #ffffff;
  color: #0b2b43;
  text-align: left;
  box-shadow: none;
}

.risk-index-flow .teaser-score-row label::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #aab8c2;
  border-radius: 50%;
  background: #ffffff;
}

.risk-index-flow .teaser-score-row label.is-selected {
  border-color: #153f5b;
  background: #edf4f8;
  box-shadow: 0 10px 24px rgba(18, 58, 84, 0.12);
}

.risk-index-flow .teaser-score-row label.is-selected::before {
  border-color: #153f5b;
  box-shadow: inset 0 0 0 5px #ffffff;
  background: #153f5b;
}

.risk-index-flow .teaser-score-row b {
  display: none;
}

.risk-index-flow .teaser-score-row span {
  color: #0b2b43;
  font-size: 14px;
  line-height: 1.25;
}

.risk-index-flow .teaser-modal-nav {
  position: static;
  flex: 0 0 auto;
  z-index: 6;
  margin-top: 0.1rem;
  padding-top: 0.55rem;
  padding-bottom: 0.25rem;
  border-top: 1px solid #e3eaee;
  background: #ffffff;
}

.risk-index-flow .teaser-lead-layout,
.risk-index-flow .teaser-results {
  max-height: calc(100dvh - 5rem);
  margin: 0;
  overflow-y: auto;
  padding-right: 0.5rem;
  padding-bottom: 1.5rem;
  scrollbar-gutter: stable;
}

.risk-index-flow .teaser-lead-layout {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
}

.risk-index-flow .teaser-score-summary:not(.teaser-unlock-panel) strong {
  font-size: 48px;
}

.risk-index-flow .teaser-unlock-panel strong {
  font-size: clamp(58px, 7vw, 92px);
}

.risk-index-flow .teaser-result-hero {
  grid-template-columns: minmax(0, 1fr) 136px;
}

.risk-index-flow .teaser-score-orb {
  width: 128px;
  height: 128px;
}

.risk-index-flow .teaser-lead-layout.teaser-unlock-layout {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  padding: 0;
}

.risk-index-flow .teaser-unlock-panel,
.risk-index-flow .teaser-unlock-form {
  min-height: 0;
}

.risk-index-flow .teaser-unlock-panel {
  align-self: stretch;
  overflow-y: auto;
  padding: 16px;
  scrollbar-gutter: stable;
}

.risk-index-flow .teaser-unlock-panel strong {
  margin: 4px 0 0;
  font-size: clamp(44px, 4.7vw, 64px);
}

.risk-index-flow .teaser-unlock-panel em {
  font-size: clamp(1.18rem, 1.7vw, 1.5rem);
}

.risk-index-flow .teaser-unlock-panel p,
.risk-index-flow .unlock-caption {
  font-size: 11.5px;
  line-height: 1.28;
}

.risk-index-flow .unlock-meter {
  height: 8px;
  margin: 10px 0 8px;
}

.risk-index-flow .unlock-features {
  gap: 6px;
  margin-top: 10px;
}

.risk-index-flow .unlock-features div {
  min-height: 54px;
  padding: 7px;
}

.risk-index-flow .unlock-features b {
  font-size: 11px;
}

.risk-index-flow .unlock-features span {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.22;
}

.risk-index-flow .teaser-unlock-form {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0.45rem 1rem 0;
  scrollbar-gutter: stable;
}

.risk-index-flow .teaser-unlock-form > div:first-child,
.risk-index-flow .unlock-next-step {
  padding: 12px;
}

.risk-index-flow .teaser-unlock-form h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

.risk-index-flow .teaser-unlock-form label {
  gap: 4px;
}

.risk-index-flow .teaser-unlock-form input {
  min-height: 38px;
}

.risk-index-flow .teaser-unlock-form .teaser-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin: auto -0.45rem -1rem 0;
  padding: 0.8rem 0.45rem 1rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 32%, #ffffff);
}

.risk-index-flow.risk-index-flow--lead {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 22px 28px 78px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.risk-index-flow--lead .risk-index-progress {
  margin-bottom: 12px;
}

.risk-index-flow--lead .teaser-modal-head.teaser-unlock-head {
  margin-bottom: 14px;
}

.risk-index-flow--lead .teaser-modal-head h2 {
  font-size: clamp(1.75rem, 2.45vw, 2.45rem);
  line-height: 1.06;
}

.risk-index-flow--lead .teaser-modal-head p {
  max-width: 58rem;
  font-size: 0.9rem;
  line-height: 1.32;
}

.risk-index-flow--lead .teaser-lead-layout.teaser-unlock-layout {
  flex: 0 0 auto;
  grid-template-columns: minmax(250px, 0.78fr) minmax(380px, 1.22fr);
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  align-items: flex-start;
  gap: 18px;
}

.risk-index-flow--lead .teaser-unlock-panel,
.risk-index-flow--lead .teaser-unlock-form {
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.risk-index-flow--lead .teaser-unlock-panel {
  position: static;
  align-self: flex-start;
  padding: 14px;
}

.risk-index-flow--lead .teaser-unlock-panel strong {
  font-size: clamp(40px, 4vw, 56px);
}

.risk-index-flow--lead .teaser-unlock-panel em {
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
}

.risk-index-flow--lead .teaser-unlock-panel p,
.risk-index-flow--lead .unlock-caption {
  font-size: 11px;
  line-height: 1.25;
}

.risk-index-flow--lead .unlock-features {
  display: none;
}

.risk-index-flow--lead .unlock-features div {
  min-height: 48px;
}

.risk-index-flow--lead .teaser-unlock-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  padding: 0 0.45rem 1rem 0;
}

.risk-index-flow--lead .teaser-unlock-form > div:first-child,
.risk-index-flow--lead .unlock-next-step {
  grid-column: 1 / -1;
  padding: 10px 12px;
}

.risk-index-flow--lead .teaser-unlock-form h3 {
  font-size: clamp(1.2rem, 1.45vw, 1.55rem);
  line-height: 1.08;
}

.risk-index-flow--lead .teaser-unlock-form p {
  font-size: 0.9rem;
  line-height: 1.32;
}

.risk-index-flow--lead .teaser-unlock-form label {
  gap: 3px;
}

.risk-index-flow--lead .teaser-unlock-form input {
  min-height: 34px;
  padding: 8px 10px;
}

.risk-index-flow--lead .unlock-next-step span {
  line-height: 1.34;
}

.risk-index-flow--lead .teaser-unlock-form .teaser-actions {
  grid-column: 1 / -1;
  position: static;
  z-index: 8;
  margin: 8px 0 0;
  padding: 0.75rem 0 0;
  background: transparent;
}

@media (max-height: 820px) and (min-width: 861px) {
  .teaser-modal-dialog {
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
  }

  .risk-index-flow.risk-index-flow--lead {
    padding: 12px 22px 82px;
  }

  .risk-index-flow--lead .risk-index-progress {
    margin-bottom: 8px;
  }

  .risk-index-flow--lead .teaser-modal-head.teaser-unlock-head {
    margin-bottom: 10px;
  }

  .risk-index-flow--lead .teaser-modal-head h2 {
    font-size: clamp(1.55rem, 2vw, 2rem);
  }

  .risk-index-flow--lead .teaser-modal-head p {
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .risk-index-flow--lead .teaser-unlock-panel {
    padding: 12px;
  }

  .risk-index-flow--lead .teaser-lead-layout.teaser-unlock-layout {
    grid-template-columns: minmax(220px, 0.7fr) minmax(390px, 1.3fr);
    gap: 14px;
  }

  .risk-index-flow--lead .teaser-unlock-panel p:not(.unlock-caption) {
    max-height: 4.4rem;
    overflow: hidden;
  }

  .risk-index-flow--lead .unlock-features span {
    display: none;
  }

  .risk-index-flow--lead .unlock-features {
    display: none;
  }

  .risk-index-flow--lead .unlock-features div {
    min-height: auto;
    padding: 8px;
  }

  .risk-index-flow--lead .unlock-next-step span {
    display: none;
  }

  .risk-index-flow--lead .teaser-unlock-form > div:first-child,
  .risk-index-flow--lead .unlock-next-step {
    padding: 9px 10px;
  }

  .risk-index-flow--lead .teaser-unlock-form h3 {
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  }

  .risk-index-flow--lead .teaser-unlock-form label {
    gap: 3px;
  }

  .risk-index-flow--lead .teaser-unlock-form input {
    min-height: 34px;
    padding: 8px 10px;
  }

  .risk-index-flow--lead .teaser-unlock-form .teaser-actions {
    padding-top: 0.55rem;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .risk-index-flow--lead .unlock-features {
    display: none;
  }

  .risk-index-flow--lead .unlock-caption {
    margin-bottom: 0;
  }

  .risk-index-flow--lead .teaser-lead-layout.teaser-unlock-layout {
    grid-template-columns: minmax(200px, 0.62fr) minmax(420px, 1.38fr);
  }
}

@media (max-width: 860px) {
  .teaser-modal {
    padding: 0;
  }

  .teaser-modal-dialog {
    width: 100%;
    height: auto;
    max-height: 100vh;
    min-height: 100vh;
    overflow: auto;
    border-radius: 0;
  }

  .risk-index-grid {
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .risk-index-brand {
    min-height: 210px;
    padding: 28px 24px;
  }

  .risk-index-brand p:not(.portal-kicker),
  .risk-index-visual {
    display: none;
  }

  .risk-index-flow {
    padding: 28px 24px 32px;
  }

  .risk-index-flow--question {
    overflow: visible;
  }

  .risk-index-flow.risk-index-flow--lead {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .risk-index-flow--lead .teaser-unlock-form {
    grid-template-columns: 1fr;
  }

  .risk-index-flow .teaser-modal-question,
  .risk-index-flow .teaser-lead-layout,
  .risk-index-flow .teaser-results {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .risk-index-flow .teaser-question-card-single {
    overflow: visible;
  }

  .risk-index-flow .teaser-lead-layout.teaser-unlock-layout {
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .risk-index-flow--lead .teaser-lead-layout.teaser-unlock-layout {
    flex: none;
    max-height: none;
    overflow: visible;
  }

  .risk-index-flow .teaser-unlock-panel,
  .risk-index-flow .teaser-unlock-form {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .risk-index-flow--lead .teaser-unlock-panel,
  .risk-index-flow--lead .teaser-unlock-form {
    max-height: none;
    overflow: visible;
  }

  .risk-index-flow .teaser-unlock-form .teaser-actions {
    position: static;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .risk-index-trust,
  .risk-index-flow .teaser-lead-layout,
  .risk-index-flow .teaser-result-hero {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-height: 780px) {
  .teaser-modal {
    padding: 8px;
  }

  .teaser-modal-dialog {
    width: min(1220px, calc(100vw - 16px));
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .risk-index-grid {
    grid-template-columns: minmax(230px, 0.58fr) minmax(0, 1.6fr);
  }

  .risk-index-brand {
    padding: 22px;
  }

  .risk-index-brand-lockup {
    grid-template-columns: minmax(84px, 0.58fr) 1px minmax(86px, 0.88fr);
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .risk-index-ally-mark img {
    width: min(112px, 100%);
  }

  .risk-index-product-mark strong {
    font-size: 1.08rem;
  }

  .risk-index-product-mark span {
    font-size: 0.78rem;
  }

  .risk-index-product-mark small {
    font-size: 0.5rem;
    letter-spacing: 0.03em;
  }

  .risk-index-brand h2 {
    font-size: 1.65rem;
  }

  .risk-index-brand p:not(.portal-kicker) {
    font-size: 0.95rem;
    line-height: 1.38;
  }

  .risk-index-visual {
    min-height: 142px;
    padding-top: 12px;
  }

  .risk-index-pulse {
    padding: 9px;
  }

  .risk-index-lines {
    margin-top: 12px;
    gap: 7px;
  }

  .risk-index-lines span {
    height: 8px;
  }

  .risk-index-gauge {
    width: 78px;
    height: 78px;
    margin-top: 12px;
  }

  .risk-index-gauge span {
    width: 54px;
    height: 54px;
  }

  .risk-index-flow {
    padding: 18px 22px 12px;
  }

  .risk-index-progress {
    margin-bottom: 10px;
  }

  .risk-index-flow--question .teaser-modal-head h2 {
    font-size: clamp(1.55rem, 2.05vw, 2rem);
    line-height: 1.04;
  }

  .risk-index-flow .question-meta {
    margin-bottom: 8px;
  }

  .risk-index-flow .teaser-score-row {
    gap: 6px;
    margin: 10px 0;
  }

  .risk-index-flow .teaser-score-row label {
    grid-template-columns: 20px 1fr;
    gap: 10px;
    padding: 7px 10px;
  }

  .risk-index-flow .teaser-score-row label::before {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 520px) {
  .risk-index-brand h2,
  .risk-index-flow h2 {
    font-size: 2rem;
    line-height: 1.16;
  }

  .risk-index-flow .teaser-modal-nav {
    grid-template-columns: 1fr;
  }
}
/* Guided assessment journey */
.portal-journey {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 24px;
  margin: 18px 0 14px;
  padding: 22px 24px;
  border: 1px solid #d8e6e8;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5fbfa 0%, #eef7f7 100%);
}

.portal-journey h3 { margin: 5px 0 7px; color: #123d56; font-size: 20px; }
.portal-journey p { margin: 0; color: #5b6e78; line-height: 1.55; }
.portal-journey-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-journey-actions div { display: flex; flex-direction: column; justify-content: center; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(17, 61, 86, .07); }
.portal-journey-actions strong { color: #123d56; font-size: 14px; }
.portal-journey-actions span { margin-top: 4px; color: #71818a; font-size: 11px; }

.portal-milestones { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 16px; padding: 0 8px; }
.portal-milestones::before { content: ""; position: absolute; top: 15px; right: 8%; left: 8%; height: 2px; background: #dce7e9; }
.portal-milestone { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #829097; font-size: 11px; text-align: center; }
.portal-milestone strong { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #dce7e9; border-radius: 50%; background: #fff; color: #73838c; font-size: 10px; }
.portal-milestone.is-complete strong { border-color: #28a58c; background: #28a58c; color: #fff; box-shadow: 0 0 0 4px rgba(40, 165, 140, .12); }
.portal-milestone.is-complete span { color: #176f61; font-weight: 700; }

.portal-progress-reward { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(90deg, #123d56, #176f70); color: #fff; }
.portal-progress-reward strong { font-size: 15px; }
.portal-progress-reward span { color: rgba(255,255,255,.82); font-size: 12px; }

.portal-required-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.portal-required-head h3 { margin: 0 0 4px; }
.portal-required-head p { margin: 0; color: #708089; font-size: 12px; }
.portal-required-head > span { padding: 5px 8px; border-radius: 999px; background: #edf6f4; color: #287967; font-size: 10px; font-weight: 700; }
.portal-smart-docs { display: grid; gap: 9px; }
.portal-smart-doc { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #dfe8ea; border-radius: 12px; background: #fff; }
.portal-smart-doc strong { color: #193f54; font-size: 13px; }
.portal-smart-doc p { margin: 4px 0 0; color: #6b7a82; font-size: 11px; line-height: 1.4; }
.portal-smart-doc > span { flex: 0 0 auto; color: #72828a; font-size: 10px; font-weight: 700; }
.portal-smart-doc.is-uploaded { border-color: #8fcfbe; background: #f1faf7; }
.portal-smart-doc.is-uploaded > span { color: #168167; }
.portal-autosave-note {
  position: relative;
  clear: both;
  margin: 8px 0 20px;
  color: #5c7a76;
  font-size: 11px;
  line-height: 1.4;
}

.portal-label textarea {
  display: block;
  width: 100%;
  margin: 0;
}
.portal-governance-references { display: grid; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(18, 61, 86, .13); }
.portal-governance-references > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.portal-governance-references > div > strong { color: #123d56; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.portal-governance-references em { color: #71818a; font-size: 10px; font-style: normal; }
.portal-reference-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.portal-reference-list a { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border: 1px solid #d8e6e8; border-radius: 10px; background: rgba(255,255,255,.72); color: inherit; text-decoration: none; }
.portal-reference-list a:hover { border-color: #6bb7aa; background: #fff; }
.portal-reference-list b { color: #176f61; font-size: 10px; }
.portal-reference-list span { color: #526974; font-size: 10px; line-height: 1.35; }
.advisor-reference-pending { color: #725d2c; font-size: 10px; }

.ico::before {
  content: none !important;
}

.ico svg,
.icon-button svg,
.action-with-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico svg {
  width: 15px;
  height: 15px;
}

.action-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-item:focus-visible,
.icon-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(1, 118, 211, 0.38);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .portal-journey { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .portal-journey { padding: 18px; }
  .portal-journey-actions { grid-template-columns: 1fr; }
  .portal-milestone span { display: none; }
  .portal-progress-reward, .portal-required-head, .portal-smart-doc { align-items: flex-start; flex-direction: column; }
  .portal-reference-list { grid-template-columns: 1fr; }
  .portal-governance-references > div:first-child { align-items: flex-start; flex-direction: column; }
}

/* Registration contains more fields than login and must remain scrollable on short screens. */
body.is-unauthenticated.auth-mode-register .auth-gate {
  min-height: 100svh;
  height: auto;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

body.is-unauthenticated.auth-mode-register .auth-panel {
  margin: auto;
}

body.is-unauthenticated.auth-mode-register .auth-card {
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body.is-unauthenticated.auth-mode-register #registerForm {
  padding-bottom: 8px;
}

@media (max-height: 760px) {
  body.is-unauthenticated.auth-mode-register .auth-gate {
    display: flex;
    justify-content: center;
    padding: 8px 12px 20px;
  }

  body.is-unauthenticated.auth-mode-register .auth-panel {
    display: block;
    width: min(444px, 100%);
    margin: 0 auto;
  }

  body.is-unauthenticated.auth-mode-register .auth-brand,
  body.is-unauthenticated.auth-mode-register .auth-copy,
  body.is-unauthenticated.auth-mode-register .auth-version-badge {
    display: none;
  }

  body.is-unauthenticated.auth-mode-register .auth-card {
    width: 100%;
    max-height: calc(100svh - 28px);
    margin: 0 auto;
    padding: 16px;
  }

  body.is-unauthenticated.auth-mode-register .auth-tabs {
    margin-bottom: 12px;
  }

  body.is-unauthenticated.auth-mode-register #registerForm {
    gap: 9px;
  }

  body.is-unauthenticated.auth-mode-register .auth-form input {
    min-height: 42px;
  }
}
