body.sim-page {
  min-height: 100vh;
  background: #0a0e1a;
}

body.sim-page .sim-account-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.74);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 7px 18px;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: none;
}

body.sim-page .sim-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(460px, 1.5fr) minmax(270px, 0.86fr);
  gap: 18px;
  width: min(1480px, 94vw);
  margin: 0 auto;
  padding: 24px 0 40px;
  align-items: start;
}

body.sim-page .sim-paywall {
  width: min(760px, 92vw);
  margin: 60px auto 40px;
}

body.sim-page .paywall-card {
  padding: 34px;
  text-align: center;
}

body.sim-page .paywall-card h1 {
  margin-top: 8px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  color: rgb(252,252,252);
  text-shadow: none;
}

body.sim-page .paywall-card p {
  max-width: 560px;
  margin: 14px auto 0;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 20px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}

body.sim-page .paywall-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

body.sim-page .paywall-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body.sim-page .sim-panel {
  min-width: 0;
}

body.sim-page .panel-heading,
body.sim-page .workspace-header {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

body.sim-page .section-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

body.sim-page .queue-count {
  display: block;
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

body.sim-page .queue-action {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 11px;
  white-space: nowrap;
}

body.sim-page .sim-card {
  background: rgba(51,51,51,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}

body.sim-page .queue-card,
body.sim-page .profile-card,
body.sim-page .workspace-card {
  padding: 16px;
}

body.sim-page .queue-card,
body.sim-page .profile-card {
  position: sticky;
  top: 92px;
}

body.sim-page .queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.sim-page .queue-section {
  display: grid;
  gap: 8px;
}

body.sim-page .queue-section + .queue-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

body.sim-page .queue-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(59,130,246,0.88);
}

body.sim-page .queue-empty {
  border-radius: 8px;
  padding: 11px;
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.46);
}

body.sim-page .queue-item {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-align: left;
  border-radius: 8px;
  padding: 13px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgb(252,252,252);
}

body.sim-page .queue-item:active,
body.sim-page .queue-item:focus-visible,
body.sim-page .queue-item.active {
  background: rgba(59,130,246,0.24);
  border-color: rgba(59,130,246,0.48);
}

body.sim-page .queue-main {
  min-width: 0;
}

body.sim-page .queue-patient {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgb(252,252,252);
  overflow-wrap: anywhere;
}

body.sim-page .queue-drug {
  display: block;
  margin-top: 4px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.64);
  line-height: 1.35;
}

body.sim-page .queue-tech {
  display: block;
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,214,160,0.88);
}

body.sim-page .status-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(34,34,34);
  background: rgb(255,216,90);
}

body.sim-page .status-badge.new { background: rgb(255,216,90); }
body.sim-page .status-badge.open { background: rgb(214,214,214); }
body.sim-page .status-badge.processing { background: rgb(183,157,231); }
body.sim-page .status-badge.pending-pv1 { background: rgb(255,184,92); }
body.sim-page .status-badge.hold { background: rgb(100,174,255); }
body.sim-page .status-badge.filled { background: rgb(126,218,158); }
body.sim-page .status-badge.rejected { background: rgb(255,132,118); }

body.sim-page .profile-name {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 14px;
  color: rgb(252,252,252);
}

body.sim-page .profile-grid {
  display: grid;
  gap: 10px;
}

body.sim-page .profile-field {
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.075);
}

body.sim-page .field-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.44);
  margin-bottom: 5px;
}

body.sim-page .field-value {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 17px;
  line-height: 1.35;
  color: rgba(252,252,252,0.9);
}

body.sim-page .allergy-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

body.sim-page .allergy-chip {
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(201,58,48,0.22);
  border: 1px solid rgba(255,116,100,0.52);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgb(255,184,174);
}

body.sim-page .allergy-chip.nkda {
  background: rgba(126,218,158,0.12);
  border-color: rgba(126,218,158,0.38);
  color: rgb(184,235,199);
}

body.sim-page .insurance-line {
  display: block;
  margin-top: 3px;
}

body.sim-page .workspace-header h1 {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  color: rgb(252,252,252);
  text-shadow: none;
}

body.sim-page .workflow-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(58px, 1fr));
  gap: 7px;
  width: min(520px, 100%);
}

body.sim-page .step-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.58);
  text-align: center;
}

body.sim-page button.step-pill {
  cursor: pointer;
  touch-action: manipulation;
}

body.sim-page button.step-pill:active,
body.sim-page button.step-pill:focus-visible {
  border-color: rgba(191,219,254,0.72);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
  outline: none;
}

body.sim-page .step-pill.active {
  background: rgb(187,187,187);
  color: rgb(40,40,40);
}

body.sim-page .step-pill.ready {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.22), 0 0 18px rgba(59,130,246,0.32);
}

body.sim-page .step-pill.complete {
  border-color: rgba(126,218,158,0.42);
  background: rgba(126,218,158,0.12);
  color: rgba(213,255,225,0.9);
}

body.sim-page .workspace-card {
  min-height: 590px;
}

body.sim-page .panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.sim-page .panel-title {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 26px;
  font-weight: 600;
  color: rgb(252,252,252);
}

body.sim-page .panel-copy {
  margin-top: 3px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 18px;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}

body.sim-page .confirmation-box,
body.sim-page .issue-box,
body.sim-page .rx-summary,
body.sim-page .result-card,
body.sim-page .workflow-section {
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

body.sim-page .form-error {
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(201,58,48,0.18);
  border: 1px solid rgba(255,116,100,0.45);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: rgb(255,198,190);
}

body.sim-page .revealed-issue-list {
  display: grid;
  gap: 12px;
}

body.sim-page .issue-box {
  border-color: rgba(255,216,90,0.28);
  background: rgba(255,216,90,0.08);
}

body.sim-page .issue-title {
  margin: 2px 0 8px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 24px;
  font-weight: 600;
  color: rgb(255,229,144);
}

body.sim-page .dob-value {
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: rgb(252,252,252);
}

body.sim-page .rx-summary {
  display: grid;
  gap: 8px;
}

body.sim-page .rx-full-summary {
  gap: 0;
}

body.sim-page .rx-script-section {
  display: grid;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

body.sim-page .rx-script-section:first-child,
body.sim-page .controlled-substance-banner + .rx-script-section {
  border-top: 0;
  padding-top: 0;
}

body.sim-page .rx-script-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(59,130,246,1);
}

body.sim-page .rx-script-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

body.sim-page .rx-summary-line {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 17px;
  line-height: 1.45;
  color: rgba(252,252,252,0.88);
}

body.sim-page .rx-summary-line.full {
  grid-column: 1 / -1;
}

body.sim-page .rx-summary-line strong {
  display: inline-block;
  min-width: 92px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(59,130,246,1);
}

body.sim-page .controlled-substance-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,151,64,0.18);
  border: 1px solid rgba(255,184,92,0.5);
  color: rgb(255,225,176);
}

body.sim-page .verification-alert {
  display: grid;
  gap: 5px;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid rgba(255,216,90,0.5);
  background: rgba(255,216,90,0.12);
  color: rgb(255,232,160);
}

body.sim-page .verification-alert.major {
  border-color: rgba(255,116,100,0.58);
  background: rgba(201,58,48,0.2);
  color: rgb(255,198,190);
}

body.sim-page .verification-alert strong,
body.sim-page .verification-alert span,
body.sim-page .verification-alert small {
  font-size: 13px;
  line-height: 1.35;
}

body.sim-page .controlled-substance-banner strong,
body.sim-page .controlled-substance-banner span {
  font-size: 12px;
  line-height: 1.35;
}

body.sim-page .rx-danger-text {
  color: rgb(255,184,174) !important;
}

body.sim-page .ndc-list {
  display: grid;
  gap: 10px;
}

body.sim-page .med-search-tool {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
}

body.sim-page .med-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

body.sim-page .med-search-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.1);
  color: rgb(252,252,252);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

body.sim-page .med-search-input::placeholder {
  color: rgba(255,255,255,0.45);
}

body.sim-page .med-result-list {
  display: grid;
  gap: 8px;
}

body.sim-page .med-result,
body.sim-page .selected-med-card {
  display: grid;
  gap: 5px;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  color: rgb(252,252,252);
}

body.sim-page .med-result {
  cursor: pointer;
}

body.sim-page .selected-med-card {
  border-color: rgba(151,213,174,0.48);
  background: rgba(151,213,174,0.12);
}

body.sim-page .med-result strong,
body.sim-page .selected-med-card strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

body.sim-page .med-result span,
body.sim-page .selected-med-card span,
body.sim-page .med-search-empty {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.62);
}

body.sim-page .ndc-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgb(252,252,252);
}

body.sim-page .ndc-option.selected {
  border-color: rgba(151,213,174,0.75);
  background: rgba(151,213,174,0.16);
}

body.sim-page .radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.44);
}

body.sim-page .ndc-option.selected .radio-dot {
  border: 5px solid rgb(151,213,174);
}

body.sim-page .ndc-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.sim-page .ndc-maker {
  display: block;
  margin-top: 4px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

body.sim-page .ndc-code {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  white-space: nowrap;
}

body.sim-page .entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

body.sim-page .entry-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body.sim-page .entry-field.full {
  grid-column: 1 / -1;
}

body.sim-page .entry-field small {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255,255,255,0.42);
}

body.sim-page .entry-grid-meta {
  margin-bottom: 14px;
}

body.sim-page .compact-workflow-section {
  padding: 14px;
}

body.sim-page .insulin-calc-card {
  border-radius: 8px;
  padding: 13px;
  background: rgba(151,213,174,0.1);
  border: 1px solid rgba(151,213,174,0.22);
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 17px;
  line-height: 1.45;
  color: rgba(252,252,252,0.86);
}

body.sim-page .insulin-formula {
  margin: 4px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
}

body.sim-page label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.62);
  text-shadow: none;
}

body.sim-page input,
body.sim-page select,
body.sim-page textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  background: rgba(18,22,28,0.56);
  color: rgb(252,252,252);
  letter-spacing: 0;
}

body.sim-page button {
  min-height: 48px;
  padding: 12px;
  touch-action: manipulation;
}

body.sim-page input:focus,
body.sim-page select:focus,
body.sim-page textarea:focus {
  border-color: rgba(151,213,174,0.85);
  box-shadow: 0 0 0 3px rgba(151,213,174,0.14);
}

body.sim-page textarea {
  min-height: 172px;
  resize: vertical;
}

body.sim-page .sig-translation {
  margin-top: 12px;
  border-radius: 8px;
  padding: 13px;
  background: rgba(18,22,28,0.44);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 18px;
  line-height: 1.45;
  color: rgba(252,252,252,0.88);
}

body.sim-page .sig-translation.muted {
  color: rgba(255,255,255,0.42);
}

body.sim-page .aux-label-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body.sim-page .aux-label-option {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(18,22,28,0.46);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(252,252,252,0.86);
}

body.sim-page .aux-label-option input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: rgb(151,213,174);
}

body.sim-page .aux-label-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.sim-page .label-preview-panel {
  gap: 18px;
}

body.sim-page .pharmacy-label-preview {
  display: grid;
  overflow: hidden;
  width: min(760px, 100%);
  border-radius: 4px;
  background: rgb(255,255,255);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgb(15,18,22);
  box-shadow: 0 18px 36px rgba(0,0,0,0.32);
  font-family: Arial, Helvetica, sans-serif;
}

body.sim-page .template-label-preview {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

body.sim-page .template-label-top {
  display: grid;
  grid-template-columns: 70px minmax(180px, 1.2fr) minmax(90px, 0.5fr) minmax(170px, 0.9fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

body.sim-page .template-rx-logo {
  width: 72px;
  height: 62px;
  display: block;
  object-fit: contain;
  object-position: center;
}

body.sim-page .template-issued,
body.sim-page .template-patient {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.sim-page .template-issued span,
body.sim-page .template-date {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

body.sim-page .template-issued strong,
body.sim-page .template-patient strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

body.sim-page .template-issued small,
body.sim-page .template-patient span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

body.sim-page .template-date {
  align-self: start;
  padding-top: 2px;
  font-size: 10px;
  white-space: nowrap;
}

body.sim-page .template-label-body {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(120px, 0.48fr) minmax(170px, 0.8fr);
  gap: 10px;
  align-items: stretch;
}

body.sim-page .template-primary-copy {
  display: grid;
  grid-template-rows: auto minmax(90px, 1fr) auto;
  min-width: 0;
}

body.sim-page .template-drug-bar {
  padding: 8px 10px;
  background: #2563eb;
  color: rgb(255,255,255);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

body.sim-page .template-sig-box {
  min-height: 96px;
  padding: 10px;
  border: 1px solid rgba(30,30,30,0.25);
  border-top: 0;
  background: rgb(255,255,255);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body.sim-page .template-fill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

body.sim-page .template-rx-strip {
  display: inline-block;
  padding: 3px 8px;
  background: rgb(239,232,33);
  color: rgb(15,18,22);
  font-size: 14px;
  font-weight: 800;
}

body.sim-page .template-pharmacy-logo {
  align-self: end;
  width: 126px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

body.sim-page .template-aux-box {
  min-height: 130px;
  padding: 10px;
  background: rgb(222,222,222);
  color: rgb(25,25,25);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

body.sim-page .template-aux-box div div + div {
  margin-top: 4px;
}

body.sim-page .template-aux-title {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(25,25,25,0.35);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

body.sim-page .note-coach {
  border-radius: 8px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 17px;
  line-height: 1.4;
  color: rgba(252,252,252,0.84);
}

body.sim-page .note-coach small {
  display: block;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255,255,255,0.58);
}

body.sim-page .note-coach.good {
  border-color: rgba(126,218,158,0.42);
  background: rgba(126,218,158,0.1);
}

body.sim-page .note-coach.needs-work {
  border-color: rgba(255,216,90,0.4);
  background: rgba(255,216,90,0.09);
}

body.sim-page .note-coach.locked {
  border-color: rgba(59,130,246,0.34);
  background: rgba(37,99,235,0.16);
}

body.sim-page .clinical-review-list {
  gap: 12px;
}

body.sim-page .clinical-alert {
  border-color: rgba(255,216,90,0.28);
  background: rgba(255,216,90,0.07);
}

body.sim-page .clinical-detail {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,255,255,0.66);
}

body.sim-page .clinical-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

body.sim-page .clinical-review-btn.selected {
  border-color: rgba(151,213,174,0.72);
  background: rgba(151,213,174,0.2);
  color: rgb(235,255,242);
}

body.sim-page .button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.sim-page .primary-action,
body.sim-page .secondary-action {
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  touch-action: manipulation;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

body.sim-page .primary-action:active,
body.sim-page .primary-action:focus-visible,
body.sim-page .secondary-action:active,
body.sim-page .secondary-action:focus-visible {
  transform: scale(0.98);
}

body.sim-page .primary-action {
  background: rgb(187,187,187);
  color: rgb(40,40,40);
}

body.sim-page .secondary-action {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.16);
}

body.sim-page .primary-action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

body.sim-page .summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.sim-page .summary-item {
  border-radius: 8px;
  padding: 11px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

body.sim-page .result-card.passed {
  border-color: rgba(151,213,174,0.55);
  background: rgba(151,213,174,0.12);
}

body.sim-page .result-card.failed {
  border-color: rgba(255,151,135,0.55);
  background: rgba(255,151,135,0.1);
}

body.sim-page .result-title {
  margin-top: 5px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 32px;
  font-weight: 600;
  color: rgb(252,252,252);
}

body.sim-page .result-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 17px;
  line-height: 1.45;
  color: rgba(252,252,252,0.8);
}

body.sim-page .pharmacy-debug-panel {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
}

body.sim-page .pharmacy-debug-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

body.sim-page .pharmacy-debug-grid div {
  min-width: 0;
  border-radius: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.1);
}

body.sim-page .pharmacy-debug-grid span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}

body.sim-page .pharmacy-debug-grid strong {
  display: block;
  font-family: var(--rx-mono, Consolas, monospace);
  font-size: 12px;
  color: rgba(252,252,252,0.86);
  overflow-wrap: anywhere;
}

body.sim-page .shift-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18,18,28,0.78);
  backdrop-filter: blur(8px);
}

body.sim-page .patient-lookup-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(18,18,28,0.78);
  backdrop-filter: blur(8px);
}

body.sim-page .patient-lookup-card {
  width: min(820px, 94vw);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(51,51,51,0.98), rgba(44,42,58,0.98));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.5);
}

body.sim-page .patient-lookup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body.sim-page .patient-lookup-header h2 {
  font-size: 28px;
  color: rgb(252,252,252);
}

body.sim-page .patient-lookup-close {
  width: 36px;
  min-height: 36px !important;
  border-radius: 50%;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
}

body.sim-page .patient-lookup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.sim-page .patient-results {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

body.sim-page .patient-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
}

body.sim-page .patient-result-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.sim-page .patient-result-main strong {
  font-size: 14px;
  color: rgb(252,252,252);
}

body.sim-page .patient-result-main span,
body.sim-page .patient-search-empty,
body.sim-page .profile-search-empty .field-value {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,0.68);
}

body.sim-page .patient-search-empty {
  border-radius: 6px;
  padding: 10px;
  background: rgba(201,58,48,0.18);
  border: 1px solid rgba(255,116,100,0.45);
  color: rgb(255,198,190);
}

body.sim-page .profile-search-empty {
  display: grid;
  gap: 12px;
}

body.sim-page .profile-search-btn {
  width: 100%;
}

body.sim-page .inline-patient-lookup {
  display: grid;
  gap: 12px;
}

body.sim-page .inline-lookup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.sim-page .inline-patient-results {
  display: grid;
  gap: 8px;
}

body.sim-page .inline-patient-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 6px;
  padding: 9px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}

body.sim-page .inline-patient-result strong,
body.sim-page .inline-patient-result span,
body.sim-page .inline-patient-result small {
  display: block;
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(252,252,252,0.88);
}

body.sim-page .inline-patient-result span,
body.sim-page .inline-patient-result small {
  color: rgba(255,255,255,0.62);
}

body.sim-page .reference-lookup-card {
  width: min(1080px, 96vw);
  height: min(820px, 94vh);
}

body.sim-page .reference-lookup-card.split-lookup-card {
  width: min(1180px, 96vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 16px;
  align-items: stretch;
}

body.sim-page .reference-left-pane {
  min-width: 0;
  overflow: auto;
}

body.sim-page .call-side-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 16px;
}

body.sim-page .caller-transcript {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
  border-radius: 6px;
  padding: 10px;
  background: rgba(18,22,28,0.34);
  border: 1px solid rgba(255,255,255,0.08);
}

body.sim-page .caller-message {
  display: grid;
  gap: 3px;
  border-radius: 6px;
  padding: 8px;
  background: rgba(255,255,255,0.055);
}

body.sim-page .caller-message.student {
  background: rgba(37,99,235,0.18);
}

body.sim-page .caller-message span,
body.sim-page .caller-thinking {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(59,130,246,0.95);
}

body.sim-page .caller-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(252,252,252,0.88);
}

body.sim-page .caller-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body.sim-page .caller-input-row textarea {
  min-height: 70px !important;
}

body.sim-page .incoming-call-large {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,216,90,0.52);
  background: rgba(255,216,90,0.14);
  animation: phonePulse 1s ease-in-out infinite;
}

body.sim-page .incoming-call-large::before {
  content: "\260E";
  font-size: 34px;
  color: rgb(255,229,144);
}

body.sim-page .incoming-call-panel {
  position: fixed;
  right: 18px;
  top: 78px;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 210px;
  border-radius: 999px 0 0 999px;
  border: 1px solid rgba(255,216,90,0.55);
  padding: 10px 14px !important;
  background: rgba(38,38,60,0.96);
  color: rgb(255,239,190);
  box-shadow: 0 18px 44px rgba(0,0,0,0.34);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

body.sim-page .incoming-call-panel.visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

body.sim-page .incoming-call-panel.no-call {
  border-color: rgba(151,213,174,0.42);
  color: rgb(213,238,223);
}

body.sim-page .incoming-call-panel.no-call .incoming-call-icon {
  background: rgba(151,213,174,0.14);
  animation: none;
}

body.sim-page .incoming-call-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,216,90,0.18);
  animation: phonePulse 1s ease-in-out infinite;
}

body.sim-page .incoming-call-icon::before {
  content: "\260E";
  font-size: 18px;
}

body.sim-page .incoming-call-panel strong,
body.sim-page .incoming-call-panel small {
  display: block;
  text-align: left;
  line-height: 1.15;
}

body.sim-page .call-prompt {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: rgb(255,229,144);
}

body.sim-page .reference-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

body.sim-page .reference-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

body.sim-page .reference-search-grid .primary-action {
  align-self: end;
}

body.sim-page .reference-lookup-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.5fr);
  gap: 12px;
  min-height: 0;
}

body.sim-page .reference-result {
  width: 100%;
  text-align: left;
}

body.sim-page .reference-profile {
  min-width: 0;
  display: grid;
  gap: 12px;
}

body.sim-page .reference-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.sim-page .reference-section,
body.sim-page .call-response-panel {
  display: grid;
  gap: 8px;
}

body.sim-page .call-resolution-panel {
  display: grid;
  gap: 8px;
  border-radius: 6px;
  padding: 10px;
  background: rgba(37,99,235,0.16);
  border: 1px solid rgba(59,130,246,0.24);
}

body.sim-page .call-summary-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border-radius: 6px;
  padding: 12px;
  background: rgba(151,213,174,0.12);
  border: 1px solid rgba(151,213,174,0.3);
}

body.sim-page .call-summary-card strong,
body.sim-page .call-summary-card span,
body.sim-page .call-summary-card small,
body.sim-page .call-summary-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(252,252,252,0.88);
}

body.sim-page .reference-row {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}

body.sim-page .reference-row strong,
body.sim-page .reference-row span,
body.sim-page .reference-row small {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(252,252,252,0.88);
}

body.sim-page .workspace-card {
  max-height: calc(100vh - 178px);
  overflow: auto !important;
  scrollbar-gutter: stable;
}

body.sim-page #workspacePanel {
  height: 100%;
  min-height: 0;
}

body.sim-page .split-panel {
  height: 100%;
  min-height: 0;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0 !important;
}

body.sim-page .panel-scroll-zone {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

body.sim-page .panel-static-zone {
  display: grid;
  gap: 10px;
  margin: 10px -10px -10px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,12,24,0.22);
  box-shadow: 0 -10px 24px rgba(0,0,0,0.12);
}

body.sim-page .static-result-list {
  max-height: 160px;
  overflow: auto;
}

body.sim-page .shift-modal-card {
  width: min(980px, 94vw);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(51,51,51,0.96), rgba(44,42,58,0.96));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.5);
}

body.sim-page .shift-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

body.sim-page .shift-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.sim-page .shift-modal-header h2 {
  margin-top: 6px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 36px;
  line-height: 1;
  color: rgb(252,252,252);
}

body.sim-page .shift-report-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.1fr);
  gap: 16px;
}

body.sim-page .accuracy-panel,
body.sim-page .competency-panel,
body.sim-page .verification-panel,
body.sim-page .communication-panel,
body.sim-page .promotion-panel {
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

body.sim-page .accuracy-panel {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 16px;
}

body.sim-page .promotion-panel {
  grid-column: 1 / -1;
}

body.sim-page .accuracy-ring {
  --accuracy: 0%;
  width: 172px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(rgb(151,213,174) var(--accuracy), rgba(255,255,255,0.14) 0);
  position: relative;
}

body.sim-page .accuracy-ring::before {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: rgb(48,47,58);
}

body.sim-page .accuracy-ring span {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: rgb(252,252,252);
}

body.sim-page .metric-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(59,130,246,0.95);
}

body.sim-page .metric-copy,
body.sim-page .promotion-copy,
body.sim-page .promotion-score {
  margin-top: 8px;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}

body.sim-page .competency-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

body.sim-page .verification-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

body.sim-page .competency-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
}

body.sim-page .competency-row span,
body.sim-page .competency-row strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

body.sim-page .competency-row strong {
  color: rgb(220,245,226);
}

body.sim-page .competency-row.fail strong {
  color: rgb(255,198,190);
}

body.sim-page .competency-row small {
  grid-column: 1 / -1;
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.54);
}

body.sim-page .promotion-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}

body.sim-page .promotion-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(151,213,174), rgb(191,219,254));
  transition: width 0.35s ease;
}

@media (max-width: 1180px) {
  body.sim-page .sim-shell {
    grid-template-columns: minmax(250px, 0.85fr) minmax(420px, 1.35fr);
  }

  body.sim-page .sim-profile-panel {
    grid-column: 1 / -1;
  }

  body.sim-page .profile-card {
    position: static;
  }

  body.sim-page .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  body.sim-page .sim-shell {
    grid-template-columns: 1fr;
  }

  body.sim-page .queue-card {
    position: static;
  }

  body.sim-page .workspace-header {
    align-items: start;
    flex-direction: column;
  }

  body.sim-page .workflow-stepper {
    width: 100%;
  }

  body.sim-page .shift-report-grid {
    grid-template-columns: 1fr;
  }

  body.sim-page .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.sim-page .template-label-top,
  body.sim-page .template-label-body {
    grid-template-columns: 1fr;
  }

  body.sim-page .template-rx-logo {
    width: 64px;
    height: 54px;
  }

  body.sim-page .template-pharmacy-logo {
    align-self: start;
  }
}

body.sim-page .entry-workflow-panel {
  height: auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
  overflow: visible;
  padding-right: 4px;
}

body.sim-page .entry-reference-top {
  height: auto;
  min-height: 560px;
  max-height: none;
  display: grid;
  gap: 10px;
  overflow: visible;
  resize: none;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  scrollbar-gutter: stable;
}

body.sim-page .entry-reference-top .rx-summary {
  max-height: none;
  overflow: visible;
}

body.sim-page .entry-stage-scroll {
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 4px;
  overscroll-behavior: contain;
}

body.sim-page .entry-stage-scroll .button-row {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin: 0 -4px -4px;
  padding: 12px 4px 4px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(25,29,38,0.96);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  body.sim-page .rx-summary {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  body.sim-page .entry-grid {
    grid-template-columns: 1fr;
  }

  body.sim-page .aux-label-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.sim-page header {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  body.sim-page .userbar-info {
    flex-wrap: wrap;
  }

  body.sim-page .profile-grid,
  body.sim-page .entry-grid,
  body.sim-page .summary-strip,
  body.sim-page .workflow-stepper,
  body.sim-page .med-search-row,
  body.sim-page .rx-script-grid,
  body.sim-page .patient-lookup-grid,
  body.sim-page .patient-result-row,
  body.sim-page .reference-search-row,
  body.sim-page .reference-search-grid,
  body.sim-page .reference-lookup-body,
  body.sim-page .reference-profile-grid,
  body.sim-page .reference-lookup-card.split-lookup-card,
  body.sim-page .caller-input-row {
    grid-template-columns: 1fr;
  }

  body.sim-page .call-side-panel {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-left: 0;
    padding-top: 14px;
  }

  body.sim-page .workspace-header h1 {
    font-size: 32px;
  }

  body.sim-page .ndc-option {
    grid-template-columns: 1fr;
  }

  body.sim-page .ndc-code {
    white-space: normal;
  }
}

/* v2 modern-minimalist refinement */
body.sim-page {
  background: linear-gradient(to bottom, rgb(71,70,70) 0%, rgb(59,130,246) 55%, rgb(66,66,66) 100%) !important;
  color: rgb(252,252,252);
}

body.sim-page h1,
body.sim-page h2,
body.sim-page h3,
body.sim-page h4,
body.sim-page .section-label,
body.sim-page .logo-text {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif) !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.sim-page * {
  font-family: var(--rx-sans, Inter, Geist, "Segoe UI", Arial, sans-serif) !important;
}

body.sim-page .paywall-card h1,
body.sim-page .workspace-header h1,
body.sim-page .shift-modal-header h2 {
  text-shadow: none !important;
}

body.sim-page .workspace-header h1 {
  color: rgb(252,252,252) !important;
}

body.sim-page .sim-card,
body.sim-page .workspace-card,
body.sim-page .profile-card,
body.sim-page .queue-card {
  border: 1px solid var(--rx-surface-border, #d8d2c6) !important;
  border-radius: 12px !important;
  box-shadow: var(--rx-soft-shadow, 0 14px 34px rgba(27,42,39,0.12)) !important;
}

body.sim-page .profile-field,
body.sim-page .queue-item {
  border: 1px solid rgba(216,210,198,0.72) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.58) !important;
  color: var(--dark, #1b2a27) !important;
}

body.sim-page .queue-item:active,
body.sim-page .queue-item:focus-visible,
body.sim-page .queue-item.active {
  background: rgba(37,99,235,0.08) !important;
  border-color: rgba(37,99,235,0.28) !important;
}

body.sim-page .primary-action {
  background: var(--rx-action, #1b2a27) !important;
  color: #fff !important;
}

body.sim-page .step-pill.active,
body.sim-page .step-pill.complete {
  background: var(--accent, rgb(37, 99, 235)) !important;
  border-color: var(--accent, rgb(37, 99, 235)) !important;
  color: #fff !important;
}

body.sim-page .step-pill {
  border-radius: 12px !important;
  border: 1px solid rgba(216,210,198,0.82) !important;
  background: rgba(255,255,255,0.72) !important;
  color: rgba(27,42,39,0.62) !important;
}

body.sim-page .med-result.selected,
body.sim-page .selected-med-card,
body.sim-page .ndc-option.selected {
  border-color: var(--accent, rgb(37, 99, 235)) !important;
}

/* Pharmacy workstation shell */
body.sim-page {
  min-height: 100vh;
  overflow: hidden;
  background: #0a0e1a !important;
  color: rgb(245,247,255);
}

body.sim-page header,
body.sim-page #trialStatusBanner {
  display: none !important;
}

body.sim-page .mode-select-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(37,99,235,0.24), transparent 34%),
    linear-gradient(135deg, #111827 0%, #0a0e1a 52%, #0a0e1a 100%);
}

body.sim-page:not(.mode-pending) .mode-select-screen {
  display: none;
}

body.sim-page.mode-pending .monitor-workspace,
body.sim-page.mode-pending .sim-paywall {
  display: none !important;
}

body.sim-page .mode-select-inner {
  width: min(1120px, 94vw);
}

body.sim-page .mode-select-heading {
  margin-bottom: 22px;
  text-align: center;
}

body.sim-page .mode-select-heading h1 {
  margin-top: 8px;
  font-size: 42px;
  line-height: 1.05;
  color: rgb(252,252,252);
}

body.sim-page .mode-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.sim-page .mode-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255,255,255,0.07);
  box-shadow: 0 24px 70px rgba(0,0,0,0.3);
  cursor: pointer;
}

body.sim-page .mode-card.locked {
  border-color: rgba(148,163,184,0.22);
  background: rgba(75,85,99,0.16);
  box-shadow: 0 16px 46px rgba(0,0,0,0.22);
}

body.sim-page .mode-card.locked > :not(.pro-lock-badge) {
  opacity: 0.46;
  filter: grayscale(1) saturate(0);
}

body.sim-page .mode-card.locked h2,
body.sim-page .mode-card.locked p,
body.sim-page .mode-card.locked .mode-card-kicker {
  color: rgba(226,232,240,0.58);
}

body.sim-page .mode-card.locked .pill-icon {
  background: linear-gradient(90deg, rgb(116,126,139) 0 50%, rgb(180,186,195) 50% 100%);
  box-shadow: none;
}

body.sim-page .mode-card.locked .mode-start-btn {
  background: rgba(100,116,139,0.34);
  border-color: rgba(148,163,184,0.2);
  color: rgba(241,245,249,0.72);
}

body.sim-page .mode-card-kicker,
body.sim-page .coming-soon-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191,219,254,0.82);
}

body.sim-page .coming-soon-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(26,26,46,0.72);
  color: rgb(255,229,144);
}

body.sim-page .pro-lock-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(226,232,240,0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15,23,42,0.78);
  color: rgb(241,245,249);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sim-page .pro-lock-badge::before {
  content: "";
  width: 9px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
  box-sizing: border-box;
}

body.sim-page .mode-card h2 {
  max-width: 260px;
  font-size: 28px;
  line-height: 1.08;
  color: rgb(252,252,252);
}

body.sim-page .mode-card p {
  min-height: 54px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}

body.sim-page .mode-difficulty {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

body.sim-page .pill-icon {
  width: 28px;
  height: 12px;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(151,213,174) 0 50%, rgb(245,247,255) 50% 100%);
  box-shadow: 0 0 14px rgba(151,213,174,0.24);
  transform: rotate(-18deg);
}

body.sim-page .mode-card button {
  width: 100%;
}

body.sim-page .mode-card button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

body.sim-page .monitor-workspace {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a0e1a;
  box-shadow: none;
}

body.sim-page .monitor-topbar {
  flex: 0 0 30px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 12px;
  background: rgba(38,38,60,0.92);
  color: rgba(245,247,255,0.84);
  font-size: 11px;
  font-weight: 700;
}

body.sim-page .sim-beta-banner {
  width: min(1480px, 94vw);
  margin: 8px auto 0;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fefce8;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

body.sim-page .sim-beta-banner[hidden] {
  display: none;
}

body.sim-page .sim-beta-dismiss {
  min-width: 24px !important;
  min-height: 24px !important;
  border: 1px solid rgba(146,64,14,0.25);
  border-radius: 999px;
  padding: 0 !important;
  background: rgba(255,255,255,0.68);
  color: #000000;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1;
}

body.sim-page .monitor-left-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.sim-page .shift-timer {
  white-space: nowrap;
}

body.sim-page .topbar-tool-btn {
  min-height: 22px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 3px 9px !important;
  background: rgba(255,255,255,0.07);
  color: rgba(245,247,255,0.86);
  font-size: 10px !important;
  font-weight: 700;
}

body.sim-page .mode-name {
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.sim-page .monitor-score {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

body.sim-page .phone-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(151,213,174,0.32);
  background: rgba(151,213,174,0.1);
  padding: 0 !important;
  min-height: 34px !important;
}

body.sim-page .phone-icon::before {
  content: "\260E";
  font-size: 20px;
  line-height: 1;
}

body.sim-page .phone-icon.ringing {
  border-color: rgba(255,216,90,0.76);
  background: rgba(255,216,90,0.22);
  animation: phonePulse 1s ease-in-out infinite;
}

@keyframes phonePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,216,90,0.28); }
  50% { box-shadow: 0 0 0 6px rgba(255,216,90,0); }
}

body.sim-page .sim-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 25% 50% 25% !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
  background: transparent;
}

body.sim-page .sim-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
}

body.sim-page .sim-profile-panel {
  border-right: 0;
}

body.sim-page .panel-heading,
body.sim-page .workspace-header {
  min-height: 46px !important;
  flex: 0 0 auto;
  align-items: center !important;
  margin: 0 !important;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

body.sim-page .workspace-header h1 {
  font-size: 20px !important;
  line-height: 1.05;
  color: rgb(252,252,252) !important;
}

body.sim-page .section-label {
  font-size: 9px !important;
  color: rgba(255,255,255,0.58) !important;
}

body.sim-page .queue-count {
  font-size: 10px !important;
}

body.sim-page .sim-card,
body.sim-page .workspace-card,
body.sim-page .profile-card,
body.sim-page .queue-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.sim-page .queue-card,
body.sim-page .profile-card,
body.sim-page .workspace-card {
  position: static !important;
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow: auto;
  padding: 10px !important;
}

body.sim-page .queue-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 8px;
}

body.sim-page .queue-tab {
  min-width: 0;
  min-height: 30px !important;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 5px 6px !important;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.62);
}

body.sim-page .queue-tab.active {
  border-color: rgba(59,130,246,0.46);
  background: rgba(59,130,246,0.24);
  color: rgb(252,252,252);
}

body.sim-page .queue-tab span,
body.sim-page .queue-tab strong {
  font-size: 9px !important;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.sim-page .queue-tab strong {
  min-width: 18px;
  border-radius: 999px;
  padding: 4px 5px;
  text-align: center;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

body.sim-page .queue-list,
body.sim-page .queue-section {
  gap: 6px;
}

body.sim-page .queue-section + .queue-section {
  margin-top: 10px;
  padding-top: 9px;
}

body.sim-page .queue-item {
  min-height: 62px;
  gap: 6px;
  border-color: rgba(255,255,255,0.08) !important;
  border-radius: 6px !important;
  padding: 8px !important;
  background: rgba(255,255,255,0.055) !important;
  color: rgb(252,252,252) !important;
}

body.sim-page .queue-patient {
  font-size: 13px !important;
}

body.sim-page .queue-drug {
  margin-top: 2px;
  font-size: 11px !important;
  line-height: 1.3;
}

body.sim-page .queue-tech,
body.sim-page .status-badge {
  font-size: 9px !important;
}

body.sim-page .status-badge {
  padding: 4px 6px;
}

body.sim-page .workflow-stepper {
  width: min(330px, 100%) !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

body.sim-page .step-pill {
  min-height: 26px !important;
  border-radius: 6px !important;
  font-size: 9px !important;
  padding: 4px;
}

body.sim-page .workspace-card,
body.sim-page #workspacePanel,
body.sim-page #workspacePanel .panel {
  font-size: 13px !important;
}

body.sim-page #workspacePanel .panel {
  gap: 10px;
}

body.sim-page .panel-title {
  font-size: 20px !important;
}

body.sim-page .panel-copy,
body.sim-page .rx-summary-line,
body.sim-page .field-value,
body.sim-page .clinical-detail,
body.sim-page .sig-translation,
body.sim-page .note-coach,
body.sim-page .insulin-calc-card,
body.sim-page .result-lines,
body.sim-page .metric-copy,
body.sim-page .promotion-copy,
body.sim-page .promotion-score {
  font-size: 13px !important;
  line-height: 1.35;
}

body.sim-page .profile-name {
  font-size: 20px !important;
  margin-bottom: 10px;
  color: rgb(252,252,252) !important;
}

body.sim-page .profile-grid,
body.sim-page .entry-grid,
body.sim-page .summary-strip,
body.sim-page .rx-script-grid {
  grid-template-columns: 1fr !important;
  gap: 7px;
}

body.sim-page .profile-field,
body.sim-page .confirmation-box,
body.sim-page .issue-box,
body.sim-page .rx-summary,
body.sim-page .result-card,
body.sim-page .workflow-section,
body.sim-page .med-search-tool,
body.sim-page .summary-item {
  border-radius: 6px !important;
  padding: 10px !important;
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(252,252,252,0.9) !important;
}

body.sim-page .field-label,
body.sim-page label,
body.sim-page .rx-summary-line strong,
body.sim-page .metric-title {
  font-size: 9px !important;
}

body.sim-page input,
body.sim-page select,
body.sim-page textarea {
  min-height: 36px !important;
  padding: 8px !important;
  font-size: 12px !important;
}

body.sim-page textarea {
  min-height: 104px !important;
}

body.sim-page button,
body.sim-page .primary-action,
body.sim-page .secondary-action {
  min-height: 36px !important;
  padding: 8px 12px !important;
  font-size: 11px !important;
}

body.sim-page .med-result,
body.sim-page .selected-med-card,
body.sim-page .ndc-option {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  container-type: inline-size;
}

body.sim-page .med-result *,
body.sim-page .selected-med-card *,
body.sim-page .ndc-option * {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  letter-spacing: 0 !important;
}

body.sim-page .med-result strong,
body.sim-page .selected-med-card strong,
body.sim-page .ndc-label {
  font-size: clamp(9px, 7cqw, 12px) !important;
  line-height: 1.25 !important;
}

body.sim-page .med-result span,
body.sim-page .selected-med-card span,
body.sim-page .ndc-maker,
body.sim-page .ndc-code {
  font-size: clamp(8px, 6cqw, 11px) !important;
  line-height: 1.25 !important;
}

body.sim-page .med-search-row {
  min-width: 0 !important;
}

body.sim-page .med-search-input {
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sim-page .shift-modal {
  background: rgba(18,18,28,0.82);
}

@media (max-width: 1023px) {
  body.sim-page {
    overflow: auto;
    background: #0a0e1a !important;
  }

  body.sim-page .monitor-workspace {
    position: static;
    width: 100%;
    min-height: 100vh;
    height: auto;
    box-shadow: none;
  }

  body.sim-page .sim-shell {
    min-height: calc(100vh - 30px);
    grid-template-columns: 1fr !important;
  }

  body.sim-page .sim-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  body.sim-page .queue-card,
  body.sim-page .profile-card,
  body.sim-page .workspace-card {
    overflow: visible;
  }

  body.sim-page .entry-workflow-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.sim-page .entry-reference-top,
  body.sim-page .entry-stage-scroll {
    height: auto;
    max-height: none;
    overflow: visible;
    resize: none;
  }

  body.sim-page .entry-reference-top .rx-summary {
    max-height: none;
  }

  body.sim-page .mode-card-grid {
    grid-template-columns: 1fr;
  }
}

/* noster unified dark theme */
body.sim-page {
  background: #0a0e1a !important;
  color: #ffffff !important;
}

body.sim-page .mode-select-screen {
  background:
    radial-gradient(circle at 50% 18%, rgba(37,99,235,0.26), transparent 34%),
    linear-gradient(135deg, #0a0e1a 0%, #111827 58%, #0a0e1a 100%) !important;
}

body.sim-page .monitor-workspace,
body.sim-page .sim-shell {
  background: #0a0e1a !important;
}

body.sim-page .monitor-topbar,
body.sim-page .panel-heading,
body.sim-page .workspace-header,
body.sim-page .mode-card,
body.sim-page .paywall-card,
body.sim-page .profile-field,
body.sim-page .queue-item,
body.sim-page .confirmation-box,
body.sim-page .issue-box,
body.sim-page .rx-summary,
body.sim-page .result-card,
body.sim-page .workflow-section,
body.sim-page .med-search-tool,
body.sim-page .summary-item,
body.sim-page .reference-lookup-card,
body.sim-page .reference-drug-card,
body.sim-page .shift-modal-card,
body.sim-page .accuracy-panel,
body.sim-page .competency-panel,
body.sim-page .verification-panel,
body.sim-page .communication-panel,
body.sim-page .promotion-panel,
body.sim-page .caller-card {
  background: #111827 !important;
  border-color: #1e2d4a !important;
  color: #ffffff !important;
}

body.sim-page .sim-panel,
body.sim-page .queue-section + .queue-section,
body.sim-page .rx-script-section,
body.sim-page .call-side-panel {
  border-color: #1e2d4a !important;
}

body.sim-page h1,
body.sim-page h2,
body.sim-page h3,
body.sim-page .workspace-header h1,
body.sim-page .profile-name,
body.sim-page .panel-title,
body.sim-page .queue-patient,
body.sim-page .field-value,
body.sim-page .rx-summary-line,
body.sim-page .mode-card h2,
body.sim-page .metric-title {
  color: #ffffff !important;
}

body.sim-page p,
body.sim-page .panel-copy,
body.sim-page .queue-drug,
body.sim-page .clinical-detail,
body.sim-page .metric-copy,
body.sim-page .promotion-copy,
body.sim-page .promotion-score,
body.sim-page .mode-card p,
body.sim-page .field-label,
body.sim-page label,
body.sim-page .section-label,
body.sim-page .queue-count,
body.sim-page .med-result span,
body.sim-page .selected-med-card span {
  color: #94a3b8 !important;
}

body.sim-page .section-label,
body.sim-page .queue-section-title,
body.sim-page .rx-script-heading,
body.sim-page .metric-title,
body.sim-page .mode-card-kicker {
  color: #3b82f6 !important;
}

body.sim-page .primary-action,
body.sim-page .step-pill.active,
body.sim-page .step-pill.complete,
body.sim-page .mode-card button:not(:disabled),
body.sim-page .queue-tab.active,
body.sim-page .topbar-tool-btn:active,
body.sim-page .topbar-tool-btn:focus-visible {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

body.sim-page .secondary-action,
body.sim-page .sim-account-link,
body.sim-page .queue-action,
body.sim-page .topbar-tool-btn,
body.sim-page .step-pill,
body.sim-page .queue-tab {
  background: transparent !important;
  border-color: #1e2d4a !important;
  color: #ffffff !important;
}

body.sim-page input,
body.sim-page select,
body.sim-page textarea,
body.sim-page .med-search-input,
body.sim-page .patient-search-input,
body.sim-page .reference-search-input {
  background: #0a0e1a !important;
  border-color: #1e2d4a !important;
  color: #ffffff !important;
}

body.sim-page input:focus,
body.sim-page select:focus,
body.sim-page textarea:focus,
body.sim-page .med-search-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18) !important;
}

body.sim-page .queue-item:active,
body.sim-page .queue-item:focus-visible,
body.sim-page .queue-item.active,
body.sim-page .med-result:hover,
body.sim-page .med-result:focus-visible,
body.sim-page .selected-med-card,
body.sim-page .ndc-option.selected,
body.sim-page .clinical-review-btn.selected {
  background: rgba(37,99,235,0.16) !important;
  border-color: #3b82f6 !important;
}

body.sim-page .phone-icon {
  background: rgba(37,99,235,0.16) !important;
  border-color: rgba(59,130,246,0.42) !important;
  color: #bfdbfe !important;
}

body.sim-page .promotion-bar span {
  background: linear-gradient(90deg, #2563eb, #0f172a) !important;
}

body.sim-page .accuracy-ring {
  background: conic-gradient(#2563eb var(--accuracy), rgba(148,163,184,0.16) 0) !important;
}

body.sim-page .accuracy-ring::before {
  background: #111827 !important;
}

/* Monitor layout: each column owns its own scroll area. */
body.sim-page:not(.mode-pending) .sim-panel {
  min-height: 0 !important;
  overflow: hidden !important;
}

body.sim-page:not(.mode-pending) .queue-card,
body.sim-page:not(.mode-pending) .workspace-card,
body.sim-page:not(.mode-pending) .profile-card {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable;
}

body.sim-page:not(.mode-pending) #workspacePanel,
body.sim-page:not(.mode-pending) #workspacePanel .panel,
body.sim-page:not(.mode-pending) #workspacePanel .split-panel {
  height: auto !important;
  min-height: min-content !important;
}

body.sim-page:not(.mode-pending) #workspacePanel .split-panel {
  display: flex !important;
  flex-direction: column !important;
}

body.sim-page:not(.mode-pending) #workspacePanel .panel-scroll-zone,
body.sim-page:not(.mode-pending) #workspacePanel .panel-static-zone,
body.sim-page:not(.mode-pending) .entry-reference-top,
body.sim-page:not(.mode-pending) .entry-stage-scroll {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body.sim-page:not(.mode-pending) #workspacePanel .panel-static-zone {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sim-page:not(.mode-pending) .product-workflow-panel {
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
  min-height: min-content !important;
}

body.sim-page:not(.mode-pending) .product-workflow-panel .med-result-list,
body.sim-page:not(.mode-pending) .product-workflow-panel .ndc-list {
  max-height: none !important;
  overflow: visible !important;
}

body.sim-page:not(.mode-pending) .product-workflow-panel .rx-summary {
  max-height: none !important;
  overflow: visible !important;
}

body.sim-page:not(.mode-pending) .entry-reference-top {
  padding-bottom: 12px;
}

body.sim-page:not(.mode-pending) .button-row,
body.sim-page:not(.mode-pending) .entry-stage-scroll .button-row {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin: 8px -10px -10px !important;
  padding: 10px !important;
  border-top: 1px solid #1e2d4a;
  background: rgba(10,14,26,0.96);
}
