:root {
  --primary-color: #6f8ead;
  --primary-dark: #405878;
  --bg-color: #f3eadc;
  --surface-color: #fff8ed;
  --accent-color: #f2c9a7;
  --paper: #eef3f1;
  --paper-warm: #f8ead7;
  --sky: #cddce8;
  --ink: #314056;
  --muted: #697487;
  --blue: #6f8ead;
  --blue-dark: #405878;
  --peach: #f2c9a7;
  --lavender: #cfc5eb;
  --mint: #b9d8c8;
  --cream: #fff6e8;
  --rose: #e4b0b8;
  --line: rgba(49, 64, 86, 0.28);
  --shadow: 0 22px 48px rgba(54, 72, 94, 0.18);
  --soft-shadow: 0 12px 28px rgba(54, 72, 94, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans Georgian", "Nunito", system-ui, sans-serif;
  background: var(--bg-color);
  overflow-x: hidden;
}

body.chat-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: transparent;
  z-index: -2;
}

.glass-panel,
.focus-panel,
.content-panel {
  background-clip: padding-box;
  transition: all 0.3s ease;
}

.site-nav {
  position: sticky;
  top: 14px;
  z-index: 40;
  width: min(1280px, calc(100% - 32px));
  margin: 14px auto 0;
  border: 2px solid rgba(49, 64, 86, 0.18);
  border-radius: 34px 42px 36px 46px;
  background: rgba(255, 248, 237, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 10px 14px;
}

.brand-mark,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.brand-mark,
.nav-links a,
.login-link {
  text-decoration: none;
}

.install-app-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-dark);
  font-weight: 900;
  padding: 10px 14px;
  box-shadow: var(--soft-shadow);
}

.install-app-button:hover,
.install-app-button:focus-visible {
  transform: translateY(-1px);
}

.brand-medallion {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 42% 58% 51% 49%;
  background: var(--peach);
  color: var(--blue-dark);
  font-weight: 900;
  box-shadow: 6px 8px 0 rgba(64, 88, 120, 0.11);
}

.brand-logo {
  width: auto;
  max-width: 150px;
  height: 48px;
  object-fit: contain;
  padding: 6px 10px;
  border: 2px solid var(--line);
  border-radius: 42% 58% 51% 49%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 6px 8px 0 rgba(64, 88, 120, 0.11);
}

.brand-text-logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: min(42vw, 340px);
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--blue-dark);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 6px 8px 0 rgba(64, 88, 120, 0.11);
}

.maintenance-text-logo {
  justify-content: center;
  max-width: min(76vw, 460px);
  margin: 0 auto;
}

.nav-links a,
.login-link {
  border-radius: 999px;
  color: var(--blue-dark);
  font-weight: 800;
  padding: 9px 12px;
}

.nav-links a:hover,
.login-link:hover {
  background: rgba(111, 142, 173, 0.16);
}

.login-link-text:not(.login-link-secondary),
.compact-action,
.chat-compose button {
  border: 2px solid rgba(49, 64, 86, 0.16);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  box-shadow: 4px 6px 0 rgba(64, 88, 120, 0.16);
}

.chat-input-tray {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 2px solid rgba(49, 64, 86, 0.14);
  border-radius: 28px 38px 30px 34px;
  background: rgba(255, 255, 255, 0.58);
}

.chat-input-tray input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 12px;
  color: var(--ink);
}

.account-chip {
  padding: 8px 12px;
  border: 2px solid rgba(49, 64, 86, 0.13);
  border-radius: 26px 33px 29px 31px;
  background: rgba(255, 255, 255, 0.52);
}

.account-chip strong,
.account-chip span {
  display: block;
}

.account-chip span {
  color: var(--muted);
  font-size: 0.76rem;
}

.account-chip-compact {
  display: grid;
  place-items: center;
  min-height: 42px;
}

.account-chip-compact strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid rgba(49, 64, 86, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--blue-dark);
  font-weight: 900;
  padding: 9px 12px;
}

.logout-link span:first-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(111, 142, 173, 0.16);
  transform: rotate(135deg);
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 68px;
  height: 38px;
  border: 2px solid rgba(49, 64, 86, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 5px 14px rgba(64, 88, 120, 0.16);
  transition: transform 220ms ease, background 220ms ease;
}

.theme-toggle span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

html[data-theme="dark"] .theme-toggle::before {
  transform: translateX(30px);
  background: var(--blue);
}

.app-shell {
  width: min(1340px, calc(100% - 32px));
  margin: 28px auto 0;
}

.experience-stage {
  position: relative;
  padding: 26px 0 36px;
}

.experience-stage::before {
  content: "";
  position: absolute;
  inset: 22px 7% auto 7%;
  height: 72%;
  min-height: 520px;
  background: rgba(255, 239, 218, 0.76);
  border: 2px solid rgba(49, 64, 86, 0.08);
  border-radius: 28% 31% 24% 26% / 11% 15% 18% 16%;
  box-shadow: var(--soft-shadow);
  z-index: -1;
}

.setup-note {
  width: min(900px, 100%);
  margin: 0 auto 18px;
  padding: 14px 18px;
  border: 2px solid rgba(49, 64, 86, 0.16);
  border-radius: 28px 36px 28px 40px;
  background: rgba(255, 248, 237, 0.9);
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(245px, 0.78fr) minmax(420px, 1.1fr) minmax(285px, 0.82fr);
  align-items: center;
  gap: 18px;
  min-height: 660px;
}

.doctor-asset-panel,
.livechat-asset-panel,
.content-panel,
.photo-gallery-board,
.notification-panel,
.contact-us-section,
.site-footer,
.modal-card,
.expanding-monitor {
  border: 2px solid rgba(49, 64, 86, 0.14);
  background: rgba(255, 248, 237, 0.74);
  box-shadow: var(--shadow);
  background-clip: padding-box;
  transition: background-color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.doctor-asset-panel,
.livechat-asset-panel,
.content-panel {
  background-image:
    radial-gradient(circle at 18px 18px, rgba(49, 64, 86, 0.035) 0 1px, transparent 1.5px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 48%);
  background-size: 18px 18px, 100% 100%;
}

.doctor-asset-panel {
  min-height: 590px;
  border-radius: 48px 34px 70px 38px;
  background-color: rgba(215, 226, 234, 0.42);
  display: grid;
  place-items: end center;
  padding: 18px;
}

.doctor-asset-button {
  position: relative;
  width: 100%;
  min-height: 560px;
  border: 0;
  background: transparent;
  padding: 0;
}

.doctor-asset-button img {
  position: absolute;
  inset: auto -10% 0 -8%;
  width: 118%;
  max-width: none;
  filter: drop-shadow(12px 22px 16px rgba(54, 72, 94, 0.2));
}

.floating-glass-card {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 116px;
  padding: 11px 13px;
  border: 2px solid rgba(49, 64, 86, 0.13);
  border-radius: 24px 18px 28px 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 6px 7px 0 rgba(64, 88, 120, 0.09);
}

.floating-glass-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.floating-card-heart {
  top: 10%;
  right: 1%;
}

.floating-card-scan {
  left: 2%;
  bottom: 18%;
}

.content-panel {
  padding: 20px;
  border-radius: 52px 38px 46px 34px;
  background-color: rgba(255, 246, 232, 0.74);
  background-clip: padding-box;
}

.topic-stage {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.topic-card {
  position: relative;
  z-index: 1;
  transform-origin: center bottom;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.topic-card.is-loading .topic-copy h2,
.topic-card.is-loading .topic-copy p,
.photo-gallery.is-loading {
  color: transparent !important;
  position: relative;
}

.topic-card.is-loading .topic-copy h2::after,
.topic-card.is-loading .topic-copy p::after,
.photo-gallery.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,0.38), rgba(255,255,255,0.78), rgba(255,255,255,0.38));
  background-size: 220% 100%;
  animation: skeletonShimmer 1.1s ease-in-out infinite;
}

.topic-card.is-loading .topic-copy h2::after {
  height: 1.1em;
  top: 0.12em;
}

.topic-card.is-loading .topic-copy p::after {
  height: 0.95em;
  top: 0.18em;
}

.photo-gallery.is-loading {
  min-height: 260px;
  opacity: 0.76;
}

@keyframes skeletonShimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.topic-card.folding {
  animation: foldAway 0.42s cubic-bezier(0.42, 0, 0.3, 1) forwards;
}

.topic-card.unfolding {
  animation: unfold 0.54s cubic-bezier(0.16, 0.92, 0.24, 1.08) forwards;
}

@keyframes foldAway {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1000px) rotateX(0deg) scaleY(1) translateY(0);
  }

  55% {
    opacity: 0.82;
    filter: blur(0.2px);
    transform: perspective(1000px) rotateX(18deg) scaleY(0.48) translateY(10px);
  }

  100% {
    opacity: 0;
    filter: blur(1px);
    transform: perspective(1000px) rotateX(44deg) scaleY(0) translateY(24px);
  }
}

@keyframes unfold {
  0% {
    opacity: 0;
    filter: blur(1px);
    transform: perspective(1000px) rotateX(-34deg) scaleY(0) translateY(-22px);
  }

  58% {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1000px) rotateX(6deg) scaleY(1.04) translateY(2px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1000px) rotateX(0deg) scaleY(1) translateY(0);
  }
}

.topic-card-shell {
  position: relative;
  min-height: 310px;
  padding: 32px;
  border: 2px solid rgba(49, 64, 86, 0.13);
  border-radius: 40px 58px 42px 64px;
  background:
    radial-gradient(circle at 18px 18px, rgba(49, 64, 86, 0.035) 0 1px, transparent 1.5px),
    rgba(255, 248, 237, 0.9);
  background-size: 18px 18px, auto;
  box-shadow: 8px 10px 0 rgba(64, 88, 120, 0.08), var(--soft-shadow);
  overflow: hidden;
  background-clip: padding-box;
  transition: background-color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.topic-card-head,
.topic-copy {
  position: relative;
  z-index: 4;
}

.eyebrow {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.1;
  color: var(--ink);
}

.topic-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.topic-subtitle {
  color: var(--blue-dark) !important;
  font-weight: 800;
}

.topic-nav-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.topic-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 15px;
  border: 2px solid rgba(49, 64, 86, 0.13);
  border-radius: 24px 32px 26px 36px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  box-shadow: 5px 6px 0 rgba(64, 88, 120, 0.14);
  text-align: left;
}

.topic-nav:disabled {
  opacity: 0.5;
}

.topic-nav-copy {
  display: grid;
  gap: 4px;
}

.topic-nav-copy small {
  color: rgba(255, 255, 255, 0.78);
}

.topic-nav-arrow {
  width: 16px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.topic-nav-prev .topic-nav-arrow {
  transform: rotate(-45deg);
}

.topic-nav-next .topic-nav-arrow {
  transform: rotate(135deg);
}

.photo-gallery-board,
.notification-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 36px 28px 42px 32px;
  background: rgba(255, 255, 255, 0.55);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 0;
}

.panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.gallery-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.gallery-carousel-window {
  overflow: hidden;
}

.gallery-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 12px;
}

.gallery-carousel-card {
  position: relative;
  min-height: 190px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid rgba(49, 64, 86, 0.12);
  border-radius: 24px 18px 28px 20px;
  background: rgba(255, 248, 237, 0.74);
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-carousel-photo {
  position: relative;
  display: block;
  height: 100%;
  background: var(--sky);
}

.gallery-carousel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(111, 142, 173, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-carousel-card:hover,
.gallery-carousel-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(95, 214, 201, 0.45);
  box-shadow: 0 18px 34px rgba(76, 112, 145, 0.18), 0 0 0 5px rgba(95, 214, 201, 0.12);
}

.gallery-carousel-card:hover img,
.gallery-carousel-card:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.gallery-carousel-card:hover::after,
.gallery-carousel-card:focus-visible::after {
  opacity: 1;
}

.gallery-image-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 850;
  background:
    radial-gradient(circle at 34% 28%, rgba(233, 201, 172, 0.42), transparent 30%),
    radial-gradient(circle at 66% 70%, rgba(185, 216, 200, 0.5), transparent 34%),
    rgba(247, 242, 229, 0.92);
}

.gallery-carousel-photo.is-missing .gallery-image-placeholder {
  display: grid;
}

.gallery-carousel-copy {
  display: none;
  gap: 4px;
  padding: 12px;
}

.gallery-carousel-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.gallery-carousel-control {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(49, 64, 86, 0.14);
  border-radius: 50%;
  background: var(--cream);
}

.gallery-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.gallery-carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(49, 64, 86, 0.26);
}

.gallery-carousel-dot.is-active {
  background: var(--blue-dark);
}

.livechat-asset-panel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 36px 58px 34px 52px;
  background-color: rgba(215, 226, 234, 0.44);
  padding: 20px;
}

.livechat-header {
  position: relative;
  z-index: 2;
}

.livechat-header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.livechat-launch {
  position: absolute;
  inset: 16% -9% auto -9%;
  width: 116%;
  border: 0;
  background: transparent;
  padding: 0;
}

.livechat-launch img {
  filter: drop-shadow(12px 22px 16px rgba(54, 72, 94, 0.19));
}

.livechat-pulse {
  position: absolute;
  right: 26%;
  top: 18%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #7ac79c;
  box-shadow: 0 0 0 10px rgba(122, 199, 156, 0.18);
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.message-row.admin {
  flex-direction: row-reverse;
}

.message-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(49, 64, 86, 0.13);
  border-radius: 43% 57% 48% 52%;
  background: var(--lavender);
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.message-card {
  max-width: min(430px, 100%);
}

.message-meta {
  margin: 0 0 4px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.message-bubble {
  padding: 10px 13px;
  border: 2px solid rgba(49, 64, 86, 0.12);
  border-radius: 18px 24px 20px 28px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  line-height: 1.5;
  box-shadow: 4px 5px 0 rgba(64, 88, 120, 0.08);
}

.message-row.admin .message-bubble {
  background: #d9e7f3;
}

.chat-image {
  width: min(260px, 100%);
  border-radius: 16px;
  margin-bottom: 8px;
}

.chat-overlay,
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.chat-overlay[hidden],
.modal-shell[hidden] {
  display: none;
}

.chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(49, 64, 86, 0.28);
  backdrop-filter: blur(8px);
}

.expanding-monitor,
.modal-card {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 44px 32px 52px 36px;
  background: rgba(255, 248, 237, 0.92);
}

.monitor-close,
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(49, 64, 86, 0.14);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.35rem;
}

.chat-dialog-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(360px, 1fr);
  min-height: 620px;
}

.chat-dialog-art {
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(215, 226, 234, 0.5);
}

.chat-dialog-art img {
  filter: drop-shadow(12px 22px 16px rgba(54, 72, 94, 0.2));
}

.chat-dialog-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-right: 44px;
}

.chat-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-head-title svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(111, 142, 173, 0.14);
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 1.8;
}

.chat-head h3 {
  margin: 0;
}

.chat-topic-line,
.chat-status,
.inline-status,
.modal-copy {
  color: var(--muted);
}

.chat-controls {
  display: flex;
  gap: 7px;
}

.chat-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
}

.chat-identity-card {
  display: grid;
  gap: 5px;
  margin: 16px 0;
  padding: 14px;
  border: 2px solid rgba(49, 64, 86, 0.1);
  border-radius: 24px 18px 28px 20px;
  background: rgba(255, 255, 255, 0.58);
}

.chat-identity-card span {
  color: var(--muted);
}

.chat-identity-actions {
  display: flex;
  gap: 12px;
}

.chat-identity-actions a {
  color: var(--blue-dark);
  font-weight: 800;
}

.chat-messages {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  overflow: auto;
  padding: 8px 10px 8px 0;
}

.typing-indicator p {
  margin: 8px 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.chat-compose {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.chat-image-upload-label {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(111, 142, 173, 0.16);
}

.chat-compose button {
  justify-self: end;
  padding: 10px 18px;
}

.modal-card {
  padding: 30px;
  overflow: auto;
}

.gallery-modal-card img,
#patientVideo {
  width: 100%;
  border-radius: 26px 20px 30px 22px;
  background: var(--sky);
}

.gallery-modal-card {
  width: min(1180px, calc(100vw - 28px));
  height: min(92dvh, 860px);
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 28px;
  background: rgba(11, 22, 36, 0.88);
  backdrop-filter: blur(18px);
}

.gallery-modal-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: transparent;
}

.gallery-modal-card .modal-close {
  background: rgba(255, 255, 255, 0.9);
}

.embed-video-shell {
  position: relative;
  overflow: visible;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 26px 20px 30px 22px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 18px 48px rgba(28, 43, 62, 0.16);
  isolation: isolate;
}

.video-clean-wrapper {
  display: block;
  overflow: visible;
  background: #000;
  background-clip: padding-box;
}

.embed-video-viewport {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  background: #000;
  border-radius: inherit;
}

.embed-video-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.35s ease, filter 0.3s ease;
}

.embed-video-shell.is-playing .embed-video-viewport iframe {
  opacity: 1;
}

.embed-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 0.35s ease, background 0.3s ease;
}

.embed-play-overlay:hover,
.embed-play-overlay:focus-visible {
  background: rgba(0, 0, 0, 0.42);
}

.embed-play-overlay[hidden] {
  display: none;
}

.embed-video-shell.is-playing .embed-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.embed-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  padding-left: 4px;
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(104, 132, 170, 0.92), rgba(122, 206, 196, 0.9));
  box-shadow: 0 18px 42px rgba(18, 30, 46, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.embed-video-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px;
  border-radius: 999px;
  background: rgba(9, 18, 30, 0.74);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.embed-video-shell.is-youtube.is-playing .embed-video-controls {
  display: flex;
}

.embed-video-control {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(16, 32, 51, 0.72);
  box-shadow: 0 10px 24px rgba(18, 30, 46, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.embed-video-control:hover,
.embed-video-control:focus-visible {
  background: rgba(38, 73, 101, 0.82);
  outline: none;
}

.embed-video-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.embed-video-volume input {
  width: 96px;
  accent-color: #7acec4;
}

@media (max-width: 760px) {
  .embed-video-controls {
    right: 10px;
    bottom: 10px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-radius: 18px;
  }

  .embed-video-control {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .embed-video-volume input {
    width: 76px;
  }
}

.social-watch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.social-watch-icon svg,
.footer-social svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-us-section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 46px 34px 54px 38px;
  background: color-mix(in srgb, var(--surface-color) 86%, transparent);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contact-reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.18, 0.95, 0.22, 1.12);
}

.contact-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.95fr);
  align-items: stretch;
  gap: clamp(18px, 3vw, 28px);
  margin: 22px 0;
}

.contact-form {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 100%;
  padding: clamp(16px, 2vw, 22px);
  border: 2px solid rgba(49, 64, 86, 0.08);
  border-radius: 32px 24px 36px 28px;
  background: rgba(255, 255, 255, 0.36);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-dark);
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  outline: 0;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: color-mix(in srgb, var(--blue) 48%, white);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(111, 142, 173, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.contact-form button {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-dark), color-mix(in srgb, var(--blue) 78%, #7acec4));
  color: #fff;
  font-weight: 900;
  padding: 12px 18px;
  box-shadow: 0 14px 30px rgba(64, 88, 120, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.contact-form button:hover,
.contact-form button:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.contact-map {
  min-height: 420px;
  border-radius: 32px 46px 34px 42px;
  background: linear-gradient(135deg, rgba(185, 216, 200, 0.42), rgba(207, 220, 232, 0.62));
  position: relative;
  overflow: hidden;
}

.leaflet-contact-map {
  width: 100%;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  filter: saturate(0.86) contrast(0.96);
}

.leaflet-contact-map .leaflet-tile-pane {
  opacity: 0.78;
}

.leaflet-contact-map .leaflet-popup-content-wrapper {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.leaflet-contact-map .leaflet-control-zoom a {
  color: var(--blue-dark);
}

.contact-info p {
  margin: 0;
  padding: 14px;
  border: 2px solid rgba(49, 64, 86, 0.1);
  border-radius: 24px 18px 28px 20px;
  background: rgba(255, 255, 255, 0.58);
}

.footer-content {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(49, 64, 86, 0.1);
  border-radius: 48% 52% 42% 58%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--blue-dark);
}

.footer-copyright {
  justify-self: end;
  margin: 0;
  color: var(--muted);
}

#toastRoot {
  position: fixed;
  right: 18px;
  bottom: 120px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.care-toast {
  min-width: 220px;
  max-width: min(340px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  background: linear-gradient(180deg, #d7e7f4 0%, #bfd8ea 100%);
  color: #25455d;
  font-weight: 850;
  box-shadow: 0 18px 30px rgba(85, 112, 137, 0.18);
  opacity: 0;
  transform: translateY(18px);
  animation: toastSlideUp 260ms ease forwards, toastFadeOut 420ms ease 4.58s forwards;
}

.care-toast-success {
  background: linear-gradient(180deg, #bde0d4 0%, #9ed0c0 100%);
}

.care-toast-error {
  background: linear-gradient(180deg, #d89d96 0%, #c77b75 100%);
  color: #fff;
}

.care-toast.is-leaving {
  opacity: 0;
  transform: translateY(10px);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastFadeOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.floating-pwa-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.72);
  box-shadow: 0 18px 38px rgba(54, 72, 94, 0.16);
  backdrop-filter: blur(14px);
}

.floating-action-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid rgba(49, 64, 86, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue-dark);
  font-weight: 900;
  padding: 8px 13px 8px 9px;
  box-shadow: 4px 6px 0 rgba(64, 88, 120, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.floating-action-btn:hover,
.floating-action-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(64, 88, 120, 0.18);
}

.floating-action-btn:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.floating-action-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.floating-action-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-action-bell {
  background: var(--blue);
  color: #fff;
}

body.is-subscribed #pushEnableButton {
  display: none;
}

.floating-action-bell[data-subscribed="true"] {
  background: #6fb08b;
  color: #102033;
}

.floating-action-bell:hover,
.floating-action-bell:focus-visible {
  background: color-mix(in srgb, var(--blue) 82%, white);
  color: #fff;
}

.floating-action-bell .floating-action-icon {
  background: rgba(255, 255, 255, 0.2);
}

.floating-status {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 44px);
  z-index: 10000;
  max-width: min(320px, calc(100vw - 32px));
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: var(--soft-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-status::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.86);
}

.floating-action-btn:hover ~ .floating-status,
.floating-action-btn:focus-visible ~ .floating-status {
  opacity: 1;
  transform: translateY(-4px);
}

@media (max-width: 1180px) {
  .nav-inner {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    justify-content: end;
  }

  .stage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-panel {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 760px) {
  .site-nav,
  .app-shell,
  .contact-us-section,
  .site-footer {
    width: calc(100% - 20px);
  }

  .nav-inner,
  .stage-grid,
  .chat-dialog-layout,
  .contact-layout,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .stage-grid {
    min-height: 0;
  }

  .doctor-asset-panel,
  .livechat-asset-panel {
    min-height: 430px;
  }

  .doctor-asset-button {
    min-height: 400px;
  }

  .topic-nav-dock {
    grid-template-columns: 1fr;
  }

  .chat-dialog-art {
    display: none;
  }

  .chat-dialog-panel {
    padding: 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-copyright {
    justify-self: center;
  }
}

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

  .doctor-asset-button,
  .livechat-launch {
    transform: none !important;
  }
}

/* Major wide hand-drawn composition */
body {
  background: var(--bg-color);
}

.public-page .page-wash {
  background: transparent;
}

.site-nav {
  width: min(1380px, calc(100vw - 40px));
  margin-left: auto;
  margin-right: auto;
}

.app-shell {
  width: 100vw;
  max-width: none;
  margin: 28px 0 0;
  overflow: hidden;
}

.experience-stage {
  width: 100vw;
  min-height: 760px;
  padding: 34px 0 48px;
  overflow: visible;
}

.experience-stage::before {
  content: none;
}

.background-loop-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-loop {
  position: absolute;
  width: min(62vw, 820px);
  height: auto;
  overflow: visible;
  opacity: 0.1;
  background: transparent;
  animation: largeLoopFloat 18s ease-in-out infinite;
}

.background-loop path {
  fill: none;
  stroke: #405878;
  stroke-width: 34;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1900;
  stroke-dashoffset: 0;
  animation: largeLoopDraw 22s ease-in-out infinite;
}

.background-loop-left {
  left: -10vw;
  top: 6vh;
  transform: rotate(-12deg);
}

.background-loop-right {
  right: -13vw;
  top: 2vh;
  animation-delay: -5s;
}

.background-loop-bottom {
  left: 28vw;
  bottom: -9vh;
  width: min(54vw, 720px);
  transform: rotate(7deg);
  animation-delay: -9s;
}

@keyframes largeLoopFloat {
  0%,
  100% {
    translate: 0 0;
    scale: 1;
  }

  50% {
    translate: 18px -22px;
    scale: 1.035;
  }
}

@keyframes largeLoopDraw {
  0%,
  100% {
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dashoffset: -360;
  }
}

.stage-grid {
  position: relative;
  z-index: 1;
  display: block;
  width: 100vw;
  min-height: 700px;
  padding: 0;
}

.content-panel {
  position: relative;
  z-index: 3;
  width: min(1120px, 74vw);
  min-height: 0;
  margin: 54px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  background-clip: padding-box;
  transition: background-color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.topic-stage {
  position: relative;
  z-index: 3;
}

.topic-card-shell {
  min-height: 440px;
  padding: clamp(38px, 5vw, 70px) clamp(92px, 11vw, 170px);
  border: 2px solid rgba(49, 64, 86, 0.15);
  border-radius: 58px 82px 62px 92px;
  background:
    radial-gradient(circle at 18px 18px, rgba(49, 64, 86, 0.03) 0 1px, transparent 1.5px),
    rgba(255, 248, 237, 0.92);
  background-size: 20px 20px, auto;
  box-shadow: 0 28px 64px rgba(54, 72, 94, 0.16);
  backdrop-filter: blur(12px);
  overflow: hidden;
  background-clip: padding-box;
}

.topic-copy {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.topic-copy h2 {
  font-size: clamp(2.25rem, 3vw, 3rem);
  line-height: 1.22;
  margin-bottom: 14px;
}

.topic-copy p {
  font-size: 1.08rem;
  line-height: 1.78;
}

.topic-nav-dock {
  width: min(760px, calc(100% - 80px));
  margin: -38px auto 0;
  position: relative;
  z-index: 80;
}

.topic-nav {
  position: relative;
  z-index: 81;
}

.topic-nav {
  min-height: 76px;
  border-radius: 28px 38px 30px 42px;
  background: #6f8ead;
}

.doctor-asset-panel,
.livechat-asset-panel {
  position: absolute;
  z-index: 4;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  overflow: visible;
}

.doctor-asset-panel {
  width: min(390px, 30vw);
  left: max(-24px, calc(50vw - 800px));
  top: 96px;
}

.doctor-asset-button {
  width: 100%;
  min-height: 590px;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.doctor-asset-button::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 13%;
  width: 150px;
  height: 98px;
  border-radius: 28px;
  border: 1px solid rgba(111, 142, 173, 0.22);
  background: rgba(111, 142, 173, 0.05);
  box-shadow: 0 0 22px rgba(111, 142, 173, 0.18);
  pointer-events: none;
  animation: panelGlow 4.2s ease-in-out infinite;
}

.doctor-asset-button img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(470px, 35vw);
  max-width: none;
  filter: drop-shadow(14px 24px 18px rgba(54, 72, 94, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: characterFloat 5.2s ease-in-out infinite;
}

.doctor-asset-button:hover img,
.doctor-asset-button:focus-visible img {
  filter: drop-shadow(16px 28px 22px rgba(54, 72, 94, 0.26));
  transform: translateY(-4px) scale(1.01);
}

.doctor-asset-button.is-video-focusing img {
  filter: blur(0.4px) drop-shadow(18px 32px 26px rgba(54, 72, 94, 0.3));
  transform: translateY(-6px) scale(1.045);
}

.doctor-asset-button.is-video-focusing::after {
  animation: focusRipple 0.7s ease-out;
  box-shadow: 0 0 0 18px rgba(111, 142, 173, 0), 0 0 34px rgba(111, 142, 173, 0.3);
}

.video-cue,
.chat-cue {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(54, 72, 94, 0.13);
  backdrop-filter: blur(14px) saturate(120%);
  opacity: 0.92;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.video-cue {
  left: 69.5%;
  top: 17.4%;
  transform: translate(-5%, 0);
}

.video-cue-icon,
.chat-cue-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(111, 142, 173, 0.92), rgba(185, 216, 200, 0.92));
  box-shadow: 0 0 0 0 rgba(111, 142, 173, 0.34);
  animation: cuePulse 2.2s ease-in-out infinite;
}

.video-cue::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(111, 142, 173, 0.24);
  opacity: 0;
  pointer-events: none;
  animation: cueRipple 2.4s ease-out infinite;
}

.video-cue-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.video-cue-label,
.chat-cue-label {
  white-space: nowrap;
}

.doctor-asset-button:hover .video-cue,
.doctor-asset-button:focus-visible .video-cue {
  opacity: 1;
  transform: translate(-5%, -4px) scale(1.035);
  box-shadow: 0 13px 30px rgba(54, 72, 94, 0.17);
}

@keyframes cuePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(111, 142, 173, 0.34);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(111, 142, 173, 0);
  }
}

.floating-glass-card {
  display: none;
}

.floating-card-heart {
  top: 72px;
  right: -42px;
}

.floating-card-scan {
  top: 196px;
  left: -18px;
  bottom: auto;
}

.floating-card-oxygen {
  left: 18px;
  bottom: 110px;
}

.livechat-asset-panel {
  width: min(430px, 32vw);
  right: max(18px, calc(50vw - 760px));
  top: 184px;
}

.livechat-launch {
  position: relative;
  inset: auto;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.livechat-launch img {
  width: min(520px, 38vw);
  max-width: none;
  filter: drop-shadow(-12px 24px 18px rgba(54, 72, 94, 0.18));
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: characterFloat 5.6s ease-in-out infinite;
}

.livechat-launch:hover img,
.livechat-launch:focus-visible img {
  filter: drop-shadow(-14px 28px 24px rgba(54, 72, 94, 0.26));
  transform: translateY(-5px) scale(1.025);
}

.livechat-launch::before,
.livechat-launch::after {
  content: "";
  position: absolute;
  z-index: 8;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 10px 24px rgba(54, 72, 94, 0.12);
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.livechat-launch::before {
  right: 28%;
  top: 20%;
  width: 42px;
  height: 28px;
  border-radius: 18px 18px 18px 6px;
}

.livechat-launch::after {
  right: 20%;
  top: 14%;
  width: 24px;
  height: 18px;
  border-radius: 50%;
}

.livechat-launch:hover::before,
.livechat-launch:hover::after,
.livechat-launch:focus-visible::before,
.livechat-launch:focus-visible::after,
.livechat-launch.is-chat-brightening::before,
.livechat-launch.is-chat-brightening::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.livechat-launch.is-chat-brightening img {
  filter: brightness(1.08) drop-shadow(-16px 30px 26px rgba(54, 72, 94, 0.3));
  transform: translateY(-6px) scale(1.04);
}

.livechat-launch.is-chat-brightening::before {
  animation: chatBubbleFloat 0.78s ease-out;
}

.livechat-launch.is-chat-brightening::after {
  animation: chatBubbleFloat 0.78s ease-out 0.08s;
}

.livechat-pulse {
  display: none;
}

.chat-cue {
  left: 35.5%;
  top: 74%;
  right: auto;
  transform: translate(-50%, -50%);
}

.livechat-launch:hover .chat-cue,
.livechat-launch:focus-visible .chat-cue {
  opacity: 1;
  transform: translate(-50%, calc(-50% - 6px)) scale(1.035);
  box-shadow: 0 13px 30px rgba(54, 72, 94, 0.17);
}

.chat-cue-icon::before,
.chat-cue-icon::after {
  content: "";
  position: absolute;
  background: #fff;
}

.chat-cue-icon::before {
  width: 13px;
  height: 9px;
  border-radius: 5px;
}

.chat-cue-icon::after {
  width: 6px;
  height: 6px;
  border-radius: 0 0 0 6px;
  transform: translate(3px, 6px) rotate(-35deg);
}

@keyframes characterFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -2px;
  }
}

@keyframes panelGlow {
  0%,
  100% {
    opacity: 0.34;
    box-shadow: 0 0 18px rgba(111, 142, 173, 0.12);
  }

  50% {
    opacity: 0.68;
    box-shadow: 0 0 30px rgba(111, 142, 173, 0.26);
  }
}

@keyframes cueRipple {
  0% {
    opacity: 0.42;
    transform: scale(0.92);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes focusRipple {
  0% {
    transform: scale(0.94);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes chatBubbleFloat {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-14px, -28px) scale(1.08);
  }
}

.photo-gallery-board,
.notification-panel {
  width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.photo-gallery-board {
  margin-top: 76px;
}

.contact-us-section,
.site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 1200px) {
  .content-panel {
    width: min(980px, 86vw);
  }

  .doctor-asset-panel {
    left: -22px;
    width: 290px;
    opacity: 0.96;
  }

  .doctor-asset-button img {
    width: 360px;
  }

  .livechat-asset-panel {
    right: 8px;
    width: 330px;
    top: 176px;
  }

  .livechat-launch img {
    width: 390px;
  }
}

@media (max-width: 900px) {
  .experience-stage {
    min-height: 0;
  }

  .stage-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 0 14px;
  }

  .doctor-asset-panel,
  .livechat-asset-panel,
  .content-panel {
    position: relative;
    inset: auto;
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .doctor-asset-button {
    min-height: 430px;
  }

  .doctor-asset-button img,
  .livechat-launch img {
    position: relative;
    width: min(100%, 430px);
    left: auto;
    bottom: auto;
    margin: 0 auto;
  }

  .content-panel {
    order: 2;
  }

  .doctor-asset-panel {
    order: 1;
  }

  .livechat-asset-panel {
    order: 3;
  }

  .topic-card-shell {
    min-height: 0;
    padding: 32px 24px 58px;
  }

  .topic-nav-dock {
    width: 100%;
    margin-top: 14px;
  }
}

/* Header cleanup, topic label, and gallery lightbox polish */
.nav-inner {
  grid-template-columns: auto 1fr auto;
}

.nav-links {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
}

.topic-card-head {
  position: absolute;
  top: clamp(22px, 3vw, 34px);
  left: clamp(28px, 4vw, 48px);
  z-index: 5;
}

.topic-card-shell {
  padding-top: clamp(72px, 7vw, 98px);
}

.gallery-carousel-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(54, 72, 94, 0.16);
  backdrop-filter: blur(14px);
  color: var(--blue-dark);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.gallery-carousel-control:hover:not(:disabled),
.gallery-carousel-control:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(54, 72, 94, 0.2);
  transform: translateY(-2px);
}

.gallery-carousel-control:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.gallery-carousel-control span,
.lightbox-nav span {
  display: block;
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.gallery-carousel-control-prev span,
.lightbox-nav-prev span {
  transform: translateX(3px) rotate(-45deg);
}

.gallery-carousel-control-next span,
.lightbox-nav-next span {
  transform: translateX(-3px) rotate(135deg);
}

.gallery-modal-card {
  width: min(980px, calc(100vw - 36px));
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 70px rgba(54, 72, 94, 0.22);
  backdrop-filter: blur(22px) saturate(125%);
}

.gallery-modal-card img {
  max-height: min(66vh, 680px);
  object-fit: contain;
  background: rgba(248, 244, 230, 0.58);
}

.video-frame {
  position: relative;
  transition: transform 240ms ease, width 240ms ease, box-shadow 240ms ease;
}

.video-frame video {
  width: 100%;
  border-radius: 18px;
  background: #111827;
}

.video-frame.is-video-docked {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 12000;
  width: min(360px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(49, 64, 86, 0.28);
  backdrop-filter: blur(18px);
}

.video-dock-toggle {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 12px;
  box-shadow: var(--soft-shadow);
}

.maintenance-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(243, 250, 250, 0.76), rgba(241, 247, 249, 0.86)),
    url("/web/assets/doctor.png") center / cover fixed;
}

.maintenance-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.maintenance-card {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 42px 34px 48px 36px;
  text-align: center;
}

.maintenance-card .brand-medallion,
.maintenance-logo {
  margin: 0 auto 20px;
}

.maintenance-logo {
  max-width: 180px;
  max-height: 82px;
  object-fit: contain;
}

.maintenance-card h1 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
}

.maintenance-card p:not(.eyebrow) {
  margin: 0 auto 22px;
  max-width: 460px;
  color: var(--muted);
  font-weight: 700;
}

.maintenance-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.maintenance-countdown span {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(64, 88, 120, 0.1);
}

.maintenance-countdown strong {
  color: var(--blue-dark);
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1;
}

.maintenance-countdown small {
  color: var(--muted);
  font-weight: 900;
}

.maintenance-notify-form {
  display: flex;
  gap: 10px;
  margin: 0 auto 12px;
  max-width: 480px;
}

.maintenance-notify-form input,
.maintenance-notify-form button {
  min-height: 48px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
}

.maintenance-notify-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(64, 88, 120, 0.16);
  padding: 0 16px;
}

.maintenance-notify-form button {
  border: 0;
  padding: 0 18px;
  background: var(--blue-dark);
  color: #fff;
}

.maintenance-form-status {
  min-height: 22px;
  font-size: 0.92rem;
}

.cookie-consent-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(64, 88, 120, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(35, 48, 66, 0.22);
  backdrop-filter: blur(18px);
}

.cookie-consent-bar[hidden] {
  display: none;
}

.cookie-consent-bar strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-weight: 900;
}

.cookie-consent-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.cookie-consent-bar button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--blue-dark);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

@media (max-width: 620px) {
  .maintenance-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maintenance-notify-form,
  .cookie-consent-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-dark);
  box-shadow: 0 16px 38px rgba(54, 72, 94, 0.2);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: #fff;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-nav-prev {
  left: 18px;
}

.lightbox-nav-next {
  right: 18px;
}

@media (max-width: 760px) {
  .nav-inner {
    grid-template-columns: 1fr;
  }

  .site-nav {
    top: 8px;
    width: min(100% - 18px, 720px);
    border-radius: 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .account-chip {
    max-width: 160px;
  }

  .theme-toggle {
    width: 62px;
    height: 36px;
  }

  .install-app-button,
  .login-link {
    min-height: 40px;
  }

  .topic-card-head {
    left: 24px;
    top: 22px;
  }

  .gallery-carousel-control,
  .lightbox-nav {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .lightbox-nav-prev {
    left: 8px;
  }

  .lightbox-nav-next {
    right: 8px;
  }
}

@media (max-width: 520px) {
  .nav-links a,
  .login-link,
  .install-app-button {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .topic-card-shell {
    padding-inline: 18px;
  }

  .video-frame.is-video-docked {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .floating-pwa-actions {
    right: 50%;
    bottom: 12px;
    transform: translateX(50%);
    max-width: calc(100vw - 20px);
    padding: 7px;
  }

  .floating-action-btn {
    min-height: 40px;
    padding: 7px 10px 7px 7px;
  }

  .floating-action-text {
    font-size: 0.78rem;
  }

  .floating-status {
    right: 50%;
    transform: translate(50%, 6px);
    bottom: calc(100% + 36px);
    width: max-content;
    max-width: calc(100vw - 30px);
  }

  #toastRoot {
    right: 10px;
    left: 10px;
    bottom: 120px;
    align-items: stretch;
  }

  .care-toast {
    width: 100%;
    max-width: none;
  }

  .floating-action-btn:hover ~ .floating-status,
  .floating-action-btn:focus-visible ~ .floating-status {
    transform: translate(50%, -4px);
  }
}

html[data-theme="dark"] {
  --paper: #172033;
  --paper-warm: #242b38;
  --sky: #26364b;
  --ink: #edf3f7;
  --muted: #b4bfcc;
  --blue: #91abc8;
  --blue-dark: #d9e7f5;
  --peach: #d7a885;
  --lavender: #a99ad3;
  --mint: #81b39c;
  --cream: #202938;
  --rose: #c78e99;
  --line: rgba(237, 243, 247, 0.22);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
  --soft-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  --bg-color: #151d2a;
  --surface-color: #202938;
}

html.dark-mode {
  --paper: #172033;
  --paper-warm: #242b38;
  --sky: #26364b;
  --ink: #edf3f7;
  --muted: #b4bfcc;
  --blue: #91abc8;
  --blue-dark: #d9e7f5;
  --peach: #d7a885;
  --lavender: #a99ad3;
  --mint: #81b39c;
  --cream: #202938;
  --rose: #c78e99;
  --line: rgba(237, 243, 247, 0.22);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
  --soft-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  --bg-color: #151d2a;
  --surface-color: #202938;
}

html[data-theme="dark"] body,
html.dark-mode body {
  background: var(--bg-color);
}

html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .sketch-card,
html[data-theme="dark"] .contact-us-section,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .floating-pwa-actions,
html.dark-mode .site-nav,
html.dark-mode .glass-panel,
html.dark-mode .sketch-card,
html.dark-mode .contact-us-section,
html.dark-mode .site-footer,
html.dark-mode .floating-pwa-actions {
  background: rgba(32, 41, 56, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  background-clip: padding-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  overflow: hidden;
}

html[data-theme="dark"] .content-panel.glass-panel,
html[data-theme="dark"] .focus-panel.glass-panel,
html.dark-mode .content-panel.glass-panel,
html.dark-mode .focus-panel.glass-panel {
  background: transparent;
  border-color: transparent;
  border-radius: 20px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-info p,
html[data-theme="dark"] .floating-action-btn,
html[data-theme="dark"] .account-chip,
html[data-theme="dark"] .logout-link,
html[data-theme="dark"] .theme-toggle,
html.dark-mode .contact-form,
html.dark-mode .contact-info p,
html.dark-mode .floating-action-btn,
html.dark-mode .account-chip,
html.dark-mode .logout-link,
html.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  background-clip: padding-box;
}

html[data-theme="dark"] .topic-card-shell,
html.dark-mode .topic-card-shell {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.045) 0 1px, transparent 1.5px),
    rgba(30, 36, 49, 0.84);
  background-clip: padding-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 46px rgba(145, 171, 200, 0.08);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

html[data-theme="dark"] .topic-copy h2,
html[data-theme="dark"] .topic-copy p,
html[data-theme="dark"] .topic-subtitle,
html[data-theme="dark"] .topic-card .eyebrow,
html.dark-mode .topic-copy h2,
html.dark-mode .topic-copy p,
html.dark-mode .topic-subtitle,
html.dark-mode .topic-card .eyebrow {
  color: #f7fbff;
}

html[data-theme="dark"] .topic-copy p,
html[data-theme="dark"] .topic-subtitle,
html.dark-mode .topic-copy p,
html.dark-mode .topic-subtitle {
  color: #d9e7f5;
}

html[data-theme="dark"] .photo-gallery-board,
html.dark-mode .photo-gallery-board {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(30, 36, 49, 0.78);
  background-clip: padding-box;
  color: #f7fbff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

html[data-theme="dark"] .panel-heading h3,
html[data-theme="dark"] .panel-heading p,
html.dark-mode .panel-heading h3,
html.dark-mode .panel-heading p {
  color: #f7fbff;
}

html[data-theme="dark"] .gallery-carousel-card,
html.dark-mode .gallery-carousel-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(23, 31, 45, 0.88);
  color: #f7fbff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .gallery-carousel-copy,
html.dark-mode .gallery-carousel-copy {
  background: rgba(18, 25, 38, 0.86);
}

html[data-theme="dark"] .gallery-carousel-copy strong,
html.dark-mode .gallery-carousel-copy strong {
  color: #ffffff;
}

html[data-theme="dark"] .gallery-carousel-copy span,
html.dark-mode .gallery-carousel-copy span {
  color: #d9e7f5;
}

html[data-theme="dark"] .gallery-carousel-control,
html.dark-mode .gallery-carousel-control,
html[data-theme="dark"] .lightbox-nav,
html.dark-mode .lightbox-nav {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(32, 41, 56, 0.92);
  color: #f7fbff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .gallery-carousel-control:hover:not(:disabled),
html[data-theme="dark"] .gallery-carousel-control:focus-visible,
html[data-theme="dark"] .lightbox-nav:hover,
html[data-theme="dark"] .lightbox-nav:focus-visible,
html.dark-mode .gallery-carousel-control:hover:not(:disabled),
html.dark-mode .gallery-carousel-control:focus-visible,
html.dark-mode .lightbox-nav:hover,
html.dark-mode .lightbox-nav:focus-visible {
  background: rgba(48, 61, 82, 0.98);
}

html[data-theme="dark"] .gallery-carousel-dot,
html.dark-mode .gallery-carousel-dot {
  background: rgba(217, 231, 245, 0.18);
}

html[data-theme="dark"] .gallery-carousel-dot.is-active,
html.dark-mode .gallery-carousel-dot.is-active {
  background: #d9e7f5;
}

html[data-theme="dark"] .modal-shell,
html.dark-mode .modal-shell {
  background: rgba(9, 14, 24, 0.28);
}

html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .gallery-modal-card,
html.dark-mode .modal-card,
html.dark-mode .gallery-modal-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(23, 31, 45, 0.96);
  color: #f7fbff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

html[data-theme="dark"] .modal-card h2,
html[data-theme="dark"] .modal-card .eyebrow,
html[data-theme="dark"] .modal-copy,
html.dark-mode .modal-card h2,
html.dark-mode .modal-card .eyebrow,
html.dark-mode .modal-copy {
  color: #f7fbff;
}

html[data-theme="dark"] .gallery-modal-card img,
html.dark-mode .gallery-modal-card img {
  background: rgba(12, 18, 30, 0.45);
}

html[data-theme="dark"] .video-clean-wrapper,
html.dark-mode .video-clean-wrapper {
  border-color: rgba(122, 206, 196, 0.28);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(122, 206, 196, 0.16),
    0 0 34px rgba(122, 206, 196, 0.18),
    0 24px 70px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .embed-play-overlay,
html.dark-mode .embed-play-overlay {
  background: rgba(0, 0, 0, 0.54);
}

html[data-theme="dark"] .embed-video-control,
html.dark-mode .embed-video-control {
  border-color: rgba(122, 206, 196, 0.28);
  background: rgba(8, 13, 23, 0.72);
}

html[data-theme="dark"] .modal-close,
html.dark-mode .modal-close {
  background: rgba(18, 25, 38, 0.96);
  color: #f7fbff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .floating-pwa-actions,
html.dark-mode .floating-pwa-actions {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(21, 29, 42, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  overflow: visible;
}

html[data-theme="dark"] .floating-action-btn,
html.dark-mode .floating-action-btn {
  color: #f7fbff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .floating-action-btn:hover,
html[data-theme="dark"] .floating-action-btn:focus-visible,
html.dark-mode .floating-action-btn:hover,
html.dark-mode .floating-action-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .floating-action-bell,
html.dark-mode .floating-action-bell {
  background: var(--blue);
  color: #111827;
}

html[data-theme="dark"] .floating-action-bell[data-subscribed="true"],
html.dark-mode .floating-action-bell[data-subscribed="true"] {
  background: #7fc79e;
  color: #0f172a;
}

html[data-theme="dark"] .floating-status,
html.dark-mode .floating-status {
  z-index: 10000;
  border-color: rgba(237, 243, 247, 0.12);
  background: rgba(32, 41, 56, 0.96);
  color: #d9e7f5;
}

html[data-theme="dark"] #toastRoot,
html.dark-mode #toastRoot {
  z-index: 9999;
}

html[data-theme="dark"] .care-toast,
html.dark-mode .care-toast {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 25, 38, 0.96);
  color: #f7fbff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .care-toast-success,
html.dark-mode .care-toast-success {
  background: rgba(28, 86, 62, 0.96);
  color: #eafff3;
}

html[data-theme="dark"] .care-toast-error,
html.dark-mode .care-toast-error {
  background: rgba(127, 42, 52, 0.96);
  color: #fff;
}

html[data-theme="dark"] .video-cue,
html[data-theme="dark"] .chat-cue,
html.dark-mode .video-cue,
html.dark-mode .chat-cue {
  color: #1e293b;
  text-shadow: none;
}

html[data-theme="dark"] .video-cue-label,
html[data-theme="dark"] .chat-cue-label,
html.dark-mode .video-cue-label,
html.dark-mode .chat-cue-label {
  color: #1e293b;
}

html[data-theme="dark"] .content-panel,
html[data-theme="dark"] .focus-panel,
html.dark-mode .content-panel,
html.dark-mode .focus-panel {
  border-radius: 20px;
  background-clip: padding-box;
}

html[data-theme="dark"] .floating-status::after,
html.dark-mode .floating-status::after {
  border-top-color: rgba(32, 41, 56, 0.96);
}

html[data-theme="dark"] .site-footer,
html.dark-mode .site-footer {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(21, 29, 42, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .footer-social a,
html.dark-mode .footer-social a {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f7fbff;
  box-shadow: none;
}

html[data-theme="dark"] .footer-social a:hover,
html[data-theme="dark"] .footer-social a:focus-visible,
html.dark-mode .footer-social a:hover,
html.dark-mode .footer-social a:focus-visible {
  background: rgba(145, 171, 200, 0.16);
  color: #ffffff;
}

html[data-theme="dark"] .footer-copyright,
html.dark-mode .footer-copyright {
  color: #d9e7f5;
}

html[data-theme="dark"] .brand-text-logo,
html.dark-mode .brand-text-logo {
  border-color: rgba(217, 231, 245, 0.28);
  background: rgba(247, 251, 255, 0.94);
  color: #172033;
  text-shadow: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

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

  .doctor-asset-button,
  .livechat-launch,
  .topic-card,
  .contact-reveal {
    transform: none !important;
  }

  .contact-reveal {
    opacity: 1 !important;
  }
}

/* Mobile restructuring: drawer navigation and strict content order */
.mobile-menu-toggle,
.mobile-menu-panel {
  display: none;
}

@media (max-width: 767px) {
  body.public-page {
    overflow-x: hidden;
  }

  .site-nav {
    position: sticky;
    top: 10px;
    z-index: 12000;
    width: calc(100% - 24px);
    margin: 10px auto 0;
    border-radius: 28px;
    overflow: visible;
  }

  .nav-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 66px;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-mark {
    justify-self: start;
  }

  .brand-medallion {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .brand-text-logo {
    min-height: 44px;
    max-width: 48vw;
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .nav-links {
    display: none !important;
  }

  .nav-actions {
    justify-self: center;
    gap: 8px;
  }

  .nav-actions .account-chip,
  .nav-actions .login-link {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(49, 64, 86, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 24px rgba(49, 64, 86, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  }

  .mobile-menu-toggle span {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(-7px);
  }

  .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(7px);
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .mobile-menu-panel {
    position: fixed;
    top: 92px;
    left: 12px;
    right: 12px;
    z-index: 12100;
    display: grid;
    gap: 14px;
    padding: 16px;
    max-height: calc(100dvh - 112px);
    overflow: auto;
    border: 2px solid rgba(49, 64, 86, 0.12);
    border-radius: 26px;
    background: rgba(255, 250, 239, 0.96);
    box-shadow: 0 22px 50px rgba(49, 64, 86, 0.18);
    backdrop-filter: blur(18px) saturate(130%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .mobile-menu-panel[hidden] {
    display: none;
  }

  .mobile-menu-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-menu-links,
  .mobile-auth-actions {
    display: grid;
    gap: 8px;
  }

  .mobile-menu-links a,
  .mobile-auth-actions a,
  .mobile-account-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(49, 64, 86, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-pwa-slot .floating-pwa-actions {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.public-page > .floating-pwa-actions {
    display: none;
  }

  .mobile-pwa-slot .floating-action-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .mobile-pwa-slot .floating-status {
    display: none;
  }

  .app-shell {
    width: 100%;
    margin-top: 18px;
  }

  .experience-stage {
    width: 100%;
    min-height: 0;
    padding: 12px 0 20px;
  }

  .background-loop-layer {
    opacity: 0.42;
    pointer-events: none;
  }

  .stage-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    gap: 20px;
    padding: 0 20px;
  }

  .content-panel {
    display: contents;
  }

  .topic-stage {
    order: 1;
    width: 100%;
  }

  .topic-card-shell {
    min-height: 0;
    padding: 30px 22px;
    border-radius: 38px;
  }

  .topic-card-head {
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .topic-copy {
    max-width: 100%;
    text-align: center;
  }

  .topic-copy h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.16;
    letter-spacing: 0;
  }

  .topic-copy p {
    font-size: clamp(1rem, 4.8vw, 1.22rem);
    line-height: 1.75;
  }

  .topic-subtitle {
    font-size: 1rem;
  }

  .topic-nav-dock {
    order: 1;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0 0;
    z-index: 8;
  }

  .topic-nav {
    min-height: 70px;
    padding: 12px 18px;
  }

  .doctor-asset-panel {
    order: 2;
  }

  .doctor-asset-panel,
  .livechat-asset-panel {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .doctor-asset-button {
    min-height: 470px;
    padding: 0;
  }

  .doctor-asset-button img {
    position: relative;
    inset: auto;
    width: min(430px, 112%);
    max-width: none;
    margin: 0 auto;
    display: block;
    transform: none;
  }

  .video-cue {
    top: 18%;
    right: 8%;
    left: auto;
    transform: scale(0.9);
    z-index: 9;
  }

  .photo-gallery-board {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 22px;
    border-radius: 32px;
  }

  .panel-heading {
    gap: 10px;
  }

  .panel-heading h3,
  .photo-gallery-board h3 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .gallery-carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
  }

  .gallery-carousel-window {
    overflow: hidden;
    min-width: 0;
  }

  .gallery-carousel-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
  }

  .gallery-carousel-card {
    width: min(100%, 280px);
    min-height: 260px;
    border-radius: 24px;
  }

  .gallery-carousel-card.is-prev,
  .gallery-carousel-card.is-next {
    display: none;
  }

  .gallery-carousel-photo {
    height: 100%;
  }

  .gallery-carousel-copy {
    padding: 14px;
  }

  .gallery-carousel-copy strong {
    font-size: 1.05rem;
  }

  .gallery-carousel-copy span {
    font-size: 0.92rem;
  }

  .gallery-carousel-control {
    width: 44px;
    height: 58px;
    border-radius: 18px;
  }

  .livechat-asset-panel {
    order: 4;
    min-height: 430px;
  }

  .livechat-launch {
    min-height: 430px;
    padding: 0;
  }

  .livechat-launch img {
    position: relative;
    inset: auto;
    width: min(520px, 116%);
    max-width: none;
    margin: 0 auto;
    display: block;
    transform: translateX(-2%);
  }

  .chat-cue {
    left: 50%;
    bottom: 22%;
    transform: translateX(-50%) scale(0.9);
    z-index: 9;
  }

  .contact-us-section {
    width: calc(100% - 40px);
    margin: 20px auto;
    padding: 22px;
    border-radius: 34px;
  }

  .contact-section-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  .contact-layout,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-form-card,
  .contact-map-card {
    min-width: 0;
  }

  .contact-form-card input,
  .contact-form-card textarea {
    width: 100%;
  }

  .leaflet-contact-map,
  .contact-map-fallback {
    min-height: 330px;
    border-radius: 26px;
  }

  .site-footer {
    width: calc(100% - 40px);
    margin: 20px auto 28px;
    padding: 20px;
    border-radius: 30px;
  }

  .footer-inner {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
  }

  #toastRoot {
    left: 16px;
    right: 16px;
    bottom: 24px;
    z-index: 9999;
  }

  .chat-overlay {
    z-index: 14000;
    align-items: start;
    place-items: start stretch;
    padding: 60px 0 0;
  }

  .expanding-monitor {
    width: 100%;
    height: calc(100dvh - 60px);
    max-height: calc(100dvh - 60px);
    border-radius: 28px 28px 0 0;
    overflow: hidden;
  }

  .monitor-close {
    top: 10px;
    right: 12px;
    z-index: 20;
  }

  .chat-dialog-layout {
    display: block;
    height: 100%;
    min-height: 0;
  }

  .chat-dialog-art {
    display: none;
  }

  .chat-dialog-panel {
    height: 100%;
    padding: 18px 16px 0;
  }

  .chat-head {
    margin-right: 52px;
  }

  .chat-identity-card {
    display: none;
  }

  .chat-messages {
    min-height: 0;
    padding: 8px 4px 120px 0;
  }

  .chat-compose {
    position: sticky;
    bottom: 0;
    z-index: 12;
    margin: auto -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(49, 64, 86, 0.12);
    background: rgba(255, 248, 237, 0.96);
    backdrop-filter: blur(16px);
  }

  .chat-input-tray {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .chat-compose button {
    width: 100%;
    justify-self: stretch;
  }

  html[data-theme="dark"] .mobile-menu-panel,
  html.dark-mode .mobile-menu-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(21, 29, 42, 0.96);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
  }

  html[data-theme="dark"] .chat-compose,
  html.dark-mode .chat-compose {
    border-top-color: rgba(255, 255, 255, 0.1);
    background: rgba(21, 29, 42, 0.96);
  }

  html[data-theme="dark"] .site-nav,
  html.dark-mode .site-nav {
    overflow: visible;
  }

  html[data-theme="dark"] .mobile-menu-toggle,
  html.dark-mode .mobile-menu-toggle,
  html[data-theme="dark"] .mobile-menu-links a,
  html[data-theme="dark"] .mobile-auth-actions a,
  html[data-theme="dark"] .mobile-account-name,
  html.dark-mode .mobile-menu-links a,
  html.dark-mode .mobile-auth-actions a,
  html.dark-mode .mobile-account-name {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #f7fbff;
  }

  html[data-theme="dark"] .mobile-menu-toggle span,
  html.dark-mode .mobile-menu-toggle span {
    background: #f7fbff;
  }

  html[data-theme="dark"] .panel-heading h3,
  html[data-theme="dark"] .photo-gallery-board h3,
  html[data-theme="dark"] .livechat-asset-panel,
  html.dark-mode .panel-heading h3,
  html.dark-mode .photo-gallery-board h3,
  html.dark-mode .livechat-asset-panel {
    color: #f7fbff;
  }
}

@media (max-width: 420px) {
  .stage-grid {
    padding: 0 14px;
  }

  .topic-card-shell {
    padding: 26px 18px;
  }

  .topic-copy h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .doctor-asset-button,
  .livechat-launch {
    min-height: 390px;
  }

  .gallery-carousel-card {
    width: min(100%, 240px);
  }

  .contact-us-section,
  .site-footer {
    width: calc(100% - 28px);
  }
}

/* Final responsive polish: theme switch, character balance, chat cue, footer centering */
.theme-toggle {
  isolation: isolate;
  overflow: hidden;
  padding: 3px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 244, 248, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(64, 88, 120, 0.1);
}

.theme-toggle::before {
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  z-index: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.72), transparent 32%),
    var(--peach);
}

.theme-toggle span {
  min-width: 28px;
  min-height: 28px;
  font-size: 0.92rem;
  line-height: 1;
  color: rgba(49, 64, 86, 0.72);
  transition: color 0.22s ease, opacity 0.22s ease;
}

.theme-toggle-sun {
  color: var(--blue-dark);
}

html[data-theme="dark"] .theme-toggle,
html.dark-mode .theme-toggle {
  background: rgba(18, 25, 38, 0.86);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .theme-toggle::before,
html.dark-mode .theme-toggle::before {
  transform: translateX(30px);
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.7), transparent 30%),
    #91abc8;
}

html[data-theme="dark"] .theme-toggle span,
html.dark-mode .theme-toggle span {
  color: rgba(247, 251, 255, 0.74);
}

html[data-theme="dark"] .theme-toggle-moon,
html.dark-mode .theme-toggle-moon {
  color: #ffffff;
}

.footer-content {
  justify-items: stretch;
  text-align: initial;
}

.footer-social {
  justify-content: flex-start;
  justify-self: start;
  flex-wrap: wrap;
}

.footer-copyright {
  justify-self: end;
  text-align: right;
}

.chat-cue {
  gap: 6px;
  padding: 7px 9px;
  font-size: 0.78rem;
  line-height: 1.1;
}

.chat-cue-icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 901px) {
  .doctor-asset-panel {
    left: max(-44px, calc(50vw - 820px));
    width: min(360px, 28vw);
  }

  .doctor-asset-button img {
    left: -10px;
    width: min(430px, 32vw);
  }

  .livechat-asset-panel {
    right: max(4px, calc(50vw - 770px));
    width: min(400px, 30vw);
  }

  .livechat-launch img {
    width: min(490px, 35vw);
  }

  .chat-cue {
    left: 34%;
    top: 75%;
    transform: translate(-50%, -50%) scale(0.92);
  }
}

@media (max-width: 767px) {
  .theme-toggle {
    width: 64px;
    height: 38px;
  }

  .theme-toggle::before {
    width: 28px;
    height: 28px;
  }

  html[data-theme="dark"] .theme-toggle::before,
  html.dark-mode .theme-toggle::before {
    transform: translateX(26px);
  }

  .doctor-asset-panel {
    display: grid;
    place-items: center;
    min-height: 0;
  }

  .doctor-asset-button {
    display: grid;
    place-items: center;
    min-height: clamp(360px, 92vw, 460px);
    overflow: visible;
  }

  .doctor-asset-button img {
    width: min(360px, 92vw);
    max-width: 100%;
    transform: translateX(-3%);
  }

  .video-cue {
    top: 18%;
    right: 5%;
    transform: scale(0.82);
  }

  .livechat-asset-panel {
    display: grid;
    place-items: center;
    min-height: clamp(330px, 82vw, 430px);
  }

  .livechat-launch {
    display: grid;
    place-items: center;
    min-height: clamp(330px, 82vw, 430px);
  }

  .livechat-launch img {
    width: min(420px, 96vw);
    max-width: 100%;
    transform: translateX(0);
  }

  .chat-cue {
    left: 50%;
    bottom: 20%;
    top: auto;
    padding: 7px 10px;
    font-size: 0.78rem;
    transform: translateX(-50%) scale(0.86);
  }

  .chat-cue-icon {
    width: 22px;
    height: 22px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    justify-items: end;
    text-align: right;
  }

  .footer-social {
    width: 100%;
    justify-content: flex-start;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .doctor-asset-button {
    min-height: 350px;
  }

  .doctor-asset-button img {
    width: min(330px, 90vw);
  }

  .livechat-asset-panel,
  .livechat-launch {
    min-height: 330px;
  }

  .livechat-launch img {
    width: min(370px, 94vw);
  }

  .chat-cue {
    bottom: 18%;
    transform: translateX(-50%) scale(0.8);
  }
}
