/* ==========================================================
   CRM Creaton: painel de leads
   Design System Creaton: três tons (verde, claro e o degradê escuro),
   Archivo em peso regular, relevo no claro, linhas finas no escuro.
   ========================================================== */

:root {
  --verde: #57A742;
  --verde-texto: #3B722D;
  --verde-claro: #A9DD98;
  --claro: #E4E4E7;
  --claro-2: #EDEDEF;
  --claro-3: #F4F4F5;
  --escuro-1: #151515;
  --escuro-2: #0A0A0A;
  --escuro: linear-gradient(180deg, var(--escuro-1) 0%, var(--escuro-2) 100%);
  --escuro-botao: linear-gradient(180deg, #2A2A2A 0%, var(--escuro-2) 100%);

  --texto: #151515;
  --texto-suave: rgba(21, 21, 21, .62);
  --texto-claro-suave: rgba(228, 228, 231, .58);
  --linha-clara: rgba(21, 21, 21, .09);
  --linha-escura: rgba(228, 228, 231, .1);
  --perigo: #C9363B;

  --relevo: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 2px rgba(10, 10, 10, .06), 0 18px 40px -22px rgba(10, 10, 10, .28);
  --relevo-forte: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(10, 10, 10, .06), 0 50px 90px -50px rgba(10, 10, 10, .45);
  --sombra-escura: 0 10px 18px -6px rgba(10, 10, 10, .55), inset 0 1px 0 rgba(228, 228, 231, .2);

  --ruido: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pill: 99px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); font-size: 15.5px; line-height: 1.5; letter-spacing: .01em;
  color: var(--texto); background: var(--claro);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
b, strong { font-weight: 500; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button[disabled] { cursor: default; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: rgba(87, 167, 66, .25); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(21, 21, 21, .14); border-radius: 10px; border: 3px solid var(--claro); }
.verde { color: var(--verde); }

/* granulado: fica entre o fundo e o conteúdo */
.ruido { position: relative; isolation: isolate; }
.ruido::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: var(--ruido) 0 0 / 200px 200px; opacity: .2;
}
.ruido--escuro::before { opacity: .13; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.boot__erro { max-width: 360px; color: var(--texto-suave); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--linha-clara); border-top-color: var(--verde); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===================== BOTÕES ===================== */
/* botão principal: fundo preto com luz verde girando na borda (um por tela) */
@property --cta-angulo { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --cta-desvio { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --cta-pct { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --cta-luz { syntax: "<color>"; initial-value: #E4E4E7; inherits: false; }

.cta-brilho {
  --cta-fundo: #0A0A0A;
  --cta-trans: 800ms cubic-bezier(.25, 1, .5, 1);
  isolation: isolate; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 360px;
  font-size: 16px; color: var(--claro); white-space: nowrap;
  background:
    linear-gradient(var(--cta-fundo), var(--cta-fundo)) padding-box,
    conic-gradient(from calc(var(--cta-angulo) - var(--cta-desvio)), transparent, var(--verde) var(--cta-pct), var(--cta-luz) calc(var(--cta-pct) * 2), var(--verde) calc(var(--cta-pct) * 3), transparent calc(var(--cta-pct) * 4)) border-box;
  box-shadow: inset 0 0 0 1px #1C1C1C, 0 18px 34px -16px rgba(10, 10, 10, .65);
  transition: var(--cta-trans); transition-property: --cta-desvio, --cta-pct, --cta-luz, opacity;
  animation: cta-gira 3s linear infinite;
}
.cta-brilho::after {
  content: ""; pointer-events: none; position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: -1;
  width: 100%; aspect-ratio: 1; opacity: .5;
  background: linear-gradient(-50deg, transparent, var(--verde), transparent);
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  animation: cta-roda 3s linear infinite;
}
.cta-brilho > span { display: inline-flex; align-items: center; gap: 10px; }
.cta-brilho > span::before {
  content: ""; pointer-events: none; position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: -1;
  width: calc(100% + 1rem); height: calc(100% + 1rem); opacity: 0; border-radius: 360px;
  box-shadow: inset 0 -1ex 2rem 4px var(--verde); transition: opacity var(--cta-trans);
}
.cta-brilho svg { transition: translate .5s var(--ease); }
.cta-brilho:is(:hover, :focus-visible) { --cta-pct: 20%; --cta-desvio: 95deg; --cta-luz: var(--verde-claro); }
.cta-brilho:is(:hover, :focus-visible) > span::before { opacity: 1; }
.cta-brilho:hover svg:last-child { translate: 3px 0; }
.cta-brilho:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; }
.cta-brilho:active { translate: 0 1px; }
.cta-brilho[disabled] { opacity: .4; pointer-events: none; }
.cta-brilho--block { width: 100%; }
.cta-brilho--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.cta-brilho.is-done { --cta-luz: var(--verde-claro); }
@keyframes cta-gira { to { --cta-angulo: 360deg; } }
@keyframes cta-roda { to { rotate: 360deg; } }

.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 22px; border-radius: var(--pill);
  background: var(--claro-2); box-shadow: var(--relevo); color: var(--texto);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ghost:hover { transform: translateY(-1px); }
.ghost.is-done { color: var(--verde-texto); }
.ghost--sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.ghost--escuro { background: rgba(228, 228, 231, .06); color: var(--claro); box-shadow: inset 0 0 0 1px var(--linha-escura); }
.ghost--escuro.is-done { color: var(--verde); }
.cta-perigo { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: var(--pill); background: var(--perigo); color: #fff; }
.cta-perigo[disabled] { opacity: .6; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--texto-suave); transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(21, 21, 21, .06); color: var(--texto); }
.icon-btn--push { color: var(--verde-texto); background: rgba(87, 167, 66, .14); animation: pulsa 2.4s var(--ease) infinite; }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(87, 167, 66, .35); } 50% { box-shadow: 0 0 0 6px rgba(87, 167, 66, 0); } }
.link { color: var(--texto-claro-suave); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--claro); }

/* ===================== CAMPOS ===================== */
.field { display: grid; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field > span { font-size: 13px; color: var(--texto-suave); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; padding: 13px 16px; border: 0; border-radius: 14px; outline: 0;
  background: var(--claro-3); box-shadow: inset 0 0 0 1px var(--linha-clara);
  transition: box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; box-shadow: inset 0 0 0 1px var(--verde), 0 0 0 4px rgba(87, 167, 66, .16); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.field-row--igual { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* campos no escuro (login) */
.campo { display: grid; gap: 8px; margin-bottom: 14px; }
.campo span { font-size: 14px; color: var(--texto-claro-suave); }
.campo input {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; font-size: 16px; color: var(--claro);
  background: rgba(10, 10, 10, .55); box-shadow: inset 0 0 0 1px var(--linha-escura); transition: box-shadow .2s, background .2s;
}
.campo input:focus { outline: none; background: rgba(10, 10, 10, .75); box-shadow: inset 0 0 0 1px var(--verde), 0 0 0 4px rgba(87, 167, 66, .16); }

/* pílulas de escolha */
.pilulas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pilula { position: relative; cursor: pointer; }
.pilula input { position: absolute; opacity: 0; pointer-events: none; }
.pilula span {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--pill);
  font-size: 14.5px; background: var(--claro-3); box-shadow: inset 0 0 0 1px var(--linha-clara); transition: box-shadow .2s, background .2s;
}
.pilula span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(21, 21, 21, .3); transition: all .2s; }
.pilula input:checked + span { background: rgba(87, 167, 66, .12); box-shadow: inset 0 0 0 1px rgba(87, 167, 66, .6); }
.pilula input:checked + span::before { background: var(--verde); box-shadow: inset 0 0 0 2.5px #fff, 0 0 0 1.5px var(--verde); }
.pilula input:focus-visible + span { outline: 2px solid var(--verde); outline-offset: 2px; }

/* ===================== LOGIN ===================== */
.login { min-height: 100%; display: grid; place-items: center; padding: 40px 20px; background: var(--escuro); color: var(--claro); overflow: hidden; }
.login__brilho { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 55% at 50% 0%, rgba(87, 167, 66, .22), transparent 70%); pointer-events: none; }
.login__card { width: 100%; max-width: 420px; display: grid; justify-items: center; text-align: center; animation: fade .6s var(--ease); }
.login__logo { display: grid; place-items: center; width: 132px; height: 46px; border-radius: var(--pill); background: var(--escuro-botao); box-shadow: var(--sombra-escura), inset 0 0 0 1px var(--linha-escura); margin-bottom: 40px; }
.login__logo img { width: 84px; }
.selo { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px; border-radius: var(--pill); font-size: 14px; color: var(--texto-claro-suave); box-shadow: inset 0 0 0 1px var(--linha-escura); }
.selo i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(87, 167, 66, .16); }
.login__title { margin: 22px 0 34px; font-size: clamp(38px, 7vw, 50px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.login__form { width: 100%; text-align: left; }
.login__form .cta-brilho { margin-top: 10px; }
.login__error { color: #F2777B; background: rgba(229, 72, 77, .12); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.login .link { margin-top: 22px; }
.login__demo { margin-top: 26px; padding: 14px 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; color: var(--texto-claro-suave); box-shadow: inset 0 0 0 1px var(--linha-escura); background: rgba(87, 167, 66, .06); }

/* ===================== TOPO ===================== */
.shell { height: 100%; display: flex; flex-direction: column; }
.topbar {
  --fundo: var(--claro-2);
  position: relative; z-index: 20; flex: none; display: flex; align-items: center; gap: 16px;
  width: min(1680px, 100% - 48px); height: 64px; margin: 0 auto; padding: 0 12px;
  background: var(--fundo); border-radius: 0 0 26px 26px;
  box-shadow: 0 14px 30px -16px rgba(10, 10, 10, .28), 0 2px 6px -3px rgba(10, 10, 10, .06);
}
/* cantos curvos para fora, como a aba do site */
.topbar::before, .topbar::after { content: ""; position: absolute; top: 0; width: 26px; height: 26px; pointer-events: none; }
.topbar::before { left: -26px; background: radial-gradient(circle at 0 100%, transparent 25.5px, var(--fundo) 26px); }
.topbar::after { right: -26px; background: radial-gradient(circle at 100% 100%, transparent 25.5px, var(--fundo) 26px); }
.topbar__logo { flex: none; display: grid; place-items: center; width: 116px; height: 40px; border-radius: var(--pill); background: var(--escuro-botao); box-shadow: var(--sombra-escura); }
.topbar__logo img { width: 74px; }
.cliente {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 14px; border-radius: var(--pill);
  background: var(--claro); box-shadow: var(--relevo); font-size: 14.5px; max-width: 260px;
}
.cliente i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(87, 167, 66, .16); flex: none; }
.cliente__nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cliente.is-select { padding-right: 34px; cursor: pointer; }
.cliente.is-select::after { content: ""; position: absolute; right: 15px; top: 16px; width: 6px; height: 6px; border-right: 1.5px solid var(--texto-suave); border-bottom: 1.5px solid var(--texto-suave); transform: rotate(45deg); pointer-events: none; }
.cliente select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav__item {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pill);
  font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-suave); transition: color .2s, background .2s;
}
.nav__item:hover { color: var(--texto); }
.nav__item.is-active { color: var(--texto); background: var(--claro); box-shadow: var(--relevo); }
.nav__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--verde); color: var(--escuro-2); font-size: 11.5px; letter-spacing: 0; display: inline-grid; place-items: center; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sync { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border-radius: var(--pill); font-size: 13.5px; color: var(--texto-suave); box-shadow: inset 0 0 0 1px var(--linha-clara); white-space: nowrap; }
.sync__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(21, 21, 21, .25); position: relative; flex: none; }
.sync.is-ok .sync__dot { background: var(--verde); }
.sync.is-ok .sync__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--verde); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.sync.is-error .sync__dot { background: var(--perigo); }
.sync.is-error { color: var(--perigo); box-shadow: inset 0 0 0 1px rgba(201, 54, 59, .3); }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.menu {
  position: absolute; right: 8px; top: 72px; z-index: 30; width: 300px; padding: 20px; border-radius: 22px;
  background: var(--claro-2); box-shadow: var(--relevo-forte), 0 20px 50px -20px rgba(10, 10, 10, .35); animation: fade .2s var(--ease);
}
.menu__email { font-size: 13px; color: var(--texto-suave); margin: 0 0 14px; word-break: break-all; }

/* ===================== ESTRUTURA ===================== */
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; width: min(1680px, 100% - 48px); margin: 16px auto 0; }
.sidebar { display: flex; flex-direction: column; min-height: 0; border-radius: 28px 28px 0 0; background: var(--claro-2); box-shadow: var(--relevo); }
.sidebar__head { padding: 22px 18px 12px; display: grid; gap: 14px; }
.sidebar__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sidebar__title { font-size: 28px; letter-spacing: -.025em; display: flex; align-items: baseline; gap: 8px; }
.sidebar__title span { font-size: 15px; color: var(--texto-suave); letter-spacing: 0; }
.segment { display: flex; flex-wrap: wrap; gap: 6px; }
.segment button { height: 32px; padding: 0 13px; border-radius: var(--pill); font-size: 13px; color: var(--texto-suave); box-shadow: inset 0 0 0 1px var(--linha-clara); transition: all .2s var(--ease); white-space: nowrap; }
.segment button:hover { color: var(--texto); }
.segment button.is-active { background: var(--escuro-botao); color: var(--claro); box-shadow: 0 6px 12px -6px rgba(10, 10, 10, .55); }
.segment button .n { opacity: .55; margin-left: 5px; }
.segment--fundo { padding: 4px; gap: 2px; border-radius: var(--pill); background: var(--claro-2); box-shadow: var(--relevo); }
.segment--fundo button { box-shadow: none; }
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--claro-3); box-shadow: inset 0 0 0 1px var(--linha-clara); color: var(--texto-suave); }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--verde), 0 0 0 4px rgba(87, 167, 66, .16); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texto); font-size: 15px; }

.lead-list { list-style: none; margin: 0; padding: 4px 10px 24px; overflow-y: auto; flex: 1; }
.lead { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; cursor: pointer; transition: background .2s var(--ease); }
.lead:hover { background: rgba(21, 21, 21, .04); }
.lead.is-selected { background: var(--claro); box-shadow: var(--relevo); }
.lead.is-selected::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--verde); }
.lead.is-fresh { animation: chega .9s var(--ease); }
@keyframes chega { 0% { transform: translateY(-12px); opacity: 0; box-shadow: 0 0 0 0 rgba(87, 167, 66, .45); } 60% { transform: none; opacity: 1; box-shadow: 0 0 0 8px rgba(87, 167, 66, 0); } }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; letter-spacing: .02em; color: var(--texto-suave); background: var(--claro); box-shadow: inset 0 0 0 1px var(--linha-clara); }
.lead.is-novo .avatar { background: var(--escuro-botao); color: var(--verde); box-shadow: var(--sombra-escura); }
.lead__text { min-width: 0; }
.lead__name { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead__meta { font-size: 13px; color: var(--texto-suave); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead__momento { font-size: 12.5px; color: var(--verde-texto); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead__side { display: grid; justify-items: end; gap: 6px; }
.lead__time { font-size: 12px; color: var(--texto-suave); }
.status { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--pill); font-size: 12px; white-space: nowrap; }
.status--novo { background: var(--verde); color: var(--escuro-2); }
.status--atendimento { box-shadow: inset 0 0 0 1px rgba(87, 167, 66, .6); color: var(--verde-texto); }
.status--contatado { background: rgba(21, 21, 21, .06); color: var(--texto-suave); }
.status--contatado svg { width: 12px; height: 12px; stroke-width: 2.6; }
.list-empty { padding: 40px 16px; text-align: center; color: var(--texto-suave); font-size: 14px; line-height: 1.55; }
.list-empty b { color: var(--texto); font-weight: 400; }

/* ===================== CENTRO ===================== */
.center { overflow-y: auto; min-height: 0; position: relative; border-radius: 28px 28px 0 0; background: var(--claro-2); box-shadow: var(--relevo); }
.center__inner { max-width: 780px; margin: 0 auto; padding: 44px 48px 64px; animation: fade .35s var(--ease); }
.back { display: none; align-items: center; gap: 4px; color: var(--texto-suave); margin: -8px 0 18px -6px; padding: 6px; }

.icons { display: flex; justify-content: center; margin-bottom: 28px; }
.icons--left { justify-content: flex-start; }
.icons span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-left: -10px; color: var(--verde); background: var(--escuro-botao); box-shadow: var(--sombra-escura), 0 0 0 4px var(--claro-2); }
.icons span:first-child { margin-left: 0; }
.icons span:nth-child(2) { color: var(--claro); }
.icons svg { width: 24px; height: 24px; }

.empty { min-height: 100%; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.empty h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.empty p { font-size: 18px; margin: 16px auto 0; max-width: 44ch; color: var(--texto-suave); }
.empty .ghost { margin-top: 26px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: var(--pill); font-size: 14px; color: var(--texto-suave); background: var(--claro); box-shadow: var(--relevo); }
.eyebrow svg { color: var(--verde-texto); width: 16px; height: 16px; }
.headline { margin-top: 18px; font-size: clamp(38px, 4vw, 58px); line-height: 1.03; letter-spacing: -.03em; overflow-wrap: anywhere; text-wrap: balance; }
.subline { font-size: 17px; color: var(--texto-suave); margin-top: 12px; line-height: 1.45; }

.contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: var(--pill); font-size: 15px; max-width: 100%; background: var(--claro); box-shadow: var(--relevo); transition: transform .3s var(--ease); }
.chip:hover { transform: translateY(-1px); }
.chip svg { color: var(--verde-texto); }
.chip--icon { width: 46px; padding: 0; justify-content: center; }
.chip__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .copy-ico { color: var(--texto-suave); width: 16px; height: 16px; }
.chip.is-done .copy-ico { color: var(--verde-texto); }

.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.status-row .label { font-size: 14px; color: var(--texto-suave); margin-right: 4px; }
.status-opt { height: 38px; padding: 0 16px; border-radius: var(--pill); font-size: 14px; color: var(--texto-suave); box-shadow: inset 0 0 0 1px var(--linha-clara); transition: all .2s var(--ease); }
.status-opt:hover:not([disabled]) { color: var(--texto); box-shadow: inset 0 0 0 1px rgba(21, 21, 21, .25); }
.status-opt.is-active { background: var(--escuro-botao); color: var(--claro); box-shadow: 0 8px 14px -8px rgba(10, 10, 10, .6); }
.momento .status-opt.is-active { background: rgba(87, 167, 66, .14); color: var(--verde-texto); box-shadow: inset 0 0 0 1px rgba(87, 167, 66, .6); }
.status-opt[disabled]:not(.is-active) { opacity: .5; }
.momento { flex-basis: 100%; margin-top: 24px; padding: 18px 20px; border-radius: 22px; background: var(--claro); box-shadow: var(--relevo); }
.momento__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.momento__head .section__title { font-size: 18px; }
.momento__opts { display: flex; flex-wrap: wrap; gap: 8px; }

.section { margin-top: 40px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section__title { font-size: 22px; letter-spacing: -.02em; }
.section__hint { font-size: 13.5px; color: var(--texto-suave); }

/* card escuro: mensagem pronta */
.card { border-radius: 26px; background: var(--claro); box-shadow: var(--relevo); padding: 22px; }
.card--escuro { background: var(--escuro); color: var(--claro); box-shadow: inset 0 0 0 1px var(--linha-escura), 0 30px 60px -30px rgba(10, 10, 10, .6); padding: 24px; }
.card--escuro .section__hint { color: var(--texto-claro-suave); }
.tpl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tpl-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--pill); font-size: 14px; color: var(--texto-claro-suave); box-shadow: inset 0 0 0 1px var(--linha-escura); transition: all .2s var(--ease); }
.tpl-tab:hover { color: var(--claro); }
.tpl-tab.is-active { color: var(--claro); background: rgba(87, 167, 66, .12); box-shadow: inset 0 0 0 1px rgba(87, 167, 66, .6); }
.tpl-tab .tag { font-size: 11px; padding: 2px 8px; border-radius: var(--pill); background: var(--verde); color: var(--escuro-2); }
.message { border-radius: 18px; background: rgba(10, 10, 10, .55); box-shadow: inset 0 0 0 1px var(--linha-escura); transition: box-shadow .2s; }
.message:focus-within { box-shadow: inset 0 0 0 1px var(--verde), 0 0 0 4px rgba(87, 167, 66, .16); }
.message textarea { display: block; width: 100%; min-height: 190px; resize: none; overflow: hidden; border: 0; outline: 0; background: transparent; padding: 18px 20px; font-size: 16px; line-height: 1.55; color: var(--claro); }
.message__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.answers { display: grid; gap: 10px; }
.answer { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--claro); box-shadow: var(--relevo); }
.answer .chev { color: var(--verde-texto); width: 16px; height: 16px; margin-top: 2px; stroke-width: 2.4; }
.answer__q { font-size: 13px; color: var(--texto-suave); }
.answer__a { grid-column: 2; font-size: 17px; overflow-wrap: anywhere; }
.answers--empty { color: var(--texto-suave); font-size: 15px; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: 18px; overflow: hidden; background: var(--linha-clara); box-shadow: inset 0 0 0 1px var(--linha-clara); }
.meta-grid div { background: var(--claro); padding: 13px 16px; }
.meta-grid dt { font-size: 12px; color: var(--texto-suave); }
.meta-grid dd { margin: 3px 0 0; font-size: 14px; word-break: break-word; }
.dock { display: none; }
.danger-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--texto-suave); transition: color .2s; }
.danger-link:hover { color: var(--perigo); }

/* ===================== MODAIS E AVISOS ===================== */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(10, 10, 10, .5); backdrop-filter: blur(4px); animation: fade .2s var(--ease); }
.modal__card { width: 100%; max-width: 440px; padding: 28px; border-radius: 28px; background: var(--claro-2); box-shadow: var(--relevo-forte), 0 30px 80px -30px rgba(10, 10, 10, .6); overflow-wrap: anywhere; animation: fade .3s var(--ease); }
.modal__card > p { margin: 12px 0 24px; color: var(--texto-suave); line-height: 1.5; }
.modal__card .modal__hint { margin: -6px 0 16px; font-size: 14px; }
.modal__card--form { max-width: 540px; max-height: calc(100dvh - 40px); overflow: hidden auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.modal__card--form .section__title { margin-bottom: 14px; }
.modal__card--form .field textarea { min-height: 84px; }
.modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.modal__actions .ghost { height: 44px; }

.toasts { position: fixed; left: 24px; bottom: 24px; display: grid; gap: 10px; z-index: 70; }
.toast { display: flex; align-items: center; gap: 14px; width: 340px; padding: 12px 16px 12px 12px; border-radius: 20px; background: var(--escuro); color: var(--claro); box-shadow: inset 0 0 0 1px var(--linha-escura), 0 18px 40px -10px rgba(10, 10, 10, .5); cursor: pointer; animation: toastIn .45s var(--ease); }
.toast > div { min-width: 0; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
.toast__ico { width: 40px; height: 40px; border-radius: 50%; background: var(--verde); color: var(--escuro-2); display: grid; place-items: center; flex: none; }
.toast__body { font-size: 13px; color: var(--texto-claro-suave); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast--plain { width: auto; max-width: 440px; padding: 12px 18px; line-height: 1.45; font-size: 14.5px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.demo-flag { position: fixed; right: 16px; bottom: 16px; z-index: 65; padding: 7px 14px; border-radius: var(--pill); font-size: 12.5px; color: var(--escuro-2); background: var(--verde); box-shadow: 0 10px 24px -10px rgba(10, 10, 10, .5); pointer-events: none; }

/* ===================== EDITOR DE MENSAGENS ===================== */
.editor-intro { margin-bottom: 36px; }
.tpl-card { padding: 22px; margin-bottom: 16px; border-radius: 26px; background: var(--claro); box-shadow: var(--relevo); }
.tpl-card:focus-within { box-shadow: var(--relevo), inset 0 0 0 1px rgba(87, 167, 66, .5); }
.tpl-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tpl-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; color: var(--verde); background: var(--escuro-botao); box-shadow: var(--sombra-escura); }
.tpl-name { flex: 1; min-width: 0; font-size: 21px; letter-spacing: -.015em; border: 0; outline: 0; padding: 4px 0; background: transparent; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.var { height: 28px; padding: 0 10px; border-radius: var(--pill); font-size: 12px; color: var(--texto-suave); box-shadow: inset 0 0 0 1px var(--linha-clara); }
.var:hover { color: var(--verde-texto); box-shadow: inset 0 0 0 1px rgba(87, 167, 66, .6); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.is-readonly .field input, .is-readonly .field textarea, .is-readonly .tpl-name { cursor: default; }

/* ===================== AGENDA ===================== */
body.view-wide .layout { grid-template-columns: minmax(0, 1fr); }
body.view-wide .sidebar { display: none; }
.center__inner.agenda, .center__inner.report { max-width: 1600px; padding: 34px 40px 56px; animation: none; }
.agenda__head, .report__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 24px; }
.agenda__head .headline, .report__head .headline { margin: 0; font-size: clamp(34px, 3.4vw, 50px); }
.agenda__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; color: var(--texto-suave); }
.agenda__stats b { color: var(--texto); font-weight: 400; }
.agenda__stats b.is-late { color: var(--perigo); }
.agenda__stats i { width: 4px; height: 4px; border-radius: 50%; background: rgba(21, 21, 21, .25); margin: 0 4px; }
.agenda__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.agenda__nav { display: flex; align-items: center; gap: 4px; }
.agenda__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }

.cal { min-width: 0; padding: 18px; }
.cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-bottom: 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-suave); }
.cal__week span { padding-left: 10px; }
.cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__day { position: relative; min-height: 108px; padding: 8px; border-radius: 16px; background: var(--claro-2); display: flex; flex-direction: column; align-items: stretch; gap: 5px; text-align: left; min-width: 0; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.cal__day:hover { box-shadow: inset 0 0 0 1px rgba(21, 21, 21, .18); }
.cal__day.is-out { background: transparent; }
.cal__day.is-out .cal__num { color: rgba(21, 21, 21, .3); }
.cal__day.is-selected { background: #fff; box-shadow: inset 0 0 0 1px var(--verde), 0 0 0 3px rgba(87, 167, 66, .14); }
.cal__num { display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 14px; border-radius: 50%; }
.cal__day.is-today .cal__num { background: var(--escuro-botao); color: var(--verde); }
.cal__events { display: grid; gap: 3px; min-width: 0; }
.cal__chip { display: block; padding: 3px 7px; border-radius: 7px; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__chip b { font-weight: 500; }
.cal__chip--visita { background: var(--verde); color: var(--escuro-2); }
.cal__chip--ligacao { background: var(--escuro-1); color: var(--claro); }
.cal__chip--reuniao { background: rgba(87, 167, 66, .16); color: var(--verde-texto); }
.cal__chip--retorno { background: rgba(21, 21, 21, .08); color: var(--texto); }
.cal__chip.is-done { opacity: .45; text-decoration: line-through; }
.cal__more { font-size: 12px; color: var(--texto-suave); padding-left: 7px; }
.cal__dots { display: none; gap: 3px; justify-content: center; }
.cal__dots i, .cal__legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.cal__dot--visita { background: var(--verde); }
.cal__dot--ligacao { background: var(--escuro-1); }
.cal__dot--reuniao { background: var(--verde-claro); }
.cal__dot--retorno { background: rgba(21, 21, 21, .3); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--texto-suave); }
.cal__legend span { display: inline-flex; align-items: center; gap: 7px; }

.agenda__day { min-width: 0; position: sticky; top: 0; }
.agenda__weekday { color: var(--verde-texto); text-transform: capitalize; }
.agenda__date { margin: 2px 0 18px; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.agenda__sub { margin: 28px 0 12px; font-size: 18px; }
.ag-list { display: grid; gap: 10px; }
.ag-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 20px; background: var(--claro); box-shadow: var(--relevo); }
.ag-card.is-done { opacity: .6; }
.ag-card__time { font-size: 16px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.ag-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ag-card h3 { margin: 8px 0 2px; font-size: 18px; overflow-wrap: anywhere; }
.ag-card__meta { font-size: 13px; color: var(--texto-suave); }
.ag-card__notes { margin-top: 8px; font-size: 14px; color: var(--texto-suave); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-card__actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 13px; }
.ag-card__actions button, .ag-card__actions a { color: var(--texto-suave); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(21, 21, 21, .2); padding: 3px 0; }
.ag-card__actions button:hover, .ag-card__actions a:hover { color: var(--texto); }
.ag-card__actions .is-danger:hover { color: var(--perigo); }
.ag-tag { display: inline-block; padding: 2px 9px; border-radius: var(--pill); font-size: 12px; flex: none; }
.ag-tag--visita { background: var(--verde); color: var(--escuro-2); }
.ag-tag--ligacao { background: var(--escuro-1); color: var(--claro); }
.ag-tag--reuniao { background: rgba(87, 167, 66, .16); color: var(--verde-texto); }
.ag-tag--retorno { background: rgba(21, 21, 21, .08); color: var(--texto); }
.ag-state { font-size: 12px; color: var(--texto-suave); }
.ag-state--late { color: var(--perigo); }
.ag-empty { padding: 28px 20px; border-radius: 20px; text-align: center; color: var(--texto-suave); box-shadow: inset 0 0 0 1px var(--linha-clara); }
.ag-empty p { margin: 0 0 14px; }
.ag-mini { display: grid; gap: 8px; }
.ag-mini__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 16px; text-align: left; font-size: 14px; background: var(--claro); box-shadow: var(--relevo); transition: transform .3s var(--ease); }
.ag-mini__item:hover { transform: translateY(-1px); }
.ag-mini__item.is-done { opacity: .55; }
.ag-mini__item > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.ag-mini__item b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-mini__item small { color: var(--texto-suave); font-size: 12px; }
.ag-mini__item .chev { color: var(--verde-texto); width: 15px; height: 15px; }

/* ===================== RELATÓRIOS ===================== */
body.report-only .sidebar, body.report-only #pushBtn { display: none !important; }
.report__head .subline { margin-top: 8px; font-size: 15.5px; }
.report__filters { display: grid; justify-items: end; gap: 8px; }
.report__empty { margin-top: 12px; }
.report__note { margin-top: 18px; font-size: 13px; color: var(--texto-suave); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px; background: var(--claro); box-shadow: var(--relevo); min-width: 0; }
.kpi--hero { background: var(--escuro); color: var(--claro); box-shadow: inset 0 0 0 1px var(--linha-escura), 0 24px 40px -24px rgba(10, 10, 10, .6); }
.kpi--hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 100% at 0% 0%, rgba(87, 167, 66, .28), transparent 55%); }
.kpi__label { font-size: 13px; color: var(--texto-suave); }
.kpi--hero .kpi__label, .kpi--hero .kpi__delta { color: var(--texto-claro-suave); }
.kpi__value { font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi--hero .kpi__value { color: var(--verde); }
.kpi__sub, .kpi__delta { font-size: 12px; color: var(--texto-suave); }
.report__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rcard { padding: 20px 22px 22px; border-radius: 24px; background: var(--claro); box-shadow: var(--relevo); min-width: 0; }
.rcard--wide { grid-column: 1 / -1; }
.rcard__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 16px; }
.rcard__head .section__title { font-size: 18px; }
.rcard__q { font-size: 16px !important; line-height: 1.3; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; }
.hbar__label { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar__value { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.hbar__value small { color: var(--texto-suave); margin-left: 6px; font-size: 12.5px; }
.hbar__track { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(21, 21, 21, .06); overflow: hidden; }
.hbar__fill { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--verde), #6DBA58); transition: width .7s var(--ease); }
.vbars { display: flex; align-items: stretch; gap: 3px; height: 190px; }
.vbars--hours { height: 150px; gap: 2px; }
.vbar { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vbar__col { flex: 1; display: flex; align-items: flex-end; border-radius: 5px; transition: background .2s; }
.vbar:hover .vbar__col { background: rgba(21, 21, 21, .05); }
.vbar__fill { display: block; width: 100%; height: 0; border-radius: 4px 4px 0 0; background: var(--verde); transition: height .7s var(--ease); }
.vbar__x { height: 14px; font-size: 11px; color: var(--texto-suave); white-space: nowrap; overflow: visible; }
.rtable { display: grid; font-size: 14px; }
.rtable__row { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, .7fr)); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--linha-clara); align-items: center; }
.rtable__row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtable__row > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.rtable__row--head { font-size: 12px; color: var(--texto-suave); padding-top: 0; }
.rtable__row:last-child { border-bottom: 0; }

@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda__grid { grid-template-columns: minmax(0, 1fr); }
  .agenda__day { position: static; }
}

/* ===================== COMPUTADOR: DETALHE NA HORIZONTAL ===================== */
@media (min-width: 1280px) {
  .center__inner.detail, .center__inner.editor { max-width: 1380px; padding: 40px 52px 64px; }
  .detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 44px; align-items: start; }
  .detail__head { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--linha-clara); }
  .detail__title { min-width: 0; }
  .detail__actions { display: grid; justify-items: end; gap: 14px; }
  .detail__actions .contact { margin-top: 0; justify-content: flex-end; }
  .detail__actions .status-row { margin-top: 0; }
  .detail__head .momento { margin-top: 0; }
  .detail__main { grid-column: 2; grid-row: 2; position: sticky; top: 0; margin-top: 0; padding-top: 32px; }
  .detail__side { grid-column: 1; grid-row: 2; }
  .detail__side > .section:first-child { margin-top: 32px; }
  .detail__side .answers { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .editor-intro { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 44px; }
  .editor-intro .icons { grid-row: span 2; margin: 0; }
  .editor-intro .headline { margin: 0; }
  .editor-intro .subline { grid-column: 2; max-width: 720px; margin-top: 4px; }
  .tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .tpl-grid .tpl-card { margin-bottom: 0; }
  .tpl-grid .field textarea { min-height: 260px; }
  .editor-actions { margin-top: 24px; }
}

/* ===================== TABLET ===================== */
@media (max-width: 1180px) {
  .topbar, .layout { width: calc(100% - 32px); }
  .layout { grid-template-columns: 330px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .nav__item { padding: 0 12px; }
  .center__inner { padding: 36px 32px 56px; }
  .sync { display: none; }
}
@media (max-width: 1020px) {
  .cliente { max-width: 170px; }
}

/* ===================== CELULAR ===================== */
@media (max-width: 860px) {
  body { font-size: 15px; }
  .topbar { width: calc(100% - 24px); height: 58px; padding: 0 8px; gap: 8px; border-radius: 0 0 22px 22px; }
  .topbar::before, .topbar::after { display: none; }
  .topbar__logo { width: 42px; height: 38px; }
  .topbar__logo img { width: 0; }
  .topbar__logo::after { content: ""; width: 17px; height: 14px; background: url("assets/logo-c.svg") center / contain no-repeat; }
  .cliente { height: 38px; max-width: none; flex: 1; min-width: 0; font-size: 14px; }
  .sync { display: inline-flex; padding: 0 11px; }
  .sync span:last-child { display: none; }
  .nav {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; margin: 0;
    padding: 5px; border-radius: var(--pill); background: var(--escuro); box-shadow: inset 0 0 0 1px var(--linha-escura), 0 16px 34px -10px rgba(10, 10, 10, .55);
  }
  .nav__item { flex: 1; justify-content: center; padding: 0 6px; height: 42px; font-size: 12px; color: var(--texto-claro-suave); }
  .nav__item:hover { color: var(--claro); }
  .nav__item.is-active { background: rgba(228, 228, 231, .1); color: var(--claro); box-shadow: none; }
  .menu { right: 0; top: 66px; width: calc(100vw - 24px); }

  .layout { display: block; position: relative; overflow: hidden; width: 100%; margin: 10px 0 0; }
  .sidebar { position: absolute; inset: 0; border-radius: 26px 26px 0 0; }
  .sidebar__head { padding: 18px 14px 10px; }
  .segment { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .segment::-webkit-scrollbar { display: none; }
  .segment button { flex: none; }
  .lead-list { padding: 4px 6px 110px; }
  .center { position: absolute; inset: 0; z-index: 10; border-radius: 26px 26px 0 0; transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden; }
  body.show-detail .center { transform: none; visibility: visible; }
  body.show-detail .nav { display: none; }
  body.view-editor .nav, body.view-wide .nav { display: flex; }
  body.view-wide .layout { display: block; }

  .center__inner { padding: 20px 18px 120px; }
  .center__inner.agenda, .center__inner.report { padding: 20px 12px 110px; }
  .agenda__head, .report__head { padding: 0 4px; margin-bottom: 14px; }
  .agenda__tools { width: 100%; justify-content: space-between; }
  .agenda__tools .cta-brilho { width: 100%; order: 3; }
  .cal { padding: 10px; }
  .cal__week { text-align: center; font-size: 11px; padding-bottom: 6px; }
  .cal__week span { padding-left: 0; }
  .cal__days { gap: 3px; }
  .cal__day { min-height: 52px; padding: 4px 2px 6px; align-items: center; gap: 2px; border-radius: 12px; }
  .cal__events { display: none; }
  .cal__dots { display: flex; min-height: 7px; }
  .cal__num { width: 26px; height: 26px; font-size: 13px; }
  .agenda__day { margin-top: 6px; padding: 0 4px; }
  .agenda__date { font-size: 26px; }
  .report__filters { justify-items: start; width: 100%; }
  .report__seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; margin: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi--hero { grid-column: 1 / -1; }
  .kpi__value { font-size: 30px; }
  .report__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rcard { padding: 16px; }
  .vbars { height: 150px; gap: 2px; }
  body.report-only .nav { display: none; }

  .back { display: inline-flex; }
  body.view-editor .back { display: none; }
  .headline { font-size: 38px; }
  .subline { font-size: 15.5px; }
  .contact { margin-top: 20px; }
  .section { margin-top: 32px; }
  .section__hint { display: none; }
  .momento__head .section__hint { display: block; font-size: 12.5px; }
  .card--escuro { padding: 18px; border-radius: 22px; }
  .message textarea { padding: 16px; }
  .message__actions .cta-brilho { display: none; }
  .message__actions .ghost { width: 100%; }
  .meta-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row, .field-row--igual { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .modal__card { padding: 22px; border-radius: 24px; }
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--claro-2) 70%, rgba(237, 237, 239, 0)); }
  .dock .cta-brilho { height: 56px; font-size: 16.5px; }
  .toasts { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toast { width: 100%; }
  .demo-flag { right: 12px; bottom: auto; top: 70px; }
  body.show-detail .demo-flag { display: none; }
  .sidebar__top .ghost--sm { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
