:root {
  --navy: #043653;
  --navy-2: #082c42;
  --cyan: #13b7e6;
  --cyan-2: #65d8f4;
  --mint: #8fe1c8;
  --green: #2ca778;
  --amber: #efaa4a;
  --red: #e56f6f;
  --ink: #122a3a;
  --muted: #6f8391;
  --line: #dce8ee;
  --panel: #ffffff;
  --soft: #f3f8fa;
  --soft-blue: #eaf7fb;
  --shadow: 0 20px 60px rgba(5, 48, 73, .10);
  --shadow-soft: 0 10px 35px rgba(5, 48, 73, .07);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f7fbfc;
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(19,183,230,.30);
  outline-offset: 2px;
}
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(85px); opacity: .4; pointer-events: none; z-index: -1; }
.ambient-a { width: 420px; height: 420px; background: rgba(19,183,230,.18); top: -170px; right: -110px; }
.ambient-b { width: 360px; height: 360px; background: rgba(143,225,200,.18); bottom: -180px; left: -100px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { font-family: "Segoe UI", Arial, sans-serif; }
h1 { letter-spacing: -.04em; }
h2 { letter-spacing: -.025em; }

.eyebrow {
  display: inline-block;
  color: #2485a4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.light { color: #c8f4ff; }

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 9px);
  align-items: end;
  gap: 4px;
  width: 40px;
  height: 36px;
  transform: skewX(-12deg);
}
.brand-mark span { display: block; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--cyan-2), var(--cyan)); }
.brand-mark span:nth-child(1) { height: 18px; }
.brand-mark span:nth-child(2) { height: 30px; }
.brand-mark span:nth-child(3) { height: 23px; }
.brand-mark.small { grid-template-columns: repeat(3, 7px); width: 31px; height: 28px; gap: 3px; }
.brand-mark.small span:nth-child(1) { height: 14px; }
.brand-mark.small span:nth-child(2) { height: 24px; }
.brand-mark.small span:nth-child(3) { height: 18px; }
.brand-mark.tiny { grid-template-columns: repeat(3, 6px); width: 26px; height: 24px; gap: 2px; }
.brand-mark.tiny span:nth-child(1) { height: 12px; }
.brand-mark.tiny span:nth-child(2) { height: 20px; }
.brand-mark.tiny span:nth-child(3) { height: 15px; }

.entry-shell {
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  grid-template-rows: auto 1fr auto;
  gap: 36px 72px;
  align-items: center;
}
.entry-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; color: var(--navy); }
.entry-brand strong, .side-brand strong, .mobile-brand strong { display: block; font-size: 22px; line-height: 1; }
.entry-brand small, .side-brand small, .mobile-brand small { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.entry-copy { align-self: center; max-width: 650px; }
.entry-copy h1 { margin: 15px 0 22px; color: var(--navy); font-size: clamp(48px, 6vw, 76px); line-height: .98; }
.entry-copy p { max-width: 570px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.entry-visual { position: relative; min-height: 610px; display: grid; place-items: center; }
.phone-preview {
  width: 315px;
  min-height: 590px;
  padding: 15px;
  border: 10px solid var(--navy-2);
  border-radius: 52px;
  background: linear-gradient(180deg, #f8fcfd, #eef8fa);
  box-shadow: 0 45px 90px rgba(5,48,73,.24), inset 0 0 0 1px rgba(255,255,255,.7);
  transform: rotate(3deg);
}
.phone-top { width: 105px; height: 22px; margin: -4px auto 16px; border-radius: 0 0 16px 16px; background: var(--navy-2); }
.preview-hero { position: relative; height: 250px; padding: 32px 24px; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, #0c5579, #0a7997 64%, #1bb8d6); }
.preview-hero::before { content: ""; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; top: -80px; right: -60px; }
.preview-line { height: 9px; border-radius: 8px; background: rgba(255,255,255,.42); }
.preview-line.small { width: 90px; }
.preview-line.large { width: 170px; height: 18px; margin-top: 13px; background: rgba(255,255,255,.92); }
.preview-score { position: absolute; left: 24px; bottom: 24px; width: 118px; height: 118px; display: grid; place-items: center; align-content: center; border: 10px solid rgba(255,255,255,.22); border-top-color: #fff; border-radius: 50%; color: #fff; transform: rotate(-10deg); }
.preview-score b, .preview-score span { transform: rotate(10deg); }
.preview-score b { font-size: 35px; line-height: 1; }
.preview-score span { font-size: 10px; margin-top: 5px; }
.preview-card { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 17px; border-radius: 19px; background: #fff; box-shadow: 0 12px 30px rgba(5,48,73,.08); }
.preview-card > span { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; background: linear-gradient(145deg, var(--cyan-2), var(--cyan)); }
.preview-card b, .preview-card small { display: block; }
.preview-card b { font-size: 12px; color: var(--navy); }
.preview-card small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.preview-card.muted > span { background: linear-gradient(145deg, #b6eadb, #74d2b6); }
.mascot { position: relative; }
.mascot-entry { position: absolute; right: 4%; bottom: 11%; width: 138px; height: 138px; filter: drop-shadow(0 22px 20px rgba(5,48,73,.18)); }
.mascot-orbit { position: absolute; inset: -16px; border: 1px solid rgba(19,183,230,.25); border-radius: 50%; animation: orbit 8s linear infinite; }
.mascot-orbit::after { content: ""; position: absolute; width: 12px; height: 12px; top: 12px; left: 14px; border-radius: 50%; background: var(--mint); }
.mascot-body { position: absolute; inset: 8px; border-radius: 46% 54% 47% 53% / 53% 45% 55% 47%; background: linear-gradient(145deg, #5bd4ef, #10addb 62%, #0783aa); box-shadow: inset 10px 12px 20px rgba(255,255,255,.25), inset -8px -10px 18px rgba(2,63,92,.15); animation: floaty 4s ease-in-out infinite; }
.mascot-body::before, .mascot-body::after { content: ""; position: absolute; width: 22px; height: 10px; top: 54px; border-radius: 50%; background: rgba(255,255,255,.22); filter: blur(1px); }
.mascot-body::before { left: 18px; }
.mascot-body::after { right: 18px; }
.mascot-body i { position: absolute; top: 44px; width: 11px; height: 15px; border-radius: 50%; background: var(--navy-2); box-shadow: inset 3px 2px 0 #fff; }
.mascot-body i:nth-child(1) { left: 35px; }
.mascot-body i:nth-child(2) { right: 35px; }
.mascot-body b { position: absolute; left: 50%; top: 70px; width: 25px; height: 13px; transform: translateX(-50%); border: 3px solid var(--navy-2); border-top: 0; border-radius: 0 0 20px 20px; }
.mascot-body em { position: absolute; right: 5px; top: 3px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--cyan); font-style: normal; font-weight: 900; font-size: 22px; box-shadow: 0 7px 15px rgba(5,48,73,.18); }
.entry-actions { align-self: end; max-width: 620px; }
.primary-button, .secondary-button, .outline-button, .ghost-button, .mobile-logout {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 14px 22px; color: #fff; background: linear-gradient(135deg, var(--navy), #075a7b 55%, #099bc0); box-shadow: 0 16px 32px rgba(5,48,73,.2); }
.primary-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(5,48,73,.26); }
.secondary-button { min-height: 54px; width: 100%; margin-top: 12px; color: var(--navy); background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.secondary-button:hover { background: #fff; transform: translateY(-1px); }
.entry-note { max-width: 560px; margin: 14px auto 0; text-align: center; color: #8a9aa4; font-size: 11px; line-height: 1.6; }

.app-shell { min-height: 100vh; }
.desktop-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
.side-brand, .mobile-brand { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.side-brand strong { font-size: 18px; }
.side-brand small { font-size: 9px; }
.side-nav { display: grid; gap: 8px; margin-top: 48px; }
.nav-item, .side-nav button, .admin-sidebar nav button {
  width: 100%; min-height: 48px; padding: 0 15px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 14px; color: #6a7d89; background: transparent; cursor: pointer; font-weight: 700; text-align: left; transition: .2s ease;
}
.nav-item > span, .admin-sidebar nav button > span { width: 20px; height: 20px; display: inline-grid; place-items: center; }
.nav-item svg, .admin-sidebar nav button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover, .nav-item.active { color: var(--navy); background: var(--soft-blue); }
.nav-item.active { box-shadow: inset 3px 0 0 var(--cyan); }
.side-support { margin-top: auto; padding: 18px; border-radius: 20px; color: #fff; background: linear-gradient(145deg, var(--navy), #075a78); overflow: hidden; }
.mini-mascot { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 18px 22px 17px 24px; background: linear-gradient(145deg, var(--cyan-2), var(--cyan)); font-size: 24px; font-weight: 900; }
.side-support p { font-size: 12px; line-height: 1.55; color: #d7edf5; }
.side-support p strong { color: #fff; font-size: 13px; }
.side-support button { width: 100%; padding: 10px; border: 0; border-radius: 11px; color: var(--navy); background: #fff; cursor: pointer; font-weight: 800; font-size: 11px; }
.logout-button { margin-top: 14px; padding: 10px; border: 0; color: #8a9aa4; background: transparent; cursor: pointer; font-weight: 700; font-size: 11px; }
.patient-main { min-height: 100vh; margin-left: var(--sidebar); }
.mobile-header { display: none; }
.view { display: none; min-height: 100vh; animation: viewIn .38s ease both; }
.view.active { display: block; }
.content-wrap { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 80px; }
.home-wrap { padding-top: 38px; }
.page-wrap { padding-top: 48px; }
.home-intro, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.home-intro { margin-bottom: 28px; }
.home-intro h1, .page-heading h1 { margin: 7px 0 5px; color: var(--navy); font-size: clamp(34px, 4vw, 52px); }
.home-intro p, .page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.notification-button, .avatar-button, .circle-button { position: relative; display: grid; place-items: center; border: 0; background: #fff; box-shadow: var(--shadow-soft); cursor: pointer; }
.notification-button { width: 48px; height: 48px; border-radius: 16px; color: var(--navy); }
.notification-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.notification-button i { position: absolute; width: 18px; height: 18px; right: -3px; top: -4px; display: grid; place-items: center; border: 2px solid #f7fbfc; border-radius: 50%; color: #fff; background: var(--red); font-size: 9px; font-style: normal; font-weight: 800; }
.wellbeing-hero { position: relative; min-height: 300px; padding: 43px 46px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 38px; border-radius: var(--radius-xl); overflow: hidden; color: #fff; background: linear-gradient(128deg, #073c5b, #075f7e 54%, #10a9cb); box-shadow: 0 28px 60px rgba(5,48,73,.20); }
.wellbeing-hero::before { content: ""; position: absolute; width: 330px; height: 330px; top: -180px; right: 70px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.035), 0 0 0 100px rgba(255,255,255,.025); }
.hero-content { position: relative; z-index: 2; max-width: 520px; }
.hero-kicker { color: #bdeefa; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.hero-content h2 { margin: 12px 0 10px; font-size: clamp(31px, 4vw, 50px); }
.hero-content p { max-width: 470px; margin-bottom: 22px; color: #d9edf3; line-height: 1.6; }
.text-button, .link-button { border: 0; color: inherit; background: transparent; cursor: pointer; font-weight: 800; }
.text-button { padding: 0; }
.text-button span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.text-button:hover span { transform: translateX(4px); }
.score-ring { position: relative; z-index: 2; width: 160px; height: 160px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#fff calc(var(--score) * 1%), rgba(255,255,255,.19) 0); transform: rotate(-18deg); }
.score-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #0b708d; box-shadow: inset 0 0 22px rgba(0,0,0,.08); }
.score-ring > div { position: relative; display: grid; text-align: center; transform: rotate(18deg); }
.score-ring strong { font-size: 44px; line-height: 1; }
.score-ring small { margin-top: 5px; color: #cdebf3; font-size: 10px; }
.mascot-card { position: absolute; right: 17px; bottom: -12px; width: 108px; height: 108px; transform: rotate(-7deg); opacity: .92; }
.mascot-card .mascot-body { inset: 5px; }
.mascot-card .mascot-body i { top: 35px; width: 8px; height: 11px; }
.mascot-card .mascot-body i:nth-child(1) { left: 28px; }
.mascot-card .mascot-body i:nth-child(2) { right: 28px; }
.mascot-card .mascot-body b { top: 55px; width: 19px; height: 10px; }
.mascot-card .mascot-body em { width: 25px; height: 25px; font-size: 16px; }
.checkin-section, .content-wrap > section, .content-wrap > .section-heading { margin-top: 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading.compact { margin-bottom: 13px; }
.section-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 25px; }
.link-button { color: #2789a6; font-size: 12px; }
.mood-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mood-row button { min-height: 92px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 19px; color: var(--muted); background: rgba(255,255,255,.82); cursor: pointer; transition: .2s ease; }
.mood-row button span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: var(--navy); background: var(--soft-blue); font-size: 22px; font-weight: 800; }
.mood-row button small { font-weight: 700; }
.mood-row button:hover, .mood-row button.selected { border-color: var(--cyan); color: var(--navy); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.appointment-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-soft); }
.date-block { width: 72px; height: 78px; display: grid; place-items: center; align-content: center; border-radius: 20px; color: #fff; background: linear-gradient(145deg, var(--cyan), #0787ac); }
.date-block strong { font-size: 28px; line-height: 1; }
.date-block span { margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.appointment-tag, .good-pill, .counter-pill, .plan-status, .down-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 10px; font-weight: 800; }
.appointment-tag { padding: 5px 9px; color: #247c96; background: var(--soft-blue); }
.appointment-detail h3 { margin: 8px 0 5px; color: var(--navy); font-size: 18px; }
.appointment-detail p { margin: 0; color: var(--muted); font-size: 12px; }
.circle-button { width: 42px; height: 42px; border-radius: 14px; color: var(--navy); background: var(--soft); box-shadow: none; }
.counter-pill { padding: 7px 11px; color: #2789a6; background: var(--soft-blue); }
.task-list { display: grid; gap: 10px; }
.task-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.84); transition: .25s ease; }
.task-item.completed { opacity: .62; background: #f4f8f9; }
.task-check { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #bad3dd; border-radius: 10px; background: #fff; cursor: pointer; }
.task-item.completed .task-check { border-color: var(--green); color: #fff; background: var(--green); }
.task-item strong, .task-item small { display: block; }
.task-item strong { color: var(--navy); font-size: 13px; }
.task-item small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.task-item > span:last-child { color: #94a5ae; font-size: 11px; font-weight: 700; }
.module-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 12px; }
.module-scroller::-webkit-scrollbar { display: none; }
.module-card { min-height: 205px; padding: 20px; display: flex; flex-direction: column; border-radius: 23px; scroll-snap-align: start; color: var(--navy); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.module-card .module-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--soft-blue); color: #1b8bae; }
.module-card .module-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.module-card h3 { margin: 19px 0 6px; font-size: 17px; }
.module-card p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.module-card > span { margin-top: auto; color: #2687a5; font-size: 11px; font-weight: 800; }
.trend-card { padding: 24px 25px 18px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.trend-meta { display: flex; justify-content: space-between; align-items: center; }
.trend-meta strong, .trend-meta span { display: block; }
.trend-meta strong { color: var(--navy); font-size: 28px; }
.trend-meta > div span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.good-pill { padding: 7px 10px; color: #21795c; background: #e7f8f2; }
.line-chart { width: 100%; height: 160px; overflow: visible; }
.gridline { fill: none; stroke: #e7eff2; stroke-width: 1; stroke-dasharray: 5 7; }
.area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 7px 8px rgba(19,183,230,.22)); }
.chart-dots circle { fill: #fff; stroke: var(--cyan); stroke-width: 3; }
.chart-labels { display: flex; justify-content: space-between; color: #8b9da7; font-size: 9px; }
.benefit-banner { position: relative; min-height: 225px; padding: 34px; overflow: hidden; border-radius: 28px; color: #fff; background: linear-gradient(120deg, #063c5a, #08779a); box-shadow: var(--shadow); }
.benefit-banner > div:first-child { position: relative; z-index: 2; max-width: 520px; }
.benefit-banner h2 { margin: 8px 0; font-size: 30px; }
.benefit-banner p { color: #d5edf3; font-size: 13px; }
.benefit-banner button { margin-top: 10px; padding: 11px 17px; border: 0; border-radius: 12px; color: var(--navy); background: #fff; cursor: pointer; font-weight: 800; font-size: 11px; }
.benefit-art { position: absolute; right: -25px; bottom: -48px; width: 240px; height: 240px; border: 42px solid rgba(255,255,255,.1); border-radius: 50%; }
.benefit-art span { position: absolute; inset: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(19,183,230,.5); font-size: 65px; font-weight: 800; }
.benefit-art i, .benefit-art b { position: absolute; border-radius: 50%; background: var(--mint); }
.benefit-art i { width: 24px; height: 24px; left: -36px; top: 42px; }
.benefit-art b { width: 14px; height: 14px; left: -58px; top: 96px; }

.page-heading { margin-bottom: 29px; }
.page-heading p { max-width: 660px; line-height: 1.55; }
.plan-status { padding: 8px 12px; color: #21795c; background: #e6f8f1; }
.journey-card { padding: 24px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.journey-card > i { height: 2px; min-width: 30px; background: #dce9ee; }
.journey-step { display: flex; align-items: center; gap: 10px; color: #8496a0; }
.journey-step > span { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid #d8e5ea; border-radius: 50%; font-size: 11px; font-weight: 800; }
.journey-step strong, .journey-step small { display: block; white-space: nowrap; }
.journey-step strong { font-size: 12px; }
.journey-step small { margin-top: 3px; font-size: 9px; }
.journey-step.done, .journey-step.current { color: var(--navy); }
.journey-step.done > span { color: #fff; border-color: var(--green); background: var(--green); }
.journey-step.current > span { color: #fff; border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 6px rgba(19,183,230,.12); }
.plan-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 18px; }
.plan-summary-grid article { min-height: 132px; padding: 19px; display: flex; gap: 13px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.82); }
.plan-summary-grid article > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #2485a4; background: var(--soft-blue); }
.plan-summary-grid svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.plan-summary-grid strong { color: var(--navy); font-size: 12px; }
.plan-summary-grid p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.care-module-list { display: grid; gap: 12px; }
.care-module { padding: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.care-module-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: #1b88a8; background: var(--soft-blue); }
.care-module-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.care-module h3 { margin: 0 0 5px; color: var(--navy); font-size: 16px; }
.care-module p { margin: 0; color: var(--muted); font-size: 11px; }
.care-module-meta { min-width: 130px; text-align: right; }
.care-module-meta strong, .care-module-meta small { display: block; }
.care-module-meta strong { color: var(--green); font-size: 11px; }
.care-module-meta small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.progress-track { height: 6px; margin-top: 10px; border-radius: 99px; overflow: hidden; background: #e4eef2; }
.progress-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--mint)); }
.clinical-note { margin-top: 24px; padding: 20px; display: flex; gap: 14px; border: 1px solid #cfe7ef; border-radius: 20px; background: #eff9fc; }
.note-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #fff; background: #2a90ad; font-weight: 800; }
.clinical-note strong { color: var(--navy); font-size: 12px; }
.clinical-note p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.compact-button { width: auto; min-height: 45px; padding: 10px 18px; font-size: 11px; }
.appointment-tabs { display: flex; gap: 8px; margin-bottom: 18px; padding: 5px; width: fit-content; border-radius: 14px; background: #eaf2f5; }
.appointment-tabs button { padding: 9px 16px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; font-size: 11px; }
.appointment-tabs button.active { color: var(--navy); background: #fff; box-shadow: 0 5px 16px rgba(5,48,73,.08); }
.appointments-list { display: grid; gap: 11px; }
.appointment-list-card { padding: 19px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: var(--shadow-soft); }
.appointment-list-card .date-block { width: 62px; height: 67px; border-radius: 17px; }
.appointment-list-card .date-block strong { font-size: 24px; }
.appointment-list-card h3 { margin: 0 0 5px; color: var(--navy); font-size: 15px; }
.appointment-list-card p { margin: 0; color: var(--muted); font-size: 10px; }
.appointment-actions { display: flex; gap: 7px; }
.appointment-actions button { padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: #fff; cursor: pointer; font-weight: 800; font-size: 9px; }
.quick-book { margin-top: 38px; }
.specialty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.specialty-button { min-height: 130px; padding: 18px; display: grid; align-content: space-between; border: 1px solid var(--line); border-radius: 21px; text-align: left; background: #fff; cursor: pointer; transition: .2s; }
.specialty-button:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--shadow-soft); }
.specialty-button span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; color: #2686a3; background: var(--soft-blue); }
.specialty-button svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.specialty-button strong { color: var(--navy); font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { min-height: 160px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.metric-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #2787a4; background: var(--soft-blue); }
.metric-card svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.metric-card strong, .metric-card small { display: block; }
.metric-card strong { margin-top: 20px; color: var(--navy); font-size: 22px; }
.metric-card strong em { font-size: 10px; font-style: normal; color: var(--muted); }
.metric-card small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.progress-chart-card { margin-top: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow-soft); }
.down-pill { padding: 7px 10px; color: #21795c; background: #e5f7f0; }
.weight-highlight strong { color: var(--navy); font-size: 34px; }
.weight-highlight strong small { font-size: 13px; }
.weight-highlight p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.line-chart.large { height: 230px; }
.observation-list { display: grid; gap: 10px; }
.observation-row { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.observation-row > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #2485a4; background: var(--soft-blue); }
.observation-row svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.observation-row strong, .observation-row small { display: block; }
.observation-row strong { color: var(--navy); font-size: 12px; }
.observation-row small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.observation-row b { color: var(--navy); font-size: 13px; }
.profile-card { padding: 25px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; border-radius: 25px; color: #fff; background: linear-gradient(130deg, var(--navy), #087798); box-shadow: var(--shadow); }
.profile-avatar { width: 78px; height: 78px; display: grid; place-items: center; border: 4px solid rgba(255,255,255,.3); border-radius: 26px; background: rgba(255,255,255,.16); font-size: 22px; font-weight: 800; }
.profile-card .eyebrow { color: #c4ecf6; }
.profile-card h1 { margin: 5px 0 4px; font-size: 30px; }
.profile-card p { margin: 0; color: #d8edf3; font-size: 11px; }
.ghost-button { padding: 10px 14px; color: var(--navy); background: #fff; font-size: 10px; }
.profile-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; margin-top: 16px; }
.settings-card { padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-soft); }
.settings-card h2 { margin: 0 0 14px; color: var(--navy); font-size: 16px; }
.settings-card > button { width: 100%; padding: 13px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid #edf2f4; text-align: left; background: transparent; cursor: pointer; }
.settings-card > button:last-child { border-bottom: 0; }
.settings-card > button > span, .sync-card > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #2787a4; background: var(--soft-blue); }
.settings-card svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.settings-card strong, .settings-card small { display: block; }
.settings-card strong { color: var(--navy); font-size: 11px; }
.settings-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.settings-card > button b { color: #9aa9b1; font-size: 20px; }
.sync-card { padding: 13px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf2f4; }
.sync-card:last-child { border-bottom: 0; }
.sync-card i { padding: 5px 8px; border-radius: 99px; color: #21795c; background: #e6f8f1; font-size: 8px; font-style: normal; font-weight: 800; }
.toggle-row { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf2f4; cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row > input { display: none; }
.toggle-row > span { position: relative; width: 45px; height: 25px; flex: 0 0 auto; border-radius: 99px; background: #cad8de; transition: .2s; }
.toggle-row > span::after { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: .2s; }
.toggle-row input:checked + span { background: var(--cyan); }
.toggle-row input:checked + span::after { transform: translateX(20px); }
.mobile-logout { display: none; width: 100%; padding: 14px; color: #a75c5c; background: #fff0f0; }
.bottom-nav { display: none; }

.admin-shell { min-height: 100vh; background: #f4f8fa; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; padding: 28px 20px; display: flex; flex-direction: column; color: #d8e8ef; background: var(--navy-2); }
.admin-sidebar .side-brand { color: #fff; }
.admin-sidebar nav { display: grid; gap: 7px; margin-top: 45px; }
.admin-sidebar nav button { color: #aac0ca; }
.admin-sidebar nav button:hover, .admin-sidebar nav button.active { color: #fff; background: rgba(255,255,255,.08); }
.tenant-card { margin-top: auto; padding: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.06); }
.tenant-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: var(--mint); font-weight: 800; }
.tenant-card strong, .tenant-card small { display: block; }
.tenant-card strong { color: #fff; font-size: 10px; }
.tenant-card small { color: #9fb5bf; font-size: 8px; margin-top: 3px; }
.admin-sidebar .logout-button { color: #8ca5b0; }
.admin-main { margin-left: 250px; }
.admin-topbar { height: 108px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(16px); }
.admin-topbar h1 { margin: 4px 0 0; color: var(--navy); font-size: 26px; }
.admin-actions { display: flex; align-items: center; gap: 12px; }
.outline-button { min-height: 42px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--navy); background: #fff; border: 1px solid var(--line); font-size: 10px; }
.outline-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.outline-button.full { width: 100%; }
.avatar-button { width: 42px; height: 42px; border-radius: 14px; color: var(--navy); font-weight: 800; }
.avatar-button i { position: absolute; right: 2px; bottom: 1px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--green); }
.admin-content { width: min(1380px, calc(100% - 64px)); margin: 0 auto; padding: 30px 0 70px; }
.admin-hero { min-height: 215px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 35px; border-radius: 26px; color: #fff; background: linear-gradient(125deg, #063a57, #075f7b 60%, #0ca3c6); box-shadow: var(--shadow); }
.admin-hero > div:first-child { max-width: 650px; }
.admin-hero h2 { margin: 8px 0; font-size: 34px; }
.admin-hero p { margin: 0; color: #d4eaf1; font-size: 12px; line-height: 1.6; }
.admin-hero-kpi { min-width: 210px; padding: 23px; border: 1px solid rgba(255,255,255,.16); border-radius: 21px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.admin-hero-kpi strong, .admin-hero-kpi span, .admin-hero-kpi small { display: block; }
.admin-hero-kpi strong { font-size: 47px; }
.admin-hero-kpi span { font-size: 11px; font-weight: 700; }
.admin-hero-kpi small { margin-top: 8px; color: #9ee5c8; font-size: 9px; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.admin-kpi-card { min-height: 142px; padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.admin-kpi-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #2485a4; background: var(--soft-blue); }
.admin-kpi-card svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.admin-kpi-card strong { display: block; margin-top: 17px; color: var(--navy); font-size: 24px; }
.admin-kpi-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.admin-kpi-card em { display: block; margin-top: 9px; color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; }
.admin-grid { display: grid; gap: 14px; margin-top: 14px; }
.admin-grid.two-columns { grid-template-columns: 1fr 1fr; }
.admin-grid.two-thirds { grid-template-columns: 1.55fr .75fr; }
.dashboard-card { padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 19px; }
.filter-button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; cursor: pointer; font-size: 8px; font-weight: 700; }
.risk-layout { min-height: 230px; display: flex; align-items: center; justify-content: center; gap: 55px; }
.donut { width: 180px; height: 180px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 calc(var(--low)*1%), var(--amber) 0 calc((var(--low) + var(--medium))*1%), var(--red) 0); }
.donut::before { content: ""; position: absolute; width: 122px; height: 122px; border-radius: 50%; background: #fff; }
.donut > div { position: relative; display: grid; text-align: center; }
.donut strong { color: var(--navy); font-size: 24px; }
.donut span { color: var(--muted); font-size: 9px; }
.risk-legend { display: grid; gap: 17px; min-width: 160px; }
.risk-legend div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.risk-legend i { width: 9px; height: 9px; border-radius: 50%; }
.risk-legend i.low { background: var(--green); }
.risk-legend i.medium { background: var(--amber); }
.risk-legend i.high { background: var(--red); }
.risk-legend strong { color: var(--navy); font-size: 11px; }
.funnel-list { display: grid; gap: 16px; margin-top: 32px; }
.funnel-list div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px; color: var(--muted); font-size: 9px; }
.funnel-list b { color: var(--navy); font-size: 10px; }
.funnel-list i { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--mint)); }
.admin-chart { width: 100%; height: 260px; margin-top: 16px; }
.admin-line { fill: none; stroke-width: 4; stroke-linecap: round; }
.admin-line.primary { stroke: var(--cyan); }
.admin-line.secondary { stroke: var(--mint); }
.admin-labels text { fill: #93a4ad; font-size: 10px; }
.chart-legend { display: flex; gap: 18px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 18px; height: 3px; border-radius: 99px; }
.chart-legend i.primary { background: var(--cyan); }
.chart-legend i.secondary { background: var(--mint); }
.integration-card { display: flex; flex-direction: column; }
.integration-item { padding: 15px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #edf2f4; }
.integration-item > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #2686a4; background: var(--soft-blue); }
.integration-item svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.integration-item strong, .integration-item small { display: block; }
.integration-item strong { color: var(--navy); font-size: 10px; }
.integration-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.integration-item > i { padding: 5px 7px; border-radius: 99px; font-size: 7px; font-style: normal; font-weight: 800; }
.status-ok { color: #21795c; background: #e5f7f0; }
.status-warn { color: #9c6415; background: #fff1d8; }
.integration-card .outline-button { margin-top: auto; }
.admin-content > .dashboard-card { margin-top: 14px; }
.alert-table-wrap { margin-top: 18px; overflow-x: auto; }
.alert-table { width: 100%; border-collapse: collapse; }
.alert-table th { padding: 11px 12px; color: #8a9da7; background: #f5f8f9; text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.alert-table td { padding: 14px 12px; border-bottom: 1px solid #edf2f4; color: var(--muted); font-size: 9px; }
.alert-table td strong { color: var(--navy); font-size: 9px; }
.alert-table .status { display: inline-flex; padding: 5px 8px; border-radius: 99px; font-weight: 800; }
.alert-table .status.open { color: #a16716; background: #fff0d5; }
.alert-table .status.progress { color: #236f89; background: #e9f6fa; }

.app-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 26px; box-shadow: 0 35px 90px rgba(5,48,73,.3); }
.app-dialog::backdrop { background: rgba(3,32,48,.54); backdrop-filter: blur(6px); }
.app-dialog form { padding: 26px; }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.dialog-header h2 { margin: 4px 0 0; color: var(--navy); font-size: 25px; }
.close-dialog { width: 36px; height: 36px; border: 0; border-radius: 12px; color: var(--muted); background: var(--soft); cursor: pointer; font-size: 21px; }
.app-dialog label { display: grid; gap: 7px; margin-top: 14px; color: var(--navy); font-size: 10px; font-weight: 800; }
.app-dialog select, .app-dialog input, .app-dialog textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #f9fbfc; outline: 0; }
.app-dialog textarea { resize: vertical; }
.option-pills, .slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.option-pills button, .slot-grid button { padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.option-pills button.active, .slot-grid button.active { color: #fff; border-color: var(--cyan); background: var(--cyan); }
.slot-grid { grid-template-columns: repeat(3, 1fr); }
.app-dialog .primary-button { margin-top: 21px; min-height: 50px; }
.measurement-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.toast { position: fixed; z-index: 1000; left: 50%; bottom: 26px; max-width: min(440px, calc(100% - 28px)); padding: 13px 18px; border-radius: 14px; color: #fff; background: var(--navy); box-shadow: 0 16px 38px rgba(5,48,73,.24); transform: translate(-50%, 100px); opacity: 0; pointer-events: none; transition: .3s ease; font-size: 11px; font-weight: 700; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.success { background: #21795c; }
.toast.error { background: #9e4a4a; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .entry-shell { grid-template-columns: 1fr minmax(330px, .75fr); gap: 30px; }
  .entry-visual { min-height: 540px; }
  .phone-preview { width: 285px; min-height: 530px; }
  .desktop-sidebar { width: 220px; }
  .patient-main { margin-left: 220px; }
  .wellbeing-hero { padding: 35px; }
  .mascot-card { display: none; }
  .specialty-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-grid.two-thirds { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .entry-shell { width: min(680px, calc(100% - 34px)); grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; gap: 26px; padding: 25px 0 35px; }
  .entry-copy { text-align: center; margin: 0 auto; }
  .entry-copy h1 { font-size: clamp(43px, 12vw, 65px); }
  .entry-copy p { margin-left: auto; margin-right: auto; }
  .entry-visual { min-height: 480px; }
  .phone-preview { width: 260px; min-height: 470px; border-width: 8px; border-radius: 43px; }
  .preview-hero { height: 205px; }
  .mascot-entry { width: 110px; height: 110px; right: 18%; }
  .entry-actions { width: 100%; max-width: 560px; margin: 0 auto; }
  .desktop-sidebar { display: none; }
  .patient-main { margin-left: 0; padding-bottom: 86px; }
  .mobile-header { position: sticky; top: 0; z-index: 25; height: 70px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(220,232,238,.8); background: rgba(250,253,254,.88); backdrop-filter: blur(18px); }
  .mobile-brand strong { font-size: 16px; }
  .mobile-brand small { font-size: 8px; }
  .content-wrap { width: min(720px, calc(100% - 32px)); }
  .home-wrap, .page-wrap { padding-top: 24px; }
  .bottom-nav { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 68px; padding: 7px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid rgba(220,232,238,.86); border-radius: 23px; background: rgba(255,255,255,.93); box-shadow: 0 18px 45px rgba(5,48,73,.17); backdrop-filter: blur(20px); }
  .bottom-nav button { display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 16px; color: #82939c; background: transparent; cursor: pointer; }
  .bottom-nav button.active { color: var(--navy); background: var(--soft-blue); }
  .bottom-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav small { font-size: 8px; font-weight: 800; }
  .wellbeing-hero { min-height: 280px; }
  .score-ring { width: 135px; height: 135px; }
  .score-ring strong { font-size: 36px; }
  .journey-card { grid-template-columns: 1fr; gap: 10px; }
  .journey-card > i { width: 2px; height: 18px; min-width: 0; margin-left: 16px; }
  .journey-step strong, .journey-step small { white-space: normal; }
  .plan-summary-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .mobile-logout { display: block; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-topbar { padding: 0 20px; }
  .admin-content { width: min(760px, calc(100% - 32px)); }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid.two-columns { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .entry-shell { width: calc(100% - 28px); }
  .entry-brand { justify-content: center; }
  .entry-copy h1 { font-size: 42px; }
  .entry-copy p { font-size: 15px; }
  .entry-visual { min-height: 430px; }
  .phone-preview { width: 235px; min-height: 420px; }
  .preview-hero { height: 175px; padding: 24px 18px; }
  .preview-score { width: 95px; height: 95px; left: 18px; bottom: 18px; }
  .preview-score b { font-size: 29px; }
  .preview-card { padding: 13px; }
  .mascot-entry { right: 4%; bottom: 7%; }
  .home-intro { align-items: center; }
  .home-intro h1, .page-heading h1 { font-size: 34px; }
  .wellbeing-hero { min-height: 410px; padding: 28px 25px; grid-template-columns: 1fr; align-content: start; }
  .hero-content h2 { font-size: 34px; }
  .score-ring { width: 132px; height: 132px; justify-self: end; margin-top: -8px; }
  .mood-row { grid-template-columns: repeat(5, 76px); overflow-x: auto; scrollbar-width: none; padding-bottom: 7px; }
  .mood-row::-webkit-scrollbar { display: none; }
  .appointment-card { grid-template-columns: auto 1fr; }
  .appointment-card .circle-button { display: none; }
  .date-block { width: 62px; height: 68px; }
  .section-heading h2 { font-size: 22px; }
  .task-item { grid-template-columns: auto 1fr; }
  .task-item > span:last-child { display: none; }
  .module-scroller { grid-auto-columns: 78%; }
  .benefit-banner { padding: 28px 24px; }
  .benefit-banner h2 { font-size: 25px; max-width: 270px; }
  .benefit-art { right: -100px; opacity: .55; }
  .page-heading { align-items: flex-start; }
  .page-heading .compact-button { flex: 0 0 auto; }
  .care-module { grid-template-columns: auto 1fr; }
  .care-module-meta { grid-column: 1 / -1; text-align: left; }
  .appointment-list-card { grid-template-columns: auto 1fr; }
  .appointment-actions { grid-column: 1 / -1; }
  .specialty-grid, .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 145px; }
  .profile-card { grid-template-columns: auto 1fr; }
  .profile-card .ghost-button { grid-column: 1 / -1; width: 100%; }
  .admin-topbar { height: 90px; }
  .admin-actions .outline-button { display: none; }
  .admin-hero { min-height: 350px; flex-direction: column; align-items: stretch; }
  .admin-hero h2 { font-size: 29px; }
  .admin-hero-kpi { min-width: 0; }
  .admin-kpi-grid { grid-template-columns: 1fr 1fr; }
  .risk-layout { gap: 25px; }
  .donut { width: 140px; height: 140px; }
  .donut::before { width: 95px; height: 95px; }
  .app-dialog form { padding: 22px; }
}

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


/* Mía · interactive health companion */
.companion{position:fixed;right:20px;bottom:22px;z-index:80}.companion-toggle{position:relative;width:68px;height:68px;border:0;border-radius:24px;background:linear-gradient(145deg,#5bd4ef,#10addb 65%,#0783aa);box-shadow:0 18px 45px rgba(3,54,83,.28);cursor:pointer;transition:.25s transform}.companion-toggle:hover{transform:translateY(-4px) scale(1.03)}.companion-avatar{position:relative;display:block;width:58px;height:58px;margin:auto;border-radius:46% 54% 47% 53%/53% 45% 55% 47%;background:linear-gradient(145deg,#67def3,#10addb 62%,#0783aa);box-shadow:inset 8px 9px 15px rgba(255,255,255,.25)}.companion-avatar i{position:absolute;top:21px;width:7px;height:10px;border-radius:50%;background:#043653;box-shadow:inset 2px 1px #fff}.companion-avatar i:first-child{left:17px}.companion-avatar i:nth-child(2){right:17px}.companion-avatar b{position:absolute;left:50%;top:35px;width:15px;height:7px;transform:translateX(-50%);border:2px solid #043653;border-top:0;border-radius:0 0 14px 14px}.companion-avatar em{position:absolute;right:-3px;top:-4px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#10addb;font:900 15px/1 sans-serif;box-shadow:0 5px 12px rgba(3,54,83,.18)}.companion-avatar.small{width:44px;height:44px;margin:0}.companion-avatar.small i{top:16px}.companion-avatar.small i:first-child{left:13px}.companion-avatar.small i:nth-child(2){right:13px}.companion-avatar.small b{top:27px;width:12px}.companion-badge{position:absolute;right:-3px;top:-5px;min-width:22px;height:22px;padding:0 5px;display:grid;place-items:center;border-radius:12px;background:#ff6b6b;color:#fff;font-size:12px;font-weight:800;border:3px solid #fff}.companion-panel{position:absolute;right:0;bottom:82px;width:min(380px,calc(100vw - 28px));height:min(600px,calc(100vh - 140px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(3,54,83,.08);border-radius:28px;background:rgba(255,255,255,.98);box-shadow:0 28px 80px rgba(3,54,83,.26);opacity:0;pointer-events:none;transform:translateY(18px) scale(.96);transform-origin:bottom right;transition:.25s}.companion.open .companion-panel{opacity:1;pointer-events:auto;transform:none}.companion-panel header{display:flex;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(135deg,#eefbfe,#f6fffd);border-bottom:1px solid #e9f1f4}.companion-panel header div:nth-child(2){display:flex;flex-direction:column;flex:1}.companion-panel header strong{color:#043653}.companion-panel header small{color:#66808e}.companion-panel header button{border:0;background:none;font-size:28px;color:#66808e;cursor:pointer}.companion-messages{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:10px}.companion-message{max-width:84%;padding:11px 14px;border-radius:17px;font-size:14px;line-height:1.45;white-space:pre-line}.companion-message.mia{align-self:flex-start;background:#eef8fb;color:#163f53;border-bottom-left-radius:5px}.companion-message.user{align-self:flex-end;background:#073f5c;color:#fff;border-bottom-right-radius:5px}.companion-quick{display:flex;gap:8px;overflow:auto;padding:0 14px 10px}.companion-quick button{white-space:nowrap;border:1px solid #bde8f3;border-radius:999px;background:#fff;color:#086e92;padding:8px 11px;font-size:12px;font-weight:700;cursor:pointer}.companion-form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #e8f0f3}.companion-form input{flex:1;border:1px solid #d6e5eb;border-radius:14px;padding:12px 13px;outline:none}.companion-form input:focus{border-color:#10addb;box-shadow:0 0 0 3px rgba(16,173,219,.12)}.companion-form button{width:42px;border:0;border-radius:14px;background:#073f5c;color:#fff;font-size:20px;cursor:pointer}.companion-disclaimer{margin:0;padding:0 14px 13px;color:#80929b;font-size:10px;line-height:1.35}.companion-avatar.thinking{animation:companionPulse 1s ease-in-out infinite}@keyframes companionPulse{50%{transform:scale(1.08) rotate(2deg)}}@media(max-width:600px){.companion{right:14px;bottom:82px}.companion-panel{position:fixed;left:10px;right:10px;bottom:78px;width:auto;height:min(72vh,580px);border-radius:24px}.companion-toggle{width:62px;height:62px}}
