.template-toolbar{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:16px;background:var(--cream);border:1px solid var(--line);border-radius:9px;margin:0 0 18px}.template-toolbar p{font-size:12px;line-height:1.7;margin:0}.template-toolbar strong{display:block;font-size:16px}.template-toolbar .button{font-size:12px;padding:13px 15px;white-space:nowrap}.template-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.template-filters button{border:1px solid var(--line);border-radius:20px;padding:10px 13px;background:white;font-size:12px;color:var(--ink);cursor:pointer;min-height:44px}.template-filters button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}#template-count{font-size:11px;color:var(--muted);margin:0 0 16px}.builder-grid .template-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.builder-grid .template-card{display:flex;flex-direction:column;gap:0;padding:16px;align-items:start}.builder-grid .template-option>input:checked+.template-card{padding:15px}.builder-grid .template-card>strong{margin-top:12px;font-size:13px;padding-right:0}.builder-grid .template-card>small{font-size:11px;line-height:1.7}.builder-grid .template-mini{width:78px;height:104px;padding:13px 9px;flex-shrink:0}.builder-grid .mini-sidebar,.builder-grid .mini-modern{padding-left:30px}.template-card .selected-label{display:none}.is-selected .selected-label{display:inline-block;font-size:10px;color:var(--green);font-weight:700;margin-top:8px}.mini-minimal i{background:#374151;height:1px;width:40%}.mini-minimal{border:0;box-shadow:0 0 0 1px #ddd}.mini-executive{text-align:center;font-family:Georgia,serif}.mini-executive>b{font-family:Georgia,serif}.mini-executive i{background:#765a28;width:100%;height:1px}.mini-modern{background:linear-gradient(90deg,#eef6f4 30%,white 30%)}.mini-modern i{background:#16645d}.mini-elegant>b{font-family:Georgia,serif;color:#6c365b}.mini-elegant i{background:#6c365b;height:1px;width:100%}.mini-compact i,.mini-compact em{margin:4px 0;height:2px}.mini-compact i{background:#34495e}.mini-graduate i{background:#245aa0;width:75%}.mini-graduate em:nth-child(3){height:7px}.mini-timeline{border-left:4px solid #26706a}.mini-timeline i{background:#26706a;height:2px}
.cv[data-template=minimal]{color:#1f2937}.cv[data-template=minimal] h2{font-size:22px;letter-spacing:0}.cv[data-template=minimal] h3{border:0;color:var(--resume-accent);letter-spacing:0;text-transform:none}.cv[data-template=minimal] .cv-contact{border:0;padding-bottom:5px}.cv[data-template=executive] .cv-heading>h2,.cv[data-template=executive] .cv-heading>.cv-role,.cv[data-template=executive]>.cv-contact{text-align:center}.cv[data-template=executive] h3{border-bottom:1px solid var(--resume-accent);padding-bottom:7px;letter-spacing:.5px}.cv[data-template=executive] .cv-contact{border:0}.cv[data-template=elegant] .cv-heading>h2{font-size:29px;letter-spacing:-.7px;font-weight:400}.cv[data-template=elegant] .cv-heading>.cv-role{font-style:italic}.cv[data-template=elegant] h3{border-bottom:1px solid var(--resume-accent);padding-bottom:7px;text-transform:none;letter-spacing:.2px}.cv[data-template=elegant] .cv-contact{border:0}.cv[data-template=compact] .cv-heading>h2{font-size:22px;text-transform:uppercase}.cv[data-template=compact] h3{text-transform:uppercase;letter-spacing:.4px}.cv[data-template=compact] .cv-contact{border-bottom:1px solid var(--resume-accent);padding-bottom:10px}.cv[data-template=graduate]{display:flex;flex-direction:column}.cv[data-template=graduate]>.cv-header{order:1}.cv[data-template=graduate] .cv-heading>h2{order:1}.cv[data-template=graduate] .cv-heading>.cv-role{order:2}.cv[data-template=graduate]>.cv-contact{order:3}.cv[data-template=graduate]>.cv-resumo{order:4}.cv[data-template=graduate]>.cv-formacao{order:5}.cv[data-template=graduate]>.cv-habilidades{order:6}.cv[data-template=graduate]>.cv-experiencia{order:7}.cv[data-template=graduate] h3{border-bottom:2px solid var(--resume-accent);padding-bottom:6px}.cv[data-template=graduate] .cv-contact{border:0}.cv[data-template=timeline] section{border-left:2px solid var(--resume-accent);padding-left:14px}.cv[data-template=timeline] h3{text-transform:none;letter-spacing:.2px}.cv[data-template=timeline] .cv-contact{border:0}
.cv[data-layout=sidebar]{display:grid;grid-template-columns:minmax(0,32%) minmax(0,1fr);grid-template-areas:'contact name' 'contact role' 'education summary' 'skills experience';gap:0 20px;background:linear-gradient(90deg,var(--resume-accent,#1e3a52) 34%,#f5f2ed 34%);padding:24px 18px;align-content:start}.cv[data-layout=sidebar] .cv-heading>h2{grid-area:name;font-size:23px}.cv[data-layout=sidebar] .cv-heading>.cv-role{grid-area:role;letter-spacing:1px;text-transform:uppercase;font-size:11px;border-bottom:2px solid var(--resume-accent);padding-bottom:12px}.cv[data-layout=sidebar]>.cv-contact{grid-area:contact;align-self:start;color:white;border:0;margin:0;padding-right:8px;white-space:pre-line}.cv[data-layout=sidebar]>.cv-resumo{grid-area:summary}.cv[data-layout=sidebar]>.cv-experiencia{grid-area:experience}.cv[data-layout=sidebar]>.cv-formacao{grid-area:education;color:#fff;padding-right:8px}.cv[data-layout=sidebar]>.cv-habilidades{grid-area:skills;color:#fff;padding-right:8px}.cv[data-layout=sidebar] section{min-width:0}.cv[data-layout=sidebar] section p{color:inherit}.cv[data-layout=sidebar] h3{font-size:10px;border-bottom:1px solid currentColor;padding-bottom:7px;letter-spacing:.3px}.cv[data-layout=sidebar]>.cv-formacao h3,.cv[data-layout=sidebar]>.cv-habilidades h3{color:white}.cv[data-layout=sidebar].has-photo{grid-template-areas:'header header' 'contact summary' 'education experience' 'skills experience'}.cv[data-side=light]{background:linear-gradient(90deg,#eef6f4 34%,white 34%)}.cv[data-side=light]>.cv-contact,.cv[data-side=light]>.cv-formacao,.cv[data-side=light]>.cv-habilidades,.cv[data-side=light]>.cv-formacao h3,.cv[data-side=light]>.cv-habilidades h3{color:#23433f}
@media(max-width:700px){.template-toolbar{position:static;flex-wrap:wrap}.builder-grid .template-options{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-grid .template-card{padding:14px}.builder-grid .template-option>input:checked+.template-card{padding:13px}.cv[data-layout=sidebar]{column-gap:14px;padding:20px 12px}}@media(max-width:370px){.builder-grid .template-options{grid-template-columns:1fr}.builder-grid .template-card{display:grid;grid-template-columns:78px 1fr;column-gap:12px}.builder-grid .template-mini{grid-row:span 3}}@media print{.cv[data-layout=sidebar]{display:grid!important;column-gap:8mm;padding:7mm!important;min-height:0}.cv[data-layout=sidebar] .cv-heading>h2{font-size:24pt}.cv[data-layout=sidebar] h3{font-size:10pt}.cv[data-layout=sidebar] .cv-heading>.cv-role{font-size:11pt}.cv[data-layout=sidebar]>.cv-contact{font-size:10pt}.cv[data-template=executive] .cv-heading>h2{font-size:27pt}.cv[data-template=minimal] .cv-heading>h2,.cv[data-template=compact] .cv-heading>h2{font-size:24pt}.cv[data-template=elegant] .cv-heading>h2{font-size:28pt}.cv[data-template=graduate]{display:flex!important}}

@media screen and (min-width:701px) and (max-width:1023px){
  .builder-grid .template-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .builder-grid .template-card{padding:20px;min-width:0}
  .builder-grid .template-option>input:checked+.template-card{padding:19px}
  .builder-grid .template-mini{width:90px;height:120px}
  .builder-grid .template-card>strong{font-size:14px}
  .builder-grid .template-card>small{font-size:12px}
}
@media screen and (max-width:700px){
  .template-toolbar{gap:12px;padding:14px}
  .template-toolbar .button{white-space:normal;min-height:46px}
  .template-filters{gap:8px}
  .template-filters button{min-height:44px;line-height:1.4}
  .builder-grid .template-option,.builder-grid .template-card{min-width:0}
  .builder-grid .template-card>strong{font-size:13px;overflow-wrap:anywhere}
  .builder-grid .template-card>small{font-size:12px}
}
@media screen and (max-width:370px){
  .template-toolbar{align-items:stretch}
  .template-toolbar .button{width:100%}
  .builder-grid .template-card{grid-template-columns:78px minmax(0,1fr);column-gap:12px}
  .builder-grid .template-card>strong{margin-top:0;padding-right:18px}
  .builder-grid .template-card>small,.builder-grid .template-card .selected-label{grid-column:2}
  .cv[data-layout=sidebar]{column-gap:10px;padding:18px 10px}
  .cv[data-layout=sidebar] .cv-heading>h2{font-size:20px}
}
