.access-screen { --access-navy:#082b4b; --access-orange:var(--orange); color:var(--access-navy); padding:24px 16px 32px; }
.access-screen .access-layout { max-width:980px; margin:auto; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); background:#fff; border:1px solid #d5e2ee; border-radius:24px; overflow:hidden; box-shadow:0 12px 36px #143e6410; }
.access-screen .access-brand { display:flex; flex-direction:column; justify-content:flex-start; gap:38px; padding:36px 28px; background:linear-gradient(155deg,#082b4b,#073854); min-width:0; }
.access-screen .access-logo-wrap { display:block; position:relative; width:300px; max-width:100%; }
.access-screen .access-logo { display:block; object-fit:contain; width:100%; height:auto; }
.access-logo-contrast { display:none; }
/* Same original pixels and geometry: only wordmark/locality contrast changes on navy. */
@media(min-width:768px) {
 .access-screen--auth .access-logo-contrast { display:block; position:absolute; inset:0; width:100%; height:auto; filter:brightness(0) invert(1); clip-path:polygon(54% 20%,100% 20%,100% 87%,34% 87%,34% 60%,54% 60%); }
}
.access-screen .access-eyebrow { font-size:11px; font-weight:800; letter-spacing:.12em; color:#d2e4f3; }
.access-screen .access-welcome h2 { margin:0 0 20px; font-size:40px; line-height:1.14; letter-spacing:-.04em; color:white; }
.access-screen .access-eyebrow,.access-screen .access-local-note { display:none; }
.access-screen .access-city-line { flex-shrink:0; width:calc(100% + 56px); height:80px; margin:auto -28px -36px; color:#ff7b14; }
.access-screen .access-welcome em { color:#ff8b36; font-style:normal; }
.access-screen .access-welcome p { color:#e4f0fb; font-size:18px; line-height:1.55; margin:0; }
.access-screen .access-panel { min-width:0; padding:32px; }
.access-screen .city-preview-card { justify-items:stretch; }
.frame .access-screen .flow-hero { background:none; color:var(--access-navy); padding:0 0 24px; min-height:0; display:grid; gap:16px; overflow:visible; }
.access-screen .flow-hero .flow-back { background:#edf5fd; color:var(--access-navy); width:40px; height:40px; flex-basis:40px; }
.access-screen--auth .flow-hero > div { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.frame .access-screen--auth .flow-hero { display:block; padding-bottom:18px; }
.access-screen--auth .flow-hero .flow-back { display:inline-flex; align-items:center; gap:7px; width:auto; min-height:36px; height:36px; padding-right:8px; border-radius:0; background:none; }
.access-screen--auth .flow-back::after { content:'Voltar'; font-size:14px; font-weight:600; line-height:1.4; }
.frame .access-screen .flow-hero h1 { font-size:30px; line-height:1.18; letter-spacing:-.035em; overflow-wrap:anywhere; }
.access-screen .flow-hero p { font-size:15px; color:#53697d; line-height:1.5; margin-top:8px; }
.frame .access-screen .flow-content { padding:0; gap:18px; width:100%; max-width:none; margin:0; }
.frame .access-screen .identity-flow .flow-card { padding:0; border:0; border-radius:0; box-shadow:none; gap:16px; }
.access-screen .identity-flow .flow-form { max-width:none; gap:14px; }
.access-screen .flow-form label { font-size:14px; font-weight:700; gap:7px; }
.frame .access-screen .flow-form :is(input:not([type=checkbox],[type=radio]),select,textarea) { min-height:48px; border:1px solid #bacdde; border-radius:10px; background:#fff; font-size:16px; padding:10px 12px; }
.access-screen .flow-button { min-height:48px; border-radius:11px; font-size:14px; padding:12px 16px; }
.access-screen .identity-flow .flow-button { width:100%; }
.access-screen .identity-links { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:5px; color:#53697d; font-size:14px; }
.access-screen .identity-links .identity-create-link { width:auto; min-height:36px; border:0; border-radius:0; padding:4px; background:none; font-size:14px; color:#c54d00; text-decoration:underline; }
.access-screen .identity-password-toggle { color:#234e73; min-height:36px; font-size:12px; }
.access-screen .identity-password { position:relative; }
.access-screen .identity-password input { padding-right:112px!important; }
.access-screen .identity-password-toggle { position:absolute; right:6px; bottom:6px; text-decoration:none; }
.access-screen .identity-recovery { justify-self:end; padding:4px 0; min-height:32px; color:#244c70; text-decoration:underline; font-size:13px; }
.access-screen .identity-test-profiles { border-top:1px solid #e3ebf2; margin-top:8px; padding-top:14px; font-size:12px; }
.access-screen :is(button,a,input,summary):focus-visible { outline:3px solid #f9a34e; outline-offset:3px; }
.access-screen [data-local-status]:empty { display:none; }
.access-screen .identity-flow h2 { font-size:28px; line-height:1.2; letter-spacing:-.03em; }
.access-screen .identity-flow .city-preview-card > p { font-size:15px; color:#53697d; line-height:1.5; margin-top:-6px; }
.access-screen--info .access-layout { max-width:1100px; display:block; }
.access-screen--info .access-brand { padding:20px 28px; background:#fff; border-bottom:1px solid #e0eaf3; }
.access-screen--info .access-logo { padding:0; border-radius:0; width:230px; }
.access-screen--info .access-logo-wrap { width:230px; }
.access-screen--info .access-welcome,.access-screen--info .access-city-line { display:none; }
.access-screen--info .access-panel { padding:28px; }
.access-information { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:start; }
.access-information > :is(details,[data-public-data-notice],.access-documents) { grid-column:1/-1; }
.access-information .flow-card { box-shadow:none; padding:22px; border-radius:16px; }
.access-information p { font-size:15px; line-height:1.65; color:#425e76; }
.access-information h2 { font-size:20px; }
.access-information .account-faq { border-radius:12px; box-shadow:none; }
.access-information .account-faq summary { font-size:14px; line-height:1.5; }
.access-information .account-faq summary .icon { color:#e85800; margin-right:10px; }
.access-information .account-device-list { display:grid; gap:10px; margin-top:14px; }
.access-information .flow-actions { gap:10px; margin-top:16px; }
.access-information .flow-actions .flow-button { flex:1 1 160px; }
.access-information .access-disclosure { border:1px solid #d5e2ee; border-radius:16px; background:#f6faff; }
.access-disclosure > summary { cursor:pointer; padding:20px; font-weight:750; font-size:16px; }
.access-disclosure .flow-card { border:0; background:transparent; margin:0; }
.access-disclosure .flow-card > h2 { display:none; }
.access-benefits { width:100%; list-style:none; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:18px 0; }
.access-benefits li { flex:1; display:grid; justify-items:center; gap:10px; padding:16px 11px; background:#edf5fd; border-radius:12px; color:#244b70; font-size:12px; font-weight:700; }
.access-benefits .icon { color:#ed5b0a; font-size:26px; }
.about-company summary { cursor:pointer; font-weight:700; }
.about-company-brand { display:block; width:fit-content; max-width:100%; padding:12px; border-radius:10px; background:white; }
.about-company-brand img { display:block; width:178px; max-width:100%; height:auto; }
@media (prefers-color-scheme:dark) { .about-company-brand { background:#142338; } }
.about-company dl { margin:.75rem 0; }
.about-company dt { font-weight:700; }
.about-company dd { margin:0 0 .65rem; overflow-wrap:anywhere; }
.account-info-content:has(> .about-company) { align-items:stretch; }
.account-info-content:has(> .about-company) > .flow-card { align-content:start; gap:14px; }
.account-info-content .about-company { background:linear-gradient(135deg,#f0f5ff,#fff 72%); border-top:4px solid #3959a6; padding:clamp(20px,3vw,38px); }
.about-company h2 { font-size:clamp(22px,2.4vw,32px); line-height:1.15; text-wrap:balance; }
.about-company p,.access-documents p { max-width:68ch; }
.about-company .about-people { display:flex; flex-wrap:wrap; gap:14px 30px; margin:0; padding-block:14px; border-block:1px solid #d6e1ee; }
.about-people dt { font-size:.85rem; color:#415773; }
.about-people dd { margin:2px 0 0; font-weight:700; }
.about-company summary { padding-block:10px; min-height:44px; box-sizing:border-box; }
.about-company a.about-site { background:#213f75; color:white; border-color:#213f75; justify-self:start; }
.account-info-content:has(> .about-company) :is(a,summary,button,video):focus-visible { outline:3px solid #185eb0; outline-offset:3px; }
.account-info-content .about-film { background:#10263d; color:white; align-self:start; }
.account-info-content .about-film h2 { color:white; }
@media (prefers-reduced-motion:no-preference) {
  .about-company,.about-film { animation:about-appear .32s ease-out both; }
  @keyframes about-appear { from { opacity:.65; transform:translateY(6px); } to { opacity:1; transform:none; } }
}
.about-film-stage { position:relative; }
.about-film video { display:block; width:100%; aspect-ratio:4/3; object-fit:contain; background:#000; border-radius:12px; }
.about-film video:fullscreen { height:100%; border-radius:0; }
.about-film-play { position:absolute; inset:0; width:100%; border:0; border-radius:12px; background:transparent; color:white; cursor:pointer; }
.about-film-play span { display:inline-grid; place-items:center; width:54px; height:54px; border-radius:50%; background:#10263de6; font-size:22px; }
.about-film-play[hidden] { display:none; }
@media (max-width:600px) and (orientation:portrait) {
  .access-benefits li { flex:1 1 6rem; }
}
.preview-access-dialog { border:1px solid #d5e2ee; border-radius:24px; width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:20px; }
.preview-access-dialog::backdrop { background:#082b4bb0; backdrop-filter:blur(5px); }
.preview-access-dialog .dialog-head { margin:0 0 12px; }
.preview-access-dialog .dialog-head h2 { font-size:16px; }
.preview-access-dialog .dialog-head button { min-width:40px; min-height:40px; border:0; border-radius:50%; background:#edf5fd; color:#082b4b; font-size:24px; cursor:pointer; }
.preview-access-dialog .access-screen { padding:0; }
.preview-access-dialog .access-layout { display:block; border:0; border-radius:0; box-shadow:none; }
.preview-access-dialog .access-brand { padding:0 0 18px; background:transparent; align-items:center; }
.preview-access-dialog .access-logo { width:100%; padding:0; }
.preview-access-dialog .access-logo-wrap { width:240px; }
.preview-access-dialog .access-welcome,.preview-access-dialog .access-city-line,.preview-access-dialog .access-logo-contrast { display:none; }
.preview-access-dialog .access-panel { padding:0; }
@media(min-width:1024px) {
 body:has(#flows-app[data-access-layout]:not([hidden])) .citizen-desktop-toolbar,
 body:has(#flows-app:not([hidden]) [data-access-screen]) .citizen-desktop-toolbar { display:none; }
 .frame .access-screen { padding:40px 28px; }
}
@media(max-width:767px) {
 .access-screen { padding:16px 12px 28px; }
 .access-screen .access-layout { display:block; border-radius:20px; }
 .access-screen .access-brand { padding:14px 18px; background:#fff; border-bottom:1px solid #e0eaf3; align-items:center; gap:0; }
 .access-screen .access-logo { width:100%; padding:0; }
 .access-screen .access-logo-wrap { width:220px; }
 .access-screen .access-welcome,.access-screen .access-city-line { display:none; }
 .access-screen .access-panel { padding:18px; }
 .access-screen .identity-flow h2 { font-size:25px; }
 .frame .access-screen .flow-hero h1 { font-size:26px; }
 .access-screen .identity-links { grid-template-columns:1fr; }
 .access-information { grid-template-columns:1fr; }
 .access-information > * { grid-column:1; }
 .access-information .flow-card { padding:18px; }
 .preview-access-dialog .access-panel { padding:0; }
 .preview-access-dialog .access-brand { padding:0 0 18px; border:0; }
}

/* Auth-only geometry; long forms stay scrollable instead of being clipped above the viewport. */
.access-screen--auth .access-welcome h2>span,.access-screen--auth .access-welcome h2>em{display:block;white-space:nowrap}
.preview-access-dialog{margin:auto;overflow:auto}
@media(min-width:768px){
 .frame>#flows-app:not([hidden]):has(.access-screen--auth){min-height:100dvh;padding-bottom:0}
 .frame .access-screen--auth{box-sizing:border-box;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:28px}
 .access-screen--auth .access-layout{width:100%;max-width:1320px;min-height:560px}
 .access-screen--auth .access-brand{container-type:inline-size;display:grid;grid-template-rows:100px minmax(0,1fr) 100px;gap:12px}
 .access-screen--auth .access-welcome{align-self:center}
 .access-screen--auth .access-welcome h2{font-size:clamp(28px,11.8cqw,72px);line-height:1.12}
 .access-screen--auth .access-welcome p{font-size:clamp(16px,5cqw,28px)}
 .access-screen--auth .access-city-line{align-self:end;margin:0 -28px -36px}
 .access-screen--auth .access-panel{display:flex;flex-direction:column;justify-content:center}
 .preview-access-dialog .access-screen--auth{min-height:0;display:block;padding:0}
 .preview-access-dialog .access-screen--auth .access-layout{min-height:0;max-width:none}
 .preview-access-dialog .access-screen--auth .access-brand{display:flex}
}

/* Shared contact buttons; keep white text readable on the green surface. */
:root a:is(.flow-button,.account-action,.result-contacts>a)[href^="https://wa.me/"]{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#087f44;border-color:#087f44;color:#fff;text-decoration:none}
:root a:is(.flow-button,.account-action,.result-contacts>a)[href^="https://wa.me/"]::before{content:"";display:block;flex:0 0 22px;width:22px;height:22px;background:#fff;mask:url("assets/whatsapp.svg") center/contain no-repeat}
:root a:is(.flow-button,.account-action,.result-contacts>a)[href^="https://wa.me/"]:hover{background:#066737;border-color:#066737;color:#fff}
.identity-submit-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
.identity-submit-actions>.flow-button{min-width:0;margin:0;text-align:center}
.identity-legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin-top:16px;font-size:14px;line-height:1.5}
.identity-legal-links>a{color:#205d83;text-decoration:underline;text-underline-offset:3px}
.account-info-screen{box-sizing:border-box;width:calc(100% - 64px);max-width:1280px;margin:32px auto;padding:32px 36px 40px;background:#fff;color:#062a54;border:1px solid #dce5ef;border-radius:16px;font-size:16px;line-height:1.5}
.account-info-screen .account-info-content{display:grid;gap:24px;margin-top:24px;min-width:0}
.account-info-screen .account-info-content>*{min-width:0}
.account-info-screen .account-info-content a:not(.flow-button,.account-ui-back){color:#0879c4;text-decoration:underline;text-underline-offset:3px}
@media(min-width:1024px){body:has(.citizen-desktop-sidebar) .account-info-screen .account-family-brand{display:none}}
@media(max-width:1023px){.account-info-screen{width:calc(100% - 32px);margin:16px auto;padding:24px}}
@media(max-width:767px){.account-info-screen{width:100%;margin:0;padding:20px 18px 28px;border:0;border-radius:0}.account-info-screen .account-info-content{grid-template-columns:1fr}}
/* Neighbor welcome: shared visual identity, task-specific copy, existing forms. */
.access-screen--auth .access-brand{background:#082f4b}
.access-screen--auth .access-welcome h2{font-size:clamp(28px,3vw,38px);line-height:1.18;letter-spacing:-.035em;margin:0 0 14px}
.access-screen--auth .access-welcome p{font-size:16px;line-height:1.6;max-width:36ch}
.access-neighborhood{display:grid;justify-items:center;align-content:center;min-width:0;margin:0}
.access-neighborhood img{display:block;width:100%;max-width:330px;height:auto}
.access-neighborhood figcaption{color:#e1eef7;font-size:15px;line-height:1.5;text-align:center;margin:4px 0 0}
.access-screen--auth .flow-hero .flow-back{box-sizing:border-box;min-height:44px;height:44px;padding:8px 14px 8px 10px;border:1px solid #d5e2ee;border-radius:24px;background:#fff;color:#082b4b}
.access-screen--auth a:is(.identity-recovery,.identity-create-link){color:#0879c4;text-decoration:underline;text-underline-offset:3px}
@media(min-width:768px){
 .access-screen--auth .access-layout{max-width:1200px;min-height:0;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
 .access-screen--auth .access-brand{display:flex;flex-direction:column;justify-content:center;gap:24px;padding:32px}
 .access-screen--auth .access-welcome{align-self:auto}
 .access-screen--auth .access-panel{padding:32px;justify-content:center}
 .access-screen--auth .access-logo-wrap{width:220px;align-self:flex-start}
}
@media(min-width:1024px){
 body:has(.citizen-desktop-sidebar) .access-screen--auth .access-logo-wrap{display:none}
}
@media(max-width:767px){
 .access-screen--auth .access-brand{display:block;padding:18px;background:#fff;border-bottom:1px solid #e0eaf3}
 .access-screen--auth .access-logo-wrap{width:190px;margin:0 0 18px}
 .access-screen--auth .access-welcome{display:block}
 .access-screen--auth .access-welcome h2{color:#082b4b;font-size:24px;line-height:1.2;margin:0 0 8px}
 .access-screen--auth .access-welcome p{font-size:14px;line-height:1.5;max-width:42ch;color:#53697d}
 .access-screen--auth .access-neighborhood{display:none}
 .frame .access-screen--auth .access-panel{padding:18px}
 .frame .access-screen--auth .flow-hero{padding-bottom:16px}
}
.preview-access-dialog .access-neighborhood{display:none}
.frame .access-screen--auth .identity-links a.identity-create-link{color:#0879c4;text-decoration:underline;text-underline-offset:3px}
.preview-access-dialog .access-screen--auth .access-welcome{display:none}
