/* 08/11/2026 — UX v4: clareza da próxima ação (Responde_UX_Friendly §1, §4, §7). Vem por último e só sobrepõe o V3:
   tokens, cores e componentes do V3 continuam. Princípios: NN/g (minimalismo, visibilidade do estado), Hick (menos
   escolhas visíveis), Fitts (alvos ≥ 44 px), WCAG 2.2 AA (texto ≥ 16 px, foco visível). */
body.responde-ui .app-shell .page-heading.ux-heading{background:none;border:0;box-shadow:none;padding:0;margin:4px 0 18px;min-height:0;display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;overflow:visible}
body.responde-ui .app-shell .page-heading.ux-heading:before,body.responde-ui .app-shell .page-heading.ux-heading:after{display:none}
body.responde-ui .app-shell .page-heading.ux-heading h1{font-size:clamp(24px,6.4vw,32px);line-height:1.15;margin:0;letter-spacing:-.02em}
body.responde-ui .app-shell .page-heading.ux-heading p{font-size:16px;line-height:1.45;margin:6px 0 0;max-width:62ch}
body.responde-ui .app-shell .page-heading.ux-heading .heading-action{margin-left:auto;width:auto}
body.responde-ui .app-shell .page-heading.ux-heading .heading-action .btn{min-height:44px}
/* Ajuda no topo (o botão flutuante cobria cartões no celular) e avatar que leva ao perfil. */
.help-shortcut svg{width:22px;height:22px}
.avatar-link{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;border-radius:999px}
.avatar-link:focus-visible,.help-shortcut:focus-visible{outline:3px solid var(--r-focus,#ff8fb3);outline-offset:2px}
.support-fab{display:none!important}
/* Pessoas: atualização como ação discreta junto ao título da lista. */
body.responde-ui .app-shell .rdx-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.responde-ui .app-shell .rdx-list-heading>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
body.responde-ui .app-shell .ux-sync-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:none;border:0;box-shadow:none;padding:0;margin:0}
body.responde-ui .app-shell .ux-sync-inline .btn{min-height:44px}
body.responde-ui .app-shell .ux-logout{margin-top:16px}
body.responde-ui .app-shell .ux-logout p{font-size:16px}

/* 08/11/2026 (teste real no Android): caixa de aceite ao lado do texto, não sozinha numa linha. */
.terms-accept{display:grid!important;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start}
.terms-accept .field-error{grid-column:1/-1}
label.field-help:has(> #measurement-accepted){display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start}
.terms-accept>input[type=checkbox],label>#measurement-accepted{width:20px!important;height:20px!important;min-height:0!important;min-width:0!important;margin:2px 0 0!important;padding:0!important}

/* 08/11/2026 (Bruno): E-mail / Celular brilham enquanto nada foi escolhido, para a pessoa ver onde tocar. */
@keyframes w-pick-glow{0%,100%{box-shadow:0 0 0 1px rgba(255,111,145,.55),0 0 10px rgba(255,111,145,.25)}50%{box-shadow:0 0 0 2px rgba(255,111,145,.95),0 0 22px rgba(255,111,145,.55),0 0 44px rgba(255,111,145,.25)}}
.w-login-options:not(:has(.chosen)) button{animation:w-pick-glow 1.6s ease-in-out infinite;border-color:rgba(255,111,145,.75)}
.w-login-options:not(:has(.chosen)) button+button{animation-delay:.8s}
.w-login-options button.chosen{box-shadow:0 0 0 2px rgba(255,111,145,.95),0 0 18px rgba(255,111,145,.45)}
@media (prefers-reduced-motion:reduce){.w-login-options:not(:has(.chosen)) button{animation:none;box-shadow:0 0 0 2px rgba(255,111,145,.85),0 0 14px rgba(255,111,145,.4)}}

/* 08/11/2026 (Bruno): a altura mínima de toque (44px) do redesign esticava avatar e chave; ambos têm tamanho próprio. */
body.responde-ui .avatar{min-height:0!important;aspect-ratio:1/1;flex:none;padding:0!important;border-radius:50%!important;overflow:hidden}
body.responde-ui .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
body.responde-ui .status-switch{width:52px!important;height:30px!important;min-height:30px!important;min-width:52px;padding:0!important;border-radius:999px!important;flex:none;align-self:center}
body.responde-ui .status-switch span{top:3px;left:3px;width:24px;height:24px}
body.responde-ui .status-switch[aria-checked="true"] span{left:25px}
/* "Selecionar em grupo": fundo com cantos arredondados, como o resto do painel. */
body.responde-ui .selection-bulk{background:transparent!important;border-radius:16px}
body.responde-ui .selection-bulk[open]{background:var(--r-bg-secondary)!important;border-radius:16px;padding:0 0 12px}
body.responde-ui .selection-bulk[open]>summary{border-radius:14px}
body.responde-ui .selection-bulk[open] .field-help{padding:0 12px}
body.responde-ui .selection-bulk[open] .selection-bulk-actions{padding:4px 12px 0}
