

:root {
  --riq-ap-ink: #0f172a;
  --riq-ap-ink-soft: #334155;
  --riq-ap-muted: #64748b;
  --riq-ap-line: rgba(15, 118, 110, 0.14);
  --riq-ap-white: rgba(255, 255, 255, 0.92);
  --riq-ap-glass: rgba(255, 255, 255, 0.74);
  --riq-ap-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
  --riq-ap-shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.10);
  --riq-ap-radius-outer: 38px;
  --riq-ap-radius-panel: 30px;
  --riq-ap-radius-card: 22px;
  --riq-ap-max: 1240px;
  --riq-ap-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.riq-ap-section,
.riq-ap-section * {
  box-sizing: border-box;
}

.riq-ap-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 7rem) 0;
  color: var(--riq-ap-ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(16, 185, 129, 0.14), transparent 34rem),
    radial-gradient(circle at 95% 20%, rgba(56, 189, 248, 0.13), transparent 25rem),
    radial-gradient(circle at 0% 82%, rgba(20, 184, 166, 0.12), transparent 23rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 44%, #f0fdfa 100%);
  font-family: var(--riq-ap-font);
}

.riq-ap-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.44;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 78%, transparent 100%);
}

.riq-ap-section::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4.5rem;
  z-index: -2;
  width: min(68rem, 92vw);
  height: 15rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.10), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(16, 185, 129, 0.10) 19px 20px);
  filter: blur(1px);
  opacity: 0.78;
  mask-image: radial-gradient(ellipse at center, black 12%, transparent 74%);
}

.riq-ap-bg-orb {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.72;
}

.riq-ap-bg-orb--one {
  left: 8%;
  top: 7%;
  width: 18rem;
  height: 18rem;
  background: rgba(52, 211, 153, 0.18);
}

.riq-ap-bg-orb--two {
  right: -4rem;
  top: 18%;
  width: 22rem;
  height: 22rem;
  background: rgba(14, 165, 233, 0.18);
}

.riq-ap-bg-orb--three {
  left: -5rem;
  bottom: 9%;
  width: 19rem;
  height: 19rem;
  background: rgba(20, 184, 166, 0.16);
}

.riq-ap-container {
  width: min(var(--riq-ap-max), calc(100% - 2rem));
  margin: 0 auto;
}

.riq-ap-header {
  max-width: 52rem;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}

.riq-ap-eyebrow,
.riq-ap-kicker,
.riq-ap-microcopy,
.riq-ap-preview-label,
.riq-ap-tab {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.riq-ap-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto;
  padding: 0.52rem 0.82rem;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.riq-ap-eyebrow::before,
.riq-ap-eyebrow::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.82);
}

.riq-ap-title {
  margin: 1rem auto 0;
  max-width: 56rem;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
  color: transparent;
  background:
    linear-gradient(90deg, #052e2b 0%, #047857 30%, #0891b2 58%, #064e3b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.riq-ap-subtitle {
  margin: 1.2rem auto 0;
  max-width: 44rem;
  color: var(--riq-ap-muted);
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.75;
}

.riq-ap-trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.3rem;
  color: rgba(4, 120, 87, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
}

.riq-ap-trust-line::before,
.riq-ap-trust-line::after {
  content: "";
  width: min(5rem, 16vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.68), transparent);
}

.riq-ap-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 2.75rem);
  border: 1px solid rgba(6, 95, 70, 0.14);
  border-radius: var(--riq-ap-radius-outer);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.95), transparent 36%),
    radial-gradient(circle at 92% 20%, rgba(125, 211, 252, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.76) 48%, rgba(236, 253, 245, 0.86));
  box-shadow: var(--riq-ap-shadow);
  backdrop-filter: blur(26px);
}

.riq-ap-shell::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: calc(var(--riq-ap-radius-outer) - 0.55rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.50), transparent 28%, rgba(16, 185, 129, 0.08) 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 62%);
  opacity: 0.92;
}

.riq-ap-shell::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: auto -16rem -17rem auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
}

.riq-ap-inner {
  position: relative;
  z-index: 1;
}

.riq-ap-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.riq-ap-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.48rem;
  width: min(100%, 58rem);
  padding: 0.5rem;
  border: 1px solid rgba(6, 95, 70, 0.13);
  border-radius: 999px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.98), transparent 64%),
    linear-gradient(90deg, rgba(236, 253, 245, 0.96), rgba(224, 242, 254, 0.90));
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(20px);
}

.riq-ap-tab {
  position: relative;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  border: 1px solid rgba(6, 95, 70, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #065f46;
  cursor: pointer;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 850;
  line-height: 1;
  outline: none;
  padding: 0.88rem 1rem;
  text-align: center;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 8px 22px rgba(15, 23, 42, 0.04);
}

.riq-ap-tab[aria-selected="true"] {
  border-color: rgba(16, 185, 129, 0.54);
  color: white;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.34), transparent 38%),
    linear-gradient(90deg, var(--riq-ap-tab-from, #059669), var(--riq-ap-tab-to, #14b8a6));
  box-shadow: 0 14px 34px rgba(6, 95, 70, 0.24), inset 0 1px 0 rgba(255,255,255,0.34);
}

.riq-ap-tab:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.72);
  outline-offset: 3px;
}

.riq-ap-tab-number {
  display: inline-flex;
  width: 1.42rem;
  height: 1.42rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.92);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(16,185,129,0.16);
}

.riq-ap-tab[aria-selected="true"] .riq-ap-tab-number {
  background: rgba(255,255,255,0.20);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 0 18px rgba(255,255,255,0.32);
}

.riq-ap-tab--patients {
  --riq-ap-tab-from: #059669;
  --riq-ap-tab-to: #0891b2;
}

.riq-ap-tab--family {
  --riq-ap-tab-from: #f97316;
  --riq-ap-tab-to: #f59e0b;
}

.riq-ap-tab--clinicians {
  --riq-ap-tab-from: #0284c7;
  --riq-ap-tab-to: #14b8a6;
}

.riq-ap-tab--clinics {
  --riq-ap-tab-from: #047857;
  --riq-ap-tab-to: #10b981;
}

.riq-ap-panel[hidden] {
  display: none !important;
}

.riq-ap-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.riq-ap-panel[data-profile-tone="patient"] {
  --riq-ap-accent: #10b981;
  --riq-ap-accent-2: #06b6d4;
  --riq-ap-accent-3: #0f766e;
  --riq-ap-contrast: #ecfeff;
  --riq-ap-screen-bg: #020617;
  --riq-ap-screen-soft: rgba(15, 23, 42, 0.74);
}

.riq-ap-panel[data-profile-tone="family"] {
  --riq-ap-accent: #f97316;
  --riq-ap-accent-2: #fbbf24;
  --riq-ap-accent-3: #c2410c;
  --riq-ap-contrast: #fff7ed;
  --riq-ap-screen-bg: #fff7ed;
  --riq-ap-screen-soft: rgba(255, 247, 237, 0.82);
}

.riq-ap-panel[data-profile-tone="clinician"] {
  --riq-ap-accent: #0284c7;
  --riq-ap-accent-2: #22d3ee;
  --riq-ap-accent-3: #0f766e;
  --riq-ap-contrast: #ecfeff;
  --riq-ap-screen-bg: #020617;
  --riq-ap-screen-soft: rgba(15, 23, 42, 0.72);
}

.riq-ap-panel[data-profile-tone="clinic"] {
  --riq-ap-accent: #047857;
  --riq-ap-accent-2: #34d399;
  --riq-ap-accent-3: #065f46;
  --riq-ap-contrast: #ecfdf5;
  --riq-ap-screen-bg: #ecfdf5;
  --riq-ap-screen-soft: rgba(240, 253, 250, 0.86);
}

.riq-ap-visual {
  min-width: 0;
}

.riq-ap-screen {
  position: relative;
  overflow: hidden;
  min-height: 27rem;
  border: 1px solid color-mix(in srgb, var(--riq-ap-accent) 28%, white);
  border-radius: var(--riq-ap-radius-panel);
  background:
    radial-gradient(circle at 18% 14%, color-mix(in srgb, var(--riq-ap-accent-2) 34%, transparent), transparent 32%),
    radial-gradient(circle at 92% 85%, color-mix(in srgb, var(--riq-ap-accent) 22%, transparent), transparent 36%),
    linear-gradient(135deg, var(--riq-ap-screen-bg), color-mix(in srgb, var(--riq-ap-screen-bg) 78%, var(--riq-ap-accent-3)) 100%);
  box-shadow: 0 28px 78px rgba(15, 23, 42, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.64);
  aspect-ratio: 16 / 10;
}

.riq-ap-screen::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.02) 44%, color-mix(in srgb, var(--riq-ap-accent) 18%, transparent)),
    linear-gradient(180deg, transparent 0 62%, rgba(2, 6, 23, 0.15));
}

.riq-ap-screen::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0.7rem;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: calc(var(--riq-ap-radius-panel) - 0.55rem);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--riq-ap-accent) 22%, transparent);
}

.riq-ap-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.riq-ap-screen--missing .riq-ap-image-fallback,
.riq-ap-image-fallback {
  position: absolute;
  inset: clamp(1rem, 3vw, 1.55rem);
  z-index: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid color-mix(in srgb, var(--riq-ap-accent) 24%, white);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.54)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--riq-ap-accent-2) 20%, transparent), transparent 48%);
  color: var(--riq-ap-ink);
}

.riq-ap-fallback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.riq-ap-fallback-title {
  margin: 0;
  color: color-mix(in srgb, var(--riq-ap-accent-3) 88%, #020617);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.riq-ap-fallback-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  background: color-mix(in srgb, var(--riq-ap-accent) 13%, white);
  color: color-mix(in srgb, var(--riq-ap-accent-3) 88%, #020617);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.riq-ap-fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  align-content: center;
}

.riq-ap-fallback-card {
  min-height: 5.6rem;
  border: 1px solid color-mix(in srgb, var(--riq-ap-accent) 20%, white);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.riq-ap-fallback-card:nth-child(1),
.riq-ap-fallback-card:nth-child(5) {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), color-mix(in srgb, var(--riq-ap-accent) 13%, white)),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(15, 23, 42, 0.04) 14px 15px);
}

.riq-ap-fallback-card:nth-child(2),
.riq-ap-fallback-card:nth-child(6) {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.76), color-mix(in srgb, var(--riq-ap-accent-2) 14%, white));
}

.riq-ap-fallback-footer {
  height: 0.8rem;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--riq-ap-accent), var(--riq-ap-accent-2) 62%, rgba(255,255,255,0.76));
  opacity: 0.72;
}

.riq-ap-preview-badge {
  position: absolute;
  left: clamp(1rem, 3vw, 1.55rem);
  top: clamp(1rem, 3vw, 1.55rem);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--riq-ap-accent) 36%, white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: color-mix(in srgb, var(--riq-ap-accent-3) 84%, #020617);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.riq-ap-preview-badge::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--riq-ap-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--riq-ap-accent) 75%, transparent);
}

.riq-ap-caption {
  position: absolute;
  inset: auto clamp(1rem, 3vw, 1.55rem) clamp(1rem, 3vw, 1.55rem);
  z-index: 4;
  padding: clamp(1rem, 2.6vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 23px;
  color: var(--riq-ap-contrast);
  background:
    linear-gradient(135deg, var(--riq-ap-screen-soft), rgba(15, 23, 42, 0.42)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--riq-ap-accent) 18%, transparent), transparent 54%);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(20px);
}

.riq-ap-panel[data-profile-tone="family"] .riq-ap-caption,
.riq-ap-panel[data-profile-tone="clinic"] .riq-ap-caption {
  color: color-mix(in srgb, var(--riq-ap-accent-3) 84%, #020617);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.68);
}

.riq-ap-preview-label {
  margin: 0;
  color: color-mix(in srgb, var(--riq-ap-accent-2) 78%, currentColor);
  font-size: 0.68rem;
  font-weight: 900;
}

.riq-ap-caption-title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.riq-ap-caption-text {
  margin: 0.58rem 0 0;
  max-width: 45rem;
  color: currentColor;
  font-size: 0.88rem;
  line-height: 1.58;
  opacity: 0.84;
}

.riq-ap-copy {
  min-width: 0;
}

.riq-ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
  color: color-mix(in srgb, var(--riq-ap-accent-3) 88%, #020617);
  font-size: 0.72rem;
  font-weight: 900;
}

.riq-ap-kicker::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: var(--riq-ap-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--riq-ap-accent) 70%, transparent);
}

.riq-ap-heading {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.riq-ap-description {
  margin: 1rem 0 0;
  color: var(--riq-ap-ink-soft);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.76;
}

.riq-ap-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.45rem 0 0;
}

.riq-ap-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 8.1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--riq-ap-accent) 18%, white);
  border-radius: var(--riq-ap-radius-card);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--riq-ap-accent-2) 12%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--riq-ap-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.riq-ap-feature-card::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--riq-ap-accent), var(--riq-ap-accent-2), transparent);
  opacity: 0.66;
}

.riq-ap-feature-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--riq-ap-ink);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.riq-ap-feature-title::before {
  content: "";
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 0.2rem;
  background: linear-gradient(135deg, var(--riq-ap-accent), var(--riq-ap-accent-2));
  box-shadow: 0 0 16px color-mix(in srgb, var(--riq-ap-accent) 50%, transparent);
}

.riq-ap-feature-text {
  margin: 0.55rem 0 0;
  color: var(--riq-ap-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.riq-ap-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
}

.riq-ap-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  border: 1px solid color-mix(in srgb, var(--riq-ap-accent) 22%, white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: color-mix(in srgb, var(--riq-ap-accent-3) 84%, #0f172a);
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.54rem 0.72rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.riq-ap-chip::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--riq-ap-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--riq-ap-accent) 62%, transparent);
}

.riq-ap-safety-note {
  position: relative;
  margin-top: clamp(1.6rem, 4vw, 2.75rem);
  padding: clamp(1.15rem, 2vw, 1.55rem) clamp(1rem, 2.6vw, 1.75rem);
  border: 1px solid rgba(6, 95, 70, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(240,253,250,0.72)),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 12px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.riq-ap-safety-note p {
  margin: 0;
  color: var(--riq-ap-ink-soft);
  font-size: 0.94rem;
  line-height: 1.72;
  text-align: center;
}

.riq-ap-safety-note strong {
  color: #047857;
  font-weight: 900;
}

@media (max-width: 1024px) {
  .riq-ap-panel {
    grid-template-columns: 1fr;
  }

  .riq-ap-visual {
    order: 1;
  }

  .riq-ap-copy {
    order: 0;
  }

  .riq-ap-heading,
  .riq-ap-description,
  .riq-ap-kicker {
    text-align: center;
  }

  .riq-ap-kicker {
    justify-content: center;
  }

  .riq-ap-chip-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .riq-ap-container {
    width: min(100% - 1rem, var(--riq-ap-max));
  }

  .riq-ap-shell {
    border-radius: 28px;
    padding: 1rem;
  }

  .riq-ap-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 24px;
  }

  .riq-ap-tab {
    border-radius: 18px;
    white-space: normal;
  }

  .riq-ap-feature-grid {
    grid-template-columns: 1fr;
  }

  .riq-ap-screen {
    min-height: 24rem;
    aspect-ratio: 4 / 5;
  }

  .riq-ap-caption {
    inset: auto 0.9rem 0.9rem;
  }

  .riq-ap-preview-badge {
    left: 0.9rem;
    top: 0.9rem;
  }

  .riq-ap-fallback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .riq-ap-section {
    padding: 3.25rem 0;
  }

  .riq-ap-trust-line {
    flex-direction: column;
    gap: 0.45rem;
  }

  .riq-ap-trust-line::before,
  .riq-ap-trust-line::after {
    width: 4.5rem;
  }

  .riq-ap-tabs {
    grid-template-columns: 1fr;
  }

  .riq-ap-screen {
    min-height: 28rem;
  }

  .riq-ap-caption-title {
    font-size: 1.15rem;
  }

  .riq-ap-caption-text {
    font-size: 0.82rem;
  }

  .riq-ap-fallback-grid {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .riq-ap-section *,
  .riq-ap-section *::before,
  .riq-ap-section *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .riq-ap-screen,
  .riq-ap-feature-card,
  .riq-ap-chip,
  .riq-ap-preview-badge {
    border-color: rgba(16, 185, 129, 0.22);
  }
}

/* --------------------------------------------------------------------------
   Layout safety patch — prevents the preview/device frame from overlapping
   the written cards on medium desktop widths.
   -------------------------------------------------------------------------- */
.riq-ap-panels {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.riq-ap-panel {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(1.75rem, 4.6vw, 4.25rem);
  min-width: 0;
  overflow: visible;
}

.riq-ap-visual,
.riq-ap-copy {
  min-width: 0;
  max-width: 100%;
}

.riq-ap-visual {
  position: relative;
  z-index: 1;
  justify-self: stretch;
}

.riq-ap-copy {
  position: relative;
  z-index: 2;
  justify-self: stretch;
}

.riq-ap-screen {
  width: 100%;
  max-width: min(100%, 43rem);
  min-height: 0;
  aspect-ratio: 16 / 10;
  margin-inline: auto;
}

.riq-ap-caption {
  max-width: calc(100% - clamp(2rem, 6vw, 3.1rem));
}

.riq-ap-heading {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.riq-ap-description,
.riq-ap-feature-text,
.riq-ap-caption-text {
  overflow-wrap: break-word;
}

.riq-ap-feature-grid {
  align-items: stretch;
}

.riq-ap-feature-card {
  min-width: 0;
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .riq-ap-shell {
    padding-inline: clamp(1rem, 2vw, 1.75rem);
  }

  .riq-ap-panel {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
  }

  .riq-ap-screen {
    max-width: min(100%, 36.5rem);
    aspect-ratio: 16 / 10.8;
  }

  .riq-ap-heading {
    font-size: clamp(2rem, 3.15vw, 2.95rem);
    line-height: 1.02;
  }

  .riq-ap-feature-card {
    min-height: 7.25rem;
  }
}

@media (max-width: 1024px) {
  .riq-ap-panel {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.5rem);
  }

  .riq-ap-visual,
  .riq-ap-copy {
    justify-self: center;
    width: 100%;
  }

  .riq-ap-screen {
    max-width: 46rem;
  }
}

@media (max-width: 768px) {
  .riq-ap-screen {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .riq-ap-screen {
    aspect-ratio: 0.86 / 1;
    min-height: 0;
  }

  .riq-ap-caption {
    max-width: calc(100% - 1.8rem);
  }
}
/* static/zg/css/riq_account_profiles_showcase_phase2.css */
/* RhythmIQ.Health Account Profile Showcase — Phase 2 polish + JS-ready states */

#account-profile-showcase {
  --riq-role-accent: #059669;
  --riq-role-accent-2: #06b6d4;
  --riq-role-soft: rgba(209, 250, 229, 0.56);
  --riq-role-ink: #064e3b;
  --riq-role-glow: rgba(16, 185, 129, 0.28);
  --riq-pointer-x: 50%;
  --riq-pointer-y: 18%;
  position: relative;
  isolation: isolate;
}

#account-profile-showcase[data-riq-active-role="patients"] {
  --riq-role-accent: #059669;
  --riq-role-accent-2: #06b6d4;
  --riq-role-soft: rgba(209, 250, 229, 0.58);
  --riq-role-ink: #064e3b;
  --riq-role-glow: rgba(16, 185, 129, 0.30);
}

#account-profile-showcase[data-riq-active-role="family"] {
  --riq-role-accent: #ea580c;
  --riq-role-accent-2: #f59e0b;
  --riq-role-soft: rgba(254, 215, 170, 0.58);
  --riq-role-ink: #7c2d12;
  --riq-role-glow: rgba(249, 115, 22, 0.30);
}

#account-profile-showcase[data-riq-active-role="clinicians"] {
  --riq-role-accent: #0284c7;
  --riq-role-accent-2: #06b6d4;
  --riq-role-soft: rgba(186, 230, 253, 0.60);
  --riq-role-ink: #0c4a6e;
  --riq-role-glow: rgba(14, 165, 233, 0.28);
}

#account-profile-showcase[data-riq-active-role="clinics"] {
  --riq-role-accent: #047857;
  --riq-role-accent-2: #14b8a6;
  --riq-role-soft: rgba(167, 243, 208, 0.58);
  --riq-role-ink: #064e3b;
  --riq-role-glow: rgba(5, 150, 105, 0.30);
}

#account-profile-showcase.riq-profile-enhanced::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--riq-pointer-x) var(--riq-pointer-y), var(--riq-role-glow), transparent 0 22rem),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,253,250,0.86) 44%, rgba(236,254,255,0.72));
  opacity: 0.95;
  transition: background 420ms ease, opacity 420ms ease;
}

#account-profile-showcase .riq-profile-tab {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    transform 220ms ease;
}

#account-profile-showcase .riq-profile-tab::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.34), transparent 38%, rgba(255,255,255,0.24));
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

#account-profile-showcase .riq-profile-tab::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

#account-profile-showcase .riq-profile-tab[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--riq-role-accent) 52%, white 48%) !important;
  background: linear-gradient(135deg, var(--riq-role-accent), var(--riq-role-accent-2)) !important;
  color: #ffffff !important;
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--riq-role-accent) 30%, transparent 70%),
    inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

#account-profile-showcase .riq-profile-tab[aria-selected="true"]::before,
#account-profile-showcase .riq-profile-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

#account-profile-showcase .riq-profile-tab:hover,
#account-profile-showcase .riq-profile-tab:focus-visible {
  transform: translateY(-1px);
}

#account-profile-showcase .riq-profile-panel {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-width: 0;
  max-width: 100%;
  will-change: opacity, transform, filter;
}

#account-profile-showcase .riq-profile-panel > * {
  min-width: 0;
  max-width: 100%;
}

#account-profile-showcase .riq-profile-panel .aspect-\[16\/10\] {
  min-height: 0;
  max-height: clamp(22rem, 42vw, 36rem);
}

#account-profile-showcase .riq-profile-panel.is-riq-entering {
  animation: riqProfilePanelEnter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#account-profile-showcase .riq-profile-panel.is-riq-leaving {
  animation: riqProfilePanelLeave 180ms ease both;
}

@keyframes riqProfilePanelEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes riqProfilePanelLeave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.992);
    filter: blur(5px);
  }
}

.riq-profile-progress {
  position: relative;
  z-index: 12;
  height: 0.42rem;
  max-width: 64rem;
  margin: -1rem auto 2rem;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.86);
  background: linear-gradient(90deg, rgba(226,232,240,0.74), rgba(240,253,250,0.88));
  box-shadow: inset 0 1px 4px rgba(15,23,42,0.08), 0 10px 26px rgba(15,23,42,0.08);
}

.riq-profile-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--riq-role-accent), var(--riq-role-accent-2));
  box-shadow: 0 0 22px var(--riq-role-glow);
  transition: width 120ms linear, background 280ms ease;
}

.riq-profile-context-card {
  position: relative;
  z-index: 12;
  max-width: 58rem;
  margin: -0.75rem auto 2.25rem;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--riq-role-accent) 18%, white 82%);
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--riq-role-accent-2) 15%, transparent 85%), transparent 0 44%),
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(240,253,250,0.72));
  padding: 1rem 1.15rem;
  box-shadow: 0 18px 48px rgba(15,23,42,0.10);
  backdrop-filter: blur(18px);
}

.riq-profile-context-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  color: var(--riq-role-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.riq-profile-context-card__label::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--riq-role-accent);
  box-shadow: 0 0 16px var(--riq-role-glow);
}

.riq-profile-context-card__title {
  color: #0f172a;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.riq-profile-context-card__copy {
  margin-top: 0.3rem;
  color: #475569;
  font-size: 0.91rem;
  line-height: 1.65;
}

.riq-profile-controls {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.riq-profile-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--riq-role-accent) 18%, white 82%);
  background: rgba(255,255,255,0.78);
  padding: 0.72rem 1.05rem;
  color: var(--riq-role-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(15,23,42,0.10);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.riq-profile-control:hover,
.riq-profile-control:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--riq-role-accent) 42%, white 58%);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--riq-role-accent) 14%, rgba(15,23,42,0.12) 86%);
  outline: none;
}

.riq-profile-control--primary {
  background: linear-gradient(135deg, var(--riq-role-accent), var(--riq-role-accent-2));
  border-color: color-mix(in srgb, var(--riq-role-accent) 56%, white 44%);
  color: #ffffff;
}

.riq-profile-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#account-profile-showcase .riq-profile-panel img {
  transform-origin: center;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
}

#account-profile-showcase .riq-profile-panel:not(.hidden) img {
  transform: scale(1.012);
}

#account-profile-showcase .riq-profile-panel img:hover {
  transform: scale(1.035);
}

@media (max-width: 1180px) and (min-width: 1025px) {
  #account-profile-showcase .riq-profile-panel {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
  }
}

@media (max-width: 1024px) {
  #account-profile-showcase .riq-profile-panel {
    grid-template-columns: 1fr;
  }

  .riq-profile-progress,
  .riq-profile-context-card {
    margin-inline: 0.25rem;
  }
}

@media (max-width: 640px) {
  #account-profile-showcase {
    --riq-pointer-x: 50%;
    --riq-pointer-y: 10%;
  }

  #account-profile-showcase .riq-profile-panel .aspect-\[16\/10\] {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .riq-profile-context-card {
    border-radius: 1.25rem;
    padding: 0.95rem;
  }

  .riq-profile-controls {
    gap: 0.55rem;
  }

  .riq-profile-control {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #account-profile-showcase *,
  #account-profile-showcase *::before,
  #account-profile-showcase *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .riq-profile-progress__bar {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   RhythmIQ account profile guided tour — premium glass image + UI upgrade
   Add at the VERY BOTTOM of the guided-tour/profile showcase stylesheet.
   -------------------------------------------------------------------------- */

#account-profile-showcase {
  --riq-role-accent: #10b981;
  --riq-role-accent-2: #06b6d4;
  --riq-role-accent-3: #0f766e;
  --riq-role-ink: #052e2b;
  --riq-role-soft-ink: #334155;
  --riq-role-glow: rgba(34, 211, 238, 0.32);
  --riq-tour-glass:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.95), transparent 0 18rem),
    radial-gradient(circle at 94% 8%, rgba(56, 189, 248, 0.18), transparent 0 22rem),
    radial-gradient(circle at 8% 96%, rgba(45, 212, 191, 0.14), transparent 0 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.78), rgba(224, 242, 254, 0.66));
  --riq-tour-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 30px 90px -56px rgba(15, 23, 42, 0.28),
    0 0 44px rgba(34, 211, 238, 0.12);
}

#account-profile-showcase[data-riq-active-role="family"] {
  --riq-role-accent: #f97316;
  --riq-role-accent-2: #fbbf24;
  --riq-role-accent-3: #c2410c;
  --riq-role-ink: #7c2d12;
  --riq-role-glow: rgba(251, 146, 60, 0.28);
}

#account-profile-showcase[data-riq-active-role="clinicians"] {
  --riq-role-accent: #0284c7;
  --riq-role-accent-2: #22d3ee;
  --riq-role-accent-3: #0f766e;
  --riq-role-ink: #082f49;
  --riq-role-glow: rgba(14, 165, 233, 0.3);
}

#account-profile-showcase[data-riq-active-role="clinics"] {
  --riq-role-accent: #047857;
  --riq-role-accent-2: #34d399;
  --riq-role-accent-3: #065f46;
  --riq-role-ink: #052e2b;
  --riq-role-glow: rgba(16, 185, 129, 0.3);
}

#account-profile-showcase.riq-profile-enhanced {
  background:
    radial-gradient(circle at var(--riq-pointer-x, 50%) var(--riq-pointer-y, 8%), color-mix(in srgb, var(--riq-role-accent-2) 16%, transparent), transparent 0 22rem),
    radial-gradient(circle at 50% -12%, rgba(16, 185, 129, 0.14), transparent 0 34rem),
    radial-gradient(circle at 100% 18%, rgba(56, 189, 248, 0.14), transparent 0 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #ecfeff 100%) !important;
}

#account-profile-showcase.riq-profile-enhanced::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
  opacity: 0.55;
}

#account-profile-showcase > .mx-auto {
  position: relative;
  z-index: 1;
}

#account-profile-showcase .relative.overflow-hidden.rounded-\[34px\] {
  border-color: color-mix(in srgb, var(--riq-role-accent) 20%, white 80%) !important;
  background: var(--riq-tour-glass) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 36px 110px -62px rgba(15, 23, 42, 0.34),
    0 0 54px color-mix(in srgb, var(--riq-role-accent-2) 18%, transparent) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
}

#account-profile-showcase .relative.overflow-hidden.rounded-\[34px\]::after {
  content: "";
  position: absolute;
  inset: -35% auto auto -18%;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--riq-role-accent-2) 16%, transparent), transparent 70%);
  filter: blur(10px);
}

/* Tabs */
#account-profile-showcase .riq-profile-tab {
  position: relative;
  overflow: hidden;
  min-height: 3rem;
  border-color: color-mix(in srgb, var(--riq-role-accent) 18%, white 82%) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.96), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,0.84), rgba(240,253,250,0.72), rgba(224,242,254,0.58)) !important;
  color: color-mix(in srgb, var(--riq-role-accent-3) 84%, #0f172a) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    0 10px 26px rgba(15,23,42,0.08) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

#account-profile-showcase .riq-profile-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.58), transparent 32%, transparent 72%, rgba(255,255,255,0.18));
  opacity: 0.76;
}

#account-profile-showcase .riq-profile-tab[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--riq-role-accent-2) 52%, white 48%) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.36), transparent 38%),
    linear-gradient(135deg, var(--riq-role-accent), var(--riq-role-accent-2)) !important;
  color: #ffffff !important;
  box-shadow:
    0 18px 44px color-mix(in srgb, var(--riq-role-accent) 28%, transparent),
    0 0 28px color-mix(in srgb, var(--riq-role-accent-2) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.42) !important;
}

#account-profile-showcase .riq-profile-tab:hover {
  transform: translateY(-1px);
}

/* Layout */
#account-profile-showcase .riq-profile-panel {
  align-items: center !important;
  gap: clamp(1.75rem, 4vw, 4.5rem) !important;
}

@media (min-width: 1024px) {
  #account-profile-showcase .riq-profile-panel {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  }

  #account-profile-showcase .riq-profile-panel > div:first-child {
    order: 2 !important;
  }

  #account-profile-showcase .riq-profile-panel > div:nth-child(2) {
    order: 1 !important;
  }
}

/* Image frame / preview frame */
#account-profile-showcase .riq-profile-image-frame,
#account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\] {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: clamp(24rem, 36vw, 34rem) !important;
  border-radius: 2rem !important;
  border: 1px solid color-mix(in srgb, var(--riq-role-accent-2) 34%, white 66%) !important;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--riq-role-accent-2) 34%, transparent), transparent 0 13rem),
    radial-gradient(circle at 94% 88%, color-mix(in srgb, var(--riq-role-accent) 22%, transparent), transparent 0 16rem),
    linear-gradient(135deg, #020617 0%, color-mix(in srgb, #020617 78%, var(--riq-role-accent-3) 22%) 52%, color-mix(in srgb, #020617 68%, var(--riq-role-accent) 32%) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(255,255,255,0.10),
    0 30px 88px -54px rgba(15,23,42,0.54),
    0 0 52px color-mix(in srgb, var(--riq-role-accent-2) 16%, transparent) !important;
}

#account-profile-showcase .riq-profile-image-frame::before,
#account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 34%, color-mix(in srgb, var(--riq-role-accent) 18%, transparent)),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

#account-profile-showcase .riq-profile-image-frame::after,
#account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\]::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  z-index: 4;
  pointer-events: none;
  border-radius: 1.55rem;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 0 38px rgba(255,255,255,0.08),
    0 0 36px color-mix(in srgb, var(--riq-role-accent-2) 12%, transparent);
}

#account-profile-showcase .riq-profile-panel img {
  z-index: 1;
  transform-origin: center;
  filter: saturate(1.04) contrast(1.02);
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease,
    opacity 240ms ease;
}

#account-profile-showcase .riq-profile-panel:not(.hidden) img {
  transform: scale(1.015);
}

#account-profile-showcase .riq-profile-panel img:hover {
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.04);
}

/* Generated fallback if image path is missing */
#account-profile-showcase .riq-profile-image-fallback {
  position: absolute;
  inset: 1rem;
  z-index: 2;
  display: none;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 1.45rem;
  border: 1px solid rgba(255,255,255,0.28);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--riq-role-accent-2) 18%, transparent), transparent 0 14rem),
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#account-profile-showcase .riq-profile-image-frame--missing .riq-profile-image-fallback {
  display: grid;
}

#account-profile-showcase .riq-profile-fallback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

#account-profile-showcase .riq-profile-fallback-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: color-mix(in srgb, var(--riq-role-accent-2) 72%, white 28%);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#account-profile-showcase .riq-profile-fallback-kicker::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--riq-role-accent-2);
  box-shadow: 0 0 18px var(--riq-role-glow);
}

#account-profile-showcase .riq-profile-fallback-status {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.12);
  padding: 0.45rem 0.65rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#account-profile-showcase .riq-profile-fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-content: center;
}

#account-profile-showcase .riq-profile-fallback-card {
  min-height: 6.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--riq-role-accent-2) 22%, transparent), transparent 0 5rem),
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 14px 34px rgba(2,6,23,0.18);
}

#account-profile-showcase .riq-profile-fallback-card:nth-child(2),
#account-profile-showcase .riq-profile-fallback-card:nth-child(5) {
  transform: translateY(-0.6rem);
}

#account-profile-showcase .riq-profile-fallback-footer {
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(2,6,23,0.24);
  padding: 1rem;
}

#account-profile-showcase .riq-profile-fallback-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

#account-profile-showcase .riq-profile-fallback-copy {
  margin: 0.55rem 0 0;
  color: rgba(255,255,255,0.74);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Copy cards */
#account-profile-showcase .riq-profile-panel > div:nth-child(2) > p:first-child {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--riq-role-accent) 20%, white 80%);
  background: rgba(255,255,255,0.72);
  padding: 0.52rem 0.76rem;
  color: color-mix(in srgb, var(--riq-role-accent-3) 88%, #0f172a) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  backdrop-filter: blur(16px);
}

#account-profile-showcase .riq-profile-panel > div:nth-child(2) > h3 {
  color: #0f172a !important;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,0.75);
}

#account-profile-showcase .riq-profile-panel > div:nth-child(2) > p:not(:first-child) {
  color: #334155 !important;
}

#account-profile-showcase .riq-profile-panel .grid.gap-3 > div {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--riq-role-accent) 18%, white 82%) !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--riq-role-accent-2) 12%, transparent), transparent 0 8rem),
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(240,253,250,0.72), rgba(224,242,254,0.48)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 16px 38px -28px rgba(15,23,42,0.22),
    0 0 24px color-mix(in srgb, var(--riq-role-accent-2) 10%, transparent) !important;
  backdrop-filter: blur(18px);
}

#account-profile-showcase .riq-profile-panel .grid.gap-3 > div::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--riq-role-accent), var(--riq-role-accent-2), transparent);
  opacity: 0.72;
}

#account-profile-showcase .riq-profile-panel .flex.flex-wrap.gap-2 span {
  border-color: color-mix(in srgb, var(--riq-role-accent) 26%, white 74%) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(240,253,250,0.72)) !important;
  color: color-mix(in srgb, var(--riq-role-accent-3) 88%, #0f172a) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 8px 18px rgba(15,23,42,0.06);
}

/* Progress + context card */
.riq-profile-progress {
  height: 0.5rem !important;
  border-color: rgba(255,255,255,0.92) !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.86), rgba(224,242,254,0.72), rgba(240,253,250,0.86)) !important;
  box-shadow:
    inset 0 1px 5px rgba(15,23,42,0.08),
    0 14px 34px rgba(15,23,42,0.10),
    0 0 24px color-mix(in srgb, var(--riq-role-accent-2) 16%, transparent) !important;
}

.riq-profile-progress__bar {
  background:
    linear-gradient(90deg, var(--riq-role-accent), var(--riq-role-accent-2), color-mix(in srgb, var(--riq-role-accent-2) 70%, white 30%)) !important;
  box-shadow:
    0 0 18px var(--riq-role-glow),
    0 0 32px color-mix(in srgb, var(--riq-role-accent-2) 22%, transparent) !important;
}

.riq-profile-context-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--riq-role-accent) 18%, white 82%) !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--riq-role-accent-2) 14%, transparent), transparent 0 12rem),
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,253,250,0.72), rgba(224,242,254,0.52)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    0 22px 52px -36px rgba(15,23,42,0.24),
    0 0 36px color-mix(in srgb, var(--riq-role-accent-2) 12%, transparent) !important;
  backdrop-filter: blur(22px) saturate(150%);
}

.riq-profile-context-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.44), transparent 30%, transparent 72%, rgba(255,255,255,0.14));
}

/* Controls */
.riq-profile-control {
  min-height: 2.85rem !important;
  border-color: color-mix(in srgb, var(--riq-role-accent) 22%, white 78%) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(240,253,250,0.72)) !important;
  color: color-mix(in srgb, var(--riq-role-accent-3) 88%, #0f172a) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 14px 32px rgba(15,23,42,0.10) !important;
}

.riq-profile-control--primary {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.34), transparent 38%),
    linear-gradient(135deg, var(--riq-role-accent), var(--riq-role-accent-2)) !important;
  border-color: color-mix(in srgb, var(--riq-role-accent-2) 54%, white 46%) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    0 18px 42px color-mix(in srgb, var(--riq-role-accent) 24%, transparent),
    0 0 28px color-mix(in srgb, var(--riq-role-accent-2) 18%, transparent) !important;
}

.riq-profile-control:hover,
.riq-profile-control:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    0 20px 48px color-mix(in srgb, var(--riq-role-accent) 16%, rgba(15,23,42,0.14) 84%),
    0 0 32px color-mix(in srgb, var(--riq-role-accent-2) 16%, transparent) !important;
}

/* Safety note */
#account-profile-showcase .relative.z-10.mt-10 {
  border-color: color-mix(in srgb, var(--riq-role-accent) 16%, white 84%) !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--riq-role-accent-2) 12%, transparent), transparent 0 14rem),
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(240,253,250,0.70), rgba(224,242,254,0.50)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 18px 44px -32px rgba(15,23,42,0.24) !important;
  backdrop-filter: blur(18px);
}

@media (max-width: 1023px) {
  #account-profile-showcase .riq-profile-panel > div:first-child,
  #account-profile-showcase .riq-profile-panel > div:nth-child(2) {
    order: initial !important;
  }

  #account-profile-showcase .riq-profile-image-frame,
  #account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\] {
    min-height: clamp(22rem, 68vw, 30rem) !important;
  }
}

@media (max-width: 640px) {
  #account-profile-showcase .riq-profile-image-frame,
  #account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\] {
    min-height: 26rem !important;
  }

  #account-profile-showcase .riq-profile-fallback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #account-profile-showcase .riq-profile-fallback-card:nth-child(5),
  #account-profile-showcase .riq-profile-fallback-card:nth-child(6) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Guided tour image full-container patch
   Forces the visual screenshot/image to fill the entire card/frame.
   -------------------------------------------------------------------------- */

#account-profile-showcase {
  --riq-profile-image-height: clamp(31rem, 42vw, 42rem);
  --riq-profile-image-zoom: 1.08;
  --riq-profile-image-position: center center;
}

/* Make the visual column stretch instead of shrinking around aspect-ratio only */
#account-profile-showcase .riq-profile-panel > div:first-child {
  display: flex !important;
  align-self: stretch !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Make the outer rounded screenshot card fill the visual column */
#account-profile-showcase .riq-profile-panel > div:first-child > div {
  display: flex !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: var(--riq-profile-image-height) !important;
  min-height: var(--riq-profile-image-height) !important;
  max-height: none !important;
}

/* Override Tailwind's aspect-[16/10] frame when used inside the tour */
#account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\],
#account-profile-showcase .riq-profile-image-frame {
  position: relative !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
}

/* Force the actual image to cover the entire frame */
#account-profile-showcase .riq-profile-panel img,
#account-profile-showcase .riq-profile-image-frame img,
#account-profile-showcase .riq-profile-img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: var(--riq-profile-image-position) !important;
  transform: scale(var(--riq-profile-image-zoom)) !important;
  transform-origin: center center !important;
}

/* Keep overlays above the image */
#account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\] > div,
#account-profile-showcase .riq-profile-image-frame > div {
  position: absolute;
  z-index: 2;
}

/* Keep the top preview badge above the image */
#account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\] > .absolute.left-6,
#account-profile-showcase .riq-profile-image-frame > .absolute.left-6 {
  z-index: 5 !important;
}

/* Keep the bottom caption above the image */
#account-profile-showcase .riq-profile-panel > div:first-child .aspect-\[16\/10\] > .absolute.inset-x-6,
#account-profile-showcase .riq-profile-image-frame > .absolute.inset-x-6 {
  z-index: 5 !important;
}

/* Optional: move crop upward for screenshots that have too much empty bottom space */
#account-profile-showcase[data-riq-active-role="clinics"] {
  --riq-profile-image-position: center top;
  --riq-profile-image-zoom: 1.12;
}

#account-profile-showcase[data-riq-active-role="patients"] {
  --riq-profile-image-position: center center;
  --riq-profile-image-zoom: 1.1;
}

#account-profile-showcase[data-riq-active-role="family"] {
  --riq-profile-image-position: center center;
  --riq-profile-image-zoom: 1.1;
}

#account-profile-showcase[data-riq-active-role="clinicians"] {
  --riq-profile-image-position: center center;
  --riq-profile-image-zoom: 1.1;
}

@media (max-width: 1023px) {
  #account-profile-showcase {
    --riq-profile-image-height: clamp(25rem, 76vw, 34rem);
  }
}

@media (max-width: 640px) {
  #account-profile-showcase {
    --riq-profile-image-height: 28rem;
    --riq-profile-image-zoom: 1.14;
  }
}
