:root{--yellow:#f6c600;--yellow-dark:#c39700;--navy:#172439;--slate:#334155;--muted:#6b778a;--border:#e5e8ee;--pale:#f5f7fa;--white:#fff;--radius:16px;--shadow:0 11px 45px rgba(24,38,57,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f6f7f9;color:var(--navy);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit}.shell{max-width:1450px;margin:auto;padding-left:36px;padding-right:36px}.hidden,[hidden]{display:none!important}
.test-strip{background:#253347;color:#f8e69b;padding:8px 20px;text-align:center;font-size:11px;font-weight:800;letter-spacing:.12em}.strip-pulse,.chip-dot,.eyebrow-dot{display:inline-block;height:7px;width:7px;border-radius:50%;background:var(--yellow);margin-right:9px}.strip-extra{color:#cad2dc;font-size:11px;font-weight:500;letter-spacing:.03em}
.topbar{background:white;border-bottom:1px solid var(--border)}.topbar-inner{height:91px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;user-select:none}.brand-sign{display:grid;place-items:center;background:#fff4c2;border:1px solid #ffdd61;color:#b98b00;border-radius:16px;width:48px;height:48px;font-size:31px;font-weight:800}.brand-text{display:grid;line-height:1}.brand-text b{font-size:29px;font-weight:900;letter-spacing:-1.5px;color:#151f2e}.brand-text b span{font-size:22px;letter-spacing:-1px}.brand-text small{font-size:9px;color:#626e7e;margin-top:6px;font-weight:800;letter-spacing:.18em}.header-actions{display:flex;gap:23px;align-items:center;font-size:13px}.system-chip{display:inline-block;color:#626e7b;border:1px solid var(--border);background:#f9fafb;border-radius:24px;padding:9px 13px;font-weight:600}.chip-dot{background:#58b784;margin-right:4px}.site-link{text-decoration:none;font-weight:700}.site-link:hover{color:var(--yellow-dark)}
.hero{margin:27px 0 26px;min-height:315px;display:flex;position:relative;overflow:hidden;background:linear-gradient(112deg,#fff 0%,#fff 58%,#fff9df 100%);border:1px solid #eceef2;border-radius:23px;box-shadow:var(--shadow)}.hero-copy{width:66%;padding:41px 46px 37px;z-index:2}.eyebrow,.overline{color:#987300;font-size:11px;font-weight:850;letter-spacing:.16em}.eyebrow{display:inline-flex;align-items:center;text-transform:uppercase}.eyebrow-dot{background:var(--yellow);height:7px;width:7px;margin-right:9px}.hero h1{font-size:clamp(32px,3.3vw,52px);line-height:1.09;letter-spacing:-.055em;margin:17px 0 14px;font-weight:850}.hero h1 span{color:#bc9010}.hero p{font-size:15px;max-width:655px;color:#566278;margin:0 0 25px;line-height:1.75}.hero-pills{display:flex;flex-wrap:wrap;gap:8px}.hero-pills span{border:1px solid #e8ebed;background:#f8fafc;color:#4d5c70;border-radius:20px;padding:7px 11px;font-size:11px;font-weight:700}.hero-art{position:absolute;right:45px;top:35px;width:365px;height:245px}.art-glow{position:absolute;width:310px;height:310px;top:-30px;right:-12px;background:#ffe278;border-radius:50%;opacity:.36}.art-sheet{position:absolute;width:199px;height:234px;background:white;border:1px solid #ebedf0;box-shadow:0 15px 35px #5b51401c;border-radius:12px}.art-sheet-back{transform:rotate(15deg);right:51px;top:5px;background:#fef8e4}.art-sheet-mid{transform:rotate(-12deg);right:113px;top:18px}.art-sheet-front{transform:rotate(3deg);right:80px;top:9px;padding:20px}.art-sheet-head{display:flex;justify-content:space-between;color:#d6aa08;font-weight:900}.art-icon{font-size:27px}.art-dots{color:#cbd4de}.art-line{height:8px;background:#e8edf1;border-radius:6px;margin-top:13px}.art-line.bold{height:12px;width:95%;background:#334155}.art-line.short{width:60%}.art-list{display:flex;align-items:center;gap:10px;margin-top:13px}.art-list i{font-style:normal;color:#1da276;background:#dbf7e9;width:19px;height:19px;text-align:center;border-radius:50%;font-size:12px;font-weight:800}.art-list div{background:#e8edf1;width:110px;height:7px;border-radius:4px}.art-stamp{position:absolute;right:10px;bottom:0;background:var(--yellow);border:5px solid white;box-shadow:0 8px 24px #37415130;border-radius:16px;padding:13px;font-size:17px;font-weight:900;transform:rotate(-8deg)}.art-stamp strong{margin-left:8px;background:white;border-radius:50%;padding:2px 7px;color:#04845d}
.workspace{display:grid;grid-template-columns:278px minmax(0,1fr);gap:24px;align-items:start}.side-card,.main-panel{background:white;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow)}.side-card{padding:22px}.side-title{font-size:10px;letter-spacing:.15em;font-weight:900;color:#8390a0}.progress-head{display:flex;align-items:baseline;justify-content:space-between;margin:15px 0 10px}.progress-head strong{font-size:28px;letter-spacing:-.04em}.progress-head span{font-size:11px;color:#8995a5}.progress-track,.mini-progress{height:7px;border-radius:10px;background:#edf1f5;overflow:hidden}.progress-track span,.mini-progress i{display:block;height:100%;background:linear-gradient(90deg,#e3ae00,#ffd932);width:0;transition:width .25s}.steps{display:grid;gap:4px;margin-top:29px}.step{display:flex;align-items:center;gap:14px;border-radius:10px;padding:13px 9px;color:#8d97a6}.step-num{width:29px;height:29px;border-radius:50%;border:1px solid #dbe1e7;display:grid;place-items:center;font-size:12px;font-weight:850;flex:none;background:#f5f7f9}.step strong,.step small{display:block}.step strong{font-size:13px;color:#68788b}.step small{font-size:11px;margin-top:2px}.step.active{background:#fff9df}.step.active .step-num{background:var(--yellow);color:#172439;border-color:var(--yellow)}.step.active strong{color:var(--navy)}.step.done .step-num{background:#e5f5eb;border-color:#caead6;color:#00875c}.step.done strong{color:#325743}.side-help{display:flex;align-items:flex-start;gap:12px;background:#edf5f2;border-radius:14px;margin-top:18px;padding:18px}.help-badge{display:grid;place-items:center;color:#0f805a;border:1px solid #aad1bf;font-weight:800;border-radius:50%;height:24px;width:24px;flex:none}.side-help strong{font-size:12px;color:#2f614c}.side-help p{font-size:11px;color:#536b60;margin:6px 0 0;line-height:1.65}
.main-panel{min-height:536px;overflow:hidden;padding:37px 42px 32px}.screen{display:none;animation:appear .2s ease-out}.screen.is-active{display:block}@keyframes appear{from{opacity:.6;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.panel-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:24px;margin-bottom:23px;border-bottom:1px solid #eaeef1}.panel-top h2{font-size:clamp(24px,2.4vw,31px);letter-spacing:-.04em;margin:5px 0 4px}.panel-top p{font-size:13px;color:#6a798e;margin:0}.panel-icon{font-size:20px;font-weight:850;letter-spacing:-.05em;color:#ad8610;background:#fff7d5;border:1px solid #f7e4aa;border-radius:12px;min-width:52px;height:52px;display:grid;place-items:center}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px 18px}.span-2{grid-column:span 2}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:750;color:#344459}.field b{color:#c99b0d}.field input,.field select{background:#fbfcfe;width:100%;min-height:49px;border:1px solid #dfe5ed;border-radius:9px;padding:12px 13px;color:#202e40;outline:none;transition:.15s}.field input:focus,.field select:focus{border-color:#e7bb32;box-shadow:0 0 0 3px #eec74120}.field input::placeholder{color:#a4aab3;font-weight:400}.field.invalid input,.field.invalid select{border-color:#d16d55}.alert{padding:13px 15px;border-radius:10px;margin-bottom:20px;font-size:13px;font-weight:650}.alert.error{background:#fff3f0;border:1px solid #f1c8be;color:#a33d2d}.info-box{display:flex;gap:12px;border:1px solid #d5e7de;background:#f3faf6;border-radius:10px;margin-top:26px;padding:14px 15px}.info-spark{border-radius:50%;background:#d8eee3;color:#327359;width:24px;height:24px;display:grid;place-items:center;flex:none;font-weight:850}.info-box p{font-size:12px;line-height:1.65;margin:0;color:#456455}.info-box.warning{background:#fff7ec;border-color:#f8ddb5}.info-box.warning .info-spark{color:#955900;background:#ffecce}.info-box.warning p{color:#76563a}.action-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px;flex-wrap:wrap}.action-row.right{justify-content:flex-end}.btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;border-radius:10px;border:1px solid transparent;padding:12px 19px;text-decoration:none;font-size:12px;font-weight:800;transition:.18s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:disabled{cursor:not-allowed;opacity:.48}.btn-primary{background:var(--yellow);color:#1e2837;border-color:#edbf09;box-shadow:0 5px 12px #c8a60a1a}.btn-primary:hover:not(:disabled){background:#efbc00}.btn-ghost{border-color:#e1e5eb;background:#fff;color:#526071}.btn-ghost:hover{background:#f5f7f9}.btn-outline{border:1px solid #dec87a;background:white;color:#85610b}
.upload-summary{display:flex;gap:25px;align-items:center;justify-content:space-between;background:#fafbf8;border:1px solid #e9ebdf;padding:17px 19px;border-radius:11px;margin-bottom:12px}.upload-summary>div:first-child{display:flex;align-items:center;gap:12px}.summary-icon{width:40px;height:40px;display:grid;place-items:center;background:#fff3c0;border-radius:11px;color:#986e00;font-size:23px;font-weight:900}.upload-summary b{font-size:13px;display:block}.upload-summary small{display:block;margin-top:3px;font-size:11px;color:#7e8998}.mini-progress{width:100px;flex:none}.file-guidelines{display:flex;gap:15px 23px;flex-wrap:wrap;font-size:11px;color:#647183;margin-bottom:17px}.file-guidelines strong{color:#3e4f65}.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.doc-card{border:1px solid #e0e5eb;border-radius:12px;padding:15px;background:#fff;min-width:0;position:relative;transition:.2s}.doc-card.is-filled{border-color:#9bd9b7;background:#fbfffd}.doc-card.is-na{border-color:#d5dce4;background:#fafbfc}.doc-top{display:flex;align-items:flex-start;gap:11px;min-height:56px}.doc-number{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#344255;color:white;font-size:12px;font-weight:850;flex:none}.doc-card.is-filled .doc-number{background:#198957}.doc-top h3{font-size:12px;line-height:1.5;margin:0;max-width:330px;font-weight:750;color:#29384c}.doc-type{color:#96a0ad;font-size:10px;display:block;margin-top:5px}.doc-dropzone{border:1px dashed #ccd4dd;border-radius:8px;min-height:71px;padding:11px;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;text-align:left;background:#fafbfc;transition:.2s}.doc-dropzone:hover,.doc-dropzone.dragover{border-color:#d1a400;background:#fffbea}.doc-card.is-filled .doc-dropzone{border-color:#b8d8c8;background:white}.doc-dropzone .cloud{font-size:21px;color:#a58b3c}.doc-dropzone strong{font-size:11px;display:block;color:#526176}.doc-dropzone small{font-size:10px;color:#929cab;display:block;margin-top:3px}.doc-file{max-width:100%;display:flex;align-items:center;gap:8px;padding:7px 8px;background:#f0f5f5;border-radius:7px;font-size:10px;margin-top:8px}.doc-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:700;color:#425267}.doc-file-size{color:#788596;flex:none}.doc-file button{border:none;background:white;color:#965225;border-radius:5px;font-size:15px;width:24px;height:24px;padding:0;flex:none}.file-preview{background:#fff;border:1px solid #dbe3ea;color:#48566b;border-radius:5px;text-decoration:none;font-size:10px;padding:3px 6px;flex:none}.file-preview:hover{border-color:#bea00a}.na-label{font-size:11px;color:#687787;display:flex;align-items:center;gap:7px;cursor:pointer;margin-top:10px}.na-label input{accent-color:#c69b07}.doc-card.is-na .doc-dropzone{opacity:.38;pointer-events:none}.doc-note{font-size:10px;color:#8994a4;margin-top:9px}.rule-box{display:flex;gap:12px;background:#eef8f3;border:1px solid #b8dec9;border-left:4px solid #22975f;border-radius:9px;margin-top:21px;padding:15px}.rule-box>span{color:#288b59;font-size:17px}.rule-box p{margin:0;color:#2f4d3e;font-size:12px;line-height:1.75}.review-section{border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:20px}.review-section h3{display:flex;justify-content:space-between;margin:0;font-size:13px;padding:16px 18px;background:#f8fafc;border-bottom:1px solid var(--border)}.counter{color:#a38522;font-size:11px;font-weight:750}.review-person{display:grid;grid-template-columns:1fr 1fr;padding:18px;gap:17px}.review-person .person-item span{display:block;color:#8996a4;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.review-person .person-item strong{display:block;font-size:12px;color:#334155;margin-top:3px;overflow-wrap:anywhere}.review-entry{display:flex;gap:12px;align-items:center;padding:11px 17px;border-bottom:1px solid #f0f3f6}.review-entry:last-child{border-bottom:0}.review-num{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;background:#f0f3f7;color:#4e5f74;font-weight:850;font-size:11px}.review-entry>div{flex:1;min-width:0}.review-entry strong{display:block;font-size:11px}.review-entry small{font-size:10px;display:block;color:#7c8998;margin-top:3px;overflow-wrap:anywhere}.review-status{font-size:10px;border-radius:10px;padding:4px 8px;color:#176c4c;background:#e7f7ef;font-weight:800;flex:none}.review-status.na{color:#7f8994;background:#f0f2f5}.consent{padding:17px;background:#fff9e2;border:1px solid #f4e5ab;border-radius:11px}.consent label{display:flex;gap:12px;align-items:flex-start;font-size:12px;line-height:1.7;color:#56616d;cursor:pointer}.consent input{margin-top:4px;width:16px;height:16px;accent-color:#d6ab14;flex:none}
#screen-4{text-align:center;padding:34px 14px}.completed-mark{margin:0 auto 21px;width:73px;height:73px;display:grid;place-items:center;border-radius:50%;background:#e3f7ec;color:#19a062;font-size:38px;font-weight:800}.centered{display:block}.complete-title{font-size:clamp(23px,2.8vw,34px);letter-spacing:-.04em;margin:9px 0}.complete-text{color:#687789;font-size:13px;max-width:560px;margin:0 auto 26px;line-height:1.75}.output-card{display:flex;align-items:center;gap:15px;background:#f7f9fc;border:1px solid #e1e6ed;padding:19px;border-radius:13px;text-align:left;margin-bottom:24px}.pdf-icon{display:grid;place-items:center;width:51px;height:59px;border-radius:7px;background:#fce7df;color:#be4c29;font-weight:900;font-size:15px}.output-card>div:nth-child(2){flex:1;min-width:0}.output-card strong,.output-card span{display:block;overflow-wrap:anywhere}.output-card strong{font-size:12px}.output-card span{font-size:11px;margin-top:5px;color:#7a8799}.download-button{flex:none}.below-card{margin:25px 0 50px;display:flex;gap:17px;align-items:flex-start;background:#eef1f4;border:1px solid #e5e9ee;border-radius:15px;padding:22px 25px}.below-symbol{color:#ad8213;border-radius:13px;background:#fff5ca;padding:10px 15px;font-size:26px}.below-card strong{font-size:13px}.below-card p{font-size:12px;color:#647182;margin:4px 0 0;line-height:1.7}footer{border-top:1px solid #dfe4eb;color:#8b97a5;padding:25px 0;font-size:11px}.footer-inner{display:flex;justify-content:space-between;gap:15px}.footer-sep{padding:0 6px;color:#a3aeb9}
@media(max-width:1160px){.hero-art{right:-25px;opacity:.83}.hero-copy{width:70%}.shell{padding-left:25px;padding-right:25px}.workspace{grid-template-columns:248px minmax(0,1fr);gap:17px}.main-panel{padding:30px 24px}.document-grid{gap:10px}}@media(max-width:850px){.workspace{grid-template-columns:1fr}.side-card{padding:15px}.steps{display:grid;grid-template-columns:repeat(4,1fr);margin:13px 0 0}.step{padding:9px 5px;gap:5px;flex-direction:column;text-align:center}.step small{display:none}.side-help{display:none}.hero-copy{width:75%;padding:32px}.hero-art{opacity:.45;right:-90px}.hero p{max-width:520px}}@media(max-width:610px){.shell{padding:0 15px}.test-strip{font-size:10px;padding:8px}.strip-extra{display:none}.topbar-inner{height:70px}.brand-sign{height:41px;width:41px;font-size:24px;border-radius:11px}.brand-text b{font-size:23px}.brand-text b span{font-size:18px}.brand-text small{font-size:7px}.system-chip{display:none}.header-actions{font-size:11px}.hero{margin-top:16px;min-height:unset}.hero-copy{padding:27px 23px;width:100%}.hero h1{font-size:37px}.hero p{font-size:13px}.hero-art{display:none}.hero-pills{gap:5px}.hero-pills span{font-size:10px}.main-panel{padding:24px 15px}.panel-icon{display:none}.form-grid,.document-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.steps .step strong{font-size:10px}.step-num{width:25px;height:25px}.panel-top h2{font-size:24px}.panel-top p{font-size:12px}.upload-summary{padding:12px}.upload-summary small{font-size:10px}.mini-progress{display:none}.action-row{flex-direction:column-reverse;align-items:stretch}.action-row .btn{width:100%}.output-card{flex-wrap:wrap}.output-card .download-button{width:100%}.review-person{grid-template-columns:1fr}.below-card{padding:17px}.footer-inner{flex-direction:column;align-items:center;text-align:center}.file-guidelines{gap:7px 16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Opção de instalação PWA e diálogo de ajuda */
.install-action{border:1px solid #dbc46a;border-radius:9px;background:#fff8d8;color:#634d03;padding:9px 12px;font-weight:800;font-size:11px;white-space:nowrap;cursor:pointer;transition:.2s}
.install-action:hover{background:#ffefad;border-color:#c2a33b}
.install-action[hidden],.install-help[hidden]{display:none!important}
.install-help{position:fixed;inset:0;z-index:5000;background:#1a2836bf;display:grid;place-items:center;padding:18px}
.install-help-box{position:relative;background:white;border-radius:18px;box-shadow:0 24px 80px #0005;max-width:450px;width:100%;padding:30px 28px;text-align:center;color:#283447}
.install-help-box h2{font-size:23px;line-height:1.25;margin:12px 0}
.install-help-box p{font-size:14px;line-height:1.7;color:#5e6c7e}
.install-help-icon{display:grid;place-items:center;margin:auto;border-radius:16px;background:#fdf2c1;color:#846b0b;font-size:28px;width:64px;height:64px}
.install-close{position:absolute;right:12px;top:12px;background:#edf0f4;border:0;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:21px;color:#44546a}
.install-disclaimer{font-size:12px!important;background:#fff7dc;border-radius:8px;padding:9px;margin-bottom:18px}
@media(max-width:610px){.install-action{font-size:10px;padding:8px 9px}.install-help-box{padding:25px 20px}}

/* Identidade oficial do CRTR 14ª Região (imagem enviada para o projeto) */
.topbar{background:linear-gradient(90deg,#e5e7eb 0%,#f7f8fa 57%,#fff 100%)}
.topbar-inner{min-height:110px;height:auto;padding-top:12px;padding-bottom:12px}
.brand{min-width:0;gap:16px}
.brand-logo{display:block;object-fit:contain;width:202px;height:auto;max-height:95px;flex:none}
.brand-caption{display:flex;flex-direction:column;gap:5px;min-width:0;border-left:2px solid #e3b900;padding-left:16px}
.brand-caption strong{font-size:15px;letter-spacing:.10em;color:#243247;font-weight:900;white-space:nowrap}
.brand-caption small{font-size:9px;color:#6c7280;letter-spacing:.10em;font-weight:800}
@media(max-width:850px){.topbar-inner{flex-wrap:wrap;gap:10px}.brand-logo{width:160px}.brand-caption strong{font-size:12px}.brand-caption small{font-size:8px}.header-actions{gap:10px}}
@media(max-width:610px){.topbar-inner{height:auto;min-height:77px;padding:9px 0;flex-wrap:nowrap}.brand{gap:7px}.brand-logo{width:136px;max-height:66px}.brand-caption{border-left-width:1px;padding-left:8px;gap:3px}.brand-caption strong{font-size:9px;letter-spacing:.02em}.brand-caption small{font-size:7px;letter-spacing:0}.site-link{display:none}.header-actions{gap:5px;flex:none}.install-action{font-size:9px;white-space:normal;max-width:82px;padding:6px 8px}}
@media(max-width:370px){.brand-logo{width:115px}.brand-caption strong{font-size:8px}}

/* v1.3: teste do gerador e status de arquivos */
.pdf-diagnostic{margin:18px 0;padding:16px;border-radius:13px;background:#f4f6f9;border:1px solid #dce2e8;display:flex;gap:20px;align-items:center;justify-content:space-between}
.pdf-diagnostic strong{font-size:14px;color:#202d40;display:block;margin-bottom:3px}
.pdf-diagnostic p{margin:4px 0 0;font-size:12px;line-height:1.5;color:#596677}
#pdf-test-status{font-weight:700;color:#344054;overflow-wrap:anywhere}
@media(max-width:620px){.pdf-diagnostic{display:block}.pdf-diagnostic button{margin-top:13px;width:100%}}

/* V1.5: referencia exibida na tela final */
.reference-card{display:grid;gap:8px;padding:19px 22px;margin:20px 0 22px;background:linear-gradient(110deg,#fff8d9,#ffffff);border:1px solid #ebd482;border-radius:12px}
.reference-label{font-weight:850;font-size:11px;letter-spacing:.07em;color:#806109}
.reference-card strong{font-size:clamp(24px,4vw,33px);line-height:1.3;color:#1e293b;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.reference-card small{font-size:13px;color:#505c6e}
