:root {
  --campo: #173B34;        /* verde campo cirúrgico — tinta e primário */
  --campo-2: #24584D;
  --sala: #E8F0EC;         /* fundo: parede de centro cirúrgico */
  --lencol: #FBFDFC;       /* superfícies */
  --linha: #C9D8D1;
  --texto: #14231F;
  --suave: #4D6159;
  --ambar: #F2B544;        /* urgência: chamar agora */
  --ambar-escuro: #8A5A00;
  --ok: #1D7A52;
  --erro: #B3261E;
  --erro-fundo: #FBE9E7;
  --info-fundo: #DDEBE5;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --tab-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sala); color: var(--texto);
  font: 17px/1.5 var(--font-body);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px);
}
main { max-width: 600px; margin: 0 auto; padding: 16px; outline: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--campo-2); }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
.muted { color: var(--suave); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }

/* barra superior e abas */
.topbar {
  position: sticky; top: 0; z-index: 10; background: var(--campo); color: var(--sala);
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.brand { font: 800 1.3rem var(--font-display); color: var(--sala); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--ambar); }
.link-btn { background: none; border: 0; color: inherit; font: inherit; font-size: .95rem; cursor: pointer; text-decoration: underline; padding: 6px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--lencol);
  border-top: 1px solid var(--linha); display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; max-width: 150px; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--suave); font-size: .82rem; gap: 2px; position: relative;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--campo); font-weight: 700; }
.tabbar a.active::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; background: var(--campo); border-radius: 0 0 3px 3px; }
.tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 2px solid var(--campo);
  background: var(--campo); color: var(--lencol); font: 700 1rem var(--font-body);
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--campo-2); border-color: var(--campo-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--campo); }
.btn.ghost:hover { background: var(--info-fundo); }
.btn.danger { background: transparent; color: var(--erro); border-color: var(--erro); }
.btn.urgent { background: var(--ambar); border-color: var(--ambar); color: var(--texto); }
.btn.urgent:hover { background: #E5A42C; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn-row .btn { flex: 1; }

/* o botão de chamar — o elemento marcante */
.call {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
  background: var(--campo); color: var(--sala); border: 0; border-radius: 22px;
  padding: 22px; cursor: pointer; text-decoration: none; margin: 8px 0 12px;
}
.call:hover { background: var(--campo-2); }
.call .light {
  flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--ambar);
  display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(242,181,68,.22);
}
.call .light svg { width: 38px; height: 38px; color: var(--campo); }
.call strong { color: #fff; display: block; font: 800 1.6rem/1.1 var(--font-display); margin-bottom: 4px; }
.call span { color: #C3D6CE; font-size: .98rem; }
.secondary-action {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--lencol); border: 2px solid var(--campo); border-radius: 16px;
  padding: 16px 18px; color: var(--campo); text-decoration: none; font-weight: 700;
}
.secondary-action small { display: block; font-weight: 400; color: var(--suave); }

/* procurando especialista */
.searching { text-align: center; padding: 28px 0 8px; }
.radar { position: relative; width: 150px; height: 150px; margin: 0 auto 20px; }
.radar .core {
  position: absolute; inset: 45px; border-radius: 50%; background: var(--ambar); display: grid; place-items: center;
}
.radar .core svg { width: 32px; height: 32px; color: var(--campo); }
.radar .ring { position: absolute; inset: 45px; border-radius: 50%; border: 3px solid var(--ambar); animation: pulse 2.4s ease-out infinite; }
.radar .ring:nth-child(2) { animation-delay: .8s; }
.radar .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar .ring { animation: none; opacity: .3; } .radar .ring:nth-child(2) { transform: scale(1.6); } .radar .ring:nth-child(3) { transform: scale(2.2); } }

/* superfícies e listas */
.panel { background: var(--lencol); border-radius: 16px; border: 1px solid var(--linha); padding: 18px; margin-bottom: 14px; }
.list { background: var(--lencol); border-radius: 16px; border: 1px solid var(--linha); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--linha); }
.row { display: block; padding: 14px 16px; color: inherit; text-decoration: none; }
a.row:hover { background: #F1F6F3; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.row-title { font-weight: 700; }
.row-meta { color: var(--suave); font-size: .92rem; margin-top: 2px; }
.empty { padding: 22px 16px; color: var(--suave); }
.empty .btn { margin-top: 12px; }

.status { display: inline-block; white-space: nowrap; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--info-fundo); color: var(--campo); }
.status.pendente { background: #FCEFD2; color: var(--ambar-escuro); }
.status.concluido { background: #DCEFE5; color: var(--ok); }
.status.cancelado, .status.recusado, .status.expirado { background: #ECEFED; color: var(--suave); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--erro); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.kind { font-size: .82rem; font-weight: 700; color: var(--ambar-escuro); }

/* formulários */
label { display: block; font-weight: 700; margin: 14px 0 6px; }
label .opt { font-weight: 400; color: var(--suave); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--texto); background: #fff;
  border: 1.5px solid #A9BFB5; border-radius: 10px; padding: 11px 12px; min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--campo); outline: 3px solid rgba(23,59,52,.18); outline-offset: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid-uf { display: grid; grid-template-columns: 1fr 88px; gap: 0 12px; }
.hint { font-size: .88rem; color: var(--suave); margin-top: 4px; }
.error { background: var(--erro-fundo); color: var(--erro); border-radius: 10px; padding: 10px 12px; margin-top: 14px; }
.notice { background: #FCEFD2; color: #5C3D00; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.notice a { color: inherit; font-weight: 700; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--info-fundo); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; font: 700 1rem var(--font-body); color: var(--campo); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--lencol); box-shadow: 0 1px 2px rgba(20,35,31,.15); }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; border: 1.5px solid #A9BFB5; border-radius: 999px; padding: 6px 12px; cursor: pointer; background: #fff; }
.chip input { width: auto; min-height: 0; accent-color: var(--campo); }
.chip:has(input:checked) { background: var(--info-fundo); border-color: var(--campo); font-weight: 700; }
.tag { display: inline-block; font-size: .85rem; background: var(--info-fundo); color: var(--campo); border-radius: 999px; padding: 2px 10px; margin: 2px 4px 2px 0; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.slots button { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--campo); background: #fff; color: var(--campo); font: 700 1rem var(--font-body); cursor: pointer; }
.slots button[aria-pressed="true"] { background: var(--campo); color: #fff; }

/* chave online */
.online-switch { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: #DDE4E1; margin-bottom: 14px; cursor: pointer; border: 0; width: 100%; text-align: left; font: inherit; color: var(--texto); }
.online-switch.on { background: var(--campo); color: var(--sala); }
.online-switch .knob { flex: none; width: 60px; height: 34px; border-radius: 17px; background: #A9B7B1; position: relative; transition: background .2s; }
.online-switch .knob::after { content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; }
.online-switch.on .knob { background: var(--ambar); }
.online-switch.on .knob::after { transform: translateX(26px); }
.online-switch strong { display: block; font: 700 1.2rem var(--font-display); }
.online-switch span { font-size: .92rem; opacity: .85; }

/* linha do tempo do atendimento (é uma sequência real) */
.steps { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; text-align: center; font-size: .8rem; color: var(--suave); position: relative; padding-top: 34px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--linha); display: grid; place-items: center; font-weight: 700; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--linha); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--campo); font-weight: 700; }
.steps li.done::before { background: var(--campo); border-color: var(--campo); color: #fff; }
.steps li.done::after { background: var(--campo); }
.steps li.now::before { background: var(--ambar); border-color: var(--ambar); color: var(--texto); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
dl.facts dt { color: var(--suave); }
dl.facts dd { margin: 0; }

.stars { display: flex; gap: 6px; }
.stars button { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: #B8C6C0; padding: 4px; }
.stars button.on { color: var(--ambar); }
.rating { color: var(--ambar-escuro); font-weight: 700; }

.week-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--linha); align-items: start; }
.week-row:first-child { border-top: 0; }
.week-row .day { font-weight: 700; padding-top: 12px; }
.interval { display: grid; grid-template-columns: 1fr auto 1fr 44px; gap: 6px; align-items: center; margin-bottom: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--linha); background: #fff; cursor: pointer; font-size: 1.3rem; color: var(--suave); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.stats div { background: var(--lencol); border: 1px solid var(--linha); border-radius: 14px; padding: 12px; }
.stats b { display: block; font: 800 1.6rem var(--font-display); }
.stats span { font-size: .85rem; color: var(--suave); }

/* entrada */
.auth-hero { background: var(--campo); color: var(--sala); margin: -16px -16px 20px; padding: 48px 20px 36px; }
.auth-hero h1 { font-size: 2.6rem; color: #fff; }
.auth-hero h1 span { display: block; }
.auth-hero p { color: #C3D6CE; max-width: 34ch; margin: 0; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--texto); color: #fff; padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); transition: opacity .2s, transform .2s; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 700px) {
  main { padding: 28px 16px; }
  .auth-hero { margin: -28px -16px 24px; border-radius: 0 0 24px 24px; }
}
.secondary-action svg { flex: none; width: 30px; height: 30px; }

/* logo na tela de entrada */
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 800 1.5rem var(--font-display); color: #fff; letter-spacing: -.02em; }
.auth-brand span span { color: var(--ambar); }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); }
.brand-mark svg { width: 34px; height: 34px; }

/* entrar com Google / Facebook */
.social { display: grid; gap: 10px; }
.social-btn { gap: 12px; }
.social-btn svg { width: 22px; height: 22px; flex: none; }
.social-btn.google { background: #fff; color: #1F1F1F; border: 1.5px solid #A9BFB5; }
.social-btn.google:hover { background: #F4F7F5; border-color: #8FA79C; }
.social-btn.facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.social-btn.facebook:hover { background: #166FE0; border-color: #166FE0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--suave); font-size: .9rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--linha); }

/* CEP + número */
.grid-cep { display: grid; grid-template-columns: 1fr 110px; gap: 0 12px; }
.cep-hint { min-height: 1.3em; }

/* raio de atendimento */
.range { -webkit-appearance: none; appearance: none; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--info-fundo); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--info-fundo); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--ambar); border: 3px solid var(--campo); cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ambar); border: 3px solid var(--campo); cursor: pointer; }
label output { color: var(--campo); }
.map { height: 260px; border-radius: 14px; border: 1px solid var(--linha); overflow: hidden; margin-top: 6px; background: var(--info-fundo); z-index: 0; }

/* fotos de documentos */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc-pick { margin-top: 18px; }
.doc-pick > label:first-child { margin-top: 0; }
.doc-drop { display: grid; place-items: center; gap: 8px; margin: 0; min-height: 120px; padding: 12px; border: 2px dashed #A9BFB5; border-radius: 14px; background: #fff; color: var(--campo); font-weight: 700; cursor: pointer; text-align: center; }
.doc-drop:hover { border-color: var(--campo); background: #F4F8F6; }
.doc-pick input:focus-visible + .doc-drop, .doc-drop:focus-within { outline: 3px solid var(--ambar); }
.doc-drop img { max-width: 100%; max-height: 220px; border-radius: 8px; }

/* conferência no painel */
.review { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--sala); }
.ai { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #ECEFED; color: var(--suave); }
.ai.confere { background: #DCEFE5; color: var(--ok); }
.ai.divergente, .ai.erro { background: var(--erro-fundo); color: var(--erro); }
.ai.analisando { background: #FCEFD2; color: var(--ambar-escuro); }
.doc-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.doc-thumbs a { flex: 1; text-decoration: none; color: var(--suave); font-size: .8rem; text-align: center; }
.doc-thumbs img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--linha); display: block; margin-bottom: 4px; background: #fff; }

/* barra superior com menu */
.topbar { justify-content: flex-start; gap: 8px; }
.topbar-spacer { flex: 1; }
.menu-btn { width: 44px; height: 44px; margin-left: -8px; display: grid; place-items: center; background: none; border: 0; color: var(--sala); border-radius: 10px; cursor: pointer; }
.menu-btn:hover { background: rgba(255,255,255,.08); }
.menu-btn svg { width: 26px; height: 26px; }

/* gaveta do menu */
.drawer { position: fixed; inset: 0; z-index: 30; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20,35,31,.45); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--lencol); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .2s ease-out; outline: none; box-shadow: 4px 0 24px rgba(20,35,31,.18); padding-bottom: env(safe-area-inset-bottom); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer-backdrop, .drawer-panel { transition: none; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: calc(18px + env(safe-area-inset-top)) 16px 18px; background: var(--campo); color: var(--sala); }
.drawer-head strong { display: block; font: 700 1.05rem var(--font-display); color: #fff; }
.drawer-head span { font-size: .88rem; opacity: .85; }
.drawer-head > div { flex: 1; min-width: 0; }
.drawer-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-link { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 20px; color: var(--texto); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.drawer-link svg { width: 22px; height: 22px; color: var(--campo-2); flex: none; }
.drawer-link:hover { background: #F1F6F3; }
.drawer-link.active { background: var(--info-fundo); font-weight: 700; color: var(--campo); }
.drawer-title { margin: 14px 20px 6px; font: 700 1rem var(--font-display); color: var(--ambar-escuro); }
.drawer-specs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.drawer-spec { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--linha); color: var(--campo); text-decoration: none; font-size: .92rem; background: #fff; }
.drawer-spec:hover { border-color: var(--ambar); background: #FDF6E7; }
.drawer-logout { border-top: 1px solid var(--linha); color: var(--erro); padding: 16px 20px; }

/* fotos */
.avatar { flex: none; border-radius: 50%; object-fit: cover; background: var(--info-fundo); display: inline-grid; place-items: center; }
.avatar-empty { background: var(--info-fundo); color: var(--campo); font-family: var(--font-display); font-weight: 700; }
.drawer-head .avatar-empty { background: rgba(255,255,255,.12); color: #fff; }
.photo-edit { display: flex; align-items: center; gap: 18px; }
.photo-edit .hint { margin-top: 8px; max-width: 34ch; }
.photo-btn { min-height: 40px; }
.photo-edit .link-btn { color: var(--erro); margin-left: 8px; }
.person-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }
.row-person { display: flex; gap: 12px; align-items: flex-start; }
.row-person > div { flex: 1; min-width: 0; }

/* escolha do paciente */
.group-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.group-pick legend { font-weight: 700; margin: 0 0 6px; padding: 0; }
.group-pick label { margin: 0; font-weight: 400; }
.group-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.group-pick label > span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px; text-align: center;
  border: 1.5px solid #A9BFB5; border-radius: 12px; background: #fff; color: var(--campo); cursor: pointer; line-height: 1.2; }
.group-pick input:checked + span { background: var(--campo); border-color: var(--campo); color: #fff; font-weight: 700; }
.group-pick input:focus-visible + span { outline: 3px solid var(--ambar); outline-offset: 2px; }

/* grupos no menu */
.drawer-group { border-top: 1px solid var(--linha); }
.drawer-group:last-of-type { border-bottom: 1px solid var(--linha); }
.drawer-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; cursor: pointer; font-weight: 700; color: var(--campo); }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary::after { content: ''; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.drawer-group[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.drawer-group summary:hover { background: #F1F6F3; }
.drawer-group .drawer-specs { padding-top: 2px; }

.species-pick { border: 0; padding: 0; margin: 14px 0 0; }
.species-pick legend { font-weight: 700; padding: 0; margin-bottom: 6px; }

/* redes sociais */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.social-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--campo); color: var(--campo); text-decoration: none; font-weight: 700; font-size: .92rem; background: var(--lencol); }
.social-link:hover { background: var(--info-fundo); }

/* sugestões e contato */
.fb-msg { margin: 8px 0 0; white-space: pre-wrap; }
.fb-reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--info-fundo); border-left: 4px solid var(--campo); }
.fb-reply p { margin: 4px 0 0; white-space: pre-wrap; }
h2 .badge { vertical-align: middle; margin-left: 6px; }

/* tipos de conta e categoria */
.segmented:has(> button:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.cat-toggle { margin-bottom: 16px; }
.cat-toggle button { font-size: .92rem; line-height: 1.15; padding: 4px 6px; }
.switch-line { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0 0 10px; }
.switch-line input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--campo); }

.group-pick legend .opt { font-weight: 400; color: var(--suave); }

/* comunidade: fórum de casos e redes */
.forum-search { display: flex; gap: 8px; margin: 4px 0 12px; }
.forum-search input { flex: 1; min-width: 0; }
.forum-search .btn { flex: none; }
.forum-groups { margin-top: 4px; }
.forum-author { margin: 0 0 6px; }
.forum-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.forum-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: var(--info-fundo); }
.forum-imgs-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.forum-thumb { position: relative; }
.forum-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.forum-thumb button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--campo); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.forum-actions { margin-top: 6px; }
.social-card .person-head { margin: 0 0 8px; }
.social-embed { display: flex; justify-content: center; margin-top: 8px; overflow: hidden; }
.social-embed > * { max-width: 100%; }
.social-embed .instagram-media, .social-embed .twitter-tweet { margin: 0 auto !important; min-width: 0 !important; width: 100%; }
.tiktok-frame { width: 100%; max-width: 325px; aspect-ratio: 9 / 16; border: 0; border-radius: 12px; background: #000; }
.doc-btns { margin-top: 8px; }
.doc-btns .btn { flex: 1; margin: 0; }

/* olhinho da senha */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; background: none; border: 0; box-shadow: none; color: var(--suave); cursor: pointer; border-radius: 8px; min-height: 0; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--campo); }
.pw-eye:focus-visible { outline: 3px solid rgba(23,59,52,.3); }
