:root{--text:#232b36;--muted:#6c7683;--line:#e1e5e9;--gold:#bd8c1b;--gold2:#846112;--green:#23735a;--blue:#446789;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:#f8f9fb;color:var(--text);font:14px/1.55 'Segoe UI',Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #c59931;outline-offset:4px}.hidden{display:none!important}
.portal-nav{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 max(24px,calc((100% - 1280px)/2));position:sticky;top:0;z-index:20}.portal-nav img{width:132px;display:block;filter:brightness(0)}.preview-label{margin-left:auto;font-size:10px;letter-spacing:.12em;color:#8a732e;background:#fff8df;padding:7px 12px;border-radius:30px}.portal-menu{position:relative}.portal-menu button{background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 15px;color:#374151}.portal-drop{display:none;position:absolute;right:0;top:50px;width:230px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px #24334916;overflow:hidden}.portal-drop.open{display:block}.portal-drop a{display:block;padding:13px 16px;color:#374151;text-decoration:none}.portal-drop a:hover{background:#fff8df}
.app{max-width:1328px;margin:auto;padding:36px 24px 40px}.hero{position:relative;padding:4px 0 12px}.restricted{font-size:10px;letter-spacing:.025em;color:#7c6743;display:inline-flex;align-items:center;gap:7px;background:#fff6df;border:1px solid #eee1bf;padding:6px 11px;border-radius:7px;max-width:100%}.dot{width:6px;height:6px;background:#c59b37;border-radius:50%;flex:none}h1{font-size:clamp(25px,3.2vw,38px);font-weight:650;letter-spacing:-.035em;line-height:1.2;margin:18px 0 9px}.subtitle{font-size:14px;color:var(--muted)}
.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:23px 0}.tab{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;background:#fff;border:1px solid #dde2e7;border-radius:14px;padding:20px;min-height:127px;color:#28303b;transition:background .15s,border-color .15s,box-shadow .15s}.tab:hover{border-color:#c9af69;box-shadow:0 5px 18px #24334908}.tab.active{background:#fff9e8;border-color:#dbb54d;box-shadow:inset 0 0 0 1px #dbb54d30}.product-copy{min-width:0}.product-copy strong{display:block;font-size:19px;font-weight:600;letter-spacing:-.025em}.product-copy small{display:block;font-size:12px;color:#7b8189;margin-top:5px}.product-art{width:100px;flex:none;background:radial-gradient(circle,#fff0ba 0%,#fff4d9 56%,transparent 57%)}.product-art svg{display:block;width:100%}
.topgrid,.bottomgrid{display:grid;gap:22px}.panel,.info{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px;box-shadow:0 4px 20px #25354504}.panel h2{font-size:19px;font-weight:600;letter-spacing:-.015em;margin:0 0 23px;color:#303742;display:flex;align-items:center;gap:11px}.panel h2:before{content:'';width:6px;height:25px;background:#f2cf64;border-radius:3px;flex:none}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 22px}.full{grid-column:1/-1}.field{min-width:0}label{display:block;font-size:12px;font-weight:500;color:#4b5563;margin-bottom:7px}input,select{width:100%;min-height:46px;border:1px solid #d6dde4;background:#fff;color:#303a46;border-radius:8px;padding:11px 13px;outline:none}input:focus,select:focus{border-color:#c39a33;box-shadow:0 0 0 3px #f7e7b4}.hint{font-size:11px;color:#89919c;margin-top:6px;line-height:1.45}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.btn{background:#fff;border:1px solid #d9dee4;border-radius:8px;color:#596270;padding:10px 17px;font-weight:500;min-height:43px}.btn:hover{background:#f7f8fa}.btn.primary{background:#f7d66f;border-color:#edcb60;color:#3c331d;font-weight:600}.btn.primary:hover{background:#f0cb5c}.btn.outline{border-color:#ddc47e;background:#fffaf0;color:#82651d}.btn.danger{background:#fff;border-color:#e5cece;color:#985f5f}
.resulttable{width:100%;border-collapse:collapse;font-size:14px}.resulttable td{padding:12px;border-bottom:1px solid #edf0f2}.resulttable td:last-child{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}.highlight{background:#fff8e3;color:#785b16}.paygrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.paybox{background:#f3f7fa;border:1px solid #dce6ef;border-radius:11px;padding:20px}.paybox.green{background:#f0f8f3;border-color:#d6e9dc}.paytitle{font-size:12px;color:#5d7791;font-weight:500}.green .paytitle{color:#5a806a}.payvalue{font-size:25px;font-weight:600;letter-spacing:-.025em;margin:7px 0}.paydate{font-size:12px;color:#7c8a95}.breakdown{margin-top:19px;padding:15px 18px;background:#fafbfc;border-radius:9px;font-size:12px;color:#808995}.breakdown .row{padding:4px 0}.summary{margin-top:22px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:21px 0}.stat{background:#fafbfc;border:1px solid #e9edf0;border-radius:10px;padding:18px}.stat .k{font-size:12px;color:#8a919b}.stat .v{font-size:24px;font-weight:600;margin-top:7px;font-variant-numeric:tabular-nums}.tablewrap{overflow:auto;border:1px solid #e9edf0;border-radius:9px}table.contracts{width:100%;border-collapse:collapse;min-width:980px;font-size:12px}.contracts th,.contracts td{padding:14px 12px;border-bottom:1px solid #edf0f2;white-space:nowrap;text-align:left}.contracts th{background:#faf9f4;color:#82734d;font-size:11px;font-weight:600}.remove{border:1px solid #ead7d7;background:#fff;border-radius:6px;color:#956767;padding:6px 9px}.bottomgrid{grid-template-columns:1fr 1fr;margin-top:22px}.info{padding:22px}.info h3{font-size:15px;font-weight:600;margin:0 0 12px}.info p,.info li{font-size:12px;color:#808894;line-height:1.8}.info strong{font-weight:600}.info.livelo{border-color:#e6e1ea}.info.livelo h3{color:#846481}.footer{border-top:1px solid var(--line);padding-top:22px;margin-top:30px}.team{text-align:right;font-size:10px;letter-spacing:.12em;color:#8b939d}.legal{text-align:center;font-size:10px;color:#959ba5;margin-top:16px}
@media(min-width:1100px){.topgrid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.paygrid{gap:10px}.paybox{padding:16px}.payvalue{font-size:21px}}
@media(max-width:760px){.app{padding:24px 16px}.portal-nav{padding:0 16px;height:68px}.preview-label{display:none}.tabs{gap:9px}.tab{padding:13px;min-height:120px;flex-direction:column-reverse;align-items:flex-start}.product-art{width:70px}.product-copy strong{font-size:14px}.product-copy small{font-size:10px}.panel,.info{padding:19px}.formgrid{grid-template-columns:1fr 1fr;gap:16px}.stats{grid-template-columns:1fr 1fr}.bottomgrid{grid-template-columns:1fr}.restricted{font-size:9px}.payvalue{font-size:20px}.paybox{padding:13px}}
@media(max-width:440px){.formgrid{grid-template-columns:1fr}.paygrid{grid-template-columns:1fr}.product-copy small{display:none}.tab{min-height:104px}.product-art{width:60px}.btn{flex:1}.panel h2{font-size:17px}}
/* Cada cartão tem sua própria fotografia, contida integralmente no quadro. */
.product-art{position:relative;display:block;width:140px;height:112px;overflow:hidden;background:transparent;mix-blend-mode:multiply}
.product-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;pointer-events:none}
.product-copy{flex:1}.product-copy small{line-height:1.5}
@media(min-width:1100px){.topgrid{align-items:stretch}.topgrid>.panel:first-child{display:flex;flex-direction:column}.topgrid>.panel:first-child .formgrid{flex:1;align-content:space-between;row-gap:24px}.topgrid>.panel:first-child .actions{padding-top:12px}}
@media(max-width:1099px) and (min-width:761px){.product-art{width:105px;height:100px}.product-copy strong{font-size:17px}.tab{padding:16px}}
@media(max-width:760px){.product-art{width:100%;height:auto;aspect-ratio:1/1}.tab{align-items:stretch;gap:4px}.product-copy small{display:block;font-size:10px}.product-copy strong{font-size:13px}}
.calculation-details{margin-top:12px;color:#7c8591;font-size:12px}.calculation-details summary{cursor:pointer;padding:5px 0}.calculation-details .breakdown{margin-top:6px}
.portal-nav{position:relative;top:auto}
.portal-drop a[aria-current="page"]{background:#fff6dc;color:#8b6921;box-shadow:inset 3px 0 #e2bb51;font-weight:600}.current-page-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-menu button{white-space:nowrap}@media(max-width:760px){.current-page-label{display:inline-block;font-size:8px;letter-spacing:.04em;max-width:43vw;padding:5px 8px}.portal-nav{gap:9px}.portal-nav img{width:100px}.portal-menu button{font-size:11px;padding:7px 9px}}
.brand-rights{max-width:1000px;margin:0 auto;padding:0 24px 22px;text-align:center;font-size:10px;line-height:1.6;color:#8c939c}
.author-credit{max-width:1000px;margin:0 auto;padding:0 24px 24px;text-align:center;font-size:11px;line-height:1.7;color:#7b8490}.author-credit strong{font-weight:600;color:#525e6d}
#pdf-summary{display:none}.summary-actions .primary{margin-right:auto}
@media print{
 @page{size:A4 portrait;margin:12mm}
 body{background:#fff;font:9px/1.4 'Segoe UI',Arial,sans-serif;color:#28323c}
 body>*{display:none!important}body>#pdf-summary{display:block!important}
 .pdf-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e6ea;padding-bottom:12px}.pdf-header img{width:110px;height:auto;filter:brightness(0)}.pdf-header span{text-align:right;font-size:8px;color:#7b8189}
 #pdf-summary h1{font-size:24px;margin:15px 0 4px}#pdf-summary h2{display:block;font-size:12px;margin:18px 0 8px}.pdf-subtitle{color:#75808b;font-size:10px;margin:0 0 14px}
 .pdf-totals{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.pdf-totals>div{background:#fff8e2!important;border:1px solid #e5e3d9;padding:10px;border-radius:6px;font-size:8px;color:#75808b;print-color-adjust:exact;-webkit-print-color-adjust:exact}.pdf-totals strong{display:block;font-size:16px;margin-top:4px;color:#483c1e}
 #pdf-summary table{width:100%;border-collapse:collapse;font-size:8px}#pdf-summary th,#pdf-summary td{padding:7px 5px;border-bottom:1px solid #e4e8eb;text-align:right;white-space:nowrap}#pdf-summary th:first-child,#pdf-summary td:first-child,#pdf-summary th:nth-child(2),#pdf-summary td:nth-child(2){text-align:left}#pdf-summary th,#pdf-summary tfoot{background:#fff8e2!important;color:#806320;print-color-adjust:exact;-webkit-print-color-adjust:exact}#pdf-summary thead{display:table-header-group}#pdf-summary tr{break-inside:avoid}#pdf-summary tfoot{display:table-row-group;font-weight:600}
 .pdf-notes{margin-top:18px;border-top:1px solid #e4e8eb;padding-top:6px;font-size:8px;color:#75808b;break-inside:avoid}
}
.coefficient-label{display:flex;align-items:center;gap:6px;margin-bottom:4px}.coefficient-label label{margin:0}.coefficient-help{position:relative;display:inline-flex;flex:none}.coefficient-alert{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#fff3ce;color:#916710;font-size:16px;line-height:1;cursor:help}.coefficient-tooltip{position:absolute;right:0;bottom:calc(100% + 9px);width:min(290px,75vw);padding:12px 14px;background:#fffdf4;color:#5e532e;border:1px solid #e6d7a7;border-radius:9px;box-shadow:0 5px 20px #24334918;font-size:12px;line-height:1.55;font-weight:400;z-index:40;visibility:hidden;opacity:0;pointer-events:none}.coefficient-help:hover .coefficient-tooltip,.coefficient-help:focus-within .coefficient-tooltip{visibility:visible;opacity:1}
.back-to-top{position:fixed;right:22px;bottom:22px;z-index:30;display:grid;place-items:center;width:42px;height:42px;border:1px solid #e0c46d;border-radius:50%;background:#fff5d3;color:#735617;font-size:24px;box-shadow:0 3px 14px #24334915}.back-to-top:hover{background:#ffe9a6}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Em notebooks, mantém formulário e resultados no primeiro campo de visão. */
@media(min-width:1050px) and (max-height:850px){
 html{scroll-padding-top:58px}
 .portal-nav{height:44px}.portal-nav img{width:106px}.portal-menu button{padding:4px 12px}.preview-label{padding:3px 10px;font-size:9px}.portal-drop{top:36px}
 .app{padding:8px 24px 28px}.hero{padding:0}.restricted{padding:1px 8px;font-size:9px}h1{font-size:23px;margin:4px 0 2px}.hero .subtitle{font-size:11px;line-height:1.3}
 .tabs{margin:8px 0;gap:14px}.tab{min-height:56px;padding:4px 16px;border-radius:10px}.product-art{width:92px;height:46px}.product-copy strong{font-size:15px}.product-copy small{font-size:10px;margin-top:1px}
 .topgrid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:stretch}
 .topgrid>.panel{padding:15px 18px}.panel h2{font-size:16px;margin-bottom:12px;gap:8px}.panel h2:before{height:20px;width:5px}
 .topgrid>.panel:first-child .formgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 13px;align-content:start;flex:1}
 label{font-size:11px;margin-bottom:4px}input,select{min-height:35px;padding:6px 9px;font-size:12px}.hint{font-size:10px;margin-top:3px;line-height:1.35}
 .topgrid .actions{margin-top:12px;gap:8px;padding-top:0!important}.topgrid .btn{min-height:34px;padding:6px 11px;font-size:12px}
 .resulttable{font-size:12px;line-height:1.35}.resulttable td{padding:4px 8px}.paygrid{margin-top:8px;gap:10px}.paybox{padding:8px 10px;line-height:1.35}.paytitle{font-size:10px}.payvalue{font-size:19px;margin:3px 0}.paydate{font-size:10px}.calculation-details{margin-top:6px;font-size:11px}.calculation-details summary{padding:2px 0}
 .summary{margin-top:18px}
}
