/*
 * EasyAI Ads · app.css — design system do app (anuncios.easyaiservices.net; o nome "ads.css" caía em regras de bloqueadores)
 *
 * Mobile-first (a partir de 320px), alvos de toque >= 44px, identidade EasyAI (mesmos tokens
 * do styles.css do site: verde-petróleo + âmbar; Sora nos títulos, Space Grotesk no corpo —
 * as fontes vêm do <link> do Google Fonts em cada HTML). Única folha do app; classes `ea-`.
 * Escala de espaço 4/8; margem lateral 16px (celular) e 24px (desktop).
 *
 * Mapa: 1 tokens · 2 base · 3 utilitários · 4 shell (header, nav, main) · 5 landing ·
 * 6 botões · 7 formulários · 8 cards / tiles / listas · 9 pílulas / avisos · 10 gráfico ·
 * 11 assistente (passos, opções, prévia) · 12 sheets / toasts · 13 estados / skeleton ·
 * 14 páginas avulsas (entrar, conectar, 404) · 15 movimento reduzido
 */

/* 1. Tokens ------------------------------------------------------------------------ */
:root {
  --bg: #f7f8f2;
  --surface: #fffef8;
  --card: #ffffff;
  --text: #132022;
  --muted: #5e6c70;
  --faint: #8a9794;
  --brand: #0f766e;
  --brand-dark: #0b5f58;
  --brand-ink: #0d4a44;
  --brand-tint: #e3f0ee;
  --brand-ring: rgba(15, 118, 110, 0.32);
  --accent: #f59e0b;
  --accent-tint: #fef0d6;
  --accent-ink: #7a4300;
  --line: #d7ddd9;
  --line-soft: #e9ede9;
  --line-strong: #b9c4bf;
  --ok: #2f855a;
  --ok-tint: #e6f4ec;
  --warn: #b7791f;
  --warn-tint: #fdf3df;
  --danger: #c53030;
  --danger-tint: #fde8e8;
  --info-tint: #e8f1fb;
  --meta: #1877f2;
  --shadow: 0 14px 38px rgba(17, 34, 38, 0.12);
  --shadow-sm: 0 1px 2px rgba(17, 34, 38, 0.06), 0 4px 14px rgba(17, 34, 38, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
  --header-h: 60px;
  --nav-h: 64px;
  --maxw: 1080px;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Sora", var(--font-body);
}

/* 2. Base --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 118, 110, 0.14), transparent 36%),
    radial-gradient(circle at 92% 0%, rgba(245, 158, 11, 0.12), transparent 30%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; margin: 0; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; }
h2 { font-size: clamp(19px, 2.6vw, 24px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.ea-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.ea-lead { font-size: 17px; color: var(--muted); }
.ea-muted { color: var(--muted); }
.ea-faint { color: var(--faint); }
.ea-small { font-size: 13.5px; }
.ea-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ea-strong { font-weight: 700; }
.ea-mono { font-variant-numeric: tabular-nums; }

/* 3. Utilitários ---------------------------------------------------------------- */
.ea-stack { display: flex; flex-direction: column; gap: 16px; }
.ea-stack--sm { gap: 8px; }
.ea-stack--lg { gap: 24px; }
.ea-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ea-row--between { justify-content: space-between; }
.ea-row--end { justify-content: flex-end; }
.ea-grow { flex: 1 1 auto; min-width: 0; }
.ea-center { text-align: center; }
.ea-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-break { overflow-wrap: anywhere; }
.ea-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ea-mt-s { margin-top: 8px; } .ea-mt-m { margin-top: 16px; } .ea-mt-l { margin-top: 24px; }
.ea-divider { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; }
.ea-skip { position: absolute; left: 8px; top: -48px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.ea-skip:focus { top: 8px; }
.ea-grid { display: grid; gap: 16px; }
.ea-grid--2 { grid-template-columns: 1fr; }
.ea-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .ea-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .ea-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* 4. Shell ---------------------------------------------------------------------- */
.ea-app { min-height: 100dvh; display: flex; flex-direction: column; }
.ea-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gutter);
  background: rgba(255, 254, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.ea-header__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.ea-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.ea-mark { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.ea-wordmark { font-family: var(--font-title); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.ea-wordmark__by { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; margin-top: -2px; }
.ea-header__spacer { flex: 1; }
.ea-header__actions { display: flex; align-items: center; gap: 8px; }
.ea-account-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 220px;
  padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--text); text-decoration: none; font-size: 13px;
}
.ea-account-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; margin-left: 4px; }
.ea-account-chip__dot--off { background: var(--faint); }

.ea-main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) calc(var(--nav-h) + 24px); }
.ea-page { display: flex; flex-direction: column; gap: 20px; }
.ea-page__head { display: flex; flex-direction: column; gap: 6px; }
.ea-page__head .ea-row { margin-top: 6px; }

.ea-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface); border-top: 1px solid var(--line-soft);
}
.ea-nav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600;
  text-decoration: none; min-height: var(--nav-h); padding: 6px 4px;
}
.ea-nav__item svg { width: 24px; height: 24px; }
.ea-nav__item[aria-current="page"] { color: var(--brand); }
.ea-nav__item--cta { color: var(--brand-dark); }
.ea-nav__item--cta svg { background: var(--brand); color: #fff; border-radius: 50%; padding: 4px; width: 30px; height: 30px; }

@media (min-width: 900px) {
  :root { --gutter: 24px; }
  .ea-app { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: var(--header-h) auto 1fr; grid-template-areas: "header header" "banner banner" "nav main"; }
  .ea-demo-banner { grid-area: banner; position: static; }
  .ea-header { grid-area: header; }
  .ea-nav {
    grid-area: nav; position: sticky; top: var(--header-h); bottom: auto; height: calc(100dvh - var(--header-h));
    display: flex; flex-direction: column; gap: 4px; padding: 20px 12px; border-top: 0; border-right: 1px solid var(--line-soft);
    background: transparent;
  }
  .ea-nav__item { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; }
  .ea-nav__item:hover { background: rgba(15, 118, 110, 0.06); }
  .ea-nav__item[aria-current="page"] { background: var(--brand-tint); color: var(--brand-ink); }
  .ea-nav__item--cta { margin-top: 8px; background: var(--brand); color: #fff; }
  .ea-nav__item--cta:hover { background: var(--brand-dark); }
  .ea-nav__item--cta svg { background: transparent; padding: 0; width: 22px; height: 22px; }
  .ea-main { grid-area: main; padding: 28px 32px 48px; }
}

/* 5. Landing ----------------------------------------------------------------- */
.ea-landing { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 64px; }
.ea-hero { padding: 28px 0 12px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .ea-hero { grid-template-columns: 1.1fr 0.9fr; padding: 48px 0 24px; } }
.ea-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; }
.ea-hero h1 em { font-style: normal; color: var(--brand); }
.ea-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ea-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.ea-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.ea-hero__trust svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand); }
.ea-hero__art { position: relative; }
.ea-mock { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.ea-mock__bar { display: flex; gap: 6px; }
.ea-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.ea-mock__bar i:first-child { background: var(--accent); }
.ea-mock__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ea-mock__tile { background: var(--brand-tint); border-radius: 12px; padding: 12px 10px; }
.ea-mock__tile b { display: block; font-family: var(--font-title); font-size: 18px; color: var(--brand-ink); }
.ea-mock__tile span { font-size: 11.5px; color: var(--muted); }
.ea-mock__bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; padding: 0 4px; }
.ea-mock__bars i { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; opacity: 0.85; }
.ea-mock__ad { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px; }
.ea-mock__ad i { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #fbbf24); }
.ea-mock__ad b { display: block; font-size: 14px; }
.ea-mock__ad span { font-size: 12.5px; color: var(--muted); }
.ea-steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .ea-steps { grid-template-columns: repeat(3, 1fr); } }
.ea-step-card { position: relative; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 18px 18px; box-shadow: var(--shadow-sm); }
.ea-step-card::before { counter-increment: step; content: counter(step); position: absolute; top: -12px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #2b1a00; font-family: var(--font-title); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.ea-step-card h3 { margin-bottom: 6px; }
.ea-section { padding: 36px 0 8px; display: grid; gap: 18px; }
.ea-faq { display: grid; gap: 10px; }
.ea-faq details { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 16px; }
.ea-faq summary { cursor: pointer; font-weight: 700; }
.ea-faq p { margin-top: 8px; color: var(--muted); }
.ea-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }

/* 6. Botões ------------------------------------------------------------------- */
.ea-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.ea-btn:active { transform: translateY(1px); }
.ea-btn[disabled], .ea-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.ea-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.ea-btn--primary { background: var(--brand); color: #fff; }
.ea-btn--primary:hover { background: var(--brand-dark); }
.ea-btn--secondary { background: var(--card); color: var(--brand-ink); border-color: var(--line-strong); }
.ea-btn--secondary:hover { background: var(--brand-tint); }
.ea-btn--ghost { background: transparent; color: var(--brand-dark); }
.ea-btn--ghost:hover { background: rgba(15, 118, 110, 0.08); }
.ea-btn--accent { background: var(--accent); color: #2b1a00; }
.ea-btn--accent:hover { background: #e08c05; }
.ea-btn--danger { background: var(--card); color: var(--danger); border-color: rgba(197, 48, 48, 0.4); }
.ea-btn--danger:hover { background: var(--danger-tint); }
.ea-btn--meta { background: var(--meta); color: #fff; }
.ea-btn--meta:hover { background: #1464d1; }
.ea-btn--block { width: 100%; }
.ea-btn--lg { min-height: 54px; font-size: 16.5px; padding: 0 24px; border-radius: 14px; }
.ea-btn--sm { min-height: 38px; font-size: 13.5px; padding: 0 12px; border-radius: 10px; }
.ea-btn--sm svg { width: 16px; height: 16px; }
.ea-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.ea-btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; animation: ea-spin 0.8s linear infinite; }
.ea-btn--secondary.is-busy::after, .ea-btn--ghost.is-busy::after, .ea-btn--danger.is-busy::after { border-color: rgba(15,118,110,0.3); border-top-color: var(--brand); }
.ea-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.ea-icon-btn svg { width: 20px; height: 20px; }
.ea-linkbtn { background: none; border: 0; padding: 0; color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* 7. Formulários ---------------------------------------------------------- */
.ea-field { display: flex; flex-direction: column; gap: 6px; }
.ea-label { font-weight: 700; font-size: 14.5px; }
.ea-label small { font-weight: 500; color: var(--muted); }
.ea-input, .ea-select, .ea-textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font-size: 16px;
}
.ea-textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.ea-input:focus, .ea-select:focus, .ea-textarea:focus { outline: 3px solid var(--brand-ring); outline-offset: 0; border-color: var(--brand); }
.ea-input[aria-invalid="true"], .ea-textarea[aria-invalid="true"] { border-color: var(--danger); }
.ea-field-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.ea-counter { font-size: 12px; color: var(--faint); text-align: right; }
.ea-counter.is-over { color: var(--danger); }
.ea-input-group { display: flex; align-items: stretch; }
.ea-input-group .ea-input { border-radius: 0 12px 12px 0; }
.ea-input-group__prefix { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-right: 0; border-radius: 12px 0 0 12px; background: var(--bg); color: var(--muted); font-weight: 700; }
.ea-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; }
.ea-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.ea-range { width: 100%; accent-color: var(--brand); }
.ea-combo { position: relative; }
.ea-combo__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 260px; overflow: auto; padding: 4px; }
.ea-combo__item { width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.ea-combo__item:hover, .ea-combo__item:focus { background: var(--brand-tint); }
.ea-combo__item small { display: block; color: var(--muted); font-size: 12.5px; }
.ea-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ea-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.ea-chip button { border: 0; background: rgba(15,118,110,0.15); color: var(--brand-ink); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.ea-dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; text-align: center; background: var(--card); cursor: pointer; display: grid; gap: 8px; place-items: center; }
.ea-dropzone.is-over { border-color: var(--brand); background: var(--brand-tint); }
.ea-dropzone img { max-height: 220px; border-radius: 12px; object-fit: contain; }
.ea-dropzone > svg { width: 32px; height: 32px; color: var(--muted); }
.ea-dropzone input { display: none; }

/* 8. Cards / tiles / listas ---------------------------------------------- */
.ea-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.ea-card--flat { box-shadow: none; }
.ea-card--tint { background: var(--brand-tint); border-color: transparent; }
.ea-card--accent { background: var(--accent-tint); border-color: transparent; }
.ea-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ea-card__head h2, .ea-card__head h3 { margin: 0; }
.ea-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .ea-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ea-tiles--6 { grid-template-columns: 1.7fr repeat(5, 1fr); } .ea-tiles--6 .ea-tile--hero { grid-column: span 1; } }
.ea-tile { background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 14px 12px; display: grid; gap: 4px; align-content: start; min-height: 96px; }
.ea-tile__label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ea-tile__value { font-family: var(--font-title); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ea-tile__value.is-empty { color: var(--faint); font-weight: 600; }
.ea-tile__help { font-size: 12.5px; color: var(--faint); }
.ea-tile--hero { grid-column: span 2; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border: 0; }
.ea-tile--hero .ea-tile__label, .ea-tile--hero .ea-tile__help { color: rgba(255,255,255,0.8); }
.ea-tile--hero .ea-tile__value { font-size: clamp(28px, 4vw, 38px); }
.ea-help { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; font-weight: 700; background: transparent; cursor: help; }
.ea-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ea-campaign {
  display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px;
  text-align: left; width: 100%; color: inherit; text-decoration: none; box-shadow: var(--shadow-sm);
}
.ea-campaign:hover { border-color: var(--line-strong); }
.ea-campaign__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ea-campaign__name { font-weight: 700; font-size: 16px; }
.ea-campaign__meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ea-campaign__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .ea-campaign__stats { grid-template-columns: repeat(4, 1fr); } }
.ea-campaign__stat b { display: block; font-family: var(--font-title); font-size: 16px; font-variant-numeric: tabular-nums; }
.ea-campaign__stat span { font-size: 12px; color: var(--muted); }
.ea-campaign__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ea-kv { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.ea-kv dt { color: var(--muted); }
.ea-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ea-asset { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); width: 100%; text-align: left; }
.ea-asset[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.ea-asset__main { flex: 1; min-width: 0; }
.ea-asset__title { font-weight: 700; }
.ea-asset__sub { font-size: 13px; color: var(--muted); }
.ea-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-family: var(--font-title); flex-shrink: 0; overflow: hidden; }
.ea-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ea-avatar--round { border-radius: 50%; }

/* 9. Pílulas / avisos -------------------------------------------------------- */
.ea-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--line-soft); color: var(--muted); }
.ea-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.ea-pill--active { background: var(--ok-tint); color: var(--ok); }
.ea-pill--paused { background: var(--warn-tint); color: var(--warn); }
.ea-pill--review { background: var(--info-tint); color: #1d4ed8; }
.ea-pill--issue { background: var(--danger-tint); color: var(--danger); }
.ea-pill--ended { background: var(--line-soft); color: var(--muted); }
.ea-pill--brand { background: var(--brand-tint); color: var(--brand-ink); }
.ea-pill--demo { background: var(--accent-tint); color: var(--accent-ink); }
.ea-pill--nodot::before { display: none; }
.ea-notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; font-size: 14.5px; }
.ea-notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.ea-notice--info { background: var(--info-tint); border-color: #cfe0f5; color: #1e3a5f; }
.ea-notice--warn { background: var(--warn-tint); border-color: #f3dfb0; color: #6b4a0e; }
.ea-notice--error { background: var(--danger-tint); border-color: #f5c2c2; color: #7a1f1f; }
.ea-notice--success { background: var(--ok-tint); border-color: #bfe3cd; color: #1e4d33; }
.ea-notice--demo { background: var(--accent-tint); border-color: #f3dfb0; color: var(--accent-ink); }
.ea-notice__title { font-weight: 700; display: block; }
.ea-demo-banner { position: sticky; top: var(--header-h); z-index: 20; background: var(--accent); color: #2b1a00; font-weight: 700; font-size: 13.5px; text-align: center; padding: 6px var(--gutter); }

/* 10. Gráfico ------------------------------------------------------------------ */
.ea-chart { position: relative; width: 100%; }
.ea-chart svg { width: 100%; height: 200px; display: block; overflow: visible; }
.ea-chart__grid line { stroke: var(--line-soft); stroke-width: 1; }
.ea-chart__axis text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.ea-chart__bar { fill: var(--brand); opacity: 0.9; }
.ea-chart__bar:hover, .ea-chart__bar.is-active { fill: var(--brand-dark); opacity: 1; }
.ea-chart__hit { fill: transparent; }
.ea-chart__tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); background: var(--text); color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.ea-chart__tip b { display: block; font-family: var(--font-title); }
.ea-chart__empty { height: 200px; display: grid; place-items: center; color: var(--faint); border: 1px dashed var(--line); border-radius: 12px; }
.ea-seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.ea-seg__btn { border: 0; background: transparent; min-height: 36px; padding: 0 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.ea-seg__btn[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* 11. Assistente ------------------------------------------------------------- */
.ea-wizard { display: grid; gap: 20px; max-width: 720px; }
.ea-progress { display: flex; align-items: center; gap: 6px; }
.ea-progress__step { flex: 1; height: 6px; border-radius: 3px; background: var(--line-soft); }
.ea-progress__step.is-done { background: var(--brand); }
.ea-progress__step.is-current { background: var(--accent); }
.ea-progress__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.ea-options { display: grid; gap: 10px; }
@media (min-width: 640px) { .ea-options--2 { grid-template-columns: repeat(2, 1fr); } }
.ea-option {
  display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.ea-option:hover { border-color: var(--line-strong); }
.ea-option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.ea-option__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.ea-option[aria-pressed="true"] .ea-option__icon { background: var(--brand); color: #fff; }
.ea-option__icon svg { width: 22px; height: 22px; }
.ea-option__title { font-weight: 700; font-size: 15.5px; }
.ea-option__sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ea-wizard__footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.ea-budget-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ea-budget-summary div { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; text-align: center; }
.ea-budget-summary b { display: block; font-family: var(--font-title); font-size: 18px; }
.ea-budget-summary span { font-size: 12px; color: var(--muted); }
.ea-preview { max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ea-preview__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ea-preview__head b { font-size: 14px; display: block; }
.ea-preview__head span { font-size: 12px; color: var(--muted); }
.ea-preview__msg { padding: 0 14px 12px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ea-preview__img { aspect-ratio: 1 / 1; background: var(--line-soft); display: grid; place-items: center; color: var(--faint); }
.ea-preview__img > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.ea-preview__img svg { width: 28px; height: 28px; }
.ea-preview__img img { width: 100%; height: 100%; object-fit: cover; }
.ea-preview__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg); }
.ea-preview__foot small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ea-preview__foot b { font-size: 14.5px; display: block; }
.ea-preview__foot span { font-size: 13px; color: var(--muted); display: block; }
.ea-preview__cta { flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: 13px; background: var(--card); }
.ea-preview-frame { width: 100%; min-height: 560px; border: 0; border-radius: 12px; background: var(--card); }

/* 12. Sheets / toasts -------------------------------------------------- */
.ea-sheet { border: 0; padding: 0; background: transparent; max-width: none; width: 100%; height: 100%; max-height: none; margin: 0; }
.ea-sheet::backdrop { background: rgba(19, 32, 34, 0.45); }
.ea-sheet__panel {
  position: fixed; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto;
  background: var(--surface); border-radius: 20px 20px 0 0; padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(17,34,38,0.2);
}
@media (min-width: 640px) {
  .ea-sheet__panel { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px)); border-radius: 20px; padding: 20px 24px 24px; }
}
.ea-sheet__handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
@media (min-width: 640px) { .ea-sheet__handle { display: none; } }
.ea-sheet__title { font-size: 20px; margin-bottom: 6px; }
.ea-sheet__body { display: grid; gap: 14px; color: var(--text); }
.ea-sheet__footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.ea-sheet__footer .ea-btn { flex: 1 1 140px; }
.ea-toasts { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
@media (min-width: 900px) { .ea-toasts { bottom: 24px; } }
.ea-toast { background: var(--text); color: #fff; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; animation: ea-rise 0.2s ease-out; }
.ea-toast--success { background: #1e4d33; }
.ea-toast--error { background: #7a1f1f; }
.ea-toast button { margin-left: auto; background: transparent; border: 0; color: #fff; font-weight: 700; text-decoration: underline; }

/* 13. Estados / skeleton --------------------------------------------------- */
.ea-state { text-align: center; padding: 28px 16px; display: grid; gap: 10px; justify-items: center; }
.ea-state__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; }
.ea-state__icon svg { width: 30px; height: 30px; }
.ea-state__icon--warn { background: var(--warn-tint); color: var(--warn); }
.ea-state__icon--error { background: var(--danger-tint); color: var(--danger); }
.ea-state__icon--success { background: var(--ok-tint); color: var(--ok); }
.ea-state__icon--meta { background: #e7f0fe; color: var(--meta); }
.ea-state__text { color: var(--muted); max-width: 440px; }
.ea-state__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.ea-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: ea-spin 0.8s linear infinite; display: inline-block; }
.ea-spinner--lg { width: 36px; height: 36px; }
.ea-loading { display: grid; gap: 12px; justify-items: center; padding: 40px 16px; color: var(--muted); }
.ea-skeleton { background: linear-gradient(90deg, var(--line-soft), #f4f6f3, var(--line-soft)); background-size: 200% 100%; animation: ea-shimmer 1.4s infinite; border-radius: 10px; min-height: 16px; }
.ea-skeleton--tile { min-height: 96px; border-radius: 14px; }
.ea-skeleton--card { min-height: 120px; border-radius: var(--radius); }
.ea-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ea-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.ea-checklist svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }

/* 14. Páginas avulsas ------------------------------------------------------- */
.ea-auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter); }
.ea-auth__inner { width: min(460px, 100%); display: grid; gap: 20px; justify-items: center; }
.ea-auth__card { width: 100%; }
.ea-auth__footer { font-size: 13px; color: var(--muted); }
.ea-noscript { padding: 16px; text-align: center; }

/* 15. Movimento reduzido --------------------------------------------- */
@keyframes ea-spin { to { transform: rotate(360deg); } }
@keyframes ea-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ea-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
