/* Adaptação do template atual do portal; cores e fontes vêm do white label. */
html{height:auto;min-height:100%;background:var(--bg,#f6f7fa)}
body{height:auto;min-height:100dvh;margin:0;background:var(--bg,#f6f7fa);color:var(--text,#17334b);font-family:system-ui,sans-serif}
.cadastro-background{max-width:960px;margin:32px auto;padding:20px}
.cadastro-logo{max-width:180px;max-height:80px;object-fit:contain}
.cadastro-dialog{box-sizing:border-box;width:min(680px,100%);margin:24px auto;padding:24px;border:1px solid var(--border,#dce2ea);border-radius:16px;background:var(--card,#fff);color:var(--text,#17334b);box-shadow:0 18px 70px #0001}
.cadastro-description,.cadastro-term{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.cadastro-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cadastro-wide{grid-column:1/-1}
.cadastro-dialog label{display:block;font-weight:600;margin:0 0 6px;color:inherit;font-size:1rem}
.cadastro-dialog input:not([type=checkbox]):not([type=radio]),.cadastro-dialog select{box-sizing:border-box;width:100%;min-height:48px;padding:12px;border:1px solid var(--border,#cbd5e1);border-radius:10px;background:var(--card,#fff);color:inherit;font:inherit;font-size:16px}
.cadastro-dialog input[readonly]{background:var(--soft,#f9fafb)}
.cadastro-dialog fieldset{border:1px solid var(--border,#cbd5e1);border-radius:10px;padding:16px;min-width:0}
.cadastro-dialog .choice{display:flex;align-items:flex-start;gap:10px;line-height:1.5;font-weight:400;min-height:44px;padding-top:8px}
.choice input{flex:0 0 auto;width:20px;height:20px;margin:2px 0;accent-color:var(--primary,#111827)}
.cadastro-term{font-size:.9rem;padding:16px;border:1px solid var(--border,#dce2ea);border-radius:10px}
.cadastro-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.cadastro-actions .btn{box-sizing:border-box;min-height:48px;padding:12px 18px;border-radius:10px;border:1px solid var(--primary,#111827);background:var(--primary,#111827);color:var(--primary-contrast,#fff);font:inherit;font-weight:600;text-decoration:none;text-align:center;cursor:pointer;white-space:normal}
.cadastro-actions .secondary{background:transparent;color:var(--primary,#111827)}
.cadastro-dialog :disabled{opacity:.6;cursor:not-allowed}.cadastro-dialog[aria-busy=true] button:disabled{cursor:wait}.cadastro-note{font-size:.9rem;color:var(--muted,#64748b);line-height:1.5}
.cadastro-status{overflow-wrap:anywhere;line-height:1.5}.cadastro-status.error{color:var(--err,#a02727)}
.cadastro-dialog :focus-visible{outline:3px solid var(--focus,var(--primary,#174a7c));outline-offset:3px}
.cadastro-dialog a{overflow-wrap:anywhere}.local-label{margin-bottom:6px}[hidden]{display:none!important}
.cadastro-dialog [aria-invalid=true]{border-color:var(--err,#a02727)!important;box-shadow:0 0 0 1px var(--err,#a02727)}
.cadastro-dialog input[type=checkbox][aria-invalid=true]{outline:2px solid var(--err,#a02727);outline-offset:2px}
.field-error{color:var(--err,#a02727);font-size:.9rem;line-height:1.45;margin:6px 0 0}
.surname-examples{padding:12px 16px;border-left:3px solid var(--primary,#111827);border-radius:6px;background:var(--soft,#f9fafb);font-size:.9rem;line-height:1.6;margin:14px 0}
.surname-examples p{margin:3px 0}
.cadastro-dialog .help-actions{border-top:1px solid var(--border,#dce2ea);padding-top:18px;margin-top:24px}
.cadastro-dialog .help-button{display:flex;align-items:center;justify-content:center;gap:8px;line-height:1.4}
.cadastro-dialog .help-button svg{width:20px;height:20px;flex-shrink:0}
@media(max-width:560px){.cadastro-background{margin:16px auto;padding:16px}.cadastro-grid{grid-template-columns:1fr}.cadastro-wide{grid-column:auto}.cadastro-dialog{padding:18px}.cadastro-actions{flex-direction:column}.cadastro-actions .btn{width:100%}}
