/* Hase Social — camada visual (novembro de 2026).
   Carregada por último. Define a identidade Hase (azul-marinho + lavanda/índigo), tipografia de sistema,
   superfícies claras com cantos generosos e os componentes novos: marca, menu da conta, cartão
   "Como funciona", primeiros passos e central de ajuda. As cores antigas dos outros arquivos foram
   convertidas por dev/recolor.mjs; aqui ficam os tokens e a forma. */

:root {
  --ground: #f5f5f7;
  --surface: #ffffff;
  --raised: #f2f2f5;
  --border: #e3e3e8;
  --rule: #ececf0;
  --control: #d2d2d7;
  --text: #1d1d1f;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #5856d6;
  --accent-strong: #4a48c8;
  --accent-soft: #eeeefc;
  --accent-track: #e5e5ea;
  --accent-ink: #4644c4;
  --positive: #1d8a4a;
  --negative: #d70015;
  --warning: #b25000;
  --hase-navy: #171d36;
  --hase-lavender: #a6a4ff;
  --radius-card: 18px;
  --radius-control: 10px;
  --sidebar-width: 252px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
  --shadow-pop: 0 2px 6px rgba(0, 0, 0, .06), 0 18px 48px rgba(0, 0, 0, .16);
  --ring: 0 0 0 4px rgba(88, 86, 214, .18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter Hase", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body { background: var(--ground); color: var(--text); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { line-height: 1.45; }
::selection { background: rgba(88, 86, 214, .22); }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.024em; line-height: 1.12; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.018em; }
h3 { font-weight: 600; letter-spacing: -.01em; }
a { -webkit-tap-highlight-color: transparent; }
main a:not([class]) { color: var(--accent-ink); font-weight: 550; }
main a:not([class]):hover { text-decoration: underline; }

/* ---------- Controles ---------- */
button, .button { border-radius: var(--radius-control); border-color: var(--control); box-shadow: none; font-weight: 550; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease, color .15s ease; }
button:hover, .button:hover { background: #f5f5f7; }
button:active:not(:disabled) { transform: scale(.98); }
button:disabled { opacity: .5; }
.primary-button, .button.primary-button, a.primary-button { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; font-weight: 600; }
.primary-button:hover, .button.primary-button:hover, a.primary-button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
a.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 16px; border-radius: var(--radius-control); text-decoration: none; }
.text-button { color: var(--accent-ink); }
input, textarea, select { border-radius: var(--radius-control); border-color: var(--control); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder, textarea::placeholder { color: #a1a1a6; }
input:hover, textarea:hover, select:hover { border-color: #b9b9c0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
label { color: var(--text); }
kbd { font: inherit; }

/* ---------- Superfícies ---------- */
.panel, .table-wrap, .live-section, .live-card, .real-setting-card { background: var(--surface); border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.status { border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 12px; }
.status.neutral { background: #ededf0; color: #55555a; }
.status.positive { background: #e3f5ea; color: #17733d; }
.bar-track { background: #e8e8ed; border-radius: 999px; overflow: hidden; }
.bar-track i { background: var(--accent); border-radius: 999px; }
dialog { border: 0; border-radius: 20px; box-shadow: var(--shadow-pop); color: var(--text); }
dialog::backdrop { background: rgba(10, 12, 24, .34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
table th { font-weight: 600; color: var(--muted); }

/* ---------- Estrutura: menu lateral ---------- */
.app-layout { background: var(--ground); }
.sidebar { width: var(--sidebar-width); padding: 0 12px 14px; background: rgba(250, 250, 252, .86); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-right: 1px solid rgba(0, 0, 0, .07); }
.content-column { width: calc(100% - var(--sidebar-width)); }
.brand { min-height: 64px; padding: 0 8px; gap: 11px; font-size: 16px; letter-spacing: -.02em; color: var(--text); }
.brand strong { font-weight: 700; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; transform: none; border-radius: 9px; background: var(--hase-navy); color: var(--hase-lavender); box-shadow: 0 1px 2px rgba(23, 29, 54, .3), 0 6px 14px rgba(23, 29, 54, .18); }
.brand-mark svg { width: 19px; height: 19px; }
.sidebar-search, .sidebar button.sidebar-search { height: 36px; margin: 2px 0 16px; padding: 0 11px; border-radius: 10px; background: rgba(118, 118, 128, .12); color: #6e6e73; font-size: 14px; }
.sidebar button.sidebar-search:hover { background: rgba(118, 118, 128, .18); }
.sidebar-search svg { width: 15px; height: 15px; }
.sidebar-search kbd { margin-left: auto; font-size: 11px; color: #8e8e93; letter-spacing: .02em; }
.nav-group { margin: 0 0 14px; }
.nav-group-title { margin: 0 10px 5px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #8e8e93; }
.nav-link { height: 36px; padding: 0 10px; gap: 11px; margin: 1px 0; border-radius: 9px; color: #3a3a3c; font-size: 14px; font-weight: 500; transition: background-color .12s ease, color .12s ease; }
.nav-link svg { width: 17px; height: 17px; stroke-width: 1.7; color: #7c7c82; transition: color .12s ease; }
.nav-link:hover { background: rgba(118, 118, 128, .1); }
.nav-link.active { background: rgba(88, 86, 214, .12); color: var(--accent-ink); font-weight: 600; }
.nav-link.active svg { color: var(--accent); }
.sidebar-task-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.sidebar-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, .06); display: grid; gap: 1px; }
.sidebar-footer .nav-link, .sidebar-settings { margin-top: 0; }

/* ---------- Estrutura: barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 15; height: 56px; padding: 0 32px; gap: 10px; background: rgba(245, 245, 247, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.topbar .icon-button, .topbar-task-link { width: 36px; height: 36px; min-height: 36px; border: 0; border-radius: 50%; background: rgba(118, 118, 128, .12); color: #3a3a3c; }
.topbar .icon-button:hover, .topbar-task-link:hover { background: rgba(118, 118, 128, .2); color: var(--text); }
.topbar .icon-button svg, .topbar-task-link svg { width: 18px; height: 18px; }
.topbar-task-count { right: -4px; top: -4px; min-width: 18px; height: 18px; border-radius: 999px; background: #ff3b30; color: #fff; font-size: 10.5px; font-weight: 700; box-shadow: 0 0 0 2px var(--ground); }
button.topbar-calendar { height: 36px; padding: 0 12px; gap: 8px; border-radius: 999px; background: rgba(118, 118, 128, .12); font-weight: 600; }
button.topbar-calendar:hover, button.topbar-calendar:focus-visible { background: rgba(118, 118, 128, .2); }
.topbar-period-label { color: var(--muted); font-weight: 500; font-size: 13px; }
.topbar-date { font-size: 13.5px; }
.topbar-chevron { display: inline-grid; color: #8e8e93; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; height: 36px; padding: 0 10px 0 4px; border-radius: 999px; background: rgba(118, 118, 128, .12); font-size: 13.5px; user-select: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: rgba(118, 118, 128, .2); }
.topbar-account strong { font-weight: 600; max-width: 170px; }
.topbar-avatar { width: 28px; height: 28px; background: var(--hase-navy); color: #dcdbff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.account-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 244px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(0, 0, 0, .08); box-shadow: var(--shadow-pop); display: grid; gap: 1px; }
.account-menu-user { margin: 0; padding: 9px 10px 10px; color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--rule); margin-bottom: 5px; }
.account-menu-user strong { color: var(--text); display: block; font-size: 14px; max-width: none; }
.account-menu-panel a, .account-menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font-size: 14px; font-weight: 500; text-align: left; }
.account-menu-panel a:hover, .account-menu-panel button:hover { background: rgba(118, 118, 128, .12); }
.account-menu-panel svg { color: #7c7c82; }
.account-menu-panel button[data-action="logout-real"] { color: var(--negative); }
.account-menu-panel button[data-action="logout-real"] svg { color: var(--negative); }

/* ---------- Conteúdo ---------- */
main { padding: 28px 32px 56px; }
.real-heading { align-items: center; margin: 0 0 22px; }
.real-heading h1, .page-header h1, .real-settings-title h1, .real-agenda-top h1 { font-size: 30px; font-weight: 700; letter-spacing: -.024em; line-height: 1.12; font-family: var(--font); }
.app-layout[data-route="/pipeline"] .real-heading h1 { font-family: var(--font); font-size: 30px; font-weight: 700; letter-spacing: -.024em; line-height: 1.12; }
.real-heading p, .page-header p, .real-agenda-top p { color: var(--muted); font-size: 15px; max-width: 70ch; }
.real-heading .eyebrow, .real-agent-top .eyebrow { display: none; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: #8e8e93; }
.demo-footer { max-width: none; margin: 8px 32px 26px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .06); font-size: 12px; color: #8e8e93; gap: 18px; }
.demo-footer .text-button { font-size: 12px; color: #8e8e93; font-weight: 500; }
.demo-footer .text-button:hover { color: var(--accent-ink); }
.demo-footer > span { margin-right: auto; }

/* Faixas de destaque (Início, Relatórios, Metas, Equipe): azul-marinho Hase */
.home-hero, .report-banner { position: relative; isolation: isolate; border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, rgba(166, 164, 255, .42) 0%, rgba(166, 164, 255, 0) 55%), linear-gradient(135deg, #171d36 0%, #23285a 58%, #3a37a8 100%); color: #fff; box-shadow: 0 1px 2px rgba(23, 29, 54, .2), 0 16px 40px rgba(23, 29, 54, .18); }
.home-hero::after { content: ""; position: absolute; right: -38px; top: -46px; width: 300px; height: 300px; z-index: -1; opacity: .09; background: url("./assets/hase-mark-white.svg") center / contain no-repeat; transform: rotate(8deg); pointer-events: none; }
.home-hero { min-height: 0; padding: 30px 32px 0; overflow: hidden; }
.home-hello { margin: 0 0 2px; font-size: 14px; font-weight: 500; color: #c9c8ff; }
.home-greeting h1 { font-size: 30px; letter-spacing: -.026em; }
.home-greeting p { color: rgba(255, 255, 255, .78); }
.home-portrait { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); color: #fff; font-weight: 700; }
.home-hero-metrics > div { display: grid; align-content: start; gap: 2px; }
.home-hero-metrics strong { letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home-hero-metrics span { color: #fff; font-weight: 600; opacity: 1; }
.home-hero-metrics small { color: rgba(255, 255, 255, .62); font-size: 12px; line-height: 1.3; }
.home-section-title a, .home-overview-heading a { color: var(--accent-ink); font-weight: 600; }
.home-empty { color: var(--muted); margin: 0; }

/* ---------- Cartão "Como funciona" ---------- */
.page-guide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; max-width: 1060px; margin: 0 auto 22px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(120deg, #f1f1ff 0%, #ffffff 70%); border: 1px solid rgba(88, 86, 214, .2); box-shadow: var(--shadow-card); }
.page-guide[hidden] { display: none; }
.page-guide-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; }
.page-guide-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.page-guide h2 { margin: 0 0 4px; font-size: 19px; }
.page-guide-body > p { margin: 0; color: #3a3a3c; font-size: 15px; max-width: 78ch; }
.page-guide ol { list-style: none; counter-reset: guide; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 1180px) { .page-guide ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .page-guide li { align-items: flex-start; padding: 12px 14px 12px 46px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(88, 86, 214, .14); border-radius: 14px; } .page-guide li::before { left: 12px; top: 11px; } }
.page-guide li { counter-increment: guide; position: relative; padding-left: 34px; font-size: 14.5px; color: #2c2c2e; min-height: 24px; display: flex; align-items: center; }
.page-guide li::before { content: counter(guide); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid rgba(88, 86, 214, .32); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.page-guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.page-guide-actions a { color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.app-layout[data-route="/conversations"] .page-guide, .app-layout[data-route="/pipeline"] .page-guide, .app-layout[data-route="/agenda"] .page-guide, .app-layout[data-route="/ai-agent"] .page-guide { max-width: none; }

/* ---------- Primeiros passos ---------- */
.setup-checklist { margin: 22px 0 6px; padding: 22px 24px 12px; border-radius: 20px; }
.setup-checklist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.setup-checklist-head h2 { margin: 0 0 3px; }
.setup-checklist-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.setup-progress { flex: none; width: 150px; display: grid; gap: 6px; text-align: right; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.setup-progress .bar-track { height: 6px; }
.setup-progress .bar-track i { display: block; height: 100%; }
.setup-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.setup-step { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--rule); }
.setup-step-mark { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.setup-step.is-done .setup-step-mark { background: #e3f5ea; color: var(--positive); }
.setup-step-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
.setup-step-copy strong { font-size: 15px; font-weight: 600; }
.setup-step-copy small { color: var(--muted); font-size: 13.5px; }
.setup-step.is-done .setup-step-copy strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); font-weight: 500; }
.setup-step-state { color: var(--positive); font-weight: 600; font-size: 13px; }
.setup-step-action { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px; }
.setup-step-action:hover { background: var(--accent-strong); }

/* ---------- Central de ajuda ---------- */
.help-page { max-width: 1000px; margin: 0 auto; }
.help-hero { padding: 18px 0 8px; text-align: center; }
.help-kicker { margin: 0 0 6px; color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.help-hero h1 { font-size: 40px; letter-spacing: -.03em; margin: 0 0 8px; }
.help-hero p:last-child { color: var(--muted); font-size: 17px; margin: 0; }
.help-section { margin-top: 38px; }
.help-section > h2 { font-size: 24px; letter-spacing: -.022em; margin: 0 0 2px; }
.help-section-lead { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.help-steps { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; }
.help-steps li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.help-steps li + li { border-top: 1px solid var(--rule); }
.help-step-number { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.help-steps li > div { flex: 1; min-width: 0; }
.help-steps strong { font-size: 15.5px; }
.help-steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.help-steps a { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.help-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.help-area { display: block; padding: 18px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 18px; box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .15s ease; }
.help-area:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 14px 32px rgba(0, 0, 0, .09); }
.help-area-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.help-area strong { display: block; font-size: 16px; margin-bottom: 3px; }
.help-area p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.help-glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 28px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 20px; box-shadow: var(--shadow-card); padding: 6px 22px; }
.help-glossary > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.help-glossary dt { font-weight: 650; font-size: 15px; }
.help-glossary dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.help-faq { background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 20px; box-shadow: var(--shadow-card); padding: 0 22px; }
.help-faq details + details { border-top: 1px solid var(--rule); }
.help-faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; font-size: 15.5px; position: relative; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .15s ease; }
.help-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.help-faq p { margin: 0 0 16px; color: #48484a; font-size: 14.5px; max-width: 75ch; }
.help-tips { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 22px 24px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 20px; box-shadow: var(--shadow-card); }
.help-tips > div { flex: 1; min-width: 240px; }
.help-tips h2 { margin: 0 0 4px; font-size: 18px; }
.help-tips p { margin: 0; color: var(--muted); }
.help-tips-status { flex-basis: 100%; color: var(--positive) !important; font-weight: 600; }

/* ---------- Entrada (login e convite) ---------- */
.live-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 70% at 50% 0%, rgba(166, 164, 255, .35) 0%, rgba(166, 164, 255, 0) 60%), var(--ground); }
.live-auth-card { width: min(420px, 100%); padding: 36px 34px 30px; border-radius: 26px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 30px 70px rgba(23, 29, 54, .14); text-align: left; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.auth-brand .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.auth-brand .brand-mark svg { width: 26px; height: 26px; }
.live-auth-card .live-label { display: none; }
.live-auth-card h1 { font-size: 28px; margin: 0 0 6px; }
.live-auth-card > p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.live-auth-card form { display: grid; gap: 16px; }
.live-auth-card label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; }
.live-auth-card input { min-height: 46px; font-size: 16px; }
.live-auth-card .primary-button { min-height: 48px; font-size: 16px; border-radius: 12px; margin-top: 4px; }
.live-auth-card .live-error { color: var(--negative); margin: 14px 0 0; min-height: 20px; font-weight: 500; }
.auth-help { margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 900px) {
  .content-column { width: 100%; }
  .sidebar { background: rgba(250, 250, 252, .97); box-shadow: 0 0 60px rgba(0, 0, 0, .2); }
  .topbar { padding: 0 16px; }
  .topbar .menu-toggle { display: inline-grid; }
  main { padding: 20px 16px 40px; }
  .demo-footer { margin: 8px 16px 24px; }
  .topbar-period-label { display: none; }
}
@media (max-width: 650px) {
  h1, .real-heading h1, .page-header h1, .real-settings-title h1, .real-agenda-top h1, .app-layout[data-route="/pipeline"] .real-heading h1 { font-size: 25px; }
  .topbar-account strong, .account-menu .topbar-chevron { display: none; }
  .account-menu > summary { padding: 0 4px; }
  .page-guide { grid-template-columns: 1fr; padding: 18px; }
  .page-guide-icon { display: none; }
  .setup-checklist { padding: 18px 16px 8px; }
  .setup-checklist-head { flex-direction: column; gap: 12px; }
  .setup-progress { width: 100%; text-align: left; }
  .setup-step { flex-wrap: wrap; }
  .help-hero h1 { font-size: 30px; }
  .help-steps li { flex-wrap: wrap; }
  .help-steps a { margin-left: 48px; }
  .home-hero { padding: 22px 18px 0; }
  .home-hero-metrics small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Conversas ---------- */
.real-inbox { gap: 18px; }
.real-inbox > .live-section { padding: 16px; }
.live-toolbar { gap: 6px; margin: 14px 0 10px; }
.live-toolbar button { min-height: 32px; padding: 0 13px; border-radius: 999px; border-color: transparent; background: rgba(118, 118, 128, .1); color: #3a3a3c; font-size: 13px; font-weight: 550; }
.live-toolbar button:hover { background: rgba(118, 118, 128, .18); }
.live-toolbar button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.live-row { gap: 12px; padding: 11px 10px; border-top: 0; border-radius: 14px; align-items: flex-start; }
.live-row + .live-row { margin-top: 2px; }
.live-row:hover { background: rgba(118, 118, 128, .08); }
.live-row.selected { background: var(--accent-soft); }
.live-row-avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #c9c8ff, #8f8cf5); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.live-row-main { flex: 1; min-width: 0; }
.live-row strong { font-size: 14.5px; font-weight: 600; }
.live-row small { font-size: 12.5px; line-height: 1.4; }
.unread-badge { background: var(--accent); color: #fff; border-radius: 999px; }
.live-empty { color: var(--muted); }
.live-empty-guide { display: grid; gap: 6px; place-items: center; text-align: center; padding: 90px 24px; }
.live-empty-guide strong { font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.live-empty-guide span { max-width: 34ch; font-size: 14.5px; }
.real-messages { padding: 14px 6px; display: flex; flex-direction: column; gap: 6px; }
.live-message { margin: 0; max-width: min(74%, 620px); padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #e9e9eb; color: #1d1d1f; font-size: 14.5px; line-height: 1.4; align-self: flex-start; }
.live-message.outbound { margin-left: auto; align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--accent); color: #fff; }
.live-message small { margin-top: 4px; font-size: 11px; color: #7c7c82; }
.live-message.outbound small { color: rgba(255, 255, 255, .72); }
.live-reply-form textarea { border-radius: 14px; font-size: 14.5px; }
.real-thread-head h2 { font-size: 18px; }

/* ---------- Funil de vendas ---------- */
.app-layout[data-route="/pipeline"] .real-heading { margin-bottom: 16px; }
.app-layout[data-route="/pipeline"] .workflow-pipeline-toolbar { margin: 0 0 14px; }
.app-layout[data-route="/pipeline"] .workflow-pipeline-actions { margin-top: 0; justify-content: flex-start; gap: 8px; }
.workflow-pipeline-actions .workflow-pipeline-name { display: none; }
.workflow-pipeline-actions button { border-radius: 999px; padding: 7px 13px; background: rgba(118, 118, 128, .1); font-weight: 550; }
.workflow-pipeline-actions button:hover { background: rgba(118, 118, 128, .18); }
.workflow-pipeline-actions .primary-button { margin-left: auto; padding: 7px 16px; border-radius: 999px; }
.workflow-pipeline-actions .primary-button:hover { background: var(--accent-strong); }
.workflow-pipeline-actions input { border-radius: 999px; padding-left: 14px; border-color: var(--control); }
.workflow-pipeline-actions select { border-radius: 999px; min-height: 34px; }
.workflow-column { border: 0; border-radius: 18px; background: #ebebf0; padding: 12px 10px; }
.workflow-column:last-child { background: #e6f3ea; }
.workflow-column.is-drop-target { outline: 2px dashed var(--accent); background: var(--accent-soft); }
.workflow-column header span { background: rgba(0, 0, 0, .07); font-weight: 600; }
.workflow-add-lead { border-radius: 12px; color: var(--muted); }
.workflow-add-lead:hover { color: var(--accent-ink); }
.workflow-empty { color: #8e8e93; }

/* ---------- Tarefas ---------- */
.workflow-task { padding: 16px 4px; }
.workflow-task strong { font-size: 15px; }

/* ---------- Faixas de relatório ---------- */
.report-banner { padding: 26px 30px; }
.report-banner h1 { font-size: 30px; letter-spacing: -.024em; }
.report-banner p { color: rgba(255, 255, 255, .78); font-size: 15px; }
.team-tabs button, .goals-chart-tabs button, .real-contacts-tabs button { border-radius: 999px; }
.automation-page > .page-header { position: relative; border-radius: 22px; padding: 26px 30px; min-height: 0; background: radial-gradient(120% 140% at 100% 0%, rgba(166, 164, 255, .42) 0%, rgba(166, 164, 255, 0) 55%), linear-gradient(135deg, #171d36 0%, #23285a 58%, #3a37a8 100%); box-shadow: 0 1px 2px rgba(23, 29, 54, .2), 0 16px 40px rgba(23, 29, 54, .18); }
.automation-page > .page-header h1 { font-size: 30px; font-weight: 700; color: #fff; }
.automation-page > .page-header p { color: rgba(255, 255, 255, .8); font-size: 15px; max-width: 72ch; }
.automation-row { border-radius: 14px; }
.automation-row-icon { border-radius: 12px; }

/* ---------- Configurações ---------- */
.real-settings-title { max-width: 1100px; margin-bottom: 22px; }
.real-settings-title p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.real-settings-page { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; align-items: start; }
.settings-index { position: sticky; top: 76px; display: grid; gap: 1px; }
.settings-index p { margin: 0 10px 6px; font-size: 12px; font-weight: 600; color: #8e8e93; }
.settings-index button { justify-content: flex-start; text-align: left; min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #3a3a3c; font-size: 14px; font-weight: 500; }
.settings-index button:hover { background: rgba(118, 118, 128, .12); color: var(--text); }
.real-settings-content { gap: 34px; }
.real-setting-section { scroll-margin-top: 76px; }
#settings-profile { order: 0; } #settings-connections { order: 1; } #settings-members { order: 2; } #settings-organization { order: 3; }
#settings-notifications { order: 4; } #settings-assignment { order: 5; } #settings-score { order: 6; } #settings-blocklist { order: 7; } #settings-plan { order: 8; }
.real-setting-section h2 { font-size: 21px; letter-spacing: -.02em; }
.real-setting-card { padding: 22px 24px; }
@media (max-width: 900px) {
  .real-settings-page { grid-template-columns: 1fr; gap: 16px; }
  .settings-index { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .settings-index p { display: none; }
  .settings-index button { flex: none; background: rgba(118, 118, 128, .1); border-radius: 999px; padding: 0 13px; }
}
input[type="checkbox"], input[type="radio"] { min-height: 0; }

/* ---------- Início: cartões ---------- */
.home-page { max-width: 1060px; margin: 0 auto; }
.home-ranking-empty { min-height: 150px; padding: 18px; }
.home-ranking-empty p { font-size: 15px; color: var(--text); font-weight: 600; }
.home-ranking-empty small { font-size: 13px; color: var(--muted); max-width: 38ch; }
.home-waiting { background: #fff; border-color: rgba(0, 0, 0, .06); }
.home-waiting-count { font-size: 34px; letter-spacing: -.03em; color: var(--accent-ink); }
.home-waiting-empty { color: var(--muted); }
.home-waiting-row { border-radius: 12px; }
.home-waiting-avatar { background: linear-gradient(145deg, #c9c8ff, #8f8cf5); color: #fff; }
.home-goals .panel strong { letter-spacing: -.025em; }
.home-goals small a { color: var(--accent-ink); font-weight: 600; }
.real-home-connection { color: #8e8e93; font-size: 12.5px; }
.date-chip { border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

/* ---------- Contatos, tabelas e abas ---------- */
.real-contacts-tabs { gap: 6px; border-bottom: 0; margin-bottom: 14px; }
.real-contacts-tabs button { min-height: 34px; padding: 0 14px; border: 0; background: rgba(118, 118, 128, .1); color: #3a3a3c; font-weight: 550; }
.real-contacts-tabs button[aria-current="page"] { background: var(--accent); color: #fff; box-shadow: none; }
.real-contacts-table th, .data-table th { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.real-contacts-table tbody tr:hover, .data-table tbody tr:hover { background: #fafafc; }

/* ---------- Notificações e período ---------- */
#notifications-panel { border-radius: 18px; border: 1px solid rgba(0, 0, 0, .08); box-shadow: var(--shadow-pop); }
.home-period-dialog { border-radius: 18px; border: 1px solid rgba(0, 0, 0, .08); }
.report-calendar-days button[aria-pressed="true"] { background: var(--accent); }
#global-search-dialog { border: 0; border-radius: 18px; background: rgba(255, 255, 255, .97); }
.global-search-group button { border-radius: 10px; min-height: 42px; font-size: 14px; }
.global-search-group button[aria-selected="true"], .global-search-group button:hover { background: var(--accent-soft); }
.global-search-group mark { color: var(--accent-ink); background: #e2e1ff; }
.real-avatar-wrap #real-avatar-pick { min-height: 0; width: 26px; height: 26px; padding: 0; border-radius: 50%; display: grid; place-items: center; right: -4px; bottom: -4px; background: #fff; border: 1px solid var(--control); color: #3a3a3c; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.real-avatar-wrap #real-avatar-pick svg { width: 14px; height: 14px; }
.real-setting-avatar { background: var(--hase-navy); color: #dcdbff; }
@media (max-width: 900px) {
  .sidebar { box-shadow: none; }
  .menu-open .sidebar { box-shadow: 0 0 60px rgba(0, 0, 0, .25); }
}
@media (max-width: 650px) {
  .help-steps li > div { flex: 1 1 calc(100% - 52px); }
  .help-steps a { margin-left: 48px; }
}
.app-layout[data-route="/conversations"] main { padding: 28px 32px 40px; }
@media (max-width: 900px) { .app-layout[data-route="/conversations"] main { padding: 20px 16px 40px; } }
.setup-hide { justify-self: end; min-height: 0; padding: 2px 0; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.setup-hide:hover { background: transparent; color: var(--accent-ink); text-decoration: underline; }
.home-period-dialog::backdrop { background: rgba(10, 12, 24, .12); -webkit-backdrop-filter: none; backdrop-filter: none; }
#real-appointment-dialog input, #real-appointment-dialog select, #real-appointment-dialog textarea { background: #fff; }
.real-contacts-table-wrap, .table-wrap { position: relative; }
