:root{--navy:#12304a;--navy2:#071f34;--teal:#0b8f87;--teal2:#07766f;--aqua:#26b8af;--pale:#e8f7f5;--blue:#eaf3fa;--white:#fcfdfb;--slate:#607486;--line:#dce8ec;--orange:#e85d0f;--shadow:0 18px 50px rgba(18,48,74,.11)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--navy);background:var(--white);font-family:Inter,Manrope,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.container{width:min(1240px,calc(100% - 40px));margin:auto}.brand{display:inline-flex;align-items:baseline;font-size:34px;font-weight:850;letter-spacing:-2px}.brand b{color:var(--teal)}.header{position:sticky;z-index:50;top:0;border-bottom:1px solid var(--line);background:rgba(252,253,251,.92);backdrop-filter:blur(14px)}.header-inner{height:82px;display:flex;align-items:center;justify-content:space-between;gap:25px}.nav{display:flex;gap:32px;font-weight:650}.nav a:hover{color:var(--teal)}.actions{display:flex;gap:10px}.btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0 22px;border:1px solid transparent;border-radius:11px;font-weight:750;cursor:pointer;transition:.18s}.btn:hover{transform:translateY(-2px)}.btn-primary{color:white;background:linear-gradient(135deg,var(--teal),#08a49a);box-shadow:0 10px 22px rgba(11,143,135,.2)}.btn-outline{color:var(--navy);border-color:var(--teal);background:white}.btn-light{color:var(--teal2);background:white}.btn-danger{color:#b74220;border-color:#ecc7ba;background:#fff9f6}.btn-block{width:100%}.hero{position:relative;overflow:hidden;padding:82px 0 90px;background:radial-gradient(circle at 88% 70%,#dff8f6 0,transparent 35%),linear-gradient(180deg,#fff,var(--white))}.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:35px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--teal2);font-size:12px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.eyebrow:before{width:22px;height:2px;content:"";background:var(--aqua)}h1,h2,h3{letter-spacing:-.03em}.hero h1{max-width:690px;margin:20px 0;font-size:clamp(44px,4.4vw,66px);line-height:1.07}.hero p{max-width:620px;color:var(--slate);font-size:19px;line-height:1.65}.hero-actions{display:flex;gap:13px;margin-top:30px}.trust{display:flex;flex-wrap:wrap;gap:12px;margin-top:27px;color:var(--teal2);font-size:13px;font-weight:700}.preview{position:relative;min-height:510px}.preview-main{position:absolute;left:0;top:28px;width:83%;padding:23px;border:1px solid var(--line);border-radius:20px;background:white;box-shadow:0 28px 65px rgba(18,48,74,.15)}.preview-title{display:flex;justify-content:space-between;margin-bottom:16px}.preview-title strong{font-size:19px}.preview-title small{color:var(--slate)}.dose{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:12px;min-height:72px;border-top:1px solid #eaf0f1}.dose time{color:var(--teal2);font-weight:850}.dose div{display:grid;gap:3px}.dose small{color:var(--slate)}.tag{padding:6px 9px;border-radius:99px;color:var(--teal2);background:var(--pale);font-size:10px;font-weight:750}.float{position:absolute;right:0;padding:16px;border:1px solid var(--line);border-radius:15px;background:white;box-shadow:var(--shadow)}.float.stock{top:12px}.float.expiry{top:155px;border-color:#f0ceb8;background:#fffaf5}.float.voice{right:8%;bottom:10px;width:67%;display:flex;align-items:center;gap:13px}.float small{display:block;color:var(--slate);font-size:10px}.float strong{display:block;margin-top:3px}.voice-dot{width:44px;height:44px;display:grid;place-items:center;color:white;border-radius:50%;background:radial-gradient(circle,#2ac8c0,var(--navy2))}.strip{border-block:1px solid var(--line);background:white}.strip-grid{display:grid;grid-template-columns:repeat(4,1fr)}.strip-grid div{display:grid;gap:4px;padding:25px;border-right:1px solid var(--line)}.strip-grid div:last-child{border:0}.strip span{color:var(--slate);font-size:12px}.section{padding:95px 0}.section.alt{background:#f1f9f8}.section-head{max-width:740px;margin:0 auto 48px;text-align:center}.section h2{margin:15px 0;font-size:clamp(35px,3.5vw,49px)}.section-head p{color:var(--slate);font-size:17px;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.feature{padding:28px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 8px 24px rgba(18,48,74,.04)}.feature i{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;color:var(--teal2);background:var(--pale);font-style:normal;font-weight:850}.feature h3{margin:20px 0 9px}.feature p{margin:0;color:var(--slate);line-height:1.6}.footer{padding:55px 0 25px;border-top:1px solid var(--line);background:#f8fbfb}.footer-grid{display:grid;grid-template-columns:1.4fr .7fr .7fr 1fr;gap:45px}.footer-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:11px}.footer p,.footer a:not(.brand){color:var(--slate);font-size:13px}.footer-bottom{display:flex;justify-content:space-between;margin-top:38px;padding-top:20px;border-top:1px solid var(--line);color:var(--slate);font-size:11px}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f5faf9}.auth-side{display:grid;align-content:center;padding:8vw;color:white;background:linear-gradient(145deg,var(--teal2),var(--navy))}.auth-side .brand{color:white}.auth-side .brand b{color:#7be2d9}.auth-side h1{max-width:560px;margin:55px 0 18px;font-size:clamp(38px,4vw,57px);line-height:1.1}.auth-side p{max-width:520px;color:#d8f2ef;font-size:17px;line-height:1.7}.auth-list{display:grid;gap:12px;margin-top:28px;font-weight:650}.auth-list span:before{margin-right:9px;color:#78e1d8;content:"✓"}.auth-main{display:grid;place-items:center;padding:45px 20px}.auth-card{width:min(480px,100%);padding:38px;border:1px solid var(--line);border-radius:21px;background:white;box-shadow:var(--shadow)}.auth-card h2{margin:0 0 7px;font-size:31px}.auth-card>p{color:var(--slate);line-height:1.55}.form{display:grid;gap:16px;margin-top:25px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:6px}.field label{font-size:12px;font-weight:750}.field input,.field select,.field textarea{width:100%;min-height:49px;padding:0 13px;border:1px solid #cadde0;border-radius:9px;color:var(--navy);background:white}.field textarea{min-height:90px;padding-top:12px;resize:vertical}.field small{color:var(--slate);font-size:10px}.alert{margin:15px 0;padding:12px 14px;border-radius:9px;font-size:12px;line-height:1.5}.alert-error{color:#9d341b;background:#fff0e9}.alert-success{color:#176b50;background:#e6f6ee}.auth-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:17px;color:var(--teal2);font-size:12px;font-weight:700}.auth-note{margin-top:18px!important;font-size:10px;text-align:center}
.app-shell{min-height:100vh;display:grid;grid-template-columns:235px 1fr;background:#f3f8f7}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:28px 17px 20px;border-right:1px solid var(--line);background:white}.sidebar .brand{margin:3px 12px 32px;font-size:30px}.side-nav{display:grid;gap:5px}.side-nav button{min-height:47px;display:flex;align-items:center;gap:12px;padding:0 13px;border:0;border-radius:9px;color:var(--slate);background:transparent;font-weight:700;text-align:left;cursor:pointer}.side-nav button.active,.side-nav button:hover{color:var(--teal2);background:var(--pale)}.system-ok{margin-top:auto;padding:13px;border:1px solid var(--line);border-radius:10px;font-size:10px}.system-ok strong{display:block}.system-ok span{color:var(--slate)}.app-main{min-width:0}.topbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:10px 28px;border-bottom:1px solid var(--line);background:white}.profile-tabs{display:flex;gap:4px;padding:3px;border-radius:8px;background:#edf3f3}.profile-tabs button{min-height:31px;padding:0 12px;border:0;border-radius:6px;color:var(--slate);background:transparent;font-size:11px;font-weight:750;cursor:pointer}.profile-tabs button.active{color:var(--teal2);background:white;box-shadow:0 2px 7px rgba(18,48,74,.1)}.user-box{display:flex;align-items:center;gap:9px}.avatar{width:37px;height:37px;display:grid;place-items:center;color:white;border-radius:50%;background:linear-gradient(135deg,var(--teal),var(--navy));font-weight:850}.user-box div{display:grid}.user-box small{color:var(--slate);font-size:9px}.content{max-width:1450px;margin:auto;padding:30px}.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.page-title h1{margin:4px 0;font-size:30px}.page-title p{margin:0;color:var(--slate);font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:17px}.stat,.panel{border:1px solid var(--line);border-radius:14px;background:white;box-shadow:0 5px 18px rgba(18,48,74,.035)}.stat{min-height:88px;display:flex;align-items:center;gap:12px;padding:16px}.stat-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;color:var(--teal2);background:var(--pale);font-weight:850}.stat div{display:grid;gap:4px}.stat small{color:var(--slate);font-size:9px}.stat strong{font-size:15px}.dashboard{display:grid;grid-template-columns:1.55fr .75fr;gap:17px}.panel{padding:20px}.panel-title{display:flex;justify-content:space-between;gap:15px;margin-bottom:16px}.panel-title h2{margin:0 0 3px;font-size:17px}.panel-title p{margin:0;color:var(--slate);font-size:9px}.dose-list,.table-list{border-top:1px solid #edf2f3}.dose-item{display:grid;grid-template-columns:105px 1fr 85px;align-items:center;gap:11px;min-height:68px;border-bottom:1px solid #edf2f3}.dose-item time{color:var(--teal2);font-size:11px;font-weight:850}.dose-item div{display:grid;gap:3px}.dose-item small{color:var(--slate);font-size:9px}.dose-item button{min-height:33px;border:1px solid var(--teal);border-radius:7px;color:var(--teal2);background:white;font-size:9px;font-weight:750}.right-stack{display:grid;gap:17px}.stock-line,.expiry-line{display:grid;grid-template-columns:1fr auto;gap:4px;padding:11px 0;border-top:1px solid #edf2f3}.stock-line div,.expiry-line div{display:grid;gap:3px}.stock-line small,.expiry-line small{color:var(--slate);font-size:8px}.stock-line>span,.expiry-line>time{color:var(--teal2);font-size:9px;font-weight:800}.critical{color:var(--orange)!important}.progress{grid-column:1/-1;height:5px;border-radius:8px;background:#e6eeee}.progress i{height:100%;display:block;border-radius:8px;background:linear-gradient(90deg,var(--teal),var(--aqua))}.data-table{overflow-x:auto}.table-head,.table-row{min-width:1020px;display:grid;grid-template-columns:1.1fr 1.25fr .7fr 1fr .7fr .65fr;align-items:center;gap:14px;padding:13px 18px}.table-head{color:var(--slate);border-bottom:1px solid var(--line);background:#f8fbfb;font-size:8px;font-weight:850;text-transform:uppercase}.table-row{min-height:72px;border-bottom:1px solid #edf2f3;font-size:10px}.table-row>span,.table-row>div{display:grid;gap:3px}.table-row small{color:var(--slate);font-size:8px}.badge{width:max-content;padding:5px 8px;border-radius:99px;font-size:8px;font-weight:800}.badge-ok{color:#23775a;background:#e6f5ee}.badge-warn{color:#b64b17;background:#fff0e7}.settings{padding:0 20px}.setting{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid #edf2f3}.setting h3{margin:0 0 4px;font-size:12px}.setting p{margin:0;color:var(--slate);font-size:9px}.setting select{min-width:170px;min-height:37px;border:1px solid var(--line);border-radius:8px;background:white;padding:0 9px}.hidden{display:none!important}.modal-backdrop{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:18px;background:rgba(6,27,42,.55);backdrop-filter:blur(5px)}.modal{width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:26px;border-radius:19px;background:white;box-shadow:0 30px 90px rgba(0,0,0,.25)}.modal-head{display:flex;justify-content:space-between}.modal-head h2{margin:5px 0 0}.close{width:35px;height:35px;border:1px solid var(--line);border-radius:8px;background:white;font-size:22px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.toast{position:fixed;z-index:120;right:22px;bottom:22px;max-width:410px;padding:13px 17px;color:white;border-radius:10px;background:#126f68;box-shadow:0 15px 40px rgba(0,0,0,.22);font-size:11px}
@media(max-width:1000px){.hero-grid{grid-template-columns:1fr}.hero-copy{text-align:center}.hero-copy .eyebrow,.hero-actions,.trust{justify-content:center}.preview{width:min(650px,100%);margin:auto}.feature-grid{grid-template-columns:1fr 1fr}.app-shell{grid-template-columns:80px 1fr}.sidebar{padding:25px 10px}.sidebar .brand{font-size:0;margin:3px auto 30px}.sidebar .brand b{font-size:24px}.side-nav button{justify-content:center;padding:0;font-size:0}.side-nav button:before{content:"•";font-size:22px}.system-ok{display:none}.stats{grid-template-columns:1fr 1fr}.dashboard{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.nav{display:none}.header .actions{display:flex}.header .actions .btn-primary{display:none}.header .actions .btn-outline{min-height:40px;padding:0 17px}.hero{padding-top:55px}.preview{display:none}.feature-grid,.strip-grid{grid-template-columns:1fr}.strip-grid div{border-right:0;border-bottom:1px solid var(--line)}.auth-shell{grid-template-columns:1fr}.auth-side{min-height:380px;padding:50px 28px}.app-shell{display:block}.sidebar{position:fixed;z-index:80;right:0;bottom:0;left:0;top:auto;width:auto;height:62px;padding:5px 8px;border-top:1px solid var(--line)}.sidebar .brand,.system-ok{display:none}.side-nav{grid-template-columns:repeat(6,1fr)}.side-nav button{min-height:50px}.content{padding:22px 15px 82px}.topbar{padding:9px 15px}.page-title{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:1fr 1fr}.form-row{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.footer-bottom{align-items:flex-start;flex-direction:column;gap:10px}.setting{align-items:flex-start;flex-direction:column;padding:18px 0}.setting select{width:100%}}
@media(max-width:480px){.container{width:calc(100% - 28px)}.hero h1{font-size:39px}.hero-actions{flex-direction:column}.hero-actions .btn{width:100%}.feature-grid,.stats{grid-template-columns:1fr}.auth-card{padding:26px 20px}.dose-item{grid-template-columns:1fr 72px;padding:12px 0}.dose-item time,.dose-item div{grid-column:1}.dose-item button{grid-column:2;grid-row:1/3}.modal-actions{flex-direction:column-reverse}.modal-actions .btn{width:100%}}
.setting select{min-width:190px}.photo-register{display:grid;gap:16px;margin-top:22px;padding:18px;border:1px solid #bfe3df;border-radius:14px;background:linear-gradient(145deg,#f4fcfb,#eaf8f6)}.photo-register-copy{display:flex;align-items:flex-start;gap:12px}.photo-register-copy h3{margin:0 0 5px;font-size:15px}.photo-register-copy p{margin:0;color:var(--slate);font-size:10px;line-height:1.5}.photo-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:white;background:linear-gradient(135deg,var(--teal),var(--navy));font-size:18px}.photo-actions{display:flex;flex-wrap:wrap;gap:9px}.photo-actions .btn{min-height:39px;padding:0 15px;font-size:10px}.btn-link{min-height:39px;padding:0 8px;color:#a74427;border:0;background:transparent;box-shadow:none}.btn:disabled{cursor:wait;opacity:.58;transform:none}.photo-preview{display:grid;gap:13px;padding-top:14px;border-top:1px solid #cce7e4}.photo-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.photo-thumbnails figure{min-width:0;margin:0}.photo-thumbnails img{width:100%;height:110px;display:block;object-fit:cover;border:1px solid var(--line);border-radius:9px;background:white}.photo-thumbnails figcaption{overflow:hidden;margin-top:4px;color:var(--slate);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.photo-progress{display:grid;gap:6px}.photo-progress progress{width:100%;height:8px;overflow:hidden;border:0;border-radius:99px;background:#d9e9e7}.photo-progress progress::-webkit-progress-bar{background:#d9e9e7}.photo-progress progress::-webkit-progress-value{background:linear-gradient(90deg,var(--teal),var(--aqua))}.photo-progress progress::-moz-progress-bar{background:linear-gradient(90deg,var(--teal),var(--aqua))}.photo-progress p{margin:0;color:var(--slate);font-size:9px;line-height:1.45}.photo-confirm{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #f0d1a9;border-radius:9px;color:#6d4a16;background:#fff9ee;font-size:10px;font-weight:750;line-height:1.4}.photo-confirm input{margin-top:2px}.manual-divider{display:flex;align-items:center;gap:12px;margin:22px 0 0;color:var(--slate);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.manual-divider:before,.manual-divider:after{height:1px;content:"";flex:1;background:var(--line)}#medication-form{width:min(720px,100%)}
@media(max-width:720px){.photo-actions .btn{flex:1}.photo-thumbnails{grid-template-columns:1fr 1fr}.photo-thumbnails img{height:125px}.setting select{min-width:0}}
.camera-backdrop{position:fixed;z-index:160;inset:0;display:grid;place-items:center;padding:18px;background:rgba(4,20,32,.88);backdrop-filter:blur(7px)}.camera-dialog{width:min(820px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:22px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:#071f34;box-shadow:0 30px 90px rgba(0,0,0,.45)}.camera-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;color:white}.camera-head h2{margin:5px 0 0}.camera-head .close{color:white;border-color:rgba(255,255,255,.35);background:transparent}.camera-status{margin:14px 0;color:#cfe9e7;font-size:11px;line-height:1.5}.camera-dialog video{width:100%;max-height:62vh;display:block;object-fit:contain;border-radius:13px;background:#020b12}.camera-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.camera-actions .btn-outline{color:white;border-color:#6fd4cc;background:transparent}@media(max-width:600px){.camera-backdrop{padding:0}.camera-dialog{width:100%;min-height:100vh;display:flex;flex-direction:column;justify-content:center;border:0;border-radius:0}.camera-dialog video{max-height:58vh}.camera-actions{flex-direction:column-reverse}.camera-actions .btn{width:100%}}
.field.photo-filled input,.field.photo-filled select{border-color:#0b8f87;background:#f1fbf9;box-shadow:0 0 0 3px rgba(11,143,135,.1)}.field.photo-review input,.field.photo-review select{border-color:#d79028;background:#fffaf0;box-shadow:0 0 0 3px rgba(215,144,40,.11)}.ocr-field-note{color:#07766f!important;font-weight:750}.field.photo-review .ocr-field-note{color:#9a5b08!important}.ocr-details{padding:11px;border:1px solid #c6dedb;border-radius:9px;background:white}.ocr-details summary{color:#07766f;font-size:10px;font-weight:800;cursor:pointer}.ocr-details p{margin:9px 0;color:#6d4a16;font-size:9px;line-height:1.5}.ocr-details pre{max-height:180px;overflow:auto;margin:9px 0 0;padding:10px;border-radius:7px;color:#27475d;background:#f4f8f8;font:9px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;word-break:break-word}
.user-box .account-link{padding:6px 9px;border-radius:7px;color:var(--teal2);background:var(--pale);font-size:10px;font-weight:800}.site-message{position:relative;z-index:5;margin:16px auto -48px;width:min(760px,calc(100% - 32px));padding:13px 17px;border:1px solid #b8dfd2;border-radius:10px;color:#176b50;background:#e6f6ee;box-shadow:var(--shadow);font-size:13px;text-align:center}.account-page{min-height:100vh;background:#f3f8f7}.account-header{border-bottom:1px solid var(--line);background:white}.account-header .container{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}.account-main{padding-top:42px;padding-bottom:70px}.account-title{margin-bottom:24px}.account-title h1{margin:7px 0;font-size:36px}.account-title p{margin:0;color:var(--slate)}.account-alert{max-width:900px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.account-panel{padding:26px}.account-panel .form{margin-top:8px}.account-panel .btn{justify-self:start}.danger-zone{margin-top:20px;border-color:#ecc7ba}.danger-zone .eyebrow{color:#a74427}.danger-zone .eyebrow:before{background:#d46a45}.family-delete-warning{margin:5px 0 18px;padding:15px;border:1px solid #efbda9;border-radius:10px;color:#8f341d;background:#fff2ec}.family-delete-warning p{margin:5px 0 0;line-height:1.5}.impact-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:20px}.impact-grid span{display:grid;gap:4px;padding:13px;border:1px solid var(--line);border-radius:9px;color:var(--slate);background:#fafcfc;font-size:10px}.impact-grid b{color:var(--navy);font-size:12px}.delete-account-form{padding-top:18px;border-top:1px solid #f0d8cf}.delete-family-check{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #efbda9;border-radius:9px;color:#84361f;background:#fff8f4;font-size:11px;font-weight:750;line-height:1.5}.delete-family-check input{margin-top:3px}.delete-account-form .btn-danger{justify-self:start;background:#fff7f3}@media(max-width:900px){.account-grid{grid-template-columns:1fr}.impact-grid{grid-template-columns:1fr 1fr}.topbar .user-box>div{display:none}}@media(max-width:600px){.account-header .brand{font-size:28px}.account-main{padding-top:28px}.account-panel{padding:20px}.impact-grid{grid-template-columns:1fr}.user-box .account-link{font-size:0}.user-box .account-link:after{content:'Conta';font-size:10px}.topbar #test-voice{display:none}}
