:root{--navy:#102749;--navy2:#173761;--gold:#ebc68e;--cream:#f8f6f1;--white:#fff;--ink:#152236;--muted:#6f7b8c;--line:#e2e6ea;--green:#217a61;--yellow:#9b6a20;--red:#a64444;--blue:#3473c9}
.cloud-auth{position:fixed;z-index:1000;inset:0;display:flex;flex-direction:column;justify-content:center;gap:28px;padding:32px 22px;background:radial-gradient(circle at 18% 12%,#284d7b 0,transparent 36%),linear-gradient(145deg,#102749,#081a33);overflow:auto}.cloud-auth.hidden{display:none}.cloud-auth-brand{display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto auto;align-items:center;gap:2px 12px;width:min(100%,440px);margin:0 auto;color:#fff}.higi-symbol{grid-row:1/3;display:grid;width:54px;height:54px;place-items:center;color:#102749;background:linear-gradient(145deg,#f8e6bd,#cf9d49);border-radius:16px;font-size:27px}.cloud-auth-brand strong{font-family:Georgia,serif;font-size:27px}.cloud-auth-brand small{color:#bfcce0}.cloud-auth-card{display:grid;gap:15px;width:min(100%,440px);margin:0 auto;padding:26px 22px;background:#fff;border-radius:24px;box-shadow:0 22px 55px #0005}.cloud-auth-card h1{margin:0;color:#102749;font-family:Georgia,serif;font-size:31px;font-weight:400}.cloud-auth-card>p{margin:0;color:#6d7785;line-height:1.5}.cloud-auth-card label{display:grid;gap:7px;color:#17243a;font-size:14px;font-weight:700}.cloud-auth-card input{width:100%;min-height:54px;padding:0 15px;border:1px solid #d8dee5;border-radius:13px;font-size:16px}.cloud-auth-card>small{color:#7c8795;text-align:center;line-height:1.45}.auth-eyebrow{color:#9b7738;font-size:12px;font-weight:800;letter-spacing:.16em}.cloud-auth-message{min-height:20px!important;color:#a14444!important;font-size:13px}
*{box-sizing:border-box}html{background:var(--navy)}body{margin:0;background:linear-gradient(150deg,#fbfaf7,#eef3f4);color:var(--ink);font:14px Arial,sans-serif;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}main{max-width:700px;margin:auto;padding:0 14px 100px}.hidden{display:none!important}
.app-header{height:74px;padding:env(safe-area-inset-top) 18px 0;background:var(--navy);color:#fff;display:flex;align-items:center;gap:11px;position:sticky;top:0;z-index:20;box-shadow:0 5px 18px #07172c22}.app-header>div:nth-child(2){display:flex;flex-direction:column}.app-header strong{font-size:17px}.app-header small{font-size:11px;color:var(--gold);margin-top:2px}.logo{width:42px;height:42px;border-radius:13px;background:var(--gold);color:var(--navy);font-weight:900;display:grid;place-items:center;overflow:hidden;flex:none}.logo.large{width:72px;height:72px;border-radius:22px;margin:auto}.logo img{display:none;width:100%;height:100%;object-fit:cover}.logo.has-image img{display:block}.logo.has-image span{display:none}.icon-btn{position:relative;margin-left:auto;width:40px;height:40px;border:1px solid #ffffff2d;border-radius:12px;background:#ffffff12;color:#fff;display:grid;place-items:center}.notification-count{position:absolute;right:-4px;top:-5px;min-width:17px;height:17px;border-radius:12px;background:var(--gold);color:var(--navy);font-size:9px;display:grid;place-items:center}.nav-svg{width:22px;height:22px;display:inline-grid;place-items:center}.nav-svg svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.screen{display:none}.screen.active{display:block}.page-title{padding:27px 5px 18px}.page-title span,.agenda-hero+span{color:#93672f;font-weight:800;letter-spacing:1.6px;font-size:9px}.page-title h2{font:500 32px/1.05 Georgia,serif;color:var(--navy);margin:7px 0}.page-title p{color:var(--muted);line-height:1.45;margin:0}.row-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.round-add,.close-round{width:45px;height:45px;border:0;border-radius:14px;background:var(--navy);color:#fff;font-size:25px;flex:none}.close-round{background:#e9edf0;color:var(--navy)}.sub-title{display:flex;gap:12px;align-items:center}.sub-title>div{min-width:0}.back-more{width:38px;height:38px;border:0;border-radius:12px;background:#e9edf1;color:var(--navy);font-size:28px;flex:none}
.agenda-hero{padding:28px 4px 15px;display:flex;gap:12px;align-items:flex-end;justify-content:space-between}.agenda-hero h1{font:500 29px Georgia,serif;color:var(--navy);margin:0 0 5px}.agenda-hero p{margin:0;color:var(--muted)}.gold-button{border:0;border-radius:12px;background:var(--gold);color:var(--navy);padding:12px 14px;font-weight:800;white-space:nowrap}.view-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;background:#e7ecef;border-radius:13px;padding:4px;margin:8px 0 14px}.view-tabs button{border:0;border-radius:10px;background:transparent;padding:10px;color:var(--muted);font-weight:700;font-size:11px}.view-tabs button.active{background:#fff;color:var(--navy);box-shadow:0 3px 10px #10274912}
.appointment-feature,.card,.quote-result,.product-card,.combo-card,.client-card,.quote-list-card,.policy-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:12px;box-shadow:0 10px 30px #1027490b}.appointment-feature:empty{display:none}.feature-head,.section-head,.quote-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.feature-head small{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:1px}.status-pill{border-radius:20px;padding:5px 9px;background:#edf3fb;color:#2b67ac;font-size:8px;font-weight:800;text-transform:uppercase}.status-pill.realizado,.status-pill.pago,.health-good{background:#e3f3ec;color:var(--green)}.status-pill.cancelado,.health-bad{background:#f7e7e7;color:var(--red)}.status-pill.pendente,.health-warn{background:#fff1d9;color:#835c23}.feature-time{font:42px Georgia,serif;color:var(--navy);margin:12px 0 5px}.feature-client{font-size:18px;font-weight:800}.feature-meta{display:flex;gap:9px;align-items:center;color:#536171;margin-top:8px;font-size:11px}.feature-meta svg{display:block;width:22px;height:22px;min-width:22px;max-width:22px;fill:none;stroke:#a8752e;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.feature-actions,.mini-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.mini-button{border:1px solid #d8dee4;border-radius:9px;background:#fff;color:var(--navy);padding:8px 10px;font-size:9px;font-weight:700}.section-head{margin:18px 3px 10px}.section-head.compact{margin:0 0 12px}.section-head h2,.section-head h3{font-size:14px;margin:0;color:var(--navy)}.section-head button{border:0;background:transparent;color:#93672f;font-weight:700;font-size:10px}.agenda-item{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px;margin-bottom:8px;display:grid;grid-template-columns:58px 1fr auto;gap:9px;align-items:center}.agenda-item time{color:var(--navy);font-weight:800}.agenda-item div{display:flex;flex-direction:column}.agenda-item strong{font-size:11px}.agenda-item small{font-size:9px;color:var(--muted);margin-top:3px}.agenda-item button{border:0;background:#edf1f4;color:var(--navy);border-radius:9px;width:32px;height:32px}.alert-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.alert-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px;text-align:left;color:var(--ink);display:grid;grid-template-columns:32px 1fr;gap:9px;align-items:center}.alert-card .nav-svg{color:#b37a26;width:30px;height:30px}.alert-card b{display:block;font-size:17px;color:var(--navy)}.alert-card span:last-child{font-size:9px;color:var(--muted)}
.grid{display:grid;gap:11px}.grid.two{grid-template-columns:1fr 1fr}label{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:700;color:#596678;margin-bottom:11px}input,select,textarea{width:100%;padding:12px;border:1px solid #dce1e5;border-radius:10px;background:#fbfcfc;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#b7843e;box-shadow:0 0 0 3px #ebc68e35}.filter-row{display:grid;grid-template-columns:145px 1fr;gap:8px;margin-bottom:12px}.step{display:flex;gap:11px;align-items:center;margin-bottom:15px}.step>b{width:28px;height:28px;border-radius:9px;background:var(--navy);color:var(--gold);display:grid;place-items:center;font-size:11px}.step>div{display:flex;flex-direction:column}.step strong{font-size:14px}.step small{font-size:9px;color:var(--muted);margin-top:3px}
.hidden-photo-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.photo-gallery.photo-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:5px}.photo-thumb,.photo-add-slot{position:relative;min-height:118px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#f4f6f7}.photo-thumb img{width:100%;height:118px;object-fit:cover;display:block}.photo-thumb button{position:absolute;right:7px;top:7px;width:28px;height:28px;border:0;border-radius:50%;background:#102749e8;color:#fff;font-size:18px;line-height:1}.photo-slot-label{position:absolute;left:7px;bottom:7px;background:#fffdf1e8;color:var(--navy);border-radius:7px;padding:4px 7px;font-size:8px;font-weight:800}.photo-add-slot{border:1.5px dashed #aebac5;color:var(--navy);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:118px}.photo-add-slot b{font-size:24px;font-weight:400;line-height:1}.photo-add-slot strong{font-size:10px}.photo-add-slot small{font-size:8px;color:var(--muted)}.photo-limit-text{display:block;margin-top:8px;color:var(--muted);font-size:8px}.photo-limit-text.reached{color:#8d652f;font-weight:700}.consent-check{border:1px solid #dfe4e8;background:#f8fafb;border-radius:11px;padding:10px;display:flex;flex-direction:row;gap:9px;align-items:flex-start;margin-top:10px;line-height:1.4}.consent-check input{width:18px;height:18px;accent-color:var(--navy);flex:none}.primary{width:100%;border:0;border-radius:11px;padding:14px 16px;background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;font-weight:700;margin-top:12px;box-shadow:0 9px 22px #10274925}.secondary{width:100%;border:1px solid #cdd4dc;border-radius:11px;padding:12px;background:#fff;color:var(--navy);font-weight:700;margin-top:8px}.whatsapp-btn{width:100%;border:0;border-radius:11px;padding:14px;background:#1f9d63;color:#fff;font-weight:700;margin-top:10px}.text-btn{border:0;background:transparent;color:#8d652f;padding:10px 0;font-weight:700}.danger-button{width:100%;border:1px solid #e3bcbc;border-radius:11px;padding:12px;background:#fff3f3;color:var(--red);font-weight:700}
.message-editor{min-height:260px;line-height:1.55}.token-list{display:flex;gap:6px;flex-wrap:wrap}.token-list button{border:1px solid var(--line);background:#f5f7f8;color:var(--navy);border-radius:18px;padding:8px 10px;font-size:9px}.message-preview{white-space:pre-line;font-size:11px;line-height:1.55}.profit-row{border-top:1px dashed var(--line);padding:10px 0}.profit-row:first-child{border-top:0}.profit-head{display:flex;justify-content:space-between;gap:10px;font-size:11px}.profit-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:6px}.profit-meta span{background:#f5f7f8;border-radius:8px;padding:7px;font-size:8px;color:var(--muted)}.profit-meta b{display:block;color:var(--navy);font-size:10px;margin-top:2px}.storage-bar{height:7px;border-radius:7px;background:#e7ebee;overflow:hidden;margin-top:7px}.storage-bar span{display:block;height:100%;background:var(--green)}.storage-bar.warn span{background:#d49435}.storage-bar.bad span{background:var(--red)}
.choice-grid{display:grid;gap:7px;margin-bottom:13px}.choice-grid.services{grid-template-columns:repeat(3,1fr)}.choice-grid.three{grid-template-columns:repeat(3,1fr)}.choice-grid button{border:1px solid var(--line);border-radius:11px;background:#fbfbfa;color:#596575;padding:10px 5px;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.choice-grid button i{font-style:normal;width:26px;height:26px}.choice-grid button small{font-size:8px;color:var(--muted)}.choice-grid button.active{border-color:#b6823b;background:#fcf6eb;color:var(--navy);box-shadow:0 0 0 1px #b6823b}.field-label{display:block;font-size:10px;font-weight:700;color:#596678;margin:4px 0 8px}.product-checks{display:grid;gap:7px}.check-row{border:1px solid var(--line);border-radius:11px;padding:10px;display:flex;align-items:center;gap:10px;flex-direction:row}.check-row input{width:18px;height:18px;accent-color:var(--navy)}.check-row div{display:flex;flex-direction:column}.check-row strong{font-size:12px}.check-row small{font-size:9px;color:var(--muted)}.check-row.warning{border-color:#dba85d;background:#fff8eb}
.quote-result{padding:20px}.quote-top{display:flex;align-items:center;gap:9px}.quote-top .logo{width:35px;height:35px}.quote-top>div:nth-child(2){display:flex;flex-direction:column}.quote-top strong{font-size:11px;letter-spacing:1px}.quote-top small{font-size:7px;color:var(--muted)}.quote-top>span{margin-left:auto;font:14px Georgia,serif}.client{border-top:9px solid var(--navy);margin:16px -20px 0;padding:14px 20px 10px;display:flex;flex-direction:column}.client small{font-size:8px;color:var(--muted)}.client strong{font-size:14px;margin-top:3px}.result-photo{display:none;width:100%;height:165px;object-fit:cover;border-radius:12px}.result-photo.visible{display:block}.service-line{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:11px}.products-result{background:#f2f7f5;border:1px solid #dce8e4;border-radius:13px;padding:13px;margin-top:12px}.products-result h3{font-size:9px;letter-spacing:1px;color:var(--green);margin:0 0 7px}.product-result-row{padding:8px 0;border-top:1px dashed #d4e2dd;font-size:10px}.product-result-row:first-child{border:0}.product-result-row>div{display:flex;justify-content:space-between;gap:8px}.product-result-row small{display:block;color:#68766f;margin-top:3px}.solution-total{border-top:1px solid #cadbd5;margin-top:8px;padding-top:9px;font-size:10px;font-weight:800;color:var(--green)}.financial-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.financial-summary div{border-radius:11px;background:#f5f7f8;padding:10px;display:flex;flex-direction:column}.financial-summary small{font-size:7px;color:var(--muted);letter-spacing:.7px}.financial-summary b{font-size:12px;margin-top:4px;color:var(--navy)}.quote-result details{margin-top:10px;border-bottom:1px solid var(--line)}.quote-result summary{padding:10px 0;font-size:10px;color:var(--muted)}.cost-row,.payment-row,.report-row,.expense-row{display:flex;justify-content:space-between;gap:10px;font-size:10px;padding:7px 0;border-top:1px dashed #dce1e4}.cost-row span,.payment-row span,.report-row span{color:var(--muted)}.discount-line{margin-top:10px;padding:10px;border-radius:10px;background:#edf8f3;color:var(--green);font-size:10px;text-align:center}.total{text-align:center;background:#fdf7ed;border:1px solid #efdfc2;border-radius:13px;padding:15px;margin-top:13px;display:flex;flex-direction:column}.total small{font-size:8px;letter-spacing:1.4px;color:#946e38}.total strong{font:30px Georgia,serif;color:var(--navy);margin:3px}.total span{font-size:8px;color:#8f836f}.payment-options{margin-top:11px;border:1px solid #d8e3e9;border-radius:13px;background:#f7fafb;padding:11px 13px}.payment-caption{font-size:8px;letter-spacing:1.2px;color:#657889;font-weight:800;margin-bottom:5px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}.actions .primary{margin-top:10px}
.quote-list-card{padding:14px}.quote-card-head>div{display:flex;flex-direction:column}.quote-card-head strong{font-size:13px}.quote-card-head small{font-size:9px;color:var(--muted);margin-top:3px}.quote-card-value{display:flex;align-items:end;justify-content:space-between;margin-top:11px}.quote-card-value strong{font:21px Georgia,serif;color:var(--navy)}.quote-card-value small{color:var(--muted);font-size:8px}.quote-card-controls{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.quote-card-controls select,.quote-card-controls button{padding:9px;border-radius:9px;font-size:9px}.quote-card-controls button{border:0;background:#edf2f5;color:var(--navy);font-weight:700}
.quote-card-controls:has(select) select{grid-column:1/-1}.client-pending-quotes{display:grid;gap:9px}.client-pending-quotes article{border:1px solid var(--line);border-radius:12px;background:#f8fafb;padding:11px;display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center}.client-pending-quotes article>div:first-child{display:flex;flex-direction:column;gap:3px}.client-pending-quotes small{font-size:8px;color:var(--muted)}.client-pending-quotes article>strong{color:var(--navy)}.client-pending-quotes article>div:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.5fr;gap:7px}.client-pending-quotes button{border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);padding:9px;font-size:9px;font-weight:800}.empty-state.compact{padding:18px 8px}.dialog-feedback{margin:12px 0 0;padding:10px 12px;border:1px solid #e0b1b1;border-radius:10px;background:#fff3f3;color:#853b3b;font-size:10px;line-height:1.45}
.client-card{padding:15px}.client-card-head{display:flex;align-items:center;gap:10px}.client-avatar{width:39px;height:39px;border-radius:12px;background:#edf1f5;color:var(--navy);display:grid;place-items:center;font-weight:800}.client-card-head div{display:flex;flex-direction:column;min-width:0}.client-card-head strong{font-size:13px}.client-card-head small{font-size:9px;color:var(--muted);margin-top:2px}.client-card-head button{margin-left:auto;border:0;border-radius:9px;background:#f2f4f5;color:var(--navy);padding:8px;font-size:9px}.client-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:11px}.client-stats span{background:#f7f8f8;border-radius:8px;padding:8px;font-size:7px;color:var(--muted)}.client-stats b{display:block;color:var(--ink);margin-top:3px;font-size:9px}.maintenance-notice{background:#edf8f3;border:1px solid #bcded1;border-radius:11px;color:#21644f;padding:11px;font-size:10px;line-height:1.45}.empty-state{text-align:center;color:var(--muted);padding:40px 20px;display:flex;flex-direction:column;gap:7px}.empty-state b{color:var(--navy)}.history-item{border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:8px}.history-top{display:flex;justify-content:space-between;gap:10px}.history-top div{display:flex;flex-direction:column}.history-top strong{font-size:11px}.history-top small{font-size:8px;color:var(--muted);margin-top:3px}.history-value{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.history-value strong{font:18px Georgia,serif;color:var(--navy)}
.notice{margin-top:12px;padding:11px;border-radius:11px;background:#edf4f6;color:#43586b;font-size:10px;line-height:1.5}
.health-card{border-radius:18px;padding:18px;margin-bottom:10px}.health-card h3{margin:0 0 5px;font-size:18px}.health-card p{margin:0;font-size:10px;line-height:1.5}.metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}.metric-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px;display:flex;flex-direction:column}.metric-card small{font-size:8px;color:var(--muted);letter-spacing:.6px}.metric-card b{font:20px Georgia,serif;color:var(--navy);margin-top:5px}.expense-row{align-items:center}.expense-row>div{display:flex;flex-direction:column}.expense-row small{font-size:8px;color:var(--muted);margin-top:2px}.expense-row button{border:0;background:#f6eaea;color:var(--red);border-radius:8px;padding:7px}.ai-finance p{color:var(--muted);font-size:10px;line-height:1.5}.analysis-box{background:#f2f6fa;border-radius:12px;padding:13px;margin-top:10px;font-size:10px;line-height:1.55}.analysis-box ul{padding-left:18px;margin-bottom:0}
.more-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.more-grid button{min-height:130px;border:1px solid var(--line);border-radius:17px;background:#fff;color:var(--navy);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:18px;box-shadow:0 9px 24px #10274909}.more-grid .nav-svg{width:30px;height:30px;color:#a8752e;margin-bottom:12px}.more-grid b{font-size:13px}.more-grid small{font-size:9px;color:var(--muted);margin-top:4px}
.product-card,.combo-card{padding:15px}.card-head{display:flex;align-items:start}.card-head div{display:flex;flex-direction:column}.card-head strong{font-size:14px}.card-head small{font-size:9px;color:var(--muted);margin-top:3px}.card-head button{margin-left:auto;border:0;background:#eef1f3;color:var(--navy);border-radius:9px;padding:8px}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}.mini-grid div{background:#f6f8f8;border-radius:9px;padding:8px;display:flex;flex-direction:column}.mini-grid small{font-size:7px;color:var(--muted)}.mini-grid strong{font-size:10px;margin-top:3px}.combo-products{font-size:10px;color:var(--muted);margin-top:10px}.calibration-card{background:#fff8e9;border:1px solid #ecd29e;border-radius:13px;padding:13px;margin-bottom:10px}.calibration-card strong{font-size:11px}.calibration-card p{font-size:9px;line-height:1.45;color:#755421}.calibration-card button{border:0;border-radius:8px;background:var(--navy);color:#fff;padding:8px;font-size:9px}.consumption-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.consumption-matrix{display:grid;gap:9px}.consumption-row{border:1px solid var(--line);background:#f8faf9;border-radius:11px;padding:10px;display:grid;grid-template-columns:1fr repeat(3,minmax(0,1fr));gap:7px;align-items:end}.consumption-row>strong{font-size:10px;color:var(--navy)}.consumption-row label{font-size:7px;margin:0}.consumption-row input{padding:8px 5px;font-size:10px}.checkbox-list{display:grid;gap:7px}.checkbox-list label{border:1px solid var(--line);padding:10px;border-radius:10px;display:flex;flex-direction:row;align-items:center;margin:0}.checkbox-list input{width:18px}
.hourly-summary{margin-top:6px;border-radius:12px;background:#edf4f6;padding:12px;display:flex;flex-direction:column;gap:4px}.hourly-summary span{font-size:8px;letter-spacing:1px;color:#607383}.hourly-summary b{font:22px Georgia,serif;color:var(--navy)}.hourly-summary small,.help-text{font-size:8px;line-height:1.45;color:var(--muted)}.market-prices{display:grid;gap:9px;margin-top:12px}.market-price-row{border:1px solid var(--line);border-radius:12px;padding:11px;display:grid;grid-template-columns:1fr repeat(3,minmax(0,1fr));gap:7px;align-items:end}.market-price-row>strong{font-size:10px;color:var(--navy)}.market-price-row label{font-size:7px;margin:0}.market-price-row input{padding:8px 5px;font-size:10px}.region-row{display:grid;grid-template-columns:1fr 110px 35px;gap:7px;align-items:center;margin-bottom:7px}.region-row input{margin:0}.region-row button{border:0;background:#f6eaea;color:var(--red);height:38px;border-radius:9px}.logo-upload{position:relative}.logo-upload input{position:absolute;opacity:0;pointer-events:none}.logo-upload span{display:block;text-align:center;border:1px dashed #b9c3cd;border-radius:10px;padding:13px;background:#f8faf9;color:var(--navy)}.backup-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.backup-actions .secondary{margin:0}.restore-backup{position:relative;display:grid;place-items:center;margin:0;border:1px solid #c9a56c;border-radius:11px;background:#fff8ed;color:#805c26;font-size:11px;font-weight:700;padding:12px}.restore-backup input{position:absolute;inset:0;opacity:0}.policy-card h3{color:var(--navy)}.policy-card h4{font-size:11px;margin:16px 0 5px}.policy-card p,.policy-card li{font-size:9px;line-height:1.55;color:#596678}.policy-card ul{padding-left:18px}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:75px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);display:flex;z-index:25;box-shadow:0 -8px 28px #10274912}.bottom-nav button{flex:1;min-width:0;border:0;background:transparent;color:#8994a0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:2px}.bottom-nav .nav-svg{width:22px;height:22px}.bottom-nav span:last-child{font-size:8px;white-space:nowrap}.bottom-nav button.active{color:var(--navy);font-weight:800}.bottom-nav button.active .nav-svg{background:#faebcf;border-radius:9px;padding:5px;width:33px;height:33px}
dialog{width:min(92%,540px);border:0;border-radius:20px;padding:0;box-shadow:0 30px 80px #07122588}dialog::backdrop{background:#0b1d35aa;backdrop-filter:blur(4px)}dialog form{padding:20px;max-height:88vh;overflow:auto}.dialog-head{display:flex;justify-content:space-between;margin-bottom:14px}.dialog-head span{font-size:9px;letter-spacing:1.5px;color:#946b33}.dialog-head h2{font:25px Georgia,serif;margin:5px 0;color:var(--navy)}.dialog-head button{border:0;border-radius:50%;width:34px;height:34px;font-size:20px}.lock-screen{position:fixed;inset:0;z-index:100;background:linear-gradient(145deg,#0b1f3c,#173761);display:grid;place-items:center;padding:25px}.lock-card{width:min(100%,380px);background:#fff;border-radius:24px;padding:27px;text-align:center}.lock-card h1{font:30px Georgia,serif;color:var(--navy);margin:14px 0 4px}.lock-card p{color:var(--muted);margin:0 0 20px}#toast{position:fixed;left:50%;bottom:88px;transform:translate(-50%,20px);background:#152236;color:#fff;padding:10px 16px;border-radius:20px;font-size:10px;opacity:0;pointer-events:none;transition:.25s;z-index:120}#toast.show{opacity:1;transform:translate(-50%,0)}
.message-dialog{width:min(88%,420px)}.message-dialog form{padding:24px}.message-brand{color:#a8752e;font-size:9px;font-weight:800;letter-spacing:1.7px}.message-dialog h2{font:25px Georgia,serif;color:var(--navy);margin:7px 0 9px}.message-dialog p{color:#536171;font-size:11px;line-height:1.55;margin:0 0 17px;white-space:pre-line}.message-dialog label{margin:0 0 17px}.message-dialog label span{color:#536171;font-size:9px}.message-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.message-actions button{margin:0}.message-actions .danger-confirm{background:var(--red);color:#fff}.message-actions .secondary{border:1px solid var(--line);background:#f5f7f8;color:var(--navy)}
@media(max-width:440px){.agenda-hero{align-items:flex-start;flex-direction:column}.gold-button{width:100%}.grid.two{grid-template-columns:1fr}.choice-grid.services{grid-template-columns:repeat(2,1fr)}.financial-summary{grid-template-columns:1fr}.actions{grid-template-columns:1fr}.filter-row{grid-template-columns:1fr}.market-price-row,.consumption-row{grid-template-columns:1fr}.more-grid{grid-template-columns:1fr 1fr}.alert-grid{grid-template-columns:1fr 1fr}.client-stats{grid-template-columns:1fr 1fr}.metric-grid{grid-template-columns:1fr 1fr}}
@media print{.app-header,.bottom-nav,.actions,.screen>*:not(.quote-result){display:none!important}main{padding:0}.screen{display:block!important}.quote-result{display:block!important;border:0;box-shadow:none;margin:0}}
.header-sync{margin-left:auto}.header-sync~.icon-btn{margin-left:0}.header-sync.syncing svg{animation:spin .8s linear infinite}.header-help{font-size:18px;font-weight:800}.header-help+.icon-btn{margin-left:0}.grid.three{grid-template-columns:1.3fr 1fr 1fr}.danger-mini{color:var(--red)!important;border-color:#e6c4c4!important}.quick-help{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.quick-help button{border:1px solid var(--line);background:#f4f6f7;color:var(--navy);border-radius:18px;padding:8px 10px;font-size:9px}.compact-list{grid-template-columns:1fr 1fr;margin-bottom:12px}.calibration-card#openProductCalibration{width:100%;text-align:left}.market-price-row>button{border:0;border-radius:8px;background:#eef2f4;color:var(--navy);padding:8px;font-size:9px}@media(max-width:440px){.grid.three{grid-template-columns:1fr}.compact-list{grid-template-columns:1fr}}
.price-guidance{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.price-guidance>button{border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px;display:flex;flex-direction:column;gap:4px;text-align:left;cursor:pointer;color:inherit}.price-guidance>button:hover{border-color:#b9904d}.price-guidance>button.selected{border:2px solid #b58538;background:#fff8eb;box-shadow:0 5px 14px #8d652f1c}.price-guidance>button.selected:after{content:"Selecionado";font-size:7px;font-weight:800;color:#946e38;text-transform:uppercase;letter-spacing:.6px}.price-guidance small{font-size:7px;color:var(--muted);letter-spacing:.7px}.price-guidance b{font-size:13px;color:var(--navy)}.price-guidance span{font-size:7px;line-height:1.35;color:var(--muted)}.custom-price{margin-top:12px;padding-top:11px;border-top:1px solid #ead9bb;text-align:left}.custom-price label{display:block;font-size:8px;font-weight:800;color:#77664e;margin-bottom:6px}.custom-price>div{display:grid;grid-template-columns:1fr auto;gap:7px}.custom-price input{min-width:0;border:1px solid #cfbea2;border-radius:9px;background:#fff;padding:9px 10px;font-size:13px;color:var(--navy)}.custom-price button{border:0;border-radius:9px;background:var(--navy);color:#fff;padding:9px 13px;font-size:9px;font-weight:800}.quote-photo-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:9px 0}.quote-photo-strip img{width:100%;height:72px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}.payment-purpose{margin-top:10px;display:grid;gap:8px}.payment-purpose label{display:flex;gap:9px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fafbfc}.payment-purpose input{width:18px;height:18px;flex:none;accent-color:var(--navy)}.payment-purpose span{display:flex;flex-direction:column;gap:2px}.payment-purpose b{font-size:10px}.payment-purpose small{font-size:8px;color:var(--muted);line-height:1.35}@media(max-width:440px){.price-guidance{grid-template-columns:1fr}.quote-photo-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ai-provider-box,.ai-provider-backup{margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fafbfb}.ai-provider-box .report-row,.ai-provider-backup .report-row{border-top:0;margin-bottom:5px}.ai-provider-backup summary{padding:2px 0 10px;color:var(--navy);font-weight:800;cursor:pointer}.ai-provider-message{display:block;min-height:16px;margin-top:10px}.ai-provider-box .secondary,.ai-provider-backup .secondary{margin-top:8px}.ai-provider-box .primary,.ai-provider-backup .primary{margin-top:8px}
.quote-result>#editQuoteBtn{margin:0 0 14px}
.choice-grid button i{width:30px;height:30px}.choice-grid button i svg,.detected-service i svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.choice-grid.services.detected-only{display:block}.detected-service{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px;border:1px solid #d9b475;border-radius:14px;background:linear-gradient(135deg,#fffaf0,#fff);padding:14px;color:var(--navy)}.detected-service i{width:40px;height:40px;display:grid;place-items:center;color:#9a6b2d;background:#f8ead0;border-radius:12px;padding:7px}.detected-service div{display:flex;flex-direction:column;gap:3px}.detected-service small{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px}.detected-service strong{font-size:13px}.detected-service button{min-height:auto;padding:9px 11px;border:1px solid #d7dde2;border-radius:9px;background:#fff;color:var(--navy);font-size:9px;font-weight:800;white-space:nowrap}@media(max-width:440px){.detected-service{grid-template-columns:42px 1fr}.detected-service button{grid-column:1/-1;width:100%}}
.multi-item-card{border-left:4px solid #d6ad67}.multi-item-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.multi-item-head>span{width:30px;height:30px;border-radius:10px;background:var(--navy);color:var(--gold);display:grid;place-items:center;font-weight:800}.multi-item-head div{display:flex;flex-direction:column}.multi-item-head strong{font-size:14px}.multi-item-head small{font-size:8px;color:var(--muted);margin-top:2px}.multi-item-photo{width:100%;height:150px;object-fit:cover;border-radius:12px;margin-bottom:12px}.compact-choice button{min-height:48px;padding:8px 4px}.compact-choice strong{font-size:9px}.multi-item-note{font-size:9px;line-height:1.5;color:var(--muted);background:#f5f7f8;border-radius:9px;padding:9px}.multi-result-list{width:100%;display:grid;gap:8px}.multi-result-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px dashed var(--line)}.multi-result-list>div:last-child{border-bottom:0}.multi-result-list span{display:flex;flex-direction:column;gap:3px}.multi-result-list small{font-size:8px;color:var(--muted)}.multi-result-list>div>strong{white-space:nowrap;color:var(--navy)}.multi-product-group{padding:8px 0;border-bottom:1px solid #cadbd5}.multi-product-group:last-child{border-bottom:0}.multi-product-group>b{display:block;color:var(--green);font-size:10px;margin-bottom:4px}
.multi-item-card.analysis-failed{border-left-color:#b85757}.photo-analysis-error{display:flex;flex-direction:column;gap:5px;padding:11px;margin:-2px 0 13px;border:1px solid #e6bcbc;border-radius:11px;background:#fff4f4;color:#783939}.photo-analysis-error strong{font-size:10px}.photo-analysis-error small{font-size:8px;line-height:1.4}.photo-analysis-error button{margin-top:4px;border:0;border-radius:8px;padding:9px;background:#8e3f3f;color:#fff;font-size:9px;font-weight:800}.photo-analysis-error button.manual{background:#fff;color:#783939;border:1px solid #d9aaaa}.photo-analysis-error button:disabled{opacity:.55}
.relationship-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:9px}.relationship-summary span{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px}.relationship-summary small{font-size:7px;color:var(--muted);letter-spacing:.5px}.relationship-summary b{font:20px Georgia,serif;color:var(--navy);margin-top:4px}.client-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}.client-shortcuts button{border:1px solid #d4b274;background:#fff8eb;color:var(--navy);border-radius:11px;padding:10px;font-weight:800}.tag-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.tag-row em{font-style:normal;font-size:7px;padding:4px 7px;border-radius:12px;background:#edf3f5;color:#526778}.client-profile-head>div:first-child{display:flex;gap:12px;align-items:center}.client-avatar.large{width:54px;height:54px;font-size:20px}.client-profile-head h3{margin:0;color:var(--navy)}.client-profile-head p{font-size:9px;line-height:1.55;color:var(--muted);margin:4px 0}.profile-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:13px}.profile-actions button{border:1px solid var(--line);background:#f7f9fa;color:var(--navy);border-radius:9px;padding:9px;font-size:9px;font-weight:800}.small-value{font:12px system-ui!important}.timeline{display:grid;gap:7px}.timeline button{border:0;border-left:3px solid #d7b26d;border-radius:8px;background:#f7f9fa;padding:10px;display:flex;justify-content:space-between;text-align:left;color:var(--navy)}.timeline button span{display:flex;flex-direction:column;gap:3px}.timeline button small{font-size:7px;color:var(--muted)}.timeline button strong{font-size:9px}.inline-buttons{margin-left:auto;display:flex!important;flex-direction:row!important;gap:5px}.campaign-clients label span{display:flex;flex-direction:column}.campaign-clients small{font-size:7px;color:var(--muted)}.campaign-clients .disabled{opacity:.55}.campaign-card{display:grid;grid-template-columns:80px 1fr;gap:12px}.campaign-card>img{width:80px;height:80px;border-radius:10px;object-fit:cover}.campaign-card h3{margin:0}.campaign-card p{font-size:9px;color:var(--muted)}.campaign-card progress{width:100%;accent-color:var(--green)}.campaign-card .profile-actions{grid-column:1/-1}#campaignImagePreview img{width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin:8px 0}.message-preview p{white-space:pre-wrap;font-size:10px;line-height:1.6}.message-preview .whatsapp-btn{width:100%;margin-top:10px}.reminder-card{border-left:4px solid #d5aa62;cursor:pointer}.reminder-card>span{font-size:8px;color:#946b33;font-weight:800;letter-spacing:.6px}.reminder-card h3{margin:6px 0}.reminder-card p{font-size:9px;color:var(--muted)}.reminder-card>small{font-size:8px;color:var(--navy)}
.profile-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.profile-facts span{display:flex;flex-direction:column;background:#f7f9fa;border-radius:8px;padding:8px;font-size:7px;color:var(--muted)}.profile-facts b{font-size:9px;color:var(--navy);margin-top:3px}
@media(max-width:440px){.relationship-summary{grid-template-columns:repeat(3,1fr)}.campaign-card{grid-template-columns:65px 1fr}.campaign-card>img{width:65px;height:65px}}
.web-app main{max-width:1040px}.web-app .bottom-nav{max-width:1040px;left:50%;right:auto;width:100%;transform:translateX(-50%);border-left:1px solid var(--line);border-right:1px solid var(--line)}.web-app .app-header{padding-left:max(18px,calc((100vw - 1040px)/2 + 18px));padding-right:max(18px,calc((100vw - 1040px)/2 + 18px))}@media(min-width:760px){.web-app .more-grid{grid-template-columns:repeat(4,1fr)}.web-app .choice-grid.services{grid-template-columns:repeat(4,1fr)}.web-app .client-stats,.web-app .metric-grid{grid-template-columns:repeat(3,1fr)}}
.result-photo{height:clamp(220px,50vh,430px);object-fit:contain;background:#f2f4f5;border:1px solid var(--line);cursor:zoom-in}.quote-photo-strip img{height:92px;object-fit:contain;background:#f2f4f5;cursor:zoom-in}.multi-item-photo{height:clamp(190px,42vh,380px);object-fit:contain;background:#f2f4f5;border:1px solid var(--line);cursor:zoom-in}.photo-retention-note,.photo-retention-inline{display:block;color:#73808c;font-size:8px;line-height:1.45}.photo-retention-note{margin:7px 0 0;padding-left:2px}.photo-retention-inline{margin:8px 0 2px}.photo-viewer-dialog{width:min(96vw,980px);max-width:none;background:#111923;border-radius:16px}.photo-viewer-dialog form{position:relative;padding:44px 12px 12px;max-height:94vh;overflow:hidden;display:grid;place-items:center}.photo-viewer-dialog button{position:absolute;right:10px;top:8px;width:34px;height:34px;border:0;border-radius:50%;background:#ffffffea;color:#102749;font-size:24px;line-height:1}.photo-viewer-dialog img{display:block;max-width:100%;max-height:calc(94vh - 58px);object-fit:contain;border-radius:8px}

/* Quote details: full photographs and a readable item summary. */
.quote-detail-summary{display:grid;gap:16px;margin-bottom:18px}.quote-detail-item{border:1px solid #e1e5e8;border-radius:16px;overflow:hidden}.quote-detail-photo-button{display:block;width:100%;padding:0;border:0;background:#f2f4f5;cursor:zoom-in}.quote-detail-photo-button img{display:block;width:100%;height:auto;max-height:320px;object-fit:contain}.quote-detail-photo-button:focus-visible{outline:3px solid #b28a4d;outline-offset:-3px}.quote-detail-description{display:grid;gap:6px;padding:14px}.quote-detail-description small{color:#6d7680}.quote-detail-description b{color:#142d4c}.quote-detail-extra-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quote-detail-extra-photos img{height:100px;object-fit:contain}.quote-detail-schedule{font-size:14px;margin:0}.quote-detail-summary .photo-retention-inline{margin:0}

.auth-signup-fields{display:grid;gap:15px}.auth-secondary{border:1px solid #d8dee5;border-radius:12px;padding:12px;background:#fff;color:#142d4c;font-weight:700}.cloud-auth{justify-content:flex-start;padding-top:max(32px,env(safe-area-inset-top));padding-bottom:max(32px,env(safe-area-inset-bottom))}.cloud-auth-brand{margin-top:auto}.cloud-auth-card{margin-bottom:auto}
