/* Diario Saude v15 — unified visual layer; original app features preserved */
:root{--ds15-green:#075b34;--ds15-deep:#063d29;--ds15-light:#e4f6e7;--ds15-ink:#183a2c;--ds15-line:#dce9df}
body:not(.dark){background:#f5f8f5!important;color:var(--ds15-ink)}
body:not(.dark) header{background:linear-gradient(110deg,#063d29,#075c35)!important;color:white!important;border-color:transparent!important}
body:not(.dark) header *,body:not(.dark) header button{color:inherit}
#appMain{padding-bottom:110px}
#appMain>section{animation:ds15-appear .22s ease-out}
@keyframes ds15-appear{from{opacity:.75;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.ds15-hero{display:flex;align-items:center;gap:17px;background:linear-gradient(120deg,#074c31 0%,#08733b 70%,#0c5c37 100%);color:white;padding:22px 24px;border-radius:23px;margin:0 0 22px;box-shadow:0 8px 25px #06462920;position:relative;overflow:hidden}
.ds15-hero:after{content:"";position:absolute;width:155px;height:155px;border:24px solid #ffffff12;border-radius:50%;right:-54px;top:-83px;pointer-events:none}
.ds15-hero-icon{width:59px;height:59px;flex:0 0 59px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(140deg,#8bd6aa,#d2f4da);color:#075735;box-shadow:inset 0 1px #fff6}
.ds15-hero-icon svg{width:33px;height:33px;stroke-width:1.9}
.ds15-hero-copy{position:relative;z-index:1}
.ds15-hero h2{font-size:clamp(21px,3vw,28px);line-height:1.16;font-weight:800;letter-spacing:-.03em;margin:0 0 5px}
.ds15-hero p{font-size:13px;opacity:.88;margin:0;line-height:1.45}
#appMain>section:not(.hidden) :is(.rounded-2xl,.rounded-xl,.ds14-panel,.c44-card){border-radius:17px}
#appMain>section:not(.hidden) button{transition:transform .14s ease,filter .14s ease}
#appMain>section:not(.hidden) button:active{transform:scale(.985)}
#appMain>section:not(.hidden) :is(input,select,textarea){max-width:100%}
#appMain>section:not(.hidden) :is(input,select,textarea):focus-visible{outline:2px solid #2c9a62;outline-offset:2px}
#appNav button{transition:background .18s,color .18s}
#appNav button[aria-current=page],#appNav button.ds15-active{background:#dff3e2!important;color:#075d35!important;font-weight:750}
body:not(.dark) #appNav{border-color:#d8e9db!important}
#view-medicacoes>.ds15-hero{margin-bottom:14px}
#view-medicacoes>.ds15-hero + *{margin-top:0}
#med-v145-root .med145-header{display:none}
#med-v145-root .med145-shell{max-width:none}
#med-v145-root .med145-nav{margin-top:4px}
.dark .ds15-hero{background:linear-gradient(120deg,#073d2b,#126844)}
.dark #appNav button.ds15-active{background:#174c35!important;color:#d7ffe3!important}
@media(min-width:1024px){.ds15-hero{padding:26px 30px}.ds15-hero-icon{width:65px;height:65px;flex-basis:65px}}
@media(max-width:640px){.ds15-hero{padding:18px 16px;border-radius:19px;gap:12px}.ds15-hero-icon{width:50px;height:50px;flex-basis:50px;border-radius:14px}.ds15-hero-icon svg{width:28px;height:28px}.ds15-hero p{font-size:12px}#appMain{padding-top:15px}}

/* V15.2.1 — restore forest-green app canvas, keep content readable */
html{min-height:100%;background:#063b29}
body:not(.dark){background:radial-gradient(ellipse at 86% 5%,#146a43 0%,transparent 42%),linear-gradient(135deg,#073f2b 0%,#075034 52%,#043522 100%) fixed!important;color:#183a2c}
body:not(.dark) #appMain{background:transparent}
body:not(.dark) #appMain>section:not(.hidden)>:not(.ds15-hero):not(.ds-v7-intro):not(.ds-page-title){color:inherit}
body:not(.dark) #appMain :is(.ds-page-title,.ds-v7-intro) h2{color:#e4ffe9}
body:not(.dark) #appMain :is(.ds-page-title,.ds-v7-intro) p{color:#d0e8d8}
body:not(.dark) #appNav{background:#092d23!important;border:1px solid #2d694e!important;color:#d2e9d8!important}
body:not(.dark) #appNav button{color:#c8dfd1!important}
body:not(.dark) #appNav button:hover{background:#174c38!important}
body:not(.dark) #appNav button[aria-current=page],body:not(.dark) #appNav button.ds15-active{background:#d9f2df!important;color:#075a36!important}
body:not(.dark) #appMain section :is(.bg-white,.bg-slate-50,.bg-gray-50){box-shadow:0 6px 22px #02251915}
body:not(.dark) #appMain section .ds15-hero{box-shadow:0 9px 25px #03281955}
@media(min-width:1024px){body:not(.dark) #appNav{box-shadow:0 14px 40px #021c1655}}
@media(max-width:1023px){body:not(.dark) #appNav{border-radius:18px 18px 0 0!important;border-bottom:0!important}}
@media print{html,body:not(.dark){background:#fff!important}body:not(.dark) #appMain :is(.ds-page-title,.ds-v7-intro) h2{color:#14532d}}
