/**
 * PASI-specific styles — scoped under .pasi-root to avoid affecting NAPSI.
 */

.pasi-root .pasi-main-col .question-card-shell {
  margin-block: 0.5rem;
}

.pasi-root .pasi-region-header {
  min-height: 2.75rem;
}

.pasi-root .pasi-region-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(126, 212, 253, 0.45) 0%, rgba(126, 212, 253, 0.18) 100%);
  border: 1.5px solid rgba(126, 212, 253, 0.85);
  color: #005b78;
  box-shadow: 0 4px 14px rgba(0, 102, 134, 0.12);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.pasi-root .pasi-region-badge--exiting {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.pasi-root .pasi-region-badge--entering {
  opacity: 0;
  transform: translateY(12px);
}

.pasi-root .pasi-region-badge .material-symbols-outlined {
  color: #006686;
  font-size: 22px;
}

/* Fixed base figure + fading region shadow overlays (Photoshop Overlay blend) */
.pasi-root .anatomy-stack {
  isolation: isolate;
}

.pasi-root .anatomy-stack:not(.anatomy-stack--mobile) {
  position: relative;
  height: min(72vh, calc(100vh - 7rem));
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: inline-block;
}

.pasi-root .anatomy-stack .anatomy-base,
.pasi-root .anatomy-stack .anatomy-shadow {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.pasi-root .anatomy-stack .anatomy-base {
  position: relative;
  z-index: 0;
  opacity: 0.9;
}

.pasi-root .anatomy-stack .anatomy-shadow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.8;
  mix-blend-mode: overlay;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
}

.pasi-root .anatomy-stack .anatomy-shadow.is-exiting,
.pasi-root .anatomy-stack .anatomy-shadow.is-entering {
  opacity: 0;
}

.pasi-root .anatomy-stack--mobile {
  position: relative;
  width: 100%;
  height: auto;
  transform: translateY(var(--anatomy-pan, 0%));
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.pasi-root .anatomy-stack--mobile .anatomy-base {
  display: block;
  width: 100%;
  height: auto;
}

.pasi-root .anatomy-stack--mobile .anatomy-shadow {
  width: 100%;
  height: 100%;
}

.pasi-root .anatomy-stack--dim .anatomy-shadow {
  opacity: 0.7;
}

#pasi-top-chrome {
  /* inherits .top-chrome-shell when class is present */
}

#pasi-top-spacer {
  flex-shrink: 0;
  height: 6.5rem;
}

#pasi-mobile-step-bar {
  position: fixed;
  top: 6.5rem;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 6px 16px 8px;
}

#pasi-mobile-step-bar [data-ref="step-num"] {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(69, 70, 77, 0.55);
  line-height: 1.5;
}

#pasi-mobile-step-bar [data-ref="step-detail"] {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1a1c1e;
  line-height: 1.4;
}

@media (min-width: 768px) {
  #pasi-mobile-step-bar { display: none; }
}

.pasi-mobile-anatomy-panel {
  top: 0;
  height: 100vh;
}

@media (min-width: 768px) {
  .pasi-root .clinical-top-header .pasi-wizard-header-desktop-meta {
    padding-right: 3.25rem;
  }

  #pasi-top-spacer {
    height: 5.25rem;
  }
}

.pasi-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pasi-modal[hidden] { display: none; }
.pasi-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.pasi-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
}
.pasi-input {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  background: white;
  width: 100%;
  margin-bottom: 1.25rem;
}
.pasi-input:focus {
  outline: 2px solid #5b8def;
  outline-offset: 1px;
}
