@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');
:root{--bg:#f7f6ee;--ink:#303e33;--muted:#727b6c;--sage:#e7ebde;--green:#49674d;--line:#e2e5d9;--white:#fffef9;--yellow:#f7efd3;--terra:#ae654c;--red:#963e35}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px 'DM Sans',system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a77e39;outline-offset:3px}button{border:0;background:none}a{color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;border-right:1px solid var(--line);padding:34px 23px;display:flex;flex-direction:column;background:#f1f2e8}.brand{display:flex;align-items:center;gap:9px;font-family:Fraunces,Georgia,serif;font-size:25px;letter-spacing:-.8px}.brand small{font:9px 'DM Sans',sans-serif;letter-spacing:2px;display:block;margin-top:6px;color:var(--muted)}.brandmark{font-size:33px}.nav{margin-top:56px;display:grid;gap:9px}.nav button{text-align:left;padding:15px 17px;border-radius:12px;color:#73806e;font-weight:550;display:flex;align-items:center;gap:14px;min-height:49px}.nav button.active{background:#dde5d3;color:#334b36}.nav svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7}.sidebar-bottom{margin-top:auto}.family-note{border:1px solid #d9dfce;border-radius:16px;padding:18px 14px;font-size:12px;line-height:1.6;margin-bottom:23px}.avatars{display:flex;margin:0 0 12px}.avatar{background:#e0dbc9;border:3px solid #f1f2e8;border-radius:50%;height:31px;width:31px;display:inline-grid;place-items:center;font-size:10px;font-weight:700;margin-right:-7px}.avatar:nth-child(2){background:#dec7b7}.avatar:nth-child(3){background:#cbd8bc}.caregiver{display:flex;gap:11px;align-items:center;font-size:12px}.caregiver strong{display:block}.caregiver span{font-size:10px;color:var(--muted)}main{margin-left:232px;max-width:1500px;padding:0 44px 40px}.topbar{display:flex;justify-content:space-between;align-items:center;padding:25px 0 21px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.toptools{display:flex;gap:15px;align-items:center}.pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;border-radius:20px;padding:7px 10px;letter-spacing:.3px;background:var(--sage);white-space:nowrap}.dot{height:6px;width:6px;border-radius:50%;background:#718b5f}.language{border:1px solid var(--line);padding:7px 11px;border-radius:8px;background:var(--white);font-size:12px}.intro{display:flex;justify-content:space-between;align-items:center;margin:31px 0 23px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Fraunces,Georgia,serif;font-weight:500}h1{font-size:34px;letter-spacing:-1px}.eyebrow{color:var(--muted);font-size:10px;font-weight:650;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:11px}.subtitle{color:var(--muted);margin-top:8px;font-size:13px}.textbutton{font-size:12px;color:var(--green);border-bottom:1px solid #b6c0a7;padding:5px 0;min-height:34px}.demo-banner{border:1px solid #e5dcc0;background:#faf5e4;padding:11px 15px;border-radius:10px;font-size:11px;line-height:1.6;color:#786842;margin-bottom:22px;display:flex;gap:10px;align-items:center}.hero{border:1px solid #dfe6d4;background:#eaf0e1;border-radius:21px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden}.hero h2{font-size:27px;line-height:1.3;max-width:470px;letter-spacing:-.4px}.hero p{font-size:12px;color:#67785e;margin:11px 0 17px;line-height:1.7;max-width:470px}.softbtn{padding:10px 16px;background:#fffdf4;border:1px solid #d6dfca;border-radius:9px;font-size:12px;font-weight:550;min-height:42px}.dino{width:170px;height:151px;margin-left:20px;flex-shrink:0}.sectionhead{display:flex;justify-content:space-between;align-items:center;margin:28px 0 15px}.sectionhead h2{font-size:20px;letter-spacing:-.3px}.sectionhead span{font-size:11px;color:var(--muted)}.quickgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:11px}.quick{border:1px solid var(--line);border-radius:13px;background:var(--white);padding:16px 7px 14px;min-height:104px;text-align:center;transition:transform .15s,box-shadow .15s}.quick:hover{transform:translateY(-3px);box-shadow:0 5px 14px #334b3610}.quick i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#f7eedc;margin:0 auto 10px;font-size:20px;font-style:normal}.quick:nth-child(2) i{background:#f5e4d9}.quick:nth-child(3) i{background:#e9efdf}.quick:nth-child(4) i{background:#e7eff1}.quick:nth-child(5) i{background:#f2e5df}.quick:nth-child(6) i{background:#e5e9dc}.quick b{font-size:11px;font-weight:550}.contentgrid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;margin-top:25px}.card{border:1px solid var(--line);border-radius:17px;background:var(--white);padding:22px}.card h2{font-size:20px}.cardhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.cardhead span{color:var(--muted);font-size:10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:20px}.stat{padding:2px 18px 17px;border-right:1px solid var(--line)}.stat:first-child{padding-left:0}.stat:last-child{border:0}.label{font-size:11px;color:var(--muted);display:block;margin-bottom:10px}.value{font-size:27px;font-family:Fraunces,Georgia,serif}.unit{font-size:12px;color:var(--muted);margin-left:4px}.meta{font-size:10px;color:var(--muted);line-height:1.6;margin-top:7px}.trend{width:100%;height:89px;display:block;margin-top:10px}.trend text{font-family:'DM Sans',sans-serif;fill:#939b89;font-size:9px}.tinygrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:18px;border-top:1px solid var(--line)}.tinygrid p{font-size:12px;margin-top:6px}.medicine-card{background:#f5efdf;border-color:#e7ddbf}.medicine-icon{height:40px;width:40px;display:grid;place-items:center;background:#eee2c3;border-radius:12px;font-size:22px;margin-bottom:14px}.medicine-card h2{font-size:23px;line-height:1.25}.medicine-card p{font-size:12px;line-height:1.7;color:#80745a;margin:12px 0}.warningtag{font-size:10px;display:inline-block;background:#eadfc1;color:#79623d;padding:6px 9px;border-radius:6px;margin-top:15px}.primary{background:var(--green);color:#fffef7;border-radius:10px;padding:13px 18px;font-size:13px;font-weight:550;min-height:46px}.primary.full{width:100%;margin-top:14px}.outline{border:1px solid var(--line);background:var(--white);border-radius:9px;padding:11px 15px;font-size:12px;min-height:44px}.timeline{margin-top:0}.event{display:grid;grid-template-columns:43px 34px 1fr auto;gap:11px;align-items:center;padding:14px 0;border-top:1px solid #eeeee5}.event:first-child{border:0}.event time{font-size:11px;color:var(--muted)}.event-icon{width:31px;height:31px;border-radius:10px;background:#f1f1e6;display:grid;place-items:center;font-size:15px}.event strong{font-size:12px;font-weight:550;display:block}.event small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.event button{font-size:10px;color:var(--muted);min-height:35px}.filterbar{display:flex;gap:7px;margin:18px 0;flex-wrap:wrap}.filterbar button{padding:9px 12px;border-radius:20px;font-size:11px;border:1px solid var(--line);min-height:38px}.filterbar button.active{background:var(--green);color:white}.footer{font-size:10px;line-height:1.8;color:#8c9382;margin-top:28px;display:flex;justify-content:space-between;gap:18px}.footer a{color:var(--muted)}.note{font-size:12px;color:var(--muted);line-height:1.7}.stack{display:grid;gap:18px}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.listrow{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:15px 0;font-size:12px}.listrow:last-child{border:0}.listrow span{color:var(--muted)}.result{border-radius:13px;padding:18px;border:1px solid var(--line);margin-top:16px;background:#edf0e5}.result h3{font-size:20px;margin-bottom:8px}.result p,.result li{font-size:12px;line-height:1.7}.result.orange{background:#fbefda;border-color:#ecd2a2;color:#7c571e}.result.red{background:#fae6e0;border-color:#e7bbb1;color:#853c32}.result.incomplete{background:#f2f0e8}.result a{display:inline-block;margin-top:12px;background:#963e35;color:white;padding:13px 18px;border-radius:8px;font-weight:700;text-decoration:none}.result ul{padding-left:17px;margin-bottom:0}.metricgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.metric{background:var(--bg);padding:16px;border-radius:10px}.metric strong{display:block;font-size:22px;font-family:Fraunces,serif;margin:7px 0}.barrow{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:11px}.barrow span:first-child{width:45px}.bar{height:9px;background:#e8ecdf;border-radius:5px;flex:1;overflow:hidden}.bar b{display:block;height:100%;background:#8fa179;border-radius:5px}.tag{font-size:10px;padding:4px 7px;background:#f1eadd;border-radius:5px}.pass{color:#4f6e42}dialog{border:1px solid var(--line);border-radius:21px;background:var(--bg);padding:0;width:min(540px,calc(100% - 24px));max-height:90dvh;color:var(--ink);box-shadow:0 24px 100px #20302030}dialog::backdrop{background:#263a2a65;backdrop-filter:blur(4px)}.modalhead{display:flex;justify-content:space-between;align-items:center;padding:23px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:1}.modalhead h2{font-size:25px}.close{width:40px;height:40px;border-radius:50%;background:#eceee1;font-size:24px}.modalbody{padding:23px 25px}.modalbody label,.field{display:block;font-size:12px;font-weight:550;margin-bottom:16px}input,select,textarea{width:100%;background:var(--white);border:1px solid #d7decd;border-radius:9px;padding:12px;color:var(--ink);min-height:46px;margin-top:7px}textarea{min-height:80px;resize:vertical}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.check{display:flex!important;align-items:center;gap:10px;background:var(--white);border:1px solid var(--line);padding:12px;border-radius:9px;font-size:12px!important;font-weight:450!important;min-height:46px;margin-bottom:8px!important}.check input{width:19px;height:19px;min-height:19px;margin:0;accent-color:var(--green);flex-shrink:0}.form-note{font-size:11px;color:var(--muted);line-height:1.7;margin:10px 0 17px}.biginput{font-size:30px;text-align:center;font-family:Fraunces,serif}.dangerlink{display:inline-block;color:var(--red);padding:13px;border:1px solid #dec4bb;border-radius:9px;text-decoration:none;font-weight:600;font-size:12px}.mobilebrand{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#344b36;color:white;border-radius:12px;padding:13px 22px;box-shadow:0 8px 30px #20302025;font-size:13px;z-index:10;display:none}.docsummary{white-space:pre-wrap;line-height:1.8;font:12px 'DM Sans',system-ui,sans-serif;background:var(--white);padding:20px;border-radius:12px}.printonly{display:none}button:disabled{opacity:.6;cursor:not-allowed}.empty{padding:30px;text-align:center;color:var(--muted);font-size:12px}.spacer{margin-top:18px}fieldset{border:0;padding:0;margin:20px 0}legend{font-size:12px;font-weight:650;margin-bottom:12px}
@media(min-width:1450px){main{margin:0 auto 0 232px;padding-left:64px;padding-right:64px}}@media(max-width:1150px){main{padding-left:25px;padding-right:25px}.sidebar{width:200px;padding:30px 18px}main{margin-left:200px}.contentgrid{grid-template-columns:1fr 270px}.quickgrid{gap:7px}.stats .stat{padding-left:12px;padding-right:12px}.value{font-size:24px}}@media(max-width:950px){.sidebar{width:170px;padding:25px 13px}.brand{font-size:21px}.brandmark{font-size:25px}.nav button{padding:13px 11px;gap:10px}.family-note{padding:12px 10px}main{margin-left:170px;padding:0 22px 30px}.contentgrid{grid-template-columns:1fr}.medicine-card{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.medicine-card .medicine-icon{display:none}.medicine-card .primary{grid-column:2;grid-row:2}.medicine-card .warningtag{grid-column:2;grid-row:1;align-self:start;justify-self:end}.medicine-card p{grid-column:1;grid-row:2}.quickgrid{grid-template-columns:repeat(3,1fr)}.quick{min-height:90px}.dino{width:130px}.two{grid-template-columns:1fr}}
@media(max-width:650px){.sidebar{inset:auto 0 0;width:100%;height:72px;border-right:0;border-top:1px solid var(--line);padding:0 8px 8px;z-index:5;background:#f9faf2;display:block}.sidebar .brand,.sidebar-bottom{display:none}.nav{margin:0;display:flex;justify-content:space-around;gap:0}.nav button{flex:1;display:flex;flex-direction:column;gap:5px;align-items:center;text-align:center;font-size:10px;padding:10px 4px;border-radius:0;min-height:60px}.nav button.active{background:none;color:#345b3d}.nav button.active:before{content:'';position:absolute;top:0;width:24px;height:3px;border-radius:0 0 5px 5px;background:#557448}.nav svg{width:21px;height:21px}main{margin:0;padding:0 18px 94px}.mobilebrand{display:flex;font-size:22px}.mobilebrand .brandmark{font-size:25px}.topbar{padding:18px 0 16px}.date{display:none}.toptools{gap:9px}.toptools .pill{font-size:8px;padding:6px}.language{font-size:11px}.intro{margin:24px 0 20px;align-items:start}h1{font-size:30px}.intro .textbutton{font-size:10px;margin-top:5px}.subtitle{font-size:11px}.demo-banner{padding:10px 12px;font-size:10px;margin-bottom:16px}.hero{padding:23px 20px;border-radius:17px;min-height:210px}.hero h2{font-size:25px;max-width:240px}.hero p{font-size:11px;max-width:210px}.hero .pill{font-size:8px}.dino{width:98px;height:125px;position:absolute;right:8px;bottom:12px;opacity:.85;margin:0}.hero .softbtn{font-size:11px;position:relative;z-index:1}.hero p{position:relative;z-index:1}.sectionhead{margin:24px 0 12px}.sectionhead h2{font-size:20px}.sectionhead span{font-size:10px}.quickgrid{gap:9px}.quick{padding:12px 5px;min-height:91px}.quick i{width:31px;height:31px;font-size:18px;margin-bottom:8px}.quick b{font-size:10px}.contentgrid{gap:16px;margin-top:22px}.card{padding:19px 16px;border-radius:15px}.card h2{font-size:19px}.stats{margin-top:14px}.stat{padding:2px 10px 14px!important}.stat:first-child{padding-left:0!important}.stat:last-child{padding-right:0!important}.value{font-size:24px}.label{font-size:10px}.unit{font-size:10px}.meta{font-size:9px}.medicine-card{display:block;position:relative;padding:21px}.medicine-card h2{font-size:24px;max-width:230px}.medicine-card .warningtag{margin-top:15px}.medicine-card p{margin-bottom:0}.footer{display:block;font-size:9px}.footer div+div{margin-top:10px}.event{grid-template-columns:36px 29px 1fr auto;gap:8px}.event strong{font-size:11px}.event small{font-size:9px}.event-icon{width:29px;height:29px}.event time{font-size:10px}.metric{padding:12px}.metric strong{font-size:21px}.metric .label{font-size:9px}.metricgrid{gap:6px}.modalhead{padding:17px 19px}.modalbody{padding:19px}.modalhead h2{font-size:23px}.formgrid{gap:10px}.modalbody label{font-size:11px}#toast{bottom:88px;max-width:90%;width:max-content;font-size:12px}.tinygrid{gap:12px}.cardhead{margin-bottom:15px}.topbar .pill .dot{width:5px;height:5px}}
@media print{body{background:white}.sidebar,main,dialog .modalhead,dialog button,dialog .form-note,#toast{display:none!important}dialog{position:static;display:block!important;max-height:none;border:0;box-shadow:none;width:100%;margin:0}dialog::backdrop{background:none}.modalbody{padding:0}.docsummary{font-size:11pt;background:white}.printonly{display:block}.docsummary:before{content:'EWAN CARE · DEMO DOCTOR SUMMARY';display:block;font-size:18pt;font-weight:700;margin-bottom:15px}}

[hidden]{display:none!important}.two>.stack,.contentgrid>.stack{min-width:0}strong{overflow-wrap:anywhere}
.care-alerts{margin:18px 0 25px}.care-alert-head{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px}.care-alerts .result{margin-top:12px}.care-alert-limit{font-size:10px;line-height:1.6;color:var(--muted);margin-top:12px}.care-alerts .plan-actions{padding-top:12px;margin-top:12px}.care-alerts .result h3{font-size:22px}.care-alerts .result p{font-size:13px}.care-alerts .result .meta{font-size:10px}
.plan-role{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);margin-top:20px;padding-top:15px}.plan-role label{display:flex;align-items:center;gap:10px;font-size:12px}.plan-role select{width:auto;margin:0;min-width:115px}.prescription-card.plan-active{border-color:#b9c8a8;background:#f9fbf3}.prescription-dose{background:#eef2e5;border-radius:12px;padding:16px;margin:16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.prescription-dose strong{font:29px Fraunces,Georgia,serif}.prescription-dose span{font-size:11px;color:var(--muted);text-align:right}.plan-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:17px;margin-top:17px}.plan-actions .primary,.plan-actions .outline{font-size:11px}.pill.muted{background:#eeeee4;color:#737967}.schedule-slot{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;border-top:1px solid var(--line);padding:16px 0}.schedule-slot:first-child{border:0}.schedule-slot time{font-weight:650;font-size:13px}.schedule-slot strong{font-size:12px}.slot-actions{display:grid;gap:5px}.slot-actions button{font-size:10px;padding:8px 11px;min-height:35px}form[data-form=plan] legend{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:500}form[data-form=plan] fieldset{border-top:1px solid var(--line);padding-top:17px;margin:26px 0}form[data-form=plan] legend{padding-right:12px}form[data-form=plan] textarea{line-height:1.6}#plan-errors:empty{display:none}
@media(max-width:650px){.plan-role{flex-wrap:wrap}.plan-role .pill{font-size:8px}.prescription-dose strong{font-size:27px}.prescription-dose{padding:14px}.prescription-card .cardhead h2{font-size:23px}.plan-actions .primary{width:100%}.prescription-card .plan-actions .outline{flex:1}.schedule-slot{grid-template-columns:40px 1fr auto}.filterbar{gap:8px}.filterbar button{min-height:43px;font-size:11px}.cardhead .primary{font-size:11px;padding:10px 12px}.plan-role select{min-width:100px}}

:root{--live-bar-height:0px;--mobile-nav-height:0px}
.sidebar{bottom:var(--live-bar-height);overflow-y:auto;overscroll-behavior:contain}
.sidebar>*{flex-shrink:0}
.sidebar-bottom{padding-top:24px}
.caregiver>div{min-width:0}
.caregiver .avatar{flex-shrink:0}
.caregiver span{overflow-wrap:anywhere}
#live-bar{position:fixed;bottom:0;left:0;right:0;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#e6ecde;border-top:1px solid #bdcbaa;color:#334b36;padding:9px 18px calc(9px + env(safe-area-inset-bottom,0px));font:11px system-ui;z-index:20}
#live-bar>span{min-width:0;overflow-wrap:anywhere}
#live-bar>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:100%}
#live-bar button{border:1px solid #bbc7ad;background:#fffef9;border-radius:7px;padding:8px;min-height:33px;font-size:11px}
#live-bar.error{background:#fae1d8;color:#82392f;flex-wrap:wrap}
#live-bar.pending{background:#faf0d1;color:#78571e}
main{padding-bottom:calc(var(--live-bar-height) + var(--mobile-nav-height) + 40px)}
#toast{bottom:calc(var(--live-bar-height) + var(--mobile-nav-height) + 16px)}
@media(max-width:650px){
 :root{--mobile-nav-height:72px}
 .sidebar{overflow:visible}
 #live-bar{min-height:53px;padding:6px 9px calc(6px + env(safe-area-inset-bottom,0px));font-size:10px}
 #live-bar>span{max-width:60%}
 #live-bar.error>span{max-width:100%}
}
@media print{#live-bar{display:none!important}}
