/* =============================================================================
   mesa.css. Mesa de Decisão page (produto/mesa.html)
   Reuses pv-* primitives from produto-v2.css for layout (pv-section, pv-hero,
   pv-eyebrow, pv-title, pv-sub, pv-bullets, pv-container). All mesa-specific
   styles are prefixed `mesa-`.
   ============================================================================= */

/* Hero -------------------------------------------------------------------- */
.mesa-hero {
  position: relative;
  background: var(--vaas-blue-deep);
  color: #fff;
  padding: 160px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.mesa-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(4,52,244,.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 90%, rgba(206,255,41,.05), transparent 70%);
}
.mesa-hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, #000 30%, transparent 80%);
}
.mesa-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.mesa-hero__copy { padding-top: 8px; }
.mesa-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 14px 0 24px;
  text-wrap: balance;
}
.mesa-hero__title em { font-style: normal; color: var(--vaas-lime); }
.mesa-hero__sub {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,.74);
  margin: 0 0 32px;
  max-width: 540px;
}
.mesa-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 0; }

/* Hero viz. full dossier + floating context cards on top */
.mesa-hero__viz {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  padding: 18px 32px 24px 32px;
}

/* === Dossier card. full content (drives viz height) === */
.mesa-hero__dossier {
  position: relative;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 22px 22px 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 90px -25px rgba(0,0,0,.55);
  font-family: var(--font-display);
  color: rgba(255,255,255,.92);
  z-index: 1;
  transform: rotate(0.5deg);
  opacity: 0;
  animation: mesa-hero-dossier-in 700ms cubic-bezier(.2,.7,.2,1) 80ms forwards;
}
@keyframes mesa-hero-dossier-in {
  from { opacity: 0; transform: rotate(0.5deg) translateY(14px); }
  to   { opacity: 1; transform: rotate(0.5deg) translateY(0); }
}
.mesa-hero__dossier-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
}
.mesa-hero__dossier-crumb {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.mesa-hero__dossier-dots { display: inline-flex; gap: 4px; }
.mesa-hero__dossier-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-block;
}
.mesa-hero__dossier-id { margin-bottom: 16px; }
.mesa-hero__dossier-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mesa-hero__dossier-cnpj {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
}

/* score band row inside dossier */
.mesa-hero__dossier-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  margin-bottom: 14px;
}
.mesa-hero__dossier-score { display: flex; align-items: baseline; gap: 3px; }
.mesa-hero__dossier-score b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f0a23a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mesa-hero__dossier-score span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.4);
}
.mesa-hero__dossier-band-r {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.mesa-hero__dossier-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0a23a;
  background: rgba(240,162,58,.14);
  padding: 3px 8px;
  border-radius: 3px;
  align-self: flex-start;
}
.mesa-hero__dossier-bar {
  position: relative;
  display: flex;
  height: 5px;
  border-radius: 2px;
  overflow: visible;
  background: rgba(255,255,255,.06);
  margin-top: 4px;
}
.mesa-hero__dossier-bar i { height: 100%; display: block; }
.mesa-hero__dossier-bar i:first-child { border-radius: 2px 0 0 2px; }
.mesa-hero__dossier-bar i:last-child { border-radius: 0 2px 2px 0; }
.mesa-hero__dossier-bar em {
  position: absolute;
  top: -5px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  transform: translateX(-50%);
}
.mesa-hero__dossier-band-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* sections (rules + ai) */
.mesa-hero__dossier-sec { margin-bottom: 12px; }
.mesa-hero__dossier-sec-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.mesa-hero__dossier-sec-h span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--vaas-lime);
  background: rgba(206,255,41,.1);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.mesa-hero__dossier-sec-h--ai { color: var(--vaas-lime); }
.mesa-hero__dossier-rules { list-style: none; padding: 0; margin: 0; }
.mesa-hero__dossier-rules li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.82);
}
.mesa-hero__dossier-rules li:last-child { border-bottom: none; }
.mesa-hero__dossier-rules li b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--vaas-lime);
  font-variant-numeric: tabular-nums;
}

.mesa-hero__dossier-sec--ai {
  border-radius: 6px;
  background: rgba(206,255,41,.05);
  border: 1px solid rgba(206,255,41,.18);
  padding: 10px 12px 12px;
  margin-top: 4px;
}
.mesa-hero__dossier-ai {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.88);
  margin: 0;
}
.mesa-hero__dossier-ai b { color: #fff; font-weight: 600; }

/* foot history */
.mesa-hero__dossier-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.mesa-hero__dossier-foot-l { display: flex; align-items: center; gap: 10px; }
.mesa-hero__dossier-hist-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2bb673;
  display: inline-block;
  flex: 0 0 7px;
}
.mesa-hero__dossier-foot-l b {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.mesa-hero__dossier-foot-l em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
.mesa-hero__dossier-foot-r {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* === Floating context cards lifted off the dossier === */
.mesa-hero__viz-card {
  position: absolute;
  background: rgba(8, 18, 48, .9);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 14px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.6);
  z-index: 2;
  opacity: 0;
  animation: mesa-hero-card-in 600ms cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes mesa-hero-card-in {
  from { opacity: 0; transform: translateY(18px) rotate(0deg) scale(.96); }
  to   { opacity: 1; transform: var(--mh-tf) scale(1); }
}
.mesa-hero__viz-card--1 {
  left: -7%; top: -2%; width: 54%;
  --mh-tf: rotate(-3deg);
  transform: var(--mh-tf);
  animation-delay: 380ms;
}
.mesa-hero__viz-card--2 {
  right: -9%; top: 22%; width: 60%;
  --mh-tf: rotate(2deg);
  transform: var(--mh-tf);
  background: rgba(35, 56, 18, .9);
  border-color: rgba(206,255,41,.28);
  animation-delay: 560ms;
}
.mesa-hero__viz-card--3 {
  left: -3%; top: 54%; width: 64%;
  --mh-tf: rotate(-1.5deg);
  transform: var(--mh-tf);
  animation-delay: 740ms;
}
.mesa-hero__viz-card--4 {
  right: -5%; bottom: -2%; width: 56%;
  --mh-tf: rotate(2.5deg);
  transform: var(--mh-tf);
  animation-delay: 920ms;
}
.mesa-hero__viz-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.mesa-hero__viz-h::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--vaas-lime);
}
.mesa-hero__viz-card--2 .mesa-hero__viz-h { color: var(--vaas-lime); }
.mesa-hero__viz-body {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
}
.mesa-hero__viz-body b { color: #fff; font-weight: 600; }
.mesa-hero__viz-body em { font-style: normal; color: var(--vaas-lime); font-weight: 500; }
.mesa-hero__viz-score {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 6px;
}
.mesa-hero__viz-score b {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f0a23a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mesa-hero__viz-score span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.mesa-hero__viz-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0a23a;
  background: rgba(240,162,58,.12);
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .mesa-hero__dossier,
  .mesa-hero__viz-card { animation: none; opacity: 1; }
}

/* MesaSim. 3-step interactive simulation ----------------------------------- */
.mesa-sim {
  padding: 100px 0;
  background: #f6f6f7;
  position: relative;
}
.mesa-sim__head { margin-bottom: 36px; max-width: 760px; }
.mesa-sim__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(0,11,88,.1);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 28px;
}
.mesa-sim__step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: none;
  border-right: 1px solid rgba(0,11,88,.08);
  cursor: pointer;
  text-align: left;
  position: relative;
  font-family: var(--font-display);
  transition: background 160ms var(--ease-out);
}
.mesa-sim__step:last-child { border-right: none; }
.mesa-sim__step:hover { background: #fafbfc; }
.mesa-sim__step--active { background: var(--vaas-blue-deep); color: #fff; }
.mesa-sim__step--active:hover { background: var(--vaas-blue-deep); }
.mesa-sim__step--done .mesa-sim__step-n {
  background: var(--vaas-lime);
  color: var(--vaas-blue-deep);
  border-color: var(--vaas-lime);
}
.mesa-sim__step-n {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,11,88,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
  background: transparent;
  flex: 0 0 26px;
  transition: all 160ms var(--ease-out);
}
.mesa-sim__step--active .mesa-sim__step-n {
  background: var(--vaas-lime);
  color: var(--vaas-blue-deep);
  border-color: var(--vaas-lime);
}
.mesa-sim__step-body { display: flex; flex-direction: column; gap: 2px; }
.mesa-sim__step-body b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--vaas-blue-deep);
}
.mesa-sim__step--active .mesa-sim__step-body b { color: #fff; }
.mesa-sim__step-body span {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: rgba(0,11,88,.55);
}
.mesa-sim__step--active .mesa-sim__step-body span { color: rgba(255,255,255,.7); }
.mesa-sim__step--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--vaas-lime);
}

.mesa-sim__stage {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,11,88,.1);
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0,11,88,.25);
  overflow: hidden;
  min-height: 580px;
}
.mesa-sim__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0,11,88,.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,11,88,.55);
  letter-spacing: 0.04em;
}
.mesa-sim__bar-dots { display: flex; gap: 6px; }
.mesa-sim__bar-dot { width: 10px; height: 10px; border-radius: 50%; background: #d0d5e0; }
.mesa-sim__bar-path { flex: 1; }
.mesa-sim__bar-user {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(0,11,88,.7);
}
.mesa-sim__bar-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--vaas-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.04em;
}

.mesa-sim__body {
  position: relative;
  padding: 28px 32px 32px;
  min-height: 520px;
}

/* === Step 1: Kanban === */
.mesa-kb__bc {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(0,11,88,.55);
  margin-bottom: 8px;
}
.mesa-kb__bc b { color: var(--vaas-blue-deep); font-weight: 500; }
.mesa-kb__h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.mesa-kb__h-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vaas-blue-deep);
}
.mesa-kb__h-search {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid rgba(0,11,88,.12);
  border-radius: 4px;
  width: 280px;
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(0,11,88,.4);
}
.mesa-kb__h-search::before {
  content: "⌕";
  font-size: 14px;
  color: rgba(0,11,88,.4);
}
.mesa-kb__wf {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 22px;
}
.mesa-kb__wf-tab {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(0,11,88,.55);
  padding: 7px 12px;
  border: 1px solid rgba(0,11,88,.1);
  border-radius: 999px;
  background: #fff;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.mesa-kb__wf-tab--active {
  border-color: var(--vaas-blue);
  color: var(--vaas-blue-deep);
  background: rgba(4,52,244,.04);
  font-weight: 500;
}
.mesa-kb__wf-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(229,74,125,.15);
  color: #e54a7d;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
}
.mesa-kb__wf-badge--b {
  background: var(--vaas-blue);
  color: #fff;
}
.mesa-kb__filaH {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--vaas-blue-deep);
  font-weight: 600;
  border-bottom: 2px solid var(--vaas-blue);
  padding: 0 0 8px 0;
  width: max-content;
  margin-bottom: 18px;
}
.mesa-kb__filaH span { color: var(--vaas-blue); margin-left: 8px; font-family: var(--font-mono); font-size: 11px; background: rgba(4,52,244,.1); padding: 1px 6px; border-radius: 999px; }
.mesa-kb__col-tabs { display: none; }
.mesa-kb__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mesa-kb__col {
  background: #fafbfc;
  border: 1px solid rgba(0,11,88,.06);
  border-radius: 6px;
  padding: 14px;
}
.mesa-kb__col-h {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
  margin-bottom: 4px;
}
.mesa-kb__col-meta {
  font-family: var(--font-display);
  font-size: 11px;
  color: rgba(0,11,88,.5);
  margin-bottom: 14px;
}
.mesa-kb__card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,11,88,.08);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.mesa-kb__card-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--vaas-blue-deep);
  line-height: 1.3;
  margin-bottom: 4px;
}
.mesa-kb__card-cnpj {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(0,11,88,.5);
  margin-bottom: 10px;
}
.mesa-kb__card-row { display: flex; justify-content: space-between; align-items: center; }
.mesa-kb__card-status {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(229,74,125,.14);
  color: #c04068;
}
.mesa-kb__card-status--em { background: rgba(43,182,115,.14); color: #1b8b54; }
.mesa-kb__card-plus {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px dashed rgba(0,11,88,.2);
  border-radius: 4px;
  color: var(--vaas-blue);
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
}
.mesa-kb__card-avatar {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--vaas-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}
.mesa-kb__card--active {
  border-color: var(--vaas-blue);
  box-shadow: 0 4px 16px rgba(4,52,244,.18);
}
.mesa-kb__card-pop {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  width: 220px;
  background: #fff;
  border: 1px solid rgba(0,11,88,.12);
  border-radius: 6px;
  box-shadow: 0 16px 40px -12px rgba(0,11,88,.25);
  padding: 6px;
  z-index: 10;
  animation: mesa-pop 200ms var(--ease-out);
}
@keyframes mesa-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mesa-kb__card-pop-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--vaas-blue-deep);
  cursor: pointer;
}
.mesa-kb__card-pop-row:hover { background: rgba(4,52,244,.06); }
.mesa-kb__card-pop-row--head {
  color: rgba(0,11,88,.45);
  cursor: default;
}
.mesa-kb__card-pop-row--head:hover { background: transparent; }
.mesa-kb__card-pop-avatar {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--vaas-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  flex: 0 0 22px;
}

/* === Step 2: Dossiê === */
.mesa-do__bc {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(0,11,88,.55);
  margin-bottom: 12px;
}
.mesa-do__bc b { color: var(--vaas-blue-deep); font-weight: 500; }
.mesa-do__h {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px;
}
.mesa-do__h-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.mesa-do__h-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0,11,88,.55);
}
.mesa-do__h-actions {
  display: flex; gap: 6px;
}
.mesa-do__h-action {
  width: 30px; height: 30px;
  border: 1px solid rgba(0,11,88,.12);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  color: rgba(0,11,88,.55);
}

.mesa-do__band {
  border: 1px solid rgba(0,11,88,.1);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 22px;
}
.mesa-do__band-top {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.mesa-do__score {
  display: flex; align-items: baseline; gap: 4px;
}
.mesa-do__score b {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: #e88a1c;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mesa-do__score span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(0,11,88,.4);
}
.mesa-do__pill {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #e88a1c;
  padding: 7px 14px;
  border-radius: 3px;
}
.mesa-do__bar {
  position: relative;
  height: 8px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(0,11,88,.05);
  display: flex;
}
.mesa-do__bar-seg { height: 100%; }
.mesa-do__bar-seg--g { background: #94d089; }
.mesa-do__bar-seg--b { background: #a3c5ed; }
.mesa-do__bar-seg--o { background: #f0a23a; }
.mesa-do__bar-seg--r { background: #f4a5b4; }
.mesa-do__bar-marker {
  position: absolute;
  top: -12px;
  left: 35%;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--vaas-blue-deep);
}
.mesa-do__band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  font-family: var(--font-display);
}
.mesa-do__band-cell {}
.mesa-do__band-cell b {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  color: rgba(0,11,88,.5);
  margin-bottom: 4px;
}
.mesa-do__band-cell span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vaas-blue-deep);
}
.mesa-do__band-cell--orange span { color: #e88a1c; }

.mesa-do__mesa {
  border: 1.5px solid var(--vaas-blue);
  border-radius: 4px;
  background: rgba(4,52,244,.03);
  padding: 18px 20px;
  margin-bottom: 22px;
}
.mesa-do__mesa-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
  margin: 0 0 4px;
}
.mesa-do__mesa-sub {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(0,11,88,.55);
  margin: 0 0 14px;
}
.mesa-do__mesa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 18px;
  align-items: center;
}
.mesa-do__mesa-cell b {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  color: rgba(0,11,88,.5);
  margin-bottom: 4px;
  font-weight: 400;
}
.mesa-do__mesa-cell span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vaas-blue-deep);
}
.mesa-do__mesa-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11.5px;
  background: rgba(229,74,125,.15);
  color: #c04068;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.mesa-do__mesa-btn {
  background: var(--vaas-blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms var(--ease-out);
}
.mesa-do__mesa-btn:hover { background: #032bb8; }

.mesa-do__rulesH {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
  margin: 0 0 4px;
}
.mesa-do__rulesH-sub {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(0,11,88,.55);
  margin: 0 0 14px;
}
.mesa-do__rule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(0,11,88,.08);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.mesa-do__rule-cat {
  font-family: var(--font-display);
  font-size: 11.5px;
  color: rgba(0,11,88,.5);
  margin-bottom: 2px;
}
.mesa-do__rule-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vaas-blue-deep);
}
.mesa-do__rule-pts {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
}

/* === Step 3: Painel lateral === */
.mesa-pn {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 42%;
  min-width: 360px;
  background: #fff;
  border-left: 1px solid rgba(0,11,88,.12);
  box-shadow: -16px 0 40px -12px rgba(0,11,88,.18);
  padding: 28px 28px;
  z-index: 5;
  overflow-y: auto;
}
.mesa-sim__body--has-panel { overflow: hidden; }
.mesa-sim__body--has-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,11,88,.18);
  z-index: 4;
  animation: mesa-fade-in 220ms var(--ease-out);
}
@keyframes mesa-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mesa-pn { animation: mesa-slide-in 280ms var(--ease-out); }
@keyframes mesa-slide-in {
  from { transform: translateX(12%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.mesa-pn__bc {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(0,11,88,.55);
  margin-bottom: 16px;
}
.mesa-pn__bc b { color: var(--vaas-blue-deep); font-weight: 500; }
.mesa-pn__h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.mesa-pn__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
}
.mesa-pn__close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: rgba(0,11,88,.55);
  width: 28px; height: 28px;
  border-radius: 4px;
  display: grid; place-items: center;
}
.mesa-pn__close:hover { background: rgba(0,11,88,.06); }
.mesa-pn__sec-h {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--vaas-blue-deep);
  margin: 0 0 14px;
}
.mesa-pn__hist-item {
  border: 1px solid rgba(0,11,88,.1);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}
.mesa-pn__hist-status {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--vaas-blue-deep);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.mesa-pn__hist-status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2bb673;
}
.mesa-pn__hist-status--rej::before { background: #e54a7d; }
.mesa-pn__hist-status--mesa::before { background: #f0a23a; }
.mesa-pn__hist-comment {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: rgba(0,11,88,.7);
  line-height: 1.5;
  padding: 8px 12px;
  background: #fafbfc;
  border-radius: 4px;
  margin-bottom: 10px;
}
.mesa-pn__hist-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,11,88,.55);
}
.mesa-pn__hist-foot b { color: var(--vaas-blue-deep); font-weight: 500; font-family: var(--font-display); font-size: 12.5px; }

/* MesaAI. typewriter parecer ---------------------------------------------- */
.mesa-ai { background: var(--vaas-blue-deep); padding: 120px 0; color: #fff; }
.mesa-ai .pv-title { color: #fff; }
.mesa-ai .pv-title em { color: var(--vaas-lime); }
.mesa-ai .pv-sub { color: rgba(255,255,255,.78); }
.mesa-ai__split {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.mesa-ai__copy { position: sticky; top: 120px; }
.mesa-ai__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mesa-ai__bullets li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
}
.mesa-ai__bullets li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--vaas-lime);
}
.mesa-ai__bullets li b { color: #fff; font-weight: 600; }

.mesa-ai__paper {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 28px 32px 32px;
  position: relative;
}
.mesa-ai__paper-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.04em;
}
.mesa-ai__paper-head b {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--vaas-lime);
  font-weight: 500;
}
.mesa-ai__paper-head b::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--vaas-lime);
  animation: mesa-blink 1.6s ease-in-out infinite;
}
@keyframes mesa-blink { 50% { opacity: 0.25; } }
.mesa-ai__paper-time { font-variant-numeric: tabular-nums; }
.mesa-ai__sec { margin-bottom: 20px; }
.mesa-ai__sec-h {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vaas-lime);
  margin-bottom: 8px;
}
.mesa-ai__sec-body {
  font-family: var(--font-display);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  min-height: 1.5em;
}
.mesa-ai__sec-body b { color: #fff; font-weight: 600; }
.mesa-ai__cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--vaas-lime);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: mesa-blink 0.8s ease-in-out infinite;
}
.mesa-ai__verdict {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.mesa-ai__verdict-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.6);
}
.mesa-ai__verdict-r {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--vaas-lime);
}

/* MesaAlcadas. tier-up diagram ------------------------------------------- */
.mesa-al {
  padding: 120px 0;
  background: #f6f6f7;
}
.mesa-al__flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
  position: relative;
}
.mesa-al__node {
  background: #fff;
  border: 1px solid rgba(0,11,88,.1);
  border-radius: 6px;
  padding: 24px 22px;
  position: relative;
  margin-right: 36px;
  font-family: var(--font-display);
  display: flex; flex-direction: column;
}
.mesa-al__node:last-child { margin-right: 0; }
.mesa-al__node-n {
  position: absolute;
  top: -10px;
  left: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--vaas-blue);
  padding: 3px 10px;
  border-radius: 3px;
}
.mesa-al__node--top .mesa-al__node-n { background: var(--vaas-lime); color: var(--vaas-blue-deep); }
.mesa-al__node-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
  letter-spacing: -0.01em;
  margin: 6px 0 14px;
}
.mesa-al__node-rows { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mesa-al__node-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,11,88,.08);
  font-size: 12.5px;
}
.mesa-al__node-row:last-child { border-bottom: none; }
.mesa-al__node-row b {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,11,88,.5);
  font-weight: 500;
}
.mesa-al__node-row span {
  color: var(--vaas-blue-deep);
  font-weight: 500;
  text-align: right;
}
.mesa-al__node-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--vaas-blue);
  margin-top: 12px;
}
.mesa-al__node-count b { font-size: 24px; font-family: var(--font-display); color: var(--vaas-blue-deep); }
.mesa-al__arrow {
  position: absolute;
  top: 50%;
  right: -36px;
  width: 36px;
  height: 2px;
  background-image: linear-gradient(to right, rgba(0,11,88,.3) 50%, transparent 50%);
  background-size: 6px 2px;
  transform: translateY(-50%);
}
.mesa-al__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 0; height: 0;
  border-left: 6px solid rgba(0,11,88,.5);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
}
.mesa-al__arrow-lbl {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,11,88,.4);
  white-space: nowrap;
}

/* MesaCaps. capabilities list + metrics ---------------------------------- */
.mesa-caps { background: #fff; padding: 120px 0; }
.mesa-caps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,11,88,.1);
}
.mesa-caps__item {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid rgba(0,11,88,.1);
  border-right: 1px solid rgba(0,11,88,.08);
  font-family: var(--font-display);
}
.mesa-caps__item:nth-child(3n) { border-right: none; padding-right: 0; }
.mesa-caps__item:nth-child(3n+1) { padding-left: 0; }
.mesa-caps__item:not(:nth-child(3n+1)) { padding-left: 28px; }
.mesa-caps__item-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vaas-blue);
  margin-bottom: 14px;
}
.mesa-caps__item-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.mesa-caps__item-p {
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(0,11,88,.7);
  line-height: 1.55;
  margin: 0;
}

.mesa-metrics {
  background: var(--vaas-blue-deep);
  color: #fff;
  padding: 80px 0;
}
.mesa-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.mesa-metrics__item {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-display);
}
.mesa-metrics__item:first-child { padding-left: 0; }
.mesa-metrics__item:last-child { border-right: none; }
.mesa-metrics__item b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--vaas-lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.mesa-metrics__item span {
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
  display: block;
}

/* MesaDashboard. manager's overview ------------------------------------- */
.mesa-db { background: #fff; padding: 120px 0; }
.mesa-db .pv-section-head { max-width: 760px; }
.mesa-db__bullets {
  list-style: none;
  margin: 0 0 36px;
  padding: 24px 0;
  border-top: 1px solid rgba(0,11,88,.1);
  border-bottom: 1px solid rgba(0,11,88,.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mesa-db__bullets li {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-display);
  padding-right: 16px;
  border-right: 1px solid rgba(0,11,88,.08);
}
.mesa-db__bullets li:last-child { border-right: none; }
.mesa-db__bullets li b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--vaas-blue-deep);
}
.mesa-db__bullets li span {
  font-size: 12.5px;
  color: rgba(0,11,88,.65);
  line-height: 1.45;
}

.mesa-db__frame {
  background: #fff;
  border: 1px solid rgba(0,11,88,.1);
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0,11,88,.25);
  overflow: hidden;
}
.mesa-db__body { padding: 28px 32px 32px; }
.mesa-db__crumbs {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(0,11,88,.55);
  margin-bottom: 8px;
}
.mesa-db__crumbs b { color: var(--vaas-blue-deep); font-weight: 500; }
.mesa-db__h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vaas-blue-deep);
  margin: 0 0 18px;
}
.mesa-db__tabs {
  display: flex; gap: 20px;
  border-bottom: 1px solid rgba(0,11,88,.08);
  margin-bottom: 22px;
}
.mesa-db__tab {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: rgba(0,11,88,.55);
  padding: 0 0 10px 0;
  position: relative;
}
.mesa-db__tab--active {
  color: var(--vaas-blue-deep);
  font-weight: 500;
}
.mesa-db__tab--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--vaas-blue);
}
.mesa-db__filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.mesa-db__filter {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(0,11,88,.65);
  padding: 6px 10px;
  background: #fff;
  border: 1px solid rgba(0,11,88,.12);
  border-radius: 4px;
}
.mesa-db__filter--active {
  border-color: rgba(4,52,244,.4);
  color: var(--vaas-blue-deep);
  background: rgba(4,52,244,.03);
}
.mesa-db__filter-ico { color: rgba(0,11,88,.45); font-size: 12px; }
.mesa-db__filter-v { color: var(--vaas-blue); font-weight: 500; margin-left: 4px; }
.mesa-db__filter-chev { color: rgba(0,11,88,.4); font-family: var(--font-mono); margin-left: 2px; }

.mesa-db__overview {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--vaas-blue-deep);
  margin: 0 0 16px;
}

.mesa-db__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 14px;
  align-items: stretch;
}
.mesa-db__grid--quad { grid-template-columns: repeat(4, 1fr); }
.mesa-db__grid--row2 { grid-template-columns: 1.4fr 1fr; }
.mesa-db__grid--row3 { grid-template-columns: 1.6fr 1fr; }
.mesa-db__grid--row4 { grid-template-columns: 1fr; }
.mesa-db__card .mesa-db__metric--ok   { color: #2b8852; }
.mesa-db__card .mesa-db__metric--warn { color: #c8881e; }
.mesa-db__card .mesa-db__metric--rej  { color: #c04068; }
.pv-wfd__finais { display: flex; gap: 32px; height: 180px; padding: 12px 0; align-items: flex-end; }
.pv-wfd__finais-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.pv-wfd__finais-bar {
  width: 100%;
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 6px;
  border-radius: 3px 3px 0 0;
}
.pv-wfd__finais-bar span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--vaas-blue-deep);
  position: absolute;
  top: -22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pv-wfd__finais-lbl {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--vaas-blue-deep);
  margin-top: 8px;
}
.mesa-db__card {
  background: #fff;
  border: 1px solid rgba(0,11,88,.1);
  border-radius: 6px;
  padding: 16px 18px;
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
}
.mesa-db__card-h {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--vaas-blue-deep);
  margin-bottom: 12px;
}
.mesa-db__metric {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--vaas-blue-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}
.mesa-db__legend {
  display: flex; gap: 14px;
  font-family: var(--font-display);
  font-size: 11.5px;
  color: rgba(0,11,88,.6);
  margin-bottom: 8px;
}
.mesa-db__legend span {
  display: inline-flex; align-items: center; gap: 6px;
}
.mesa-db__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.mesa-db__dot--g { background: #9ed677; }
.mesa-db__dot--r { background: #f4a5b4; }
.mesa-db__dot--b { background: #5faaeb; }
.mesa-db__dot--p { background: #b69ce8; }

.mesa-db__card--decisions {}
.mesa-db__stack {
  display: flex;
  height: 22px;
  border-radius: 3px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 11.5px;
  color: rgba(0,11,88,.7);
  margin-top: auto;
}
.mesa-db__stack-g {
  background: #c5e8a8;
  display: flex; align-items: center;
  padding: 0 10px;
}
.mesa-db__stack-r {
  background: #f4a5b4;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 10px;
}

/* Row 2 sizing */
.mesa-db__card--timeseries { grid-column: span 2; }
.mesa-db__card--donut {}
.mesa-db__chart {
  width: 100%;
  height: 160px;
  margin-top: 6px;
}
.mesa-db__chart-x {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(0,11,88,.5);
  padding: 4px 4px 0;
}

.mesa-db__donut-wrap {
  display: flex; justify-content: center; align-items: center;
  padding: 8px 0 12px;
}
.mesa-db__donut {
  width: 140px; height: 140px;
  border-radius: 50%;
  position: relative;
  display: grid; place-items: center;
}
.mesa-db__donut::after {
  content: "";
  position: absolute; inset: 22px;
  background: #fff;
  border-radius: 50%;
}
.mesa-db__donut-c {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
}
.mesa-db__donut-c b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vaas-blue-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mesa-db__donut-c span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,11,88,.5);
}
.mesa-db__donut-legend {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.mesa-db__donut-legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 8px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(0,11,88,.7);
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0,11,88,.06);
}
.mesa-db__donut-legend li:last-child { border-bottom: none; }
.mesa-db__donut-legend b {
  font-variant-numeric: tabular-nums;
  color: var(--vaas-blue-deep);
  font-weight: 500;
}

/* Row 3 */
.mesa-db__card--flows { grid-column: span 2; }
.mesa-db__flows {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.mesa-db__flow-row {
  display: grid;
  grid-template-columns: 200px 1fr 56px;
  gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12.5px;
}
.mesa-db__flow-l { color: var(--vaas-blue-deep); }
.mesa-db__flow-bar {
  display: flex;
  height: 18px;
  border-radius: 2px;
  overflow: hidden;
}
.mesa-db__flow-g { background: #c5e8a8; height: 100%; }
.mesa-db__flow-r { background: #f4a5b4; height: 100%; }
.mesa-db__flow-n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,11,88,.6);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mesa-db__card--analysts {}
.mesa-db__analysts {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.mesa-db__analyst-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
}
.mesa-db__analyst-l { color: var(--vaas-blue-deep); }
.mesa-db__analyst-bar {
  display: flex;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
}
.mesa-db__analyst-g { background: #c5e8a8; height: 100%; }
.mesa-db__analyst-r { background: #f4a5b4; height: 100%; }
.mesa-db__analyst-axis {
  display: grid;
  grid-template-columns: 130px repeat(5, 1fr);
  gap: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(0,11,88,.45);
  padding-top: 6px;
}
.mesa-db__analyst-axis span {
  text-align: right;
  padding-right: 4px;
}
.mesa-db__analyst-axis span:first-child { display: none; }

/* Responsive ------------------------------------ */
@media (max-width: 1100px) {
  .mesa-db__bullets { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
  .mesa-db__bullets li:nth-child(2) { border-right: none; }
  .mesa-db__bullets li:nth-child(1), .mesa-db__bullets li:nth-child(2) { padding-bottom: 12px; border-bottom: 1px solid rgba(0,11,88,.06); }
  .mesa-db__grid { grid-template-columns: repeat(2, 1fr); }
  .mesa-db__grid--quad { grid-template-columns: repeat(2, 1fr); }
  .mesa-db__grid--row2,
  .mesa-db__grid--row3 { grid-template-columns: 1fr; }
  .mesa-db__grid--row4 { grid-template-columns: 1fr; }
  .mesa-db__card--timeseries { grid-column: span 2; }
  .mesa-db__card--flows { grid-column: span 2; }
  .mesa-db__card--analysts { grid-column: span 2; }
  .mesa-db__card--rules { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .mesa-db { padding: 80px 0; }
  .mesa-db__bullets { grid-template-columns: 1fr; }
  .mesa-db__bullets li { border-right: none !important; border-bottom: 1px solid rgba(0,11,88,.06); padding-bottom: 12px; }
  .mesa-db__bullets li:last-child { border-bottom: none; }
  .mesa-db__body { padding: 20px; }
  .mesa-db__grid { grid-template-columns: 1fr; }
  .mesa-db__card--decisions, .mesa-db__card--timeseries, .mesa-db__card--donut, .mesa-db__card--flows, .mesa-db__card--analysts { grid-column: span 1; }
  .mesa-db__flow-row { grid-template-columns: 1fr; }
  .mesa-db__flow-n { display: none; }
  .mesa-db__analyst-row { grid-template-columns: 1fr; }
  .mesa-db__analyst-axis { display: none; }
  .mesa-db__filters { gap: 6px; }
}

@media (max-width: 1100px) {
  .mesa-hero__inner { grid-template-columns: 1fr; gap: 56px; align-items: start; }
  .mesa-hero__viz { max-width: 460px; margin: 0 auto; }
  .mesa-ai__split { grid-template-columns: 1fr; gap: 36px; }
  .mesa-ai__copy { position: static; }
  .mesa-al__flow { grid-template-columns: repeat(2, 1fr); gap: 60px 24px; }
  .mesa-al__node { margin-right: 0; }
  .mesa-al__arrow { display: none; }
  .mesa-caps__grid { grid-template-columns: repeat(2, 1fr); }
  .mesa-caps__item:nth-child(3n) { border-right: 1px solid rgba(0,11,88,.08); padding-right: 28px; }
  .mesa-caps__item:nth-child(3n+1) { padding-left: 28px; }
  .mesa-caps__item:nth-child(2n) { border-right: none; padding-right: 0; }
  .mesa-caps__item:nth-child(2n+1) { padding-left: 0; }
  .mesa-metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .mesa-metrics__item:nth-child(2) { border-right: none; }
  .mesa-metrics__item:nth-child(3) { padding-left: 0; }
  .mesa-kb__cols { grid-template-columns: repeat(2, 1fr); }
  .mesa-sim__stage { min-height: 720px; }
}
@media (max-width: 720px) {
  .mesa-hero { padding: 120px 0 60px; }
  .mesa-ai { padding: 80px 0; }
  .mesa-al, .mesa-caps { padding: 80px 0; }
  .mesa-sim__steps { grid-template-columns: 1fr; }
  .mesa-sim__step { border-right: none; border-bottom: 1px solid rgba(0,11,88,.08); }
  .mesa-sim__step:last-child { border-bottom: none; }
  .mesa-sim__step--active::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .mesa-sim__body { padding: 20px 20px 24px; }
  .mesa-ai__paper { display: none; }
  #alcadas { display: none; }
  .mesa-kb__col-tabs {
    display: flex !important;
    gap: 6px;
    overflow-x: auto;
    margin: 0 -20px 14px;
    padding: 0 20px 4px;
    scrollbar-width: none;
  }
  .mesa-kb__col-tabs::-webkit-scrollbar { display: none; }
  .mesa-kb__col-tab {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid rgba(0,11,88,.08);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 12px;
    color: rgba(0,11,88,.7);
    cursor: pointer;
    white-space: nowrap;
    transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  }
  .mesa-kb__col-tab-count {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0,11,88,.06);
    color: rgba(0,11,88,.55);
  }
  .mesa-kb__col-tab--active {
    background: var(--vaas-blue-deep);
    border-color: var(--vaas-blue-deep);
    color: #fff;
  }
  .mesa-kb__col-tab--active .mesa-kb__col-tab-count {
    background: rgba(255,255,255,.18);
    color: #fff;
  }
  .mesa-kb__cols { grid-template-columns: 1fr; }
  .mesa-kb__col { display: none; }
  .mesa-kb__col--active { display: block; }
  .mesa-kb__col .mesa-kb__col-h,
  .mesa-kb__col .mesa-kb__col-meta { display: none; }
  .mesa-pn { width: 100%; }
  .mesa-do__h { flex-direction: column; gap: 12px; }
  .mesa-do__band-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mesa-do__mesa-grid { grid-template-columns: 1fr; gap: 12px; }
  .mesa-al__flow { grid-template-columns: 1fr; }
  .mesa-caps__grid { grid-template-columns: 1fr; }
  .mesa-caps { padding: 60px 0 !important; }
  .mesa-caps__item { padding: 14px 0 !important; border-right: none !important; }
  .mesa-caps__item-n { font-size: 9.5px; margin-bottom: 6px; }
  .mesa-caps__item-h { font-size: 15px; margin-bottom: 4px; }
  .mesa-caps__item-p { font-size: 12.5px; line-height: 1.4; }
  .mesa-metrics__grid { grid-template-columns: 1fr; gap: 24px; }
  .mesa-metrics__item { border-right: none !important; padding: 0 !important; }
}


/* MesaAI. CTA to AI page */
.mesa-ai__cta {
  display: flex; align-items: center; gap: 20px;
  margin-top: 24px;
  padding: 18px 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.mesa-ai__cta:hover {
  background: rgba(206,255,41,.08);
  border-color: rgba(206,255,41,.32);
  transform: translateY(-1px);
}
.mesa-ai__cta-l {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.mesa-ai__cta-l b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.mesa-ai__cta-l span {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}
.mesa-ai__cta-arrow {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vaas-lime);
  color: var(--vaas-blue-deep);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  flex: 0 0 40px;
  transition: transform 200ms var(--ease-out);
}
.mesa-ai__cta:hover .mesa-ai__cta-arrow { transform: translateX(3px); }


/* MesaAlcadas. remove inter-card arrow + label, tighten spacing */
.mesa-al__node { margin-right: 0 !important; }
.mesa-al__flow { gap: 18px; }
.mesa-al__arrow,
.mesa-al__arrow-lbl { display: none !important; }


/* MesaDashboard. mobile arrow nav (paginated dashboard) */
.mesa-db__nav-mobile { display: none; }

@media (max-width: 720px) {
  #dashboard .mesa-db__nav-mobile {
    display: flex !important;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid rgba(0,11,88,.1);
    border-radius: 6px;
    padding: 8px;
  }
  /* Hide chrome that becomes noise on a tiny screen */
  #dashboard .mesa-sim__bar { display: none !important; }
  #dashboard .mesa-db__crumbs,
  #dashboard .mesa-db__tabs,
  #dashboard .mesa-db__filters { display: none !important; }
  #dashboard .mesa-db__h { display: none !important; }
  #dashboard .mesa-db__overview { display: none !important; }
  #dashboard .mesa-db__frame { border-radius: 6px; }
  #dashboard .mesa-db__body { padding: 16px !important; }

  /* Show only the active step's cards */
  #dashboard .mesa-db__grid[data-mob-step] > [data-mob-step] { display: none !important; }
  #dashboard .mesa-db__grid[data-mob-step="0"] > [data-mob-step="0"],
  #dashboard .mesa-db__grid[data-mob-step="1"] > [data-mob-step="1"],
  #dashboard .mesa-db__grid[data-mob-step="2"] > [data-mob-step="2"],
  #dashboard .mesa-db__grid[data-mob-step="3"] > [data-mob-step="3"],
  #dashboard .mesa-db__grid[data-mob-step="4"] > [data-mob-step="4"] {
    display: block !important;
  }
}


/* Mesa kanban. make cards behave like buttons (clickable, no default chrome) */
button.mesa-kb__card {
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  display: block;
  appearance: none;
}
button.mesa-kb__card:hover {
  border-color: rgba(4,52,244,.3);
  box-shadow: 0 4px 12px rgba(4,52,244,.1);
}
button.mesa-kb__wf-tab {
  cursor: pointer;
  font-family: var(--font-display);
}
