.resume-paper{padding:30px;min-height:620px;overflow-wrap:anywhere}.resume-preview-header{border-bottom:2px solid #142c26;padding-bottom:18px}.resume-preview-header h2{font-size:28px;line-height:1.15;letter-spacing:-.8px;margin:0 0 7px;color:#142c26}.resume-preview-header p{font-size:12px;line-height:1.5;margin:0;color:#526354}.resume-preview-header p:first-of-type{font-size:14px;color:#668038;font-weight:600}.resume-preview-header p:empty{display:none}.resume-preview-section{margin-top:24px}.resume-preview-section h3{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#60715f;margin:0 0 11px;padding-bottom:7px;border-bottom:1px solid #dce3d8}.resume-preview-section>p{font-size:11px;line-height:1.65;color:#344b3f;margin:0;white-space:pre-line}.resume-preview-entry{margin:0 0 17px}.resume-preview-entry:last-child{margin-bottom:0}.resume-preview-entry strong{display:block;font-size:12px;color:#142c26;line-height:1.4}.resume-preview-entry small{display:block;font-size:10px;color:#687568;line-height:1.5;margin-top:3px}.resume-preview-entry .description{font-size:10px;line-height:1.6;color:#344b3f;margin:6px 0 0;white-space:pre-line}.resume-skill-list{display:flex;flex-wrap:wrap;gap:6px}.resume-skill{font-size:10px;color:#294b36;background:#eef3e6;border-radius:4px;padding:6px 8px}.resume-empty-hint{font-size:11px;line-height:1.6;color:#687568;margin:27px 0 0;padding:11px;background:#f7f9f3;border-radius:5px}.resume-empty-hint:empty{display:none}.resume-entry{background:#f7f8f3;border:1px solid #e1e7db;padding:17px;border-radius:9px;margin-bottom:14px}.resume-entry-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}.resume-entry-heading h3{font-size:12px;margin:0;color:#142c26}.resume-entry .field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.resume-entry .field-grid label:last-child{grid-column:1/-1}.resume-entry label+label{margin-top:0}.resume-entry textarea{min-height:78px}.resume-entry .remove-entry{font-size:11px;color:#716a5c}.resume-workspace .field-help{margin-bottom:14px}.resume-workspace .submit-panel>p{max-width:480px}.resume-workspace .privacy-note{margin-left:0;margin-right:0}@media(max-width:740px){.resume-paper{padding:26px;min-height:0}.resume-entry .field-grid{grid-template-columns:1fr}.resume-entry .field-grid label:last-child{grid-column:auto}}@media(max-width:420px){.resume-paper{padding:20px}.resume-preview-header h2{font-size:24px}}

.template-control{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:#526354}.template-control select{border:1px solid #cbd5c7;border-radius:6px;background:#fff;color:#142c26;padding:7px 24px 7px 8px;font-size:12px}.resume-paper[data-template="moderno"] .resume-preview-header{border-bottom-color:#315b47;background:#315b47;margin:-30px -30px 0;padding:30px;border-radius:4px 4px 0 0}.resume-paper[data-template="moderno"] .resume-preview-header h2,.resume-paper[data-template="moderno"] .resume-preview-header p{color:#fff}.resume-paper[data-template="moderno"] .resume-preview-header p:first-of-type{color:#dfff76}.resume-paper[data-template="compacto"] .resume-preview-section{margin-top:16px}.resume-paper[data-template="compacto"] .resume-preview-entry{margin-bottom:10px}.resume-paper[data-template="compacto"] .resume-preview-section h3{margin-bottom:7px;padding-bottom:4px}@media(max-width:740px){.form-toolbar{flex-wrap:wrap}.template-control{order:3;width:100%;justify-content:space-between}.template-control select{flex:1;max-width:210px}}

/* Hierarquia refinada dos modelos de currículo */
.resume-paper[data-template="classico"] .resume-preview-header{border-bottom-color:#b9c8b4;padding-bottom:16px}.resume-paper[data-template="classico"] .resume-preview-header p:first-of-type{color:#668038}.resume-paper[data-template="classico"] .resume-preview-header p:not(:first-of-type){color:#59685f}.resume-paper[data-template="classico"] .resume-preview-section h3{color:#526354}

/* Paletas escolhidas pelo usuário */
.resume-paper[data-color="azul"] .resume-preview-header{border-bottom-color:#b9cbe0}.resume-paper[data-color="azul"] .resume-preview-header h2{color:#183b62}.resume-paper[data-color="azul"] .resume-preview-header p:first-of-type,.resume-paper[data-color="azul"] .resume-preview-section h3{color:#3d73ad}.resume-paper[data-color="azul"] .resume-preview-section h3{border-bottom-color:#d8e4f0}.resume-paper[data-color="azul"] .resume-skill{color:#244f7d;background:#e8f1fa}
.resume-paper[data-color="ameixa"] .resume-preview-header{border-bottom-color:#d6bfd1}.resume-paper[data-color="ameixa"] .resume-preview-header h2{color:#45243f}.resume-paper[data-color="ameixa"] .resume-preview-header p:first-of-type,.resume-paper[data-color="ameixa"] .resume-preview-section h3{color:#864f7b}.resume-paper[data-color="ameixa"] .resume-preview-section h3{border-bottom-color:#eadbe7}.resume-paper[data-color="ameixa"] .resume-skill{color:#653c5f;background:#f3e8f1}
.resume-paper[data-color="grafite"] .resume-preview-header{border-bottom-color:#c7cbd0}.resume-paper[data-color="grafite"] .resume-preview-header h2{color:#252b33}.resume-paper[data-color="grafite"] .resume-preview-header p:first-of-type,.resume-paper[data-color="grafite"] .resume-preview-section h3{color:#586474}.resume-paper[data-color="grafite"] .resume-preview-section h3{border-bottom-color:#e0e3e7}.resume-paper[data-color="grafite"] .resume-skill{color:#3f4a58;background:#edf0f3}
.resume-paper[data-color="terracota"] .resume-preview-header{border-bottom-color:#e3c5b5}.resume-paper[data-color="terracota"] .resume-preview-header h2{color:#603629}.resume-paper[data-color="terracota"] .resume-preview-header p:first-of-type,.resume-paper[data-color="terracota"] .resume-preview-section h3{color:#b25d45}.resume-paper[data-color="terracota"] .resume-preview-section h3{border-bottom-color:#f0ddd3}.resume-paper[data-color="terracota"] .resume-skill{color:#814735;background:#f8e9e1}
.resume-paper[data-template="moderno"][data-color="azul"] .resume-preview-header{background:#244f7d}.resume-paper[data-template="moderno"][data-color="ameixa"] .resume-preview-header{background:#653c5f}.resume-paper[data-template="moderno"][data-color="grafite"] .resume-preview-header{background:#3f4a58}.resume-paper[data-template="moderno"][data-color="terracota"] .resume-preview-header{background:#814735}


/* O modelo moderno mantém contraste em qualquer paleta */
.resume-paper[data-template="moderno"] .resume-preview-header h2{color:#fff!important}.resume-paper[data-template="moderno"] .resume-preview-header p:first-of-type{color:#f0ffb5!important}.resume-paper[data-template="moderno"] .resume-preview-header p:not(:first-of-type){color:#fff!important}



/* Barra de controles alinhada */
.form-toolbar{display:flex;align-items:center;gap:18px}.form-toolbar>.template-control{margin:0;white-space:nowrap}.form-toolbar>.text-button{margin-left:auto;white-space:nowrap}@media(max-width:740px){.form-toolbar{gap:10px;align-items:center}.form-toolbar>.template-control{order:initial;width:auto;justify-content:flex-start}.form-toolbar>.template-control select{flex:initial;max-width:none}.form-toolbar>.text-button{margin-left:auto}}@media(max-width:520px){.form-toolbar{flex-wrap:wrap}.form-toolbar>span{width:100%}.form-toolbar>.text-button{margin-left:0}}@media(max-width:360px){.form-toolbar>.template-control{width:100%;justify-content:space-between}.form-toolbar>.template-control select{flex:1;max-width:210px}}
