/* Reference blue design. Visual layer only; existing data and handlers remain. */
:root{--ref-navy:#06215b;--ref-blue:#0079ef;--ref-line:#b9d9f5;--ref-green:#078f27;--green:#0064c8;--green-dark:#034b9a;--accent:#0079ef}body{background:linear-gradient(150deg,#d5ecff,#f5faff 60%,#dff0ff);color:var(--ref-navy)}.content{max-width:1260px;margin:auto}.concept-banner{background:#e5f2ff;color:#284774;border-bottom:1px solid #bddcfa;font-size:9px}.demo-account-banner{background:#eef7ff;color:#31516f;border-bottom:1px solid #cae1f5;font-size:10px}.lab-header,.dashboard-shell .lab-header{position:relative;background:linear-gradient(110deg,#e3f4ffdd,#b9e2ffdd),url('assets/chemical-hero.png') right center/cover!important;color:var(--ref-navy)!important;height:84px!important;padding:15px 25px!important;border-bottom:1px solid #b1d4f3!important;border-radius:0 0 40% 8%/0 0 16px 8px;overflow:hidden}.lab-header .brand-name{font-size:16px!important;letter-spacing:.4px;color:#032264!important}.lab-header .brand small{color:#537298;font-size:7px}.lab-header .brand img{filter:none;width:37px;height:37px}.lab-header #app-language-toggle{color:#034b9a;background:#ffffff70;border:1px solid #a9d0f1;border-radius:9px;padding:6px 9px;font-size:10px}.lab-header .icon-btn{color:#004ab3;stroke:#004ab3}.sidebar{background:linear-gradient(#e5f4ff,#f7fbff);border-right:1px solid #bddcf4}.sidebar .brand-name{color:#032264!important}.nav-item.active{background:#d2e9ff;color:#0066df;border-radius:10px}.page-head h1,.chem-heading h1,.lab-account h1{color:#052466;letter-spacing:-.6px}.page-head p{color:#284d7b}.btn,.auth-reference-submit{background:linear-gradient(#00a3ff,#006ae0)!important;border:1px solid #006dd7;color:#fff;border-radius:13px;box-shadow:0 5px 10px #0763ad2b}.btn.secondary,.btn.outline{background:#ffffffa8!important;border:1px solid #a9cdf1;color:#0755b6;box-shadow:none}.btn:disabled{opacity:.5}.card,.chem-wallet,.referral-level,.lab-contract{background:linear-gradient(140deg,#ffffffed,#eef7ffed);border:1px solid #c2def4;border-radius:15px;box-shadow:0 3px 8px #1678b51c}.chemical-photo{background-color:#e8f4ff}.mobile-nav{background:#f9fcffed!important;border-top:1px solid #cae0f5;border-radius:22px 22px 0 0;backdrop-filter:blur(12px);min-height:72px}.mobile-nav a.active{background:linear-gradient(#d2eaff,#f3f9ff)!important;border-radius:13px!important;color:#0074e8!important}.mobile-nav a.active:after{height:4px;width:30px;bottom:2px;background:#0084ff;border-radius:6px}.mobile-nav svg{stroke-width:1.8}.footer,.notice{color:#6c86a1}.footer{border-color:#cce0f3}
/* Authentication uses the reference's light industrial header and wave shape. */
.auth-reference{background:radial-gradient(ellipse at 50% 10%,#94cfff90,transparent 50%),linear-gradient(135deg,#d6edff,#f4faff);padding:28px 16px;min-height:calc(100svh - 30px);display:grid;place-items:center}.auth-panel{position:relative;display:block;max-width:440px;width:100%;background:linear-gradient(145deg,#fbfdff,#e5f2ff);border:1px solid #acd4f6;border-radius:32px;overflow:hidden;box-shadow:0 15px 50px #174e8b22;min-height:650px}.auth-panel:before{content:'';position:absolute;left:0;right:0;top:0;height:175px;background:linear-gradient(90deg,#e6f5ffa0,#d6edff40),url('assets/chemical-hero.png') right center/cover;clip-path:ellipse(95% 100% at 45% 0);z-index:0;transform:none;border-radius:0}.auth-panel:after{content:'';position:absolute;bottom:-35px;right:-80px;width:380px;height:100px;background:linear-gradient(140deg,#9ad9ff90,#d0ecff);border-radius:50%;transform:rotate(-9deg);pointer-events:none}.auth-reference-content{position:relative;padding:28px 24px!important;z-index:1}.auth-reference-brand{height:160px;display:flex;align-items:flex-start;justify-content:flex-start;padding:7px 0 0}.auth-ptbrs-brand{display:flex;align-items:center;gap:10px;background:none!important;border:0!important;box-shadow:none!important;color:#042a6d!important;transform:none!important}.auth-ptbrs-brand img{width:48px!important;height:48px!important;filter:none!important}.auth-ptbrs-brand strong{font:850 23px/1 system-ui!important;letter-spacing:0!important;font-style:normal!important}.auth-ptbrs-brand small{font:750 17px/1.1 system-ui!important;letter-spacing:0!important;color:#042a6d!important}.auth-ptbrs-title{font-size:23px!important;font-style:normal!important;color:#052466!important;letter-spacing:-.7px;text-align:center!important;margin:0 0 22px!important}.auth-ptbrs-subtitle{display:none}.auth-login-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}.auth-reference-form{gap:12px!important}.auth-reference-field{border:1px solid #b7d7f3!important;background:#fafdffb0!important;box-shadow:0 3px 5px #2d73a110!important;border-radius:13px!important;min-height:51px!important}.auth-reference-field input{color:#092851!important;font-size:14px!important;background:transparent!important}.auth-reference-field>svg{width:19px!important;height:19px!important;stroke:#06356f!important}.auth-reference-field button{color:#052665!important;stroke:#052665!important}.auth-reference-field input::placeholder{color:#294c75!important}.ref-country{display:flex;gap:8px;align-items:center;font-size:18px;color:#062d66;padding-left:2px;white-space:nowrap}.ref-country b{font-size:13px}.auth-reference-submit{min-height:49px!important;font-size:17px!important;justify-content:center!important;margin-top:9px!important}.auth-reference-submit svg{width:19px!important;height:19px!important}.auth-forgot{color:#0060bf!important;font-size:12px!important}.auth-account-row{margin:20px 0 14px!important;display:flex;justify-content:center;gap:5px;font-size:12px!important}.auth-account-row a{color:#0057bf!important;font-weight:750}.auth-install{font-size:11px!important;color:#346992!important}.auth-reference-disclosure{font-size:9px!important;line-height:1.5;margin-top:20px!important;color:#526e8c!important}.auth-reference-accept{font-size:10px!important;color:#48627d}.auth-invitation-group{padding:0!important;background:transparent!important}.auth-invitation-label{font-size:11px}.auth-invitation-group small{font-size:10px}.auth-invite{font-size:10px!important}.auth-invitation-label span{color:#0071ca!important}
/* Home: summary, colored quick actions and plan promotion. */
.chem-home .chem-heading{display:none}.chem-home>.chem-hero{height:120px;min-height:120px;margin:0 0 14px;border-radius:10px;box-shadow:none}.chem-home>.chem-hero h2{font-size:24px;font-style:italic}.chem-home>.chem-hero div{padding:18px}.chem-home>.chem-hero img{object-position:right center}.chem-home>.chem-hero a{display:none}.chem-overview{display:block}.ref-wallet{position:relative;background:linear-gradient(135deg,#fff,#e8f5ff)!important;border-radius:14px;padding:17px!important;overflow:hidden}.ref-wallet:before{content:'';position:absolute;right:-40px;top:60px;width:220px;height:120px;border-radius:50%;background:#a4ddff66;transform:rotate(-14deg);pointer-events:none}.ref-wallet .chem-wallet-title{display:flex;justify-content:flex-start;gap:8px;font-size:13px}.ref-wallet .chem-wallet-title .icon-btn{width:23px;height:23px;min-height:0;flex-shrink:0}.ref-wallet .chem-wallet-title svg{width:17px;height:17px}.ref-wallet .chem-balance{font-size:32px!important;color:#05215b;display:block;margin:3px 0 12px;letter-spacing:-1px}.ref-wallet .chem-balances{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px!important;border:0;padding:0}.ref-wallet .chem-balances>div{display:flex;align-items:center;gap:8px;background:#ffffff9c;border:1px solid #d1e7f8;border-radius:9px;padding:9px}.ref-wallet .chem-balances svg{stroke:#0084ff;width:23px;height:23px;flex:none}.ref-wallet .chem-balances span{display:grid;gap:3px}.ref-wallet .chem-balances small{font-size:10px}.ref-wallet .chem-balances b{font-size:15px}.ref-statement{font-size:10px;margin-top:9px;display:block;margin-left:auto}.ref-home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.ref-home-actions button{display:grid;place-items:center;gap:6px;color:white;border:0;border-radius:14px;padding:13px 5px;background:linear-gradient(#1dc7ff,#0074df);box-shadow:0 4px 8px #0872bf25;cursor:pointer;font-size:12px}.ref-home-actions button:nth-child(2){background:linear-gradient(#7de078,#05a53c)}.ref-home-actions button:nth-child(3){background:linear-gradient(#c39dff,#7959f5)}.ref-home-actions button:nth-child(4){background:linear-gradient(#ffc258,#ff920b)}.ref-home-actions button:disabled{opacity:.45;cursor:default}.ref-home-actions svg{width:24px;height:24px;stroke:white}.ref-plan-promo{display:flex;position:relative;align-items:stretch;min-height:170px;background:linear-gradient(110deg,#f6fcff,#b2e0ff);border:1px solid #b4d8f5;border-radius:14px;overflow:hidden;margin-bottom:22px;color:#042664}.ref-plan-promo>div{padding:18px;z-index:1;width:60%}.ref-plan-promo h2{font-size:22px;line-height:1.05;margin:0 0 9px;letter-spacing:-.8px}.ref-plan-promo span{display:block;font-size:11px;line-height:1.3}.ref-plan-promo b{display:inline-block;background:linear-gradient(#00a8ff,#0071e5);color:white;border-radius:20px;padding:6px 15px;font-size:12px;margin-top:10px}.ref-plan-promo img{position:absolute;right:0;top:0;width:55%;height:100%;object-fit:cover;object-position:66% center;mask-image:linear-gradient(to right,transparent,#000 25%)}
/* Catalog becomes a dense stacked plan list with bag thumbnails. */
.product-grid{gap:10px}.lab-material{padding:12px;border:1px solid #c5e1f8;border-radius:13px;box-shadow:0 3px 5px #187ac01a;background:linear-gradient(135deg,#fff,#edf7ff);grid-template-columns:75px minmax(0,1fr) 35px;gap:12px}.lab-material .lab-product-visual{align-self:center;max-height:77px}.ref-bag-thumb{display:block;width:100%;height:77px;object-fit:cover;object-position:65% 60%;border-radius:7px}.lab-material h3{font-size:17px}.lab-material header{align-items:center}.lab-material .lab-rate{background:linear-gradient(#54d65a,#05852a);color:white;border-radius:12px;padding:5px 9px}.lab-material .lab-rate strong{font-size:12px}.lab-material .lab-rate span{font-size:10px}.lab-material .lab-product-facts{margin:6px 0 0;grid-template-columns:1fr auto;gap:8px}.lab-material .lab-product-facts small{display:none}.lab-material .lab-product-facts strong{font-size:16px}.lab-material .lab-product-facts>div+div{border:0;padding:0}.lab-material .lab-product-facts>div+div strong{font-size:11px;font-weight:500;color:#48688c}.lab-material .lab-return{margin-top:5px}.lab-material .lab-return small{font-size:10px}.lab-material .lab-return strong{font-size:13px}.lab-material .lab-explore{background:none!important;color:#0058bb!important;align-self:center;width:30px;min-height:40px;border-radius:6px;box-shadow:none}.lab-material .lab-explore b{font-size:23px}.lab-material.is-locked{opacity:.67}.lab-material.is-locked .lab-rate{background:#cfdae7;color:#4e6681}.lab-material.is-locked .ref-bag-thumb{filter:grayscale(.8)}.lab-coming{margin:3px 0 0}.lab-process-banner{display:none}.lab-catalog-filters{margin-bottom:12px}.lab-catalog-filters button{border-color:#bedcf6;background:#eef7ff;padding:7px 12px}.lab-catalog-filters [aria-pressed=true]{background:#0079ef;border-color:#0079ef}
/* Detail uses the landscape sack image, light summary and green total. */
.lab-detail{gap:22px}.ref-detail-photo{display:block;width:100%;height:240px;object-fit:cover;object-position:65% 60%;border-radius:18px 18px 45% 10%/18px 18px 20px 10px}.lab-detail-heading{flex-direction:column;gap:10px;margin:0 12px 17px;position:relative;margin-top:-17px}.lab-detail-heading h1{font-size:25px;background:linear-gradient(#00a4ff,#0066d5);color:white;padding:10px 20px;border-radius:12px;box-shadow:0 4px 9px #0d62af25;z-index:1;text-align:center}.lab-detail-rate{background:linear-gradient(#baf3bf,#e2f8e5);color:#07851c;font-size:15px;padding:5px 10px}.lab-detail-rate small{font-size:11px}.lab-detail-facts{background:linear-gradient(#fbfeff,#edf7ff);box-shadow:0 4px 8px #136da31a}.lab-detail-facts>div{padding:14px 0}.lab-detail-facts strong{font-size:20px}.lab-detail-facts>div:last-child{margin:3px -11px 8px;padding:14px 10px;background:linear-gradient(120deg,#e3f9df,#c7f2d2);border-radius:10px;border:0}.lab-detail-facts .lab-detail-return{color:#088721;font-size:24px}.lab-detail-facts svg{stroke:#0253b0}.lab-detail .quantity{border-color:#b8d8f3}.lab-detail .lab-detail-buy{border-radius:13px;box-shadow:0 5px 10px #096ec02b}.lab-detail-notice{color:#5b7894}
/* Account rows retain access to existing contracts, statement, PIX, VIP and security. */
.ref-account{max-width:680px}.ref-account .lab-account-person{padding:15px 0;margin-bottom:17px}.ref-account .lab-account-avatar{background:linear-gradient(#fff,#e7f4ff);border:1px solid #a9d4f5;width:72px;height:72px;color:#0079ed}.lab-account-avatar svg{width:45px;height:45px;stroke:#0076e5;fill:#0085ef18}.ref-account .lab-account-person h2{font-size:23px;color:#042665}.ref-account-menu{padding:3px 15px;background:linear-gradient(#ffffffdc,#eaf6ffdc);border:1px solid #c0dff7;border-radius:14px;box-shadow:0 4px 8px #187ac01a}.ref-account-menu>a,.ref-account-menu>button{display:flex;align-items:center;gap:12px;padding:16px 0;width:100%;background:none;border:0;color:#062c66;text-align:left;font-size:15px;cursor:pointer}.ref-account-menu>*+*{border-top:1px solid #c9e0f4!important}.ref-account-menu svg:first-child{width:22px;height:22px;stroke:#0074e6;flex:none}.ref-account-menu span{flex:1}.ref-account-menu svg:last-child{width:17px;height:17px}.lab-appearance{padding:5px 0}.lab-appearance h2{font-size:15px}.lab-appearance button{border-color:#b4d5f2;font-size:12px}.lab-appearance [aria-pressed=true]{background:#c3e7ff;color:#005bbf}
/* Team keeps live level tabs, authentic totals and invitations. */
.lab-invitation{background:linear-gradient(125deg,#fff,#e4f4ff);border:1px solid #bbdff7;color:#06275f;box-shadow:0 3px 7px #187ac01a}.lab-invitation #invite-code{color:#063574}.lab-invitation button{color:#0058c2;border:1px solid #a7cff0;background:#ffffff80}.lab-invitation-top>svg{stroke:#0083ef}.lab-team-page .referral-tabs{background:#ffffffb5;border-color:#b7d9f5;box-shadow:0 3px 5px #247bbb12}.lab-team-page .referral-tabs button[aria-selected=true]{background:linear-gradient(#00a4ff,#0072e8)}.lab-team-page .referral-team-total{background:linear-gradient(130deg,#fff,#e2f3ff);border-color:#b4d8f5}.lab-team-page .referral-team-total strong{color:#098c26}.lab-team-page .referral-member{border:1px solid #c1ddf4;border-radius:11px;background:#ffffffb5;padding:12px;margin:8px 0;box-shadow:0 3px 5px #187ac012}.lab-team-page .referral-member-investment strong{color:#098c26}.lab-team-page .referral-commission-rates{background:#e4f4ff}.lab-team-page .referral-level-subtotal{background:#ffffff80;border:1px solid #cbe0f5;border-radius:9px;margin-top:8px}.lab-gift-entry{background:linear-gradient(130deg,#fff,#e8f6ff);border-color:#b4d8f5;box-shadow:0 3px 5px #187ac012}
/* Dialogs: checkout, PIX identity and gift forms share the light visual language. */
dialog#modal{background:linear-gradient(150deg,#fff,#e5f3ff);border:1px solid #b9daf5;border-radius:24px;box-shadow:0 20px 65px #03285944;color:#052665;max-width:460px}dialog::backdrop{background:#041e4766;backdrop-filter:blur(5px)}dialog#modal h2{font-size:24px;letter-spacing:-.7px;color:#052665}dialog#modal input,dialog#modal textarea,dialog#modal select{border:1px solid #accff0;border-radius:12px;background:#ffffffb3;color:#092d62;min-height:45px}dialog#modal .btn{min-height:47px}.pix-profile-modal #pix-profile-form{gap:9px}.pix-profile-modal #pix-profile-form label{font-size:12px}.pix-profile-modal>p{font-size:11px;color:#496b8b}.pix-profile-modal>h2:before{content:'◇';display:block;text-align:center;font-size:70px;line-height:1;color:#09b8bd;margin:8px 0 20px}.pix-profile-modal #pix-profile-form .actions{display:flex;flex-direction:column-reverse;gap:8px}.pix-profile-modal #pix-profile-cancel{min-height:35px;background:transparent!important;border:0;box-shadow:none}.pix-profile-modal #pix-profile-form small{font-size:10px}.benefit-emblem{width:90px;height:90px;display:grid;place-items:center;margin:0 auto 20px;background:linear-gradient(135deg,#e7f7ff,#9bd5ff);border-radius:24px;transform:rotate(-5deg);box-shadow:0 8px 20px #1266aa1c}.benefit-emblem svg{width:56px;height:56px;stroke:#0074ed}.benefit-dialog{text-align:center}.benefit-dialog form{text-align:left}.welcome-popup{border:1px solid #a7d1f3;background:linear-gradient(#fff,#e2f3ff);border-radius:24px;color:#06265f}.welcome-banner{background:linear-gradient(120deg,#edf8ff,#c2e8ff)}.welcome-banner>img{opacity:.8}.welcome-brand{color:#04336d}.welcome-content h2{color:#043575}.welcome-content h2 span{color:#0089ed}.welcome-rules{background:#f8fcff;border-color:#b5d8f3}.welcome-rules span{color:#006cd4}.welcome-enter{background:linear-gradient(#009cff,#0065d6);color:white;border-radius:12px}
@media(min-width:701px){.auth-reference{grid-template-columns:1fr}.auth-panel{max-width:450px}.ref-home-actions{max-width:560px;margin-left:auto;margin-right:auto}.chem-home>.chem-hero{height:170px;min-height:170px}.chem-overview{max-width:800px;margin:auto}.ref-plan-promo{min-height:200px}.ref-plan-promo h2{font-size:29px}.ref-account-menu{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.ref-account-menu>*+*{border-top:0!important}.ref-account-menu>*{border-bottom:1px solid #c9e0f4!important}.lab-material{grid-template-columns:90px minmax(0,1fr) 40px}.lab-material .lab-product-visual,.ref-bag-thumb{height:90px;max-height:90px}.lab-material header{flex-wrap:nowrap}.ref-detail-photo{height:300px}.lab-detail-heading{margin-top:-25px}.lab-detail-heading h1{font-size:25px}.lab-detail-order{padding-top:15px}.lab-header-tools{gap:12px}}
@media(max-width:700px){.content{padding:20px 16px 100px}.lab-header,.dashboard-shell .lab-header{height:76px!important;padding:13px 18px!important}.lab-header .brand-name{font-size:13px!important}.lab-header .brand img{width:34px;height:34px}.lab-header .brand small{font-size:7px}.lab-header-tools{gap:3px}.lab-header .topbar-right{display:none}.auth-reference{padding:16px 10px}.auth-panel{border-radius:26px;min-height:640px;max-width:430px}.auth-reference-content{padding:25px 22px!important}.auth-reference-brand{height:160px}.auth-panel:before{height:175px}.auth-ptbrs-title{font-size:22px!important}.auth-reference-field{min-height:51px!important}.ref-home-actions{gap:11px;margin:14px 0}.ref-home-actions button{padding:11px 3px;font-size:11px;gap:5px;border-radius:12px}.ref-home-actions svg{width:25px;height:25px}.ref-wallet .chem-balance{font-size:30px!important}.ref-wallet .chem-balances{gap:7px}.ref-wallet .chem-balances>div{padding:8px 6px;gap:5px}.ref-wallet .chem-balances small{font-size:9px}.ref-wallet .chem-balances b{font-size:13px}.ref-wallet .chem-balances svg{width:19px;height:19px}.ref-plan-promo{min-height:160px;margin-bottom:17px}.ref-plan-promo>div{padding:16px;width:62%}.ref-plan-promo h2{font-size:20px}.ref-plan-promo span{font-size:10px}.chem-home>.chem-hero{height:105px;min-height:105px;margin-bottom:12px}.chem-home>.chem-hero h2{font-size:22px}.chem-home>.chem-hero div{padding:15px}.lab-material{grid-template-columns:59px minmax(0,1fr) 21px;padding:10px;gap:9px;min-height:85px}.lab-material .lab-product-visual{height:62px;max-height:62px}.ref-bag-thumb{height:62px}.lab-material header{flex-wrap:wrap;gap:4px}.lab-material h3{font-size:14px}.lab-material .lab-rate{padding:3px 7px;gap:2px}.lab-material .lab-rate strong{font-size:10px}.lab-material .lab-rate span{font-size:9px}.lab-material .lab-product-facts{margin-top:4px;gap:5px}.lab-material .lab-product-facts strong{font-size:14px}.lab-material .lab-product-facts>div+div strong{font-size:10px}.lab-material .lab-return{gap:4px}.lab-material .lab-return small{font-size:9px}.lab-material .lab-return strong{font-size:12px}.lab-material .lab-explore{width:21px;height:30px;min-height:30px}.lab-material .lab-explore b{font-size:22px}.ref-detail-photo{height:165px;border-radius:14px 14px 40% 10%/14px 14px 16px 7px}.lab-detail-heading{margin:-14px 10px 14px}.lab-detail-heading h1{font-size:21px;padding:8px 14px}.lab-detail-facts span{font-size:12px}.lab-detail-facts strong{font-size:17px}.lab-detail-facts .lab-detail-return{font-size:22px}.lab-detail-rate{font-size:13px;padding:4px 9px}.ref-account .lab-account-person{gap:14px}.ref-account .lab-account-person h2{font-size:22px}.ref-account .lab-account-avatar{width:68px;height:68px}.ref-account-menu{padding:0 13px}.ref-account-menu>a,.ref-account-menu>button{font-size:14px;padding:15px 0}.ref-account-menu svg:first-child{width:21px;height:21px}.lab-account h1{font-size:26px}.lab-team-page .page-head h1{font-size:26px}.lab-invitation{padding:15px}.lab-team-page .referral-team-total{padding:13px}.mobile-nav{padding:6px 6px max(6px,env(safe-area-inset-bottom))!important}.mobile-nav .mobile-nav-label{font-size:10px}.mobile-nav a{font-size:10px!important;gap:3px!important}.mobile-nav .mobile-nav-icon{height:27px!important;width:27px!important}.mobile-nav svg{width:23px!important;height:23px!important}}
@media(max-width:350px){.lab-material h3{font-size:13px}.lab-material .lab-product-facts{grid-template-columns:1fr}.lab-material .lab-product-facts>div+div strong{font-size:9px}.ref-home-actions{gap:7px}.ref-wallet .chem-balances small{font-size:8px}.lab-detail-heading h1{font-size:19px}}
:root[data-app-theme=dark] body{background:linear-gradient(#0b213b,#07182b);color:#e6f2ff}:root[data-app-theme=dark] .lab-header{background:linear-gradient(100deg,#143a63ee,#285884dd),url('assets/chemical-hero.png') right center/cover!important}:root[data-app-theme=dark] .lab-header .brand-name{color:#e9f5ff!important}:root[data-app-theme=dark] .ref-wallet,:root[data-app-theme=dark] .ref-account-menu,:root[data-app-theme=dark] .lab-material,:root[data-app-theme=dark] .lab-invitation,:root[data-app-theme=dark] .lab-team-page .referral-team-total,:root[data-app-theme=dark] .lab-team-page .referral-member,:root[data-app-theme=dark] .lab-detail-facts{background:#123351!important;color:#e8f4ff;border-color:#3c6385}:root[data-app-theme=dark] .ref-wallet .chem-balance,:root[data-app-theme=dark] .ref-account-menu>*,:root[data-app-theme=dark] .lab-invitation #invite-code,:root[data-app-theme=dark] .lab-account h1,:root[data-app-theme=dark] .page-head h1,:root[data-app-theme=dark] .ref-account .lab-account-person h2{color:#e8f4ff}:root[data-app-theme=dark] .lab-detail-facts>div:last-child{background:#17492e}:root[data-app-theme=dark] .lab-detail-facts .lab-detail-return{color:#8eed9b}:root[data-app-theme=dark] .mobile-nav{background:#0d2c48ed!important}:root[data-app-theme=dark] .mobile-nav a.active{background:#235184!important}
.auth-panel:before{width:100%!important;height:175px!important;left:0!important;right:0!important;top:0!important;bottom:auto!important;transform:none!important}.auth-ptbrs-brand:before,.auth-ptbrs-brand:after{display:none!important}.chem-home>.chem-hero{background:#d5efff}.chem-home>.chem-hero:before{background:linear-gradient(90deg,#e8f7fff2,#e1f3ffce 45%,#d7edff35)}.chem-home>.chem-hero h2{color:#063374}.chem-home>.chem-hero div{color:#063374}.chem-home>.chem-hero img{object-position:right center}.chem-home .chem-product-track{margin-top:12px}.chem-home .chem-product .chemical-photo{background-image:url('assets/chemical-plan-hero.png');background-size:cover;background-position:65% 60%}:root[data-app-theme=dark] .chem-home>.chem-hero:before{background:linear-gradient(90deg,#123351ed,#153957a8,transparent)}:root[data-app-theme=dark] .chem-home>.chem-hero h2{color:#e3f2ff}
/* Structural precision pass: art, compact catalog, review and expandable network. */
#app .reference-waves{position:absolute;bottom:-1px;left:0;width:100%;height:62px;pointer-events:none}
#app .reference-auth-art{position:absolute;inset:0 0 auto;height:210px;background:linear-gradient(90deg,#e7f5ff99,#b9e3ff33),url('assets/chemical-hero.png') right center/cover}
#app .auth-panel:before{display:none!important}#app .auth-reference-brand{height:184px}#app .auth-panel{min-height:670px}#app .auth-reference-content{padding:24px!important}
.reference-header-back,.reference-header-title{display:none}#app .shell[data-detail=true] .reference-header-back,#app .shell[data-detail=true] .reference-header-title{display:block}#app .shell[data-detail=true] .lab-header .brand{display:none}#app .reference-header-title{font-size:17px;font-weight:800}#app .reference-header-back{color:#052466}#app .reference-header-back svg{width:23px;height:23px}
#app .reference-plan{border:1px solid #c3def3;border-radius:15px;background:linear-gradient(130deg,#fff,#eaf5ff);box-shadow:0 3px 7px #1666a51a;min-width:0;overflow:hidden}
#app .reference-plan>a{display:grid;grid-template-columns:63px minmax(0,1fr) auto 10px;align-items:center;gap:10px;padding:12px;color:#052466;text-decoration:none;min-height:86px}
#app .reference-plan img{width:63px;height:64px;object-fit:cover;border-radius:9px}#app .reference-plan h3{font-size:14px;margin:0 0 5px;line-height:1.2}#app .reference-plan strong{font-size:17px}#app .reference-plan small{display:block;font-size:10px;margin-top:5px;color:#41607d}#app .reference-plan small b{color:#078f27}#app .reference-plan-rate{font-size:10px;font-weight:750;color:white;background:linear-gradient(#40cf61,#048f28);padding:6px 8px;border-radius:20px;white-space:nowrap}#app .reference-plan-arrow{font-size:26px}#app .reference-plan.is-locked{opacity:.55}#app .reference-plan.is-locked .reference-plan-rate{background:#71869d}
#app .reference-detail{max-width:820px;margin:0 auto 20px;overflow:hidden;border-radius:20px;background:linear-gradient(140deg,#fff,#edf7ff);border:1px solid #bfdcf2;box-shadow:0 7px 20px #28669c15}
#app .reference-detail-art{position:relative;height:225px}#app .reference-detail-art>img{width:100%;height:100%;object-fit:cover;object-position:center 55%}#app .reference-detail-sheet{padding:0 22px 22px;position:relative}#app .reference-detail-sheet>h1{display:table;position:relative;margin:-10px auto 24px;background:linear-gradient(#15a3ff,#0065db);color:#fff;padding:9px 23px;border-radius:12px;font-size:21px;text-align:center}
#app .reference-terms{margin:0 0 16px}#app .reference-terms>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0;border-bottom:1px solid #cbdff0}#app .reference-terms>div:last-child{border:0}#app .reference-terms span{display:flex;gap:10px;align-items:center;font-size:13px}#app .reference-terms svg{width:21px;height:21px;flex-shrink:0}#app .reference-terms strong{font-size:16px;white-space:nowrap}#app .reference-green{color:#078f27}#app .reference-total{display:flex;gap:18px;align-items:center;padding:17px 20px;background:linear-gradient(100deg,#e9ffdc,#c5f1d6);border-radius:14px;color:#078724;margin-bottom:18px}#app .reference-total>svg{width:37px;height:37px}#app .reference-total span{display:block;color:#052446;font-size:13px}#app .reference-total strong{font-size:28px;display:block;margin-top:4px;letter-spacing:-.7px}
#app .reference-quantity{margin:12px 0;font-size:12px}#app .reference-quantity summary{cursor:pointer;color:#3a6186;padding:8px 0}#app .reference-quantity summary span{float:right}#app .reference-quantity .quantity{max-width:170px;margin:10px auto}#app .reference-buy{min-height:49px;font-size:17px}#app .reference-preview-note,.reference-review .reference-preview-note{font-size:10px;color:#55718b;text-align:center;line-height:1.5;margin:14px 0 0}
dialog.reference-checkout-modal{max-width:440px;width:calc(100% - 26px);padding:22px;background:linear-gradient(140deg,#fff,#edf7ff);border:1px solid #bbd9f1;border-radius:22px;color:#06215b}.reference-review h2{display:flex;align-items:center;gap:14px;font-size:20px;margin:0 0 20px}.reference-review h2 svg{width:23px;height:23px}.reference-review-product{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #bfdcf2;border-radius:14px;padding:10px;margin-bottom:16px}.reference-review-product img{width:60px;height:65px;object-fit:cover;border-radius:8px}.reference-review-product strong,.reference-review-product b,.reference-review-product small{display:block}.reference-review-product strong{font-size:13px}.reference-review-product b{margin:4px 0;font-size:16px}.reference-review-product small{font-size:10px}.reference-review-product>span{font-size:10px;border-radius:15px;padding:5px;color:#078724;background:#d5f7d4}.reference-review .reference-terms>div{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #cbdff0;gap:10px}.reference-review .reference-terms span{font-size:12px;display:flex;align-items:center;gap:8px}.reference-review svg{width:21px;height:21px}.reference-review .reference-terms strong{font-size:14px;white-space:nowrap}.reference-review .reference-green{color:#078f27}.reference-review .reference-total{display:flex;align-items:center;gap:15px;background:#daf7df;padding:17px;border-radius:12px;margin:14px 0}.reference-review .reference-total span{display:block;font-size:12px}.reference-review .reference-total strong{display:block;color:#078724;font-size:26px}.reference-review #reference-review-cancel{display:block;margin:12px auto 0}.reference-review #reference-checkout-error{color:#ac253c;font-size:12px}
#app .reference-invite{padding:17px;border:1px solid #c5def3;border-radius:14px;background:#fff;margin:0 0 17px}#app .reference-invite>label{font-size:14px;font-weight:750}#app .reference-invite>div{display:flex;gap:7px;margin:9px 0}#app .reference-invite input{min-width:0;width:100%;font-size:12px;border:1px solid #c4ddf1;border-radius:9px;padding:12px;background:#f7fbff}#app .reference-invite button svg{width:20px;height:20px}#app .reference-invite summary{font-size:11px;cursor:pointer}#app .reference-invite details>div{display:flex;gap:8px;margin-top:10px}
#app .reference-network-rates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:linear-gradient(#fff,#e3f3ff);border:1px solid #c5def3;border-radius:13px;padding:12px 0;box-shadow:0 3px 7px #1666a51a;margin:0 0 16px}#app .reference-network-rates button{background:none;border:0;border-right:1px solid #bbd7ee;padding:4px;color:#052466;font-weight:750;cursor:pointer}#app .reference-network-rates button:last-child{border:0}#app .reference-network-rates strong{display:block;color:#079227;font-size:24px;margin-top:6px}#app .reference-network-summary{display:flex;width:100%;align-items:center;gap:14px;padding:15px;margin:10px 0;background:linear-gradient(110deg,#fff,#e8f5ff);border:1px solid #c3def3;border-radius:13px;color:#052466;text-align:left;cursor:pointer}#app .reference-network-summary>span{display:grid;gap:4px;font-size:13px}#app .reference-network-summary strong{font-size:20px}#app .reference-network-summary>b:last-child{margin-left:auto;font-size:25px}#app .reference-network-details{margin:20px 0}#app .reference-network-details>summary{cursor:pointer;font-size:13px;color:#2369a4;padding:12px}#app .reference-pix-emblem{width:76px;margin:2px auto 15px}#app .reference-pix-emblem svg{width:100%;height:76px}
@media(max-width:700px){#app .lab-header{height:63px!important;padding:10px 17px!important}#app .lab-header .brand-name{font-size:13px!important}#app .content{padding:16px 14px 94px!important}#app .reference-detail-art{height:182px}#app .reference-detail-sheet{padding:0 17px 18px}#app .reference-detail-sheet>h1{font-size:18px;margin-bottom:14px}#app .reference-terms>div{padding:12px 0}#app .reference-terms span{font-size:12px}#app .reference-terms strong{font-size:14px}#app .reference-plan>a{gap:8px;grid-template-columns:53px minmax(0,1fr) auto 8px;padding:10px}#app .reference-plan img{width:53px;height:61px}#app .reference-plan h3{font-size:12px}#app .reference-plan strong{font-size:15px}#app .reference-plan small{font-size:9px}#app .reference-plan-rate{font-size:9px;padding:5px 6px}#app .auth-reference{padding:12px 8px}#app .auth-reference-content{padding:24px 18px!important}#app .reference-home>.chem-hero{height:105px;min-height:105px}#app .reference-home>.chem-hero h2{font-size:22px}.concept-banner{font-size:8px}.demo-account-banner{font-size:8px}#app .mobile-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}#app .reference-network-rates button{font-size:12px}}
@media(min-width:701px){#app .reference-detail{display:grid;grid-template-columns:1fr 1fr}#app .reference-detail-art{height:100%;min-height:440px}#app .reference-detail-art .reference-waves{display:none}#app .reference-detail-sheet{padding-top:25px}#app .reference-detail-sheet>h1{margin:0 auto 20px}}
#app .reference-waves path{stroke:none!important;stroke-width:0!important}#app .reference-network-summary>div{display:grid;gap:5px;font-size:13px}#app .reference-network-summary>span:first-child{font-size:22px;color:#0084ed}#app .reference-invite>div>button{background:#007bef;color:#fff;border:0;border-radius:9px;padding:10px;cursor:pointer}#app .reference-invite>div>button svg{stroke:currentColor}
/* Blue wallet summary; existing amounts and actions are preserved. */
.ref-wallet{padding:10px!important;border:1px solid #bbdefd;border-radius:18px;box-shadow:0 6px 15px #1678b52b}.ref-wallet:before{display:none}
.ref-wallet-primary{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:12px;padding:16px;background:linear-gradient(120deg,#007ef1,#0047af 50%,#02baff);border:1px solid #4bc6ff;border-radius:13px;color:#fff;min-height:106px}
.ref-wallet-primary:before,.ref-wallet-primary:after{content:'';position:absolute;z-index:-1;pointer-events:none;width:220px;height:120px;right:-74px;bottom:-71px;border:1px solid #9cecff80;border-radius:50%;transform:rotate(-25deg);background:#52d5ff55}.ref-wallet-primary:after{right:-110px;bottom:-42px;background:#78e7ff45;transform:rotate(-36deg)}
.ref-wallet-symbol{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #a6eaff90;border-radius:13px;background:linear-gradient(#3ad3ff99,#ffffff12);box-shadow:inset 0 1px 2px #ffffff70}.ref-wallet-symbol svg{width:29px;height:29px;stroke:#fff}.ref-wallet-primary-content{min-width:0;flex:1}
.ref-wallet .chem-wallet-title{gap:8px;font-size:13px;color:#fff}.ref-wallet .chem-wallet-title strong{font-weight:650}.ref-wallet .chem-wallet-title .icon-btn{width:28px;height:28px;min-width:28px;min-height:28px;background:#ffffff20;border:1px solid #ffffff30;border-radius:50%;color:#fff}.ref-wallet .chem-wallet-title svg{stroke:#fff;width:19px;height:19px}.ref-wallet .chem-balance{color:#fff;font-size:32px!important;line-height:1.12;margin:5px 0 0;overflow-wrap:anywhere}
.ref-wallet .chem-balances{gap:10px;margin-top:12px!important}.ref-wallet .chem-balances>div{min-width:0;gap:9px;padding:12px 10px;background:linear-gradient(125deg,#fff,#e5f2ff);border:1px solid #bfddfa;border-left:5px solid #27c639;border-radius:13px;box-shadow:0 5px 9px #0872bf20}.ref-wallet .chem-balances>div:nth-child(2){border-left-color:#9257ee}.ref-wallet .chem-balances span{min-width:0;gap:4px}.ref-wallet .chem-balances svg{width:27px;height:27px;stroke:#199b2b}.ref-wallet .chem-balances>div:nth-child(2) svg{stroke:#7041d3}.ref-wallet .chem-balances small{font-size:10px;line-height:1.2;color:#101d43}.ref-wallet .chem-balances b{font-size:18px;line-height:1.15;color:#0b1645;overflow-wrap:anywhere}.ref-wallet .ref-statement{position:relative;min-height:30px;margin-top:3px;margin-bottom:-4px}
@media(max-width:360px){.ref-wallet-primary{padding:12px;gap:9px}.ref-wallet-symbol{width:39px;height:42px}.ref-wallet .chem-wallet-title{font-size:11px;gap:5px}.ref-wallet .chem-balance{font-size:28px!important}.ref-wallet .chem-balances>div{padding:10px 7px;gap:6px}.ref-wallet .chem-balances svg{width:21px;height:21px}.ref-wallet .chem-balances b{font-size:15px}.ref-wallet .chem-balances small{font-size:9px}}
:root[data-app-theme=dark] .ref-wallet .chem-balances>div{background:linear-gradient(125deg,#153b60,#102b4b)}:root[data-app-theme=dark] .ref-wallet .chem-balances small,:root[data-app-theme=dark] .ref-wallet .chem-balances b{color:#edf7ff}
/* Compact bottom navigation: retain accessible tap targets and safe-area inset. */
@media(max-width:700px){
 #app .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;justify-content:stretch!important;gap:0!important;min-height:0!important;height:calc(54px + env(safe-area-inset-bottom))!important;padding:3px 8px calc(3px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important}
 #app .mobile-nav a{min-width:0!important;min-height:44px!important;padding:3px 4px!important;gap:2px!important;line-height:1.1!important;border-radius:10px!important}
 #app .mobile-nav .mobile-nav-icon{width:22px!important;height:22px!important;min-height:0!important}
 #app .mobile-nav svg{width:20px!important;height:20px!important}
 #app .mobile-nav .mobile-nav-label{font-size:10px!important;line-height:1.15!important;white-space:nowrap}
 #app .content{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}
}

/* Checkout confirmation: isolated light/dark dialog treatment. */
dialog#modal.reference-checkout-modal {
  box-sizing: border-box; inset: 0; margin: auto;
  width: min(420px, calc(100vw - 32px)); max-width: 420px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 18px; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; border: 1px solid #bed2e5;
  border-radius: 16px; background: #f4f8fc; color: #102c49;
  box-shadow: 0 18px 60px #00162a80;
}
dialog#modal.reference-checkout-modal::backdrop {
  background: rgba(2, 12, 25, .68);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
dialog#modal.reference-checkout-modal .reference-review {
  min-width: 0; background: transparent; color: inherit;
}
dialog#modal.reference-checkout-modal h2 {
  margin: 0 0 14px; font-size: 20px; line-height: 1.25; color: #102c49;
}
dialog#modal.reference-checkout-modal .reference-review-product { margin-bottom: 10px; }
dialog#modal.reference-checkout-modal .reference-terms > div { padding: 10px 0; gap: 10px; }
dialog#modal.reference-checkout-modal .reference-terms span { min-width: 0; }
dialog#modal.reference-checkout-modal .reference-total { margin: 10px 0; padding: 12px; }
dialog#modal.reference-checkout-modal #reference-review-cancel { margin: 9px auto 0; }
dialog#modal.reference-checkout-modal button:focus-visible { outline: 2px solid #30a5f4; outline-offset: 2px; }
dialog#modal.reference-checkout-modal button:focus:not(:focus-visible) { outline: none; }
:root[data-app-theme=dark] dialog#modal.reference-checkout-modal {
  color: #edf5ff; background: #122438; border-color: #36506a;
}
:root[data-app-theme=dark] dialog#modal.reference-checkout-modal h2 { color: #f1f7ff; }
:root[data-app-theme=dark] dialog#modal.reference-checkout-modal button:focus-visible { outline-color: #70d6ff; }
@media (max-width: 380px) {
  dialog#modal.reference-checkout-modal { padding: 14px; }
  dialog#modal.reference-checkout-modal .reference-review-product { grid-template-columns: 52px minmax(0,1fr) auto; }
  dialog#modal.reference-checkout-modal .reference-review-product img { width: 52px; height: 56px; }
}

dialog#modal.reference-checkout-modal #reference-confirm { color: #ffffff; }
