/* SALVUS — composition and palette from the user supplied four-phone reference. */
.ref-app{--ink:#122d42;--teal:#008b99;--muted:#617c96;--paper:#f4f8fc;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.4;background:#dfe9ee;min-height:100vh;padding:0}.ref-app *{box-sizing:border-box}.ref-app button,.ref-dialog button{font:inherit;cursor:pointer}.ref-app button{letter-spacing:normal}.ref-app a{color:inherit;text-decoration:none}.ref-app h1,.ref-app h2,.ref-app h3,.ref-app p{margin:0;letter-spacing:normal}.ref-app h2{font-size:15px;font-weight:650;line-height:1.3}.ref-app h3{font-size:13px;font-weight:600}.ref-app button:focus-visible,.ref-app a:focus-visible,.ref-dialog :focus-visible{outline:3px solid #009ca8;outline-offset:3px}.ref-device{position:relative;width:100%;max-width:480px;margin:auto;min-height:100vh;background:linear-gradient(145deg,#102733 0,#264552 210px,#e8f0f5 450px,#f2f6fb 100%);padding-bottom:76px;box-shadow:0 10px 60px #133a4515}.ref-demo{height:24px;display:flex;align-items:center;justify-content:center;font-size:8px;letter-spacing:1.15px;color:#c5d9e2;background:#112a36}.ref-main{padding:22px 16px 20px;min-height:calc(100vh - 100px);outline:none}.ref-main.ref-enter{animation:ref-enter .4s ease both}.ref-heading{color:#fff;display:flex;align-items:start;justify-content:space-between;margin:4px 0 18px}.ref-heading h1{font-size:24px;line-height:1.25;font-weight:600}.ref-heading p{font-size:12px;color:#c7d7e0;margin-top:4px}.ref-heading>a,.ref-heading>button{display:grid;place-items:center;width:36px;height:36px;color:#d8e7ee;background:transparent;border:0}.ref-heading .ui-icon{width:20px;height:20px}.ref-tabs{background:#a4c4d719;display:flex;gap:3px;border-radius:30px;padding:4px;margin-bottom:18px;box-shadow:inset 0 0 8px #b3d4e50b}.ref-tabs button{flex:1;border:0;background:none;color:#e2edf4;font-size:11px;border-radius:24px;min-height:33px;padding:6px 4px;transition:background .2s,color .2s;white-space:nowrap}.ref-tabs .selected{background:linear-gradient(#fff,#e5edf5);color:#20485d;box-shadow:0 1px 9px #061a2433}.ref-stack{display:grid;gap:14px}.ref-card{background:linear-gradient(120deg,#fff,#f3f8ff);border:1px solid #ffffffba;border-radius:20px;padding:15px;box-shadow:0 5px 20px #254e6b06;min-width:0}.ref-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.ref-section-title>span,.ref-section-title>button{color:var(--muted);font-size:10px}.ref-section-title button{border:0;background:none;display:flex;align-items:center;gap:2px;padding:4px 0;min-height:28px}.ref-section-title .ui-icon{width:12px;height:12px}.ref-section-title p{font-size:12px;color:var(--muted);margin-top:3px}.ref-caption{font-size:9px!important;color:var(--muted);line-height:1.5;margin-top:9px!important}.ref-pill{display:inline-block;color:#008796;background:#d9f0f2;border-radius:20px;padding:4px 9px;font-size:10px;white-space:nowrap}.ref-primary{border:0;border-radius:24px;background:#087f8a;color:white!important;padding:12px 18px;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;min-height:44px}.ref-bottom{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;height:72px;padding:8px 14px max(8px,env(safe-area-inset-bottom));background:#f8fbfdeb;backdrop-filter:blur(18px);border-top:1px solid #ffffff;display:flex;align-items:center;justify-content:space-around;box-shadow:0 -5px 22px #224d6510}.ref-bottom a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9px;min-height:46px;color:#657f98}.ref-bottom a[aria-current]{color:#008593;font-weight:650}.ref-bottom .ui-icon{width:20px;height:20px}.ref-add{display:grid;place-items:center;border:1px solid #fbffff79;background:linear-gradient(140deg,#346b8c,#184960);color:#fff;width:44px;height:44px;border-radius:50%;box-shadow:0 3px 12px #194f7130;margin:0 9px}.ref-add .ui-icon{width:23px;height:23px}.ref-wordmark{font-family:'Didot','Bodoni MT','Times New Roman',serif;font-weight:400;letter-spacing:6px!important;font-size:31px;line-height:1.2}.ref-desktop{display:none}.ref-route-home{background:#edf3f8}.ref-route-home .ref-main{padding:0}.ref-home-hero{height:330px;padding:22px 24px;background:linear-gradient(180deg,#e8f2fb55,transparent 70%),url('/assets/salvus-lake.png') center 48%/cover}.ref-brand-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.ref-brand-row>a:last-child{position:relative;display:grid;place-items:center;width:34px;height:34px}.ref-brand-row .ui-icon{width:20px;height:20px}.ref-notification{width:6px;height:6px;background:#00a6a8;border:1px solid white;border-radius:100%;position:absolute;top:4px;right:4px}.ref-greeting{display:flex;gap:13px;align-items:flex-start}.ref-initial-avatar{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#456b71;color:#fff!important;font-family:Georgia,serif;font-size:24px;box-shadow:0 1px 9px #21435220}.ref-greeting h1{font-size:19px;font-weight:400;line-height:1.2}.ref-greeting strong{font-weight:650}.ref-greeting p{font-size:11px;line-height:1.4;margin-top:7px;color:#2b475e}.ref-home-content{margin:-74px 14px 0;position:relative;display:grid;gap:11px;padding-bottom:18px}.ref-wellness{border-radius:29px 29px 20px 20px;border:1px solid #efffff78;background:linear-gradient(180deg,#0c293ad9 0%,#203e4bd9 38%,#e5eef5eb 65%,#e9f1f7 100%);backdrop-filter:blur(12px);padding:13px 11px 6px;box-shadow:0 4px 16px #13333d13}.ref-score-row{display:flex;gap:12px;align-items:center;position:relative;color:white;min-height:99px;padding:0 4px 10px}.ref-score-row h2{font-size:12px;font-weight:500;max-width:115px}.ref-score-label{font-size:9px;color:#b4ced8}.ref-score-row p{font-size:11px;color:#8bf2c9;margin-top:11px!important;display:flex;align-items:center;gap:4px;white-space:nowrap}.ref-score-row p .ui-icon{width:15px;height:15px}.ref-ring{width:65px;height:65px;flex:0 0 65px;padding:3px;border-radius:50%;background:conic-gradient(var(--ring-color) var(--ring-value),#dfeaf0 0);transform:rotate(-15deg);display:grid;place-items:center}.ref-ring>div{width:100%;height:100%;border-radius:100%;background:#f6faff;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(15deg)}.ref-ring b{font-size:14px;font-weight:600;white-space:nowrap}.ref-ring small{font-size:9px;margin-top:1px}.ref-ring.score{width:84px;height:84px;flex-basis:84px;padding:5px;background:conic-gradient(#9feef0 72%,#2da9b1 92%,#536f7c 0)}.ref-ring.score>div{background:#28444f}.ref-ring.score b{font-size:33px;font-weight:500;line-height:1}.ref-ring.score small{font-size:11px;color:#c9dce3}.ref-score-row>.ref-curve{width:80px;height:65px;align-self:end;margin-left:auto;filter:drop-shadow(0 0 5px #a5ffff85)}.ref-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ref-metric{display:flex;align-items:center;gap:9px;text-align:left;padding:12px 9px;border:1px solid white;background:linear-gradient(120deg,#fff,#edf5ff);border-radius:18px;min-width:0;min-height:72px;color:#152d43}.ref-metric small{font-size:9px;color:#59758f;display:block;line-height:1.2;margin-bottom:4px}.ref-metric b{font-size:14px;display:block;white-space:nowrap}.ref-metric em{font-style:normal;font-weight:500;font-size:10px}.metric-icon{width:34px;height:34px;border-radius:100%;display:grid;place-items:center;flex:0 0 34px}.metric-icon .ui-icon{width:22px;height:22px}.metric-icon.pink{background:#ffeff0;color:#ff536a}.metric-icon.blue{background:#e6eeff;color:#5586ff}.metric-icon.mint{background:#dff9f2;color:#00ac91}.metric-icon.cyan{background:#ddf4f6;color:#00a0ad}.ref-demo-info{border:0;background:none;color:#597c8c;font-size:9px!important;display:block;text-align:center;width:100%;padding:6px 2px;min-height:25px}.ref-wellness .ref-demo-info{font-size:8px!important}.ref-trends{padding:14px 12px 9px}.ref-trends .ref-section-title{margin-bottom:2px}.multi-curves{position:relative;height:109px;background:repeating-linear-gradient(0deg,transparent 0 26px,#e5eef5 27px 28px)}.multi-curves .ref-curve{position:absolute;inset:0;width:100%;height:100%}.multi-curves .ref-curve path[fill^="url"]{display:none}.ref-legend{display:flex;justify-content:space-around;font-size:9px;gap:6px;margin-top:6px}.ref-legend span{display:flex;gap:5px;align-items:center}.ref-legend i{width:6px;height:6px;border-radius:50%}.ref-trends .ref-caption{text-align:center;font-size:8px!important}.ref-live-link{display:flex;align-items:center;gap:11px;padding:12px 13px;background:#ffffffc7;border:1px solid white;border-radius:16px;text-align:left;width:100%;color:#214258}.ref-live-link>span{flex:1}.ref-live-link b{font-size:12px;display:block}.ref-live-link small{font-size:10px;color:#648096;display:block;margin-top:2px}.ref-live-link>.ui-icon{color:#0096a3;width:21px;height:21px}.ref-timeline{display:flex;justify-content:space-between;position:relative;padding:6px 10px 25px;color:#cce4ef}.ref-timeline:before{content:'';position:absolute;top:12px;left:20px;right:20px;height:1px;background:linear-gradient(90deg,#4eb8cd,#79c5ce)}.ref-timeline a{display:flex;align-items:center;flex-direction:column;gap:10px;font-size:10px;position:relative}.ref-timeline i{width:12px;height:12px;border-radius:50%;background:#a3dce4;border:3px solid #4c95a7;box-shadow:0 0 8px #b6eff340}.ref-timeline a:last-child i{background:#84ffed;width:15px;height:15px;margin-top:-1px;border-color:#3fb0b7}.ref-progress{position:relative;padding-bottom:7px}.ref-progress .ref-section-title>span{font-size:8px}.ref-curve{display:block;width:100%;height:auto;overflow:visible}.chart-grid{stroke:#e4edf3;stroke-width:.6;fill:none}.ref-progress-badge{position:absolute;right:25px;top:52px;border-radius:25px;background:#008b9a;color:white;padding:4px 11px;font-size:16px;box-shadow:0 3px 10px #05adc133}.ref-progress-badge small{font-size:10px}.ref-chart-labels{display:flex;justify-content:space-between;margin:0 9px 0 12px;font-size:9px;color:#56738d}.ref-compare-dates{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:8px 13px 0;font-size:11px;color:#008696}.ref-compare-grid{margin-top:4px;background:linear-gradient(90deg,#eaf2f977 0 47%,transparent 47% 53%,#eaf2f977 53%);border-radius:18px;padding:4px 12px 8px}.ref-compare-row{display:grid;grid-template-columns:1fr 20px 1fr;gap:8px;padding:6px 0}.ref-compare-row>div:last-of-type{padding-left:8px}.ref-compare-row b{display:block;font-size:18px;line-height:1.15;font-weight:600}.ref-compare-row b small{font-size:10px;font-weight:400}.ref-compare-row>div:last-of-type b{color:#008f9c}.ref-compare-row span:not(.ref-compare-arrow){display:block;font-size:10px;color:#627d94;margin-top:3px}.ref-compare-arrow{display:grid;place-items:center;color:#54869c}.ref-compare-arrow .ui-icon{width:15px;height:15px}.ref-compare-row>p{grid-column:1/-1;font-size:10px;color:#885936}.ref-record-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ref-record-links>a,.ref-record-links>button{border:0;display:flex;align-items:center;gap:8px;background:linear-gradient(120deg,#fff,#eff6fc);border-radius:16px;padding:13px 9px;text-align:left;color:var(--ink)}.ref-record-links>*>span{display:grid;place-items:center;color:#008d9b;background:#e0f4f7;border-radius:12px;width:35px;height:40px;flex-shrink:0}.ref-record-links b,.ref-record-links small,.ref-record-links em{display:block}.ref-record-links b{font-size:11px}.ref-record-links small{font-size:9px;color:#617e96;margin-top:3px}.ref-record-links em{font-style:normal;font-size:9px;color:#00949d}.ref-appointment{padding:17px 15px}.ref-calendar-icon{color:white;background:#008b98;border-radius:10px;padding:6px;display:grid;place-items:center}.ref-calendar-icon .ui-icon{width:21px;height:21px}.ref-doctor-row{display:flex;align-items:center;gap:13px;margin:15px 0}.ref-doctor-row>img{width:72px;height:72px;border-radius:100%;object-fit:cover;object-position:50% 28%}.ref-doctor-row>div{flex:1}.ref-doctor-row h3{font-size:13px;margin:6px 0 2px}.ref-doctor-row p,.ref-doctor-row small{font-size:10px;color:#617a90}.ref-doctor-row>.ui-icon{width:14px;color:#438198}.ref-appointment-actions{display:flex;padding-top:4px}.ref-appointment-actions button{border:0;border-right:1px solid #e1eaf0;background:none;display:flex;flex:1;align-items:center;flex-direction:column;gap:7px;font-size:10px;color:#295267;padding:4px 1px}.ref-appointment-actions button:last-child{border:0}.ref-appointment-actions .ui-icon{box-sizing:content-box;width:22px;height:22px;padding:8px;background:#fff;border-radius:12px;box-shadow:0 3px 15px #24496508}.ref-appointment-actions button:first-child .ui-icon{background:#008e99;color:white}.ref-team{padding:6px 7px}.ref-team-members{display:grid;grid-template-columns:1fr 1fr 1fr 45px;gap:7px}.ref-team-members>button{padding:0;border:0;background:none;text-align:center;color:#244258;display:flex;align-items:center;flex-direction:column}.ref-team-members img{width:56px;height:56px;object-fit:cover;border-radius:100%;border:2px solid white;margin-bottom:7px}.ref-team-members b{font-size:9px;font-weight:600;white-space:nowrap}.ref-team-members small{font-size:8px;color:#57758d;margin-top:3px}.ref-team-add{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#f6fbff;margin:6px 0 8px}.ref-team .ref-caption{text-align:center;font-size:8px!important}.ref-doctor-cta{border-radius:18px;background:#779ca7;overflow:hidden;position:relative;min-height:175px;color:white;padding:18px}.ref-doctor-cta>div{position:relative;z-index:1;width:62%}.ref-doctor-cta h2{font-size:19px;font-weight:500;max-width:170px}.ref-doctor-cta p{font-size:11px;margin:6px 0 13px}.ref-doctor-cta button{border:0;border-radius:20px;color:#007987;background:#f6ffff;padding:9px 17px;font-size:11px}.ref-doctor-cta small{display:block;font-size:8px;margin-top:5px}.ref-doctor-cta img{position:absolute;right:-42px;bottom:-25px;width:230px;height:230px;object-fit:cover;mix-blend-mode:normal;mask-image:linear-gradient(90deg,transparent,#000 24%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 24%)}.ref-meal-plan{padding:14px 12px 13px}.ref-meal-plan .ref-section-title h2{font-size:17px}.ref-meal-plan .ref-section-title p{font-size:11px}.ref-days{display:flex;justify-content:space-between;gap:5px;margin:14px 0 12px}.ref-days button{background:#eaf1f8;border:0;width:36px;min-height:34px;border-radius:18px;padding:5px 3px;font-size:10px;color:#57758d}.ref-days .selected{background:#319ba8;color:white}.ref-food-hero{position:relative;width:100%;height:247px;padding:0;border:0;border-radius:18px;overflow:hidden;display:block;text-align:left;background:#574834;color:white}.ref-food-hero>img{width:100%;height:100%;object-fit:cover;object-position:center 43%;transition:transform .5s}.ref-food-hero:hover>img{transform:scale(1.025)}.ref-food-copy{position:absolute;bottom:0;left:0;right:0;padding:45px 12px 12px;background:linear-gradient(transparent,#1e1c14e8)}.ref-food-copy>b{display:block;font-size:16px;font-weight:550;line-height:1.2}.ref-food-copy>small{display:block;font-size:10px;margin:3px 0 9px;color:#e2e7da}.ref-food-chips{display:flex;gap:6px}.ref-food-chips i{font-style:normal;font-size:9px;background:#c3cdc637;border:1px solid #ffffff18;padding:4px 9px;border-radius:16px;backdrop-filter:blur(10px)}.ref-goals-heading{margin:10px 0 7px}.ref-goals-heading h3{font-size:11px}.ref-macros{display:flex;justify-content:space-between;gap:5px}.ref-macros .ref-ring{width:66px;height:66px;flex-basis:66px}.ref-recommended{padding:13px 10px 9px}.ref-recommended .ref-section-title h2{font-size:12px}.ref-recommended .ref-section-title{gap:3px}.ref-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ref-product-grid article{background:#ffffffc9;border-radius:14px;padding:6px;display:grid;grid-template-columns:32px 1fr;align-items:center;gap:2px;box-shadow:0 5px 11px #30526a05;min-width:0}.ref-product-grid img{width:32px;height:62px;object-fit:contain}.ref-product-grid h3{font-size:9px;line-height:1.3}.ref-product-grid small{font-size:7px;color:#5c7891;display:block;margin:3px 0}.ref-product-grid article>div>span{font-size:8px;display:block}.ref-product-grid button{grid-column:1/-1;color:#008c98;border:0;border-radius:12px;background:#cfeef0;display:flex;align-items:center;justify-content:center;gap:3px;padding:7px 2px;font-size:10px;min-height:32px;margin-top:4px}.ref-product-grid .ui-icon{width:12px;height:12px}.ref-recommended .ref-caption{text-align:center;font-size:8px!important}.ref-cart-link{cursor:pointer}.ref-more-link{border:0;background:none;color:#087f8d;display:flex;align-items:center;justify-content:center;gap:10px;font-size:11px!important;padding:9px}.ref-more-link .ui-icon{width:16px}.ref-legacy{background:#edf3f8;border-radius:18px;padding:13px;color:var(--ink);min-width:0}.ref-legacy .page-heading{margin-bottom:20px}.ref-legacy .page-heading h1{font-size:24px}.ref-legacy .page-heading p{font-size:12px}.ref-legacy .columns,.ref-legacy .nutrition-layout,.ref-legacy .plan-layout{display:block}.ref-legacy .card{margin-bottom:15px;padding:14px}.ref-legacy .series-summary{grid-template-columns:1fr 1fr}.ref-legacy .filters{display:flex;flex-direction:column}.ref-legacy .filters label{width:100%}.ref-legacy .filters select{max-width:100%;width:100%}.ref-legacy .evolution-controls{flex-direction:column;align-items:stretch}.ref-legacy .metric-tabs{flex-wrap:wrap}.ref-legacy .comparison-grid{grid-template-columns:1fr}.ref-legacy .page-heading{display:block}.ref-legacy .meal-list{display:block}.ref-legacy .meal-card{margin-bottom:10px}.ref-legacy .shopping-sidebar{position:static}.ref-legacy .chart svg{max-width:100%}.ref-legacy h2{font-size:18px}.ref-legacy .shopping-grid{grid-template-columns:1fr}.ref-legacy .nutrition-note{display:none}.ref-route-plan .ref-main,.ref-route-profile .ref-main,.ref-route-report .ref-main{background:#eef4f8}.ref-route-plan .page-heading h1,.ref-route-profile .page-heading h1,.ref-route-report .page-heading h1{font-size:27px}.ref-route-plan .plan-layout,.ref-route-plan .columns{display:block}.ref-route-plan .card,.ref-route-profile .card{margin-bottom:14px}.ref-route-report .filters{display:flex;flex-direction:column}.ref-route-report .report{padding:14px}.ref-dialog{border:1px solid #fff;border-radius:24px;padding:22px;max-width:420px;width:calc(100% - 28px);max-height:85dvh;background:#f7fbfe;color:#183b4e;box-shadow:0 20px 80px #001d4055}.ref-dialog::backdrop{background:#0b233e7a;backdrop-filter:blur(6px)}.ref-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.ref-dialog-head h2{font-size:20px;line-height:1.25;margin:0}.ref-dialog-head button{display:grid;place-items:center;flex:0 0 36px;height:36px;border:0;border-radius:50%;background:#e4eef5;color:#1d5064}.ref-dialog p{font-size:13px;line-height:1.65;color:#526f82}.ref-dialog label{display:grid;gap:6px;font-size:12px;margin:14px 0}.ref-dialog input,.ref-dialog select{font:inherit;min-height:44px;border:1px solid #ccdce5;background:white;border-radius:12px;padding:10px;color:#203f52;width:100%}.ref-quick-links{display:grid;gap:7px}.ref-quick-links a{display:flex;align-items:center;gap:11px;padding:14px 8px;border-bottom:1px solid #e4edf2;color:#235166;text-decoration:none;font-size:14px}.ref-quick-links a>.ui-icon:last-child{margin-left:auto;width:15px}.ref-recipe-preview{width:100%;border-radius:16px}.ref-video-preview{display:block;width:100%;max-height:270px;object-fit:cover;border-radius:18px}.ref-dialog .maral-cart{position:static;border:0;padding:0;box-shadow:none}.ref-dialog .ref-team{font-size:12px}.ref-dialog .ref-team-members b{white-space:normal}.ref-dialog .ref-team-members img{width:50px;height:50px}.ref-main>.error-card{background:white}.motion-reduced *{animation:none!important;transition:none!important;scroll-behavior:auto!important}@keyframes ref-enter{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.ref-app *,.ref-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:900px){.ref-app{padding:24px 0 24px 230px;min-height:100vh;background:radial-gradient(ellipse at top,#f6fbff,#dbe7ed 80%)}.ref-desktop{position:fixed;display:flex;flex-direction:column;top:0;left:0;bottom:0;width:230px;padding:34px 27px;background:#f8fbfcd9;border-right:1px solid white}.ref-desktop .ref-wordmark{font-size:26px;letter-spacing:5px!important}.ref-desktop>p{font-size:10px;color:#658193;margin:12px 0 30px}.ref-desktop nav{display:flex;flex-direction:column;gap:7px}.ref-desktop nav a{display:flex;gap:13px;align-items:center;padding:12px 13px;font-size:13px;border-radius:14px;color:#4c7086}.ref-desktop nav a[aria-current]{background:#d9eff0;color:#007d8b}.ref-desktop .ref-add{display:none}.ref-desktop-links{display:flex;flex-direction:column;border-top:1px solid #dce7ed;margin-top:24px;padding:20px 13px;gap:15px;font-size:11px;color:#618093}.ref-desktop .ref-desktop-account{margin:auto 0 0;padding:15px 12px 0;font-size:12px;border-top:1px solid #dce7ed;color:#2d5468}.ref-desktop-account small{font-size:10px;display:block;margin-top:5px}.ref-device{border-radius:24px;overflow:hidden;min-height:calc(100vh - 48px);padding-bottom:76px;border:1px solid #fff;box-shadow:0 18px 65px #153c5124}.ref-bottom{left:calc(50% + 115px);bottom:24px;border-radius:0 0 24px 24px;max-width:478px}.ref-main{min-height:calc(100vh - 148px)}.ref-route-home .ref-home-hero{height:350px}.ref-route-home .ref-home-content{margin-top:-80px}.ref-route-home .ref-score-row{min-height:108px}.ref-route-home .multi-curves{height:125px}}@media(max-width:360px){.ref-main{padding-left:10px;padding-right:10px}.ref-home-content{margin-left:10px;margin-right:10px}.ref-score-row{gap:8px}.ref-score-row h2{font-size:11px}.ref-score-row>.ref-curve{width:55px}.ref-metric{gap:6px;padding:11px 7px}.metric-icon{width:28px;height:28px;flex-basis:28px}.ref-metric b{font-size:12px}.ref-ring.score{width:74px;height:74px;flex-basis:74px}.ref-food-hero{height:225px}.ref-product-grid{gap:5px}.ref-product-grid article{grid-template-columns:25px 1fr;padding:4px}.ref-product-grid img{width:25px}.ref-team-members b{font-size:8px}.ref-macros .ref-ring{width:60px;height:60px;flex-basis:60px}.ref-ring b{font-size:13px}}
.ref-progress .ref-curve{height:100px}.ref-progress .ref-demo-info{font-size:8px!important;padding:3px;min-height:20px}.ref-progress .ref-section-title{margin-bottom:2px}.ref-timeline{padding-bottom:15px}.ref-comparison .ref-section-title{margin-bottom:3px}.ref-compare-row{padding:4px 0;gap:3px 8px}.ref-compare-row b{font-size:17px}.ref-compare-row>p{line-height:1.2;font-size:9px}.ref-compare-row span:not(.ref-compare-arrow){font-size:9px;margin-top:2px}.ref-comparison .ref-caption{font-size:8px!important;margin-top:4px!important}.ref-compare-dates{padding-top:3px}.ref-legend i{display:inline-block;flex:0 0 6px}
.ref-ring{--ring-color:#00aaa9;--ring-value:85%}.ref-macros>.ref-ring:nth-child(2){--ring-color:#b5cbd7;--ring-value:64%}.ref-macros>.ref-ring:nth-child(3){--ring-color:#f2bc36;--ring-value:70%}.ref-macros>.ref-ring:nth-child(4){--ring-color:#d965cf;--ring-value:78%}.ref-legend span:nth-child(1) i{background:#08bca8}.ref-legend span:nth-child(2) i{background:#4c8dff}.ref-legend span:nth-child(3) i{background:#ff7775}.ref-legend span:nth-child(4) i{background:#aa6aef}.ref-food-hero{height:220px}.ref-days{margin:10px 0}.ref-heading{margin-bottom:14px}.ref-tabs{margin-bottom:15px}.ref-recommended .ref-product-grid img{height:54px}.ref-section-title{margin-bottom:8px}
.ref-food-hero{height:190px}.ref-route-nutrition .ref-main{padding-top:18px}.ref-route-nutrition .ref-meal-plan{padding-top:12px;padding-bottom:11px}
.ref-initial-avatar{overflow:hidden}.ref-initial-avatar img{width:100%;height:100%;object-fit:cover}.ref-dialog .ref-team-members{grid-template-columns:repeat(3,1fr)}.ref-dialog .ref-team-members>button:last-child{display:none}
.ref-progress .ref-curve{height:92px}.ref-doctor-cta h2{font-size:17px;max-width:190px}.ref-calendar-icon{color:white!important}
.ref-curve path[stroke]{stroke-dasharray:600;stroke-dashoffset:0;animation:ref-draw 850ms ease-out both}.ref-curve circle{animation:ref-point 450ms 180ms ease-out both}@keyframes ref-draw{from{stroke-dashoffset:600}to{stroke-dashoffset:0}}@keyframes ref-point{from{opacity:0}to{opacity:1}}
/* Maintain readable contrast while preserving the supplied petroleum/teal palette. */
.ref-app{--muted:#526e86}.ref-caption,.ref-section-title>span,.ref-section-title>button{color:#526e86}.ref-pill{color:#006875}.ref-product-grid button{color:#006d77}.ref-bottom a[aria-current]{color:#006d7a}.ref-compare-row>div:last-of-type b{color:#00727e}.ref-compare-dates{color:#006e7b}.ref-demo-info{color:#4b6c7d}.ref-days .selected{background:#157f8b}.ref-record-links em{color:#00727e}

/* SALVUS desktop: the same visual language in a working canvas, not a phone frame. */
@media(min-width:900px){
 .ref-app{padding:0 0 0 224px;background:#eef4f7}
 .ref-desktop{width:224px;background:#f9fcfd;border-right:1px solid #dce8ec;padding:32px 22px;z-index:25}
 .ref-device{max-width:none;width:100%;border:0;border-radius:0;min-height:100vh;padding-bottom:0;box-shadow:none;background:linear-gradient(180deg,#163b4b 0,#234c5a 265px,#edf4f8 480px)}
 .ref-demo{height:28px;font-size:9px;letter-spacing:.12em;background:#102e3c;color:#c5dde6}
 .ref-main{max-width:1280px;margin:auto;padding:30px 36px 40px;min-height:calc(100vh - 28px)}
 .ref-bottom{display:none}.ref-heading{margin:0 0 22px}.ref-heading h1{font-size:30px}.ref-heading p{font-size:14px;margin-top:7px}
 .ref-tabs{max-width:480px;margin-bottom:24px}.ref-tabs button{font-size:13px;min-height:39px}
 .ref-card{padding:22px;border-radius:22px}.ref-app h2{font-size:19px}.ref-app h3{font-size:15px}.ref-caption{font-size:11px!important}
 .ref-route-home .ref-main{max-width:none;padding:0 0 36px}.ref-route-home .ref-home-hero{height:300px;padding:28px 36px;background-position:center 48%}
 .ref-home-hero .ref-wordmark{font-size:25px}.ref-greeting h1{font-size:28px}.ref-greeting p{font-size:13px}.ref-greeting{margin-top:25px;gap:16px}
 .ref-route-home .ref-home-content{max-width:1180px;margin:-60px auto 0;padding:0 30px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:stretch}
 .ref-wellness{grid-row:span 2;padding:20px 16px 10px;border-radius:25px;background:linear-gradient(160deg,#153c4eeb,#315965e8 40%,#e7f0f5 79%)}
 .ref-route-home .ref-score-row{min-height:130px}.ref-score-row h2{font-size:16px;max-width:160px}.ref-score-label{font-size:11px}.ref-score-row p{font-size:13px}.ref-ring.score{width:100px;height:100px;flex-basis:100px}.ref-ring.score b{font-size:40px}
 .ref-metrics{gap:10px}.ref-metric{padding:15px 12px;min-height:84px}.ref-metric small{font-size:11px}.ref-metric b{font-size:18px}.ref-metric em{font-size:12px}.ref-demo-info{font-size:11px!important;padding:10px 2px}
 .ref-wellness .ref-demo-info{font-size:10px!important}.ref-trends{padding:22px}.ref-route-home .multi-curves{height:145px}.ref-trends .ref-caption{font-size:10px!important}.ref-legend{font-size:11px;margin-top:14px}.ref-live-link{padding:19px 20px;border-radius:18px}.ref-live-link b{font-size:15px}.ref-live-link small{font-size:12px}.ref-home-content>.ref-live-link{grid-column:2}
 .ref-timeline{max-width:700px;padding:10px 20px 24px}.ref-timeline:before{top:16px}.ref-timeline a{font-size:12px}
 .ref-stack{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
 .ref-progress .ref-curve{height:210px}.ref-progress .ref-section-title>span{font-size:10px}.ref-progress-badge{top:63px}.ref-chart-labels{font-size:11px}.ref-comparison{grid-column:2;grid-row:1 / span 2}.ref-compare-row{padding:11px 0}.ref-compare-row b{font-size:24px}.ref-compare-row span:not(.ref-compare-arrow){font-size:12px}.ref-compare-row b small{font-size:12px}.ref-compare-row>p{font-size:11px}.ref-compare-dates{font-size:13px;padding-top:12px}.ref-record-links{grid-column:1}.ref-record-links b{font-size:13px}.ref-record-links small,.ref-record-links em{font-size:11px}
 .ref-appointment{min-height:275px}.ref-doctor-row h3{font-size:16px}.ref-doctor-row p,.ref-doctor-row small{font-size:12px}.ref-appointment-actions button{font-size:12px}.ref-team{padding:22px;background:#f7fbff;border-radius:22px}.ref-team-members{gap:14px;margin-top:22px}.ref-team-members b{font-size:11px;white-space:normal}.ref-team-members small{font-size:10px}.ref-team-members img{width:65px;height:65px}.ref-doctor-cta{grid-column:2;min-height:200px}.ref-doctor-cta h2{font-size:23px}.ref-doctor-cta p{font-size:13px}.ref-doctor-cta button{font-size:13px}
 .ref-meal-plan{grid-row:span 4;padding:22px!important}.ref-meal-plan .ref-section-title h2{font-size:22px}.ref-meal-plan .ref-section-title p{font-size:13px}.ref-days{margin:20px 0}.ref-days button{width:42px;min-height:40px;font-size:12px}.ref-food-hero{height:270px}.ref-food-copy{padding:45px 18px 18px}.ref-food-copy>b{font-size:21px}.ref-food-copy>small{font-size:13px}.ref-food-chips i{font-size:11px}.ref-goals-heading{margin:20px 0 14px}.ref-goals-heading h3{font-size:14px}.ref-macros{justify-content:space-around}.ref-macros .ref-ring{width:80px;height:80px;flex-basis:80px}.ref-ring b{font-size:17px}.ref-ring small{font-size:11px}
 .ref-recommended .ref-section-title h2{font-size:17px}.ref-product-grid{gap:10px;margin:20px 0 12px}.ref-product-grid article{display:flex;flex-direction:column;padding:14px 8px;align-items:center;text-align:center;gap:8px}.ref-recommended .ref-product-grid img{height:100px;width:50px}.ref-product-grid h3{font-size:12px}.ref-product-grid small{font-size:10px}.ref-product-grid article>div>span{font-size:11px}.ref-product-grid button{width:100%;font-size:12px;min-height:40px}.ref-recommended .ref-caption{font-size:10px!important}.ref-more-link{font-size:13px!important;min-height:44px}
 .ref-legacy{grid-column:1/-1;padding:24px}.ref-legacy .columns,.ref-legacy .nutrition-layout,.ref-legacy .plan-layout,.ref-route-plan .plan-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:22px}.ref-legacy .comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-legacy .filters,.ref-route-report .filters{flex-direction:row}.ref-legacy .shopping-grid{grid-template-columns:1fr 1fr}.ref-route-report .report{padding:30px}.ref-route-plan .ref-main,.ref-route-profile .ref-main,.ref-route-report .ref-main{padding-top:35px}.ref-legacy .filters label{width:auto;min-width:0}.ref-route-plan .page-heading h1,.ref-route-profile .page-heading h1{font-size:32px}
}
@media(min-width:900px) and (max-width:1100px){.ref-main{padding-inline:22px}.ref-route-home .ref-home-content{padding-inline:20px;gap:14px}.ref-score-row{gap:9px}.ref-score-row>.ref-curve{display:none}.ref-metric{gap:7px;padding:12px 8px}.ref-metric b{font-size:15px}.metric-icon{width:28px;height:28px;flex-basis:28px}.ref-team-members{grid-template-columns:repeat(3,1fr)}.ref-team-members>button:last-child{display:none}.ref-macros .ref-ring{width:62px;height:62px;flex-basis:62px}.ref-product-grid{grid-template-columns:1fr}.ref-product-grid article{display:grid;grid-template-columns:45px 1fr;text-align:left;padding:8px}.ref-recommended .ref-product-grid img{height:62px;width:35px}.ref-product-grid button{grid-column:1/-1}}
@media(min-width:900px){.ref-route-home .ref-home-hero{background-image:linear-gradient(90deg,#edf5fbd9 0%,#edf5fb75 30%,transparent 65%),url('/assets/salvus-lake.png')}}

/* SALVUS v6 · published progress and next steps, keeping the reference palette. */
.ref-route-home .ref-home-v6{height:252px;background-position:center 47%;padding:20px 22px}
.ref-home-v6 .ref-greeting{align-items:center}.ref-home-v6 .ref-greeting h1{font-size:23px}.ref-home-v6 .ref-greeting p{font-size:12px;margin-top:5px}
.ref-route-home .ref-home-dashboard{margin-top:-60px;gap:13px}
.ref-home-dashboard .ref-score-compact{padding:12px 14px 5px;background:linear-gradient(120deg,#153d4ce8,#245767da);border-radius:24px;color:white}
.ref-score-compact .ref-score-row{min-height:83px;padding:0;gap:14px}.ref-score-compact .ref-score-row h2{font-size:13px;max-width:none}.ref-score-compact .ref-score-row p{font-size:10px;margin-top:7px!important}
.ref-score-compact .ref-ring.score{width:70px;height:70px;flex-basis:70px;padding:4px}.ref-score-compact .ref-ring.score b{font-size:29px}.ref-score-compact .ref-score-row>.ref-curve{width:55px;height:45px;align-self:center}
.ref-score-compact .ref-demo-info{display:flex;align-items:center;justify-content:center;gap:4px;color:#c5e1e8;font-size:10px!important;min-height:31px}.ref-score-compact .ref-demo-info svg{width:12px;height:12px}
.ref-home-dashboard .ref-card{background:#fff;border:1px solid #e3ecf1;box-shadow:0 3px 14px #16344705;padding:17px;border-radius:22px}
.ref-home-dashboard h2{font-size:19px;letter-spacing:-.4px}.ref-home-dashboard .ref-kicker{font-size:9px;font-weight:650;letter-spacing:1.25px;color:#647b91;margin:0 0 5px}
.ref-home-dashboard .ref-detail-link{display:inline-flex;align-items:center;gap:3px;min-height:40px;font-size:11px;color:#087b86;font-weight:600}.ref-detail-link svg{width:14px;height:14px}
.ref-period{display:flex;justify-content:space-between;align-items:center;padding:10px 0 14px;color:#718296;font-size:10px}.ref-period span{display:grid;gap:3px}.ref-period b{font-size:11px;color:#27485d;font-weight:500}.ref-period>svg{width:18px;height:18px;color:#8098a7}
.ref-change-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ref-change-tile{padding:12px 10px;background:#f2f7fa;border-radius:15px;min-width:0;border:1px solid #e9eff4}
.ref-change-title{display:flex;align-items:center;gap:7px;margin-bottom:11px}.ref-change-title h3{font-size:11px;line-height:1.3}.ref-change-title .metric-icon{width:26px;height:26px;flex-basis:26px;background:#dceff2;color:#087b89}.ref-change-title .ui-icon{width:16px;height:16px}
.tone-1 .metric-icon{background:#e8e7fa;color:#6960b9}.tone-2 .metric-icon{background:#e1ecfc;color:#427cc3}.tone-3 .metric-icon{background:#faebdf;color:#ad6b35}
.ref-change-values{display:flex;gap:9px;align-items:start;font-variant-numeric:tabular-nums}.ref-change-values>span{color:#647a8c;font-size:19px;line-height:1.2}.ref-change-values strong{color:#123c50;font-size:22px;font-weight:650;line-height:1.1}.ref-change-values small{display:block;font-size:10px;font-weight:400;line-height:1.5;margin-top:3px}.ref-change-values i{font-style:normal;color:#9aadb9;font-size:12px;align-self:center}
.ref-change-tile>p{font-size:10px;font-weight:500;color:#476478;margin-top:10px}.ref-change-reason{font-size:10px;display:block;color:#746347;margin-top:6px}.ref-home-dashboard .ref-caption{font-size:10px!important;margin-top:12px!important;color:#63798b}
.ref-home-next .ref-section-title>svg{width:23px;height:23px;color:#7c9aa8}.ref-next-action{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #ecf1f5}.ref-next-action>span:nth-child(2){flex:1;min-width:0}.ref-next-action b{font-size:13px;font-weight:600;display:block}.ref-next-action small{font-size:11px;color:#657d8f;display:block;margin-top:5px}.ref-next-action>svg{width:16px;height:16px;color:#7896a6}.ref-next-action .metric-icon{border-radius:12px;background:#e7f2f5;color:#1e7685}.ref-next-action:nth-of-type(2) .metric-icon{background:#ebedfc;color:#6c6caa}
.ref-home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px}.ref-home-shortcuts a{min-height:44px;border:1px solid #e0e8ef;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px}.ref-home-shortcuts svg{width:17px;height:17px;color:#54758b}
.ref-illustrative-trends{border:1px solid #dce6ed;border-radius:18px;overflow:hidden}.ref-illustrative-trends>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;padding:15px;font-size:12px;font-weight:600}.ref-illustrative-trends>summary::-webkit-details-marker{display:none}.ref-illustrative-trends>summary>span{margin-left:auto;font-size:9px;font-weight:400;color:#667d8e}.ref-illustrative-trends>summary>svg{width:14px;height:14px}.ref-illustrative-trends[open]>summary>svg{transform:rotate(90deg)}.ref-illustrative-trends .ref-trends{margin:0 10px 10px}.ref-home-empty{text-align:center;padding:22px 6px}.ref-home-empty>svg{width:30px;height:30px;color:#719dad;margin-bottom:12px}.ref-home-empty p{font-size:12px;color:#657d8f;margin-top:8px}
@media(min-width:900px){
 .ref-route-home .ref-home-v6{height:250px;padding:28px 40px;background-position:center 48%}.ref-home-v6 .ref-greeting h1{font-size:30px}.ref-home-v6 .ref-greeting p{font-size:14px}
 .ref-route-home .ref-home-dashboard{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);margin:-55px auto 0;padding:0 30px 30px;max-width:1320px;gap:20px;align-items:start}
 .ref-home-dashboard .ref-score-compact{grid-column:1/-1;padding:15px 25px 10px;border-radius:23px;display:flex;align-items:center;justify-content:space-between}.ref-score-compact .ref-score-row{flex:1;max-width:650px;gap:20px}.ref-score-compact .ref-score-row h2{font-size:18px}.ref-score-compact .ref-score-label{font-size:11px}.ref-score-compact .ref-score-row p{font-size:12px}.ref-score-compact .ref-score-row>.ref-curve{width:180px;height:58px;display:block;margin-left:30px}.ref-score-compact .ref-demo-info{width:auto;padding:10px 16px;border:1px solid #ffffff35;border-radius:20px}
 .ref-home-dashboard .ref-card{padding:24px}.ref-home-dashboard h2{font-size:23px}.ref-home-dashboard .ref-kicker{font-size:10px}.ref-home-dashboard .ref-detail-link{font-size:13px}.ref-period{padding:12px 0 18px;max-width:400px}.ref-period b{font-size:13px}.ref-change-tile{padding:17px}.ref-change-title h3{font-size:13px}.ref-change-title{margin-bottom:16px}.ref-change-values>span{font-size:25px}.ref-change-values strong{font-size:29px}.ref-change-values{gap:17px}.ref-change-values small{font-size:11px}.ref-change-tile>p{font-size:12px;margin-top:15px}.ref-next-action{padding:20px 0}.ref-next-action b{font-size:15px}.ref-next-action small{font-size:12px}.ref-home-shortcuts{margin-top:22px}.ref-illustrative-trends{grid-column:1/-1}.ref-illustrative-trends>summary{padding:18px 24px;font-size:13px}.ref-illustrative-trends>summary>span{font-size:11px}
}
@media(max-width:359px){.ref-score-compact .ref-score-row>.ref-curve{display:none}.ref-change-tile{padding:10px 8px}.ref-change-values{gap:7px}.ref-change-values strong{font-size:20px}.ref-change-title{gap:5px}.ref-illustrative-trends>summary>span{display:none}}
.ref-change-tile:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:12px;align-items:center}.ref-change-tile:last-child:nth-child(odd) .ref-change-title{margin-bottom:0}.ref-change-tile:last-child:nth-child(odd) .ref-change-values{justify-content:flex-end}.ref-change-tile:last-child:nth-child(odd)>p{grid-column:1}.ref-change-tile:last-child:nth-child(odd)>.ref-change-reason{grid-column:2}
/* App del paciente (3.81): identidad de NUMED y colores SALVUS azul/verde, sin morado. */
.ref-wordmark .ref-clinic-logo{display:block;height:34px;width:auto}
.ref-wordmark{display:inline-flex!important;flex-direction:column;align-items:flex-start;gap:2px}
.ref-app-credit{font-family:system-ui,sans-serif;font-size:10px;letter-spacing:.4px;opacity:.7;line-height:1}
.ref-desktop .ref-wordmark .ref-clinic-logo{height:30px}
.ref-app{--violet:#1d5f8a;--violet-soft:#e4eff6;--accent:#167a84}
[data-theme=dark] .ref-app{--violet:#8fc3e6;--violet-soft:#17313f;--accent:#5ccfd8}
.ref-app .chip{color:#1d5f8a;background:#eef5f9;border-color:#d4e5ef}
.ref-app .chip.selected,.ref-app .chip[aria-pressed=true]{color:#fff;background:#1d5f8a;border-color:#1d5f8a}
[data-theme=dark] .ref-app .chip{color:#cfe6f5;background:#17313f;border-color:#264b5f}
[data-theme=dark] .ref-app .chip.selected,[data-theme=dark] .ref-app .chip[aria-pressed=true]{color:#0e1a22;background:#8fc3e6;border-color:#8fc3e6}
[data-theme=dark] .ref-app svg .data-line{stroke:#5ccfd8}[data-theme=dark] .ref-app svg circle[data-action=chart-point]{fill:#8fc3e6}
/* Paciente: botón principal legible y etiquetas sin lila (3.82). */
html body .ref-app :is(a,button).primary{color:#fff}
html body .ref-app .pill:not(.green):not(.amber):not(.red){color:#1d5f8a;background:#e4eff6}
html body .ref-app .file-icon{color:#1d5f8a;background:#e4eff6}
html[data-theme=dark] body .ref-app .pill:not(.green):not(.amber):not(.red),html[data-theme=dark] body .ref-app .file-icon{color:#cfe6f5;background:#17313f}
html[data-theme=dark] body .ref-app :is(a,button).primary{color:#0e1a22}
/* Inicio del paciente estilo iOS (3.82). */
.ph{--ph-bg:#f2f2f7;--ph-card:#fff;--ph-ink:#0b1b2b;--ph-muted:#6b7785;--ph-line:rgba(60,70,90,.12);--ph-tint:#0a6fd8;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",system-ui,sans-serif;color:var(--ph-ink);padding:6px 16px 24px;max-width:520px;margin:0 auto}
[data-theme=dark] .ph{--ph-bg:#000;--ph-card:#1c1c1e;--ph-ink:#f5f7fa;--ph-muted:#98a2ae;--ph-line:rgba(255,255,255,.12);--ph-tint:#4da3ff}
.ref-app:has(.ph-home) .ref-main{background:var(--ph-bg,#f2f2f7)}
.ref-app:has(.ph-home){--ph-bg:#f2f2f7}[data-theme=dark] .ref-app:has(.ph-home){--ph-bg:#000}
.ph-top{display:flex;justify-content:space-between;align-items:center;padding:8px 0 2px}
.ph-top>div{display:flex;gap:10px;align-items:center}
.ph-round,.ph-avatar{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--ph-card);color:var(--ph-ink);box-shadow:0 1px 3px rgba(10,30,50,.08);text-decoration:none}
.ph-round .ui-icon{width:19px;height:19px}
.ph-avatar{background:linear-gradient(140deg,#0e6e7a,#1d5f8a);color:#fff;font-weight:700;font-size:15px}
.ph-title{margin:14px 2px 14px}
.ph-title p{margin:0;font-size:13px;font-weight:600;color:var(--ph-muted);text-transform:capitalize}
.ph-title h1{margin:2px 0 0;font-size:34px;line-height:1.1;font-weight:800;letter-spacing:-.6px}
.ph-hero{position:relative;display:block;overflow:hidden;border-radius:28px;padding:20px 20px 14px;color:#fff;text-decoration:none;background:radial-gradient(120% 90% at 100% 0%,#22b8a6 0%,transparent 55%),linear-gradient(150deg,#0a2f4a 0%,#0d5d74 55%,#128a86 100%);box-shadow:0 18px 40px -14px rgba(10,70,95,.55)}
.ph-kicker{margin:0;font-size:11.5px;font-weight:700;letter-spacing:1px;opacity:.75}
.ph-hero h2{margin:6px 0 4px;font-size:23px;line-height:1.18;font-weight:750;letter-spacing:-.3px;color:#fff;max-width:17ch}
.ph-hero-text small{font-size:12.5px;opacity:.8}
.ph-hero-big{position:absolute;top:18px;right:20px;margin:0;font-size:30px;font-weight:800;letter-spacing:-.5px;font-family:ui-rounded,-apple-system,system-ui,sans-serif}
.ph-hero-big small{font-size:13px;font-weight:600;margin-left:3px;opacity:.8}
.ph-spark{display:block;width:100%;height:96px;margin-top:10px}
.ph-line{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:1;animation:ph-draw 1.1s .15s cubic-bezier(.3,.7,.2,1) forwards}
.ph-area{fill:rgba(255,255,255,.14)}
.ph-end{fill:#fff;opacity:0;animation:ph-pop .4s 1.1s ease-out forwards}
.ph-hero-axis{display:flex;justify-content:space-between;font-size:11.5px;opacity:.82;margin-top:2px}
@keyframes ph-draw{to{stroke-dashoffset:0}}@keyframes ph-pop{to{opacity:1}}
.ph-section{margin-top:26px}
.ph-section-head{display:flex;justify-content:space-between;align-items:baseline;margin:0 4px 10px}
.ph-section-head h2{margin:0;font-size:22px;font-weight:750;letter-spacing:-.3px}
.ph-section-head a{color:var(--ph-tint);font-size:15px;text-decoration:none}
.ph-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ph-tile{display:flex;flex-direction:column;gap:6px;padding:14px 14px 12px;border-radius:22px;background:var(--ph-card);color:var(--ph-ink);text-decoration:none;box-shadow:0 1px 2px rgba(10,30,50,.05),0 8px 22px -14px rgba(10,30,50,.25);animation:ph-rise .5s both cubic-bezier(.2,.8,.2,1)}
.ph-tile:nth-child(2){animation-delay:.05s}.ph-tile:nth-child(3){animation-delay:.1s}.ph-tile:nth-child(4){animation-delay:.15s}.ph-tile:nth-child(n+5){animation-delay:.2s}
@keyframes ph-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.ph-tile header{display:flex;align-items:center;gap:8px}
.ph-tile h3{margin:0;font-size:13px;font-weight:600;color:var(--ph-muted);line-height:1.2}
.ph-ico{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(10,111,216,.1);color:var(--ph-tint);flex:0 0 auto}
.ph-ico .ui-icon{width:16px;height:16px}
.ph-value{margin:2px 0 0;font-size:27px;font-weight:800;letter-spacing:-.5px;font-family:ui-rounded,-apple-system,system-ui,sans-serif;line-height:1.1}
.ph-value small{font-size:12px;font-weight:600;color:var(--ph-muted);margin-left:4px;letter-spacing:0}
.ph-status{align-self:flex-start;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:999px}
.ph-status.t-good{color:#1a7f4b;background:rgba(40,170,95,.14)}.ph-status.t-mid{color:#9a6500;background:rgba(240,170,20,.18)}.ph-status.t-high{color:#b3540a;background:rgba(240,120,30,.16)}.ph-status.t-risk{color:#b3261e;background:rgba(225,60,50,.14)}.ph-status.t-low{color:#1f62b8;background:rgba(50,120,220,.13)}
[data-theme=dark] .ph-status.t-good{color:#5fd795}[data-theme=dark] .ph-status.t-mid{color:#f5c451}[data-theme=dark] .ph-status.t-high{color:#ff9e52}[data-theme=dark] .ph-status.t-risk{color:#ff7b72}[data-theme=dark] .ph-status.t-low{color:#74b2ff}
.ph-range{display:block;width:100%;height:12px;overflow:visible}
.ph-range .t-good{fill:#34c759}.ph-range .t-mid{fill:#ffcc00}.ph-range .t-high{fill:#ff9500}.ph-range .t-risk{fill:#ff3b30}.ph-range .t-low{fill:#5ac8fa}
.ph-range rect{opacity:.85}
.ph-marker{fill:var(--ph-card);stroke:var(--ph-ink);stroke-width:2.4;vector-effect:non-scaling-stroke}
.ph-delta{font-size:11.5px;color:var(--ph-muted);line-height:1.25}
.ph-foot{margin:10px 6px 0;font-size:12px;color:var(--ph-muted);line-height:1.35}
.ph-list{border-radius:22px;background:var(--ph-card);overflow:hidden;box-shadow:0 1px 2px rgba(10,30,50,.05),0 8px 22px -14px rgba(10,30,50,.25)}
.ph-row{display:flex;align-items:center;gap:12px;padding:13px 14px;color:var(--ph-ink);text-decoration:none;position:relative}
.ph-row+.ph-row::before{content:"";position:absolute;top:0;left:54px;right:0;height:1px;background:var(--ph-line)}
.ph-row>span:nth-child(2){flex:1;min-width:0;display:grid}
.ph-row b{font-size:16px;font-weight:600}.ph-row small{font-size:13px;color:var(--ph-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-row>.ui-icon{width:14px;height:14px;color:var(--ph-muted);opacity:.7}
.ph-row:active,.ph-tile:active,.ph-hero:active{transform:scale(.985);transition:transform .12s}
.ph .ref-wordmark .ref-clinic-logo{height:30px}
@media(prefers-reduced-motion:reduce){.ph-line{animation:none;stroke-dashoffset:0}.ph-end{animation:none;opacity:1}.ph-tile{animation:none}}
.motion-reduced .ph-line{animation:none;stroke-dashoffset:0}.motion-reduced .ph-end{animation:none;opacity:1}.motion-reduced .ph-tile{animation:none}
@media(min-width:900px){.ph{max-width:760px}.ph-tiles{grid-template-columns:repeat(3,1fr)}}
.ph-hero-text{padding-right:104px}.ph-hero h2{max-width:none}
html body .ref-app .ph-hero :is(.ph-kicker,.ph-hero-big,.ph-hero-big small,.ph-hero-text small,.ph-hero-axis span,h2){color:#fff}
html body .ref-app .ph-hero .ph-kicker{opacity:.78}html body .ref-app .ph-hero .ph-hero-text small{opacity:.85}
/* Progreso y Mi plan del paciente estilo iOS (3.82). */
.ref-app:has(.ph) .ref-main{background:var(--ph-bg,#f2f2f7)}
.ref-app:has(.ph){--ph-bg:#f2f2f7}[data-theme=dark] .ref-app:has(.ph){--ph-bg:#000}
.pp-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 16px 12px;margin:0 -16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.pp-chips::-webkit-scrollbar{display:none}
html body .ref-app .pp-chips button{flex:0 0 auto;min-height:0;padding:9px 16px;border-radius:999px;border:0;background:var(--ph-card);color:var(--ph-ink);font:600 14px -apple-system,system-ui,sans-serif;box-shadow:0 1px 2px rgba(10,30,50,.06);transition:background .2s,color .2s,transform .12s}
html body .ref-app .pp-chips button.on{background:var(--ph-ink);color:var(--ph-card)}
.pp-chips button:active{transform:scale(.94)}
.pp-card{background:var(--ph-card);border-radius:24px;padding:18px;box-shadow:0 1px 2px rgba(10,30,50,.05),0 8px 22px -14px rgba(10,30,50,.25);margin-top:12px;display:flex;flex-direction:column;gap:8px}
.pp-name{margin:0;font-size:14px;font-weight:600;color:var(--ph-muted)}
.pp-big{margin:0;font-size:46px;line-height:1;font-weight:800;letter-spacing:-1.2px;font-family:ui-rounded,-apple-system,system-ui,sans-serif;color:var(--ph-ink)}
.pp-big small{font-size:16px;font-weight:600;color:var(--ph-muted);margin-left:6px;letter-spacing:0}
.pp-summary .ph-range{height:14px;margin-top:4px}
.pp-zones{display:flex;font-size:10px;color:var(--ph-muted);margin-top:-2px}.pp-zones span{flex:1;text-align:center;line-height:1.15}
.pp-sentence{margin:4px 0 0;font-size:16px;font-weight:600;line-height:1.3;color:var(--ph-ink)}
.pp-seg{display:flex;background:rgba(120,120,128,.14);border-radius:11px;padding:2px}
html body .ref-app .pp-seg button{flex:1;min-height:0;border:0;background:transparent;color:var(--ph-ink);font:600 13px -apple-system,system-ui,sans-serif;padding:7px 4px;border-radius:9px;transition:background .2s}
html body .ref-app .pp-seg button.on{background:var(--ph-card);box-shadow:0 1px 4px rgba(0,0,0,.14)}
[data-theme=dark] .ref-app .pp-seg button.on{background:#636366}
.pp-chart{display:block;width:100%;height:auto;margin-top:6px;overflow:visible}
.pp-band{opacity:.14}.pp-band.t-good{fill:#34c759}.pp-band.t-mid{fill:#ffcc00}.pp-band.t-high{fill:#ff9500}.pp-band.t-risk{fill:#ff3b30}.pp-band.t-low{fill:#5ac8fa}
[data-theme=dark] .pp-band{opacity:.2}
.pp-grid{stroke:var(--ph-line);stroke-width:1}
.pp-line{fill:none;stroke:var(--ph-tint);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:ph-draw .9s .1s cubic-bezier(.3,.7,.2,1) forwards}
.pp-line.second{stroke:#19a08f;stroke-width:2.4}
.pp-area{fill:var(--ph-tint);opacity:.1}
.pp-dot{fill:var(--ph-card);stroke:var(--ph-tint);stroke-width:2}
.pp-end{fill:var(--ph-tint);stroke:var(--ph-card);stroke-width:3}
.pp-tick{fill:var(--ph-muted);font:500 11px -apple-system,system-ui,sans-serif}
.pp-legend{display:flex;align-items:center;gap:6px}.pp-legend i{display:inline-block;width:14px;height:3px;border-radius:2px;background:var(--ph-tint)}.pp-legend i.second{background:#19a08f;margin-left:10px}
.pp-history .pp-row{display:grid;grid-template-columns:1fr auto 64px;gap:10px;align-items:center;padding:12px 16px;position:relative;font-size:15px}
.pp-history .pp-row+.pp-row::before{content:"";position:absolute;top:0;left:16px;right:0;height:1px;background:var(--ph-line)}
.pp-row span{color:var(--ph-muted)}.pp-row b{font-weight:700;font-variant-numeric:tabular-nums}.pp-row b small{font-weight:500;color:var(--ph-muted);font-size:12px}
.pp-row i{font-style:normal;font-size:13px;font-weight:600;text-align:right;color:var(--ph-muted);font-variant-numeric:tabular-nums}
html body .ref-app .pp-more{display:block;width:100%;margin-top:10px;min-height:0;padding:12px;border:0;border-radius:16px;background:var(--ph-card);color:var(--ph-tint);font:600 15px -apple-system,system-ui,sans-serif}
.ph-empty{margin:0;padding:18px;color:var(--ph-muted);font-size:15px;line-height:1.4}
.pp-plan-head{display:flex;justify-content:space-between;align-items:center}.pp-plan-head small{color:var(--ph-muted);font-size:13px}
.pp-plan-text{margin:4px 0 0;font-size:17px;line-height:1.45;white-space:pre-line;color:var(--ph-ink)}
.pp-plan-author{margin:0;font-size:13px;color:var(--ph-muted)}
html body .ref-app .pp-primary{margin-top:6px;min-height:0;padding:13px;border:0;border-radius:14px;background:var(--ph-tint);color:#fff;font:600 16px -apple-system,system-ui,sans-serif}
.pp-read{margin:4px 0 0;font-size:13px;color:#1a7f4b;font-weight:600}[data-theme=dark] .pp-read{color:#5fd795}
@media(prefers-reduced-motion:reduce){.pp-line{animation:none;stroke-dashoffset:0}}.motion-reduced .pp-line{animation:none;stroke-dashoffset:0}
/* Recetas del paciente dentro del estilo nuevo. */
html body .ref-app .card.rx-patient{max-width:488px;margin:22px auto 0;border-radius:22px;border:0;box-shadow:0 1px 2px rgba(10,30,50,.05),0 8px 22px -14px rgba(10,30,50,.25);font-family:-apple-system,system-ui,sans-serif}
.ph-title p{text-transform:none}.ph-home .ph-title p::first-letter{text-transform:uppercase}
.pp-zones.ends{justify-content:space-between}.pp-zones.ends span{flex:0 0 auto}
[data-theme=dark] .ph .ref-clinic-logo{background:#fff;border-radius:9px;padding:4px 7px;box-sizing:content-box}
/* 3.83: tema en Mi perfil, gráfica táctil, iconos por indicador, Mi perfil con el mismo estilo. */
html body .ref-app .ref-theme-bar{display:none}
.ph-ico.c-blue{color:#0a6fd8;background:rgba(10,111,216,.12)}.ph-ico.c-orange{color:#d9730d;background:rgba(240,130,30,.15)}.ph-ico.c-teal{color:#0e8f8a;background:rgba(20,160,150,.14)}.ph-ico.c-red{color:#d93a35;background:rgba(230,60,55,.13)}.ph-ico.c-green{color:#1f9d55;background:rgba(40,170,95,.14)}.ph-ico.c-cyan{color:#0f8fc4;background:rgba(40,160,220,.14)}
[data-theme=dark] .ph-ico.c-blue{color:#62adff}[data-theme=dark] .ph-ico.c-orange{color:#ffa552}[data-theme=dark] .ph-ico.c-teal{color:#4fd6cf}[data-theme=dark] .ph-ico.c-red{color:#ff7b72}[data-theme=dark] .ph-ico.c-green{color:#5fd795}[data-theme=dark] .ph-ico.c-cyan{color:#6fcbf5}
.pp-chart{touch-action:pan-y;cursor:crosshair}
.pp-scrub-line{stroke:var(--ph-ink);stroke-width:1.2;opacity:.45}
.pp-scrub-dot{fill:var(--ph-tint);stroke:var(--ph-card);stroke-width:3}
.pp-scrub-box{fill:var(--ph-ink)}
.pp-scrub-text{fill:var(--ph-card);font:600 12px -apple-system,system-ui,sans-serif}
/* Mi perfil del paciente, estilo Ajustes de iPhone. */
.ref-app:has(.profile-card) .ref-main{background:#f2f2f7;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif}
[data-theme=dark] .ref-app:has(.profile-card) .ref-main{background:#000}
html body .ref-app:has(.profile-card) .page-heading h1{font-size:34px;font-weight:800;letter-spacing:-.6px}
html body .ref-app:has(.profile-card) :is(.card,.profile-links){border:0;border-radius:22px;background:#fff;box-shadow:0 1px 2px rgba(10,30,50,.05),0 8px 22px -14px rgba(10,30,50,.25);overflow:hidden}
html[data-theme=dark] body .ref-app:has(.profile-card) :is(.card,.profile-links){background:#1c1c1e;box-shadow:none}
html body .ref-app:has(.profile-card) .card h2{font-size:17px;font-weight:700}
html body .ref-app:has(.profile-card) .profile-card{text-align:center;padding:22px 18px}
html body .ref-app .ph-appearance .theme-toggle{align-self:flex-start;border-radius:12px;padding:10px 16px;font-weight:600}
html body .ref-app .ref-dock.dock-none .ref-dock-pill{opacity:0}
html body .ref-app .ref-dock .ref-dock-pill{transition:left .46s cubic-bezier(.3,1.35,.45,1),opacity .25s}
html body .ref-app:has(.profile-card) .profile-card>.ui-icon{color:#0a6fd8}
html body .ref-app .ph-appearance .theme-toggle .theme-label{display:inline;margin-left:8px}

/* Progreso del paciente: cambio desde el primer chequeo, verde si se acerca a la zona saludable y rojo si se aleja */
.pp-change{--pc:var(--ph-tint);display:flex;align-items:center;gap:14px;margin-top:6px;padding:14px;border-radius:18px;background:color-mix(in srgb,var(--pc) 12%,transparent)}
.pp-change.t-better,.pp-change.t-steady{--pc:#1f9d55}.pp-change.t-worse{--pc:#d93a30}
[data-theme=dark] .pp-change.t-better,[data-theme=dark] .pp-change.t-steady{--pc:#42c97a}[data-theme=dark] .pp-change.t-worse{--pc:#ff6b61}
.pp-change-ico{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border-radius:50%;background:var(--pc);color:#fff;font-size:24px;font-weight:800;line-height:1}
.pp-change>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.pp-change-msg{font-size:14px;font-weight:600;color:var(--pc)}
.pp-change p{margin:0}
.pp-change-val{font:800 26px/1.1 ui-rounded,-apple-system,system-ui,sans-serif;letter-spacing:-.4px;color:var(--ph-ink)}
.pp-change-val small{font-size:16px;font-weight:600;color:var(--ph-muted);letter-spacing:0}
.pp-change-since,.pp-change-zone{font-size:13px;color:var(--ph-muted)}
.pp-change-zone i{font-style:normal;opacity:.6}.pp-change-zone b{color:var(--ph-ink);font-weight:600}
