.ehr-section.ehr-model-section { display: block; }
.ehr-fit-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; align-items: start; }
.ehr-fit-copy > .eyebrow { grid-column: 1 / -1; margin-bottom: 24px; }
.ehr-fit-copy > h2 { grid-column: 1; grid-row: 2 / 4; }
.ehr-fit-copy > p:not(.eyebrow) { grid-column: 2; margin: 0; }
.ehr-fit-copy > .disclaimer { margin-top: 22px !important; }

.ehr-use-models { margin: 48px 0 0; container-type: inline-size; }
.ehr-use-models .ehr-icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.ehr-use-models .ehr-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ehr-use-models > figcaption { margin-bottom: 30px; color: var(--blue-deep); font-size: 25px; line-height: 1.3; font-weight: 650; text-align: center; }
.ehr-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ehr-model { min-width: 0; padding: 0 36px 0 0; }
.ehr-model + .ehr-model { padding: 0 0 0 36px; border-left: 1px solid var(--line); }
.ehr-model-header { padding: 22px 24px; border-top: 3px solid var(--blue); background: #eaf4fa; }
.ehr-agent-model .ehr-model-header { border-top-color: var(--green); background: #edf5f1; }
.ehr-agent-model .ehr-model-label { color: var(--green); }
.ehr-model-header .ehr-model-label > span { color: #8a671e; }
.ehr-model-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--blue); font-size: 14px; font-weight: 700; }
.ehr-model-label > span { color: var(--gold); font-size: 13px; font-weight: 800; }
.ehr-use-models .ehr-model h3 { min-height: 62px; margin: 0; color: var(--blue-deep); font-size: 24px; line-height: 1.28; letter-spacing: 0; text-wrap: balance; }
.ehr-use-models .ehr-model-description { min-height: 96px; margin: 14px 0 0; font-size: 16px; line-height: 1.5; }
.ehr-workstation-art, .ehr-agent-art { min-height: 270px; margin-top: 22px; }
.ehr-managed-origin { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; color: var(--blue-deep); font-size: 15px; }
.ehr-managed-origin img { display: block; width: 36px; height: auto; }
.ehr-workstation-wires { display: block; width: 100%; height: 52px; fill: none; stroke: #a9c8d9; stroke-width: 1.5; }
.ehr-workstation-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 16px; }
.ehr-workstation { position: relative; width: 112px; max-width: 100%; aspect-ratio: 24 / 24; }
.ehr-workstation > .ehr-icon { width: 100%; height: 100%; color: var(--blue); stroke-width: .75; }
.ehr-workstation img { position: absolute; top: 23%; left: 38%; display: block; width: 24%; height: auto; }
.ehr-use-models .ehr-workstation-art > p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.ehr-model-benefits { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 12px 0 0; padding: 0; list-style: none; }
.ehr-model-benefits > li { display: flex; align-items: center; gap: 9px; color: var(--blue-deep); font-size: 14px; font-weight: 600; }
.ehr-model-benefits .ehr-icon { width: 20px; height: 20px; color: var(--green); }
.ehr-model-benefits > li:last-child .ehr-icon { color: var(--gold); }

.ehr-policy-label { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; color: var(--blue-deep); font-size: 14px; font-weight: 600; }
.ehr-policy-label .ehr-icon { width: 23px; height: 23px; color: var(--gold); }
.ehr-agent-pipeline { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr); align-items: start; gap: 5px; margin-top: 36px; }
.ehr-review-stage { display: grid; justify-items: center; gap: 8px; text-align: center; }
.ehr-review-stage > .ehr-icon { width: 34px; height: 34px; margin-bottom: 6px; color: var(--blue); }
.ehr-review-stage > strong { color: var(--blue-deep); font-size: 15px; line-height: 1.35; }
.ehr-review-stage > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.ehr-use-models .ehr-path-arrow { width: 18px; height: 18px; color: var(--gold); }
.ehr-agent-pipeline > .ehr-path-arrow { margin-top: 9px; }
.ehr-human-stage > .ehr-icon { color: var(--green); }
.ehr-use-models .ehr-agent-art > p { margin: 22px 0 0; font-size: 14px; line-height: 1.5; text-align: center; }
.ehr-agent-benefit { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--blue-deep); font-size: 14px; font-weight: 600; }
.ehr-agent-benefit > .ehr-icon { width: 20px; height: 20px; color: var(--green); }

.ehr-learning-loop { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.ehr-learning-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.ehr-learning-heading > .ehr-icon { color: var(--gold); width: 23px; height: 23px; }
.ehr-learning-heading h3 { color: var(--blue-deep); font-size: 21px; line-height: 1.35; font-weight: 650; }
.ehr-learning-flow { display: grid; grid-template-columns: minmax(0, 1fr) 36px 190px; gap: 24px; align-items: center; }
.ehr-learning-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ehr-learning-sources > li { display: flex; align-items: center; gap: 14px; color: var(--blue-deep); font-size: 16px; line-height: 1.45; }
.ehr-learning-sources .ehr-icon { width: 28px; height: 28px; color: var(--blue); }
.ehr-learning-sources > li:nth-child(2) .ehr-icon { color: var(--green); }
.ehr-learning-sources > li:nth-child(3) .ehr-icon { color: #a3761d; }
.ehr-learning-flow > .ehr-path-arrow { width: 32px; height: 32px; }
.ehr-refined-rules { display: flex; align-items: center; gap: 12px; color: var(--blue-deep); font-size: 16px; line-height: 1.4; }
.ehr-refined-rules > .ehr-icon { width: 30px; height: 30px; color: var(--blue); }
.ehr-refined-rules > strong { font-weight: 650; }

@container (max-width: 1000px) {
  .ehr-mode-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ehr-model { padding: 0; }
  .ehr-model + .ehr-model { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .ehr-use-models .ehr-model h3, .ehr-use-models .ehr-model-description { min-height: 0; }
  .ehr-workstation-art, .ehr-agent-art { max-width: 660px; margin: 26px auto 0; min-height: 260px; }
  .ehr-learning-flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ehr-learning-flow > .ehr-path-arrow { justify-self: center; transform: rotate(90deg); }
  .ehr-refined-rules { justify-self: center; }
}

@container (max-width: 580px) {
  .ehr-model-header { padding: 20px; }
  .ehr-use-models > figcaption { font-size: 23px; }
  .ehr-use-models .ehr-model h3 { font-size: 22px; }
  .ehr-workstation-row { gap: 8px; }
  .ehr-workstation { width: 90px; }
  .ehr-model-benefits { gap: 12px 18px; }
  .ehr-agent-pipeline { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 22px 10px; margin-top: 28px; }
  .ehr-agent-pipeline > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .ehr-agent-pipeline > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .ehr-agent-pipeline > :nth-child(3) { grid-column: 3; grid-row: 1; }
  .ehr-agent-pipeline > :nth-child(4) { grid-column: 3; grid-row: 2; justify-self: center; margin: 0; transform: rotate(90deg); }
  .ehr-agent-pipeline > :nth-child(5) { grid-column: 3; grid-row: 3; }
  .ehr-agent-pipeline > :nth-child(6) { grid-column: 2; grid-row: 3; transform: rotate(180deg); }
  .ehr-agent-pipeline > :nth-child(7) { grid-column: 1; grid-row: 3; }
  .ehr-agent-benefit { margin-top: 24px; }
  .ehr-learning-sources { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ehr-learning-sources > li { justify-self: start; }
  .ehr-learning-sources br { display: none; }
  .ehr-learning-sources > li span { max-width: 100%; }
  .ehr-learning-heading { align-items: start; }
  .ehr-learning-heading > .ehr-icon { margin-top: 3px; }
  .ehr-learning-heading h3 { font-size: 20px; }
}

@media (max-width: 1080px) {
  .ehr-fit-copy { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ehr-fit-copy > .eyebrow { margin: 0; }
  .ehr-fit-copy > h2 { grid-column: 1; grid-row: auto; }
  .ehr-fit-copy > p:not(.eyebrow) { grid-column: 1; }
  .ehr-fit-copy > .disclaimer { margin-top: 0 !important; }
}
