/* Curricard — app (web + iOS/Android) */
:root {
  --paper: #F4F5F1;
  --surface: #FFFFFF;
  --sunk: #ECEEE8;
  --ink: #14181C;
  --muted: #5B636B;
  --line: #DCDFD8;
  --brand: #0F4C5C;
  --brand-ink: #FFFFFF;
  --brand-soft: #DCEBEE;
  --hi: #F2A93B;
  --ok: #1E7F4F;
  --warn: #A15C00;
  --err: #B3261E;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 10px;
  --tab-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0F1315; --surface: #171C1F; --sunk: #1F2528; --ink: #E8EBE7; --muted: #9AA3A9;
    --line: #2A3237; --brand: #5DB2C3; --brand-ink: #06232A; --brand-soft: #16343B;
    --hi: #F2B652; --ok: #4CC38A; --warn: #E0A04A; --err: #FF8A80;
  }
}
* { box-sizing: border-box; }
/* ícones sem regra própria (no meio de um texto): do tamanho da letra */
:where(svg[viewBox="0 0 24 24"]) { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--body); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }

.boot { display: grid; place-items: center; height: 100%; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Autenticação ---------- */
/* ocupa a tela inteira; o conteúdo dos dois lados fica centralizado na horizontal e na vertical */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--brand); color: var(--brand-ink); padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 28px; }
.auth-side h1 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; max-width: 14ch; margin-inline: auto; }
.auth-side p { opacity: .85; max-width: 36ch; margin: 14px auto 0; }
.auth-main { display: grid; place-items: center; padding: 32px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
.auth-form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.auth-form h2 { font-size: 28px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.logo { font: 800 20px/1 var(--display); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.logo i { width: 20px; height: 13px; border-radius: 3px; background: currentColor; box-shadow: 5px 4px 0 var(--hi); display: inline-block; }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-side { padding: calc(28px + env(safe-area-inset-top, 0px)) 16px 28px; }
  .auth-side .foot { display: none; }
}

/* ---------- Estrutura ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }
.nav { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: calc(22px + env(safe-area-inset-top, 0px)) 14px 22px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.nav .logo { color: var(--brand); padding: 6px 10px 22px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { background: var(--sunk); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav .nav-who { margin-top: auto; display: grid; gap: 1px; padding: 0 2px 10px; min-width: 0; }
.nav .nav-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .nav-who small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.who-line { display: none; }
.nav .nav-out { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; background: none; color: var(--muted); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.nav .nav-out svg { width: 20px; height: 20px; flex: none; }
.nav .nav-out:hover { background: var(--sunk); color: var(--ink); }
.btn[data-logout] svg { width: 18px; height: 18px; flex: none; }
.main { min-width: 0; padding: 28px 32px 60px; max-width: 1080px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 30px; letter-spacing: -.02em; }
.save-state { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.save-state.dirty { color: var(--warn); }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; z-index: 20; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: space-around;
    border-right: 0; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .nav .logo, .nav .plan-pill, .nav .nav-who, .nav .only-wide { display: none; }
  .who-line { display: flex; align-items: center; gap: 6px; flex: 0 0 100%; margin: -4px 0 0; font-size: 13px; color: var(--muted); min-width: 0; }
  .who-line svg { width: 15px; height: 15px; flex: none; }
  .who-line span { min-width: 0; overflow-wrap: anywhere; }
  .who-line b { color: var(--ink); font-weight: 600; }
  .nav a { flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; padding: 6px 4px; flex: 1; min-width: 0; }
  .main { padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(var(--tab-h) + 32px + env(safe-area-inset-bottom, 0px)); }
  .page-head h1 { font-size: 26px; }
}

/* ---------- Componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--err); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.icon-btn svg { width: 16px; height: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 19px; margin-bottom: 4px; }
.panel .sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.eyebrow { font: 500 11px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); outline-offset: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-error { color: var(--err); font-size: 14px; min-height: 1em; }

#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; font-weight: 600; max-width: calc(100% - 32px);
  opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }
@media (min-width: 901px) { #toast { bottom: 28px; } }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.4 var(--body); background: var(--sunk); color: var(--muted); }
.pill.pro { background: var(--hi); color: #231500; }
.pill.trial { background: var(--brand-soft); color: var(--brand); }
.lock { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }

/* ---------- Início ---------- */
.hello { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 16px; }
.stats div { background: var(--surface); padding: 16px; }
.stats b { display: block; font: 800 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.todo li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; margin-top: 1px; }
.todo li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.todo li.done span { color: var(--muted); text-decoration: line-through; }
.meter { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; margin: 10px 0 14px; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.spark { width: 100%; height: 64px; display: block; margin-top: 10px; }
@media (max-width: 760px) { .hello { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Editor de currículo ---------- */
.editor { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.share-grid > div, .card-grid > div, .item, .qr-box > div, .downloads { grid-template-columns: minmax(0, 1fr); }
.items { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
.item { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--paper); display: grid; gap: 12px; }
.item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.item-tools { display: flex; gap: 6px; flex: none; }
.empty { color: var(--muted); font-size: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.photo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--sunk); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font: 800 28px/1 var(--display); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 48px; }
.tags span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; }
.tags span button { border: 0; background: transparent; color: inherit; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.tags input { border: 0 !important; outline: 0 !important; min-height: 32px !important; flex: 1; min-width: 140px; padding: 4px 6px !important; background: transparent !important; }
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl-pick label { border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; display: grid; gap: 8px; background: var(--surface); }
.tpl-pick input { position: absolute; opacity: 0; }
.tpl-pick label:has(input:checked) { border: 2px solid var(--brand); padding: 9px; }
.tpl-pick label:has(input:focus-visible) { outline: 3px solid var(--hi); }
.tpl-thumb { aspect-ratio: 210 / 297; border-radius: 4px; background: #fff; border: 1px solid #e3e5e0; position: relative; overflow: hidden; }
.tpl-thumb i { position: absolute; display: block; border-radius: 2px; background: #c9ced4; }

/* ---------- Cartão ---------- */
.card-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.preview { position: sticky; top: 20px; }
.preview-stage { background: var(--sunk); border-radius: var(--r); padding: 22px; display: grid; gap: 16px; justify-items: center; }
.preview-stage .face { width: 100%; max-width: 440px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.22)); line-height: 0; }
.preview-stage .face svg { width: 100%; height: auto; border-radius: 4px; }
.preview-stage .face.loading { opacity: .6; }
.spec { font: 500 12px/1.4 var(--mono); color: var(--muted); text-align: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.layouts label { border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; display: grid; gap: 6px; font-size: 13px; font-weight: 600; text-align: center; }
.layouts input { position: absolute; opacity: 0; }
.layouts label:has(input:checked) { border: 2px solid var(--brand); padding: 7px; }
.layouts label:has(input:focus-visible) { outline: 3px solid var(--hi); }
.lay { aspect-ratio: 90/50; border-radius: 3px; position: relative; overflow: hidden; background: #fff; border: 1px solid #e3e5e0; }
.lay i { position: absolute; display: block; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--surface); outline: 1px solid var(--line); cursor: pointer; position: relative; overflow: hidden; padding: 0; }
.swatches button i { position: absolute; right: 0; bottom: 0; width: 50%; height: 50%; }
.swatches button[aria-pressed="true"] { outline: 3px solid var(--ink); }
.colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.colors label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.color-cell { display: grid; gap: 6px; min-width: 0; }
.color-cell .lbl, .cv-color .lbl { font-size: 12px; font-weight: 600; }
.color-in { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.color-in input[type=color] { width: 44px; min-width: 44px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--surface); cursor: pointer; }
.color-in .hex { width: 100%; min-width: 0; max-width: 112px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 500 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.color-in .hex:focus-visible { outline: 3px solid var(--hi); outline-offset: 1px; border-color: var(--brand); }
.color-in .hex.bad { border-color: #C0392B; box-shadow: inset 0 0 0 1px #C0392B; }
.cv-color { display: grid; gap: 6px; margin-top: 16px; }
.cv-color .row { align-items: center; }
.downloads { display: grid; gap: 10px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.dl:hover { border-color: var(--muted); }
.dl .ext { font: 600 11px/1 var(--mono); letter-spacing: .05em; padding: 8px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); min-width: 46px; text-align: center; }
.dl b { display: block; }
.dl small { color: var(--muted); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } .preview { position: static; } .colors { grid-template-columns: 1fr 1fr; } }

/* ---------- Partilhar ---------- */
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.linkbox { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 12px; background: var(--paper); }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1.4 var(--mono); user-select: all; }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-box img { width: 132px; height: 132px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.sites { list-style: none; margin: 0; padding: 0; }
.sites li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sites li:last-child { border-bottom: 0; }
.sites small { color: var(--muted); grid-column: 1; }
.sites a { grid-row: 1 / span 2; grid-column: 2; }
.wa { background: #1F9D55; border-color: #1F9D55; color: #fff; }
@media (max-width: 900px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.plan.current { border: 2px solid var(--brand); }
.plan .price { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 13px var(--body); color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.plan.best { border-color: var(--brand); }
.plan > small.muted { margin-top: -6px; }
.plan .plan-buy { margin-top: auto; display: grid; gap: 8px; }
.plan .plan-buy .btn { margin-top: 0; }
.plan > small.muted:last-child { margin-top: auto; }
.tag { align-self: flex-start; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--hi); color: #231500; padding: 6px 8px; border-radius: 4px; }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r); background: var(--brand-soft); color: var(--ink); margin-bottom: 16px; }
.banner.warn { background: color-mix(in srgb, var(--hi) 22%, var(--surface)); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Modal de upgrade ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 14, .55); display: grid; place-items: center; padding: 16px; }
.modal .panel { max-width: 420px; width: 100%; }

/* ---------- Idioma ---------- */
.auth-main { position: relative; }
.lang-pick { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lang-pick svg { width: 18px; height: 18px; flex: none; }
.lang-select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.field .lang-select { width: 100%; min-height: 44px; }
@media (max-width: 760px) { .lang-pick { top: 12px; } .auth-main { padding-top: 64px; } }

/* ---------- Painel administrativo, cobranças ---------- */
.muted { color: var(--muted); }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--hi) 24%, var(--surface)); color: var(--warn); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.stats + .stats { margin-top: 12px; }
.stats small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tbl-wrap { overflow-x: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--muted); }
.tbl td a { font-weight: 600; text-decoration: none; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.toolbar .input { flex: 1; min-width: 180px; }
.toolbar select.input { flex: 0 0 auto; width: auto; min-width: 140px; }
.pager { justify-content: center; margin-top: 14px; }
.health { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.health li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.health li > span:nth-child(2) { flex: 1; min-width: 180px; }
.health .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 13px/1 var(--body); color: #fff; }
.health .dot svg { width: 13px; height: 13px; stroke-width: 3; }
/* animação enquanto o sistema trabalha */
#busyBar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90; overflow: hidden; pointer-events: none; background: color-mix(in srgb, var(--brand) 18%, transparent); }
#busyBar i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--brand); border-radius: 3px; animation: busy-slide 1.1s ease-in-out infinite; }
@keyframes busy-slide { to { left: 100%; } }
#busyPill { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 91; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--body); box-shadow: 0 6px 20px rgba(0, 0, 0, .22); pointer-events: none; }
#busyPill[hidden], #busyBar[hidden] { display: none; }
.spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; }
.btn.busy { position: relative; pointer-events: none; opacity: .85; }
.btn.busy::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; }
.btn.busy > svg:first-child { display: none; }
@media (prefers-reduced-motion: reduce) { #busyBar i { animation: none; left: 0; width: 100%; opacity: .6; } .spin, .btn.busy::before { animation-duration: 2.4s; } }
/* documentos legais: aceite e editor */
.legal-check { align-items: flex-start; min-height: 0; font-size: 14.5px; line-height: 1.45; }
.legal-check input { margin-top: 3px; flex: none; }
.legal-check a { color: var(--brand); font-weight: 600; }
.auth-legal { margin: 18px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.auth-legal a { color: inherit; }
.legal-gate { max-width: 480px; margin: 16px; display: grid; gap: 14px; }
.legal-gate h2 { margin: 0; }
.legal-gate .sub { margin: 0; }
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--ink); background: var(--surface); }
.legal-list a:hover { border-color: var(--brand); color: var(--brand); }
.legal-list svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.lg-pick { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
.lg-flag { font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-left: 4px; }
.lg-progress { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft, var(--sunk)); font-weight: 600; font-size: 14.5px; }
.lg-text { font: 400 15px/1.55 var(--body); min-height: 320px; resize: vertical; }
.ct-reply { padding: 10px 12px; border-radius: 10px; background: var(--sunk); display: grid; gap: 4px; }
.ct-reply small { color: var(--muted); }
.ct-form { display: grid; gap: 10px; padding-top: 6px; }
/* painel › Empresas */
.ent-h { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }
.ent-contact { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr .9fr auto; gap: 10px; align-items: end; padding: 10px 0; border-top: 1px dashed var(--line); }
.ent-contact:first-child { border-top: 0; padding-top: 0; }
.ent-addr { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.ent-plan { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: end; }
.ent-plan.ent-comp { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.ent-add { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.ent-add .field { width: 100%; max-width: 560px; }
.ent-problems { margin: 0; padding: 10px 12px 10px 28px; border-radius: 10px; font-size: 14px; background: color-mix(in srgb, var(--hi) 18%, var(--surface)); border: 1px solid var(--line); display: grid; gap: 4px; }
@media (max-width: 900px) { .ent-plan, .ent-plan.ent-comp { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ent-contact { grid-template-columns: 1fr 1fr; } .ent-contact .btn { justify-self: start; } }
@media (max-width: 560px) { .ent-contact, .ent-addr, .ent-plan, .ent-plan.ent-comp { grid-template-columns: 1fr; } }
.only-narrow-lbl { display: none; }
@media (max-width: 760px) {
  .tbl.ents, .tbl.ents tbody { display: block; }
  .tbl.ents thead { display: none; }
  .tbl.ents tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl.ents tr:last-child { border-bottom: 0; }
  .tbl.ents td { padding: 0; border: 0; min-width: 0; text-align: left; }
  .tbl.ents td:nth-child(1) { grid-area: 1 / 1; }
  .tbl.ents td:nth-child(6) { grid-area: 1 / 2; justify-self: end; }
  .tbl.ents td:nth-child(2) { grid-area: 2 / 1 / auto / -1; color: var(--muted); }
  .tbl.ents td:nth-child(3) { grid-area: 3 / 1; }
  .tbl.ents td:nth-child(4) { grid-area: 3 / 2; text-align: right; }
  .tbl.ents td:nth-child(5) { grid-area: 4 / 1 / auto / -1; }
  .only-narrow-lbl { display: inline; color: var(--muted); }
  .nav.adm a { font-size: 9.5px; letter-spacing: -.01em; }
}
/* tela inicial: QR code do cartão logo ao abrir */
.qr-hero { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; }
.qr-hero .qr-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; aspect-ratio: 1; display: grid; place-items: center; }
.qr-hero .qr-box svg { width: 100%; height: 100%; display: block; }
.qr-hero .qr-box.off svg { opacity: .28; }
.qr-text h2 { margin-top: 6px; font-size: clamp(22px, 2.6vw, 28px); }
.qr-hint { margin: 12px 0 14px; }
.qr-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; background: color-mix(in srgb, var(--hi) 22%, var(--surface)); border: 1px solid var(--line); }
.qr-warn.soft { background: var(--sunk); }
.qr-warn svg { width: 16px; height: 16px; flex: none; }
.qr-warn span { flex: 1; min-width: 180px; }
@media (max-width: 640px) { .qr-hero { grid-template-columns: 1fr; text-align: center; } .qr-hero .qr-box { width: min(100%, 300px); margin-inline: auto; } .qr-hero .row { justify-content: center; } .qr-warn { text-align: left; } }
/* cartão só de visualização (plano empresarial) */
.card-view { max-width: 560px; margin-inline: auto; }
.face.static [data-g] { pointer-events: none; }
.face.static .hit { display: none; }
.leads { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.leads li { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--hi); border-radius: 12px; }
.leads li.done { border-left-color: var(--line); }
.leads li.done .lead-head b, .leads li.done .lead-msg { color: var(--muted); }
.lead-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lead-head b { font-size: 17px; }
.lead-head small { margin-left: auto; color: var(--muted); }
.lead-contact, .lead-msg { margin: 0; overflow-wrap: anywhere; }
.lead-contact a { font-weight: 600; }
.lead-msg { white-space: pre-line; }
.lead-cfg { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; max-width: 460px; justify-items: start; }
.lead-cfg .field { width: 100%; }
.errlog { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.errlog li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line, #e4e7ec); }
.errlog li:first-child { border-top: 0; padding-top: 0; }
.errlog small { color: var(--muted, #667085); }
.errlog code { white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
.health li.ok .dot { background: var(--ok); }
.health li.warn .dot { background: var(--warn); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; margin: 16px 0 0; }
.facts div { min-width: 0; }
.facts dt { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.box { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--paper); min-width: 0; }
.inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.modal form.panel { display: grid; gap: 12px; }
.modal form.panel .sub { margin: 0; }
.field { grid-template-columns: minmax(0, 1fr); }
.panel { min-width: 0; }

/* ---------- Voltar ao site (telas de entrada) ---------- */
.auth-side a.logo { color: inherit; text-decoration: none; }
.back-site { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.back-site:hover { border-color: var(--muted); }
.back-site svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 760px) { .back-site { top: 12px; } }

/* ---------- Entrada do administrador ---------- */
.auth-box { width: 100%; max-width: 380px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.admin-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--line); font-size: 14px; }
.admin-note svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 1px; }
.admin-note b { display: block; font-size: 15px; }

/* ---------- Vários currículos ---------- */
.cv-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.cv-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.cv-tabs a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-tabs a small { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.cv-tabs a svg { width: 15px; height: 15px; flex: none; color: var(--warn); }
.cv-tabs a:hover { background: var(--sunk); }
.cv-tabs a[aria-current="page"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.cv-tabs .count { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }

/* ---------- Logomarca (currículo e cartão): proporção original, sem recorte ---------- */
.avatar.logo { border-radius: 10px; object-fit: contain; background: #fff; padding: 6px; }
div.avatar.logo svg { width: 30px; height: 30px; color: #9aa3ad; }

/* ---------- Painel: confirmação dentro da tabela ---------- */
.tbl tr.confirm td { padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.tbl tr.confirm .banner { margin: 0; }
details > summary { cursor: pointer; font-weight: 600; font-size: 14px; }

/* ---------- Painel administrativo (/admin/): menu próprio ---------- */
.nav .adm-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: -14px 0 14px 10px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 600 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav .adm-badge svg { width: 14px; height: 14px; }
.nav .adm-who { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; margin-bottom: 10px; }
.nav .plan-pill .lang-select { width: 100%; min-height: 36px; }
.nav.adm .lbl-s { display: none; }
.btn.only-narrow { display: none; }
@media (max-width: 900px) {
  /* no celular o menu fica embaixo: rótulos curtos, numa linha só */
  /* seis itens: sem espaço entre eles e letra um pouco menor, para caber em 360 px nos quatro idiomas */
  .nav.adm { gap: 0; }
  .nav.adm a { padding-inline: 0; font-size: 10px; }
  .nav.adm .lbl { display: none; }
  .nav.adm .lbl-s { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav .adm-badge { display: none; }
  .btn.only-narrow { display: inline-flex; }
}

/* ---------- Rodapé: crédito de desenvolvimento ---------- */
.credit { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.credit a { color: inherit; font-weight: 600; }
.credit-ver { white-space: nowrap; }
.auth-box .credit { margin-top: 6px; }

/* ---------- Planos: mensal e anual, boas-vindas, diálogo do anual ---------- */
.plan .cycle { display: grid; gap: 5px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan .price.alt { font-size: 22px; }
.plan .save { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--hi); color: #231500; padding: 4px 6px; border-radius: 4px; white-space: nowrap; vertical-align: middle; }
.plan .first { color: var(--ok); font-weight: 600; font-size: 13px; }
.plan .cycle-head { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
/* "Recomendado" fica sobre a borda, para as linhas dos três planos continuarem alinhadas */
.plan { position: relative; }
.plan.best .tag { position: absolute; top: -11px; right: 16px; background: var(--brand); color: var(--brand-ink); }
.welcome { border-color: var(--brand); box-shadow: 5px 5px 0 var(--hi); margin-bottom: 22px; }
.welcome h2 { font-size: 22px; margin-top: 6px; }
.welcome p { margin: 8px 0 0; max-width: 70ch; }
.offer { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--hi) 22%, var(--surface)); font-size: 14px; }
.welcome .offer { margin-top: 14px; }
.offer-line { margin: 0 0 14px; }
.plan-notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.plan-notes b { color: var(--ink); }
.modal .panel { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal form.panel .offer { margin: 0; }
.modal .panel.wide { max-width: 460px; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.pay-opt input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.pay-opt > span { display: grid; min-width: 0; }
.pay-opt small { color: var(--muted); font-size: 13px; }
.pay-opt .amt { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.pay-opt:has(input:focus-visible) { outline: 3px solid var(--hi); outline-offset: 2px; }

/* ---------- Baixar o app (entrada e Conta), telas por plano ---------- */
.get-app { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.btn.soon, .btn.soon:hover { border-style: dashed; border-color: var(--line); color: var(--muted); cursor: default; }
.stats.two { grid-template-columns: 1fr 1fr; }
.share-grid.one { grid-template-columns: minmax(0, 640px); }
.sites { margin-top: 8px; }
.sites .btn { grid-row: 1 / span 2; grid-column: 2; }
.hello > .panel + .panel { margin-top: 0; }
@media (max-width: 900px) { .nav a span { white-space: nowrap; } }
.lock svg { width: 13px; height: 13px; flex: none; }
.field { align-content: start; }

/* ---------- Painel › Site e apps: no celular, cada site vira um bloco (nome e situação, dica e idioma, ações) ---------- */
@media (max-width: 640px) {
  .tbl.stack, .tbl.stack tbody { display: block; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl.stack tr:last-child, .tbl.stack tr:has(+ tr.confirm:last-child) { border-bottom: 0; }
  .tbl.stack td { padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .tbl.stack td:nth-child(1) { grid-area: 1 / 1; }
  .tbl.stack td:nth-child(5) { grid-area: 1 / 2; }
  .tbl.stack td:nth-child(3) { grid-area: 2 / 1; color: var(--muted); }
  .tbl.stack td:nth-child(2) { grid-area: 2 / 2; text-align: right; font: 500 12px/1.4 var(--mono); color: var(--muted); }
  .tbl.stack td:nth-child(4) { display: none; }
  .tbl.stack td:nth-child(6) { grid-area: 3 / 1 / auto / -1; text-align: left; white-space: normal; }
  .tbl.stack td:nth-child(6) .row { justify-content: flex-start !important; flex-wrap: wrap !important; }
  .tbl.stack tr.confirm { display: block; padding: 0 0 12px; }
  .tbl.stack tr.confirm[hidden] { display: none; }
  .tbl.stack tr.confirm td { display: block; }
}

/* ---------- Conta: histórico de acessos ao currículo protegido ---------- */
.ax-log { margin-top: 10px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.ax-log .tbl { margin: 0; }
.ax-log th { position: sticky; top: 0; background: var(--surface); }
.ax-log td { overflow-wrap: anywhere; }
.ax-log td small { display: block; color: var(--muted); }
@media (max-width: 640px) {
  .ax-log thead { display: none; }
  .ax-log table, .ax-log tbody, .ax-log tr, .ax-log td { display: block; }
  .ax-log tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .ax-log tr:last-child { border-bottom: 0; }
  .ax-log td { padding: 1px 0; border: 0; }
  .ax-log td:first-child { font-size: 13px; color: var(--muted); }
}

/* ---------- Painel: aviso nos 4 idiomas e arquivo do aplicativo ---------- */
.langs4 { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 14px; margin: 12px 0 0; display: grid; gap: 10px; min-width: 0; }
.langs4 legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.langs4 .field > span { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; color: var(--muted); }
.app-file { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.app-file .lbl { font-weight: 600; font-size: 14px; }
.app-file-cur { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.app-file-cur > span:first-child { display: grid; min-width: 0; overflow-wrap: anywhere; }
.app-file-cur small { color: var(--muted); }
.app-file-pick { justify-self: start; cursor: pointer; }
.app-file-bar { position: relative; height: 30px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.app-file-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brand-soft); transition: width .2s; }
.app-file-bar span { position: relative; display: block; text-align: center; font-size: 13px; line-height: 28px; font-variant-numeric: tabular-nums; }

.field input.bad { border-color: #C0392B; box-shadow: inset 0 0 0 1px #C0392B; }

/* ---------- Conta: acesso público (currículo e cartão) ---------- */
.ax-group { margin-top: 18px; display: grid; gap: 10px; }
.banner .btn.sm { flex: none; }
.banner > span > svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* ---------- Painel: assinaturas de um usuário no celular (uma ficha por assinatura) ---------- */
@media (max-width: 640px) {
  .tbl.subs, .tbl.subs tbody { display: block; }
  .tbl.subs thead { display: none; }
  .tbl.subs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl.subs tr:last-child { border-bottom: 0; }
  .tbl.subs td { padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .tbl.subs td:nth-child(1) { grid-area: 1 / 1; font-weight: 600; }
  .tbl.subs td:nth-child(2) { grid-area: 1 / 2; text-align: right; }
  .tbl.subs td:nth-child(3) { grid-area: 2 / 1; color: var(--muted); font-size: 13px; }
  .tbl.subs td:nth-child(5) { grid-area: 2 / 2; text-align: right; color: var(--muted); font-size: 13px; }
  .tbl.subs td:nth-child(4) { display: none; }
  .tbl.subs td:nth-child(6) { grid-area: 3 / 1 / auto / -1; text-align: left; white-space: normal; }
  .tbl.subs td:nth-child(6) .row { justify-content: flex-start !important; flex-wrap: wrap !important; margin-top: 6px; }
  .tbl.subs tr.confirm { display: block; padding: 0 0 12px; }
  .tbl.subs tr.confirm td { display: block; font-weight: 400; text-align: left; color: var(--ink); font-size: inherit; }
}

/* ---------- Painel: uso das contas (entrou, baixou o app, usa o app) ---------- */
.act-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.act-tags .pill { font-size: 11px; white-space: nowrap; }
.app-stats { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.btn.sm small { font-weight: 400; opacity: .7; margin-left: 2px; }

/* ---------- Cartão: arrastar logomarca, nome e contatos na pré-visualização ---------- */
.preview-stage .face svg [data-g] { cursor: grab; touch-action: none; outline: none; }
.preview-stage .face svg [data-g] .hit { stroke: transparent; stroke-width: .3; stroke-dasharray: 1.2 .9; }
.preview-stage .face svg [data-g]:hover .hit, .preview-stage .face svg [data-g]:focus-visible .hit, .preview-stage .face svg [data-g].drag .hit { stroke: #F2A93B; fill: rgba(242, 169, 59, .12); }
.preview-stage .face svg [data-g].drag { cursor: grabbing; }
.drag-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 0; font-size: 13px; color: var(--muted); max-width: 440px; }
.drag-hint svg { width: 16px; height: 16px; flex: none; }
.drag-hint span { flex: 1; min-width: 180px; }

/* ---------- Painel: lista de usuários no celular (uma ficha por conta) ---------- */
@media (max-width: 640px) {
  .tbl.users, .tbl.users tbody { display: block; }
  .tbl.users thead { display: none; }
  .tbl.users tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl.users tr:last-child { border-bottom: 0; }
  .tbl.users td { padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .tbl.users td:nth-child(1) { grid-area: 1 / 1; }
  .tbl.users td:nth-child(2) { grid-area: 1 / 2; text-align: right; max-width: 150px; }
  .tbl.users td:nth-child(3) { grid-area: 2 / 1 / auto / -1; }
  .tbl.users td:nth-child(4), .tbl.users td:nth-child(5) { display: none; }
}

/* ---- currículo em vários idiomas */
.cv-vers { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cv-vers li { display: grid; grid-template-columns: 44px minmax(120px, 1fr) minmax(0, 2fr) auto; gap: 10px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.cv-vers li.cur { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.cv-vers li.off { background: transparent; border-style: dashed; grid-template-columns: 44px minmax(120px, 1fr) auto; }
.cv-vers li > b { font: 600 13px/1 var(--mono); letter-spacing: .06em; color: var(--brand); background: var(--bg); border-radius: 8px; height: 32px; display: grid; place-items: center; }
.cv-vers li.off > b { color: var(--muted); }
.cv-vers li > span:nth-child(2) { font-weight: 600; min-width: 0; }
.cv-vers li small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cv-vers .linkbox { min-width: 0; }
.cv-vers .linkbox code i { font-style: normal; }
.cv-vers .row { flex-wrap: nowrap; justify-content: flex-end; }
.tr-state { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tr-state.ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tr-state.bad { color: var(--err); }
.tr-state.on::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.share-lang { display: grid; gap: 6px; margin-bottom: 16px; }
.share-lang .lbl { font-size: 13px; font-weight: 600; }
@media (max-width: 720px) {
  .cv-vers li, .cv-vers li.off { grid-template-columns: 44px 1fr; }
  .cv-vers .linkbox, .cv-vers .row { grid-column: 1 / -1; }
  .cv-vers .linkbox code i { display: none; } /* no celular, só o caminho: o fim (o idioma) é o que importa */
  .cv-vers .row { justify-content: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .tr-state.on::before { animation: none; } }

/* ---- versão nova do aplicativo: aviso em destaque na tela inicial */
.app-update { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; margin-bottom: 16px; padding: 16px 18px; border-radius: 14px; background: #0F4C5C; color: #fff; box-shadow: 0 10px 24px -16px rgba(0,0,0,.55); }
.app-update-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--hi); color: #1b1f24; }
.app-update-ico svg { width: 22px; height: 22px; }
.app-update-text { display: grid; gap: 2px; min-width: 0; }
.app-update-text b { font-size: 17px; line-height: 1.25; }
.app-update-text span { font-size: 14.5px; opacity: .95; }
.app-update-text small { font-size: 12.5px; opacity: .85; margin-top: 4px; }
.app-update .row { flex-wrap: nowrap; }
.app-update .btn.primary { background: var(--hi); color: #1b1f24; border-color: transparent; }
.app-update .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.app-update .btn.ghost:hover { background: rgba(255,255,255,.12); }
@media (max-width: 720px) {
  .app-update { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .app-update .row { grid-column: 1 / -1; flex-wrap: wrap; }
  .app-update .row .btn.primary { flex: 1 1 auto; justify-content: center; }
}

/* ---- pessoas autorizadas a ver o currículo (tela Compartilhar) */
.gr-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 12px; }
.gr-form > .field:first-child { grid-column: 1 / -1; }
.gr-form .form-error { grid-column: 1 / -1; margin: 0; }
.gr-form .gr-send { grid-column: 1 / -1; }
.gr-form .btn { min-height: 46px; }
.grants { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.grants li { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.grants li.active { box-shadow: inset 3px 0 0 var(--ok); }
.grants li.blocked, .grants li.expired { box-shadow: inset 3px 0 0 var(--hi); }
.gr-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.gr-who b { overflow-wrap: anywhere; }
.gr-who small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.gr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gr-date { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.gr-date input { min-height: 38px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
@media (max-width: 720px) {
  .gr-form { grid-template-columns: 1fr; }
}

/* ---- painel: limpar dados (zona de perigo) */
.danger-zone { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.danger-zone h2 { color: var(--err); }
.rs-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 12px; }
.rs-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.rs-list b { display: inline-block; min-width: 3.2em; font-variant-numeric: tabular-nums; }
.danger-zone .check { margin-top: 8px; }
@media (max-width: 720px) { .rs-cols { grid-template-columns: 1fr; } }

/* ---------- Marcas do menu, paginação, auditoria, pessoas e cadastro em lote ---------- */
.nav a { position: relative; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: var(--err); color: #fff; font: 700 11px/1 var(--body); }
.nav-badge.inline { margin-left: 4px; vertical-align: 1px; }
.nav.adm { overflow-y: auto; }
@media (max-width: 900px) {
  .nav-badge { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
  /* onze telas no painel: o menu de baixo rola para o lado */
  .nav.adm { overflow-x: auto; overflow-y: hidden; justify-content: flex-start; scrollbar-width: none; }
  .nav.adm::-webkit-scrollbar { display: none; }
  .nav.adm a { flex: 0 0 68px; }
}
.pgbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pg-per { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.pg-per select { min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pg-info { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.pg-btn { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.pg-btn:hover:not(:disabled) { border-color: var(--muted); }
.pg-btn:disabled { opacity: .45; cursor: default; }
.pg-btn[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); opacity: 1; }
.pg-gap { padding: 0 4px; color: var(--muted); }
@media (max-width: 640px) { .pg { margin-left: 0; } .pg-w { display: none; } }

.aud-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.aud-filters .grow { grid-column: span 3; }
.aud-filters .aud-btns { grid-column: span 2; justify-content: flex-end; }
@media (max-width: 1000px) { .aud-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aud-filters .grow, .aud-filters .aud-btns { grid-column: 1 / -1; } .aud-filters .aud-btns { justify-content: flex-start; } }
.tbl.aud td { vertical-align: top; }
.aud-det { display: flex !important; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.aud-kv { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--sunk); font-size: 12px; overflow-wrap: anywhere; }
.aud-kv i { font-style: normal; color: var(--muted); }
.nowrap { white-space: nowrap; }

.set-sep { display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; color: var(--muted); font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.set-sep::before, .set-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.set-sep.danger { color: var(--err); }
#setMain, #setAdmins, #setMine, #setReset { display: grid; gap: 16px; }
#admBody .panel + .panel, #admBody section + section, #admBody form.panel + section, #admBody section + form.panel { margin-top: 16px; }

.acct-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 640px) { .acct-actions { grid-template-columns: 1fr; } }
.grid2 .full { grid-column: 1 / -1; }
.grid2.tight { gap: 10px; }
.field .opt { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
.muted-row td { color: var(--muted); }
.muted-row td b { color: var(--muted); }

.imp-tools { margin: 14px 0 6px; align-items: center; }
.tbl.imp td { padding: 4px; }
.tbl.imp input { width: 100%; min-width: 110px; min-height: 38px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.tbl.imp tr.bad input { border-color: color-mix(in srgb, var(--err) 60%, var(--line)); }
.tbl.imp tr.bad td { border-bottom: 0; }
.tbl.imp .imp-err td { padding: 0 6px 8px; color: var(--err); font-size: 13px; }
.tbl.ppl td { vertical-align: top; }
.ent-top .sec-head h2 .pill { vertical-align: middle; margin-left: 6px; }

/* ---------- Tela inicial: só o QR code com os dados de contato ---------- */
.home-qr { max-width: 520px; margin: 4px auto 0; padding: clamp(20px, 4vw, 32px); border-radius: 22px; background: linear-gradient(160deg, var(--brand-soft), var(--surface) 55%); border: 1px solid var(--line); display: grid; gap: 16px; justify-items: center; text-align: center; box-shadow: 0 18px 40px -28px rgba(15, 76, 92, .45); }
.hq-who { display: flex; align-items: center; gap: 14px; text-align: left; max-width: 100%; }
.hq-who .avatar { width: 64px; height: 64px; font-size: 22px; flex: none; }
.hq-who .avatar.logo { border-radius: 12px; object-fit: contain; background: #fff; }
.hq-who h1 { font-size: clamp(22px, 5vw, 28px); overflow-wrap: anywhere; }
.hq-who p { margin: 2px 0 0; color: var(--muted); }
.hq-code { width: min(100%, 300px); aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--line); display: grid; place-items: center; }
.hq-code svg { width: 100%; height: 100%; display: block; }
.hq-code.off svg { opacity: .25; }
.hq-hint { margin: 0; color: var(--muted); max-width: 40ch; }
.hq-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 380px; }
.hq-contact li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; min-width: 0; }
.hq-contact li svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.hq-contact li a, .hq-contact li span { min-width: 0; overflow-wrap: anywhere; color: var(--ink); text-decoration: none; font-weight: 600; }
.hq-empty { margin: 0; }
.hq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.home-qr .qr-warn { width: 100%; text-align: left; margin: 0; }

/* ---------- Compartilhar em abas ---------- */
.share-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 18px; padding: 4px; border-radius: 14px; background: var(--sunk); scrollbar-width: none; }
.share-tabs::-webkit-scrollbar { display: none; }
.share-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.share-tabs button svg { width: 18px; height: 18px; }
.share-tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.share-pane > .share-lang, .share-pane > .banner, .share-pane > .field { margin-bottom: 16px; }
.qr-svg { width: 132px; height: 132px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.qr-svg svg { width: 100%; height: 100%; display: block; }

/* ---------- Área da empresa ---------- */
.co-head h2 { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.co-head h2 svg { width: 22px; height: 22px; color: var(--brand); }
.co-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.co-stats div { background: var(--surface); padding: 14px 16px; }
.co-stats b { display: block; font: 800 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.co-stats span { color: var(--muted); font-size: 13px; }
#coPeople, #coAdd, #coContact, #coPay { margin-top: 16px; }
#admBody, #admBody > *, .panel, .tbl-wrap { min-width: 0; }
.tbl.ppl td:nth-child(5) { min-width: 170px; }
.ppl-acts { justify-content: flex-end; gap: 6px; }
@media (min-width: 1200px) { .ppl-acts { flex-wrap: nowrap; } }
@media (max-width: 900px) { .nav:not(.adm) a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nav:not(.adm) a { font-size: 10.5px; } }
/* celular: pessoas e pagamentos em cartões, sem rolar para o lado */
@media (max-width: 640px) {
  .tbl.ppl, .tbl.ppl tbody, .tbl.pays2, .tbl.pays2 tbody { display: block; }
  .tbl.ppl thead, .tbl.pays2 thead { display: none; }
  .tbl.ppl tr, .tbl.pays2 tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl.ppl td, .tbl.pays2 td { padding: 0; border: 0; min-width: 0 !important; text-align: left; }
  .tbl.ppl td:nth-child(1) { grid-column: 1; }
  .tbl.ppl td:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
  .tbl.ppl td:nth-child(2), .tbl.ppl td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
  .tbl.ppl td:nth-child(2):empty, .tbl.ppl td:nth-child(3):empty { display: none; }
  .tbl.ppl td:nth-child(5), .tbl.ppl td:nth-child(6) { grid-column: 1 / -1; }
  .tbl.ppl .ppl-acts { justify-content: flex-start; flex-wrap: wrap; margin-top: 6px; }
  .tbl.pays2 td:nth-child(1) { grid-column: 1; }
  .tbl.pays2 td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl.pays2 td:nth-child(3), .tbl.pays2 td:nth-child(4), .tbl.pays2 td:nth-child(5) { grid-column: 1 / -1; }
  .tbl.imp { min-width: 640px; }
}
.share-cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.share-cv > #grantsBox { grid-row: span 2; }
@media (max-width: 900px) { .share-cv { grid-template-columns: minmax(0, 1fr); } .share-cv > #grantsBox { grid-row: auto; } }

/* conta de plano empresarial: nada de oferta de planos (a empresa contrata) */
body.ent-acct a[href="#plans"], body.ent-acct .plan-upsell { display: none !important; }
.hold-box { max-width: 560px; display: grid; gap: 10px; justify-items: start; }
.hold-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.hold-ico svg { width: 26px; height: 26px; }
.hold-box p { margin: 0; }

/* ---------- Ajuda de cada tela ---------- */
.help-fab { position: fixed; z-index: 30; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 14px/1 var(--body); cursor: pointer; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); }
.help-fab span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 800 17px/1 var(--display); }
.help-fab:hover { border-color: var(--muted); }
@media (max-width: 900px) { .help-fab { bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom, 0px)); right: 12px; padding: 0 6px; } .help-fab b { display: none; } }
@media print { .help-fab { display: none; } }
.modal.help .help-panel { max-width: 560px; width: 100%; display: grid; gap: 14px; max-height: calc(100vh - 40px); overflow: auto; }
.help-panel h2 { margin-top: 4px; }
.help-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.55; }
.help-list li::marker { color: var(--brand); font-weight: 700; }
.help-panel .sec-head { flex-wrap: nowrap; align-items: flex-start; gap: 12px; } .help-panel .sec-head .icon-btn { flex: none; }

/* ---------- Assinatura de e-mail ---------- */
.sig-preview { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow-x: auto; }
.sig-preview img { display: block; width: 600px; max-width: 100%; height: auto; }
.sig-preview.off { background: var(--sunk); color: var(--muted); text-align: center; font-size: 14px; }
.sig-how { display: grid; gap: 8px; }
.sig-how details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--surface); }
.sig-how summary { cursor: pointer; font-weight: 600; }
.sig-how ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.sig-notes { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 6px; }

/* celular no navegador: botão Sair na tela inicial, antes do rodapé */
.home-out { display: none; justify-content: center; margin-top: 22px; }
@media (max-width: 900px) { .home-out.only-narrow { display: flex; } }

/* ---------- Digital / rosto (aplicativo) ---------- */
.bio-lock { width: min(100% - 32px, 380px); display: grid; gap: 12px; justify-items: center; text-align: center; padding: 28px 22px; }
.bio-lock .logo { color: var(--brand); font: 800 22px/1 var(--display); display: inline-flex; align-items: center; gap: 8px; }
.bio-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-top: 6px; }
.bio-ico svg { width: 30px; height: 30px; }
.bio-lock .btn.block { width: 100%; }
.bio-lock .sub { margin: 0; }
.bio-btn { margin-top: -4px; }

/* passo a passo do iPhone (Adicionar à Tela de Início) */
.ios-share { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); vertical-align: -6px; color: #0a84ff; }
.ios-share svg { width: 15px; height: 15px; }

/* verificação em duas etapas */
.tfa-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.tfa-pick legend { font-weight: 700; margin-bottom: 6px; }
.tfa-pick .check { align-items: flex-start; }
.tfa-pick .check span { display: grid; gap: 2px; }
.tfa-pick .check small { color: var(--muted); }
.tfa-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tfa-qr svg { width: 168px; height: 168px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex: none; }
.tfa-qr > div { display: grid; gap: 4px; min-width: 0; }
.tfa-secret { font-size: 15px; letter-spacing: .5px; word-break: break-all; user-select: all; }
.tfa-codes ol { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 28px; margin: 0 0 12px; padding-left: 22px; }
.tfa-codes code { font-size: 15px; letter-spacing: 1px; }

/* painel › redes sociais */
.soc-sched { display: grid; gap: 14px; margin-top: 14px; }
.soc-accounts .box { display: grid; gap: 8px; align-content: start; }
.soc-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.soc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.soc-post { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface, #fff); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.soc-post.off { opacity: .6; }
.soc-post.next { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.soc-thumb { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--sunk, #eee); overflow: hidden; }
.soc-thumb img, .soc-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.soc-thumb .pill { position: absolute; left: 8px; top: 8px; background: rgba(0, 0, 0, .65); color: #fff; border: 0; }
.soc-thumb .soc-nexttag { left: auto; right: 8px; background: var(--brand); }
.soc-body { padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.soc-body > b { line-height: 1.3; }
.soc-flags { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.soc-acts { gap: 6px; }
.soc-edit { display: grid; gap: 10px; }
.soc-edit textarea { font-size: 14px; }

/* assinatura: escolha do programa de e-mail */
.seg.sig-clients { display: flex; flex-wrap: wrap; border-radius: 16px; gap: 2px; }
.sig-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
a.btn.disabled { opacity: .5; pointer-events: none; }
