/* VisitReady — Deep navy + teal + soft mint + cool off-white */
:root {
  --navy-950: #061428;
  --navy-900: #0B2545;
  --navy-800: #13315C;
  --navy-700: #1D4373;
  --teal-700: #0B7F7B;
  --teal-600: #0E8C8C;
  --teal-500: #14A7A0;
  --teal-400: #2EC4B6;
  --mint-300: #9BE7C4;
  --mint-200: #C9F2E3;
  --mint-100: #E4F8EF;
  --mint-50: #F1FBF7;
  --off-white: #F3F6F9;
  --surface: #FFFFFF;
  --ink: #0B2545;
  --ink-2: #33475F;
  --muted: #5F7088;
  --line: #E1E8EF;
  --line-2: #EDF1F5;
  --warn: #E8962C;
  --warn-bg: #FFF4E3;
  --danger: #E5484D;
  --danger-bg: #FDECEC;
  --ok: var(--teal-600);
  --ok-bg: var(--mint-100);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .05);
  --shadow: 0 6px 24px -8px rgba(11, 37, 69, .16), 0 2px 6px rgba(11, 37, 69, .05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 37, 69, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sidebar: 264px;
  --topbar: 64px;
  --bottombar: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--off-white);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--mint-100); color: var(--teal-700); padding: 2px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--teal-600); font-weight: 700; font-size: 13px; }
.link .ic { width: 16px; height: 16px; }
.grad { background: linear-gradient(100deg, var(--teal-400), var(--mint-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--mint-200); }

/* ------------------------------------------------------------- splash */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--off-white); transition: opacity .5s var(--ease), visibility .5s; }
.splash img { animation: breathe 1.6s ease-in-out infinite; }
.splash-bar { width: 120px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.splash-bar span { display: block; width: 40%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal-500), var(--mint-300)); animation: slide 1.1s var(--ease) infinite; }
.splash.hide { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 14px; font-weight: 700; font-size: 15px; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, opacity .2s; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .7; cursor: default; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--teal-500), var(--teal-600)); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 140, 140, .7); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(14, 140, 140, .8); }
.btn-mint { background: var(--mint-200); color: var(--navy-900); }
.btn-mint:hover { background: var(--mint-300); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal-400); color: var(--teal-700); }
.btn-outline-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-text { color: var(--danger) !important; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 11px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn.busy { color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-ghost.busy::after { border-color: var(--line); border-top-color: var(--teal-500); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); transition: background .2s, transform .15s; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm .ic { width: 17px; height: 17px; }

/* ------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--navy-900); }
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--teal-500); font-weight: 800; }
.brand-light { color: #fff; }
.brand-light b { color: var(--mint-300); }
.brand-sm { font-size: 17px; gap: 8px; }
.brand-sm img { width: 32px; height: 32px; }

/* ------------------------------------------------------- lang switch */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--line-2); }
.lang-switch button { padding: 5px 9px; border-radius: 9px; font-size: 12px; font-weight: 800; color: var(--muted); transition: background .2s, color .2s; }
.lang-switch button.active { background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------ public */
.public-view { min-height: 100vh; }
.pub-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 20px;
  padding: calc(12px + var(--safe-t)) clamp(16px, 4vw, 48px) 12px; transition: background .3s, box-shadow .3s, padding .3s;
}
.pub-header .brand { color: #fff; }
.pub-header .brand b { color: var(--mint-300); }
.pub-header.scrolled { background: rgba(11, 37, 69, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.pub-nav { display: flex; gap: 4px; margin-left: auto; }
.pub-nav a { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.pub-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pub-actions { display: flex; align-items: center; gap: 10px; }
.pub-header .lang-switch { background: rgba(255, 255, 255, .1); }
.pub-header .lang-switch button { color: rgba(255, 255, 255, .7); }
.pub-header .lang-switch button.active { background: #fff; color: var(--navy-900); }
.pub-header .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }

.hero {
  position: relative; overflow: hidden; color: #fff; padding: calc(120px + var(--safe-t)) clamp(16px, 4vw, 48px) 90px;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(46, 196, 182, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(155, 231, 196, .14), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 45%, var(--navy-800));
}
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--off-white); clip-path: ellipse(75% 100% at 50% 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: rgba(46, 196, 182, .14); border: 1px solid rgba(46, 196, 182, .35); color: var(--mint-200); font-size: 13px; font-weight: 700; }
.eyebrow .ic { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; margin: 20px 0 18px; letter-spacing: -.035em; line-height: 1.04; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 600; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .ic { width: 16px; height: 16px; color: var(--mint-300); }
.anim-up { opacity: 0; transform: translateY(18px); animation: up .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes up { to { opacity: 1; transform: none; } }

.ecg { position: absolute; left: 0; right: 0; top: 46%; width: 100%; height: 120px; opacity: .22; }
.ecg path { fill: none; stroke: var(--teal-400); stroke-width: 2; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ecg 5s linear infinite; filter: drop-shadow(0 0 6px var(--teal-400)); }
@keyframes ecg { 0% { stroke-dashoffset: 2400; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -2400; } }

/* hero phone mock */
.hero-visual { position: relative; height: 560px; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; animation: float 9s ease-in-out infinite; }
.b1 { width: 260px; height: 260px; background: var(--teal-500); top: 40px; right: 30px; }
.b2 { width: 200px; height: 200px; background: var(--mint-300); bottom: 40px; left: 30px; opacity: .3; animation-delay: -3s; }
.b3 { width: 140px; height: 140px; background: #3B82F6; top: 50%; left: 45%; opacity: .25; animation-delay: -6s; }
.phone {
  position: relative; width: 290px; height: 560px; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #1a2f4f, #050f20);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .08); animation: phone-in 1.1s var(--ease) .3s both, float 8s ease-in-out 1.4s infinite;
}
@keyframes phone-in { from { opacity: 0; transform: translateY(50px) rotate(4deg) scale(.95); } }
@keyframes float { 50% { transform: translateY(-12px); } }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #050f20; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: var(--off-white); color: var(--ink); overflow: hidden; padding: 50px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.ph-top { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.ph-top img { width: 26px; height: 26px; }
.ph-av { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 10px; display: grid; place-items: center; }
.ph-hero { display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.ph-hero > div:first-child { flex: 1; min-width: 0; }
.ph-hero small { font-size: 9.5px; color: var(--mint-200); font-weight: 700; }
.ph-hero b { display: block; font-size: 13px; margin: 2px 0 8px; }
.ph-dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.ph-dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ph-dots i.on { background: var(--teal-400); animation: pop .4s var(--spring) both; animation-delay: calc(var(--i) * 45ms + 1s); }
.ph-ring { position: relative; width: 58px; height: 58px; }
.ph-ring svg { transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke-width: 6; }
.ph-ring .r-bg { stroke: rgba(255, 255, 255, .14); }
.ph-ring .r-fg { stroke: var(--teal-400); stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; animation: ring-fill 1.6s var(--ease) 1.1s forwards; }
@keyframes ring-fill { to { stroke-dashoffset: 68; } }
.ph-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-card { background: #fff; border-radius: 14px; padding: 9px 10px; box-shadow: var(--shadow-sm); animation: up .6s var(--ease) both; }
.ph-card:nth-child(1) { animation-delay: 1.2s; } .ph-card:nth-child(2) { animation-delay: 1.3s; } .ph-card:nth-child(3) { animation-delay: 1.4s; } .ph-card:nth-child(4) { animation-delay: 1.5s; }
.ph-card span { color: var(--teal-500); }
.ph-card .ic { width: 15px; height: 15px; }
.ph-card small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.ph-card b { font-size: 16px; }
.ph-chart { background: #fff; border-radius: 14px; padding: 9px 10px 0; box-shadow: var(--shadow-sm); }
.ph-chart small { font-size: 9.5px; font-weight: 700; color: var(--muted); }
.ph-chart svg { width: 100%; height: 64px; }
.ph-line { fill: none; stroke: var(--teal-500); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2s var(--ease) 1.5s forwards; }
.ph-area { fill: url(#none); fill: rgba(20, 167, 160, .12); opacity: 0; animation: fade .8s 2.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.ph-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-500), var(--teal-600)); color: #fff; font-size: 12px; font-weight: 800; }
.ph-btn .ic { width: 15px; height: 15px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .96);
  color: var(--ink); box-shadow: var(--shadow-lg); animation: card-in .9s var(--spring) both, float 7s ease-in-out infinite; z-index: 3; max-width: 230px;
}
.float-card b { display: block; font-size: 13px; }
.float-card small { font-size: 11.5px; color: var(--muted); }
.fc-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.fc-ic .ic { width: 18px; height: 18px; }
.fc-ic.ok { background: var(--mint-100); color: var(--teal-600); }
.fc-ic.warn { background: var(--warn-bg); color: var(--warn); }
.fc-ic.teal { background: var(--navy-900); color: var(--mint-300); }
.fc1 { top: 335px; left: -30px; animation-delay: 1.8s, 2.6s; }
.fc2 { top: 455px; right: -30px; animation-delay: 2.2s, 3.4s; }
.fc3 { top: 4px; left: -40px; animation-delay: 2.6s, 4.2s; }
@keyframes card-in { from { opacity: 0; transform: translateY(20px) scale(.85); } }
@keyframes pop { from { transform: scale(0); } }

/* sections */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 10px 0 14px; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 17px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-600); }
.kicker.light { color: var(--mint-300); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card h3 { font-size: 21px; font-weight: 800; }
.feature-card p { color: var(--muted); flex: 1; }
.fi, .si { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-600); margin-bottom: 6px; }
.fi .ic, .si .ic { width: 26px; height: 26px; }
.fix { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--mint-50); color: var(--teal-700); font-weight: 700; font-size: 14px; }
.fix .ic { width: 18px; height: 18px; }
.how { background: var(--surface); }
.steps { display: flex; align-items: flex-start; gap: 10px; }
.step { flex: 1; text-align: center; padding: 10px 14px; position: relative; }
.step .si { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--mint-300); box-shadow: 0 14px 30px -14px rgba(11, 37, 69, .7); }
.step-num { position: absolute; top: 0; left: calc(50% + 22px); width: 26px; height: 26px; border-radius: 50%; background: var(--teal-500); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step-line { flex: 0 0 60px; height: 2px; margin-top: 42px; background: repeating-linear-gradient(90deg, var(--teal-400) 0 6px, transparent 6px 12px); transform-origin: left; }
.step-line.reveal { transform: scaleX(0); }
.step-line.reveal.in { transform: scaleX(1); }

.case-card { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s; border: 1px solid var(--line-2); }
.case-card::before { content: ''; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--mint-100); transition: transform .6s var(--ease); }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card:hover::before { transform: scale(1.4); }
.case-card > * { position: relative; }
.case-top { display: flex; align-items: center; justify-content: space-between; }
.case-tag { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: var(--navy-900); color: var(--mint-200); }
.case-card h3 { font-size: 22px; font-weight: 800; }
.case-card p { color: var(--muted); flex: 1; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 6px; }
.case-metrics span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px; background: var(--off-white); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.case-metrics .ic { width: 14px; height: 14px; color: var(--teal-500); }
.case-try { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--teal-600); margin-top: 4px; align-self: flex-start; }
.case-try .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.case-try:hover .ic { transform: translateX(4px); }

.doctors { background: linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800)); color: #fff; position: relative; overflow: hidden; }
.doctors::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -200px; top: -200px; background: radial-gradient(circle, rgba(46, 196, 182, .25), transparent 65%); }
.doctors-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.doc-copy h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 10px 0 16px; letter-spacing: -.03em; }
.doc-copy > p { color: rgba(255, 255, 255, .75); font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.check-list .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(46, 196, 182, .2); color: var(--mint-300); }
.doc-mock { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); }
.doc-mock.reveal.in { transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); }
.dm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 17px; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 14px; border: 1px solid var(--line-2); margin-bottom: 8px; }
.dm-row > div { flex: 1; }
.dm-row b { display: block; font-size: 14px; }
.dm-row small { color: var(--muted); font-size: 12px; }
.dm-chart { margin-top: 10px; background: var(--off-white); border-radius: 14px; padding: 10px; }
.dm-chart svg { width: 100%; height: 80px; }
.dm-band { fill: rgba(46, 196, 182, .14); }
.doc-mock.in .ph-line { animation: draw 2.4s var(--ease) .4s forwards; }
.doc-mock .ph-line { animation: none; stroke-dasharray: 500; stroke-dashoffset: 500; }

.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.demo-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.demo-card:hover { transform: translateY(-5px); border-color: var(--teal-400); box-shadow: var(--shadow-lg); }
.demo-card .tdot { margin-bottom: 8px; }
.demo-card b { font-size: 17px; }
.demo-card small { color: var(--muted); font-size: 13.5px; flex: 1; }
.demo-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 800; color: var(--teal-600); }
.demo-go .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.demo-card:hover .demo-go .ic { transform: translateX(5px); }
.demo-card.busy { pointer-events: none; opacity: .7; }
.demo-creds { text-align: center; margin-top: 26px; color: var(--muted); font-size: 13.5px; line-height: 2; }
.pub-footer { background: var(--navy-950); color: rgba(255, 255, 255, .65); padding: 40px 0 calc(40px + var(--safe-b)); }
.footer-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer-inner p { max-width: 640px; font-size: 13.5px; }
.footer-inner .brand { color: #fff; }

/* ----------------------------------------------------------- type dots */
.tdot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; flex: none; }
.tdot .ic { width: 17px; height: 17px; }
.tdot.lg { width: 42px; height: 42px; border-radius: 13px; }
.tdot.lg .ic { width: 22px; height: 22px; }
.tdot.xl { width: 54px; height: 54px; border-radius: 17px; }
.tdot.xl .ic { width: 28px; height: 28px; }
.tdot.t-newborn { background: #E3F1FF; color: #2F6FD6; }
.tdot.t-pregnancy { background: var(--mint-100); color: var(--teal-600); }
.tdot.t-recovery { background: #E9EDFB; color: var(--navy-700); }
.tdot.t-doctor { background: var(--navy-900); color: var(--mint-300); }

/* --------------------------------------------------------------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1fr) 1.1fr; }
.auth-aside { position: relative; overflow: hidden; color: #fff; padding: calc(36px + var(--safe-t)) 44px 36px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(700px 400px at 100% 0%, rgba(46, 196, 182, .3), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 50%, var(--navy-800)); }
.auth-aside-copy h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.auth-aside-copy p { color: rgba(255, 255, 255, .75); font-size: 17px; max-width: 420px; }
.ecg-auth { position: relative; top: auto; height: 90px; opacity: .5; }
.auth-quote { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.auth-quote .ic { color: var(--mint-300); }
.auth-main { display: flex; flex-direction: column; padding: calc(20px + var(--safe-t)) clamp(16px, 5vw, 60px) calc(30px + var(--safe-b)); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-form { width: 100%; max-width: 420px; margin: auto; display: grid; gap: 16px; padding: 30px 0; animation: up .6s var(--ease) both; }
.auth-form h1 { font-size: 32px; font-weight: 800; }
.auth-form.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth-switch { text-align: center; color: var(--muted); }
.auth-switch a { color: var(--teal-600); font-weight: 800; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-chip { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; transition: border-color .2s, transform .15s; }
.demo-chip:hover { border-color: var(--teal-400); }
.demo-chip:active { transform: scale(.97); }
.demo-chip.busy { opacity: .6; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-toggle button { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .2s, background .2s; }
.role-toggle button .ic { color: var(--muted); margin-top: 2px; }
.role-toggle b { display: block; font-size: 14.5px; }
.role-toggle small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.role-toggle button.active { border-color: var(--teal-500); background: var(--mint-50); }
.role-toggle button.active .ic { color: var(--teal-600); }

/* ------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.field > span .ic { width: 16px; height: 16px; color: var(--teal-500); }
:where(input:not([type=checkbox]):not([type=radio]), textarea, select) {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
:where(input[type=date], input[type=datetime-local]) { min-height: 48px; display: block; }
:where(textarea) { resize: vertical; min-height: 80px; line-height: 1.45; }
:where(input:focus, textarea:focus) { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(46, 196, 182, .16); }
.input-ic { position: relative; }
.input-ic > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input-ic input { padding-left: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.pw-toggle.on { color: var(--teal-600); }
.pw-toggle .ic { position: static; transform: none; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 0; }
.form-error:empty { display: none; }
.hint { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.hint .ic { width: 16px; height: 16px; color: var(--teal-500); }

/* ----------------------------------------------------------- app shell */
.shell { min-height: 100vh; }
.sidebar { display: none; }
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: calc(var(--topbar) + var(--safe-t));
  padding: var(--safe-t) 16px 0; background: rgba(243, 246, 249, .85); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid rgba(225, 232, 239, .7);
}
.topbar-mid { flex: 1; min-width: 0; display: flex; justify-content: center; }
.topbar-end { display: flex; align-items: center; gap: 6px; }
.lang-btn { width: auto; padding: 0 9px; gap: 4px; font-size: 12px; font-weight: 800; }
.lang-btn .ic { width: 17px; height: 17px; }
.tracker-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 10px 4px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 800; font-size: 14px; transition: transform .15s; }
.tracker-chip:active { transform: scale(.96); }
.tracker-chip .tc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracker-chip > .ic { width: 16px; height: 16px; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--navy-800), var(--teal-600)); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.avatar-btn { transition: transform .15s; }
.avatar-btn:active { transform: scale(.92); }
.app-view { max-width: 1180px; margin: 0 auto; padding: 18px 16px calc(var(--bottombar) + var(--safe-b) + 28px); }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: flex-end; justify-content: space-around;
  height: calc(var(--bottombar) + var(--safe-b)); padding: 6px 6px var(--safe-b); background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px -18px rgba(11, 37, 69, .25);
}
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 10px; color: var(--muted); font-size: 11px; font-weight: 700; position: relative; transition: color .2s; min-width: 0; }
.bn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bn-icon { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 15px; transition: background .25s var(--ease), transform .25s var(--spring); }
.bn-icon .ic { width: 22px; height: 22px; }
.bn-item.active { color: var(--teal-700); }
.bn-item.active .bn-icon { background: var(--mint-100); transform: translateY(-1px); }
.bn-fab .bn-icon { width: 56px; height: 56px; border-radius: 19px; margin-top: -26px; color: #fff; background: linear-gradient(135deg, var(--teal-400), var(--teal-600)); box-shadow: 0 12px 24px -8px rgba(14, 140, 140, .8), 0 0 0 5px var(--off-white); animation: fab-pulse 3s ease-in-out infinite; }
.bn-fab .bn-icon .ic { width: 26px; height: 26px; }
.bn-fab.active .bn-icon { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: var(--mint-300); transform: rotate(45deg); }
.bn-fab.active .bn-icon .ic { transform: rotate(-45deg); }
@keyframes fab-pulse { 0%, 100% { box-shadow: 0 12px 24px -8px rgba(14, 140, 140, .8), 0 0 0 5px var(--off-white); } 50% { box-shadow: 0 12px 30px -6px rgba(14, 140, 140, .95), 0 0 0 5px var(--off-white); } }

@media (min-width: 1024px) {
  .app-view { padding: 28px 28px 60px; }
}

/* ---------------------------------------------------------------- view */
.view-enter > * { animation: view-in .55s var(--ease) both; }
.view-enter > *:nth-child(2) { animation-delay: .04s; } .view-enter > *:nth-child(3) { animation-delay: .08s; }
.view-enter > *:nth-child(4) { animation-delay: .12s; } .view-enter > *:nth-child(5) { animation-delay: .16s; }
.view-enter > *:nth-child(6) { animation-delay: .2s; } .view-enter > *:nth-child(n+7) { animation-delay: .24s; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }
.public-view.view-enter > * { animation: none; }

.skeleton-wrap { display: grid; gap: 16px; }
.sk { border-radius: var(--radius); background: linear-gradient(90deg, #e8eef3 25%, #f4f7fa 50%, #e8eef3 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk-hero { height: 190px; border-radius: var(--radius-lg); }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sk-card { height: 120px; }
.sk-block { height: 280px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 6px 0 18px; }
.page-head > div:first-child { flex: 1 1 200px; min-width: 0; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 4px; }
.ph-actions { display: flex; gap: 8px; }
.greet { margin: 2px 0 14px; }
.greet h2 { font-size: 22px; font-weight: 800; }
.greet p { color: var(--muted); font-size: 14px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-title h3 { font-size: 18px; font-weight: 800; }
.section-title small { color: var(--muted); font-weight: 600; }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 800; }
.card-head h3 .ic { color: var(--teal-500); width: 19px; height: 19px; }
.two-col { display: grid; gap: 0 16px; margin-top: 16px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.35fr 1fr; } }

/* segmented */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--line-2); max-width: 100%; }
.seg button, .seg a { flex: 1; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; text-align: center; transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.seg .active { background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.seg-sm button { padding: 6px 11px; font-size: 13px; }
.seg-scroll { overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-wrap { flex-wrap: wrap; }
.seg-tabs { display: flex; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }

/* hero card */
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 22px; color: #fff;
  background: radial-gradient(500px 260px at 100% 0%, rgba(46, 196, 182, .38), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); box-shadow: 0 20px 44px -24px rgba(11, 37, 69, .8); }
.hero-card.t-pregnancy { background: radial-gradient(500px 260px at 100% 0%, rgba(155, 231, 196, .4), transparent 60%), linear-gradient(135deg, #0B3A4A, var(--teal-700)); }
.hero-card.t-recovery { background: radial-gradient(500px 260px at 100% 0%, rgba(46, 196, 182, .3), transparent 60%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.hc-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -80px; bottom: -150px; background: radial-gradient(circle, rgba(155, 231, 196, .25), transparent 70%); animation: float 8s ease-in-out infinite; }
.hc-row { position: relative; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.hc-main { min-width: 0; }
.type-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 700; color: var(--mint-200); }
.type-badge .ic { width: 15px; height: 15px; }
.hero-card h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 10px 0 4px; }
.hc-title { font-weight: 700; font-size: 16px; }
.hc-sub { color: rgba(255, 255, 255, .7); font-size: 13.5px; margin-top: 2px; }
.hc-owner { text-align: left; display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--mint-200); }
.hc-owner .ic { width: 16px; height: 16px; }
.hc-link { cursor: pointer; }
.hc-share { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: var(--mint-200); color: var(--navy-900); font-weight: 800; font-size: 13px; transition: transform .15s; }
.hc-share:active { transform: scale(.96); }
.hc-share .ic { width: 16px; height: 16px; }
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-linecap: round; }
.ring-bg { stroke: rgba(255, 255, 255, .14); }
.ring-fg { transition: stroke-dashoffset 1.6s var(--ease) .2s; filter: drop-shadow(0 0 6px rgba(46, 196, 182, .5)); }
.ring-inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-inner b { font-size: 34px; font-weight: 800; line-height: 1; }
.ring-inner small { font-size: 12px; color: rgba(255, 255, 255, .7); font-weight: 700; }
.chilla-dots { position: relative; display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; margin-top: 18px; }
.chilla-dots i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.chilla-dots i.on { background: linear-gradient(90deg, var(--teal-400), var(--mint-300)); animation: pop .5s var(--spring) both; animation-delay: calc(var(--i) * 25ms + .2s); }
.chilla-dots i.today { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); animation: pop .5s var(--spring) both, blink 1.6s ease-in-out 1.2s infinite; }
@keyframes blink { 50% { opacity: .45; } }
.preg-bar { position: relative; margin-top: 18px; }
.pb-track { position: relative; display: flex; gap: 3px; height: 10px; }
.pb-seg { height: 100%; border-radius: 5px; background: rgba(255, 255, 255, .15); }
.pb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--teal-400), var(--mint-300)); transition: width 1.6s var(--ease) .2s; }
.pb-marker { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(155, 231, 196, .4); animation: pop .6s var(--spring) 1.4s both; }
.pb-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .65); }
.pb-labels span { flex: 35; } .pb-labels span:last-child { flex: 30; text-align: right; } .pb-labels span:nth-child(2) { text-align: center; }

/* banner */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin: 14px 0; border: 1px solid; }
.banner > .ic { width: 22px; height: 22px; margin-top: 1px; }
.banner b { display: block; font-size: 15px; }
.banner small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.banner-ok { background: var(--mint-50); border-color: var(--mint-200); color: var(--teal-700); }
.banner-warn { background: var(--warn-bg); border-color: #F7D9A8; color: #9A5A06; }
.banner-danger { background: var(--danger-bg); border-color: #F6C2C4; color: #B42318; }
.banner-info { background: #EEF4FF; border-color: #D3E1FB; color: var(--navy-700); }
.banner-danger > .ic { animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.banner-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* quick actions */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 4px; }
.quick:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.qa { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 700; text-align: center; transition: transform .2s var(--ease), box-shadow .2s; }
.qa:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qa:active { transform: scale(.96); }
.qa > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--mint-100); color: var(--teal-600); transition: transform .3s var(--spring); }
.qa:hover > span { transform: scale(1.08) rotate(-4deg); }
.qa-primary > span { background: linear-gradient(135deg, var(--teal-400), var(--teal-600)); color: #fff; }
.qa-badge { position: absolute; top: 8px; right: calc(50% - 30px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }

/* chips & pills */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px; font-size: 12.5px; font-weight: 700; background: var(--off-white); color: var(--ink-2); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip-ok { background: var(--mint-100); color: var(--teal-700); }
.chip-warn { background: var(--warn-bg); color: #A15C00; }
.chip-danger { background: var(--danger-bg); color: #B42318; }
.chip-more { background: var(--line-2); color: var(--muted); }
.chip-btn { cursor: pointer; border: 1px solid var(--line); background: var(--surface); padding: 7px 11px; font-size: 13px; transition: border-color .2s, background .2s, transform .15s; white-space: normal; text-align: left; }
.chip-btn:hover { border-color: var(--teal-400); }
.chip-btn:active { transform: scale(.96); }
.chip-btn.active { background: var(--mint-100); border-color: var(--teal-400); color: var(--teal-700); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.chips-scroll { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip-btn { white-space: nowrap; }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pill-ok { background: var(--mint-100); color: var(--teal-700); }
.pill-warn { background: var(--warn-bg); color: #A15C00; }
.pill-danger { background: var(--danger-bg); color: #B42318; }
.spill { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.spill-active { background: #FFF1E6; color: #B4540A; }
.spill-improving { background: var(--mint-100); color: var(--teal-700); }
.spill-worse { background: var(--danger-bg); color: #B42318; }
.spill-resolved { background: var(--line-2); color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 9px; background: var(--off-white); font-size: 12px; font-weight: 800; color: var(--ink-2); }
.badge .ic { width: 13px; height: 13px; }
.count-badge { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--mint-100); color: var(--teal-700); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-400); flex: none; }
.st-dot.st-warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.st-dot.st-danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); animation: blink 1.4s infinite; }
.st-dot.st-ok { box-shadow: 0 0 0 3px var(--mint-100); }
.tv { font-weight: 800; padding: 2px 7px; border-radius: 7px; }
.tv-ok { color: var(--teal-700); }
.tv-warn { background: var(--warn-bg); color: #A15C00; }
.tv-danger { background: var(--danger-bg); color: #B42318; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: var(--ink-2); }
.delta .ic { width: 13px; height: 13px; }
.delta-pill { display: inline-flex; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.delta-pill.pos { background: var(--mint-100); color: var(--teal-700); }
.delta-pill.neg { background: #EEF2F7; color: var(--navy-700); }

/* vitals */
.vitals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .vitals-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .vitals-grid { grid-template-columns: repeat(4, 1fr); } }
.vital { position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 0; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; animation: view-in .5s var(--ease) both; }
.vital:nth-child(2) { animation-delay: .05s; } .vital:nth-child(3) { animation-delay: .1s; } .vital:nth-child(4) { animation-delay: .15s; } .vital:nth-child(5) { animation-delay: .2s; } .vital:nth-child(6) { animation-delay: .25s; } .vital:nth-child(n+7) { animation-delay: .3s; }
.vital:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vital.selected { border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(46, 196, 182, .15); }
.vital.st-warn { background: linear-gradient(180deg, #FFFAF2, #fff 60%); }
.vital.st-danger { background: linear-gradient(180deg, #FFF5F5, #fff 60%); }
.v-top { display: flex; align-items: center; gap: 8px; }
.v-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--mint-100); color: var(--teal-600); flex: none; }
.v-icon .ic { width: 17px; height: 17px; }
.v-icon.sm { width: 30px; height: 30px; }
.vital.st-warn .v-icon { background: var(--warn-bg); color: var(--warn); }
.vital.st-danger .v-icon { background: var(--danger-bg); color: var(--danger); }
.v-label { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.v-val { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v-val small { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.v-scale { font-size: 19px; }
.v-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.v-spark { width: calc(100% + 28px); height: 30px; margin: 6px -14px 0; }
.spark-line { fill: none; stroke: var(--teal-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .3s forwards; vector-effect: non-scaling-stroke; }
.spark-area { fill: rgba(46, 196, 182, .12); opacity: 0; animation: fade .8s .9s forwards; }
.spark-dot { fill: var(--teal-600); opacity: 0; animation: fade .3s 1.5s forwards; }
.vital.st-warn .spark-line { stroke: var(--warn); } .vital.st-warn .spark-area { fill: rgba(232, 150, 44, .12); } .vital.st-warn .spark-dot { fill: var(--warn); }
.vital.st-danger .spark-line { stroke: var(--danger); } .vital.st-danger .spark-area { fill: rgba(229, 72, 77, .1); } .vital.st-danger .spark-dot { fill: var(--danger); }

/* chart */
.chart-card { margin-top: 16px; }
.mchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 11px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink-2); transition: all .2s; }
.mchip .ic { width: 15px; height: 15px; }
.mchip.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.mchip.active .ic { color: var(--mint-300); }
.chart-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 2px 6px; }
.chart-meta span { display: grid; }
.chart-meta small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.chart-meta b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cm-range { position: relative; padding-left: 16px; }
.cm-range i { position: absolute; left: 0; top: 4px; width: 10px; height: 30px; border-radius: 3px; background: rgba(46, 196, 182, .2); border: 1px dashed rgba(14, 140, 140, .5); }
.chart-wrap { position: relative; height: 260px; }
@media (min-width: 900px) { .chart-wrap { height: 300px; } }

/* care bars / changes */
.care { display: grid; gap: 14px; }
.care-row { display: flex; align-items: center; gap: 12px; }
.care-main { flex: 1; }
.care-lbl { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.care-lbl small { color: var(--muted); }
.bar { position: relative; height: 10px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.bar-range { position: absolute; top: 0; bottom: 0; background: rgba(46, 196, 182, .18); }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--teal-500), var(--mint-300)); transition: width 1.3s var(--ease) .2s; }
.bar-fill.st-warn { background: linear-gradient(90deg, #F2A33A, #F8C77E); }
.bar-fill.st-danger { background: linear-gradient(90deg, var(--danger), #F38A8D); }
.changes { display: grid; gap: 10px; }
.change-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.change-row:last-child { border-bottom: 0; }
.ch-lbl { flex: 1; font-weight: 700; font-size: 14px; min-width: 90px; }
.ch-vals { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.ch-vals b { color: var(--ink); font-size: 16px; }
.ch-vals .ic { width: 15px; height: 15px; color: var(--teal-500); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 8px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--mint-50); }

/* notes */
.note { padding: 14px; border-radius: 14px; background: var(--mint-50); border: 1px solid var(--mint-200); margin-bottom: 10px; position: relative; }
.note::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal-500); }
.note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13.5px; }
.note-head span:not(.avatar) { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.note p { color: var(--ink-2); font-size: 14.5px; }
.note-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--off-white); margin: 12px 0; color: var(--ink-2); font-size: 14.5px; }
.note-box .ic { color: var(--teal-500); margin-top: 2px; }

/* symptoms */
.sym-mini { display: grid; gap: 4px; }
.sm-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.sm-row:last-child { border-bottom: 0; }
.sm-name { font-weight: 700; flex: 1; min-width: 120px; }
.sm-since { color: var(--muted); font-size: 12.5px; }
.sev { display: inline-flex; gap: 3px; }
.sev i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.sev i.on { background: var(--teal-500); }
.sev-3 i.on { background: var(--warn); }
.sev-4 i.on, .sev-5 i.on { background: var(--danger); }
.sym-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 16px; }
.sym-card { background: var(--surface); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 9px; border-left: 4px solid #F5A15A; }
.sym-card.st-improving { border-left-color: var(--teal-400); }
.sym-card.st-worse { border-left-color: var(--danger); }
.sym-card.st-resolved { border-left-color: var(--line); opacity: .82; }
.sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sc-top b { font-size: 16px; }
.sc-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.sc-meta .ic { width: 15px; height: 15px; }
.sc-course { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 10px; border-radius: 12px; background: var(--off-white); }
.sc-step { display: grid; gap: 3px; justify-items: center; }
.sc-step small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.sc-step .ok { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-500); color: #fff; }
.sc-step .ok .ic { width: 12px; height: 12px; }
.sc-arrow .ic { width: 13px; height: 13px; color: var(--muted); }
.sc-note { font-size: 13.5px; color: var(--ink-2); }
.sym-card .btn { align-self: flex-start; }

/* entries */
.entries { display: grid; gap: 4px; }
.entry-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-align: left; transition: background .2s; }
.entry-row:hover { background: var(--off-white); }
.er-time { display: grid; flex: none; width: 54px; }
.er-time b { font-size: 15px; font-variant-numeric: tabular-nums; }
.er-time small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.er-body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.er-vals { display: flex; flex-wrap: wrap; gap: 5px; }
.er-note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.er-note .ic { width: 14px; height: 14px; display: inline; vertical-align: -2px; margin-right: 4px; }

/* timeline */
.timeline { position: relative; padding-left: 4px; }
.tl-day { position: sticky; top: calc(var(--topbar) + var(--safe-t)); z-index: 2; margin: 16px 0 8px; padding: 6px 12px; display: inline-block; border-radius: 99px; background: var(--navy-900); color: #fff; font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow); }
.tl-day:first-child { margin-top: 0; }
@media (min-width: 1024px) { .tl-day { top: calc(var(--topbar) + 8px); } }
.tl-item { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.tl-item::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; flex: none; background: var(--mint-100); color: var(--teal-600); }
.tl-dot .ic { width: 17px; height: 17px; }
.tl-item.st-warn .tl-dot { background: var(--warn-bg); color: var(--warn); }
.tl-item.st-danger .tl-dot { background: var(--danger-bg); color: var(--danger); }
.k-symptom .tl-dot { background: #FFF1E6; color: #D9711C; }
.k-symptom.resolved .tl-dot { background: var(--mint-100); color: var(--teal-600); }
.k-note .tl-dot { background: var(--navy-900); color: var(--mint-300); }
.k-question .tl-dot { background: #EEF2FF; color: #4655C9; }
.tl-body { flex: 1; min-width: 0; padding-top: 6px; }
.tl-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 3px; }
.tl-head span { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tl-body p { font-size: 14.5px; color: var(--ink-2); }
.tl-body .entry-row { padding: 6px 0; }
.tl-body .entry-row .er-time { display: none; }
.tl-body .entry-row:hover { background: transparent; }
.tl-note { color: var(--muted) !important; font-size: 13px !important; margin-top: 2px; }
.tl-quote { padding: 10px 12px; border-radius: 12px; background: var(--mint-50); border: 1px solid var(--mint-200); margin-top: 4px; }

/* questions */
.q-new { display: grid; gap: 10px; }
.q-new textarea { min-height: 70px; }
.q-new-foot { display: flex; gap: 10px; align-items: center; }
.q-new-foot .chips-scroll { flex: 1; min-width: 0; }
.q-list { display: grid; gap: 4px; }
.q-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 6px; border-bottom: 1px solid var(--line-2); animation: view-in .4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.q-item:last-child { border-bottom: 0; }
.q-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); color: transparent; flex: none; transition: all .25s var(--spring); }
.q-check .ic { width: 16px; height: 16px; transform: scale(0); transition: transform .3s var(--spring); }
.q-check.on { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.q-check.on .ic { transform: scale(1); }
.q-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--mint-100); color: var(--teal-700); font-weight: 800; font-size: 13px; flex: none; }
.q-body { flex: 1; min-width: 0; }
.q-body > p { font-weight: 600; }
.q-item.done .q-body > p { color: var(--muted); }
.q-body > small { color: var(--muted); font-size: 12px; }
.q-answer { display: flex; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--mint-50); border: 1px solid var(--mint-200); }
.q-answer > .ic { color: var(--teal-600); margin-top: 2px; }
.q-answer b { font-size: 13px; }
.q-answer p { font-size: 14px; color: var(--ink-2); }

/* entry form */
.entry-form { display: grid; gap: 0; }
.entry-when .hint { margin-top: 10px; }
.mg-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.mrow { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'ic info st' 'in in in'; gap: 8px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); transition: background .3s; }
.mrow:last-child { border-bottom: 0; }
.mrow > .v-icon { grid-area: ic; }
.mrow-info { grid-area: info; min-width: 0; }
.mrow-info b { display: block; font-size: 15px; }
.mrow-info small { color: var(--muted); font-size: 12.5px; }
.mrow-status { grid-area: st; min-height: 22px; }
.mrow-status .pill { animation: pop .35s var(--spring); }
.mrow-input { grid-area: in; }
.mrow[data-st=warn] > .v-icon { background: var(--warn-bg); color: var(--warn); }
.mrow[data-st=danger] > .v-icon { background: var(--danger-bg); color: var(--danger); }
@media (min-width: 640px) {
  .mrow { grid-template-columns: auto 1fr auto auto; grid-template-areas: 'ic info st in'; }
  .mrow-scale { grid-template-columns: auto 1fr auto; grid-template-areas: 'ic info st' 'in in in'; }
}
.stepper { display: flex; align-items: center; gap: 0; border-radius: 15px; border: 1.5px solid var(--line); background: var(--surface); overflow: hidden; width: 100%; max-width: 230px; transition: border-color .2s, box-shadow .2s; }
.stepper:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(46, 196, 182, .14); }
.stepper button { display: grid; place-items: center; width: 50px; height: 50px; flex: none; color: var(--teal-600); background: var(--mint-50); transition: background .15s; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stepper button:active { background: var(--mint-200); }
.stepper input { flex: 1; min-width: 0; min-height: 50px; border: 0 !important; box-shadow: none !important; border-radius: 0; text-align: center; font-size: 19px; font-weight: 800; padding: 0 4px; font-variant-numeric: tabular-nums; }
.mrow.filled .stepper { border-color: var(--teal-400); }
.mrow[data-st=warn] .stepper { border-color: var(--warn); }
.mrow[data-st=danger] .stepper { border-color: var(--danger); }
.bp-inputs { display: flex; align-items: center; gap: 6px; }
.bp-inputs > span { font-size: 22px; color: var(--muted); font-weight: 300; }
.bp-inputs .stepper { max-width: 170px; }
.st-sm button { width: 40px; }
.scale-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.scale-pills button { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; padding: 11px 8px; border-radius: 13px; border: 1.5px solid var(--line); font-weight: 700; font-size: 13.5px; transition: all .2s var(--ease); }
.scale-pills button.active { transform: translateY(-2px); }
.scale-pills button.active.lv0 { background: var(--mint-100); border-color: var(--teal-400); color: var(--teal-700); }
.scale-pills button.active.lv1 { background: #FFF6E6; border-color: #F2C27A; color: #9A5A06; }
.scale-pills button.active.lv2 { background: var(--warn-bg); border-color: var(--warn); color: #9A5A06; }
.scale-pills button.active.lv3 { background: var(--danger-bg); border-color: var(--danger); color: #B42318; }
.save-bar { position: sticky; bottom: calc(var(--bottombar) + var(--safe-b) + 10px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.save-bar span { font-size: 13px; font-weight: 700; }
@media (min-width: 1024px) { .save-bar { bottom: 16px; } }

/* sev picker */
.sevp { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 6px; }
.sevp button { display: grid; gap: 2px; justify-items: center; padding: 8px 2px; border-radius: 12px; border: 1.5px solid var(--line); transition: all .2s var(--ease); }
.sevp b { font-size: 17px; }
.sevp small { font-size: 10.5px; color: var(--muted); font-weight: 700; line-height: 1.15; text-align: center; }
.sevp button.active { transform: translateY(-2px); border-color: var(--teal-500); background: var(--mint-100); }
.sevp button.active.s3 { border-color: var(--warn); background: var(--warn-bg); }
.sevp button.active.s4, .sevp button.active.s5 { border-color: var(--danger); background: var(--danger-bg); }

/* report */
.report-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.shared-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-700); font-weight: 700; font-size: 13.5px; }
.shared-ok .ic { width: 17px; height: 17px; }
.report-paper { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 40px); border: 1px solid var(--line-2); max-width: 900px; margin: 0 auto; }
.fade-swap { animation: view-in .45s var(--ease); }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--navy-900); }
.rp-brand { display: flex; align-items: center; gap: 12px; }
.rp-brand img { width: 46px; height: 46px; }
.rp-brand b { display: block; font-size: 20px; font-weight: 800; }
.rp-brand b span { color: var(--teal-500); }
.rp-brand small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.rp-gen { text-align: right; }
.rp-gen small, .rp-id small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.rp-gen b { font-size: 14px; }
.rp-id { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rp-id b { display: block; font-size: 15px; }
.rp-id span { font-size: 12.5px; color: var(--muted); }
.rp-sec { padding: 20px 0 6px; break-inside: avoid; }
.rp-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-800); margin-bottom: 12px; }
.rp-sec h3 .ic { width: 18px; height: 18px; color: var(--teal-500); }
.rp-bullets { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.rp-bullets li::marker { color: var(--teal-500); }
.ok-text { color: var(--teal-700); font-weight: 700; }
.rp-m { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.rp-m .ic { width: 15px; height: 15px; color: var(--teal-500); }
.trend { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--off-white); }
.trend .ic { width: 15px; height: 15px; }
.trend.t1 { color: var(--teal-700); background: var(--mint-100); }
.trend.t-1 { color: var(--navy-700); background: #EEF2F7; }
.rp-flags { display: grid; gap: 6px; }
.rp-flag { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--off-white); font-size: 14px; border-left: 3px solid var(--warn); }
.rp-flag.st-danger { border-left-color: var(--danger); }
.rp-flag > span:first-child { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rp-flag small { color: var(--muted); text-align: right; font-weight: 700; }
.rp-course { font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }
.rp-q { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-weight: 600; }
.rp-qa { padding: 10px 14px; border-radius: 12px; background: var(--mint-50); margin-top: 8px; font-size: 14px; }
.rp-qa p { display: flex; gap: 6px; color: var(--ink-2); margin-top: 3px; }
.rp-qa p .ic { width: 16px; height: 16px; color: var(--teal-600); margin-top: 2px; }
.rp-qa small { color: var(--muted); font-size: 12px; font-weight: 700; }
.rp-notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }
.rp-notes small { color: var(--muted); font-weight: 700; margin-right: 6px; }
.rp-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* wizard */
.wizard { max-width: 560px; margin: 0 auto; position: relative; }
.wiz-progress { display: flex; gap: 6px; margin: 4px 0 24px; }
.wiz-progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.wiz-progress span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal-500), var(--mint-300)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.wiz-progress span.active::after { transform: scaleX(1); }
.wiz-step { display: none; }
.wiz-step.active { display: block; animation: wiz-in .5s var(--ease) both; }
@keyframes wiz-in { from { opacity: 0; transform: translateX(30px); } }
.wiz-step h1 { font-size: 28px; font-weight: 800; margin: 10px 0 6px; }
.wiz-step > p { margin-bottom: 20px; }
.type-cards { display: grid; gap: 12px; margin-top: 20px; }
.type-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid var(--line); text-align: left; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; animation: view-in .5s var(--ease) both; animation-delay: calc(var(--d) * 90ms + 100ms); }
.type-card:hover { transform: translateY(-3px); border-color: var(--teal-400); box-shadow: var(--shadow); }
.type-card:active { transform: scale(.98); }
.tc-text { flex: 1; }
.tc-text b { display: block; font-size: 17px; }
.tc-text small { color: var(--muted); font-size: 13.5px; }
.type-card > .ic { color: var(--muted); }
.calc-box { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--mint-50); border: 1px solid var(--mint-200); color: var(--teal-700); animation: pop .4s var(--spring); }
.calc-box b { display: block; color: var(--ink); }
.calc-box small { color: var(--muted); }
.share-head { text-align: center; display: grid; justify-items: center; gap: 6px; margin-bottom: 16px; }
.share-ic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--mint-300); box-shadow: 0 14px 30px -14px rgba(11, 37, 69, .8); }
.share-ic .ic { width: 30px; height: 30px; }
.doctor-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--mint-50); border: 1px solid var(--mint-200); margin-bottom: 14px; }
.doctor-card > div { flex: 1; }
.doctor-card b { display: block; }
.doctor-card small { color: var(--muted); }
.ok-ic { color: var(--teal-600); }

/* doctor */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; overflow: hidden; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); display: grid; gap: 2px; }
.stat > span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-600); margin-bottom: 6px; }
.stat > span .ic { width: 18px; height: 18px; }
.stat b { font-size: 28px; font-weight: 800; line-height: 1.1; }
.stat small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.stat-warn > span { background: var(--danger-bg); color: var(--danger); }
.code-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 16px; color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgba(46, 196, 182, .4), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.code-card small { color: var(--mint-200); font-weight: 700; font-size: 12.5px; }
.code-card b { display: block; font-size: 30px; letter-spacing: .08em; font-weight: 800; margin: 2px 0; }
.code-card p { color: rgba(255, 255, 255, .7); font-size: 13px; max-width: 460px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { padding-left: 42px; min-height: 44px; }
.patients-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.patient-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; animation: view-in .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); position: relative; overflow: hidden; }
.patient-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal-400); }
.patient-card.st-warn::before { background: var(--warn); }
.patient-card.st-danger::before { background: var(--danger); }
.patient-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-name { flex: 1; min-width: 0; }
.pc-name b { display: block; font-size: 16.5px; }
.pc-name small { color: var(--muted); font-size: 12.5px; }
.pc-stage { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.pc-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-spark { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--off-white); }
.pc-spark small { font-size: 11.5px; font-weight: 700; color: var(--muted); width: 74px; flex: none; line-height: 1.2; }
.pc-spark .spark { flex: 1; height: 34px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pc-foot > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.pc-foot .ic { width: 14px; height: 14px; }
.pc-badges { display: flex; gap: 5px; }
.alerts-list { padding: 8px; }
.alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 14px; transition: background .2s; animation: view-in .4s var(--ease) both; animation-delay: calc(var(--i) * 35ms); flex-wrap: wrap; }
.alert-row:hover { background: var(--off-white); }
.ar-main { flex: 1; min-width: 140px; }
.ar-main b { display: block; }
.ar-main small { color: var(--muted); font-size: 12.5px; }

/* profile */
.profile-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.profile-card > div { flex: 1; min-width: 0; }
.profile-card h1 { font-size: 22px; font-weight: 800; }
.profile-card p { color: var(--muted); margin: 2px 0 8px; overflow: hidden; text-overflow: ellipsis; }
.lang-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lang-card { display: grid; gap: 2px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); text-align: left; transition: all .2s var(--ease); }
.lang-card b { font-size: 20px; }
.lang-card span { color: var(--muted); font-size: 13px; font-weight: 600; }
.lang-card.active { border-color: var(--teal-500); background: var(--mint-50); }
.lang-card.active b { color: var(--teal-700); }
.list { display: grid; gap: 6px; margin-bottom: 12px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-align: left; width: 100%; transition: background .2s; }
.list-row:hover, .list-row.active { background: var(--off-white); }
.list-row.static:hover { background: transparent; }
.lr-main { flex: 1; min-width: 0; }
.lr-main b { display: block; }
.lr-main small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.lr-main small .ic { width: 13px; height: 13px; }
.lr-end { color: var(--teal-600); }
.about p { color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
.welcome { max-width: 520px; margin: 40px auto; text-align: center; display: grid; justify-items: center; gap: 14px; }
.welcome-logo { width: 140px; height: 140px; animation: breathe 3s ease-in-out infinite; }
.welcome h1 { font-size: 28px; font-weight: 800; }
.welcome p { color: var(--muted); margin-bottom: 8px; }

/* empty */
.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 10px; }
.empty-icon { width: 70px; height: 70px; border-radius: 24px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-600); animation: breathe 3s ease-in-out infinite; }
.empty-icon .ic { width: 32px; height: 32px; }
.empty h3 { font-size: 19px; font-weight: 800; }
.empty p { color: var(--muted); max-width: 380px; margin-bottom: 6px; }

/* ------------------------------------------------------------- sheet */
#sheet-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#sheet-root:empty { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 40, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 26px 26px 0 0; padding: 12px 20px calc(24px + var(--safe-b)); transform: translateY(100%); transition: transform .4s var(--ease); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4); }
#sheet-root.open { pointer-events: auto; }
#sheet-root.open .sheet-backdrop { opacity: 1; }
#sheet-root.open .sheet { transform: none; }
.sheet-handle { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet-close { position: absolute; top: 10px; right: 10px; }
.sheet-title { font-size: 21px; font-weight: 800; margin: 4px 40px 6px 0; }
.sheet-body > .muted { margin-bottom: 14px; }
.sheet-body .form { margin-top: 12px; }
@media (min-width: 720px) {
  .sheet { left: 50%; top: 50%; bottom: auto; width: min(520px, calc(100vw - 32px)); border-radius: 26px; padding: 24px 26px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
  #sheet-root.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-handle { display: none; }
}
.lang-list { display: grid; gap: 6px; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 700; font-size: 16px; }
.lang-opt.active { border-color: var(--teal-500); background: var(--mint-50); color: var(--teal-700); }
.confirm { text-align: center; display: grid; gap: 16px; justify-items: center; padding-top: 10px; }
.confirm p { font-size: 16px; font-weight: 600; max-width: 360px; }
.confirm .btn-row { width: 100%; }
.confirm-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-600); }
.confirm-icon.danger { background: var(--danger-bg); color: var(--danger); }
.detail-list { display: grid; gap: 2px; margin: 8px 0; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.dl-lbl { flex: 1; font-weight: 700; font-size: 14px; display: grid; }
.dl-lbl small { color: var(--muted); font-weight: 600; font-size: 12px; }

/* --------------------------------------------------------------- toast */
#toasts { position: fixed; z-index: 80; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); transform: translateY(-20px) scale(.95); opacity: 0; transition: transform .4s var(--spring), opacity .3s; }
.toast.show { transform: none; opacity: 1; }
.toast-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--teal-500); flex: none; }
.toast-icon .ic { width: 16px; height: 16px; }
.toast-warn .toast-icon { background: var(--warn); }
.toast-err .toast-icon { background: var(--danger); }

/* ------------------------------------------------------- success overlay */
.success-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(243, 246, 249, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.success-ov.show { opacity: 1; }
.success-box { display: grid; justify-items: center; gap: 14px; padding: 30px 40px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); transform: scale(.8); transition: transform .45s var(--spring); text-align: center; max-width: 300px; }
.success-ov.show .success-box { transform: none; }
.success-box svg { width: 84px; height: 84px; }
.success-box circle { fill: var(--mint-100); stroke: var(--teal-500); stroke-width: 4; stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw .6s var(--ease) .1s forwards; }
.success-box path { fill: none; stroke: var(--teal-600); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .4s var(--ease) .55s forwards; }
.success-ov.warn circle { fill: var(--warn-bg); stroke: var(--warn); }
.success-ov.warn path { stroke: var(--warn); }
.success-box b { font-size: 17px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .lead { margin: 0 auto; }
  .hero-trust { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { height: 540px; }
  .pub-nav { display: none; }
  .pub-actions { margin-left: auto; }
  .grid-3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { flex-direction: column; align-items: stretch; max-width: 460px; margin: 0 auto; }
  .step-line { flex: 0 0 30px; width: 2px; height: 30px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--teal-400) 0 6px, transparent 6px 12px); }
  .doctors-inner { grid-template-columns: 1fr; }
  .doc-mock, .doc-mock.reveal.in { transform: none; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .rp-id { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .hide-xs { display: none !important; }
  .pub-header { gap: 8px; }
  .pub-header .brand span { display: none; }
  .hero { padding-top: calc(100px + var(--safe-t)); }
  .hero-visual { height: 500px; transform: scale(.92); margin: -10px -16px; }
  .float-card { max-width: 190px; padding: 8px 10px 8px 8px; }
  .fc1 { left: 4px; } .fc2 { right: 4px; } .fc3 { left: 4px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .demo-card .tdot { margin: 0; }
  .demo-card b { flex: 1; }
  .demo-card small { flex-basis: 100%; }
  .quick { gap: 8px; }
  .qa { font-size: 11.5px; padding: 10px 2px; }
  .qa > span { width: 38px; height: 38px; }
  .hero-card { padding: 18px; }
  .hc-row .ring { width: 104px !important; height: 104px !important; }
  .ring-inner b { font-size: 28px; }
  .chilla-dots { gap: 3px; }
  .v-val { font-size: 22px; }
  .rp-id { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rp-flag { grid-template-columns: 82px 1fr auto; gap: 8px; padding: 7px 10px; font-size: 13px; }
  .scale-pills button { flex-basis: calc(50% - 3px); }
  .page-head { flex-wrap: wrap; }
  .rp-head { flex-direction: column; align-items: flex-start; }
  .rp-gen { text-align: left; }
  .code-card { flex-direction: column; align-items: flex-start; }
  .page-head { align-items: center; }
  .q-new-foot { flex-direction: column; align-items: stretch; }
  .lang-cards { gap: 6px; }
  .lang-card { padding: 12px 10px; }
  .card { padding: 16px; }
  .bp-inputs .stepper { max-width: none; }
}
@media (max-width: 360px) {
  .bn-label { font-size: 10px; }
  .bn-icon { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- print */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12px; }
  .sidebar, .topbar, .bottom-nav, .no-print, .seg-tabs, #toasts, #sheet-root { display: none !important; }
  .shell { display: block; }
  .app-view { padding: 0; max-width: none; }
  .report-paper { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .view-enter > * { animation: none !important; }
  .table td, .table th { padding: 5px 6px; }
  .rp-sec { padding-top: 12px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ------------------------------------------- top bar + drop-down menu */
.topbar { background: var(--navy-900); color: #fff; border-bottom: 0; gap: 12px; justify-content: flex-start; padding: var(--safe-t) 16px 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 8px 24px -16px rgba(6, 20, 40, .8); }
.topbar-mid { justify-content: flex-start; }
.tb-profile { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 14px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-add { flex: none; }
.top-add .ic { width: 16px; height: 16px; }
.burger { flex: none; width: 42px; height: 42px; display: grid; align-content: center; gap: 5px; padding: 0 11px; border-radius: 12px; background: rgba(255, 255, 255, .08); transition: background .2s; }
.burger:hover { background: rgba(255, 255, 255, .14); }
.burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drop-menu {
  position: fixed; left: 0; right: 0; top: calc(var(--topbar) + var(--safe-t)); z-index: 19; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  padding: 22px max(16px, calc((100vw - 1180px) / 2 + 16px)); background: var(--navy-800); color: #fff; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6);
  transform: translateY(-110%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
}
.drop-menu.open { transform: none; visibility: visible; }
.dm-col { display: grid; gap: 4px; align-content: start; }
.dm-col h4 { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mint-300); margin: 0 0 6px 12px; }
.dm-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; color: rgba(255, 255, 255, .85); font-weight: 700; text-align: left; transition: background .2s, color .2s; }
.dm-item:hover { background: rgba(255, 255, 255, .08); }
.dm-item.active { background: rgba(46, 196, 182, .2); color: var(--mint-200); }
.dm-item small { display: block; font-weight: 600; font-size: 12px; color: rgba(255, 255, 255, .55); }
.drop-menu .lang-switch { justify-self: start; margin: 0 0 8px 12px; background: rgba(255, 255, 255, .1); }
.drop-menu .lang-switch button { color: rgba(255, 255, 255, .7); }
.drop-menu .lang-switch button.active { background: #fff; color: var(--navy-900); }
.menu-shade { position: fixed; inset: 0; z-index: 18; background: rgba(6, 20, 40, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.menu-shade.open { opacity: 1; pointer-events: auto; }
.app-view { padding-bottom: calc(40px + var(--safe-b)); }
.save-bar { bottom: calc(12px + var(--safe-b)); }
.app-view > .card, .app-view > section { margin-top: 0; }
.vitals-grid + .chart-card { margin-top: 16px; }

/* ------------------------------------------------ landing logo visual */
.logo-orbit { position: relative; width: 380px; height: 380px; display: grid; place-items: center; animation: phone-in 1.1s var(--ease) .3s both; }
.orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(155, 231, 196, .35); }
.o1 { inset: 0; animation: spin 40s linear infinite; }
.o2 { inset: 42px; border-style: solid; border-color: rgba(46, 196, 182, .25); }
.o3 { inset: 84px; border-color: rgba(255, 255, 255, .14); animation: spin 28s linear infinite reverse; }
.logo-disc { width: 190px; height: 190px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 90px rgba(46, 196, 182, .35); animation: breathe 5s ease-in-out infinite; }
.logo-disc img { width: 150px; height: 150px; }
.orbit-dot { position: absolute; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--teal-600); box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.orbit-dot .ic { width: 22px; height: 22px; }
.d1 { top: 16px; left: calc(50% - 23px); }
.d2 { bottom: 56px; left: 6px; animation-delay: -2s; }
.d3 { bottom: 56px; right: 6px; animation-delay: -4s; }
.hero-visual { height: 520px; }
.fc1 { top: 30px; left: -20px; }
.fc2 { top: 240px; right: -30px; }
.fc3 { top: auto; bottom: 20px; left: 10px; }
@media (max-width: 760px) {
  .drop-menu { grid-template-columns: 1fr; gap: 14px; max-height: calc(100vh - var(--topbar) - var(--safe-t)); overflow-y: auto; }
  .top-add span { display: none; }
  .top-add { padding: 6px 10px; }
}
@media (max-width: 560px) {
  .hero-visual { height: 440px; transform: none; margin: 10px 0 0; }
  .logo-orbit { width: 290px; height: 290px; }
  .logo-disc { width: 150px; height: 150px; }
  .logo-disc img { width: 118px; height: 118px; }
  .o2 { inset: 32px; } .o3 { inset: 64px; }
  .fc1 { top: 0; left: 0; } .fc2 { top: 200px; right: 0; } .fc3 { bottom: 0; left: 4px; }
}
@media (max-width: 400px) { .topbar .brand-sm span { display: none; } }

/* ------------------------------------------------ full-width layout */
.app-view { max-width: none; }
@media (min-width: 1024px) { .app-view { padding: 26px clamp(24px, 3vw, 48px) 60px; } }
.ov-top { display: grid; gap: 14px; margin-bottom: 4px; }
.ov-top > .banner { margin: 0; }
.ov-bottom { display: grid; gap: 0 16px; margin-top: 16px; }
@media (min-width: 1200px) {
  .ov-top { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: stretch; }
  .ov-top > .banner { flex-direction: column; justify-content: center; padding: 22px; }
  .ov-top > .banner > .ic { width: 30px; height: 30px; }
  .vitals-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .ov-bottom:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ------------------------------------------------------- symptom map */
.map-grid { display: grid; gap: 16px; }
@media (min-width: 1200px) { .map-grid { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); align-items: start; } }
.map-grid > .card { margin: 0; }
.gt-legend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.gt-legend i { width: 18px; height: 8px; border-radius: 4px; }
.gt-legend span:first-child { margin-right: 4px; } .gt-legend span:last-child { margin-left: 4px; }
.sev-lo { background: linear-gradient(90deg, var(--teal-400), var(--mint-300)); }
.sev-mid { background: linear-gradient(90deg, #F2A33A, #F8C77E); }
.sev-hi { background: linear-gradient(90deg, var(--danger), #F38A8D); }
.gt { display: grid; gap: 4px; }
.gt-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); animation: view-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.gt-row:last-child { border-bottom: 0; }
.gt-axis { padding: 0 0 6px; border-bottom: 1px solid var(--line); animation: none; }
.gt-label b { display: block; font-size: 14.5px; }
.gt-label > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.gt-scale { position: relative; height: 18px; }
.gt-scale span { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.gt-scale span:first-child { transform: none; }
.gt-scale .gt-today-lbl { top: -2px; transform: translateX(-100%); color: var(--teal-700); background: var(--mint-100); padding: 1px 6px; border-radius: 6px; }
.gt-track { position: relative; height: 26px; border-radius: 13px; background: repeating-linear-gradient(90deg, var(--off-white) 0 calc(100% / 12 - 1px), var(--line-2) calc(100% / 12 - 1px) calc(100% / 12)); }
.gt-seg { position: absolute; top: 5px; height: 16px; border-radius: 8px; transform-origin: left; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + .2s); box-shadow: 0 2px 6px -2px rgba(11, 37, 69, .25); }
@keyframes grow { from { transform: scaleX(0); } }
.gt-today { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed rgba(14, 140, 140, .5); }
.gt-end { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.gt-end.ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-600); color: #fff; box-shadow: 0 0 0 3px #fff; animation: pop .4s var(--spring) 1s both; }
.gt-end.ok .ic { width: 13px; height: 13px; }
.gt-end.live { width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px #fff; }
.gt-end.live::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--danger); animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* -------------------------------------------------------- day calendar */
.days-sub { font-size: 13px; margin: -6px 0 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 2px; }
.cal-day { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-content: center; text-align: center; background: var(--off-white); color: var(--muted); font-size: 13px; transition: transform .2s var(--spring), box-shadow .2s; animation: pop .35s var(--spring) both; animation-delay: calc(var(--i) * 12ms); }
.cal-day.blank { background: transparent; animation: none; }
.cal-day b { font-weight: 800; line-height: 1; }
.cal-day small { font-size: 9.5px; font-weight: 700; opacity: .8; }
.cal-day em { position: absolute; top: 3px; left: 5px; font-style: normal; font-size: 9px; font-weight: 800; text-transform: uppercase; opacity: .75; }
.cal-day[data-day] { cursor: pointer; }
.cal-day[data-day]:hover { transform: scale(1.08); box-shadow: var(--shadow); z-index: 1; }
.cal-day.st-ok { background: var(--mint-200); color: var(--teal-700); }
.cal-day.st-warn { background: #FBD9A7; color: #8A4E00; }
.cal-day.st-danger { background: #F7B9BB; color: #9B1C1F; }
.cal-day.today { box-shadow: 0 0 0 2px var(--navy-900); }
.cal-sym { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #D9711C; box-shadow: 0 0 0 2px #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; }
.cal-legend .st-ok { background: var(--mint-200); } .cal-legend .st-warn { background: #FBD9A7; } .cal-legend .st-danger { background: #F7B9BB; } .cal-legend .st-none { background: var(--off-white); border: 1px solid var(--line); }
.cal-legend .cal-sym-lg { width: 8px; height: 8px; border-radius: 50%; background: #D9711C; }
@media (max-width: 640px) {
  .gt-row { grid-template-columns: 1fr; gap: 8px; }
  .gt-axis .gt-label { display: none; }
  .gt-legend span { display: none; }
  .cal { gap: 4px; }
  .cal-day { border-radius: 9px; font-size: 12px; }
}

/* ------------------------------------------------------------ compare */
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-bottom: 12px; }
.vs-pick { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius-lg); color: #fff; }
.vs-pick.a { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.vs-pick.b { background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); }
.vs-pick small { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.vs-pick select { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.vs-pick select option { color: var(--ink); }
.vs-badge { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--navy-900); background: var(--mint-200); box-shadow: 0 0 0 6px var(--off-white), var(--shadow); animation: pop .5s var(--spring) .2s both; }
.vs-summary { display: flex; align-items: center; gap: 8px; margin: 4px 2px 14px; font-weight: 700; color: var(--ink-2); }
.vs-summary .ic { color: var(--teal-500); }
.vs-list { padding: 6px 18px; }
.vs-row { display: grid; grid-template-columns: 1fr minmax(180px, 1.3fr) 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.vs-row:last-child { border-bottom: 0; }
.vs-val { display: grid; justify-items: center; text-align: center; }
.vs-val b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vs-val small { color: var(--muted); font-weight: 700; font-size: 12px; }
.vs-val.a b { color: var(--navy-800); }
.vs-val.b b { color: var(--teal-700); }
.vs-val.st-warn b { color: #B86A00; }
.vs-val.st-danger b { color: var(--danger); }
.vs-val.st-none b { color: var(--line); }
.vs-mid { display: grid; justify-items: center; gap: 6px; }
.vs-name { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.vs-bars { width: 100%; display: grid; gap: 3px; }
.vs-bars i { display: block; height: 6px; border-radius: 3px; transition: width .8s var(--ease); }
.vs-bars .bar-a { background: var(--navy-700); }
.vs-bars .bar-b { background: var(--teal-400); }

/* --------------------------------------------------------- milestones */
.ms-top { display: flex; align-items: center; gap: 20px; padding: 20px 24px; margin-bottom: 16px; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgba(46, 196, 182, .35), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.ms-top .ring-inner small { font-size: 13px; }
.ms-top-text { display: grid; gap: 4px; }
.ms-top-text b { font-size: 20px; }
.ms-top-text span { color: var(--mint-200); font-weight: 700; }
.ms-top-text small { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.ms-top-text small .ic { width: 14px; height: 14px; }
.route-card { padding: 34px 28px 18px; }
.route { position: relative; height: 44px; margin: 0 14px; }
.route-line { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.route-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--teal-500), var(--mint-300)); transition: width 1.4s var(--ease) .2s; }
.route-node { position: absolute; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--muted); border: 2px solid var(--line); animation: pop .4s var(--spring) both; animation-delay: calc(var(--i) * 70ms + .3s); }
.route-node .ic { width: 16px; height: 16px; }
.route-node.done { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.route-node.now { background: var(--warn); border-color: var(--warn); color: #fff; box-shadow: 0 0 0 5px rgba(232, 150, 44, .2); }
.route-me { position: absolute; top: -30px; transform: translateX(-50%); padding: 3px 9px; border-radius: 8px; background: var(--navy-900); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.route-me i { position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--navy-900); border-bottom: 0; }
.route-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ticket { display: flex; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); overflow: hidden; animation: view-in .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); transition: transform .25s var(--ease), box-shadow .25s; }
.ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ticket-stub { position: relative; flex: 0 0 92px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 14px 6px; background: var(--off-white); border-right: 2px dashed var(--line); color: var(--muted); }
.ticket-stub span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #fff; }
.ticket-stub span .ic { width: 18px; height: 18px; }
.ticket-stub b { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ticket-stub small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ticket.done .ticket-stub { background: var(--mint-100); color: var(--teal-700); }
.ticket.now .ticket-stub { background: var(--warn-bg); color: #A15C00; }
.ticket.now { border-color: #F7D9A8; box-shadow: 0 0 0 3px rgba(232, 150, 44, .15); }
.ticket-body { padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.ticket-body h3 { font-size: 16px; font-weight: 800; }
.ticket-body p { color: var(--ink-2); font-size: 14px; }
.ticket-body small { color: var(--muted); font-size: 12px; font-weight: 700; }
.ticket-state { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: var(--off-white); color: var(--muted); }
.ticket-state .ic { width: 13px; height: 13px; }
.ticket.done .ticket-state { background: var(--mint-100); color: var(--teal-700); }
.ticket.now .ticket-state { background: var(--warn-bg); color: #A15C00; }
.ticket.done h3, .ticket.done p { opacity: .75; }

/* -------------------------------------------------------------- guide */
.guide { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .guide { grid-template-columns: 280px minmax(0, 1fr); } }
.guide-list { display: grid; gap: 6px; }
.guide-list button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line-2); font-weight: 700; text-align: left; transition: border-color .2s, background .2s, transform .15s; }
.guide-list button > .ic:first-child { color: var(--teal-500); }
.guide-list button span { flex: 1; }
.guide-list .gl-arrow { width: 16px; height: 16px; color: var(--muted); opacity: 0; transition: opacity .2s, transform .2s; }
.guide-list button:hover .gl-arrow, .guide-list button.active .gl-arrow { opacity: 1; transform: translateX(2px); }
.guide-list button.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.guide-list button.active > .ic:first-child { color: var(--mint-300); }
.guide-list button.active .gl-arrow { color: var(--mint-300); }
@media (max-width: 899px) {
  .guide-list { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .guide-list button { flex: none; white-space: nowrap; padding: 9px 12px; }
  .guide-list .gl-arrow { display: none; }
}
.guide-panel { margin: 0; padding: 22px; min-height: 340px; }
.gd-head { display: flex; align-items: center; gap: 14px; }
.gd-head > div { flex: 1; }
.gd-head .v-icon { width: 48px; height: 48px; border-radius: 15px; }
.gd-head .v-icon .ic { width: 24px; height: 24px; }
.gd-head h2 { font-size: 22px; font-weight: 800; }
.gd-head p { color: var(--muted); font-size: 14px; }
.gd-range { margin: 16px 0 6px; font-size: 14px; color: var(--ink-2); }
.gauge { margin: 30px 6px 18px; }
.gauge-bar { position: relative; height: 14px; border-radius: 7px; background: var(--line-2); overflow: visible; }
.gauge-bar > i { position: absolute; top: 0; bottom: 0; }
.z-ok { background: var(--mint-300); }
.z-warn { background: #F8C77E; }
.z-danger { background: #F38A8D; }
.gauge-pin { position: absolute; top: -8px; bottom: -8px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--navy-900); animation: pop .5s var(--spring) .2s both; }
.gauge-pin b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 7px; background: var(--navy-900); color: #fff; font-size: 12.5px; white-space: nowrap; }
.gauge-marks { position: relative; height: 18px; margin-top: 6px; }
.gauge-marks span { position: absolute; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.gauge-lbl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: -2px; }
.scale-steps { display: flex; gap: 6px; margin: 22px 0 14px; flex-wrap: wrap; }
.scale-steps span { flex: 1; min-width: 80px; text-align: center; padding: 12px 6px; border-radius: 12px; font-weight: 700; font-size: 13.5px; background: var(--off-white); color: var(--muted); border: 2px solid transparent; }
.scale-steps .ok { background: var(--mint-100); }
.scale-steps .warn { background: var(--warn-bg); }
.scale-steps .danger { background: var(--danger-bg); }
.scale-steps .cur { border-color: var(--navy-900); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-trend { margin: 16px 0; }
.guide-trend p { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.guide-spark { width: 100%; height: 80px; }
.gd-tip { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--mint-50); border: 1px solid var(--mint-200); margin-top: 8px; }
.gd-tip > span { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--teal-500); color: #fff; }
.gd-tip > span .ic { width: 18px; height: 18px; }
.gd-tip p { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.urgent { margin-top: 18px; padding: 20px 22px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #FFF3F3, #FFF8F1); border: 1px solid #F6C2C4; }
.urgent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.urgent-head span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--danger); color: #fff; animation: wiggle 2.4s ease-in-out infinite; }
.urgent-head h3 { font-size: 17px; font-weight: 800; color: #9B1C1F; }
.urgent ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.urgent li { padding: 10px 12px 10px 30px; border-radius: 12px; background: #fff; position: relative; font-weight: 600; font-size: 14px; }
.urgent li::before { content: ""; position: absolute; left: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.urgent > p { margin-top: 10px; font-weight: 700; color: #9B1C1F; font-size: 13.5px; }
@media (max-width: 640px) {
  .vs-head { grid-template-columns: 1fr 1fr; }
  .vs-badge { display: none; }
  .vs-pick { padding: 12px; }
  .vs-pick select { font-size: 14px; }
  .vs-row { grid-template-columns: 1fr 1fr; grid-template-areas: "mid mid" "a b"; gap: 8px; }
  .vs-mid { grid-area: mid; }
  .vs-val.a { grid-area: a; }
  .vs-val.b { grid-area: b; }
  .vs-val b { font-size: 20px; }
  .ms-top { padding: 16px; gap: 14px; }
  .ms-top .ring { width: 96px !important; height: 96px !important; }
  .route-card { padding: 34px 14px 14px; }
  .route-node { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .route-node .ic { width: 13px; height: 13px; }
  .tickets { grid-template-columns: 1fr; }
}
