/* =========================================================================
   gerar.app — design system
   Tokens, tema claro/escuro, componentes e animações.
   ========================================================================= */

/* ---- Tokens ---- */
:root {
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --brand: #16151d;
  --brand-2: #5b5b66;
  --brand-grad: linear-gradient(135deg, #16151d 0%, #3a3a45 100%);
  --yellow: #ffc300;
  --ink: #16151d;

  /* Acento da página (sobrescrito por ferramenta no <head>) */
  --accent: #16151d;
  --accent-rgb: 22, 21, 29;
  --accent-ink: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1120px;
  --gap: clamp(1rem, 2.5vw, 1.5rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --speed: .35s;

  /* Light (padrão) */
  --bg: #f6f6fb;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f9f9fd;
  --text: #15131f;
  --text-muted: #5e5b73;
  --border: #e7e6f0;
  --border-strong: #d9d8e6;
  --shadow-sm: 0 1px 2px rgba(20, 18, 40, .06), 0 2px 8px rgba(20, 18, 40, .05);
  --shadow: 0 10px 30px -12px rgba(20, 18, 40, .22);
  --shadow-lg: 0 30px 60px -20px rgba(20, 18, 40, .28);
  --ring: rgba(var(--accent-rgb), .35);
}

[data-theme="dark"] {
  --brand: #ffcd29;
  --brand-2: #ffd75e;
  --bg: #0a0a12;
  --bg-2: #0f0f1b;
  --surface: #14141f;
  --surface-2: #191926;
  --text: #ececf6;
  --text-muted: #a0a0b8;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .7);
  --ring: rgba(var(--accent-rgb), .5);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
img, svg { display: block; max-width: 100%; }
/* o atributo HTML `hidden` sempre esconde, mesmo em elementos com display de autor
   (img/svg/.btn/flex...). Resolve a classe de bug "[hidden] não funciona". */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
::selection { background: rgba(var(--accent-rgb), .25); }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 100;
  background: var(--surface); color: var(--text); padding: .6rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.skip-link:focus { left: .5rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  color: var(--ink); background: var(--yellow); box-shadow: 0 6px 18px -6px rgba(255, 195, 0, .6);
}
.brand-mark .ico { width: 20px; height: 20px; }
.brand-dot { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav-links a { padding: .5rem .85rem; border-radius: 10px; color: var(--text-muted); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta {
  color: var(--ink) !important; background: var(--yellow);
  box-shadow: 0 8px 20px -8px rgba(255, 195, 0, .6);
}
.nav-cta:hover { filter: brightness(1.04); background: var(--yellow) !important; }
.nav-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.icon-btn .ico { width: 20px; height: 20px; }
[data-theme="light"] .ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
.nav-burger { display: none; }
.nav-burger .ico-close { display: none; }

/* ── Menu de usuário no header (avatar + nome + dropdown) ── */
.nav-only-mobile { display: none; }
.nav-user { position: relative; }
.nav-user-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .5rem .22rem .26rem; background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; color: var(--text); font: inherit; transition: border-color .2s, background .2s; }
.nav-user-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-name { font-weight: 600; font-size: .9rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-chevron { width: 16px; height: 16px; color: var(--text-muted); transition: transform .2s; }
.nav-user.open .nav-user-chevron { transform: rotate(180deg); }
.nav-user-menu { position: absolute; top: calc(100% + .5rem); right: 0; min-width: 232px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; z-index: 200; animation: navUserIn .14s var(--ease); }
@keyframes navUserIn { from { opacity: 0; transform: translateY(-6px); } }
.nav-user-menu a { display: flex; align-items: center; gap: .6rem; padding: .58rem .7rem; border-radius: 9px; color: var(--text); font-weight: 500; font-size: .92rem; }
.nav-user-menu a:hover { background: var(--surface-2); }
.nav-user-menu a .ico { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.nav-user-head { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .35rem; }
.nav-avatar-lg { width: 42px; height: 42px; font-size: 1.1rem; }
.nav-user-info { display: flex; flex-direction: column; min-width: 0; }
.nav-user-info strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.nav-user-info small { color: var(--text-muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.nav-user-div { display: block; height: 1px; background: var(--border); margin: .35rem .25rem; }
.nav-user-out, .nav-user-out .ico { color: #e5484d !important; }
.nav-entrar { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .9rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-weight: 600; font-size: .9rem; transition: border-color .2s, background .2s; }
.nav-entrar:hover { border-color: var(--border-strong); background: var(--surface-2); }
.nav-entrar .ico { width: 17px; height: 17px; }
@media (max-width: 720px) {
  .nav-only-mobile { display: block; }
  .nav-user-name { display: none; }
  .nav-entrar span { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 12px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; background: var(--surface); color: var(--text);
  transition: transform .2s var(--ease), box-shadow .25s, filter .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn .ico { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 12px 28px -12px rgba(255, 195, 0, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px var(--brand); filter: brightness(1.04); }
.btn-accent { background: var(--accent); color: var(--accent-ink, #fff); box-shadow: 0 12px 28px -12px rgba(var(--accent-rgb), .8); }
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* Honeypot anti-robô: invisível para humanos, fora do fluxo e da leitura por leitores de tela */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-mesh { position: absolute; inset: -20% -10% auto; height: 120%; z-index: 0; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob { position: absolute; width: 42vw; height: 42vw; max-width: 560px; max-height: 560px; border-radius: 50%; mix-blend-mode: normal; animation: float 16s var(--ease) infinite alternate; }
.blob-1 { background: #ffc300; top: -8%; left: -6%; }
.blob-2 { background: #2a2a33; top: 10%; right: -8%; animation-delay: -4s; }
.blob-3 { background: #aeb2bd; bottom: -20%; left: 30%; animation-delay: -8s; }
[data-theme="dark"] .hero-mesh { opacity: .4; }
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; margin-bottom: 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--text-muted); box-shadow: var(--shadow-sm);
}
.hero-eyebrow .ico { width: 16px; height: 16px; color: var(--brand); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.7rem); font-weight: 800; letter-spacing: -.04em; }
.hero h1 .grad {
  background: var(--yellow); color: var(--ink); -webkit-text-fill-color: var(--ink);
  padding: .02em .16em; border-radius: .16em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero p.lead { max-width: 640px; margin: 1.3rem auto 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-muted); }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.2rem; justify-content: center; flex-wrap: wrap; margin-top: 2.8rem; color: var(--text-muted); }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.hero-stats span { font-size: .9rem; }

@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(4%, 6%) scale(1.12); } }

/* ---- Section heads ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 620px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head .kicker { color: var(--brand); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: .5rem; }
.section-head p { color: var(--text-muted); margin-top: .8rem; font-size: 1.05rem; }

/* ---- Tools grid ---- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.tool-card {
  --c: var(--card-accent, var(--brand));
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed);
}
.tool-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, transparent));
  opacity: .9;
}
.tool-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%);
  opacity: 0; transition: opacity var(--speed);
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--border)); }
.tool-card:hover::after { opacity: 1; }
.tool-card.is-soon { opacity: .92; }
.tool-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 24%, transparent);
}
.tool-icon .ico { width: 26px; height: 26px; }
.tool-card h3 { font-size: 1.2rem; }
.tool-card p { color: var(--text-muted); font-size: .95rem; flex: 1; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .3rem; }
.tool-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--c); }
.tool-link .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.tool-card:hover .tool-link .ico { transform: translateX(3px); }
/* Catálogo: busca + chips de categoria + estrela de favoritar */
.fer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.fer-busca { flex: 0 1 300px; max-width: 100%; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-size: .95rem; }
.fer-busca:focus { outline: none; border-color: var(--brand); }
.fer-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.fer-chip { padding: .45rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: .85rem; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.fer-chip:hover { border-color: var(--brand); color: var(--text); }
.fer-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fer-chip-fav.on { background: #f59e0b; border-color: #f59e0b; }
/* Trilhas: seções tituladas que dão a espinha da home */
.trilha { margin-bottom: 2.6rem; }
.trilha:last-child { margin-bottom: 0; }
.trilha-head { margin: 0 0 1.1rem; }
.trilha-head h3 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
.trilha-ico { font-size: 1.05em; line-height: 1; }
.trilha-head p { margin: .3rem 0 0; color: var(--text-muted); max-width: 64ch; font-size: .98rem; }
.tool-card .tool-star { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 1.35rem; line-height: 1; color: #f59e0b; cursor: pointer; transition: background .15s, transform .15s; user-select: none; }
.tool-card .tool-star:hover { background: rgba(245,158,11,.16); transform: scale(1.12); }
.fer-vazio { text-align: center; color: var(--text-muted); padding: 2rem 0; }
/* painel: lista de ferramentas favoritas */
.fer-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.fer-fav-item { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--text); font-weight: 600; transition: border-color .15s, transform .15s; }
.fer-fav-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.fer-fav-item .tool-icon { width: 38px; height: 38px; flex: 0 0 auto; }
.fer-fav-item .tool-icon .ico { width: 19px; height: 19px; }
/* Mensagem fantasma: anti-print (marca d'água + cobertor ao perder o foco) */
.result.ghost-protegido { position: relative; overflow: hidden; }
.result.ghost-protegido .val { position: relative; z-index: 0; transition: filter .12s; }
.ghost-wm { position: absolute; inset: -40%; pointer-events: none; user-select: none; z-index: 1; color: rgba(127,127,127,.14); font-size: .72rem; line-height: 2.5; white-space: pre-wrap; word-break: break-all; transform: rotate(-22deg); }
.ghost-cover { position: absolute; inset: 0; display: grid; place-content: center; gap: .25rem; text-align: center; background: var(--surface); border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .12s; font-size: 2.4rem; z-index: 2; }
.ghost-cover span { font-size: 1rem; font-weight: 700; }
.ghost-cover small { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.result.ghost-protegido.is-hidden .val { filter: blur(11px); }
.result.ghost-protegido.is-hidden .ghost-cover { opacity: 1; pointer-events: auto; }
/* Conversa anônima */
.anon-wrap { max-width: 760px; margin: 1.5rem auto 4rem; }
.anon-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.anon-slugrow { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.anon-slugrow .input { flex: 1 1 140px; min-width: 0; }
.anon-switch { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.anon-switch input { width: 18px; height: 18px; accent-color: #2563EB; }
.anon-linkbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.anon-linkbar .input { flex: 1 1 220px; min-width: 0; }
.anon-edit { margin-top: 1rem; }
.anon-edit > summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--accent); }
.anon-msgs { display: flex; flex-direction: column; gap: .7rem; }
.anon-msg { border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; background: var(--surface-2); }
.anon-msg.nova { border-color: #2563EB; box-shadow: 0 0 0 1px rgba(37,99,235,.25); }
.anon-msg-txt { margin: 0 0 .5rem; white-space: pre-wrap; word-break: break-word; }
.anon-msg-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .78rem; }
.anon-pub { position: relative; }
.anon-pub .textarea { width: 100%; min-height: 110px; }
/* Gerar Treino */
.tr-wrap { max-width: 820px; margin: 1.5rem auto 4rem; }
.tr-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem 1rem; }
.tr-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.tr-chip { padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-weight: 700; font-size: .85rem; cursor: pointer; transition: .15s; }
.tr-chip:hover { border-color: #16a34a; color: var(--text); }
.tr-chip.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.tr-audio { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; }
.tr-timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.tr-erro { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); }
.tr-result-head, .tr-atual-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tr-result-acts, .tr-atual-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
/* render do plano */
.tr-resumo { color: var(--text-muted); margin: 0 0 1.2rem; }
.tr-dia { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; background: var(--surface-2); }
.tr-dia-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; }
.tr-dia-head h3 { margin: 0; font-size: 1.1rem; }
.tr-foco { font-size: .82rem; font-weight: 600; color: #16a34a; }
.tr-dur { font-size: .78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.tr-bloco { font-size: .85rem; color: var(--text-muted); margin: .3rem 0; }
.tr-exs { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-direction: column; gap: .35rem; }
.tr-exs li { display: flex; flex-direction: column; gap: 1px; padding: .5rem .7rem; background: var(--surface); border-radius: 9px; border: 1px solid var(--border); }
.tr-ex-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tr-ex-nome { font-weight: 700; }
.tr-ex-video { font-size: .74rem; font-weight: 700; color: #16a34a; white-space: nowrap; text-decoration: none; }
.tr-ex-video:hover { text-decoration: underline; }
.tr-ex-meta { font-size: .8rem; color: #16a34a; font-weight: 600; margin-top: 2px; }
.tr-ex-obs { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.tr-capa { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin-bottom: 1.2rem; display: block; }
.tr-dicas h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.tr-dicas ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); font-size: .9rem; }
.tr-prog { margin-top: 1rem; font-size: .9rem; background: rgba(22,163,74,.08); border-left: 3px solid #16a34a; padding: .7rem .9rem; border-radius: 0 8px 8px 0; }
/* novos elementos do plano (motor + segurança) */
.tr-fase { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #16a34a; background: rgba(22,163,74,.12); padding: .25rem .6rem; border-radius: 999px; margin: 0 0 .8rem; }
.tr-avisos { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); border-radius: 12px; padding: .7rem .9rem .7rem; margin: 0 0 1.1rem; }
.tr-avisos strong { display: block; font-size: .8rem; color: #b45309; margin-bottom: .3rem; }
.tr-avisos ul { margin: 0; padding-left: 1.1rem; font-size: .84rem; color: var(--text); }
.tr-avisos li { margin: .15rem 0; }
.tr-focos { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.1rem; }
.tr-foco-chip { font-size: .76rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: rgba(22,163,74,.12); color: #16a34a; }
.tr-dia-rest { background: var(--surface); border-style: dashed; }
.tr-badge-rest { font-size: .74rem; font-weight: 700; color: var(--text-muted); background: var(--surface-2); padding: .2rem .55rem; border-radius: 999px; }
.tr-ex-int { font-size: .78rem; color: #0ea5e9; font-weight: 600; margin-top: 2px; }
.tr-ex-reg { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
/* form: estilo/foco já usam .tr-chip; bloco de segurança/triagem */
.tr-seg { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; margin: 1rem 0; background: var(--surface-2); }
.tr-seg-title { display: flex; align-items: center; gap: .45rem; font-weight: 700; margin: 0; }
.tr-seg-title svg { width: 18px; height: 18px; }
.tr-triagem { display: flex; flex-direction: column; gap: .45rem; }
.tr-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; cursor: pointer; line-height: 1.3; }
.tr-check input { margin-top: .15rem; flex: none; }
.tr-check-none { font-weight: 700; padding-top: .35rem; border-top: 1px dashed var(--border); margin-top: .25rem; }
/* paywall do Plano do mês (não-assinante) */
.tr-paywall { border: 1px solid rgba(22,163,74,.4); background: rgba(22,163,74,.06); }
.tr-paywall h2 { display: flex; align-items: center; gap: .45rem; }
.tr-paywall h2 svg { width: 20px; height: 20px; }
.tr-paywall-saldo { display: flex; align-items: baseline; gap: .5rem; font-weight: 700; }
.tr-saldo-num { font-size: 1.7rem; line-height: 1; color: #16a34a; }
.tr-compra-ok { border: 1px solid rgba(22,163,74,.4); background: rgba(22,163,74,.08); margin-bottom: var(--gap); }
.tr-compra-ok strong { display: inline-flex; align-items: center; gap: .35rem; }
.tr-compra-ok svg { width: 16px; height: 16px; }
.tr-saldo-note { display: flex; align-items: baseline; gap: .5rem; margin-bottom: var(--gap); color: var(--text-muted); }
/* prévia (gera grátis) + paywall travado no servidor */
.tr-teaser-lock { margin-top: 1.1rem; padding: .8rem 1rem; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--text-muted); font-size: .92rem; }
.tr-locked { position: relative; margin-top: 1.1rem; min-height: 250px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.tr-skel { display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem 1.2rem; filter: blur(6px); opacity: .5; pointer-events: none; user-select: none; }
.tr-skel-line { height: 15px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--border-strong)); }
.tr-paywall-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: 1.5rem; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 25%, transparent) 0%, var(--surface) 60%); }
.tr-paywall-tit { font-weight: 800; font-size: 1.18rem; margin: 0; color: var(--text); }
.tr-paywall-sub { margin: 0; color: var(--text-muted); max-width: 34ch; font-size: .92rem; }
.tr-paywall-over .tr-desbloquear { margin-top: .35rem; }

/* ── Kit de Marca ── */
.kit-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .kit-grid2 { grid-template-columns: 1fr; } }
.kit-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.kit-chip { padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: .15s; }
.kit-chip:hover { border-color: var(--accent); color: var(--text); }
.kit-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.kit-status { margin-top: var(--gap); }
.kit-card { margin-top: var(--gap); }
.kit-card h3 { margin: 0 0 .8rem; }
.kit-result-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kit-acts, .kit-sec-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-xs { padding: .3rem .65rem; font-size: .8rem; }
.kit-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.kit-sec-head h3 { margin: 0; }
.kit-logo-main { margin-bottom: 1rem; }
.kit-logo-vars { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (max-width: 560px) { .kit-logo-vars { grid-template-columns: 1fr; } }
.kl { display: flex; align-items: center; justify-content: center; gap: 1.1rem; padding: 2rem 1.4rem; border-radius: 16px; border: 1px solid var(--border); min-height: 120px; overflow: hidden; }
.kit-logo-main .kl { min-height: 220px; }
.kl-icone-topo { flex-direction: column; gap: .7rem; }
.kl-sym { display: inline-flex; flex: none; }
.kl-sym svg, .kl-sym img { width: 64px; height: 64px; display: block; object-fit: contain; }
.kit-logo-main .kl-sym svg, .kit-logo-main .kl-sym img { width: 120px; height: 120px; }
/* galeria de versões do logo */
.kit-lv-wrap { margin-top: 1.2rem; }
.kit-lv-lbl { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: .5rem; }
.kit-logo-versions { display: flex; flex-wrap: wrap; gap: .6rem; }
.kit-lv { position: relative; width: 74px; height: 74px; padding: 6px; border: 2px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, transform .15s; }
.kit-lv:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.kit-lv.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.kit-lv img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kit-lv-n { position: absolute; top: -7px; left: -7px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: var(--bg); font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.kit-lv-t { position: absolute; bottom: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: .58rem; font-weight: 800; display: grid; place-items: center; }
/* logo completo (imagem com ícone + nome) */
.kl-full { padding: 1.4rem; }
.kit-logo-main .kl-full { min-height: 220px; }
.kl-fullimg { max-width: 100%; max-height: 150px; object-fit: contain; display: block; }
.kit-logo-main .kl-fullimg { max-height: 190px; }
.kit-logo-vars.one { grid-template-columns: 1fr; }
/* controles do logo (instruções + ações + fonte) */
.kit-logo-ctrl { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.kit-instr { width: 100%; margin-bottom: .7rem; }
.kit-logo-btns { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.kit-font-sel { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.kit-font-sel select { width: auto; padding: .42rem .6rem; font-size: .85rem; }

/* ── Gerar Vendas ── */
.vd-status { margin-top: var(--gap); }
.vd-result-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.vd-result-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.vd-resumo { font-size: 1.05rem; color: var(--text); margin: 0 0 1.4rem; }
.vd-sec { margin: 0 0 1.6rem; }
.vd-sec > h3 { font-size: 1.05rem; margin: 0 0 .8rem; }
.vd-canais { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.vd-canal { padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: .25rem; }
.vd-canal strong { color: var(--accent); }
.vd-canal span { font-size: .9rem; color: var(--text-muted); }
.vd-dias { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.vd-dias li { display: flex; gap: .8rem; align-items: baseline; padding-left: .2rem; }
.vd-dia { flex: 0 0 auto; min-width: 74px; font-weight: 800; font-size: .82rem; color: #fff; background: var(--accent); border-radius: 999px; padding: .2rem .6rem; text-align: center; }
.vd-dia-acoes { color: var(--text); font-size: .95rem; }
.vd-onde { margin: 0; padding-left: 1.2rem; color: var(--text); }
.vd-onde li { margin: .25rem 0; }
.vd-modelos { display: grid; gap: .8rem; }
.vd-modelo { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.vd-modelo-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; background: var(--surface-2); }
.vd-modelo-tipo { font-weight: 700; font-size: .85rem; color: var(--text-muted); }
.vd-modelo-txt { padding: .8rem; font-size: .95rem; color: var(--text); white-space: pre-wrap; line-height: 1.5; }
.vd-insp { display: grid; gap: .8rem; }
.vd-insp-item { padding: .9rem 1rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--surface-2); }
.vd-insp-item strong { display: block; margin-bottom: .25rem; }
.vd-insp-item p { margin: .15rem 0; font-size: .92rem; color: var(--text-muted); }
.vd-insp-tec { color: var(--text) !important; }
.vd-insp-busca { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; font-size: .85rem; }
.vd-insp-busca a { color: var(--accent); font-weight: 600; text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: .15rem .6rem; }
.vd-insp-busca a:hover { border-color: var(--accent); }
.vd-metricas { margin: 0; padding-left: 1.2rem; color: var(--text); }
.vd-metricas li { margin: .25rem 0; }
@media print {
  .site-header, .site-footer, .vd-hero-noprint, .adminbar, .vd-result-acts { display: none !important; }
  .vd-result { border: none !important; box-shadow: none !important; }
}

/* ── Gerar Orçamento ── */
.orc-config summary { cursor: pointer; font-size: 1.05rem; }
.orc-config-body { margin-top: 1rem; }
.orc-logo-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.orc-logo-box { width: 124px; height: 80px; border: 1px dashed var(--border-strong); border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; flex: none; }
.orc-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.orc-logo-box span { font-size: .8rem; color: var(--text-muted); }
.orc-docwrap { margin-top: 1.5rem; }
.orc-doc { background: #fff; color: #15131f; border: 1px solid var(--border); border-radius: 14px; padding: clamp(1.4rem, 4vw, 2.6rem); max-width: 820px; margin: 0 auto; box-shadow: var(--shadow); }
.orc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid #eee; padding-bottom: 1rem; margin-bottom: 1.2rem; }
.orc-brand { display: flex; gap: .9rem; align-items: center; }
.orc-logo { max-width: 130px; max-height: 70px; object-fit: contain; }
.orc-brand strong { display: block; font-size: 1.1rem; color: #15131f; }
.orc-contato { display: block; font-size: .82rem; color: #666; margin-top: .15rem; }
.orc-meta { text-align: right; font-size: .85rem; color: #666; display: flex; flex-direction: column; gap: .25rem; align-items: flex-end; }
.orc-tag { background: #0E7490; color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.orc-titulo { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 .4rem; color: #15131f; }
.orc-cliente { margin: 0 0 1rem; color: #444; }
.orc-saudacao { color: #333; line-height: 1.6; margin: 0 0 1.4rem; }
.orc-itens { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.orc-itens th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #888; border-bottom: 1px solid #eee; padding: .5rem .2rem; }
.orc-itens th.orc-val, .orc-itens td.orc-val { text-align: right; white-space: nowrap; }
.orc-itens td { padding: .8rem .2rem; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.orc-itens td strong { font-size: 1rem; color: #15131f; }
.orc-desc { display: block; font-size: .86rem; color: #666; margin-top: .2rem; line-height: 1.45; }
.orc-cur { color: #888; margin-right: 2px; font-size: .9rem; }
.orc-vinput { width: 104px; text-align: right; padding: .3rem .4rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-weight: 700; color: #15131f; background: #fff; }
.orc-mes { font-size: .78rem; color: #888; margin-left: 2px; }
.orc-totais { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; border-top: 2px solid #eee; padding-top: .9rem; margin-bottom: 1.4rem; }
.orc-total { display: flex; gap: 1.2rem; align-items: baseline; }
.orc-total span { color: #666; font-size: .9rem; }
.orc-total strong { font-size: 1.3rem; color: #15131f; }
.orc-total-m strong { font-size: 1.05rem; color: #0E7490; }
.orc-cond { font-size: .9rem; color: #444; line-height: 1.6; }
.orc-cond p { margin: .25rem 0; }
.orc-obs { margin-top: .8rem; }
.orc-obs ul { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .86rem; color: #555; }
.orc-foot { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #eee; font-size: .78rem; color: #999; text-align: center; }
@media print {
  .site-header, .site-footer, .orc-hero-noprint, .adminbar { display: none !important; }
  .orc-doc { border: none !important; box-shadow: none !important; max-width: 100%; padding: 0; }
  .orc-vinput { border: none !important; padding: 0 !important; width: auto; background: transparent; font-weight: 700; }
}
/* URL privada do kit */
.kit-urlrow { margin-top: 1rem; }
.kit-url-lbl { display: block; font-size: .82rem; font-weight: 700; color: var(--text-muted); margin-bottom: .35rem; }
.kit-url-box { display: flex; gap: .5rem; flex-wrap: wrap; }
.kit-url-in { flex: 1 1 240px; min-width: 0; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: .85rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.kl-name { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.05; word-break: break-word; text-align: center; }
.kit-logo-main .kl-name { font-size: 2.5rem; }
.kit-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 560px) { .kit-swatches { grid-template-columns: 1fr 1fr; } }
.kit-sw { display: flex; align-items: center; gap: .6rem; padding: .5rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; }
.kit-sw:hover { border-color: var(--accent); }
.kit-sw-cor { width: 42px; height: 42px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.kit-sw-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.kit-sw-info b { font-size: .85rem; }
.kit-sw-info span { font-size: .76rem; color: var(--text-muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.kit-type { display: flex; gap: 1.5rem 2rem; flex-wrap: wrap; }
.kit-type-item { display: flex; align-items: center; gap: .8rem; }
.kit-type-aa { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.kit-type-item div { display: flex; flex-direction: column; line-height: 1.25; }
.kit-type-item .adm-muted { font-size: .82rem; }
.kit-type-demo { margin: 1.1rem 0 0; font-size: 1.05rem; color: var(--text); }
.kit-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .6rem; }
@media (max-width: 560px) { .kit-dodont { grid-template-columns: 1fr; } }
.kit-do, .kit-dont { padding: .8rem 1rem; border-radius: 12px; }
.kit-do { background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.25); }
.kit-dont { background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.22); }
.kit-do ul, .kit-dont ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.kit-do > b { color: #16a34a; } .kit-dont > b { color: #ef4444; }

/* ── Dica do dia (home) - sem box, mesma margem/padding da seção "Sobre" ── */
.dica-card { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2.5rem; flex-wrap: wrap; }
.dica-body { min-width: 0; flex: 1 1 460px; }
.dica-kicker { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
.dica-card h3 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.dica-card p { margin: 0; color: var(--text-muted); max-width: 62ch; font-size: 1.05rem; }
.dica-cta { flex: none; }
@media (max-width: 560px) { .dica-cta { width: 100%; justify-content: center; } }
@media print {
  .site-header, .site-footer, .kit-hero-noprint, .adminbar, .kit-acts, .kit-sec-acts, #kit-status, .kit-wrap > .panel:first-child { display: none !important; }
  .kit-card { border: none !important; box-shadow: none !important; break-inside: avoid; margin-top: 1rem; }
}

/* ── Transforme sua ideia em produto ── */
.id-wrap { max-width: 920px; }
.id-welcome { text-align: center; padding: 1rem 0 .5rem; }
.id-h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); margin: 0 0 .5rem; line-height: 1.1; }
.id-h1 span { color: var(--accent); }
.id-sub { color: var(--text-muted); max-width: 620px; margin: 0 auto 1.4rem; }
.id-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; text-align: left; }
.id-box .textarea { border: none; background: transparent; resize: vertical; padding: .2rem; }
.id-box .textarea:focus { outline: none; box-shadow: none; }
.id-box-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.id-saldo { font-size: .82rem; }
.id-exemplos { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; margin-top: 1.1rem; }
.id-ex { font-size: .8rem; text-align: left; max-width: 270px; padding: .5rem .8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-muted); cursor: pointer; }
.id-ex:hover { border-color: var(--accent); color: var(--text); }
.id-erro { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); margin-top: 1rem; }
.id-status { margin-top: 1.5rem; text-align: center; color: var(--text-muted); }
.id-result-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.id-result-head h2 { font-size: 1.4rem; }
.id-result-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.js-tts.is-playing { color: var(--accent); border-color: var(--accent); }
.js-tts.is-loading { opacity: .7; }
.id-resumo { font-size: 1.05rem; color: var(--text); margin: 0 0 1.4rem; }
.id-telas { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; margin: 0 0 1.8rem; }
.id-tela { margin: 0; text-align: center; }
.id-tela-phone { width: 268px; height: 520px; border-radius: 28px; border: 9px solid #1f2430; background: #fff; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.22); }
.id-tela-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.id-tela-empty { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--surface-2); }
.id-tela-empty span { font-weight: 700; color: var(--text-muted); padding: 1rem; font-size: .95rem; }
/* compartilhar ideia (estilo Drive) */
.id-share { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.id-result-share { display: flex; margin: 0 0 1.1rem; }
.id-share-badge { font-size: .76rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); }
.id-share-badge.id-share-on { background: rgba(22,163,74,.14); color: #16a34a; }
.id-share-aviso { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); border-radius: 12px; padding: .8rem .95rem; max-width: 460px; }
.id-share-aviso p { margin: 0 0 .7rem; font-size: .85rem; line-height: 1.5; }
.id-share-aviso-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.id-tela figcaption { margin-top: .65rem; font-size: .85rem; max-width: 268px; }
.id-tela figcaption strong { display: block; }
.id-tela figcaption span { color: var(--text-muted); font-size: .78rem; }
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.4rem; margin-bottom: .4rem; }
.id-sec { margin: 1.1rem 0; }
.id-sec h3 { font-size: 1rem; margin: 0 0 .35rem; }
.id-sec p { margin: 0; color: var(--text-muted); }
.id-list { margin: .2rem 0; padding-left: 1.2rem; color: var(--text-muted); }
.id-list li { margin: .25rem 0; }
.id-road { margin: .2rem 0; padding-left: 1.3rem; }
.id-road li { margin: .4rem 0; color: var(--text-muted); }
.id-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.id-chip { font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: rgba(8,145,178,.12); color: #0891B2; }
.id-roo3 { margin-top: 1.8rem; padding: 1.3rem; border-radius: 14px; background: rgba(8,145,178,.08); border: 1px solid rgba(8,145,178,.3); }
.id-roo3 h3 { margin: 0 0 .4rem; }
.id-roo3 p { margin: 0 0 1rem; color: var(--text-muted); }
.id-refinar { display: flex; gap: .5rem; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.id-refinar .input { flex: 1; min-width: 220px; }
@media (max-width: 620px) { .id-grid { grid-template-columns: 1fr; } .id-tela-phone { width: 232px; height: 450px; } }
@media print {
  .site-header, .site-footer, .id-hero-noprint, .adminbar, #id-print, .id-refinar { display: none !important; }
  body { background: #fff; }
  .id-tela-phone { box-shadow: none; }
  @page { size: A4; margin: 14mm; }
}
.tr-print-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #16a34a; padding-bottom: .6rem; margin-bottom: 1.2rem; }
.tr-print-title h2 { margin: 0; }
.tr-print-title span { font-size: .82rem; color: var(--text-muted); font-weight: 700; }
.tr-print-disc { font-size: .78rem; color: var(--text-muted); margin-top: 1.4rem; }
@media print {
  .site-header, .site-footer, .tr-hero-noprint, .adminbar, #tr-print, .tr-ex-video { display: none !important; }
  body { background: #fff; }
  .container { max-width: none; margin: 0; padding: 0; }
  .tr-dia { break-inside: avoid; }
  @page { size: A4; margin: 14mm; }
}
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; padding: .28rem .6rem; border-radius: 999px; }
.badge-live { color: #0a8a4a; background: rgba(16, 185, 99, .14); }
[data-theme="dark"] .badge-live { color: #4ade9a; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.badge-soon { color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,99,.5); } 70% { box-shadow: 0 0 0 6px rgba(16,185,99,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,99,0); } }

/* ---- About ---- */
.about { background: var(--bg-2); border-block: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about-grid h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.about-grid p { color: var(--text-muted); margin-top: 1rem; }
.about-points { display: grid; gap: .9rem; margin-top: 1.4rem; }
.about-point { display: flex; gap: .7rem; align-items: flex-start; }
.about-point .ico { color: var(--brand); margin-top: .15rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow); display: grid; gap: 1rem;
}
.feature-card .row { display: flex; align-items: center; gap: .8rem; }
.feature-card .dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }

/* ---- Tool page shell ---- */
.tool-hero { position: relative; padding: clamp(2rem, 5vw, 3.5rem) 0 0; overflow: hidden; }
.tool-hero .container { position: relative; z-index: 1; }
/* Blob de fundo das páginas internas: suave e contido (não invade o conteúdo). */
.tool-hero .hero-mesh { opacity: .16; filter: blur(72px); }
[data-theme="dark"] .tool-hero .hero-mesh { opacity: .24; }
.crumbs { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .9rem; margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--text); }
.tool-head { display: flex; align-items: center; gap: 1rem; }
.tool-head .tool-icon { --c: var(--accent); width: 60px; height: 60px; }
.tool-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.tool-head p { color: var(--text-muted); margin-top: .3rem; }
.tool-layout { display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.tool-layout.split { grid-template-columns: 1.1fr .9fr; align-items: start; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: var(--gap); }
.panel h2, .panel h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.panel .hint { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.panel-preview { position: sticky; top: 88px; text-align: center; display: grid; gap: 1rem; place-items: center; }

/* ---- Forms ---- */
.field { display: grid; gap: .45rem; margin-bottom: 1.05rem; }
.field > label { font-weight: 600; font-size: .92rem; }
.field .sub { color: var(--text-muted); font-weight: 400; font-size: .82rem; }
.input, .select, .textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 80%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.input-group { display: flex; gap: .5rem; }
.input-group .input { flex: 1; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }

/* Swatches / chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-muted); font-size: .88rem; font-weight: 500; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active, .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }

.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--border); cursor: pointer; transition: transform .15s var(--ease); }
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
input[type="color"] { width: 46px; height: 38px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .22s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--ring); }

/* Range */
input[type="range"] { width: 100%; accent-color: var(--accent); height: 6px; }

/* Result / output */
.result {
  display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--border-strong); font-family: ui-monospace, "SF Mono", Menlo, monospace;
  word-break: break-all; font-size: .92rem;
}
.result .val { flex: 1; }
.copy-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: .55rem .7rem; display: inline-flex; align-items: center; gap: .4rem; transition: all .2s; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.done { border-color: #10b963; color: #10b963; }

.qr-stage { background: #fff; border-radius: var(--radius); padding: 1.1rem; display: inline-grid; place-items: center; box-shadow: var(--shadow); }
.qr-stage canvas, .qr-stage svg, .qr-stage img { border-radius: 8px; }

.note { font-size: .85rem; color: var(--text-muted); }
.alert { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; }
.alert-info { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); }

/* Strength meter */
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.meter > i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s var(--ease), background .3s; }

/* ---- Coming soon / 404 ---- */
.center-screen { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.center-screen .big { font-size: clamp(3rem, 12vw, 7rem); font-family: var(--font-display); font-weight: 800; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 4rem; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-tag { color: var(--text-muted); margin-top: 1rem; max-width: 320px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); transition: all .2s var(--ease); }
.footer-social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-col h4 { font-size: .95rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--text-muted); font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .88rem; flex-wrap: wrap; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; }
.to-top:hover { color: var(--text); }
.to-top .ico { width: 16px; height: 16px; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .tool-layout.split { grid-template-columns: 1fr; }
  .panel-preview { position: static; }
}
@media (max-width: 720px) {
  .nav-burger { display: grid; }
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem; margin: 0;
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .85rem 1rem; }
  body.nav-open .nav-burger .ico-open { display: none; }
  body.nav-open .nav-burger .ico-close { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row, .row-2, .row-3 { grid-template-columns: 1fr; }
}

/* ---- Link na bio ---- */
.bio-public { --bio-fg: #fff; background: var(--bio-bg, var(--brand-grad)); min-height: 70vh; display: grid; place-items: start center; padding: clamp(2rem, 6vw, 4rem) 1rem; }
.bio-card { width: 100%; max-width: 480px; text-align: center; color: var(--bio-fg); }
.bio-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; background: color-mix(in srgb, var(--bio-fg) 20%, transparent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--bio-fg); border: 3px solid color-mix(in srgb, var(--bio-fg) 55%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-title { color: var(--bio-fg); font-size: 1.5rem; }
.bio-desc { color: color-mix(in srgb, var(--bio-fg) 88%, transparent); margin: .5rem auto 0; max-width: 380px; }
.bio-links { display: grid; gap: .75rem; margin: 1.6rem 0; }
.bio-link { display: block; padding: .95rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--bio-fg) 16%, transparent); color: var(--bio-fg); font-weight: 600; backdrop-filter: blur(6px); border: 1px solid color-mix(in srgb, var(--bio-fg) 28%, transparent); transition: transform .2s var(--ease), background .2s; }
.bio-link:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--bio-fg) 30%, transparent); }
.bio-empty { color: color-mix(in srgb, var(--bio-fg) 85%, transparent); }
.bio-credit { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; color: color-mix(in srgb, var(--bio-fg) 90%, transparent); font-size: .85rem; font-weight: 600; }
.bio-credit .ico { width: 15px; height: 15px; }
.bio-credit:hover { color: var(--bio-fg); }
.bio-preview-frame { width: 100%; display: flex; justify-content: center; }
.bio-preview-frame .bio-public { width: 100%; }

/* Upload de foto (editor) */
.bio-foto { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.bio-foto-thumb { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2) center/cover no-repeat; border: 1px solid var(--border); color: var(--text-muted); }
.bio-foto-thumb.has-img { color: transparent; border-color: var(--accent); }
.bio-foto-thumb .ico { width: 20px; height: 20px; }

/* Recortador circular (modal) */
.crp-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,18,.62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; }
.crp-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; width: 100%; max-width: 360px; box-shadow: var(--shadow-lg); text-align: center; }
.crp-title { font-size: 1.2rem; }
.crp-hint { color: var(--text-muted); font-size: .86rem; margin: .3rem 0 1rem; }
.crp-stage { position: relative; width: 300px; height: 300px; max-width: 100%; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0a0a12; cursor: grab; touch-action: none; user-select: none; }
.crp-stage:active { cursor: grabbing; }
.crp-canvas { display: block; }
.crp-ring { position: absolute; inset: 0; pointer-events: none; }
.crp-ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.9); }
.crp-zoom { width: 100%; margin: 1rem 0 .2rem; accent-color: var(--accent); }
.crp-actions { display: flex; gap: .6rem; margin-top: .8rem; }
.crp-actions .btn { flex: 1; }

/* Aviso (geradores de teste) */
.alert-warn { background: rgba(245, 158, 11, .12); color: #b45309; border: 1px solid rgba(245, 158, 11, .35); }
[data-theme="dark"] .alert-warn { color: #fbbf24; }

/* Cartão de teste */
.cc-card { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #14121f)); color: #fff; border-radius: 16px; padding: 1.5rem; aspect-ratio: 1.586; max-width: 340px; margin: 0 auto; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.cc-brand { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.cc-number { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(1rem, 4.5vw, 1.3rem); letter-spacing: 2px; }
.cc-row { display: flex; gap: 1rem; justify-content: space-between; }
.cc-row > div { min-width: 0; }
.cc-lbl { display: block; opacity: .7; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }
.cc-row #cc-name, .cc-row #cc-exp, .cc-row #cc-cvv { font-size: .9rem; font-weight: 600; }

/* Login com Google — separador */
.oauth-sep { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--text-muted); font-size: .85rem; }
.oauth-sep::before, .oauth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Selo "requer conta" nos cards */
.badge-lock { color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); }

/* ---- Gerador de sites: editor ---- */
.sb-card { border: 1px solid var(--border); border-radius: 14px; margin-bottom: .7rem; background: var(--surface-2); overflow: hidden; }
.sb-card-head { display: flex; align-items: center; justify-content: space-between; padding: .55rem .8rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.sb-card-head strong { font-family: var(--font-display); font-size: .95rem; }
.sb-card-actions { display: flex; gap: .25rem; }
.sb-card-actions .icon-btn { width: 32px; height: 32px; border-radius: 8px; }
.sb-card-actions .icon-btn .ico { width: 16px; height: 16px; }
.sb-card-body { padding: .85rem; }
.sb-card-body .field { margin-bottom: .65rem; }
.sb-card-body .field:last-child { margin-bottom: 0; }
.sb-list-row { display: flex; gap: .4rem; margin-bottom: .4rem; align-items: center; }
.sb-list-card { border: 1px solid var(--border); border-radius: 10px; padding: .7rem .75rem; margin-bottom: .6rem; background: var(--surface); }
.sb-list-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.sb-list-card-h strong { font-size: .85rem; color: var(--text-muted); }
.sb-list-card .field { margin-bottom: .5rem; }
.sb-list-card .field:last-child { margin-bottom: 0; }
.sb-list-card .field label { font-size: .78rem; }
.sb-card-headl { display: flex; align-items: center; gap: .15rem; min-width: 0; }
.sb-drag { cursor: grab; color: var(--text-muted); display: inline-grid; place-items: center; padding: .1rem; border-radius: 6px; }
.sb-drag:hover { color: var(--text); background: var(--surface-2); }
.sb-drag:active { cursor: grabbing; }
.sb-drag .ico { width: 18px; height: 18px; }
.sb-card.dragging { opacity: .45; }
.sb-card.drag-over { outline: 2px dashed var(--accent); outline-offset: 2px; }
.site-preview-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
#site-preview { max-height: 72vh; overflow: auto; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---- Gerador de sites: site público (blocos) ---- */
.site-public { --site-cor: #16151D; background: #fff; color: #15131f; font-family: var(--font-body); }
.site-public .sb { padding: clamp(2rem, 5vw, 3.5rem) 1.2rem; }
.site-public .sb-wrap { max-width: 760px; margin-inline: auto; }
.site-public h1, .site-public h2 { color: #15131f; }
.sb-hero { background: linear-gradient(160deg, var(--site-cor), color-mix(in srgb, var(--site-cor) 55%, #5b8cff)); color: #fff; text-align: center; padding: clamp(3rem, 9vw, 5.5rem) 1.2rem; }
.sb-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.sb-hero .sb-sub { color: rgba(255,255,255,.92); margin-top: .7rem; font-size: 1.12rem; }
.sb-btn { display: inline-block; margin-top: 1.3rem; background: var(--site-cor); color: #fff; padding: .85rem 1.6rem; border-radius: 11px; font-weight: 600; transition: transform .15s var(--ease), filter .15s; }
.sb-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sb-hero .sb-btn { background: #fff; color: var(--site-cor); }
.sb-texto { text-align: center; }
.sb-texto h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .6rem; }
.sb-texto p { color: #4a4860; font-size: 1.05rem; }
.sb-imagem img { width: 100%; border-radius: 16px; }
.sb-legenda { display: block; text-align: center; color: #8a8898; font-size: .9rem; margin-top: .5rem; }
.sb-botoes .sb-wrap { display: flex; flex-direction: column; gap: .7rem; max-width: 440px; }
.sb-botoes .sb-btn { display: block; text-align: center; margin-top: 0; }
.sb-whatsapp { text-align: center; }
.sb-btn-wa { background: #25D366; color: #fff; }
.sb-contato { background: #f7f7fb; text-align: center; }
.sb-contato ul { list-style: none; padding: 0; margin-top: .8rem; display: grid; gap: .4rem; }
.sb-contato a { color: var(--site-cor); font-weight: 600; }
.sb-mapa iframe { width: 100%; height: 340px; border: 0; border-radius: 16px; display: block; }
.sb-galeria .sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.sb-galeria img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.site-public .sb-colunas .sb-wrap { max-width: 980px; }
.sb-colunas .sb-cols { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 1.6rem; align-items: start; }
.sb-col { display: flex; flex-direction: column; gap: .55rem; text-align: left; }
.sb-col img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; }
.sb-col h3 { margin: 0; font-size: 1.2rem; color: #15131f; }
.sb-col p { margin: 0; color: #4a4860; }
.sb-col .sb-btn { margin-top: .4rem; align-self: flex-start; }
@media (max-width: 640px) { .sb-colunas .sb-cols { grid-template-columns: 1fr; } }
.sb-video .sb-embed { position: relative; padding-top: 56.25%; }
.sb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; }
.sb-social-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.sb-social-row a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--site-cor); color: #fff; transition: transform .15s var(--ease); }
.sb-social-row a:hover { transform: translateY(-3px); }
.sb-social-row .ico { width: 22px; height: 22px; }
.sb-depoimentos { background: #f7f7fb; }
.sb-quote { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: 0 6px 20px -14px rgba(0,0,0,.3); }
.sb-quote p { font-size: 1.05rem; color: #333; }
.sb-quote cite { display: block; margin-top: .6rem; color: #8a8898; font-style: normal; font-weight: 600; }
.sb-faq h2 { text-align: center; margin-bottom: 1.2rem; }
.sb-faq-item { border-bottom: 1px solid #ececf0; padding: .9rem 0; }
.sb-faq-item summary { font-weight: 600; cursor: pointer; }
.sb-faq-item p { color: #4a4860; margin-top: .5rem; }
.sb-horarios { background: #f7f7fb; }
.sb-horarios h2 { text-align: center; margin-bottom: 1rem; }
.sb-horarios ul { list-style: none; padding: 0; max-width: 440px; margin-inline: auto; }
.sb-horarios li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid #ececf0; }
.site-credit { text-align: center; padding: 1.4rem; background: #0a0a12; }
.site-credit a { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 600; }
.site-credit a:hover { color: #fff; }
.site-credit .ico { width: 15px; height: 15px; }

/* ---- Painel (lista de links) ---- */
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .3rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.link-row:last-child { border-bottom: 0; }
.link-row:hover { background: var(--surface-2); }
.link-row-main { min-width: 0; }
.link-code { display: block; font-family: var(--font-display); font-weight: 700; color: var(--text); }
.link-dest { display: block; color: var(--text-muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.link-row-side { display: flex; align-items: center; gap: 1.3rem; flex: none; }
.link-clicks { color: var(--text-muted); font-size: .9rem; }
.link-clicks strong { color: var(--text); font-size: 1.15rem; font-family: var(--font-display); }
.link-go { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.link-go .ico { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .link-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .link-row-side { width: 100%; justify-content: space-between; }
  .link-dest { max-width: 78vw; }
}

/* ---- Estatísticas (painel-link) ---- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.stat-card .lab { color: var(--text-muted); font-size: .85rem; margin-top: .35rem; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.chart-box h3 { font-size: 1rem; margin-bottom: .8rem; }
.recent-list { width: 100%; }
.recent-list .r { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.recent-list .r:last-child { border-bottom: 0; }
.recent-list .r .muted { color: var(--text-muted); }

/* ---- Admin ---- */
.admin-nav { display: flex; gap: .2rem; flex-wrap: wrap; margin-top: 1.4rem; border-bottom: 1px solid var(--border); }
.admin-nav a { padding: .6rem .9rem; color: var(--text-muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a:hover { color: var(--text); }
.admin-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.adm-table { width: 100%; }
.adm-row { display: flex; align-items: center; gap: 1rem; padding: .85rem .2rem; border-bottom: 1px solid var(--border); }
.adm-row:last-child { border-bottom: 0; }
.adm-row .grow { flex: 1; min-width: 0; }
.adm-row .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-muted { color: var(--text-muted); font-size: .85rem; }
.adm-actions { display: flex; gap: .4rem; flex: none; align-items: center; }
.adm-search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.adm-search .input { flex: 1; }
.adm-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.adm-tabs .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-xs { padding: .42rem .7rem; font-size: .82rem; border-radius: 9px; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { transform: translateY(-1px); filter: brightness(1.05); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }
.tag-on { background: rgba(16,185,99,.15); color: #0a8a4a; }
[data-theme="dark"] .tag-on { color: #4ade9a; }
.tag-off { background: rgba(239,68,68,.14); color: #ef4444; }
.tag-admin { background: rgba(255,195,0,.2); color: #8a6a00; }
[data-theme="dark"] .tag-admin { color: #ffcd29; }
@media (max-width: 640px) {
  .adm-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .adm-actions { width: 100%; flex-wrap: wrap; }
}

/* ───────────────── Criador de Sites por IA ───────────────── */
.ai-panel { margin-bottom: var(--gap, 1.2rem); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); }
.ai-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ai-panel-head h2 { margin: 0; font-size: 1.15rem; }
.ai-panel-head .tag { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--text); }
.ai-panel-tools { display: flex; align-items: center; gap: .6rem; }
.ai-chat { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .4rem 0; scroll-behavior: smooth; }
.ai-chat:empty { display: none; }
.aic-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.aic-bot { align-self: flex-start; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.aic-user { align-self: flex-end; background: var(--accent); color: var(--accent-ink, #fff); border-bottom-right-radius: 4px; }
.ai-chips { margin: .3rem 0 .2rem; }
.ai-chips:empty { display: none; }
.ai-inputrow { display: flex; gap: .5rem; align-items: flex-end; margin-top: .5rem; }
.ai-input { flex: 1 1 auto; resize: none; min-height: 42px; max-height: 120px; }
.ai-send { padding: .6rem .8rem; }
.ai-mic.rec { color: #ef4444; border-color: #ef4444; animation: ai-pulse 1.2s ease-in-out infinite; }
@keyframes ai-pulse { 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, .15); } }
.ai-actions { margin: .5rem 0 0; }
.ai-loading { display: flex; align-items: center; gap: .55rem; margin-top: .5rem; color: var(--text-muted); font-size: .9rem; }
.ai-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong, var(--border)); border-top-color: var(--accent); animation: ai-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-undo { margin-top: .5rem; }
.ai-locked .hint { max-width: 64ch; }
.ai-exemplo-frame { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: .4rem; pointer-events: none; transform-origin: top left; }
.ai-exemplo-frame .sb-wrap { padding: 1.4rem 1rem; }
@media (prefers-reduced-motion: reduce) {
  .ai-spinner, .ai-mic.rec { animation: none; }
}

/* ---- imagens no construtor: barra de ações + seletor (foto grátis / IA) ---- */
.sb-media { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.sb-media .btn-xs { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }

.imgpick-ov {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 8, 12, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem; overflow-y: auto;
}
.imgpick {
  width: 100%; max-width: 680px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem 1.3rem;
  animation: imgpick-in .18s ease;
}
@keyframes imgpick-in { from { opacity: 0; transform: translateY(8px); } }
.imgpick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.imgpick-head strong { font-size: 1.05rem; }
.imgpick-tabs { display: flex; gap: .4rem; margin-bottom: .9rem; }
.imgpick-tab {
  flex: 1; padding: .5rem .8rem; border-radius: 10px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-weight: 600; font-size: .9rem;
}
.imgpick-tab.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.imgpick-search { display: flex; gap: .5rem; margin-bottom: .8rem; }
.imgpick-search .input { flex: 1; }
.imgpick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.imgpick-cell {
  padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  cursor: pointer; background: var(--bg); aspect-ratio: 4 / 3;
}
.imgpick-cell:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.imgpick-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgpick-airow { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.imgpick-aiout { margin-top: .8rem; }
.imgpick-preview { width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; }
.imgpick-note { margin-top: .7rem; font-size: .85rem; color: var(--text); opacity: .75; min-height: 1.1em; }
.imgpick-up { color: var(--accent); font-weight: 600; }

/* ===== Estúdio do gerador de sites (tela cheia, estilo Elementor) ===== */
/* overflow visível (e não hidden): senão o estúdio vira o scrollport do sticky da barra e a desloca */
.sb-studio { --sb-top: 64px; --sb-bar-h: 54px; display: flex; flex-direction: column; height: calc(100vh - var(--sb-top)); overflow: visible; }

.sb-bar { flex: none; display: flex; align-items: center; gap: .55rem; height: var(--sb-bar-h); padding: 0 .8rem; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: var(--sb-top, 0px); z-index: 49; /* sempre visível ao rolar, em qualquer tela */ }
.sb-bar-home { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9px; color: var(--text); flex: none; }
.sb-bar-home .ico { transform: rotate(180deg); }
.sb-bar-home:hover { background: var(--surface-2); }
.sb-settings { display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 0; }
.sb-base { color: var(--text); opacity: .5; font-size: .82rem; white-space: nowrap; }
.sb-in { height: 34px; padding: .3rem .6rem; }
.sb-in-slug { width: 150px; flex: none; }
.sb-in-titulo { flex: 1; min-width: 80px; max-width: 280px; }
.sb-cor { flex: none; display: inline-flex; }
.sb-cor input[type=color] { width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: none; cursor: pointer; }
.sb-bar-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.sb-devices { display: flex; gap: .15rem; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.sb-dev { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: .3rem .45rem; border-radius: 7px; filter: grayscale(1); opacity: .5; }
.sb-dev.is-on { background: var(--surface); filter: none; opacity: 1; box-shadow: var(--shadow-sm); }

.sb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(290px, 24%) 1fr; }
.sb-side { overflow-y: auto; border-right: 1px solid var(--border); background: var(--surface); padding: 1rem .9rem 3rem; display: flex; flex-direction: column; gap: 1.1rem; }
.sb-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; }
.sb-sec-head h3 { margin: 0; font-size: 1rem; }
.sb-palette { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sb-palette .chip { display: flex; align-items: center; gap: .3rem; padding: .6rem; border: 1px solid var(--border); border-radius: 11px; background: var(--bg); font-weight: 600; font-size: .85rem; cursor: grab; text-align: left; transition: border-color .12s, transform .08s, box-shadow .12s; }
.sb-palette .chip:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.sb-palette .chip:active { cursor: grabbing; }
/* erro do publicar: alerta CENTRALIZADO por cima do conteúdo, opaco e com botão fechar */
.sb-err { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1001;
  display: flex; align-items: center; gap: .7rem; max-width: min(92vw, 540px);
  background: #d92f2f; color: #fff; font-weight: 600; line-height: 1.45;
  padding: 1.05rem 1.15rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55); animation: sb-err-in .18s ease; }
@keyframes sb-err-in { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.sb-err-x { flex: none; border: 0; background: rgba(255, 255, 255, .18); color: #fff;
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 1rem; line-height: 1; }
.sb-err-x:hover { background: rgba(255, 255, 255, .32); }
.sb-ai { margin: 0 !important; }
.sb-ai-locked { display: flex; align-items: center; gap: .4rem; padding: .7rem .8rem; border: 1px dashed var(--border); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.sb-ai-locked:hover { border-color: var(--accent); }

.sb-canvas { overflow-y: auto; background: var(--bg); padding: clamp(1rem, 2.5vw, 2rem); display: flex; justify-content: center; align-items: flex-start; }
.sb-stage { width: 100%; max-width: 1180px; transition: max-width .25s ease; }
.sb-stage[data-dev="mobile"] { max-width: 420px; }
.sb-frame { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.sb-frame-addr { margin-left: .5rem; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-canvas.is-drop .sb-frame { outline: 3px dashed var(--accent); outline-offset: 4px; }

/* modal de "site publicado" */
.sb-pub-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 8, 12, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 1rem; }
.sb-pub { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 2rem 1.6rem 1.5rem; max-width: 460px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg); animation: imgpick-in .18s ease; }
.sb-pub-x { position: absolute; top: .6rem; right: .6rem; width: 32px; height: 32px; border-radius: 9px; }
.sb-pub-emoji { font-size: 2.6rem; line-height: 1; }
.sb-pub h3 { margin: .5rem 0 .55rem; font-size: 1.3rem; }
.sb-pub-url { display: block; color: var(--accent); font-weight: 700; word-break: break-all; margin-bottom: 1.05rem; }
.sb-pub-row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.sb-pub .note { margin-top: .9rem; }
.sb-mtabs { display: none; }

/* ===== Módulo Leads (prospecção ativa B2B) ===== */
.leads-wrap { padding-bottom: 3rem; }
.leads-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0 1rem; }
.leads-stats { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.lstat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1.1rem; min-width: 108px; }
.lstat b { font-family: var(--font-display); font-size: 1.4rem; display: block; }
.lstat span { color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }
.lead-card { margin-bottom: .9rem; }
.lead-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.lead-nome { font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: .15rem; }
.lead-id .note { line-height: 1.6; }
.lead-score { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; text-align: right; white-space: nowrap; }
.lead-score small { display: block; font-size: .62rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.lead-chips { margin: .7rem 0 .1rem; }
.lead-badge { display: inline-flex; align-items: center; line-height: 1; font-size: .74rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; color: #fff; }
.lead-det { margin-top: .6rem; border-top: 1px solid var(--border); padding-top: .6rem; }
.lead-det summary { cursor: pointer; color: var(--text-muted); font-size: .86rem; }
.lead-just { margin: .5rem 0 0; padding: 0; list-style: none; }
.lead-just li { padding: .4rem 0; border-bottom: 1px dashed var(--border); font-size: .88rem; display: flex; gap: .7rem; }
.lead-just .pts { font-family: var(--font-display); font-weight: 700; min-width: 44px; }
.lead-just .pos { color: #16a34a; }
.lead-just .neg { color: #ef4444; }
.lead-acoes { display: flex; gap: .55rem; align-items: center; margin-top: .9rem; flex-wrap: wrap; }
.lead-acoes .lead-status { max-width: 200px; padding: .45rem .6rem; }
.lead-acoes .lead-wa { margin-left: auto; }
/* alternador cards/tabela + visão em tabela */
.leads-views { display: inline-flex; gap: .2rem; padding: .25rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.leads-views button { border: 0; background: none; color: var(--text-muted); font-weight: 600; font-size: .85rem; padding: .35rem .7rem; border-radius: 8px; cursor: pointer; }
.leads-views button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.leads-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.leads-table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 820px; }
.leads-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: .7rem .8rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.leads-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.leads-table tr:last-child td { border-bottom: 0; }
.leads-table tr:hover td { background: var(--surface-2); }
.leads-table .lt-nome strong { display: block; }
.leads-table .lt-nome .note { font-size: .78rem; }
.leads-table .lt-score { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.leads-table select { padding: .3rem .45rem; font-size: .82rem; max-width: 150px; }
.leads-table .lt-atv { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* pedido de novos leads */
.leads-pedido { display: none; gap: .5rem; align-items: center; flex-wrap: wrap; }
.leads-pedido.aberto { display: flex; }
.leads-pedido input { max-width: 110px; }
.lp-bar { height: 8px; border-radius: 999px; background: rgba(127, 127, 127, .18); overflow: hidden; margin-top: .6rem; }
.lp-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .6s ease; }
/* estado "na fila": barra indeterminada pulsando (vira progresso real quando o motor começa) */
.lp-bar.indet span { width: 30%; transition: none; animation: lp-slide 1.4s ease-in-out infinite; }
@keyframes lp-slide { 0% { margin-left: 0; } 50% { margin-left: 70%; } 100% { margin-left: 0; } }

.lc-row { display: flex; gap: .5rem; margin-bottom: .5rem; align-items: center; flex-wrap: wrap; }
.lc-row .input { flex: 1; min-width: 120px; }
.lc-extra { display: flex; gap: .5rem; flex: 1; }
.lc-crit { border: 1px solid var(--border); border-radius: 12px; padding: .8rem; margin-bottom: .7rem; background: var(--bg); }
.lc-porte input { accent-color: var(--accent); margin-right: .3rem; }

/* rascunho automático: faixa de restauração no topo do painel */
.sb-draft { background: rgba(255, 193, 7, .12); border: 1px solid rgba(255, 193, 7, .45); border-radius: 12px; padding: .7rem .8rem; font-size: .88rem; }
.sb-draft p { margin: 0 0 .55rem; }
.sb-draft-row { display: flex; gap: .5rem; }
#sb-save { white-space: nowrap; }

/* faixa com a cor do site em edição (tema da barra) */
.sb-bar { box-shadow: inset 0 -2px 0 var(--sb-accent, transparent); }
.sb-full-btn { width: 34px; height: 34px; border-radius: 9px; font-size: 1.05rem; }
.sb-full-btn.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
body.sb-full .site-header { display: none; }

/* soltar no ponto exato: linha de inserção no preview */
.sb-drop-line { height: 4px; border-radius: 2px; margin: 2px 10px; background: var(--site-cor, var(--accent)); pointer-events: none; animation: sb-drop-pulse 1s ease infinite alternate; }
@keyframes sb-drop-pulse { from { opacity: .55; } to { opacity: 1; } }

/* clicar-para-editar: hover e seleção das seções no canvas */
#site-preview .sb[data-idx] { cursor: pointer; }
#site-preview .sb[data-idx]:hover { outline: 2px dashed rgba(var(--accent-rgb), .55); outline-offset: -2px; }
#site-preview .sb.sb-sel { outline: 2px solid var(--accent); outline-offset: -2px; position: relative; }
/* edição inline (Elementor): textos editáveis direto no preview */
#site-preview [data-field].sb-edit { cursor: text; border-radius: 3px; transition: outline-color .12s; }
#site-preview [data-field].sb-edit:hover { outline: 1px dashed rgba(var(--accent-rgb), .75); outline-offset: 2px; }
#site-preview [data-field].sb-edit:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
#site-preview .sb-inline-bar { position: absolute; top: 8px; right: 8px; display: flex; gap: 3px; background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.16); z-index: 6; }
.sb-ib-btn { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 7px; color: #444; cursor: pointer; display: grid; place-items: center; }
.sb-ib-btn:hover:not(:disabled) { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.sb-ib-btn:disabled { opacity: .32; cursor: default; }
.sb-ib-btn .ico { width: 16px; height: 16px; }
.sb-inline-hint { margin-left: auto; color: var(--accent); font-weight: 600; }
@media (max-width: 720px) { .sb-inline-hint { display: none; } }
/* Domínio próprio (painel) */
.sd-wrap { max-width: 760px; }
.sd-item { margin-bottom: var(--gap); }
.sd-item-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.sd-item-head strong { font-size: 1.05rem; word-break: break-all; }
.sd-badge { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.sd-dns { width: 100%; border-collapse: collapse; margin: .4rem 0 .2rem; font-size: .82rem; }
.sd-dns td { padding: .4rem .5rem; border: 1px solid var(--border); }
.sd-dns td:first-child { font-weight: 700; width: 64px; color: var(--text-muted); }
.sd-dns code { word-break: break-all; }
.sd-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.sd-msg { font-size: .82rem; margin: .6rem 0 0; }
.sd-add-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.sd-add-row .input { flex: 1 1 220px; }
#site-blocks .sb-card.is-sel { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }

@media (max-width: 900px) {
  .sb-studio { height: auto; min-height: calc(100vh - var(--sb-top)); overflow: visible; }
  .sb-bar { flex-wrap: wrap; height: auto; padding: .55rem .7rem; }
  .sb-settings { order: 3; flex-basis: 100%; }
  .sb-in-titulo { max-width: none; }
  .sb-base, .sb-devices { display: none; }
  .sb-mtabs { display: flex; gap: .4rem; padding: .5rem .7rem; border-bottom: 1px solid var(--border); background: var(--surface); }
  .sb-mtab { flex: 1; padding: .5rem; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); font-weight: 600; cursor: pointer; }
  .sb-mtab.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .sb-body { grid-template-columns: 1fr; }
  .sb-side { border-right: 0; }
  .sb-canvas { padding: .7rem; }
  .sb-studio:not(.show-view) .sb-canvas { display: none; }
  .sb-studio.show-view .sb-side { display: none; }
  .sb-palette { grid-template-columns: 1fr 1fr 1fr; }
}

/* ═══════════════ Gerar Conteúdo (gc-) ═══════════════ */
.gc-wrap { padding: 28px 0 64px; }
.gc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gc-head h1 { margin: 0 0 4px; font-size: 1.7rem; }
.gc-sub { color: var(--muted); margin: 0; max-width: 560px; }
.gc-head-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gc-saldo { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.gc-volta { color: var(--muted); font-size: .85rem; text-decoration: none; }
.gc-volta:hover { color: var(--text); }
.gc-h2 { font-size: 1.1rem; margin: 28px 0 12px; }
.gc-mute { color: var(--muted); font-size: .9rem; }
.gc-dica { background: var(--card); border: 1px dashed var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.gc-vazio { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 36px 24px; text-align: center; }
.gc-vazio p { color: var(--muted); margin: 0 0 16px; }

.gc-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gc-short { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--text); font-weight: 700; transition: border-color .15s; }
.gc-short:hover { border-color: #FF7A59; }
.gc-short small { color: var(--muted); font-weight: 400; }

.gc-workflows { display: flex; gap: 12px; flex-wrap: wrap; }
.gc-wf { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.gc-wf small { color: var(--muted); }

.gc-projetos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gc-proj { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.gc-proj:hover { border-color: #FF7A59; transform: translateY(-1px); }
.gc-proj-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; flex: 0 0 auto; }
.gc-proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gc-proj-ph { font-size: 1.6rem; }
.gc-proj-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-proj-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-proj-info small { color: var(--muted); }
.gc-badge { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: var(--bc); border: 1px solid var(--bc); white-space: nowrap; }

/* chat do Diretor */
.gc-chat { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.gc-msgs { max-height: 460px; min-height: 220px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.gc-msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; line-height: 1.5; font-size: .95rem; }
.gc-msg-ia { background: var(--bg); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.gc-msg-eu { background: #FF7A59; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.gc-msg-loading { opacity: .6; font-style: italic; animation: gc-pulse 1.2s ease-in-out infinite; }
@keyframes gc-pulse { 50% { opacity: .3; } }
.gc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gc-chip { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: .85rem; cursor: pointer; color: var(--text); transition: border-color .15s; }
.gc-chip:hover { border-color: #FF7A59; }
.gc-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.gc-input textarea { flex: 1; resize: none; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; }

/* checkpoint */
.gc-checkpoint { margin-top: 20px; background: var(--card); border: 2px solid #FF7A59; border-radius: 16px; padding: 20px; }
.gc-checkpoint h2 { margin: 0 0 12px; font-size: 1.15rem; }
.gc-plano { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gc-plano li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.gc-plano li small { color: var(--muted); }
.gc-plano li em { color: var(--muted); font-style: normal; flex-basis: 100%; font-size: .85rem; }
.gc-pl-ic { font-size: 1.05rem; }
.gc-custo { font-size: .95rem; margin-bottom: 14px; }
.gc-custo-falta b:first-of-type { color: #EF4444; }
.gc-custo-falta span { display: block; color: #EF4444; font-size: .85rem; }
.gc-cp-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gc-cp-note { color: var(--muted); font-size: .82rem; flex-basis: 100%; }

/* execução */
.gc-progresso { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.gc-prog-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .92rem; }
.gc-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gc-job { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.gc-job-running { border-color: #A78BFA; }
.gc-job-done { border-color: #34D399; }
.gc-job-failed { border-color: #F87171; }
.gc-job-nome { flex: 1; font-weight: 600; }
.gc-job-nome small { color: var(--muted); font-weight: 400; }
.gc-job-st { color: var(--muted); }
.gc-job-done .gc-job-st { color: #34D399; font-weight: 700; }
.gc-job-erro { flex-basis: 100%; color: #F87171; }

/* assets */
.gc-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gc-asset { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.gc-asset img, .gc-asset video { width: 100%; border-radius: 8px; display: block; }
.gc-asset audio { width: 100%; }
.gc-asset small { color: var(--muted); font-size: .78rem; padding: 0 4px 4px; }
.gc-filtros { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.gc-filtros select { background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; }

/* marca */
.gc-brand-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
#gc-brand-form { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
#gc-brand-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; }
#gc-brand-form input:not([type=color]), #gc-brand-form textarea, #gc-brand-form select { border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 400; }
#gc-brand-form input[type=color] { width: 56px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); padding: 2px; }
#gc-brand-form small { color: var(--muted); font-weight: 400; }
.gc-cores { display: flex; gap: 16px; flex-wrap: wrap; }
.gc-brand-preview { position: sticky; top: 90px; }
.gc-prev-card { aspect-ratio: 4 / 5; max-width: 340px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 28px; transition: background .2s; }
.gc-prev-card strong { font-size: 1.5rem; line-height: 1.2; }
.gc-prev-card span { opacity: .85; font-size: .95rem; }
.gc-prev-card em { font-style: normal; font-weight: 800; padding: 10px 22px; border-radius: 999px; font-size: .9rem; }
.gc-prev-card small { opacity: .6; margin-top: 10px; }

@media (max-width: 860px) {
  .gc-brand-grid { grid-template-columns: 1fr; }
  .gc-brand-preview { position: static; }
  .gc-msgs { max-height: 50vh; }
  .gc-msg { max-width: 92%; }
}

/* ── Gerar Conteúdo: importar marca da URL (Business DNA) ── */
.gc-import { background: linear-gradient(135deg, rgba(255,122,89,.10), rgba(255,122,89,.02)); border: 1px solid rgba(255,122,89,.35); border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.gc-import-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gc-import-ic { font-size: 1.3rem; }
.gc-import-row input { flex: 1; min-width: 220px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 10px; padding: 11px 14px; font: inherit; }
.gc-import small { display: block; margin-top: 8px; }
#gc-import-msg { display: block; margin-top: 6px; }

/* ── Sugestões de campanha (cards) ── */
.gc-sug-head { display: flex; align-items: center; justify-content: space-between; }
.gc-sug-refresh { background: var(--card); border: 1px solid var(--border); color: var(--text); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: transform .3s, border-color .15s; }
.gc-sug-refresh:hover { border-color: #FF7A59; transform: rotate(180deg); }
.gc-sugestoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 8px; }
.gc-sug-load { grid-column: 1 / -1; color: var(--muted); padding: 18px; text-align: center; background: var(--card); border: 1px dashed var(--border); border-radius: 14px; }
.gc-sug { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: border-color .15s, transform .15s; font: inherit; }
.gc-sug:hover { border-color: #FF7A59; transform: translateY(-2px); }
.gc-sug strong { font-size: 1.02rem; }
.gc-sug span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.gc-sug em { color: #FF7A59; font-style: normal; font-weight: 700; font-size: .85rem; margin-top: 4px; }

/* heading serifado elegante (estética Pomelli) */
.gc-head h1 { font-family: 'Sora', Georgia, serif; letter-spacing: -.5px; }

/* ── Gerar Conteúdo: marca (logo preview + seção de redes) ── */
.gc-form-sec { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: .5rem 0 -.2rem; }
.gc-logo-prev { display: inline-flex; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: repeating-conic-gradient(var(--surface-2) 0 25%, transparent 0 50%) 0 0/16px 16px, var(--bg); border: 1px solid var(--border); }
.gc-logo-prev img { max-height: 48px; max-width: 180px; object-fit: contain; display: block; }

/* ── Inventário técnico (admin) ── */
.inv-wrap { margin-top: 1.5rem; padding-bottom: 4rem; }
.inv-head h1 { margin-bottom: .2rem; }
.inv-sec { margin-top: 2rem; }
.inv-sec h2 { font-size: 1.15rem; margin-bottom: .7rem; padding-bottom: .4rem; border-bottom: 2px solid var(--border); }
.inv-mod { font-size: .9rem; color: var(--text-muted); margin: 1rem 0 .35rem; text-transform: uppercase; letter-spacing: .03em; }
.inv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inv-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.inv-table td, .inv-table th { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .9rem; }
.inv-table th { background: var(--surface-2); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.inv-table tr:last-child td { border-bottom: none; }
.inv-table td:first-child { font-weight: 600; white-space: nowrap; }
.inv-table.inv-full td:first-child { white-space: normal; }
.inv-table code { font-size: .82rem; background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; }
.inv-table small { color: var(--text-muted); font-weight: 400; }
.inv-pill { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.inv-pill.ok { background: rgba(52,211,153,.16); color: #059669; }
.inv-pill.warn { background: rgba(239,68,68,.14); color: #dc2626; }
.inv-foot { margin-top: 2rem; padding: 1rem; background: var(--surface-2); border-radius: 10px; }
@media (max-width: 720px) { .inv-grid2 { grid-template-columns: 1fr; } }

/* ── Logos da marca (variações) ── */
.gc-logos-field small { display: block; color: var(--text-muted); font-weight: 400; margin: 2px 0 6px; }
.gc-logos-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -.4rem; }
.gc-logo-chip { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: repeating-conic-gradient(var(--surface-2) 0 25%, transparent 0 50%) 0 0/14px 14px, var(--bg); }
.gc-logo-chip img { max-height: 44px; max-width: 150px; object-fit: contain; display: block; }
.gc-logo-rm { font-size: .72rem; color: var(--text-muted); font-weight: 400; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.gc-logo-tag { font-size: .72rem; color: #059669; font-weight: 700; }

/* ── Gerar Conteúdo: galeria de entrega + legenda + lightbox ── */
.gc-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.gc-asset { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.gc-asset-img { border: 0; padding: 0; background: var(--bg); cursor: zoom-in; display: block; width: 100%; }
.gc-asset-img img { width: 100%; display: block; transition: opacity .15s; }
.gc-asset-img:hover img { opacity: .92; }
.gc-asset > video { width: 100%; display: block; background: #000; }
.gc-asset-audio { display: flex; align-items: center; gap: 8px; padding: 14px; font-size: 1.4rem; }
.gc-asset-audio audio { width: 100%; height: 36px; }
.gc-asset-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; }
.gc-asset-fmt { font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.gc-asset-dl { border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; padding: 5px 10px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.gc-asset-dl:hover { border-color: #FF7A59; color: #FF7A59; }
.gc-cap { border-top: 1px solid var(--border); padding: 10px 12px 12px; }
.gc-cap-head { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 5px; }
.gc-cap-txt { width: 100%; resize: vertical; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; padding: 8px; font: inherit; font-size: .82rem; line-height: 1.4; }
.gc-cap-acts { display: flex; gap: 6px; margin-top: 7px; }
.gc-cap-acts .btn { flex: 1; }

.gc-zip-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,122,89,.12), rgba(255,122,89,.03)); border: 1px solid rgba(255,122,89,.35); }
.gc-zip-cta strong { display: block; font-size: 1.05rem; }
.gc-zip-cta small { color: var(--text-muted); }

/* lightbox */
.gc-lb { position: fixed; inset: 0; z-index: 3000; background: rgba(8,8,12,.92); display: grid;
  grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 20px; }
.gc-lb[hidden] { display: none; }
.gc-lb-fig { grid-column: 2; grid-row: 1; margin: 0; max-width: 100%; max-height: 78vh; display: flex; }
.gc-lb-fig img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.gc-lb-nav { grid-row: 1; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .15s; }
.gc-lb-nav:hover { background: rgba(255,255,255,.22); }
.gc-lb-prev { grid-column: 1; } .gc-lb-next { grid-column: 3; }
.gc-lb-x { position: absolute; top: 16px; right: 18px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.gc-lb-x:hover { background: rgba(255,255,255,.25); }
.gc-lb-bar { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 14px; justify-content: center; color: #fff; margin-top: 14px; font-size: .9rem; }
@media (max-width: 600px) { .gc-lb { grid-template-columns: 40px 1fr 40px; padding: 10px; } .gc-lb-nav { width: 38px; height: 38px; font-size: 1.4rem; } }

/* ── Admin: Espaço em disco (destaque) ── */
.disk-box { background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(99,102,241,.02)); border: 1px solid rgba(99,102,241,.30); border-radius: 16px; padding: 20px; margin-bottom: 1.4rem; }
.disk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.disk-head h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.disk-head .note { margin: 0; max-width: 52ch; }
.disk-total { text-align: right; }
.disk-num { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.disk-lab { font-size: .8rem; color: var(--text-muted); }
.disk-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.disk-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-bottom: 4px; }
.disk-row-top small { color: var(--text-muted); }
.disk-row-top code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; font-size: .8rem; }
.disk-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.disk-bar span { display: block; height: 100%; background: #6366f1; border-radius: 999px; }
.disk-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

/* logo na prévia ao vivo da marca */
.gc-prev-logo { max-height: 50px; max-width: 64%; object-fit: contain; margin-bottom: 12px; }

/* ── Link do WhatsApp: rastreio de cliques (logado) ── */
.wa-track { width: 100%; margin-top: .2rem; display: flex; flex-direction: column; gap: .6rem; }
.wa-track-sep { height: 1px; background: var(--border); margin: .2rem 0; }
.wa-track-result { display: flex; flex-direction: column; gap: .55rem; }
.wa-track-result[hidden] { display: none; } /* author display:flex venceria o [hidden] da UA */
.wa-track .hint { margin: 0; }

/* ── Resumo de Reunião ── */
.ru-wrap { max-width: 760px; margin: 1.5rem auto 4rem; }
.ru-quota { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.ru-quota-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; }
.ru-quota-top span { color: var(--text-muted); }
.ru-quota-bar { height: 7px; border-radius: 999px; background: rgba(127,127,127,.18); overflow: hidden; margin: .45rem 0 .4rem; }
.ru-quota-bar span { display: block; height: 100%; border-radius: 999px; transition: width .4s; }
.ru-quota-note { margin: 0; font-size: .78rem; color: var(--text-muted); }
.ru-preview { margin-top: 1rem; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; background: var(--surface-2); }
.ru-preview-line { font-size: .92rem; margin-bottom: .5rem; }
.ru-preview-ok { font-size: .82rem; color: var(--text-muted); }
.ru-preview-warn { font-size: .85rem; color: #b91c1c; font-weight: 600; }
.ru-preview-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.ru-opt { display: flex; align-items: flex-start; gap: .55rem; padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); cursor: pointer; font-size: .9rem; }
.ru-opt input { margin-top: .15rem; width: 18px; height: 18px; accent-color: #0891B2; flex: 0 0 auto; }
.ru-privacy { display: flex; align-items: flex-start; gap: .5rem; font-size: .8rem; color: var(--text-muted); margin: 1rem 0 0; }
.ru-privacy .ico { width: 16px; height: 16px; flex: 0 0 auto; margin-top: .1rem; color: #16a34a; }
.ru-transcricao { margin-top: 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: .4rem 1.1rem; }
.ru-transcricao > summary { cursor: pointer; font-weight: 700; padding: .7rem 0; list-style: none; }
.ru-transcricao > summary::-webkit-details-marker { display: none; }
.ru-transcricao > summary::before { content: "▸ "; color: #0891B2; }
.ru-transcricao[open] > summary::before { content: "▾ "; }
.ru-trans-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.ru-trans-text { white-space: pre-wrap; word-wrap: break-word; max-height: 460px; overflow: auto; font-family: inherit; font-size: .9rem; line-height: 1.6; background: var(--surface-2); border-radius: 10px; padding: 1rem; margin: 0 0 .8rem; }
.ru-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.ru-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .8rem; border: 1px solid var(--border); background: var(--card); color: var(--text-muted); border-radius: 12px; font-weight: 700; cursor: pointer; transition: .15s; }
.ru-tab .ico { width: 18px; height: 18px; }
.ru-tab.active { border-color: #0891B2; color: #0891B2; background: rgba(8,145,178,.06); }
.ru-panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; }
.ru-rec { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1rem 0 1.4rem; }
.ru-mic { width: 96px; height: 96px; border-radius: 50%; border: 0; background: #0891B2; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(8,145,178,.35); transition: transform .15s; }
.ru-mic .ico { width: 38px; height: 38px; }
.ru-mic:hover { transform: scale(1.04); }
.ru-mic.rec { background: #ef4444; animation: ru-pulse 1.3s infinite; }
@keyframes ru-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); } 50% { box-shadow: 0 0 0 18px rgba(239,68,68,0); } }
.ru-timer { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ru-rec-hint { color: var(--text-muted); margin: 0; }
.ru-rec-hint.ru-rec-warn { color: #b45309; font-weight: 700; background: rgba(245,158,11,.12); padding: .5rem .8rem; border-radius: 9px; }
.ru-drop { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2.4rem 1rem; border: 2px dashed var(--border); border-radius: 14px; cursor: pointer; text-align: center; transition: .15s; }
.ru-drop:hover, .ru-drop.over { border-color: #0891B2; background: rgba(8,145,178,.04); }
.ru-drop-ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(8,145,178,.1); color: #0891B2; display: grid; place-items: center; }
.ru-drop-ic .ico { width: 24px; height: 24px; }
.ru-drop small { color: var(--text-muted); }
.ru-status { margin-top: 1.2rem; text-align: center; }
.ru-status p { color: var(--text-muted); margin-top: .6rem; }
.ru-erro { margin-top: 1rem; background: rgba(239,68,68,.12); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }

.ru-result { margin-top: 1.4rem; }
.ru-card-out { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; }
.ru-out-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ru-out-head h2 { margin: 0; font-size: 1.4rem; }
.ru-out-acts { display: flex; gap: .5rem; }
.ru-out-resumo { color: var(--text); line-height: 1.6; margin: .8rem 0 0; }
.ru-sec { margin-top: 1.3rem; }
.ru-sec h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 .5rem; }
.ru-sec ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; line-height: 1.5; }
.ru-check { list-style: none; padding-left: 0; }
.ru-check li { padding-left: 1.6rem; position: relative; }
.ru-check li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.ru-tasks { list-style: none; padding-left: 0; }
.ru-tasks li { display: flex; flex-direction: column; gap: 2px; padding: .55rem .7rem; background: var(--surface-2); border-radius: 9px; }
.ru-tasks .ru-meta { font-style: normal; font-size: .8rem; color: #0891B2; font-weight: 700; }
.ru-h2 { font-size: 1.1rem; margin: 2rem 0 .8rem; }
.ru-history { display: flex; flex-direction: column; gap: .5rem; }
.ru-hist { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 11px; cursor: pointer; transition: border-color .15s; }
.ru-hist:hover { border-color: #0891B2; }
.ru-hist-t { font-weight: 700; }
.ru-hist-m { font-size: .8rem; color: var(--text-muted); }
