:root {
  --ink: #12343b;
  --muted: #5d7478;
  --line: #dce9e6;
  --mint: #dff6ef;
  --mint-strong: #11a987;
  --aqua: #e6f7fb;
  --coral: #f36f5b;
  --rose: #fff0ee;
  --rose-strong: #d85f78;
  --gold: #f8c861;
  --white: #ffffff;
  --soft: #f7fbfa;
  --shadow: 0 22px 48px rgba(18, 52, 59, 0.09);
  --shadow-soft: 0 12px 30px rgba(18, 52, 59, 0.06);
  --surface: rgba(255, 255, 255, 0.88);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 0 clamp(20px, 5.5vw, 96px);
  background: rgba(247, 251, 250, 0.9);
  border-bottom: 1px solid rgba(220, 233, 230, 0.8);
  backdrop-filter: blur(18px);
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-menu-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.account-person-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.account-person-icon::before {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
}

.account-person-icon::after {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 11px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  content: "";
  transform: translateX(-50%);
}

.account-status-dot {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: #a8b5b6;
}

.account-status-dot.active {
  background: #11a987;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: grid;
  width: min(290px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 22px 54px rgba(18, 52, 59, 0.18);
}

.account-menu-panel[hidden] {
  display: none !important;
}

.account-menu-summary {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.account-menu-summary span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-panel a,
.account-menu-panel button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  line-height: 44px;
  text-align: left;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
  background: var(--mint);
}

.brand,
.main-nav,
.hero-actions,
.trust-strip,
.program-meta,
.consult-top,
.waiting-room {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
}

.brand-logo {
  width: clamp(164px, 14vw, 260px);
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--mint-strong), #1d8fa2);
  font-size: 0.78rem;
}

.main-nav {
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-item {
  display: flex;
  align-items: center;
  min-height: 86px;
}

.main-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  color: var(--muted);
  transition: color 180ms ease;
}

.main-nav-link::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.main-nav a:hover,
.nav-item:hover .main-nav-link,
.nav-item:focus-within .main-nav-link {
  color: var(--ink);
}

.main-nav-link:hover::after,
.nav-item:hover .main-nav-link::after,
.nav-item:focus-within .main-nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-mega-panel {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  z-index: 60;
  display: none;
  padding: 30px clamp(22px, 12vw, 220px) 34px;
  border-top: 1px solid rgba(220, 233, 230, 0.88);
  border-bottom: 1px solid rgba(220, 233, 230, 0.88);
  background: #ffffff;
  box-shadow: 0 28px 54px rgba(18, 52, 59, 0.14);
}

.nav-item.has-mega:hover .nav-mega-panel,
.nav-item.has-mega:focus-within .nav-mega-panel {
  display: block;
  animation: megaMenuIn 180ms ease both;
}

.nav-mega-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: clamp(32px, 7vw, 120px);
  max-width: 980px;
  margin: 0 auto;
}

.nav-mega-group h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav-mega-group ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-mega-group a {
  display: inline-flex;
  color: #253f45;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-mega-group a:hover {
  color: var(--mint-strong);
  transform: translateX(4px);
}

@keyframes megaMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--ink);
}

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

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: min(86vw, 360px);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(18, 52, 59, 0.18);
  overflow-y: auto;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.mobile-menu-panel nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 18px;
}

.mobile-menu-panel nav a {
  display: block;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 700;
}

body.mobile-menu-open {
  overflow: hidden;
}

.header-cta,
.button,
.lead-form button,
.waiting-room button {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.header-cta {
  padding: 12px 17px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.92rem;
}

.header-cta span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.78rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: clamp(34px, 5vw, 88px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(58px, 7vw, 112px) clamp(20px, 5.5vw, 96px) clamp(52px, 5vw, 86px);
  background:
    linear-gradient(112deg, rgba(255, 240, 238, 0.92) 0%, rgba(223, 246, 239, 0.82) 50%, rgba(230, 247, 251, 0.72) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(17, 169, 135, 0.28);
  border-radius: 999px;
  color: #087861;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 3.25vw, 3.85rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
}

@media (min-width: 1280px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  }

  .hero-media img {
    min-height: 680px;
  }

  .section-heading {
    max-width: 960px;
  }
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(1.08rem, 1.28vw, 1.32rem);
}

.hero-copy > .medical-note {
  max-width: 660px;
  margin-top: -12px;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid rgba(17, 169, 135, 0.42);
  color: #4d666a;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
}

.primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 16px 30px rgba(243, 111, 91, 0.24);
}

.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.trust-strip {
  flex-wrap: wrap;
  gap: 12px;
}

.trust-strip div {
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 233, 230, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 3px;
  font-size: 1.24rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.partner-band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  padding: 0 clamp(20px, 5.5vw, 96px);
  background: var(--line);
}

.partner-band span {
  min-height: 88px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--white);
  font-weight: 600;
  text-align: center;
}

.section {
  padding: clamp(84px, 9vw, 148px) clamp(20px, 5.5vw, 96px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  padding: clamp(64px, 8vw, 118px) clamp(20px, 5.5vw, 96px);
  background:
    linear-gradient(112deg, rgba(255, 240, 238, 0.92), rgba(223, 246, 239, 0.78)),
    var(--soft);
}

.page-hero.compact {
  grid-template-columns: 1fr;
  padding-bottom: clamp(34px, 5vw, 62px);
}

.page-hero h1 {
  max-width: 720px;
  font-size: clamp(2rem, 3.15vw, 3.7rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  font-size: clamp(1.08rem, 1.25vw, 1.28rem);
}

.page-hero img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ecosystem {
  background:
    linear-gradient(180deg, rgba(255, 240, 238, 0.68), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ecosystem-grid article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(220, 233, 230, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 44px rgba(18, 52, 59, 0.07);
}

.ecosystem-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ecosystem-grid span {
  width: fit-content;
  margin: 18px 20px 0;
  padding: 8px 10px;
  border-radius: 999px;
  color: #9f3f59;
  background: var(--rose);
  font-size: 0.78rem;
  font-weight: 700;
}

.ecosystem-grid h3 {
  margin: 28px 20px 10px;
  font-size: 1.42rem;
}

.ecosystem-grid p {
  margin: 0 20px 22px;
}

.life-stage {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  background: var(--white);
}

.life-stage-media img,
.guide-intro img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.life-stage-copy h2 {
  max-width: 980px;
}

.life-stage-copy p {
  max-width: 760px;
  font-size: 1.08rem;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.stage-grid article {
  overflow: hidden;
  min-height: 330px;
  padding: 0;
  border: 1px solid rgba(216, 95, 120, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--rose), var(--white));
}

.stage-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stage-grid strong,
.stage-grid span {
  display: block;
}

.stage-grid strong {
  margin: 18px 18px 10px;
  font-size: 1.08rem;
}

.stage-grid span {
  padding: 0 18px 20px;
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: var(--white);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.feature-list p {
  margin-bottom: 0;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #087861;
  background: var(--mint);
  font-weight: 600;
}

.consult-card,
.journey-card,
.program-card,
.paper-feature,
.plan-card,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.consult-card {
  padding: 18px;
}

.journey-card {
  display: grid;
  align-content: end;
  min-height: 430px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 240, 238, 0.9)),
    var(--white);
}

.journey-card h3 {
  margin-top: 26px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.05;
}

.journey-card p {
  max-width: 620px;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.journey-steps span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 169, 135, 0.22);
  border-radius: 8px;
  color: #087861;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.consult-top {
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 12px;
}

.video-tile {
  position: relative;
  min-height: 260px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(18, 52, 59, 0.25), rgba(17, 169, 135, 0.14)),
    linear-gradient(135deg, #ccefe7, #f7d4c9);
}

.video-tile.patient {
  min-height: 260px;
  background:
    linear-gradient(140deg, rgba(18, 52, 59, 0.2), rgba(243, 111, 91, 0.1)),
    linear-gradient(135deg, #e6f7fb, #f8c861);
}

.video-tile span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(18, 52, 59, 0.76);
  font-size: 0.82rem;
  font-weight: 600;
}

.waiting-room {
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--mint);
}

.waiting-room span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.waiting-room button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  background: var(--mint-strong);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.compact-heading {
  max-width: 1040px;
  margin-bottom: 18px;
}

.compact-heading h1,
.compact-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
}

.compact-heading p {
  max-width: 680px;
}

.product-preview {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 249, 0.96)),
    var(--white);
}

.product-copy {
  min-width: 0;
}

.product-copy h2 {
  max-width: 900px;
  font-size: clamp(2.5rem, 4.1vw, 4.55rem);
  line-height: 1.02;
}

.product-copy p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.18vw, 1.22rem);
  line-height: 1.6;
}

.product-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.product-feature-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
}

.product-ui-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(220, 233, 230, 0.9);
  border-radius: 24px;
  background: #f6f7f6;
  box-shadow: 0 34px 90px rgba(18, 52, 59, 0.11);
}

.product-ui-card aside {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 18px;
  border-right: 1px solid #e3e8e6;
  background: #ffffff;
}

.product-ui-card aside strong {
  margin-bottom: 18px;
  color: var(--ink);
}

.product-ui-card aside button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: #496164;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.product-ui-card aside button.active {
  color: var(--ink);
  background: #dff2ef;
}

.product-ui-card > section {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(220px, 1fr);
  min-width: 0;
  gap: 18px;
  padding: 22px;
}

.product-room-list,
.product-main-panel {
  min-width: 0;
  border: 1px solid #e0e8e6;
  border-radius: 18px;
  background: var(--white);
}

.product-room-list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.product-room-list h3 {
  display: flex;
  justify-content: space-between;
}

.product-room-list h3 span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.9rem;
}

.product-room-list article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: #f4f5f4;
}

.product-room-list small {
  color: var(--muted);
  font-weight: 700;
}

.product-room-list button {
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: #5bd0c7;
  font: inherit;
  font-weight: 800;
}

.product-main-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.product-main-panel img {
  width: min(300px, 82%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.product-main-panel div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.product-main-panel span {
  padding: 9px 10px;
  border-radius: 999px;
  background: #f4f7f6;
  color: var(--muted);
  font-weight: 800;
}

.platform-flow {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 240, 236, 0.75), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(218, 252, 244, 0.9), transparent 30%),
    linear-gradient(180deg, #fbfdfc 0%, #f3f8f7 100%);
  overflow: hidden;
}

.platform-flow-heading {
  max-width: 980px;
}

.platform-flow-heading h2 {
  max-width: 900px;
}

.platform-flow-heading p {
  max-width: 760px;
}

.platform-flow-row {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.platform-flow-row.reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
}

.platform-flow-row.reverse .platform-flow-copy {
  order: 2;
}

.platform-flow-copy {
  min-width: 0;
}

.platform-flow-copy h3 {
  max-width: 760px;
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.02;
}

.platform-flow-copy p {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.62;
}

.platform-flow-visual {
  min-width: 0;
}

.platform-screen {
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(214, 231, 227, 0.95);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 34px 90px rgba(18, 52, 59, 0.11);
  backdrop-filter: blur(10px);
}

.platform-screen-agenda {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.platform-screen-agenda aside {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 32px 26px;
  border-right: 1px solid rgba(214, 231, 227, 0.95);
}

.platform-screen-agenda aside strong {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.2rem;
}

.platform-screen-agenda aside span {
  padding: 14px 16px;
  border-radius: 16px;
  color: #4f6669;
  font-weight: 800;
}

.platform-screen-agenda aside span.active {
  color: var(--ink);
  background: #dff2ef;
}

.platform-screen-agenda main {
  display: grid;
  gap: 18px;
  padding: 32px;
}

.platform-screen-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

.platform-screen-top small {
  color: var(--muted);
  font-weight: 800;
}

.mini-calendar {
  display: grid;
  grid-template-columns: 70px repeat(4, minmax(110px, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fbfdfc;
}

.mini-calendar > * {
  min-height: 78px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #5b7073;
  font-weight: 800;
}

.mini-calendar b {
  color: var(--ink);
  background: #f7faf9;
}

.mini-calendar i {
  font-style: normal;
}

.mini-calendar .event {
  color: var(--ink);
  background: #fff4f1;
}

.mini-calendar .event.paid {
  background: #dff7f1;
}

.platform-screen-record {
  display: grid;
  gap: 24px;
  padding: 34px;
}

.record-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f9fcfb;
}

.record-profile img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
}

.record-profile b,
.record-grid b,
.commerce-total b {
  color: var(--ink);
}

.record-profile small,
.record-grid small,
.commerce-total small,
.commerce-items small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.record-grid section {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.record-grid p,
.commerce-items small {
  color: var(--muted);
  line-height: 1.48;
}

.platform-screen-commerce {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 16px;
  padding: 34px;
}

.commerce-total,
.commerce-methods,
.commerce-items {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.commerce-total {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.commerce-total strong {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
}

.localized-price-control {
  display: grid;
  gap: 6px;
  max-width: 230px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.localized-price-control select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #f7fbfa;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: none;
}

.commerce-methods {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.commerce-methods span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #f5fbfa;
  font-weight: 900;
}

.commerce-items {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.commerce-items article {
  padding: 18px;
  border-radius: 16px;
  background: #f6f8f7;
}

.guide-intro {
  max-width: 960px;
  margin-bottom: 34px;
}

.guide-intro .section-heading {
  margin-bottom: 0;
}

.program-grid,
.shop-grid,
.area-grid,
.profile-grid,
.social-grid,
.plan-grid {
  display: grid;
  gap: 18px;
}

.program-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shop-grid,
.area-grid,
.profile-grid,
.plan-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shop-page main {
  background:
    linear-gradient(180deg, rgba(14, 134, 123, 0.12), rgba(255, 255, 255, 0.64) 360px),
    #f3f7f6;
}

.shop-heading {
  max-width: none;
}

.shop-heading h1 {
  max-width: none;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  white-space: nowrap;
}

.shop-promo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(11, 60, 67, 0.15);
  border-radius: 8px;
  background: rgba(11, 60, 67, 0.14);
}

.shop-promo-strip span {
  padding: 13px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.shop-country-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(11, 60, 67, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: #102b32;
  box-shadow: var(--shadow-soft);
}

.shop-country-panel label {
  display: grid;
  gap: 7px;
  min-width: 240px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-country-panel select,
.cart-drawer-shipping select,
.cart-drawer-shipping input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.cart-drawer-shipping > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cart-drawer-shipping [data-drawer-country-label] {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(221, 249, 241, 0.58);
  font-weight: 800;
}

.portal-concept#workspace {
  display: none !important;
}

.checkout-form textarea {
  min-height: 128px;
  padding-block: 12px;
  resize: vertical;
}

.shop-country-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.store-layout,
.marketplace-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.marketplace-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.marketplace-filter button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.marketplace-filter button.active {
  border-color: rgba(17, 169, 135, 0.35);
  color: #087861;
  background: var(--mint);
}

.shop-cart-preview {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(221, 249, 241, 0.88), rgba(255, 255, 255, 0.96)),
    var(--white);
  box-shadow: var(--shadow-soft);
}

.shop-cart-preview > span {
  color: #087861;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-cart-preview h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.shop-cart-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.shop-cart-preview ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-cart-preview li {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(191, 218, 214, 0.8);
}

.shop-cart-preview li span {
  color: var(--ink);
  font-weight: 700;
}

.shop-cart-preview li strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 20, 24, 0.62);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(460px, 100vw);
  height: 100dvh;
  color: var(--ink);
  background: #f7f7f5;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.22);
}

.cart-drawer[hidden],
.cart-drawer-backdrop[hidden] {
  display: none;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid #dadfdd;
  background: var(--white);
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cart-drawer-head button,
.cart-line-remove {
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cart-drawer-list {
  display: grid;
  align-content: start;
  gap: 16px;
  overflow-y: auto;
  padding: 24px;
}

.cart-drawer-line {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  position: relative;
}

.cart-drawer-line img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--white);
}

.cart-drawer-line h3 {
  max-width: 230px;
  margin: 0 0 6px;
  font-size: 1rem;
}

.cart-drawer-line p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-line-remove {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.2rem;
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 36px 42px 36px;
  overflow: hidden;
  width: fit-content;
  border: 2px solid #d5d8d8;
  border-radius: 999px;
}

.quantity-stepper button,
.quantity-stepper span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.quantity-stepper span {
  border-inline: 1px solid #d5d8d8;
}

.cart-drawer-shipping {
  display: grid;
  gap: 10px;
  padding: 20px 24px;
  border-top: 1px solid #dadfdd;
  background: var(--white);
}

.cart-drawer-shipping strong {
  font-size: 1.15rem;
}

.cart-drawer-shipping label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.cart-drawer-shipping p {
  margin: 0;
  color: #0b9084;
  font-weight: 700;
}

.cart-drawer-footer {
  display: grid;
  gap: 12px;
  padding: 22px 24px 28px;
  border-top: 1px solid #dadfdd;
  background: #ecefed;
}

.cart-drawer-footer div,
.summary-line,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-drawer-footer span,
.summary-line span {
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
}

.cart-drawer-footer strong,
.summary-total strong {
  color: #0b9ea0;
  font-size: 1.5rem;
}

.social-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shop-card,
.area-card,
.profile-card,
.social-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.shop-page .shop-card {
  background: var(--white);
  box-shadow: 0 16px 44px rgba(18, 52, 59, 0.08);
}

.shop-page .shop-card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
}

.shop-page .shop-card p {
  color: var(--muted);
}

.shop-card img,
.area-card img,
.profile-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shop-card > div,
.area-card > div,
.profile-card > div,
.social-grid article {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.shop-card .button,
.profile-card .button,
.area-card .button {
  width: fit-content;
}

.profile-card strong {
  color: var(--ink);
}

.consult-doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.direct-application {
  display: block;
}

.booking-flow-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.booking-flow-panel article {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.booking-flow-panel article:last-child {
  border-right: 0;
}

.booking-flow-panel article.active {
  box-shadow: inset 0 3px 0 #0fa58d;
  background: #f4fbf9;
}

.booking-flow-panel span {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #087861;
  background: rgba(17, 169, 135, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.booking-flow-panel strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.94rem;
}

.booking-flow-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.booking-search-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(180px, 240px));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.booking-search-card label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.booking-search-field {
  position: relative;
}

.booking-search-card input,
.booking-search-card select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}

.consult-search-dropdown[hidden] {
  display: none;
}

.consult-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(18, 52, 59, 0.14);
}

.consult-search-dropdown button {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.consult-search-dropdown button:hover {
  border-color: rgba(17, 169, 135, 0.28);
  background: var(--mint);
}

.consult-search-dropdown strong {
  font-size: 0.9rem;
}

.consult-search-dropdown span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.specialty-list-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.specialty-list-strip button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.specialty-list-strip button.active,
.specialty-list-strip button:hover {
  border-color: rgba(17, 169, 135, 0.32);
  color: #087861;
  background: var(--mint);
}

.consult-plan-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.consult-plan-context article {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.consult-plan-context span,
.specialty-picker span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.consult-plan-context span {
  margin-bottom: 8px;
  text-transform: uppercase;
}

.consult-plan-context h3 {
  margin-bottom: 6px;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
}

.consult-plan-context p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.42;
}

.specialty-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.specialty-picker button {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.specialty-picker strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.88rem;
}

.specialty-picker span {
  font-size: 0.76rem;
  line-height: 1.28;
}

.specialty-picker button.active,
.specialty-picker button:hover {
  border-color: rgba(17, 169, 135, 0.34);
  background: var(--mint);
}

.consult-doctor-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.consult-doctor-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.doctor-info-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  color: var(--white);
  background: rgba(18, 52, 59, 0.78);
  backdrop-filter: blur(12px);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consult-doctor-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.doctor-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doctor-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #087861;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 600;
}

.slot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.slot-row button {
  min-height: 42px;
  border: 1px solid rgba(17, 169, 135, 0.28);
  border-radius: 8px;
  color: #087861;
  background: var(--mint);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.slot-row button:hover {
  color: var(--white);
  background: var(--ink);
}

.doctor-modal[hidden] {
  display: none;
}

.doctor-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 52, 59, 0.52);
  backdrop-filter: blur(10px);
}

.doctor-modal-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.doctor-modal-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.doctor-modal-head img {
  width: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.doctor-modal-head h2 {
  margin-bottom: 12px;
}

.doctor-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.doctor-detail-grid article {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.doctor-detail-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.coupon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.9rem;
}

.checkout-checks {
  display: grid;
  gap: 10px;
}

.checkout-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 600;
}

.checkout-summary {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.checkout-summary > .eyebrow {
  width: fit-content;
}

.summary-line {
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.summary-line strong {
  font-size: 0.95rem;
}

.summary-total {
  padding-block: 12px;
  font-weight: 800;
}

.summary-total span {
  text-transform: uppercase;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-method {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.payment-method strong {
  font-size: 1.05rem;
}

.payment-method span {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.88rem;
}

.payment-method.mercado-pago {
  border-color: rgba(0, 166, 224, 0.34);
  background: #effaff;
}

.payment-method.paypal {
  border-color: rgba(0, 48, 135, 0.26);
  background: #f3f7ff;
}

.cart-line {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.cart-line button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.program-card,
.plan-card {
  padding: 24px;
  box-shadow: none;
}

.program-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
}

.program-tag {
  width: fit-content;
  margin-bottom: 40px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #8b442c;
  background: #fff1d3;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.program-card p {
  flex: 1;
}

.program-meta {
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.papers {
  background: #eef8f6;
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.paper-feature {
  min-height: 360px;
  padding: clamp(24px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(18, 52, 59, 0.92), rgba(17, 169, 135, 0.82)),
    var(--ink);
  color: var(--white);
}

.paper-feature span {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.paper-feature h3 {
  max-width: 760px;
  margin-top: 26px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.paper-feature p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.paper-feature a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 700;
}

.paper-list {
  display: grid;
  gap: 12px;
}

.paper-list article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 20px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.paper-list span {
  color: var(--muted);
}

.plans {
  background: var(--white);
}

.plan-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 310px;
}

.plan-card strong {
  font-size: 2rem;
}

.plan-card strong span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.highlighted {
  border-color: rgba(17, 169, 135, 0.55);
  background: var(--mint);
}

.pro-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pro-pricing-grid article {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.pro-pricing-grid article.highlighted {
  border-color: rgba(17, 169, 135, 0.38);
  background: #eefaf7;
}

.pro-pricing-grid span {
  color: #087861;
  font-weight: 800;
  text-transform: uppercase;
}

.pro-pricing-grid h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(26px, 6vw, 64px);
  align-items: start;
  padding: clamp(72px, 11vw, 130px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(18, 52, 59, 0.94), rgba(9, 103, 117, 0.92)),
    var(--ink);
  color: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.74);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: none;
}

.application-form {
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.lead-form button {
  min-height: 50px;
  margin-top: 6px;
  color: var(--white);
  background: var(--coral);
  font: inherit;
}

.form-confirmation {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(17, 169, 135, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
}

.form-confirmation strong {
  font-size: 1.05rem;
}

.form-confirmation p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

footer span {
  color: var(--ink);
  font-weight: 700;
}

footer p {
  margin: 0;
}

.mega-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(130px, 0.8fr));
  gap: 36px;
  align-items: start;
  padding-block: 68px;
  color: rgba(255, 255, 255, 0.72);
  background: #162535;
}

.mega-footer span,
.mega-footer strong {
  color: var(--white);
}

.mega-footer nav {
  display: grid;
  gap: 12px;
}

.mega-footer strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.mega-footer a,
.mega-footer small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
}

.legal-copy {
  max-width: 900px;
}

.legal-copy h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.support-panel,
.contact-stack article,
.faq-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(18, 52, 59, 0.07);
}

.support-panel {
  padding: clamp(22px, 4vw, 36px);
}

.chat-box {
  display: grid;
  gap: 12px;
  height: 420px;
  overflow-y: auto;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.chat-message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.55;
}

.chat-message.bot {
  justify-self: start;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--mint-strong);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.chat-form input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.chat-form button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--coral);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.contact-stack article {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.faq-grid article {
  padding: 22px;
}

.platform-hero {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
}

.platform-hero-panel {
  display: grid;
  gap: 18px;
  min-height: 470px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(220, 233, 230, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(223, 246, 239, 0.82)),
    var(--white);
  box-shadow: var(--shadow);
}

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

.metric-row article,
.care-flow span,
.platform-note,
.clinical-card,
.ai-card,
.patient-profile,
.doctor-card-large,
.patient-queue,
.clinical-record,
.ops-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metric-row article {
  min-height: 122px;
  display: grid;
  align-content: center;
  padding: 18px;
}

.metric-row strong {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1;
}

.metric-row span,
.care-flow span {
  color: var(--muted);
  font-weight: 600;
}

.care-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-self: end;
}

.care-flow span {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
}

.platform-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  background: var(--white);
}

.access-gate {
  background:
    linear-gradient(180deg, rgba(238, 248, 246, 0.7), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: clamp(32px, 5vw, 82px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(58px, 7vw, 112px) clamp(20px, 5.5vw, 96px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 240, 238, 0.9), transparent 34%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 249, 246, 0.92) 56%, rgba(246, 252, 253, 0.96) 100%);
}

.login-intro h1 {
  margin-bottom: 18px;
}

.login-intro p {
  max-width: 720px;
  font-size: clamp(1.08rem, 1.25vw, 1.28rem);
}

.login-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 30px;
}

.login-preview-list span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(220, 233, 230, 0.9);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.login-visual {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 32px 0 0;
  border: 1px solid rgba(220, 233, 230, 0.84);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(18, 52, 59, 0.16));
  pointer-events: none;
}

.login-visual img {
  width: 100%;
  min-height: 230px;
  max-height: 330px;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96);
}

.auth-card {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(220, 233, 230, 0.95);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 58px rgba(18, 52, 59, 0.1);
  backdrop-filter: blur(24px);
}

.auth-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.auth-card-top span {
  display: block;
  margin-bottom: 7px;
  color: var(--rose-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-card-top h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(260px, 100%);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.mode-toggle button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 74px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.mode-toggle button.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 52, 59, 0.08);
}

.login-role-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid #9aabad;
  border-radius: 999px;
  opacity: 0.78;
}

.login-role-icon::before,
.login-role-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #9aabad;
}

.login-role-icon::before {
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: transparent;
}

.login-role-icon::after {
  bottom: 6px;
  width: 18px;
  height: 10px;
  border-radius: 12px 12px 4px 4px;
  border-bottom: 0;
}

.login-role-icon.doctor {
  border-radius: 10px;
}

.login-role-icon.doctor::after {
  width: 20px;
}

.login-role-icon.doctor + span::after {
  content: "+";
  margin-left: 4px;
  color: var(--mint-strong);
  font-weight: 800;
}

.mode-toggle button.active .login-role-icon,
.mode-toggle button.active .login-role-icon::before,
.mode-toggle button.active .login-role-icon::after {
  border-color: var(--ink);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-actions a:hover {
  color: var(--ink);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.social-login-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.social-login span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4285f4;
  background: var(--white);
  font-weight: 700;
}

.social-login.google span {
  color: #4285f4;
}

.social-login.facebook span {
  color: #1877f2;
}

.social-login.apple span {
  color: #111111;
}

.social-login:hover {
  border-color: rgba(17, 169, 135, 0.4);
  background: var(--soft);
}

.access-console {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
}

.access-login-panel,
.app-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.access-login-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(22px, 3vw, 34px);
}

.access-login-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.login-role-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.login-role-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.login-role-switch button.active {
  color: var(--white);
  background: var(--ink);
}

.portal-login-form {
  display: grid;
  gap: 14px;
}

.portal-login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-login-form input {
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.login-status {
  padding: 14px;
  border: 1px solid rgba(17, 169, 135, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: var(--mint);
  line-height: 1.55;
}

.verification-modal[hidden] {
  display: none;
}

.verification-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 52, 59, 0.48);
  backdrop-filter: blur(10px);
}

.verification-dialog {
  position: relative;
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(220, 233, 230, 0.95);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 68px rgba(18, 52, 59, 0.16);
}

.verification-dialog h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.verification-dialog p {
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.verification-form {
  display: grid;
  gap: 14px;
}

.verification-form label:not(.trust-device) {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.verification-form input[type="text"] {
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.trust-device {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(17, 169, 135, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: var(--mint);
  line-height: 1.5;
  font-weight: 500;
}

.trust-device input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--mint-strong);
}

.resend-code {
  width: fit-content;
  border: 0;
  color: var(--rose-strong);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.app-preview {
  overflow: hidden;
  min-height: 610px;
}

.app-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.app-window-bar strong,
.app-window-bar span {
  display: block;
}

.app-window-bar span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
}

.app-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-status span {
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) minmax(210px, 260px);
  min-height: 548px;
}

.app-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--soft);
}

.app-menu button {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.app-menu button.active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(18, 52, 59, 0.06);
}

.app-screen {
  min-width: 0;
  padding: 22px;
}

.module-panel {
  display: none;
}

.module-panel.active {
  display: grid;
  gap: 18px;
}

.module-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.module-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  line-height: 1.05;
}

.consult-table,
.schedule-board,
.mini-inbox,
.payment-preview {
  display: grid;
  gap: 10px;
}

.consult-table article,
.schedule-board article,
.mini-inbox article,
.payment-preview article,
.record-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.consult-table article {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.consult-table span,
.consult-table em,
.schedule-board p,
.mini-inbox p,
.payment-preview p,
.record-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.consult-table em {
  font-style: normal;
}

.schedule-board {
  grid-template-columns: repeat(3, 1fr);
}

.schedule-board span,
.payment-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.app-side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #eef8f6;
}

.app-side-panel h3 {
  margin-bottom: 0;
}

.app-side-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.app-side-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(18, 52, 59, 0.12);
}

.app-side-panel dt,
.app-side-panel dd {
  margin: 0;
}

.app-side-panel dt {
  color: var(--muted);
  font-weight: 600;
}

.app-side-panel dd {
  color: var(--ink);
  font-weight: 700;
}

.platform-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}

.platform-sidebar h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.role-tabs {
  display: grid;
  gap: 8px;
}

.role-tabs button,
.patient-queue button,
.clinical-note-form button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.role-tabs button.active,
.patient-queue button.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.platform-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--mint);
}

.platform-note span {
  color: var(--muted);
  line-height: 1.55;
}

.platform-workspace {
  min-width: 0;
}

.role-view {
  display: none;
}

.role-view.active {
  display: grid;
  gap: 22px;
}

.portal-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.portal-topline h2 {
  max-width: 880px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
}

.patient-grid,
.portal-grid,
.doctor-workbench,
.ops-grid,
.consultation-strip {
  display: grid;
  gap: 18px;
}

.consultation-strip {
  grid-template-columns: repeat(3, 1fr);
}

.consultation-strip article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.consultation-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.consultation-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
}

.consultation-strip p {
  margin: 0;
  line-height: 1.5;
}

.doctor-strip article {
  background: var(--mint);
}

.patient-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
}

.portal-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
}

.profile-head,
.doctor-card-large {
  display: grid;
  gap: 18px;
}

.profile-head {
  grid-template-columns: 140px 1fr;
  align-items: center;
}

.profile-head img {
  width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.patient-profile,
.doctor-card-large,
.clinical-card,
.ai-card,
.clinical-record,
.patient-queue {
  padding: 22px;
  box-shadow: 0 16px 44px rgba(18, 52, 59, 0.07);
}

.doctor-card-large {
  grid-template-columns: 220px 1fr;
  align-items: start;
}

.doctor-card-large img {
  width: 220px;
  min-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.clinical-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.clinical-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.clinical-list dt,
.clinical-list dd {
  margin: 0;
}

.clinical-list dt {
  color: var(--muted);
  font-weight: 600;
}

.clinical-list dd {
  color: var(--ink);
  font-weight: 700;
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.compact-form {
  padding: 0;
  border: 0;
}

.lead-form textarea,
.clinical-note-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  resize: vertical;
}

.ai-card {
  display: grid;
  gap: 12px;
}

.chat-box.mini {
  height: 280px;
  margin-top: 0;
}

.doctor-workbench {
  grid-template-columns: minmax(430px, 0.96fr) minmax(0, 1.04fr);
  align-items: start;
}

.doctor-week-calendar {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(18, 52, 59, 0.07);
}

.week-head,
.week-row {
  display: grid;
  grid-template-columns: 58px repeat(5, minmax(70px, 1fr));
}

.week-head span,
.week-row > span,
.week-row > i,
.appointment-card {
  min-height: 74px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.week-head span {
  min-height: 44px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #f7fbfa;
}

.week-row > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  background: #f7fbfa;
}

.week-row > i {
  display: block;
  background: rgba(247, 251, 250, 0.72);
}

.appointment-card {
  display: grid;
  align-content: start;
  gap: 4px;
  border-top: 0;
  border-left: 0;
  color: var(--ink);
  background: var(--mint);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.appointment-card strong {
  line-height: 1.05;
}

.appointment-card.pending {
  background: #fff7f4;
}

.appointment-card.active,
.appointment-card:hover {
  outline: 2px solid rgba(17, 169, 135, 0.4);
  outline-offset: -2px;
}

.appointment-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.patient-queue {
  display: grid;
  gap: 10px;
}

.patient-queue > .eyebrow {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.patient-queue button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  padding: 12px;
  text-align: left;
}

.patient-queue span {
  color: inherit;
  opacity: 0.72;
  font-size: 0.88rem;
}

.patient-directory-search {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.patient-directory-search input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.daily-note-list,
.payment-status-table {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.daily-note-list article,
.payment-status-table article {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) 130px minmax(130px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.daily-note-list article {
  grid-template-columns: 220px 1fr;
}

.payment-status-table b {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: #08765f;
  background: var(--mint);
}

.payment-status-table .pending b {
  color: #a14a2d;
  background: #fff0eb;
}

.payment-status-table .manual b {
  color: #5b6870;
  background: #edf3f2;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.analytics-grid article {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.analytics-grid span,
.analytics-table span,
.analytics-table em {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.analytics-grid strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.analytics-table {
  display: grid;
  gap: 8px;
}

.analytics-table article {
  display: grid;
  grid-template-columns: 1fr 1fr 120px 130px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.analytics-table b {
  color: #087861;
}

.record-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-system .record-header h2 {
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #087861;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.record-grid section {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.record-grid h4,
.clinical-note-form label {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.physician-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.review-card {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.review-card.wide {
  grid-column: 1 / -1;
}

.review-card h4 {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.review-card p,
.review-card li,
.review-card dd {
  color: var(--muted);
  line-height: 1.5;
}

.review-card dl,
.review-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.review-card ul {
  padding-left: 18px;
}

.review-card dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.review-card dt,
.review-card dd {
  margin: 0;
}

.review-card dt {
  color: var(--ink);
  font-weight: 700;
}

.clinical-note-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.clinical-note-form button {
  width: fit-content;
  padding: 0 16px;
  color: var(--white);
  background: var(--mint-strong);
  border-color: var(--mint-strong);
}

.ops-grid {
  grid-template-columns: repeat(2, 1fr);
}

.ops-grid article {
  display: grid;
  gap: 12px;
  min-height: 220px;
  align-content: start;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(18, 52, 59, 0.07);
}

.ops-grid strong {
  color: var(--rose-strong);
}

.platform-plans {
  background: #eef8f6;
}

.portal-concept {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  background:
    linear-gradient(180deg, #fbfdfc, #f2faf7 48%, #ffffff);
}

.concept-sidebar {
  gap: 16px;
}

.concept-sidebar h2 {
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
}

.concept-workspace {
  display: grid;
  min-width: 0;
}

.concept-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.concept-header h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.2vw, 3.7rem);
}

.care-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.75fr));
  gap: 14px;
  margin-bottom: 18px;
}

.care-intro article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.care-intro-main {
  background:
    linear-gradient(145deg, rgba(255, 240, 238, 0.72), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.care-intro span,
.preview-heading span {
  display: block;
  margin-bottom: 10px;
  color: var(--rose-strong);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.care-intro h3 {
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 1.65vw, 1.7rem);
}

.care-intro-main h3 {
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  line-height: 1.08;
}

.care-intro p {
  margin-bottom: 0;
  line-height: 1.55;
}

.platform-tutorial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-bottom: 20px;
}

.access-tutorial {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 246, 0.8)),
    var(--white);
}

.tutorial-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 18px;
  align-items: stretch;
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.tutorial-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  min-height: 360px;
  background:
    linear-gradient(145deg, rgba(255, 240, 238, 0.66), rgba(255, 255, 255, 0.98)),
    var(--white);
}

.tutorial-copy {
  display: grid;
  align-content: center;
}

.tutorial-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--rose-strong);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tutorial-copy h3 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(1.42rem, 2.1vw, 2.35rem);
  line-height: 1.08;
}

.tutorial-copy p {
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.55;
}

.tutorial-shot {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid rgba(220, 233, 230, 0.9);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 240, 238, 0.8), transparent 28%),
    linear-gradient(145deg, rgba(247, 251, 250, 0.96), rgba(230, 247, 251, 0.82));
}

.tutorial-marker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-strong);
  box-shadow: 0 12px 24px rgba(216, 95, 120, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.tutorial-marker::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: inherit;
  transform: rotate(45deg);
}

.marker-profile {
  top: 24px;
  right: 28px;
}

.marker-ia {
  right: 18px;
  bottom: 98px;
}

.marker-video {
  top: 18px;
  left: 24px;
}

.marker-pay {
  top: 18px;
  right: 18px;
}

.profile-shot {
  display: grid;
  grid-template-columns: 72px 1fr;
}

.shot-sidebar {
  background: linear-gradient(180deg, #0d3a40, #083036);
}

.shot-main {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 28px;
}

.shot-profile-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
}

.shot-profile-row img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
}

.shot-profile-row strong,
.shot-profile-row span,
.shot-doc strong,
.shot-doc span {
  display: block;
}

.shot-profile-row span,
.shot-doc span {
  color: var(--muted);
}

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

.shot-metrics span,
.shot-doc {
  min-height: 72px;
  display: grid;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.shot-line {
  height: 12px;
  width: 64%;
  border-radius: 999px;
  background: #cfdcda;
}

.shot-line.wide {
  width: 84%;
}

.shot-line.short {
  width: 42%;
}

.library-shot {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 18px;
}

.shot-chat {
  padding: 16px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--mint);
}

.shot-chat p {
  margin: 0;
}

.consult-shot {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 14px;
  align-items: stretch;
  padding: 18px;
}

.consult-shot img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 10px;
}

.consult-controls {
  position: absolute;
  left: 32px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.consult-controls span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(18, 52, 59, 0.82);
}

.shot-list {
  display: grid;
  gap: 10px;
  align-content: center;
}

.shot-list span {
  min-height: 54px;
  display: grid;
  align-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.payment-shot {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 18px;
}

.shot-card-preview {
  display: grid;
  gap: 10px;
  min-height: 116px;
  padding: 18px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #82cfc6, #0f8f85);
}

.shot-card-preview small {
  color: rgba(255, 255, 255, 0.78);
}

.shot-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.shot-timeline span {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.live-demo-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.live-demo-shell summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.live-demo-shell summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
}

.live-demo-shell[open] summary::after {
  content: "-";
}

.live-demo-shell .patient-system {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.role-view[data-role-view="paciente"].active {
  display: grid;
}

.role-view[data-role-view="paciente"] .concept-header {
  order: 1;
}

.role-view[data-role-view="paciente"] .care-intro {
  order: 2;
}

.role-view[data-role-view="paciente"] .platform-tutorial {
  order: 2;
}

.role-view[data-role-view="paciente"] .concept-kpis {
  order: 3;
}

.role-view[data-role-view="paciente"] .concept-grid {
  order: 4;
}

.role-view[data-role-view="paciente"] .preview-heading {
  order: 5;
}

.role-view[data-role-view="paciente"] .patient-system,
.role-view[data-role-view="paciente"] .live-demo-shell {
  order: 6;
}

.preview-heading {
  margin: 10px 0 -2px;
}

.preview-heading h3 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
}

.booking-page {
  display: grid;
  gap: 28px;
}

.booking-reservation-widget {
  overflow: hidden;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(17, 169, 135, 0.28);
  border-radius: 8px;
  background: #f4f6f5;
  box-shadow: 0 22px 60px rgba(18, 52, 59, 0.08);
}

.booking-widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  color: var(--white);
  background: linear-gradient(90deg, #0c575f, #11a987);
  text-transform: uppercase;
  letter-spacing: 0;
}

.booking-widget-title strong {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.booking-widget-title span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
}

.booking-widget-body {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
}

.booking-widget-body p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.booking-widget-controls {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(180px, 0.55fr);
  gap: 14px;
  align-items: end;
}

.booking-widget-controls label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.booking-widget-controls select,
.booking-widget-controls button {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.booking-widget-controls button {
  border-color: transparent;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}

.booking-step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.booking-step-strip article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ecf6f4;
  text-align: center;
}

.booking-step-strip strong,
.booking-step-strip span {
  display: block;
}

.booking-step-strip strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.booking-step-strip span {
  color: var(--muted);
  line-height: 1.35;
}

.booking-public-page .site-header .header-cta {
  display: none;
}

.booking-step-strip article.active {
  border-color: rgba(17, 169, 135, 0.34);
  background: #dff4ef;
}

.booking-dynamic-panel {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 18px;
  text-align: left;
}

.booking-doctor-list,
.booking-calendar-zone,
.booking-empty-hint {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.booking-doctor-list {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.booking-doctor-list h2,
.booking-calendar-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.booking-doctor-options {
  display: grid;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.booking-doctor-options button {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.booking-doctor-options button.active,
.booking-doctor-options button:hover {
  border-color: rgba(17, 169, 135, 0.42);
  background: var(--mint);
}

.booking-doctor-options img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.booking-doctor-options span,
.booking-doctor-options strong,
.booking-doctor-options small,
.booking-doctor-options em {
  display: block;
}

.booking-doctor-options small,
.booking-doctor-options em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.booking-calendar-zone {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.booking-calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.booking-calendar-head button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.booking-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbfa;
}

.booking-view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.booking-view-toggle button,
.booking-date-nav button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.booking-view-toggle button.active {
  color: var(--ink);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(17, 169, 135, 0.24);
}

.booking-date-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(100%, 470px);
}

.booking-date-nav strong {
  min-width: 190px;
  color: var(--ink);
  text-align: center;
}

.booking-date-nav button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.booking-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.booking-month-title {
  grid-column: 1 / -1;
  padding-bottom: 2px;
  color: var(--ink);
  font-weight: 800;
}

.booking-week-head {
  padding: 8px 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.booking-month-grid button {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #f7fbfa;
  text-align: left;
  cursor: pointer;
}

.booking-month-grid[data-view="month"] button {
  min-height: 78px;
  padding: 8px;
}

.booking-month-grid[data-view="month"] strong {
  font-size: 1.05rem;
}

.booking-month-grid[data-view="month"] small {
  font-size: 0.72rem;
}

.booking-month-grid button.available {
  background: #f2fffb;
}

.booking-month-grid button.active {
  border-color: rgba(17, 169, 135, 0.62);
  background: #dff4ef;
  box-shadow: inset 0 0 0 2px rgba(17, 169, 135, 0.12);
}

.booking-month-grid button.disabled {
  color: #9baaad;
  background: #f2f5f4;
  cursor: not-allowed;
}

.booking-month-grid button.other-month {
  opacity: 0.54;
}

.booking-month-grid strong {
  font-size: 1.5rem;
}

.booking-month-grid small {
  color: var(--muted);
  font-weight: 700;
}

.booking-slot-panel {
  display: grid;
  gap: 10px;
}

.booking-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-slot-list button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.booking-slot-list button.active,
.booking-slot-list button:hover {
  color: var(--white);
  border-color: transparent;
  background: var(--ink);
}

.booking-confirm-box,
.booking-empty-hint {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.booking-confirm-box {
  border: 1px solid rgba(17, 169, 135, 0.32);
  border-radius: 10px;
  background: #e1f7f1;
}

.booking-confirm-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-confirm-box strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.booking-confirm-box p,
.booking-empty-hint {
  color: var(--muted);
}

.booking-inline-login,
.booking-inline-payment {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 169, 135, 0.24);
}

.booking-inline-login[hidden],
.booking-inline-payment[hidden] {
  display: none !important;
}

.booking-payment-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-payment-details label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.booking-payment-details select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
}

.booking-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.booking-payment-methods button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 9px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.booking-payment-methods button.active {
  border-color: rgba(17, 169, 135, 0.58);
  box-shadow: inset 0 0 0 2px rgba(17, 169, 135, 0.12);
}

.booking-payment-methods strong,
.booking-payment-methods small {
  display: block;
}

.booking-payment-methods small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.payment-brand-mark {
  grid-row: span 2;
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 !important;
  border-radius: 9px;
  color: var(--white) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.booking-payment-methods .webpay .payment-brand-mark {
  background: linear-gradient(135deg, #8d1b83, #e33b91);
}

.booking-payment-methods .mercadopago .payment-brand-mark {
  color: #164f76 !important;
  background: #73c9ed;
}

.booking-payment-methods .paypal .payment-brand-mark {
  background: #183f87;
}

.booking-payment-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.booking-payment-total span,
.booking-payment-total small {
  margin: 0;
  color: var(--muted);
  text-transform: none;
}

.booking-payment-total strong {
  grid-row: span 2;
  font-size: 1.45rem;
}

.booking-payment-result {
  min-height: 20px;
  color: #087861 !important;
  font-size: 0.82rem !important;
  font-weight: 800;
}

.dashboard-visual {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.dashboard-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 430px;
  object-fit: cover;
  filter: saturate(0.8) contrast(0.97);
}

.dashboard-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-overlay span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: var(--white);
  background: rgba(18, 52, 59, 0.74);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 600;
}

.patient-system {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow: hidden;
  margin: 10px 0 24px;
  border: 1px solid rgba(191, 218, 214, 0.88);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(239, 249, 246, 0.94)),
    var(--white);
  box-shadow: 0 24px 70px rgba(18, 52, 59, 0.1);
}

.patient-system-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(104px, 1fr));
  align-content: center;
  gap: 8px;
  padding: 12px;
  background:
    linear-gradient(90deg, #0d3a40, #083036);
  color: var(--white);
}

.system-user-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  text-align: center;
}

.system-user-mini img {
  width: 34px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.52);
}

.patient-system-nav button {
  display: grid;
  gap: 6px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.patient-system-nav button span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.patient-system-nav button.active,
.patient-system-nav button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.patient-system-nav button.active span {
  color: var(--ink);
  background: linear-gradient(145deg, #c5f3eb, #7fd5ca);
}

.patient-system-stage {
  min-width: 0;
  padding: 16px;
  background:
    radial-gradient(circle at 25% 5%, rgba(255, 240, 238, 0.74), transparent 28%),
    linear-gradient(180deg, rgba(247, 251, 250, 0.96), rgba(239, 249, 246, 0.86));
}

.system-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 233, 230, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.system-topbar span,
.patient-widget > span,
.widget-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.system-topbar h3 {
  margin-bottom: 0;
  font-size: 1.6rem;
}

.system-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.system-top-actions button,
.system-top-actions a,
.patient-widget button,
.payment-options button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.system-top-actions a,
.video-launch,
.ai-widget form button,
.payment-options button:first-child {
  color: var(--white);
  border-color: transparent;
  background: var(--ink);
}

.patient-ui-panel {
  display: none;
}

.patient-ui-panel.active {
  display: block;
}

.patient-ui-grid,
.patient-detail-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.patient-widget {
  min-width: 0;
  min-height: 160px;
  padding: 16px;
  border: 1px solid rgba(220, 233, 230, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(18, 52, 59, 0.055);
}

.profile-widget,
.doctor-widget,
.messages-widget {
  grid-column: span 4;
}

.journey-widget {
  grid-column: span 6;
}

.payment-widget,
.ai-widget {
  grid-column: span 3;
}

.wide-widget {
  grid-column: span 8;
}

.patient-detail-grid > .patient-widget:not(.wide-widget) {
  grid-column: span 4;
}

.profile-widget img,
.doctor-widget img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  filter: saturate(0.92) contrast(0.98);
}

.profile-widget h3,
.doctor-widget h3,
.ai-widget h3,
.patient-widget h3 {
  margin-bottom: 8px;
  font-size: clamp(1.24rem, 1.7vw, 1.65rem);
}

.quick-metrics,
.library-row,
.payment-options {
  display: grid;
  gap: 10px;
}

.quick-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.quick-metrics span,
.library-row article {
  min-height: 56px;
  display: grid;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.video-launch {
  width: 100%;
  margin-top: 10px;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.widget-head button {
  min-height: 34px;
  padding: 0 10px;
  color: #087861;
  background: var(--mint);
}

.message-preview {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.message-preview img,
.message-preview > span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--rose);
}

.message-preview > span {
  display: grid;
  place-items: center;
  color: var(--rose-strong);
  font-weight: 700;
}

.message-preview p,
.secure-thread p,
.dashboard-ai-log p,
.library-row p {
  margin: 0;
  line-height: 1.45;
}

.portal-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-library-grid article {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.portal-library-grid img {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 7px;
  object-fit: cover;
}

.portal-library-grid span {
  color: #087861;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-library-grid strong {
  color: var(--ink);
  font-size: 1rem;
}

.portal-library-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.portal-library-grid article > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.portal-library-grid button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.portal-library-grid button:first-child {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.library-viewer {
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.library-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 38, 44, 0.68);
}

.library-viewer-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(920px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(8, 38, 44, 0.28);
}

.library-viewer-dialog > header,
.library-viewer-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.library-viewer-dialog > header div {
  display: grid;
  gap: 2px;
}

.library-viewer-dialog > header span {
  color: #087861;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.library-viewer-dialog > header button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 1.45rem;
  cursor: pointer;
}

.library-viewer-content {
  overflow: auto;
  padding: 20px;
  background: #f4f9f8;
}

.library-viewer-content .print-document {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.library-viewer-content .print-document header,
.library-viewer-content .print-document footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.library-viewer-content .print-document footer {
  margin-top: 26px;
  padding-top: 14px;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
}

.library-viewer-content .print-document p,
.library-viewer-content .print-document li {
  line-height: 1.55;
}

.library-viewer-dialog > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.library-viewer-dialog > footer button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.library-viewer-dialog > footer .primary {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

.care-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 12px 0 18px;
}

.care-progress span {
  height: 8px;
  border-radius: 999px;
  background: #dce9e6;
}

.care-progress span.done {
  background: var(--mint-strong);
}

.care-step {
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
  text-align: left;
}

.care-step.done {
  border-color: rgba(17, 169, 135, 0.28);
  color: #087861;
  background: var(--mint);
}

.card-preview {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 18px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #82cfc6, #0f8f85);
}

.card-preview p,
.card-preview small {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.ai-widget form,
.patient-ui-panel form[data-dashboard-ai-form] {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.ai-widget input,
.patient-ui-panel form[data-dashboard-ai-form] input {
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.dashboard-ai-log,
.secure-thread {
  display: grid;
  gap: 10px;
  max-height: 230px;
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.secure-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.secure-message-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.secure-message-form button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.message-policy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.record-lines {
  display: grid;
  gap: 0;
  margin: 0;
}

.record-lines div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.record-lines dt,
.record-lines dd {
  margin: 0;
}

.record-lines dt {
  color: var(--muted);
  font-weight: 600;
}

.library-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.portal-app-shell {
  min-height: calc(100vh - 86px);
  padding: clamp(24px, 3.8vw, 52px) clamp(18px, 4.8vw, 86px) clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 15% 2%, rgba(255, 240, 238, 0.78), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(223, 246, 239, 0.86), transparent 30%),
    linear-gradient(180deg, #fbfdfc 0%, #edf8f5 52%, #ffffff 100%);
}

.portal-app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
  margin-bottom: 22px;
}

.portal-app-header h1 {
  max-width: 920px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.portal-app-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
}

.portal-role-switch {
  grid-template-columns: repeat(3, 1fr);
  align-self: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(18, 52, 59, 0.06);
}

.portal-role-switch button {
  min-height: 42px;
  padding: 0 12px;
}

.portal-system,
.workspace-system {
  margin-top: 0;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 246, 0.96)),
    var(--white);
  box-shadow: 0 24px 70px rgba(18, 52, 59, 0.11);
}

.workspace-system {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(191, 218, 214, 0.88);
}

.workspace-nav {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  padding: 12px;
  color: var(--white);
  background: linear-gradient(180deg, #0d3a40, #083036);
}

.workspace-nav button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.workspace-nav button span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.workspace-nav button.active,
.workspace-nav button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.workspace-nav button.active span {
  color: var(--ink);
  background: linear-gradient(145deg, #c5f3eb, #7fd5ca);
}

.workspace-stage {
  min-width: 0;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, rgba(247, 251, 250, 0.96), rgba(239, 249, 246, 0.86));
}

.workspace-panel {
  display: none;
}

.workspace-panel.active {
  display: block;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 233, 230, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.workspace-topbar span,
.workspace-card-grid article > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.workspace-topbar h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.workspace-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workspace-card-grid article,
.workspace-card {
  min-height: 176px;
  padding: 18px;
  border: 1px solid rgba(220, 233, 230, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(18, 52, 59, 0.055);
}

.workspace-card-grid h3,
.workspace-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.workspace-card-grid p,
.workspace-card p {
  margin-bottom: 0;
  line-height: 1.55;
}

.doctor-workbench {
  padding: 0;
}

.doctor-workbench .patient-queue,
.doctor-workbench .clinical-record {
  border: 1px solid rgba(220, 233, 230, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.patient-queue button.active {
  border-color: rgba(17, 169, 135, 0.32);
  color: var(--ink);
  background: var(--mint);
}

.workspace-system .clinical-record {
  min-width: 0;
}

.portal-app-shell .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  background: var(--ink);
}

.portal-app-shell .button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.internal-app-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(223, 246, 239, 0.9), transparent 36%),
    linear-gradient(180deg, #f8fcfb 0%, #edf8f5 100%);
}

.internal-app-page .internal-app-topbar {
  display: none !important;
}

.internal-app-page .internal-app-topbar .brand {
  padding: 8px 10px;
  border: 1px solid rgba(220, 233, 230, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(18, 52, 59, 0.1);
}

.internal-app-page .internal-app-topbar .brand-logo {
  width: 132px;
}

.internal-app-page .internal-app-topbar .main-nav,
.internal-app-page .internal-app-topbar .header-cta,
.internal-app-page .internal-app-topbar .mobile-menu-toggle {
  display: none;
}

.internal-app-page main {
  min-height: 100vh;
}

.internal-app-page .portal-app-shell {
  min-height: 100vh;
  padding: 0;
}

.internal-app-page .portal-app-header {
  display: none;
}

.internal-app-page .client-portal,
.internal-app-page .workspace-system {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.internal-app-page .client-sidebar {
  padding-top: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
}

.internal-app-page .client-workspace {
  max-height: 100vh;
  overflow-y: auto;
}

.internal-app-page .workspace-stage {
  max-height: 100vh;
}

.client-menu {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.client-menu:hover {
  scrollbar-width: thin;
}

.internal-app-page footer {
  display: none;
}

.meet-page {
  min-height: 100vh;
  overflow: auto;
  color: #163236;
  background: #f4f6f5;
}

.meet-prejoin[hidden],
.meet-room[hidden] {
  display: none !important;
}

.meet-shell,
.meet-room {
  min-height: 100vh;
}

.meet-prejoin {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(18px, 3vw, 42px);
  background: #f5f6f5;
}

.meet-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  color: #586567;
  font-weight: 700;
}

.meet-brand img,
.meet-logo img {
  width: 132px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
}

.meet-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 460px);
  gap: 22px;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.meet-preview-video,
.meet-main-tile,
.meet-self-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce4e2;
  border-radius: 18px;
  background: #314044;
  box-shadow: 0 24px 60px rgba(18, 52, 59, 0.12);
}

.meet-preview-video {
  min-height: min(74vh, 760px);
}

.meet-preview-video video {
  position: absolute;
  inset: 0;
}

.meet-preview-video.has-stream {
  background: #101719;
}

.meet-preview-fallback[hidden] {
  display: none !important;
}

.meet-floating-controls {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.meet-floating-controls button {
  min-width: 74px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(7, 31, 36, 0.76);
  backdrop-filter: blur(14px);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.meet-floating-controls button.off {
  background: #d6544a;
}

.meet-preview-video video,
.meet-self-tile video,
.meet-self-tile img,
.meet-main-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meet-self-tile video {
  display: none;
}

.meet-self-tile.has-stream video {
  display: block;
}

.meet-self-tile.has-stream img {
  display: none;
}

.meet-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  background: #2f4145;
}

.meet-preview-fallback strong {
  font-size: clamp(2rem, 5vw, 4rem);
}

.meet-device-panel,
.meet-clinical-panel {
  border: 1px solid #dce4e2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(18, 52, 59, 0.12);
}

.meet-device-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.meet-device-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.meet-device-panel p {
  color: var(--muted);
}

.device-grid {
  display: grid;
  gap: 12px;
}

.device-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.device-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--white);
  font: inherit;
}

.meet-prejoin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.meet-device-status {
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--mint);
}

.audio-test-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbfa;
}

.audio-meter-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
}

.mic-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 1rem;
}

.audio-meter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  min-height: 34px;
}

.audio-meter i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #dce8e6;
}

.audio-meter i:nth-child(n+5) {
  height: 18px;
}

.audio-meter i:nth-child(n+9) {
  height: 28px;
}

.audio-meter i.active {
  background: #13a884;
}

.audio-meter i.active.warm {
  background: #e5a500;
}

.audio-meter i.active.hot {
  background: #e05246;
}

.meet-prejoin-actions.compact {
  grid-template-columns: 1fr 1fr;
}

.meet-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #eef4f2;
}

.meet-room:not([hidden]) {
  position: fixed;
  z-index: 1500;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.meet-page.meet-room-active {
  overflow: hidden;
}

.meet-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  padding: 18px 12px;
  border-right: 1px solid #dce4e2;
  background: #ffffff;
}

.meet-logo img {
  width: 54px;
}

.meet-sidebar nav {
  display: grid;
  align-content: center;
  gap: 10px;
}

.meet-sidebar button,
.meet-controls button {
  min-height: 48px;
  border: 1px solid #dce4e2;
  border-radius: 12px;
  color: #3f5558;
  background: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.meet-sidebar button.active,
.meet-sidebar button:hover,
.meet-controls button:hover {
  color: var(--ink);
  background: #dff2ef;
}

.meet-patient-drawer {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid #dce4e2;
  background: #ffffff;
}

.meet-patient-drawer h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  line-height: 1;
}

.meet-patient-drawer p,
.meet-patient-drawer dd {
  color: var(--muted);
  line-height: 1.5;
}

.meet-patient-drawer dl,
.meet-patient-drawer div,
.meet-patient-drawer dt,
.meet-patient-drawer dd {
  margin: 0;
}

.meet-patient-drawer div {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid #dce4e2;
}

.meet-patient-drawer dt {
  color: var(--ink);
  font-weight: 800;
}

.meet-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  padding: 16px;
}

.meet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dce4e2;
}

.meet-panel-toggle {
  display: none;
  flex: 0 0 auto;
  place-items: center;
  gap: 4px;
  width: 46px;
  height: 42px;
  border: 1px solid #dce4e2;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.meet-panel-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.meet-topbar span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.meet-topbar a {
  color: var(--ink);
  font-weight: 800;
}

.meet-video-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.meet-main-tile {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.meet-main-tile img {
  position: absolute;
  inset: 0;
}

.meet-main-tile span,
.meet-self-tile span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(7, 31, 36, 0.68);
  font-weight: 800;
}

.meet-self-tile {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: min(260px, 28%);
  aspect-ratio: 4 / 3;
  border: 4px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.meet-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(31, 35, 36, 0.92);
  box-shadow: 0 14px 34px rgba(18, 52, 59, 0.22);
  transform: translateX(-50%);
}

.meet-controls button {
  min-width: 104px;
  padding: 0 16px;
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

.meet-controls .danger {
  color: var(--white);
  background: #d6544a;
}

.meet-clinical-panel {
  margin: 16px 16px 16px 0;
  padding: 18px;
  overflow-y: auto;
  width: clamp(360px, 29vw, 560px);
  min-width: 320px;
  max-width: 720px;
  resize: horizontal;
}

.meet-panel-backdrop {
  display: none;
}

.meet-role-paciente .meet-panel-toggle {
  display: inline-grid;
}

.meet-role-paciente .meet-room {
  grid-template-columns: minmax(0, 1fr);
}

.meet-role-paciente .meet-clinical-panel {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  width: min(460px, calc(100vw - 28px));
  min-width: 0;
  margin: 0;
  transform: translateX(calc(100% + 28px));
  transition: transform 180ms ease;
  resize: none;
}

.meet-role-paciente.meet-panel-open .meet-clinical-panel {
  transform: translateX(0);
}

.meet-role-paciente.meet-panel-open .meet-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: block;
  background: rgba(9, 31, 36, 0.38);
}

.meet-panel-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: -4px -4px 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.meet-panel-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  color: #486064;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.meet-panel-tabs button.active,
.meet-panel-tabs button:hover {
  color: var(--ink);
  background: var(--mint);
}

.meet-clinical-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meet-clinical-list div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.meet-clinical-list dt,
.meet-clinical-list dd {
  margin: 0;
}

.meet-clinical-list dt {
  color: var(--ink);
  font-weight: 800;
}

.meet-panel {
  display: none;
}

.meet-panel.active {
  display: grid;
  gap: 12px;
}

.meet-panel h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.meet-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.client-portal {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(191, 218, 214, 0.88);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(18, 52, 59, 0.1);
}

.client-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(180deg, #0d3a40, #082c32);
}

.client-user-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.client-user-card img {
  width: 58px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.client-user-card span,
.client-user-card small,
.client-sidebar-cta span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
}

.client-user-card strong {
  display: block;
  margin: 2px 0;
  font-size: 1.1rem;
}

.client-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}

.client-menu button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.client-menu button span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
}

.client-menu button.active,
.client-menu button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
}

.client-menu button.active span {
  color: var(--ink);
  background: linear-gradient(145deg, #c5f3eb, #7fd5ca);
}

.client-sidebar-cta {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  color: var(--ink);
  background: linear-gradient(145deg, #dff6ef, #ffffff);
}

.client-sidebar-cta p {
  margin: 0;
  line-height: 1.45;
}

.client-sidebar-cta .button {
  width: 100%;
}

.client-workspace {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 34px);
  background:
    radial-gradient(circle at 80% 0%, rgba(223, 246, 239, 0.9), transparent 30%),
    linear-gradient(180deg, #f8fcfb, #eef8f5);
}

.client-topbar,
.client-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.client-topbar h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  line-height: 1;
}

.client-topbar p,
.client-section-head p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-top-actions,
.client-action-row,
.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.is-disabled {
  opacity: 0.48;
  pointer-events: auto;
  cursor: not-allowed;
}

.payment-status {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(17, 169, 135, 0.22);
  border-radius: 8px;
  color: var(--muted);
  background: var(--mint);
}

.payment-session-gate {
  max-width: 780px;
}

.clinical-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.checkout-main-card,
.checkout-summary-card,
.checkout-history-card {
  min-width: 0;
  border: 1px solid rgba(220, 233, 230, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(18, 52, 59, 0.06);
}

.checkout-main-card,
.checkout-summary-card {
  padding: 18px;
}

.checkout-summary-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.checkout-step-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.checkout-step-head span,
.checkout-summary-card > span,
.checkout-history-card > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-step-head strong,
.checkout-summary-card h3,
.checkout-history-card h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  line-height: 1.05;
}

.checkout-step-head p,
.checkout-history-card p,
.checkout-legal {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-form-grid,
.invoice-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-form-grid label,
.invoice-fields label,
.checkout-notes {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.checkout-form-grid input,
.checkout-form-grid select,
.invoice-fields input,
.checkout-notes textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfdfc;
  font: inherit;
  font-weight: 700;
}

.checkout-notes {
  margin-top: 12px;
}

.checkout-notes textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.receipt-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}

.receipt-type-grid button,
.checkout-methods button {
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  cursor: pointer;
}

.receipt-type-grid button {
  min-height: 46px;
  font-weight: 900;
}

.receipt-type-grid button.active,
.checkout-methods button.active {
  border-color: rgba(17, 169, 135, 0.46);
  background: #e1f7f1;
  box-shadow: inset 0 0 0 2px rgba(17, 169, 135, 0.08);
}

.checkout-lines {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.checkout-lines div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-lines div:last-child {
  border-bottom: 0;
  background: #f3faf8;
}

.checkout-lines dt,
.checkout-lines dd {
  margin: 0;
}

.checkout-lines dt {
  color: var(--muted);
  font-weight: 700;
}

.checkout-lines dd {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.checkout-methods {
  display: grid;
  gap: 9px;
}

.checkout-methods button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  text-align: left;
}

.checkout-methods strong,
.checkout-methods span {
  display: block;
}

.checkout-methods span {
  grid-column: 2;
}

.checkout-brand {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: var(--white);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.checkout-brand.webpay {
  background: linear-gradient(135deg, #8d1b83, #e33b91);
}

.checkout-brand.mercadopago {
  color: #164f76;
  background: #73c9ed;
}

.checkout-brand.paypal {
  background: #183f87;
}

.checkout-brand.card {
  background: #12343b;
}

.checkout-methods strong {
  font-size: 1rem;
}

.checkout-methods span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.checkout-pay-button {
  width: 100%;
}

.checkout-history-card {
  grid-column: 1 / -1;
  padding: 18px;
}

.checkout-plan-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  gap: 0 14px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.checkout-plan-row strong,
.checkout-plan-row span {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-plan-row strong {
  color: var(--muted);
}

.checkout-plan-row span {
  color: var(--ink);
  font-weight: 800;
}

.client-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.patient-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
  gap: 14px;
  align-items: stretch;
}

.patient-home-main-card {
  display: grid;
  min-height: 390px;
  align-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(197, 243, 235, 0.82), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 247, 0.96));
}

.patient-home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.patient-home-card-head span,
.patient-home-summary-card > span,
.patient-home-quick-card > span,
.patient-home-route-card > span,
.patient-home-doctor-card span,
.patient-home-consult > span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.patient-home-card-head strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.patient-home-consult {
  max-width: 720px;
}

.patient-home-consult h3 {
  margin: 8px 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.patient-home-consult p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.patient-home-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.patient-home-status-row article {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(220, 233, 230, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.patient-home-status-row span,
.patient-home-mini-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.patient-home-status-row strong {
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
}

.patient-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.patient-home-summary-card,
.patient-home-quick-card,
.patient-home-route-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.patient-home-summary-card h3,
.patient-home-route-card h3,
.patient-home-doctor-card h3 {
  margin: 0;
}

.patient-home-mini-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.patient-home-mini-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.patient-home-mini-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.patient-home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.patient-home-quick-grid button {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fbfdfc;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.patient-home-quick-grid button:hover {
  border-color: rgba(17, 169, 135, 0.38);
  background: #e9f9f4;
}

.patient-home-quick-grid strong {
  font-size: 1.02rem;
}

.patient-home-quick-grid small,
.patient-home-route-list span {
  color: var(--muted);
  line-height: 1.35;
}

.patient-home-route-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 250, 0.94));
}

.patient-home-route-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: patient-route;
}

.patient-home-route-list li {
  counter-increment: patient-route;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.patient-home-route-list li::before {
  content: counter(patient-route);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--ink);
  background: #d8f4ed;
  font-weight: 900;
}

.patient-home-route-list strong,
.patient-home-route-list span {
  grid-column: 2;
}

.patient-home-doctor-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.patient-home-doctor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.patient-home-doctor-card p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.patient-home-doctor-actions {
  justify-self: end;
}

.client-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(220, 233, 230, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(18, 52, 59, 0.055);
}

.client-card > span,
.client-plan-card > span,
.client-next-card > span,
.client-doctor-card span,
.client-prep-card > span,
.calendar-month > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.client-card h3,
.client-section-head h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.client-card p {
  line-height: 1.55;
}

.internal-app-page {
  background:
    radial-gradient(circle at 86% 4%, rgba(214, 250, 241, 0.72), transparent 30%),
    radial-gradient(circle at 5% 12%, rgba(255, 240, 238, 0.58), transparent 28%),
    linear-gradient(180deg, #f7faf9 0%, #eef6f3 48%, #f8fbfa 100%);
}

.internal-app-page .client-portal {
  background: #f6faf9;
}

.internal-app-page .client-sidebar {
  color: #183b40;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 246, 0.94)),
    #f7fbfa;
  border-right: 1px solid rgba(203, 223, 219, 0.92);
}

.internal-app-page .client-user-card {
  border-color: rgba(203, 223, 219, 0.9);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(18, 52, 59, 0.06);
}

.internal-app-page .client-user-card img {
  border-color: rgba(17, 169, 135, 0.22);
}

.internal-app-page .client-user-card span,
.internal-app-page .client-user-card small,
.internal-app-page .client-sidebar-cta span {
  color: #62787b;
}

.internal-app-page .client-menu button {
  color: #4f676b;
  border-color: transparent;
  background: transparent;
}

.internal-app-page .client-menu button span {
  color: #315157;
  background: #e9f3f0;
}

.internal-app-page .client-menu button.active,
.internal-app-page .client-menu button:hover {
  color: #102f35;
  border-color: rgba(17, 169, 135, 0.26);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(18, 52, 59, 0.07);
}

.internal-app-page .client-menu button.active span {
  color: #062f35;
  background: linear-gradient(145deg, #d6f6ef, #a8ebe0);
}

.internal-app-page .client-sidebar-cta {
  border: 1px solid rgba(203, 223, 219, 0.9);
  background:
    radial-gradient(circle at 88% 0%, rgba(214, 250, 241, 0.9), transparent 45%),
    #ffffff;
  box-shadow: 0 14px 34px rgba(18, 52, 59, 0.06);
}

.internal-app-page .client-workspace {
  background:
    radial-gradient(circle at 80% 0%, rgba(214, 250, 241, 0.66), transparent 34%),
    linear-gradient(180deg, #fbfdfc 0%, #f2f8f6 100%);
}

.internal-app-page .client-topbar h2 {
  color: #11363d;
  font-weight: 750;
}

.internal-app-page .client-card,
.internal-app-page .checkout-main-card,
.internal-app-page .checkout-summary-card,
.internal-app-page .checkout-history-card {
  border-color: rgba(203, 223, 219, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 254, 253, 0.92));
  box-shadow: 0 18px 46px rgba(18, 52, 59, 0.065);
}

.internal-app-page .patient-home-main-card {
  background:
    linear-gradient(90deg, rgba(246, 249, 248, 0.96) 0 54%, rgba(226, 248, 243, 0.8) 54% 100%),
    #ffffff;
}

.internal-app-page .patient-home-status-row article,
.internal-app-page .patient-home-quick-grid button,
.internal-app-page .patient-home-route-list li {
  border-color: rgba(203, 223, 219, 0.82);
  background: #fbfdfc;
}

.internal-app-page .patient-home-route-list li::before {
  background: #e0f6f0;
}

.client-profile-card,
.client-prep-card {
  grid-column: span 6;
}

.client-plan-card,
.client-next-card {
  grid-column: span 3;
}

.client-doctor-card {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: center;
}

.client-doctor-card img,
.client-profile-head img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.client-doctor-card img {
  aspect-ratio: 4 / 3;
}

.client-profile-head {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.client-profile-head img {
  aspect-ratio: 1;
}

.client-data-list,
.client-table,
.client-record-grid,
.client-payment-grid,
.calendar-shell {
  display: grid;
  gap: 12px;
}

.client-data-list {
  margin: 0;
}

.client-data-list div,
.client-table article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.client-data-list dt,
.client-data-list dd {
  margin: 0;
}

.client-data-list dt {
  color: var(--muted);
  font-weight: 600;
}

.client-data-list dd {
  font-weight: 700;
}

.client-plan-card,
.client-next-card {
  display: grid;
  align-content: space-between;
}

.client-progress {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.client-progress span {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #dce9e6;
}

.client-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-strong);
}

.client-plan-card button,
.client-next-card button,
.client-table button,
.payment-options button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.client-messages-layout form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.client-messages-layout input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.client-table article {
  grid-template-columns: 140px 1.2fr 1fr auto;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.calendar-filter,
.doctor-calendar-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.calendar-filter {
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto;
}

.doctor-calendar-filter {
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.15fr) minmax(150px, 210px) auto;
}

.calendar-filter label,
.doctor-calendar-filter label,
.clinical-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.calendar-filter input,
.calendar-filter select,
.doctor-calendar-filter input,
.doctor-calendar-filter select,
.clinical-edit-form input,
.clinical-edit-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.calendar-filter button,
.doctor-calendar-filter button {
  align-self: end;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.calendar-detail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.clinical-edit-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.record-actions,
.record-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.doctor-day-list button small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 700;
}

.doctor-record-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 14px;
}

.client-table span {
  color: var(--muted);
}

.client-table a {
  color: var(--white);
  background: var(--ink);
}

.client-table a,
.client-table button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
}

.calendar-shell,
.client-record-grid,
.client-payment-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.calendar-month {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-grid b,
.calendar-grid button {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-style: normal;
  cursor: pointer;
}

.calendar-grid b {
  color: var(--muted);
  font-size: 0.78rem;
}

.calendar-grid button {
  background: var(--soft);
}

.calendar-grid button.active {
  color: var(--white);
  background: var(--ink);
}

.calendar-grid button:disabled {
  cursor: default;
  opacity: 0;
}

.client-messages-layout .client-card {
  max-width: 900px;
}

.permission-panel {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(17, 169, 135, 0.24);
  border-radius: 10px;
  background: var(--mint);
}

.permission-panel strong,
.permission-panel p {
  display: block;
  margin: 0;
}

.permission-panel p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.market-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 20px;
}

.market-pricing article {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.market-pricing span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.market-pricing strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.health-plan-grid.plan-grid {
  grid-template-columns: repeat(4, 1fr);
}

.concept-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.concept-kpis article,
.concept-card,
.concept-board article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.concept-kpis article {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 18px;
}

.concept-kpis span,
.concept-card span,
.concept-board span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.concept-kpis strong {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.concept-grid.compact {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.concept-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.concept-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 169, 135, 0.28);
  background: #fcfffe;
  box-shadow: 0 16px 36px rgba(18, 52, 59, 0.08);
}

.concept-card.featured {
  background:
    linear-gradient(145deg, rgba(236, 249, 245, 0.96), rgba(255, 255, 255, 0.98)),
    var(--white);
}

.concept-card h3,
.concept-board h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
}

.concept-card p,
.concept-board p {
  margin-bottom: 0;
  line-height: 1.55;
}

.concept-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.concept-board article {
  min-height: 210px;
  padding: 22px;
  background: var(--soft);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.product-preview .reveal-up {
  transform: translateY(54px);
  transition-duration: 720ms;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-preview .product-ui-card.reveal-up {
  transform: translateY(72px) scale(0.985);
}

.product-preview .reveal-up.is-visible,
.product-preview .product-ui-card.reveal-up.is-visible {
  transform: translateY(0) scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-72px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(72px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.health-plan-grid .plan-card {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(18, 52, 59, 0.07);
}

.health-plan-grid .plan-card.highlighted {
  background: var(--mint);
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.telemed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding: clamp(34px, 4.5vw, 66px) clamp(20px, 5.5vw, 96px) clamp(26px, 3.4vw, 46px);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 240, 238, 0.86), transparent 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 246, 0.94));
}

.telemed-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4.2vw, 5rem);
  line-height: 1;
}

.telemed-hero p {
  max-width: 760px;
  font-size: clamp(1.04rem, 1.2vw, 1.24rem);
}

.telemed-status-card,
.booking-panel,
.video-room,
.clinical-workspace,
.flow-step {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.telemed-status-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.telemed-status-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.telemed-status-card strong {
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
  line-height: 1.05;
}

.telemed-status-card p {
  margin: 0;
}

.telemed-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px clamp(20px, 5.5vw, 96px);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 700;
}

.flow-step strong,
.flow-step p {
  display: block;
  margin: 0;
}

.flow-step.active {
  border-color: rgba(17, 169, 135, 0.36);
  background: var(--mint);
}

.flow-step.active span {
  color: var(--white);
  background: var(--ink);
}

.telemed-grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}

.internal-shell {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  min-height: calc(100vh - 86px);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5.5vw, 96px);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 240, 238, 0.76), transparent 30%),
    linear-gradient(180deg, #f7fbfa, #edf8f5 45%, #ffffff);
}

.internal-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}

.internal-user,
.internal-menu,
.internal-workspace,
.internal-kpis article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.internal-user {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.internal-user img {
  width: 62px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
}

.internal-user span,
.internal-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.internal-user strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.internal-role-tabs {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.internal-menu {
  display: grid;
  overflow: hidden;
}

.internal-menu a {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.internal-menu a:last-child {
  border-bottom: 0;
}

.internal-menu a:hover {
  color: var(--ink);
  background: var(--soft);
}

.internal-workspace {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
}

.internal-workspace h1 {
  max-width: 860px;
  font-size: clamp(2.4rem, 4.2vw, 4.7rem);
  line-height: 0.98;
}

.internal-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.internal-kpis article {
  min-height: 128px;
  display: grid;
  align-content: center;
  padding: 18px;
}

.internal-kpis strong {
  display: block;
  margin: 8px 0 4px;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
}

.internal-kpis p {
  margin: 0;
  line-height: 1.4;
}

.booking-panel {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.booking-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.booking-doctor {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.booking-doctor img {
  width: 82px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.booking-doctor strong,
.booking-doctor span,
.booking-doctor p {
  display: block;
  margin: 0;
}

.booking-doctor span,
.booking-summary dt,
.payment-box span {
  color: var(--muted);
}

.booking-summary {
  display: grid;
  margin: 0;
}

.booking-summary div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.booking-summary dt,
.booking-summary dd {
  margin: 0;
}

.booking-summary dt,
.payment-box span {
  font-weight: 600;
}

.payment-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(17, 169, 135, 0.22);
  border-radius: 10px;
  background: #f1fbf8;
}

.payment-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.telemed-payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.telemed-payment-options button {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.telemed-payment-options button.active,
.telemed-payment-options button:hover {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.paypal-box {
  min-height: 70px;
}

.clinic-room {
  display: grid;
  gap: 18px;
}

.video-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 230px);
  gap: 14px;
  padding: 18px;
}

.video-main {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 10px;
  background: #0c3339;
}

.video-main img,
.video-main video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(18, 52, 59, 0.82);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  font-weight: 600;
}

.video-side {
  display: grid;
  gap: 12px;
}

.video-side article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.video-side img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
}

.video-side span {
  color: var(--muted);
}

.video-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-controls button,
.clinical-tabs button,
.invoice-actions button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.video-controls button:nth-child(2),
.video-controls button:nth-child(3) {
  color: var(--white);
  border-color: transparent;
  background: var(--ink);
}

.video-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.clinical-workspace {
  overflow: hidden;
}

.clinical-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.clinical-tabs button {
  border: 0;
  border-radius: 0;
}

.clinical-tabs button.active {
  color: var(--white);
  background: var(--ink);
}

.clinic-panel {
  display: none;
  padding: clamp(20px, 3vw, 32px);
}

.clinic-panel.active {
  display: block;
}

.clinic-panel h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.5rem);
}

.document-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.document-list article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.document-list strong,
.document-list span {
  display: block;
}

.document-list span {
  margin-top: 8px;
  color: var(--muted);
}

.telemed-note-form {
  display: grid;
  gap: 14px;
}

.telemed-note-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.telemed-note-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.medical-note-document {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid #c6d6d4;
  border-radius: 8px;
  color: #182f35;
  background: #f7fbff;
  box-shadow: 0 18px 44px rgba(18, 52, 59, 0.08);
}

.medical-note-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 16px;
  color: var(--white);
  background: #324b63;
}

.medical-note-title span,
.medical-note-title small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 600;
}

.medical-note-title strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.medical-note-title small {
  justify-self: end;
}

.medical-note-grid,
.medical-note-vitals {
  display: grid;
  gap: 10px;
}

.medical-note-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.medical-note-vitals {
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  align-items: end;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(50, 75, 99, 0.18);
  background: rgba(255, 255, 255, 0.66);
}

.medical-note-vitals > span {
  color: #324b63;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.medical-note-document label {
  display: grid;
  gap: 5px;
  color: #324b63;
  font-size: 0.78rem;
  font-weight: 800;
}

.medical-note-document input,
.medical-note-document textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(50, 75, 99, 0.32);
  border-radius: 0;
  color: #182f35;
  background: rgba(255, 255, 255, 0.56);
  font: inherit;
  font-size: 0.92rem;
}

.medical-note-document input {
  min-height: 34px;
  padding: 6px 8px;
}

.medical-note-document textarea {
  min-height: 74px;
  padding: 9px 10px;
  line-height: 1.5;
  resize: vertical;
}

.medical-note-block {
  margin-top: 12px;
}

.medical-note-signature {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
  padding-top: 22px;
}

.medical-note-signature div {
  min-height: 74px;
  display: grid;
  align-content: end;
  gap: 4px;
  border-top: 1px solid rgba(50, 75, 99, 0.45);
}

.medical-note-signature span,
.medical-note-signature small {
  color: var(--muted);
  font-size: 0.78rem;
}

.invoice-preview {
  margin-top: 14px;
}

.post-consult-documents {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  margin-top: 18px;
}

.post-consult-documents > section,
.indications-document,
.invoice-document {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.post-consult-documents > section {
  padding: 16px;
}

.document-headline {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.document-headline span,
.email-status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.document-headline strong {
  font-size: 1.05rem;
}

.indications-preview {
  margin-top: 14px;
}

.indications-document {
  display: grid;
  gap: 16px;
  padding: 22px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbfa);
}

.indications-document header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
}

.indications-document header span,
.indications-document section h3,
.indications-document footer span,
.indications-document footer small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.indications-document h2 {
  margin: 4px 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.indications-document p,
.indications-document li {
  margin: 0;
  line-height: 1.55;
}

.indications-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.indications-meta div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.indications-document section h3 {
  margin-bottom: 8px;
}

.indications-document ul {
  margin: 0;
  padding-left: 18px;
}

.indications-document footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.invoice-document {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--soft);
}

.invoice-document > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.invoice-document span {
  color: var(--muted);
  font-weight: 600;
}

.invoice-document dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.invoice-document dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.invoice-document dt,
.invoice-document dd {
  margin: 0;
}

.invoice-document dt {
  color: var(--muted);
  font-weight: 600;
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.email-status {
  margin: 12px 0 0;
  text-transform: none;
}

/* Professional polish */
.primary {
  box-shadow: 0 12px 24px rgba(243, 111, 91, 0.18);
}

.header-cta,
.button,
.lead-form button,
.waiting-room button,
.cart-line button,
.role-tabs button,
.patient-queue button,
.clinical-note-form button {
  letter-spacing: 0;
}

:is(.partner-band span, .icon, .journey-steps span, .video-tile span, .cart-line button, .toast, .program-tag, .program-meta, .paper-feature span, .paper-feature a, .schedule-board span, .payment-preview span, .app-side-panel dt, .app-side-panel dd, .role-tabs button, .metric-row span, .care-flow span) {
  font-weight: 600;
}

:is(.ecosystem-grid span, .stage-card span, .doctor-modal strong, .payment-method strong, .plan-card strong, .concept-kpis strong, .metric-row strong) {
  font-weight: 700;
}

:is(.consult-card, .journey-card, .program-card, .paper-feature, .plan-card, .lead-form, .ecosystem-grid article, .health-plan-grid .plan-card, .platform-hero-panel, .doctor-modal-dialog) {
  box-shadow: var(--shadow-soft);
}

:is(.hero-media img, .page-hero img, .life-stage-media img, .guide-intro img, .shop-card img, .area-card img, .profile-card img, .consult-doctor-card > img) {
  box-shadow: var(--shadow-soft);
  filter: saturate(0.9) contrast(0.98);
}

:is(.shop-card, .area-card, .profile-card, .consult-doctor-card, .concept-card, .concept-kpis article, .concept-board article, .plan-card, .program-card) {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

:is(.shop-card, .area-card, .profile-card, .consult-doctor-card, .plan-card, .program-card):hover {
  transform: translateY(-2px);
  border-color: rgba(17, 169, 135, 0.26);
  box-shadow: 0 16px 36px rgba(18, 52, 59, 0.08);
}

.login-intro h1 {
  font-size: clamp(2.1rem, 3.2vw, 3.8rem);
}

.login-intro p,
.concept-sidebar p,
.concept-card p,
.concept-board p {
  color: #5a7174;
}

.auth-card input,
.portal-login-form input,
.verification-form input[type="text"] {
  font-weight: 500;
}

.auth-card input:focus,
.portal-login-form input:focus,
.verification-form input[type="text"]:focus {
  outline: 3px solid rgba(17, 169, 135, 0.16);
  border-color: rgba(17, 169, 135, 0.46);
}

.profile-dashboard-visual {
  margin-top: 10px;
}

@media (max-width: 1220px), (max-height: 820px) {
  .meet-prejoin {
    align-content: start;
    min-height: 100svh;
    padding: 14px;
  }

  .meet-brand {
    gap: 12px;
  }

  .meet-preview-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .meet-preview-video {
    min-height: min(48svh, 460px);
  }

  .meet-device-panel {
    align-content: start;
    gap: 12px;
    padding: 18px;
  }

  .meet-device-panel h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
  }

  .meet-device-status {
    min-height: 0;
  }
}

@media (max-width: 1180px) {
  .product-preview {
    grid-template-columns: 1fr;
  }

  .product-copy h2,
  .product-copy p {
    max-width: 980px;
  }

  .product-ui-card {
    width: 100%;
  }

  .platform-flow-row,
  .platform-flow-row.reverse {
    grid-template-columns: 1fr;
  }

  .platform-flow-row.reverse .platform-flow-copy {
    order: 0;
  }

  .platform-screen {
    min-height: 0;
  }

  .platform-screen-commerce {
    grid-template-columns: 1fr;
  }

  .care-intro,
  .platform-tutorial,
  .tutorial-card,
  .tutorial-card.featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .care-intro-main,
  .tutorial-card.featured {
    grid-column: 1 / -1;
  }

  .patient-system-nav {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .portal-app-header,
  .workspace-card-grid {
    grid-template-columns: 1fr;
  }

  .client-portal {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .patient-home-grid {
    grid-template-columns: 1fr;
  }

  .patient-home-main-card {
    min-height: 0;
  }

  .patient-home-doctor-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .patient-home-doctor-actions {
    grid-column: 2;
    justify-self: start;
  }

  .client-profile-card,
  .client-prep-card,
  .client-plan-card,
  .client-next-card,
  .client-doctor-card {
    grid-column: span 6;
  }

  .client-doctor-card,
  .client-table article,
  .calendar-shell,
  .client-record-grid,
  .client-payment-grid,
  .clinical-checkout {
    grid-template-columns: 1fr;
  }

  .checkout-summary-card {
    position: static;
  }

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

  .profile-widget,
  .doctor-widget,
  .messages-widget,
  .journey-widget,
  .payment-widget,
  .ai-widget,
  .wide-widget,
  .patient-detail-grid > .patient-widget:not(.wide-widget) {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .hero,
  .life-stage,
  .product-preview,
  .product-ui-card,
  .product-ui-card > section,
  .page-hero,
  .split,
  .guide-intro,
  .paper-layout,
  .checkout-layout,
  .support-layout,
  .telemed-hero,
  .telemed-grid,
  .video-room,
  .internal-shell,
  .platform-hero,
  .login-screen,
  .platform-shell,
  .portal-concept,
  .portal-app-header,
  .patient-system,
  .workspace-system,
  .client-portal,
  .store-layout,
  .marketplace-layout,
  .mega-footer,
  .meet-preview-card,
  .meet-room,
  .meet-video-grid,
  .booking-flow-panel,
  .booking-search-card,
  .access-console,
  .app-layout,
  .form-grid,
  .patient-grid,
  .portal-grid,
  .doctor-workbench,
  .doctor-record-layout,
  .client-record-grid,
  .client-payment-grid,
  .checkout-form-grid,
  .invoice-fields,
  .receipt-type-grid,
  .calendar-filter,
  .doctor-calendar-filter,
  .booking-widget-controls,
  .booking-step-strip,
  .booking-dynamic-panel,
  .booking-calendar-head,
  .booking-calendar-toolbar,
  .ops-grid,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .booking-calendar-toolbar,
  .booking-date-nav {
    display: grid;
  }

  .booking-date-nav {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .booking-date-nav strong {
    min-width: 0;
    order: -1;
  }

  .booking-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-month-grid[data-view="month"] {
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    overflow-x: auto;
  }

  .booking-payment-details,
  .booking-payment-methods,
  .portal-library-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .shop-promo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-country-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-heading h1 {
    white-space: normal;
  }

  .hero-media img {
    min-height: 360px;
  }

  .program-grid,
  .ecosystem-grid,
  .shop-grid,
  .area-grid,
  .profile-grid,
  .social-grid,
  .consult-doctor-grid,
  .consult-plan-context,
  .specialty-picker,
  .faq-grid,
  .plan-grid,
  .stage-grid,
  .metric-row,
  .care-flow,
  .concept-kpis,
  .concept-grid,
  .concept-grid.compact,
  .concept-board,
  .record-grid,
  .physician-review-grid,
  .schedule-board,
  .consultation-strip,
  .telemed-flow,
  .clinical-tabs,
  .document-list,
  .internal-kpis,
  .patient-ui-grid,
  .patient-detail-grid,
  .market-pricing,
  .pro-pricing-grid,
  .health-plan-grid.plan-grid,
  .library-row,
  .care-intro,
  .platform-tutorial,
  .tutorial-card,
  .tutorial-card.featured,
  .profile-shot,
  .consult-shot,
  .partner-band {
    grid-template-columns: 1fr;
  }

  .slot-row {
    grid-template-columns: 1fr;
  }

  .shop-cart-preview {
    position: static;
  }

  .meet-page {
    overflow: auto;
  }

  .meet-prejoin {
    align-content: start;
    padding: 14px;
  }

  .meet-preview-video {
    min-height: 320px;
  }

  .meet-prejoin-actions,
  .meet-controls {
    grid-template-columns: 1fr;
    display: grid;
  }

  .meet-controls {
    width: auto;
    margin: 0;
    border-radius: 12px;
  }

  .meet-main-tile {
    min-height: 0;
  }

  .meet-self-tile {
    width: 140px;
    top: 12px;
    right: 12px;
  }

  .meet-room {
    height: 100dvh;
    min-height: 0;
  }

  .doctor-week-calendar {
    overflow-x: auto;
  }

  .week-head,
  .week-row {
    min-width: 720px;
  }

  .daily-note-list article,
  .payment-status-table article {
    grid-template-columns: 1fr;
  }

  .meet-sidebar {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    padding: 10px;
  }

  .meet-sidebar nav {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .meet-patient-drawer {
    margin: 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .meet-clinical-panel {
    margin: 0 12px 12px;
  }

  .telemed-payment-options,
  .post-consult-documents,
  .indications-meta,
  .indications-document footer {
    grid-template-columns: 1fr;
  }

  .tutorial-card.featured,
  .tutorial-card {
    min-height: 0;
  }

  .shot-metrics,
  .shot-timeline {
    grid-template-columns: 1fr;
  }

  .shot-profile-row {
    grid-template-columns: 80px 1fr;
  }

  .shot-profile-row img {
    width: 80px;
  }

  .patient-system-nav {
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
  }

  .workspace-nav {
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
  }

  .system-user-mini {
    display: none;
  }

  .patient-system-nav button,
  .workspace-nav button {
    min-height: 64px;
  }

  .portal-app-shell {
    padding-inline: 14px;
  }

  .internal-app-page .portal-app-shell {
    padding: 76px 12px 16px;
  }

  .internal-app-page .internal-app-topbar {
    inset: 10px auto auto 12px;
  }

  .internal-app-page .internal-app-topbar .brand-logo {
    width: 118px;
  }

  .internal-app-page .client-sidebar {
    padding-top: 18px;
    position: static;
    height: auto;
  }

  .internal-app-page .client-workspace {
    max-height: none;
  }

  .portal-app-header h1 {
    font-size: clamp(2.15rem, 14vw, 3.4rem);
  }

  .workspace-topbar,
  .system-topbar {
    display: grid;
  }

  .client-sidebar {
    grid-template-rows: auto auto auto;
  }

  .client-menu {
    grid-template-columns: repeat(7, minmax(126px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .client-menu button {
    grid-template-columns: 32px 1fr;
  }

  .client-topbar,
  .client-section-head,
  .client-top-actions,
  .client-action-row {
    display: grid;
    align-items: start;
  }

  .client-dashboard-grid,
  .patient-home-grid,
  .patient-home-status-row,
  .patient-home-mini-list div,
  .patient-home-doctor-card,
  .client-profile-head,
  .client-data-list div,
  .client-table article,
  .calendar-shell,
  .client-record-grid,
  .client-payment-grid,
  .medical-note-title,
  .medical-note-grid,
  .medical-note-vitals,
  .medical-note-signature {
    grid-template-columns: 1fr;
  }

  .patient-home-consult h3 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .patient-home-card-head,
  .patient-home-actions {
    display: grid;
    justify-items: start;
  }

  .patient-home-quick-grid {
    grid-template-columns: 1fr;
  }

  .patient-home-doctor-card img {
    max-height: 220px;
  }

  .patient-home-doctor-actions {
    grid-column: auto;
  }

  .medical-note-title small {
    justify-self: start;
  }

  .client-profile-card,
  .client-prep-card,
  .client-plan-card,
  .client-next-card,
  .client-doctor-card {
    grid-column: auto;
  }

  .workspace-card-grid {
    grid-template-columns: 1fr;
  }

  .profile-widget,
  .doctor-widget,
  .messages-widget,
  .journey-widget,
  .payment-widget,
  .ai-widget,
  .wide-widget,
  .patient-detail-grid > .patient-widget:not(.wide-widget) {
    grid-column: auto;
  }

  .analytics-grid,
  .analytics-table article,
  .secure-message-form {
    grid-template-columns: 1fr;
  }

  .product-ui-card {
    min-height: 0;
  }

  .platform-screen-agenda,
  .record-grid,
  .commerce-items {
    grid-template-columns: 1fr;
  }

  .platform-screen-agenda aside {
    border-right: 0;
    border-bottom: 1px solid rgba(214, 231, 227, 0.95);
  }

  .mini-calendar {
    grid-template-columns: 58px repeat(4, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .mini-calendar > * {
    min-width: 72px;
  }

  .quick-metrics {
    grid-template-columns: 1fr;
  }

  .record-lines div {
    grid-template-columns: 1fr;
  }

  .review-card.wide {
    grid-column: auto;
  }

  .review-card dl div {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    position: static;
  }

  .internal-sidebar {
    position: static;
  }

  .video-controls {
    grid-column: auto;
  }

  .invoice-document > div:first-child {
    display: grid;
  }

  .invoice-document dl div {
    grid-template-columns: 1fr;
  }

  .consult-table article {
    grid-template-columns: 1fr;
  }

  .app-menu,
  .app-side-panel {
    border: 0;
  }

  .app-menu {
    border-bottom: 1px solid var(--line);
  }

  .app-side-panel {
    border-top: 1px solid var(--line);
  }

  .life-stage-media img,
  .guide-intro img {
    min-height: 340px;
  }

  .login-screen {
    min-height: auto;
  }

  .auth-card-top {
    display: grid;
  }

  .platform-sidebar {
    position: static;
  }

  .portal-topline,
  .concept-header,
  .record-header {
    display: grid;
  }

  .doctor-card-large,
  .profile-head,
  .doctor-modal-head,
  .doctor-detail-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card-large img,
  .profile-head img,
  .doctor-modal-head img {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
    gap: 10px;
  }

  .site-header .header-cta {
    display: none;
  }

  .shop-page .site-header .cart-trigger {
    display: inline-flex;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .hero,
  .section,
  .cta-section {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.65rem);
    line-height: 1.04;
  }

  .hero-media img,
  .life-stage-media img,
  .guide-intro img,
  .video-tile,
  .video-tile.patient {
    min-height: 260px;
  }

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

  .trust-strip div,
  .button {
    width: 100%;
  }

  .feature-list article {
    grid-template-columns: 1fr;
  }

  .login-role-switch,
  .login-preview-list,
  .social-login-grid,
  .app-window-bar {
    grid-template-columns: 1fr;
  }

  .app-window-bar {
    display: grid;
  }

  footer {
    display: grid;
  }

  .cart-line {
    grid-template-columns: 86px 1fr;
  }

  .cart-line button {
    grid-column: 1 / -1;
  }
}


/* Country selector simplified: country changes currency only in the store preview. */
.shop-country-panel {
  max-width: 540px;
  justify-content: flex-start;
}
.shop-country-panel label {
  width: 100%;
  max-width: 460px;
}
.shop-country-panel p {
  display: none;
}
.cart-drawer-shipping {
  padding: 18px 24px;
}
.cart-drawer-shipping [data-drawer-country-label] {
  font-size: 1.1rem;
}

.location-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(11, 60, 67, 0.14);
  border-radius: 8px;
  background: #f7fbfa;
}

.location-picker.checkout-map {
  padding: 16px;
  margin-top: -4px;
}

.location-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.location-picker-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.location-picker-head span,
.location-picker p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.location-picker p {
  margin: 0;
}

.location-map {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(11, 60, 67, 0.16);
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  background:
    radial-gradient(circle at 20% 28%, rgba(20, 164, 147, 0.18), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(248, 107, 92, 0.14), transparent 20%),
    linear-gradient(135deg, rgba(226, 244, 240, 0.96), rgba(247, 247, 242, 0.98));
}

.location-picker.compact .location-map {
  min-height: 160px;
}

.map-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(11, 60, 67, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(11, 60, 67, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.map-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: conic-gradient(#4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
}

.map-road {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(11, 60, 67, 0.08);
}

.map-road.horizontal {
  left: -8%;
  width: 116%;
  height: 18px;
}

.map-road.horizontal.one {
  top: 34%;
  transform: rotate(-7deg);
}

.map-road.horizontal.two {
  top: 68%;
  transform: rotate(9deg);
}

.map-road.vertical {
  top: -10%;
  width: 16px;
  height: 120%;
}

.map-road.vertical.one {
  left: 32%;
  transform: rotate(13deg);
}

.map-road.vertical.two {
  left: 68%;
  transform: rotate(-10deg);
}

.map-pin {
  position: absolute;
  left: 52%;
  top: 48%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50% 50% 50% 8px;
  background: #ea4335;
  box-shadow: 0 12px 28px rgba(90, 34, 28, 0.28);
  transform: translate(-50%, -100%) rotate(-45deg);
  cursor: grab;
}

.map-pin::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--white);
}

.map-pin::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0b8f84;
  font-size: 0.95rem;
  font-weight: 900;
  transform: rotate(45deg);
}

.map-pin:active {
  cursor: grabbing;
}
