/* CHEEVA mockup-inspired patient experience. No clinical data fabricated. */
@media screen {
:root { --cheeva-teal:#0f5a50;--cheeva-gold:#bc9a58;--cheeva-cream:#faf4f0; }
body:not(.simple) { background:radial-gradient(ellipse 350px 240px at 95% 7%,rgba(228,221,244,.65),transparent),radial-gradient(ellipse 330px 240px at 0% 25%,rgba(246,217,222,.45),transparent),var(--bg); }
body:not(.simple) header.top { padding-top:calc(14px + env(safe-area-inset-top)); padding-bottom:12px; }
body:not(.simple) .wm { letter-spacing:.12em;font-size:18px; }
body:not(.simple) .wm-mark {width:31px;height:31px;}
body:not(.simple) main {padding-inline:16px;}
body:not(.simple) #view-home .dash-head { border-radius:25px; padding:22px 18px 24px; margin:3px 0 16px; color:white; background:linear-gradient(145deg,rgba(8,61,56,.95),rgba(15,90,80,.84)),radial-gradient(circle at 80% 20%,#b5a5c9,transparent);box-shadow:0 18px 35px -20px rgba(15,90,80,.55);display:block; }
body:not(.simple) #view-home .dash-head h1 {color:#fff;font-size:29px;line-height:1.3;}
body:not(.simple) #view-home .dash-head .muted {color:#e0eae4;}
body:not(.simple) #view-home .dash-head .dash-range {margin-top:18px;background:rgba(255,255,255,.14);border-radius:999px;padding:4px;display:flex;width:fit-content;}
body:not(.simple) #view-home .dash-head .dash-range button {color:white;border-radius:999px;border:0;background:transparent;min-height:34px;padding:5px 13px;}
body:not(.simple) #view-home .dash-head .dash-range button[aria-pressed=true] {background:white;color:#0f5a50;box-shadow:0 3px 12px #00251e44;}
body:not(.simple) .cv-shortcuts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 18px;}
body:not(.simple) .cv-shortcut {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:88px;border-radius:18px;border:1px solid var(--cv-line);background:var(--card);box-shadow:var(--cv-shadow);padding:10px 3px;color:var(--ink);font-size:12px;font-weight:600;line-height:1.3;}
body:not(.simple) .cv-shortcut .ic {width:24px;height:24px;color:#0f5a50;}
body:not(.simple) .cv-shortcut:nth-child(2) .ic {color:#6e5fa3;}
body:not(.simple) .cv-shortcut:nth-child(3) .ic {color:#b8735f;}
body:not(.simple) .cv-shortcut:nth-child(4) .ic {color:#bc9a58;}
body:not(.simple) #dash-cards .card,body:not(.simple) #dash-cards .dash-card {border-radius:22px!important;overflow:hidden;}
body:not(.simple) #view-home .card {border-radius:23px!important;}
body:not(.simple) #view-home .tiles {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
body:not(.simple) #view-home .tile {background:var(--card)!important;border:1px solid var(--cv-line)!important;min-height:100px;padding:15px!important;}
body:not(.simple) #view-home .tile:nth-child(4n+2) .ic {color:#8d79b7!important;}
body:not(.simple) #view-home .tile:nth-child(4n+3) .ic {color:#c78677!important;}
body:not(.simple) #view-home .tile:nth-child(4n+4) .ic {color:#bc9a58!important;}
body:not(.simple) nav.bottom {border-top:1px solid var(--cv-line)!important;box-shadow:0 -9px 30px rgba(40,30,40,.08);}
body:not(.simple) nav.bottom button {font-size:12px;}
body:not(.simple) nav.bottom button[aria-current=page] {color:var(--cv-brand)!important;font-weight:700;}
body:not(.simple) .card h2 {letter-spacing:-.02em;}
body:not(.simple) #view-guide .card,body:not(.simple) #view-summary .card {border-radius:23px!important;}
body:not(.simple) .cv-knowledge-banner {display:flex;align-items:center;gap:16px;padding:18px;border-radius:22px;background:linear-gradient(120deg,#0f5a50,#287b70);color:white;margin:10px 0 18px;}
body:not(.simple) .cv-knowledge-banner img {width:60px;height:60px;object-fit:contain;}
body:not(.simple) .cv-knowledge-banner strong {font-size:19px;}
body:not(.simple) .cv-knowledge-banner small {display:block;color:#dceee9;}
:root[data-theme=dark] body:not(.simple) #view-home .dash-head {background:linear-gradient(140deg,#173f43,#372d55);}
:root[data-theme=dark] body:not(.simple) .cv-shortcut .ic {color:#ff7ad9;}
:root[data-theme=dark] body:not(.simple) .cv-knowledge-banner {background:linear-gradient(120deg,#173f43,#372d55);}
@media(max-width:360px){body:not(.simple) .cv-shortcuts{gap:5px;}body:not(.simple) .cv-shortcut{font-size:11px;}}
}
@media(prefers-reduced-motion:reduce){.cv-shortcut{transition:none!important;}}

/* Knowledge hub: functional links to existing vetted guides */
@media screen {
body:not(.simple) .cv-knowledge-hero {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 14px;padding:22px 20px;border-radius:25px;color:#fff;background:linear-gradient(125deg,#0b5047,#26786d 70%,#6e5fa3);box-shadow:0 14px 30px -20px #0f5a50;}
body:not(.simple) .cv-knowledge-hero h2 {font-size:26px;margin:5px 0;}
body:not(.simple) .cv-knowledge-hero p {font-size:13px;line-height:1.5;margin:0;color:#e6f4f1;}
body:not(.simple) .cv-eyebrow {font:700 10px system-ui,sans-serif;letter-spacing:.16em;color:#e2c991;}
body:not(.simple) .cv-knowledge-hero img {width:92px;height:92px;object-fit:contain;}
body:not(.simple) .cv-knowledge-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px;}
body:not(.simple) .cv-knowledge-tile {display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:17px;border:1px solid var(--cv-line);border-radius:21px;background:var(--card);box-shadow:var(--cv-shadow);min-height:144px;}
body:not(.simple) .cv-knowledge-tile img {width:40px;height:40px;object-fit:contain;}
body:not(.simple) .cv-knowledge-tile b {font-size:16px;}
body:not(.simple) .cv-knowledge-tile small {color:var(--muted);font-size:12px;}
body:not(.simple) .cv-knowledge-tile:active {transform:scale(.985);}
body:not(.simple) .guide-nav {border-radius:18px;overflow:hidden;}
:root[data-theme=dark] body:not(.simple) .cv-knowledge-hero {background:linear-gradient(125deg,#173f43,#372d55);}
}

/* CHEEVA assistant, deliberately navigation-only until an AI backend is configured */
@media screen {
body:not(.simple) .cv-ai-head {text-align:center;position:relative;overflow:hidden;padding:32px 18px 35px;border-radius:26px;background:radial-gradient(circle at 75% 30%,rgba(223,197,229,.65),transparent 45%),linear-gradient(145deg,#fff8f4,#f0e8f7);color:#182332;}
body:not(.simple) .cv-ai-lotus {font-size:58px;line-height:1.2;color:#bc9a58;text-shadow:0 6px 24px #b795bd;}
body:not(.simple) .cv-ai-head h1 {font-size:26px;margin:8px 0;}
body:not(.simple) .cv-ai-head p {font-size:14px;line-height:1.6;margin:0;color:#5a6573;}
body:not(.simple) .cv-ai-conversation {padding:22px 8px;}
body:not(.simple) .cv-ai-bubble {max-width:88%;padding:17px 19px;border-radius:22px 22px 22px 5px;background:var(--card);border:1px solid var(--cv-line);box-shadow:var(--cv-shadow);line-height:1.6;}
body:not(.simple) .cv-ai-prompts {display:grid;gap:10px;}
body:not(.simple) .cv-ai-prompts button {display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:55px;padding:13px 17px;border:1px solid var(--cv-line);border-radius:19px;background:var(--card);box-shadow:var(--cv-shadow);font-weight:600;}
body:not(.simple) .cv-ai-prompts button span {font-size:22px;color:var(--cv-brand);}
body:not(.simple) .cv-ai-disclaimer {margin:20px 5px;color:var(--muted);font-size:12px;line-height:1.7;}
:root[data-theme=dark] body:not(.simple) .cv-ai-head {background:linear-gradient(145deg,#153c3b,#332747);color:#fff;}
:root[data-theme=dark] body:not(.simple) .cv-ai-head p {color:#e0dce8;}
/* Bring existing data-driven dashboard chart cards closer to the reference. */
body:not(.simple) #dash-cards {gap:12px;}
body:not(.simple) #dash-cards .dcard {border-radius:21px!important;box-shadow:var(--cv-shadow);border:1px solid var(--cv-line);padding:18px!important;overflow:hidden;min-height:138px;}
body:not(.simple) #dash-cards .dcard:first-child {background:linear-gradient(150deg,#0f5a50,#247a6d)!important;color:#fff!important;grid-column:1/-1;min-height:175px;}
body:not(.simple) #dash-cards .dcard:first-child :is(small,.v,.st,.v i) {color:#fff!important;}
body:not(.simple) #dash-cards .dcard:first-child .v {font-size:36px;}
body:not(.simple) #dash-cards .dcard:first-child svg {opacity:.9;}
body:not(.simple) #dash-cards .dcard .v {font-variant-numeric:tabular-nums;}
body:not(.simple) #dash-cards .dcard .st {font-size:12px;}
}

/* Respect disabled modules, simple mode and print. */
.cv-knowledge-tile[disabled] {display:none!important;}
@media print {
 .cv-shortcuts,.cv-knowledge-hero,.cv-knowledge-grid,.cv-ai-head,.cv-ai-prompts,.cv-ai-disclaimer {display:none!important;}
}
@media (prefers-reduced-motion:reduce) {
 .cv-knowledge-tile,.cv-ai-prompts button {transition:none!important;animation:none!important;}
}

/* Seed of Wellbeing identity: shared mark, same Lotus Dusk palette */
body:not(.simple) .cv-home-brand{display:flex;align-items:center;gap:10px;padding:8px 2px 15px;}
body:not(.simple) .cv-home-brand img{display:block;width:44px;height:44px;object-fit:contain;flex-shrink:0;}
body:not(.simple) .cv-home-brand strong{display:block;color:var(--ink);font-size:20px;letter-spacing:.13em;line-height:1.2;}
body:not(.simple) .cv-home-brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.025em;}
body:not(.simple) .cv-ai-lotus img{display:block;width:76px;height:76px;margin:auto;object-fit:contain;}

:root:not([data-theme="dark"]) body:not(.simple) .cv-eyebrow{color:#6f5420;}
