[hidden]{display:none!important}.candidate-page{max-width:900px;margin-inline:auto}.candidate-progress{display:flex;gap:7px;list-style:none;padding:0;margin:0 0 24px;flex-wrap:wrap}.candidate-progress li{flex:1;min-width:80px;border-top:4px solid var(--line);padding-top:8px;font-size:.8rem;color:var(--muted)}.candidate-progress li[aria-current=step]{border-color:var(--brand);color:var(--brand);font-weight:750}.candidate-progress li.is-done{border-color:var(--accent)}.candidate-step{border:0;padding:0;margin:0;min-width:0}.candidate-step legend{font-size:1.4rem;font-weight:750;margin-bottom:8px}.candidate-step>p{color:var(--muted);margin-top:0}.candidate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.candidate-field{min-width:0;margin-bottom:12px}.candidate-field textarea{resize:vertical}.candidate-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:22px;border-top:1px solid var(--line);margin-top:24px}.candidate-actions .btn{min-height:48px}.candidate-counter{font-size:.83rem;color:var(--muted);margin-bottom:18px}.photo-card{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--bg);margin-block:18px}.photo-intro{display:flex;align-items:center;gap:16px;margin-bottom:16px}.photo-intro h3,.photo-intro p{margin:0}.photo-intro p{font-size:.86rem;color:var(--muted)}.photo-placeholder,.photo-preview{width:80px;height:80px;border-radius:50%;object-fit:cover;flex-shrink:0}.photo-placeholder{display:grid;place-items:center;font-size:2.5rem;background:var(--brand-soft);color:var(--brand)}.photo-stage{height:320px;max-width:100%;background:#172c32;border-radius:12px;overflow:hidden;touch-action:none}.photo-stage>img{display:block;max-width:100%}.photo-controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.photo-controls button{min-width:48px;min-height:48px;padding:10px 14px}.candidate-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.candidate-review div{border-bottom:1px solid var(--line);padding:8px 0;overflow-wrap:anywhere}.candidate-review dt{font-size:.8rem;color:var(--muted)}.candidate-review dd{margin:3px 0;font-weight:600;white-space:pre-wrap}.avatar{object-fit:cover}.candidate-step:focus{outline:none}.has-error{border-left:3px solid var(--danger);padding-left:10px}
@media(max-width:600px){.candidate-grid,.candidate-review{grid-template-columns:1fr}.candidate-progress li{min-width:52px;font-size:.7rem}.candidate-actions .btn{flex:1}.photo-stage{height:270px}.photo-card{padding:12px}.photo-intro{align-items:flex-start}.modal:has([data-candidate-form]){max-width:calc(100vw - 16px)}.modal-panel:has([data-candidate-form]){margin:12px 18px 24px}.candidate-step legend{font-size:1.25rem}}

/* Cabeçalho e ações fora da área rolável; somente os campos rolam. */
.modal[data-register-modal-root]{width:min(1040px,calc(100vw - 64px));max-width:none;height:min(860px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);overflow:hidden}
.modal[data-register-modal-root][open]{display:flex;flex-direction:column}
[data-register-modal-root] .modal-header{flex-shrink:0;padding:24px 32px 20px;border-bottom:1px solid var(--line);align-items:flex-start}
[data-register-modal-root] .modal-header h1{margin:4px 0;font-size:1.8rem}
[data-register-modal-root] .modal-header p{font-size:.92rem;max-width:700px}
[data-register-modal-root] .modal-feedback{flex-shrink:0;margin:12px 32px 0}
[data-register-modal-root] .modal-panel{display:flex;flex:1;min-height:0;overflow:hidden;margin:0;padding:0;border-radius:0}
[data-register-modal-root] [data-candidate-form]{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden;margin:0}
[data-register-modal-root] .candidate-body{flex:1;min-height:0;margin:0;padding:24px 32px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
[data-register-modal-root] .candidate-footer{flex-shrink:0;margin:0;padding:16px 32px;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -4px 16px #152b3305}
[data-register-modal-root] .candidate-actions{margin:0;padding:0;border:0;justify-content:flex-end}
[data-register-modal-root] [data-step-back]{margin-right:auto}
[data-register-modal-root] .candidate-footer p{margin:8px 0 0;font-size:.75rem}
@media(max-width:600px){
  .modal[data-register-modal-root]{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:16px}
  [data-register-modal-root] .modal-header{padding:16px;gap:12px}
  [data-register-modal-root] .modal-header h1{font-size:1.45rem}
  [data-register-modal-root] .modal-header p{font-size:.82rem;line-height:1.5}
  [data-register-modal-root] .modal-feedback{margin:8px 16px 0}
  [data-register-modal-root] .modal-panel{margin:0}
  [data-register-modal-root] .candidate-body{padding:20px 16px}
  [data-register-modal-root] .candidate-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}
}
@media(max-height:500px){
  [data-register-modal-root] .modal-header{padding:8px 16px;align-items:center}
  [data-register-modal-root] .modal-header p,[data-register-modal-root] .modal-header .eyebrow,[data-register-modal-root] .candidate-footer p{display:none}
  [data-register-modal-root] .modal-header h1{font-size:1.25rem;margin:0}
  [data-register-modal-root] .candidate-body{padding:16px}
  [data-register-modal-root] .candidate-footer{padding:8px 16px}
}
