/* ==========================================================================
   Meu Portal v2: casca por tarefa (menu lateral, barra inferior, destinos).
   Carregado DEPOIS dos estilos 01–21 (meuportal/css/):
   · remapeia os tokens --np-* dos componentes existentes para a paleta nova
     (Sora + Space Grotesk, fundo de papel, verde-azulado, âmbar só para atenção);
   · desenha a casca e os blocos novos. Toda classe nova usa o prefixo mp- para
     não colidir com styles.css nem com os componentes atuais (.chip, .seg, .card...).
   ========================================================================== */

body[data-page="meubot"].mp-body {
  --mp-bg: #f5f6f1;
  --mp-surface: #fff;
  --mp-ink: #132022;
  --mp-ink2: #2b3a3c;
  --mp-muted: #5e6c70;
  --mp-faint: #87949a;
  --mp-line: #e1e5df;
  --mp-line2: #edf0eb;
  --mp-brand: #0f766e;
  --mp-brand-d: #0b5f58;
  --mp-brand-t: #e6f3f0;
  --mp-amber: #d97706;
  --mp-amber-d: #92400e;
  --mp-amber-t: #fdf3e1;
  --mp-red: #b42318;
  --mp-red-t: #fdecea;
  --mp-info: #1d4ed8;
  --mp-info-t: #e9efff;
  --mp-off-t: #eff1ed;
  --mp-up: #4c3a9a;
  --mp-up-t: #f1effb;
  --mp-hover: #f1f3ee;
  --mp-sh: 0 1px 2px rgba(19, 32, 34, .04), 0 10px 30px -14px rgba(19, 32, 34, .18);
  --mp-font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mp-display: "Sora", "Space Grotesk", system-ui, sans-serif;
  --mp-sb-w: 252px;

  /* Componentes existentes (calendário, documentos, analytics...) herdam a paleta nova. */
  --np-bg: var(--mp-bg);
  --np-paper: #fff;
  --np-paper-warm: #fafbf8;
  --np-ink: var(--mp-ink);
  --np-muted: var(--mp-muted);
  --np-faint: var(--mp-faint);
  --np-brand: var(--mp-brand);
  --np-brand-dark: var(--mp-brand-d);
  --np-brand-tint: var(--mp-brand-t);
  --np-accent: var(--mp-amber);
  --np-accent-soft: var(--mp-amber-t);
  --np-danger: var(--mp-red);
  --np-danger-soft: var(--mp-red-t);
  --np-line: var(--mp-line);
  --np-line-soft: var(--mp-line2);
  --np-serif: var(--mp-display);
  --np-sans: var(--mp-font);

  margin: 0;
  min-height: 100vh;
  background: var(--mp-bg);
  color: var(--mp-ink);
  font-family: var(--mp-font);
  -webkit-font-smoothing: antialiased;
}

.mp-body h1, .mp-body h2, .mp-body h3, .mp-body h4 { letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   Casca
   -------------------------------------------------------------------------- */
.mp-app { display: flex; align-items: stretch; min-height: 100vh; }
.mp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mp-content {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 36px 72px;
  box-sizing: border-box;
  font-size: 14.5px;
  line-height: 1.45;
}
.mp-app[data-mp-route="agenda"] .mp-content,
.mp-app[data-mp-route="equipe"] .mp-content,
.mp-app[data-mp-route="ferramentas"] .mp-content,
.mp-app[data-mp-route="atendimentos"] .mp-content,
.mp-app[data-mp-route="plano"] .mp-content { max-width: 1400px; }

.mp-page { display: none; }
.mp-page.on { display: block; animation: mpRise .18s ease; }
/* Só deslocamento: se a animação não rodar (aba em segundo plano), o conteúdo continua visível. */
@keyframes mpRise { from { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .mp-page.on, .mp-drawer, .mp-ov-bg { animation: none; }
}

/* Sem rota resolvida (ex.: JS da casca não carregou), o Início continua visível. */
.mp-app:not([data-mp-ready]) .mp-page[data-mp-page="inicio"] { display: block; }

/* Menu lateral */
.mp-sb {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--mp-sb-w);
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  overflow-y: auto;
  background: var(--mp-surface);
  border-right: 1px solid var(--mp-line);
  z-index: 30;
}
.mp-sb-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px; color: var(--mp-ink); text-decoration: none; }
.mp-sb-brand img { width: 30px; height: 30px; border-radius: 9px; }
.mp-sb-brand b { display: block; font: 700 15px var(--mp-display); letter-spacing: -.02em; }
.mp-sb-brand small { display: block; margin-top: -2px; font-size: 11.5px; color: var(--mp-faint); }

.mp-sb-biz {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-bg);
  color: var(--mp-ink);
  text-decoration: none;
  min-width: 0;
}
.mp-sb-biz-t { min-width: 0; }
.mp-sb-biz b, .mp-mtop-me b {
  display: block;
  overflow: hidden;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-sb-biz small, .mp-mtop-me small {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  /* Folga para o halo do ponto "No ar" (box-shadow de 3px) não ser cortado à esquerda. */
  padding-left: 4px;
  margin-left: -4px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--mp-brand-d);
}
.mp-sb-biz small > span, .mp-mtop-me small > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mp-sb-biz small.is-warn, .mp-mtop-me small.is-warn { color: var(--mp-amber-d); }
.mp-sb-biz small.is-off, .mp-mtop-me small.is-off { color: var(--mp-muted); }

.mp-biz-mk {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--mp-brand);
  color: #fff;
  font: 700 15px var(--mp-display);
}
.mp-biz-mk.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.mp-biz-mk.is-person { background: #eef0ea; color: var(--mp-ink); }
.mp-biz-mk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.mp-dot-live { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); flex-shrink: 0; }
.mp-dot-off { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; flex-shrink: 0; }

.mp-sb-nav { display: flex; flex-direction: column; gap: 2px; }
.mp-sb-i {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--mp-ink2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.mp-sb-i svg { color: var(--mp-faint); flex-shrink: 0; }
.mp-sb-i:hover { background: var(--mp-hover); }
.mp-sb-i.on { background: var(--mp-brand-t); color: var(--mp-brand-d); }
.mp-sb-i.on svg { color: var(--mp-brand); }
.mp-sb-i.lk { color: var(--mp-muted); }
.mp-sb-i .mp-sb-lk { margin-left: auto; color: var(--mp-faint); }
.mp-sb-i b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #e9ece6;
  font-size: 11.5px;
}
.mp-sb-i b.warn { background: var(--mp-amber-t); color: var(--mp-amber-d); }
.mp-sb-sp { flex: 1; }
/* "Ver tutorial": botão com a cara de um item do menu, mais discreto. */
.mp-sb-help { border: 0; background: none; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--mp-muted); text-align: left; cursor: pointer; }
.mp-sb-help:focus-visible { outline: 2px solid var(--mp-brand); outline-offset: 2px; }

.mp-sb-plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-surface);
  color: var(--mp-ink);
  text-decoration: none;
}
.mp-sb-plan:hover, .mp-sb-plan.on { border-color: var(--mp-brand); }
.mp-sb-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.mp-sb-plan small { font-size: 12px; color: var(--mp-muted); }
.mp-sb-plan small.is-warn { color: var(--mp-amber-d); font-weight: 600; }
.mp-sb-plan .mp-meter + small { margin-top: -4px; }

.mp-sb-user { display: flex; align-items: center; gap: 4px; padding: 4px 0 0; }
.mp-sb-me {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 10px;
  color: var(--mp-ink);
  text-decoration: none;
}
.mp-sb-me:hover, .mp-sb-me.on { background: var(--mp-hover); }
.mp-sb-me-t { flex: 1; min-width: 0; }
.mp-sb-me b { display: block; font-size: 13.5px; }
.mp-sb-me small { display: block; overflow: hidden; font-size: 12px; color: var(--mp-faint); text-overflow: ellipsis; white-space: nowrap; opacity: 1 !important; }
.mp-sb-me > svg { color: var(--mp-faint); flex-shrink: 0; }

.mp-av {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef0ea;
  color: var(--mp-ink);
  font: 700 12px var(--mp-display);
  letter-spacing: -.02em;
}
.mp-av.lg { width: 56px; height: 56px; font-size: 22px; background: var(--mp-brand-t); color: var(--mp-brand-d); }
.mp-av-stack { display: flex; align-items: center; }
.mp-av-stack .mp-av { box-shadow: 0 0 0 2px #fff; }
.mp-av-stack .mp-av + .mp-av { margin-left: -8px; }

.mp-meter { height: 6px; overflow: hidden; border-radius: 9px; background: #e8ebe5; }
.mp-meter i { display: block; height: 100%; border-radius: 9px; background: var(--mp-brand); transition: width .3s; }
.mp-meter.is-low i { background: var(--mp-amber); }

/* Topo e barra inferior do celular */
.mp-mtop, .mp-tabbar { display: none; }
.mp-mtop {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 58px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px 0 16px;
  background: var(--mp-surface);
  border-bottom: 1px solid var(--mp-line);
}
.mp-mtop-me { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; color: var(--mp-ink); text-decoration: none; }
.mp-mtop-me > span:last-child { min-width: 0; }
.mp-mtop-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--mp-ink); }
.mp-mtop-bell b {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: var(--mp-amber);
  color: #fff;
  font-size: 10.5px;
}
.mp-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--mp-surface);
  border-top: 1px solid var(--mp-line);
}
.mp-tabbar a, .mp-tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mp-faint);
  font: 600 11.5px var(--mp-font);
  text-decoration: none;
  cursor: pointer;
}
.mp-tabbar .on { color: var(--mp-brand-d); }
.mp-tabbar .lk:not(.on) { color: #a7b1b4; }
.mp-tb-ic { position: relative; display: grid; }
.mp-tb-ic b {
  position: absolute;
  top: -4px;
  right: -9px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: var(--mp-amber);
  color: #fff;
  font-size: 10.5px;
}
.mp-tb-ic b.dot { min-width: 8px; width: 8px; height: 8px; padding: 0; top: -1px; right: -3px; }
.mp-tb-ic .mp-tb-lk { position: absolute; top: -3px; right: -8px; border-radius: 50%; background: var(--mp-surface); color: var(--mp-faint); }

/* Menu lateral só com ícones (largura média) */
@media (max-width: 1179px) and (min-width: 760px) {
  /* Mesmo seletor da definição de 252px: com um seletor mais fraco, a lateral ficava larga. */
  body[data-page="meubot"].mp-body { --mp-sb-w: 72px; }
  .mp-sb { align-items: center; padding: 16px 10px; overflow-x: hidden; }
  .mp-sb-brand-t, .mp-sb-biz-t, .mp-sb-i span, .mp-sb-plan, .mp-sb-me-t, .mp-sb-me > svg { display: none; }
  .mp-sb-biz { padding: 6px; border: 0; background: none; }
  .mp-sb-i { justify-content: center; position: relative; padding: 11px; }
  .mp-sb-i b { position: absolute; top: 2px; right: 0; margin: 0; min-width: 18px; height: 18px; font-size: 10.5px; }
  .mp-sb-i .mp-sb-lk { position: absolute; top: 4px; right: 4px; margin: 0; }
  .mp-sb-help { width: auto; }
  .mp-sb-me { flex: none; }
  .mp-content { padding: 26px 26px 64px; }
}

/* Celular */
@media (max-width: 759px) {
  .mp-sb { display: none; }
  .mp-mtop { display: flex; }
  .mp-tabbar { display: grid; }
  .mp-content { padding: 16px 16px 112px; }
}

/* --------------------------------------------------------------------------
   Cabeçalho de página, abas, botões e selos
   -------------------------------------------------------------------------- */
.mp-ph { margin-bottom: 18px; }
.mp-ph-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mp-ph h1 { margin: 0; font: 700 28px/1.15 var(--mp-display); color: var(--mp-ink); }
.mp-ph-t p { max-width: 660px; margin: 5px 0 0; color: var(--mp-muted); font-size: 15px; }
.mp-ph-a { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-ph-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 759px) {
  .mp-ph { margin-bottom: 12px; }
  .mp-ph h1 { font-size: 22px; }
  .mp-ph-t p { font-size: 14px; }
}

.mp-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  color: var(--mp-brand-d);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}

.mp-tabs { display: flex; gap: 2px; margin-top: 18px; overflow-x: auto; border-bottom: 1px solid var(--mp-line); scrollbar-width: none; }
.mp-tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: -1px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--mp-muted);
  font: 600 14px var(--mp-font);
  white-space: nowrap;
  cursor: pointer;
}
.mp-tabs button.on { color: var(--mp-ink); border-color: var(--mp-brand); }
.mp-tabs button b { padding: 1px 7px; border-radius: 9px; background: #eceee9; color: var(--mp-muted); font-size: 11.5px; }
.mp-tabs button b.warn { background: var(--mp-amber-t); color: var(--mp-amber-d); }
.mp-tabpane.hidden { display: none !important; }

.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: var(--mp-surface);
  color: var(--mp-ink);
  font: 600 14px var(--mp-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.mp-btn:hover { border-color: #c4ccc3; background: #fafbf8; color: var(--mp-ink); }
.mp-btn-p { background: var(--mp-brand); border-color: var(--mp-brand); color: #fff; }
.mp-btn-p:hover { background: var(--mp-brand-d); border-color: var(--mp-brand-d); color: #fff; }
.mp-btn-g { background: transparent; border-color: transparent; color: var(--mp-brand-d); }
.mp-btn-g:hover { background: var(--mp-brand-t); border-color: transparent; color: var(--mp-brand-d); }
.mp-btn-dg { color: var(--mp-red); }
.mp-btn-dg:hover { border-color: #f0c2bc; background: var(--mp-red-t); color: var(--mp-red); }
.mp-btn-sm { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 13px; }
.mp-btn-icon { width: 38px; padding: 0; }
.mp-btn-full { width: 100%; }
.mp-btn:disabled, .mp-btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; }
@media (max-width: 759px) {
  .mp-btn { height: 44px; }
  .mp-btn-sm { height: 38px; }
}

.mp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 24px;
  padding: 0 9px;
  box-sizing: border-box;
  border-radius: 99px;
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}
.mp-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mp-pill-sm { height: 22px; padding: 0 8px; font-size: 12px; }
.mp-pill-ok { background: var(--mp-brand-t); color: var(--mp-brand-d); }
.mp-pill-setup { background: #fff; border: 1.5px dashed #e0a649; color: var(--mp-amber-d); }
.mp-pill-setup i { width: 8px; height: 8px; box-sizing: border-box; background: transparent; border: 1.5px solid currentColor; }
.mp-pill-warn { background: var(--mp-amber-t); color: var(--mp-amber-d); }
.mp-pill-off { background: var(--mp-off-t); color: var(--mp-muted); }
.mp-pill-lock { background: var(--mp-off-t); color: var(--mp-faint); }
.mp-pill-bad { background: var(--mp-red-t); color: var(--mp-red); }
.mp-pill-info { background: var(--mp-info-t); color: var(--mp-info); }
.mp-pill-up { background: var(--mp-up-t); color: var(--mp-up); }

.mp-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef0ea;
  color: var(--mp-ink2);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.mp-eyebrow { font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mp-brand); }
.mp-lnk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mp-brand-d);
  font: 600 13.5px var(--mp-font);
  text-decoration: none;
  cursor: pointer;
}
.mp-hint { color: var(--mp-muted); font-size: 13px; }
.mp-hint a { color: var(--mp-brand-d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mp-muted { color: var(--mp-muted); }

.mp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 34px;
  padding: 0 13px;
  box-sizing: border-box;
  border: 1px solid var(--mp-line);
  border-radius: 99px;
  background: var(--mp-surface);
  color: var(--mp-ink2);
  font: 600 13.5px var(--mp-font);
  white-space: nowrap;
  cursor: pointer;
}
.mp-chip:hover { border-color: #c4ccc3; }
.mp-chip.on { background: var(--mp-ink); border-color: var(--mp-ink); color: #fff; }
.mp-chip .cnum { margin-left: 2px; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, .07); font-size: 11.5px; }
.mp-chip.on .cnum { background: rgba(255, 255, 255, .2); }

/* --------------------------------------------------------------------------
   Cartões e listas
   -------------------------------------------------------------------------- */
.mp-card { min-width: 0; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 16px; }
.mp-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; }
.mp-card-h h3 { margin: 0; font: 650 15.5px var(--mp-display); color: var(--mp-ink); }
.mp-card-h p { margin: 2px 0 0; color: var(--mp-muted); font-size: 13px; }
.mp-card-b { padding: 0 18px 18px; }
.mp-rows { margin: 0; padding: 0; list-style: none; }
.mp-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--mp-line2); }
.mp-row[data-mp-go], .mp-row[data-mp-act] { cursor: pointer; }
.mp-row[data-mp-go]:hover, .mp-row[data-mp-act]:hover { background: #fafbf8; }
.mp-row-main { flex: 1; min-width: 0; }
.mp-row-main b { display: block; font-weight: 600; font-size: 14.5px; }
.mp-row-main small { display: block; color: var(--mp-muted); font-size: 13px; }
.mp-row-when { width: 58px; flex-shrink: 0; }
.mp-row-when b { display: block; font: 600 15px var(--mp-display); }
.mp-row-when small { color: var(--mp-faint); font-size: 12px; }
.mp-row-act { flex-shrink: 0; }
.mp-att-ic { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--mp-amber-t); color: var(--mp-amber-d); }
.mp-att-ic.off { background: var(--mp-off-t); color: var(--mp-muted); }
.mp-rows-more { width: 100%; padding: 11px; border: 0; border-top: 1px solid var(--mp-line2); background: none; color: var(--mp-brand-d); font: 600 13.5px var(--mp-font); cursor: pointer; }
.mp-doc-ic { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #eef0ea; color: var(--mp-ink2); font-weight: 700; font-size: 10.5px; letter-spacing: .04em; }

.mp-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f1f3ef; color: var(--mp-ink2); font-size: 13.5px; }
.mp-note svg { flex-shrink: 0; margin-top: 1px; }
.mp-note.warn { background: var(--mp-amber-t); color: var(--mp-amber-d); }
.mp-note.bad { background: var(--mp-red-t); color: var(--mp-red); }

.mp-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; color: var(--mp-muted); text-align: center; }
.mp-empty.big { padding: 52px 24px; background: var(--mp-surface); border: 1.5px dashed #cdd4cb; border-radius: 18px; }
.mp-empty h2 { margin: 0; font: 700 21px var(--mp-display); color: var(--mp-ink); }
.mp-empty p { max-width: 480px; margin: 0; }
.mp-empty-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mp-brand-t); color: var(--mp-brand); }

.mp-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mp-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 860px) { .mp-two-col { grid-template-columns: minmax(0, 1fr); gap: 14px; } .mp-col { gap: 14px; } }

/* --------------------------------------------------------------------------
   Início
   -------------------------------------------------------------------------- */
.mp-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; margin-top: 18px; align-items: start; }
@media (max-width: 1060px) { .mp-home-grid { grid-template-columns: minmax(0, 1fr) 290px; } }
@media (max-width: 860px) { .mp-home-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; } }

.mp-botst {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: 16px;
}
.mp-botst-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mp-botst-l b { display: block; font-size: 15px; }
.mp-botst-l small { display: block; color: var(--mp-muted); font-size: 13px; }
.mp-botst-l small span + span::before { content: " · "; }
.mp-botst-l small span:empty { display: none; }
.mp-botst-pulse { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #dcf5e6; }
.mp-botst-pulse i { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; animation: mpPulse 2s infinite; }
.mp-botst-pulse.is-off { background: var(--mp-off-t); }
.mp-botst-pulse.is-off i { background: var(--mp-faint); animation: none; }
.mp-botst-pulse.is-warn { background: var(--mp-amber-t); }
.mp-botst-pulse.is-warn i { background: var(--mp-amber); animation: none; }
@keyframes mpPulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
  70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.mp-botst-r { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.mp-botst #meubotStatusBadge { display: none; }
.mp-botst #meubotPlanBadge { margin-left: 4px; }
.mp-linkpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  max-width: 100%;
  min-width: 0;
  padding: 0 4px 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: var(--mp-bg);
  color: var(--mp-ink2);
}
.mp-linkpill.hidden { display: none !important; }
.mp-linkpill code { overflow: hidden; font: 500 12.5px ui-monospace, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mp-linkpill button {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: var(--mp-surface);
  color: var(--mp-brand-d);
  font: 600 12.5px var(--mp-font);
  cursor: pointer;
}
.mp-linkpill button:hover { background: var(--mp-brand-t); }
@media (max-width: 759px) {
  .mp-botst { padding: 12px 14px; }
  .mp-botst-r { width: 100%; }
  .mp-linkpill { flex: 1 1 100%; height: 42px; }
  .mp-linkpill code { flex: 1; }
  .mp-botst-r .mp-btn { flex: 1; }
  /* Confirmar vira só o ícone, ao alcance do polegar */
  .mp-row-act [data-mp-act="confirm"] { width: 44px; padding: 0; }
  .mp-row-act [data-mp-act="confirm"] span { display: none; }
  /* Pendências: a ação desce para baixo do texto */
  .mp-att-row { flex-wrap: wrap; }
  .mp-att-row .mp-row-act { width: 100%; padding-left: 48px; }
}

.mp-today-row { flex-wrap: wrap; }
.mp-tl { position: relative; flex-shrink: 0; width: 240px; height: 12px; border-radius: 6px; background: #f0f2ed; }
.mp-tl i { position: absolute; top: 0; bottom: 0; border-radius: 4px; opacity: .85; }
.mp-tl i.pending { background: repeating-linear-gradient(135deg, #f5b14c 0 3px, #fbd9a3 3px 6px) !important; }
.mp-tl em { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: #e5484d; }
.mp-tl-axis { display: flex; justify-content: space-between; width: 240px; margin: 0 18px 12px auto; color: var(--mp-faint); font-size: 11px; }
@media (max-width: 759px) { .mp-tl { order: 3; width: 100%; } .mp-tl-axis { display: none; } }

.mp-kpis3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mp-kpis3.two { grid-template-columns: 1fr 1fr; }
.mp-kpis3 b { display: block; font: 700 26px var(--mp-display); letter-spacing: -.03em; }
.mp-kpis3 small { display: block; color: var(--mp-muted); font-size: 12.5px; line-height: 1.3; }
.mp-mini-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.mp-tool-meter { margin-bottom: 8px; }
.mp-tool-meter b { font: 700 26px var(--mp-display); }
.mp-tool-meter span { margin-left: 6px; color: var(--mp-muted); font-size: 13.5px; }
.mp-sugg {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-surface);
  color: var(--mp-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.mp-sugg:hover { border-color: var(--mp-brand); }
.mp-sugg > span:nth-child(2) { flex: 1; min-width: 0; }
.mp-sugg b { display: block; font-size: 14px; font-weight: 600; }
.mp-sugg small { display: block; color: var(--mp-muted); font-size: 12.5px; }
.mp-sugg-ic { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--mp-brand-t); color: var(--mp-brand-d); }

.mp-guide { padding: 24px; border-radius: 20px; background: #0d4a45; color: #fff; }
.mp-guide .mp-eyebrow { color: #7ddccb; }
.mp-guide h2 { margin: 6px 0; font: 700 24px var(--mp-display); color: #fff; }
.mp-guide p { max-width: 540px; color: #cbe6e0; }
.mp-guide-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.mp-guide-steps li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.mp-guide-steps b { display: block; font-size: 14.5px; }
.mp-guide-steps small { color: #b6d8d1; font-size: 12.5px; }
.mp-gs-n { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 50%; font-weight: 700; font-size: 12.5px; }
.mp-guide-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.mp-guide .mp-btn-p { background: #fff; border-color: #fff; color: var(--mp-brand-d); }
.mp-guide .mp-btn-p:hover { background: var(--mp-brand-t); }
.mp-guide .mp-hint { color: #a9cfc8; }
@media (max-width: 759px) {
  .mp-guide { padding: 18px; }
  .mp-guide h2 { font-size: 20px; }
  .mp-guide-steps { grid-template-columns: 1fr; }
  .mp-guide-foot .mp-btn { width: 100%; }
}

.mp-up-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid #e1dcf3; border-radius: 16px; background: #f3f1fb; }
.mp-up-card .mp-eyebrow { color: var(--mp-up); }
.mp-up-card h2 { margin: 4px 0; font: 700 20px var(--mp-display); }
.mp-up-card p { color: var(--mp-ink2); }
.mp-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-mini-feats { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.mp-mini-feats li { display: flex; align-items: center; gap: 8px; }
.mp-mini-feats svg { flex-shrink: 0; color: var(--mp-brand); }

/* Três portas (conta sem produto) */
#stateNoServices.mp-doors-wrap { margin-top: 4px; }
.mp-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mp-door {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-top: 4px solid var(--dc);
  border-radius: 18px;
}
.mp-door-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: color-mix(in oklab, var(--dc) 12%, white); color: var(--dc); }
.mp-door-e { font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dc); }
.mp-door h2 { margin: 0; font: 700 21px var(--mp-display); }
.mp-door > p { margin: 0; color: var(--mp-muted); font-size: 14.5px; }
.mp-door ul { flex: 1; display: grid; align-content: start; gap: 6px; margin: 6px 0 12px; padding: 0; list-style: none; font-size: 13.5px; }
.mp-door li { display: flex; align-items: center; gap: 8px; }
.mp-door li svg { color: var(--dc); }
@media (max-width: 860px) { .mp-doors { grid-template-columns: 1fr; } }

/* Página trancada pelo plano */
.mp-lock-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: 20px;
}
.mp-lock-hero.hidden { display: none !important; }
.mp-lh-l { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mp-lh-l h2 { margin: 0; font: 700 26px var(--mp-display); }
.mp-lh-l > p { margin: 0; color: var(--mp-muted); font-size: 15.5px; }
.mp-lh-b { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.mp-lh-b li { display: flex; align-items: center; gap: 8px; }
.mp-lh-b svg { flex-shrink: 0; color: var(--mp-brand); }
.mp-lh-r { position: relative; padding: 18px; border: 1px dashed #cfd6cd; border-radius: 16px; background: var(--mp-bg); }
.mp-lh-ex {
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 2px 10px;
  border: 1px solid var(--mp-line);
  border-radius: 99px;
  background: var(--mp-surface);
  color: var(--mp-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 759px) {
  .mp-lock-hero { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .mp-lh-l h2 { font-size: 21px; }
  .mp-lh-l .mp-btn-row .mp-btn { flex: 1; }
}
.mp-alist { margin: 0; padding: 0; overflow: hidden; list-style: none; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 14px; }
.mp-arow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--mp-line2); }
.mp-arow:first-child { border-top: 0; }
.mp-arow-t { width: 48px; flex-shrink: 0; }
.mp-arow-t b { display: block; font: 600 15px var(--mp-display); }
.mp-arow-bar { flex-shrink: 0; align-self: stretch; width: 3px; border-radius: 3px; background: var(--mp-brand); }
.mp-arow-m { flex: 1; min-width: 0; }
.mp-arow-m b { display: block; font-weight: 600; font-size: 14.5px; }
.mp-arow-m small { display: block; color: var(--mp-muted); font-size: 13px; }
.mp-bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.mp-bars i { flex: 1; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--mp-brand); opacity: .85; }

/* --------------------------------------------------------------------------
   Equipe
   -------------------------------------------------------------------------- */
.mp-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 16px; }
.mp-summary.hidden { display: none !important; }
.mp-summary > div { padding: 14px 18px; border-left: 1px solid var(--mp-line2); }
.mp-summary > div:first-child { border-left: 0; }
.mp-summary b { display: block; font: 700 24px var(--mp-display); }
.mp-summary b.ok { color: var(--mp-brand); }
.mp-summary b.info { color: var(--mp-info); }
.mp-summary b.warn { color: var(--mp-amber-d); }
.mp-summary b.muted { color: var(--mp-muted); }
.mp-summary small { color: var(--mp-muted); font-size: 12.5px; }
@media (max-width: 759px) {
  .mp-summary { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); overflow-x: auto; scrollbar-width: none; }
  .mp-summary > div { padding: 12px 14px; }
}
.mp-explain { margin-bottom: 16px; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 14px; }
.mp-explain.hidden { display: none !important; }
.mp-explain summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--mp-brand-d); font-weight: 600; list-style: none; cursor: pointer; }
.mp-explain summary::-webkit-details-marker { display: none; }
.mp-explain p { margin: 0; padding: 0 16px 14px; color: var(--mp-muted); }

/* --------------------------------------------------------------------------
   Ferramentas
   -------------------------------------------------------------------------- */
.mp-tools-sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 16px 20px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: 16px;
}
.mp-ts-l b { font: 700 22px var(--mp-display); }
.mp-ts-l span { display: block; color: var(--mp-muted); font-size: 13.5px; }
.mp-ts-l .mp-meter { width: 300px; max-width: 100%; margin-top: 8px; }
.mp-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-fbar { margin-bottom: 20px; }
.mp-tgroup { margin-bottom: 26px; }
.mp-tgroup h4 { margin: 0 0 10px; font: 700 12px var(--mp-font); letter-spacing: .09em; text-transform: uppercase; color: var(--mp-faint); }
.mp-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mp-tcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  color: var(--mp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mp-tcard:hover { border-color: #bfc8be; box-shadow: var(--mp-sh); transform: translateY(-1px); }
.mp-tcard b { font-size: 15.5px; font-weight: 600; }
.mp-tcard p { flex: 1; margin: 0; color: var(--mp-muted); font-size: 13.5px; }
.mp-tcard.s-setup, .mp-tcard.s-agenda { border-style: dashed; border-color: #d9c6a3; }
.mp-tcard.s-action { border-color: #f0c98a; box-shadow: inset 0 0 0 1px #f0c98a; }
.mp-tcard.s-other, .mp-tcard.s-upgrade { background: #f7f8f5; }
.mp-tcard.s-other b, .mp-tcard.s-paused b, .mp-tcard.s-upgrade b { color: var(--mp-muted); }
.mp-tc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.mp-tc-ic { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--mp-brand-t); color: var(--mp-brand-d); }
.s-setup .mp-tc-ic, .s-agenda .mp-tc-ic, .mp-tc-ic.s-setup, .mp-tc-ic.s-agenda { box-sizing: border-box; background: #fff; border: 1.5px dashed #e0a649; color: var(--mp-amber-d); }
.s-action .mp-tc-ic, .mp-tc-ic.s-action { background: var(--mp-amber-t); color: var(--mp-amber-d); }
.s-paused .mp-tc-ic, .s-other .mp-tc-ic, .s-upgrade .mp-tc-ic,
.mp-tc-ic.s-paused, .mp-tc-ic.s-other, .mp-tc-ic.s-upgrade { background: var(--mp-off-t); color: var(--mp-faint); }
.mp-tc-cta { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--mp-brand-d); font-weight: 600; font-size: 13.5px; }
.s-other .mp-tc-cta, .s-upgrade .mp-tc-cta { color: var(--mp-muted); }
@media (max-width: 759px) { .mp-tgrid { grid-template-columns: 1fr; } }
.mp-tool-detail.hidden, #mpToolsCatalogWrap.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Plano e conta
   -------------------------------------------------------------------------- */
.mp-plan-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: #0e1a1b; color: #fff; }
.mp-plan-card .mp-eyebrow { color: #5eead4; }
.mp-plan-card h2 { margin: 4px 0; font: 700 24px var(--mp-display); color: #fff; }
.mp-plan-card p { margin: 0; color: #b9c6c4; }
.mp-plan-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.mp-plan-card li { display: flex; align-items: center; gap: 8px; }
.mp-plan-card li svg { flex-shrink: 0; color: #5eead4; }
.mp-plan-card .mp-btn { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.mp-plan-card .mp-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.mp-plan-card .mp-btn-p { background: #fff; border-color: #fff; color: var(--mp-ink); }
.mp-plan-card .mp-btn-p:hover { background: var(--mp-brand-t); color: var(--mp-ink); }
.mp-plan-top { margin-bottom: 20px; }
.mp-plan-top:empty { display: none; }

.mp-acc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; padding: 16px 18px; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 16px; }
.mp-acc-head > div:nth-child(2) { flex: 1; min-width: 180px; }
.mp-acc-head b { display: block; font: 600 17px var(--mp-display); }
.mp-acc-head small { color: var(--mp-muted); }
.mp-acc-prods { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-danger { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; background: #fff8f7; border: 1px solid #f0c9c3; border-radius: 16px; }
.mp-danger b { display: block; font: 600 15.5px var(--mp-display); color: var(--mp-red); }
.mp-danger p { max-width: 380px; margin: 2px 0 0; color: var(--mp-muted); font-size: 13.5px; }
@media (max-width: 759px) { .mp-danger .mp-btn { width: 100%; } }

/* --------------------------------------------------------------------------
   Painel lateral / folha inferior (ferramenta e menu "Mais")
   -------------------------------------------------------------------------- */
.mp-ov { position: fixed; inset: 0; z-index: 120; }
.mp-ov.hidden { display: none !important; }
.mp-ov-bg { position: absolute; inset: 0; background: rgba(19, 32, 34, .32); animation: mpFadeIn .2s ease; }
@keyframes mpFadeIn { from { opacity: 0; } }
.mp-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 460px;
  max-width: 100%;
  background: var(--mp-surface);
  box-shadow: -24px 0 60px -24px rgba(0, 0, 0, .3);
  animation: mpSlideIn .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes mpSlideIn { from { transform: translateX(100%); } }
.mp-grab { display: none; flex-shrink: 0; width: 40px; height: 5px; margin: 8px auto 0; border-radius: 9px; background: #d5dad3; }
.mp-sh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--mp-line2); }
.mp-sh-head h3 { margin: 0 0 4px; font: 700 19px var(--mp-display); }
.mp-sh-head p { margin: 3px 0 0; color: var(--mp-muted); font-size: 13.5px; }
.mp-sh-body { flex: 1; display: flex; flex-direction: column; gap: 14px; overflow: auto; padding: 18px 22px 24px; }
.mp-sh-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--mp-line2); }
.mp-sh-foot:empty { display: none; }
.mp-tool-h { display: flex; align-items: center; gap: 12px; }
.mp-lead { margin: 0; color: var(--mp-ink2); font-size: 15.5px; }
.mp-why b { display: block; margin-bottom: 3px; font-size: 13px; }
.mp-why p { margin: 0; color: var(--mp-muted); }
.mp-more-list { display: flex; flex-direction: column; gap: 2px; }
.mp-more-list a, .mp-more-list button { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-radius: 12px; color: var(--mp-ink); text-decoration: none; }
.mp-more-list button { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.mp-more-list a > span:nth-child(2), .mp-more-list button > span:nth-child(2) { flex: 1; }
.mp-more-list b { display: block; font-size: 15px; }
.mp-more-list small { color: var(--mp-muted); font-size: 13px; }
.mp-more-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mp-brand-t); color: var(--mp-brand-d); }
@media (max-width: 759px) {
  .mp-drawer {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 92%;
    border-radius: 22px 22px 0 0;
    animation-name: mpSlideUp;
  }
  @keyframes mpSlideUp { from { transform: translateY(100%); } }
  .mp-grab { display: block; }
  .mp-sh-head { padding: 12px 18px; }
  .mp-sh-body { padding: 14px 18px 20px; }
  .mp-sh-foot { padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .mp-sh-foot .mp-btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Avisos globais (teste grátis, somente leitura, assinatura)
   -------------------------------------------------------------------------- */
.mp-global { display: flex; flex-direction: column; gap: 10px; }
.mp-global:has(> :not(.hidden)) { margin-bottom: 20px; }

/* Faixa da assinatura e do assistente: um formato só para todos os motivos. Quais páginas
   mostram cada aviso é decidido em casca.js (statusModel). */
.mp-status { padding: 16px 18px; border: 1px solid var(--mp-line); border-radius: 16px; background: var(--mp-surface); }
.mp-status.hidden { display: none; }
.mp-status-row { display: flex; align-items: flex-start; gap: 14px; }
.mp-status-ic { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--mp-brand-t); color: var(--mp-brand-d); }
.mp-status-txt { flex: 1; min-width: 0; }
.mp-status-txt b { display: block; font: 650 15.5px var(--mp-display); letter-spacing: -.01em; color: var(--mp-ink); }
.mp-status-txt p { margin: 3px 0 0; color: var(--mp-ink2); font-size: 13.5px; }
.mp-status-txt .mp-status-ro { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; color: var(--mp-muted); font-size: 12.5px; }
.mp-status-ro svg { flex-shrink: 0; margin-top: 2px; }
.mp-status-act { flex-shrink: 0; align-self: center; }
.mp-status.is-warn { border-color: #f0d9b0; background: var(--mp-amber-t); }
.mp-status.is-warn .mp-status-ic { background: #fff; color: var(--mp-amber-d); }
.mp-status.is-bad { border-color: #f0c9c3; background: #fdf5f3; }
.mp-status.is-bad .mp-status-ic { background: var(--mp-red-t); color: var(--mp-red); }
.mp-status-track { display: flex; gap: 5px; margin: 14px 0 0 54px; }
.mp-status-track i { flex: 1; height: 7px; border-radius: 3px; background: #e6e9e2; }
.mp-status-track i.on { background: var(--mp-brand); }
.mp-status.is-warn .mp-status-track i { background: #f1e3c4; }
.mp-status.is-warn .mp-status-track i.on { background: var(--mp-amber); }
.mp-status-track i.now { box-shadow: 0 0 0 3px var(--mp-brand-t); }
.mp-status.is-warn .mp-status-track i.now { box-shadow: 0 0 0 3px #fff; }
.mp-status-scale { display: flex; justify-content: space-between; margin: 7px 0 0 54px; color: var(--mp-faint); font-size: 11.5px; font-weight: 600; }
@media (max-width: 759px) {
  .mp-status { padding: 14px; }
  .mp-status-row { flex-wrap: wrap; gap: 12px; }
  .mp-status-txt { flex-basis: calc(100% - 54px); }
  .mp-status-act { width: 100%; }
  .mp-status-act .mp-btn { width: 100%; }
  .mp-status-track, .mp-status-scale { margin-left: 0; }
}

/* Rascunho do "Criar minha IA" (aviso do Início) na paleta da casca */
.mp-body .bot-draft-notice { margin-bottom: 18px; padding: 20px; border: 1px solid var(--mp-line); border-radius: 18px; background: var(--mp-surface); }
.mp-body .bot-draft-notice .bdn-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mp-brand-t); box-shadow: none; color: var(--mp-brand-d); }
.mp-body .bot-draft-notice h3 { margin: 0 0 6px; font: 650 17px var(--mp-display); color: var(--mp-ink); }
.mp-body .bot-draft-notice p { color: var(--mp-ink2); font-size: 14px; }
.mp-body .bot-draft-notice .bdn-cta { display: inline-flex; align-items: center; margin: 14px 0 10px; padding: 0 16px; height: 40px; border: 1px solid var(--mp-brand); border-radius: 11px; background: var(--mp-brand); box-shadow: none; color: #fff; font: 600 14px var(--mp-font); }
.mp-body .bot-draft-notice .bdn-cta:hover { background: var(--mp-brand-d); border-color: var(--mp-brand-d); }
.mp-body .bot-draft-notice .bdn-hint { color: var(--mp-muted); font-size: 13px; }

/* Botões travados (somente leitura): mantêm o rótulo, com o cadeado da casca */
.mp-body .is-trial-locked .lock-ic, .mp-body .tile-lock .lock-ic, .mp-body .lk .lock-ic { flex-shrink: 0; vertical-align: -2px; }
.mp-body button.is-trial-locked { display: inline-flex; align-items: center; gap: 6px; pointer-events: auto !important; cursor: not-allowed; }
.mp-body .tile-lock { gap: 5px; }

/* Início: cartão do plano e pendentes em somente leitura */
.mp-plan-meter { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.mp-plan-meter small { color: var(--mp-muted); font-size: 12.5px; }
.mp-mini-feats + .mp-plan-meter { margin-top: 14px; }
p.mp-rows-more { margin: 0; color: var(--mp-muted); font-weight: 500; text-align: center; cursor: default; }

/* --------------------------------------------------------------------------
   Componentes existentes dentro da casca nova
   -------------------------------------------------------------------------- */
/* Estados de carregamento e acesso */
.mp-content #stateLoading { max-width: 760px; margin: 0 auto; }

/* Blocos que nunca recolhem nas páginas novas */
.mp-page #agendaAiSectionBody.collapsed,
.mp-page #finSectionBody.collapsed { display: block; }
.mp-page #agendaAiSectionBody,
.mp-page #finSectionBody { padding: 0; border-top: 0; }
.mp-page .np-mod-divider { display: none; }

/* Seções que eram painéis dentro de abas viram blocos da página */
.mp-page .np-sec + .np-sec,
.mp-page .meubot-utility-panel + .meubot-utility-panel { margin-top: 20px; }
.mp-page .meubot-utility-panel { border-radius: 16px; border-color: var(--mp-line); box-shadow: none; background: #fff; backdrop-filter: none; }
.mp-page .np-sec-label { font-family: var(--mp-display); }

/* Desempenho: o cabeçalho da página já diz o que é */
[data-mp-page="desempenho"] #sectionAnalytics > .np-sec-top,
[data-mp-page="desempenho"] .analytics-hero .analytics-eyebrow,
[data-mp-page="desempenho"] .analytics-hero .analytics-title,
[data-mp-page="desempenho"] .analytics-hero .analytics-subtitle { display: none; }


/* Plano: saldo de alertas como cartão */
[data-mp-page="plano"] #botTileAlertBalance {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  box-shadow: none;
}
[data-mp-page="plano"] #botTileAlertBalance.hidden { display: none !important; }
[data-mp-page="plano"] #botTileAlertBalance .bot-overview-eyebrow { margin: 0; font: 650 15.5px var(--mp-display); letter-spacing: -.01em; text-transform: none; color: var(--mp-ink); }
[data-mp-page="plano"] #botTileAlertBalance .bot-overview-tile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Agenda e Equipe: o painel do calendário vive dentro da página, não por cima dela */
.mp-cal-host .calendar-overlay {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  place-items: normal; /* o original centraliza o painel (place-items: center) */
  width: auto;
  min-height: 0;
  padding: 0;
}
.mp-cal-host .calendar-overlay.hidden { display: none; }
.mp-cal-host .calendar-overlay-backdrop,
.mp-cal-host .cal-head,
.mp-cal-host .cal-tab[data-tab="team"] { display: none; }
.mp-cal-host .calendar-overlay-panel {
  width: auto;
  min-width: 0;
  height: calc(100vh - 210px);
  min-height: 620px;
  max-height: none;
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.mp-cal-host[data-mode="team"] .calendar-overlay-panel { height: auto; min-height: 0; overflow: visible; border: 0; background: transparent; }
.mp-cal-host[data-mode="team"] .cal-tabbar { display: none; }
.mp-cal-host[data-mode="team"] .cal-pane { flex: none; }
.mp-cal-host[data-mode="team"] .cal-blocks-shell { overflow: visible; padding: 0; background: transparent; }
.mp-cal-host[data-mode="team"] #calTeamPanel > .cal-blocks-shell > header { display: none; }
/* Botão flutuante de bloqueio rápido: só no celular (no computador há o botão no rodapé). */
body[data-page="meubot"].mp-body .cal-fab { display: none; }
@media (max-width: 759px) {
  /* No celular a página rola inteira: o painel cresce com o conteúdo em vez de rolar por dentro. */
  .mp-cal-host .calendar-overlay-panel { height: auto; min-height: 0; overflow: visible; border-radius: 14px; }
  .mp-cal-host .cal-pane,
  .mp-cal-host .cal-main,
  .mp-cal-host .cfg-guided { flex: none; min-height: 0; overflow: visible; }
  .mp-cal-host .cal-board-shell,
  .mp-cal-host .cal-side,
  .mp-cal-host .cal-cfg-scroll,
  .mp-cal-host .cal-blocks-shell { overflow: visible; }
  .mp-cal-host .cal-notifs { max-height: none; }
  .mp-cal-host .cal-subbar,
  .mp-cal-host .cal-period-nav { flex-wrap: wrap; row-gap: 8px; }
  body[data-page="meubot"].mp-body .cal-pane[data-pane="agenda"] .cal-fab {
    position: fixed;
    right: 16px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    z-index: 46;
    display: grid;
    place-items: center;
  }
}

/* ==========================================================================
   Agenda (pagina-agenda.js): calendário, horários e folgas, regras
   ========================================================================== */
.mp-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: #eaede7; }
.mp-seg button {
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mp-muted);
  font: 600 13.5px var(--mp-font);
  white-space: nowrap;
  cursor: pointer;
}
.mp-seg button.on { background: #fff; color: var(--mp-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.mp-seg-sm button { height: 28px; padding: 0 11px; font-size: 13px; }
@media (max-width: 759px) { .mp-seg button { height: 36px; } }
.mp-cdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.mp-cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mp-cal-nav { display: flex; align-items: center; gap: 6px; }
.mp-cal-lbl { margin-left: 8px; font: 600 16px var(--mp-display); letter-spacing: -.01em; }
.mp-cal-loading { margin-left: 8px; font-size: 12.5px; }
.mp-cal-filters { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mp-cal-empty { margin: -4px 0 10px; }
@media (max-width: 759px) {
  .mp-cal-bar { flex-wrap: nowrap; }
  .mp-cal-lbl { margin-left: 0; }
  .mp-cal-filters { flex-direction: column; flex-wrap: nowrap; }
}

/* Grade do dia (uma coluna por profissional) e da semana */
.mp-grid-wrap { max-height: 680px; overflow: auto; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 16px; }
.mp-dgrid { min-width: calc(56px + var(--cols) * 160px); }
.mp-dgrid.week { min-width: 820px; }
.mp-dg-head, .mp-dg-body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(0, 1fr)); }
.mp-dg-head { position: sticky; top: 0; z-index: 6; background: var(--mp-surface); border-bottom: 1px solid var(--mp-line); }
.mp-dg-ph { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border-left: 1px solid var(--mp-line2); }
.mp-dg-ph b { display: block; font-size: 13.5px; }
.mp-dg-ph small { color: var(--mp-faint); font-size: 11.5px; white-space: nowrap; }
.mp-dg-dh { padding: 8px 4px; border: 0; border-left: 1px solid var(--mp-line2); background: none; text-align: center; cursor: pointer; font: inherit; color: var(--mp-ink); }
.mp-dg-dh small { display: block; color: var(--mp-faint); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mp-dg-dh b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 600 16px var(--mp-display); }
.mp-dg-dh.today b { background: var(--mp-brand); color: #fff; }
.mp-dg-body { position: relative; }
.mp-hrs { position: absolute; inset: 0; pointer-events: none; }
.mp-hr { border-top: 1px solid var(--mp-line2); }
.mp-hr:first-child { border-top: 0; }
.mp-dg-gut { position: relative; }
.mp-dg-gut span { position: absolute; left: 10px; color: var(--mp-faint); font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; }
.mp-dg-col { position: relative; border-left: 1px solid var(--mp-line2); }
.mp-ev {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  padding: 5px 8px;
  border: 0;
  border-left: 3px solid var(--pc);
  border-radius: 8px;
  background: color-mix(in oklab, var(--pc) 12%, white);
  color: var(--mp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s;
}
.mp-ev:hover { z-index: 4; box-shadow: 0 4px 14px -4px rgba(19, 32, 34, .25); }
.mp-ev b { overflow: hidden; font-size: 12.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mp-ev small { overflow: hidden; color: var(--mp-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.mp-ev.pending { background: repeating-linear-gradient(135deg, #fff8eb 0 6px, #fdefd6 6px 12px); border-left-color: var(--mp-amber); }
.mp-ev.cancelled { background: #f3f4f1; border-left-color: #c5cbc3; opacity: .5; }
.mp-ev.cancelled b { text-decoration: line-through; }
.mp-ev-flag { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--mp-amber); }
.mp-ev.sm { left: 3px; right: 3px; padding: 3px 5px; border-radius: 6px; }
.mp-ev.sm b { font-size: 11.5px; }
.mp-ev.sm small { font-size: 10.5px; }
.mp-ev-lane { position: absolute; inset: 0; pointer-events: none; }
.mp-ev-lane .mp-ev { pointer-events: auto; }
.mp-blk {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #f2f4f0 0 5px, #e7eae5 5px 10px);
  color: var(--mp-faint);
  font-size: 11.5px;
  font-weight: 600;
}
.mp-now { position: absolute; left: 56px; right: 0; z-index: 5; height: 2px; background: #e5484d; pointer-events: none; }
.mp-now span { position: absolute; top: -9px; left: -50px; padding: 0 3px; background: var(--mp-surface); color: #e5484d; font-size: 11px; font-weight: 700; }

/* Lista da semana e do dia */
.mp-list-days section { margin-bottom: 18px; }
.mp-list-days h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 14px var(--mp-font); letter-spacing: 0; }
.mp-arow[data-mp-act] { cursor: pointer; }
.mp-arow[data-mp-act]:hover { background: #fafbf8; }
.mp-arow-t small { color: var(--mp-faint); font-size: 12px; }
.mp-arow.cancelled .mp-arow-m b { color: var(--mp-faint); text-decoration: line-through; }
.mp-now-m { display: flex; align-items: center; gap: 8px; padding: 4px 14px; color: #e5484d; font-size: 12px; font-weight: 700; list-style: none; }
.mp-now-m::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: #e5484d; }
@media (max-width: 759px) {
  .mp-mday .mp-arow .mp-pill, .mp-list-days .mp-arow .mp-pill { width: 10px; height: 10px; gap: 0; padding: 0; font-size: 0; }
  .mp-mday .mp-arow .mp-pill i, .mp-list-days .mp-arow .mp-pill i { width: 10px; height: 10px; }
}

/* Faixa de dias (celular e painéis) */
.mp-dstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.mp-dstrip button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 58px;
  padding: 7px 0 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--mp-ink);
  font: inherit;
  cursor: pointer;
}
.mp-dstrip small { color: var(--mp-faint); font-size: 11.5px; font-weight: 600; }
.mp-dstrip b { font: 600 17px var(--mp-display); }
.mp-dstrip span { display: flex; height: 6px; }
.mp-dstrip span i { width: 5px; height: 5px; border-radius: 50%; background: var(--mp-brand); }
.mp-dstrip span i.warn { background: var(--mp-amber); }
.mp-dstrip button.today b { color: var(--mp-brand); }
.mp-dstrip button.on { background: var(--mp-ink); color: #fff; }
.mp-dstrip button.on small { color: #b9c6c4; }
.mp-dstrip button.on b { color: #fff; }
.mp-dstrip.in-sheet { display: flex; gap: 6px; margin: 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.mp-dstrip.in-sheet button { flex-shrink: 0; min-width: 56px; border: 1px solid var(--mp-line); }
.mp-dstrip.in-sheet button.on { border-color: var(--mp-ink); }

.mp-fab-row { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 44; display: flex; gap: 10px; }
.mp-fab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 99px;
  background: var(--mp-brand);
  color: #fff;
  font: 700 15px var(--mp-font);
  box-shadow: 0 12px 26px -8px rgba(15, 118, 110, .6);
  cursor: pointer;
}
.mp-fab.ghost { justify-content: center; width: 52px; padding: 0; border: 1px solid var(--mp-line); background: var(--mp-surface); color: var(--mp-ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .25); }

/* Conteúdo dos painéis */
.mp-drawer.wide { width: 600px; }
.mp-ah h3 { margin: 8px 0 2px; font: 700 21px var(--mp-display); }
.mp-ah p { margin: 0; color: var(--mp-muted); font-size: 14px; }
.mp-lbl { margin: 4px 0 -4px; color: var(--mp-ink2); font-weight: 600; font-size: 13px; }
.mp-card-b .mp-lbl { display: block; margin: 14px 0 8px; }
.mp-card-b .mp-lbl:first-child { margin-top: 0; }
.mp-dl { margin: 0; border: 1px solid var(--mp-line2); border-radius: 12px; }
.mp-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--mp-line2); }
.mp-dl > div:first-child { border-top: 0; }
.mp-dl dt { color: var(--mp-muted); font-size: 13.5px; }
.mp-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: 14px; text-align: right; }
.mp-dl dd a { color: var(--mp-brand-d); }
.mp-dd-pro { display: inline-flex; align-items: center; gap: 8px; }
.mp-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-slots button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: var(--mp-surface);
  color: var(--mp-ink);
  font: 600 14px var(--mp-font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.mp-slots button.on { background: var(--mp-brand); border-color: var(--mp-brand); color: #fff; }
.mp-opts { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mp-optrow[hidden] {
  display: none;
}

.mp-optrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-surface);
}
.mp-optrow b { display: block; font-size: 14px; }
.mp-optrow small { display: block; color: var(--mp-muted); font-size: 12.5px; }
.mp-warn-txt { display: block; margin-top: 3px; color: var(--mp-amber-d); font-weight: 600; font-size: 12.5px; }
.mp-warn-txt:empty { display: none; }
.mp-sw { position: relative; flex-shrink: 0; width: 42px; height: 24px; padding: 0; border: 0; border-radius: 99px; background: #cdd3cb; cursor: pointer; transition: background .15s; }
.mp-sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .15s; }
.mp-sw.on { background: var(--mp-brand); }
.mp-sw.on i { left: 21px; }
.mp-sw:disabled { opacity: .45; cursor: not-allowed; }
.mp-fld { display: flex; flex-direction: column; gap: 6px; }
.mp-fld > span { color: var(--mp-ink2); font-weight: 600; font-size: 13px; }
.mp-fld input, .mp-fld select {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: var(--mp-surface);
  font: 15px var(--mp-font);
  color: var(--mp-ink);
}
.mp-fld input:focus, .mp-fld select:focus { outline: 3px solid var(--mp-brand-t); border-color: var(--mp-brand); }
.mp-fld-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-fld-row .mp-fld { flex: 1; min-width: 110px; }
.mp-choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-choice-cards button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1.5px solid var(--mp-line);
  border-radius: 14px;
  background: var(--mp-surface);
  color: var(--mp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mp-choice-cards button:hover { border-color: #c4ccc3; }
.mp-choice-cards b { font-size: 14.5px; }
.mp-choice-cards small { color: var(--mp-muted); font-size: 13px; }
.mp-choice-cards button.on { border-color: var(--mp-brand); background: #f3faf8; box-shadow: inset 0 0 0 1px var(--mp-brand); }
@media (max-width: 759px) { .mp-choice-cards { grid-template-columns: 1fr; } }
.mp-thread .cal-rem-chat { max-height: 320px; overflow: auto; border-radius: 12px; }
.mp-lnk.inl { margin: 0; }
.mp-who { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 600; font-size: 13px; }

/* Horários e folgas */
.mp-hours { margin: 0; padding: 0; list-style: none; }
.mp-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--mp-line2); font-size: 14px; }
.mp-hours li b { font-weight: 600; }

/* Regras: blocos de configuração existentes dentro dos cartões novos */
.cfg-guided.mp-cfg-slot { display: block; flex: none; min-height: 0; background: transparent; }
.mp-cfg-slot:empty { display: none; }
.mp-cfg-slot .cal-owner-alert-extra, .mp-cfg-slot .cal-reminder-extra { margin-top: 12px; }
.mp-cfg-slot .gq { margin: 12px 0 0; padding: 0; border: 0; }
.mp-cfg-slot #calTimezone { width: 100%; }
.mp-sh-body .cfg-guided.mp-cfg-slot .gcard { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.mp-sh-body .cfg-guided.mp-cfg-slot .gcard-head { display: none; }
.mp-savebar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--mp-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--mp-sh);
}
.mp-savebar [data-ag-slot="dirty"] { margin-right: auto; color: var(--mp-amber-d); font-weight: 600; }
.mp-savebar #btnCalSettingsSave {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--mp-brand);
  border-radius: 10px;
  background: var(--mp-brand);
  color: #fff;
  font: 600 14px var(--mp-font);
  box-shadow: none;
}
@media (max-width: 759px) { .mp-savebar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* Aviso rápido */
.mp-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 260;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--mp-ink);
  color: #fff;
  font: 600 14px var(--mp-font);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s;
}
.mp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.mp-toast svg { flex-shrink: 0; color: #5eead4; }
@media (max-width: 759px) { .mp-toast { bottom: 96px; } }

/* ==========================================================================
   Atendimentos: conversas, pedidos e avaliações no layout v2
   ========================================================================== */
[data-mp-page="atendimentos"] #sectionSessions { display: none !important; }
[data-mp-page="atendimentos"] #sectionConvSummary { margin-bottom: 14px; }
[data-mp-page="atendimentos"] #sectionConvSummary .convsum-card {
  padding: 14px 16px;
  border: 1px solid var(--mp-line);
  border-radius: 14px;
  background: var(--mp-surface);
  box-shadow: none;
}
[data-mp-page="atendimentos"] #sectionConvSummary .convsum-title { font: 600 15px var(--mp-display); }
[data-mp-page="atendimentos"] #sectionConvSummary .convsum-period button.on { background: var(--mp-ink); border-color: var(--mp-ink); color: #fff; }

.mp-conv { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.mp-conv.hidden { display: none !important; }
@media (max-width: 1060px) { .mp-conv { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 759px) { .mp-conv { grid-template-columns: 1fr; } }
.mp-conv-l { max-height: 640px; margin: 0; padding: 0; overflow: auto; list-style: none; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 14px; }
.mp-conv-l li { display: flex; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--mp-line2); cursor: pointer; }
.mp-conv-l li:first-child { border-top: 0; }
.mp-conv-l li:hover { background: #fafbf8; }
.mp-conv-l li.on { background: var(--mp-brand-t); }
.mp-conv-l li > div { flex: 1; min-width: 0; }
.mp-conv-l b { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.mp-conv-l b small { flex-shrink: 0; color: var(--mp-faint); font-size: 12px; font-weight: 500; }
.mp-conv-l p { display: -webkit-box; margin: 2px 0 6px; overflow: hidden; color: var(--mp-muted); font-size: 13px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mp-conv-l li.mp-conv-empty { display: block; color: var(--mp-muted); font-size: 13.5px; cursor: default; }
.mp-conv-d { min-height: 320px; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 14px; }
.mp-conv-d.hidden { display: none !important; }
.mp-conv-d header { padding: 14px 16px; border-bottom: 1px solid var(--mp-line2); }
.mp-conv-d header b { display: block; font-size: 15px; }
.mp-conv-d header small { color: var(--mp-muted); }
.mp-conv-d .session-summary-card, .mp-conv-sheet .session-summary-card { margin: 14px 16px 0; }
.mp-msgs { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.mp-conv-sheet .mp-msgs { padding: 0; }
.mp-msgs .np-msg, .mp-msgs .meubot-msg {
  max-width: 78%;
  padding: 9px 12px;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  font-size: 14px;
}
.mp-msgs .np-msg-user, .mp-msgs .meubot-msg-user { align-self: flex-start; background: #eef0ea; color: var(--mp-ink); border-radius: 14px 14px 14px 4px; }
.mp-msgs .np-msg-bot, .mp-msgs .meubot-msg-bot { align-self: flex-end; background: var(--mp-brand-t); color: var(--mp-ink); border-radius: 14px 14px 4px 14px; }
.mp-msgs .meubot-msg small { color: var(--mp-muted); }

/* Pedidos: a lista nova substitui os cartões antigos; ficam as visões por formulário e em tabela */
[data-mp-page="atendimentos"] #sectionAppointments {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
[data-mp-page="atendimentos"] #sectionAppointments > .np-sec-top,
[data-mp-page="atendimentos"] #sectionAppointments .apt-filter-row,
[data-mp-page="atendimentos"] #appointmentsList { display: none !important; }
[data-mp-page="atendimentos"] #sectionAppointments .apt-toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; border: 0; background: transparent; }
[data-mp-page="atendimentos"] #sectionAppointments .apt-toolbar .apt-group-toggle { flex: none; width: auto; }
#mpReqs:has(.mp-empty) + #sectionAppointments { display: none !important; }
.mp-apt-other { margin: 0 6px 0 0; }

/* Avaliações */
.mp-reviews .mp-rev-toggle { margin-bottom: 16px; }
.mp-reviews .rev-summary { margin: 0; padding: 0; border: 0; background: transparent; }
.mp-reviews #reviewsSummary:not(.hidden) ~ .mp-rev-noavg { display: none; }
.mp-reviews .rev-avg-num { font: 700 40px var(--mp-display); letter-spacing: -.03em; }
.mp-reviews .rev-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
.mp-reviews .rev-item { margin: 0; padding: 12px 18px; border: 0; border-top: 1px solid var(--mp-line2); border-radius: 0; background: transparent; box-shadow: none; }
.mp-reviews .rev-empty { padding: 0 18px 16px; }

/* ==========================================================================
   Seu assistente no layout v2: O que ele sabe · Como ele fala · Dados do negócio
   ========================================================================== */
[data-mp-page="assistente"] #mpAssistStatus { margin-bottom: 20px; }
.mp-doc-ic.sheet { background: var(--mp-brand-t); color: var(--mp-brand); }

/* O que ele sabe: documentos, envio, fontes conectadas e localizador como linhas do cartão */
/* o CSS antigo zera fundo/borda de #sectionDocuments; aqui ele volta a ser um cartão */
#sectionDocuments.mp-card { overflow: hidden; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 16px; }
.mp-kb .mp-kb-hint { margin: 0; padding: 0 18px 12px; color: var(--mp-muted); font-size: 13px; }
.mp-kb .mp-kb-hint.hidden { display: none !important; }
.mp-kb .doc-list { gap: 0; margin: 0; }
.mp-kb .mp-kb-list > p { margin: 0; padding: 12px 18px; border-top: 1px solid var(--mp-line2); color: var(--mp-muted); font-size: 13.5px; opacity: 1 !important; }
.mp-kb .doc-item {
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid var(--mp-line2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}
.mp-kb .doc-item-icon, .mp-kb .np-doc-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef0ea;
  color: var(--mp-ink2);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .04em;
}
.mp-kb .doc-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.mp-kb .doc-item-open { cursor: pointer; }
.mp-kb .doc-item-name, .mp-kb .np-doc-name { overflow: hidden; font-weight: 600; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.mp-kb .doc-item-meta, .mp-kb .np-doc-size { color: var(--mp-muted); font-family: var(--mp-font); font-size: 12.5px; letter-spacing: 0; }
.mp-kb .doc-item-actions { align-items: center; gap: 6px; }
.mp-kb .doc-status { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 99px; font-size: 12px; font-weight: 600; font-family: var(--mp-font); }
.mp-kb .btn-doc-download, .mp-kb .btn-doc-delete, .mp-kb .btn-live-src {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: var(--mp-surface);
  color: var(--mp-ink2);
  font: 600 12.5px var(--mp-font);
}
.mp-kb .btn-doc-download:hover, .mp-kb .btn-live-src:hover:not(:disabled) { background: #fafbf8; border-color: #c4ccc3; }
.mp-kb .btn-doc-delete { color: var(--mp-red); }
.mp-kb .btn-doc-delete:hover { background: var(--mp-red-t); border-color: #f0c2bc; }
.mp-kb .btn-live-src.is-danger { color: var(--mp-red); }

.mp-kb .mp-kb-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid var(--mp-line2);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.mp-kb .mp-kb-drop .mp-doc-ic { border: 1.5px dashed #c9d1c7; background: #fff; color: var(--mp-brand-d); }
.mp-kb .mp-kb-drop:hover, .mp-kb .mp-kb-drop.drag-over { background: var(--mp-brand-t); }
.mp-kb .mp-kb-drop.hidden { display: none !important; }
.mp-kb .mp-kb-drop .mp-row-main b { color: var(--mp-ink); }
.mp-kb .mp-kb-drop .mp-row-main small { color: var(--mp-muted); }
.mp-kb .doc-item .btn-doc-download, .mp-kb .doc-item .btn-doc-delete { border-color: transparent; background: transparent; }
#mpToneChips { align-self: flex-start; }
.mp-kb #docUploadProgress { margin: 0 18px 12px; }

.mp-kb .mp-kb-live { margin: 0; padding: 0; border: 0; background: transparent; }
.mp-kb .live-src-list { gap: 0; }
.mp-kb .live-src-list > p { margin: 0; padding: 0; display: none; }
.mp-kb .live-src-item { gap: 6px; padding: 12px 18px; border: 0; border-top: 1px solid var(--mp-line2); border-radius: 0; background: transparent; }
.mp-kb .live-src-name { font-weight: 600; font-size: 14.5px; }
.mp-kb .live-src-url, .mp-kb .live-src-meta { color: var(--mp-muted); font-size: 12.5px; }
.mp-kb .mp-kb-connect { cursor: default; }
.mp-kb #liveSourceAccessHint, .mp-kb #liveSourceLimitNote { margin: 0; padding: 0 18px 12px; font-size: 12.5px; }
.mp-kb #liveSourceAccessHint.hidden, .mp-kb #liveSourceLimitNote.hidden { display: none !important; }

.mp-kb .mp-kb-s {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 14px 18px 18px;
  border: 0;
  border-top: 1px solid var(--mp-line2);
  border-radius: 0 0 16px 16px;
  background: transparent;
}
.mp-kb .mp-kb-s.hidden { display: none !important; }
.mp-kb .kb-search-label { margin: 0; font-weight: 600; font-size: 13.5px; color: var(--mp-ink); }
.mp-kb .kb-search-hint { margin: 0; color: var(--mp-muted); font-size: 12.5px; }
.mp-kb .kb-search-form { flex-wrap: nowrap; gap: 8px; }
.mp-kb .kb-search-form input { height: 38px; padding: 0 12px; border: 1px solid var(--mp-line); border-radius: 10px; font: 14px var(--mp-font); }
.mp-kb .kb-search-form input:focus { outline: 3px solid var(--mp-brand-t); outline-offset: 0; border-color: var(--mp-brand); }
.mp-kb .kb-search-result { margin: 0; }

/* Como ele fala */
.mp-talk { display: flex; flex-direction: column; gap: 12px; }
.mp-talk .mp-lbl { margin: 0 0 -4px; }
.mp-fld textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: var(--mp-surface);
  color: var(--mp-ink);
  font: 15px/1.45 var(--mp-font);
  resize: vertical;
}
.mp-fld textarea:focus { outline: 3px solid var(--mp-brand-t); border-color: var(--mp-brand); }
.mp-fld input:disabled, .mp-fld textarea:disabled { background: var(--mp-bg); color: var(--mp-muted); }
.mp-adv { border: 1px solid var(--mp-line); border-radius: 12px; }
.mp-adv summary { padding: 11px 14px; color: var(--mp-brand-d); font-weight: 600; font-size: 13.5px; cursor: pointer; list-style: none; }
.mp-adv summary::-webkit-details-marker { display: none; }
.mp-adv summary::after { content: " ›"; }
.mp-adv[open] summary::after { content: " ⌄"; }
.mp-adv .mp-fld { padding: 0 14px 14px; }
.mp-talk-err { color: var(--mp-red); font-weight: 600; }
.mp-talk .mp-btn-row { align-items: center; }
#mpTalkState { color: var(--mp-amber-d); font-weight: 600; }

/* Dados do negócio */
#mpAssistBiz .mp-row-main small { color: var(--mp-muted); font-size: 12.5px; }
#mpAssistBiz .mp-row-main b { overflow-wrap: anywhere; }
.mp-lock { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; color: var(--mp-faint); }
.mp-inline-input {
  width: 100%;
  height: 38px;
  margin-top: 4px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--mp-brand);
  border-radius: 10px;
  font: 14px var(--mp-font);
  outline: 3px solid var(--mp-brand-t);
}
.mp-logo-thumb {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-bg);
}
.mp-logo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-logo-thumb .botlogo-placeholder { font-size: 1.2rem; }
.mp-logo-row .botlogo-uploading { display: block; margin-top: 2px; color: var(--mp-brand-d); font-size: 12px; }
.mp-logo-row .botlogo-uploading.hidden { display: none; }
@media (max-width: 759px) {
  .mp-logo-row { flex-wrap: wrap; }
  .mp-logo-row .mp-row-act { width: 100%; padding-left: 56px; }
}

/* Reduzir movimento: vem por último para valer sobre as animações declaradas acima. */
@media (prefers-reduced-motion: reduce) {
  .mp-app .mp-page.on, .mp-ov .mp-drawer, .mp-ov .mp-ov-bg, .mp-toast { animation: none; transition: none; }
}

/* EasyAI Ads: atalho para o portal de anúncios (outro app, mesma conta). Separado dos destinos daqui. */
.mp-sb-i.mp-sb-ext { margin-top: 8px; border-top: 1px solid var(--mp-line, rgba(0, 0, 0, 0.08)); border-radius: 0 0 10px 10px; padding-top: 12px; }

/* Conversas salvas: resposta do bot em Markdown, com o mesmo desenho do chat público
   (microbots/index.html, regras .msg.bot). Mensagem do cliente continua <p> em texto puro. */
.meubot-msg-md { margin: .3rem 0 0; word-break: break-word; }
.meubot-msg-md p { margin: 0 0 6px; white-space: normal; }
.meubot-msg-md p:last-child { margin-bottom: 0; }
.meubot-msg-md p.md-h { font-weight: 700; margin: 10px 0 4px; line-height: 1.3; }
.meubot-msg-md p.md-h:first-child { margin-top: 0; }
.meubot-msg-md p.md-h1 { font-size: 1.12em; }
.meubot-msg-md p.md-h2 { font-size: 1.08em; }
.meubot-msg-md p.md-h3 { font-size: 1.04em; }
.meubot-msg-md ul, .meubot-msg-md ol { margin: 4px 0; padding-left: 20px; }
.meubot-msg-md li { margin: 2px 0; }
.meubot-msg-md strong { font-weight: 600; }
.meubot-msg-md a { color: inherit; text-decoration: underline; }
.meubot-msg-md code { background: rgba(0, 0, 0, .06); padding: 1px 4px; border-radius: 4px; font-size: .92em; }

/* Prévias do lembrete/remarcação (Agenda › Regras): o que é EXEMPLO (cliente fictício, data e
   horário) fica sublinhado e pontilhado; o que vem da configuração aparece como será enviado. */
.cfg-guided .wa-sample { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; color: var(--np-muted, #5f6f6b); }
.cfg-guided .wa-ex { text-decoration: underline dotted; text-decoration-color: rgba(60, 75, 72, .55); text-underline-offset: 3px; }
.cfg-guided .wa-miss { color: #b45309; font-style: italic; }
