:root {
  color-scheme: light;
  --ink: #17202d;
  --muted: #465366;
  --subtle: #596679;
  --line: #c7d0da;
  --line-soft: color-mix(in srgb, var(--line) 72%, white);
  --surface-soft: color-mix(in srgb, var(--line) 24%, white);
  --canvas: #ffffff;
  --surface: #ffffff;
  --nav: #ffffff;
  --nav-muted: #4d5968;
  --nav-active: var(--action-soft);
  --action: #1263d8;
  --action-dark: color-mix(in srgb, var(--action) 72%, black);
  --action-soft: color-mix(in srgb, var(--action) 10%, white);
  --danger: #b42318;
  --danger-dark: color-mix(in srgb, var(--danger) 68%, black);
  --danger-soft: color-mix(in srgb, var(--danger) 10%, white);
  --orange: #c2410c;
  --orange-dark: color-mix(in srgb, var(--orange) 70%, black);
  --orange-soft: color-mix(in srgb, var(--orange) 12%, white);
  --amber: #b45309;
  --amber-dark: color-mix(in srgb, var(--amber) 62%, black);
  --amber-soft: color-mix(in srgb, var(--amber) 17%, white);
  --violet: #6d28d9;
  --violet-dark: color-mix(in srgb, var(--violet) 76%, black);
  --violet-soft: color-mix(in srgb, var(--violet) 10%, white);
  --wallet: #0f7a46;
  --wallet-dark: color-mix(in srgb, var(--wallet) 72%, black);
  --wallet-soft: color-mix(in srgb, var(--wallet) 26%, white);
  --wallet-light: #75c98e;
  --wallet-light-soft: color-mix(in srgb, var(--wallet-light) 21%, white);
  --blue: var(--action);
  --blue-soft: var(--action-soft);
  --green: var(--wallet-dark);
  --green-soft: var(--wallet-soft);
  --font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-family: var(--font-family);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.sidebar-logout-form { margin-top: 10px; }
.sidebar-logout-form button, .account-logout-form button { width: 100%; min-height: 38px; padding: 0 12px; border: 1px solid var(--line, #d9e1eb); border-radius: 8px; color: var(--muted, #65748a); background: transparent; font: 500 12px/1 inherit; text-align: left; cursor: pointer; }

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-weight: 450; }
button, a { font: inherit; }
button { color: inherit; }
svg { display: block; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 258px;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 23px 15px 16px;
  color: var(--ink);
  background: var(--nav);
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px 27px; }
.brand-symbol { display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink); }
.brand-symbol svg { width: 31px; height: 31px; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.brand-name { font: 700 16px/1 var(--font-family); letter-spacing: .1em; }
.brand-caption { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.sidebar-close { display: none; margin-left: auto; }
.nav-group { margin-top: 5px; }
.nav-group-secondary { margin-top: 28px; }
.nav-label { margin: 0 11px 9px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { position: relative; display: flex; height: 42px; align-items: center; gap: 12px; padding: 0 11px; border-radius: 8px; color: var(--nav-muted); font-size: 12px; font-weight: 450; text-decoration: none; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.is-active { color: var(--action-dark); background: var(--nav-active); font-weight: 500; }
.nav-item.is-active::before { position: absolute; top: 10px; bottom: 10px; left: -15px; width: 3px; border-radius: 0 3px 3px 0; background: var(--action); content: ""; }
.nav-item.is-pending { cursor: default; }
.nav-count { display: inline-grid; min-width: 22px; height: 20px; place-items: center; margin-left: auto; border-radius: 6px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 600; }
.nav-count-warm { color: var(--amber-dark); background: var(--amber-soft); }
.status-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; }
.status-dot-muted { background: var(--muted); }
.sidebar-foot { margin-top: auto; }
.environment-card { display: flex; align-items: center; gap: 10px; padding: 11px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.environment-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 8px; color: var(--action-dark); background: var(--action-soft); }
.environment-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.environment-card > div:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.environment-card strong { overflow: hidden; color: var(--ink); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.environment-card span { color: var(--muted); font-size: 9px; }
.environment-pulse { width: 6px; height: 6px; flex: 0 0 6px; margin-left: auto; border-radius: 50%; background: var(--wallet); box-shadow: 0 0 0 3px var(--wallet-soft); }
.account-row { display: flex; align-items: center; gap: 9px; margin: 14px 2px 0; padding: 12px 7px 1px; border-top: 1px solid var(--line); }
.account-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--action-dark); background: var(--action-soft); font-size: 10px; font-weight: 600; }
.account-copy { display: grid; min-width: 0; gap: 2px; }
.account-copy strong { color: var(--ink); font-size: 10px; font-weight: 500; }
.account-copy span { color: var(--muted); font-size: 9px; }
.icon-button { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-menu { margin-left: auto; color: var(--muted); }
.main-column { min-height: 100vh; margin-left: 258px; padding-bottom: 58px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 64px; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.breadcrumb svg { width: 12px; height: 12px; fill: none; stroke: #b0b9c6; stroke-width: 1.5; }
.breadcrumb strong { color: #39475a; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.preview-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line-soft); border-radius: 20px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 500; }
.preview-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--action); }
.topbar-date { color: var(--muted); font-size: 11px; }
.mobile-menu { display: none; color: #46546a; }
.dashboard { width: min(100%, 1360px); margin: 0 auto; padding: 31px 38px 22px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 5px; color: var(--ink); font: 600 26px/1.2 var(--font-family); letter-spacing: -.04em; }
.page-description { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.page-title-count { display: inline-block; margin-left: 8px; color: var(--muted); font-size: .62em; font-weight: 450; letter-spacing: 0; vertical-align: baseline; }
.demo-notice { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; font-size: 10px; white-space: nowrap; }
.demo-notice svg { width: 15px; height: 15px; fill: none; stroke: #8b99ad; stroke-width: 1.6; stroke-linecap: round; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.stat-card { min-width: 0; min-height: 122px; padding: 16px 17px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.stat-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 8px; }
.stat-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon-blue { color: var(--action-dark); background: var(--action-soft); }
.stat-icon-amber { color: var(--amber-dark); background: var(--amber-soft); }
.stat-icon-violet { color: var(--violet-dark); background: var(--violet-soft); }
.stat-icon-green { color: var(--wallet-dark); background: var(--wallet-soft); }
.stat-value { display: block; margin: 13px 0 3px; color: var(--ink); font: 600 23px/1.1 var(--font-family); letter-spacing: -.035em; }
.stat-detail { color: var(--muted); font-size: 10px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(280px, .95fr); gap: 13px; margin-top: 14px; }
.surface { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.activity-surface, .ai-surface, .leads-surface, .attention-surface, .categories-surface { padding: 17px 18px; }
.surface-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.surface-heading h2 { margin: 0 0 4px; color: var(--ink); font: 600 13px/1.3 var(--font-family); letter-spacing: -.015em; }
.surface-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.period-label, .table-caption { padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 6px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.chart-summary { display: flex; align-items: baseline; gap: 7px; margin-top: 17px; }
.chart-summary > strong { color: var(--ink); font: 600 21px/1 var(--font-family); letter-spacing: -.03em; }
.chart-summary > span:not(.summary-change) { color: var(--muted); font-size: 10px; }
.summary-change { display: inline-flex; align-items: center; align-self: center; gap: 4px; margin-left: 4px; padding: 3px 7px; border: 1px solid color-mix(in srgb, var(--wallet-dark) 22%, var(--line)); border-radius: 999px; color: var(--wallet-dark); background: var(--wallet-soft); font-size: 10px; font-weight: 600; line-height: 1; white-space: nowrap; }
.summary-change svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bar-chart { display: grid; height: 126px; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.chart-column { display: grid; min-width: 0; grid-template-rows: 1fr 18px; gap: 7px; }
.bar-track { position: relative; display: flex; height: 100%; align-items: flex-end; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: repeating-linear-gradient(to bottom, transparent 0, transparent 30px, color-mix(in srgb, var(--line) 30%, white) 31px, transparent 32px); }
.bar-fill { width: min(25px, 65%); height: var(--bar-height); border-radius: 5px 5px 2px 2px; background: var(--action-soft); transition: height .25s ease; }
.bar-fill.is-highlight { background: var(--action); }
.chart-day { color: var(--muted); font-size: 9px; text-align: center; }
.chart-legend { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 9px; }
.chart-legend span { width: 7px; height: 7px; border-radius: 2px; background: var(--action); }
.ai-surface { display: flex; flex-direction: column; }
.ai-mark { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; color: var(--violet-dark); background: var(--violet-soft); }
.ai-mark svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai-status-line { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 20px; }
.status-indicator { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 3px; border-radius: 50%; }
.status-indicator.is-pending { background: var(--amber-dark); box-shadow: 0 0 0 4px var(--amber-soft); }
.status-indicator.is-ready { background: var(--wallet-dark); box-shadow: 0 0 0 4px var(--wallet-soft); }
.ai-status-line > div { display: grid; gap: 5px; }
.ai-status-line strong { color: #354255; font-size: 11px; font-weight: 500; }
.ai-status-line span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.ai-divider { height: 1px; background: var(--line-soft); }
.ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 15px; color: var(--muted); font-size: 10px; }
.status-tag { padding: 5px 7px; border-radius: 5px; color: var(--amber-dark); background: var(--amber-soft); font-size: 9px; font-weight: 500; white-space: nowrap; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(280px, .95fr); gap: 13px; margin-top: 14px; }
.table-caption { color: var(--muted); }
.lead-list { margin-top: 13px; }
.lead-row { display: grid; min-height: 53px; grid-template-columns: 31px minmax(100px, 1fr) auto auto; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); }
.lead-avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: var(--action-dark); background: var(--action-soft); font-size: 9px; font-weight: 600; }
.lead-avatar-2 { color: var(--orange-dark); background: var(--orange-soft); }
.lead-avatar-3 { color: var(--wallet-dark); background: var(--wallet-soft); }
.lead-avatar-4 { color: var(--violet-dark); background: var(--violet-soft); }
.lead-main { display: grid; min-width: 0; gap: 4px; }
.lead-main strong { overflow: hidden; color: #354255; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lead-main > span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.meta-separator { padding: 0 2px; }
.temperature { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 20px; font-size: 9px; font-weight: 500; white-space: nowrap; }
.temperature > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.temperature-hot { color: var(--danger-dark); background: var(--danger-soft); }
.temperature-warm { color: var(--amber-dark); background: var(--amber-soft); }
.temperature-review { color: var(--action-dark); background: var(--action-soft); }
.lead-age { min-width: 47px; color: var(--muted); font-size: 9px; text-align: right; white-space: nowrap; }
.surface-footnote { margin-top: 5px; padding-top: 11px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 9px; line-height: 1.5; }
.attention-count { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--action-dark); background: var(--action-soft); font-size: 10px; font-weight: 600; }
.attention-list { margin-top: 12px; }
.attention-row { display: flex; min-height: 58px; align-items: center; gap: 9px; border-top: 1px solid var(--line-soft); }
.attention-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 8px; }
.attention-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.attention-icon-review { color: var(--action-dark); background: var(--action-soft); }
.attention-icon-expiry { color: var(--amber-dark); background: var(--amber-soft); }
.attention-icon-safety { color: var(--danger-dark); background: var(--danger-soft); }
.attention-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.attention-copy strong { overflow: hidden; color: #465368; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.attention-copy span { color: var(--muted); font-size: 9px; }
.attention-number { color: var(--muted); font: 600 11px var(--font-family); }
.categories-surface { margin-top: 14px; }
.category-list { display: grid; gap: 15px; margin-top: 19px; }
.category-row { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(100px, 2fr) minmax(76px, auto); align-items: center; gap: 14px; }
.category-name { overflow: hidden; color: #4b5665; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.category-bar { height: 6px; overflow: hidden; border-radius: 10px; background: var(--surface-soft); }
.category-bar-fill { display: block; width: var(--category-share); height: 100%; border-radius: inherit; }
.category-bar-blue { background: var(--action); }
.category-bar-violet { background: var(--violet); }
.category-bar-green { background: var(--wallet); }
.category-count { color: #465061; font-size: 10px; font-weight: 500; text-align: right; white-space: nowrap; }
.category-count span { color: var(--muted); font-size: 9px; font-weight: 450; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 2px 0; color: var(--muted); font-size: 9px; }
.page-footer.platform-signature { position: fixed; z-index: 15; right: 0; bottom: 0; left: 258px; min-height: 48px; align-items: center; flex-direction: row; justify-content: flex-end; padding: 12px 28px; border-top: 1px solid var(--line); color: color-mix(in srgb, var(--muted) 54%, var(--line)); background: var(--canvas); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-align: right; }
.footer-dot { padding: 0 3px; }
.sidebar-backdrop { display: none; }

@media (min-width: 1500px) {
  .dashboard { padding-right: 50px; padding-left: 50px; }
  .topbar { padding-right: 50px; padding-left: 50px; }
}

@media (max-width: 1150px) {
  .sidebar { width: 246px; }
  .main-column { margin-left: 246px; }
  .page-footer.platform-signature { left: 246px; }
  .topbar { padding-right: 25px; padding-left: 25px; }
  .dashboard { padding-right: 25px; padding-left: 25px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .sidebar { width: 258px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 18px 0 40px rgb(20 33 52 / 13%); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid; color: var(--muted); }
  .sidebar-backdrop { position: fixed; z-index: 30; inset: 0; display: block; background: rgb(20 31 48 / 40%); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-backdrop.is-visible { opacity: 1; pointer-events: auto; }
  .main-column { margin-left: 0; }
  .page-footer.platform-signature { left: 0; }
  .mobile-menu { display: grid; margin-left: -7px; }
  .topbar { justify-content: flex-start; gap: 13px; padding: 0 20px; }
  .topbar-right { margin-left: auto; }
  .topbar-date { display: none; }
  .dashboard { padding: 27px 20px 20px; }
}

@media (max-width: 650px) {
  .topbar { height: 56px; padding-right: 14px; padding-left: 14px; }
  .breadcrumb { gap: 6px; font-size: 10px; }
  .topbar-right { gap: 0; }
  .preview-pill { padding: 6px 8px; font-size: 9px; }
  .dashboard { padding: 24px 15px 17px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  h1 { font-size: 23px; }
  .page-description { font-size: 11px; }
  .demo-notice { padding: 6px 8px; }
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 111px; padding: 13px 12px 12px; }
  .stat-label { max-width: calc(100% - 36px); font-size: 9px; }
  .stat-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .stat-value { margin-top: 12px; font-size: 20px; }
  .stat-detail { font-size: 9px; }
  .overview-grid, .lower-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
  .activity-surface, .ai-surface, .leads-surface, .attention-surface, .categories-surface { padding: 15px 14px; }
  .ai-status-line { margin: 18px 0 16px; }
  .lower-grid { margin-top: 10px; }
  .lead-row { grid-template-columns: 29px minmax(0, 1fr) auto; gap: 8px; }
  .lead-age { display: none; }
  .temperature { padding: 5px 6px; font-size: 8px; }
  .category-row { grid-template-columns: minmax(115px, .9fr) minmax(50px, 1fr) auto; gap: 8px; }
  .category-name { font-size: 9px; }
  .category-count { font-size: 9px; }
  .category-count span { display: none; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 6px; padding-top: 15px; }
  .page-footer.platform-signature { padding-right: 14px; padding-left: 14px; }
}

@media (max-width: 370px) {
  .dashboard { padding-right: 11px; padding-left: 11px; }
  .stats-grid { gap: 7px; }
  .stat-card { padding-right: 9px; padding-left: 9px; }
  .stat-label { font-size: 8px; }
  .stat-value { font-size: 18px; }
  .lead-main strong { font-size: 9px; }
  .temperature { gap: 4px; padding-right: 5px; padding-left: 5px; font-size: 7px; }
}

/* Tipografia e ícones com leitura mais confortável. */
.brand-symbol svg { width: 33px; height: 33px; }
.brand-name { font-size: 18px; }
.brand-caption, .nav-label { font-size: 10px; }
.nav-item { font-size: 14px; }
.nav-item svg { width: 19px; height: 19px; flex-basis: 19px; stroke-width: 1.7; }
.nav-count { min-width: 24px; height: 22px; font-size: 12px; }
.environment-icon svg { width: 19px; height: 19px; stroke-width: 1.9; }
.environment-card strong { font-size: 12px; }
.environment-card span { font-size: 10px; }
.account-copy strong { font-size: 12px; }
.account-copy span { font-size: 10px; }
.icon-button svg { width: 20px; height: 20px; stroke-width: 1.9; }
.breadcrumb { font-size: 13px; }
.preview-pill { font-size: 11px; }
.topbar-date { font-size: 12px; }
.eyebrow { font-size: 11px; }
h1 { font-size: 31px; }
.page-description { font-size: 14px; }
.demo-notice { font-size: 12px; }
.demo-notice svg { width: 17px; height: 17px; }
.stat-card { min-height: 132px; padding: 17px 18px 15px; }
.stat-label { font-size: 12px; }
.stat-icon { width: 33px; height: 33px; flex-basis: 33px; }
.stat-icon svg { width: 19px; height: 19px; stroke-width: 1.9; }
.stat-value { margin-top: 14px; font-size: 27px; }
.stat-detail { font-size: 12px; }
.surface-heading h2 { font-size: 16px; }
.surface-heading p { font-size: 12px; }
.period-label, .table-caption { font-size: 10px; }
.chart-summary > strong { font-size: 24px; }
.chart-summary > span:not(.summary-change) { font-size: 12px; }
.summary-change { font-size: 11px; }
.summary-change svg { width: 16px; height: 16px; }
.chart-day, .chart-legend { font-size: 11px; }
.ai-mark { width: 34px; height: 34px; flex-basis: 34px; }
.ai-mark svg { width: 20px; height: 20px; stroke-width: 1.9; }
.ai-status-line strong { font-size: 13px; }
.ai-status-line span { font-size: 12px; }
.ai-foot { font-size: 12px; }
.status-tag { font-size: 10px; }
.lead-row { min-height: 58px; }
.lead-avatar { width: 32px; height: 32px; font-size: 10px; }
.lead-main strong { font-size: 12px; }
.lead-main > span { font-size: 11px; }
.temperature { font-size: 10px; }
.lead-age { font-size: 10px; }
.surface-footnote { font-size: 10px; }
.attention-count { width: 27px; height: 27px; font-size: 12px; }
.attention-row { min-height: 63px; }
.attention-icon { width: 32px; height: 32px; flex-basis: 32px; }
.attention-icon svg { width: 18px; height: 18px; stroke-width: 1.9; }
.attention-copy strong { font-size: 12px; }
.attention-copy span { font-size: 11px; }
.attention-number { font-size: 13px; }
.category-list { gap: 17px; }
.category-name, .category-count { font-size: 12px; }
.category-count span { font-size: 10px; }
.page-footer { font-size: 10px; }

@media (max-width: 850px) {
  .breadcrumb { font-size: 12px; }
  .preview-pill { font-size: 10px; }
}

@media (max-width: 650px) {
  .breadcrumb { font-size: 11px; }
  .preview-pill { font-size: 9px; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: 25px; }
  .page-description { font-size: 13px; }
  .demo-notice { font-size: 11px; }
  .stat-card { min-height: 118px; padding: 13px 12px 12px; }
  .stat-label { font-size: 11px; }
  .stat-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .stat-icon svg { width: 18px; height: 18px; }
  .stat-value { margin-top: 12px; font-size: 22px; }
  .stat-detail { font-size: 10px; }
  .surface-heading h2 { font-size: 15px; }
  .surface-heading p { font-size: 11px; }
  .period-label, .table-caption { font-size: 9px; }
  .chart-summary > strong { font-size: 22px; }
  .chart-summary > span:not(.summary-change), .chart-legend { font-size: 11px; }
  .chart-day { font-size: 10px; }
  .ai-status-line strong { font-size: 12px; }
  .ai-status-line span, .ai-foot { font-size: 11px; }
  .status-tag { font-size: 9px; }
  .lead-row { min-height: 58px; }
  .lead-main strong { font-size: 11px; }
  .lead-main > span { font-size: 10px; }
  .temperature { font-size: 9px; }
  .attention-copy strong { font-size: 11px; }
  .attention-copy span { font-size: 10px; }
  .category-name, .category-count { font-size: 10px; }
  .category-count span { font-size: 9px; }
  .page-footer { font-size: 10px; }
}

@media (max-width: 370px) {
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 20px; }
  .stat-detail { font-size: 9px; }
  .lead-main strong { font-size: 10px; }
  .temperature { font-size: 8px; }
  .category-name, .category-count { font-size: 9px; }
}

/* Identidade da GCAPTAL e desenho coerente para os ícones. */
:root {
  --nav: #ffffff;
  --nav-muted: #4d5968;
  --nav-active: var(--action-soft);
}
.brand { gap: 10px; padding-bottom: 24px; }
.brand-logo { display: block; width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; }
.admin-brand-logo { width: 100%; max-width: 150px; height: 32px; flex: 1 1 150px; margin-left: -12px; object-position: left center; }
.sidebar:not(.account-sidebar) { border-right: 1px solid var(--line); box-shadow: none; }
.sidebar:not(.account-sidebar) .brand { padding-bottom: 16px; }
.sidebar:not(.account-sidebar) .brand-name { color: #1f2b3b; }
.sidebar:not(.account-sidebar) .brand-caption { color: var(--muted); }
.sidebar:not(.account-sidebar) .nav-label { color: var(--muted); }
.sidebar:not(.account-sidebar) .nav-item { color: var(--muted); }
.sidebar:not(.account-sidebar) .nav-item.is-active { color: var(--action-dark); background: var(--nav-active); }
.sidebar:not(.account-sidebar) .nav-item.is-active::before { display: none; }
.sidebar:not(.account-sidebar) .sidebar-close { color: var(--muted); }
.nav-item.is-active::before { background: var(--action); }
.nav-count { color: var(--muted); background: var(--surface-soft); }
.nav-count-warm { color: var(--amber-dark); background: var(--amber-soft); }
.sidebar:not(.account-sidebar) .environment-card { border-color: var(--line); background: var(--surface-soft); }
.sidebar:not(.account-sidebar) .environment-icon { color: var(--action-dark); background: var(--action-soft); }
.sidebar:not(.account-sidebar) .environment-card strong { color: #34445a; }
.sidebar:not(.account-sidebar) .environment-card span { color: var(--muted); }
.sidebar:not(.account-sidebar) .environment-pulse { box-shadow: 0 0 0 3px var(--wallet-soft); }
.sidebar:not(.account-sidebar) .account-row { border-top-color: var(--line); }
.sidebar:not(.account-sidebar) .account-avatar { border-color: var(--line); color: var(--action-dark); background: var(--action-soft); }
.sidebar:not(.account-sidebar) .account-copy strong { color: #1f2b3b; }
.sidebar:not(.account-sidebar) .account-copy span { color: var(--muted); }
.nav-item svg,
.stat-icon svg,
.ai-mark svg,
.attention-icon svg,
.environment-icon svg,
.icon-button svg,
.summary-change svg,
.demo-notice svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shared theme hooks used by every admin and account page. */
html, body, .main-column { background-color: var(--canvas); }
.dashboard h1, .dashboard h2, .dashboard h3, .dashboard h4 { color: var(--ink); }
.dashboard :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select) { color: var(--ink); }
.dashboard :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select):focus,
.dashboard :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select):focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.dashboard :is(button, a, input, textarea, select):focus-visible { outline-color: var(--action); }
.nav-item svg { width: 20px; height: 20px; flex-basis: 20px; }
.stat-icon svg { width: 20px; height: 20px; }
.ai-mark svg { width: 21px; height: 21px; }
.attention-icon svg { width: 19px; height: 19px; }
.environment-icon svg, .icon-button svg { width: 20px; height: 20px; }
.summary-change svg { width: 16px; height: 16px; }
.demo-notice svg { width: 17px; height: 17px; }

@media (max-width: 650px) {
  .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .nav-item svg { width: 20px; height: 20px; flex-basis: 20px; }
  .stat-icon svg { width: 19px; height: 19px; }
}

/* Leitura da área principal: escala compartilhada entre as duas visões. */
.nav-item.is-active::before { display: none; }
.main-column .breadcrumb { font-size: 14px; }
.main-column .preview-pill { font-size: 12px; }
.main-column .topbar-date { font-size: 13px; }
.dashboard .eyebrow { font-size: 12px; }
.dashboard h1 { font-size: 33px; }
.dashboard .page-description { font-size: 15px; }
.dashboard .demo-notice { font-size: 13px; }
.dashboard .stat-card {
  position: relative;
  min-height: 142px;
  padding: 19px 20px 17px;
  border-color: var(--line);
  border-radius: 13px;
  box-shadow: 0 3px 12px rgb(30 45 68 / 4%);
}
.dashboard .stat-card-top { min-height: 24px; align-items: flex-start; padding-right: 48px; }
.dashboard .stat-label { font-size: 14px; font-weight: 500; }
.dashboard .stat-icon { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
.dashboard .stat-icon svg { width: 22px; height: 22px; stroke-width: 1.9; }
.dashboard .stat-value { margin-top: 8px; font-size: 30px; }
.dashboard .stat-detail { font-size: 13px; }
.dashboard .surface-heading h2 { font-size: 18px; }
.dashboard .surface-heading p { font-size: 13px; }
.dashboard .period-label, .dashboard .table-caption { font-size: 11px; }
.dashboard .chart-summary > strong { font-size: 26px; }
.dashboard .chart-summary > span:not(.summary-change),
.dashboard .chart-legend { font-size: 12px; }
.dashboard .chart-day { font-size: 12px; }
.dashboard .summary-change { font-size: 12px; }
.dashboard .ai-status-line strong { font-size: 14px; }
.dashboard .ai-status-line span, .dashboard .ai-foot { font-size: 13px; }
.dashboard .status-tag { font-size: 11px; }
.dashboard .lead-row { min-height: 62px; }
.dashboard .lead-main strong { font-size: 13px; }
.dashboard .lead-main > span { font-size: 12px; }
.dashboard .temperature { font-size: 11px; }
.dashboard .lead-age { font-size: 11px; }
.dashboard .surface-footnote { font-size: 11px; }
.dashboard .attention-copy strong { font-size: 13px; }
.dashboard .attention-copy span { font-size: 12px; }
.dashboard .attention-number { font-size: 14px; }
.dashboard .category-name, .dashboard .category-count { font-size: 13px; }
.dashboard .category-count span { font-size: 11px; }
.dashboard .page-footer { font-size: 11px; }
.dashboard .lead-row { grid-template-columns: 31px minmax(100px, 1fr) auto; }
.overview-empty-message { margin: 0; padding: 15px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.lead-list .overview-empty-message { border-top: 1px solid var(--line-soft); }

@media (max-width: 650px) {
  .main-column .breadcrumb { font-size: 12px; }
  .main-column .preview-pill { font-size: 10px; }
  .dashboard .eyebrow { font-size: 11px; }
  .dashboard h1 { font-size: 28px; }
  .dashboard .page-description { font-size: 14px; }
  .dashboard .demo-notice { font-size: 12px; }
  .dashboard .stat-card { min-height: 128px; padding: 15px 14px 13px; }
  .dashboard .stat-card-top { min-height: 22px; padding-right: 42px; }
  .dashboard .stat-label { font-size: 13px; white-space: normal; }
  .dashboard .stat-icon { top: 14px; right: 14px; width: 34px; height: 34px; flex-basis: 34px; }
  .dashboard .stat-icon svg { width: 20px; height: 20px; }
  .dashboard .stat-value { margin-top: 7px; font-size: 25px; }
  .dashboard .stat-detail { font-size: 11px; }
  .dashboard .surface-heading h2 { font-size: 17px; }
  .dashboard .surface-heading p { font-size: 12px; }
  .dashboard .period-label, .dashboard .table-caption { font-size: 10px; }
  .dashboard .chart-day { font-size: 11px; }
  .dashboard .lead-main strong { font-size: 12px; }
  .dashboard .lead-main > span { font-size: 11px; }
  .dashboard .temperature { font-size: 9px; }
  .dashboard .attention-copy strong { font-size: 12px; }
  .dashboard .attention-copy span { font-size: 11px; }

  .dashboard .category-name, .dashboard .category-count { font-size: 11px; }
  .dashboard .category-count span { font-size: 10px; }
  .dashboard .page-footer { font-size: 11px; }
}

@media (max-width: 370px) {
  .dashboard .stat-card { padding-right: 11px; padding-left: 11px; }
  .dashboard .stat-icon { right: 11px; }
  .dashboard .stat-label { font-size: 12px; }
  .dashboard .stat-value { font-size: 22px; }
  .dashboard .stat-detail { font-size: 10px; }
}

/* Ícones da navegação com traço mais leve, nas duas áreas do produto. */
.nav-item svg { stroke-width: 1.45; }

/* Responsive layout preview controls shared across the platform. */
.is-device-preview .topbar .preview-pill { display: none; }
.device-preview-control { display: inline-flex; min-height: 38px; align-items: center; gap: 9px; padding: 3px 5px 3px 10px; border: 1px solid var(--line-soft); border-radius: 22px; color: var(--muted); background: var(--surface-soft); }
.device-preview-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.device-preview-options { display: inline-flex; align-items: center; gap: 2px; padding-left: 6px; border-left: 1px solid var(--line); }
.device-preview-button { display: grid; width: 29px; height: 29px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.device-preview-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.device-preview-button[aria-pressed="true"]{ color: var(--action-dark); background: var(--action-soft); }
.device-preview-button:focus-visible, .device-preview-choice:focus-visible, .device-preview-close:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.device-preview-open { overflow: hidden; }
.device-preview-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(19 30 45 / 58%); }
.device-preview-overlay[hidden] { display: none; }
.device-preview-dialog { display: flex; width: min(100%, 1320px); height: min(920px, calc(100dvh - 40px)); min-height: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); box-shadow: 0 24px 80px rgb(0 0 0 / 24%); }
.device-preview-toolbar { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.device-preview-heading { display: inline-flex; min-width: 175px; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; }
.device-preview-heading strong { font-weight: 600; }
.device-preview-toolbar-options { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.device-preview-choice { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 500; cursor: pointer; }
.device-preview-choice svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.device-preview-choice[aria-pressed="true"]{ border-color: color-mix(in srgb, var(--action) 24%, white); color: var(--action-dark); background: var(--action-soft); }
.device-preview-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: var(--surface-soft); cursor: pointer; }
.device-preview-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.device-preview-viewport { display: flex; min-height: 0; flex: 1; align-items: flex-start; justify-content: center; overflow: auto; padding: 18px; background: #eef1f5; }
.device-preview-frame { display: block; flex: 0 0 auto; border: 1px solid #c7cdd6; border-radius: 10px; background: #fff; box-shadow: 0 8px 30px rgb(24 39 61 / 15%); }

@media (max-width: 650px) {
  .device-preview-control { min-height: 36px; gap: 5px; padding: 2px 4px; }
  .device-preview-label { display: none; }
  .device-preview-options { padding-left: 0; border-left: 0; }
  .device-preview-button { width: 27px; height: 27px; }
  .device-preview-dialog { height: calc(100dvh - 16px); border-radius: 12px; }
  .device-preview-overlay { padding: 8px; }
  .device-preview-toolbar { min-height: 56px; gap: 5px; padding: 7px 9px; }
  .device-preview-heading { min-width: 0; font-size: 11px; }
  .device-preview-choice { min-height: 33px; gap: 4px; padding: 0 6px; font-size: 10px; }
  .device-preview-choice svg { width: 15px; height: 15px; }
  .device-preview-close { width: 30px; height: 30px; flex-basis: 30px; }
  .device-preview-viewport { padding: 10px; }
}

/* Indicadores da visão geral em faixa rolável nos tamanhos de celular e tablet. */
@media (max-width: 850px) {
  .dashboard .stats-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
  }

  .dashboard .stats-grid::-webkit-scrollbar {
    display: none;
  }

  .dashboard .stats-grid > .stat-card {
    flex: 0 0 clamp(250px, 40vw, 320px);
  }
}

@media (max-width: 650px) {
  .dashboard .stats-grid > .stat-card {
    flex-basis: min(300px, calc(100vw - 44px));
  }
}

/* Cartões compactos nas visões gerais em tablet e celular. */
@media (min-width: 651px) and (max-width: 850px) {
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card {
    min-height: 102px;
    padding: 12px 15px 10px;
  }
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card .stat-card-top {
    min-height: 18px;
    padding-right: 39px;
  }
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card .stat-icon {
    top: 11px;
    right: 13px;
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card .stat-value {
    margin: 4px 0 2px;
    font-size: 26px;
  }
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card .stat-detail { line-height: 1.25; }
}

@media (max-width: 650px) {
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card {
    min-height: 94px;
    padding: 10px 12px 9px;
  }
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card .stat-card-top {
    min-height: 18px;
    padding-right: 36px;
  }
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card .stat-icon {
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card .stat-value {
    margin: 3px 0 2px;
    font-size: 24px;
  }
  .dashboard:not(.account-dashboard) > .stats-grid[aria-label="Indicadores principais"] > .stat-card .stat-detail { line-height: 1.2; }
}
