/* Speak Ahora! — a conta (/<l>/account/…) como aplicação (redesenho de 12/11/2026, pedido do dono).
   Carregada só nas páginas da conta, depois de portal.css (src/lib/styles.tsx → AccountStylesheet). Mesmos tokens da
   marca (tokens.css) e extensões --site-* (site.css); os tons novos saem deles com color-mix. Mobile primeiro.
   Estrutura: barra superior própria (.ac-top) → grade (.ac-shell) com a navegação (.acct-nav: coluna ≥ 1024 px, abas
   roláveis abaixo) e o conteúdo (.acct-main) → rodapé enxuto (.ac-foot). Peças: painel (.acct-card), linhas de
   configuração (.ac-rows), medidor (.ac-meter), passos (.acct-steps), avisos (.acct-banner, .acct-callout).
   As classes acct-* / dev-* também são os ganchos dos testes de navegador (tools/portal_check.py e afins). */

:root {
  --ac-top-h: 4rem;
  --ac-radius: 20px;
  --ac-pad: clamp(1.125rem, .9rem + 1.1vw, 1.75rem);
  --ac-line: var(--sa-border-soft);
  --ac-success-soft: color-mix(in srgb, var(--sa-success) 12%, var(--sa-white));
  --ac-ink-soft: color-mix(in srgb, var(--sa-ink) 6%, transparent);
  --ac-shadow: 0 1px 2px rgb(33 30 27 / .04), 0 8px 24px rgb(33 30 27 / .05);
}

/* ------------------------------------------------------------ barra superior */
.ac-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--ac-line);
  background: color-mix(in srgb, var(--sa-paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.ac-top-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: var(--sa-container);
  min-height: var(--ac-top-h);
  margin-inline: auto;
  padding-inline: var(--sa-gutter);
}
.ac-brand img { width: 148px; }
.ac-top-tag {
  padding: .1875rem .625rem;
  border-radius: var(--sa-radius-pill);
  background: var(--sa-brand-cream);
  color: var(--sa-ink);
  font: 700 .6875rem/1.4 var(--sa-font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ac-top-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.ac-top-link {
  display: none;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .875rem;
  border-radius: var(--sa-radius-pill);
  color: var(--sa-ink);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.ac-top-link:hover { background: var(--sa-brand-cream); }
.ac-top-help { display: none; }
.js .ac-top .lang-menu { display: block; }
@media (min-width: 48rem) {
  .ac-top-link { display: inline-flex; }
  .ac-top-help { display: inline-grid; }
}
@media (max-width: 26rem) {
  .ac-top-tag { display: none; }
}
/* celulares estreitos (≤ 391 px): a marca encolhe e as setas dos menus somem para a barra caber em 320 px */
@media (max-width: 24.49rem) {
  .ac-top-inner { gap: .375rem; }
  .ac-brand img { width: 118px; }
  .ac-top-actions { gap: 0; }
  .ac-top .lang-toggle { padding-inline: .5rem; }
  .ac-top .lang-chevron, .ac-user-chevron { display: none; }
  .ac-user-btn { padding: .1875rem; }
}

/* avatar com as iniciais */
.ac-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--sa-ink);
  color: var(--sa-brand-cream);
  font-family: var(--sa-font-heading);
  font-weight: 700;
  letter-spacing: .02em;
}
.ac-avatar.is-sm { width: 2.25rem; height: 2.25rem; font-size: .8125rem; }
.ac-avatar.is-md { width: 2.75rem; height: 2.75rem; font-size: 1rem; }

/* menu de quem está conectado */
.ac-user { position: relative; flex: none; margin-left: .25rem; }
.no-js .ac-user { display: none; }
.ac-user-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 2.75rem;
  padding: .1875rem .5rem .1875rem .1875rem;
  border: 1px solid var(--ac-line);
  border-radius: var(--sa-radius-pill);
  background: var(--sa-white);
  color: var(--sa-ink);
  cursor: pointer;
  transition: box-shadow var(--sa-motion-fast) var(--sa-ease);
}
.ac-user-btn:hover, .ac-user.is-open .ac-user-btn { box-shadow: 0 0 0 3px var(--ac-ink-soft); }
.ac-user-chevron { width: 1rem; height: 1rem; stroke-width: 2; transition: transform var(--sa-motion-fast) var(--sa-ease); }
.ac-user.is-open .ac-user-chevron { transform: rotate(180deg); }
.ac-user-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 40;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: .5rem;
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  background: var(--sa-white);
  box-shadow: 0 18px 44px rgb(33 30 27 / .16);
}
.ac-user-who { display: grid; gap: .125rem; margin-bottom: .375rem; padding: .625rem .75rem .75rem; border-bottom: 1px solid var(--ac-line); }
.ac-user-name { font: 700 1rem/1.3 var(--sa-font-heading); overflow-wrap: anywhere; }
.ac-user-email { color: var(--sa-text-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.ac-user-menu ul { display: grid; gap: .125rem; padding: 0; list-style: none; }
.ac-user-menu a, .ac-user-signout {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--sa-ink);
  font: 600 .9375rem/1.3 var(--sa-font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ac-user-menu a:hover, .ac-user-signout:hover { background: var(--sa-paper); }
.ac-user-menu .icon { flex: none; width: 1.125rem; height: 1.125rem; color: var(--sa-text-muted); }
.ac-user-out { margin-top: .375rem; padding-top: .375rem; border-top: 1px solid var(--ac-line); }
.ac-user-signout, .ac-user-signout .icon { color: var(--sa-action); }

/* ------------------------------------------------------------ grade: navegação + conteúdo */
.acct { padding-block: 0 clamp(3rem, 6vw, 5rem); }
.ac-shell {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  max-width: var(--sa-container);
  margin-inline: auto;
  padding-inline: var(--sa-gutter);
}
.acct-main { min-width: 0; }

/* navegação: abaixo de 1024 px, uma fileira de abas que rola e fica presa sob a barra */
.acct-nav {
  position: sticky;
  top: var(--ac-top-h);
  z-index: 20;
  min-width: 0;
  margin-inline: calc(var(--sa-gutter) * -1);
  border-bottom: 1px solid var(--ac-line);
  background: color-mix(in srgb, var(--sa-paper) 94%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.ac-id, .acct-nav-foot, .acct-nav-title { display: none; }
.acct-nav-scroll {
  display: flex;
  gap: .25rem;
  padding: .5rem var(--sa-gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.acct-nav-scroll::-webkit-scrollbar { display: none; }
.acct-nav-group { display: flex; flex: none; }
.acct-nav-list { display: flex; gap: .25rem; padding: 0; list-style: none; }
.acct-nav-list li { flex: none; }
.acct-nav-list a, .acct-nav-help, .acct-signout {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  padding: .5rem .875rem;
  border: 0;
  border-radius: var(--sa-radius-pill);
  background: none;
  color: var(--sa-ink);
  font: 600 .9375rem/1.25 var(--sa-font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.acct-nav-list .icon, .acct-nav-foot .icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--sa-text-muted); }
.acct-nav-list a:hover, .acct-nav-help:hover, .acct-signout:hover { background: var(--ac-ink-soft); }
.acct-nav-list a[aria-current="page"] { background: var(--sa-ink); color: var(--sa-white); font-weight: 700; }
.acct-nav-list a[aria-current="page"] .icon { color: var(--sa-white); }

@media (min-width: 64rem) {
  .acct { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
  .ac-shell { grid-template-columns: 16.5rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .acct-nav {
    top: calc(var(--ac-top-h) + 1.5rem);
    display: grid;
    gap: 1.25rem;
    max-height: calc(100dvh - var(--ac-top-h) - 3rem);
    margin-inline: 0;
    border-bottom: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  /* quem está conectado */
  .ac-id {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .125rem .75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--ac-line);
    border-radius: 18px;
    background: var(--sa-white);
    box-shadow: var(--ac-shadow);
  }
  .ac-id-text { display: grid; gap: .125rem; min-width: 0; }
  .ac-id-name { overflow: hidden; font: 700 1rem/1.25 var(--sa-font-heading); letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
  .ac-id-email { overflow: hidden; color: var(--sa-text-muted); font-size: .8125rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .ac-id-skel { display: block; width: 100%; height: .875rem; border-radius: 6px; background: var(--sa-surface-disabled); }
  .ac-id-skel.is-short { width: 60%; height: .6875rem; }
  .ac-id.is-loading .ac-avatar { background: var(--sa-surface-disabled); }
  .no-js .ac-id { display: none; }
  .acct-nav-scroll { display: grid; gap: 1.125rem; padding: 0; overflow: visible; }
  .acct-nav-group { display: grid; gap: .25rem; }
  .acct-nav-title {
    display: block;
    padding-inline: .75rem;
    color: var(--sa-text-muted);
    font: 700 .6875rem/1.4 var(--sa-font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .acct-nav-list { display: grid; gap: .125rem; }
  .acct-nav-list a, .acct-nav-help, .acct-signout { width: 100%; padding-inline: .75rem; border-radius: 12px; white-space: normal; }
  .acct-nav-list a[aria-current="page"] { background: var(--sa-white); color: var(--sa-ink); box-shadow: 0 0 0 1px var(--ac-line), var(--ac-shadow); }
  .acct-nav-list a[aria-current="page"] .icon { color: var(--sa-action); }
  .acct-nav-foot { display: grid; gap: .125rem; padding-top: .75rem; border-top: 1px solid var(--ac-line); }
  .acct-signout { color: var(--sa-text-muted); text-align: left; }
  .acct-signout:hover, .acct-signout:hover .icon { color: var(--sa-action); }
}

/* selo do plano (identidade na coluna) */
.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  margin-top: .625rem;
  padding: .1875rem .625rem;
  border-radius: var(--sa-radius-pill);
  background: var(--sa-brand-cream);
  color: var(--sa-ink);
  font: 700 .75rem/1.4 var(--sa-font-body);
}
.ac-chip.is-skel { width: 5.5rem; height: 1.4375rem; background: var(--sa-surface-disabled); }
.ac-chip.is-skel::before { display: none; }
.ac-chip::before { content: ""; flex: none; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--sa-text-muted); }
.ac-chip:is(.is-active, .is-trialing) { background: var(--ac-success-soft); color: var(--sa-success); }
.ac-chip:is(.is-active, .is-trialing)::before { background: var(--sa-success); }
.ac-chip:is(.is-grace, .is-pending) { background: var(--sa-coral-soft); color: var(--sa-action); }
.ac-chip:is(.is-grace, .is-pending)::before { background: var(--sa-action); }

/* ------------------------------------------------------------ cabeçalho da página */
.acct-head { margin-block: 1.25rem 1.5rem; }
.acct-title { font: 700 clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem)/1.08 var(--sa-font-heading); letter-spacing: -.03em; text-wrap: balance; }
.acct-sub { max-width: 62ch; margin-top: .5rem; color: var(--sa-text-muted); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
@media (min-width: 64rem) { .acct-head { margin-top: 0; } }
.acct-nojs { margin-bottom: 1.25rem; }
.acct-main .pf-mock { margin-bottom: 1rem; }
.acct-live > * { margin-block: 0 1rem; }

/* ------------------------------------------------------------ painéis */
.acct-cards, .ac-stack { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.ac-grid-2 { display: grid; gap: 1.25rem; min-width: 0; }
@media (min-width: 52rem) { .ac-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acct-card {
  min-width: 0;
  padding: var(--ac-pad);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: var(--sa-white);
  box-shadow: var(--ac-shadow);
}
.acct-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.acct-card-title { font: 700 1.1875rem/1.25 var(--sa-font-heading); letter-spacing: -.015em; }
.acct-card > .acct-card-title { margin-bottom: .75rem; }
.acct-card-foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ac-line); }
.acct-card-desc { max-width: 68ch; margin: -.375rem 0 1rem; color: var(--sa-text-muted); font-size: .9375rem; line-height: 1.55; }
.acct-card p { line-height: 1.55; text-wrap: pretty; }
.acct-note { max-width: 70ch; color: var(--sa-text-muted); font-size: .9375rem; line-height: 1.55; }
.acct-big { font: 700 1.25rem/1.3 var(--sa-font-heading); letter-spacing: -.015em; }
.acct-sub-title { margin-block: 1.5rem .75rem; font: 700 1rem/1.3 var(--sa-font-heading); }
.acct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem .75rem; margin-top: 1.25rem; }
.acct-email { overflow-wrap: anywhere; }
.acct .btn { min-height: 2.75rem; }
.acct .btn-small { min-height: 2.75rem; padding: .375rem .875rem; font-size: .875rem; }
.acct-error { display: grid; gap: .75rem; justify-items: start; }
.acct-done { display: grid; gap: .75rem; justify-items: start; }
.acct-done > .icon { width: 2rem; height: 2rem; color: var(--sa-success); }
.dl-inline-link { font-weight: 700; }
@media (max-width: 30rem) {
  .acct-actions .btn { flex: 1 1 100%; }
}

/* linhas de configuração: o que é (à esquerda) e o controle (à direita) */
.ac-rows { display: grid; padding: 0; list-style: none; }
.ac-row { display: grid; gap: .75rem 1.5rem; align-items: center; padding-block: 1.125rem; border-top: 1px solid var(--ac-line); }
.ac-row:first-child { padding-top: 0; border-top: 0; }
.ac-row:last-child { padding-bottom: 0; }
.ac-row-main { display: flex; gap: .875rem; align-items: flex-start; min-width: 0; }
.ac-row-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--sa-paper);
  color: var(--sa-ink);
}
.ac-row-icon .icon { width: 1.25rem; height: 1.25rem; }
.ac-row-body { display: grid; gap: .125rem; min-width: 0; }
.ac-row-title { font-weight: 700; line-height: 1.35; }
.ac-row-text { color: var(--sa-text-muted); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.ac-row-side { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
@media (min-width: 40rem) {
  .ac-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ac-row-side { justify-content: flex-end; }
}

/* fatos em duas colunas (assinatura) */
.acct-dl { display: grid; gap: 0; margin: 0; }
.acct-dl > div { display: grid; gap: .125rem; padding-block: .75rem; border-top: 1px solid var(--ac-line); }
.acct-dl > div:first-child { border-top: 0; }
.acct-dl dt { color: var(--sa-text-muted); font-size: .875rem; }
.acct-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.acct-dl dd .pf-badge { margin-left: .5rem; vertical-align: middle; }
@media (min-width: 40rem) {
  .acct-dl > div { grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
}

/* avisos */
.acct-banner, .acct-callout {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .875rem 1rem;
  border-radius: 14px;
  background: var(--sa-brand-cream);
  line-height: 1.55;
}
.acct-banner > .icon, .acct-callout > .icon { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.acct-banner > .pl-spinner { margin-top: .2rem; }
.acct-banner.is-confirming { background: var(--site-lilac-soft); }
.acct-banner.is-active { background: var(--ac-success-soft); }
.acct-banner.is-active > .icon { color: var(--sa-success); }
.acct-callout { margin-top: 1rem; }
.acct-callout > p, .acct-callout > span { flex: 1; min-width: 0; }
.acct-callout .btn { flex: none; }
.acct-callout.is-warning { margin: 0 0 .75rem; border-left: 4px solid var(--sa-action); background: var(--sa-coral-soft); }
.acct-callout.is-warning > .icon { color: var(--sa-action); }
@media (max-width: 30rem) { .acct-callout { flex-wrap: wrap; } }

/* medidor (computadores em uso, primeiros passos) */
.ac-meter { height: .5rem; border-radius: var(--sa-radius-pill); background: var(--sa-surface-disabled); overflow: hidden; }
.ac-meter > span { display: block; width: var(--ac-value, 0%); height: 100%; border-radius: inherit; background: var(--sa-ink); transition: width var(--sa-motion-reveal) var(--sa-ease); }
.ac-meter.is-full > span { background: var(--sa-action); }
.ac-meter.is-good > span { background: var(--sa-success); }

/* estado vazio */
.ac-empty { display: grid; gap: .5rem; justify-items: center; padding: 1.5rem 1rem; text-align: center; }
.ac-empty-icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--sa-paper); color: var(--sa-text-muted); }
.ac-empty-icon .icon { width: 1.5rem; height: 1.5rem; }
.ac-empty .acct-actions { justify-content: center; margin-top: .5rem; }

/* ------------------------------------------------------------ início */
/* o plano em destaque: painel escuro, nome grande, estado e a ação principal */
.acct-plan {
  position: relative;
  display: grid;
  gap: 1.25rem 2rem;
  border-color: var(--sa-ink);
  background: var(--sa-ink);
  color: var(--sa-white);
  overflow: hidden;
}
.acct-plan::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(240 68 50 / .32), transparent);
  pointer-events: none;
}
.acct-plan > * { position: relative; z-index: 1; }
.acct-plan-main { display: grid; gap: .5rem; min-width: 0; }
.acct-plan .acct-card-head { margin-bottom: 0; justify-content: flex-start; }
.acct-plan .acct-card-title { color: rgb(255 255 255 / .72); font: 700 .75rem/1.4 var(--sa-font-body); letter-spacing: .1em; text-transform: uppercase; }
.acct-plan-name { font: 700 clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem)/1.1 var(--sa-font-heading); letter-spacing: -.03em; overflow-wrap: anywhere; }
.acct-plan-price { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; font-weight: 700; }
.acct-plan-line { max-width: 56ch; color: rgb(255 255 255 / .78); }
.acct-plan .pf-badge { border-color: transparent; background: rgb(255 255 255 / .12); color: var(--sa-white); }
.acct-plan .pf-badge::before { background: rgb(255 255 255 / .6); }
.acct-plan .pf-badge:is(.is-active, .is-trialing)::before { background: #7FD3A6; }
.acct-plan .pf-badge:is(.is-grace, .is-sub-incomplete)::before, .acct-plan .pf-badge.is-founder::before { background: var(--sa-brand-coral); }
.acct-plan .acct-actions { margin-top: 0; align-self: end; }
.acct-plan .btn-secondary { border-color: var(--sa-white); background: var(--sa-white); color: var(--sa-ink); }
.acct-plan .btn-secondary:hover { background: var(--sa-brand-cream); }
@media (min-width: 48rem) {
  .acct-plan { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* primeiros passos / entrar em outro computador */
.ac-setup-progress { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.ac-setup-progress p { color: var(--sa-text-muted); font-size: .875rem; font-weight: 700; }
.acct-steps { display: grid; padding: 0; list-style: none; }
.acct-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .125rem 1rem; padding-block: 1rem; border-top: 1px solid var(--ac-line); line-height: 1.5; }
.acct-steps li:first-child { padding-top: 0; border-top: 0; }
.acct-steps li:last-child { padding-bottom: 0; }
.ac-step-mark {
  display: inline-grid;
  place-items: center;
  grid-row: 1 / span 3;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--sa-border-control);
  border-radius: 50%;
  background: var(--sa-white);
  color: var(--sa-ink);
  font: 700 .875rem/1 var(--sa-font-body);
}
.ac-step-mark .icon { width: 1rem; height: 1rem; stroke-width: 2.5; }
.acct-steps li.is-done .ac-step-mark { border-color: var(--sa-success); background: var(--sa-success); color: var(--sa-white); }
.acct-steps li.is-current .ac-step-mark { border-color: var(--sa-action); color: var(--sa-action); }
.ac-step-title { grid-column: 2; font-weight: 700; }
.acct-steps li.is-done .ac-step-title { color: var(--sa-text-muted); }
.ac-step-text { grid-column: 2; color: var(--sa-text-muted); font-size: .9375rem; }
.ac-step-line { grid-column: 2; align-self: center; }
.ac-step-action { grid-column: 2; margin-top: .5rem; }

/* computadores (resumo) e ajuda */
.ac-stat { display: grid; gap: .75rem; align-content: start; }
.ac-stat-value { font: 700 1.5rem/1.15 var(--sa-font-heading); letter-spacing: -.02em; }
.ac-stat .dl-inline-link { justify-self: start; }
.ac-support { background: var(--site-lilac-soft); border-color: transparent; box-shadow: none; }
.ac-support .acct-actions { margin-top: 1rem; }
.ac-links { display: grid; gap: .25rem; padding: 0; list-style: none; }
.ac-links a {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  padding: .375rem .5rem;
  margin-inline: -.5rem;
  border-radius: 10px;
  color: var(--sa-ink);
  font-weight: 600;
  text-decoration: none;
}
.ac-links a:hover { background: var(--sa-paper); }
.ac-links .icon { flex: none; width: 1.125rem; height: 1.125rem; color: var(--sa-text-muted); }
.ac-links .icon:last-child { margin-left: auto; }

/* cartão "O app" do início (mesmos destinos da seção de download) */
.acct-app { display: grid; gap: .75rem; align-content: start; }
.acct-app > .acct-card-title { margin-bottom: 0; }
.acct-app-row { display: grid; gap: .75rem; }
.acct-app-row > .dl-glyph { display: none; }
.acct-app-body { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; min-width: 0; }
.acct-app-name { font: 700 1rem/1.3 var(--sa-font-body); }
.acct-app .dl-badge { grid-row: auto; grid-column: auto; justify-self: auto; max-width: 100%; }
.acct-app .dl-action { width: 100%; margin-top: .25rem; }
.acct-app .dl-btn, .acct-app .dl-waitlist-btn { width: 100%; min-height: 2.75rem; padding-inline: .75rem; gap: .5rem; }
.acct-app .dl-meta { margin-top: 0; }
.acct-app .dl-status:empty { display: none; }

/* ------------------------------------------------------------ página "Baixar o app" */
/* o cartão de download dentro da conta: sem o contorno de "sua plataforma" da página pública, altura do conteúdo */
.acct-platform-cards .dl-card, :root[data-os] .acct-platform-cards .dl-card { display: grid; grid-template-rows: none; grid-row: auto; gap: .75rem; border: 1px solid var(--ac-line); background: var(--sa-paper); box-shadow: none; }
/* as telas dos passos: botão e legenda um embaixo do outro (a coluna é estreita) */
.acct-shot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "frame" "controls" "caption"; gap: .5rem; }
.acct-shot .app-caption { justify-self: start; text-align: left; }
.acct-platform-cards .dl-platforms { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 1rem; }
.acct-platform-cards .dl-card-title { margin-bottom: 0; font-family: var(--sa-font-heading); font-weight: 700; line-height: 1.08; }
.acct-platform-cards .dl-detected, .acct-platform-cards .dl-arm { margin-top: .75rem; }
.acct-email-line { line-height: 1.55; }
.acct-shots { display: grid; gap: 1.5rem; padding: 0; list-style: none; }
.acct-shots li { display: grid; gap: .5rem; align-content: start; }
.acct-shot { margin: 0; }
.acct-shot-title { display: flex; gap: .625rem; align-items: center; font: 700 1.0625rem/1.3 var(--sa-font-heading); letter-spacing: -.01em; }
.acct-step-num { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--sa-ink); color: var(--sa-white); font: 700 .875rem/1 var(--sa-font-body); }
@media (min-width: 48rem) { .acct-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acct-needs { margin-block: .25rem; }
@media (max-width: 22.49rem) {
  .acct-platform-cards .dl-card { padding-inline: .75rem; }
  .acct-platform-cards .dl-btn { padding-inline: .5rem; font-size: .875rem; }
}

/* ------------------------------------------------------------ plano e cobrança */
.ac-plan-top { display: grid; gap: .375rem; margin-bottom: 1rem; }
.ac-plan-top .acct-plan-name { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.ac-plan-top .acct-plan-line { color: var(--sa-text-muted); }
.acct-founder { max-width: 72ch; margin-top: .75rem; font-size: .9375rem; line-height: 1.55; }
.acct-founder.is-lost { color: var(--sa-text-muted); }
.ac-points { display: grid; gap: .5rem; padding: 0; list-style: none; }
.ac-points li { display: flex; gap: .625rem; align-items: flex-start; line-height: 1.5; }
.ac-points .icon { flex: none; width: 1.125rem; height: 1.125rem; margin-top: .2rem; color: var(--sa-success); stroke-width: 2.5; }

/* ------------------------------------------------------------ computadores */
.acct-counter { color: var(--sa-text-muted); font-size: .9375rem; font-weight: 700; }
.ac-usage { display: grid; gap: .5rem; margin-bottom: 1rem; }
.dev-list, .dev-past { display: grid; padding: 0; list-style: none; }
.dev-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .625rem 1rem; align-items: center; padding-block: 1rem; border-top: 1px solid var(--ac-line); }
.dev-row:first-child { border-top: 0; }
.dev-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--sa-paper); color: var(--sa-text-muted); }
.dev-icon .icon { width: 1.375rem; height: 1.375rem; }
.dev-row.is-active .dev-icon { background: var(--ac-success-soft); color: var(--sa-success); }
.dev-main { min-width: 0; }
.dev-name { font: 700 1rem/1.35 var(--sa-font-body); overflow-wrap: anywhere; }
.dev-meta { display: flex; flex-wrap: wrap; gap: 0 .75rem; color: var(--sa-text-muted); font-size: .875rem; line-height: 1.5; }
.dev-row:not(.is-active) .dev-name { color: var(--sa-text-muted); }
.dev-actions { display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 2 / -1; }
.dev-rename { display: grid; gap: .75rem; grid-column: 1 / -1; padding: 1rem; border-radius: 14px; background: var(--sa-paper); }
.dev-rename .field { max-width: 26rem; }
.dev-rename-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.dev-history { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--ac-line); }
.dev-history > summary { width: fit-content; min-height: 1.5rem; color: var(--sa-ink); font-weight: 700; cursor: pointer; }
.dev-history > summary:hover { text-decoration: underline; }
.dev-history > summary:focus-visible { outline: var(--sa-focus-width) solid var(--sa-ink); outline-offset: 2px; border-radius: 4px; }
.dev-history[open] > summary { margin-bottom: .25rem; }
@media (min-width: 48rem) {
  .dev-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .dev-actions { grid-column: auto; justify-content: flex-end; }
}

/* ------------------------------------------------------------ formulários (perfil, exclusão) */
.acct-form { display: grid; gap: 1.25rem; }
.acct-fields { display: grid; gap: 1.25rem; max-width: 34rem; }
.acct-savebar { display: grid; gap: .75rem; justify-items: start; }
.acct-savebar .acct-live > * { margin: 0; }
.acct-savebar .pf-error { width: 100%; }
.acct-readonly { display: flex; align-items: center; gap: .625rem; min-height: var(--sa-target); padding: .5rem .875rem; border: 1px solid var(--ac-line); border-radius: var(--sa-radius-field); background: var(--sa-paper); overflow-wrap: anywhere; }
.acct-readonly .icon { flex: none; width: 1.125rem; height: 1.125rem; color: var(--sa-text-muted); }
.acct-readonly strong { min-width: 0; }
.acct-check { margin-top: .625rem; }
.acct-check-hint { margin: .125rem 0 0 2.125rem; }
.acct-radios { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; }
.acct-radios legend { margin-bottom: .5rem; }
.acct-radios .acct-check-hint { margin-top: -.375rem; }
.acct-row-action .ac-row-side .btn { flex: none; }
.acct-card.is-danger { border-color: color-mix(in srgb, var(--sa-action) 38%, var(--ac-line)); }
.acct-card.is-danger .acct-card-title { color: var(--sa-action); }
.acct-delete .pm-actions { margin-top: 0; }
.ac-row-title .pf-badge { margin-left: .375rem; vertical-align: middle; }
.ac-row-icon svg:not(.icon) { width: 1.25rem; height: 1.25rem; }

/* ------------------------------------------------------------ teste por campanha (TrialCard.tsx) */
.acct-trial { border-left: 4px solid var(--sa-action); }
.acct-trial:is(.is-ended, .is-not_eligible, .is-unavailable) { border-left-color: var(--sa-border-control); }
.acct-trial-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.acct-trial-head .acct-card-title { margin: 0; }
.acct-trial-icon { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sa-coral-soft); color: var(--sa-action); }
.acct-trial-icon .icon { width: 1.25rem; height: 1.25rem; }
.acct-trial:is(.is-ended, .is-not_eligible, .is-unavailable) .acct-trial-icon { background: var(--sa-brand-cream); color: var(--sa-ink); }
.acct-trial > p + p, .acct-trial > details { margin-top: .5rem; }
.acct-trial-terms { max-width: 72ch; color: var(--sa-text-muted); font-size: .875rem; line-height: 1.6; }
.acct-trial-terms > summary { width: fit-content; min-height: 24px; color: var(--sa-action); font-weight: 700; cursor: pointer; text-underline-offset: .15em; }
.acct-trial-terms > summary:hover { text-decoration: underline; }
.acct-trial-terms > summary:focus-visible { outline: var(--sa-focus-width) solid var(--sa-ink); outline-offset: 2px; border-radius: 4px; }
.acct-trial-terms[open] > summary { margin-bottom: .375rem; }
.acct-trial-terms p + p { margin-top: .375rem; }
/* "O teste começa no 1º login no app" aberto no cartão "disponível": a altura fica reservada enquanto o M3 em cache é
   lido; numa campanha first_use (ou sem campanha no M3) o bloco some */
.acct-trial-start { min-height: 6lh; max-width: 72ch; font-size: .9375rem; line-height: 1.55; }
@media (min-width: 30rem) { .acct-trial-start { min-height: 5lh; } }
@media (min-width: 48rem) { .acct-trial-start { min-height: 3lh; } }
@media (min-width: 80rem) { .acct-trial-start { min-height: 2lh; } }
.acct-trial-start:is([data-start="first_use"], [data-start="none"]) { display: none; }

/* ------------------------------------------------------------ rodapé */
.ac-foot { border-top: 1px solid var(--ac-line); }
.ac-foot-inner {
  display: grid;
  gap: .5rem 2rem;
  max-width: var(--sa-container);
  margin-inline: auto;
  padding: 1.25rem var(--sa-gutter) 2rem;
  color: var(--sa-text-muted);
  font-size: .875rem;
  line-height: 1.5;
}
.ac-foot-links, .ac-foot-langs ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; list-style: none; }
.ac-foot a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--sa-ink); text-decoration: none; }
.ac-foot a:hover { color: var(--sa-action); text-decoration: underline; }
.ac-foot-langs a[aria-current] { font-weight: 700; }
.ac-foot-seller { overflow-wrap: anywhere; }
@media (min-width: 48rem) {
  .ac-foot-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ac-foot-seller { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ sem JavaScript, impressão, alto contraste, movimento */
.no-js .acct-live { display: none; }
@media print {
  .ac-top, .acct-nav, .ac-foot { display: none !important; }
  .acct-plan { border: 1px solid #000; background: none; color: #000; }
}
@media (forced-colors: active) {
  .acct-card, .ac-id, .ac-user-menu, .ac-user-btn { border: 1px solid CanvasText; }
  .acct-nav-list a[aria-current="page"] { outline: 2px solid CanvasText; }
  .acct-callout.is-warning, .acct-trial { border-left: 4px solid CanvasText; }
  .ac-meter { border: 1px solid CanvasText; }
  .ac-meter > span { background: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-meter > span, .ac-user-chevron { transition: none; }
}
