*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#f3f6f5;color:#173d34;font-family:Inter,Arial,sans-serif}
#page{min-height:100vh;display:flex;flex-direction:column}
.pg-loading,.pg-notice{margin:auto;max-width:560px;padding:32px;background:#fff;border:1px solid #e0e9e5;border-radius:18px;text-align:center}
.pg-notice h1{font-size:22px;margin:0 0 12px}
.pg-notice p{margin:0 0 8px;line-height:1.5}
.pg-notice small{color:#537169}
.pg-frame{flex:1;width:100%;min-height:100vh;border:0;display:block;background:#fff}
.pg-brand{position:fixed;right:12px;bottom:12px;font-size:12px;color:#537169;background:rgba(255,255,255,.9);padding:6px 10px;border-radius:999px;border:1px solid #e0e9e5;transition:opacity .2s}.pg-brand-off{opacity:0;pointer-events:none}
.pg-form{flex:1;min-height:100vh;padding:32px 16px;display:flex;flex-direction:column;align-items:center;color:var(--pg-text,#173d34)}
.pg-form-brand{margin:0 0 20px;font-size:15px;color:var(--pg-muted,#537169)}
.pg-form-card{width:100%;max-width:620px;background:var(--pg-card,#fff);border:1px solid var(--pg-border,#e0e9e5);border-radius:18px;padding:28px}
.pg-form-card h1{font-size:24px;line-height:1.25;margin:0 0 12px}
.pg-form-card p{margin:0 0 16px;line-height:1.5;color:var(--pg-muted,#537169)}
.pg-form-card small,.pg-muted{color:var(--pg-muted,#537169);font-size:13px}
.pg-kicker{display:block;font-size:12px;letter-spacing:.08em;color:var(--pg-accent,#086b4c);margin-bottom:8px}
.pg-field{display:block;margin:0 0 14px;font-size:14px;color:var(--pg-muted,#537169)}
.pg-field input,.pg-field select,.pg-field textarea{display:block;width:100%;margin-top:6px;padding:12px 14px;border:1px solid var(--pg-border,#cfdcd6);border-radius:10px;background:var(--pg-input,#fff);color:var(--pg-text,#173d34);font:inherit;font-size:16px}
.pg-choices{display:grid;gap:10px;margin:0 0 14px}
.pg-choices label{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--pg-border,#cfdcd6);border-radius:10px;cursor:pointer;font-size:16px}
.pg-choices label span{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:8px;background:var(--pg-input,#f3f6f5);color:var(--pg-accent,#086b4c);font-weight:700;font-size:13px}
.pg-choices input{accent-color:var(--pg-accent,#086b4c)}
.pg-check{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;font-size:14px;line-height:1.4}
.pg-check input{margin-top:3px;accent-color:var(--pg-accent,#086b4c)}
.pg-actions{display:flex;gap:12px;align-items:center;margin-top:8px}
.pg-primary{background:var(--pg-accent,#086b4c);color:var(--pg-button-text,#fff);border:0;border-radius:10px;padding:13px 22px;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.pg-primary:disabled{opacity:.6;cursor:default}
.pg-text{background:none;border:0;color:var(--pg-muted,#537169);font:inherit;font-size:14px;cursor:pointer;text-decoration:underline}
.pg-progress{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--pg-muted,#537169);margin-bottom:16px}
.pg-progress i{flex:1;height:6px;border-radius:999px;background:var(--pg-input,#e9efec);display:block;overflow:hidden}
.pg-progress b{display:block;height:100%;background:var(--pg-accent,#086b4c)}
.pg-status{min-height:20px;margin:10px 0 0;font-size:14px;color:#b42318}
.pg-form-card dl{margin:0 0 16px;display:grid;gap:10px}
.pg-form-card dt{font-size:12px;color:var(--pg-muted,#537169)}
.pg-form-card dd{margin:2px 0 0;font-size:15px}
.pg-done{text-align:center}
.pg-check-mark{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:50%;background:var(--pg-accent,#086b4c);color:#fff;font-size:24px;margin-bottom:12px}


.pg-form-card>small{display:block;margin-top:14px;line-height:1.5}
/* Texto ou link (321): the button of the link like the main button; the addresses of a description underlined; the notice of the contact. */
.pg-link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin:4px 0 16px}.pg-form-card p a{color:inherit;text-decoration:underline;font-weight:600;overflow-wrap:anywhere}.pg-form-card .pg-notice{margin:12px 0 0;font-size:13px}
/* While a page that is not drawn on the server opens (a link of the app, a form): nothing for a moment, then a small
   circle that turns, never a card with words (23/10/2026, pedido do usuário: "aparece o nome abrindo página ... tão feio"). */
#page:empty::after{content:'';margin:auto;width:26px;height:26px;box-sizing:border-box;border-radius:50%;border:3px solid #173d341f;border-top-color:#173d3470;opacity:0;animation:pg-wait .2s .7s forwards,pg-spin .9s linear infinite}
@keyframes pg-wait{to{opacity:1}}
@keyframes pg-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#page:empty::after{animation:pg-wait .2s .7s forwards}}

/* (346) The line breaks of the opening and of the descriptions, and the notice of contact as a small line (not the white card of .pg-notice). */
.pg-form-card .pg-lines{white-space:pre-line}.pg-form-card .pg-consent{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--pg-muted,#537169)}
