*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif}body{background:#000}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #ffdf64;outline-offset:4px}[hidden],.screen[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#app{width:100%;max-width:480px;min-height:100svh;margin:auto}.screen{min-height:100svh;position:relative;overflow:hidden}.presentation{display:flex;align-items:flex-end;padding:0 1.75% max(0px,env(safe-area-inset-bottom));background:#000}.presentation-card{width:100%;border-radius:clamp(28px,11.5vw,58px);overflow:hidden;background:#ece6df;margin-top:50px}.hero-art{width:100%;position:relative;line-height:0}.hero-art>img{display:block;width:100%;height:auto}.hero-brand{position:absolute;left:78.4%;top:81.5%;width:19.4%;height:14.7%;background:#35469d;border-radius:40%;display:flex;align-items:center;justify-content:center}.hero-brand img{width:91%;height:88%;object-fit:contain}.presentation-copy{padding:4.65% 5.5% 5.9%;color:#060606}.open-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.open-row h1{font-size:clamp(16px,5.1vw,24px);margin:0 0 3%;line-height:1.1}.open-row p{font-size:clamp(10px,3.3vw,16px);margin:0;line-height:1.4;white-space:nowrap}#open{border:0;background:#008fff;color:white;border-radius:60px;font-weight:400;font-size:clamp(14px,4vw,20px);padding:3.6% 8%;min-height:40px}.provider{display:flex;gap:8px;align-items:center;border-top:1px solid #bab7b0;margin-top:8.8%;padding-top:3%;color:#8e8a84;font-size:clamp(10px,3vw,14px)}.provider>svg{width:5.5%;flex:none}.provider strong{display:block;color:#0e1323;font-size:clamp(10px,3.1vw,14px);line-height:1.5;white-space:nowrap}.store{margin-left:auto;white-space:nowrap;font-size:clamp(8px,2.6vw,12px)}.app-background{background:linear-gradient(100deg,#303686 0%,#4933c1 100%);color:#fff}.auth-stack{width:90%;position:absolute;top:38.5svh;left:5%;display:flex;align-items:center;flex-direction:column}.auth-logo{width:160px;height:72px;object-fit:contain}.auth-stack>p{font-size:12px;margin:45px 0 26px;text-align:center;color:#e7e9f1}.green-button{width:100%;height:50px;border:0;border-radius:5px;color:#fff;background:linear-gradient(100deg,#26ac20,#5bd53a);font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 0 7px #65df9e40}.green-button svg,.enter-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.enter-button{margin-top:14px;height:50px;width:100%;border:0;border-radius:5px;background:#ffffff14;color:white;display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px}.reader-top{height:194px;position:relative}.menu-button{position:absolute;top:72px;left:16px;width:42px;height:44px;border:0;border-radius:8px;background:#f6fffd;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:9px;color:#354c50;box-shadow:0 1px 4px #0004}.menu-button span{display:block;width:24px;height:3px;background:currentColor;border-radius:2px}.reader-logo{position:absolute;width:150px;height:68px;top:104px;left:50%;transform:translateX(-50%)}.camera{margin:0 2.35%;position:relative;aspect-ratio:366/282;background:#111;border:1px solid #b0b2bc;border-radius:12px;isolation:isolate}.camera video{width:100%;height:100%;object-fit:cover;display:block;border-radius:11px}.frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:71.6%;aspect-ratio:1;max-height:94%;border-radius:25px;box-shadow:0 0 0 200px #0004;pointer-events:none;overflow:hidden}.camera{overflow:visible}.camera:before{content:"";position:absolute;inset:0;border-radius:11px;pointer-events:none}.frame i{position:absolute;width:25%;height:25%;border:2px solid #bccb68;border-radius:22px;opacity:.8}.frame i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0}.frame i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0}.frame i:nth-child(3){bottom:0;left:0;border-right:0;border-top:0}.frame i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0}.scan-hint{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);background:#0006;color:#c7f3bd;text-align:center;font-size:clamp(16px,5.3vw,23px);font-weight:600;padding:8px 0;pointer-events:none}.torch{position:absolute;bottom:-8px;right:-1px;border-radius:50%;width:52px;height:52px;background:#283b5e;border:0;color:#fff;display:grid;place-items:center;z-index:2}.torch svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.torch[aria-pressed=true]{background:#f8d64c;color:#17284c}.scan-progress{height:16px;margin:27px 5% 0;background:#f9ffff;border-radius:100px;overflow:hidden;position:relative;z-index:1}.scan-progress>div{height:100%;width:0;background:#64d84e;transition:width .2s}.scan-progress.busy>div{width:75%;animation:progress 1s ease-in-out infinite alternate}.guidance{text-align:center;position:relative;margin-top:47px;z-index:1}.info-symbol{background:white;color:#5a5e91;font-family:Georgia,serif;font-weight:bold;font-size:18px;width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}#camera-status{font-size:16px;line-height:1.5;margin:40px 6% 0;min-height:48px}.reader-controls{margin:70px 5% 24px;position:relative;z-index:1}.reader-controls>.green-button{height:50px;font-size:22px}.reader-controls details{font-size:12px;margin-top:18px;color:#edf3ff}.reader-controls summary{cursor:pointer;text-align:center}.reader-controls label{display:block;line-height:1.5;margin:16px 0 8px}.reader-controls input{width:100%;padding:12px;border:1px solid #fff8;border-radius:5px;margin-bottom:12px}.menu-panel{position:absolute;z-index:5;top:124px;left:16px;background:white;box-shadow:0 5px 30px #0008;border-radius:10px;overflow:hidden}.menu-panel button{display:block;width:100%;border:0;background:white;color:#292848;padding:16px;text-align:left}.menu-panel button:hover{background:#e9eaf5}dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;width:min(94%,364px);max-height:90svh;overflow:auto;border:1px solid #777;border-radius:8px;padding:28px;color:#111;background:#fff;box-shadow:0 1px 7px #fff5}dialog::backdrop{background:#0009}.instruction{display:flex;gap:14px;margin-bottom:26px;font-size:16px;line-height:1.5}.instruction>b{flex:none;display:grid;place-items:center;border-radius:50%;width:27px;height:27px;color:#fff;font-size:14px;background:linear-gradient(100deg,#397aef,#9934e9)}.instruction strong{font-size:16px;line-height:1.4}.instruction p{font-size:14px;color:#555;margin:5px 0 0}.qr-example{width:60px;height:60px;margin-top:10px}#dismiss-instructions{width:100%;border-radius:50px;border:0;background:linear-gradient(100deg,#357bf1,#a12beb);color:white;height:52px;font-size:16px}.result-screen{background:#edf1f3;color:#101817}.result-top{height:178px;padding-top:70px;display:flex;align-items:flex-start;justify-content:center;position:relative;background:#fff}.result-top>img{width:105px;filter:drop-shadow(0 0 1px #293e8f)}.result-top>span{position:absolute;right:14px;border:1px solid #454c4c;border-radius:20px;font-size:11px;padding:7px}.result-home{position:absolute;left:16px;border:0;background:transparent;font-size:27px}.result-banner{display:flex;gap:10px;align-items:center;background:#f7fafb;padding:14px}.result-banner h1{font-size:19px;margin:0}.result-banner h1[data-valid=true]{color:#258a37}.result-banner h1[data-valid=false]{color:#a03b32}#result-icon{border-radius:50%;background:#35499c;color:#b9efbe;width:34px;height:34px;display:grid;place-items:center;flex:none}.result-body{padding:65px 24px 30px;text-align:center}.result-emblem{border:6px solid #5baf6c;border-radius:50%;color:#3b8d4f;font-size:95px;width:180px;height:180px;margin:0 auto 55px;display:grid;place-items:center}.result-body[data-valid=false] .result-emblem{border-color:#ba584c;color:#a03b32}.result-body p{font-size:15px;line-height:1.6;min-height:100px;text-align:left}.result-back{background:none;border:0;padding:18px;color:#304b67}body.generator{background:#f2f3f7;color:#152c4b;padding:24px}body.generator main{max-width:650px;margin:auto}body.generator header{margin-bottom:25px}body.generator label{display:block;margin:16px 0 8px}body.generator input{width:100%;padding:14px;margin-bottom:16px}body.generator .primary{padding:14px 24px;background:#35499c;color:white;border:0;border-radius:6px}body.generator #output{margin-top:20px}body.generator #output svg{max-width:100%;height:auto}@keyframes progress{to{width:95%}}@media(min-width:481px){.presentation-card{border-radius:58px}.open-row h1{font-size:24px}.open-row p{font-size:16px}.scan-hint{font-size:23px}.presentation #open{font-size:20px}}@media(max-height:740px){.reader-top{height:158px}.reader-logo{top:78px}.menu-button{top:48px}.guidance{margin-top:30px}#camera-status{margin-top:22px}.reader-controls{margin-top:34px}.auth-stack{top:31svh}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.camera-viewport{position:absolute;inset:0;overflow:hidden;border-radius:11px}#auth{background:linear-gradient(105deg,#1e307a 40%,#21329e 100%)}.reader-controls{margin-top:62px}.reader-controls:has(details[hidden]){margin-bottom:24px}#torch:disabled{opacity:.65;cursor:default}

.frame i:nth-child(1){border-radius:22px 0 0 0}.frame i:nth-child(2){border-radius:0 22px 0 0}.frame i:nth-child(3){border-radius:0 0 0 22px}.frame i:nth-child(4){border-radius:0 0 22px 0}

/* Ajustes medidos nos prints autorizados de 09/11. A apresentação permanece intacta. */
#auth,#reader,#result{container-type:inline-size}
#auth{background:linear-gradient(105deg,#1e337b 40%,#1d3694 100%)}
#auth .auth-stack{top:34.7svh;left:5%;width:90%}
#auth .auth-logo{width:156px;height:75px;object-fit:contain}
#auth .auth-stack>p{font-size:12.5px;line-height:16px;margin:59px 0 9px;color:#d9e3ef}
#auth #scan{height:54px;border-radius:13px;font-size:16.5px;font-weight:600;background:linear-gradient(100deg,#0ab384,#008b69);box-shadow:0 0 4px #4bbfa74d;gap:7px}
#auth #scan svg{width:15px;height:15px;opacity:.72}
#auth #enter{height:55px;margin-top:15px;border:1px solid #ffffff12;border-radius:13px;background:#879bdd20;box-shadow:0 0 4px #98a7d32b;font-size:16.5px;font-weight:600;gap:8px}
#auth #enter svg{width:18px;height:19px;opacity:.85}
#reader{background:linear-gradient(100deg,#35388c,#4c36c8)}
#reader .reader-top{height:140px}
#reader .menu-button{top:18px;left:16px;width:42px;height:43px;border-radius:9px}
#reader .reader-logo{top:53px;width:140px;height:63px;object-fit:contain}
#reader .camera{margin:0 2.35%;aspect-ratio:366/282;border-radius:12px}
#reader .frame{width:71.6%;aspect-ratio:1;max-height:94%;border-radius:25px;box-shadow:0 0 0 200px #0004}
#reader .frame i{border-color:#759b48;border-width:2px;border-radius:24px;opacity:.8;width:18%;height:18%}
#reader .scan-hint{font-size:23px;line-height:1.15;padding:8px 0;font-weight:700;color:#9fd49a;background:#0007}
#reader .torch{width:56px;height:56px;bottom:-9px;right:-1px;background:#283750}
#reader .torch[aria-pressed=true]{background:#f8d64c;color:#17284c}
#reader .torch svg{width:32px;height:32px}
#reader .scan-progress{height:17px;margin:27px 5% 0}
#reader .guidance{margin-top:47px}
#reader .info-symbol{width:32px;height:32px;font-size:21px}
#reader #camera-status{font-size:20px;font-weight:700;line-height:1.4;margin:44px 4% 0;min-height:28px}
#reader .reader-controls{margin:76px 5% 24px}
#reader .reader-controls>.green-button{height:54px;font-size:22px;font-weight:400;border-radius:5px;background:linear-gradient(100deg,#259c16,#57c749)}
#reader .reader-controls details{font-size:13px}
#reader .reader-controls details .green-button{font-size:16px}
#reader .menu-panel{top:68px}
#instructions{width:min(94%,361px);max-width:94vw;padding:28px 28px 36px;border:1px solid #888;border-radius:8px;box-shadow:0 0 3px 2px #ffffff80}
#instructions::backdrop{background:#0008}
#instructions .instruction{gap:14px;margin-bottom:30px;line-height:1.4}
#instructions .instruction>b{width:28px;height:28px;font-size:16px}
#instructions .instruction strong{font-size:18px;line-height:25px;font-weight:700;display:block;padding-top:1px}
#instructions .instruction p{font-size:16px;line-height:25px;margin:5px 0 0;color:#555}
#instructions .qr-example{display:block;width:62px;height:63px;margin:10px 0 0 5px;object-fit:contain}
#instructions .instruction:nth-child(3){margin-bottom:24px}
#dismiss-instructions{height:54px;width:calc(100% - 14px);margin:0 7px;font-size:18px;border-radius:30px;background:linear-gradient(100deg,#357bf1,#a12bef)}
#result{background:#edf0f4;color:#111}
#result .result-top{height:125px;padding:27px 0 0;display:block;background:#fff}
#result .result-top>img{display:block;width:48px;height:42px;object-fit:contain;margin:0 auto;filter:none}
#result .result-home{top:21px;left:16px;width:42px;height:43px;padding:9px;border-radius:9px;background:white;box-shadow:0 3px 5px #0001;display:flex;flex-direction:column;justify-content:center;gap:5px}
#result .result-home span{display:block;width:24px;height:3px;background:#39414d;border-radius:3px}
#result .result-language{position:absolute;right:6px;top:28px;font-size:12px;line-height:18px;padding:5px 8px;border:1px solid #39414d;border-radius:20px;color:#111;background:#fff}
#result .product-name{text-align:center;font-size:15px;line-height:20px;font-weight:700;margin:14px 0 0}
#result .result-banner{width:100%;min-height:60px;display:flex;align-items:center;gap:7px;padding:6px 12px;border:0;background:#fafbfd;text-align:left;color:#111}
#result .verification-badge{width:44px;height:44px;object-fit:contain;flex:none}
#result #result-icon{display:none}
#result .result-heading{min-width:0}
#result #result-title{font-size:20px;line-height:24px;font-weight:700;margin:0;color:#087a00}
#result #result-title[data-valid=false]{color:#a03b32}
#result .result-code{display:block;font-size:17px;line-height:22px;font-weight:700;margin-top:3px;overflow-wrap:anywhere}
#result .result-chevron{font-size:38px;line-height:38px;font-weight:400;flex:none;margin-left:auto;margin-right:2px}
#result .result-body{padding:0;text-align:left}
#result .product-image{padding-top:12px;display:block;width:94%;height:auto;margin:0 auto;object-fit:contain;mix-blend-mode:darken}
#result .product-disclaimer{font-size:11px;line-height:14px;font-weight:400;min-height:0;margin:13px 4.2% 0}
#result .product-dose{font-size:11px;line-height:15px;min-height:0;margin:9px 5% 0}
#result .product-actions{display:flex;justify-content:space-between;margin-top:28px;padding:0 25.3%}
#result .product-actions button{width:58px;height:57px;border:0;padding:0;background:transparent;cursor:pointer}
#result .product-actions img{width:100%;height:100%;object-fit:contain;mix-blend-mode:darken}
#result .product-panel{margin:18px 5%;padding:14px;background:white;border:1px solid #dce1e5;font-size:13px;line-height:1.5}
#result .product-panel p{font-size:13px;min-height:0;margin:8px 0 0}
#result #result-message{margin:24px 5% 12px;font-size:12px;line-height:18px;min-height:0}
#result #again{width:90%;margin:16px 5% 0}
#result .result-back{display:block;margin:auto}
#result[data-valid=true] .result-emblem{display:none}
#result:not([data-valid=true]) .product-details,#result:not([data-valid=true]) .result-code,#result:not([data-valid=true]) .product-name,#result:not([data-valid=true]) .result-chevron{display:none}
#result:not([data-valid=true]) .result-emblem{margin:55px auto}
@media(max-height:740px){
 #auth .auth-stack{top:32svh}
 #reader .reader-top{height:104px}
 #reader .reader-logo{top:28px;width:135px;height:60px}
 #reader .menu-button{top:8px}
 #reader .camera{aspect-ratio:auto;height:33svh}
 #reader .frame{width:auto;height:94%;max-width:71.6%}
 #reader .scan-progress{margin-top:22px;height:14px}
 #reader .guidance{margin-top:24px}
 #reader .info-symbol{width:30px;height:30px}
 #reader #camera-status{margin-top:20px;font-size:17px;line-height:24px;min-height:24px}
 #reader .reader-controls{margin-top:24px;margin-bottom:12px}
 #reader .reader-controls>.green-button{height:52px}
 #instructions{max-height:94svh;padding:20px 24px 24px}
 #instructions .instruction{margin-bottom:20px}
 #instructions .instruction strong{font-size:16px;line-height:22px}
 #instructions .instruction p{font-size:14px;line-height:21px}
 #instructions .qr-example{width:54px;height:55px}
}

