/* Enhanced Quiz Question Component Styles */

.rmt-app .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Question Container Enhancements */
.question-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Quiz Layout Refresh */
.quiz-layout {
  min-width: 0;
  --quiz-primary: #1d4ed8;
  --quiz-teal: #0f766e;
  --quiz-amber: #f59e0b;
  --quiz-slate: #0f172a;
  --quiz-border: #e2e8f0;
  --quiz-soft-blue: #eff6ff;
  --quiz-soft-teal: #f0fdfa;
  --quiz-soft-amber: #fff7ed;
  --quiz-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: var(--quiz-slate);
}

.review-page {
  padding-bottom: 80px;
}

.rmt-app.rmt-app-review-content-route {
  --rmt-review-sticky-stop-top: var(--rmt-app-search-backdrop-top, 0px);
}

.review-page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.rmt-review-subnav {
  background: transparent;
}

.rmt-review-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0 0.45rem;
  flex-wrap: nowrap;
}

.rmt-review-command-row {
  width: min(100%, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  pointer-events: auto;
}

.rmt-review-tablist {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.rmt-review-tablist::-webkit-scrollbar {
  display: none;
}

.rmt-review-tablist .review-pill-tab {
  flex: 0 0 auto;
}

.rmt-review-command-row .rmt-review-tablist {
  justify-content: center;
  padding: 0;
}

.rmt-review-command-mobile {
  border-top: 0;
}

.rmt-review-mobile-banner-search,
.rmt-review-mobile-menu-toggle,
.rmt-review-mobile-case-ehr-slot {
  display: none;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-app-brand {
  gap: 0;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-app-brand-copy {
  display: none;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-logo-mark {
  width: 2.12rem;
  height: 2.12rem;
  margin-left: 0;
  border-radius: 0.62rem;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-search {
  display: block;
  min-width: 0;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-search .rmt-overlay-panel-search-bar-connected,
.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-search .rmt-overlay-panel-search-bar-connected.reserves-secondary {
  grid-template-columns: minmax(0, 1fr) 2.35rem;
  grid-template-rows: auto;
  min-height: 2.86rem;
  padding: 0.14rem 0.18rem 0.14rem 0.48rem;
  border-radius: 999px;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-search .rmt-overlay-panel-search-input {
  min-height: 2.35rem;
  padding-left: 0.22rem;
  font-size: 0.92rem;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-search .rmt-overlay-panel-search-secondary {
  display: none;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-search .rmt-overlay-panel-search-button-icon {
  width: 2.05rem;
  height: 2.05rem;
  font-size: 1rem;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-shell-header-actions {
  margin-left: 0;
  justify-self: end;
  display: none;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-shell-header-actions .rmt-auth-nav-desktop {
  display: none;
}

.rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-menu-toggle {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.72rem;
  height: 2.72rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.rmt-review-mobile-menu-toggle .bi {
  font-size: 1.35rem;
  line-height: 1;
}

.rmt-review-mobile-menu-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  width: 100vw;
  margin-right: calc(-1 * var(--rmt-shell-inline-pad));
  margin-left: calc(-1 * var(--rmt-shell-inline-pad));
  z-index: 1080;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.22rem;
  padding: 0.78rem var(--rmt-shell-inline-pad);
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 0 0 1rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
}

@media (max-width: 1199.98px) {
  .rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-frame {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: var(--rmt-shell-inline-pad);
    padding-left: var(--rmt-shell-inline-pad);
  }

  .rmt-app.rmt-app-review-content-route > .rmt-review-mobile-case-ehr-slot:not(:empty) {
    display: block;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .rmt-app.rmt-app-review-content-route > .rmt-review-mobile-case-ehr-slot:not(:empty) {
    position: sticky;
    top: var(--rmt-review-sticky-stop-top);
    z-index: 1039;
  }
}

.rmt-review-mobile-menu-section {
  display: grid;
  gap: 0.58rem;
}

.rmt-review-mobile-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rmt-review-mobile-menu-active {
  min-width: 0;
  max-width: 52%;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}

.rmt-review-mobile-menu-panel .rmt-review-tablist {
  width: 100%;
  flex-wrap: wrap;
  overflow-x: visible;
}

.rmt-review-mobile-menu-panel .rmt-listen-btn-subnav {
  width: 100%;
  justify-content: center;
}

.rmt-review-mobile-menu-panel .rmt-auth-nav-actions,
.rmt-review-mobile-menu-panel .rmt-auth-nav-actions form,
.rmt-review-mobile-menu-panel .rmt-auth-nav-primary {
  width: 100%;
}

.rmt-review-mobile-menu-panel .rmt-auth-nav-actions {
  justify-content: stretch !important;
}

@media (max-width: 1199.98px) {
  .rmt-review-subnav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .rmt-review-tablist {
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .rmt-app .rmt-listen-btn-subnav {
    margin-left: 0;
    align-self: flex-start;
  }
}

@media (min-width: 1200px) {
  .rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-app-brand {
    gap: var(--rmt-brand-gap);
  }

  .rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-app-brand-copy {
    display: inline-flex;
  }

  .rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-logo-mark {
    width: var(--rmt-brand-mark-size);
    height: var(--rmt-brand-mark-size);
    margin-left: calc(-1 * (var(--rmt-brand-mark-size) + var(--rmt-brand-gap)));
    border-radius: var(--rmt-brand-mark-radius);
  }

  .rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-banner-search,
  .rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-review-mobile-menu-toggle {
    display: none;
  }

  .rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-shell-header-actions .rmt-auth-nav-desktop {
    display: flex;
  }

  .rmt-app.rmt-app-review-content-route .rmt-app-header .rmt-shell-header-actions {
    display: flex;
  }
}

.review-pill-tab.is-locked {
  color: #64748b;
}

.review-pill-tab .tab-lock-icon {
  font-size: 0.72rem;
  opacity: 0.72;
}

.rmt-app .rmt-listen-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.92));
  color: #0b5ed7;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(29, 78, 216, 0.12);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-listen-btn:hover,
.rmt-app .rmt-listen-btn:focus-visible {
  border-color: rgba(13, 110, 253, 0.28);
  background: linear-gradient(180deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 0.96));
  color: #084298;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(29, 78, 216, 0.12);
  transform: translateY(-1px);
}

.rmt-app .rmt-listen-btn:disabled {
  opacity: 0.68;
  box-shadow: none;
  transform: none;
}

.rmt-app .rmt-listen-btn .rmt-listen-label {
  white-space: nowrap;
}

.rmt-app .rmt-listen-btn-subnav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--rmt-review-menu-control-min-height, 2.75rem);
  margin-left: 0;
}

.rmt-app .rmt-listen-btn-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: var(--rmt-review-menu-control-min-height, 2.75rem);
}

.rmt-app .rmt-overlay-listen-btn {
  box-shadow: none;
}


.rmt-app-brand {
  min-width: 0;
  max-width: min(52vw, 42rem);
}

.rmt-app-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.rmt-app-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmt-app-brand-alias {
  min-width: 0;
  display: block;
  color: var(--rmt-muted, #6b7280);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-page-guidance {
  max-width: 72ch;
}

.review-podcast-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-podcast-kicker {
  letter-spacing: 0.11em;
  color: #0f766e;
}

.review-podcast-provider {
  color: #1e3a8a;
}

.review-podcast-description {
  max-width: 68ch;
}

.review-podcast-audio {
  min-width: 0;
  display: block;
  border-radius: 8px;
}

.review-podcast-controls {
  padding: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.review-podcast-control-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.review-podcast-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 5rem;
  min-height: 2.15rem;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.review-podcast-control-button:hover,
.review-podcast-control-button:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: #ecfdf5;
  color: #0f172a;
}

.review-podcast-rate-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  margin: 0;
}

.review-podcast-rate-label .form-select {
  width: 4.75rem;
  min-height: 2.15rem;
  border: 0;
  background-color: transparent;
  box-shadow: none;
}

.review-podcast-modal-content {
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.review-podcast-modal-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
  padding: 1.1rem 1.25rem;
}

.review-podcast-title-block {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.review-podcast-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem 1.2rem;
}

.review-podcast-player-surface {
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(15, 23, 42, 0.08);
}

.review-podcast-autoplay-note {
  border: 1px solid rgba(71, 85, 105, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.review-podcast-error {
  border-color: rgba(180, 83, 9, 0.22);
  background: #fffbeb;
}

.review-podcast-loading {
  min-height: 1.25rem;
}

.review-support-layout {
  --review-support-rail-width: clamp(420px, 34vw, 540px);
  --review-support-rail-sticky-top: 103px;
  --review-ehr-rail-head-offset: 3.45rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-support-primary,
.review-support-main,
.review-support-after-main,
.review-support-rail {
  min-width: 0;
}

.review-support-primary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-workspace-header {
  margin-bottom: 1rem;
}

.rmt-app.rmt-app-review-content-route .quiz-workspace-header.review-workspace-header-has-controls .review-workspace-header-row {
  justify-content: space-between;
  gap: 0.8rem;
}

.rmt-app.rmt-app-review-content-route .quiz-workspace-header.review-workspace-header-has-controls .review-workspace-header-body {
  flex: 1 1 auto;
  width: auto;
}

.rmt-app.rmt-app-review-content-route .quiz-workspace-header .review-workspace-header-controls {
  margin-left: auto;
}

.review-workspace-header-with-aside {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-workspace-header-body {
  min-width: 0;
  max-width: 34rem;
}
.review-workspace-header-body-fluid {
  max-width: none;
}

.review-workspace-header-title {
  line-height: 1.2;
}

.review-workspace-header-copy {
  line-height: 1.55;
}

.review-workspace-header-aside {
  flex-shrink: 0;
}

.review-support-main {
  border: 1px solid rgba(226, 214, 187, 0.92);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(251, 248, 240, 0.92) 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.review-support-mobile-rail {
  min-width: 0;
}

.review-mobile-chart-reference {
  --review-mobile-chart-reference-head-bg: #faf4ea;
  --review-mobile-chart-reference-head-bg-hover: #f7efe3;
  --review-mobile-chart-reference-body-bg: #fbf8f0;
  --review-mobile-chart-reference-border: rgba(211, 191, 157, 0.92);
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--review-mobile-chart-reference-border);
  border-radius: 0;
  background: var(--review-mobile-chart-reference-head-bg);
  box-shadow: none;
}

.review-mobile-chart-reference.flash {
  animation: ehrFlash 0.6s ease-out;
}

.review-mobile-chart-reference-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.58rem;
  width: 100%;
  min-height: var(--rmt-review-menu-control-min-height, 2.75rem);
  padding: 0.24rem 0.72rem;
  border: 0;
  background: var(--review-mobile-chart-reference-head-bg);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.review-mobile-chart-reference-title-row {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  flex: 1 1 auto;
  min-width: 0;
}

.review-mobile-chart-reference-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 0.7rem;
  background: #f0fdfa;
  border: 1px solid #a7f3d0;
  color: #0f766e;
}

.review-mobile-chart-reference-title {
  margin: 0;
  min-width: 0;
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.review-mobile-chart-reference-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 4rem;
  height: 2.2rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(29, 78, 216, 0.32);
  border-radius: 0.55rem;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(29, 78, 216, 0.18);
  pointer-events: none;
}

.review-mobile-chart-reference.is-open .review-mobile-chart-reference-head,
.review-mobile-chart-reference-head:hover,
.review-mobile-chart-reference-head:focus-visible {
  background: var(--review-mobile-chart-reference-head-bg-hover);
}

.review-mobile-chart-reference-head:hover .review-mobile-chart-reference-toggle,
.review-mobile-chart-reference-head:focus-visible .review-mobile-chart-reference-toggle {
  background: #1e40af;
  color: #ffffff;
}

.review-mobile-chart-reference-head:focus-visible {
  outline: 3px solid rgba(147, 197, 253, 0.85);
  outline-offset: -3px;
}

.review-mobile-chart-reference-body {
  border-top: 1px solid rgba(226, 214, 187, 0.92);
  height: var(--review-mobile-chart-reference-body-height, min(62dvh, 34rem));
  overflow-y: auto;
  padding: 0.78rem 0.8rem 0.85rem;
  background: var(--review-mobile-chart-reference-body-bg);
}

.review-mobile-chart-reference-body .quiz-ehr-sidecar {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.quiz-header-card {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--quiz-soft-blue) 0%, var(--quiz-soft-teal) 55%, #ffffff 100%);
  box-shadow: var(--quiz-shadow);
}

.quiz-header-title {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.quiz-header-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

.quiz-preview-banner {
  border: 1px solid #ddd6fe;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8f5ff 0%, #fff7ed 100%);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.08);
  padding: 1rem 1.15rem;
}

.quiz-preview-eyebrow {
  color: #5b21b6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-preview-title {
  color: #312e81;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.quiz-preview-copy {
  color: #57534e;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.quiz-type-pill {
  background: linear-gradient(90deg, #e0f2fe 0%, #ede9fe 100%);
  color: var(--quiz-primary);
  border: 1px solid #bfdbfe;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.quiz-progress-bar {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  overflow: hidden;
}

.quiz-explanation-toggle {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.quiz-question-title {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--quiz-slate);
}

.quiz-question-stem {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  overflow-wrap: anywhere;
}

.quiz-instructions {
  font-size: 0.9rem;
  color: #475569;
}

.quiz-choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.quiz-choice {
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--quiz-border);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.quiz-choice:hover:not(:disabled) {
  border-color: var(--quiz-primary);
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.18);
  transform: translateY(-1px);
}

.quiz-choice:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.quiz-choice-selected {
  border-color: var(--quiz-primary);
  background: var(--quiz-soft-blue);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.12);
}

.quiz-choice-correct {
  border-color: #16a34a;
  background: #ecfdf3;
}

.quiz-choice-incorrect {
  border-color: #dc2626;
  background: #fef2f2;
}

.quiz-choice-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.quiz-choice-badge {
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #e0f2fe;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  flex-shrink: 0;
}

.quiz-choice-text {
  flex: 1;
  overflow-wrap: anywhere;
}

.quiz-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quiz-choice-missed {
  border-color: #f59e0b;
  background: #fffbeb;
}

.quiz-choice-inline-rationale {
  margin-left: 2.75rem;
}

.quiz-inline-rationale-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quiz-inline-rationale {
  border: 1px solid var(--quiz-border);
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.8rem 0.95rem;
}

.quiz-inline-rationale-compact {
  padding: 0.7rem 0.85rem;
}

.quiz-inline-rationale-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.3rem;
}

.quiz-inline-rationale-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.quiz-inline-rationale-copy {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
  overflow-wrap: anywhere;
}

.quiz-inline-rationale-correct {
  border-color: rgba(22, 163, 74, 0.28);
  background: #f0fdf4;
}

.quiz-inline-rationale-incorrect {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fef2f2;
}

.quiz-inline-rationale-missed {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fffbeb;
}

.quiz-inline-rationale-neutral {
  border-color: rgba(148, 163, 184, 0.24);
  background: #f8fafc;
}

.quiz-table-question {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.quiz-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.6rem;
}

.quiz-table-header-cell,
.quiz-table-cell,
.quiz-table-finding {
  border: 1px solid var(--quiz-border);
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  vertical-align: middle;
  background: #ffffff;
}

.quiz-table-header-cell {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  text-align: center;
}

.quiz-table-header-finding,
.quiz-table-finding {
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
}

.quiz-table-cell {
  text-align: center;
  min-width: 120px;
}

.quiz-table-cell-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin: 0;
}

.quiz-table-col-0 {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.quiz-table-col-1 {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.quiz-table-col-2 {
  background: #fff7ed;
  border-color: #fed7aa;
}

.quiz-table-header-cell.quiz-table-col-0 {
  background: #dbeafe;
}

.quiz-table-header-cell.quiz-table-col-1 {
  background: #ccfbf1;
}

.quiz-table-header-cell.quiz-table-col-2 {
  background: #ffedd5;
}

.quiz-table-cell-selected {
  box-shadow: inset 0 0 0 2px var(--quiz-primary);
}

.quiz-table-cell-correct {
  box-shadow: inset 0 0 0 2px #16a34a;
}

.quiz-table-cell-incorrect {
  box-shadow: inset 0 0 0 2px #dc2626;
}

.quiz-table-row {
  border: none;
}

.quiz-table-cell {
  vertical-align: top;
}

.quiz-table-cell-review {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
}

.quiz-table-cell-status-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.quiz-table-cell-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.quiz-table-cell-status-correct {
  background: #dcfce7;
  color: #166534;
}

.quiz-table-cell-status-missed {
  background: #fef3c7;
  color: #92400e;
}

.quiz-table-cell-status-incorrect {
  background: #fee2e2;
  color: #991b1b;
}

.quiz-table-cell-status-neutral {
  background: #e2e8f0;
  color: #334155;
}

.quiz-table-cell-rationale {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #334155;
  overflow-wrap: anywhere;
}

.quiz-highlighter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-highlighter-card {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--quiz-shadow);
  padding: 1rem;
}

.quiz-highlighter-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.quiz-highlighter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #475569;
}

.quiz-highlighter-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quiz-highlighter-legend-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.3rem;
  display: inline-block;
}

.quiz-highlighter-notes {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
  color: #0f172a;
  white-space: pre-wrap;
}

.quiz-highlighter-token {
  background: none;
  border: none;
  padding: 0 0.14rem;
  margin: 0;
  font: inherit;
  color: inherit;
  border-radius: 0.3rem;
  cursor: pointer;
}

.quiz-highlighter-token:disabled {
  cursor: default;
}

.quiz-highlighter-token-selected {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4);
}

.quiz-highlighter-token-correct {
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.quiz-highlighter-token-missed {
  color: #b45309;
  background: rgba(245, 158, 11, 0.18);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.45);
}

.quiz-highlighter-token-incorrect {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.45);
}

.quiz-highlighter-text {
  white-space: pre-wrap;
}

.quiz-highlighter-rationales {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.review-stats-card {
  border: 1px solid #e5e7eb;
}

.review-stat {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.review-stat-primary {
  background: #f5faff;
  border-color: #dbeafe;
}

.review-stat-warning {
  background: #fffaf0;
  border-color: #ffe5b4;
}

.review-stat-success {
  background: #f5fff6;
  border-color: #cdeecd;
}

/* ---- Pill tab navigation (review shell) ---- */
/* ---- Pill tab navigation (review shell) ---- */
.review-pill-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  min-height: var(--rmt-review-menu-control-min-height, 2.75rem);
  padding: 0.48rem 0.62rem;
  font-weight: 600;
  font-size: 0.76rem;
  color: #64748b;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.review-pill-tab:hover {
  background: #f1f5f9;
  color: #334155;
}
.review-pill-tab i { font-size: 0.8rem; }
.review-pill-tab.active {
  background: var(--quiz-slate, #0f172a);
  color: #ffffff;
  border-color: var(--quiz-slate, #0f172a);
  font-weight: 700;
}
.review-pill-tab.active:hover { background: #1e293b; }
@media (max-width: 575px) {
  .review-page-actions {
    justify-content: flex-start;
  }

  .review-podcast-card-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-podcast-meta {
    align-items: flex-start;
  }

  .rmt-review-subnav-inner {
    flex-wrap: wrap;
  }

  .rmt-review-tablist {
    flex: 1 1 auto;
    gap: 0.42rem;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .rmt-review-tablist::-webkit-scrollbar {
    display: none;
  }

  .review-pill-tab {
    justify-content: center;
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 2.35rem;
    padding: 0.42rem 0.58rem;
    font-size: 0.78rem;
    line-height: 1.12;
    white-space: nowrap;
    text-align: center;
  }
  .review-pill-tab .tab-label-text {
    display: inline;
  }
  .review-pill-tab i { font-size: 0.92rem; }
  .review-pill-tab .tab-lock-icon {
    position: static;
    flex: 0 0 auto;
    margin-left: 0.02rem;
    font-size: 0.62rem;
    line-height: 1;
  }
}

/* ---- Scenario (inline teal container) ---- */
.review-scenario-inline {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 0.625rem;
  padding: 0.875rem 1.125rem;
}
.review-scenario-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f766e;
}

/* ---- EHR manila folder tabs ---- */
.ehr-folder-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 0.25rem;
  position: relative;
  z-index: 2;
}
.ehr-folder-tab {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem 0.35rem;
  font-weight: 600;
  font-size: 0.78rem;
  color: #64748b;
  background: #eee9df;
  border: 1px solid #d5cfc4;
  border-bottom: none;
  border-radius: 0.6rem 0.6rem 0 0;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  margin-right: -1px;
  margin-bottom: -1px;
}
.ehr-folder-tab:hover { background: #f5f0e6; color: #334155; }
.ehr-folder-tab.active {
  background: #ffffff;
  color: var(--quiz-slate, #0f172a);
  border-color: #c9bda8;
  z-index: 3;
  font-weight: 700;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
}
.ehr-folder-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}
.ehr-folder-body {
  background: #ffffff;
  border: 1px solid #c9bda8;
  border-radius: 0 0.6rem 0.6rem 0.6rem;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}
.ehr-folder-body .table { font-size: 0.85rem; }
.ehr-folder-body .fw-semibold { font-size: 0.9rem; color: #1e293b; }

.review-section-panel {
  margin-top: 1rem;
}

.review-section-locked {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-color: rgba(95, 88, 184, 0.2);
  background:
    radial-gradient(circle at top left, rgba(139, 129, 219, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
}

.review-section-locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #5f58b8;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(95, 88, 184, 0.2);
}

.review-section-locked-copy {
  min-width: 0;
}

.review-section-locked-eyebrow {
  margin-bottom: 0.25rem;
  color: #5f58b8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-section-locked-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .review-section-locked {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .review-section-locked-actions {
    justify-content: center;
    width: 100%;
  }
}

.review-section {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: var(--quiz-shadow);
}

.review-clinical-layout,
.review-strategies-layout,
.review-careplan-layout,
.review-quiz-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-study-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-study-layout .review-support-main {
  display: flex;
  flex-direction: column;
}

.review-clinical-header-card {
  padding: 1.25rem;
}

.review-study-card {
  border: 1px solid #dbe7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  scroll-margin-top: 6.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.review-study-card.is-highlighted {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18), 0 16px 34px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.review-study-card .card-body {
  padding: 1rem;
}

.review-study-card ul {
  padding-left: 1rem;
}

.review-study-card li + li {
  margin-top: 0.45rem;
}

.review-careplan-header-card {
  padding: 1.25rem;
}

.review-clinical-scenario-card {
  margin: 0;
}

.review-clinical-summary-card .card-body {
  padding: 1rem;
}

.review-careplan-summary-card .card-body {
  padding: 1rem;
}

.review-clinical-card {
  border: 1px solid var(--quiz-border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.review-clinical-step {
  border: 1px solid rgba(203, 213, 225, 0.88);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border-radius: 0.72rem;
  overflow: hidden;
}

.clinical-practice-row {
  display: flex;
  align-items: flex-start;
  gap: 0.68rem;
  padding: 0.88rem 0.95rem;
}
.review-clinical-adpie-badge {
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  color: #1e293b;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  width: 2rem;
}
.review-clinical-adpie-badge.phase-assessment {
  background: #f0fdfa;
  border-color: #c7eee9;
  color: #0f766e;
}
.review-clinical-adpie-badge.phase-diagnosis {
  background: #fffdf5;
  border-color: #eedebc;
  color: #92400e;
}
.review-clinical-adpie-badge.phase-planning {
  background: #faf8ff;
  border-color: #ded8f3;
  color: #6d28d9;
}
.review-clinical-adpie-badge.phase-implementation {
  background: #f7fdf9;
  border-color: #d1ead9;
  color: #166534;
}
.review-clinical-adpie-badge.phase-evaluation {
  background: #fff8fc;
  border-color: #efd6e4;
  color: #be185d;
}
.review-clinical-flow {
  display: grid;
  gap: 0.58rem;
}
.review-clinical-flow-block {
  display: grid;
  gap: 0.2rem;
}
.review-clinical-flow-label {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}
.review-clinical-flow-list {
  padding-left: 1.15rem;
}

.review-clinical-flow-list li::marker {
  color: #0f766e;
  font-size: 0.72em;
}

.review-clinical-flow-list li + li {
  margin-top: 0.16rem;
}

.review-ehr-rail {
  min-width: 0;
}

.review-ehr-rail-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: none;
  margin: 0 0 0.75rem;
  padding: 0.68rem 0.75rem 0.62rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.review-ehr-rail-head .bi {
  font-size: 0.95rem;
}

.review-ehr-rail-title {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.35;
}

.review-case-chart-stack {
  display: grid;
  gap: 0.75rem;
}

.review-case-chart-section {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #ffffff;
  overflow: hidden;
}

.review-case-chart-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
  list-style: none;
  background: #f8fafc;
}

.review-case-chart-summary::-webkit-details-marker {
  display: none;
}

.review-case-chart-summary:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

.review-case-chart-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #bbf7d0;
  flex-shrink: 0;
}

.review-case-chart-summary-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.review-case-chart-summary-title {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.review-case-chart-summary-subtitle {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

.review-case-chart-chevron {
  margin-left: auto;
  color: #64748b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.review-case-chart-section[open] .review-case-chart-chevron {
  transform: rotate(180deg);
}

.review-case-chart-body {
  padding: 0.85rem;
}

.review-case-chart-scenario {
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.55;
}

.case-ehr-reference-target {
  scroll-margin-top: 5rem;
  scroll-margin-bottom: 5rem;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.case-ehr-reference-target-active {
  border-radius: 0.5rem;
  background: #fef3c7 !important;
  box-shadow:
    0 0 0 2px rgba(245, 158, 11, 0.42),
    0 8px 18px rgba(146, 64, 14, 0.12);
}

td.case-ehr-reference-target-active {
  box-shadow:
    inset 0 0 0 2px rgba(245, 158, 11, 0.5),
    0 8px 18px rgba(146, 64, 14, 0.1);
}

.review-ehr-rail .ehr-folder-body {
  overflow-x: auto;
}

/* ---- Clinical summary card ---- */
.clinical-summary-card {
  border: 1px solid #dbe7ff;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.careplan-summary-card {
  border: 1px solid #d1edd9;
  background: linear-gradient(135deg, #f7fdf9 0%, #edf7f0 100%);
}

/* ---- Care Plan: ADPIE layout ---- */
.careplan-content-area {
  padding: 0.75rem 0;
  line-height: 1.65;
}

.careplan-description-row,
.careplan-context-row {
  border-bottom: 1px solid #d1edd9;
  padding-bottom: 0.75rem;
}

.careplan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}

.review-careplan-tab-description,
.review-strategy-tab-description {
  max-width: none;
  line-height: 1.5;
}

.review-careplan-tablist,
.review-strategy-tablist {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 0.55rem;
  background: #f8fafc;
}

.review-careplan-tab,
.review-strategy-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.42rem 0.7rem;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.review-careplan-tab:hover,
.review-strategy-tab:hover {
  color: #1e40af;
  background: #eff6ff;
}

.review-careplan-tab:focus-visible,
.review-strategy-tab:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.review-careplan-tab.is-active,
.review-strategy-tab.is-active {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.review-careplan-sections {
  display: grid;
  gap: 0.62rem;
}

.review-careplan-practice-list {
  padding-left: 1.15rem;
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.review-careplan-practice-list li + li {
  margin-top: 0.45rem;
}

.review-careplan-practice-list li::marker {
  color: #0f766e;
  font-size: 0.72em;
}

.review-careplan-inline-answer {
  background: #fbfefa;
  border: 1px solid #d9ead4;
  border-radius: 0.58rem;
  color: #243126;
  padding: 0.42rem 0.56rem;
}

.review-careplan-inline-answer + .review-careplan-inline-answer {
  margin-top: 0.35rem;
}

.review-careplan-inline-answer-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #eff8ed;
  border: 1px solid #cde5c9;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  vertical-align: middle;
}

.review-careplan-evidence-groups {
  display: grid;
  gap: 0.55rem;
}

.review-careplan-evidence-source {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.2rem;
}

.review-careplan-evidence-list {
  margin: 0;
  padding-left: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  list-style: none;
}

.review-careplan-evidence-item {
  display: grid;
  grid-template-columns: 0.45rem minmax(0, 1fr);
  column-gap: 0.45rem;
  align-items: start;
}

.review-careplan-evidence-item::before {
  content: "";
  width: 0.28rem;
  height: 0.28rem;
  margin-top: 0.58em;
  border-radius: 999px;
  background: #64748b;
}

.review-careplan-evidence-item + .review-careplan-evidence-item {
  margin-top: 0.25rem;
}

.careplan-meta-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
}

.careplan-meta-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.78);
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.12rem 0.4rem;
}

.careplan-evidence-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1d4ed8;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
}

.careplan-evidence-link:hover {
  color: #1e40af;
}

.careplan-evidence-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.careplan-evidence-link .bi {
  font-size: 0.72rem;
  margin-left: 0.25rem;
}

.careplan-evidence-static-item {
  color: #334155;
  font-weight: 600;
}

.review-careplan-section {
  border: 1px solid rgba(203, 213, 225, 0.88);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0.72rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 0.88rem 0.95rem;
}

.review-careplan-section-content {
  min-width: 0;
}

.review-careplan-section-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  line-height: 1.25;
}

.review-careplan-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: currentColor;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.review-careplan-fallback-callout {
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  padding: 0.88rem 0.95rem;
}

/* ADPIE section badge colors */
.section-badge-assessment { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }
.section-badge-diagnosis  { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.section-badge-planning   { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.section-badge-implementation { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.section-badge-evaluation { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }

/* Diagnosis items */
.diagnosis-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
}
.diagnosis-item + .diagnosis-item {
  border-top: 1px solid #f1f5f9;
}
.diagnosis-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* SMART goal items */
.smart-goal-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
}
.smart-goal-item + .smart-goal-item {
  margin-top: 0.5rem;
}

.implementation-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
}

.implementation-step-order {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Intervention items */
.intervention-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
}
.intervention-item + .intervention-item {
  margin-top: 0.5rem;
}
.intervention-rationale {
  background: #f8fafc;
  border-left: 3px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 0.5rem;
}

.evaluation-outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
}

.careplan-ehr-column-head {
  color: #6b7280;
}

/* EHR cue badge (clickable, links diagnosis to chart data) */
.ehr-cue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-right: 0.3rem;
  margin-bottom: 0.2rem;
}
.ehr-cue-badge:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.18);
  transform: translateY(-1px);
}
.ehr-cue-badge:active {
  transform: translateY(0);
}
.ehr-cue-badge .bi-box-arrow-up-right {
  font-size: 0.6rem;
  opacity: 0.65;
}

/* EHR panel flash highlight */
@keyframes ehrFlash {
  0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}
.ehr-panel.flash {
  animation: ehrFlash 0.6s ease-out;
}

.review-strategy-details summary {
  cursor: pointer;
}

.review-strategy-summary-fallback {
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.review-nursing-process-list {
  display: flex;
  flex-direction: column;
}

.review-nursing-process-step {
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
}

.review-nursing-process-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.review-nursing-process-step:last-child {
  padding-bottom: 0;
}

.review-nursing-process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.review-nursing-process-inline-label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.review-nursing-process-detail-label {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.review-nursing-process-strategies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.review-nursing-process-strategy-chip,
.review-nursing-process-use-first-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid;
  padding: 0.22rem 0.52rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
  cursor: default;
  user-select: text;
}

.review-nursing-process-strategy-chip {
  border-color: #ccfbf1;
  background: #f8fffd;
  color: #0f766e;
}

.review-nursing-process-use-first-chip {
  border-color: #ccfbf1;
  background: #f8fffd;
  color: #0f766e;
  font-weight: 400;
}

.review-nursing-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr) minmax(0, 1.15fr);
  gap: 0.85rem;
  margin-left: calc(2rem + 1rem);
}

@media (max-width: 767.98px) {
  .review-nursing-process-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
}

@media (max-width: 991.98px) {
  .review-clinical-layout,
  .review-strategies-layout,
  .review-careplan-layout,
  .review-quiz-layout {
    gap: 0.85rem;
  }

  .review-study-layout {
    gap: 0.85rem;
  }

  .review-careplan-layout {
    gap: 0.85rem;
  }

  .review-clinical-header-card,
  .review-careplan-header-card,
  .review-clinical-summary-card .card-body,
  .review-careplan-summary-card .card-body,
  .review-clinical-scenario-card .card-body {
    padding: 0.95rem;
  }

  .review-clinical-summary-card .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.85rem;
  }

  .review-careplan-summary-card .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.85rem;
  }

  .review-clinical-flow-list {
    padding-left: 1rem;
  }

  .review-workspace-header-body,
  .review-ehr-rail-head {
    max-width: none;
  }
}

.strategy-pills-section {
  border: 1px solid var(--quiz-border);
  border-radius: 0.72rem;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.strategy-pills-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--quiz-border);
  background: #f8fafc;
}
.strategy-pills-body {
  padding: 0.85rem 0.9rem 0.95rem;
}

/* Show/Hide toggle labels (shared) */
.toggle-label {
  color: var(--quiz-primary, #1d4ed8);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.strategy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--quiz-border);
  background: #f8fafc;
  color: var(--quiz-slate);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.strategy-pill:hover,
.strategy-pill:focus-visible {
  background: var(--quiz-primary);
  color: #ffffff;
  border-color: var(--quiz-primary);
}

.strategy-pill i {
  font-size: 0.9rem;
}

/* ---- Study reference table inside strategy cards ---- */
.study-ref-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--quiz-border);
  border-radius: 0.65rem;
  overflow: hidden;
}
.study-ref-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--quiz-border);
}
.study-ref-table tbody td {
  padding: 0.5rem 0.65rem;
  color: var(--quiz-slate);
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.study-ref-table tbody tr:last-child td {
  border-bottom: none;
}
.study-ref-strategy-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--quiz-primary);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.study-ref-strategy-link:hover {
  text-decoration: underline;
}
.study-ref-strategy-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.study-ref-strategy-copy {
  color: #475569;
  line-height: 1.45;
}
.study-ref-strategy-points {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.1rem;
  padding-left: 1rem;
}
.study-ref-strategy-points li + li {
  margin-top: 0.18rem;
}
.study-ref-strategy-points li::marker {
  color: #94a3b8;
}
.ehr-tab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.ehr-tab-badge-button {
  appearance: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ehr-tab-badge-button:hover,
.ehr-tab-badge-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.ehr-tab-badge-button:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: 2px;
}
.ehr-tab-badge-vitals { background: #fef3c7; color: #92400e; }
.ehr-tab-badge-notes  { background: #dbeafe; color: #1e40af; }
.ehr-tab-badge-labs   { background: #d1fae5; color: #065f46; }
.ehr-tab-badge-meds   { background: #ede9fe; color: #5b21b6; }
.ehr-tab-badge-orders { background: #fce7f3; color: #9d174d; }

.strategy-key-takeaway {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

.strategy-key-takeaway .bi-lightbulb-fill {
  color: #eab308;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* ---- EHR click hint ---- */
.ehr-click-hint {
  color: #64748b;
  font-style: italic;
}

.strategy-modal-case-callout {
  border: 1px solid #bfdbfe;
  border-radius: 0.65rem;
  background: #eff6ff;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
}

.strategy-modal-case-callout-header {
  font-weight: 700;
  font-size: 0.82rem;
  color: #1e40af;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.strategy-modal-case-callout-body {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.5;
}

.strategy-modal-case-callout-evidence {
  margin-top: 0.35rem;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: #475569;
}

.strategy-modal-case-callout-evidence li + li {
  margin-top: 0.2rem;
}

.study-guide-sidecar {
  border: 1px solid #e8d5b0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff7e6 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.study-guide-sidecar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.study-guide-lens-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.study-guide-lens-section {
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.study-guide-lens-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.study-guide-lens-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.study-guide-lens-mark-primary {
  background: #f0fdfa;
  color: #0f766e;
}

.study-guide-lens-mark-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.study-guide-lens-mark-danger {
  background: #fef2f2;
  color: #b91c1c;
}

.study-guide-lens-mark-warning {
  background: #fff7ed;
  color: #b45309;
}

.study-guide-lens-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

.study-guide-lens-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.study-guide-lens-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.5;
}

.study-guide-lens-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.study-guide-lens-dot-info {
  background: #60a5fa;
}

.study-guide-lens-dot-danger {
  background: #f87171;
}

.study-guide-lens-dot-warning {
  background: #f59e0b;
}

.study-guide-focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.study-guide-focus-link {
  display: block;
  padding: 0.2rem 0 0.2rem 0.65rem;
  border-left: 2px solid rgba(29, 78, 216, 0.18);
  color: #334155;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.study-guide-focus-link-title,
.study-guide-focus-link-detail {
  display: inline;
}

.study-guide-focus-link-title {
  color: #1d4ed8;
  font-weight: 700;
}

.study-guide-focus-link-title::after {
  content: ": ";
  color: #64748b;
  font-weight: 600;
}

.study-guide-focus-link-detail {
  color: #334155;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}

.study-guide-focus-link:hover,
.study-guide-focus-link.is-active {
  border-left-color: #60a5fa;
  background: rgba(239, 246, 255, 0.52);
  color: #1e293b;
  text-decoration: none;
}

.study-guide-focus-link:hover .study-guide-focus-link-title,
.study-guide-focus-link.is-active .study-guide-focus-link-title {
  color: #1e3a8a;
}

@media (min-width: 1200px) {
  .study-guide-lens-grid {
    grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.study-guide-sidecar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.study-guide-sidecar-stat {
  border: 1px solid #e8d5b0;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.8rem 0.9rem;
}

.study-guide-sidecar-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #92400e;
  line-height: 1;
}

.study-guide-sidecar-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78716c;
}

.study-guide-sidecar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.study-guide-sidecar-item {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.study-guide-sidecar-item:first-child {
  border-top: none;
  padding-top: 0;
}

.study-guide-sidecar-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
}

.study-guide-sidecar-item-copy {
  margin-top: 0.3rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #475569;
}

.study-guide-support-panel {
  width: 100%;
  margin-bottom: 1rem;
}

.review-strategy-details summary::-webkit-details-marker {
  display: none;
}

.review-strategy-details summary::marker {
  content: "";
}

.ehr-panel-body {
  overflow: visible;
  padding-bottom: 1rem;
}

.ehr-panel {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  background: #fff7e6;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.ehr-panel .nav-tabs {
  border-bottom-color: var(--quiz-border);
}

.ehr-panel .nav-tabs .nav-link {
  color: #475569;
}

.ehr-panel .nav-tabs .nav-link.active {
  color: var(--quiz-primary);
  border-color: transparent transparent var(--quiz-primary) transparent;
}

.strategy-modal .modal-header {
  border-bottom-color: var(--quiz-border);
}

.strategy-modal .modal-body {
  padding: 1.25rem;
}

.strategy-modal .strategy-modal-meta {
  border-top: 1px solid var(--quiz-border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .review-page {
    padding-bottom: 120px;
  }
}

@media (min-width: 1200px) {
  .study-guide-sidecar {
    position: sticky;
    top: 60px;
    align-self: start;
  }

  .study-guide-support-panel {
    position: static;
    top: auto;
    align-self: stretch;
  }

  .review-page-guidance {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-flip-inner {
    transition: none;
  }
}

.quiz-question-surface {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  min-height: 0;
}

.quiz-question-content {
  min-width: 0;
  min-height: 0;
}

.quiz-strategies-surface {
  margin-bottom: 1rem;
}

.quiz-footer-panel {
  position: sticky;
  bottom: 0;
  z-index: 5;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
}

.quiz-footer-main {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(7rem, auto) minmax(17rem, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.quiz-footer-nav,
.quiz-footer-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.quiz-footer-nav {
  justify-content: flex-start;
}

.quiz-footer-action {
  justify-content: flex-end;
}

.quiz-footer-nav .btn,
.quiz-footer-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 5.75rem;
  white-space: nowrap;
}

.quiz-footer-control-active.btn-primary {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.quiz-footer-control-active.btn-success {
  border-color: #15803d;
  background: #16a34a;
  color: #ffffff;
}

.quiz-footer-control-inactive {
  box-shadow: none;
}

.quiz-footer-control-inactive.btn-outline-primary,
.quiz-footer-control-inactive.btn-outline-primary:disabled {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(239, 246, 255, 0.56);
  color: rgba(29, 78, 216, 0.72);
  opacity: 1;
}

.quiz-footer-control-inactive.btn-outline-success,
.quiz-footer-control-inactive.btn-outline-success:disabled {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(240, 253, 244, 0.72);
  color: rgba(21, 128, 61, 0.74);
  opacity: 1;
}

.quiz-footer-control-icon {
  line-height: 1;
}

.quiz-footer-status-compact {
  display: none;
}

.quiz-footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.quiz-footer-progress {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.quiz-footer-score {
  display: flex;
  flex: 0 1 13rem;
  min-width: 10rem;
}

.quiz-footer-score .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  white-space: nowrap;
}

.quiz-footer-score-chevron {
  flex: 0 0 auto;
  font-size: 0.86em;
  line-height: 1;
}

.quiz-footer-score-button,
.quiz-footer-score-button:disabled {
  border-width: 1px;
  border-style: solid;
  border-radius: 0.375rem;
  font-weight: 700;
  opacity: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 1px 2px rgba(15, 23, 42, 0.08);
}

.quiz-footer-score-tone-neutral,
.quiz-footer-score-tone-neutral:disabled {
  border-color: #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #475569;
}

.quiz-footer-score-tone-low,
.quiz-footer-score-tone-low:disabled {
  border-color: #ef4444;
  background: linear-gradient(180deg, #fff1f2 0%, #fee2e2 100%);
  color: #991b1b;
}

.quiz-footer-score-tone-medium,
.quiz-footer-score-tone-medium:disabled {
  border-color: #f97316;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
}

.quiz-footer-score-tone-high,
.quiz-footer-score-tone-high:disabled {
  border-color: #22c55e;
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
}

.quiz-footer-score-button:not(:disabled):hover,
.quiz-footer-score-button:not(:disabled):focus-visible {
  filter: brightness(0.985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 1px 2px rgba(15, 23, 42, 0.1),
    0 0 0 3px rgba(15, 23, 42, 0.08);
}

.quiz-ehr-sidecar {
  border: 1px solid #e8d5b0;
  border-radius: 1rem;
  background: #fff7e6;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 0.95rem 1rem 1rem;
}

.quiz-coach-section {
  border-top: 1px solid #ead7aa;
  padding-top: 1rem;
}

.quiz-structured-coach {
  display: block;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.55;
}

.quiz-structured-coach li + li {
  margin-top: 0.3rem;
}

.quiz-structured-coach .strategy-pill:hover .text-muted,
.quiz-structured-coach .strategy-pill:focus-visible .text-muted {
  color: inherit !important;
}

.quiz-coach-heading {
  margin-bottom: 0.9rem;
}

.quiz-coach-title {
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.25;
}

.quiz-coach-topic {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.quiz-coach-group {
  border: 1px solid #dbe4ee;
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.quiz-coach-group + .quiz-coach-group {
  margin-top: 0.75rem;
}

.quiz-coach-group-result {
  border-color: #d7e1ec;
  background: #f8fafc;
}

.quiz-coach-group-title {
  margin: 0 0 0.55rem;
  color: #1e293b;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
}

.quiz-coach-subheading {
  margin: 0 0 0.45rem;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.quiz-coach-frameworks {
  display: grid;
  gap: 0.65rem;
}

.quiz-coach-framework {
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
  background: #f8fafc;
}

.quiz-coach-framework-list {
  padding-left: 1.15rem;
}

.quiz-coach-framework-list > li + li {
  margin-top: 0.3rem;
}

.quiz-coach-score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quiz-coach-score-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.quiz-coach-score-label-correct {
  background: #dcfce7;
  color: #166534;
}

.quiz-coach-score-label-partial {
  background: #fef3c7;
  color: #92400e;
}

.quiz-coach-score-label-review {
  background: #fee2e2;
  color: #991b1b;
}

.quiz-coach-method-selection {
  line-height: 1.4;
}

.quiz-coach-method-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.quiz-coach-method-name {
  color: #1e293b;
  font-weight: 750;
}

.quiz-coach-method-transfer {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.quiz-coach-strategy-group + .quiz-coach-strategy-group {
  margin-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.8rem;
}

.quiz-coach-strategy-group-title {
  margin: 0 0 0.45rem;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.quiz-coach-strategy-list .strategy-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.quiz-coach-context {
  border-left: 3px solid rgba(15, 118, 110, 0.28);
  padding-left: 0.75rem;
}

.quiz-coach-strategy-application + .quiz-coach-strategy-application {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.65rem;
}

.quiz-strategies-title {
  color: var(--quiz-slate);
}

.quiz-coach-result {
  border-left: 3px solid rgba(14, 116, 144, 0.32);
  border-radius: 0 0.35rem 0.35rem 0;
  background: rgba(240, 249, 255, 0.58);
  padding: 0.72rem 0.82rem;
}

.quiz-coach-result-title {
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #0f5f73;
}

.quiz-coach-result-copy {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  padding-left: 1rem;
}

.quiz-coach-result-copy > li + li {
  margin-top: 0.45rem;
}

.quiz-coach-result-copy li {
  margin: 0;
}

.quiz-coach-result-sublist {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
}

.quiz-coach-result-sublist > li + li {
  margin-top: 0.24rem;
}

.quiz-coach-result-correct {
  border-left-color: rgba(22, 101, 52, 0.42);
  background: rgba(240, 253, 244, 0.68);
}

.quiz-coach-result-correct .quiz-coach-result-title {
  color: #166534;
}

.quiz-coach-result-partial {
  border-left-color: rgba(180, 83, 9, 0.45);
  background: rgba(255, 251, 235, 0.72);
}

.quiz-coach-result-partial .quiz-coach-result-title {
  color: #b45309;
}

.quiz-coach-result-incorrect {
  border-left-color: rgba(185, 28, 28, 0.42);
  background: rgba(254, 242, 242, 0.72);
}

.quiz-coach-result-incorrect .quiz-coach-result-title {
  color: #b91c1c;
}

@media (max-width: 575px) {
  .quiz-footer-panel {
    position: static;
    box-shadow: none;
  }

  .quiz-coach-section {
    padding-top: 0.85rem;
  }

  .quiz-coach-heading {
    margin-bottom: 0.75rem;
  }

  .quiz-coach-group {
    border-radius: 0.65rem;
    padding: 0.8rem 0.85rem;
  }

}

@media (min-width: 1200px) {
  .review-support-mobile-rail {
    display: none;
  }

  .review-support-layout {
    display: grid;
    grid-template-columns: var(--review-support-rail-width) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
  }

  .review-support-layout > .review-support-primary,
  .review-support-layout > .review-support-rail {
    width: auto;
    max-width: none;
    flex: none;
  }

  .review-support-layout > .review-support-primary {
    grid-column: 2;
    grid-row: 1;
  }

  .review-support-layout > .review-support-rail {
    grid-column: 1;
    grid-row: 1;
  }

  .review-support-layout > .review-support-rail {
    position: sticky;
    top: var(--review-support-rail-sticky-top);
    align-self: start;
    max-height: calc(100dvh - var(--review-support-rail-sticky-top) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-top: var(--review-ehr-rail-head-offset, 3.45rem);
  }

  .review-support-layout.review-support-layout-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-support-layout.review-support-layout-single > .review-support-primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .quiz-ehr-sidecar {
    position: static;
  }
}

@media (max-width: 1199.98px) {
  .rmt-app.rmt-app-review-content-route .rmt-review-mobile-case-ehr-slot:not(:empty),
  .rmt-app.rmt-app-review-content-route .review-page > .review-section-panel,
  .rmt-app.rmt-app-review-content-route .review-support-main {
    scroll-margin-top: calc(var(--rmt-review-sticky-stop-top) + 1px);
  }

  .rmt-app.rmt-app-review-content-route .case-ehr-reference-target {
    scroll-margin-top: calc(var(--rmt-review-sticky-stop-top) + 0.75rem);
    scroll-margin-bottom: 1rem;
  }

  .review-support-layout-has-mobile-rail {
    padding-bottom: 0;
  }

  .review-support-mobile-rail {
    position: static;
    margin-bottom: 0.65rem;
    z-index: auto;
  }

  .rmt-app.rmt-app-review-content-route .review-clinical-layout .review-mobile-chart-reference,
  .rmt-app.rmt-app-review-content-route .review-strategies-layout .review-mobile-chart-reference,
  .rmt-app.rmt-app-review-content-route .review-careplan-layout .review-mobile-chart-reference,
  .rmt-app.rmt-app-review-content-route .review-quiz-layout .review-mobile-chart-reference {
    overflow: visible;
  }

  .rmt-app.rmt-app-review-content-route .review-clinical-layout .review-support-mobile-rail:has(.review-mobile-chart-reference),
  .rmt-app.rmt-app-review-content-route .review-strategies-layout .review-support-mobile-rail:has(.review-mobile-chart-reference),
  .rmt-app.rmt-app-review-content-route .review-careplan-layout .review-support-mobile-rail:has(.review-mobile-chart-reference),
  .rmt-app.rmt-app-review-content-route .review-quiz-layout .review-support-mobile-rail:has(.review-mobile-chart-reference) {
    position: sticky;
    top: var(--rmt-review-sticky-stop-top);
    z-index: 1039;
  }

  .rmt-app.rmt-app-review-content-route .review-clinical-layout .review-mobile-chart-reference-head,
  .rmt-app.rmt-app-review-content-route .review-strategies-layout .review-mobile-chart-reference-head,
  .rmt-app.rmt-app-review-content-route .review-careplan-layout .review-mobile-chart-reference-head,
  .rmt-app.rmt-app-review-content-route .review-quiz-layout .review-mobile-chart-reference-head {
    position: relative;
    top: auto;
    z-index: auto;
  }

  .rmt-app.rmt-app-review-content-route .review-clinical-layout .review-mobile-chart-reference.is-open .review-mobile-chart-reference-body,
  .rmt-app.rmt-app-review-content-route .review-strategies-layout .review-mobile-chart-reference.is-open .review-mobile-chart-reference-body,
  .rmt-app.rmt-app-review-content-route .review-careplan-layout .review-mobile-chart-reference.is-open .review-mobile-chart-reference-body,
  .rmt-app.rmt-app-review-content-route .review-quiz-layout .review-mobile-chart-reference.is-open .review-mobile-chart-reference-body {
    position: fixed;
    top: calc(var(--rmt-review-sticky-stop-top) + 2.75rem + 1px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1038;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .rmt-review-mobile-case-ehr-slot .review-support-mobile-rail {
    margin-bottom: 0;
  }

  .rmt-review-mobile-case-ehr-slot .review-mobile-chart-reference-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-basis: 1.75rem;
    border-radius: 0.62rem;
  }

  .rmt-review-mobile-case-ehr-slot .review-mobile-chart-reference-title {
    font-size: 0.88rem;
  }

  .review-support-layout-has-mobile-rail > .review-support-rail {
    display: none;
  }
}

@media (max-width: 640px) {
  .quiz-footer-main {
    grid-template-columns: auto minmax(3.25rem, 1fr) auto;
    gap: 0.45rem;
  }

  .quiz-footer-nav {
    gap: 0.3rem;
  }

  .quiz-footer-nav .btn,
  .quiz-footer-action .btn {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0;
  }

  .quiz-footer-center {
    min-width: 0;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .quiz-footer-progress {
    font-size: 0.84rem;
  }

  .quiz-footer-score {
    flex: 0 1 auto;
    min-width: 0;
  }

  .quiz-footer-score .btn {
    width: auto;
    min-width: 4.5rem;
    padding-right: 0.45rem;
    padding-left: 0.45rem;
    font-size: 0.82rem;
  }

  .quiz-footer-control-label,
  .quiz-footer-status-full,
  .quiz-footer-score-details {
    display: none;
  }

  .quiz-footer-status-compact {
    display: inline;
  }
}

/* Choice Card Hover Effects */
.choice-card {
  transition: all 0.2s ease-in-out;
  border: 1px solid #dee2e6 !important;
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-color: #0d6efd !important;
}

.choice-card.selected {
  border-color: #0d6efd !important;
  border-width: 2px !important;
  background-color: #f8f9ff !important;
}

/* Enhanced Form Controls */
.form-check-input {
  border-width: 2px;
  transition: all 0.15s ease-in-out;
}

.form-check-input:checked {
  border-color: #0d6efd;
  background-color: #0d6efd;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Keyword Highlighting */
mark {
  background-color: #fff3cd !important;
  color: #664d03 !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
}

/* Question Text Enhancements */
.question-text {
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Answer Choice Typography */
.form-check-label {
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.form-check-label:hover {
  color: #0d6efd !important;
}

/* Badge Enhancements */
.badge {
  font-size: 0.85em;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .question-text {
    font-size: 1rem;
    padding: 1rem !important;
  }

  .choice-card {
    padding: 1rem !important;
  }

  .form-check-label {
    font-size: 1rem !important;
  }
}

/* Shadow Utilities */
.hover-shadow {
  transition: box-shadow 0.15s ease-in-out;
}

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Animation for transitions */
.transition {
  transition: all 0.2s ease-in-out;
}

/* Enhanced Progress Indicators */
.progress-bar {
  transition: width 0.6s ease;
}

/* Clinical Judgment Enhancements */
.clinical-step {
  transition: all 0.3s ease;
}

.clinical-step:hover {
  transform: translateY(-1px);
}

/* Strategy Selection Enhancements */
.strategy-card {
  transition: all 0.2s ease;
}

.strategy-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Clinical Judgment Header - Force visibility */
.clinical-judgment-header {
  color: #ffffff !important;
  font-weight: bold !important;
}

.clinical-judgment-subtitle {
  color: #e6e6e6 !important;
  opacity: 0.9 !important;
}

/* Ensure Clinical Judgment text is always visible */
.clinical-judgment-header span {
  color: #ffffff !important;
}

.clinical-judgment-header .small {
  color: #e6e6e6 !important;
}

/* Stepper Component Styles */
.stepper-container {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stepper-content {
  min-height: 300px;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stepper-content .card {
  border: none;
  box-shadow: none;
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-dot {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.step-dot:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.step-dot.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.step-dot:hover:not(:disabled) {
  transform: scale(1.05);
}

.stepper-controls {
  padding: 1rem 0;
  border-top: 1px solid #dee2e6;
  margin-top: 1rem;
}

/* Bowtie (NGN-style) drag/drop */
.bowtie-dropzone {
  min-height: 56px;
  border: 2px dashed #ced4da;
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bowtie-dropzone-active {
  border-color: #0d6efd;
  background: #f8f9ff;
}

.bowtie-dropbucket {
  min-height: 56px;
  border-radius: 1.75rem !important;
  background: #fff !important;
  padding: 0.75rem;
  margin: 0;
  overflow: hidden;
  --bs-border-style: dashed;
  border-style: dashed !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 140ms ease, background-color 140ms ease;
}

.bowtie-dropbucket.border {
  --bs-border-style: dashed;
  border-style: dashed !important;
  border-width: 2px !important;
}

.bowtie-dropbucket-empty>.d-grid {
  min-height: 56px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.bowtie-dropbucket-active {
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.bowtie-dropbucket-placeholder {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.bowtie-placeholder {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.bowtie-placeholder-action {
  color: #052c65;
}

.bowtie-placeholder-condition {
  color: #664d03;
}

.bowtie-placeholder-monitor {
  color: #0f5132;
}

.bowtie-instructions {
  font-size: 0.95rem;
  line-height: 1.4;
}

.bowtie-mobile-target-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bowtie-mobile-target-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bowtie-mobile-bank-section {
  width: 100%;
}

.bowtie-target-card {
  border: 1px solid var(--quiz-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.bowtie-target-layout-col {
  display: flex;
  flex-direction: column;
}

.bowtie-target-layout-col > * {
  width: 100%;
}

@media (min-width: 992px) {
  .bowtie-target-layout-col-center {
    justify-content: center;
  }

  .bowtie-target-layout-col-center > .bowtie-target-card {
    height: auto !important;
  }
}

.bowtie-target-slot-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bowtie-target-slot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.bowtie-bank-section {
  border: 1px solid var(--quiz-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.bowtie-top-card .btn {
  line-height: 1.2;
}

.bowtie-collapsible {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 220ms ease, opacity 220ms ease, padding-top 220ms ease;
}

.bowtie-collapsible.open {
  opacity: 1;
}

.bowtie-collapsible-inner {
  overflow: hidden;
}

.bowtie-collapsible-body.open {
  max-height: 900px;
  padding-top: 0.75rem;
}

.bowtie-collapsible-summary.open {
  max-height: 90px;
  padding-top: 0.5rem;
  line-height: 1.25;
}

@supports (grid-template-rows: 0fr) {
  .bowtie-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    max-height: none;
    transition: grid-template-rows 220ms ease, opacity 220ms ease, padding-top 220ms ease;
  }

  .bowtie-collapsible.open {
    grid-template-rows: 1fr;
  }

  .bowtie-collapsible-body.open,
  .bowtie-collapsible-summary.open {
    max-height: none;
  }
}

.bowtie-summary-letter {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.bowtie-selected-card.bowtie-selected-card {
  --bs-border-style: solid;
  border-style: solid !important;
  padding-right: 0.75rem !important;
  padding-left: 0.75rem !important;
}

.bowtie-dropzone .bowtie-selected-card.bowtie-selected-card {
  background: transparent;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  padding: 0 !important;
}

.bowtie-dropzone .bowtie-selected-card.bowtie-selected {
  background: transparent;
}

.bowtie-selected-card .bowtie-selected-content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.bowtie-selected-card-clickable {
  cursor: pointer;
}

.bowtie-selected {
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bowtie-selected-card-clickable:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}

.bowtie-option-card {
  cursor: grab;
  user-select: none;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bowtie-option-card:active {
  cursor: grabbing;
}

.bowtie-option-card-disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.bowtie-shared-bank {
  margin-top: 1rem;
}

.bowtie-shared-bank-panel {
  border: 1px solid var(--quiz-border);
}

.bowtie-shared-bank-grid {
  align-items: stretch;
}

.bowtie-bank-grid-col {
  display: flex;
}

.bowtie-bank-grid-col > * {
  width: 100%;
}

.bowtie-inline-rationale-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.bowtie-inline-rationale-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bowtie-inline-rationale-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #334155;
}

@media (max-width: 767.98px) {
  .quiz-choice-content {
    flex-wrap: wrap;
  }

  .quiz-choice-inline-rationale {
    margin-left: 0;
  }

  .bowtie-dropzone {
    padding: 0.5rem;
    min-height: 52px;
  }

  .bowtie-dropbucket {
    padding: 0.5rem;
    min-height: 52px;
  }

  .bowtie-placeholder {
    font-size: 0.85rem;
  }

  .bowtie-instructions {
    font-size: 0.9rem;
  }

  .bowtie-selected,
  .bowtie-option-card {
    font-size: 0.9rem;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .stepper-container {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .step-dots {
    gap: 0.5rem;
  }

  .step-dot {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.7rem !important;
  }

  .stepper-controls {
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
  }

  .stepper-controls .text-center {
    order: -1;
    width: 100%;
  }
}

/* Key Strategies Card Scrollable Content */
.key-strategies-content {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.key-strategies-content::-webkit-scrollbar {
  width: 6px;
}

.key-strategies-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.key-strategies-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
  transition: background 0.2s ease-in-out;
}

.key-strategies-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Strategy Item Enhancements */
.strategy-item {
  transition: background-color 0.15s ease-in-out;
}

.strategy-item:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
  margin: 0 -4px;
  padding: 0 4px;
}

/* Strategy Names Preview */
.strategy-names-preview {
  line-height: 1.2;
  word-spacing: 0.1em;
}

/* Clinical Judgment Fixed Bottom Navigation */
.clinical-judgment-bottom-nav {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
}

.clinical-judgment-bottom-nav:hover {
  background-color: rgba(255, 255, 255, 1) !important;
}

/* Step Indicator Menu */
.clinical-judgment-steps-menu .step-indicator {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.clinical-judgment-steps-menu .step-indicator:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.clinical-judgment-steps-menu .step-indicator:active {
  transform: scale(0.95);
}

.clinical-judgment-steps-menu .step-indicator.btn-primary {
  animation: pulse-primary 2s infinite;
}

@keyframes pulse-primary {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

.clinical-judgment-steps-menu .step-indicator.btn-outline-success {
  border-color: #198754;
  color: #198754;
}

.clinical-judgment-steps-menu .step-indicator.btn-outline-success:hover:not(:disabled) {
  background-color: #198754;
  color: white;
}

/* Mobile optimizations for Clinical Judgment navigation */
@media (max-width: 768px) {
  .clinical-judgment-bottom-nav {
    padding: 8px 0 !important;
  }

  .clinical-judgment-steps-menu .step-indicator {
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 0.7rem !important;
  }

  .clinical-judgment-steps-menu {
    margin-bottom: 1rem !important;
  }

  .clinical-judgment-steps-menu .d-flex {
    gap: 0.5rem !important;
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  .clinical-judgment-steps-menu .step-indicator {
    min-width: 48px;
    min-height: 48px;
  }

  .clinical-judgment-bottom-nav .btn {
    min-height: 48px;
    font-size: 1rem;
  }
}

/* React /app marketing + browse/search UI (scoped) */
.rmt-app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  --rmt-blue: #0d6efd;
  --rmt-indigo: #4f46e5;
  --rmt-teal: #14b8a6;
  --rmt-cyan: #06b6d4;
  --rmt-purple: #8b5cf6;
  --rmt-fuchsia: #d946ef;
  --rmt-pink: #ec4899;
  --rmt-orange: #f97316;
  --rmt-amber: #eab308;
  --rmt-green: #22c55e;
  --rmt-slate: #0f172a;
  --rmt-brand: #2d8659;
  --rmt-brand-light: #e6f4ed;
  --rmt-ink: #0a0a0a;
  --rmt-mid: #666666;
  --rmt-muted: #999999;
  --rmt-light: #e8e8e8;
  --rmt-off-white: #f7f7f5;
  --rmt-cream: #fdfcf9;
  min-height: 100vh;
  background: linear-gradient(180deg, #c9d4cb 0%, #d2dbd3 100%);
  overflow-x: hidden;
}

.rmt-app .rmt-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-logo-mark i {
  font-size: 1.05rem;
  line-height: 1;
}

.rmt-app .rmt-anchor {
  scroll-margin-top: 96px;
}

.rmt-app .rmt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
}

.rmt-app .rmt-badge-green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
  color: #15803d;
}

.rmt-app .rmt-hero-panel {
  background: #1a4d35;
  color: #ffffff;
  position: relative;
  min-height: 560px;
}

.rmt-app .rmt-hero-panel::after {
  display: none;
}

.rmt-app .rmt-hero-panel>* {
  position: relative;
}

.rmt-app .rmt-hero-panel .rmt-editorial-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.rmt-app .rmt-hero-panel .rmt-editorial-heading {
  color: #ffffff;
}

.rmt-app .rmt-hero-visual-col {
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  min-height: 400px;
}

.rmt-app .rmt-hero-search {
  border: 1px solid var(--rmt-light);
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  max-width: 400px;
  border-radius: 16px;
}

.rmt-app .rmt-hero-search-form {
  width: 100%;
  max-width: 720px;
}

.rmt-app .rmt-hero-search-form .row>[class*="col-md-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

.rmt-app .rmt-hero-search-form .btn-primary {
  width: 100%;
  background: var(--rmt-brand);
  border-color: var(--rmt-brand);
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.rmt-app .rmt-auth-card .form-control {
  min-height: 56px;
  border: 1.5px solid rgba(62, 108, 87, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 245, 0.95) 100%);
  padding: 0.95rem 1rem;
  color: var(--rmt-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.rmt-app .rmt-auth-card .form-control::placeholder {
  color: color-mix(in srgb, var(--rmt-muted) 88%, #ffffff 12%);
}

.rmt-app .rmt-auth-card .form-control:focus {
  border-color: var(--rmt-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(45, 134, 89, 0.11), 0 14px 30px rgba(52, 74, 64, 0.08);
}

.rmt-app .rmt-auth-card .btn-primary {
  min-height: 56px;
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--rmt-brand) 84%, rgba(15, 23, 42, 0.14) 16%);
  background: linear-gradient(180deg, #57a079 0%, var(--rmt-brand) 100%);
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rmt-app .rmt-auth-card .btn-primary:hover,
.rmt-app .rmt-auth-card .btn-primary:focus-visible {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 15px 30px rgba(52, 74, 64, 0.12);
}

.rmt-app .rmt-auth-card .btn-primary:disabled {
  background: linear-gradient(180deg, rgba(87, 160, 121, 0.8) 0%, rgba(45, 134, 89, 0.8) 100%);
  border-color: rgba(45, 134, 89, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(52, 74, 64, 0.08);
}

.rmt-app .rmt-unified-bar {
  display: flex;
  border: 2px solid var(--rmt-light);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rmt-app .rmt-unified-bar:focus-within {
  border-color: var(--rmt-brand);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.12);
}

.rmt-app .rmt-unified-bar .rmt-unified-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.92rem;
  min-width: 0;
  background: transparent;
}

.rmt-app .rmt-unified-bar .rmt-unified-input::placeholder {
  color: var(--rmt-muted);
}

.rmt-app .rmt-unified-bar .bar-divider {
  width: 1px;
  background: var(--rmt-light);
  margin: 8px 0;
}

.rmt-app .rmt-unified-bar .rmt-unified-select {
  border: none;
  outline: none;
  padding: 14px 10px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--rmt-mid);
  background: transparent;
  cursor: pointer;
  max-width: 160px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
}

.rmt-app .rmt-cat-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--rmt-brand-light);
  border: 1px solid var(--rmt-light);
  border-radius: 10px;
}

.rmt-app .rmt-cat-list {
  margin-top: 8px;
  border: 1px solid var(--rmt-light);
  border-radius: 10px;
  overflow: hidden;
}

.rmt-app .rmt-cat-list .list-group-item {
  border-left: none;
  border-right: none;
}

.rmt-app .rmt-no-match {
  border: 1px solid var(--rmt-light);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
}

.rmt-app .rmt-search-overlay {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--rmt-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  max-height: 320px;
  overflow-y: hidden;
  overflow-x: hidden;
}

.rmt-app .rmt-overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  background: var(--rmt-brand-light);
  border-bottom: 1px solid var(--rmt-light);
}

.rmt-app .rmt-overlay-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.rmt-app .rmt-overlay-header-main {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.rmt-app .rmt-overlay-header-main-with-context {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rmt-app .rmt-overlay-header-main-with-context .rmt-overlay-header-line {
  flex: 1 1 auto;
}

.rmt-app .rmt-overlay-header-line {
  min-width: 0;
  text-align: left;
}

.rmt-app .rmt-overlay-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.rmt-app .rmt-overlay-panel-search {
  flex: 1 1 18rem;
  min-width: min(100%, 16rem);
  max-width: 34rem;
}

.rmt-app .rmt-overlay-panel-search-bar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 134, 89, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.rmt-app .rmt-overlay-panel-search-entry {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.rmt-app .rmt-overlay-panel-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.65rem;
  border: 0;
  background: transparent;
  padding: 0 0.8rem;
  color: var(--rmt-ink);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.rmt-app .rmt-overlay-panel-search-input::placeholder {
  color: color-mix(in srgb, var(--rmt-muted) 88%, #ffffff 12%);
}

.rmt-app .rmt-overlay-panel-search-bar:focus-within {
  border-color: rgba(45, 134, 89, 0.48);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.rmt-app .rmt-overlay-panel-search-button,
.rmt-app .rmt-overlay-panel-search-button.btn-primary,
.rmt-app .rmt-overlay-panel-search-button.btn-lg.btn-primary {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-width: 2.85rem;
  border: 0;
  border-left: 1px solid rgba(45, 134, 89, 0.18);
  border-radius: 0;
  padding: 0 0.82rem;
  background: linear-gradient(180deg, #57a079 0%, var(--rmt-brand) 100%);
  color: #ffffff;
  box-shadow: none;
  font-size: 0.86rem;
}

.rmt-app .rmt-overlay-panel-search-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-overlay-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rmt-brand);
  margin-bottom: 2px;
}

.rmt-app .rmt-overlay-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--rmt-ink);
}

.rmt-app .rmt-overlay-sub {
  margin-top: 4px;
  color: var(--rmt-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.rmt-app .rmt-overlay-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--rmt-mid);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.rmt-app .rmt-overlay-browse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  max-width: 100%;
  white-space: normal;
  font-weight: 800;
  text-align: left;
}

.rmt-app .rmt-overlay-browse-context-button {
  padding: 0.38rem 0.58rem;
  border-color: rgba(45, 134, 89, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: var(--rmt-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rmt-app .rmt-overlay-browse-context-button:hover:not(:disabled),
.rmt-app .rmt-overlay-browse-context-button:focus-visible {
  border-color: rgba(45, 134, 89, 0.34);
  background: rgba(248, 252, 249, 0.96);
  color: var(--rmt-ink);
}

.rmt-app .rmt-overlay-browse-context-button-initial {
  width: min(100%, 22rem);
  justify-content: flex-start;
}

.rmt-app .rmt-overlay-header-connected {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.rmt-app .rmt-overlay-control-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 0;
}

.rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search-bar {
  min-height: 100%;
  border-radius: 10px 0 0 10px;
}

.rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search-button,
.rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search-button.btn-primary,
.rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search-button.btn-lg.btn-primary {
  min-height: 2.75rem;
  border-radius: 0 10px 10px 0;
}

.rmt-app .rmt-overlay-status-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--rmt-ink);
}

.rmt-app .rmt-overlay-status-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.rmt-app .rmt-overlay-status-title {
  color: var(--rmt-ink);
}

.rmt-app .rmt-overlay-status-detail {
  color: var(--rmt-muted);
}

.rmt-app .rmt-overlay-status-row-content {
  width: 100%;
  min-width: 0;
  text-align: left;
}

.rmt-app .rmt-overlay-status-stack {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  width: 100%;
  min-width: 0;
}

.rmt-app .rmt-overlay-status-stack-copy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.rmt-app .rmt-overlay-status-actions,
.rmt-app .rmt-overlay-status-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.rmt-app .rmt-overlay-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  max-width: 100%;
  padding: 0.36rem 0.62rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--rmt-mid);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.rmt-app .rmt-overlay-action-chip:hover:not(:disabled),
.rmt-app .rmt-overlay-action-chip:focus-visible {
  border-color: rgba(45, 134, 89, 0.32);
  color: var(--rmt-brand);
}

.rmt-app .rmt-overlay-action-chip-icon {
  font-size: 1rem;
  line-height: 0.8;
}

.rmt-app .rmt-overlay-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  max-width: 100%;
  min-height: 2.25rem;
  padding: 0.34rem 0.42rem 0.34rem 0.58rem;
  border: 1px solid rgba(11, 94, 215, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.94);
  color: rgb(11, 94, 215);
  font-size: 0.78rem;
  line-height: 1;
}

.rmt-app .rmt-overlay-meta-chip-label {
  color: rgba(11, 94, 215, 0.72);
  font-weight: 700;
}

.rmt-app .rmt-overlay-meta-chip-value {
  min-width: 0;
  max-width: min(26rem, 62vw);
  overflow: hidden;
  color: inherit;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmt-app .rmt-overlay-meta-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 94, 215, 0.08);
  color: rgba(11, 94, 215, 0.72);
  line-height: 1;
}

.rmt-app .rmt-overlay-meta-chip-remove:hover:not(:disabled),
.rmt-app .rmt-overlay-meta-chip-remove:focus-visible {
  background: rgba(11, 94, 215, 0.14);
  color: rgb(11, 94, 215);
}

.rmt-app .rmt-overlay-clear-button {
  flex: 0 0 auto;
  min-height: 2.25rem;
}

.rmt-app .rmt-overlay-browse-context-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 10px;
  background: rgba(45, 134, 89, 0.1);
  color: color-mix(in srgb, var(--rmt-brand) 82%, var(--rmt-ink) 18%);
  font-size: 0.9rem;
}

.rmt-app .rmt-overlay-browse-context-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.rmt-app .rmt-overlay-browse-context-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.15;
}

.rmt-app .rmt-overlay-browse-context-subtype {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--rmt-muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
}

.rmt-app .rmt-overlay-browse-context-chevron {
  flex: 0 0 auto;
  color: var(--rmt-brand);
  font-size: 0.76rem;
}

.rmt-app .rmt-overlay-browse-tray {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--rmt-light);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(247, 250, 252, 0.92) 100%);
}

.rmt-app .rmt-search-browse-surface {
  position: static;
  margin-top: 6px;
  max-height: none;
  overflow: visible;
  box-shadow: 0 10px 24px rgba(93, 67, 30, 0.08);
}

.rmt-app .rmt-search-browse-surface .rmt-overlay-browse-tray {
  border-bottom: 0;
}

.rmt-app .rmt-search-browse-surface .rmt-overlay-initial-browse-header {
  background: var(--rmt-brand-light);
}

.rmt-app .rmt-search-browse-surface .rmt-overlay-header-main {
  display: flex;
}

.rmt-app .rmt-overlay-browse-tray-initial {
  padding: 10px;
}

.rmt-app .rmt-overlay-browse-group {
  min-width: 0;
}

.rmt-app .rmt-overlay-topic-result-list {
  --rmt-overlay-result-fields-template: minmax(13rem, 1.4fr) 1.9rem minmax(8rem, 0.75fr) minmax(6rem, 0.48fr) minmax(13rem, 1.2fr);
}

.rmt-app .rmt-overlay-browse-result-list {
  --rmt-overlay-result-fields-template: minmax(8.5rem, 0.95fr) minmax(6rem, 0.48fr) minmax(11rem, 1.05fr) minmax(13.5rem, 1.35fr);
  grid-column: 1 / -1;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rmt-app .rmt-overlay-browse-result-list .rmt-overlay-result-column-header {
  border-top: 1px solid var(--rmt-light);
}

.rmt-app .rmt-overlay-browse-result {
  position: relative;
  padding: 10px 12px;
}

.rmt-app .rmt-overlay-browse-row-action {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.rmt-app .rmt-overlay-browse-row-action:focus-visible {
  outline: 2px solid rgba(45, 134, 89, 0.34);
  outline-offset: -4px;
}

.rmt-app .rmt-overlay-browse-row-action:disabled {
  cursor: not-allowed;
}

.rmt-app .rmt-overlay-browse-result.is-active {
  background: rgba(233, 247, 239, 0.96);
}

.rmt-app .rmt-overlay-browse-result.is-active .rmt-overlay-result-primary-icon {
  background: rgba(45, 134, 89, 0.16);
  color: color-mix(in srgb, var(--rmt-brand) 88%, var(--rmt-ink) 12%);
}

.rmt-app .rmt-overlay-result-detail-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rmt-app .rmt-overlay-nclex-focus-groups {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rmt-app .rmt-overlay-nclex-focus-group {
  display: grid;
  grid-template-columns: 4.7rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.5rem;
  row-gap: 4px;
  min-width: 0;
}

.rmt-app .rmt-overlay-nclex-focus-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  color: color-mix(in srgb, var(--rmt-muted) 88%, var(--rmt-ink) 12%);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.rmt-app .rmt-overlay-browse-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
  max-width: 100%;
  min-width: 0;
  pointer-events: none;
}

.rmt-app .rmt-overlay-browse-link {
  max-width: 100%;
  min-height: 1.65rem;
  padding: 0.22rem 0.46rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.rmt-app button.rmt-overlay-nclex-focus-chip {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.rmt-app .rmt-overlay-nclex-focus-chip-static {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.25rem;
  color: var(--rmt-ink);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
  pointer-events: none;
  white-space: normal;
  cursor: default;
}

.rmt-app .rmt-overlay-browse-group-title {
  margin: 0 0 6px;
  padding: 0 4px;
  color: color-mix(in srgb, var(--rmt-brand) 82%, var(--rmt-ink) 18%);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rmt-app .rmt-overlay-browse-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.rmt-app .rmt-overlay-browse-table-header {
  display: none;
}

.rmt-app .rmt-overlay-browse-item {
  min-height: 44px;
  scroll-margin-top: 5rem;
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--rmt-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rmt-app .rmt-overlay-browse-item:hover:not(:disabled),
.rmt-app .rmt-overlay-browse-item:focus-visible {
  border-color: rgba(45, 134, 89, 0.28);
  background: rgba(245, 251, 247, 0.96);
  box-shadow: 0 8px 18px rgba(52, 74, 64, 0.08);
  outline: none;
}

.rmt-app .rmt-overlay-browse-item:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.94), 0 0 0 4px rgba(45, 134, 89, 0.24);
}

.rmt-app .rmt-overlay-browse-item.is-active {
  border-color: rgba(45, 134, 89, 0.38);
  background: rgba(233, 247, 239, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rmt-app .rmt-overlay-browse-item:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.rmt-app .rmt-overlay-browse-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 8px;
  background: rgba(45, 134, 89, 0.1);
  color: color-mix(in srgb, var(--rmt-brand) 78%, var(--rmt-mid) 22%);
  font-size: 0.82rem;
}

.rmt-app .rmt-overlay-browse-item-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.rmt-app .rmt-overlay-browse-item-detail,
.rmt-app .rmt-overlay-browse-item-focus {
  display: grid;
  gap: 2px;
  grid-column: 2;
  min-width: 0;
  pointer-events: none;
}

.rmt-app .rmt-overlay-browse-item-icon,
.rmt-app .rmt-overlay-browse-item-copy,
.rmt-app .rmt-overlay-browse-item-label,
.rmt-app .rmt-overlay-browse-item-subtype,
.rmt-app .rmt-overlay-browse-item-field-label,
.rmt-app .rmt-overlay-browse-item-detail-primary,
.rmt-app .rmt-overlay-browse-item-detail-secondary,
.rmt-app .rmt-overlay-browse-focus-list,
.rmt-app .rmt-overlay-browse-focus-chip,
.rmt-app .rmt-overlay-browse-focus-note {
  pointer-events: none;
}

.rmt-app .rmt-overlay-browse-item-field-label {
  display: block;
  color: color-mix(in srgb, var(--rmt-muted) 88%, var(--rmt-ink) 12%);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.rmt-app .rmt-overlay-browse-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.rmt-app .rmt-overlay-browse-item-subtype {
  min-width: 0;
  color: var(--rmt-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rmt-app .rmt-overlay-browse-item-detail-primary {
  min-width: 0;
  color: var(--rmt-ink);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.rmt-app .rmt-overlay-browse-item-detail-secondary,
.rmt-app .rmt-overlay-browse-focus-note {
  min-width: 0;
  color: var(--rmt-muted);
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.rmt-app .rmt-overlay-browse-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.rmt-app .rmt-overlay-browse-focus-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 0.16rem 0.36rem;
  border-radius: 999px;
  background: rgba(45, 134, 89, 0.08);
  color: color-mix(in srgb, var(--rmt-brand) 74%, var(--rmt-ink) 26%);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.rmt-app .rmt-overlay-browse-focus-chip.is-primary {
  background: rgba(45, 134, 89, 0.13);
  color: color-mix(in srgb, var(--rmt-brand) 82%, var(--rmt-ink) 18%);
}

.rmt-app .rmt-overlay-browse-focus-chip.is-strong {
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
}

@media (min-width: 640px) {
  .rmt-app .rmt-overlay-browse-tray {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .rmt-app .rmt-overlay-browse-table-header {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) minmax(9rem, 1fr) minmax(11rem, 1.2fr);
    column-gap: 10px;
    margin: 0 0 5px;
    padding: 0 0.42rem 0 2.3rem;
    color: color-mix(in srgb, var(--rmt-muted) 82%, var(--rmt-ink) 18%);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .rmt-app .rmt-overlay-browse-item {
    grid-template-columns: 1.55rem minmax(9rem, 1fr) minmax(9rem, 1fr) minmax(11rem, 1.2fr);
    column-gap: 10px;
  }

  .rmt-app .rmt-overlay-browse-item-detail,
  .rmt-app .rmt-overlay-browse-item-focus {
    grid-column: auto;
  }

  .rmt-app .rmt-overlay-browse-item-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 767px) {
  .rmt-app .rmt-overlay-header {
    flex-direction: column;
    gap: 8px;
  }

  .rmt-app .rmt-overlay-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .rmt-app .rmt-overlay-control-row {
    flex-wrap: nowrap;
    gap: 0;
  }

  .rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
  }

  .rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search-bar {
    border-radius: 10px 0 0 10px;
  }

  .rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search-button,
  .rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search-button.btn-primary,
  .rmt-app .rmt-overlay-control-row .rmt-overlay-panel-search-button.btn-lg.btn-primary {
    min-height: 3rem;
    border-radius: 0 10px 10px 0;
  }

  .rmt-app .rmt-overlay-status-line {
    flex-wrap: wrap;
  }

  .rmt-app .rmt-overlay-clear-button {
    margin-left: auto;
    min-height: 2.75rem;
  }

  .rmt-app .rmt-overlay-initial-browse-header .rmt-overlay-header-main,
  .rmt-app .rmt-overlay-initial-browse-header .rmt-overlay-browse-context-button-initial {
    width: 100%;
  }

  .rmt-app .rmt-overlay-panel-search {
    flex-basis: 100%;
    max-width: none;
    width: 100%;
  }

  .rmt-app .rmt-overlay-panel-search-input,
  .rmt-app .rmt-overlay-panel-search-button,
  .rmt-app .rmt-overlay-panel-search-button.btn-primary,
  .rmt-app .rmt-overlay-panel-search-button.btn-lg.btn-primary {
    min-height: 3rem;
  }

  .rmt-app .rmt-overlay-header-main-with-context {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .rmt-app .rmt-overlay-browse-toggle {
    flex: 1 1 auto;
  }
}

@media (min-width: 992px) {
  .rmt-app .rmt-overlay-header-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    white-space: nowrap;
  }

  .rmt-app .rmt-overlay-kicker {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .rmt-app .rmt-overlay-title {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .rmt-app .rmt-overlay-sub {
    margin-top: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.rmt-app .rmt-overlay-row {
  padding: 10px 14px;
}

.rmt-app .rmt-overlay-result {
  position: relative;
  width: 100%;
  border-top: 1px solid var(--rmt-light);
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
}

.rmt-app .rmt-overlay-result:hover {
  background: rgba(45, 134, 89, 0.05);
}

.rmt-app .rmt-overlay-result-row-selectable {
  cursor: pointer;
}

.rmt-app .rmt-overlay-result-row-selectable:focus-within {
  background: rgba(45, 134, 89, 0.05);
}

.rmt-app .rmt-overlay-result-primary {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.rmt-app .rmt-overlay-result-primary-row-link-mode {
  position: relative;
  cursor: pointer;
}

.rmt-app .rmt-overlay-result-row-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.rmt-app .rmt-overlay-result-row-link:hover,
.rmt-app .rmt-overlay-result-row-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.rmt-app .rmt-overlay-result-row-link:focus-visible {
  outline: 2px solid rgba(45, 134, 89, 0.34);
  outline-offset: -4px;
}

.rmt-app .rmt-overlay-result-row-link[aria-disabled="true"] {
  cursor: not-allowed;
}

.rmt-app .rmt-overlay-browse-result .rmt-overlay-result-primary {
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-items: start;
}

.rmt-app .rmt-overlay-browse-result .rmt-overlay-result-primary-icon {
  margin-top: -0.18rem;
}

.rmt-app .rmt-overlay-result-primary:hover,
.rmt-app .rmt-overlay-result-primary:focus {
  color: inherit;
  text-decoration: none;
}

.rmt-app .rmt-overlay-result-primary:focus-visible {
  outline: 2px solid rgba(45, 134, 89, 0.34);
  outline-offset: 4px;
  border-radius: 8px;
}

.rmt-app .rmt-overlay-result-primary:disabled,
.rmt-app .rmt-overlay-result-primary[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
}

.rmt-app .rmt-overlay-result-primary-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 10px;
  background: rgba(45, 134, 89, 0.1);
  color: color-mix(in srgb, var(--rmt-brand) 78%, var(--rmt-ink) 22%);
  font-size: 0.9rem;
}

.rmt-app .rmt-overlay-result-actions {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.rmt-app .rmt-overlay-result-main {
  min-width: 0;
  flex: 1;
}

.rmt-app .rmt-overlay-result-column-header {
  display: none;
}

.rmt-app .rmt-overlay-result-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}

.rmt-app .rmt-overlay-result-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rmt-app .rmt-overlay-result-field-label {
  display: block;
  color: color-mix(in srgb, var(--rmt-muted) 88%, var(--rmt-ink) 12%);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.rmt-app .rmt-overlay-result-field-value {
  min-width: 0;
  color: var(--rmt-ink);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rmt-app .rmt-overlay-result-field-primary .rmt-overlay-result-field-value {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}

.rmt-app .rmt-overlay-result-field-actionable .rmt-overlay-result-field-value {
  color: #1d4ed8;
}

.rmt-app .rmt-overlay-result-primary:hover .rmt-overlay-result-field-actionable .rmt-overlay-result-field-value,
.rmt-app .rmt-overlay-result-primary:focus-visible .rmt-overlay-result-field-actionable .rmt-overlay-result-field-value,
.rmt-app .rmt-overlay-result-row-selectable:hover .rmt-overlay-result-field-actionable .rmt-overlay-result-field-value,
.rmt-app .rmt-overlay-result-row-selectable:focus-within .rmt-overlay-result-field-actionable .rmt-overlay-result-field-value,
.rmt-app .rmt-overlay-browse-row-action:hover + .rmt-overlay-result-primary .rmt-overlay-result-field-actionable .rmt-overlay-result-field-value,
.rmt-app .rmt-overlay-browse-row-action:focus-visible + .rmt-overlay-result-primary .rmt-overlay-result-field-actionable .rmt-overlay-result-field-value {
  color: #1e40af;
}

.rmt-app .rmt-overlay-result-field.is-empty .rmt-overlay-result-field-value {
  color: var(--rmt-muted);
  font-weight: 650;
}

.rmt-app .rmt-overlay-result-field-icon {
  align-items: start;
}

.rmt-app .rmt-overlay-result-field-icon .rmt-overlay-result-field-label {
  display: none;
}

.rmt-app .rmt-overlay-result-field-icon .rmt-overlay-result-field-value {
  min-height: 1.9rem;
}

.rmt-app .rmt-overlay-result-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: -0.18rem;
  border-radius: 10px;
  background: rgba(45, 134, 89, 0.1);
  color: color-mix(in srgb, var(--rmt-brand) 78%, var(--rmt-ink) 22%);
  font-size: 0.9rem;
  line-height: 1;
}

.rmt-app .rmt-overlay-result-field-detail {
  min-width: 0;
  color: var(--rmt-mid);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rmt-app .rmt-overlay-result-action {
  border: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: var(--rmt-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.rmt-app .rmt-overlay-result-action:hover,
.rmt-app .rmt-overlay-result-action:focus {
  filter: brightness(0.95);
}

.rmt-app .rmt-overlay-result-action-secondary {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.rmt-app .rmt-overlay-result-actions .rmt-overlay-listen-btn {
  border-color: rgba(13, 110, 253, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.92));
  color: #0b5ed7;
}

.rmt-app .rmt-overlay-result-actions .rmt-overlay-listen-btn:hover,
.rmt-app .rmt-overlay-result-actions .rmt-overlay-listen-btn:focus-visible {
  border-color: rgba(13, 110, 253, 0.28);
  background: linear-gradient(180deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 0.96));
  color: #084298;
  filter: none;
}

@media (max-width: 767px) {
  .rmt-app .rmt-overlay-result {
    flex-direction: column;
    gap: 10px;
  }

  .rmt-app .rmt-overlay-result-actions {
    align-self: flex-start;
  }
}

@media (min-width: 768px) {
  .rmt-app .rmt-overlay-result-column-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.9rem;
    align-items: end;
    gap: 10px;
    padding: 10px 14px 8px;
    border-top: 1px solid var(--rmt-light);
    background: color-mix(in srgb, var(--rmt-surface) 82%, #f7faf8 18%);
  }

  .rmt-app .rmt-overlay-result-column-header-fields {
    display: grid;
    grid-template-columns: var(--rmt-overlay-result-fields-template, minmax(12rem, 1.35fr) minmax(8.5rem, 0.85fr) minmax(11rem, 1fr));
    align-items: end;
    column-gap: 14px;
    min-width: 0;
  }

  .rmt-app .rmt-overlay-result-column-heading {
    min-width: 0;
    color: color-mix(in srgb, var(--rmt-muted) 82%, var(--rmt-ink) 18%);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .rmt-app .rmt-overlay-result-column-header-icon-spacer {
    width: 1.9rem;
    height: 1px;
  }

  .rmt-app .rmt-overlay-result-fields {
    grid-template-columns: var(--rmt-overlay-result-fields-template, minmax(12rem, 1.35fr) minmax(8.5rem, 0.85fr) minmax(11rem, 1fr));
    align-items: start;
    column-gap: 14px;
  }

  .rmt-app .rmt-overlay-topic-result-list .rmt-overlay-result-primary {
    align-items: start;
  }

  .rmt-app .rmt-overlay-topic-result-list .rmt-overlay-result-primary > .rmt-overlay-result-primary-icon {
    margin-top: -0.18rem;
  }

  .rmt-app .rmt-overlay-browse-result-list .rmt-overlay-browse-column-header {
    grid-template-columns: 1.9rem minmax(0, 1fr);
  }

  .rmt-app .rmt-overlay-result-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.rmt-app .rmt-overlay-no-match {
  padding: 14px;
}

.rmt-app .rmt-topic-suggestion-label {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.35;
}

.rmt-app .rmt-topic-suggestion-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
}

.rmt-app .rmt-governed-quick-review-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rmt-app .rmt-governed-quick-review-auth-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
}

@media (min-width: 768px) {
  .rmt-app .rmt-topic-suggestion-primary {
    width: auto;
    min-width: 12rem;
  }

  .rmt-app .rmt-governed-quick-review-auth-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .rmt-app .rmt-governed-quick-review-auth-action {
    width: auto;
    min-width: 9rem;
  }
}

.rmt-app .rmt-generating {
  border: 1px solid var(--rmt-light);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.rmt-app .rmt-generating .gen-steps {
  display: grid;
  gap: 8px;
}

.rmt-app .rmt-gen-step {
  border: 1px solid var(--rmt-light);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.rmt-app .rmt-gen-step.pending {
  background: #ffffff;
  color: var(--rmt-muted);
}

.rmt-app .rmt-gen-step.active {
  background: var(--rmt-brand-light);
  border-color: var(--rmt-brand);
  color: var(--rmt-ink);
}

.rmt-app .rmt-gen-step.done {
  background: var(--rmt-brand-light);
  border-color: var(--rmt-brand);
  color: var(--rmt-brand);
}

@media (max-width: 620px) {
  .rmt-app .rmt-unified-bar {
    flex-direction: column;
  }

  .rmt-app .rmt-unified-bar .bar-divider {
    width: 100%;
    height: 1px;
    margin: 0 8px;
  }

  .rmt-app .rmt-unified-bar .rmt-unified-select {
    max-width: none;
    width: 100%;
  }
}

.rmt-app .rmt-hero-search-caption {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rmt-app .rmt-tone-teal {
  --rmt-tone-bg: rgba(20, 184, 166, 0.16);
  --rmt-tone-border: rgba(20, 184, 166, 0.28);
  --rmt-tone-fg: #0f766e;
}

.rmt-app .rmt-tone-cyan {
  --rmt-tone-bg: rgba(6, 182, 212, 0.16);
  --rmt-tone-border: rgba(6, 182, 212, 0.28);
  --rmt-tone-fg: #0e7490;
}

.rmt-app .rmt-tone-blue {
  --rmt-tone-bg: rgba(13, 110, 253, 0.14);
  --rmt-tone-border: rgba(13, 110, 253, 0.26);
  --rmt-tone-fg: #0b5ed7;
}

.rmt-app .rmt-tone-indigo {
  --rmt-tone-bg: rgba(79, 70, 229, 0.14);
  --rmt-tone-border: rgba(79, 70, 229, 0.26);
  --rmt-tone-fg: #3730a3;
}

.rmt-app .rmt-tone-purple {
  --rmt-tone-bg: rgba(139, 92, 246, 0.14);
  --rmt-tone-border: rgba(139, 92, 246, 0.26);
  --rmt-tone-fg: #6d28d9;
}

.rmt-app .rmt-tone-fuchsia {
  --rmt-tone-bg: rgba(217, 70, 239, 0.14);
  --rmt-tone-border: rgba(217, 70, 239, 0.26);
  --rmt-tone-fg: #a21caf;
}

.rmt-app .rmt-tone-pink {
  --rmt-tone-bg: rgba(236, 72, 153, 0.14);
  --rmt-tone-border: rgba(236, 72, 153, 0.26);
  --rmt-tone-fg: #be185d;
}

.rmt-app .rmt-tone-orange {
  --rmt-tone-bg: rgba(249, 115, 22, 0.14);
  --rmt-tone-border: rgba(249, 115, 22, 0.26);
  --rmt-tone-fg: #c2410c;
}

.rmt-app .rmt-tone-amber {
  --rmt-tone-bg: rgba(234, 179, 8, 0.16);
  --rmt-tone-border: rgba(234, 179, 8, 0.28);
  --rmt-tone-fg: #92400e;
}

.rmt-app .rmt-tone-green {
  --rmt-tone-bg: rgba(34, 197, 94, 0.14);
  --rmt-tone-border: rgba(34, 197, 94, 0.26);
  --rmt-tone-fg: #15803d;
}

.rmt-app .rmt-tone-slate {
  --rmt-tone-bg: rgba(15, 23, 42, 0.08);
  --rmt-tone-border: rgba(15, 23, 42, 0.14);
  --rmt-tone-fg: #0f172a;
}

.rmt-app .rmt-icon-circle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.10));
  background: var(--rmt-tone-bg, rgba(255, 255, 255, 0.85));
  color: var(--rmt-tone-fg, var(--rmt-slate));
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
  font-weight: 700;
  line-height: 1;
}

.rmt-app .rmt-icon-circle i {
  font-size: 1.15rem;
  line-height: 1;
}

.rmt-app .rmt-mini-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-mini-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

.rmt-app .rmt-card-teal {
  border-top: 4px solid var(--rmt-teal);
}

.rmt-app .rmt-card-purple {
  border-top: 4px solid var(--rmt-purple);
}

.rmt-app .rmt-card-orange {
  border-top: 4px solid var(--rmt-orange);
}

.rmt-app .rmt-mini-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.10));
  background: var(--rmt-tone-bg, rgba(255, 255, 255, 0.75));
  color: var(--rmt-tone-fg, var(--rmt-slate));
}

.rmt-app .rmt-mini-icon i {
  font-size: 1.15rem;
  line-height: 1;
}

.rmt-app .rmt-step-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--rmt-tone-border, rgba(13, 110, 253, 0.18));
  background: var(--rmt-tone-bg, rgba(13, 110, 253, 0.10));
  color: var(--rmt-tone-fg, #0b5ed7);
  font-weight: 700;
  line-height: 1;
}

.rmt-app .rmt-step-badge i {
  font-size: 1.05rem;
  line-height: 1;
}

.rmt-app .rmt-feature-icon,
.rmt-app .rmt-category-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.10));
  background: var(--rmt-tone-bg, rgba(255, 255, 255, 0.75));
  color: var(--rmt-tone-fg, var(--rmt-slate));
}

.rmt-app .rmt-feature-icon i,
.rmt-app .rmt-category-icon i {
  font-size: 1.2rem;
  line-height: 1;
}

.rmt-app .rmt-step-card,
.rmt-app .rmt-feature-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
}

.rmt-app .rmt-step-card:hover,
.rmt-app .rmt-feature-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

.rmt-app .rmt-category-active {
  background: #ffffff;
  border-color: var(--rmt-brand);
  box-shadow: 0 0.5rem 1.25rem rgba(45, 134, 89, 0.12);
}

.rmt-app .rmt-faq .accordion-button {
  font-weight: 650;
}

.rmt-app .rmt-faq .accordion-button:not(.collapsed) {
  background-color: var(--rmt-brand-light);
  color: var(--rmt-brand);
}

.rmt-app .rmt-cta {
  background: var(--rmt-brand-light);
  border: 1px solid rgba(45, 134, 89, 0.15);
  padding: 76px 40px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.rmt-app .rmt-cta .rmt-editorial-heading {
  font-size: 2.5rem;
}

.rmt-app .rmt-home-cta-block {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(3.4rem, 6vw, 4.6rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(133, 126, 91, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(247, 248, 239, 0.84) 100%);
  box-shadow: 0 18px 40px rgba(92, 86, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.rmt-app .rmt-home-cta-block::before {
  content: "";
  display: block;
  width: clamp(88px, 12vw, 132px);
  height: 2px;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 134, 89, 0.26), rgba(201, 145, 45, 0.28));
}

.rmt-app .rmt-home-cta-copy {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--rmt-mid);
  font-size: 1.05rem;
  line-height: 1.75;
}

.rmt-app .rmt-app-header .container-fluid.container-lg,
.rmt-app .rmt-footer .container-fluid.container-lg {
  width: min(100%, calc(1480px + 48px));
  max-width: min(100%, calc(1480px + 48px));
}

.rmt-admin-page,
.rmt-app .rmt-admin-shell {
  --rmt-admin-ink: #10222d;
  --rmt-admin-muted: #607080;
  --rmt-admin-brand: #2d8659;
  --rmt-admin-brand-dark: #1f6542;
  --rmt-admin-brand-soft: #e8f4ee;
  --rmt-admin-line: rgba(45, 134, 89, 0.16);
  --rmt-admin-surface: rgba(255, 255, 255, 0.94);
  --rmt-admin-wash: #eef5f0;
  color: var(--rmt-admin-ink);
}

.rmt-admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(45, 134, 89, 0.08), transparent 34%),
    linear-gradient(180deg, #eaf0eb 0%, #fdfcf9 42%, #f6faf7 100%);
}

.rmt-admin-topbar,
.rmt-app .rmt-admin-navbar {
  border-bottom: 1px solid var(--rmt-admin-line);
  background: rgba(253, 252, 249, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rmt-admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1035;
}

.rmt-admin-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, calc(1480px + 48px));
  max-width: min(100%, calc(1480px + 48px));
  margin-inline: auto;
  padding: 0.82rem clamp(1rem, 2vw, 1.5rem);
}

.rmt-admin-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: #102765;
  font-weight: 800;
  text-decoration: none;
}

.rmt-admin-brand-link:hover,
.rmt-admin-brand-link:focus-visible {
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(45, 134, 89, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--rmt-admin-brand);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.rmt-admin-brand-meta {
  color: var(--rmt-admin-muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.rmt-admin-navbar {
  border-top: 1px solid rgba(45, 134, 89, 0.08);
}

.rmt-admin-mobile-menu,
.rmt-app .rmt-admin-mobile-menu {
  border-bottom: 1px solid var(--rmt-admin-line);
  background: rgba(253, 252, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rmt-admin-mobile-menu-toggle,
.rmt-app .rmt-admin-mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  margin-block: 0.55rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid rgba(45, 134, 89, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--rmt-admin-ink);
  font-weight: 850;
  text-align: left;
}

.rmt-admin-mobile-menu-toggle span,
.rmt-app .rmt-admin-mobile-menu-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rmt-admin-legacy-menu-details summary {
  list-style: none;
  cursor: pointer;
}

.rmt-admin-legacy-menu-details summary::-webkit-details-marker {
  display: none;
}

.rmt-admin-legacy-menu-details[open] .rmt-admin-mobile-menu-toggle > .bi-chevron-down {
  transform: rotate(180deg);
}

.rmt-admin-mobile-menu-toggle:hover,
.rmt-admin-mobile-menu-toggle:focus-visible,
.rmt-app .rmt-admin-mobile-menu-toggle:hover,
.rmt-app .rmt-admin-mobile-menu-toggle:focus-visible {
  border-color: rgba(45, 134, 89, 0.38);
  background: var(--rmt-admin-brand-soft);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-mobile-menu-toggle:focus-visible,
.rmt-app .rmt-admin-mobile-menu-toggle:focus-visible,
.rmt-admin-menu-section-toggle:focus-visible,
.rmt-app .rmt-admin-menu-section-toggle:focus-visible,
.rmt-admin-menu-link:focus-visible,
.rmt-app .rmt-admin-menu-link:focus-visible {
  outline: 2px solid #1f6542;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(31, 101, 66, 0.16);
}

.rmt-admin-mobile-menu-panel,
.rmt-app .rmt-admin-mobile-menu-panel {
  margin-bottom: 0.75rem;
  border: 1px solid var(--rmt-admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(35, 59, 48, 0.08);
}

.rmt-admin-topbar .rmt-admin-navbar {
  border-bottom: 0;
}

.rmt-admin-nav-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow-x: auto;
  padding-block: 0.58rem;
  scrollbar-width: none;
}

.rmt-admin-topbar .rmt-admin-nav-scroll {
  width: min(100%, calc(1480px + 48px));
  max-width: min(100%, calc(1480px + 48px));
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

.rmt-admin-nav-scroll::-webkit-scrollbar {
  display: none;
}

.rmt-admin-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #375062;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.rmt-admin-nav-item:hover,
.rmt-admin-nav-item:focus-visible {
  border-color: rgba(45, 134, 89, 0.22);
  background: rgba(45, 134, 89, 0.07);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-nav-item.is-active,
.rmt-admin-nav-item[aria-current="page"] {
  border-color: rgba(45, 134, 89, 0.3);
  background: var(--rmt-admin-brand-soft);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-page .rmt-badge-green {
  border: 1px solid rgba(45, 134, 89, 0.18);
  background: var(--rmt-admin-brand-soft);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-shell {
  width: 100%;
}

.rmt-admin-shell-layout,
.rmt-app .rmt-admin-shell-layout {
  display: grid;
  grid-template-columns: minmax(14.5rem, 18rem) minmax(0, 1fr);
  gap: 1rem;
  width: min(100%, calc(1480px + 48px));
  max-width: min(100%, calc(1480px + 48px));
  margin-inline: auto;
  padding: 1rem clamp(1rem, 2vw, 1.5rem) 1.5rem;
}

.rmt-admin-shell-layout-main,
.rmt-app .rmt-admin-shell-layout-main {
  min-width: 0;
}

.rmt-admin-menu-rail,
.rmt-app .rmt-admin-menu-rail {
  position: sticky;
  top: 7rem;
  align-self: start;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  border: 1px solid var(--rmt-admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(35, 59, 48, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 134, 89, 0.28) transparent;
}

.rmt-admin-menu-head,
.rmt-app .rmt-admin-menu-head {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(45, 134, 89, 0.12);
  background: rgba(232, 244, 238, 0.64);
}

.rmt-admin-menu-sections,
.rmt-app .rmt-admin-menu-sections {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.rmt-admin-menu-section,
.rmt-app .rmt-admin-menu-section {
  display: grid;
  gap: 0.38rem;
}

.rmt-admin-menu-section-toggle,
.rmt-app .rmt-admin-menu-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.28rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.rmt-admin-menu-section-toggle:hover,
.rmt-app .rmt-admin-menu-section-toggle:hover {
  border-color: rgba(45, 134, 89, 0.14);
  background: rgba(45, 134, 89, 0.05);
}

.rmt-admin-menu-section-label,
.rmt-app .rmt-admin-menu-section-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.35rem;
  color: color-mix(in srgb, var(--rmt-admin-muted) 84%, var(--rmt-admin-ink) 16%);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rmt-admin-menu-group-label,
.rmt-app .rmt-admin-menu-group-label {
  padding: 0.45rem 0.56rem 0.2rem;
  color: var(--rmt-admin-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.rmt-admin-menu-link-list,
.rmt-app .rmt-admin-menu-link-list {
  display: grid;
  gap: 0.16rem;
}

.rmt-admin-menu-link-list[hidden],
.rmt-app .rmt-admin-menu-link-list[hidden] {
  display: none;
}

.rmt-admin-menu-link,
.rmt-app .rmt-admin-menu-link {
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.52rem;
  min-height: 2.75rem;
  padding: 0.48rem 0.56rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #375062;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.18;
  text-decoration: none;
}

.rmt-admin-menu-home-link,
.rmt-app .rmt-admin-menu-home-link {
  margin-bottom: 0.2rem;
}

.rmt-admin-menu-link:hover,
.rmt-admin-menu-link:focus-visible,
.rmt-app .rmt-admin-menu-link:hover,
.rmt-app .rmt-admin-menu-link:focus-visible {
  border-color: rgba(45, 134, 89, 0.22);
  background: rgba(45, 134, 89, 0.07);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-menu-link.is-active,
.rmt-admin-menu-link[aria-current="page"],
.rmt-app .rmt-admin-menu-link.is-active,
.rmt-app .rmt-admin-menu-link[aria-current="page"] {
  border-color: rgba(45, 134, 89, 0.3);
  background: var(--rmt-admin-brand-soft);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-menu-link span:not(.rmt-admin-menu-status),
.rmt-app .rmt-admin-menu-link span:not(.rmt-admin-menu-status) {
  min-width: 0;
}

.rmt-admin-menu-status,
.rmt-app .rmt-admin-menu-status,
.rmt-admin-card-status,
.rmt-app .rmt-admin-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.38rem;
  padding: 0.16rem 0.36rem;
  border: 1px solid rgba(45, 134, 89, 0.2);
  border-radius: 999px;
  background: rgba(232, 244, 238, 0.8);
  color: var(--rmt-admin-brand-dark);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.rmt-admin-shell>.container-fluid,
.rmt-app .rmt-admin-shell>.container-fluid {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.rmt-admin-page-heading,
.rmt-admin-hero,
.rmt-app .rmt-admin-hero,
.rmt-app .rmt-admin-body,
.rmt-app .rmt-admin-content-card {
  width: 100%;
}

.rmt-admin-page-heading,
.rmt-admin-hero,
.rmt-app .rmt-admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--rmt-admin-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(45, 134, 89, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 248, 0.96));
  box-shadow: 0 12px 28px rgba(35, 59, 48, 0.08);
}

.rmt-admin-title,
.rmt-app .rmt-admin-title {
  color: var(--rmt-admin-ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.rmt-admin-subtitle,
.rmt-app .rmt-admin-subtitle {
  max-width: 72ch;
  color: var(--rmt-admin-muted);
  line-height: 1.48;
}

.rmt-admin-body,
.rmt-app .rmt-admin-body {
  display: block;
}

.rmt-app .rmt-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rmt-admin-card,
.rmt-admin-content-card,
.rmt-app .rmt-admin-content-card {
  border: 1px solid var(--rmt-admin-line);
  border-radius: 8px;
  background: var(--rmt-admin-surface);
  box-shadow: 0 12px 28px rgba(35, 59, 48, 0.08);
}

.rmt-admin-card .card-header {
  border-bottom-color: rgba(45, 134, 89, 0.12);
  background: rgba(232, 244, 238, 0.72);
  color: var(--rmt-admin-ink);
}

.rmt-admin-content-shell,
.rmt-app .rmt-admin-content-shell {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.rmt-admin-lifecycle-status,
.rmt-app .rmt-admin-lifecycle-status {
  min-width: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rmt-admin-line);
}

.rmt-admin-lifecycle-status .form-select,
.rmt-app .rmt-admin-lifecycle-status .form-select {
  width: min(100%, 24rem);
}

@media (max-width: 575.98px) {
  .rmt-admin-lifecycle-release-flow .rmt-admin-release-flow-step.is-complete .rmt-admin-release-flow-meta > span:last-child,
  .rmt-app .rmt-admin-lifecycle-release-flow .rmt-admin-release-flow-step.is-complete .rmt-admin-release-flow-meta > span:last-child {
    display: none;
  }

  .rmt-admin-lifecycle-status .btn,
  .rmt-admin-lifecycle-status .form-select,
  .rmt-app .rmt-admin-lifecycle-status .btn,
  .rmt-app .rmt-admin-lifecycle-status .form-select {
    width: 100%;
  }
}

.rmt-admin-content-header,
.rmt-app .rmt-admin-content-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rmt-admin-home-section-grid,
.rmt-app .rmt-admin-home-section-grid {
  display: grid;
  gap: 1rem;
}

.rmt-admin-home-section,
.rmt-app .rmt-admin-home-section {
  scroll-margin-top: 7rem;
  display: grid;
  gap: 0.65rem;
  padding-top: 0.1rem;
}

.rmt-admin-home-section-title,
.rmt-app .rmt-admin-home-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rmt-admin-ink);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rmt-admin-home-group-label,
.rmt-app .rmt-admin-home-group-label {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  color: var(--rmt-admin-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.rmt-admin-workspace-grid,
.rmt-app .rmt-admin-workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.85rem;
}

.rmt-admin-workspace-card,
.rmt-app .rmt-admin-workspace-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 6.6rem;
  padding: 1rem;
  border: 1px solid rgba(45, 134, 89, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 248, 0.96));
  color: var(--rmt-admin-ink);
  text-decoration: none;
}

.rmt-admin-workspace-card:hover,
.rmt-admin-workspace-card:focus-visible,
.rmt-app .rmt-admin-workspace-card:hover,
.rmt-app .rmt-admin-workspace-card:focus-visible {
  border-color: rgba(45, 134, 89, 0.34);
  background: #ffffff;
  color: var(--rmt-admin-ink);
  box-shadow: 0 12px 24px rgba(35, 59, 48, 0.1);
}

.rmt-admin-workspace-icon,
.rmt-app .rmt-admin-workspace-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--rmt-admin-brand-soft);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-workspace-copy,
.rmt-app .rmt-admin-workspace-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.rmt-admin-workspace-title,
.rmt-app .rmt-admin-workspace-title {
  color: var(--rmt-admin-ink);
  font-weight: 800;
  line-height: 1.25;
}

.rmt-admin-workspace-description,
.rmt-app .rmt-admin-workspace-description {
  color: var(--rmt-admin-muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.rmt-admin-workspace-chevron,
.rmt-app .rmt-admin-workspace-chevron {
  color: var(--rmt-admin-brand);
}

.rmt-admin-page .btn-primary,
.rmt-admin-shell .rmt-admin-open,
.rmt-app .rmt-admin-shell .rmt-admin-open {
  border-color: var(--rmt-admin-brand);
  background: linear-gradient(180deg, #57a079 0%, var(--rmt-admin-brand) 100%);
  color: #ffffff;
  font-weight: 800;
}

.rmt-admin-page .btn-primary:hover,
.rmt-admin-page .btn-primary:focus-visible,
.rmt-admin-shell .rmt-admin-open:hover,
.rmt-admin-shell .rmt-admin-open:focus-visible,
.rmt-app .rmt-admin-shell .rmt-admin-open:hover,
.rmt-app .rmt-admin-shell .rmt-admin-open:focus-visible {
  border-color: var(--rmt-admin-brand-dark);
  background: var(--rmt-admin-brand-dark);
  color: #ffffff;
}

.rmt-admin-page .btn-outline-light,
.rmt-admin-page .btn-outline-secondary {
  border-color: rgba(45, 134, 89, 0.28);
  color: var(--rmt-admin-brand-dark);
  background: rgba(255, 255, 255, 0.72);
}

.rmt-admin-page .btn-outline-light:hover,
.rmt-admin-page .btn-outline-light:focus-visible,
.rmt-admin-page .btn-outline-secondary:hover,
.rmt-admin-page .btn-outline-secondary:focus-visible {
  border-color: rgba(45, 134, 89, 0.42);
  background: var(--rmt-admin-brand-soft);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-page .form-control,
.rmt-admin-page .form-select {
  border-color: rgba(45, 134, 89, 0.18);
}

.rmt-admin-page .form-control:focus,
.rmt-admin-page .form-select:focus {
  border-color: rgba(45, 134, 89, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(45, 134, 89, 0.12);
}

.rmt-admin-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(232, 244, 238, 0.48);
  --bs-table-hover-bg: rgba(45, 134, 89, 0.07);
  color: var(--rmt-admin-ink);
}

.rmt-admin-table thead th {
  color: #425767;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rmt-admin-sort-button,
.rmt-app .rmt-admin-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
  letter-spacing: inherit;
  text-transform: inherit;
}

.rmt-admin-sort-button:hover,
.rmt-admin-sort-button:focus-visible,
.rmt-app .rmt-admin-sort-button:hover,
.rmt-app .rmt-admin-sort-button:focus-visible {
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-sort-button:focus-visible,
.rmt-app .rmt-admin-sort-button:focus-visible {
  outline: 2px solid #1f6542;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(31, 101, 66, 0.16);
}

.rmt-admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.rmt-admin-login-card {
  width: min(100%, 30rem);
}

.rmt-admin-release-flow,
.rmt-app .rmt-admin-release-flow {
  margin-bottom: 1rem;
  border: 1px solid var(--rmt-admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(35, 59, 48, 0.08);
}

.rmt-admin-release-flow-list,
.rmt-app .rmt-admin-release-flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rmt-admin-release-flow-step,
.rmt-app .rmt-admin-release-flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: flex-start;
  min-width: 0;
  padding: 0.85rem;
  border-right: 1px solid rgba(45, 134, 89, 0.12);
}

.rmt-admin-release-flow-step:last-child,
.rmt-app .rmt-admin-release-flow-step:last-child {
  border-right: 0;
}

.rmt-admin-release-flow-marker,
.rmt-app .rmt-admin-release-flow-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(96, 112, 128, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--rmt-admin-muted);
  font-size: 0.82rem;
  line-height: 1;
}

.rmt-admin-release-flow-step.is-current .rmt-admin-release-flow-marker,
.rmt-app .rmt-admin-release-flow-step.is-current .rmt-admin-release-flow-marker {
  border-color: var(--rmt-admin-brand);
  background: var(--rmt-admin-brand-soft);
  color: var(--rmt-admin-brand-dark);
}

.rmt-admin-release-flow-step.is-complete .rmt-admin-release-flow-marker,
.rmt-app .rmt-admin-release-flow-step.is-complete .rmt-admin-release-flow-marker {
  border-color: var(--rmt-admin-brand);
  background: var(--rmt-admin-brand);
  color: #ffffff;
}

.rmt-admin-release-flow-copy,
.rmt-app .rmt-admin-release-flow-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.rmt-admin-release-flow-title,
.rmt-app .rmt-admin-release-flow-title {
  color: var(--rmt-admin-ink);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

.rmt-admin-release-flow-meta,
.rmt-app .rmt-admin-release-flow-meta {
  display: grid;
  gap: 0.18rem;
  color: var(--rmt-admin-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.3;
}

.rmt-admin-release-flow-state,
.rmt-app .rmt-admin-release-flow-state {
  color: var(--rmt-admin-brand-dark);
  font-weight: 900;
}

.rmt-admin-page-size-control,
.rmt-app .rmt-admin-page-size-control {
  display: inline-grid;
  gap: 0.18rem;
  min-width: 8.5rem;
}

.rmt-admin-list-card-stack,
.rmt-app .rmt-admin-list-card-stack {
  display: grid;
  gap: 0.75rem;
}

.rmt-admin-list-card,
.rmt-app .rmt-admin-list-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(45, 134, 89, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.rmt-admin-list-card-head,
.rmt-app .rmt-admin-list-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.rmt-admin-list-card-kicker,
.rmt-app .rmt-admin-list-card-kicker {
  overflow-wrap: anywhere;
  color: var(--rmt-admin-muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.rmt-admin-list-card-title,
.rmt-app .rmt-admin-list-card-title {
  margin: 0.12rem 0 0;
  overflow-wrap: anywhere;
  color: var(--rmt-admin-ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.22;
}

.rmt-admin-list-card-meta,
.rmt-app .rmt-admin-list-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.rmt-admin-list-card-meta div,
.rmt-app .rmt-admin-list-card-meta div {
  display: grid;
  gap: 0.1rem;
}

.rmt-admin-list-card-meta dt,
.rmt-app .rmt-admin-list-card-meta dt {
  color: var(--rmt-admin-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rmt-admin-list-card-meta dd,
.rmt-app .rmt-admin-list-card-meta dd {
  margin: 0;
  color: var(--rmt-admin-ink);
  font-size: 0.88rem;
  font-weight: 720;
}

.rmt-admin-list-card-actions,
.rmt-app .rmt-admin-list-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rmt-admin-list-card-actions .btn,
.rmt-app .rmt-admin-list-card-actions .btn {
  min-height: 2.75rem;
}

.rmt-admin-list-empty,
.rmt-app .rmt-admin-list-empty {
  padding: 1rem;
  border: 1px dashed rgba(45, 134, 89, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rmt-admin-muted);
  font-size: 0.92rem;
  font-weight: 650;
}

@media (max-width: 767.98px) {
  .rmt-admin-brand-row,
  .rmt-admin-page-heading,
  .rmt-admin-hero,
  .rmt-app .rmt-admin-hero,
  .rmt-admin-content-header,
  .rmt-app .rmt-admin-content-header {
    flex-direction: column;
    align-items: stretch;
  }

  .rmt-admin-brand-meta {
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .rmt-admin-topbar .rmt-admin-navbar,
  .rmt-app .rmt-admin-navbar,
  .rmt-admin-mobile-menu,
  .rmt-app .rmt-admin-mobile-menu {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .rmt-admin-shell-layout,
  .rmt-app .rmt-admin-shell-layout {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .rmt-admin-menu-rail,
  .rmt-app .rmt-admin-menu-rail {
    display: none;
  }

  .rmt-admin-release-flow-list,
  .rmt-app .rmt-admin-release-flow-list {
    grid-template-columns: 1fr;
  }

  .rmt-admin-release-flow-step,
  .rmt-app .rmt-admin-release-flow-step {
    border-right: 0;
    border-bottom: 1px solid rgba(45, 134, 89, 0.12);
  }

  .rmt-admin-release-flow-step:last-child,
  .rmt-app .rmt-admin-release-flow-step:last-child {
    border-bottom: 0;
  }
}

.rmt-app .rmt-practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.rmt-app .rmt-practice-copy {
  max-width: 42ch;
}

.rmt-app .rmt-practice-headline {
  font-family: "Playfair Display", "Manrope", "Roboto", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  font-weight: 700;
  color: #0f172a;
}

.rmt-app .rmt-practice-subline {
  margin-top: 0.65rem;
  font-size: 1.05rem;
  color: rgba(15, 23, 42, 0.72);
}

.rmt-app .rmt-practice-media {
  position: relative;
}

.rmt-app .rmt-practice-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.75rem;
}

.rmt-app .rmt-practice-kicker-right {
  text-align: right;
}

.rmt-app .rmt-quiz-showcase {
  position: relative;
  min-height: 280px;
  border-radius: 20px;
}

.rmt-app .rmt-quiz-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: rmt-quiz-cycle 20s infinite;
}

.rmt-app .rmt-quiz-slide-1 {
  animation-delay: 0s;
}

.rmt-app .rmt-quiz-slide-2 {
  animation-delay: 5s;
}

.rmt-app .rmt-quiz-slide-3 {
  animation-delay: 10s;
}

.rmt-app .rmt-quiz-slide-4 {
  animation-delay: 15s;
}

.rmt-app .rmt-quiz-surface {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  height: 100%;
}

.rmt-app .rmt-quiz-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.rmt-app .rmt-quiz-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: var(--rmt-tone-bg, rgba(15, 23, 42, 0.06));
  color: var(--rmt-tone-fg, #0f172a);
  font-size: 0.78rem;
  font-weight: 700;
}

.rmt-app .rmt-quiz-bowtie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.rmt-app .rmt-quiz-bowtie-column {
  display: grid;
  gap: 0.5rem;
}

.rmt-app .rmt-quiz-bowtie-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-quiz-diamond {
  width: 120px;
  height: 120px;
  transform: rotate(45deg);
  border-radius: 18px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: var(--rmt-tone-bg, rgba(15, 23, 42, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-quiz-diamond-text {
  transform: rotate(-45deg);
  font-weight: 700;
}

.rmt-app .rmt-quiz-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: var(--rmt-tone-bg, rgba(15, 23, 42, 0.06));
  color: var(--rmt-tone-fg, #0f172a);
  font-size: 0.85rem;
  font-weight: 600;
}

.quiz-dropdown {
  margin-bottom: 1rem;
}

.quiz-dropdown-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 1rem 1.25rem;
}

.quiz-dropdown-paragraph {
  margin: 0;
  line-height: 1.6;
  white-space: normal;
}

.quiz-dropdown-segment,
.quiz-dropdown-text,
.quiz-dropdown-status {
  display: inline;
}

.quiz-dropdown-select {
  display: inline-block !important;
  width: 14ch !important;
  min-width: 14ch !important;
  max-width: 14ch !important;
  margin: 0 0.25rem;
  vertical-align: baseline;
}

.quiz-dropdown-status {
  display: inline-block;
  margin-left: 0.35rem;
}

.quiz-dropdown-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-dropdown-review-item {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1.1rem;
}

.quiz-dropdown-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quiz-dropdown-review-sentence {
  flex: 1 1 18rem;
  line-height: 1.6;
  color: #0f172a;
}

.quiz-dropdown-review-answer {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.14rem 0.7rem;
  margin: 0 0.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
}

.quiz-dropdown-review-answer.is-correct {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.2);
  color: #166534;
}

.quiz-dropdown-review-answer.is-incorrect {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.quiz-dropdown-review-answer.is-missed {
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.quiz-dropdown-review-meta {
  margin: 0.45rem 0 0.65rem;
}

@media (max-width: 767.98px) {
  .quiz-dropdown-review-header {
    flex-direction: column;
  }

  .quiz-dropdown-review-answer {
    margin: 0.35rem 0;
  }
}

.rmt-app .rmt-quiz-dropdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.rmt-app .rmt-quiz-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  border: 1px dashed var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: #fff7ed;
  font-weight: 600;
}

.rmt-app .rmt-quiz-dropdown-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rmt-app .rmt-quiz-table {
  display: grid;
  gap: 0.4rem;
}

.rmt-app .rmt-quiz-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
}

.rmt-app .rmt-quiz-table-header {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.7);
}

.rmt-app .rmt-quiz-cell {
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f1f5f9;
}

.rmt-app .rmt-quiz-cell-on {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
}

.rmt-app .rmt-quiz-notes {
  background: #f8fafc;
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.rmt-app .rmt-quiz-notes-paragraph {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.8);
}

.rmt-app .rmt-quiz-highlight {
  background: rgba(236, 72, 153, 0.2);
  color: #9d174d;
  padding: 0 0.2rem;
  border-radius: 6px;
}

@keyframes rmt-quiz-cycle {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  22% {
    opacity: 1;
    transform: translateY(0);
  }

  30% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 991px) {
  .rmt-app .rmt-practice-layout {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-practice-kicker-right {
    text-align: left;
  }

  .rmt-app .rmt-quiz-showcase {
    min-height: 320px;
  }
}

@media (max-width: 992px) {
  .rmt-app .rmt-admin-body {
    display: block;
  }
}

@media (max-width: 576px) {
  .rmt-app .rmt-icon-circle {
    width: 38px;
    height: 38px;
  }

  .rmt-app .rmt-mini-icon,
  .rmt-app .rmt-feature-icon,
  .rmt-app .rmt-category-icon {
    width: 38px;
    height: 38px;
  }

  .rmt-app .rmt-anchor {
    scroll-margin-top: 84px;
  }
}

.rmt-app .rmt-footer-link {
  color: var(--rmt-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.rmt-app .rmt-footer-link:hover,
.rmt-app .rmt-footer-link:focus {
  color: var(--rmt-brand);
  text-decoration: underline;
}

.rmt-app .rmt-legal-page {
  padding-top: clamp(1rem, 3vw, 2.25rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.rmt-app .rmt-legal-card {
  max-width: 980px;
  margin: 0 auto;
}

.rmt-app .rmt-legal-copy {
  color: var(--rmt-mid);
  font-size: 0.98rem;
  line-height: 1.7;
}

.rmt-app .rmt-legal-copy p:last-child,
.rmt-app .rmt-legal-copy ul:last-child {
  margin-bottom: 0;
}

.rmt-app .rmt-account-privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.rmt-app .rmt-account-privacy-panel {
  border: 1px solid rgba(23, 133, 122, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.rmt-app .rmt-account-export-preview {
  max-height: 420px;
  overflow: auto;
  border-radius: 8px;
  padding: 16px;
  background: #17211c;
  color: #eaf0eb;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 700px) {
  .rmt-app .rmt-account-privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* ── New layout patterns (Bootstrap) ── */

/* Popular topic chips */
.rmt-app .rmt-popular-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: var(--rmt-tone-bg, rgba(15, 23, 42, 0.06));
  color: var(--rmt-tone-fg, #0f172a);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rmt-app .rmt-popular-chip:hover {
  filter: brightness(0.92);
}

/* Stat cards */
.rmt-app .rmt-stat-card {
  border-radius: 12px;
  border-left: 4px solid var(--rmt-tone-fg, var(--rmt-brand));
}

/* Stepper */
.rmt-app .rmt-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
  min-height: 112px;
  padding: 0.9rem 1rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  max-width: 180px;
}

  transform: translateY(-1px);
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  height: 2px;
  background: var(--rmt-light);
  border-radius: 1px;
  margin-top: 22px;
  background: color-mix(in srgb, #ffffff 82%, var(--concept-soft, rgba(45, 134, 89, 0.12)) 18%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--concept-soft, rgba(45, 134, 89, 0.12)) 72%, rgba(255, 255, 255, 0.25)), 0 8px 18px rgba(15, 23, 42, 0.06);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .rmt-app .rmt-stepper-item {
    flex-direction: row;
    text-align: left;
    max-width: none;
    gap: 0.75rem;
  }

  .rmt-app .rmt-stepper-item .rmt-step-badge {
    flex-shrink: 0;
  }

  .rmt-app .rmt-stepper-connector {
    display: none;
  }
}

/* Quiz preview tabs */
.rmt-app .rmt-quiz-tabs .nav-link {
  font-weight: 600;
  border-radius: 0;
  color: var(--rmt-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
}

.rmt-app .rmt-quiz-tabs .nav-link:hover {
  color: var(--rmt-ink);
  border-bottom-color: rgba(10, 10, 10, 0.3);
}

.rmt-app .rmt-quiz-tabs .nav-link.active {
  color: var(--rmt-ink);
  border-bottom-color: var(--rmt-ink);
  background: transparent;
}

/* CTA banner */
.rmt-app .rmt-cta-gradient {
  background: var(--rmt-brand-light);
}

/* Announcement strip */
.rmt-app .rmt-announce {
  background: var(--rmt-brand-light);
  padding: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rmt-brand);
  letter-spacing: 0.02em;
}

.rmt-app .rmt-announce a {
  color: var(--rmt-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Editorial section headers */
.rmt-app .rmt-editorial-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rmt-brand);
  margin-bottom: 8px;
}

.rmt-app .rmt-editorial-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.3rem, 3vw, 3rem);
  color: var(--rmt-ink);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 18px;
}

/* Home page mockup J implementation */
.rmt-app .rmt-home {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(201, 145, 45, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(45, 134, 89, 0.08), transparent 32%),
    linear-gradient(180deg, #dbe2da 0%, #d6ddd6 46%, #d1d9d2 100%);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.rmt-app .rmt-home .container-fluid.container-lg {
  width: min(100%, 1680px);
  max-width: min(100%, 1680px);
}

.rmt-app .rmt-home .rmt-section {
  width: min(100%, 1680px);
  max-width: min(100%, 1680px);
  margin-inline: auto;
}

.rmt-app .rmt-home-band-white {
  background: transparent;
  border-bottom: none;
  padding-block: 10px;
}

.rmt-app .rmt-home-band-clinical {
  background: transparent;
  padding-block: 10px;
}

.rmt-app .rmt-home-band-study {
  background: transparent;
  padding-block: 10px;
}

.rmt-app .rmt-home-band-warm {
  background: transparent;
  padding-block: 10px;
}

.rmt-app .rmt-home-editorial-band {
  background: transparent;
}

.rmt-app .rmt-home-editorial-band-warm {
  background: transparent;
}

.rmt-app .rmt-home-band-muted {
  background: transparent;
  padding-block: 10px;
}

.rmt-app .rmt-home-hero-shell {
  display: flex;
  flex-direction: column;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0.9rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
  position: relative;
  z-index: 3;
}

.rmt-app .rmt-home-hero-title {
  order: 0;
  max-width: 18ch;
  margin: 0 auto 0.7rem;
  font-size: clamp(1.9rem, 8vw, 2.35rem);
  line-height: 1.08;
}

.rmt-app .rmt-home-hero-subtitle {
  order: 0;
  max-width: 42rem;
  margin: 0 auto 1rem;
  color: rgba(10, 10, 10, 0.74);
  font-size: 1rem;
  line-height: 1.6;
}

.rmt-app .rmt-home-hero-search-wrap {
  order: 1;
  width: 100%;
  align-self: stretch !important;
  max-width: 1480px;
  margin: 0 auto 1rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  z-index: 6;
  overflow: visible;
}

.rmt-app .rmt-home-discovery-studio {
  order: 3;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 0;
  border: 1px solid rgba(180, 151, 111, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(250, 245, 236, 0.94) 100%);
  box-shadow: 0 10px 24px rgba(93, 67, 30, 0.1);
}

.rmt-app .rmt-home-discovery-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(180, 151, 111, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98) 0%, rgba(248, 241, 228, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  color: var(--rmt-ink);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.rmt-app .rmt-home-discovery-toggle:hover,
.rmt-app .rmt-home-discovery-toggle:focus-visible {
  border-color: rgba(45, 134, 89, 0.32);
  background: linear-gradient(180deg, rgba(255, 253, 247, 1) 0%, rgba(246, 241, 229, 0.97) 100%);
  box-shadow: 0 12px 22px rgba(93, 67, 30, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.rmt-app .rmt-home-discovery-studio.is-open .rmt-home-discovery-toggle {
  border-color: rgba(45, 134, 89, 0.34);
  box-shadow: 0 14px 24px rgba(45, 134, 89, 0.08);
}

.rmt-app .rmt-home-discovery-toggle-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.rmt-app .rmt-home-discovery-toggle-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--rmt-ink);
}

.rmt-app .rmt-home-discovery-toggle-subtitle {
  font-size: 0.8rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--rmt-mid) 88%, #5b4632 12%);
}

.rmt-app .rmt-home-discovery-toggle-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(45, 134, 89, 0.1);
  color: var(--rmt-brand);
  font-size: 0.84rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.rmt-app .rmt-home-discovery-studio.is-open .rmt-home-discovery-toggle-icon {
  transform: rotate(180deg);
}

.rmt-app .rmt-home-discovery-band {
  width: 100%;
  max-width: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rmt-app .rmt-home-discovery-lane {
  display: block;
  min-width: 0;
}

.rmt-app .rmt-home-discovery-module {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(217, 199, 163, 0.36);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 247, 235, 0.78) 0%, rgba(247, 239, 222, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rmt-app .rmt-home-discovery-module-secondary {
  padding-top: 0.9rem;
  border: 1px solid rgba(195, 212, 224, 0.44);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.82) 0%, rgba(239, 245, 249, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rmt-app .rmt-home-discovery-head {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.rmt-app .rmt-home-discovery-title {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--rmt-ink);
}

.rmt-app .rmt-home-discovery-copy {
  font-size: 0.78rem;
  line-height: 1.42;
  color: color-mix(in srgb, var(--rmt-mid) 92%, #5b4632 8%);
}

.rmt-app .rmt-home-discovery-module-secondary .rmt-home-discovery-copy {
  color: color-mix(in srgb, var(--rmt-mid) 86%, #3f617a 14%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-wrap {
  width: 100%;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-bar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  position: relative;
  z-index: 8;
  isolation: isolate;
  gap: 0;
  overflow: hidden;
  border: 1.5px solid rgba(45, 134, 89, 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 245, 0.95) 100%);
  box-shadow: 0 10px 24px rgba(93, 67, 30, 0.1);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-entry {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.34rem;
  padding: 0.78rem 0.92rem;
  border: 1px solid rgba(45, 134, 89, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 252, 251, 0.96) 0%, rgba(243, 248, 245, 0.94) 100%);
  box-shadow: 0 8px 20px rgba(93, 67, 30, 0.06);
  color: var(--rmt-ink);
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button:focus-visible {
  border-color: rgba(45, 134, 89, 0.34);
  background: linear-gradient(180deg, rgba(252, 254, 253, 0.99) 0%, rgba(241, 248, 244, 0.97) 100%);
  box-shadow: 0 12px 24px rgba(93, 67, 30, 0.08);
  outline: none;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button.is-active,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button.is-open {
  border-color: rgba(45, 134, 89, 0.42);
  background: linear-gradient(180deg, rgba(244, 250, 246, 0.99) 0%, rgba(234, 245, 238, 0.98) 100%);
  box-shadow: 0 14px 28px rgba(45, 134, 89, 0.1);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button-label {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--rmt-brand) 78%, #4f463a 22%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button-value {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  color: color-mix(in srgb, var(--rmt-ink) 92%, var(--rmt-brand) 8%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rmt-brand);
  font-size: 0.82rem;
  transition: transform 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button.is-open .rmt-inline-search-scope-button-icon {
  transform: rotate(180deg);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap {
  display: flex;
  align-items: stretch;
  min-height: 56px;
  flex: 0 0 auto;
  width: auto;
  max-width: 220px;
  padding: 0;
  border: none;
  border-right: 1px solid rgba(180, 151, 111, 0.16);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(248, 251, 249, 0.98) 0%, rgba(239, 246, 242, 0.95) 100%);
  box-shadow: none;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, border-radius 0.15s ease;
}

/* Custom chevron — replaces the OS-native select arrow */
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap.is-open {
  background: linear-gradient(180deg, rgba(252, 254, 253, 0.99) 0%, rgba(243, 249, 245, 0.98) 100%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger {
  min-height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--rmt-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger:focus {
  outline: none;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap:focus-within .rmt-inline-search-scope-trigger {
  background: rgba(255, 255, 255, 0.24);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger-text {
  display: block;
  flex: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--rmt-brand);
  font-size: 0.82rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap.is-open .rmt-inline-search-scope-trigger-icon {
  transform: rotate(180deg);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu {
  position: static;
  margin-top: 10px;
  z-index: 28;
  width: 100%;
  max-width: none;
  max-height: min(16.5rem, calc(100vh - 14rem));
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem;
  padding: 0.38rem;
  border: 1.5px solid rgba(45, 134, 89, 0.44);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(252, 254, 253, 0.99) 0%, rgba(243, 249, 245, 0.98) 100%);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 134, 89, 0.32) transparent;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu::-webkit-scrollbar {
  width: 8px;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu::-webkit-scrollbar-track {
  background: transparent;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu::-webkit-scrollbar-thumb {
  background: rgba(45, 134, 89, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group {
  min-width: 0;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-all {
  grid-column: auto;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-concepts,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-client-needs {
  padding: 0.38rem;
  border: 1px solid rgba(45, 134, 89, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 250, 247, 0.95) 0%, rgba(239, 246, 242, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-label {
  display: block;
  margin-bottom: 0.25rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--rmt-brand) 82%, var(--rmt-ink) 18%);
  text-align: left;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-options {
  display: grid;
  gap: 0.12rem;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-concepts .rmt-inline-search-scope-options,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-client-needs .rmt-inline-search-scope-options {
  padding-left: 0.3rem;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 0.42rem 0.64rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--rmt-ink);
  font: inherit;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-concepts .rmt-inline-search-scope-option,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-client-needs .rmt-inline-search-scope-option {
  padding-left: 0.72rem;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option:focus-visible {
  background: rgba(45, 134, 89, 0.09);
  color: color-mix(in srgb, var(--rmt-brand) 80%, var(--rmt-ink) 20%);
  outline: none;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option.is-active {
  background: rgba(45, 134, 89, 0.14);
  color: color-mix(in srgb, var(--rmt-brand) 84%, var(--rmt-ink) 16%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option-label {
  font-weight: 600;
  min-width: 0;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.7rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--rmt-brand) 84%, var(--rmt-ink) 16%);
  opacity: 0.96;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap:focus-within {
  background: linear-gradient(180deg, rgba(249, 252, 250, 0.99) 0%, rgba(238, 247, 241, 0.97) 100%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-bar:focus-within {
  border-color: rgba(45, 134, 89, 0.5);
  box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.11), 0 10px 24px rgba(93, 67, 30, 0.1);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-all .rmt-inline-search-scope-options {
  grid-template-columns: minmax(0, 1fr);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-all .rmt-inline-search-scope-option {
  border: 1px solid rgba(45, 134, 89, 0.14);
  background: rgba(45, 134, 89, 0.04);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-all .rmt-inline-search-scope-option.is-active {
  background: rgba(45, 134, 89, 0.16);
  border-color: rgba(45, 134, 89, 0.2);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-input {
  min-height: 56px;
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 14px;
  font: inherit;
  font-size: 1.02rem;
  color: var(--rmt-ink);
  outline: none;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-input::placeholder {
  color: color-mix(in srgb, var(--rmt-muted) 88%, #ffffff 12%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-input:focus {
  box-shadow: none;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-button,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  background: linear-gradient(180deg, #57a079 0%, var(--rmt-brand) 100%);
  border: 0;
  border-left: 1px solid rgba(45, 134, 89, 0.18);
  border-radius: 0;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: none;
  width: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-button-label {
  display: inline-flex;
  align-items: center;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-button:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button:focus-visible,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary:focus-visible,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary:focus-visible {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 15px 30px rgba(52, 74, 64, 0.12);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-button:disabled,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary:disabled,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary:disabled {
  background: linear-gradient(180deg, rgba(87, 160, 121, 0.8) 0%, rgba(45, 134, 89, 0.8) 100%);
  border-color: rgba(45, 134, 89, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(52, 74, 64, 0.08);
}

.rmt-app .rmt-home-hero-search .form-label {
  margin-bottom: 0;
}

.rmt-app .rmt-home-hero-search .rmt-search-overlay {
  position: static;
  margin-top: 6px;
  z-index: auto;
  max-height: 360px;
}

.rmt-app .rmt-home-hero-search .rmt-search-browse-surface {
  max-height: none;
  overflow: visible;
}

/* Keep the connected search workspace stable while browse/results scroll inside it. */
.rmt-app .rmt-home-hero-search .rmt-search-persistent-surface,
.rmt-app .rmt-home-hero-search .rmt-search-persistent-surface.rmt-search-browse-surface {
  height: clamp(18rem, 58vh, 30rem);
  max-height: clamp(18rem, 58vh, 30rem);
  overflow: hidden;
}

.rmt-app .rmt-home-hero-search .rmt-search-persistent-surface .rmt-overlay-body,
.rmt-app .rmt-home-hero-search .rmt-search-persistent-surface .rmt-overlay-browse-tray {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.rmt-app .rmt-home-hero-search .rmt-search-persistent-surface .rmt-overlay-browse-tray {
  align-content: start;
}

.rmt-app .rmt-home-cat-chips {
  order: 2;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 1360px;
  margin: 10px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(239, 245, 240, 0.2) 100%);
  box-shadow: 0 14px 30px rgba(52, 74, 64, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(4px);
}

.rmt-app .rmt-home-cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(238, 243, 239, 0.98) 100%);
  color: var(--chip-accent, var(--rmt-mid));
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(15, 23, 42, 0.05),
    0 2px 0 rgba(15, 23, 42, 0.06),
    0 6px 14px rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-home-cat-chip:hover {
  border-color: var(--chip-accent, var(--rmt-brand));
  background: linear-gradient(180deg,
      color-mix(in srgb, #ffffff 88%, var(--chip-accent-soft, rgba(45, 134, 89, 0.12)) 12%) 0%,
      color-mix(in srgb, rgba(238, 243, 239, 0.98) 74%, var(--chip-accent-soft, rgba(45, 134, 89, 0.12)) 26%) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(15, 23, 42, 0.03),
    0 3px 0 color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 28%, rgba(15, 23, 42, 0.06)),
    0 8px 16px rgba(15, 23, 42, 0.08);
}

.rmt-app .rmt-home-cat-chip:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 6px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(15, 23, 42, 0.06);
}

.rmt-app .rmt-home-cat-chip.active {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 92%, #ffffff 8%) 0%,
      color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 84%, rgba(15, 23, 42, 0.12) 16%) 100%);
  border-color: color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 82%, rgba(15, 23, 42, 0.18) 18%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(15, 23, 42, 0.12),
    0 0 0 2px color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 24%, rgba(255, 255, 255, 0.34)),
    0 6px 14px color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 30%, rgba(15, 23, 42, 0.14));
}

.rmt-app .rmt-home-cat-chip .chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 18%, rgba(15, 23, 42, 0.08));
  background: transparent;
  box-shadow: none;
  font-size: 0.88rem;
  line-height: 1;
  flex-shrink: 0;
}

.rmt-app .rmt-home-cat-chip .chip-label {
  display: inline-block;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rmt-app .rmt-home-cat-chip.active .chip-icon {
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.rmt-app .rmt-home-concepts-layout {
  order: 2;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  gap: 18px;
  width: 100%;
  max-width: 1360px;
  margin: 16px auto 0;
}

.rmt-app .rmt-home-browse-card-shell {
  position: relative;
  display: flex;
  min-height: 100%;
}

.rmt-app .rmt-home-browse-card-shell:has(.rmt-home-card-info-wrap.is-open) {
  z-index: 30;
}

.rmt-app .rmt-home-card-info-wrap {
  position: relative;
  z-index: 4;
}

.rmt-app .rmt-home-card-info-wrap-inline {
  justify-self: end;
  align-self: start;
}

.rmt-app .rmt-home-card-info-wrap-corner {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 5;
}

.rmt-app .rmt-home-card-top-row {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) 1.7rem;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.rmt-app .rmt-home-card-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--rmt-mid);
  font-size: 0.7rem;
  opacity: 0.72;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-trigger {
  border-color: rgba(122, 93, 51, 0.16);
  background: rgba(252, 246, 233, 0.8);
  color: #7a5d33;
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-trigger {
  border-color: rgba(63, 97, 122, 0.16);
  background: rgba(248, 251, 253, 0.82);
  color: #3f617a;
}

.rmt-app .rmt-home-card-info-trigger:hover,
.rmt-app .rmt-home-card-info-trigger:focus-visible,
.rmt-app .rmt-home-card-info-wrap.is-open .rmt-home-card-info-trigger {
  border-color: rgba(45, 134, 89, 0.3);
  color: var(--rmt-brand);
  background: rgba(248, 252, 249, 0.96);
  opacity: 1;
  outline: none;
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-trigger:hover,
.rmt-app .rmt-home-concept-card .rmt-home-card-info-trigger:focus-visible,
.rmt-app .rmt-home-concept-card .rmt-home-card-info-wrap.is-open .rmt-home-card-info-trigger {
  border-color: rgba(122, 93, 51, 0.28);
  color: #7a5d33;
  background: rgba(247, 236, 212, 0.96);
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-trigger:hover,
.rmt-app .rmt-home-client-need-card .rmt-home-card-info-trigger:focus-visible,
.rmt-app .rmt-home-client-need-card .rmt-home-card-info-wrap.is-open .rmt-home-card-info-trigger {
  border-color: rgba(63, 97, 122, 0.26);
  color: #3f617a;
  background: rgba(237, 244, 249, 0.98);
}

.rmt-app .rmt-home-card-info-popover {
  display: none;
  position: absolute;
  top: auto;
  bottom: calc(100% + 0.45rem);
  right: 0;
  z-index: 15;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.72rem 0.85rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-top: 2px solid rgba(45, 134, 89, 0.3);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-popover {
  border-color: rgba(122, 93, 51, 0.16);
  border-top-color: rgba(122, 93, 51, 0.3);
  background: rgba(253, 249, 241, 0.98);
  box-shadow: 0 12px 24px rgba(122, 93, 51, 0.12);
  color: #5c4a33;
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-popover {
  border-color: rgba(63, 97, 122, 0.16);
  border-top-color: rgba(63, 97, 122, 0.26);
  background: rgba(249, 252, 254, 0.98);
  box-shadow: 0 12px 24px rgba(63, 97, 122, 0.12);
  color: #334a5d;
}

.rmt-app .rmt-home-card-info-popover.is-visible {
  display: block;
}

.rmt-app .rmt-home-card-info-popover-arrow {
  position: absolute;
  top: auto;
  bottom: -0.35rem;
  right: 0.85rem;
  width: 0.7rem;
  height: 0.7rem;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  transform: rotate(45deg);
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-popover-arrow {
  background: rgba(253, 249, 241, 0.98);
  border-right-color: rgba(122, 93, 51, 0.16);
  border-bottom-color: rgba(122, 93, 51, 0.16);
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-popover-arrow {
  background: rgba(249, 252, 254, 0.98);
  border-right-color: rgba(63, 97, 122, 0.16);
  border-bottom-color: rgba(63, 97, 122, 0.16);
}

.rmt-app .rmt-home-card-info-popover-title {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmt-brand);
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-popover-title {
  color: #7a5d33;
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-popover-title {
  color: #3f617a;
}

.rmt-app .rmt-home-card-info-popover-copy {
  display: block;
}

.rmt-app .rmt-home-card-info-related-block {
  display: block;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rmt-app .rmt-home-card-info-related-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-card-info-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rmt-app .rmt-home-card-info-chip {
  background: rgba(248, 252, 249, 0.98);
  border-color: rgba(45, 134, 89, 0.14);
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-chip,
.rmt-app .rmt-home-client-need-chip {
  background: rgba(246, 250, 252, 0.96);
  border-color: rgba(63, 97, 122, 0.14);
  color: #3f617a;
}

.rmt-app .rmt-home-concept-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  overflow: visible;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  gap: 10px;
  min-height: 68px;
  padding: 0.65rem 1.9rem 0.65rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(217, 199, 163, 0.42);
  background: rgba(255, 252, 246, 0.9);
  color: var(--rmt-ink);
  text-align: left;
  box-shadow: 0 2px 6px rgba(93, 67, 30, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  cursor: pointer;
}

.rmt-app .rmt-home-concept-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, rgba(217, 199, 163, 0.42) 55%, var(--concept-accent, #7a5d33) 45%);
  background: rgba(252, 247, 237, 0.94);
  box-shadow: 0 6px 12px rgba(122, 93, 51, 0.12);
}

.rmt-app .rmt-home-concept-card:focus-visible {
  outline: none;
  border-color: var(--concept-accent, #7a5d33);
  box-shadow: 0 0 0 2px rgba(253, 249, 240, 0.92), 0 0 0 4px color-mix(in srgb, var(--concept-accent, #7a5d33) 28%, rgba(255, 255, 255, 0.72));
}

.rmt-app .rmt-home-concept-card.active {
  border-color: var(--concept-accent, #7a5d33);
  background: color-mix(in srgb, rgba(255, 252, 246, 0.96) 82%, var(--concept-soft, rgba(183, 47, 100, 0.12)) 18%);
  box-shadow: 0 0 0 2px rgba(253, 249, 240, 0.92), 0 6px 14px rgba(122, 93, 51, 0.14);
}

.rmt-app .rmt-home-browse-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rmt-app .rmt-home-browse-card-subtype {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7a67;
  text-align: left;
  min-width: 0;
}

.rmt-app .rmt-home-concept-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--concept-soft, rgba(45, 134, 89, 0.12));
  color: var(--concept-accent, var(--rmt-brand));
  font-size: 0.95rem;
  flex-shrink: 0;
}

.rmt-app .rmt-home-concept-card-group {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--concept-accent, var(--rmt-brand)) 68%, var(--rmt-muted) 32%);
  text-align: left;
  white-space: normal;
  min-width: 0;
}

.rmt-app .rmt-home-concept-card-label {
  display: block;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  width: auto;
  margin: 0;
  text-align: left;
  text-wrap: pretty;
}

.rmt-app .rmt-home-concept-card-copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-concept-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1.2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--concept-accent, var(--rmt-brand)) 20%, rgba(255, 255, 255, 0.4));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, color-mix(in srgb, #f3f7f4 80%, var(--concept-soft, rgba(45, 134, 89, 0.12)) 20%) 100%);
  box-shadow: 0 18px 34px rgba(52, 74, 64, 0.08);
  text-align: left;
}

.rmt-app .rmt-home-concept-panel-top {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rmt-app .rmt-home-concept-panel-kicker,
.rmt-app .rmt-home-concept-section-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--concept-accent, var(--rmt-brand)) 60%, var(--rmt-muted) 40%);
}

.rmt-app .rmt-home-concept-panel-title {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.rmt-app .rmt-home-concept-panel-desc,
.rmt-app .rmt-home-concept-panel-why {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-concept-panel-why {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rmt-app .rmt-home-concept-lens-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rmt-app .rmt-home-concept-lens-chips,
.rmt-app .rmt-home-topic-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rmt-app .rmt-home-lens-chip,
.rmt-app .rmt-home-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--rmt-ink);
  font-size: 0.9rem;
  line-height: 1.2;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-home-lens-chip:hover,
.rmt-app .rmt-home-topic-pill:hover {
  transform: translateY(-1px);
  border-color: var(--concept-accent, var(--rmt-brand));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rmt-app .rmt-home-lens-chip.active {
  background: color-mix(in srgb, var(--concept-soft, rgba(45, 134, 89, 0.12)) 70%, #ffffff 30%);
  border-color: var(--concept-accent, var(--rmt-brand));
}

.rmt-app .rmt-home-lens-chip small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rmt-muted);
}

.rmt-app .rmt-home-concept-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.rmt-app .rmt-home-concept-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.rmt-app .rmt-home-topic-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rmt-app .rmt-home-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: linear-gradient(180deg, #ffffff 0%, rgba(245, 247, 244, 0.98) 100%);
  text-align: left;
  font-weight: 600;
}

.rmt-app .rmt-home-topic-row span:last-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--concept-accent, var(--rmt-brand));
}

.rmt-app .rmt-home-concept-empty,
.rmt-app .rmt-home-topic-pill-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-depth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.rmt-app .rmt-home-depth-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 1.45rem 1.2rem;
  text-align: center;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.rmt-app .rmt-home-depth-card,
.rmt-app .rmt-home-format-card,
.rmt-app .rmt-home-connect-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.rmt-app .rmt-home-depth-card:hover,
.rmt-app .rmt-home-format-card:hover,
.rmt-app .rmt-home-connect-card:hover {
  transform: translateY(-3px);
}

.rmt-app .rmt-home-band-clinical .rmt-home-depth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(244, 249, 246, 0.9) 100%);
  border-color: rgba(86, 121, 110, 0.18);
  box-shadow: 0 16px 34px rgba(69, 95, 83, 0.08);
}

.rmt-app .rmt-home-depth-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rmt-app .rmt-home-depth-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.42rem;
  margin-bottom: 8px;
  color: var(--rmt-ink);
}

.rmt-app .rmt-home-depth-desc {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--rmt-mid);
  margin: 0;
}

.rmt-app .rmt-home-formats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto;
}

.rmt-app .rmt-home-format-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 1.2rem 1.05rem;
  text-align: center;
  min-height: 194px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.rmt-app .rmt-home-band-study .rmt-home-format-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 249, 243, 0.92) 100%);
  border-color: rgba(138, 123, 73, 0.16);
  box-shadow: 0 16px 34px rgba(92, 86, 58, 0.08);
}

.rmt-app .rmt-home-format-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 9px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rmt-app .rmt-home-format-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rmt-muted);
  margin-bottom: 6px;
}

.rmt-app .rmt-home-format-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.46rem;
  margin-bottom: 8px;
  color: var(--rmt-ink);
}

.rmt-app .rmt-home-format-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--rmt-mid);
  margin: 0;
}

.rmt-app .rmt-home-band-study .rmt-home-depth-card:hover,
.rmt-app .rmt-home-band-study .rmt-home-format-card:hover {
  border-color: rgba(138, 123, 73, 0.24);
  box-shadow: 0 18px 36px rgba(92, 86, 58, 0.12);
}

/* Value props row */
.rmt-app .rmt-value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rmt-light);
}

.rmt-app .rmt-value-prop {
  padding: 48px clamp(24px, 3vw, 48px);
  border-right: 1px solid var(--rmt-light);
  background: #ffffff;
}

.rmt-app .rmt-value-prop:last-child {
  border-right: none;
}

.rmt-app .rmt-vp-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rmt-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.rmt-app .rmt-vp-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--rmt-ink);
  margin-bottom: 10px;
  font-weight: 400;
}

.rmt-app .rmt-vp-text {
  font-size: 0.88rem;
  color: var(--rmt-mid);
  line-height: 1.6;
}

/* Editorial formats grid */
.rmt-app .rmt-formats-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--rmt-ink);
  padding-bottom: 20px;
}

.rmt-app .rmt-formats-count {
  font-size: 0.85rem;
  color: var(--rmt-muted);
  font-weight: 600;
}

.rmt-app .rmt-formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rmt-light);
}

.rmt-app .rmt-fmt-card {
  padding: 40px 36px;
  border-right: 1px solid var(--rmt-light);
  border-bottom: 1px solid var(--rmt-light);
  transition: background 0.25s;
  cursor: pointer;
}

.rmt-app .rmt-fmt-card:nth-child(2n) {
  border-right: none;
}

.rmt-app .rmt-fmt-card:nth-last-child(-n+2) {
  border-bottom: none;
}

.rmt-app .rmt-fmt-card:hover {
  background: var(--rmt-off-white);
}

.rmt-app .rmt-fmt-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.rmt-app .rmt-fmt-badge-green {
  background: var(--rmt-brand-light);
  color: var(--rmt-brand);
}

.rmt-app .rmt-fmt-badge-warm {
  background: #fdf6e8;
  color: #c4943a;
}

.rmt-app .rmt-fmt-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--rmt-ink);
  margin-bottom: 10px;
  font-weight: 400;
}

.rmt-app .rmt-fmt-desc {
  font-size: 0.88rem;
  color: var(--rmt-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.rmt-app .rmt-fmt-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rmt-brand);
  text-decoration: none;
}

/* Topic items editorial style */
.rmt-app .rmt-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--rmt-light);
  cursor: pointer;
  transition: all 0.2s;
}

.rmt-app .rmt-topic-item:hover {
  border-color: var(--rmt-brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.rmt-app .rmt-topic-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rmt-brand);
  flex-shrink: 0;
  margin-right: 14px;
}

.rmt-app .rmt-topic-open {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rmt-brand);
  opacity: 0;
  transition: opacity 0.2s;
}

.rmt-app .rmt-topic-item:hover .rmt-topic-open {
  opacity: 1;
}

/* Category tabs editorial */
.rmt-app .rmt-cat-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--rmt-light);
}

.rmt-app .rmt-cat-tab {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rmt-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.rmt-app .rmt-cat-tab.active {
  color: var(--rmt-ink);
  border-bottom-color: var(--rmt-ink);
}

.rmt-app .rmt-cat-tab:hover {
  color: var(--rmt-ink);
}

/* Pathway dots */
.rmt-app .rmt-pathway-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rmt-brand-light);
  border: 3px solid var(--rmt-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--rmt-brand);
}

/* Footer editorial */
.rmt-app .rmt-footer {
  background: #ffffff;
  border-top: 1px solid var(--rmt-light);
  padding: 34px 0;
}

.rmt-app .rmt-footer-inner {
  display: grid;
  gap: 0.75rem;
}

.rmt-app .rmt-footer-main {
  width: 100%;
}

.rmt-app .rmt-footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-footer a {
  text-decoration: none;
  color: var(--rmt-mid);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.rmt-app .rmt-footer a:hover {
  color: var(--rmt-ink);
}

.rmt-app .rmt-footer-trademark {
  max-width: 76rem;
  margin: 0;
  color: var(--rmt-muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 900px) {

  .rmt-app .rmt-home-concepts-layout,
  .rmt-app .rmt-home-concept-preview-grid {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-home-concept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmt-app .rmt-home-depth-grid,
  .rmt-app .rmt-home-formats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmt-app .rmt-value-props {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-value-prop {
    border-right: none;
    border-bottom: 1px solid var(--rmt-light);
  }

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

  .rmt-app .rmt-fmt-card {
    border-right: none;
  }

  .rmt-app .rmt-formats-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .rmt-app .rmt-home-hero-search .rmt-inline-search-bar {
    flex-direction: row;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-entry {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-controls {
    gap: 8px;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button {
    min-height: 64px;
    padding: 0.72rem 0.72rem 0.68rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button-value {
    font-size: 0.84rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-input {
    border-radius: 0;
    box-shadow: none;
    padding: 0 12px;
    font-size: 0.96rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-button,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary {
    border-radius: 0;
    box-shadow: none;
    width: auto;
    min-width: 0;
    padding: 0 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 360px) {
  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-controls {
    gap: 6px;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button {
    min-height: 60px;
    padding: 0.65rem 0.58rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button-label {
    font-size: 0.62rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-button-value {
    font-size: 0.78rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-button,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary {
    padding: 0 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 576px) {
  .rmt-app .rmt-home-hero-title {
    font-size: clamp(1.9rem, 7vw, 2.35rem);
  }

  .rmt-app .rmt-home-hero-shell {
    padding: 0.9rem 0;
  }

  .rmt-app .rmt-home-hero-subtitle {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .rmt-app .rmt-home-hero-search-wrap {
    margin-bottom: 1rem;
    padding: 0;
    border-radius: 0;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-bar {
    flex-direction: row;
    border-radius: 18px;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-entry {
    flex-direction: row;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-input {
    min-height: 54px;
    padding: 0 14px;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-button,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary {
    flex: 0 0 auto;
    width: auto;
    min-width: 3rem;
    min-height: 54px;
    border-top: 0;
    border-left: 1px solid rgba(45, 134, 89, 0.18);
    padding: 0 14px;
  }

  .rmt-app .rmt-home-discovery-studio {
    margin-top: 1.15rem;
    padding: 0.9rem;
    gap: 1rem;
  }

  .rmt-app .rmt-home-discovery-toggle {
    align-items: flex-start;
    padding: 0.82rem 0.88rem;
  }

  .rmt-app .rmt-home-discovery-toggle-title {
    font-size: 0.9rem;
  }

  .rmt-app .rmt-home-discovery-toggle-subtitle {
    font-size: 0.76rem;
  }

  .rmt-app .rmt-home-concept-grid {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-home-card-info-wrap {
    top: 0.7rem;
    right: 0.7rem;
  }

  .rmt-app .rmt-home-card-info-wrap-corner {
    top: 0.4rem;
    right: 0.4rem;
  }

  .rmt-app .rmt-home-card-info-trigger {
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.65rem;
  }

  .rmt-app .rmt-home-card-info-popover {
    bottom: auto;
    top: calc(100% + 0.45rem);
    right: auto;
    left: 0;
    max-width: min(16rem, calc(100vw - 2rem));
  }

  .rmt-app .rmt-home-card-info-popover-arrow {
    top: -0.35rem;
    bottom: auto;
    left: 1rem;
    right: auto;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    border-right: none;
    border-bottom: none;
  }

  .rmt-app .rmt-home-concept-card {
    min-height: 62px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 0.55rem 1.75rem 0.55rem 0.58rem;
  }

  .rmt-app .rmt-home-concept-card-icon,
  .rmt-app .rmt-home-client-need-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.88rem;
  }

  .rmt-app .rmt-home-client-need-card {
    min-height: 62px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 0.55rem 1.75rem 0.55rem 0.58rem;
  }

  .rmt-app .rmt-home-browse-card-subtype {
    font-size: 10px;
  }

  .rmt-app .rmt-home-concept-panel {
    padding: 1rem;
  }

  .rmt-app .rmt-home-depth-grid,
  .rmt-app .rmt-home-formats-grid {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-home-cat-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
  }

  .rmt-app .rmt-home-cat-chip {
    min-height: 46px;
    font-size: 0.78rem;
    padding: 0.6rem 0.7rem;
  }

  .rmt-app .rmt-home-format-card {
    min-height: auto;
  }
}

.rmt-app .rmt-home-band-inner {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.rmt-app .rmt-home-section-count {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.rmt-app .rmt-home-concept-card {
  backdrop-filter: blur(4px);
}

.rmt-app .rmt-home-concept-detail {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--concept-accent, var(--rmt-brand)) 20%, rgba(255, 255, 255, 0.4));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, color-mix(in srgb, #f3f7f4 80%, var(--concept-soft, rgba(45, 134, 89, 0.12)) 20%) 100%);
  box-shadow: 0 18px 34px rgba(52, 74, 64, 0.08);
}

.rmt-app .rmt-home-concept-detail-head {
  margin-bottom: 1rem;
}

.rmt-app .rmt-home-concept-detail-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.rmt-app .rmt-home-concept-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.rmt-app .rmt-home-client-need-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.rmt-app .rmt-home-client-need-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  overflow: visible;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  gap: 10px;
  min-height: 68px;
  padding: 0.65rem 1.9rem 0.65rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(195, 212, 224, 0.5);
  background: rgba(247, 250, 252, 0.92);
  color: var(--rmt-ink);
  text-align: left;
  box-shadow: 0 2px 6px rgba(48, 93, 130, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.rmt-app .rmt-home-client-need-card:hover {
  transform: translateY(-1px);
  border-color: #6590b0;
  background: rgba(239, 245, 249, 0.98);
  box-shadow: 0 6px 12px rgba(48, 93, 130, 0.12);
}

.rmt-app .rmt-home-client-need-card:focus-visible {
  outline: none;
  border-color: #305d82;
  box-shadow: 0 0 0 2px rgba(239, 247, 252, 0.92), 0 0 0 4px rgba(48, 93, 130, 0.26);
}

.rmt-app .rmt-home-client-need-card.active {
  border-color: #305d82;
  background: rgba(233, 243, 250, 0.98);
  box-shadow: 0 0 0 2px rgba(239, 247, 252, 0.92), 0 6px 14px rgba(48, 93, 130, 0.14);
}

.rmt-app .rmt-home-client-need-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 93, 130, 0.14);
  color: #305d82;
  font-size: 0.95rem;
}

.rmt-app .rmt-home-client-need-range,
.rmt-app .rmt-home-client-need-range-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.15rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(48, 93, 130, 0.24);
  background: rgba(240, 247, 252, 0.98);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #305d82;
  white-space: nowrap;
  min-width: 0;
}

.rmt-app .rmt-home-client-need-label {
  display: block;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  width: auto;
  margin: 0;
  text-align: left;
  text-wrap: pretty;
}

@media (min-width: 992px) {
  .rmt-app .rmt-home-discovery-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    justify-content: start;
    gap: 0.75rem;
    text-align: left;
  }

  .rmt-app .rmt-home-discovery-title {
    margin-bottom: 0 !important;
    white-space: nowrap;
  }

  .rmt-app .rmt-home-discovery-copy {
    margin: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .rmt-app .rmt-home-discovery-head {
    text-align: left;
  }
}

.rmt-app .rmt-home-client-need-copy,
.rmt-app .rmt-home-client-need-desc,
.rmt-app .rmt-home-connect-copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-client-need-related {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.rmt-app .rmt-home-client-need-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-client-need-detail {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.rmt-app .rmt-home-client-need-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.rmt-app .rmt-home-client-need-title {
  margin-bottom: 0.2rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.rmt-app .rmt-home-client-need-actions,
.rmt-app .rmt-home-cta-inline {
  margin-top: 0.8rem;
}

.rmt-app .rmt-home-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.78rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--rmt-brand) 82%, rgba(15, 23, 42, 0.18) 18%);
  border-radius: 14px;
  background: linear-gradient(180deg, #57a079 0%, var(--rmt-brand) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(45, 134, 89, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-home-cta-button:hover,
.rmt-app .rmt-home-cta-button:focus-visible {
  color: #fff;
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(45, 134, 89, 0.22);
  outline: none;
}

.rmt-app .rmt-home-connect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto;
}

.rmt-app .rmt-home-connect-card {
  padding: 1.18rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(250, 247, 240, 0.92) 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  text-align: left;
}

.rmt-app .rmt-home-connect-card:hover {
  border-color: rgba(165, 120, 52, 0.22);
  box-shadow: 0 18px 36px rgba(92, 74, 42, 0.12);
}

.rmt-app .rmt-home-connect-step {
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 134, 89, 0.18);
  color: var(--rmt-brand);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(45, 134, 89, 0.12);
}

.rmt-app .rmt-home-connect-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--rmt-ink);
}

.rmt-app .rmt-home-connect-copy {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--rmt-mid);
}

@media (min-width: 577px) {
  .rmt-app .rmt-home-hero-shell {
    padding: 1rem 0;
  }

  .rmt-app .rmt-home-hero-title {
    max-width: 28rem;
    font-size: clamp(2.15rem, 6vw, 2.75rem);
  }

  .rmt-app .rmt-home-hero-subtitle {
    margin-bottom: 1.25rem;
    font-size: 1.04rem;
  }

  .rmt-app .rmt-home-concept-grid,
  .rmt-app .rmt-home-client-need-grid,
  .rmt-app .rmt-home-depth-grid,
  .rmt-app .rmt-home-formats-grid,
  .rmt-app .rmt-home-connect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .rmt-app .rmt-home-discovery-band {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .rmt-app .rmt-home-concept-grid,
  .rmt-app .rmt-home-client-need-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .rmt-app .rmt-home-hero-search .rmt-inline-search-bar {
    flex-direction: row;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-entry {
    flex-direction: row;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-controls {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu {
    width: 100%;
    max-width: none;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-input {
    box-shadow: none;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-button,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary {
    border-radius: 0;
    box-shadow: none;
    width: auto;
  }
}

@media (min-width: 901px) {
  .rmt-app .rmt-home-hero-shell {
    padding: clamp(1.1rem, 1.8vw, 1.75rem) 0;
  }

  .rmt-app .rmt-home-hero-title {
    max-width: 1360px;
    margin-bottom: 0.55rem;
    font-size: clamp(2.4rem, 4.2vw, 3.45rem);
    line-height: 1.05;
  }

  .rmt-app .rmt-home-hero-subtitle {
    max-width: 1360px;
    margin-bottom: 28px;
    font-size: 1.14rem;
    line-height: 1.7;
  }

  .rmt-app .rmt-home-depth-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rmt-app .rmt-home-formats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmt-app .rmt-home-connect-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-item {
    gap: 7px;
    padding: 0.36rem 0.46rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-item-copy {
    gap: 2px;
  }

  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-item-label,
  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-item-subtype {
    display: block;
    max-width: 100%;
  }

  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-item-label {
    font-size: 0.94rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-item-subtype {
    font-size: 0.79rem;
  }
}

@media (min-width: 1400px) {
  .rmt-app .rmt-home-hero-title {
    margin-bottom: 0.8rem;
    font-size: clamp(2.9rem, 3.8vw, 4.15rem);
    line-height: 1.02;
  }

  .rmt-app .rmt-home-hero-subtitle {
    max-width: 72rem;
    margin-bottom: 32px;
    font-size: 1.18rem;
    line-height: 1.65;
  }

  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-tray {
    column-gap: 20px;
  }

  .rmt-app .rmt-home-hero-search .rmt-overlay-browse-group:nth-child(2) {
    padding-left: 18px;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 900px) {
  .rmt-app .rmt-home-client-need-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .rmt-app .rmt-home-connect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmt-app .rmt-home-concept-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .rmt-app .rmt-home-discovery-intro-copy {
    font-size: 0.91rem;
    line-height: 1.5;
  }

  .rmt-app .rmt-home-discovery-title {
    font-size: 1.16rem;
  }

  .rmt-app .rmt-home-discovery-copy {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .rmt-app .rmt-home-concept-grid,
  .rmt-app .rmt-home-client-need-grid,
  .rmt-app .rmt-home-connect-grid {
    grid-template-columns: 1fr;
  }
}
