/* ContratouAI V2 — estilos estruturais declarados aqui (não delegados ao Tailwind CDN). */
:root { --navy: #111344; --violet: #7b2cff; --violet-dark: #6420d6; --blue: #2563ff; --lavender: #dae0f2; --gray: #6b7280; }
html { -webkit-text-size-adjust: 100%; }
h1, h2, h3, .font-display { font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; letter-spacing: -0.02em; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv11', 'ss01'; color: var(--navy); background: #f9fafb; margin: 0; }
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 72rem; margin: 0 auto; padding: .75rem 1rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a, .site-nav button { padding: .5rem .75rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; color: #374151; background: none; border: 0; cursor: pointer; text-decoration: none; }
.site-nav a:hover, .site-nav button:hover { background: #f3f4f6; }
.site-nav a.is-active { color: var(--violet); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: .625rem; font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%); color: #fff; box-shadow: 0 4px 14px rgba(123,44,255,.28); }
.btn-primary:hover { opacity: .92; }
.btn-secondary { background: #fff; color: var(--navy); border-color: #d1d5db; }
.btn-secondary:hover { background: #f9fafb; }
.btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(17,19,68,.04); }
.input, .select, .textarea { font-family: inherit; width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: .6rem; padding: .6rem .8rem; font-size: .9rem; background: #fff; color: var(--navy); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid rgba(123,44,255,.35); border-color: var(--violet); }
.label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.badge { display: inline-flex; align-items: center; padding: .1rem .6rem; border-radius: 9999px; font-size: .72rem; font-weight: 600; background: rgba(123,44,255,.1); color: var(--violet); }
.badge-gray { background: #f3f4f6; color: #374151; }
.badge-green { background: #d1fae5; color: #047857; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.container { max-width: 80rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.container-narrow { max-width: 28rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.muted { color: var(--gray); }
.flash { max-width: 80rem; margin: 1rem auto 0; padding: .75rem 1rem; border-radius: .6rem; font-size: .9rem; font-weight: 500; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); padding: .5rem .75rem; border-bottom: 1px solid #e5e7eb; }
table.table td { padding: .75rem; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
@media (max-width: 640px) { .site-header__bar { flex-direction: column; align-items: flex-start; } }

/* ── Identidade do ContratouAI (alinhada ao sistema oficial) ─────────────── */
.public-header { position: sticky; top: 0; z-index: 50; padding: 1rem 1rem .5rem; }
.public-header__bar { max-width: 80rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 1rem; border: 1px solid rgba(218,224,242,.85); background: #fff; padding: .75rem 1rem; box-shadow: 0 4px 24px rgba(17,19,68,.08), 0 1px 3px rgba(17,19,68,.05); }
.public-header__logo img { display: block; height: 2.6rem; width: auto; }
.public-nav { display: none; align-items: center; justify-content: center; gap: 2rem; }
.public-nav a { position: relative; padding-bottom: .625rem; font-size: .9375rem; font-weight: 500; color: #374151; text-decoration: none; white-space: nowrap; }
.public-nav a:hover, .public-nav a.is-active { color: var(--violet); }
.public-nav a.is-active { font-weight: 600; }
.public-nav a.is-active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; border-radius: 9999px; background: var(--violet); transform: translateX(-50%); }
.public-actions { display: flex; align-items: center; gap: .6rem; }
.public-actions .entrar { display: inline-flex; align-items: center; border-radius: .625rem; border: 1px solid #e5e7eb; background: #fff; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.public-actions .entrar:hover { background: #f9fafb; border-color: #d1d5db; }
.public-actions .cta { display: inline-flex; align-items: center; gap: .375rem; border-radius: .625rem; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: #fff; text-decoration: none; background: linear-gradient(135deg, #2563ff 0%, #7b2cff 100%); box-shadow: 0 4px 14px rgba(123,44,255,.32); }
.public-actions .cta:hover { opacity: .92; }
@media (min-width: 1024px) { .public-header__bar { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); padding: .875rem 1.5rem; } .public-nav { display: flex; } .public-actions { justify-self: end; } }
@media (max-width: 480px) { .public-actions .entrar { display: none; } }
.site-footer { margin-top: 4rem; border-top: 1px solid #e5e7eb; background: #fff; }
.site-footer__in { max-width: 80rem; margin: 0 auto; padding: 2.5rem 1rem; font-size: .875rem; color: #4b5563; }
.site-footer__in a { margin-right: 1.25rem; font-weight: 600; color: #5b21b6; text-decoration: none; }
.site-footer__in a:hover { text-decoration: underline; }

/* Painel logado: sidebar navy flutuante */
body.app-panel { background: #f9fafb; }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; align-self: flex-start; width: 18rem; flex-shrink: 0; height: 100vh; padding: 10px; box-sizing: border-box; }
.app-sidebar__inner { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; color: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.13);
    background: radial-gradient(circle at 18% 4%, rgba(70,91,255,.25), transparent 29%), radial-gradient(circle at 90% 88%, rgba(123,44,255,.2), transparent 34%), linear-gradient(155deg, #111344 0%, #151447 46%, #25145d 100%);
    box-shadow: 0 22px 55px rgba(17,19,68,.28), inset 0 1px rgba(255,255,255,.12); }
.app-sidebar__brand { margin: 10px 10px 5px; padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.045)); }
.app-sidebar__brand img { display: block; height: 2.2rem; width: auto; filter: brightness(0) invert(1); opacity: .96; }
.app-sidebar__label { padding: 1rem 1.25rem .4rem; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.57); }
.app-sidebar nav { flex: 1; overflow-y: auto; padding: 0 .6rem; display: flex; flex-direction: column; gap: .15rem; }
.app-sidebar nav a { position: relative; display: flex; align-items: center; gap: .7rem; padding: .62rem .85rem; border-radius: 15px; border: 1px solid transparent; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.92); text-decoration: none; transition: background .3s, transform .3s; }
.app-sidebar nav a svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: rgba(255,255,255,.8); }
.app-sidebar nav a:hover { background: rgba(255,255,255,.095); border-color: rgba(255,255,255,.1); transform: translateX(2px); }
.app-sidebar nav a.is-active { background: linear-gradient(100deg, rgba(255,255,255,.18), rgba(255,255,255,.09)); border-color: rgba(255,255,255,.17); box-shadow: inset 0 1px rgba(255,255,255,.14), 0 10px 25px rgba(4,8,43,.2); }
.app-sidebar__user { margin: .6rem; padding: .8rem; display: flex; align-items: center; gap: .7rem; border-top: 1px solid rgba(255,255,255,.1); }
.app-sidebar__avatar { display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 9999px; color: #fff; font-weight: 700; font-size: .85rem; background: linear-gradient(135deg, #4264ff, #8a42ef); flex-shrink: 0; }
.app-sidebar__user strong { display: block; font-size: .85rem; color: #fff; line-height: 1.2; }
.app-sidebar__user span { font-size: .72rem; color: rgba(255,255,255,.68); }
.app-sidebar__user button { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: .5rem; padding: .3rem .6rem; font-size: .75rem; cursor: pointer; }
.app-sidebar__user button:hover { background: rgba(255,255,255,.12); }
.app-content { flex: 1; min-width: 0; }
.app-topbar { display: none; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid #e5e7eb; }
.app-topbar img { height: 2rem; }

/* Cartões de vaga */
.job-card { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; margin-bottom: .9rem; transition: border-color .2s, box-shadow .2s; }
.job-card:hover { border-color: #ddd6fe; box-shadow: 0 6px 18px rgba(17,19,68,.08); }
.job-card__main { display: flex; gap: 1rem; min-width: 0; flex: 1; }
.avatar-co { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .75rem; background: #ede9fe; color: #4c1d95; font-weight: 700; font-size: .85rem; flex-shrink: 0; box-shadow: inset 0 0 0 1px #ddd6fe; }
.job-card__actions { display: flex; flex-direction: column; gap: .5rem; }
.page-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1.25rem; }

/* Landing */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 12% 18%, rgba(70,91,255,.10), transparent 32%), radial-gradient(circle at 88% 70%, rgba(123,44,255,.12), transparent 36%); pointer-events: none; }
.hero__grid { position: relative; max-width: 80rem; margin: 0 auto; padding: 3rem 1rem 3.5rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.1fr .9fr; padding-top: 4rem; } }
.hero__badge { display: inline-flex; align-items: center; gap: .4rem; border-radius: 9999px; border: 1px solid var(--lavender); background: rgba(218,224,242,.35); padding: .35rem .85rem; font-size: .78rem; font-weight: 600; color: var(--navy); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; font-weight: 800; margin: 1rem 0; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #2563ff, #7b2cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.1rem; color: #4b5563; max-width: 34rem; margin: 0 0 1.5rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__actions .btn { padding: .8rem 1.4rem; font-size: .95rem; }
.hero__img img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(17,19,68,.18)); }
.benefits { max-width: 80rem; margin: -1.25rem auto 0; padding: 0 1rem; position: relative; z-index: 2; }
.benefits__box { display: grid; border-radius: 1.5rem; border: 1px solid rgba(218,224,242,.6); background: #fff; box-shadow: 0 8px 40px rgba(17,19,68,.06); overflow: hidden; }
@media (min-width: 720px) { .benefits__box { grid-template-columns: repeat(3, 1fr); } .benefit + .benefit { border-left: 1px solid rgba(218,224,242,.6); } }
.benefit { display: flex; gap: .9rem; padding: 1.4rem; align-items: flex-start; }
.benefit__icon { display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: linear-gradient(135deg, rgba(37,99,255,.12), rgba(123,44,255,.14)); color: var(--violet); flex-shrink: 0; }
.benefit__icon svg { width: 1.25rem; height: 1.25rem; }
.benefit strong { display: block; font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; }
.benefit span { font-size: .88rem; color: #4b5563; }
.band { max-width: 80rem; margin: 3.5rem auto 0; padding: 0 1rem; }
.band h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .3rem; }
.cta-band { max-width: 80rem; margin: 3.5rem auto 0; padding: 0 1rem; }
.cta-band__box { border-radius: 1.5rem; padding: 2.5rem 1.5rem; text-align: center; color: #fff; background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(123,44,255,.35), transparent 60%), radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37,99,255,.25), transparent 55%), linear-gradient(160deg, #0d0f2e 0%, #111344 40%, #52154E 100%); }
.cta-band__box h2 { font-size: 1.6rem; margin: 0 0 .5rem; }
.cta-band__box p { margin: 0 0 1.25rem; color: rgba(255,255,255,.8); }
.cta-band__box .btn-light { background: #fff; color: var(--navy); }

/* ── Tela de login (split) ───────────────────────────────────────────────── */
body.auth-page { display: flex; min-height: 100vh; background: #f3f2f7; }
.auth-flash { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 20; width: min(28rem, 92vw); padding: .7rem 1rem; border-radius: .6rem; font-size: .85rem; font-weight: 500; box-shadow: 0 8px 24px rgba(17,19,68,.12); }
.auth-hero { position: relative; flex: 0 0 50%; display: none; flex-direction: column; padding: 32px 40px 0; background: #f3f2f7; overflow: hidden; min-height: 100vh; box-sizing: border-box; }
.auth-hero__logo img { height: 59px; width: auto; max-width: 328px; }
.auth-hero__body { position: relative; z-index: 3; margin-top: 48px; max-width: 380px; }
.auth-hero__dots { position: absolute; top: 4px; right: -52px; width: 44px; height: 56px; background-image: radial-gradient(circle, rgba(34,197,94,.42) 2px, transparent 2.1px); background-size: 10px 10px; }
.auth-hero h1 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 2.5rem; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: #111; margin: 0; }
.auth-hero h1 span { color: var(--violet); }
.auth-hero p { margin: 12px 0 0; font-size: .875rem; line-height: 1.6; color: #666; max-width: 340px; }
.auth-hero__scene { position: absolute; left: 0; bottom: 0; z-index: 2; width: 100%; height: 48%; overflow: hidden; pointer-events: none; }
.auth-hero__scene img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
.auth-hero__scene::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 28%; z-index: 1; background: linear-gradient(to bottom, #f3f2f7, transparent); }
.auth-panel { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: #fff; min-height: 100vh; box-sizing: border-box; overflow-y: auto; }
@media (min-width: 1024px) { .auth-hero { display: flex; } .auth-panel { flex: 0 0 50%; padding: 40px 48px; height: 100vh; } .auth-mobile-logo { display: none !important; } }
.auth-panel__inner { width: 100%; max-width: 440px; }
.auth-mobile-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-mobile-logo img { height: 3.5rem; width: auto; }
.auth-title { font-family: Inter, sans-serif; font-size: 1.25rem; font-weight: 700; color: #111; text-align: center; margin: 0; }
.auth-subtitle { margin: 6px 0 0; font-size: .8125rem; color: #666; text-align: center; }
.auth-form { margin-top: 24px; }
.auth-field { margin-top: 18px; }
.auth-field label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 500; color: #666; }
.auth-input-wrap { position: relative; }
.auth-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; display: flex; }
.auth-input { width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid #e0e0e0; background: #fff; padding: 11px 14px 11px 42px; font-size: .875rem; color: #111; outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.auth-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123,44,255,.12); }
.auth-input.has-toggle { padding-right: 44px; }
.auth-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #9ca3af; cursor: pointer; padding: 2px; display: flex; }
.auth-row { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.auth-forgot { font-size: .8125rem; font-weight: 600; color: var(--violet); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
.auth-submit { margin-top: 20px; display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 16px; font-size: .9375rem; font-weight: 700; color: #fff; cursor: pointer; background: var(--violet); box-shadow: 0 8px 20px rgba(123,44,255,.28); font-family: inherit; }
.auth-submit:hover { opacity: .93; }
.auth-register { margin-top: 18px; text-align: center; font-size: .8125rem; color: #666; }
.auth-register a { font-weight: 700; color: var(--violet); text-decoration: none; }
.auth-register a:hover { text-decoration: underline; }
.auth-demo { margin-top: 22px; padding: 16px; border: 1px dashed rgba(124,58,237,.32); border-radius: 16px; background: rgba(124,58,237,.045); }
.auth-demo__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 12px; color: #0b102f; font-size: 13px; font-weight: 700; }
.auth-demo__title span { color: #7c3aed; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; }
.auth-demo__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.auth-demo__item { width: 100%; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid rgba(20,31,78,.12); border-radius: 12px; background: #fff; font-family: inherit; text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.auth-demo__item:hover, .auth-demo__item:focus-visible { border-color: rgba(124,58,237,.5); box-shadow: 0 8px 20px rgba(17,19,68,.08); }
.auth-demo__label { color: #0b102f; font-size: 12.5px; font-weight: 700; }
.auth-demo__creds { color: #47506b; font-size: 11.5px; word-break: break-all; }
.auth-demo__note { color: #65708a; font-size: 10.5px; }
.auth-demo__hint { margin: 10px 0 0; color: #65708a; font-size: 11.5px; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; font-size: .75rem; font-weight: 500; color: #666; }
.auth-security svg { color: #22c55e; flex-shrink: 0; }

/* ── Cadastro (split) ────────────────────────────────────────────────────── */
.auth-panel--top { align-items: flex-start; }
.auth-panel--top .auth-panel__inner { margin: auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.auth-tab { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e0e0e0; background: #fff; text-decoration: none; color: #111; }
.auth-tab.is-active { border-color: rgba(123,44,255,.45); background: rgba(123,44,255,.08); }
.auth-tab__head { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 700; }
.auth-tab.is-active .auth-tab__head { color: var(--violet); }
.auth-tab__hint { font-size: .72rem; color: #666; }
.auth-alert { margin-top: 12px; border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: 9px 12px; font-size: 12px; }
.auth-grid-2 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .auth-grid-2 { grid-template-columns: 1fr 1fr; } }
.auth-section { margin-top: 16px; }
.auth-section__title { margin: 0; font-size: .875rem; font-weight: 700; }
.auth-section__hint { margin: 2px 0 4px; font-size: .75rem; color: #666; }
.auth-file { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; border: 1px solid #e5e7eb; border-radius: .75rem; background: #fff; padding: .5rem .75rem; font-size: .85rem; color: #4b5563; }
.auth-details { margin-top: 16px; border: 1px solid #f3f4f6; background: rgba(249,250,251,.6); border-radius: .75rem; padding: .75rem; }
.auth-details summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--violet); }
.auth-terms { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: .8rem; color: #4b5563; }
.auth-terms input { margin-top: 3px; accent-color: var(--violet); }
.auth-terms a, .auth-legal-link a { color: var(--violet); font-weight: 600; }
.auth-legal { width: min(560px, 92vw); max-height: 85vh; padding: 0; border: 1px solid #ebe9f2; border-radius: 20px; box-shadow: 0 24px 64px rgba(17,17,68,.18); }
.auth-legal::backdrop { background: rgba(17,17,68,.45); backdrop-filter: blur(4px); }
.auth-legal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid #f0eff5; }
.auth-legal__head h2 { margin: 0; font-size: 1.1rem; }
.auth-legal__close { border: 0; background: transparent; cursor: pointer; font-size: 1rem; color: #9ca3af; }
.auth-legal__body { padding: 16px 24px; max-height: 50vh; overflow-y: auto; font-size: .8125rem; line-height: 1.65; color: #4b5563; }
.auth-legal__body h3 { margin: 16px 0 6px; font-size: .875rem; color: #111; }
.auth-legal__body p { margin: 0 0 10px; }
.auth-legal__foot { padding: 14px 24px 18px; border-top: 1px solid #f0eff5; }
.auth-legal-note { margin-top: 8px; font-size: .6875rem; text-align: center; color: #9ca3af; }
.auth-legal-note a { color: var(--violet); font-weight: 600; }

/* ── Telas centradas (esqueci/redefinir senha, convite) ──────────────────── */
body.auth-center { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; background: #efe9e7; }
.auth-center__main { width: 100%; max-width: 28rem; }
.auth-center__logo { display: flex; justify-content: center; margin-bottom: 2rem; }
.auth-center__logo img { height: 2.2rem; width: auto; }
body.auth-center .container-narrow { padding: 0; max-width: none; }
body.auth-center .card { border: 1px solid var(--lavender); border-radius: 1rem; padding: 2rem; box-shadow: 0 1px 2px rgba(17,19,68,.05); }
body.auth-center h1 { font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; font-size: 1.25rem !important; font-weight: 600 !important; margin-bottom: .4rem !important; }

.job-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .job-layout { grid-template-columns: minmax(0, 1fr) 22rem; } }

/* Perfil do candidato */
.profile-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .profile-layout { grid-template-columns: 18rem minmax(0, 1fr); } .profile-side { position: sticky; top: 1rem; } }
.profile-tabs { display: flex; gap: .25rem; overflow-x: auto; margin-bottom: 1.25rem; padding: .25rem; border-radius: 1rem; background: rgba(243,244,246,.8); }
.profile-tabs a { flex-shrink: 0; padding: .5rem 1rem; border-radius: .75rem; font-size: .875rem; font-weight: 500; color: var(--gray); text-decoration: none; }
.profile-tabs a:hover { color: var(--navy); }
.profile-tabs a.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(17,19,68,.08); }

/* Painel do candidato */
.dash-hero { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding: 1.75rem; border-radius: 1.5rem; color: #fff;
    background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(123,44,255,.35), transparent 60%), radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37,99,255,.25), transparent 55%), linear-gradient(160deg, #0d0f2e 0%, #111344 40%, #52154E 100%); }
.dash-hero .btn-light { background: #fff; color: var(--navy); }
.grid-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 1rem 0 1.25rem; }
.dash-cols { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .dash-cols { grid-template-columns: minmax(0, 1fr) 20rem; } }

/* Menu lateral: favoritos, ordem e ferramentas */
.app-sidebar .mf-list { display: flex; flex-direction: column; gap: .15rem; }
.app-sidebar .mf-item { position: relative; }
.app-sidebar .mf-item > a { padding-right: 3.4rem; }
.app-sidebar .mf-star, .app-sidebar .mf-grip { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; padding: 0; border: 0; border-radius: .5rem; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, background .15s; z-index: 3; }
.app-sidebar .mf-star { right: .4rem; }
.app-sidebar .mf-grip { right: 1.9rem; cursor: grab; }
.app-sidebar .mf-item:hover .mf-star, .app-sidebar .mf-item:hover .mf-grip, .app-sidebar .mf-star:focus-visible, .app-sidebar .mf-grip:focus-visible { opacity: .85; }
.app-sidebar .mf-star.is-on { opacity: 1; color: #fbbf24; }
.app-sidebar .mf-star:hover, .app-sidebar .mf-grip:hover { opacity: 1; background: rgba(255,255,255,.14); }
.app-sidebar .mf-item.is-dragging { opacity: .4; }
.app-sidebar .mf-fav { margin-bottom: .4rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.app-sidebar .mf-fav[hidden] { display: none; }
.app-sidebar .mf-fav__title { color: #fbbf24; padding-top: .4rem; }
.app-sidebar .mf-vazio { margin: .3rem 1rem; font-size: .78rem; line-height: 1.5; color: rgba(255,255,255,.6); }
.app-sidebar nav.mf-so .mf-group { display: none; }
.mf-tools { display: grid; gap: .15rem; margin: .4rem .6rem 0; }
.mf-tools button, .mf-tools a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; box-sizing: border-box; padding: .5rem .85rem; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.82); font: inherit; font-size: .82rem; font-weight: 500; text-decoration: none; cursor: pointer; text-align: left; }
.mf-tools button:hover, .mf-tools a:hover { background: rgba(255,255,255,.1); }
.mf-tools button[hidden] { display: none; }
.mf-tools .mf-switch { position: relative; flex: 0 0 auto; width: 2rem; height: 1.1rem; border-radius: 999px; background: rgba(255,255,255,.28); transition: background .2s; }
.mf-tools .mf-switch::after { content: ''; position: absolute; top: .13rem; left: .13rem; width: .84rem; height: .84rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.mf-tools [aria-checked="true"] .mf-switch { background: #f59e0b; }
.mf-tools [aria-checked="true"] .mf-switch::after { transform: translateX(.9rem); }
@media (max-width: 1023px) { .app-sidebar .mf-star, .app-sidebar .mf-grip { display: none; } .app-sidebar .mf-item > a { padding-right: .85rem; } }

/* Barra superior (desktop) e menu recolhido (só ícones) */
.app-header { display: none; align-items: center; gap: .75rem; position: sticky; top: .65rem; z-index: 20; height: 3.4rem; margin: .65rem 1rem 0; padding: 0 1rem 0 .6rem; border-radius: 18px; background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 8px 28px rgba(17,19,68,.09), inset 0 1px rgba(255,255,255,.7); }
.app-header__toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border: 0; border-radius: .7rem; background: transparent; color: #4b5563; cursor: pointer; }
.app-header__toggle:hover { background: #f3f4f6; color: var(--navy); }
.app-header__toggle .ic-right { display: none; }
.sidebar-collapsed .app-header__toggle .ic-left { display: none; }
.sidebar-collapsed .app-header__toggle .ic-right { display: inline; }
.app-header__title { font-weight: 600; font-size: .95rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header__end { margin-left: auto; display: inline-flex; gap: .25rem; }
.app-header__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: .7rem; color: #4b5563; text-decoration: none; }
.app-header__icon:hover { background: #f3f4f6; color: var(--navy); }
.app-header__badge { position: absolute; top: .1rem; right: .05rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; box-sizing: border-box; border-radius: 999px; background: #dc2626; color: #fff; font-size: .62rem; font-style: normal; font-weight: 700; line-height: 1.05rem; text-align: center; }
.app-sidebar__brand .app-brand-mini { display: none; }
.mf-tools .mf-ico { display: inline-block; width: 1.25rem; text-align: center; flex: 0 0 auto; }
.mf-tools button > .mf-lbl, .mf-tools a > .mf-lbl { flex: 1; }
.mf-tools button, .mf-tools a { justify-content: flex-start; }
.mf-tools [data-mf="so"][aria-checked="true"] .mf-ico { color: #fbbf24; }
.app-sidebar, .app-sidebar__brand { transition: width .2s ease; }

@media (min-width: 1024px) {
  .app-header { display: flex; }
  .sidebar-collapsed .app-sidebar { width: 5.1rem; }
  .sidebar-collapsed .app-sidebar__brand { margin: 10px 8px 5px; padding: .75rem .3rem; text-align: center; }
  .sidebar-collapsed .app-brand-full { display: none; }
  .sidebar-collapsed .app-brand-mini { display: block; height: 2rem; width: auto; margin: 0 auto; }
  .sidebar-collapsed .app-sidebar nav { padding: 0 .5rem; }
  .sidebar-collapsed .app-sidebar__label { display: none; }
  .sidebar-collapsed .app-sidebar .mf-group + .mf-group, .sidebar-collapsed .app-sidebar .mf-fav { border-top: 0; margin-top: .35rem; padding-top: .35rem; }
  .sidebar-collapsed .app-sidebar .mf-group + .mf-group { border-top: 1px solid rgba(255,255,255,.12); }
  .sidebar-collapsed .app-sidebar nav a, .sidebar-collapsed .app-sidebar .mf-item > a { justify-content: center; padding: .7rem 0; gap: 0; }
  .sidebar-collapsed .app-sidebar nav a:hover { transform: none; }
  .sidebar-collapsed .app-nav-label { display: none; }
  .sidebar-collapsed .app-sidebar .mf-star, .sidebar-collapsed .app-sidebar .mf-grip, .sidebar-collapsed .app-sidebar .mf-vazio { display: none; }
  .sidebar-collapsed .mf-tools { margin: .3rem .5rem 0; }
  .sidebar-collapsed .mf-tools button, .sidebar-collapsed .mf-tools a { justify-content: center; padding: .55rem 0; }
  .sidebar-collapsed .mf-tools .mf-lbl, .sidebar-collapsed .mf-tools .mf-switch { display: none; }
  .sidebar-collapsed .mf-tools .mf-ico { width: auto; font-size: 1rem; }
  .sidebar-collapsed .app-sidebar__user { flex-direction: column; margin: .4rem .3rem; padding: .6rem 0; gap: .45rem; justify-content: center; }
  .sidebar-collapsed .app-sidebar__user > div { display: none; }
  .sidebar-collapsed .app-sidebar__user button { margin: 0; padding: .25rem .4rem; font-size: .68rem; }
}
@media (max-width: 1023px) { .app-header { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Celular/tablet: menu em gaveta (☰ na barra superior) */
.app-topbar__menu { display: none; width: 2.3rem; height: 2.3rem; border: 0; border-radius: .7rem; background: rgba(118,118,128,.12); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.app-backdrop { display: none; }
@media (max-width: 1023px) {
  .app-shell { display: block; }
  .app-topbar { display: flex; justify-content: flex-start; gap: .75rem; position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
  .app-topbar__menu { display: inline-flex; }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 200; width: min(18.5rem, 88vw); height: 100%; padding: 10px; transform: translateX(-108%); transition: transform .26s cubic-bezier(.2,.8,.2,1); }
  .mobile-menu-open .app-sidebar { transform: none; }
  .mobile-menu-open .app-backdrop { display: block; position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .mobile-menu-open { overflow: hidden; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .app-sidebar { transition: none; } }

/* Grupos recolhíveis do menu lateral */
.app-sidebar .mf-group .app-sidebar__label[role="button"] { cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.app-sidebar .mf-group .app-sidebar__label[role="button"]::after { content: "▾"; font-size: .7rem; transition: transform .15s; }
.app-sidebar .mf-group.mf-closed .app-sidebar__label[role="button"]::after { transform: rotate(-90deg); }
.app-sidebar .mf-group.mf-closed .mf-list { display: none; }

/* Abas das telas agrupadas (um item de menu, várias telas do mesmo universo) */
.hub-tabs { display: flex; gap: .3rem; flex-wrap: wrap; max-width: 72rem; margin: 0 auto; padding: .6rem 1rem .2rem; overflow-x: auto; }
.hub-tabs a { padding: .42rem .95rem; border-radius: 999px; font-size: .86rem; font-weight: 600; text-decoration: none; color: #4b5563; background: rgba(120,120,140,.12); white-space: nowrap; }
.hub-tabs a:hover { background: rgba(123,44,255,.14); }
.hub-tabs a.is-active { background: linear-gradient(135deg, #2563ff, #7b2cff); color: #fff; }

/* Candidato: menu superior em vez de lateral, com faixa de promoção. */
.cand-site { margin: 0; background: #f6f7fb; }
.cand-top { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid #e8eaf0; }
.cand-top__bar { max-width: 76rem; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: 1.2rem; }
.cand-top__logo img { height: 2rem; display: block; }
.cand-top__nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; }
.cand-top__nav a { display: flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 9999px; color: #4b5563; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .2s, color .2s; }
.cand-top__nav a svg { width: 1.1rem; height: 1.1rem; }
.cand-top__nav a:hover { background: #eef0ff; color: #111344; }
.cand-top__nav a.is-active { background: #111344; color: #fff; }
.cand-top__end { display: flex; align-items: center; gap: .6rem; }
.cand-top .app-header__icon { position: relative; color: #4b5563; }
.cand-user { position: relative; }
.cand-user summary { list-style: none; display: flex; align-items: center; gap: .45rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
.cand-user summary::-webkit-details-marker { display: none; }
.cand-user__menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 12rem; background: #fff; border: 1px solid #e8eaf0; border-radius: .9rem; box-shadow: 0 12px 30px rgba(17, 19, 68, .15); padding: .4rem; display: grid; }
.cand-user__menu a, .cand-user__menu button { display: block; text-align: left; padding: .5rem .7rem; border-radius: .6rem; color: #111344; text-decoration: none; font-size: .88rem; background: none; border: 0; cursor: pointer; width: 100%; font-family: inherit; }
.cand-user__menu a:hover, .cand-user__menu button:hover { background: #f3f4f8; }
.cand-banner { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; max-width: 76rem; margin: 1rem auto 0; padding: .8rem 1.1rem; border-radius: 1.1rem; color: #fff; text-decoration: none; font-size: .9rem; background: linear-gradient(110deg, #111344, #5b21b6 60%, #db2777); background-size: 200% 100%; animation: cand-shine 8s ease infinite; box-sizing: border-box; width: calc(100% - 2rem); }
.cand-banner__tag { background: rgba(255, 255, 255, .2); border-radius: 9999px; padding: .15rem .6rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cand-banner span:not(.cand-banner__tag) { opacity: .85; flex: 1; min-width: 12rem; }
.cand-banner em { font-style: normal; font-weight: 700; }
@keyframes cand-shine { 50% { background-position: 100% 0; } }
.cand-site main { padding-top: 1rem; }
@media (max-width: 720px) { .cand-top__bar { flex-wrap: wrap; } .cand-top__nav { order: 3; flex-basis: 100%; } .cand-user__name { display: none; } }
@media (prefers-reduced-motion: reduce) { .cand-banner { animation: none; } }

/* Menu superior do candidato na mesma cor do menu lateral (azul-marinho com brilho violeta). */
html:has(body.cand-site) { background: #e9ebfb; }
.cand-top { background: radial-gradient(circle at 12% 0%, rgba(70,91,255,.28), transparent 32%), radial-gradient(circle at 92% 100%, rgba(123,44,255,.25), transparent 38%), linear-gradient(155deg, #111344 0%, #151447 46%, #25145d 100%); backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 30px rgba(17,19,68,.25); }
.cand-top__logo img { filter: brightness(0) invert(1); opacity: .96; }
.cand-top__nav a { color: rgba(255,255,255,.88); border: 1px solid transparent; }
.cand-top__nav a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); color: #fff; }
.cand-top__nav a.is-active { background: linear-gradient(100deg, rgba(255,255,255,.2), rgba(255,255,255,.1)); border-color: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.14); }
.cand-top .app-header__icon { color: rgba(255,255,255,.88); }
.cand-user summary { color: #fff; }

/* Login social: botões discretos, contorno fino. */
.social-login { display: grid; gap: .5rem; margin: 0 0 1rem; }
.social-login__btn { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .6rem 1rem; border: 1px solid #d9dce3; border-radius: .6rem; background: #fff; color: #1f2937; font-size: .88rem; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; }
.social-login__btn:hover { background: #f7f8fa; border-color: #b9bec9; }
.social-login__or { display: flex; align-items: center; gap: .7rem; color: #9ca3af; font-size: .75rem; margin-top: .3rem; }
.social-login__or::before, .social-login__or::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

/* Candidato — passada minimalista: barra mais fina e lisa, faixa de promoção discreta. */
.cand-site { font-size: 15px; }
.cand-top { background: #14164a; box-shadow: none; border-bottom: 0; }
.cand-top__bar { padding: .4rem 1rem; }
.cand-top__logo img { height: 1.6rem; }
.cand-top__nav a { font-size: .82rem; font-weight: 500; padding: .35rem .75rem; border-radius: .5rem; color: rgba(255,255,255,.75); }
.cand-top__nav a svg { width: 1rem; height: 1rem; }
.cand-top__nav a:hover { background: rgba(255,255,255,.08); border-color: transparent; }
.cand-top__nav a.is-active { background: rgba(255,255,255,.14); border-color: transparent; box-shadow: none; color: #fff; }
.cand-user summary { font-size: .82rem; font-weight: 500; }
.cand-banner { background: #fff; color: #374151; border: 1px solid #e8eaee; animation: none; font-size: .8rem; padding: .5rem .9rem; border-radius: .6rem; margin-top: .75rem; }
.cand-banner__tag { background: #f3f4f6; color: #6b7280; font-size: .62rem; font-weight: 500; letter-spacing: .06em; }
.cand-banner strong { font-weight: 600; color: #111344; }
.cand-banner span:not(.cand-banner__tag) { opacity: 1; color: #6b7280; }
.cand-banner em { font-weight: 500; color: #111344; }
.cand-banner:hover { border-color: #b9bec9; }
.cand-user__menu { box-shadow: 0 6px 20px rgba(17,19,68,.1); border-radius: .6rem; }
.cand-user__menu a, .cand-user__menu button { font-size: .8rem; }

/* Candidato — vida: fundo com tom, faixa de promoção com a cor da marca. */
.cand-site { background: linear-gradient(180deg, #e9ebfb 0, #f3f1fb 14rem, #f6f7fb 32rem) fixed; }
.cand-top { background: linear-gradient(110deg, #14164a, #231a63); }
.cand-top__nav a.is-active { background: rgba(255,255,255,.16); }
.cand-banner { background: linear-gradient(100deg, #e6e7ff, #f0e8ff); border: 0; color: #3b2a8c; }
.cand-banner__tag { background: #fff; color: #6d3bd9; }
.cand-banner strong, .cand-banner em { color: #3b2a8c; }
.cand-banner span:not(.cand-banner__tag) { color: #5b4ba3; }
.cand-banner:hover { filter: brightness(.98); }

/* Candidato — menu superior em vidro líquido: azul translúcido flutuante, desfoca o que passa por trás. */
.cand-top { position: sticky; top: .6rem; z-index: 100; width: calc(100% - 1.2rem); max-width: 76rem; margin: .6rem auto 0; box-sizing: border-box; border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(37, 71, 190, .62), rgba(70, 48, 170, .55));
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(24, 38, 120, .22); }
.cand-top__bar { max-width: none; padding: .4rem .8rem; }
.cand-top__nav a { color: rgba(255, 255, 255, .86); }
.cand-top__nav a:hover { background: rgba(255, 255, 255, .14); }
.cand-top__nav a.is-active { background: rgba(255, 255, 255, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); color: #fff; }
.cand-user__menu { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.cand-banner { margin-top: .9rem; }

.cand-site { padding-top: 1px; }

/* Vidro azul-escuro (mesma família do menu lateral), ainda translúcido. */
.cand-top { background: linear-gradient(135deg, rgba(17, 19, 68, .78), rgba(32, 24, 96, .72)); border-color: rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 12px 32px rgba(17, 19, 68, .3); }
.cand-top__nav a.is-active { background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.cand-top__nav a:hover { background: rgba(255, 255, 255, .1); }

/* Um pouco mais transparente: o conteúdo aparece borrado por trás. */
.cand-top { background: linear-gradient(135deg, rgba(17, 19, 68, .55), rgba(32, 24, 96, .48)); -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%); border-color: rgba(255, 255, 255, .2); }

.cand-new { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .03em; padding: .08rem .4rem; border-radius: 9999px; color: #fff; background: linear-gradient(135deg, #ff7a1a, #ff3d77); }

.sk-stars { color: #e59819; font-size: .82em; letter-spacing: .02em; margin-left: .25em; }

/* Área do candidato: barra superior, destaque, avisos e conteúdo na MESMA coluna (bordas alinhadas em qualquer largura). */
.cand-site { --cand-w: 78rem; }
.cand-top, .cand-banner, .cand-site .flash { box-sizing: border-box; width: min(var(--cand-w), calc(100% - 2rem)); max-width: none; margin-left: auto; margin-right: auto; }
.cand-site main > .container, .cand-site main > .ac, .cand-site main > .pl, .cand-site main > .soc { box-sizing: border-box; width: min(var(--cand-w), calc(100% - 2rem)); max-width: var(--cand-w); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }

/* Menu do topo do candidato: vidro AZUL (translúcido, na cor da marca) em vez do cinza-lilás. */
.cand-top { background: linear-gradient(135deg, rgba(14, 40, 150, .82), rgba(37, 99, 235, .70) 55%, rgba(60, 80, 220, .66));
    -webkit-backdrop-filter: blur(22px) saturate(200%); backdrop-filter: blur(22px) saturate(200%);
    border-color: rgba(255, 255, 255, .32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 12px 32px rgba(20, 60, 190, .32); }
.cand-top__nav a { color: rgba(255, 255, 255, .92); }
.cand-top__nav a:hover { background: rgba(255, 255, 255, .16); }
.cand-top__nav a.is-active { background: rgba(255, 255, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 12px rgba(10, 30, 120, .25); color: #fff; }

/* Menu do topo do candidato: mesma cor do menu lateral do sistema (azul-marinho), com leve transparência. */
.cand-top { background: radial-gradient(circle at 18% 0, rgba(70, 91, 255, .28), transparent 30%), radial-gradient(circle at 90% 100%, rgba(123, 44, 255, .22), transparent 36%), linear-gradient(155deg, rgba(17, 19, 68, .92) 0%, rgba(21, 20, 71, .9) 46%, rgba(37, 20, 93, .88) 100%);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    border-color: rgba(255, 255, 255, .13); box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 14px 34px rgba(17, 19, 68, .28); }
.cand-top__nav a { color: rgba(255, 255, 255, .92); border: 1px solid transparent; }
.cand-top__nav a:hover { background: rgba(255, 255, 255, .095); border-color: rgba(255, 255, 255, .1); }
.cand-top__nav a.is-active { background: linear-gradient(100deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .09)); border-color: rgba(255, 255, 255, .17); box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 6px 16px rgba(4, 8, 43, .22); color: #fff; }

/* ---- Candidato no celular: barra inferior estilo app + folha «Mais» ---- */
.cand-tabbar, .cand-more { display: none; }
@media (max-width: 860px) {
  .cand-top__nav, .cand-user { display: none; }
  .cand-top__bar { flex-wrap: nowrap; justify-content: space-between; gap: .6rem; padding: .5rem 1rem; padding-top: calc(.5rem + env(safe-area-inset-top)); }
  .cand-top__logo img { height: 1.7rem; }
  .cand-site { padding-bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
  .cand-banner { margin: .7rem .75rem 0; width: auto; padding: .6rem .85rem; font-size: .82rem; }
  .cand-banner span:not(.cand-banner__tag) { display: none; }
  .cand-site main { padding-top: .7rem; }
  .cand-tabbar { display: flex; position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 120; border-radius: 1.4rem; padding: .35rem .3rem; border: 1px solid rgba(255, 255, 255, .16); background: radial-gradient(circle at 12% 0%, rgba(70, 91, 255, .35), transparent 45%), radial-gradient(circle at 92% 100%, rgba(123, 44, 255, .3), transparent 50%), rgba(17, 19, 68, .8); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 10px 30px rgba(17, 19, 68, .35); }
  .cand-tabbar > a, .cand-tabbar > button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .4rem 0 .35rem; border: 0; background: none; border-radius: 1rem; color: rgba(255, 255, 255, .68); font: inherit; font-size: .66rem; font-weight: 600; text-decoration: none; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s; }
  .cand-tabbar svg { width: 1.45rem; height: 1.45rem; }
  .cand-tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cand-tabbar > a.is-active { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
  .cand-tabbar__dot { position: absolute; top: .3rem; right: 28%; width: .55rem; height: .55rem; border-radius: 50%; background: #f43f5e; border: 2px solid #1a1650; }
  .cand-more:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 200; }
  .cand-more__backdrop { position: absolute; inset: 0; background: rgba(17, 19, 68, .5); }
  .cand-more__sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 1.3rem 1.3rem 0 0; padding: .6rem 1rem calc(1rem + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(17, 19, 68, .3); animation: cand-sheet .22s ease-out; }
  .cand-more__grip { display: block; width: 2.6rem; height: .28rem; border-radius: 9999px; background: #d4d7e6; margin: 0 auto .8rem; }
  .cand-more__who { display: flex; align-items: center; gap: .7rem; padding: 0 .2rem .8rem; border-bottom: 1px solid #eceef7; } .cand-more__who strong { display: block; } .cand-more__who small { color: #6b6f8f; overflow-wrap: anywhere; }
  .cand-more__list { display: grid; padding: .4rem 0; } .cand-more__list a { padding: .85rem .3rem; color: #111344; text-decoration: none; font-weight: 600; border-bottom: 1px solid #f1f2f8; font-size: .98rem; }
  .cand-more__out { width: 100%; margin-top: .6rem; padding: .85rem; border: 1px solid #f3c1cb; background: #fff5f7; color: #be123c; border-radius: .8rem; font: inherit; font-weight: 700; cursor: pointer; }
  html.cand-more-open { overflow: hidden; }
}
@keyframes cand-sheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .cand-more__sheet { animation: none; } }

/* Celular/tablet: campos com 16px — abaixo disso o Safari do iPhone dá zoom ao focar e a página fica cortada na lateral. */
@media (max-width: 1023px) { :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]) { font-size: 16px; } }

/* Celular: tabelas largas rolam dentro do cartão em vez de alargar a página inteira. */
@media (max-width: 860px) { .card:has(> table), .card:has(> .table) { overflow-x: auto; -webkit-overflow-scrolling: touch; } .card > table.table { min-width: 36rem; } }

/* Faixa de destaque discreta, com «×» para fechar. */
.cand-site .cand-banner { position: relative; display: flex; align-items: center; gap: .6rem; flex-wrap: nowrap; padding: .4rem .5rem .4rem .9rem; font-size: .8rem; border-radius: .8rem; min-height: 0; }
.cand-site .cand-banner__link { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.cand-site .cand-banner__link strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cand-site .cand-banner__link em { margin-left: auto; white-space: nowrap; flex: none; }
.cand-site .cand-banner__tag { font-size: .6rem; padding: .08rem .5rem; flex: none; }
.cand-banner__x { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .55; cursor: pointer; transition: opacity .15s, background .15s; }
.cand-banner__x:hover, .cand-banner__x:focus-visible { opacity: 1; background: rgba(17, 19, 68, .08); }
@media (max-width: 860px) { .cand-site .cand-banner__link em { display: none; } .cand-site .cand-banner { margin: .6rem .75rem 0; padding: .35rem .4rem .35rem .75rem; } }
