:root {
  --black: #0b0907;
  --ink: #18120d;
  --cream: #fff7eb;
  --champagne: #f4dfb8;
  --gold: #c99b3b;
  --gold-bright: #f5c967;
  --muted: rgba(24, 18, 13, .62);
  --card: rgba(255, 250, 241, .9);
  --line: rgba(24, 18, 13, .1);
  --coral: #ff5d68;
  --orange: #ff9b55;
  --mint: #63d7b2;
  --shadow: 0 30px 90px rgba(56, 35, 16, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(245,201,103,.36), transparent 28rem),
    radial-gradient(circle at 90% 14%, rgba(255,93,104,.2), transparent 26rem),
    linear-gradient(145deg, #fff7eb 0%, #f7ead6 48%, #fffaf2 100%);
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}
.hidden { display: none !important; }

.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(245,201,103,.18), transparent 18rem),
    radial-gradient(circle at 50% 110%, rgba(255,93,104,.14), transparent 16rem),
    #050403;
  transition: opacity .55s ease, visibility .55s ease;
}
.boot-splash.done {
  opacity: 0;
  visibility: hidden;
}
.boot-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  width: min(430px, 100%);
  min-height: min(620px, calc(100dvh - 48px));
  text-align: center;
  animation: bootRise .75s cubic-bezier(.2,.8,.2,1) both;
}
.boot-logo-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 146px;
  height: 146px;
  margin-bottom: 8px;
}
.boot-logo-orbit::before,
.boot-logo-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245,201,103,.3);
  border-radius: 50%;
  animation: orbitSpin 4.2s linear infinite;
}
.boot-logo-orbit::after {
  inset: 14px;
  border-color: rgba(255,255,255,.16);
  animation-duration: 3s;
  animation-direction: reverse;
}
.boot-card img {
  position: relative;
  z-index: 1;
  width: 122px;
  height: 122px;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(245,201,103,.34), 0 0 54px rgba(245,201,103,.2);
  animation: logoBreath 2.1s ease-in-out infinite;
}
.boot-card .overline {
  color: var(--gold-bright);
  background: rgba(245,201,103,.14);
}
.boot-card h1 {
  max-width: 360px;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.72rem, 7vw, 2.55rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.01em;
}
.boot-card span {
  color: rgba(255,255,255,.72);
  font-size: .98rem;
  font-weight: 750;
}
.boot-loader {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.boot-loader i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: loaderDot 1.15s ease-in-out infinite;
}
.boot-loader i:nth-child(2) {
  animation-delay: .16s;
}
.boot-loader i:nth-child(3) {
  animation-delay: .32s;
}

.update-banner {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(620px, calc(100% - 24px));
  padding: 12px 14px;
  border: 1px solid rgba(245,201,103,.28);
  border-radius: 22px;
  color: #fff;
  background: rgba(11,9,7,.92);
  box-shadow: 0 24px 70px rgba(11,9,7,.28);
  transform: translate(-50%, -50%);
  animation: updatePop .3s cubic-bezier(.2,.8,.2,1) both;
}
.update-banner div {
  display: grid;
  gap: 2px;
  flex: 1;
}
.update-banner small {
  color: rgba(255,255,255,.72);
}
.update-banner button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--black);
  background: var(--gold-bright);
  font-weight: 950;
}

@media (max-width: 560px) {
  .update-banner {
    top: 50%;
    left: 50%;
    width: min(90vw, 390px);
    max-width: calc(100vw - 24px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    text-align: center;
    transform: translate(-50%, -50%);
  }
  .update-banner strong {
    display: block;
    font-size: .98rem;
    line-height: 1.1;
  }
  .update-banner small {
    display: block;
    margin-top: 3px;
    font-size: .82rem;
    line-height: 1.3;
  }
  .update-banner button {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
  }
}

.stage-glow {
  position: fixed;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .48;
  pointer-events: none;
  animation: glowMove 9s ease-in-out infinite;
}
.glow-gold { left: -7rem; top: 12rem; background: var(--gold-bright); }
.glow-coral { right: -8rem; top: 5rem; background: var(--coral); animation-delay: -3s; }
.glow-mint { left: 42%; bottom: -9rem; background: var(--mint); animation-delay: -6s; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.login-card {
  width: min(560px, 100%);
  padding: clamp(22px, 4vw, 38px);
  border-radius: 34px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,247,235,.82)),
    radial-gradient(circle at 90% 10%, rgba(245,201,103,.35), transparent 16rem);
  box-shadow: var(--shadow);
  animation: zoomRise .48s cubic-bezier(.2,.8,.2,1) both;
}
.login-card .logo-frame {
  width: min(340px, 88%);
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 24px;
}
.login-card .logo-frame img {
  max-height: 74px;
}
.logo-frame {
  display: grid;
  place-items: center;
  width: min(430px, 92%);
  margin: 0 auto 22px;
  padding: 20px 26px;
  border-radius: 28px;
  background: var(--black);
  box-shadow: inset 0 0 0 1px rgba(245,201,103,.38), 0 24px 54px rgba(11,9,7,.2);
}
.logo-frame img {
  width: 100%;
  max-height: 92px;
  object-fit: contain;
}
.logo-frame.small {
  width: 270px;
  margin: 0;
  padding: 12px 18px;
  border-radius: 22px;
}
.overline {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #7a5516;
  background: rgba(245,201,103,.28);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.login-card h1 {
  max-width: 430px;
  margin: 0 auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 850;
  line-height: 1.02;
}
.login-card p {
  max-width: 430px;
  margin: 12px auto 20px;
  color: var(--muted);
  line-height: 1.45;
}
.legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: rgba(83, 65, 45, .72);
  font-size: .82rem;
  font-weight: 800;
}
.legal-links a {
  color: inherit;
  text-decoration: none;
}
.legal-links a:hover {
  color: var(--gold-strong);
}
.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 390px;
  margin: 18px auto 12px;
  border: 1px solid rgba(207,164,74,.18);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255,255,255,.68);
}
.auth-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}
.auth-switch button.active {
  color: #fff;
  background: var(--black);
  box-shadow: 0 12px 24px rgba(11,9,7,.16);
}
.login-form {
  display: grid;
  gap: 10px;
  max-width: 390px;
  margin: 0 auto 14px;
}
.care-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(207,164,74,.18);
  border-radius: 20px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}
.care-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}
.app-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ghost-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-weight: 850;
}
.ghost-button.compact {
  justify-self: end;
  align-self: center;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

input, select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255,255,255,.88);
  outline: none;
}
input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,155,59,.14);
}
.gold-button, .danger-button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 18px 36px rgba(201,155,59,.3);
  transition: transform .2s ease, filter .2s ease;
}
.logout-button {
  min-height: 46px;
  border: 1px solid rgba(11,9,7,.12);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(38,28,16,.08);
}
.logout-button:hover {
  background: #fff;
}
.danger-button {
  background: linear-gradient(135deg, #ff4258, #ff8e78);
}
.gold-button:hover, .danger-button:hover, .hub-card:hover {
  transform: translateY(-4px) scale(1.01);
  filter: saturate(1.08);
}
.full { width: 100%; }
.install-button {
  border: 1px solid rgba(207,164,74,.28);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--gold);
  background: rgba(11,9,7,.78);
  box-shadow: 0 16px 34px rgba(11,9,7,.16);
  font-weight: 900;
  cursor: pointer;
}

.app {
  width: min(1360px, calc(100% - 28px));
  margin: 18px auto 42px;
}
.app-head {
  justify-content: space-between;
  margin-bottom: 18px;
}
.session-pill {
  display: grid;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 0 0 1px var(--line);
}
.session-pill span { color: var(--muted); font-size: .8rem; font-weight: 850; }

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.brand-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 999px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, rgba(11,9,7,.92), rgba(201,155,59,.82), rgba(11,9,7,.92));
  box-shadow: 0 18px 45px rgba(11,9,7,.16);
}
.brand-ribbon span {
  flex: 1 0 auto;
  text-align: center;
  font-weight: 900;
  letter-spacing: .02em;
  animation: ribbonGlow 3s ease-in-out infinite;
}
.brand-ribbon span:nth-child(2) { animation-delay: -.7s; }
.brand-ribbon span:nth-child(3) { animation-delay: -1.4s; }
.brand-ribbon span:nth-child(4) { animation-delay: -2.1s; }
.hero-copy, .recovery-card, .care-companion-card {
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,248,235,.72));
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: clamp(28px, 5vw, 58px);
  animation: slideInLeft .55s cubic-bezier(.2,.8,.2,1) both;
}
.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: .88;
}
.hero-copy p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.selected-procedure {
  display: inline-grid;
  gap: 3px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 0 0 1px var(--line);
}
.selected-procedure span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.selected-procedure strong {
  color: var(--ink);
}
.recovery-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  animation: slideInRight .55s cubic-bezier(.2,.8,.2,1) both;
}
.recovery-card span {
  color: var(--muted);
  font-weight: 900;
}
.care-companion-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  text-align: center;
  animation: slideInRight .55s cubic-bezier(.2,.8,.2,1) both;
}
.care-companion-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  border: 1px solid rgba(207,164,74,.18);
  pointer-events: none;
}
.care-companion-card > span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.care-companion-card h3 {
  position: relative;
  z-index: 1;
  max-width: 280px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: .95;
}
.care-companion-card p {
  position: relative;
  z-index: 1;
  max-width: 270px;
  color: var(--muted);
  line-height: 1.45;
}
.care-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  border-radius: 48px;
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,.96), rgba(255,255,255,.52) 45%, transparent 47%),
    linear-gradient(145deg, rgba(247,203,106,.82), rgba(255,169,156,.55), rgba(151,225,198,.5));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 24px 48px rgba(83,57,25,.18);
  animation: companionFloat 4s ease-in-out infinite;
}
.care-orbit span,
.care-orbit i,
.care-orbit b,
.care-orbit em {
  position: absolute;
  display: block;
  border-radius: 999px;
}
.care-orbit span {
  width: 74px;
  height: 74px;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 1px rgba(207,164,74,.18);
}
.care-orbit span::before {
  content: "DB";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #815b16;
  font-weight: 950;
  letter-spacing: .08em;
}
.care-orbit i {
  width: 126px;
  height: 126px;
  border: 1px dashed rgba(115,83,35,.28);
  animation: calmOrbit 8s linear infinite;
}
.care-orbit b {
  width: 20px;
  height: 20px;
  transform: translate(52px, -46px);
  background: var(--gold-bright);
  box-shadow: -76px 68px 0 rgba(151,225,198,.78), -18px 94px 0 rgba(255,169,156,.78);
  animation: companionDots 3s ease-in-out infinite;
}
.care-orbit em {
  width: 112px;
  height: 112px;
  border: 8px solid transparent;
  border-top-color: rgba(245,201,103,.64);
  border-right-color: rgba(255,169,156,.46);
  animation: calmOrbit 5.4s linear infinite;
}
.calm-meter {
  --calm-score: 0%;
  --calm-color: #75d9b5;
  position: relative;
  display: grid;
  place-items: center;
  width: 166px;
  height: 166px;
  margin: 0 auto;
  border-radius: 46px;
  background:
    radial-gradient(circle at 45% 38%, rgba(255,255,255,.94), rgba(255,255,255,.5) 52%, transparent 54%),
    conic-gradient(var(--calm-color) 0 var(--calm-score), rgba(44,31,24,.08) var(--calm-score) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 22px 46px rgba(83,57,25,.16);
  animation: calmFloat 3.8s ease-in-out infinite;
}
.calm-meter::before,
.calm-meter::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.calm-meter::before {
  width: 118px;
  height: 118px;
  border: 1px solid rgba(188,139,48,.24);
  animation: calmOrbit 6s linear infinite;
}
.calm-meter::after {
  inset: 14px;
  border: 1px dashed rgba(255,255,255,.7);
  opacity: .76;
  animation: calmOrbit 10s linear reverse infinite;
}
.calm-meter[data-tone="good"] { --calm-color: #9edc7a; }
.calm-meter[data-tone="watch"] { --calm-color: #f4c75e; }
.calm-meter[data-tone="alert"] { --calm-color: #ff6f7c; }
.calm-ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 34px;
  background: rgba(255,255,255,.88);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
.calm-ring strong {
  font-size: 2.35rem;
  line-height: 1;
}
.recovery-card p {
  color: var(--muted);
  line-height: 1.45;
}
.score-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}
.score-chip.ok {
  color: #28735c;
  background: rgba(137,220,184,.22);
}
.score-chip.pending {
  color: #936c2d;
  background: rgba(241,202,111,.22);
}

.action-hub {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.hub-card {
  position: relative;
  min-height: 230px;
  border: 0;
  border-radius: 34px;
  padding: 24px;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, filter .22s ease;
  animation: cardFloat 4.8s ease-in-out infinite;
}
.hub-card:nth-child(2) { animation-delay: -1.2s; }
.hub-card:nth-child(3) { animation-delay: -2.4s; }
.hub-card:nth-child(4) { animation-delay: -3.6s; }
.hub-card:nth-child(5) { animation-delay: -4.4s; }
.hub-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 145px;
  height: 145px;
  border-radius: 44px;
  background: rgba(255,255,255,.32);
  transform: rotate(24deg);
}
.hub-card.procedure { background: linear-gradient(135deg, #fff, #f7e6ff); }
.hub-card.appointment-prep { background: linear-gradient(135deg, #fff, #ffe7ef); }
.hub-card.before, .hub-card.calendar { background: linear-gradient(135deg, #fff, #fff0c7); }
.hub-card.surgery-day, .hub-card.checkin { background: linear-gradient(135deg, #fff, #ffe4db); }
.hub-card.postop, .hub-card.learn { background: linear-gradient(135deg, #fff, #e8fff6); }
.hub-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: #fff;
  background: var(--black);
  font-size: 1.8rem;
}
.hub-card strong {
  display: block;
  font-size: 1.5rem;
}
.hub-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.procedure-picker {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 18px;
  align-items: stretch;
}
.procedure-picker label,
.procedure-summary,
.guide-card,
.faq-card,
.support-note {
  border: 1px solid rgba(207,164,74,.16);
  border-radius: 30px;
  padding: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 46px rgba(38,28,16,.08);
}
.procedure-picker label {
  display: grid;
  gap: 10px;
  align-content: start;
}
.procedure-picker label span {
  color: var(--muted);
  font-weight: 900;
}
.procedure-summary {
  display: grid;
  gap: 12px;
}
.procedure-summary .procedure-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  color: #7a5516;
  background: rgba(245,201,103,.28);
  font-weight: 950;
}
.guidance-layout {
  display: grid;
  gap: 18px;
}
.appointment-prep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr);
  gap: 18px;
  align-items: start;
}
.appointment-procedure-card {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  border: 1px solid rgba(207,164,74,.18);
  border-radius: 34px;
  padding: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(245,201,103,.34), transparent 14rem),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,245,229,.8));
  box-shadow: 0 22px 58px rgba(38,28,16,.08);
  animation: slideInUp .42s ease both;
}
.appointment-procedure-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.35vw, 2.2rem);
}
.appointment-procedure-card small {
  color: var(--muted);
  line-height: 1.45;
}
.procedure-dropdown {
  display: grid;
  gap: 10px;
}
.procedure-dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(207,164,74,.28);
  border-radius: 24px;
  padding: 13px 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(255,255,255,.86), transparent 4rem),
    linear-gradient(135deg, rgba(245,201,103,.94), rgba(255,247,228,.94));
  box-shadow: 0 18px 42px rgba(207,164,74,.16);
  text-align: left;
  transition: transform .18s ease, filter .18s ease;
}
.procedure-dropdown-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}
.procedure-dropdown-button span {
  font-size: 1rem;
  font-weight: 950;
}
.procedure-dropdown-button strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: var(--black);
  font-size: .82rem;
}
.procedure-checklist {
  position: relative;
  display: grid;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(207,164,74,.16);
  border-radius: 26px;
  background: rgba(255,255,255,.58);
  transform-origin: top center;
  transition: max-height .24s ease, opacity .18s ease, transform .2s ease, padding .2s ease, border-color .18s ease;
}
.procedure-checklist.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
}
.procedure-check-group {
  display: grid;
  gap: 6px;
}
.procedure-check-group > strong {
  position: sticky;
  top: -6px;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  padding: 10px 12px;
  color: #7a5516;
  background: linear-gradient(135deg, rgba(245,201,103,.92), rgba(255,242,205,.94));
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.procedure-check-group > div {
  display: grid;
  gap: 6px;
}
.procedure-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(207,164,74,.22);
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255,255,255,.74);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.procedure-check:hover {
  transform: translateY(-2px);
  background: #fff;
}
.procedure-check.checked {
  border-color: rgba(207,164,74,.62);
  background: linear-gradient(135deg, rgba(245,201,103,.78), rgba(255,250,238,.96));
}
.procedure-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.procedure-check span {
  flex: 1;
  line-height: 1.22;
}
.prep-steps {
  display: grid;
  gap: 14px;
}
.prep-hero-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(207,164,74,.18);
  border-radius: 32px;
  padding: 24px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(245,201,103,.28), transparent 13rem),
    radial-gradient(circle at 88% 8%, rgba(255,93,104,.22), transparent 12rem),
    linear-gradient(135deg, #21120e, #44301b);
  box-shadow: 0 22px 58px rgba(38,28,16,.16);
  animation: panelEnter .44s cubic-bezier(.2,.8,.2,1) both;
}
.prep-hero-card h3 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(1.8rem, 3.7vw, 3.3rem);
  line-height: .96;
}
.prep-hero-card p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}
.prep-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 13px;
  color: #7a5516;
  background: linear-gradient(135deg, rgba(245,201,103,.95), rgba(255,238,190,.86));
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.prep-capsule.centered {
  margin: 0 auto 8px;
}
.prep-dynamic-grid {
  display: grid;
  gap: 14px;
}
.prep-step-card,
.photo-capture-card,
.photo-card,
.empty-photo-state {
  border: 1px solid rgba(207,164,74,.16);
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 46px rgba(38,28,16,.08);
}
.prep-step-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px;
  overflow: hidden;
  animation: slideInUp .42s ease both;
}
.prep-step-card:nth-child(2) { animation-delay: .07s; }
.prep-step-card:nth-child(3) { animation-delay: .14s; }
.prep-step-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 122px;
  height: 122px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(245,201,103,.26), rgba(255,93,104,.14));
  transform: rotate(24deg);
}
.prep-step-card span {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #7a5516;
  background: rgba(245,201,103,.32);
  font-weight: 950;
  letter-spacing: .08em;
}
.prep-step-card h3,
.photo-capture-head h3 {
  margin: 0;
  font-size: 1.28rem;
}
.prep-step-card p,
.prep-step-card li,
.photo-guide-text p,
.photo-capture-head small,
.empty-photo-state small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.prep-step-card.dynamic {
  gap: 12px;
}
.prep-step-card.dynamic h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}
.prep-step-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.prep-step-card li::marker {
  color: var(--gold);
}
.questions-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(255,93,104,.16), transparent 10rem),
    rgba(255,255,255,.82);
}
.essentials-card {
  background:
    radial-gradient(circle at 6% 0%, rgba(99,215,178,.18), transparent 10rem),
    rgba(255,255,255,.84);
}
.photo-capture-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  animation: panelEnter .46s cubic-bezier(.2,.8,.2,1) both;
}
.photo-capture-head {
  display: grid;
  gap: 8px;
  text-align: center;
  justify-items: center;
}
.photo-capture-head small {
  max-width: 260px;
  text-align: center;
}
.photo-guide-text {
  display: grid;
  gap: 4px;
  border-radius: 24px;
  padding: 14px;
  text-align: center;
  background: rgba(245,201,103,.13);
}
.nexus-photo-status {
  border: 1px solid rgba(207,164,74,.16);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}
.nexus-photo-status.connected {
  color: #1f6b52;
  border-color: rgba(99,215,178,.38);
  background: rgba(232,255,246,.86);
}
.photo-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.photo-action {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(207,164,74,.22);
  border-radius: 22px;
  padding: 10px;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(245,201,103,.32), transparent 6rem),
    rgba(255,255,255,.78);
  font-weight: 950;
  text-align: left;
  box-shadow: 0 12px 30px rgba(207,164,74,.18);
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.photo-action span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #6f4f14;
  background: linear-gradient(135deg, rgba(245,201,103,.9), rgba(255,240,203,.92));
  font-size: .82rem;
}
.photo-action strong {
  line-height: 1.15;
}
.photo-action:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
  background: #fff;
}
.photo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.photo-card {
  position: relative;
  overflow: hidden;
  animation: stepPop .34s ease both;
}
.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1b120e;
}
.photo-card div {
  display: grid;
  gap: 4px;
  padding: 12px 46px 14px 14px;
}
.photo-card strong {
  font-size: .96rem;
}
.photo-card small {
  color: var(--muted);
  font-weight: 800;
}
.photo-card button {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--black);
  font-size: 1.25rem;
}
.empty-photo-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 210px;
  padding: 28px;
  text-align: center;
}
.empty-photo-state span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 28px;
  background: radial-gradient(circle at 35% 24%, rgba(255,255,255,.8), transparent 2rem), var(--gold-bright);
  font-size: 2rem;
  animation: faceBounce 1.6s ease-in-out infinite;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.guide-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 520px;
  overflow: hidden;
  animation: stepPop .45s ease both;
}
.guide-card:nth-child(2) { animation-delay: .08s; }
.guide-card:nth-child(3) { animation-delay: .16s; }
.guide-visual {
  min-height: 150px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 72% 26%, rgba(245,201,103,.52), transparent 7rem),
    linear-gradient(135deg, rgba(11,9,7,.94), rgba(57,39,18,.84));
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  font-size: 2.4rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(245,201,103,.18);
}
.guide-visual svg {
  width: min(200px, 88%);
  height: 144px;
}
.guide-visual rect {
  fill: rgba(255,255,255,.04);
  stroke: rgba(245,201,103,.18);
}
.guide-visual path {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(245,201,103,.22));
}
.guide-card h3,
.faq-card h3,
.support-note h3,
.procedure-summary h3 {
  margin: 0;
  font-size: 1.22rem;
}
.guide-card ul,
.faq-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}
.guide-card p {
  color: rgba(24,18,13,.72);
  line-height: 1.5;
}
.guide-card small {
  display: block;
  margin-top: 2px;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: rgba(24,18,13,.68);
  line-height: 1.45;
  font-weight: 700;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-card {
  display: grid;
  gap: 8px;
}
.support-note {
  display: grid;
  gap: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(245,201,103,.22), transparent 15rem),
    linear-gradient(135deg, rgba(11,9,7,.95), rgba(45,31,16,.92));
}
.support-note p {
  color: rgba(255,255,255,.76);
  line-height: 1.5;
}
.support-note a {
  width: fit-content;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--black);
  text-decoration: none;
  background: var(--gold-bright);
  font-weight: 950;
}
.postop-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.care-path {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  animation: slideInUp .55s ease both;
}
.care-path-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.care-path-title h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .92;
}
.postop-pulse {
  grid-template-columns: 180px 1fr;
  align-items: center;
  justify-items: center;
  text-align: left;
}
.postop-pulse > span,
.postop-pulse > p,
.postop-pulse > .checkin-countdown,
.postop-pulse > .score-signals {
  justify-self: stretch;
}
.postop-pulse .calm-meter {
  grid-row: 1 / span 3;
}
.checkin-countdown {
  justify-self: stretch;
  border-radius: 18px;
  padding: 10px 12px;
  color: #6f4f14;
  background: rgba(245,201,103,.18);
  font-size: .9rem;
  font-weight: 950;
  text-align: center;
}
.checkin-countdown.due {
  color: #8f2631;
  background: rgba(255,111,124,.14);
  animation: alertPulse 1.7s ease-in-out infinite;
}
.care-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.care-step {
  position: relative;
  min-height: 150px;
  border: 1px solid rgba(207,164,74,.16);
  border-radius: 28px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,247,235,.74));
  box-shadow: 0 18px 45px rgba(56,35,16,.08);
  animation: stepPop .5s ease both;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.care-step:hover {
  transform: translateY(-3px);
}
.care-step:nth-child(2) { animation-delay: .06s; }
.care-step:nth-child(3) { animation-delay: .12s; }
.care-step:nth-child(4) { animation-delay: .18s; }
.care-step::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 38px;
  background: rgba(245,201,103,.18);
  transform: rotate(18deg);
}
.care-step button {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}
.care-step .step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #fff;
  background: var(--black);
  font-weight: 950;
}
.care-step strong {
  font-size: 1.05rem;
}
.care-step small {
  color: var(--muted);
  line-height: 1.35;
}
.care-step.done {
  border-color: rgba(99,215,178,.42);
  background: linear-gradient(145deg, rgba(220,255,241,.96), rgba(255,255,255,.84));
  box-shadow: 0 18px 50px rgba(99,215,178,.18);
}
.care-step.active {
  border-color: rgba(245,201,103,.64);
  box-shadow: 0 24px 60px rgba(201,155,59,.18);
}
.care-step.done .step-icon {
  background: var(--mint);
}
.care-step.done strong {
  color: #12724f;
}
.care-step-detail {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-height: 112px;
  border: 1px solid rgba(207,164,74,.2);
  border-radius: 28px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11,9,7,.94), rgba(45,31,16,.9)),
    radial-gradient(circle at 100% 0%, rgba(245,201,103,.24), transparent 16rem);
  color: #fff;
  box-shadow: 0 20px 60px rgba(11,9,7,.18);
  animation: slideInUp .38s ease both;
}
.care-step-detail::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 128px;
  height: 128px;
  border-radius: 40px;
  background: rgba(245,201,103,.13);
  transform: rotate(22deg);
}
.care-step-detail .detail-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 20px;
  color: var(--black);
  background: var(--gold-bright);
  font-weight: 950;
}
.care-step-detail h3 {
  margin: 0 0 5px;
  font-size: 1.22rem;
}
.care-step-detail p {
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}
.care-step-detail small {
  display: block;
  margin-top: 9px;
  color: var(--gold-bright);
  font-weight: 850;
}

.support-lane {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.support-lane article {
  display: grid;
  gap: 9px;
  min-height: 174px;
  border: 1px solid rgba(207,164,74,.16);
  border-radius: 30px;
  padding: 18px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  animation: slideInUp .46s ease both;
}
.support-lane article:nth-child(2) { animation-delay: .08s; }
.support-lane article:nth-child(3) { animation-delay: .16s; }
.support-lane span {
  color: var(--gold);
  font-weight: 950;
}
.support-lane strong {
  font-size: 1.14rem;
}
.support-lane small {
  color: var(--muted);
  line-height: 1.4;
}
.support-lane a,
.support-lane button {
  align-self: end;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  background: var(--black);
  font-weight: 900;
}

.feed-item {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px var(--line);
}
.feed-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 12% 12%, rgba(245,201,103,.32), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(255,93,104,.22), transparent 26rem),
    rgba(11,9,7,.52);
  backdrop-filter: blur(16px);
  overflow: auto;
}
.panel-window {
  min-height: calc(100dvh - clamp(28px, 6vw, 68px));
  border-radius: 40px;
  padding: clamp(20px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,235,.94));
  box-shadow: 0 34px 120px rgba(11,9,7,.28);
  animation: panelEnter .42s cubic-bezier(.2,.8,.2,1) both;
}
.panel-close, .modal-close {
  position: fixed;
  right: clamp(22px, 4vw, 48px);
  top: clamp(22px, 4vw, 48px);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--black);
  font-size: 1.5rem;
}
.panel-title {
  max-width: 760px;
  margin-bottom: 22px;
}
.panel-title h2 {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: .88;
}

.checkin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) 1fr;
  gap: 16px;
  align-items: start;
}
.pain-stage, .checkin-layout label, .calendar-card, .day-drawer, .learn-card, .modal-card {
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.pain-stage {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, var(--pain-soft, rgba(99,215,178,.28)), transparent 12rem),
    rgba(255,255,255,.82);
}
.pain-face {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--pain-color, var(--mint));
  font-size: 4.4rem;
  animation: faceBounce 1.4s ease-in-out infinite;
}
.pain-stage strong {
  font-size: 3.2rem;
}
.pain-stage span {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--pain-color, var(--mint));
  font-weight: 950;
}
.checkin-layout label {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
  font-weight: 850;
}
.checkin-layout label span, .modal-card label span {
  color: var(--ink);
  font-weight: 950;
}
input[type="range"] {
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #63d7b2 0%, #f5c967 45%, #ff9b55 72%, #ff4258 100%);
  appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  width: 32px;
  height: 32px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--pain-color, var(--gold));
  box-shadow: 0 12px 26px rgba(24,18,13,.22);
  appearance: none;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}
.calendar-card, .day-drawer {
  padding: 20px;
  animation: slideInUp .45s ease both;
}
.day-drawer { animation-delay: .08s; }
.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.calendar-top strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.round-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 1.8rem;
}
.weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 950;
  text-align: center;
}
.day {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 9px;
  background: rgba(255,255,255,.72);
  text-align: left;
  transition: transform .18s ease, background .18s ease;
}
.day:hover {
  transform: translateY(-4px);
  background: #fff;
}
.day.selected {
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(201,155,59,.18);
}
.day.outside { opacity: .35; }
.day strong { display: block; }
.event-pill {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #185c49;
  background: rgba(99,215,178,.24);
  font-size: .72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-pill.booked {
  color: #8b4014;
  background: rgba(255,155,85,.26);
}
.slots-list, .doctor-day-summary, .stack-form {
  display: grid;
  gap: 9px;
}
.slot, .doctor-slot {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}
.slot.selected {
  box-shadow: inset 0 0 0 2px var(--gold);
}
.slot.booked { opacity: .55; }
.slot small, .doctor-slot small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.stack-form { margin-top: 12px; }

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.learn-card {
  min-height: 330px;
  padding: 22px;
  animation: slideInUp .42s ease both;
}
.learn-card:nth-child(2) { animation-delay: .08s; }
.learn-card:nth-child(3) { animation-delay: .16s; }
.learn-visual {
  display: grid;
  place-items: center;
  min-height: 128px;
  margin-bottom: 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 22%, rgba(245,201,103,.44), transparent 7rem),
    linear-gradient(135deg, rgba(11,9,7,.94), rgba(55,38,18,.86));
  overflow: hidden;
}
.learn-visual svg {
  width: min(190px, 86%);
  height: 142px;
}
.learn-visual rect {
  fill: rgba(255,255,255,.04);
  stroke: rgba(245,201,103,.18);
}
.learn-visual path {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(245,201,103,.25));
}
.learn-card span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #765214;
  background: rgba(245,201,103,.26);
  font-size: .78rem;
  font-weight: 950;
}
.learn-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}
.learn-card small {
  display: block;
  margin-top: 12px;
  color: rgba(24,18,13,.72);
  line-height: 1.5;
}
.content-uploader {
  display: grid;
  grid-template-columns: 1fr 160px auto;
  gap: 10px;
  margin-top: 16px;
}

dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
}
dialog::backdrop {
  background: rgba(11,9,7,.36);
  backdrop-filter: blur(12px);
}
.modal-card {
  width: min(520px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  padding: 26px;
}
.modal-close { position: absolute; }
.time-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-card label {
  display: grid;
  gap: 7px;
}

.care-campaign-modal {
  z-index: 10070;
  display: grid;
  place-items: center;
}
.care-campaign-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  width: min(520px, calc(100vw - 28px));
  padding: clamp(22px, 5vw, 34px);
  border-radius: 34px;
  color: var(--ink);
  background:
    radial-gradient(circle at 96% 8%, rgba(255,93,104,.22), transparent 12rem),
    radial-gradient(circle at 2% 100%, rgba(99,215,178,.18), transparent 11rem),
    linear-gradient(145deg, rgba(255,252,247,.98), rgba(255,242,216,.96));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 34px 110px rgba(24,18,13,.28);
  animation: campaignPop .42s cubic-bezier(.2,.8,.2,1) both;
}
.care-campaign-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(245,201,103,.22);
  pointer-events: none;
}
.care-campaign-card .modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--black);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 26px rgba(24,18,13,.1);
}
.care-campaign-image {
  overflow: hidden;
  min-height: 170px;
  max-height: 260px;
  border-radius: 26px;
  background: rgba(245,201,103,.18);
}
.care-campaign-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.care-campaign-image.pdf {
  display: grid;
  place-items: center;
  min-height: 170px;
  color: #704605;
  background:
    radial-gradient(circle at 16% 12%, rgba(255,93,104,.18), transparent 8rem),
    linear-gradient(135deg, rgba(245,201,103,.34), rgba(255,255,255,.72));
}
.care-campaign-image.pdf span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  font-weight: 950;
}
.care-campaign-card h2 {
  max-width: 420px;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: .95;
}
.care-campaign-card p {
  position: relative;
  z-index: 1;
  max-width: 430px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 760;
}
.care-campaign-card .gold-button {
  position: relative;
  z-index: 1;
  width: fit-content;
  text-decoration: none;
}

@keyframes campaignPop {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.doctor-monitor {
  display: grid;
  gap: 18px;
}
.doctor-monitor-head,
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.doctor-monitor-head h3,
.timeline-head h3 {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
}
.danger-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff4258, #ff8e78);
  box-shadow: 0 14px 34px rgba(255,66,88,.28);
  font-weight: 900;
  cursor: pointer;
  animation: sosPulse 1.7s ease-in-out infinite;
}
.doctor-alerts-list,
.patient-timeline {
  display: grid;
  gap: 12px;
}
.doctor-alert-card,
.patient-row,
.empty-state {
  border: 1px solid rgba(207,164,74,.18);
  border-radius: 26px;
  padding: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 46px rgba(38,28,16,.08);
}
.doctor-alert-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  animation: slideInLeft .48s ease both;
}
.doctor-alert-card:nth-child(even) {
  animation-name: slideInRight;
}
.alert-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff4258, #ff8e78);
  font-weight: 950;
  box-shadow: 0 0 0 10px rgba(255,66,88,.12);
  animation: alertPulse 1.1s ease-in-out infinite;
}
.doctor-alert-card strong,
.patient-row strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}
.doctor-alert-card p,
.patient-row p {
  margin: 4px 0 0;
  color: var(--muted);
}
.doctor-alert-card small,
.patient-row small,
.empty-state small {
  color: var(--muted);
}
.patient-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  animation: slideInUp .44s ease both;
}
.patient-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--pain-soft, rgba(245,201,103,.24));
  font-size: 1.8rem;
}
.pain-chip {
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  background: var(--pain-color, #f5c967);
  font-weight: 900;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}
body:not(.entered) .floating-actions {
  display: none;
}
.whatsapp-button,
.sos-button {
  pointer-events: auto;
}
.whatsapp-button {
  display: grid;
  gap: 1px;
  min-width: 152px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  padding: 13px 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #20c86f, #0f9f59);
  box-shadow: 0 16px 38px rgba(15,159,89,.25);
  animation: slideInRight .5s ease both;
}
.whatsapp-button span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .82;
}
.whatsapp-button strong {
  font-size: .96rem;
}
.sos-button {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff4258, #ff8e78);
  box-shadow: 0 0 0 12px rgba(255,66,88,.12), 0 18px 42px rgba(255,66,88,.28);
  font-weight: 950;
  animation: sosPulse 1.5s ease-in-out infinite;
}
.alarm-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255,66,88,.18);
  backdrop-filter: blur(12px);
}
.alarm-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 34px;
  text-align: center;
  background: #fff;
  box-shadow: 0 34px 120px rgba(255,66,88,.28);
  animation: alertPulse 1s ease-in-out infinite;
}
.alarm-card span {
  display: inline-grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-weight: 950;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 100;
  width: fit-content;
  max-width: min(430px, calc(100% - 34px));
  padding: 11px 16px;
  border-radius: 999px;
  color: #2a1b12;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,246,226,.95));
  border: 1px solid rgba(201,161,88,.26);
  box-shadow: 0 14px 38px rgba(24,18,10,.16);
  font-size: .88rem;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 18px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

body.modal-open {
  overflow: hidden;
}

.appointment-request-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 28px);
  background:
    radial-gradient(circle at 50% 18%, rgba(137, 220, 184, .26), transparent 18rem),
    rgba(11, 9, 7, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.appointment-request-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.appointment-request-card {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: min(84dvh, 720px);
  overflow: auto;
  display: grid;
  gap: 13px;
  padding: clamp(20px, 5vw, 30px);
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 84% 8%, rgba(245, 201, 103, .22), transparent 9rem),
    linear-gradient(155deg, rgba(255,255,255,.98), rgba(255,248,234,.97));
  border: 1px solid rgba(201,161,88,.24);
  box-shadow: 0 30px 95px rgba(11,9,7,.28);
  transform: translateY(16px) scale(.98);
  transition: transform .22s ease;
}
.appointment-request-modal.visible .appointment-request-card {
  transform: translateY(0) scale(1);
}
.appointment-request-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--black);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(11,9,7,.2);
}
.request-success-orb {
  width: 74px;
  height: 74px;
  margin: 2px auto 0;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: #1b120c;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 18px 34px rgba(201,155,59,.24);
  font-size: 2.1rem;
  font-weight: 950;
}
.appointment-request-card h2 {
  margin: 0;
  padding: 0 30px;
  font-size: clamp(1.85rem, 8vw, 3rem);
  line-height: .96;
  letter-spacing: -.02em;
}
.appointment-request-card p {
  max-width: 390px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.45;
}
.request-summary-card,
.request-next-steps {
  display: grid;
  gap: 7px;
  padding: 15px;
  border-radius: 22px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(201,161,88,.14);
  text-align: left;
}
.request-summary-card strong {
  color: var(--ink);
}
.request-summary-card small,
.request-next-steps span {
  color: var(--muted);
  line-height: 1.35;
}
.request-next-steps b {
  color: #8a5e19;
}
.request-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.request-actions a {
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1b120c;
  text-decoration: none;
  font-weight: 950;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(201,161,88,.2);
}

@media (max-width: 560px) {
  .appointment-request-modal {
    padding: 12px;
  }
  .appointment-request-card {
    width: min(94vw, 520px);
    max-height: 82dvh;
    border-radius: 28px;
    gap: 11px;
  }
  .appointment-request-card h2 {
    padding: 0 24px;
  }
  .request-success-orb {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }
}

@keyframes zoomRise {
  from { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes bootRise {
  from { opacity: 0; transform: translateY(30px) scale(.92); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes logoBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 1px rgba(245,201,103,.34), 0 0 54px rgba(245,201,103,.24); }
  50% { transform: scale(1.055); box-shadow: 0 0 0 8px rgba(245,201,103,.08), 0 0 76px rgba(245,201,103,.34); }
}
@keyframes orbitSpin {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.015); }
}
@keyframes loaderDot {
  0%, 100% { transform: translateY(0) scale(.82); opacity: .55; }
  50% { transform: translateY(-8px) scale(1.08); opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-38px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(38px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes panelEnter {
  from { opacity: 0; transform: translateY(46px) scale(.97); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-9px) rotate(.45deg); }
}
@keyframes calmFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); filter: saturate(1); }
  50% { transform: translateY(-8px) rotate(1deg); filter: saturate(1.08); }
}
@keyframes calmOrbit {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.03); }
}
@keyframes companionFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes companionDots {
  0%, 100% { opacity: .72; transform: translate(52px, -46px) scale(.9); }
  50% { opacity: 1; transform: translate(46px, -52px) scale(1.08); }
}
@keyframes faceBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}
@keyframes glowMove {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(24px,-18px,0) scale(1.08); }
}
@keyframes ribbonGlow {
  0%, 100% { opacity: .78; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}
@keyframes stepPop {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sosPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,66,88,.22); }
  50% { box-shadow: 0 0 0 16px rgba(255,66,88,0); }
}

@media (max-width: 980px) {
  .hero-board, .action-hub, .calendar-layout, .checkin-layout, .learn-grid, .care-steps, .support-lane, .procedure-picker, .guide-grid, .postop-actions, .appointment-prep-layout, .appointment-procedure-card {
    grid-template-columns: 1fr;
  }
  .app-head {
    align-items: stretch;
    flex-direction: column;
  }
  .logo-frame.small {
    width: min(340px, 100%);
  }
}

@media (max-width: 680px) {
  .dreambot-launchpad { padding: 16px; border-radius: 24px; margin-top: 8px; }
  .dreambot-launchpad-copy h2 { font-size: 1.2rem; }
  .dreambot-launchpad-actions { align-items: flex-start; }
  .dreambot-message { max-width: 96%; }
  .dreambot-form { grid-template-columns: 1fr; }
  .dreambot-form button { width: 100%; }
  .dreambot-messages { min-height: 350px; max-height: 50vh; }
  .dreambot-hero { align-items: flex-start; }
  .dreambot-speech { font-size: .88rem; max-width: 160px; }
}


/* =========================
   DreamBot V47 - versión corregida
   ========================= */

/* Hero más balanceado: texto + botón DreamBot + animación original */
.hero-board {
  grid-template-columns: minmax(0, .95fr) minmax(210px, .55fr) minmax(250px, .72fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.hero-copy {
  padding: clamp(22px, 3vw, 36px) !important;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 4rem) !important;
}
.hero-copy p {
  max-width: 540px !important;
}
.compact-care-card {
  min-width: 0;
}
.compact-care-card .care-orbit {
  transform: scale(.88);
}
.compact-care-card h3 {
  font-size: 1.2rem;
}

/* Botón premium de DreamBot, no bloque gigante */
.dreambot-action-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 18%, rgba(248, 215, 137, .34), transparent 7rem),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,247,229,.94) 62%, rgba(247,241,255,.9));
  border: 1px solid rgba(201,161,88,.28);
  box-shadow: 0 20px 48px rgba(22,15,8,.10);
  cursor: pointer;
  overflow: hidden;
  min-height: 230px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.dreambot-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 56px rgba(22,15,8,.14);
}
.dreambot-action-top {
  display: grid;
  gap: 12px;
}
.dreambot-action-card h3 {
  margin: 4px 0 4px;
  font-size: 1.45rem;
}
.dreambot-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: .95rem;
}
.gold-button.compact {
  min-height: auto;
  padding: 10px 14px;
  border-radius: 999px;
  width: fit-content;
}

/* Robot mini animado */
.dreambot-mini-robot,
.dreambot-chat-robot {
  width: 74px;
  height: 86px;
  position: relative;
  animation: dreambotMiniFloat 3.1s ease-in-out infinite;
}
.dreambot-mini-antenna {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #f6dda0, #b4852e);
}
.dreambot-mini-antenna::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8dd, #d7aa49 72%);
  box-shadow: 0 0 0 6px rgba(215,170,73,.12);
}
.dreambot-mini-face {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 68px;
  height: 52px;
  transform: translateX(-50%);
  border-radius: 22px;
  background: linear-gradient(180deg, #1a1714, #33271c);
  box-shadow: 0 14px 26px rgba(24,16,8,.22);
}
.dreambot-mini-face::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 17px;
  background: linear-gradient(180deg, #fff4d9, #e9d0a1);
}
.dreambot-mini-face span {
  position: absolute;
  z-index: 1;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #f0cb70 35%, #a97820 80%);
  box-shadow: 0 0 10px rgba(240,203,112,.6);
  animation: dreambotMiniBlink 6s infinite;
}
.dreambot-mini-face span:first-child { left: 20px; }
.dreambot-mini-face span:nth-child(2) { right: 20px; }
.dreambot-mini-face i {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 11px;
  width: 22px;
  height: 11px;
  transform: translateX(-50%);
  border-bottom: 3px solid #f2d184;
  border-radius: 0 0 18px 18px;
}
.dreambot-mini-body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8f0df, #dcbf82);
  box-shadow: 0 12px 20px rgba(48,31,13,.14);
}
.dreambot-chat-robot {
  transform: scale(.92);
  transform-origin: left center;
}

/* Chat pequeño y armonioso */
.panel-backdrop.dreambot-mode {
  display: grid !important;
  place-items: center !important;
  padding: 18px !important;
}
.panel-backdrop.dreambot-mode .panel-window {
  width: min(94vw, 430px) !important;
  min-height: unset !important;
  max-height: min(86dvh, 680px) !important;
  padding: 12px !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  background: linear-gradient(155deg, rgba(255,255,255,.99), rgba(255,248,235,.96)) !important;
  box-shadow: 0 28px 90px rgba(11,9,7,.26) !important;
}
.panel-backdrop.dreambot-mode .panel-close {
  position: absolute !important;
  right: 16px !important;
  top: 16px !important;
  width: 36px !important;
  height: 36px !important;
  z-index: 10 !important;
}
.dreambot-panel-compact {
  padding: 0 !important;
}
.dreambot-compact-shell {
  display: grid;
  gap: 10px;
}
.dreambot-compact-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px 46px 13px 13px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18,14,10,.98), rgba(60,43,20,.94));
  color: #fff8e6;
}
.dreambot-compact-head .overline {
  color: #f3d27e;
  margin: 0;
}
.dreambot-compact-head h2 {
  margin: 3px 0 0;
  font-size: 1.12rem;
}
.dreambot-suggestions.compact {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dreambot-suggestions.compact button {
  border: 1px solid rgba(201,161,88,.30);
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: .78rem;
  font-weight: 800;
  color: #5a421c;
}
.dreambot-messages.compact,
.dreambot-messages {
  min-height: 250px !important;
  max-height: 36dvh !important;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  padding: 11px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(12,10,8,.04), rgba(201,161,88,.10)) !important;
  border: 1px solid rgba(201,161,88,.18) !important;
}
.dreambot-message {
  max-width: 92% !important;
}
.dreambot-message div {
  line-height: 1.46 !important;
  padding: 10px 12px !important;
  border-radius: 18px !important;
  font-size: .92rem !important;
}
.dreambot-form.compact,
.dreambot-form {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 7px !important;
  padding: 8px !important;
  border-radius: 21px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(201,161,88,.22) !important;
}
.dreambot-form input {
  padding: 10px 8px !important;
  font-size: .93rem !important;
}
.dreambot-disclaimer.compact,
.dreambot-disclaimer {
  font-size: .72rem !important;
  line-height: 1.3 !important;
  color: var(--muted) !important;
  text-align: center !important;
}

@keyframes dreambotMiniFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes dreambotMiniBlink {
  0%, 46%, 52%, 100% { transform: scaleY(1); }
  48%, 50% { transform: scaleY(.12); }
}

@media (max-width: 900px) {
  .hero-board {
    grid-template-columns: 1fr !important;
  }
  .dreambot-action-card {
    min-height: auto;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .dreambot-action-top {
    grid-template-columns: 78px 1fr;
    align-items: center;
  }
  .compact-care-card {
    display: none;
  }
}
@media (max-width: 560px) {
  .dreambot-action-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .dreambot-action-top {
    grid-template-columns: 70px 1fr;
  }
  .panel-backdrop.dreambot-mode .panel-window {
    width: min(96vw, 420px) !important;
    max-height: 88dvh !important;
  }
  .dreambot-form.compact,
  .dreambot-form {
    grid-template-columns: 1fr !important;
  }
  .dreambot-form button {
    width: 100% !important;
  }
}


/* DreamBot V48: ajuste de caja del chat para no cortar la barra de texto */
.panel-backdrop.dreambot-mode .panel-window {
  max-height: min(92dvh, 720px) !important;
  overflow: visible !important;
}
.dreambot-compact-shell {
  max-height: calc(92dvh - 32px);
  overflow: hidden;
}
.dreambot-messages.compact,
.dreambot-messages {
  min-height: 220px !important;
  max-height: clamp(250px, 42dvh, 390px) !important;
}
.dreambot-form.compact,
.dreambot-form {
  margin-bottom: 2px !important;
}
@media (max-width: 560px) {
  .panel-backdrop.dreambot-mode {
    padding: 10px !important;
  }
  .panel-backdrop.dreambot-mode .panel-window {
    width: min(96vw, 430px) !important;
    max-height: 92dvh !important;
  }
  .dreambot-compact-shell {
    max-height: calc(92dvh - 24px);
  }
  .dreambot-messages.compact,
  .dreambot-messages {
    min-height: 230px !important;
    max-height: 40dvh !important;
  }
  .dreambot-compact-head {
    grid-template-columns: 64px 1fr;
    padding: 12px 44px 12px 11px;
  }
}


/* V51 agenda limpia y preparada para pre-cita */
.hub-card.main-agenda {
  background: linear-gradient(135deg, #fff, #f8edd1 52%, #eefaf6);
}
.agenda-clean-layout {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
.agenda-calendar-card {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.agenda-helper {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: .92rem;
}
.appointments-clean-block {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.appointments-accordion {
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(201,161,88,.16);
  box-shadow: 0 18px 42px rgba(24,18,10,.08);
  overflow: hidden;
}
.appointments-accordion-head {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,230,.92));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  text-align: left;
  color: var(--black);
}
.appointments-accordion-head strong {
  display: block;
  margin: 3px 0;
  font-size: 1rem;
}
.appointments-accordion-head small {
  color: var(--muted);
}
.appointments-chevron {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(201,161,88,.16);
  transition: transform .2s ease;
}
.appointments-accordion.open .appointments-chevron {
  transform: rotate(180deg);
}
.appointments-accordion-body {
  display: none;
  padding: 0 16px 16px;
}
.appointments-accordion.open .appointments-accordion-body {
  display: grid;
  gap: 12px;
}
.my-appointments-head.compact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
}
.appointment-refresh-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--black);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(24,18,10,.18);
}
.appointment-group {
  display: grid;
  gap: 8px;
}
.appointment-group > span {
  font-weight: 950;
  color: #6c5226;
}
.appointment-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 13px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(201,161,88,.14);
}
.appointment-note {
  grid-column: 1 / -1;
  color: var(--muted);
}
.appointment-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .84rem;
}
.appointment-status {
  border-radius: 999px;
  padding: 6px 9px;
  font-weight: 900;
  font-size: .75rem;
  background: rgba(201,161,88,.16);
}
@media (max-width: 760px) {
  .calendar-card, .day-drawer {
    padding: 14px !important;
  }
  .calendar-top strong {
    font-size: 1.25rem !important;
  }
  .weekdays, .calendar-grid {
    gap: 5px !important;
  }
  .day {
    min-height: 82px !important;
    padding: 7px !important;
  }
  .event-pill {
    font-size: .65rem !important;
    padding: 3px 5px !important;
  }
  .my-appointments-head.compact {
    grid-template-columns: 1fr;
  }
  .appointment-refresh-button {
    width: 100%;
  }
  .appointment-card {
    grid-template-columns: 1fr;
  }
}

/* V51 cámara guiada con silueta */
.guided-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11,9,7,.58);
  backdrop-filter: blur(14px);
}
.guided-photo-card {
  width: min(94vw, 430px);
  max-height: 92dvh;
  overflow: auto;
  border-radius: 30px;
  padding: 14px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(255,247,232,.96));
  box-shadow: 0 28px 90px rgba(11,9,7,.28);
  position: relative;
  display: grid;
  gap: 12px;
}
.guided-photo-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 1.4rem;
  z-index: 2;
}
.guided-photo-head {
  padding-right: 42px;
}
.guided-photo-head h2 {
  margin: 3px 0;
  font-size: 1.2rem;
}
.guided-photo-head small, .guided-photo-note {
  color: var(--muted);
}
.guided-camera-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(201,161,88,.14), transparent 10rem),
    linear-gradient(135deg, #1b1711, #3a2b15);
}
.guided-camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide-silhouette {
  position: absolute;
  inset: 8%;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.guide-silhouette::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255,255,255,.72);
  box-shadow: 0 0 0 999px rgba(0,0,0,.18), 0 0 24px rgba(255,255,255,.22);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.guide-silhouette.face::before {
  border-radius: 48% 48% 42% 42% / 38% 38% 54% 54%;
  inset: 6% 18% 26%;
}
.guide-silhouette.body::before {
  border-radius: 42% 42% 28% 28% / 24% 24% 18% 18%;
  inset: 7% 10% 8%;
}
.guided-photo-modal.aligned .guide-silhouette::before {
  border-color: #d7ac54;
  box-shadow: 0 0 0 999px rgba(0,0,0,.12), 0 0 28px rgba(215,172,84,.55);
}
.guide-face, .guide-shoulders, .guide-body, .guide-waist {
  display: none;
}
.guided-photo-status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(11,9,7,.74);
  color: #fff8e6;
  font-weight: 900;
  font-size: .82rem;
}
.guided-photo-modal.aligned .guided-photo-status {
  background: rgba(111,80,20,.9);
}
.guided-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .guided-photo-card {
    width: 96vw;
    padding: 12px;
  }
  .guided-photo-actions {
    grid-template-columns: 1fr;
  }
}


/* V52 refinamiento ADN Dreambody */
.login-subtitle {
  margin: -4px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}
.boot-logo-orbit, .care-orbit, .dreambot-mini-robot {
  animation: dreamSoftFloat 4.8s ease-in-out infinite;
}
.hero-copy, .dreambot-action-card, .compact-care-card, .hub-card {
  animation: dreamReveal .55s ease both;
}
.hub-card:nth-child(2) { animation-delay: .04s; }
.hub-card:nth-child(3) { animation-delay: .08s; }
.hub-card:nth-child(4) { animation-delay: .12s; }
.hub-card:nth-child(5) { animation-delay: .16s; }
.hub-card:hover {
  transform: translateY(-4px) scale(1.01);
}
.gold-button, .install-button, .appointment-refresh-button {
  position: relative;
  overflow: hidden;
}
.gold-button::after, .install-button::after, .appointment-refresh-button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 45%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  opacity: 0;
}
.gold-button:hover::after, .install-button:hover::after, .appointment-refresh-button:hover::after {
  animation: dreamShimmer .9s ease;
}
@keyframes dreamSoftFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes dreamReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dreamShimmer {
  0% { left: -55%; opacity: 0; }
  30% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* Notificaciones compactas */
.notification-consent-modal {
  display: grid;
  place-items: center;
  padding: 18px;
}
.notification-consent-modal.hidden {
  display: none;
}
.notification-consent-card.compact {
  width: min(92vw, 360px);
  border-radius: 28px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(255,247,232,.96));
  border: 1px solid rgba(201,161,88,.24);
  box-shadow: 0 24px 70px rgba(11,9,7,.22);
}
.notification-consent-card.compact h2 {
  font-size: 1.22rem;
  margin: 6px 0 8px;
}
.notification-consent-card.compact p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.45;
}
.notify-mini-orb {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  margin: 4px auto 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #17110b, #4e3616);
  color: #f3d27e;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(24,18,10,.18);
}
.notification-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 420px) {
  .notification-consent-actions {
    grid-template-columns: 1fr;
  }
}

/* V52 siluetas específicas */
.guided-photo-modal.face-front .guide-silhouette::before {
  border-radius: 48% 48% 42% 42% / 38% 38% 54% 54%;
  inset: 5% 18% 24%;
}
.guided-photo-modal.face-profile-right .guide-silhouette::before,
.guided-photo-modal.face-profile-left .guide-silhouette::before {
  border-radius: 52% 35% 48% 42% / 38% 36% 55% 55%;
  inset: 5% 18% 23%;
}
.guided-photo-modal.face-profile-left .guide-silhouette::before {
  transform: scaleX(-1);
}
.guided-photo-modal.face-profile-right .guide-nose,
.guided-photo-modal.face-profile-left .guide-nose {
  display: block;
  position: absolute;
  top: 35%;
  right: 21%;
  width: 28px;
  height: 18px;
  border-top: 3px solid rgba(255,255,255,.74);
  border-right: 3px solid rgba(255,255,255,.74);
  border-radius: 0 14px 8px 0;
}
.guided-photo-modal.face-profile-left .guide-nose {
  right: auto;
  left: 21%;
  transform: scaleX(-1);
}
.guided-photo-modal.aligned .guide-nose {
  border-color: #d7ac54;
}
.guided-photo-modal.body-front .guide-silhouette::before {
  border-radius: 44% 44% 30% 30% / 20% 20% 18% 18%;
  inset: 7% 12% 7%;
}
.guided-photo-modal.body-side .guide-silhouette::before {
  border-radius: 38% 52% 34% 44% / 18% 24% 18% 22%;
  inset: 7% 24% 7% 26%;
}
.guided-photo-modal.body-back .guide-silhouette::before {
  border-radius: 42% 42% 30% 30% / 18% 18% 20% 20%;
  inset: 7% 12% 7%;
  border-style: dashed;
}
.guided-photo-modal.torso-front .guide-silhouette::before {
  border-radius: 44% 44% 34% 34% / 22% 22% 18% 18%;
  inset: 8% 14% 20%;
}
.guide-shoulders, .guide-waist, .guide-hips {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-top: 2px solid rgba(255,255,255,.5);
}
.guided-photo-modal.aligned .guide-shoulders,
.guided-photo-modal.aligned .guide-waist,
.guided-photo-modal.aligned .guide-hips {
  border-color: rgba(215,172,84,.8);
}
.guided-photo-modal.body-front .guide-shoulders,
.guided-photo-modal.body-back .guide-shoulders,
.guided-photo-modal.body-side .guide-shoulders,
.guided-photo-modal.torso-front .guide-shoulders {
  top: 23%;
  width: 62%;
}
.guided-photo-modal.body-front .guide-waist,
.guided-photo-modal.body-back .guide-waist,
.guided-photo-modal.body-side .guide-waist {
  top: 50%;
  width: 38%;
}
.guided-photo-modal.body-front .guide-hips,
.guided-photo-modal.body-back .guide-hips,
.guided-photo-modal.body-side .guide-hips {
  top: 67%;
  width: 50%;
}
.guided-photo-actions {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 520px) {
  .guided-photo-actions {
    grid-template-columns: 1fr;
  }
}


/* V55 Simulador referencial facial y corporal */
.hub-card.simulator {
  background: linear-gradient(135deg, #fff, #fff2db 52%, #f2eefc);
}
.panel-subtitle {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 760px;
  line-height: 1.55;
}
.simulator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
.simulator-stage-card,
.simulator-controls {
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,161,88,.14);
}
.simulator-stage-card {
  padding: 16px;
}
.simulator-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.simulator-canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,248,235,.92), rgba(236,221,193,.8));
  min-height: 320px;
}
#simulatorCanvas {
  max-width: 100%;
  border-radius: 24px;
  display: block;
}
.simulator-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.simulator-empty span {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #15100a, #4a3415);
  color: #f3d27e;
  font-size: 1.6rem;
  box-shadow: 0 16px 36px rgba(24,18,10,.18);
}
.simulator-empty strong {
  color: var(--black);
  font-size: 1.05rem;
}
.simulator-toggle {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: rgba(20,15,9,.06);
}
.simulator-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: transparent;
  font-weight: 950;
  color: var(--muted);
}
.simulator-toggle button.active {
  background: var(--black);
  color: #fff8e8;
  box-shadow: 0 10px 22px rgba(24,18,10,.18);
}
.simulator-controls {
  padding: 16px;
  display: grid;
  gap: 14px;
}
.simulator-controls label {
  display: grid;
  gap: 7px;
}
.simulator-controls label span {
  font-weight: 950;
  color: var(--black);
}
.simulator-controls select,
.simulator-controls input[type="range"] {
  width: 100%;
}
.simulator-controls select {
  border: 1px solid rgba(201,161,88,.22);
  background: rgba(255,255,255,.86);
  border-radius: 16px;
  padding: 12px;
  font-weight: 800;
}
.simulator-controls input[type="range"] {
  accent-color: #c9a158;
}
.simulator-disclaimer,
.simulator-tip {
  padding: 13px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,248,236,.94), rgba(255,255,255,.84));
  border: 1px solid rgba(201,161,88,.14);
  display: grid;
  gap: 4px;
}
.simulator-disclaimer strong,
.simulator-tip strong {
  color: #6c5226;
}
.simulator-disclaimer small,
.simulator-tip small {
  color: var(--muted);
  line-height: 1.4;
}
.simulator-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.simulator-presets button {
  border: 1px solid rgba(201,161,88,.24);
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 9px 8px;
  font-weight: 900;
  color: #5c4218;
}
@media (max-width: 900px) {
  .simulator-shell {
    grid-template-columns: 1fr;
  }
  .simulator-controls {
    order: -1;
  }
}
@media (max-width: 560px) {
  .simulator-stage-card,
  .simulator-controls {
    border-radius: 24px;
    padding: 12px;
  }
  .simulator-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .simulator-toolbar button {
    width: 100%;
  }
  .simulator-presets {
    grid-template-columns: 1fr;
  }
  .simulator-canvas-wrap {
    min-height: 260px;
  }
}



/* V56: cámara directa sin siluetas */
.guided-photo-modal,
.guide-silhouette,
.guide-svg {
  display: none !important;
}
.photo-action {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.photo-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(24,18,10,.12);
  border-color: rgba(201,161,88,.34);
}
.photo-guide-text p::after {
  content: " No necesitas encajar en ninguna silueta.";
  font-weight: 800;
  color: #7a5a22;
}
@media (max-width: 560px) {
  .photo-actions {
    grid-template-columns: 1fr !important;
  }
  .photo-action {
    width: 100%;
  }
}


/* V57: simulador con cámara e instrucciones por procedimiento */
.simulator-toolbar {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
}
.simulator-instructions {
  padding: 13px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20,15,9,.94), rgba(67,47,20,.92));
  color: #fff8e8;
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 30px rgba(24,18,10,.14);
}
.simulator-instructions strong {
  color: #f3d27e;
}
.simulator-instructions ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}
.simulator-instructions li {
  line-height: 1.35;
}
.simulator-tip {
  border-color: rgba(201,161,88,.28);
}
#simCameraButton {
  min-width: 135px;
}
@media (max-width: 720px) {
  .simulator-toolbar {
    grid-template-columns: 1fr;
  }
  #simCameraButton,
  #simUploadButton,
  #simResetButton {
    width: 100%;
  }
}


/* V58: botón Tomar foto visible en Simulador */
.sim-camera-main {
  min-width: 150px;
  font-size: .95rem;
}
.simulator-toolbar {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr auto !important;
  gap: 10px !important;
}
@media (max-width: 720px) {
  .simulator-toolbar {
    grid-template-columns: 1fr !important;
  }
  .simulator-toolbar button {
    width: 100% !important;
  }
}


/* V59: botón de cámara visible dentro del simulador */
.sim-empty-camera {
  margin-top: 12px;
  width: min(100%, 280px);
  justify-self: center;
  font-size: .98rem;
}
.sim-bottom-camera {
  margin-top: 12px;
  display: block;
}
.simulator-empty {
  z-index: 2;
}
.simulator-toolbar #simCameraButton {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (max-width: 560px) {
  .sim-empty-camera,
  .sim-bottom-camera {
    width: 100% !important;
  }
}


/* V60: Tomar foto abre cámara real; Elegir de galería abre documentos */
.simulator-toolbar-separated {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr auto !important;
  gap: 10px !important;
}
.sim-camera-main,
.sim-empty-camera,
.sim-bottom-camera {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
}
.simulator-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10,8,6,.66);
  backdrop-filter: blur(14px);
}
.simulator-camera-card {
  width: min(94vw, 430px);
  border-radius: 30px;
  padding: 14px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(255,247,232,.96));
  box-shadow: 0 28px 90px rgba(11,9,7,.28);
  position: relative;
  display: grid;
  gap: 12px;
}
.simulator-camera-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 1.4rem;
  z-index: 2;
}
.simulator-camera-head {
  padding-right: 44px;
}
.simulator-camera-head h2 {
  margin: 4px 0;
  font-size: 1.2rem;
}
.simulator-camera-head small {
  color: var(--muted);
  line-height: 1.45;
}
.simulator-camera-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b1711, #3a2b15);
}
.simulator-camera-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.simulator-camera-status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(11,9,7,.74);
  color: #fff8e6;
  font-weight: 900;
  font-size: .82rem;
  white-space: nowrap;
}
.simulator-camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px) {
  .simulator-toolbar-separated {
    grid-template-columns: 1fr !important;
  }
  .simulator-toolbar-separated button {
    width: 100% !important;
  }
}
@media (max-width: 520px) {
  .simulator-camera-card {
    width: 96vw;
    border-radius: 26px;
  }
  .simulator-camera-actions {
    grid-template-columns: 1fr;
  }
}


/* V61: corrección fuerte del botón de cámara del simulador */
.camera-fixed-v61 {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr auto !important;
  gap: 10px !important;
  align-items: stretch !important;
}
#simCameraButton.sim-camera-main,
#simCameraButton {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 170px !important;
  background: linear-gradient(135deg, #e3b348, #f6d26f) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 950 !important;
  box-shadow: 0 14px 28px rgba(201,161,88,.28) !important;
}
#simUploadButton::before {
  content: "🖼️ ";
}
.simulator-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10,8,6,.66);
  backdrop-filter: blur(14px);
}
.simulator-camera-card {
  width: min(94vw, 430px);
  border-radius: 30px;
  padding: 14px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(255,247,232,.96));
  box-shadow: 0 28px 90px rgba(11,9,7,.28);
  position: relative;
  display: grid;
  gap: 12px;
}
.simulator-camera-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 1.4rem;
  z-index: 2;
}
.simulator-camera-head {
  padding-right: 44px;
}
.simulator-camera-head h2 {
  margin: 4px 0;
  font-size: 1.2rem;
}
.simulator-camera-head small {
  color: var(--muted);
  line-height: 1.45;
}
.simulator-camera-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b1711, #3a2b15);
}
.simulator-camera-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.simulator-camera-status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(11,9,7,.74);
  color: #fff8e6;
  font-weight: 900;
  font-size: .82rem;
  white-space: nowrap;
}
.simulator-camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px) {
  .camera-fixed-v61 {
    grid-template-columns: 1fr !important;
  }
  .camera-fixed-v61 button {
    width: 100% !important;
  }
}


/* V62: simulador con un solo botón y cámara encuadrada */
.simulator-toolbar-one {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-bottom: 12px !important;
}
.simulator-toolbar-one #simCameraButton {
  width: 100% !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}
#simUploadButton,
#simResetButton,
#simEmptyCameraButton,
#simBottomCameraButton {
  display: none !important;
}
.simulator-camera-modal {
  align-items: start !important;
  place-items: start center !important;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
}
.simulator-camera-card {
  width: min(94vw, 420px) !important;
  max-height: calc(100dvh - 22px) !important;
  margin: 0 auto !important;
  border-radius: 26px !important;
  padding: 12px !important;
  gap: 10px !important;
  overflow: hidden !important;
}
.simulator-camera-head {
  padding-right: 42px !important;
}
.simulator-camera-head h2 {
  font-size: 1.08rem !important;
  margin: 2px 0 3px !important;
}
.simulator-camera-head small {
  font-size: .82rem !important;
  line-height: 1.32 !important;
}
.simulator-camera-preview {
  aspect-ratio: 3 / 4 !important;
  max-height: min(58dvh, 520px) !important;
  width: 100% !important;
  border-radius: 22px !important;
}
.simulator-camera-actions.single {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  background: linear-gradient(180deg, rgba(255,247,232,.2), rgba(255,247,232,.98) 30%) !important;
  padding-top: 6px !important;
  z-index: 3 !important;
}
.sim-shot-button {
  min-height: 50px !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}
.sim-shot-button:disabled {
  opacity: .55 !important;
}
.simulator-camera-status {
  bottom: 10px !important;
  font-size: .78rem !important;
  max-width: 88% !important;
  white-space: normal !important;
  text-align: center !important;
}
@media (max-width: 520px) {
  .simulator-camera-card {
    width: 96vw !important;
    max-height: calc(100dvh - 18px) !important;
  }
  .simulator-camera-preview {
    max-height: 54dvh !important;
  }
}


/* V63 Simulador IA referencial */
.sim-generate-ai {
  min-height: 48px;
  font-weight: 950;
}
.sim-generate-ai:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.simulator-ai-status {
  border-radius: 18px;
  padding: 11px 12px;
  background: rgba(20,15,9,.06);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.simulator-ai-status.busy {
  background: linear-gradient(135deg, rgba(255,248,230,.95), rgba(247,226,170,.72));
  color: #6f4f14;
  animation: dreamPulseGold 1.3s ease-in-out infinite;
}
@keyframes dreamPulseGold {
  0%, 100% { box-shadow: 0 0 0 rgba(201,161,88,0); }
  50% { box-shadow: 0 0 28px rgba(201,161,88,.26); }
}


/* V65: enfoque en simulación conservadora */
.simulator-identity-note {
  border-radius: 18px;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(255,249,238,.95), rgba(255,255,255,.9));
  border: 1px solid rgba(201,161,88,.18);
  color: #6d5328;
  line-height: 1.4;
  font-weight: 800;
}
.simulator-identity-note strong {
  color: #4c3715;
}


/* V66 fallback anti pantalla en blanco */
.app-error-fallback {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11,9,7,.62);
  backdrop-filter: blur(12px);
}
.app-error-fallback.hidden {
  display: none;
}
.app-error-fallback > div {
  width: min(92vw, 380px);
  border-radius: 28px;
  padding: 20px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(255,247,232,.96));
  box-shadow: 0 24px 70px rgba(11,9,7,.22);
  display: grid;
  gap: 10px;
  text-align: center;
}
.app-error-fallback strong {
  color: var(--black);
  font-size: 1.1rem;
}
.app-error-fallback small {
  color: var(--muted);
  line-height: 1.45;
}
.app-error-fallback button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--black);
  color: #fff8e8;
  font-weight: 950;
}


/* V67 minimal simulator for deploy */
.simulator-controls-minimal {
  display: grid;
  gap: 12px;
  align-content: start;
}
.simulator-minimal-head {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(20,15,9,.04);
}
.simulator-minimal-head strong {
  color: var(--black);
}
.simulator-minimal-head small {
  color: var(--muted);
  line-height: 1.4;
}
.simulator-ai-status.minimal {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(20,15,9,.05);
  color: var(--muted);
  font-weight: 700;
}
.simulator-shell .simulator-disclaimer,
.simulator-shell .simulator-presets,
.simulator-shell .simulator-sliders,
.simulator-shell .simulator-instructions,
.simulator-shell .simulator-tip,
.simulator-shell .simulator-identity-note,
.simulator-shell label span,
#simToolSelect,
#simIntensity,
#simOffsetY,
#simOffsetX {
  display: none !important;
}
.simulator-toggle {
  margin-top: 4px;
}
.simulator-canvas-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(20,15,9,.08);
}
.simulator-empty {
  min-height: 320px;
  padding: 24px 20px;
}


/* V68 simulator procedure list */
.simulator-procedure-picker { display:grid; gap:10px; }
.simulator-procedure-picker-head { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); font-size:.86rem; font-weight:800; }
.simulator-procedure-picker-head span { color:var(--black); }
.sim-procedure-list { display:grid; gap:8px; max-height:240px; overflow-y:auto; padding-right:4px; }
.sim-procedure-list::-webkit-scrollbar { width:8px; }
.sim-procedure-list::-webkit-scrollbar-thumb { background: rgba(201,161,88,.45); border-radius:999px; }
.sim-procedure-chip { border:1px solid rgba(20,15,9,.08); background:rgba(255,255,255,.86); border-radius:16px; padding:11px 12px; text-align:left; display:grid; gap:3px; transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.sim-procedure-chip strong { color:var(--black); font-size:.93rem; line-height:1.25; }
.sim-procedure-chip span { color:var(--muted); font-size:.76rem; line-height:1.25; }
.sim-procedure-chip.active { border-color: rgba(201,161,88,.7); background: linear-gradient(135deg, rgba(255,251,244,.98), rgba(250,239,205,.78)); box-shadow:0 10px 22px rgba(201,161,88,.16); }
.sim-procedure-chip:hover { transform:translateY(-1px); }
@media (max-width:720px){ .sim-procedure-list { max-height:200px; } }


/* Final deploy polish: mobile containment, calendar status, simulator accordion, richer motion */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.panel-window,
.panel-content,
.panel-body,
.app-shell,
.patient-app,
main {
  max-width: 100%;
  overflow-x: hidden;
}
.panel-window * {
  box-sizing: border-box;
}

/* Postoperatorio: prevent horizontal scroll and make every lane mobile-safe */
.postop-actions,
.care-path,
.care-steps,
.care-step-detail,
.support-lane,
.recovery-card,
.score-signals,
.appointments-accordion,
.appointment-card,
.my-appointments,
.appointments-clean-block {
  min-width: 0;
  max-width: 100%;
}
.postop-actions {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
}
.care-path {
  overflow: hidden;
}
.care-path-title {
  flex-wrap: wrap;
}
.care-steps {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)) !important;
}
.care-step {
  min-width: 0;
}
.care-step-detail {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
}
.care-step-detail > *,
.support-lane article,
.appointment-card,
.appointment-main,
.appointment-side {
  min-width: 0;
}
.support-lane {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 12px !important;
  overflow: hidden !important;
}
.support-lane article {
  overflow-wrap: anywhere;
}
.recovery-card.postop-pulse {
  grid-template-columns: minmax(0, 1fr) !important;
  text-align: center !important;
}
.score-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Calendar: fixed, clean day boxes with green/red status only */
.calendar-card,
.agenda-calendar-card {
  overflow: hidden;
}
.weekdays,
.calendar-grid {
  gap: clamp(4px, 1.3vw, 8px) !important;
}
.calendar-grid {
  align-items: stretch;
}
.day {
  position: relative;
  aspect-ratio: 1 / 1 !important;
  min-height: auto !important;
  height: auto !important;
  padding: 7px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 3px !important;
  text-align: center !important;
  border-radius: clamp(12px, 2.6vw, 20px) !important;
  overflow: hidden !important;
}
.day strong {
  position: relative;
  z-index: 1;
  font-size: clamp(.92rem, 2.8vw, 1.15rem);
}
.day small {
  display: none !important;
}
.day-dot {
  width: clamp(7px, 2vw, 10px);
  height: clamp(7px, 2vw, 10px);
  border-radius: 999px;
  position: relative;
  z-index: 1;
}
.day.available {
  border-color: rgba(54,178,126,.55) !important;
  background: linear-gradient(145deg, rgba(223,255,243,.96), rgba(255,255,255,.82)) !important;
  color: #0f704b !important;
}
.day.available .day-dot {
  background: #23b777;
  box-shadow: 0 0 0 4px rgba(35,183,119,.13);
}
.day.unavailable {
  border-color: rgba(255,92,104,.28) !important;
  background: linear-gradient(145deg, rgba(255,235,237,.95), rgba(255,255,255,.78)) !important;
  color: #984452 !important;
}
.day.unavailable .day-dot {
  background: #ff5b6a;
  box-shadow: 0 0 0 4px rgba(255,91,106,.12);
}
.day.outside {
  opacity: .42;
}
.day.selected {
  outline: 3px solid rgba(201,161,88,.35);
  transform: translateY(-1px);
}
.event-pill {
  display: none !important;
}
.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.calendar-legend i.free {
  background: #23b777;
}
.calendar-legend i.busy {
  background: #ff5b6a;
}

/* Simulator: compact, centered and no floating buttons over the photo */
.simulator-title-compact {
  margin-bottom: 12px !important;
}
.simulator-shell-final,
.simulator-shell {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  align-items: start !important;
}
.simulator-stage-card {
  min-width: 0;
}
.simulator-canvas-wrap {
  min-height: clamp(320px, 58dvh, 620px) !important;
}
.simulator-toolbar-one {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 6px;
}
.simulator-controls-minimal {
  gap: 10px !important;
}
.sim-procedure-toggle {
  width: 100%;
  border: 1px solid rgba(201,161,88,.2);
  border-radius: 20px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,231,.9));
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(38,28,16,.07);
}
.sim-procedure-toggle span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.sim-procedure-toggle strong {
  font-size: .95rem;
}
.sim-procedure-toggle small {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 235px;
}
.sim-procedure-toggle i {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(201,161,88,.16);
  font-style: normal;
  transition: transform .18s ease;
}
.sim-procedure-toggle.open i {
  transform: rotate(180deg);
}
.simulator-procedure-picker {
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
}
.simulator-procedure-picker.collapsed {
  max-height: 0 !important;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.simulator-procedure-picker:not(.collapsed) {
  max-height: min(310px, 38dvh);
  opacity: 1;
  transform: translateY(0);
}
.sim-procedure-list {
  max-height: min(290px, 34dvh) !important;
  overflow-y: auto !important;
}
.sim-procedure-chip.active::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #17110a;
  color: #fff5df;
  font-size: .78rem;
}
.sim-procedure-chip {
  position: relative;
  padding-right: 38px !important;
}
body[data-active-panel="simulator"] .floating-actions {
  opacity: .18;
  transform: scale(.86);
  pointer-events: none;
}

/* Animated visuals without changing architecture */
.guide-visual,
.learn-visual,
.photo-capture-card,
.prep-step-card,
.guide-card,
.hub-card {
  will-change: transform, opacity;
}
.guide-visual svg,
.learn-visual svg {
  animation: dreamVisualFloat 5s ease-in-out infinite;
}
.guide-visual path,
.learn-visual path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: dreamLineDraw 1.6s ease forwards, dreamGlow 3.8s ease-in-out infinite 1.4s;
}
.guide-card:nth-child(2) .guide-visual svg,
.prep-step-card:nth-child(2)::after {
  animation-delay: .15s;
}
.guide-card:nth-child(3) .guide-visual svg,
.prep-step-card:nth-child(3)::after {
  animation-delay: .3s;
}
.prep-step-card::before,
.guide-card::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(245,201,103,.22), transparent 70%);
  right: 16px;
  top: 12px;
  opacity: .55;
  animation: dreamFloatSmall 4.8s ease-in-out infinite;
  pointer-events: none;
}
.guide-card {
  position: relative;
  overflow: hidden;
}
@keyframes dreamVisualFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.015); }
}
@keyframes dreamLineDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes dreamGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(245,201,103,.18)); }
  50% { filter: drop-shadow(0 0 13px rgba(245,201,103,.42)); }
}
@keyframes dreamFloatSmall {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-8px) rotate(20deg); }
}

@media (max-width: 900px) {
  .simulator-shell-final,
  .simulator-shell {
    grid-template-columns: 1fr !important;
  }
  .simulator-controls-minimal {
    order: -1;
  }
  .simulator-stage-card {
    display: grid;
    gap: 10px;
  }
  .simulator-canvas-wrap {
    min-height: clamp(360px, 64dvh, 620px) !important;
  }
  body[data-active-panel="simulator"] .floating-actions {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .panel-window {
    width: min(100vw - 16px, 760px) !important;
    max-width: calc(100vw - 16px) !important;
  }
  .panel-content {
    padding-inline: clamp(10px, 3vw, 16px) !important;
  }
  .postop-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .postop-actions .hub-card {
    min-width: 0 !important;
    padding: 13px !important;
  }
  .care-path {
    padding: 12px !important;
    border-radius: 26px !important;
  }
  .care-path-title h2 {
    font-size: clamp(1.5rem, 8vw, 2.4rem) !important;
  }
  .care-steps {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .care-step {
    min-height: 132px !important;
    padding: 13px !important;
  }
  .care-step-detail {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
  .support-lane {
    grid-template-columns: 1fr !important;
  }
  .calendar-top strong {
    font-size: clamp(1.1rem, 5vw, 1.35rem) !important;
  }
  .day {
    border-radius: 12px !important;
    padding: 4px !important;
  }
  .day strong {
    font-size: .88rem !important;
  }
  .calendar-legend {
    font-size: .78rem;
  }
  .simulator-title-compact .panel-subtitle {
    font-size: .88rem;
  }
  .simulator-stage-card,
  .simulator-controls {
    border-radius: 24px !important;
    padding: 12px !important;
  }
  .sim-procedure-toggle small {
    max-width: 66vw;
  }
}
@media (max-width: 420px) {
  .postop-actions {
    grid-template-columns: 1fr !important;
  }
  .care-steps {
    grid-template-columns: 1fr !important;
  }
  .weekdays,
  .calendar-grid {
    gap: 3px !important;
  }
}


/* Final mobile optimization: reduce expensive paints and render only what is visible */
.panel-content.hidden {
  display: none !important;
}
.panel-content:not(.hidden) {
  content-visibility: auto;
  contain-intrinsic-size: 740px;
}
.simulator-canvas-wrap,
.calendar-card,
.care-path,
.guide-card,
.prep-step-card,
.learn-card,
.appointments-accordion {
  contain: layout paint;
}
@media (max-width: 760px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  .panel-backdrop,
  .modal-card,
  .guided-photo-modal,
  .alarm-overlay {
    backdrop-filter: none !important;
  }
  .guide-visual svg,
  .learn-visual svg,
  .guide-visual path,
  .learn-visual path,
  .boot-logo-orbit,
  .care-orbit,
  .dreambot-mini-robot,
  .postop-pulse,
  .sos-button {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .guide-card,
  .prep-step-card,
  .learn-card,
  .hub-card,
  .care-step,
  .care-path,
  .calendar-card,
  .appointments-accordion,
  .simulator-stage-card,
  .simulator-controls,
  .photo-capture-card {
    box-shadow: 0 10px 26px rgba(38,28,16,.07) !important;
  }
  .guide-visual path,
  .learn-visual path {
    filter: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
  .simulator-canvas-wrap {
    transform: translateZ(0);
  }
  #simulatorCanvas {
    image-rendering: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* Final Play Store corrections */
.brand-ribbon {
  justify-content: center !important;
  text-align: center;
}
.brand-ribbon span {
  flex: 0 1 auto !important;
  min-width: 0;
  padding-inline: clamp(8px, 2.2vw, 18px);
}
@media (max-width: 560px) {
  .brand-ribbon {
    gap: 8px !important;
    padding: 10px 8px !important;
  }
  .brand-ribbon span {
    font-size: clamp(.72rem, 3.2vw, .9rem);
    letter-spacing: 0;
  }
}

.appointment-cancel-button {
  border: 1px solid rgba(255,91,106,.26);
  border-radius: 999px;
  padding: 8px 11px;
  color: #9d3947;
  background: rgba(255,238,240,.92);
  font-weight: 950;
  font-size: .78rem;
}
.appointment-cancel-button:hover {
  background: rgba(255,224,228,.98);
}
.appointment-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}
@media (max-width: 760px) {
  .appointment-side {
    justify-items: start;
  }
  .appointment-cancel-button {
    width: fit-content;
  }
}


/* Final fix: appointment booking must open as centered modal */
.day-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 28px);
  background: rgba(11, 9, 7, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.day-booking-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.day-booking-card {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: min(78dvh, 720px);
  overflow: auto;
  display: grid;
  gap: 13px;
  padding: clamp(18px, 4vw, 26px);
  border-radius: 30px;
  border: 1px solid rgba(201,161,88,.22);
  background:
    radial-gradient(circle at 88% 8%, rgba(245,201,103,.2), transparent 7rem),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,248,235,.96));
  box-shadow: 0 28px 80px rgba(11,9,7,.28);
  transform: translateY(14px) scale(.98);
  transition: transform .2s ease;
}
.day-booking-modal.visible .day-booking-card {
  transform: translateY(0) scale(1);
}
.day-booking-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.35rem;
  font-weight: 900;
}
.day-booking-card h2 {
  margin: 0;
  padding-right: 32px;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1;
}
.day-booking-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.day-modal-slots {
  display: grid;
  gap: 9px;
  max-height: min(270px, 34dvh);
  overflow: auto;
  padding-right: 3px;
}
.day-booking-form {
  margin-top: 2px !important;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.day-booking-form input {
  width: 100%;
}
body:has(.day-booking-modal.visible) {
  overflow: hidden;
}
@media (max-width: 560px) {
  .day-booking-modal {
    align-items: center;
    padding: 12px;
  }
  .day-booking-card {
    width: min(94vw, 520px);
    max-height: 82dvh;
    border-radius: 26px;
  }
  .day-modal-slots {
    max-height: 30dvh;
  }
}

@media (max-width: 760px) {
  .stage-glow,
  .care-orbit,
  .calm-visual,
  .companion-visual {
    animation: none !important;
    filter: none !important;
  }
  .stage-glow {
    opacity: .16;
    transform: none !important;
  }
  .login-card,
  .hero-board,
  .panel-window,
  .day-booking-card,
  .hub-card,
  .content-card,
  .photo-card,
  .support-card,
  .calendar-card {
    box-shadow: 0 14px 34px rgba(24, 18, 10, .12) !important;
  }
  .panel-backdrop,
  .alert-modal {
    backdrop-filter: none !important;
  }
  .hub-card,
  .content-card,
  .photo-card,
  .day,
  .slot {
    transition-duration: .14s !important;
  }
}

/* Dreambody Care home V62: Dreambody journey map */
.care-home-suite {
  display: grid;
  gap: clamp(12px, 1.6vw, 16px);
  min-height: calc(100dvh - 118px);
  align-content: start;
}
.home-journey-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  min-height: auto;
  padding: clamp(18px, 2.8vw, 30px);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 34px;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(245,201,103,.24), transparent 15rem),
    radial-gradient(circle at 8% 90%, rgba(99,215,178,.12), transparent 13rem),
    linear-gradient(145deg, #0b0907, #21150f 58%, #3a2817);
  box-shadow: 0 24px 70px rgba(11,9,7,.22);
  animation: dreamReveal .46s ease both;
}
.home-journey-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: -1;
  border: 1px solid rgba(245,201,103,.2);
  border-radius: 26px;
}
.journey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.journey-head .overline {
  color: #7a5516;
  background: linear-gradient(135deg, rgba(245,201,103,.98), rgba(255,238,188,.88));
}
.journey-head h1 {
  margin-top: 8px;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 3.4vw, 3.45rem);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.home-procedure-pill {
  min-width: min(320px, 42vw);
  justify-items: end;
  margin: 0;
  text-align: right;
  color: var(--ink);
  background: rgba(255,255,255,.9);
}
.home-procedure-pill strong {
  max-width: min(340px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journey-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.journey-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 29px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,201,103,.55), transparent);
  pointer-events: none;
}
.journey-map button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 104px;
  border: 1px solid rgba(245,201,103,.2);
  border-radius: 24px;
  padding: 13px 10px;
  color: #fff;
  text-align: center;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 16px 34px rgba(0,0,0,.1);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.journey-map button:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
  border-color: rgba(245,201,103,.42);
}
.journey-map i {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 14px;
  color: #0b0907;
  background: linear-gradient(135deg, var(--gold-bright), #fff0c0);
  font-style: normal;
  font-size: .74rem;
  font-weight: 950;
}
.journey-map strong {
  font-size: clamp(.94rem, 1.35vw, 1.08rem);
  line-height: 1;
}
.journey-map span {
  color: rgba(255,255,255,.62);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.15;
}
.home-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.home-values span {
  border: 1px solid rgba(245,201,103,.22);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.07);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.home-action-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.5vw, 14px);
  margin: 0;
}
.home-action-grid .hub-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: clamp(134px, 15dvh, 170px);
  padding: clamp(14px, 1.9vw, 20px);
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 85% 8%, rgba(245,201,103,.2), transparent 6rem),
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,247,232,.84));
  box-shadow: 0 18px 46px rgba(56,35,16,.11);
  animation: wheelCardIn .42s cubic-bezier(.2,.8,.2,1) both;
}
.home-action-grid .hub-card::after {
  right: -42px;
  top: -44px;
  width: 118px;
  height: 118px;
  border-radius: 38px;
  opacity: .64;
}
.home-action-grid .hub-card:nth-child(2) { animation-delay: .04s; }
.home-action-grid .hub-card:nth-child(3) { animation-delay: .08s; }
.home-action-grid .hub-card:nth-child(4) { animation-delay: .12s; }
.home-action-grid .hub-card:nth-child(5) { animation-delay: .16s; }
.home-action-grid .hub-card:nth-child(6) { animation-delay: .2s; }
.home-action-grid .hub-card:nth-child(7) { animation-delay: .24s; }
.home-action-grid .hub-card:nth-child(8) { animation-delay: .28s; }
.home-action-grid .hub-icon {
  width: clamp(42px, 4.8vw, 54px);
  height: clamp(42px, 4.8vw, 54px);
  margin: 0;
  border-radius: 18px;
  color: #0b0907;
  background: linear-gradient(135deg, rgba(245,201,103,.95), rgba(255,239,196,.95));
  font-size: clamp(.86rem, 1.4vw, 1.08rem);
  font-weight: 950;
  letter-spacing: .02em;
  box-shadow: 0 12px 24px rgba(201,155,59,.22);
}
.home-action-grid .hub-card strong {
  width: 100%;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.05;
  text-align: center;
}
.home-action-grid .hub-card small {
  width: 100%;
  max-width: 160px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.74rem, .9vw, .86rem);
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
}
.home-action-grid .dreambot-card {
  background:
    radial-gradient(circle at 80% 8%, rgba(245,201,103,.32), transparent 6rem),
    linear-gradient(145deg, #0b0907, #2b1b12);
  color: #fff;
}
.home-action-grid .dreambot-card strong,
.home-action-grid .dreambot-card small {
  color: #fff;
}
.home-action-grid .dreambot-card small {
  color: rgba(255,255,255,.7);
}
.dreambot-card-robot {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(245,201,103,.72));
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
  animation: dreamSoftFloat 4.8s ease-in-out infinite;
}
.dreambot-card-robot .dreambot-mini-antenna,
.dreambot-card-robot .dreambot-mini-body,
.dreambot-card-robot .dreambot-mini-face {
  position: absolute;
}
.dreambot-card-robot .dreambot-mini-antenna {
  top: 6px;
}
.dreambot-card-robot .dreambot-mini-face {
  top: 16px;
  transform: scale(.68);
}
.dreambot-card-robot .dreambot-mini-body {
  bottom: 8px;
  transform: scale(.7);
}

@media (max-width: 900px) {
  .care-home-suite {
    min-height: calc(100dvh - 96px);
  }
  .home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 18px, 520px);
    margin: 10px auto 18px;
  }
  .app-head {
    display: grid !important;
    grid-template-columns: 54px 1fr auto;
    align-items: center !important;
    gap: 7px;
    margin-bottom: 10px;
  }
  .app-head .logo-frame.small {
    width: 54px;
    min-width: 54px;
    margin: 0;
    padding: 6px;
    border-radius: 16px;
  }
  .app-head .logo-frame.small img {
    max-height: 30px;
    object-fit: contain;
  }
  .session-pill {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 18px;
  }
  .session-pill strong,
  .session-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .install-button,
  .logout-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: .76rem;
    box-shadow: 0 8px 20px rgba(38,28,16,.08);
  }
  #installAppButton {
    grid-column: 1 / 2;
    grid-row: 2;
  }
  #enableNotificationsButton {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  #logoutButton {
    grid-column: 3;
    grid-row: 1;
  }
  .care-home-suite {
    min-height: calc(100dvh - 88px);
    gap: 9px;
  }
  .home-journey-card {
    gap: 9px;
    padding: 14px;
    border-radius: 28px;
  }
  .home-journey-card::before {
    inset: 10px;
    border-radius: 22px;
  }
  .journey-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    justify-items: center;
  }
  .journey-head h1 {
    margin-top: 6px;
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }
  .home-procedure-pill {
    min-width: 0;
    width: 100%;
    justify-items: center;
    text-align: center;
  }
  .home-values {
    gap: 5px;
    justify-content: center;
  }
  .home-values span {
    padding: 6px 8px;
    font-size: .62rem;
    letter-spacing: .04em;
  }
  .home-procedure-pill {
    max-width: 100%;
    padding: 9px 11px;
    border-radius: 17px;
  }
  .home-procedure-pill span {
    font-size: .66rem;
  }
  .home-procedure-pill strong {
    max-width: 72vw;
  }
  .journey-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .journey-map::before {
    display: none;
  }
  .journey-map button {
    min-height: 72px;
    gap: 4px;
    border-radius: 18px;
    padding: 8px 4px;
  }
  .journey-map i {
    width: 28px;
    height: 28px;
    border-radius: 11px;
    font-size: .62rem;
  }
  .journey-map strong {
    font-size: .72rem;
  }
  .journey-map span {
    display: none;
  }
  .home-action-grid {
    gap: 8px;
  }
  .home-action-grid .hub-card {
    min-height: 88px;
    gap: 6px;
    border-radius: 22px;
    padding: 10px 8px;
  }
  .home-action-grid .hub-icon {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    font-size: .72rem;
  }
  .home-action-grid .hub-card strong {
    font-size: .86rem;
    line-height: 1.05;
  }
  .home-action-grid .hub-card small {
    display: none;
  }
  .dreambot-card-robot {
    width: 36px;
    height: 36px;
    border-radius: 14px;
  }
  .dreambot-card-robot .dreambot-mini-antenna,
  .dreambot-card-robot .dreambot-mini-face,
  .dreambot-card-robot .dreambot-mini-body {
    transform: scale(.5);
  }
}

@media (max-height: 720px) and (max-width: 560px) {
  .journey-head h1,
  .home-values {
    display: none;
  }
  .home-journey-card {
    padding: 12px;
  }
  .home-action-grid .hub-card {
    min-height: 74px;
  }
}

/* Legacy command-center styles kept below for compatibility with older cached markup. */
.care-command-center {
  display: grid;
  gap: clamp(10px, 1.6vw, 16px);
  min-height: calc(100dvh - 118px);
  align-content: start;
}
.care-hero-orbit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(12px, 1.8vw, 18px);
  align-items: stretch;
}
.care-command-center .hero-copy {
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 30dvh, 340px);
  padding: clamp(22px, 3.4vw, 42px) !important;
  border-radius: 34px;
}
.care-command-center .hero-copy::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: clamp(150px, 20vw, 260px);
  height: clamp(150px, 20vw, 260px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255,255,255,.62), transparent 32%),
    conic-gradient(from 120deg, rgba(245,201,103,.36), rgba(255,93,104,.16), rgba(99,215,178,.22), rgba(245,201,103,.36));
  filter: blur(.2px);
  opacity: .9;
  animation: commandHalo 8s linear infinite;
  pointer-events: none;
}
.care-command-center .hero-copy h1 {
  max-width: 680px;
  font-size: clamp(2.15rem, 5.6vw, 5rem) !important;
  line-height: .9;
}
.care-command-center .hero-copy p {
  max-width: 520px !important;
  margin-top: 12px;
}
.care-orbit-console {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: clamp(220px, 30dvh, 340px);
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 90% 8%, rgba(255,93,104,.16), transparent 10rem),
    radial-gradient(circle at 0% 96%, rgba(99,215,178,.18), transparent 11rem),
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,244,222,.8));
  box-shadow: var(--shadow);
  animation: dreamReveal .5s ease both .05s;
}
.care-orbit-console::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 28px;
  border: 1px solid rgba(207,164,74,.18);
  pointer-events: none;
}
.care-orbit-console .care-orbit {
  width: clamp(112px, 15vw, 156px);
  height: clamp(112px, 15vw, 156px);
}
.orbit-status {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}
.orbit-status span {
  color: #7a5516;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.orbit-status strong {
  max-width: 260px;
  color: var(--ink);
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  line-height: 1.25;
}
.care-command-center .brand-ribbon {
  margin: 0;
}
.care-wheel {
  --card-size: clamp(144px, 15vw, 190px);
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-size);
  grid-template-columns: none !important;
  gap: clamp(10px, 1.5vw, 14px);
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,155,59,.72) rgba(255,255,255,.42);
  -webkit-overflow-scrolling: touch;
}
.care-wheel::-webkit-scrollbar {
  height: 7px;
}
.care-wheel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,.45);
}
.care-wheel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(201,155,59,.65);
}
.care-wheel .hub-card {
  min-height: var(--card-size);
  height: var(--card-size);
  scroll-snap-align: start;
  display: grid;
  align-content: space-between;
  padding: clamp(14px, 1.8vw, 18px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  box-shadow: 0 20px 48px rgba(56,35,16,.12);
  animation: wheelCardIn .44s cubic-bezier(.2,.8,.2,1) both;
}
.care-wheel .hub-card:nth-child(2) { animation-delay: .04s; }
.care-wheel .hub-card:nth-child(3) { animation-delay: .08s; }
.care-wheel .hub-card:nth-child(4) { animation-delay: .12s; }
.care-wheel .hub-card:nth-child(5) { animation-delay: .16s; }
.care-wheel .hub-card:nth-child(6) { animation-delay: .2s; }
.care-wheel .hub-card:nth-child(7) { animation-delay: .24s; }
.care-wheel .hub-card:nth-child(8) { animation-delay: .28s; }
.care-wheel .hub-card.primary-action {
  grid-auto-columns: calc(var(--card-size) * 1.16);
}
.care-wheel .hub-icon {
  width: clamp(42px, 5vw, 52px);
  height: clamp(42px, 5vw, 52px);
  margin-bottom: 0;
  border-radius: 18px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
}
.care-wheel .hub-card strong {
  font-size: clamp(1rem, 1.75vw, 1.22rem);
  line-height: 1.05;
}
.care-wheel .hub-card small {
  margin-top: 4px;
  font-size: clamp(.72rem, 1vw, .86rem);
  line-height: 1.22;
}
.care-wheel .dreambot-card {
  background: linear-gradient(135deg, #fff, #f3edff);
}

@keyframes updatePop {
  from { opacity: 0; transform: translate(-50%, -42%) scale(.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes commandHalo {
  to { transform: rotate(360deg); }
}
@keyframes wheelCardIn {
  from { opacity: 0; transform: translateX(20px) scale(.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 900px) {
  .care-command-center {
    min-height: calc(100dvh - 96px);
  }
  .care-hero-orbit {
    grid-template-columns: 1fr;
  }
  .care-orbit-console {
    display: none;
  }
  .care-wheel {
    --card-size: clamp(132px, 38vw, 162px);
  }
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 18px, 520px);
    margin: 10px auto 18px;
  }
  .app-head {
    display: grid !important;
    grid-template-columns: 54px 1fr auto;
    align-items: center !important;
    gap: 7px;
    margin-bottom: 10px;
  }
  .app-head .logo-frame.small {
    width: 54px;
    min-width: 54px;
    margin: 0;
    padding: 6px;
    border-radius: 16px;
  }
  .app-head .logo-frame.small img {
    max-height: 30px;
    object-fit: contain;
  }
  .session-pill {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 18px;
  }
  .session-pill strong,
  .session-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .install-button,
  .logout-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: .76rem;
    box-shadow: 0 8px 20px rgba(38,28,16,.08);
  }
  #installAppButton,
  #enableNotificationsButton {
    grid-row: 2;
  }
  #installAppButton {
    grid-column: 1 / 2;
  }
  #enableNotificationsButton {
    grid-column: 2 / 4;
  }
  #logoutButton {
    grid-column: 3;
    grid-row: 1;
  }
  .care-command-center {
    min-height: calc(100dvh - 88px);
    gap: 9px;
  }
  .care-command-center .hero-copy {
    min-height: 31dvh;
    padding: 18px !important;
    border-radius: 28px;
  }
  .care-command-center .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3.2rem) !important;
  }
  .care-command-center .hero-copy p {
    display: none;
  }
  .selected-procedure {
    max-width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 18px;
  }
  .selected-procedure strong {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .care-command-center .brand-ribbon {
    border-radius: 22px;
    margin: 0;
  }
  .care-wheel {
    --card-size: clamp(126px, 39vw, 150px);
    gap: 9px;
    padding-bottom: 10px;
  }
  .care-wheel .hub-card {
    border-radius: 24px;
    padding: 13px;
  }
  .care-wheel .hub-card small {
    display: none;
  }
  .care-wheel .hub-card strong {
    font-size: .96rem;
  }
  .care-wheel .hub-icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    font-size: 1rem;
  }
}

@media (max-height: 720px) and (max-width: 560px) {
  .care-command-center .hero-copy {
    min-height: 27dvh;
  }
  .care-command-center .hero-copy h1 {
    font-size: clamp(1.75rem, 9vw, 2.55rem) !important;
  }
  .brand-ribbon span {
    font-size: .72rem !important;
  }
  .care-wheel {
    --card-size: 118px;
  }
}

/* Dreambody Care V63: premium patient home */
body {
  background:
    radial-gradient(circle at 13% 4%, rgba(239, 194, 90, .42), transparent 19rem),
    radial-gradient(circle at 78% 14%, rgba(122, 231, 196, .28), transparent 22rem),
    radial-gradient(circle at 92% 76%, rgba(255, 145, 172, .24), transparent 18rem),
    linear-gradient(135deg, #fff8e8 0%, #fffdf6 43%, #f7fff8 100%);
}

.app {
  width: min(1320px, calc(100% - 32px));
  margin: 18px auto 46px;
}

.app-head {
  display: grid !important;
  position: relative;
  z-index: 120;
  grid-template-columns: minmax(310px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 18px 50px rgba(67, 43, 19, .08);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.care-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-head .logo-frame.small {
  width: clamp(174px, 18vw, 250px);
  min-width: clamp(174px, 18vw, 250px);
  height: 82px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 24% 16%, rgba(239, 194, 90, .2), transparent 4rem),
    #050403;
  box-shadow: inset 0 0 0 1px rgba(239,194,90,.46), 0 20px 44px rgba(11,9,7,.18);
}

.app-head .logo-frame.small img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.session-pill {
  min-width: 0;
  max-width: 520px;
  border: 1px solid rgba(239,194,90,.22);
  border-radius: 24px;
  padding: 13px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,247,226,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.session-pill span {
  color: #9f762b;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.session-pill strong {
  display: block;
  margin-top: 3px;
  color: #21150f;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 950;
  line-height: 1.05;
}

.care-head-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.install-button,
.logout-button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.install-button {
  border: 1px solid rgba(239,194,90,.36);
  color: #21150f;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,232,168,.92));
  box-shadow: 0 14px 28px rgba(201,155,59,.14);
}

.logout-button {
  border-color: rgba(11,9,7,.08);
  background: rgba(255,255,255,.72);
}

.install-button:hover,
.logout-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 34px rgba(201,155,59,.2);
}

.care-premium-home {
  display: grid;
  gap: clamp(12px, 1.7vw, 18px);
}

.care-hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.8vw, 18px);
  min-height: auto;
}

.care-hero-copy,
.dreambot-hero-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: clamp(30px, 4vw, 46px);
  box-shadow: 0 28px 80px rgba(52, 30, 15, .18);
  animation: careRise .58s cubic-bezier(.2,.8,.2,1) both;
}

.care-hero-copy {
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 52px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(239,194,90,.34), transparent 16rem),
    radial-gradient(circle at 13% 88%, rgba(116,225,188,.16), transparent 17rem),
    linear-gradient(135deg, #090604 0%, #24130f 58%, #4e311c 100%);
}

.care-hero-copy::before {
  content: "";
  position: absolute;
  inset: 15px;
  z-index: -1;
  border: 1px solid rgba(239,194,90,.2);
  border-radius: clamp(22px, 3vw, 34px);
}

.care-hero-copy::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -112px;
  z-index: -1;
  width: 310px;
  height: 310px;
  border-radius: 38%;
  border: 1px solid rgba(239,194,90,.18);
  animation: slowSpin 18s linear infinite;
}

.care-hero-copy .overline {
  color: #7a5516;
  background: linear-gradient(135deg, rgba(239,194,90,.98), rgba(255,241,201,.92));
}

.care-hero-copy h1 {
  max-width: 760px;
  margin: 10px 0 0;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.85rem, 7vw, 6.6rem);
  font-weight: 980;
  line-height: .82;
  letter-spacing: -.055em;
}

.care-hero-copy p:not(.overline) {
  max-width: 640px;
  margin: clamp(14px, 2vw, 20px) 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  font-weight: 780;
  line-height: 1.36;
}

.home-procedure-pill {
  display: grid;
  justify-items: start;
  gap: 4px;
  width: min(100%, 560px);
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(239,194,90,.28);
  border-radius: 24px;
  padding: 14px 18px;
  color: #21150f;
  text-align: left;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,239,198,.9));
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-procedure-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(239,194,90,.24);
}

.home-procedure-pill span {
  color: #986f23;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-procedure-pill strong {
  max-width: 100%;
  color: #21150f;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 960;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dreambot-hero-button {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(239,194,90,.34);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,236,174,.32), transparent 9rem),
    linear-gradient(145deg, #140c08, #302015 62%, #6b4722);
  cursor: pointer;
  animation-delay: .08s;
}

.dreambot-hero-button::before {
  content: "";
  position: absolute;
  inset: -80px;
  z-index: -1;
  background: conic-gradient(from 120deg, transparent, rgba(239,194,90,.34), transparent, rgba(122,231,196,.18), transparent);
  animation: slowSpin 14s linear infinite;
}

.dreambot-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(154px, 18vw, 224px);
  height: clamp(154px, 18vw, 224px);
  animation: dreamBotFloat 4.6s ease-in-out infinite;
}

.dreambot-aura {
  position: absolute;
  inset: 0;
  border-radius: 46%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,235,176,.9), rgba(239,194,90,.36) 44%, rgba(255,255,255,.08) 68%, transparent 70%);
  box-shadow: 0 0 54px rgba(239,194,90,.28);
  animation: pulseAura 2.8s ease-in-out infinite;
}

.dreambot-head {
  position: absolute;
  top: 20%;
  width: 54%;
  height: 42%;
  border-radius: 34% 34% 42% 42%;
  background: linear-gradient(145deg, #fffdf8, #f4c75d);
  box-shadow: inset 0 -10px 18px rgba(92,62,25,.12), 0 22px 38px rgba(0,0,0,.2);
}

.dreambot-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: #f4c75d;
  transform: translateX(-50%);
}

.dreambot-head::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -29px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fff1bb;
  box-shadow: 0 0 18px rgba(255,235,176,.82);
  transform: translateX(-50%);
}

.dreambot-eye {
  position: absolute;
  top: 37%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #160d08;
  animation: botBlink 4.2s ease-in-out infinite;
}

.dreambot-eye.left { left: 28%; }
.dreambot-eye.right { right: 28%; }

.dreambot-smile {
  position: absolute;
  left: 50%;
  bottom: 25%;
  width: 30%;
  height: 13%;
  border-bottom: 3px solid rgba(22,13,8,.78);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.dreambot-body {
  position: absolute;
  bottom: 15%;
  width: 42%;
  height: 34%;
  border-radius: 24px 24px 38px 38px;
  background: linear-gradient(145deg, #ffe9a7, #d7a436);
  box-shadow: 0 24px 38px rgba(0,0,0,.16);
}

.dreambot-shadow {
  position: absolute;
  bottom: 5%;
  width: 50%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  filter: blur(10px);
  animation: shadowBreath 4.6s ease-in-out infinite;
}

.dreambot-hero-copy {
  display: grid;
  gap: 4px;
}

.dreambot-hero-copy small {
  color: #f4c75d;
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dreambot-hero-copy strong {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 960;
}

.care-pathway {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 14px);
}

.care-pathway button,
.care-actions-lab .hub-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 10%, rgba(239,194,90,.22), transparent 6.5rem),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,248,233,.82));
  box-shadow: 0 18px 42px rgba(56,35,16,.09);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.care-pathway button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon title" "icon text";
  align-items: center;
  column-gap: 12px;
  min-height: 96px;
  padding: 16px;
  color: #21150f;
  text-align: left;
}

.care-pathway button:hover,
.care-actions-lab .hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239,194,90,.48);
  box-shadow: 0 24px 56px rgba(201,155,59,.18);
}

.care-pathway i {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  color: #21150f;
  background: linear-gradient(135deg, #f4c75d, #fff2bd);
  font-style: normal;
  font-size: .8rem;
  font-weight: 980;
  box-shadow: 0 12px 24px rgba(201,155,59,.18);
}

.care-pathway strong {
  grid-area: title;
  color: #21150f;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  font-weight: 980;
  line-height: 1;
}

.care-pathway span {
  grid-area: text;
  margin-top: 4px;
  color: #73675a;
  font-size: .8rem;
  font-weight: 820;
  line-height: 1.15;
}

.care-actions-lab {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.5vw, 14px);
  margin: 0;
}

.care-actions-lab .hub-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 126px;
  padding: 18px;
  text-align: left;
  animation: careTileIn .42s cubic-bezier(.2,.8,.2,1) both;
}

.care-actions-lab .hub-card:nth-child(2) { animation-delay: .04s; }
.care-actions-lab .hub-card:nth-child(3) { animation-delay: .08s; }
.care-actions-lab .hub-card:nth-child(4) { animation-delay: .12s; }
.care-actions-lab .hub-card:nth-child(5) { animation-delay: .16s; }
.care-actions-lab .hub-card:nth-child(6) { animation-delay: .2s; }
.care-actions-lab .hub-card:nth-child(7) { animation-delay: .24s; }
.care-actions-lab .hub-card:nth-child(8) { animation-delay: .28s; }

.care-actions-lab .hub-card::after {
  right: -58px;
  top: -58px;
  width: 138px;
  height: 138px;
  border-radius: 46px;
  opacity: .56;
  background: rgba(255,255,255,.42);
}

.care-actions-lab .hub-icon {
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 20px;
  color: #21150f;
  background: linear-gradient(135deg, #f4c75d, #fff1b8);
  font-size: .86rem;
  font-weight: 980;
  letter-spacing: .04em;
  box-shadow: 0 14px 26px rgba(201,155,59,.2);
}

.care-actions-lab .hub-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.care-actions-lab .hub-card strong {
  color: #21150f;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 980;
  line-height: 1.02;
  text-align: left;
}

.care-actions-lab .hub-card small {
  max-width: 190px;
  margin: 0;
  color: #75695d;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.22;
  text-align: left;
}

.care-actions-lab .dreambot-card {
  color: #fff;
  background:
    radial-gradient(circle at 90% 12%, rgba(239,194,90,.33), transparent 7rem),
    linear-gradient(145deg, #100905, #2d1d13);
}

.care-actions-lab .dreambot-card strong,
.care-actions-lab .dreambot-card small {
  color: #fff;
}

.care-actions-lab .dreambot-card small {
  color: rgba(255,255,255,.68);
}

.dreambot-card-robot {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  box-shadow: none;
  animation: dreamBotFloat 4.8s ease-in-out infinite;
}

.dreambot-card-robot .dreambot-aura {
  inset: 1px;
}

.dreambot-card-robot .dreambot-head {
  top: 16px;
  width: 38px;
  height: 28px;
}

.dreambot-card-robot .dreambot-head::before {
  top: -12px;
  height: 13px;
}

.dreambot-card-robot .dreambot-head::after {
  top: -18px;
  width: 9px;
  height: 9px;
}

.dreambot-card-robot .dreambot-eye {
  width: 6px;
  height: 6px;
}

.dreambot-card-robot .dreambot-smile {
  width: 28%;
  border-bottom-width: 2px;
}

.dreambot-card-robot .dreambot-body {
  bottom: 9px;
  width: 28px;
  height: 20px;
  border-radius: 12px 12px 18px 18px;
}

.home-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.home-values span {
  border: 1px solid rgba(239,194,90,.24);
  border-radius: 999px;
  padding: 8px 13px;
  color: #7a5516;
  background: rgba(255,255,255,.58);
  box-shadow: 0 10px 24px rgba(201,155,59,.08);
  font-size: .72rem;
  font-weight: 980;
  letter-spacing: .09em;
  text-transform: uppercase;
}

@keyframes careRise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes careTileIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes softTileFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@keyframes dreamBotFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulseAura {
  0%, 100% { transform: scale(.94); opacity: .82; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes botBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  92%, 95% { transform: scaleY(.15); }
}

@keyframes shadowBreath {
  0%, 100% { transform: scaleX(.86); opacity: .44; }
  50% { transform: scaleX(1.1); opacity: .28; }
}

@media (max-width: 1000px) {
  .care-hero-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dreambot-hero-button {
    min-height: 250px;
  }

  .care-pathway,
  .care-actions-lab {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .app {
    width: min(100% - 18px, 560px);
    margin: 10px auto 28px;
  }

  .app-head {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 28px;
  }

  .care-brand-lockup {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 9px;
  }

  .app-head .logo-frame.small {
    width: min(280px, 92vw);
    min-width: 0;
    height: 72px;
    border-radius: 24px;
  }

  .app-head .logo-frame.small img {
    max-height: 52px;
  }

  .session-pill {
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
    text-align: center;
  }

  .session-pill strong,
  .session-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .care-head-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
  }

  .install-button,
  .logout-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: .78rem;
  }

  .care-hero-copy {
    min-height: 330px;
    padding: 22px;
    border-radius: 34px;
  }

  .care-hero-copy h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
    line-height: .84;
  }

  .care-hero-copy p:not(.overline) {
    font-size: .98rem;
  }

  .home-procedure-pill {
    padding: 12px 14px;
    border-radius: 22px;
  }

  .dreambot-hero-button {
    min-height: 230px;
    border-radius: 34px;
  }

  .dreambot-orb {
    width: 156px;
    height: 156px;
  }

  .care-pathway {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .care-pathway button {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "title" "text";
    justify-items: center;
    gap: 6px;
    min-height: 118px;
    padding: 14px 8px;
    text-align: center;
    border-radius: 24px;
  }

  .care-pathway i {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .care-pathway strong {
    font-size: .98rem;
  }

  .care-pathway span {
    font-size: .74rem;
  }

  .care-actions-lab {
    grid-template-columns: 1fr !important;
  }

  .care-actions-lab .hub-card {
    min-height: 86px;
    border-radius: 24px;
    padding: 13px;
  }

  .care-actions-lab .hub-icon,
  .dreambot-card-robot {
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }

  .dreambot-card-robot .dreambot-head {
    top: 12px;
    width: 31px;
    height: 24px;
  }

  .dreambot-card-robot .dreambot-body {
    bottom: 7px;
    width: 23px;
    height: 17px;
  }

  .care-actions-lab .hub-card strong {
    font-size: 1rem;
  }

  .care-actions-lab .hub-card small {
    font-size: .76rem;
  }
}

@media (max-width: 390px) {
  .care-hero-copy h1 {
    font-size: 2.82rem;
  }

  .care-head-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .install-button,
  .logout-button {
    padding: 0 8px;
    font-size: .72rem;
  }
}

@media (max-width: 680px) {
  .floating-actions {
    right: 12px;
    bottom: 14px;
    gap: 8px;
  }

  .whatsapp-button {
    min-width: 118px;
    padding: 10px 13px;
    box-shadow: 0 12px 28px rgba(15,159,89,.22);
  }

  .whatsapp-button span {
    font-size: .58rem;
    letter-spacing: .09em;
  }

  .whatsapp-button strong {
    font-size: .82rem;
  }
}

/* Dreambody Care V64: app-grade header, settings menu and refined DreamBot */
.care-head-actions {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.care-settings {
  position: relative;
}

.settings-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  border: 1px solid rgba(239,194,90,.28);
  border-radius: 999px;
  padding: 0 17px 0 13px;
  color: #21150f;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,234,176,.9));
  box-shadow: 0 16px 34px rgba(201,155,59,.16), inset 0 1px 0 rgba(255,255,255,.86);
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.settings-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(201,155,59,.22), inset 0 1px 0 rgba(255,255,255,.9);
}

.settings-button span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: #f7d47b;
  background: #0b0907;
  font-size: 1rem;
  line-height: 1;
}

.settings-button strong {
  font-size: .9rem;
}

.settings-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 95;
  display: grid;
  gap: 8px;
  width: min(270px, 84vw);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 26px;
  padding: 10px;
  background:
    radial-gradient(circle at 92% 8%, rgba(239,194,90,.22), transparent 7rem),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,228,.94));
  box-shadow: 0 28px 70px rgba(34,20,8,.18);
  backdrop-filter: blur(18px);
  animation: settingsDrop .18s ease both;
}

.care-settings .settings-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.care-settings .settings-menu.hidden {
  display: none !important;
}

.settings-menu::before {
  content: "";
  position: absolute;
  right: 24px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(255,255,255,.78);
  border-top: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.96);
  transform: rotate(45deg);
}

.settings-menu-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid rgba(207,164,74,.16);
  border-radius: 19px;
  padding: 8px 11px;
  color: #21150f;
  text-align: left;
  text-decoration: none;
  background: rgba(255,255,255,.72);
  font: inherit;
  font-weight: 920;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.care-settings .settings-menu-row {
  width: 100% !important;
  min-width: 0 !important;
}

.settings-menu-row:hover {
  transform: translateX(-2px);
  border-color: rgba(239,194,90,.36);
  background: #fff;
}

.settings-menu-row span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  color: #7a5516;
  background: linear-gradient(135deg, rgba(239,194,90,.55), rgba(255,242,205,.9));
  font-size: .95rem;
}

.settings-menu-row strong {
  overflow: hidden;
  color: #21150f;
  font-size: .92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-menu-row.danger span {
  color: #fff;
  background: linear-gradient(135deg, #ff6072, #ff9b83);
}

.install-button,
.logout-button {
  box-shadow: none;
}

.care-hero-copy {
  text-align: left;
}

.care-hero-copy h1 {
  max-width: 680px;
  text-wrap: balance;
}

.care-hero-copy p:not(.overline) {
  text-wrap: balance;
}

.dreambot-hero-button {
  border-radius: clamp(34px, 5vw, 56px);
  background:
    radial-gradient(circle at 48% 28%, rgba(255,235,166,.38), transparent 9rem),
    radial-gradient(circle at 50% 72%, rgba(116,225,188,.14), transparent 15rem),
    linear-gradient(145deg, #090604, #19130c 48%, #5d3b18);
}

.dreambot-hero-button::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(239,194,90,.2);
  border-radius: clamp(24px, 4vw, 42px);
}

.dreambot-orb {
  width: clamp(172px, 19vw, 238px);
  height: clamp(172px, 19vw, 238px);
}

.dreambot-aura {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,238,181,.96), rgba(239,194,90,.32) 38%, rgba(116,225,188,.14) 57%, transparent 70%);
  filter: drop-shadow(0 22px 38px rgba(0,0,0,.24));
}

.dreambot-head {
  top: 18%;
  z-index: 5;
  width: 58%;
  height: 48%;
  border-radius: 42% 42% 36% 36%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.9), transparent 26%),
    linear-gradient(145deg, #fff9e5, #f7cd66 78%);
  box-shadow: inset 0 -12px 20px rgba(131,91,30,.12), 0 22px 38px rgba(0,0,0,.18);
}

.dreambot-body {
  bottom: 12%;
  z-index: 3;
  width: 48%;
  height: 38%;
  border-radius: 46% 46% 34% 34%;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.62), transparent 28%),
    linear-gradient(145deg, #ffe8a3, #dca638 78%);
  box-shadow: inset 0 -10px 18px rgba(131,91,30,.12), 0 26px 34px rgba(0,0,0,.14);
}

.dreambot-body::before,
.dreambot-body::after {
  content: "";
  position: absolute;
  top: 20%;
  width: 18%;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffeeb8, #d7a436);
  z-index: -1;
}

.dreambot-body::before {
  left: -11%;
  transform: rotate(18deg);
}

.dreambot-body::after {
  right: -11%;
  transform: rotate(-18deg);
}

.dreambot-eye {
  width: 13px;
  height: 13px;
  z-index: 6;
}

.dreambot-smile {
  z-index: 6;
  width: 34%;
  height: 16%;
}

.dreambot-card-robot {
  background: transparent;
  overflow: visible;
}

.dreambot-card-robot .dreambot-aura {
  inset: -1px;
  filter: none;
}

@keyframes settingsDrop {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 680px) {
  .app-head {
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 12px;
  }

  .care-brand-lockup {
    justify-items: start;
  }

  .app-head .logo-frame.small {
    width: min(260px, calc(100vw - 104px));
    height: 76px;
  }

  .session-pill {
    text-align: left;
  }

  .care-head-actions {
    align-self: start;
    width: auto;
    display: block;
  }

  .settings-button {
    min-height: 48px;
    padding: 0 12px;
  }

  .settings-button strong {
    display: none;
  }

  .settings-button span {
    width: 36px;
    height: 36px;
  }

  .settings-menu {
    right: 0;
    width: min(286px, calc(100vw - 24px));
  }

  .care-hero-copy {
    justify-items: center;
    text-align: center;
  }

  .care-hero-copy .overline {
    margin-left: auto;
    margin-right: auto;
  }

  .care-hero-copy h1 {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: clamp(3rem, 15vw, 4.7rem);
    letter-spacing: -.06em;
  }

  .care-hero-copy p:not(.overline) {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .home-procedure-pill {
    justify-items: center;
    text-align: center;
  }

  .dreambot-hero-button {
    min-height: 265px;
  }

  .dreambot-orb {
    width: 174px;
    height: 174px;
  }
}

/* V65: content re-engineering, Dreambody editorial care */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 195, 74, .42), transparent 16rem),
    radial-gradient(circle at 98% 8%, rgba(255, 102, 117, .22), transparent 17rem),
    radial-gradient(circle at 68% 72%, rgba(72, 214, 164, .22), transparent 19rem),
    linear-gradient(145deg, #110a06 0%, #2b170f 28%, #fff0c6 28.2%, #fff8ea 62%, #eafff3 100%);
  background-attachment: fixed;
}

.app-shell {
  background:
    radial-gradient(circle at 10% 8%, rgba(244, 199, 93, .22), transparent 17rem),
    radial-gradient(circle at 90% 18%, rgba(255, 112, 126, .12), transparent 18rem),
    linear-gradient(155deg, rgba(255,248,232,.94), rgba(255,255,246,.9) 48%, rgba(236,255,246,.86));
}

.care-actions-lab .hub-icon {
  width: 74px !important;
  height: 74px !important;
  border-radius: 28px !important;
  font-size: 1.75rem !important;
  color: #21150f !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.92), transparent 35%),
    linear-gradient(135deg, #d9a633, #fff3bc 72%, #f1c14e) !important;
  box-shadow:
    0 18px 30px rgba(72,43,15,.22),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -10px 20px rgba(150,100,22,.1) !important;
}

.care-actions-lab {
  padding: clamp(10px, 2vw, 16px);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(21,13,8,.92), rgba(48,28,17,.74)),
    radial-gradient(circle at 80% 10%, rgba(244,199,93,.24), transparent 11rem);
  box-shadow: 0 26px 74px rgba(42,24,13,.18);
}

.care-actions-lab .hub-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(255,255,255,.22), transparent 7rem),
    linear-gradient(145deg, rgba(255,247,224,.96), rgba(231,190,92,.2) 48%, rgba(255,255,255,.82)) !important;
  border-color: rgba(255,238,187,.72) !important;
  box-shadow:
    0 22px 48px rgba(10,7,5,.16),
    inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.care-actions-lab {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.care-actions-lab .hub-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(121,83,28,.12);
  border-radius: 24px;
  pointer-events: none;
}

.care-actions-lab .hub-card::after {
  background:
    linear-gradient(135deg, rgba(244,199,93,.22), rgba(255,255,255,.32)) !important;
}

.care-actions-lab .hub-card strong {
  color: #20130c !important;
  letter-spacing: -.02em;
}

.floating-dreambot {
  position: fixed;
  z-index: 40;
  left: max(12px, env(safe-area-inset-left));
  top: max(98px, calc(env(safe-area-inset-top) + 72px));
  display: grid;
  grid-template-columns: 52px auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid rgba(244,199,93,.42);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  color: #fff7df;
  background:
    radial-gradient(circle at 20% 10%, rgba(244,199,93,.34), transparent 5rem),
    linear-gradient(135deg, rgba(9,6,4,.94), rgba(51,30,16,.9));
  box-shadow: 0 16px 44px rgba(22,12,6,.24);
  backdrop-filter: blur(16px);
  font-weight: 980;
  letter-spacing: -.01em;
  animation: careTileIn .42s cubic-bezier(.2,.8,.2,1) both;
}

#appShell.hidden ~ .floating-dreambot {
  display: none;
}

.floating-dreambot strong {
  max-width: 92px;
  color: #ffe28a;
  font-size: .86rem;
  line-height: 1;
}

.floating-dreambot-bot {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255,255,255,.68), transparent 34%),
    linear-gradient(145deg, #f6d472, #b98021);
}

.floating-dreambot-bot .dreambot-aura {
  inset: -7px;
}

.floating-dreambot-bot .dreambot-head {
  top: 13px;
  width: 34px;
  height: 25px;
  z-index: 5;
}

.floating-dreambot-bot .dreambot-body {
  bottom: 6px;
  width: 25px;
  height: 18px;
  z-index: 3;
}

.floating-dreambot-bot .dreambot-eye,
.floating-dreambot-bot .dreambot-smile {
  z-index: 6;
}

.appointment-procedure-card {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  text-align: center !important;
  gap: 14px !important;
}

.appointment-procedure-card .overline,
.appointment-procedure-card h3 {
  text-align: center !important;
}

.appointment-procedure-card .ghost-button {
  justify-self: center !important;
}

.care-actions-lab .hub-card small {
  color: #6d5840 !important;
}

.care-actions-lab .procedure {
  background: linear-gradient(145deg, #fff5d5, #f4c75d 160%) !important;
}

.care-actions-lab .main-agenda,
.care-actions-lab .appointment-prep {
  background:
    radial-gradient(circle at 88% 12%, rgba(244,199,93,.32), transparent 6.5rem),
    linear-gradient(145deg, #fffaf0, #ffe8a6) !important;
}

.care-actions-lab .photo-prep,
.care-actions-lab .postop {
  background:
    radial-gradient(circle at 90% 8%, rgba(85,212,164,.22), transparent 7rem),
    linear-gradient(145deg, #fffaf0, #e8fff3) !important;
}

.care-actions-lab .before,
.care-actions-lab .surgery-day {
  background:
    radial-gradient(circle at 90% 8%, rgba(255,126,136,.18), transparent 7rem),
    linear-gradient(145deg, #fffaf0, #ffe1cb) !important;
}

.care-actions-lab .simulator {
  background:
    radial-gradient(circle at 88% 12%, rgba(244,199,93,.26), transparent 7rem),
    linear-gradient(145deg, #fbf0cf, #fff9ec) !important;
}

.care-actions-lab .dreambot-card {
  color: #fff !important;
  background:
    radial-gradient(circle at 15% 10%, rgba(244,199,93,.45), transparent 8rem),
    radial-gradient(circle at 92% 4%, rgba(87,228,176,.18), transparent 8rem),
    linear-gradient(145deg, #080503, #26160e 58%, #4b2b13) !important;
  border-color: rgba(244,199,93,.42) !important;
}

.care-actions-lab .dreambot-card .hub-copy {
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(8,5,3,.46);
  backdrop-filter: blur(8px);
}

.care-actions-lab .dreambot-card strong {
  color: #ffe082 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.care-actions-lab .dreambot-card small {
  color: rgba(255,255,255,.86) !important;
}

.prep-focus-board,
.guidance-layout {
  display: grid;
  gap: 16px;
}

.prep-command-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(239,194,90,.22);
  border-radius: 36px;
  padding: clamp(22px, 4vw, 42px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 16% 14%, rgba(239,194,90,.28), transparent 13rem),
    radial-gradient(circle at 90% 10%, rgba(117,223,184,.16), transparent 13rem),
    linear-gradient(135deg, #0b0704, #29180f 58%, #5b3b1b);
  box-shadow: 0 26px 70px rgba(38,28,16,.16);
}

.prep-command-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(239,194,90,.18);
  border-radius: 38%;
  animation: slowSpin 20s linear infinite;
}

.prep-command-card h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 980;
  line-height: .9;
  letter-spacing: -.045em;
}

.prep-command-card p {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-weight: 780;
  line-height: 1.35;
}

.prep-capsule {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 16px;
  color: #4b3215;
  background: linear-gradient(135deg, #f0bd46, #fff0b8);
  font-size: .72rem;
  font-weight: 980;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(201,155,59,.18);
}

.prep-capsule.centered {
  margin-inline: auto;
}

.prep-mini-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}

.prep-mini-actions button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 0 18px;
  color: #14100b;
  background: linear-gradient(135deg, #f0bd46, #fff0b8);
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(201,155,59,.22);
}

.prep-orbit-board,
.surgery-live-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prep-moment,
.care-moment,
.micro-faq-strip article {
  position: relative;
  min-height: 210px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 32px;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 8%, rgba(239,194,90,.22), transparent 7rem),
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,245,221,.88));
  box-shadow: 0 20px 52px rgba(56,35,16,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.prep-moment:hover,
.care-moment:hover,
.micro-faq-strip article:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 62px rgba(201,155,59,.18);
}

.prep-moment::after,
.care-moment::after,
.micro-faq-strip article::after {
  content: attr(data-tip);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% - 10px);
  z-index: 8;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 20px;
  padding: 12px 14px;
  color: #21150f;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 42px rgba(38,28,16,.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(16px);
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.35;
}

.prep-moment:hover::after,
.prep-moment:focus-within::after,
.care-moment:hover::after,
.care-moment:focus-within::after,
.micro-faq-strip article:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prep-moment span,
.care-moment span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 20px;
  color: #14100b;
  background: linear-gradient(135deg, #f0bd46, #fff0b8);
  font-weight: 980;
  letter-spacing: .04em;
}

.prep-moment h3,
.care-moment h3 {
  margin: 18px 0 8px;
  color: #21150f;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 980;
  line-height: 1;
}

.prep-moment p,
.care-moment p {
  margin: 0;
  color: #6d6258;
  font-size: .95rem;
  font-weight: 780;
  line-height: 1.34;
}

.preconsult-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(239,194,90,.24);
  border-radius: 34px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 92% 8%, rgba(121,226,183,.18), transparent 11rem),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,246,226,.86));
  box-shadow: 0 22px 58px rgba(56,35,16,.1);
}

.preconsult-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.preconsult-head h3 {
  margin: 0;
  color: #21150f;
  font-size: clamp(1.45rem, 3.5vw, 2.4rem);
  line-height: 1;
  font-weight: 980;
}

.preconsult-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-radius: 24px;
  padding: 6px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(239,194,90,.18);
}

.preconsult-mode button {
  min-height: 44px;
  border: 0;
  border-radius: 18px;
  color: #6d4a1f;
  background: transparent;
  font-weight: 950;
}

.preconsult-mode button.active {
  color: #14100b;
  background: linear-gradient(135deg, #f0bd46, #fff0b8);
  box-shadow: 0 14px 30px rgba(201,155,59,.2);
}

.preconsult-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 16px;
  align-items: start;
}

.preconsult-panel.slim {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preconsult-panel > div,
.preconsult-panel.slim > label {
  min-width: 0;
  border: 1px solid rgba(239,194,90,.16);
  border-radius: 26px;
  padding: 16px;
  background: rgba(255,255,255,.58);
}

.preconsult-panel strong,
.preconsult-panel label > span {
  display: block;
  margin: 0 0 9px;
  color: #6d4a1f;
  font-size: .74rem;
  font-weight: 980;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preconsult-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 8px;
}

.preconsult-checks label {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(239,194,90,.2);
  border-radius: 18px;
  padding: 9px 12px;
  color: #21150f;
  background: rgba(255,255,255,.76);
  font-size: .8rem;
  font-weight: 880;
  line-height: 1.12;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.preconsult-checks label::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(111,78,30,.34);
  border-radius: 7px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.preconsult-checks label.checked {
  border-color: rgba(201,155,59,.48);
  background: linear-gradient(135deg, rgba(240,189,70,.34), rgba(255,240,184,.64));
}

.preconsult-checks label.checked::before {
  content: "✓";
  display: grid;
  place-items: center;
  color: #16100b;
  border-color: rgba(201,155,59,.72);
  background: linear-gradient(135deg, #f0bd46, #fff0b8);
  font-size: .82rem;
  font-weight: 980;
}

.preconsult-checks input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.preconsult-checks label span {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.preconsult-measures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.preconsult-measures label,
.preconsult-panel.slim label {
  display: grid;
  gap: 7px;
}

.preconsult-measures label {
  min-width: 0;
}

.preconsult-card input,
.preconsult-card textarea {
  width: 100%;
  border: 1px solid rgba(38,28,16,.08);
  border-radius: 18px;
  padding: 12px 14px;
  color: #21150f;
  background: rgba(255,255,255,.86);
  font: inherit;
  font-weight: 820;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.preconsult-card .preconsult-checks input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  box-shadow: none;
}

.preconsult-card textarea {
  resize: vertical;
  min-height: 76px;
}

.preconsult-save {
  justify-self: end;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #14100b;
  background: linear-gradient(135deg, #f0bd46, #fff0b8);
  font-weight: 980;
  box-shadow: 0 16px 34px rgba(201,155,59,.24);
}

@media (max-width: 760px) {
  .preconsult-head {
    justify-content: center;
    text-align: center;
  }

  .preconsult-panel,
  .preconsult-panel.slim {
    grid-template-columns: 1fr;
  }

  .preconsult-measures {
    grid-template-columns: 1fr;
  }

  .preconsult-checks {
    justify-content: center;
  }

  .preconsult-save {
    justify-self: stretch;
  }
}

.micro-faq-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.micro-faq-strip article {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
}

.micro-faq-strip strong {
  color: #21150f;
  font-size: 1rem;
  font-weight: 980;
}

.micro-faq-strip span {
  color: #9a7427;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photo-prep-panel .photo-capture-card {
  min-height: min(680px, 72dvh);
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(circle at 12% 10%, rgba(239,194,90,.2), transparent 9rem),
    radial-gradient(circle at 92% 18%, rgba(117,223,184,.14), transparent 10rem),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,246,226,.9));
}

.photo-prep-panel .photo-capture-head {
  grid-template-columns: 1fr auto;
  text-align: left;
  justify-items: start;
  align-items: center;
}

.photo-prep-panel .photo-capture-head h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: .95;
}

.photo-actions-featured {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.photo-actions-featured .photo-action {
  grid-template-columns: 30px 1fr;
  min-height: 54px;
  border-radius: 18px;
  padding: 8px 10px;
  text-align: left;
  background:
    radial-gradient(circle at 82% 10%, rgba(239,194,90,.2), transparent 5rem),
    linear-gradient(145deg, #fff, #fff4d8);
  border-color: rgba(239,194,90,.2);
}

.photo-actions-featured .photo-action span {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0bd46, #fff0b8);
  color: #21150f;
  font-size: .72rem;
  font-weight: 980;
}

.photo-actions-featured .photo-action strong {
  font-size: .86rem;
  line-height: 1.05;
}

.photo-gallery-featured {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.photo-gallery-featured .photo-card img {
  height: clamp(250px, 42dvh, 390px);
}

#postopPanel .panel-title {
  text-align: center;
}

#postopPanel .panel-title h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

#postopPanel .postop-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

#postopPanel .postop-actions .hub-card {
  min-height: 92px;
  border-radius: 24px;
  padding: 12px;
  gap: 10px;
}

#postopPanel .postop-actions .hub-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 17px !important;
  font-size: 1.05rem !important;
}

#postopPanel .postop-actions strong {
  font-size: .98rem;
  line-height: 1;
}

#postopPanel .postop-actions small {
  font-size: .72rem;
  line-height: 1.12;
}

#postopPanel .care-path {
  gap: 10px;
  margin-bottom: 0;
  padding: 14px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(244,199,93,.18), transparent 12rem),
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,243,216,.68));
  animation: none;
}

#postopPanel .care-path-title {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
}

#postopPanel .care-path-title h2 {
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  line-height: .95;
}

#postopPanel .postop-pulse {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px 14px;
  min-height: auto;
  padding: 12px;
  border-radius: 24px;
}

#postopPanel .postop-pulse .calm-meter {
  grid-row: 1 / span 4;
  transform: scale(.78);
}

#postopPanel .postop-pulse > span {
  font-size: .8rem;
  letter-spacing: .08em;
}

#postopPanel .postop-pulse p {
  font-size: .8rem;
  line-height: 1.2;
}

#postopPanel .checkin-countdown {
  padding: 8px 10px;
  font-size: .78rem;
}

#postopPanel .care-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#postopPanel .care-step {
  min-height: 108px;
  border-radius: 22px;
  padding: 10px;
  animation: none;
}

#postopPanel .care-step button {
  justify-items: center;
  text-align: center;
  gap: 5px;
}

#postopPanel .care-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  font-size: .78rem;
}

#postopPanel .care-step strong {
  font-size: .86rem;
  line-height: 1;
}

#postopPanel .care-step small {
  font-size: .68rem;
  line-height: 1.12;
}

#postopPanel .care-step-detail {
  min-height: auto;
  border-radius: 24px;
  padding: 14px;
  animation: none;
}

#postopPanel .care-step-detail .detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: .82rem;
}

#postopPanel .care-step-detail h3 {
  font-size: 1rem;
}

#postopPanel .care-step-detail p {
  font-size: .84rem;
  line-height: 1.32;
}

#postopPanel .care-step-detail small {
  font-size: .76rem;
  line-height: 1.22;
}

.support-lane {
  display: none !important;
}

@media (max-width: 820px) {
  #postopPanel .postop-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #postopPanel .postop-actions .hub-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  #postopPanel .care-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #postopPanel .postop-pulse {
    grid-template-columns: 94px 1fr;
  }
}

@media (max-width: 480px) {
  .floating-dreambot {
    top: max(82px, calc(env(safe-area-inset-top) + 62px));
    grid-template-columns: 46px auto;
    min-height: 52px;
    padding-right: 11px;
  }

  .floating-dreambot strong {
    max-width: 78px;
    font-size: .78rem;
  }

  .floating-dreambot-bot {
    width: 46px;
    height: 46px;
  }

  .photo-actions-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .photo-actions-featured .photo-action {
    min-height: 48px;
    padding: 7px;
  }

  .photo-actions-featured .photo-action strong {
    font-size: .76rem;
  }

  .photo-gallery-featured .photo-card img {
    height: 330px;
  }

  #postopPanel .postop-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #postopPanel .postop-actions .hub-card {
    min-height: 82px;
    padding: 9px 6px;
  }

  #postopPanel .postop-actions .hub-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
  }

  #postopPanel .postop-actions small {
    display: none;
  }

  #postopPanel .care-path {
    padding: 10px;
    border-radius: 24px;
  }

  #postopPanel .postop-pulse {
    grid-template-columns: 78px 1fr;
    padding: 10px;
  }

  #postopPanel .postop-pulse .calm-meter {
    transform: scale(.66);
    transform-origin: center;
  }

  #postopPanel .care-step {
    min-height: 92px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .care-actions-lab .hub-card,
  .care-step,
  .learn-card {
    animation-duration: .38s !important;
  }
}

/* V68: restore readable action tiles and keep DreamBot consistent */
.care-hero-stage {
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, .62fr) !important;
  align-items: stretch;
}

.dreambot-hero-button {
  min-height: 100% !important;
  padding: clamp(16px, 2.4vw, 26px) !important;
}

.dreambot-hero-button .dreambot-orb {
  width: clamp(132px, 15vw, 180px) !important;
  height: clamp(132px, 15vw, 180px) !important;
}

.care-actions-lab {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  padding: 14px !important;
}

.care-actions-lab .hub-card {
  min-height: 104px !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 12px !important;
  border-radius: 28px !important;
  padding: 14px !important;
  text-align: left !important;
  overflow: hidden !important;
}

.care-actions-lab .hub-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 21px !important;
  font-size: 1.26rem !important;
}

.care-actions-lab .hub-copy {
  min-width: 0 !important;
  justify-items: start !important;
  text-align: left !important;
}

.care-actions-lab .hub-card strong {
  display: block !important;
  max-width: 100% !important;
  color: #20130c !important;
  font-size: clamp(.94rem, 2.6vw, 1.1rem) !important;
  line-height: 1.02 !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  text-align: left !important;
}

.care-actions-lab .hub-card small {
  display: block !important;
  max-width: 100% !important;
  color: #6d5840 !important;
  font-size: .72rem !important;
  line-height: 1.15 !important;
  overflow: visible !important;
  white-space: normal !important;
  text-align: left !important;
}

.floating-dreambot {
  top: max(88px, calc(env(safe-area-inset-top) + 68px)) !important;
  grid-template-columns: 44px auto !important;
  min-height: 50px !important;
  padding: 4px 11px 4px 4px !important;
  box-shadow: 0 14px 36px rgba(22,12,6,.22) !important;
}

.floating-dreambot strong {
  max-width: 78px !important;
  font-size: .76rem !important;
}

.floating-dreambot-bot {
  width: 44px !important;
  height: 44px !important;
  overflow: visible !important;
}

.floating-dreambot-bot .dreambot-aura {
  inset: -6px !important;
}

.floating-dreambot-bot .dreambot-head {
  top: 8px !important;
  width: 29px !important;
  height: 25px !important;
  z-index: 5 !important;
}

.floating-dreambot-bot .dreambot-head::before {
  top: -10px !important;
  height: 12px !important;
}

.floating-dreambot-bot .dreambot-head::after {
  top: -15px !important;
  width: 8px !important;
  height: 8px !important;
}

.floating-dreambot-bot .dreambot-eye {
  top: 38% !important;
  width: 5px !important;
  height: 5px !important;
}

.floating-dreambot-bot .dreambot-smile {
  bottom: 23% !important;
  width: 28% !important;
  height: 10% !important;
  border-bottom-width: 2px !important;
}

.floating-dreambot-bot .dreambot-body {
  bottom: 6px !important;
  width: 22px !important;
  height: 15px !important;
  border-radius: 10px 10px 16px 16px !important;
  z-index: 3 !important;
}

@media (max-width: 820px) {
  .care-hero-stage {
    grid-template-columns: 1fr !important;
  }

  .dreambot-hero-button {
    min-height: 196px !important;
    border-radius: 34px !important;
  }

  .dreambot-hero-button .dreambot-orb {
    width: 132px !important;
    height: 132px !important;
  }
}

@media (max-width: 520px) {
  .care-actions-lab {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    border-radius: 30px !important;
  }

  .care-actions-lab .hub-card {
    min-height: 82px !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    border-radius: 24px !important;
    padding: 12px !important;
  }

  .care-actions-lab .hub-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 19px !important;
    font-size: 1.08rem !important;
  }

  .dreambot-hero-button {
    min-height: 172px !important;
  }

  .dreambot-hero-button .dreambot-orb {
    width: 116px !important;
    height: 116px !important;
  }
}

@media (max-width: 820px) {
  .prep-orbit-board,
  .surgery-live-route,
  .micro-faq-strip {
    grid-template-columns: 1fr;
  }

  .prep-moment,
  .care-moment {
    min-height: 168px;
  }

  .photo-actions-featured {
    grid-template-columns: 1fr;
  }

  .photo-prep-panel .photo-capture-head {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .care-actions-lab .hub-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.22rem !important;
  }
}

@media (max-width: 420px) {
  .app-head {
    grid-template-columns: 1fr 52px;
  }

  .app-head .logo-frame.small {
    width: min(245px, calc(100vw - 102px));
    height: 70px;
    padding: 8px 12px;
  }

  .app-head .logo-frame.small img {
    max-height: 48px;
  }

  .session-pill strong {
    font-size: .98rem;
  }
}

/* Final mobile polish: header hierarchy and non-invasive floating contact */
@media (max-width: 680px) {
  .app-head {
    grid-template-columns: 1fr 54px !important;
    gap: 10px !important;
  }

  .care-brand-lockup {
    display: contents !important;
  }

  .app-head .logo-frame.small {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: min(258px, calc(100vw - 106px)) !important;
    min-width: 0 !important;
    height: 74px !important;
    justify-self: start !important;
  }

  .care-head-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    justify-self: end !important;
    width: auto !important;
    display: block !important;
  }

  .session-pill {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    text-align: center !important;
  }

  .session-pill strong {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .floating-actions {
    right: 10px !important;
    bottom: 12px !important;
  }

  .whatsapp-button {
    display: grid !important;
    place-items: center !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .whatsapp-button span {
    display: none !important;
  }

  .whatsapp-button strong {
    font-size: 0 !important;
  }

  .whatsapp-button strong::after {
    content: "WA";
    font-size: .92rem;
    letter-spacing: .03em;
  }

  .settings-menu-row strong {
    font-size: .88rem !important;
  }
}

/* Dreambody Care final polish: calmer, cleaner and faster on mobile */
:root {
  --db-ink-deep: #170c08;
  --db-coffee: #2a160f;
  --db-champagne: #f2c962;
  --db-soft-gold: #fff0bd;
  --db-cream: #fffaf0;
  --db-mint: #c9f2dc;
  --db-blush: #ffd9d3;
}

body {
  background:
    radial-gradient(circle at 14% 7%, rgba(242, 201, 98, .55), transparent 18rem),
    radial-gradient(circle at 94% 20%, rgba(255, 133, 118, .22), transparent 22rem),
    radial-gradient(circle at 54% 88%, rgba(119, 226, 177, .2), transparent 24rem),
    linear-gradient(145deg, #fff8ea 0%, #f3dec2 44%, #fff7ed 100%) !important;
}

.update-banner {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(430px, calc(100vw - 28px)) !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  z-index: 9999 !important;
}

.update-banner .gold-button,
.update-banner button {
  margin-inline: auto !important;
}

.panel-title,
.simulator-title-compact,
.care-path-title,
.photo-capture-head,
.dreambot-compact-head,
.guided-photo-head {
  text-align: center !important;
  justify-items: center !important;
}

.panel-title h2,
.care-path-title h2,
.guided-photo-head h2 {
  max-width: 760px !important;
  margin-inline: auto !important;
  line-height: .98 !important;
  text-wrap: balance !important;
}

.panel-subtitle,
.agenda-helper,
.photo-guide-text p,
.photo-capture-head small,
.care-step-detail p,
.care-step-detail small,
.dreambot-disclaimer {
  max-width: 720px !important;
  margin-inline: auto !important;
  text-align: center !important;
  line-height: 1.45 !important;
}

.agenda-helper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  background: rgba(255, 246, 219, .82) !important;
  color: #745027 !important;
  font-size: .82rem !important;
  font-weight: 850 !important;
}

.care-premium-home {
  gap: 20px !important;
}

.care-hero-stage,
.care-actions-lab,
.photo-capture-card,
#postopPanel .postop-pulse,
#postopPanel .care-path,
.panel-window {
  box-shadow: 0 20px 58px rgba(40, 20, 12, .12) !important;
}

.dreambot-hero-button {
  overflow: hidden !important;
  isolation: isolate !important;
}

.dreambot-hero-button .dreambot-orb {
  overflow: visible !important;
  filter: drop-shadow(0 18px 34px rgba(242, 201, 98, .28)) !important;
}

.dreambot-hero-button .dreambot-head,
.dreambot-card-robot .dreambot-head,
.floating-dreambot-bot .dreambot-head {
  z-index: 6 !important;
}

.dreambot-hero-button .dreambot-body,
.dreambot-card-robot .dreambot-body,
.floating-dreambot-bot .dreambot-body {
  z-index: 4 !important;
}

.dreambot-hero-button .dreambot-smile,
.dreambot-card-robot .dreambot-smile,
.floating-dreambot-bot .dreambot-smile {
  z-index: 8 !important;
}

.care-actions-lab {
  background:
    linear-gradient(145deg, rgba(26, 13, 8, .96), rgba(69, 43, 20, .92)),
    radial-gradient(circle at 80% 20%, rgba(242, 201, 98, .22), transparent 12rem) !important;
}

.care-actions-lab .hub-card {
  min-width: 0 !important;
  align-items: center !important;
  text-align: left !important;
  background: linear-gradient(135deg, rgba(255, 251, 239, .96), rgba(255, 237, 187, .86)) !important;
  border: 1px solid rgba(166, 118, 38, .22) !important;
  transform: translateZ(0) !important;
}

.care-actions-lab .hub-card strong,
.home-action-grid .hub-card strong,
.care-wheel .hub-card strong {
  color: var(--db-ink-deep) !important;
  line-height: 1.05 !important;
  letter-spacing: -.01em !important;
}

.care-actions-lab .hub-card small,
.home-action-grid .hub-card small,
.care-wheel .hub-card small {
  color: rgba(45, 31, 18, .68) !important;
  line-height: 1.22 !important;
}

.care-actions-lab .dreambot-card {
  background: linear-gradient(145deg, #1b0f0a, #583819) !important;
  color: #fff7dc !important;
}

.care-actions-lab .dreambot-card strong,
.care-actions-lab .dreambot-card small {
  color: #fff7dc !important;
}

.care-actions-lab .hub-icon {
  flex: 0 0 auto !important;
  overflow: hidden !important;
}

.photo-actions-featured {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.photo-actions-featured .photo-action {
  min-height: 74px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  text-align: center !important;
}

.photo-actions-featured .photo-action span {
  width: 30px !important;
  height: 30px !important;
  font-size: .84rem !important;
  margin-inline: auto !important;
}

.photo-actions-featured .photo-action strong {
  font-size: .78rem !important;
  line-height: 1.08 !important;
  text-wrap: balance !important;
}

.photo-prep-panel .photo-capture-card {
  padding: clamp(14px, 2vw, 22px) !important;
}

#postopPanel .postop-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#postopPanel .postop-actions .hub-card {
  min-height: 86px !important;
  padding: 12px !important;
  border-radius: 20px !important;
  text-align: center !important;
  justify-items: center !important;
}

#postopPanel .postop-actions .hub-icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 1rem !important;
}

#postopPanel .care-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#postopPanel .care-step {
  min-height: 96px !important;
  padding: 10px !important;
  text-align: center !important;
}

#postopPanel .care-step .step-icon {
  width: 34px !important;
  height: 34px !important;
  font-size: .94rem !important;
}

#postopPanel .care-step strong {
  font-size: .84rem !important;
  line-height: 1.05 !important;
}

#postopPanel .care-step small {
  font-size: .68rem !important;
  line-height: 1.15 !important;
}

.gold-button,
.soft-button,
.danger-button,
.panel-close,
.settings-button,
.settings-menu-row,
.day-booking-close,
.appointment-request-close {
  touch-action: manipulation !important;
}

.video-consult-button {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  background: linear-gradient(135deg, #1d100a, #5b3a17) !important;
  color: #fff4ca !important;
  font-weight: 950 !important;
  font-size: .78rem !important;
  letter-spacing: .02em !important;
  box-shadow: 0 14px 28px rgba(42, 22, 15, .18) !important;
}

.video-consult-button:active {
  transform: translateY(1px) scale(.99) !important;
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at -8% 8%, rgba(242, 201, 98, .52), transparent 13rem),
      radial-gradient(circle at 112% 18%, rgba(255, 134, 123, .25), transparent 15rem),
      radial-gradient(circle at 44% 96%, rgba(113, 231, 183, .22), transparent 17rem),
      linear-gradient(150deg, #fff7e8 0%, #f3dfc4 48%, #fff8ef 100%) !important;
  }

  .panel-window {
    width: min(100% - 16px, 760px) !important;
    max-height: calc(100dvh - 18px) !important;
    border-radius: 28px !important;
  }

  .care-hero-stage {
    padding: 18px !important;
    border-radius: 30px !important;
  }

  .care-hero-copy h1 {
    font-size: clamp(2.45rem, 14vw, 4.4rem) !important;
    line-height: .86 !important;
    text-align: left !important;
  }

  .care-hero-copy p {
    font-size: .95rem !important;
    line-height: 1.35 !important;
  }

  .care-actions-lab {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 14px !important;
    border-radius: 28px !important;
  }

  .care-actions-lab .hub-card {
    grid-template-columns: 1fr !important;
    min-height: 118px !important;
    padding: 13px 10px !important;
    text-align: center !important;
    justify-items: center !important;
    gap: 8px !important;
  }

  .care-actions-lab .hub-icon,
  .dreambot-card-robot {
    width: 48px !important;
    height: 48px !important;
    border-radius: 18px !important;
  }

  .care-actions-lab .hub-card strong {
    font-size: .98rem !important;
  }

  .care-actions-lab .hub-card small {
    font-size: .74rem !important;
  }

  .photo-actions-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #postopPanel .postop-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #postopPanel .care-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .floating-dreambot {
    left: 10px !important;
    top: auto !important;
    bottom: 82px !important;
    max-width: 156px !important;
    padding: 7px 10px 7px 7px !important;
    border-radius: 999px !important;
  }

  .floating-dreambot strong {
    font-size: .78rem !important;
  }
}

@media (max-width: 420px) {
  .care-actions-lab .hub-card {
    min-height: 108px !important;
  }

  .care-actions-lab .hub-card strong {
    font-size: .9rem !important;
  }

  .care-actions-lab .hub-card small {
    font-size: .68rem !important;
  }

  .photo-actions-featured .photo-action {
    min-height: 66px !important;
  }
}

@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  .boot-logo-orbit,
  .care-orbit,
  .hub-card,
  .care-step,
  .postop-pulse,
  .dreambot-aura,
  .dreambot-mini-robot,
  .floating-dreambot-bot,
  .dreambot-hero-button::before,
  .care-actions-lab .hub-card::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   SHELL MÓVIL CARE — app bar + drawer + bottom nav
   Reutiliza la paleta Dreambody Care. No altera la lógica.
   ============================================================ */
body.mnav-lock { overflow: hidden; }

/* App bar */
.app-head.appbar {
  position: sticky; top: 0; z-index: 40;
  gap: 12px; padding: 10px 14px;
  background: linear-gradient(135deg, #140d08, #29160f);
  border: 1px solid rgba(201,155,59,.24); border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 30px rgba(56,35,16,.22);
}
.app-head.appbar .settings-button { color: #fff3d6; }
.app-head.appbar .settings-button strong { color: #fff3d6; }
.app-head.appbar .logo-frame.small { border-color: rgba(245,201,103,.4); }

/* Hamburguesa */
.mnav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px; cursor: pointer;
  border: 1px solid rgba(245,201,103,.30); background: rgba(255,243,214,.06);
}
.mnav-burger span { display: block; width: 20px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--gold-bright); transition: transform .25s, opacity .2s; }
.mnav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mnav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.mnav-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(11,9,7,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .26s; }
.mnav-overlay.show { opacity: 1; }

/* Drawer */
.mnav-drawer {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: min(85vw, 322px); height: 100%; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1b120c, #241009);
  border-right: 1px solid rgba(245,201,103,.24); box-shadow: 26px 0 60px rgba(0,0,0,.42);
  transform: translateX(-106%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.mnav-drawer.open { transform: none; }
.mnav-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-bottom: 1px solid rgba(245,201,103,.16); }
.mnav-head img { width: 44px; height: 44px; border-radius: 14px; padding: 3px; background: #050505; border: 1px solid rgba(245,201,103,.4); object-fit: contain; }
.mnav-head-txt strong { display: block; color: #fff3d6; font-size: 1rem; }
.mnav-head-txt span { display: block; color: var(--gold-bright); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.mnav-close { margin-left: auto; width: 38px; height: 38px; border-radius: 11px; cursor: pointer; color: var(--gold-bright); font-size: 1rem; background: transparent; border: 1px solid rgba(245,201,103,.28); }
.mnav-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.mnav-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: left; background: transparent; color: #f0e2cd; font-size: .98rem; font-weight: 600; font-family: inherit; transition: background .18s; }
.mnav-item:hover { background: rgba(245,201,103,.10); }
.mnav-item.is-active { color: #fff3d6; background: linear-gradient(135deg, rgba(245,201,103,.20), rgba(201,155,59,.08)); box-shadow: inset 0 0 0 1px rgba(245,201,103,.34); }
.mnav-badge { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; font-style: normal; font-size: .82rem; font-weight: 800; color: #1e1308; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.mnav-foot { padding: 12px; border-top: 1px solid rgba(245,201,103,.16); display: grid; gap: 8px; }
.mnav-foot-btn { padding: 11px; border-radius: 12px; cursor: pointer; font-weight: 700; font-family: inherit; color: #f0e2cd; background: rgba(255,243,214,.05); border: 1px solid rgba(245,201,103,.28); }
.mnav-foot-btn:hover { background: rgba(245,201,103,.12); }
.mnav-foot-btn.danger { color: #ffb1b8; border-color: rgba(255,93,104,.34); }

/* Bottom nav */
.mnav-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #1d120c, #140d08);
  border-top: 1px solid rgba(245,201,103,.22);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0,0,0,.30);
}
.mnav-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; border-radius: 12px; cursor: pointer; background: transparent; color: rgba(240,226,205,.58); font-size: .62rem; font-weight: 700; letter-spacing: .02em; font-family: inherit; }
.mnav-tab svg { width: 22px; height: 22px; }
.mnav-tab.is-active { color: var(--gold-bright); }
.mnav-tab.is-active svg { filter: drop-shadow(0 3px 8px rgba(245,201,103,.42)); }

/* Reglas responsive + arreglo de botones flotantes */
@media (max-width: 768px) {
  .mnav-bottom { display: grid; }
  .app { padding-bottom: 84px; }
  /* Sube WhatsApp/SOS por encima del bottom nav */
  .floating-actions { bottom: calc(90px + env(safe-area-inset-bottom)) !important; right: 16px !important; }
  /* DreamBot ya está en la barra inferior: ocultamos el orbe flotante que tapaba tarjetas */
  .floating-dreambot { display: none !important; }
}
@media (min-width: 769px) {
  .mnav-bottom { display: none; }
}

/* Compactar app bar de Care en móvil para que hamburguesa + logo + ajustes quepan en una fila */
@media (max-width: 768px) {
  .app-head.appbar { flex-wrap: nowrap; align-items: center; }
  .app-head.appbar .care-brand-lockup { min-width: 0; flex: 1 1 auto; overflow: hidden; gap: 8px; }
  .app-head.appbar .care-brand-lockup .session-pill { display: none; } /* el saludo ya aparece en el hero */
  .app-head.appbar .logo-frame.small { flex: 0 0 auto; padding: 4px 8px; }
  .app-head.appbar .logo-frame.small img { height: 26px; width: auto; max-width: 132px; object-fit: contain; }
  .app-head.appbar .care-head-actions { flex: 0 0 auto; }
  .app-head.appbar .settings-button { padding: 8px 12px; }
}

/* Forzar app bar de Care en una sola fila (sobrescribe el grid base) */
@media (max-width: 768px) {
  .app-head.appbar { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 10px; grid-template-columns: none !important; }
  .app-head.appbar .care-brand-lockup { display: flex !important; align-items: center; min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .app-head.appbar .logo-frame.small { width: auto !important; height: auto !important; min-height: 0 !important; padding: 5px 9px !important; }
  .app-head.appbar .logo-frame.small img { height: 24px !important; width: auto !important; max-width: 118px; object-fit: contain; }
  .app-head.appbar .session-pill { display: none !important; }
  .app-head.appbar .care-head-actions { flex: 0 0 auto; }
  #navToggle { order: -1; }
}

/* La media query base apila el header en columna; forzamos fila horizontal */
@media (max-width: 768px) {
  .app-head.appbar { flex-direction: row !important; justify-content: flex-start !important; }
  .app-head.appbar .care-head-actions { margin-left: auto; }
}

/* Respeto a "reduce motion" y feedback táctil del shell */
@media (max-width: 768px) {
  .mnav-item, .mnav-tab, .mnav-foot-btn { -webkit-tap-highlight-color: transparent; }
  .mnav-item:active, .mnav-tab:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .mnav-drawer, .mnav-overlay { transition: none !important; }
}

/* ============================================================================
   REDISEÑO UI/UX 2026 · Dreambody Care
   Capa de presentación añadida al final (gana la cascada de forma predecible).
   No altera lógica ni hooks del JS. Se conservan paleta dorado/crema y logos.
   ========================================================================== */

/* ---- 0 · Render tipográfico (Inter + EB Garamond ya cargan desde <head>) ---- */
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, .panel-title h2{
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
}
/* Titular del hero: de sans-black a serif editorial (más premium, coherente con paneles) */
.care-hero-copy h1{
  font-family: "EB Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  font-size: clamp(2.5rem, 5vw, 4.4rem) !important;
  line-height: 1 !important;
  letter-spacing: -.005em !important;
}
.login-card h1{
  font-family: "EB Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem) !important;
  line-height: 1.04 !important;
}

/* ---- 1 · Contenedor y ritmo general ---- */
.app{ width: min(1180px, calc(100% - 32px)) !important; margin: 14px auto 52px !important; }
.care-premium-home{ gap: clamp(16px, 2vw, 24px) !important; }

/* ---- 2 · Header limpio, sticky y de 3 zonas ---- */
.app-head.appbar{
  position: sticky; top: 10px; z-index: 30;
  gap: 12px !important;
  padding: 9px 14px !important;
  border-radius: 22px;
  background: rgba(255,251,244,.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(201,155,59,.18);
  box-shadow: 0 14px 36px rgba(56,35,16,.10);
  margin-bottom: clamp(16px, 2vw, 26px) !important;
}
.app-head .logo-frame.small{
  width: clamp(132px, 13vw, 176px) !important;
  min-width: auto !important;
  height: 56px !important;
  border-radius: 16px !important;
  padding: 8px 12px !important;
}
.app-head .logo-frame.small img{ max-height: 40px !important; }
.session-pill{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px 4px !important;
}
.session-pill strong{ font-size: clamp(.98rem, 1.4vw, 1.14rem) !important; }
/* Header en una sola fila: marca a la izquierda, acciones a la derecha */
.app-head.appbar{
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
}
.care-brand-lockup{ flex: 0 1 auto !important; min-width: 0 !important; }
.care-head-actions{ margin-left: auto !important; flex: 0 0 auto !important; }
.settings-button{ white-space: nowrap !important; }

/* ---- 3 · Hero más contenido y legible ---- */
.care-hero-copy{ padding: clamp(24px, 3.2vw, 42px) !important; gap: 18px !important; }
.care-hero-copy p:not(.overline){
  font-weight: 500 !important;
  font-size: clamp(1rem, 1.25vw, 1.14rem) !important;
  line-height: 1.5 !important;
}
.home-procedure-pill strong{ font-weight: 700 !important; }

/* ---- 4 · Ruta (pathway) ---- */
.care-pathway{ gap: 12px !important; }

/* ---- 5 · Hub de acciones: contenedor claro + grid responsive ---- */
.care-actions-lab{
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: clamp(12px, 1.4vw, 16px) !important;
  padding: clamp(16px, 1.8vw, 22px) !important;
  border-radius: 30px !important;
  background: linear-gradient(155deg, rgba(255,252,246,.96), rgba(255,243,222,.92)) !important;
  border: 1px solid rgba(201,155,59,.20) !important;
  box-shadow: 0 22px 60px rgba(56,35,16,.10) !important;
}
.care-actions-lab .hub-card{
  min-height: 108px !important;
  grid-template-columns: 52px minmax(0,1fr) !important;
  gap: 14px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(201,155,59,.16) !important;
  background: linear-gradient(135deg, #ffffff, #fff5e4) !important;
  box-shadow: 0 8px 22px rgba(56,35,16,.07) !important;
}
.care-actions-lab .hub-card:hover{
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 38px rgba(201,155,59,.20) !important;
}
.care-actions-lab .hub-icon{ width: 52px !important; height: 52px !important; border-radius: 18px !important; }
@media (max-width: 900px){ .care-actions-lab{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
@media (max-width: 620px){
  .care-actions-lab{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  /* En columnas estrechas las tarjetas pasan a formato vertical (icono arriba, texto abajo) */
  .care-actions-lab .hub-card{
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    min-height: 118px !important;
    padding: 14px 10px !important;
  }
  .care-actions-lab .hub-icon{ width: 46px !important; height: 46px !important; }
  .care-actions-lab .hub-copy{ justify-items: center !important; text-align: center !important; }
  .care-actions-lab .hub-card strong{ text-align: center !important; font-size: .96rem !important; }
  .care-actions-lab .hub-card small{ text-align: center !important; }
}

/* ---- 6 · Paneles: ancho de lectura + títulos proporcionados ---- */
.panel-content{ width: 100%; max-width: 1040px; margin-inline: auto; }
.panel-title{ margin-bottom: clamp(18px, 2.4vw, 28px) !important; }
.panel-title h2{ font-size: clamp(1.9rem, 3.6vw, 3rem) !important; line-height: 1.04 !important; }

/* ---- 7 · Agenda: calendario a tamaño humano ---- */
.agenda-calendar-card{ max-width: 640px; }
.agenda-clean-layout{ align-items: start; }
.day{ aspect-ratio: 1 / .82 !important; }

/* ---- 8 · Botones flotantes ordenados; se retira el DreamBot redundante ---- */
.floating-dreambot{ display: none !important; }
.floating-actions{ right: 18px !important; bottom: 18px !important; gap: 10px !important; }
@media (max-width: 768px){
  .floating-actions{
    right: 14px !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }
  .whatsapp-button{ min-width: 0 !important; }
}

/* ---- 9 · Foco accesible por teclado ---- */
.gold-button:focus-visible,
.ghost-button:focus-visible,
.hub-card:focus-visible,
.mnav-item:focus-visible,
.mnav-tab:focus-visible,
.selected-procedure:focus-visible,
.settings-button:focus-visible{
  outline: 3px solid rgba(201,155,59,.55) !important;
  outline-offset: 2px !important;
}

/* ============================================================================
   REDISEÑO v2 · Dreambody Care — más luminoso, acentos por etapa, formularios
   digeribles, flotantes discretos, micro-animaciones. (Solo presentación)
   ========================================================================== */

/* ---- v2.1 · Hero luminoso y editorial (rompe el bloque negro pesado) ---- */
.care-hero-copy{
  color: var(--ink) !important;
  padding: clamp(22px, 3vw, 40px) !important;
  background:
    radial-gradient(circle at 84% 10%, rgba(245,201,103,.30), transparent 15rem),
    radial-gradient(circle at 8% 94%, rgba(255,93,104,.10), transparent 16rem),
    linear-gradient(150deg, #fffdf9 0%, #fff4e3 100%) !important;
  border: 1px solid rgba(201,155,59,.24) !important;
  box-shadow: 0 20px 54px rgba(56,35,16,.10) !important;
}
.care-hero-copy::before{ border-color: rgba(201,155,59,.20) !important; }
.care-hero-copy::after{ border-color: rgba(201,155,59,.16) !important; }
.care-hero-copy h1{ color: #1a120b !important; }
.care-hero-copy p:not(.overline){ color: rgba(24,18,13,.64) !important; }
.care-hero-copy .overline{
  color: #7a5516 !important;
  background: linear-gradient(135deg, rgba(245,201,103,.34), rgba(255,241,201,.7)) !important;
}
.home-procedure-pill{
  background: linear-gradient(135deg, #ffffff, #fff3d9) !important;
  border-color: rgba(201,155,59,.32) !important;
}

/* ---- v2.2 · Ruta compacta (deja de competir con el hub) ---- */
.care-pathway button{
  min-height: auto !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(56,35,16,.07) !important;
}
@media (max-width: 620px){
  .care-pathway{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 8px !important; }
  .care-pathway button{
    grid-template-columns: 34px minmax(0,1fr) !important;
    grid-template-areas: "icon title" "icon text" !important;
    align-items: center !important;
    justify-items: start !important;
    text-align: left !important;
    min-height: auto !important;
    padding: 10px 12px !important;
    gap: 2px 10px !important;
  }
  .care-pathway i{ grid-area: icon !important; width: 34px !important; height: 34px !important; align-self: center !important; }
  .care-pathway strong{ grid-area: title !important; text-align: left !important; font-size: .92rem !important; }
  .care-pathway span{ grid-area: text !important; text-align: left !important; font-size: .72rem !important; }
}

/* ---- v2.3 · Acentos coral / menta por etapa (sutiles, en el icono) ---- */
.care-actions-lab .before .hub-icon,
.care-actions-lab .surgery-day .hub-icon{
  background: linear-gradient(135deg, #ffb07a, #ff7d7d) !important;
  color: #4a1113 !important;
  box-shadow: 0 10px 22px rgba(255,109,104,.26) !important;
}
.care-actions-lab .postop .hub-icon{
  background: linear-gradient(135deg, #85e4c4, #43c9a0) !important;
  color: #08442f !important;
  box-shadow: 0 10px 22px rgba(67,201,160,.24) !important;
}
.care-actions-lab .photo-prep .hub-icon,
.care-actions-lab .appointment-prep .hub-icon{
  background: linear-gradient(135deg, #f7d38a, #f0b74a) !important;
}
/* fino borde superior de acento por etapa */
.care-actions-lab .before,
.care-actions-lab .surgery-day{ border-top: 2px solid rgba(255,125,125,.5) !important; }
.care-actions-lab .postop{ border-top: 2px solid rgba(67,201,160,.5) !important; }

/* ---- v2.4 · Botones flotantes discretos (sin pisar contenido) ---- */
/* Debajo de los paneles (z 40): al abrir un panel/formulario se ocultan tras él */
.floating-actions{ z-index: 35 !important; }
.whatsapp-button{ min-width: 132px !important; padding: 11px 15px !important; }
@media (max-width: 768px){
  .floating-actions{
    right: 12px !important;
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    gap: 8px !important;
  }
  .whatsapp-button{
    min-width: 0 !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
  }
  .whatsapp-button span{ display: none !important; }
  .whatsapp-button strong{ font-size: .8rem !important; }
  .sos-button{ min-width: 0 !important; padding: 10px 16px !important; font-size: .82rem !important; }
}

/* ---- v2.5 · Formularios en bloques digeribles ---- */
/* Antecedentes: rejilla de chips (2 col móvil, 3 escritorio) en vez de lista larga */
.preconsult-checks{
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 7px !important;
  justify-content: stretch !important;
}
@media (min-width: 720px){
  .preconsult-checks{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
}
.preconsult-checks label{
  min-height: 42px !important;
  padding: 8px 11px !important;
  font-size: .74rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
/* Texto legible tal cual ("Presión alta"), sin cortes a mitad de palabra */
.preconsult-checks label > span{
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .73rem !important;
  line-height: 1.16 !important;
}
/* Medidas: siempre 2 columnas (peso/talla juntas), también en móvil */
.preconsult-measures{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 9px !important; }
/* Cada sección del formulario como tarjeta separada, para segmentar */
.preconsult-panel{ gap: 12px !important; }
.preconsult-panel > div,
.preconsult-panel.slim > label{
  padding: 14px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(201,155,59,.16) !important;
  background: rgba(255,252,246,.9) !important;
  box-shadow: 0 8px 22px rgba(56,35,16,.06) !important;
}
.preconsult-panel > div > strong,
.preconsult-panel.slim > label > span{
  display: block !important;
  margin-bottom: 4px !important;
  color: #8a6316 !important;
  font-size: .72rem !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}

/* ---- v2.6 · Micro-animaciones y feedback (respetando reduce-motion) ---- */
@media (prefers-reduced-motion: no-preference){
  .hub-card, .care-pathway button, .selected-procedure,
  .preconsult-checks label, .settings-button, .whatsapp-button, .sos-button{
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, border-color .18s ease, background .18s ease !important;
  }
  .hub-card:active, .care-pathway button:active,
  .preconsult-checks label:active, .mnav-tab:active{ transform: scale(.97) !important; }
  .preconsult-checks label:hover{ transform: translateY(-2px) !important; }

  .panel-window{ animation: dbPanelIn .34s cubic-bezier(.2,.8,.2,1) both !important; }
  .modal-card, .care-campaign-card, .notification-consent-card{
    animation: dbPop .3s cubic-bezier(.2,.8,.2,1) both !important;
  }
  .panel-backdrop:not(.hidden){ animation: dbFade .24s ease both; }
  .care-actions-lab .hub-icon, .care-pathway i{ transition: transform .2s ease !important; }
  .hub-card:hover .hub-icon{ transform: rotate(-4deg) scale(1.06) !important; }
}
@keyframes dbPanelIn{ from{ opacity:0; transform: translateY(16px) scale(.99); } to{ opacity:1; transform:none; } }
@keyframes dbPop{ from{ opacity:0; transform: translateY(12px) scale(.95); } to{ opacity:1; transform:none; } }
@keyframes dbFade{ from{ opacity:0; } to{ opacity:1; } }

/* ---- v2.7 · Detalle: botón Ajustes con su etiqueta visible ---- */
.settings-button{ width: auto !important; gap: 8px !important; }
.settings-button strong{ display: inline !important; }
.app-head.appbar .settings-button strong{ color: #21150f !important; }

/* ---- v2.8 · WhatsApp flotante: etiqueta clara en móvil ---- */
@media (max-width: 768px){
  .whatsapp-button span{ display: block !important; font-size: .8rem !important; letter-spacing: .01em !important; text-transform: none !important; opacity: 1 !important; }
  .whatsapp-button strong{ display: none !important; }
}
