/* ============ Belmont design system (from Design/Leads Pipeline.dc.html) ============ */
:root {
  --navy-900: #0A1F3C;
  --navy-800: #0E2B52;
  --navy-600: #1D3E6E;
  --navy-500: #274B80;
  --cream-100: #F3E9D2;
  --bg: #F5EFE4;
  --card: #FFFDF8;
  --card-alt: #FBF8F2;
  --border: #EAE2D2;
  --border-strong: #CFC5B0;
  --text: #211D15;
  --muted: #6B6355;
  --orange: #F5821F;
  --orange-hover: #E67312;
  --green: #2F6E4F;
  --red: #A63A2B;
  --amber: #A85A0A;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 14px;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============ brand ============ */
.brand { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .14em; color: var(--cream-100); }
.brand-bar { width: 32px; height: 3px; border-radius: 2px; background: var(--orange); }
.brand-lg .brand-name { font-size: 22px; }
.brand-lg .brand-bar { width: 44px; }

/* ============ login ============ */
.login {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 400px; background: var(--card);
  border-radius: 16px; padding: 36px 34px 30px;
  box-shadow: 0 24px 60px rgba(4, 14, 30, .45);
  display: flex; flex-direction: column; gap: 14px;
}
.login-card .brand-name { color: var(--navy-800); }
.login-card h1 { margin: 6px 0 0; font-size: 20px; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
.login-sub { margin: 0 0 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.login-card input {
  height: 42px; border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 0 13px; font-size: 14px; background: #fff; color: var(--text);
}
.login-card input:focus { outline: 2px solid var(--navy-600); outline-offset: 0; border-color: var(--navy-600); }
.login-error { font-size: 12.5px; font-weight: 600; color: var(--red); background: rgba(166,58,43,.08); border-radius: 8px; padding: 9px 12px; }

/* ============ buttons ============ */
.btn { border: none; border-radius: 9px; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.btn-orange { background: var(--orange); color: var(--navy-900); font-weight: 700; }
.btn-orange:hover { background: var(--orange-hover); }
.btn-orange:disabled { opacity: .45; cursor: default; }
.btn-navy { background: var(--navy-600); color: var(--cream-100); }
.btn-navy:hover { background: var(--navy-500); }
.btn-ghost { background: var(--card); border: 1px solid var(--border-strong); color: var(--navy-600); }
.btn-ghost:hover { background: var(--card-alt); }
.btn-block { width: 100%; height: 44px; font-size: 14.5px; }

/* ============ topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-800); height: 60px;
  display: flex; align-items: center; gap: 18px; padding: 0 28px;
}
.topbar-sep { width: 1px; height: 24px; background: var(--navy-600); }
.topbar-app { font-size: 13px; font-weight: 700; color: var(--cream-100); opacity: .9; }
.topnav { display: flex; gap: 6px; margin-left: 8px; }
.nav-btn {
  background: transparent; border: none; padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: rgba(243,233,210,.6);
}
.nav-btn.active { font-weight: 700; color: var(--cream-100); background: var(--navy-600); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.updated { font-size: 12px; color: rgba(243,233,210,.55); }
.userchip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(243,233,210,.08); border-radius: 999px; padding: 4px 10px 4px 4px;
  color: var(--cream-100); font-size: 12.5px; font-weight: 600;
}
.avatar {
  width: 26px; height: 26px; border-radius: 999px; background: var(--cream-100);
  color: var(--navy-800); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.userchip button { background: none; border: none; color: rgba(243,233,210,.6); font-size: 14px; padding: 2px 4px; }
.userchip button:hover { color: var(--cream-100); }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(14,43,82,.18); min-width: 190px; overflow: hidden;
}
.menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 11px 15px; font-size: 13px; color: var(--text); }
.menu button:hover { background: var(--bg); }

/* ============ page ============ */
.view { padding: 24px 32px 48px; max-width: 1440px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
.scope-note { font-size: 12px; color: var(--muted); }

/* ============ stats ============ */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 16px 0 4px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-dark { background: var(--navy-800); border-color: var(--navy-800); }
.stat-dark .stat-label { color: rgba(243,233,210,.75); }
.stat-dark .stat-value { color: var(--cream-100); }
.dot { width: 7px; height: 7px; border-radius: 99px; display: inline-block; }
.dot-red { background: var(--red); } .dot-green { background: var(--green); }

/* ============ funnel chips ============ */
.funnel { display: flex; align-items: center; gap: 8px; padding: 18px 0 0; flex-wrap: wrap; }
.funnel-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.funnel-chip {
  font-size: 12.5px; font-weight: 600; background: var(--card);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; color: var(--text);
}
.funnel-chip .n { color: var(--muted); font-weight: 500; margin-left: 4px; }
.funnel-chip.active { font-weight: 700; background: var(--navy-800); border-color: var(--navy-800); color: var(--cream-100); }
.funnel-chip.active .n { color: rgba(243,233,210,.7); }
.funnel-chip.dashed { background: transparent; border-style: dashed; color: var(--muted); }
.funnel-chip.dashed.active { background: var(--navy-800); border-style: solid; color: var(--cream-100); }
.funnel-sep { color: var(--border-strong); font-size: 12px; }
.funnel-div { width: 1px; height: 22px; background: var(--border); margin: 0 8px; }

/* ============ toolbar ============ */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 16px 0; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; max-width: 380px; }
.search input {
  width: 100%; height: 40px; background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 0 14px; font-size: 13px; color: var(--text);
}
.chips { display: flex; gap: 6px; }
.chip {
  font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 7px 13px; color: var(--muted); opacity: .55;
}
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 99px; }
.chip-quente::before { background: var(--red); }
.chip-morno::before { background: var(--amber); }
.chip-frio::before { background: var(--navy-600); }
.chip.active { opacity: 1; color: var(--text); }
.chip-quente.active { background: rgba(166,58,43,.08); border-color: var(--red); color: var(--red); }
.check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.select {
  height: 38px; background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 0 10px; font-size: 12.5px; color: var(--text);
}

/* ============ lead cards ============ */
.cards { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.lead {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; display: grid;
  grid-template-columns: 290px 205px 175px 1fr 220px; gap: 20px; align-items: center;
}
.lead.done { background: var(--bg); opacity: .92; }
.lead-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lead-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead-name { font-size: 15.5px; font-weight: 700; color: var(--navy-900); }
.badge { font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.badge-quente { color: #FBF8F2; background: var(--red); }
.badge-morno { color: var(--amber); background: rgba(168,90,10,.1); }
.badge-frio { color: var(--navy-600); background: rgba(29,62,110,.08); }
.badge-vendido { color: #FBF8F2; background: var(--green); }
.badge-descartado { color: #FBF8F2; background: var(--muted); }
.badge-canal { color: var(--navy-600); background: rgba(29,62,110,.08); font-weight: 800; }
.badge-ig { color: #fff; background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.lead-contact { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.copy-btn { background: none; border: none; color: var(--navy-600); font-size: 11.5px; font-weight: 600; padding: 0; }
.copy-btn:hover { text-decoration: underline; }
.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill { font-size: 10.5px; font-weight: 600; border-radius: 99px; padding: 3px 9px; background: var(--bg); color: var(--muted); }
.pill-wait { background: rgba(166,58,43,.08); color: var(--red); }
.pill-ok { background: rgba(47,110,79,.09); color: var(--green); }
.lead-prod { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lead-prod-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.lead-prod-sku, .lead-prod-cat { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lead-agent { display: flex; flex-direction: column; gap: 5px; }
.agent-row { display: flex; align-items: center; gap: 7px; }
.agent-avatar { width: 22px; height: 22px; border-radius: 99px; background: var(--navy-800); color: var(--cream-100); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.agent-name { font-size: 13px; font-weight: 600; }
.agent-meta { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ia-badge { font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 3px 9px; width: fit-content; }
.ia-good { color: var(--green); background: rgba(47,110,79,.09); }
.ia-mid { color: var(--amber); background: rgba(168,90,10,.1); }
.ia-bad { color: var(--red); background: rgba(166,58,43,.08); }
.lead-ctx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lead-ctx-text {
  font-size: 12.5px; color: var(--text); line-height: 1.45; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.lead-ctx-when { font-size: 11px; color: var(--muted); }
.lead-actions { display: flex; gap: 7px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.done-check { font-size: 12.5px; font-weight: 700; color: var(--green); }
.load-more-wrap { display: flex; justify-content: center; padding: 16px 0; }

/* ============ fila ============ */
.fila-hero {
  background: var(--navy-800); border-radius: 16px; padding: 26px 28px;
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px;
}
.fila-hero h1 { margin: 0; font-size: 24px; font-weight: 800; color: var(--cream-100); letter-spacing: -.01em; }
.fila-hero p { margin: 0; font-size: 13px; color: rgba(243,233,210,.65); }
.fila-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fila-chip { font-size: 12px; font-weight: 600; color: rgba(243,233,210,.85); background: var(--navy-600); border-radius: 999px; padding: 7px 13px; }
.fila-chip.hot { font-weight: 700; color: var(--navy-900); background: var(--cream-100); }
.fila-cards, .fila-ig { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.fila-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.fila-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fila-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fila-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fila-name { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.fila-prod { font-size: 12.5px; color: var(--muted); }
.fila-wait { text-align: right; }
.fila-wait-big { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--red); }
.fila-wait-big.cool { color: var(--navy-800); }
.fila-wait-label { font-size: 10.5px; color: var(--muted); }
.fila-quote { margin: 10px 0 12px; font-size: 12.5px; color: var(--text); line-height: 1.45; background: var(--bg); border-radius: 10px; padding: 9px 12px; }
.fila-btns { display: flex; gap: 8px; }
.fila-btns .btn { height: 44px; }
.fila-btns .grow { flex: 1; }
.fila-section { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--navy-900); padding: 14px 2px 2px; }
.fila-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 13.5px; }

/* ============ métricas ============ */
.m-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 16px 0 4px; }
.m-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.m-kpi .l { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.m-kpi .row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.m-kpi .v { font-size: 26px; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.delta { font-size: 11.5px; font-weight: 700; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); } .delta.flat { color: var(--muted); }
.m-grid { display: grid; grid-template-columns: 430px 1fr; gap: 12px; padding: 12px 0 0; }
.m-grid3 { display: grid; grid-template-columns: 1fr 1fr 430px; gap: 12px; padding: 12px 0 0; }
.m-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.m-card h2 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--navy-900); }
.m-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.m-card-head .sub { font-size: 11px; color: var(--muted); }
.m-dark { background: var(--navy-800); border-color: var(--navy-800); display: flex; flex-direction: column; gap: 13px; }
.m-dark h2 { color: var(--cream-100); }
.hl { display: flex; gap: 10px; align-items: flex-start; }
.hl-dot { width: 8px; height: 8px; border-radius: 99px; flex: none; margin-top: 5px; }
.hl p { margin: 0; font-size: 12.5px; color: var(--cream-100); line-height: 1.5; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin-top: 22px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; }
.pod .pav { width: 40px; height: 40px; border-radius: 99px; background: var(--navy-600); color: var(--cream-100); font-size: 15px; font-weight: 800; display: grid; place-items: center; }
.pod.first .pav { width: 48px; height: 48px; background: var(--navy-800); outline: 3px solid var(--orange); outline-offset: 2px; }
.pod .pname { font-size: 13px; font-weight: 700; color: var(--navy-900); text-align: center; }
.pod .pinfo { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.pod .pbar {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px 10px 0 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.pod.first .pbar { background: var(--navy-800); border-color: var(--navy-800); }
.pod .prank { font-size: 22px; font-weight: 800; color: var(--navy-600); }
.pod.first .prank { font-size: 26px; color: var(--cream-100); }
.pod .pdelta { font-size: 10.5px; font-weight: 700; }
.podium-foot { border-top: 1px solid var(--border); margin-top: 0; padding-top: 12px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.mbar-pairs { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; height: 190px; margin-top: 18px; border-bottom: 2px solid var(--border); padding: 0 10px; }
.mbar-pair { display: flex; align-items: flex-end; gap: 5px; }
.mbar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mbar-n { font-size: 12px; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.mbar-n.prev { font-weight: 600; color: var(--muted); font-size: 11px; }
.mbar { width: 34px; border-radius: 6px 6px 0 0; background: var(--navy-800); }
.mbar.prev { background: var(--border-strong); }
.mbar-names { display: flex; justify-content: space-around; gap: 8px; padding: 8px 10px 0; }
.mbar-name { text-align: center; }
.mbar-name .n { font-size: 12px; font-weight: 700; }
.mbar-name .c { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 11.5px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fbars { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.fbar-head { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 4px; }
.fbar { height: 26px; border-radius: 6px; background: var(--navy-800); min-width: 6px; }
.m-note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.team-table { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 12px; }
.tt-head, .tt-row, .tt-foot { display: grid; grid-template-columns: 220px 1fr 1fr 1fr 1fr 1fr 1fr 140px; gap: 8px; align-items: center; padding: 11px 22px; font-variant-numeric: tabular-nums; }
.tt-head { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 10px; }
.tt-row { border-top: 1px solid var(--bg); font-size: 13px; }
.tt-row .who { display: flex; align-items: center; gap: 9px; }
.tt-row .who .tag1 { font-size: 9.5px; font-weight: 800; color: var(--navy-800); background: var(--cream-100); border-radius: 99px; padding: 2px 7px; }
.tt-row .who .tagwarn { font-size: 9.5px; font-weight: 700; color: var(--red); background: rgba(166,58,43,.09); border-radius: 99px; padding: 2px 7px; }
.tt-row.warn { background: rgba(166,58,43,.04); }
.tt-r { text-align: right; }
.tt-foot { border-top: 2px solid var(--border); background: var(--bg); font-weight: 700; font-size: 13px; }
.good { color: var(--green); font-weight: 700; }
.bad { color: var(--red); font-weight: 700; }
.m-title-row { padding: 18px 22px 12px; display: flex; align-items: baseline; justify-content: space-between; }

/* ============ modals ============ */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(10,31,60,.45); display: grid; place-items: center; padding: 20px; }
.modal-box {
  width: 100%; max-width: 680px; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(4,14,30,.5);
}
.modal-sm { max-width: 520px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-head strong { font-size: 15px; color: var(--navy-900); }
.modal-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.modal-close { background: none; border: none; font-size: 15px; color: var(--muted); padding: 2px 6px; }
.chat-body { overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 78%; border-radius: 12px; padding: 9px 13px; font-size: 12.5px; line-height: 1.45; }
.msg .who { font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.msg .when { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.msg-user { align-self: flex-start; background: var(--bg); }
.msg-agent { align-self: flex-end; background: var(--navy-800); color: var(--cream-100); }
.msg-agent .who, .msg-agent .when { color: rgba(243,233,210,.6); }
.msg-bot { align-self: flex-end; background: var(--card-alt); border: 1px dashed var(--border-strong); color: var(--muted); }
.done-body { padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.done-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.done-reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.reason { font-size: 12.5px; font-weight: 600; background: var(--card); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 14px; color: var(--text); }
.reason.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--cream-100); }
.reason-green.active { background: var(--green); border-color: var(--green); }
#done-note { border: 1px solid var(--border-strong); border-radius: 9px; padding: 9px 12px; font-size: 13px; resize: vertical; background: #fff; }
.done-presets { display: flex; gap: 5px; flex-wrap: wrap; }
.done-presets button { font-size: 10.5px; font-weight: 600; background: var(--bg); border: none; border-radius: 99px; padding: 4px 10px; color: var(--muted); }
.done-presets button:hover { color: var(--text); }
.done-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.done-actions > div { display: flex; gap: 8px; }

/* ============ toast ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: var(--navy-900); color: var(--cream-100); font-size: 13px; font-weight: 600;
  border-radius: 10px; padding: 12px 20px; box-shadow: 0 10px 30px rgba(4,14,30,.4);
}

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .view { padding: 18px 16px 40px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .m-kpis { grid-template-columns: repeat(2, 1fr); }
  .m-grid, .m-grid3 { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr 1fr; }
  .lead-ctx { grid-column: 1 / -1; }
  .lead-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .tt-head { display: none; }
  .tt-row, .tt-foot { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 12px; gap: 10px; height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .updated { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lead { grid-template-columns: 1fr; }
  .fila-cards, .fila-ig { grid-template-columns: 1fr; }
}
