/* ============================================================
   FlowZen Admin — Design System Premium (Consolidado)
   Versão limpa: uma única fonte de variáveis, sem overrides duplicados.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap");

/* ── Variáveis consolidadas (valores finais) ── */
:root {
  --bg: #08080b;
  --surf: #111116;
  --surf2: #191922;
  --bord: #29293a;
  --bord2: #3a3a50;
  --acc: #ae6ff0;
  --acc2: #d96eea;
  --acc3: #7b50dd;
  --green: #4ade80;
  --red: #f87171;
  --yel: #fbbf24;
  --blue: #60a5fa;
  --orange: #fb923c;
  --text: #ececf5;
  --muted: #8a8aa3;
  --r: 16px;
  --glow-acc: 0 0 14px rgba(192, 132, 252, 0.09);
  --glow-green: 0 0 11px rgba(74, 222, 128, 0.075);
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.42), 0 1px 4px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 16px 46px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ── */
body {
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(
      circle at 82% 4%,
      rgba(192, 132, 252, 0.12),
      transparent 34%
    ),
    radial-gradient(
      circle at 0% 44%,
      rgba(232, 121, 249, 0.075),
      transparent 24%
    ),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain texture sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  background: var(--surf2);
  border: 1px solid var(--bord);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
input:hover,
select:hover {
  border-color: var(--bord2);
}
textarea {
  min-height: 96px;
  resize: vertical;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(174, 111, 240, 0.7);
  box-shadow:
    0 0 0 3px rgba(174, 111, 240, 0.11),
    var(--glow-acc);
}
input::placeholder,
textarea::placeholder {
  color: rgba(138, 138, 163, 0.6);
}

table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(41, 41, 58, 0.8);
  font-size: 12.5px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.018);
}
tbody tr {
  transition: background 0.12s;
}
tbody tr:hover {
  background: rgba(192, 132, 252, 0.026);
}
tr:last-child td {
  border-bottom: 0;
}

/* ── Layout ── */
html,
body {
  height: 100%;
  overflow: hidden;
}
.layout {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ── Sidebar ── */
.sidebar {
  width: 242px;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 20, 0.98) 0%,
    rgba(10, 10, 15, 0.98) 100%
  );
  border-right: 1px solid rgba(41, 41, 58, 0.9);
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 3;
  box-shadow: 12px 0 38px rgba(0, 0, 0, 0.32);
  scrollbar-width: thin;
  scrollbar-color: rgba(41, 41, 58, 0.9) transparent;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(58, 58, 80, 0.9);
  border-radius: 2px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid rgba(41, 41, 58, 0.7);
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px 18px;
  border-bottom: 1px solid rgba(41, 41, 58, 0.8);
  margin-bottom: 14px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 3px 10px rgba(192, 132, 252, 0.15),
    0 0 0 1px rgba(192, 132, 252, 0.09);
  flex-shrink: 0;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* ── Status Pill WhatsApp ── */
.status-pill {
  margin: 0 12px 14px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
  color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow:
    0 0 0 4px rgba(148, 163, 184, 0.1),
    0 0 10px rgba(148, 163, 184, 0.28);
  flex-shrink: 0;
  animation: pulse 2.5s ease infinite;
}
.status-pill.status-online {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.13),
    rgba(20, 184, 166, 0.045)
  );
  border-color: rgba(74, 222, 128, 0.28);
  color: #86efac;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 24px rgba(0, 0, 0, 0.14);
}
.status-pill.status-online .dot {
  background: var(--green);
  box-shadow:
    0 0 0 4px rgba(74, 222, 128, 0.13),
    0 0 14px rgba(74, 222, 128, 0.58);
}
.status-pill.status-offline {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.08),
    rgba(174, 111, 240, 0.035)
  );
  border-color: rgba(148, 163, 184, 0.18);
  color: #c4bfd4;
}
.status-pill.status-offline .dot {
  background: #94a3b8;
  box-shadow:
    0 0 0 4px rgba(148, 163, 184, 0.1),
    0 0 10px rgba(148, 163, 184, 0.24);
  animation: none;
}
.status-pill.status-waiting {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(174, 111, 240, 0.04)
  );
  border-color: rgba(251, 191, 36, 0.24);
  color: #fde68a;
}
.status-pill.status-waiting .dot {
  background: var(--yel);
  box-shadow:
    0 0 0 4px rgba(251, 191, 36, 0.12),
    0 0 12px rgba(251, 191, 36, 0.45);
}
.status-pill.status-error {
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  border-color: rgba(248, 113, 113, 0.23);
  color: #fecaca;
}
.status-pill.status-error .dot {
  background: var(--red);
  box-shadow:
    0 0 0 4px rgba(248, 113, 113, 0.12),
    0 0 12px rgba(248, 113, 113, 0.46);
  animation: none;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

/* ── Nav ── */
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 14px;
}

.nav-group {
  border: 1px solid transparent;
  border-radius: 13px;
  overflow: hidden;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.nav-group.open {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.055);
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    background 0.15s,
    color 0.15s;
  text-align: left;
}
.nav-group-toggle:hover {
  background: var(--surf2);
  color: var(--text);
}
.nav-group.open .nav-group-toggle {
  color: rgba(236, 236, 245, 0.85);
  background: rgba(174, 111, 240, 0.055);
}
.nav-group-toggle:focus-visible {
  outline: 2px solid rgba(174, 111, 240, 0.6);
  outline-offset: 2px;
  border-radius: 10px;
}

.nav-group-left {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.nav-group-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acc);
  opacity: 0.9;
  flex-shrink: 0;
}
.nav-group-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-chevron {
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(-90deg);
}
.nav-group.open .nav-chevron {
  transform: rotate(0deg);
  color: var(--acc);
}

.nav-group-content {
  display: none;
  padding: 2px 6px 8px;
}
.nav-group.open .nav-group-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px 9px 12px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background 0.14s,
    color 0.14s,
    transform 0.14s;
  user-select: none;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 236, 245, 0.9);
  transform: translateX(1px);
}
.nav-group-content .nav-item.active {
  background: linear-gradient(
    90deg,
    rgba(174, 111, 240, 0.135),
    rgba(174, 111, 240, 0.026)
  );
  color: var(--acc);
  box-shadow:
    inset 3px 0 0 var(--acc),
    0 6px 18px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  font-size: 0;
  color: currentColor;
  opacity: 0.8;
}
.nav-item.active .nav-icon {
  opacity: 1;
}
.nav-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.nav-top-item {
  margin-bottom: 8px;
}
.nav-dashboard {
  margin: 2px 0 8px;
  background: linear-gradient(
    135deg,
    rgba(192, 132, 252, 0.105),
    rgba(96, 165, 250, 0.0525)
  );
  border: 1px solid rgba(192, 132, 252, 0.165);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  color: rgba(236, 236, 245, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav-dashboard:hover {
  background: linear-gradient(
    135deg,
    rgba(192, 132, 252, 0.165),
    rgba(96, 165, 250, 0.09)
  );
  color: var(--text);
  transform: none;
}

.nav-item-double {
  align-items: center;
}
.nav-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.nav-text-main {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-text-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}
.nav-item.active .nav-text-sub,
.nav-item:hover .nav-text-sub {
  color: inherit;
  opacity: 0.75;
}
.nav-section-title {
  display: none !important;
}

/* First nav group (Dashboard) */
.nav .nav-group:first-child.open {
  background: rgba(255, 255, 255, 0.022);
  border-color: rgba(41, 41, 58, 0.9);
}
.nav .nav-group:first-child.open .nav-group-toggle {
  color: var(--text);
  background: rgba(174, 111, 240, 0.055);
}
.nav .nav-group:first-child.open .nav-chevron {
  color: var(--acc);
}
.nav .nav-group:first-child .nav-group-content .nav-item.active {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.nav .nav-group:first-child .nav-group-content .nav-item.active:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* ── Main ── */
.main {
  flex: 1;
  overflow-y: auto;
  height: 100vh;
  padding: 28px 30px;
  scroll-behavior: smooth;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.012),
    rgba(0, 0, 0, 0)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 58, 80, 0.8) transparent;
  position: relative;
  z-index: 1;
}
.main::-webkit-scrollbar {
  width: 5px;
}
.main::-webkit-scrollbar-thumb {
  background: rgba(58, 58, 80, 0.9);
  border-radius: 3px;
}

.page {
  display: none;
}
.page.active {
  display: block;
  animation: flowzenPageIn 0.18s ease-out;
}
@keyframes flowzenPageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Subtitles ── */
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.65;
}

/* ── Cards ── */
.cards,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.cards-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    ),
    linear-gradient(160deg, var(--surf), rgba(20, 20, 27, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.18s,
    box-shadow 0.18s;
}
.card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 50px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(174, 111, 240, 0.82),
    rgba(192, 132, 252, 0)
  );
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(192, 132, 252, 0.0825),
    rgba(192, 132, 252, 0) 68%
  );
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.165);
  box-shadow:
    var(--shadow-lift),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(138, 138, 163, 0.96);
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.card-value {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}
.card p.mini-help {
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.cards-grid .card-value.text-md {
  font-size: 24px !important;
  line-height: 1.25;
  word-break: break-word;
}

/* ── Panel ── */
.panel {
  position: relative;
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.034),
      rgba(255, 255, 255, 0.014)
    ),
    var(--surf);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 132, 252, 0.135),
    transparent
  );
  border-radius: var(--r) var(--r) 0 0;
  pointer-events: none;
}
.panel h3 {
  margin: 0 0 4px;
}
.panel-subtle {
  background: rgba(25, 25, 34, 0.85);
  border: 1px solid rgba(41, 41, 58, 0.85);
  border-radius: 12px;
  padding: 16px 18px;
}

/* ── Table ── */
.table-wrap {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.01)
    ),
    var(--surf);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.table-wrap {
  overflow: auto;
}
.table-wrap table {
  min-width: 720px;
}
.panel .table-wrap {
  max-height: 520px;
}

/* ── Grid rows ── */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.row > *,
.cards > *,
.cards-grid > * {
  min-width: 0;
}
.row.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.row.single {
  grid-template-columns: 1fr;
}
.finance-main-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.finance-page-row {
  align-items: start;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mini-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.hidden {
  display: none !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.88),
    rgba(123, 80, 221, 0.88)
  );
  color: rgba(240, 230, 255, 0.95);
  box-shadow:
    0 8px 18px rgba(139, 92, 246, 0.165),
    inset 0 1px 0 rgba(255, 255, 255, 0.135);
}
.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(217, 110, 234, 0.88),
    rgba(123, 80, 221, 0.88)
  );
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.21);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(192, 132, 252, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.btn-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.22);
}
.btn-danger:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.38);
}
.btn-success {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.22);
}
.btn-success:hover {
  background: rgba(74, 222, 128, 0.18);
}
.btn-sm {
  padding: 6px 11px;
  font-size: 11px;
}
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge.green {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.badge.yel {
  background: rgba(251, 191, 36, 0.1);
  color: var(--yel);
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.badge.acc {
  background: rgba(192, 132, 252, 0.1);
  color: var(--acc);
  border: 1px solid rgba(192, 132, 252, 0.2);
}
.badge.danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.badge.red {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ── Status boxes ── */
.status-box {
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--bord);
  background: rgba(20, 20, 28, 0.7);
  font-size: 12px;
  white-space: pre-wrap;
  font-family: "DM Mono", monospace;
  line-height: 1.65;
  color: var(--muted);
}
.status-box.ok {
  border-color: rgba(74, 222, 128, 0.25);
  color: var(--green);
  background: rgba(74, 222, 128, 0.04);
}
.status-box.warn {
  border-color: rgba(251, 191, 36, 0.25);
  color: var(--yel);
  background: rgba(251, 191, 36, 0.04);
}
.status-box.err {
  border-color: rgba(248, 113, 113, 0.25);
  color: var(--red);
  background: rgba(248, 113, 113, 0.04);
}

/* ── Token overlay ── */
.token-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(232, 121, 249, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at 4% 76%,
      rgba(248, 113, 113, 0.15),
      transparent 28%
    ),
    rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}
.token-box {
  width: 390px;
  background: linear-gradient(
    160deg,
    rgba(22, 22, 30, 0.98),
    rgba(16, 16, 22, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 36px;
  text-align: center;
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}
.token-box p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 22px;
  line-height: 1.6;
}
.token-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acc);
}
.token-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Toast ── */
.toast-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}
.toast {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(18, 18, 26, 0.96);
  border: 1px solid rgba(58, 58, 80, 0.9);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.toast.ok {
  border-color: rgba(74, 222, 128, 0.35);
  color: var(--green);
}
.toast.err {
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--red);
}
.toast.info {
  border-color: rgba(192, 132, 252, 0.26);
  color: var(--acc);
}

/* ── Flow editor ── */
.step-card {
  background: var(--surf2);
  border: 1px solid rgba(41, 41, 58, 0.9);
  border-radius: 13px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.18s;
}
.step-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(41, 41, 58, 0.9);
  background: rgba(255, 255, 255, 0.02);
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 111, 240, 0.14);
  color: var(--acc);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(174, 111, 240, 0.2);
}
.step-title {
  flex: 1;
  font-weight: 700;
  font-size: 12.5px;
}
.step-body {
  padding: 14px;
}

.tabbar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tab {
  padding: 7px 13px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--bord);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover {
  border-color: var(--bord2);
  color: var(--text);
}
.tab.active {
  background: rgba(174, 111, 240, 0.12);
  border-color: rgba(174, 111, 240, 0.4);
  color: var(--acc);
}

/* ── Media ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.media-item {
  background: var(--surf2);
  border: 1px solid rgba(41, 41, 58, 0.9);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.media-item:hover {
  border-color: var(--bord2);
  transform: translateY(-1px);
}
.media-name {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
}

/* ── Color utilities ── */
.green {
  color: var(--green);
}
.acc {
  color: var(--acc);
}
.yel {
  color: var(--yel);
}
.red {
  color: var(--red);
}
.blue {
  color: var(--blue);
}
.orange {
  color: var(--orange);
}
.ok {
  color: var(--green);
}
.warn {
  color: var(--yel);
}

/* ── Utility classes ── */
.w-full {
  width: 100%;
}
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.items-start {
  align-items: flex-start;
}
.font-mono {
  font-family: "DM Mono", monospace;
}
.font-bold {
  font-weight: 700;
}
.text-main {
  color: var(--text);
}
.text-muted {
  color: var(--muted);
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-sm {
  font-size: 12px;
}
.text-md {
  font-size: 16px !important;
  line-height: 1.35;
}
.text-xl {
  font-size: 38px;
}
.textarea-md {
  min-height: 110px;
}
.opacity-soft {
  opacity: 0.75;
}
.mt-10 {
  margin-top: 10px;
}
.mt-xs {
  margin-top: 6px;
}
.mt-sm {
  margin-top: 12px;
}
.mt-md {
  margin-top: 14px;
}
.mt-lg {
  margin-top: 16px;
}
.mt-xl {
  margin-top: 18px;
}
.mb-xs {
  margin-bottom: 5px;
}
.mb-sm {
  margin-bottom: 4px;
}
.mb-md {
  margin-bottom: 12px;
}
.mb-lg {
  margin-bottom: 14px;
}
.mb-xl {
  margin-bottom: 18px;
}
.gap-xs {
  gap: 6px;
}
.gap-sm {
  gap: 8px;
}
.gap-md {
  gap: 10px;
}
.gap-lg {
  gap: 12px;
}
.grid-gap-md {
  display: grid;
  gap: 12px;
}
.grid-gap-sm {
  display: grid;
  gap: 8px;
}
.border-top {
  border-top: 1px solid var(--bord);
}
.top-border {
  border-top: 1px solid var(--bord);
}
.table-clean {
  width: 100%;
  border-collapse: collapse;
}
.section-sep {
  border: 0;
  border-top: 1px solid var(--bord);
}
.pt-md {
  padding-top: 14px;
}
.pt-lg {
  padding-top: 16px;
}
.p-sm {
  padding: 8px;
}
.my-lg {
  margin: 18px 0;
}
.my-xl {
  margin: 22px 0;
}

/* ── Dynamic states ── */
.dynamic-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
}
.dynamic-empty-card {
  color: var(--muted);
  font-size: 13px;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.041),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(174, 111, 240, 0.135);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.dynamic-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: border-color 0.15s;
}
.dynamic-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.dynamic-card-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.dynamic-card-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.dynamic-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

/* ── Channel controls ── */
.check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.check-card:hover {
  border-color: rgba(174, 111, 240, 0.25);
}
.check-card input {
  width: auto;
  accent-color: var(--acc);
  margin-top: 2px;
}
.check-card.small {
  font-size: 12px;
  padding: 9px 11px;
  word-break: break-word;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding: 2px;
}
.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

/* ── CRM ── */

.crm-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.crm-mini-bars {
  display: grid;
  gap: 10px;
}
.crm-mini-bar-row {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.crm-empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 6px;
}
.crm-empty-state strong {
  color: var(--txt);
  font-size: 13px;
}
.crm-empty-state span {
  font-size: 12px;
  line-height: 1.45;
}

.crm-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.35fr) minmax(
      150px,
      0.3fr
    );
  gap: 10px;
  min-width: min(100%, 620px);
}
.crm-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.crm-detail {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 60px);
  overflow: auto;
}
.crm-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.crm-form-section {
  border-top: 1px solid var(--bord);
  padding-top: 14px;
  margin-top: 14px;
}
.crm-form-section h4 {
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 700;
}
.crm-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crm-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.crm-dashboard-cards .card {
  min-height: 132px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(174, 111, 240, 0.1);
  border: 1px solid rgba(174, 111, 240, 0.2);
  color: var(--acc);
  font-size: 10px;
  font-weight: 700;
  margin: 2px 3px 2px 0;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  align-items: start;
}
.kanban-col {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.012)
    ),
    var(--surf);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r);
  padding: 14px;
  min-height: 180px;
  box-shadow: var(--shadow-card);
}
.kanban-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
.kanban-head span {
  background: var(--surf2);
  border: 1px solid var(--bord);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 11px;
}
.kanban-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  transition:
    border-color 0.15s,
    transform 0.15s;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.kanban-card:hover {
  border-color: rgba(174, 111, 240, 0.3);
  transform: translateY(-1px);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  align-items: start;
}
.timeline-date {
  font-size: 11px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  padding-top: 10px;
}
.timeline-card,
.mini-list-item {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Dashboard grid ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.clean-checklist {
  display: grid;
  gap: 8px;
}
.clean-checklist div,
.checklist div {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: border-color 0.15s;
}
.clean-checklist div:hover,
.checklist div:hover {
  border-color: rgba(174, 111, 240, 0.2);
}

/* ── Section icons ── */
.section-icon,
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  color: var(--acc);
  margin-right: 6px;
}
.section-icon svg,
.btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.btn-icon {
  margin-right: 2px;
  color: currentColor;
}
.panel h3 .section-icon {
  margin-right: 8px;
}
.inline-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  color: currentColor;
}
.inline-svg-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Hero panels ── */
.api-hero,
.channel-hero,
.crm-hero,
.v3-hero,
.help-hero {
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 88% -20%,
      rgba(232, 121, 249, 0.18),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      rgba(192, 132, 252, 0.0975),
      rgba(96, 165, 250, 0.041),
      rgba(255, 255, 255, 0.012)
    );
  border: 1px solid rgba(192, 132, 252, 0.165) !important;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* ── Channel layout ── */
.channel-cards .card {
  min-height: 132px;
}
.channel-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.switch-card {
  align-items: flex-start;
  gap: 10px;
}
.switch-card span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.25;
}
.switch-card small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
}

/* ── Collapsible panels ── */
.panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.panel-head-row h3 {
  margin: 0 0 4px;
}
.collapsible-panel .panel-body {
  display: block;
}
.collapsible-panel.is-collapsed .panel-body,
.collapsible-panel.is-collapsed .panel-collapsible-body {
  display: none;
}
.panel-collapsible-body {
  display: block;
}

/* ── Funnel builder ── */
.funnel-builder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 16px;
  align-items: start;
}
.funnel-hub-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 16px;
  align-items: start;
}
.block-library {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.block-type-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.038),
    rgba(255, 255, 255, 0.014)
  );
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  transition:
    border-color 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.block-type-card:hover {
  border-color: rgba(174, 111, 240, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.block-type-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.funnel-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.funnel-node {
  border: 1px solid rgba(174, 111, 240, 0.3);
  background: rgba(174, 111, 240, 0.07);
  border-radius: 15px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.funnel-node span {
  color: var(--muted);
  font-size: 12px;
}
.funnel-arrow {
  text-align: center;
  color: var(--acc);
  font-weight: 900;
}
.funnel-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.funnel-branches div {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border-radius: 11px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.funnel-summary-cards .card {
  min-height: 126px;
}
.funnel-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 3px;
}
.funnel-list-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  color: var(--text);
  border-radius: 14px;
  padding: 12px 13px;
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.funnel-list-card:hover {
  border-color: rgba(174, 111, 240, 0.36);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.funnel-list-card.selected {
  border-color: rgba(174, 111, 240, 0.68);
  box-shadow: 0 0 0 2px rgba(174, 111, 240, 0.1);
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.115),
    rgba(255, 255, 255, 0.018)
  );
}
.funnel-list-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.builder-choice-card small {
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  margin-top: auto;
}

.builder-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.builder-choice-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 8px;
  background: linear-gradient(
    160deg,
    rgba(174, 111, 240, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(174, 111, 240, 0.2);
  border-radius: 16px;
  padding: 16px;
  color: var(--text);
  cursor: pointer;
  min-height: 132px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.builder-choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(174, 111, 240, 0.5);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 14px rgba(174, 111, 240, 0.08);
}
.builder-choice-card strong {
  font-size: 14px;
  color: var(--acc);
  font-weight: 700;
}
.builder-choice-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.builder-empty,
.help-empty {
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.041),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(174, 111, 240, 0.135);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.builder-step {
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.038),
    rgba(255, 255, 255, 0.014)
  );
  border-radius: 15px;
  overflow: hidden;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
.builder-step.selected {
  border-color: rgba(174, 111, 240, 0.65);
  box-shadow: 0 0 0 2px rgba(174, 111, 240, 0.1);
}
.builder-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
}
.builder-step-head strong {
  display: block;
  font-size: 13px;
}
.builder-step-head span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.builder-step-body {
  border-top: 1px solid rgba(41, 41, 58, 0.9);
  padding: 13px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.builder-step.is-mini .builder-step-head {
  opacity: 0.8;
}
.builder-options {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.builder-option-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 8px;
  align-items: center;
}
.builder-option-row input,
.builder-option-row select {
  margin: 0;
}

.collapse-map {
  display: grid;
  gap: 10px;
}
.collapse-map-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border-radius: 13px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: border-color 0.15s;
}
.collapse-map-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.collapse-map-item span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}

/* ── Help ── */
.help-hero h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.help-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.help-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
}
.help-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.help-search-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 220px;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}
.help-card {
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.034),
      rgba(255, 255, 255, 0.014)
    ),
    var(--surf);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 185px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}
.help-card:hover {
  transform: translateY(-3px);
  border-color: rgba(174, 111, 240, 0.3);
  box-shadow:
    var(--shadow-lift),
    0 0 12px rgba(174, 111, 240, 0.075);
}
.help-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.help-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 111, 240, 0.1);
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(174, 111, 240, 0.15);
}
.help-card h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
}
.help-card p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.help-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.help-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surf2);
  border: 1px solid var(--bord);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.help-chip.video {
  color: var(--blue);
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}
.help-chip.pdf {
  color: var(--red);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
}
.help-chip.doc {
  color: var(--green);
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
}
.help-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.help-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}
.help-modal.open {
  display: block;
}
.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}
.help-modal-card {
  position: absolute;
  inset: 26px;
  display: flex;
  flex-direction: column;
  background: var(--surf);
  border: 1px solid rgba(174, 111, 240, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.help-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bord);
}
.help-modal-head h3 {
  margin: 8px 0 4px;
  font-size: 18px;
}
.help-viewer {
  flex: 1;
  background: #060609;
  min-height: 320px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.help-viewer iframe,
.help-viewer video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #060609;
}
.help-viewer video {
  object-fit: contain;
  padding: 12px;
}
.help-admin-panel .toolbar {
  align-items: flex-start;
}
.help-form-box {
  border-top: 1px solid var(--bord);
  margin-top: 14px;
  padding-top: 16px;
}
.help-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.help-card-subtitle {
  font-size: 11px;
  color: var(--acc);
  font-weight: 700;
  margin-top: 5px;
}
.help-card-actions .btn-danger {
  margin-left: auto;
}
.help-tags-line {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ── Support ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.support-card {
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.034),
      rgba(255, 255, 255, 0.014)
    ),
    var(--surf);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 165px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lift);
}
.support-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 111, 240, 0.1);
  border: 1px solid rgba(174, 111, 240, 0.2);
  color: var(--acc);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(174, 111, 240, 0.12);
}
.support-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.support-card h3 {
  font-size: 17px;
  margin: 4px 0 6px;
  word-break: break-word;
  font-weight: 700;
}
.support-card a.btn {
  text-decoration: none;
}

/* ── API Hub ── */
.api-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
}
.api-hero h2 {
  font-size: 23px;
  margin: 4px 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.api-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.api-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: var(--acc);
}
.api-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.api-shell {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(430px, 1.35fr);
  gap: 14px;
  align-items: start;
}
.api-list-panel,
.api-config-panel {
  min-width: 0;
}
.api-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.api-chip {
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.api-chip:hover,
.api-chip.active {
  border-color: rgba(174, 111, 240, 0.5);
  background: rgba(174, 111, 240, 0.12);
  color: var(--acc);
}
.api-integration-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 660px;
  overflow: auto;
  padding-right: 4px;
}
.api-integration-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border-radius: 17px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.016)
  );
  border: 1px solid rgba(255, 255, 255, 0.065);
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.api-integration-card:hover {
  transform: translateY(-1px);
  border-color: rgba(174, 111, 240, 0.27);
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.06),
    rgba(255, 255, 255, 0.02)
  );
}
.api-integration-card.selected {
  border-color: rgba(174, 111, 240, 0.48);
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.12),
    rgba(96, 165, 250, 0.034),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow:
    inset 3px 0 0 var(--acc),
    0 12px 30px rgba(0, 0, 0, 0.32);
}

.api-card-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.12),
    rgba(96, 165, 250, 0.056)
  );
  border: 1px solid rgba(174, 111, 240, 0.135);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 7px 18px rgba(0, 0, 0, 0.18);
}
.api-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text);
}
.api-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.api-card-icon.large {
  width: 32px;
  height: 32px;
  color: #bd86f5;
}
.api-card-icon.large svg {
  width: 30px;
  height: 30px;
}
.api-card-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: var(--red);
  border: 2px solid var(--surf);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
}
.api-card-dot.ok {
  background: var(--green);
  box-shadow:
    0 0 0 3px rgba(74, 222, 128, 0.075),
    0 0 9px rgba(74, 222, 128, 0.27);
}
.api-card-dot.warn {
  background: var(--yel);
  box-shadow:
    0 0 0 3px rgba(251, 191, 36, 0.075),
    0 0 9px rgba(251, 191, 36, 0.195);
}
.api-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.api-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.api-card-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.api-card-badges {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 110px;
}
.api-selected-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.api-selected-title-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}
.api-selected-title-text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.api-selected-title-text span {
  font-size: 16px;
  font-weight: 800;
}
.api-meta-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}
.api-meta-strip span {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 10px;
}
.api-json-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.api-email-card {
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.07),
    rgba(174, 111, 240, 0.04)
  );
  border-radius: 13px;
}
.api-summary-card {
  position: relative;
  overflow: hidden;
}
.api-summary-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(174, 111, 240, 0.06);
}
.report-bar-row {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12px;
  transition: border-color 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.report-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  margin-top: 9px;
  overflow: hidden;
}
.report-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--acc3), var(--acc2));
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.3);
}

/* ── Mini table ── */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mini-table th,
.mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(41, 41, 58, 0.7);
  text-align: left;
}
.mini-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.018);
}
.mini-table tbody tr {
  transition: background 0.12s;
}
.mini-table tbody tr:hover {
  background: rgba(174, 111, 240, 0.04);
}

/* ── Misc ── */
.professional-empty {
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  border-style: solid;
}
.professional-empty .btn-group {
  flex-wrap: wrap;
}
.sidebar .nav {
  padding-bottom: 18px;
}

/* Accessibility */
button:focus-visible,
.btn:focus-visible,
.nav-item:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(174, 111, 240, 0.65);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 1120px) {
  .api-shell {
    grid-template-columns: 1fr;
  }
  .api-integration-list {
    max-height: none;
  }
  .api-json-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .dashboard-grid,
  .crm-grid,
  .crm-insight-grid {
    grid-template-columns: 1fr;
  }
  .crm-detail {
    position: static;
    max-height: none;
  }
  .crm-filter-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1050px) {
  .channel-layout {
    grid-template-columns: 1fr;
  }
  .channel-hero {
    align-items: flex-start;
  }
  .channel-hero .btn-group {
    width: 100%;
  }
}
@media (max-width: 1000px) {
  .funnel-builder-grid,
  .funnel-hub-grid {
    grid-template-columns: 1fr;
  }
  .funnel-branches {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .funnel-hub-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    max-height: 48vh;
  }
  .main {
    height: auto;
    min-height: 100vh;
    padding: 18px 16px;
  }
  .row,
  .row.three {
    grid-template-columns: 1fr;
  }
  .nav {
    max-height: 48vh;
    overflow: auto;
  }
  .nav-group.open .nav-group-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .nav-group-content .nav-item {
    min-height: 40px;
  }
  .help-hero,
  .help-modal-head {
    flex-direction: column;
    align-items: stretch;
  }
  .help-toolbar {
    grid-template-columns: 1fr;
  }
  .help-modal-card {
    inset: 12px;
  }
  .help-viewer {
    min-height: 55vh;
  }
  .support-card {
    flex-direction: column;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
    overflow: auto;
  }
  .sidebar {
    height: auto;
  }
  .main {
    height: auto;
    min-height: 100vh;
  }
  .cards,
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .token-box {
    width: min(92vw, 380px);
    padding: 24px;
  }
  .btn-group .btn {
    flex: 1;
    justify-content: center;
  }
  .panel-head-row {
    flex-direction: column;
  }
  .api-hero {
    padding: 16px 18px;
  }
  .api-hero h2 {
    font-size: 18px;
  }
  .api-integration-card {
    grid-template-columns: auto 1fr;
  }
  .api-card-badges {
    grid-column: 2;
    justify-content: flex-start;
    max-width: none;
  }
  .api-json-grid,
  .row {
    grid-template-columns: 1fr !important;
  }
  .builder-step-head {
    flex-direction: column;
    align-items: stretch;
  }
  .builder-option-row {
    grid-template-columns: 1fr;
  }
  .builder-option-row .btn {
    width: 100%;
    justify-content: center;
  }
  .copy-row {
    grid-template-columns: 1fr;
  }
  .copy-row .btn {
    justify-content: center;
  }
  .card {
    min-height: 118px;
  }
}
@media (max-width: 520px) {
  .nav-group.open .nav-group-content {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* API & Conexões Pro — painel de ações rápidas */
.api-action-panel {
  border: 1px solid rgba(192, 132, 252, 0.16);
  background: linear-gradient(
    135deg,
    rgba(192, 132, 252, 0.075),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.api-action-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.api-action-fields textarea {
  min-height: 92px;
  resize: vertical;
}
@media (max-width: 820px) {
  .api-action-fields {
    grid-template-columns: 1fr;
  }
}

/* FlowZen Dashboard Principal — revisão de produção 2026-05-08 */
.dashboard-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.badge.local-mode {
  background: rgba(174, 111, 240, 0.12);
  border: 1px solid rgba(174, 111, 240, 0.28);
  color: #d9bbff;
}
.dashboard-status-cards {
  margin-bottom: 16px;
}
.dashboard-kpi-cards {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  margin-bottom: 18px;
}
.kpi-card {
  min-height: 142px;
}
.dashboard-skeleton {
  opacity: 0.72;
}
.dashboard-hero {
  margin-top: 2px;
}
.dashboard-grid-wide {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}
.dashboard-chart-card {
  min-height: 265px;
}
.dashboard-chart-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dashboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 126px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(174, 111, 240, 0.2);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  padding: 20px;
}
.dashboard-empty strong {
  color: var(--text);
  font-size: 13px;
}
.dashboard-empty span {
  font-size: 12px;
  max-width: 360px;
  line-height: 1.5;
}
.dashboard-error {
  border-color: rgba(248, 113, 113, 0.28);
  background: linear-gradient(
    145deg,
    rgba(248, 113, 113, 0.06),
    rgba(255, 255, 255, 0.012)
  );
}
.dashboard-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}
.dashboard-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 94px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.dashboard-bar-row strong {
  color: var(--text);
  font-size: 12px;
  text-align: right;
}
.dashboard-bar-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.055);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22);
}
.dashboard-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(174, 111, 240, 0.92),
    rgba(96, 165, 250, 0.78)
  );
  box-shadow: 0 0 14px rgba(174, 111, 240, 0.16);
}
.dashboard-bar-track.out i {
  background: linear-gradient(
    90deg,
    rgba(248, 113, 113, 0.85),
    rgba(251, 191, 36, 0.7)
  );
}
.dashboard-finance-pair {
  display: grid;
  gap: 18px;
  width: 100%;
}
.dashboard-finance-pair div {
  display: grid;
  grid-template-columns: 90px 128px 1fr;
  gap: 12px;
  align-items: center;
}
.dashboard-finance-pair span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dashboard-finance-pair strong {
  font-size: 17px;
}
.mini-list-item .badge {
  align-self: center;
}
.green {
  color: var(--green) !important;
}
.red {
  color: var(--red) !important;
}
.yel {
  color: var(--yel) !important;
}
.acc {
  color: var(--acc) !important;
}
@media (max-width: 1100px) {
  .dashboard-grid-wide {
    grid-template-columns: 1fr;
  }
  .dashboard-title-row {
    flex-direction: column;
  }
  .dashboard-actions {
    justify-content: flex-start;
  }
  .dashboard-finance-pair div {
    grid-template-columns: 1fr;
  }
  .dashboard-bar-row {
    grid-template-columns: 58px 1fr 76px;
  }
}

/* ── CRM: Tags e Status ── */
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.crm-settings-summary {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 18px;
}
.crm-settings-panel {
  max-width: 1120px;
}
.crm-settings-grid {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.crm-settings-editor {
  min-width: 0;
}
.crm-settings-textarea {
  min-height: 190px;
  max-height: 340px;
  background: rgba(9, 9, 14, 0.6);
  border-color: rgba(174, 111, 240, 0.14);
  font-size: 13px;
  line-height: 1.7;
}
.crm-chip-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 46px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(174, 111, 240, 0.22);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.045),
    rgba(255, 255, 255, 0.012)
  );
}
.tag-pill.muted {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}
.crm-settings-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.16);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.crm-settings-note strong {
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .page-title-row {
    flex-direction: column;
  }
  .crm-settings-grid {
    grid-template-columns: 1fr;
  }
  .crm-settings-panel {
    max-width: none;
  }
}

/* Vendas / Clientes — visão comercial aprimorada */
.sales-client-header {
  margin-bottom: 18px;
}
.sales-client-header .subtitle {
  margin-bottom: 0;
}
.sales-client-cards {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.sales-client-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 136px;
}
.sales-client-card-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(174, 111, 240, 0.13);
  border: 1px solid rgba(174, 111, 240, 0.23);
  box-shadow: 0 0 24px rgba(174, 111, 240, 0.08);
}
.sales-client-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sales-client-card-icon.green {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.22);
}
.sales-client-card-icon.yel {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.22);
}
.sales-client-card-icon.danger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--text);
}
.sales-client-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 16px;
}
.sales-client-search {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 13px;
  padding: 0 12px;
  color: var(--muted);
}
.sales-client-search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  height: 42px;
  color: var(--text);
  font-size: 13px;
}
.sales-client-search input::placeholder {
  color: var(--muted);
}
.sales-client-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sales-client-filters .btn.active {
  color: var(--acc);
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(174, 111, 240, 0.16);
  box-shadow: 0 0 0 1px rgba(174, 111, 240, 0.08) inset;
}
.sales-client-empty {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 28px;
  color: var(--muted);
  background: radial-gradient(
    circle at 50% 0,
    rgba(174, 111, 240, 0.08),
    transparent 45%
  );
}
.sales-client-empty strong {
  color: var(--text);
  font-size: 18px;
}
.sales-client-empty span {
  max-width: 540px;
  line-height: 1.45;
  font-size: 13px;
}
.sales-client-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--acc);
  border: 1px solid rgba(174, 111, 240, 0.22);
  background: rgba(174, 111, 240, 0.08);
  box-shadow: 0 0 28px rgba(174, 111, 240, 0.12);
}
.sales-client-empty-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sales-client-help {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
}
.sales-client-help > div {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  padding-left: 16px;
}
.sales-client-help > div:first-child {
  border-left: 0;
  padding-left: 0;
}
@media (max-width: 1100px) {
  .sales-client-help {
    grid-template-columns: 1fr 1fr;
  }
  .sales-client-toolbar {
    align-items: stretch;
  }
  .sales-client-search {
    min-width: 100%;
  }
}
@media (max-width: 720px) {
  .sales-client-help {
    grid-template-columns: 1fr;
  }
  .sales-client-help > div {
    border-left: 0;
    padding-left: 0;
  }
  .sales-client-card {
    min-height: auto;
  }
  .sales-client-header .btn {
    width: 100%;
  }
}

/* ── Vendas auxiliares: Orçamentos, Comprovantes e Relatórios ── */
.sales-page-header {
  margin-bottom: 18px;
}
.sales-page-header .subtitle {
  margin-bottom: 0;
}
.sales-kpi-card {
  min-height: 142px;
}
.sales-kpi-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sales-kpi-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  background: rgba(174, 111, 240, 0.13);
  border: 1px solid rgba(174, 111, 240, 0.25);
  box-shadow: 0 0 24px rgba(174, 111, 240, 0.08);
}
.sales-kpi-icon.green {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.25);
  color: var(--green);
}
.sales-kpi-icon.yel {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
  color: var(--yel);
}
.sales-kpi-icon.danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.25);
  color: var(--red);
}
.sales-card-action {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.sales-card-action:hover {
  border-color: rgba(174, 111, 240, 0.35);
  color: var(--acc);
}
.sales-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
.sales-two-col.report-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.sales-budget-panel {
  min-height: 360px;
}
.sales-step-panel {
  min-height: 360px;
}
.sales-step-list {
  display: grid;
  gap: 18px;
}
.sales-step-list > div {
  position: relative;
  padding-left: 48px;
  min-height: 58px;
}
.sales-step-list > div + div::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -18px;
  width: 1px;
  height: 18px;
  border-left: 1px dashed rgba(174, 111, 240, 0.45);
}
.sales-step-list span {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(174, 111, 240, 0.18);
  border: 1px solid rgba(174, 111, 240, 0.3);
  color: var(--acc);
  font-weight: 900;
}
.sales-step-list strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}
.sales-step-list p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.sales-info-strip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12.5px;
}
.sales-toolbar-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.sales-toolbar-inline select {
  min-width: 160px;
  width: auto;
  height: 40px;
  padding: 8px 12px;
}
.sales-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--muted);
}
.sales-search.compact {
  min-width: 260px;
}
.sales-search input {
  height: 40px;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
  padding: 0;
  width: 100%;
}
.sales-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.105),
    rgba(251, 191, 36, 0.025)
  );
  border-radius: 14px;
  padding: 14px 16px;
  color: #ffd45d;
}
.sales-warning::before {
  content: "⚠";
  font-size: 24px;
  line-height: 1;
}
.sales-warning strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 4px;
  color: #ffd45d;
}
.sales-warning span {
  display: block;
  color: rgba(255, 224, 138, 0.92);
  line-height: 1.45;
  font-size: 12.5px;
}
.sales-empty-state {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: var(--muted);
  padding: 30px;
  background: radial-gradient(
    circle at 50% 10%,
    rgba(174, 111, 240, 0.09),
    transparent 48%
  );
}
.sales-empty-state strong {
  color: var(--text);
  font-size: 17px;
}
.sales-empty-state span {
  max-width: 560px;
  font-size: 13px;
  line-height: 1.48;
}
.sales-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(174, 111, 240, 0.1);
  border: 1px solid rgba(174, 111, 240, 0.24);
  color: var(--acc);
  font-size: 28px;
  box-shadow: 0 0 28px rgba(174, 111, 240, 0.11);
}
.sales-side-stack {
  display: grid;
  gap: 16px;
}
.sales-shortcuts {
  display: grid;
  gap: 10px;
}
.sales-shortcuts button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--text);
  cursor: pointer;
}
.sales-shortcuts button::after {
  content: "→";
  grid-row: 1/3;
  grid-column: 2;
  align-self: center;
  color: var(--muted);
}
.sales-shortcuts button:hover {
  border-color: rgba(174, 111, 240, 0.36);
  background: rgba(174, 111, 240, 0.1);
}
.sales-shortcuts span {
  font-size: 12px;
  color: var(--muted);
}
.sales-insight-box {
  border: 1px solid rgba(74, 222, 128, 0.16);
  background: rgba(74, 222, 128, 0.045);
  border-radius: 13px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.proof-kpi-cards,
.sales-budget-cards,
.sales-report-cards {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}
.proof-panel .table-wrap,
.sales-report-panel .table-wrap,
.sales-budget-panel .table-wrap {
  margin-top: 14px;
}
@media (max-width: 1180px) {
  .sales-two-col,
  .sales-two-col.report-layout {
    grid-template-columns: 1fr;
  }
  .sales-toolbar-inline {
    justify-content: flex-start;
  }
  .proof-kpi-cards,
  .sales-budget-cards,
  .sales-report-cards {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
}
@media (max-width: 720px) {
  .proof-kpi-cards,
  .sales-budget-cards,
  .sales-report-cards {
    grid-template-columns: 1fr;
  }
  .sales-toolbar-inline,
  .sales-toolbar-inline select,
  .sales-search.compact {
    width: 100%;
    min-width: 100%;
  }
  .sales-page-header .btn-group,
  .sales-page-header .btn {
    width: 100%;
  }
  .sales-kpi-top {
    gap: 12px;
  }
  .sales-kpi-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}
.cash-mini-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cash-mini-chart > div {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  gap: 10px;
  align-items: center;
  position: relative;
  padding-bottom: 14px;
}
.cash-mini-chart span {
  color: var(--muted);
  font-size: 0.86rem;
}
.cash-mini-chart strong {
  font-weight: 800;
}
.cash-mini-chart i {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 7px;
  min-width: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(130, 92, 255, 0.65),
    rgba(62, 230, 183, 0.75)
  );
  box-shadow: 0 0 18px rgba(130, 92, 255, 0.22);
}
.cash-mini-chart > div:nth-child(2) i {
  background: linear-gradient(
    90deg,
    rgba(255, 111, 145, 0.65),
    rgba(255, 184, 107, 0.75)
  );
  box-shadow: 0 0 18px rgba(255, 111, 145, 0.18);
}

.finance-page-row .panel,
.finance-primary-row .panel,
.finance-ops-row .panel,
.finance-entry-row .panel {
  min-width: 0;
}
#receitasMixBox,
#despesasMixBox,
#financialReportHighlights {
  gap: 10px;
}
#receitasMixBox > div,
#despesasMixBox > div,
#financialReportHighlights > div {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 12px 14px;
}
@media (max-width: 1320px) {
  .finance-primary-row,
  .finance-ops-row,
  .finance-entry-row,
  .finance-page-row {
    grid-template-columns: 1fr;
  }
}

/* Estoque — ajustes de usabilidade e gráficos locais */
.stock-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.stock-toolbar select {
  width: auto;
  min-width: 180px;
  height: 42px;
  padding: 8px 12px;
}
.stock-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--muted);
}
.stock-search input {
  height: 42px;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
  padding: 0;
  width: 100%;
}
.stock-chart {
  min-height: 150px;
}
.stock-bars {
  display: grid;
  gap: 11px;
}
.stock-bar-row {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 13px;
  padding: 12px 13px 17px;
  overflow: hidden;
}
.stock-bar-row div {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.stock-bar-row strong {
  font-size: 13px;
  color: var(--text);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-bar-row span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.stock-bar-row i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(130, 92, 255, 0.65),
    rgba(62, 230, 183, 0.75)
  );
  box-shadow: 0 0 18px rgba(130, 92, 255, 0.2);
}
@media (max-width: 720px) {
  .stock-toolbar,
  .stock-toolbar select,
  .stock-search {
    width: 100%;
    min-width: 100%;
  }
  .stock-bar-row div {
    align-items: flex-start;
    flex-direction: column;
  }
  .stock-bar-row strong {
    max-width: 100%;
  }
}

/* Estoque — subabas ativas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-grid input,
.form-grid select,
.filter-input {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 9px 12px;
  outline: 0;
}
.form-grid input:focus,
.form-grid select:focus,
.filter-input:focus {
  border-color: rgba(174, 111, 240, 0.5);
  box-shadow: 0 0 0 3px rgba(174, 111, 240, 0.08);
}
.filter-input {
  width: auto;
  min-width: 190px;
}
.stock-chart-box {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 1080px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filter-input {
    width: 100%;
    min-width: 100%;
  }
}

/* Campanhas / Marketing — revisão visual e separação de estimativas */
.campaign-hero {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.campaign-notice {
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.105),
    rgba(255, 255, 255, 0.018)
  );
  border-radius: 16px;
  padding: 14px 16px;
  color: rgba(255, 236, 170, 0.92);
  font-size: 13px;
  line-height: 1.55;
}
.campaign-notice strong {
  color: #ffd56a;
}
.campaign-kpi-cards {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  margin-bottom: 18px;
}
.campaign-kpi-card {
  min-height: 128px;
}
.campaign-analytics-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}
.campaign-chart-box {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.campaign-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 138px;
  padding: 22px;
  border: 1px dashed rgba(174, 111, 240, 0.24);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.055),
    rgba(255, 255, 255, 0.012)
  );
  color: var(--muted);
}
.campaign-empty strong {
  color: var(--text);
  font-size: 14px;
}
.campaign-empty span {
  font-size: 12.5px;
  max-width: 430px;
  line-height: 1.5;
}
.campaign-bar-list,
.campaign-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.campaign-bar-row {
  display: grid;
  grid-template-columns: 135px 1fr 105px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.campaign-bar-row span {
  font-weight: 750;
  color: rgba(236, 236, 245, 0.82);
}
.campaign-bar-row strong {
  text-align: right;
  color: var(--text);
  font-size: 12.5px;
}
.campaign-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22);
}
.campaign-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(174, 111, 240, 0.86),
    rgba(96, 165, 250, 0.72)
  );
  box-shadow: 0 0 16px rgba(174, 111, 240, 0.16);
}
.campaign-bar-track.green i {
  background: linear-gradient(
    90deg,
    rgba(74, 222, 128, 0.82),
    rgba(34, 211, 238, 0.68)
  );
}
.campaign-bar-track.yel i {
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.82),
    rgba(249, 115, 22, 0.64)
  );
}
.campaign-bar-track.danger i {
  background: linear-gradient(
    90deg,
    rgba(248, 113, 113, 0.86),
    rgba(251, 113, 133, 0.64)
  );
}
@media (max-width: 1180px) {
  .campaign-kpi-cards {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
  .campaign-analytics-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .campaign-kpi-cards {
    grid-template-columns: 1fr;
  }
  .campaign-bar-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .campaign-bar-row strong {
    text-align: left;
  }
}

/* Canais / WhatsApp / Instagram */
.channels-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}
.channel-card {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.015)
  );
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  min-height: 220px;
}
.channel-card.is-connected {
  border-color: rgba(74, 222, 128, 0.22);
  background: linear-gradient(
    145deg,
    rgba(74, 222, 128, 0.055),
    rgba(255, 255, 255, 0.014)
  );
}
.channel-card.is-pending {
  border-color: rgba(251, 191, 36, 0.18);
}
.channel-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.channel-card h3 {
  margin: 0 0 3px;
  font-size: 15px;
}
.channel-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.channel-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.channel-creds span {
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}
.channel-warnings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.channel-warnings span {
  font-size: 11px;
  line-height: 1.45;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 10px;
  padding: 8px 9px;
  color: var(--yel);
  background: rgba(251, 191, 36, 0.035);
}

.checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}
.checkbox-inline input {
  margin-top: 2px;
}
.code-preview {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 18, 0.72);
  padding: 14px;
  max-height: 340px;
  overflow: auto;
  color: #d8dbff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}
@media (max-width: 900px) {
  .checkbox-stack {
    gap: 8px;
  }
  .code-preview {
    max-height: 260px;
  }
}

/* ── Guided Funnel Builder refinements ── */
.guided-builder-hero {
  border: 1px solid rgba(174, 111, 240, 0.18);
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.1),
    rgba(96, 165, 250, 0.045),
    rgba(255, 255, 255, 0.015)
  );
  border-radius: 22px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.guided-builder-hero h2 {
  margin: 10px 0 6px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.guided-builder-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 780px;
}
.guided-builder-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.guided-builder-steps span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.guided-builder-steps strong {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(174, 111, 240, 0.18);
  color: var(--acc);
  margin-right: 5px;
  font-size: 11px;
}
.guided-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}
.guided-summary-grid .card {
  min-height: 112px;
}
.guided-action-bar {
  position: sticky;
  top: 0;
  z-index: 12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.guided-action-bar strong {
  display: block;
  color: var(--text);
}
.guided-action-bar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.guided-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.block-library-group {
  display: grid;
  gap: 8px;
}
.block-library-group + .block-library-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.block-library-title {
  color: var(--acc);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guided-flow-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.guided-flow-stats span {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 11px;
}
#builderBlockConfig {
  max-height: 760px;
  overflow: auto;
}
#builderBlockConfig textarea {
  min-height: 130px;
}
@media (max-width: 1000px) {
  .guided-builder-hero {
    grid-template-columns: 1fr;
  }
  .guided-builder-steps {
    justify-content: flex-start;
  }
  .guided-summary-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
  .guided-action-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 620px) {
  .guided-summary-grid {
    grid-template-columns: 1fr;
  }
  .guided-builder-steps span {
    width: 100%;
  }
}

/* Ajuste v3 — Construtor Guiado sem espaços vazios entre colunas.
   O grid antigo criava uma linha alta por causa da biblioteca de blocos,
   deixando um vazio grande abaixo de "Dados do funil". Agora os painéis
   são organizados por áreas independentes: esquerda operacional e direita
   de montagem/configuração. */
.guided-builder-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  grid-template-areas:
    "settings flow"
    "library config"
    "library json"
    "library map";
  align-items: start;
  gap: 16px;
}
.guided-builder-grid > .panel:nth-child(1) {
  grid-area: settings;
}
.guided-builder-grid > .panel:nth-child(2) {
  grid-area: library;
}
.guided-builder-grid > .panel:nth-child(3) {
  grid-area: flow;
}
.guided-builder-grid > .panel:nth-child(4) {
  grid-area: config;
}
.guided-builder-grid > .panel:nth-child(5) {
  grid-area: json;
}
.guided-builder-grid > .panel:nth-child(6) {
  grid-area: map;
}
.guided-builder-grid .panel {
  margin: 0;
}
.guided-builder-grid .panel-body {
  min-width: 0;
}
.guided-builder-grid [data-collapse-key="fb-library"] .panel-body {
  max-height: 720px;
  overflow: auto;
}
.guided-action-bar {
  top: 12px;
}
@media (max-width: 1180px) {
  .guided-builder-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "settings"
      "library"
      "flow"
      "config"
      "json"
      "map";
  }
  .guided-builder-grid [data-collapse-key="fb-library"] .panel-body {
    max-height: none;
    overflow: visible;
  }
}

/* Delivery / iFood — ajustes de organização, mock/homologação/produção e gráficos locais */
.delivery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.delivery-header .subtitle {
  margin-bottom: 0;
}
.delivery-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(255, 255, 255, 0.018)
  );
  border-radius: 15px;
  padding: 14px 16px;
  color: rgba(255, 224, 138, 0.95);
  font-size: 13px;
  line-height: 1.5;
}
.delivery-warning:before {
  content: "⚠";
  font-size: 22px;
  line-height: 1;
}
.delivery-warning strong {
  color: #ffd45d;
}
.delivery-kpis {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 18px;
}
.delivery-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}
.delivery-checklist {
  display: grid;
  gap: 9px;
}
.delivery-check-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.026);
  border-radius: 12px;
  padding: 10px 12px;
}
.delivery-check-row span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.delivery-check-row strong {
  font-size: 12.5px;
  color: var(--text);
}
.delivery-check-row em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.delivery-check-row.ok {
  border-color: rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.045);
}
.delivery-check-row.ok span {
  background: rgba(74, 222, 128, 0.14);
  color: var(--green);
}
.delivery-check-row.wait {
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.035);
}
.delivery-check-row.wait span {
  background: rgba(251, 191, 36, 0.12);
  color: var(--yel);
}
.delivery-chart {
  display: grid;
  gap: 12px;
  min-height: 150px;
}
.delivery-chart-empty,
.delivery-empty {
  border: 1px dashed rgba(174, 111, 240, 0.22);
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.05),
    rgba(255, 255, 255, 0.012)
  );
  border-radius: 15px;
  padding: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.delivery-empty {
  margin-bottom: 12px;
}
.delivery-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 42px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.delivery-bar-row strong {
  font-size: 12px;
  color: var(--text);
  text-align: right;
}
.delivery-bar-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.delivery-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(174, 111, 240, 0.92),
    rgba(96, 165, 250, 0.78)
  );
  box-shadow: 0 0 14px rgba(174, 111, 240, 0.16);
}
@media (max-width: 1080px) {
  .delivery-layout {
    grid-template-columns: 1fr;
  }
  .delivery-bar-row {
    grid-template-columns: 86px 1fr 34px;
  }
  .delivery-warning {
    grid-template-columns: 1fr;
  }
  .delivery-header .btn {
    width: 100%;
  }
}

/* API & Conexões — status, checklist e segurança */
.api-card-dot.err {
  background: var(--red);
  box-shadow:
    0 0 0 3px rgba(248, 113, 113, 0.1),
    0 0 9px rgba(248, 113, 113, 0.28);
}
.api-card-dot.sim {
  background: #60a5fa;
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.09),
    0 0 9px rgba(96, 165, 250, 0.22);
}
.api-card-badges {
  max-width: 150px;
}
.panel-soft {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 15px;
  padding: 14px;
}
.api-checklist-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.api-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.api-check-item span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}
.api-check-item.done {
  border-color: rgba(74, 222, 128, 0.18);
  background: rgba(74, 222, 128, 0.055);
  color: var(--text);
}
.api-check-item.done span {
  color: var(--green);
  background: rgba(74, 222, 128, 0.12);
}
.api-check-item.pending {
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.055);
}
.api-check-item.pending span {
  color: var(--yel);
  background: rgba(251, 191, 36, 0.12);
}
.api-result-json {
  margin-top: 10px;
  white-space: pre-wrap;
  max-height: 260px;
  overflow: auto;
  font-size: 11px;
  opacity: 0.82;
}
@media (max-width: 820px) {
  .api-checklist-list {
    grid-template-columns: 1fr;
  }
  .api-card-badges {
    max-width: none;
  }
}

/* API & Conexões — layout premium v2 inspirado na prévia escolhida */
.api-v2-page {
  --api-line: rgba(255, 255, 255, 0.075);
  --api-soft: rgba(255, 255, 255, 0.035);
  --api-purple: rgba(174, 111, 240, 0.18);
}
.api-v2-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.api-v2-header h2 {
  font-size: 26px;
  margin: 0 0 5px;
  letter-spacing: -0.03em;
}
.api-title-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 9px;
  background: rgba(174, 111, 240, 0.12);
  color: var(--acc);
  font-size: 15px;
}
.api-v2-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.api-env-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--api-line);
  background: rgba(255, 255, 255, 0.028);
  border-radius: 12px;
  padding: 10px 13px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.api-env-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}
.api-v2-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 720px;
  border: 1px solid var(--api-line);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.015)
  );
  border-radius: 12px;
  overflow: hidden;
}
.api-v2-tabs button {
  flex: 1;
  min-width: 112px;
  padding: 13px 18px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--muted);
  font: 700 12px inherit;
  cursor: pointer;
}
.api-v2-tabs button:hover,
.api-v2-tabs button.active-strong {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.8),
    rgba(126, 83, 216, 0.72)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.api-v2-tabs button.active {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}
.api-v2-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
}
.api-v2-kpi {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--api-line);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.016)
  );
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}
.api-v2-kpi:after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(174, 111, 240, 0.07);
}
.api-kpi-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.api-kpi-icon.green {
  color: var(--green);
  background: rgba(74, 222, 128, 0.1);
}
.api-kpi-icon.yel {
  color: var(--yel);
  background: rgba(251, 191, 36, 0.1);
}
.api-kpi-icon.blue {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}
.api-kpi-icon.red {
  color: var(--red);
  background: rgba(248, 113, 113, 0.1);
}
.api-v2-kpi small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.api-v2-kpi strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  margin-top: 3px;
}
.api-v2-kpi em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  margin-top: 3px;
}
.api-v2-cats {
  display: block;
}
.api-v2-cats div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.api-v2-cats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(174, 111, 240, 0.12);
  border: 1px solid rgba(174, 111, 240, 0.15);
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
}
.api-v2-workspace {
  display: grid;
  grid-template-columns: 300px minmax(390px, 1fr) minmax(390px, 0.95fr);
  gap: 14px;
  align-items: start;
}
.api-v2-sidebar,
.api-v2-main,
.api-v2-right {
  min-width: 0;
}
.api-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.api-v2-category-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.api-v2-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 11px;
  padding: 9px 10px;
  font: 800 11px inherit;
  cursor: pointer;
  text-align: left;
}
.api-v2-category:hover,
.api-v2-category.active {
  color: #fff;
  border-color: rgba(174, 111, 240, 0.24);
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.16),
    rgba(255, 255, 255, 0.02)
  );
}
.api-v2-category b {
  font-size: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
}
.api-v2-integration-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 3px;
}
.api-v2-group {
  margin-bottom: 13px;
}
.api-v2-group-title {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 7px 0 8px;
}
.api-v2-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 13px;
  padding: 9px;
  margin-bottom: 7px;
  color: var(--text);
  cursor: pointer;
  transition: 0.18s ease;
}
.api-v2-row:hover {
  transform: translateY(-1px);
  border-color: rgba(174, 111, 240, 0.25);
  background: rgba(174, 111, 240, 0.07);
}
.api-v2-row.selected {
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.22),
    rgba(255, 255, 255, 0.028)
  );
  border-color: rgba(174, 111, 240, 0.5);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    inset 3px 0 0 var(--acc);
}
.api-v2-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 111, 240, 0.12);
  border: 1px solid rgba(174, 111, 240, 0.18);
}
.api-v2-row-icon.connected,
.api-v2-row-icon.configured,
.api-v2-row-icon.production {
  background: rgba(74, 222, 128, 0.11);
  border-color: rgba(74, 222, 128, 0.18);
}
.api-v2-row-icon.homologation {
  background: rgba(96, 165, 250, 0.11);
  border-color: rgba(96, 165, 250, 0.18);
}
.api-v2-row-icon.error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
}
.api-v2-row-main strong {
  display: block;
  font-size: 12px;
}
.api-v2-row-main em {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  margin-top: 2px;
}
.api-v2-row-status {
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.api-v2-add {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(174, 111, 240, 0.35);
  background: rgba(174, 111, 240, 0.06);
  color: var(--acc);
  font-weight: 900;
  cursor: pointer;
}
.api-v2-add:hover {
  background: rgba(174, 111, 240, 0.12);
}
.api-v2-provider-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}
.api-provider-desc {
  grid-column: 1/-1;
}
.api-provider-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.api-v2-selected-head {
  display: flex;
  gap: 13px;
  align-items: center;
}
.api-v2-selected-head strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.api-v2-selected-head em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.api-mode-switch {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}
.api-mode-switch button {
  padding: 12px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.api-mode-switch button.active {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
}
.api-v2-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.api-v2-checklist .api-check-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  padding: 12px;
}
.api-check-item em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
}
.api-v2-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.api-v2-info-grid div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
}
.api-v2-info-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.api-v2-info-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}
.api-v2-secret-area {
  min-height: 88px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
}
.api-v2-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.api-endpoint {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  padding: 5px 0;
  color: var(--muted);
}
.api-endpoint b {
  display: inline-block;
  min-width: 42px;
  color: #60a5fa;
}
.api-card-icon svg {
  filter: drop-shadow(0 5px 10px rgba(174, 111, 240, 0.16));
}
@media (max-width: 1420px) {
  .api-v2-workspace {
    grid-template-columns: 280px 1fr;
  }
  .api-v2-right {
    grid-column: 1/-1;
  }
  .api-v2-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 980px) {
  .api-v2-workspace,
  .api-v2-summary,
  .api-v2-right-grid {
    grid-template-columns: 1fr;
  }
  .api-v2-tabs {
    overflow: auto;
  }
  .api-v2-tabs button {
    min-width: 130px;
  }
  .api-v2-info-grid {
    grid-template-columns: 1fr;
  }
  .api-v2-provider-head {
    grid-template-columns: 1fr;
  }
}

/* API & Conexões — layout escolhido pelo usuário (preview 2, fiel à imagem de referência) */
.api-photo-page {
  --photo-bg: #080b13;
  --photo-card: rgba(17, 22, 34, 0.78);
  --photo-card2: rgba(12, 17, 28, 0.86);
  --photo-border: rgba(132, 146, 178, 0.14);
  --photo-purple: #8b5cf6;
  --photo-purple2: #b56cff;
  --photo-green: #22c55e;
  --photo-yellow: #fbbf24;
  --photo-blue: #38bdf8;
  --photo-red: #ef4444;
  color: #eef2ff;
}
.api-photo-page .panel {
  background: linear-gradient(
    145deg,
    rgba(18, 24, 37, 0.88),
    rgba(10, 14, 24, 0.92)
  );
  border: 1px solid var(--photo-border);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  border-radius: 15px;
}
.api-photo-header {
  margin-top: -2px;
}
.api-photo-header h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 4px;
  letter-spacing: -0.04em;
}
.api-photo-header .mini-help {
  font-size: 12px;
  color: #a8afc2;
}
.api-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--photo-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 11px;
  font-weight: 900;
  color: #fff;
}
.api-photo-page .btn {
  border-radius: 10px;
}
.api-photo-page .btn-ghost {
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(147, 160, 190, 0.14);
  color: #e8ebf8;
}
.api-photo-tabs {
  max-width: 710px;
  height: 43px;
  background: rgba(16, 21, 33, 0.88);
  border-color: rgba(132, 146, 178, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.api-photo-tabs button {
  font-size: 12px;
  color: #aeb6c9;
  min-width: 118px;
}
.api-photo-tabs button.active-strong {
  background: linear-gradient(180deg, #8b4cf6, #6d35d7);
  box-shadow:
    0 12px 32px rgba(139, 92, 246, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}
.api-photo-summary {
  grid-template-columns: 1fr 1fr 1fr 1fr 1.58fr;
  gap: 13px;
}
.api-photo-summary .api-v2-kpi {
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(18, 24, 36, 0.82),
    rgba(10, 15, 26, 0.88)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.api-photo-summary .api-v2-kpi:after {
  display: none;
}
.api-photo-summary .api-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 20px;
}
.api-photo-summary .api-v2-kpi small {
  font-size: 12px;
  color: #c0c6d8;
}
.api-photo-summary .api-v2-kpi strong {
  font-size: 23px;
}
.api-photo-summary .api-v2-kpi em {
  font-size: 11px;
  color: #a8afc2;
}
.api-photo-summary .api-v2-cats {
  padding-top: 14px;
}
.api-photo-summary .api-v2-cats small {
  font-size: 13px;
  color: #d7dbeb;
}
.api-photo-summary .api-v2-cats div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.api-photo-summary .api-v2-cats span {
  background: linear-gradient(
    145deg,
    rgba(139, 92, 246, 0.16),
    rgba(255, 255, 255, 0.03)
  );
  padding: 9px 10px;
  border-color: rgba(139, 92, 246, 0.17);
  justify-content: center;
}
.api-photo-workspace {
  grid-template-columns: 300px minmax(440px, 1fr) minmax(560px, 0.98fr);
  gap: 14px;
  align-items: start;
}
.api-photo-list {
  padding: 12px;
}
.api-photo-list .api-search-row {
  margin-bottom: 10px;
}
.api-photo-list input {
  height: 38px;
  border-radius: 10px;
  background: rgba(6, 10, 18, 0.6);
  border-color: rgba(135, 148, 176, 0.16);
}
.api-v2-category-list.hidden {
  display: none !important;
}
.api-v2-integration-list {
  max-height: 650px;
  overflow: auto;
  padding-right: 2px;
}
.api-v2-integration-list::-webkit-scrollbar {
  width: 6px;
}
.api-v2-integration-list::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 99px;
}
.api-photo-page .api-v2-group {
  margin-bottom: 14px;
}
.api-photo-page .api-v2-group-title {
  font-size: 11px;
  color: #aeb5c8;
  letter-spacing: 0.045em;
  margin: 7px 0 7px;
  padding: 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}
.api-photo-page .api-v2-group:first-child .api-v2-group-title {
  border-top: 0;
  padding-top: 2px;
}
.api-photo-page .api-v2-row {
  height: 35px;
  margin-bottom: 5px;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  grid-template-columns: 28px 1fr auto;
}
.api-photo-page .api-v2-row:hover,
.api-photo-page .api-v2-row.selected {
  transform: none;
  border-color: transparent;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.34),
    rgba(139, 92, 246, 0.08)
  );
  box-shadow: none;
  inset: auto;
}
.api-photo-page .api-v2-row.selected {
  box-shadow: inset 3px 0 0 #8b5cf6;
}
.api-photo-page .api-v2-row-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.api-photo-page .api-card-icon svg {
  width: 16px;
  height: 16px;
}
.api-photo-page .api-v2-row-main strong {
  font-size: 12px;
  color: #fff;
}
.api-photo-page .api-v2-row-main em {
  display: none;
}
.api-photo-page .api-v2-row-status {
  font-size: 9px;
}
.api-v2-add {
  height: 38px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(151, 163, 190, 0.18);
  color: #e7eaff;
}
.api-photo-provider {
  min-height: 132px;
  grid-template-columns: 1fr auto;
  padding: 18px;
}
.api-photo-provider .api-v2-selected-head {
  gap: 15px;
}
.api-photo-provider .api-card-icon.large {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: radial-gradient(
    circle at center,
    rgba(248, 113, 113, 0.32),
    rgba(139, 92, 246, 0.18)
  );
  border: 2px solid rgba(181, 108, 255, 0.6);
  box-shadow: 0 0 28px rgba(181, 108, 255, 0.28);
}
.api-photo-provider .api-card-icon.large svg {
  width: 34px;
  height: 34px;
  color: #ff5c35;
}
.api-photo-provider .api-v2-selected-head strong {
  font-size: 22px;
}
.api-provider-actions .badge {
  display: none;
}
.api-photo-provider .api-provider-desc {
  margin: -34px 0 0 88px;
  font-size: 12px;
}
.api-mode-switch {
  margin-left: 88px;
  max-width: 388px;
  height: 40px;
  border-radius: 9px;
  background: rgba(7, 11, 18, 0.7);
}
.api-mode-switch button {
  padding: 9px;
  font-size: 12px;
}
.api-mode-switch button.active {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.25),
    rgba(34, 197, 94, 0.12)
  );
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}
.api-photo-checklist {
  min-height: 300px;
  padding: 18px;
}
.api-photo-checklist h3,
.api-photo-info h3,
.api-photo-right h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.api-v2-checklist {
  gap: 0;
}
.api-photo-page .api-check-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  padding: 9px 0;
  border: 0;
  background: transparent;
}
.api-photo-page .api-check-item:not(:last-child):before {
  content: "";
  position: absolute;
  left: 15px;
  top: 31px;
  bottom: -8px;
  width: 2px;
  border-left: 2px dashed rgba(139, 92, 246, 0.48);
}
.api-photo-page .api-check-item span {
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #8b5cf6, #6932d5);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.api-photo-page .api-check-item.done span {
  background: linear-gradient(180deg, #8b5cf6, #713ee3);
}
.api-photo-page .api-check-item strong {
  font-size: 13px;
}
.api-photo-page .api-check-item small {
  display: block;
  color: #aeb5c8;
  font-size: 11px;
  margin-top: 2px;
}
.api-photo-page .api-check-item em {
  text-align: right;
  color: #22c55e;
  font-size: 11px;
  font-weight: 900;
}
.api-photo-page .api-check-item em small {
  font-weight: 700;
}
.api-photo-info {
  padding: 18px;
  min-height: 180px;
}
.api-photo-info .api-v2-info-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}
.api-photo-info .api-v2-info-grid div {
  background: transparent;
  border: 0;
  padding: 4px;
}
.api-photo-info .api-v2-info-grid small {
  font-size: 12px;
  color: #aeb5c8;
}
.api-photo-info .api-v2-info-grid strong {
  font-size: 13px;
  color: #f4f6ff;
}
.api-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 6px;
}
.api-dot.green {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
}
.api-photo-right .panel {
  padding: 16px;
}
.api-photo-credentials {
  min-height: 124px;
}
.api-credential-rows {
  display: grid;
  gap: 0;
}
.api-credential-row {
  display: grid;
  grid-template-columns: 150px 1fr 28px 28px;
  gap: 8px;
  align-items: center;
  min-height: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.api-credential-row:first-child {
  border-top: 0;
}
.api-credential-row span {
  color: #b8bfd3;
}
.api-credential-row strong {
  font-family: "DM Mono", monospace;
  color: #f4f6ff;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-credential-row button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #aeb5c8;
  cursor: pointer;
}
.api-photo-right-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.api-photo-mini {
  min-height: 184px;
}
.api-photo-mini .mini-list {
  display: block;
}
.api-photo-page .api-endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding: 7px 0;
  color: #c5ccde;
}
.api-photo-page .api-endpoint:first-child {
  border-top: 0;
}
.api-photo-page .api-endpoint b {
  min-width: 44px;
  text-align: center;
  border-radius: 5px;
  padding: 2px 5px;
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  font-size: 9px;
}
.api-link-btn {
  display: block;
  margin-top: 8px;
  border: 0;
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
}
.api-webhook-list {
  display: grid;
  gap: 8px;
}
.api-webhook-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding-top: 8px;
  font-size: 12px;
}
.api-webhook-row:first-child {
  border-top: 0;
}
.api-webhook-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dfe4f4;
}
.api-webhook-row i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}
.api-webhook-row strong {
  color: #b8bfd3;
  font-size: 11px;
}
.api-photo-bottom-grid {
  align-items: stretch;
}
.api-photo-events,
.api-photo-test {
  min-height: 272px;
}
.api-events-cards {
  display: grid;
  gap: 8px;
}
.api-event-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding-top: 8px;
  font-size: 11px;
}
.api-event-card:first-child {
  border-top: 0;
}
.api-event-card b {
  display: block;
  font-weight: 700;
  color: #dfe4f4;
}
.api-event-card small {
  display: block;
  color: #8992aa;
}
.api-event-card em {
  font-style: normal;
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.22);
  color: #c084fc;
  padding: 4px 7px;
  font-weight: 900;
}
.api-event-card strong {
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
  padding: 4px 7px;
  font-size: 10px;
}
.api-photo-test label {
  font-size: 11px;
  color: #aeb5c8;
  margin-top: 10px;
}
.api-photo-test select,
.api-photo-test textarea {
  width: 100%;
  border-radius: 9px;
  background: rgba(4, 8, 15, 0.72);
  border: 1px solid rgba(132, 146, 178, 0.14);
  color: #f5f7ff;
}
.api-test-payload {
  min-height: 94px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
}
.w-full {
  width: 100%;
}
.api-result-json {
  white-space: pre-wrap;
  max-height: 160px;
  overflow: auto;
  margin-top: 8px;
}
@media (max-width: 1500px) {
  .api-photo-workspace {
    grid-template-columns: 280px minmax(400px, 1fr);
  }
  .api-photo-right {
    grid-column: 1/-1;
  }
  .api-photo-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 980px) {
  .api-photo-workspace,
  .api-photo-summary,
  .api-photo-right-grid {
    grid-template-columns: 1fr;
  }
  .api-photo-provider .api-provider-desc,
  .api-mode-switch {
    margin-left: 0;
  }
  .api-photo-info .api-v2-info-grid {
    grid-template-columns: 1fr;
  }
  .api-credential-row {
    grid-template-columns: 120px 1fr 24px 24px;
  }
}

/* API & Conexões — layout fiel à prévia escolhida (grid premium) */
.api-preview-page {
  --p-bg: #070b13;
  --p-panel: #101723;
  --p-panel2: #0c111c;
  --p-border: rgba(151, 163, 190, 0.13);
  --p-purple: #8b5cf6;
  --p-purple2: #a855f7;
  --p-green: #22c55e;
  --p-yellow: #eab308;
  --p-blue: #0ea5e9;
  --p-red: #ef4444;
  color: #eef2ff;
  min-width: 1120px;
}
.api-preview-page .panel {
  background: linear-gradient(
    145deg,
    rgba(18, 24, 36, 0.92),
    rgba(9, 13, 22, 0.96)
  );
  border: 1px solid var(--p-border);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  border-radius: 16px;
}
.api-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.api-preview-header h2 {
  margin: 0 0 7px;
  font-size: 27px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.api-title-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: #aeb5c8;
}
.api-preview-header .mini-help {
  font-size: 13px;
  color: #a7b0c5;
}
.api-preview-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.api-preview-top-actions .btn {
  height: 40px;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 900;
}
.api-preview-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f7ff;
  font-weight: 900;
}
.api-preview-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.api-preview-user b {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6, #6d35d7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.api-preview-user small {
  display: block;
  color: #aeb5c8;
  font-size: 10px;
  font-weight: 700;
}
.api-preview-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
}
.api-preview-kpi {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--p-border);
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    rgba(20, 27, 40, 0.86),
    rgba(10, 15, 25, 0.92)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.api-preview-kpi {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: 1fr 28px;
  gap: 5px 13px;
}
.api-preview-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  grid-row: 1;
}
.api-preview-kpi small {
  display: block;
  color: #c5cbda;
  font-size: 12px;
  font-weight: 800;
}
.api-preview-kpi strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  margin-top: 5px;
  color: #fff;
}
.api-preview-kpi em {
  display: block;
  color: #9aa4ba;
  font-size: 11px;
  font-style: normal;
  margin-top: 5px;
  line-height: 1.35;
}
.api-preview-spark {
  grid-column: 1/-1;
  width: 100%;
  height: 28px;
}
.api-preview-spark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.95;
}
.api-preview-kpi.green {
  color: var(--p-green);
}
.api-preview-kpi.yel {
  color: var(--p-yellow);
}
.api-preview-kpi.acc {
  color: var(--p-purple);
}
.api-preview-kpi.blue {
  color: var(--p-blue);
}
.api-preview-kpi.muted {
  color: #9ca3af;
}
.api-preview-kpi.danger {
  color: var(--p-red);
}
.api-preview-kpi.green .api-preview-kpi-icon {
  background: rgba(34, 197, 94, 0.13);
}
.api-preview-kpi.yel .api-preview-kpi-icon {
  background: rgba(234, 179, 8, 0.13);
}
.api-preview-kpi.acc .api-preview-kpi-icon {
  background: rgba(139, 92, 246, 0.17);
}
.api-preview-kpi.blue .api-preview-kpi-icon {
  background: rgba(14, 165, 233, 0.14);
}
.api-preview-kpi.muted .api-preview-kpi-icon {
  background: rgba(148, 163, 184, 0.14);
}
.api-preview-kpi.danger .api-preview-kpi-icon {
  background: rgba(239, 68, 68, 0.14);
}
.api-preview-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 0.96fr) minmax(620px, 1.04fr);
  gap: 16px;
  align-items: start;
}
.api-preview-left,
.api-preview-detail {
  padding: 14px;
}
.api-preview-filter-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.api-preview-chip {
  height: 28px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 163, 190, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #aeb5c8;
  font: 800 11px inherit;
  cursor: pointer;
}
.api-preview-chip.active,
.api-preview-chip:hover {
  color: #fff;
  background: linear-gradient(180deg, #8b5cf6, #6d35d7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.25);
}
.api-preview-search-row {
  display: grid;
  grid-template-columns: 1fr 165px 38px 38px;
  gap: 9px;
}
.api-preview-search-row input,
.api-preview-search-row select {
  height: 40px;
  border-radius: 10px;
  background: rgba(5, 9, 16, 0.72);
  border: 1px solid rgba(151, 163, 190, 0.13);
  color: #dfe5f7;
}
.api-view-btn {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(151, 163, 190, 0.13);
  background: rgba(255, 255, 255, 0.035);
  color: #aeb5c8;
  cursor: pointer;
}
.api-view-btn.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
}
.api-preview-left h3 {
  font-size: 17px;
  margin: 12px 0 13px;
}
.api-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 10px;
}
.api-preview-card-tile {
  position: relative;
  min-height: 138px;
  border: 1px solid rgba(151, 163, 190, 0.12);
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    rgba(25, 32, 45, 0.82),
    rgba(12, 18, 29, 0.92)
  );
  padding: 13px;
  text-align: left;
  color: #eef2ff;
  cursor: pointer;
  transition: 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.api-preview-card-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}
.api-preview-card-tile.selected {
  border-color: rgba(168, 85, 247, 0.86);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.45),
    0 0 28px rgba(139, 92, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.api-card-menu {
  position: absolute;
  right: 11px;
  top: 10px;
  color: #c0c7d8;
  font-size: 18px;
}
.api-selected-check {
  position: absolute;
  right: 9px;
  top: 55px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #8b5cf6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.api-card-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
  background: linear-gradient(
    145deg,
    rgba(139, 92, 246, 0.2),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.api-card-logo svg,
.api-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.api-card-logo.connected,
.api-card-logo.configured,
.api-card-logo.production {
  background: linear-gradient(
    145deg,
    rgba(34, 197, 94, 0.24),
    rgba(20, 184, 166, 0.12)
  );
  color: #ecfeff;
}
.api-card-logo.pending {
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
}
.api-card-logo.homologation {
  background: rgba(139, 92, 246, 0.22);
  color: #c084fc;
}
.api-card-logo.mock {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}
.api-card-logo.error {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}
.api-preview-card-tile strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}
.api-preview-card-tile em {
  display: block;
  color: #a3acc0;
  font-style: normal;
  font-size: 11px;
  margin-top: 4px;
}
.api-mini-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}
.api-mini-status.green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.api-mini-status.yel {
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
}
.api-mini-status.acc {
  background: rgba(139, 92, 246, 0.17);
  color: #c084fc;
}
.api-mini-status.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.api-mini-status.muted {
  background: rgba(148, 163, 184, 0.13);
  color: #cbd5e1;
}
.api-preview-add {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border: 1px dashed rgba(168, 85, 247, 0.48);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.055);
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  text-align: left;
  cursor: pointer;
}
.api-preview-add b {
  font-size: 24px;
  font-weight: 400;
}
.api-preview-add span {
  font-weight: 900;
}
.api-preview-add small {
  display: block;
  color: #a3acc0;
  font-weight: 600;
}
.api-preview-detail {
  padding: 18px;
}
.api-preview-provider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.api-preview-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.api-preview-title-row .api-card-icon.large {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: rgba(248, 113, 43, 0.16);
  color: #ff5c35;
  display: flex;
  align-items: center;
  justify-content: center;
}
.api-preview-title-row .api-card-icon.large svg {
  width: 25px;
  height: 25px;
}
.api-preview-title-row strong {
  font-size: 18px;
  color: #fff;
}
.api-preview-title-row em {
  font-style: normal;
  font-size: 11px;
  margin-left: 8px;
  color: #a3acc0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 999px;
}
.api-doc-line {
  margin-top: 8px;
}
.linklike {
  border: 0;
  background: transparent;
  color: #c084fc;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}
.api-kebab {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 22px;
  cursor: pointer;
}
.api-preview-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(151, 163, 190, 0.11);
  margin-top: 16px;
}
.api-preview-tabs button {
  height: 38px;
  border: 0;
  background: transparent;
  color: #aeb5c8;
  font: 800 12px inherit;
  cursor: pointer;
  position: relative;
}
.api-preview-tabs button.active {
  color: #c084fc;
}
.api-preview-tabs button.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #a855f7;
  border-radius: 99px;
}
.api-preview-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.api-preview-card {
  background: linear-gradient(
    145deg,
    rgba(20, 27, 40, 0.74),
    rgba(9, 14, 24, 0.82)
  );
  border: 1px solid rgba(151, 163, 190, 0.105);
  border-radius: 13px;
  padding: 14px;
  min-height: 176px;
}
.api-preview-card h3 {
  margin: 0;
  font-size: 14px;
}
.api-preview-checklist {
  display: grid;
  gap: 12px;
  margin-top: 11px;
}
.api-preview-page .api-check-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: start;
  background: transparent;
  border: 0;
  padding: 0;
}
.api-preview-page .api-check-item span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  margin-top: 1px;
}
.api-preview-page .api-check-item strong {
  font-size: 12px;
}
.api-preview-page .api-check-item small {
  display: block;
  color: #9aa4ba;
  font-size: 10.5px;
  margin-top: 2px;
}
.api-preview-page .api-check-item em {
  font-style: normal;
  text-align: right;
  font-size: 0;
  color: #22c55e;
}
.api-preview-page .api-check-item em::first-line {
  font-size: 0;
}
.api-preview-page .api-check-item em {
  min-width: 10px;
}
.api-preview-page .api-check-item em:after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #facc15;
  margin-top: 8px;
}
.api-preview-page .api-check-item.done em:after {
  background: #22c55e;
}
.api-credential-row {
  grid-template-columns: 112px 1fr 26px !important;
  min-height: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.api-credential-row button[title="Ocultar"] {
  display: none;
}
.api-credential-row strong {
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid rgba(151, 163, 190, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: #dfe5f7;
}
.api-preview-code {
  height: 145px;
  margin: 11px 0 0;
  border-radius: 10px;
  background: rgba(5, 8, 14, 0.75);
  border: 1px solid rgba(151, 163, 190, 0.1);
  padding: 12px;
  color: #fca5a5;
  font:
    11px/1.55 "DM Mono",
    monospace;
  overflow: auto;
  white-space: pre-wrap;
}
.api-events-cards {
  display: grid;
  gap: 8px;
  margin-top: 7px;
}
.api-event-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding-top: 8px;
  font-size: 11px;
}
.api-event-card:first-child {
  border-top: 0;
}
.api-event-card b {
  display: block;
  color: #dfe4f4;
  font-weight: 600;
}
.api-event-card small {
  display: block;
  color: #8590a7;
}
.api-event-card em {
  font-style: normal;
  color: #f4f6ff;
  font-weight: 800;
  background: transparent;
  padding: 0;
}
.api-event-card strong {
  color: #22c55e;
  font-size: 12px;
  background: transparent;
  padding: 0;
}
.api-preview-footer-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.api-preview-footer-actions .btn {
  height: 42px;
  border-radius: 10px;
  padding: 0 22px;
  font-weight: 900;
}
.api-preview-footer-actions .btn-success {
  background: rgba(22, 163, 74, 0.35);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}
@media (max-width: 1500px) {
  .api-preview-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  .api-preview-workspace {
    grid-template-columns: 1fr;
  }
  .api-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1050px) {
  .api-preview-page {
    min-width: 0;
  }
  .api-preview-summary,
  .api-preview-workspace,
  .api-preview-detail-grid {
    grid-template-columns: 1fr;
  }
  .api-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .api-preview-header,
  .api-preview-top-actions {
    flex-wrap: wrap;
  }
  .api-preview-search-row {
    grid-template-columns: 1fr;
  }
  .api-preview-tabs {
    overflow: auto;
  }
}

/* ============================================================
   API & Conexões — refinamento visual FlowZen + ícones coloridos
   Mantém a estrutura existente e aproxima a tela da prévia aprovada.
   ============================================================ */
.api-preview-page {
  --fz-api-bg: #08080b;
  --fz-api-panel: #0d1018;
  --fz-api-panel-2: #101622;
  --fz-api-border: rgba(174, 111, 240, 0.18);
  --fz-api-border-soft: rgba(255, 255, 255, 0.075);
  --fz-api-purple: #ae6ff0;
  --fz-api-pink: #d96eea;
  --fz-api-green: #4ade80;
  color: #ececf5;
}
.api-preview-page .panel,
.api-preview-left,
.api-preview-detail {
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(174, 111, 240, 0.08),
      transparent 30%
    ),
    linear-gradient(145deg, rgba(13, 16, 24, 0.94), rgba(8, 8, 11, 0.96));
  border: 1px solid var(--fz-api-border);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.api-preview-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.api-title-link {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 12px;
  color: #caa0ff;
  background: rgba(174, 111, 240, 0.12);
  border: 1px solid rgba(174, 111, 240, 0.22);
}
.api-preview-top-actions .btn-primary,
.api-preview-chip.active,
.api-preview-chip:hover {
  background: linear-gradient(135deg, #ae6ff0, #7b50dd 70%, #d96eea);
  border-color: rgba(217, 110, 234, 0.35);
  color: #fff;
  box-shadow:
    0 14px 34px rgba(174, 111, 240, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.api-preview-filter-chips {
  gap: 9px;
}
.api-preview-chip {
  border-radius: 12px;
  height: 32px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.085);
  color: #b8bed0;
  font-size: 12px;
}
.api-preview-search-row input,
.api-preview-search-row select {
  background: rgba(5, 8, 14, 0.9);
  border-color: rgba(174, 111, 240, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.api-preview-search-row input:focus,
.api-preview-search-row select:focus {
  outline: none;
  border-color: rgba(174, 111, 240, 0.55);
  box-shadow: 0 0 0 3px rgba(174, 111, 240, 0.11);
}
.api-view-btn.active {
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.32),
    rgba(217, 110, 234, 0.14)
  );
  border-color: rgba(174, 111, 240, 0.5);
  color: #fff;
}
.api-preview-grid {
  gap: 14px;
}
.api-preview-card-tile {
  min-height: 154px;
  border-radius: 16px;
  padding: 17px 16px 15px;
  background:
    radial-gradient(
      circle at 16% 0%,
      rgba(174, 111, 240, 0.07),
      transparent 32%
    ),
    linear-gradient(145deg, rgba(17, 22, 34, 0.92), rgba(8, 11, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.api-preview-card-tile:hover {
  border-color: rgba(174, 111, 240, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(174, 111, 240, 0.12);
}
.api-preview-card-tile.selected {
  border-color: rgba(174, 111, 240, 0.92);
  box-shadow:
    0 0 0 1px rgba(217, 110, 234, 0.35),
    0 0 32px rgba(174, 111, 240, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.api-preview-card-tile strong {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.015em;
  color: #fff;
  margin-top: 3px;
}
.api-preview-card-tile em {
  font-size: 12.5px;
  color: #aeb5c8;
}
.api-card-menu {
  top: 13px;
  right: 14px;
  color: #aeb5c8;
  opacity: 0.9;
}
.api-selected-check {
  background: linear-gradient(135deg, #ae6ff0, #d96eea);
  right: 10px;
  top: 58px;
  box-shadow: 0 0 18px rgba(174, 111, 240, 0.35);
}
.api-card-logo {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  margin-bottom: 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.28),
    rgba(217, 110, 234, 0.12)
  );
}
.api-card-logo .api-card-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
}
.api-card-logo svg,
.api-card-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 2;
}
.api-card-icon.large {
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.api-preview-title-row .api-card-icon.large {
  background: linear-gradient(145deg, #ff6a2a, #9b2c16) !important;
  color: #fff !important;
}
.api-preview-title-row .api-card-icon.large.api-brand-instagram {
  background:
    radial-gradient(circle at 28% 100%, #feda75 0 22%, transparent 23%),
    linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
}
.api-mini-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: -0.01em;
}
.api-mini-status i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.api-mini-status i:after {
  content: "✓";
  font-size: 9px;
  font-weight: 900;
}
.api-mini-status.yel i:after {
  content: "◷";
  font-size: 10px;
}
.api-mini-status.acc i:after {
  content: "✦";
}
.api-mini-status.danger i:after {
  content: "!";
}
.api-mini-status.green {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}
.api-mini-status.yel {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}
.api-mini-status.acc {
  background: rgba(174, 111, 240, 0.17);
  color: #d8b4fe;
}
.api-mini-status.danger {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* Ícones coloridos por integração — similares às marcas reais, sem expor assets externos */
.api-card-logo.api-brand-whatsapp,
.api-card-icon.api-brand-whatsapp {
  background: linear-gradient(145deg, #4ade80, #16a34a) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-instagram,
.api-card-icon.api-brand-instagram {
  background:
    radial-gradient(circle at 27% 105%, #feda75 0 22%, transparent 23%),
    linear-gradient(135deg, #833ab4 0%, #c13584 35%, #fd1d1d 68%, #fcb045 100%) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-webhooks,
.api-card-icon.api-brand-webhooks {
  background: linear-gradient(145deg, #ae6ff0, #6d35d7) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-storage,
.api-card-logo.api-brand-arquivos-e-midia,
.api-card-icon.api-brand-storage {
  background: linear-gradient(145deg, #60a5fa, #2563eb) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-audit,
.api-card-icon.api-brand-audit {
  background: linear-gradient(145deg, #34d399, #059669) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-cloud-backup,
.api-card-icon.api-brand-cloud-backup {
  background: linear-gradient(145deg, #38bdf8, #2563eb) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-finance,
.api-card-icon.api-brand-finance {
  background: linear-gradient(145deg, #65d66e, #16a34a) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-ecommerce,
.api-card-icon.api-brand-ecommerce {
  background: linear-gradient(145deg, #fb923c, #f97316) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-email,
.api-card-icon.api-brand-email {
  background: #fff !important;
  color: #2563eb !important;
}
.api-card-logo.api-brand-stock,
.api-card-icon.api-brand-stock {
  background: linear-gradient(145deg, #2dd4bf, #0f766e) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-google-calendar,
.api-card-icon.api-brand-google-calendar {
  background: #fff !important;
  color: #4285f4 !important;
}
.api-card-logo.api-brand-google-sheets,
.api-card-icon.api-brand-google-sheets {
  background: #fff !important;
  color: #16a34a !important;
}
.api-card-logo.api-brand-openai,
.api-card-icon.api-brand-openai {
  background: linear-gradient(145deg, #20c997, #087f5b) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-payments,
.api-card-logo.api-brand-mercadopago,
.api-card-icon.api-brand-payments {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-ifood,
.api-card-icon.api-brand-ifood {
  background: linear-gradient(145deg, #ef4444, #dc2626) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-sefaz,
.api-card-icon.api-brand-sefaz {
  background: linear-gradient(145deg, #8b5cf6, #5b21b6) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-hotmart,
.api-card-icon.api-brand-hotmart {
  background: linear-gradient(145deg, #ff6a2a, #9b2c16) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-braip,
.api-card-icon.api-brand-braip {
  background: linear-gradient(145deg, #7c3aed, #4c1d95) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-payt,
.api-card-icon.api-brand-payt {
  background: linear-gradient(145deg, #36d399, #0f766e) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-ticto,
.api-card-icon.api-brand-ticto {
  background: linear-gradient(145deg, #2dd4bf, #0891b2) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-perfectpay,
.api-card-icon.api-brand-perfectpay {
  background: linear-gradient(145deg, #fb7185, #be123c) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-kirvano,
.api-card-icon.api-brand-kirvano {
  background: linear-gradient(145deg, #38bdf8, #6366f1) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-meta,
.api-card-logo.api-brand-meta-conversions,
.api-card-icon.api-brand-meta,
.api-card-icon.api-brand-meta-conversions {
  background: linear-gradient(145deg, #2563eb, #06b6d4) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-tracking-postback,
.api-card-icon.api-brand-tracking-postback {
  background: linear-gradient(145deg, #f97316, #b45309) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-logistics-hub,
.api-card-icon.api-brand-logistics-hub {
  background: linear-gradient(145deg, #60a5fa, #1d4ed8) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-melhor-envio,
.api-card-icon.api-brand-melhor-envio {
  background: linear-gradient(145deg, #22c55e, #3b82f6) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-kangu,
.api-card-icon.api-brand-kangu {
  background: linear-gradient(145deg, #ef4444, #f8fafc) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-jadlog,
.api-card-icon.api-brand-jadlog {
  background: linear-gradient(145deg, #ef4444, #991b1b) !important;
  color: #fff !important;
}
.api-card-logo.api-brand-correios,
.api-card-icon.api-brand-correios {
  background: linear-gradient(145deg, #facc15, #2563eb) !important;
  color: #fff !important;
}

.api-preview-add {
  border-color: rgba(174, 111, 240, 0.5);
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.09),
    rgba(217, 110, 234, 0.035)
  );
  color: #d8b4fe;
}
.api-preview-add:hover {
  border-color: rgba(217, 110, 234, 0.75);
  box-shadow: 0 0 26px rgba(174, 111, 240, 0.16);
}
.api-preview-summary {
  gap: 14px;
}
.api-preview-kpi {
  background: linear-gradient(
    145deg,
    rgba(17, 22, 34, 0.9),
    rgba(8, 11, 18, 0.98)
  );
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 16px;
}
.api-preview-kpi-icon {
  border-radius: 15px;
}
.api-preview-kpi.acc {
  color: #ae6ff0;
}
.api-preview-kpi.green {
  color: #4ade80;
}
.api-preview-kpi.yel {
  color: #fbbf24;
}
.api-preview-kpi.blue {
  color: #60a5fa;
}
.api-preview-kpi.danger {
  color: #f87171;
}

/* ============================================================
   API & Conexões — ajuste final de paleta, logos e responsividade
   ============================================================ */
.api-preview-page {
  min-width: 0 !important;
  width: 100%;
  overflow-x: hidden;
  --fz-api-bg: #08080b;
  --fz-api-panel: #0d1018;
  --fz-api-panel-2: #101622;
  --fz-api-purple: #ae6ff0;
  --fz-api-pink: #d96eea;
  --fz-api-green: #4ade80;
}
.api-preview-top-actions .api-preview-user,
.api-preview-top-actions .api-preview-icon {
  display: none !important;
}
.api-preview-header {
  padding-right: 4px;
}
.api-preview-page .panel,
.api-preview-left,
.api-preview-detail {
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(174, 111, 240, 0.075),
      transparent 28%
    ),
    linear-gradient(145deg, rgba(13, 16, 24, 0.96), rgba(8, 8, 11, 0.985)) !important;
  border-color: rgba(174, 111, 240, 0.16) !important;
}
.api-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.api-preview-card-tile {
  min-width: 0 !important;
  min-height: 132px !important;
  padding: 14px 13px 12px !important;
  border-radius: 14px !important;
  background: linear-gradient(
    145deg,
    rgba(15, 20, 31, 0.94),
    rgba(7, 10, 17, 0.985)
  ) !important;
  border-color: rgba(174, 111, 240, 0.13) !important;
}
.api-preview-card-tile.selected {
  border-color: rgba(174, 111, 240, 0.88) !important;
  box-shadow:
    0 0 0 1px rgba(217, 110, 234, 0.3),
    0 0 25px rgba(174, 111, 240, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}
.api-card-logo {
  position: relative;
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  margin-bottom: 10px !important;
  overflow: hidden;
}
.api-logo-img {
  position: relative;
  z-index: 2;
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}
.api-logo-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.api-logo-fallback svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.api-card-logo:has(.api-logo-img[src$=".svg"]) {
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.28),
    rgba(217, 110, 234, 0.1)
  );
}
.api-preview-card-tile strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
}
.api-preview-card-tile em {
  font-size: 11.5px !important;
}
.api-mini-status {
  margin-top: 9px !important;
  padding: 5px 9px !important;
  font-size: 11px !important;
}
.api-selected-check {
  top: 54px !important;
  right: 11px !important;
  width: 18px !important;
  height: 18px !important;
}
.api-preview-top-actions .btn {
  height: 38px !important;
}
.api-preview-chip {
  height: 30px !important;
}
.api-preview-search-row {
  grid-template-columns: minmax(220px, 1fr) 160px 38px 38px !important;
}

/* Paleta FlowZen nos cards e status */
.api-preview-chip.active,
.api-preview-chip:hover,
.api-preview-top-actions .btn-primary {
  background: linear-gradient(135deg, #ae6ff0, #7a47db 72%, #d96eea) !important;
  border-color: rgba(217, 110, 234, 0.36) !important;
}
.api-mini-status.green {
  background: rgba(74, 222, 128, 0.13) !important;
  color: #4ade80 !important;
}
.api-mini-status.yel {
  background: rgba(251, 191, 36, 0.14) !important;
  color: #fbbf24 !important;
}
.api-mini-status.acc {
  background: rgba(174, 111, 240, 0.17) !important;
  color: #d8b4fe !important;
}
.api-mini-status.danger {
  background: rgba(248, 113, 113, 0.14) !important;
  color: #f87171 !important;
}

/* Espaço para logos reais: coloque arquivos em public/img/api-logos/{id}.svg, .webp ou .png */
.api-card-logo.api-brand-email .api-logo-img,
.api-card-logo.api-brand-google-calendar .api-logo-img,
.api-card-logo.api-brand-google-sheets .api-logo-img {
  width: 74%;
  height: 74%;
}

@media (max-width: 1280px) {
  .api-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 980px) {
  .api-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .api-preview-search-row {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 620px) {
  .api-preview-grid {
    grid-template-columns: 1fr !important;
  }
}

/* API & Conexões — limpeza funcional, paleta FlowZen e responsividade final */
.api-clean-page {
  --p-bg: #08080b !important;
  --p-panel: #0d1018 !important;
  --p-panel2: #111521 !important;
  --p-border: rgba(174, 111, 240, 0.16) !important;
  --p-purple: #ae6ff0 !important;
  --p-purple2: #d96eea !important;
  --p-green: #4ade80 !important;
  --p-yellow: #fbbf24 !important;
  --p-blue: #60a5fa !important;
  --p-red: #f87171 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.api-clean-page .panel,
.api-clean-page .api-preview-left,
.api-clean-page .api-preview-detail,
.api-clean-page .api-preview-card,
.api-clean-page .api-preview-kpi {
  background: linear-gradient(
    145deg,
    rgba(15, 18, 28, 0.96),
    rgba(8, 8, 11, 0.985)
  ) !important;
  border-color: rgba(174, 111, 240, 0.14) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}
.api-clean-page .api-preview-header {
  align-items: center !important;
}
.api-clean-page .api-preview-header h2 {
  color: #fff !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em !important;
}
.api-clean-page .api-preview-top-actions .btn-primary,
.api-clean-page .api-preview-chip.active,
.api-clean-page .api-view-btn.active {
  background: linear-gradient(135deg, #ae6ff0, #8b5cf6 65%, #d96eea) !important;
  border-color: rgba(217, 110, 234, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(174, 111, 240, 0.2) !important;
}
.api-clean-page .api-preview-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px) !important;
  gap: 16px !important;
  align-items: start !important;
  max-width: 100% !important;
}
.api-clean-page .api-preview-left {
  min-width: 0 !important;
  padding: 15px !important;
  overflow: hidden !important;
}
.api-clean-page .api-preview-detail {
  min-width: 0 !important;
  padding: 15px !important;
  overflow: hidden !important;
}
.api-clean-page .api-preview-search-row {
  grid-template-columns: minmax(180px, 1fr) 155px 38px 38px !important;
  gap: 10px !important;
}
.api-clean-page .api-preview-search-row input,
.api-clean-page .api-preview-search-row select,
.api-clean-page .api-status-select,
.api-clean-page .api-notes-textarea,
.api-clean-page [data-api-tab-section] input {
  background: rgba(5, 7, 12, 0.9) !important;
  border: 1px solid rgba(174, 111, 240, 0.18) !important;
  color: #f7f5ff !important;
  border-radius: 11px !important;
}
.api-clean-page .api-status-select {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  padding: 0 10px;
}
.api-clean-page .api-notes-textarea {
  width: 100%;
  min-height: 104px;
  padding: 10px;
  resize: vertical;
  font: inherit;
}
.api-clean-page .api-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)) !important;
  gap: 12px !important;
  max-width: 100% !important;
}
.api-clean-page .api-preview-grid.api-list-view {
  grid-template-columns: 1fr !important;
}
.api-clean-page .api-preview-grid.api-list-view .api-preview-card-tile {
  min-height: 84px !important;
  display: grid !important;
  grid-template-columns: 44px 1fr auto !important;
  grid-template-rows: auto auto !important;
  column-gap: 12px !important;
  align-items: center !important;
}
.api-clean-page .api-preview-grid.api-list-view .api-card-logo {
  grid-row: 1/3;
  margin: 0 !important;
}
.api-clean-page .api-preview-card-tile {
  min-width: 0 !important;
  min-height: 125px !important;
  padding: 13px 12px !important;
  border-radius: 14px !important;
  background: linear-gradient(
    145deg,
    rgba(16, 20, 31, 0.92),
    rgba(7, 10, 17, 0.98)
  ) !important;
  border: 1px solid rgba(174, 111, 240, 0.13) !important;
}
.api-clean-page .api-preview-card-tile:hover {
  border-color: rgba(174, 111, 240, 0.45) !important;
  transform: translateY(-1px) !important;
}
.api-clean-page .api-preview-card-tile.selected {
  border-color: rgba(174, 111, 240, 0.86) !important;
  box-shadow:
    0 0 0 1px rgba(217, 110, 234, 0.26),
    0 0 24px rgba(174, 111, 240, 0.15) !important;
}
.api-clean-page .api-card-menu {
  display: none !important;
}
.api-clean-page .api-card-logo {
  width: 43px !important;
  height: 43px !important;
  border-radius: 13px !important;
  margin-bottom: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.api-clean-page .api-logo-img {
  width: 76% !important;
  height: 76% !important;
  object-fit: contain !important;
}
.api-clean-page .api-logo-fallback svg {
  width: 23px !important;
  height: 23px !important;
  stroke-width: 1.9 !important;
}
.api-clean-page .api-preview-card-tile strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
  color: #fff !important;
}
.api-clean-page .api-preview-card-tile em {
  font-size: 11.5px !important;
  color: #aab2c5 !important;
}
.api-clean-page .api-card-note {
  display: block;
  color: #8f98ad;
  font-size: 10.5px;
  margin-top: 5px;
  line-height: 1.25;
  max-height: 28px;
  overflow: hidden;
}
.api-clean-page .api-mini-status {
  font-size: 10.5px !important;
  padding: 5px 9px !important;
  margin-top: 8px !important;
}
.api-clean-page .api-mini-status.green {
  background: rgba(74, 222, 128, 0.13) !important;
  color: #4ade80 !important;
}
.api-clean-page .api-mini-status.yel {
  background: rgba(251, 191, 36, 0.14) !important;
  color: #fbbf24 !important;
}
.api-clean-page .api-mini-status.acc {
  background: rgba(174, 111, 240, 0.17) !important;
  color: #d8b4fe !important;
}
.api-clean-page .api-mini-status.danger {
  background: rgba(248, 113, 113, 0.14) !important;
  color: #f87171 !important;
}
.api-clean-page .api-selected-check {
  right: 12px !important;
  top: 12px !important;
  background: #ae6ff0 !important;
  color: #fff !important;
}
.api-clean-page .api-preview-detail-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}
.api-clean-page .api-preview-card {
  min-height: auto !important;
  padding: 13px !important;
  border-radius: 13px !important;
}
.api-clean-page .api-preview-tabs {
  gap: 16px !important;
  overflow: auto !important;
}
.api-clean-page .api-preview-tabs button.active {
  color: #d8b4fe !important;
}
.api-clean-page .api-preview-tabs button.active:after {
  background: linear-gradient(90deg, #ae6ff0, #d96eea) !important;
}
.api-clean-page .api-endpoints-list,
.api-clean-page .api-webhook-list {
  display: grid;
  gap: 8px;
}
.api-clean-page .api-endpoint,
.api-clean-page .api-webhook-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 12px;
  color: #dbe2f4;
}
.api-clean-page .api-endpoint b {
  color: #60a5fa;
  margin-right: 8px;
}
.api-clean-page .api-webhook-row i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  margin-right: 7px;
}
.api-clean-page .api-preview-add,
.api-clean-page .api-preview-user,
.api-clean-page .api-preview-icon {
  display: none !important;
}
.api-clean-page .api-result-json {
  display: none !important;
}

/* Ícones fallback por marca/categoria seguindo a identidade visual do FlowZen */
.api-clean-page .api-brand-whatsapp {
  background: linear-gradient(145deg, #31d66b, #128c7e) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-instagram {
  background:
    radial-gradient(circle at 25% 110%, #feda75 0 22%, transparent 23%),
    linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-webhooks {
  background: linear-gradient(145deg, #ae6ff0, #6d38d7) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-storage,
.api-clean-page .api-brand-cloud-backup {
  background: linear-gradient(145deg, #60a5fa, #2563eb) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-email {
  background: #fff !important;
  color: #2563eb !important;
}
.api-clean-page .api-brand-google-calendar {
  background: #fff !important;
  color: #4285f4 !important;
}
.api-clean-page .api-brand-google-sheets {
  background: #fff !important;
  color: #16a34a !important;
}
.api-clean-page .api-brand-ecommerce,
.api-clean-page .api-brand-ifood {
  background: linear-gradient(145deg, #fb923c, #f97316) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-finance,
.api-clean-page .api-brand-stock,
.api-clean-page .api-brand-audit {
  background: linear-gradient(145deg, #34d399, #059669) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-hotmart {
  background: linear-gradient(145deg, #ff7a2f, #e84a1a) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-braip {
  background: linear-gradient(145deg, #8b5cf6, #5b21b6) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-payt,
.api-clean-page .api-brand-ticto {
  background: linear-gradient(145deg, #2dd4bf, #0ea5e9) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-sefaz {
  background: linear-gradient(145deg, #7c3aed, #4338ca) !important;
  color: #fff !important;
}
.api-clean-page .api-brand-correios {
  background: linear-gradient(145deg, #facc15, #2563eb) !important;
  color: #fff !important;
}

@media (max-width: 1500px) {
  .api-clean-page .api-preview-workspace {
    grid-template-columns: 1fr !important;
  }
  .api-clean-page .api-preview-detail {
    max-width: none !important;
  }
}
@media (max-width: 760px) {
  .api-clean-page .api-preview-search-row {
    grid-template-columns: 1fr !important;
  }
  .api-clean-page .api-preview-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .api-clean-page .api-preview-header {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

/* API & Conexões — ajuste final: sem enfeite, cards menores e credenciais editáveis */
.api-clean-page .api-preview-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px) !important;
  gap: 14px !important;
}
.api-clean-page .api-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)) !important;
  gap: 10px !important;
}
.api-clean-page .api-preview-card-tile {
  min-height: 112px !important;
  padding: 11px !important;
  border-color: rgba(174, 111, 240, 0.16) !important;
}
.api-clean-page .api-card-logo {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  margin-bottom: 8px !important;
}
.api-clean-page .api-logo-fallback svg {
  width: 21px !important;
  height: 21px !important;
}
.api-clean-page .api-preview-card-tile strong {
  font-size: 13.5px !important;
}
.api-clean-page .api-preview-card-tile em {
  font-size: 11px !important;
}
.api-clean-page .api-mini-status {
  font-size: 10px !important;
  padding: 4px 8px !important;
  margin-top: 7px !important;
}
.api-clean-page .api-preview-left,
.api-clean-page .api-preview-detail {
  overflow: visible !important;
}
.api-credential-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.api-credential-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
}
.api-credential-field span {
  font-size: 11px;
  color: #aeb5c8;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.api-credential-field input {
  height: 38px;
  padding: 0 10px;
  background: rgba(5, 7, 12, 0.9);
  border: 1px solid rgba(174, 111, 240, 0.18);
  border-radius: 10px;
  color: #f7f5ff;
  font: inherit;
  min-width: 0;
}
.api-credential-field input:focus {
  outline: 0;
  border-color: rgba(174, 111, 240, 0.72);
  box-shadow: 0 0 0 3px rgba(174, 111, 240, 0.12);
}
.api-credential-field small {
  font-size: 10.5px;
  color: #8f98ad;
  line-height: 1.25;
}
.api-clean-page .api-credential-row button {
  display: none !important;
}
@media (max-width: 1380px) {
  .api-clean-page .api-preview-workspace {
    grid-template-columns: 1fr !important;
  }
  .api-clean-page .api-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  }
}
@media (max-width: 780px) {
  .api-credential-editor {
    grid-template-columns: 1fr;
  }
  .api-clean-page .api-preview-search-row {
    grid-template-columns: 1fr !important;
  }
}

/* FlowZen account menu integrado à logo/foto como acordeão interno */
.brand-account-shell {
  position: relative;
  display: block;
  margin-bottom: 14px;
  z-index: 20;
  border-radius: 20px;
}
.account-identity-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(174, 111, 240, 0.14);
  background: linear-gradient(
    145deg,
    rgba(22, 22, 34, 0.72),
    rgba(12, 12, 18, 0.46)
  );
  border-radius: 18px;
  padding: 13px 12px 13px 12px;
  color: var(--text);
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.012) inset;
}
.account-identity-toggle:hover,
.account-identity-toggle.open {
  border-color: rgba(174, 111, 240, 0.34);
  background: linear-gradient(
    145deg,
    rgba(28, 24, 42, 0.84),
    rgba(13, 13, 20, 0.68)
  );
  box-shadow:
    0 15px 36px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(174, 111, 240, 0.07);
}
.account-identity-toggle .logo {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
}
.account-logo-slot {
  pointer-events: none;
}
.account-photo-slot {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  align-self: center;
  margin-top: 1px;
}
.account-photo-slot i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  border: 2px solid #15151f;
  box-shadow: 0 0 11px rgba(74, 222, 128, 0.58);
}
.account-identity-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  min-height: 42px;
  padding: 1px 0 0;
}
.account-identity-copy .logo-text,
.account-identity-copy .logo-sub {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-identity-copy .logo-text {
  font-size: 13.4px;
  font-weight: 850;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 4px;
}
.account-identity-copy .logo-sub {
  font-size: 10.7px;
  color: var(--muted);
  line-height: 1.18;
  margin: 0;
}
.account-identity-copy small {
  display: none !important;
}
.account-menu-chevron {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(174, 111, 240, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cdb7ff;
  background: rgba(174, 111, 240, 0.055);
  font-size: 13px;
  font-weight: 800;
  transition: 0.18s ease;
  box-shadow: none;
  align-self: center;
  opacity: 0.9;
}
.account-identity-toggle:hover .account-menu-chevron {
  border-color: rgba(174, 111, 240, 0.42);
  background: rgba(174, 111, 240, 0.09);
  opacity: 1;
}
.account-identity-toggle.open .account-menu-chevron {
  transform: rotate(180deg);
  border-color: rgba(174, 111, 240, 0.5);
  background: rgba(174, 111, 240, 0.11);
}
.account-menu-panel {
  position: static;
  width: 100%;
  display: none;
  margin-top: 8px;
  padding: 10px;
  border-radius: 17px;
  border: 1px solid rgba(174, 111, 240, 0.18);
  background: linear-gradient(
    145deg,
    rgba(20, 20, 31, 0.94),
    rgba(10, 10, 16, 0.92)
  );
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset;
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.account-menu-panel.open {
  display: block;
  animation: fzAccountMenuIn 0.16s ease-out;
}
.account-role-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 3px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.account-role-row span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: rgba(74, 222, 128, 0.075);
  color: var(--green);
  font-weight: 900;
  font-size: 10.5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu-item {
  width: 100%;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 0.16s ease;
  font: inherit;
}
.account-menu-item:hover {
  background: rgba(174, 111, 240, 0.08);
  border-color: rgba(174, 111, 240, 0.16);
  transform: translateX(1px);
}
.account-menu-item span {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 111, 240, 0.08);
  color: #a9a3c7;
  font-size: 15px;
  border: 1px solid rgba(174, 111, 240, 0.12);
}

.account-menu-item svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
}
.account-menu-item:hover span {
  color: #cdb7ff;
  background: rgba(174, 111, 240, 0.12);
  border-color: rgba(174, 111, 240, 0.22);
}
.account-menu-item.danger:hover span {
  color: var(--red);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.22);
}
.account-menu-item b {
  font-size: 12.5px;
  color: #fff;
}
.account-menu-item em {
  font-size: 10px;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 122px;
}
.account-menu-item:after {
  content: "›";
  justify-self: end;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  opacity: 0.75;
}
.account-menu-item.danger {
  margin-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.account-menu-item.danger span {
  background: rgba(248, 113, 113, 0.07);
  color: rgba(248, 113, 113, 0.9);
  border-color: rgba(248, 113, 113, 0.14);
}
.account-menu-item.danger b {
  color: var(--red);
}
@keyframes fzAccountMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .account-menu-chevron {
    width: 23px;
    height: 23px;
  }
}
.account-menu-item span {
  grid-row: 1/3;
}
.account-menu-item b {
  grid-column: 2;
  grid-row: 1;
}
.account-menu-item em {
  grid-column: 2;
  grid-row: 2;
}
.account-menu-item:after {
  grid-column: 3;
  grid-row: 1/3;
  align-self: center;
}

/* Fiscal / SEFAZ — etapa de segurança e clareza visual */
.fiscal-safe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.fiscal-safe-grid .status-box {
  height: 100%;
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .fiscal-safe-grid {
    grid-template-columns: 1fr;
  }
}

/* FlowZen — termos de primeiro acesso e avisos legais */
.legal-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.legal-page-head h1 {
  margin-bottom: 6px;
}
.legal-link-btn {
  border: 1px solid rgba(174, 111, 240, 0.24);
  background: rgba(174, 111, 240, 0.06);
  color: #cdb7ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 850;
  font-size: 12px;
  cursor: pointer;
  transition: 0.16s ease;
  white-space: nowrap;
}
.legal-link-btn:hover {
  border-color: rgba(174, 111, 240, 0.55);
  background: rgba(174, 111, 240, 0.12);
  color: #fff;
  transform: translateY(-1px);
}
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 11, 0.78);
  backdrop-filter: blur(12px);
  z-index: 99999;
}
.legal-modal-overlay.open {
  display: flex;
}
.legal-modal {
  width: min(760px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(174, 111, 240, 0.24);
  background: linear-gradient(
    145deg,
    rgba(21, 21, 33, 0.98),
    rgba(9, 10, 17, 0.98)
  );
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  color: var(--text);
  overflow: hidden;
}
.legal-modal-large {
  width: min(920px, 96vw);
}
.legal-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(
    90deg,
    rgba(174, 111, 240, 0.12),
    rgba(34, 211, 238, 0.04)
  );
}
.legal-modal-head h2 {
  font-size: 19px;
  margin: 0 0 5px;
  color: #fff;
  letter-spacing: -0.02em;
}
.legal-modal-body {
  padding: 18px 22px;
  overflow: auto;
  line-height: 1.55;
  color: #d9deec;
}
.legal-modal-body .legal-intro {
  font-weight: 850;
  color: #fff;
  margin-bottom: 14px;
}
.legal-modal-body h3 {
  font-size: 14px;
  color: #fff;
  margin: 18px 0 8px;
}
.legal-modal-body p {
  margin: 0 0 10px;
  color: #d7dceb;
  font-size: 13px;
}
.legal-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 22px 16px;
  padding: 12px;
  border: 1px solid rgba(174, 111, 240, 0.18);
  border-radius: 14px;
  background: rgba(174, 111, 240, 0.055);
  font-size: 12.5px;
  line-height: 1.45;
  color: #eef0ff;
  cursor: pointer;
}
.legal-check-row input {
  margin-top: 3px;
  accent-color: #a855f7;
}
.legal-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 20px;
}
.legal-modal-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
@media (max-width: 720px) {
  .legal-modal-overlay {
    padding: 12px;
  }
  .legal-modal-head,
  .legal-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .legal-check-row {
    margin-left: 16px;
    margin-right: 16px;
  }
  .legal-modal-actions {
    padding-left: 16px;
    padding-right: 16px;
    justify-content: stretch;
  }
  .legal-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .legal-page-head {
    display: block;
  }
  .legal-link-btn {
    margin-top: 8px;
  }
}

/* ── Login FlowZen produção ── */
.token-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(236, 72, 153, 0.18),
      transparent 31%
    ),
    radial-gradient(
      circle at 82% 26%,
      rgba(103, 232, 249, 0.1),
      transparent 30%
    ),
    radial-gradient(
      circle at 52% 96%,
      rgba(168, 85, 247, 0.2),
      transparent 34%
    ),
    linear-gradient(135deg, #020204 0%, #080712 39%, #16051f 72%, #25082f 100%);
  overflow: auto;
}

/* FlowZen — selo superior da tela de acesso */
.login-top-title {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 14px;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.24),
    rgba(217, 110, 234, 0.12)
  );
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(174, 111, 240, 0.16);
  backdrop-filter: blur(16px);
}
@media (max-width: 720px) {
  .login-top-title {
    top: 12px;
    font-size: 13px;
    min-height: 34px;
    padding: 0 14px;
  }
  .token-overlay {
    padding-top: 56px;
  }
}
body.is-reset-password-screen .login-top-title {
  display: none !important;
}
.recover-password-feedback {
  margin: 0 22px 18px;
  min-height: 20px;
  color: #dfffee;
  font-size: 12.5px;
  line-height: 1.45;
}
.recover-password-feedback.is-error {
  color: #ffb4b4;
}
#recoverPasswordModal .recover-password-modal .legal-modal-head {
  padding-left: 30px;
  padding-right: 30px;
}
#recoverPasswordModal .recover-password-modal .row.single {
  padding-left: 30px;
  padding-right: 30px;
  margin-top: 14px;
}
#recoverPasswordModal .recover-password-modal .row.single + .row.single {
  margin-top: 12px;
}
#recoverPasswordModal .recover-password-modal input,
#recoverPasswordModal .recover-password-modal textarea {
  padding-left: 14px;
  padding-right: 14px;
}
#recoverPasswordModal .recover-password-modal input.is-invalid {
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
#recoverPasswordModal .recover-password-modal .recover-password-feedback {
  margin-left: 30px;
  margin-right: 30px;
}
#recoverPasswordModal .recover-password-modal .legal-modal-actions {
  padding-left: 30px;
  padding-right: 30px;
  gap: 12px;
}
@media (max-width: 720px) {
  #recoverPasswordModal .recover-password-modal .legal-modal-head,
  #recoverPasswordModal .recover-password-modal .row.single,
  #recoverPasswordModal .recover-password-modal .legal-modal-actions {
    padding-left: 20px;
    padding-right: 20px;
  }
  #recoverPasswordModal .recover-password-modal .recover-password-feedback {
    margin-left: 20px;
    margin-right: 20px;
  }
}

.login-portal {
  width: min(1160px, 92vw);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 0;
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      122deg,
      rgba(87, 0, 76, 0.58),
      rgba(24, 9, 56, 0.88) 43%,
      rgba(9, 9, 20, 0.94)
    ),
    radial-gradient(
      circle at 17% 20%,
      rgba(244, 63, 224, 0.22),
      transparent 35%
    ),
    radial-gradient(
      circle at 94% 11%,
      rgba(103, 232, 249, 0.18),
      transparent 24%
    );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(174, 111, 240, 0.1) inset,
    0 0 90px rgba(168, 85, 247, 0.08);
}
.login-portal-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  z-index: 0;
  background:
    radial-gradient(
      circle at 18% 24%,
      rgba(236, 72, 153, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 14%,
      rgba(103, 232, 249, 0.1),
      transparent 26%
    ),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    58px 58px,
    58px 58px;
}
.login-portal-pro::after {
  content: "";
  position: absolute;
  right: 31%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  z-index: 1;
  pointer-events: none;
}
.login-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.84;
}
.login-orb-one {
  width: 340px;
  height: 340px;
  left: -110px;
  bottom: -140px;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.36),
    transparent 68%
  );
}
.login-orb-two {
  width: 260px;
  height: 260px;
  right: -78px;
  top: -82px;
  background: radial-gradient(
    circle,
    rgba(103, 232, 249, 0.19),
    transparent 70%
  );
}
.login-showcase {
  position: relative;
  z-index: 2;
  min-height: 560px;
  padding: 58px 58px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.login-showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-weight: 950;
  letter-spacing: -0.03em;
  width: max-content;
  padding: 9px 13px 9px 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}
.login-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 34px rgba(168, 85, 247, 0.2);
  overflow: hidden;
  color: #fff;
  font-weight: 950;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.login-brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.login-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.login-brand-copy strong {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.94);
}
.login-brand-copy small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.login-brand-name {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}
.login-showcase-copy {
  max-width: 560px;
  margin: 0 0 6px;
}
.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.login-showcase-copy h1 {
  font-size: clamp(64px, 7.2vw, 108px);
  line-height: 0.88;
  margin: 0 0 72px;
  letter-spacing: -0.08em;
  font-weight: 950;
  color: #fff;
  text-shadow: 0 34px 80px rgba(0, 0, 0, 0.44);
}
.login-showcase-copy h1 em {
  font-style: normal;
  background: linear-gradient(115deg, #fff 5%, #f0abfc 42%, #67e8f9 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-brand-hero {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.login-brand-hero::before {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 16px;
  height: 18px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.22),
    rgba(192, 132, 252, 0.24),
    rgba(103, 232, 249, 0.18)
  );
  filter: blur(18px);
  opacity: 0.82;
  z-index: -1;
}
.login-brand-hero::after {
  content: attr(data-reflect);
  position: absolute;
  left: 0;
  top: calc(100% - 6px);
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  transform: scaleY(-1);
  transform-origin: top;
  color: transparent;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(216, 180, 254, 0.16) 34%,
    rgba(103, 232, 249, 0.08) 58%,
    transparent 84%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(0.5px);
  opacity: 0.54;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 78%);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.86),
    transparent 78%
  );
}
.login-plan-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(168, 85, 247, 0.13);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.login-plan-link:hover {
  transform: translateY(-1px);
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(103, 232, 249, 0.45);
}
.login-plan-link span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.login-showcase-copy i {
  display: block;
  width: 74px;
  height: 2px;
  border-radius: 999px;
  margin: 25px 0 28px;
  background: linear-gradient(
    90deg,
    #fff,
    #c084fc 52%,
    #67e8f9 78%,
    transparent
  );
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.55);
}
.login-main-phrase {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
  background: linear-gradient(
    110deg,
    #fff 0%,
    #fff7ff 25%,
    #e879f9 64%,
    #67e8f9 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 20px 38px rgba(168, 85, 247, 0.16));
}
.login-sub-phrase {
  max-width: 510px;
  margin: 17px 0 0;
  color: rgba(245, 246, 255, 0.72);
  font-size: 15px;
  line-height: 1.68;
}
.login-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.login-feature-row span {
  font-size: 11.5px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.77);
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.login-showcase-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
}
.login-showcase-footer span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.login-card {
  position: relative;
  z-index: 2;
  width: min(382px, calc(100% - 44px));
  justify-self: center;
  padding: 34px 32px 28px;
  text-align: left;
  border-radius: 28px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.145),
    rgba(255, 255, 255, 0.064) 55%,
    rgba(255, 255, 255, 0.04)
  );
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(22px);
  overflow: hidden;
}
.login-card-refined {
  max-width: 405px;
  border-radius: 28px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.145),
    rgba(255, 255, 255, 0.064) 55%,
    rgba(255, 255, 255, 0.04)
  );
}
.login-card-glow {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 0%, rgba(236, 72, 153, 0.2), transparent 35%),
    radial-gradient(
      circle at 100% 18%,
      rgba(103, 232, 249, 0.16),
      transparent 34%
    );
  opacity: 0.9;
}
.login-card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.login-card-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(168, 85, 247, 0.16);
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.login-card-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.login-card-status {
  font-size: 11px;
  font-weight: 950;
  color: #b8ffe8;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.login-card h2 {
  position: relative;
  font-size: 31px;
  line-height: 1.05;
  text-align: left;
  margin: 4px 0 10px;
  letter-spacing: -0.045em;
  color: #fff;
}
.login-card p {
  position: relative;
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.8px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.login-input-wrap:focus-within {
  border-color: rgba(192, 132, 252, 0.64);
  background: rgba(255, 255, 255, 0.115);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(168, 85, 247, 0.14);
}
.login-field-icon {
  width: 42px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 950;
}
.login-card input {
  width: 100%;
  height: 50px;
  background: transparent !important;
  border: 0 !important;
  outline: 0;
  color: #fff;
  border-radius: 18px;
  padding: 0 15px 0 0;
  box-shadow: none !important;
}
.login-card input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}
.password-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.password-field input {
  width: 100%;
  padding-right: 84px;
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.105);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.18s ease;
}
.password-toggle:hover {
  color: #fff;
  border-color: rgba(192, 132, 252, 0.48);
  background: rgba(192, 132, 252, 0.18);
}
.login-card .btn-primary,
.login-card .login-action {
  height: 48px;
  margin-top: 18px;
  border-radius: 16px;
  background: linear-gradient(92deg, #ff7a32 0%, #a855f7 48%, #ec4899 100%);
  box-shadow:
    0 16px 30px rgba(236, 72, 153, 0.2),
    0 0 32px rgba(168, 85, 247, 0.17);
  font-weight: 950;
  letter-spacing: -0.01em;
}
.login-card .btn-primary:hover,
.login-card .login-action:hover {
  filter: saturate(1.08) brightness(1.05);
  transform: translateY(-1px);
}
.login-card .btn-ghost,
.login-card .login-recover {
  height: 43px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}
.login-card .btn-ghost:hover,
.login-card .login-recover:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(192, 132, 252, 0.26);
  color: #fff;
}
.login-card-note {
  position: relative;
  margin-top: 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  line-height: 1.4;
}
@media (max-width: 940px) {
  .token-overlay {
    padding: 22px;
    align-items: flex-start;
  }
  .login-portal {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .login-portal-pro::after {
    display: none;
  }
  .login-showcase {
    min-height: 360px;
    padding: 38px 32px 26px;
  }
  .login-showcase-copy {
    margin-top: 0;
  }
  .login-card {
    width: min(430px, calc(100% - 44px));
    margin: 0 auto 34px;
    border-radius: 26px;
  }
}
@media (max-width: 560px) {
  .token-overlay {
    padding: 14px;
  }
  .login-portal {
    width: 100%;
    border-radius: 24px;
  }
  .login-showcase {
    padding: 24px 20px 20px;
    min-height: 330px;
  }
  .login-showcase-brand {
    padding-right: 11px;
  }
  .login-showcase-copy h1 {
    font-size: 54px;
    margin-bottom: 52px;
  }
  .login-main-phrase {
    font-size: 27px;
  }
  .login-sub-phrase {
    font-size: 12.8px;
  }
  .login-plan-link {
    margin-top: 20px;
  }
  .login-showcase-footer {
    display: none;
  }
  .login-card {
    padding: 28px 20px 24px;
    width: calc(100% - 28px);
  }
}

/* Etapa 10 — Painel Administrativo de IA */
.ai-admin-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(174, 111, 240, 0.22),
      transparent 34%
    ),
    radial-gradient(
      circle at 86% 10%,
      rgba(217, 110, 234, 0.16),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  overflow: hidden;
}
.ai-admin-hero::after {
  content: "";
  position: absolute;
  inset: auto 22px 0 22px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 110, 234, 0.7),
    rgba(74, 222, 128, 0.45),
    transparent
  );
  opacity: 0.72;
}
.ai-admin-hero h1 {
  margin-top: 10px;
  margin-bottom: 8px;
  letter-spacing: -0.045em;
}
.ai-admin-hero .subtitle {
  max-width: 820px;
  margin-bottom: 0;
}
.ai-admin-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-admin-cards {
  grid-template-columns: repeat(7, minmax(135px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.ai-admin-card {
  min-height: 128px;
  position: relative;
  overflow: hidden;
}
.ai-admin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 12%,
    rgba(174, 111, 240, 0.14),
    transparent 34%
  );
  pointer-events: none;
}
.ai-admin-card .mini-help {
  position: relative;
  margin-top: 8px;
  line-height: 1.35;
}
.ai-admin-grid {
  align-items: stretch;
  margin-bottom: 22px;
}
.ai-admin-panel {
  min-height: 100%;
}
.ai-error-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  padding-right: 3px;
}
.ai-error-item {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.ai-error-item > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.ai-error-item strong {
  font-size: 13px;
  color: var(--text, #fff);
}
.ai-error-item span,
.ai-error-item small {
  font-size: 11px;
  color: var(--muted, #9ca3af);
}
.ai-error-item p {
  margin: 8px 0 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text, #fff);
}
.ai-empty-state {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  color: var(--muted, #9ca3af);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}
#aiStatusBox .badge {
  margin: 0 6px 6px 0;
}
@media (max-width: 1280px) {
  .ai-admin-cards {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }
}
@media (max-width: 760px) {
  .ai-admin-hero {
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
  }
  .ai-admin-hero-actions,
  .ai-admin-hero-actions .btn {
    width: 100%;
  }
  .ai-admin-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ai-admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .ai-admin-cards {
    grid-template-columns: 1fr;
  }
}

.login-feedback {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #a9adc8;
  text-align: center;
}
.login-feedback.ok {
  color: #4ade80;
}
.login-feedback.err {
  color: #fb7185;
}
.login-feedback.info {
  color: #c084fc;
}
.btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

/* SaaS / licenças: módulo bloqueado por plano */
.nav-item.plan-locked {
  opacity: 0.48;
  filter: grayscale(0.45);
  position: relative;
}
.nav-item.plan-locked::after {
  content: "•";
  font-size: 18px;
  line-height: 1;
  color: #fbbf24;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* FlowZen patch — mantém autofill do navegador no visual dark/premium */
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus,
.login-card input:-webkit-autofill:active,
.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus,
.login-input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  transition: background-color 999999s ease-in-out 0s !important;
  box-shadow: 0 0 0 1000px rgba(64, 68, 88, 0.96) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(64, 68, 88, 0.96) inset !important;
  border-color: rgba(174, 111, 240, 0.65) !important;
}

.login-card input,
.login-input-wrap input {
  background: transparent !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
}

.login-input-wrap:has(input:-webkit-autofill) {
  background: linear-gradient(
    135deg,
    rgba(70, 73, 95, 0.94),
    rgba(45, 48, 68, 0.94)
  ) !important;
  border-color: rgba(174, 111, 240, 0.65) !important;
  box-shadow:
    0 0 0 1px rgba(174, 111, 240, 0.18),
    0 16px 38px rgba(0, 0, 0, 0.24) !important;
}

/* Firefox/autofill fallback */
.login-card input:-moz-autofill,
.login-input-wrap input:-moz-autofill {
  filter: none !important;
  box-shadow: 0 0 0 1000px rgba(64, 68, 88, 0.96) inset !important;
  background-color: rgba(64, 68, 88, 0.96) !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
}

/* FlowZen patch — ícones limpos no login */
.login-field-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  margin-left: 16px;
  margin-right: 10px;
  opacity: 0.9;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}

.login-field-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.88)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
}

.login-field-lock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.88)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

/* Oculta qualquer ícone/símbolo antigo que tenha ficado no campo */
.login-input-wrap > span:not(.login-field-icon):not(.show-password-text),
.login-input-wrap > svg:not(.login-field-icon),
.login-input-wrap > i:not(.login-field-icon) {
  display: none !important;
}

.login-input-wrap {
  gap: 0;
}

.login-card input {
  padding-left: 0 !important;
}

/* Mantém o botão Mostrar visível */
.password-field button,
.password-field .show-password,
.password-field [type="button"] {
  display: inline-flex !important;
}

/* FlowZen patch — CRM Histórico + Agenda premium */
.page-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.crm-history-search-panel {
  margin-bottom: 22px;
}

.crm-history-layout,
.agenda-layout {
  align-items: start;
}

.crm-history-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crm-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.crm-timeline-dot {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ae6ff0, #4ade80);
  box-shadow: 0 0 22px rgba(174, 111, 240, 0.35);
}

.crm-timeline-body strong {
  display: block;
  color: #fff;
  margin-bottom: 3px;
}

.crm-timeline-body p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  white-space: pre-wrap;
}

.crm-empty-state {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed rgba(174, 111, 240, 0.3);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  padding: 26px;
}

.crm-empty-state strong {
  color: #fff;
  font-size: 17px;
}

.crm-empty-state span {
  color: rgba(255, 255, 255, 0.58);
  max-width: 520px;
  line-height: 1.55;
}

.divider-soft {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(174, 111, 240, 0.35),
    transparent
  );
  margin: 20px 0;
}

.agenda-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px;
  gap: 12px;
}

@media (max-width: 860px) {
  .agenda-filter-bar {
    grid-template-columns: 1fr;
  }
}

/* FlowZen patch — Carrinhos & Recuperação */
.carrinhos-layout {
  align-items: start;
}

.carrinhos-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 12px;
}

@media (max-width: 860px) {
  .carrinhos-filter-bar {
    grid-template-columns: 1fr;
  }
}

/* FlowZen patch — Impressoras & Leitores */
.printer-mode-layout {
  align-items: stretch;
  grid-template-columns: 1fr;
}

.printer-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.printer-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

#barcodeReaderStatus strong,
#printerUsageStatus strong {
  color: #fff;
}

.barcode-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* FlowZen patch — drivers e ação do formulário de impressora */
.printer-panel-highlight {
  box-shadow:
    0 0 0 1px rgba(174, 111, 240, 0.65),
    0 0 38px rgba(174, 111, 240, 0.22),
    0 28px 80px rgba(0, 0, 0, 0.38) !important;
  transition: box-shadow 0.25s ease;
}

.printer-driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.printer-driver-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.printer-driver-card:hover {
  transform: translateY(-1px);
  border-color: rgba(174, 111, 240, 0.36);
  background: rgba(174, 111, 240, 0.075);
}

.printer-driver-card strong {
  color: #fff;
}

.printer-driver-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  line-height: 1.45;
}

/* FlowZen patch — Inteligência funcional */
.intel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.intel-item strong {
  color: #fff;
}

.intel-item p {
  margin: 5px 0 0;
}

.intel-high {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.06);
}

.intel-medium {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.055);
}

.intel-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.empty-state {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 760px) {
  .intel-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* FlowZen — gráficos operacionais estilo financeiro/trade */
.dashboard-chart-card,
.stock-chart-box,
.stock-chart,
#cashFlowChart {
  position: relative;
}

.dashboard-bars,
.stock-bars,
.cash-mini-chart {
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 34px
    );
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.dashboard-bar-row,
.stock-bar-row {
  position: relative;
  border-radius: 13px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.018);
}

.dashboard-bar-track,
.stock-bar-row i,
.cash-mini-chart i {
  position: relative;
  overflow: hidden;
}

.dashboard-bar-track i,
.stock-bar-row i,
.cash-mini-chart i {
  background: linear-gradient(
    90deg,
    rgba(74, 222, 128, 0.88),
    rgba(174, 111, 240, 0.88),
    rgba(96, 165, 250, 0.78)
  );
  box-shadow:
    0 0 18px rgba(174, 111, 240, 0.22),
    0 0 24px rgba(74, 222, 128, 0.1);
}

.dashboard-bar-track.out i,
.cash-mini-chart > div:nth-child(2) i {
  background: linear-gradient(
    90deg,
    rgba(248, 113, 113, 0.85),
    rgba(251, 191, 36, 0.72)
  );
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.16);
}

.dashboard-bar-track i::after,
.stock-bar-row i::after,
.cash-mini-chart i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
  transform: translateX(-100%);
  animation: flowzenChartSweep 2.8s linear infinite;
}

@keyframes flowzenChartSweep {
  to {
    transform: translateX(100%);
  }
}

.cash-mini-chart > div {
  padding: 10px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.cash-mini-chart > div:last-child {
  border-bottom: 0;
}

.stock-bar-row {
  display: grid;
  gap: 8px;
  margin-bottom: 11px;
}

.stock-bar-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stock-bar-row strong {
  color: var(--text);
  font-size: 12px;
}

.stock-bar-row span {
  color: var(--muted);
  font-size: 11px;
}

.stock-bar-row i {
  display: block;
  height: 9px;
  min-width: 8px;
  border-radius: 999px;
}

/* FlowZen — gráficos estilo trade/financeiro */
.trade-chart,
.trade-finance-panel,
.trade-cash-card,
.trade-stock-board {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(174, 111, 240, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(74, 222, 128, 0.1),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.016)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 20px 50px rgba(0, 0, 0, 0.22);
}

.trade-chart {
  padding: 14px 14px 10px;
  color: #ae6ff0;
}

.trade-green {
  color: #4ade80;
}
.trade-red {
  color: #fb7185;
}
.trade-purple {
  color: #ae6ff0;
}

.trade-chart-head,
.trade-finance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.trade-chart-head strong,
.trade-finance-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.trade-chart-head span,
.trade-finance-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.trade-chart-value {
  text-align: right;
}

.trade-chart-value b,
.trade-finance-balance {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.trade-chart-value small {
  display: inline-flex;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.trade-plot {
  position: relative;
  min-height: 172px;
  border-radius: 15px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size:
    100% 38px,
    52px 100%;
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.trade-plot svg {
  width: 100%;
  height: 172px;
  display: block;
  overflow: visible;
}

.trade-grid line {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.trade-area {
  fill: currentColor;
  opacity: 0.16;
}

.trade-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px currentColor);
}

.trade-dot {
  fill: #0b0b11;
  stroke: currentColor;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 8px currentColor);
}

.trade-labels {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 16px;
  pointer-events: none;
}

.trade-labels span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.trade-finance-panel,
.trade-cash-card {
  padding: 16px;
}

.trade-depth {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.trade-depth-row {
  position: relative;
  display: grid;
  grid-template-columns: 82px 120px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trade-depth-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trade-depth-row strong {
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.trade-depth-row i {
  position: absolute;
  right: 10px;
  bottom: 7px;
  height: 7px;
  border-radius: 999px;
  min-width: 8px;
  opacity: 0.95;
}

.trade-depth-row.in i {
  background: linear-gradient(
    90deg,
    rgba(74, 222, 128, 0.18),
    rgba(74, 222, 128, 0.9),
    rgba(96, 165, 250, 0.78)
  );
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.18);
}

.trade-depth-row.out i {
  background: linear-gradient(
    90deg,
    rgba(248, 113, 113, 0.18),
    rgba(248, 113, 113, 0.9),
    rgba(251, 191, 36, 0.78)
  );
  box-shadow: 0 0 22px rgba(248, 113, 113, 0.16);
}

.trade-finance-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
}

.trade-finance-foot b {
  font-size: 15px;
}

.trade-stock-board {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.trade-stock-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 1fr) minmax(90px, 34%) 48px;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.trade-stock-row.risk {
  border-color: rgba(251, 191, 36, 0.22);
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.055),
    rgba(255, 255, 255, 0.022)
  );
}

.trade-stock-rank {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.trade-stock-main strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-stock-main span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.trade-stock-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.trade-stock-meter i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(174, 111, 240, 0.88),
    rgba(74, 222, 128, 0.78)
  );
  box-shadow: 0 0 16px rgba(174, 111, 240, 0.2);
}

.trade-stock-row.risk .trade-stock-meter i {
  background: linear-gradient(
    90deg,
    rgba(248, 113, 113, 0.9),
    rgba(251, 191, 36, 0.8)
  );
}

.trade-stock-row b {
  text-align: right;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 720px) {
  .trade-chart-head,
  .trade-finance-head {
    flex-direction: column;
  }
  .trade-chart-value {
    text-align: left;
  }
  .trade-depth-row {
    grid-template-columns: 1fr;
  }
  .trade-stock-row {
    grid-template-columns: 28px 1fr;
  }
  .trade-stock-meter,
  .trade-stock-row b {
    grid-column: 2;
  }
  .trade-stock-row b {
    text-align: left;
  }
}

/* API & Conexões — logos oficiais locais */
.api-card-logo {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.api-card-logo .api-logo-img {
  width: 30px;
  height: 30px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}

.api-card-logo .api-logo-fallback {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.api-card-logo:has(.api-logo-img) .api-logo-fallback {
  opacity: 0;
}

.api-card-logo.api-brand-mercado-pago .api-logo-img,
.api-card-logo.api-brand-melhor-envio .api-logo-img,
.api-card-logo.api-brand-google-sheets .api-logo-img,
.api-card-logo.api-brand-google-calendar .api-logo-img,
.api-card-logo.api-brand-correios .api-logo-img,
.api-card-logo.api-brand-jadlog .api-logo-img,
.api-card-logo.api-brand-ifood .api-logo-img,
.api-card-logo.api-brand-openai .api-logo-img {
  width: 34px;
  height: 34px;
}

/* ===== API & Conexões — apenas modelo/alinhamento dos ícones, preservando cores originais ===== */

.api-clean-page .api-preview-card-tile .api-card-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 12px !important;
  margin-bottom: 8px !important;
  overflow: hidden !important;
}

.api-clean-page .api-preview-card-tile .api-card-icon-wrap {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.api-clean-page .api-preview-card-tile .api-card-icon {
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
}

.api-clean-page .api-preview-card-tile .api-card-icon svg {
  width: 21px !important;
  height: 21px !important;
  display: block !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.85 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: none !important;
}

.api-clean-page
  .api-preview-card-tile
  .api-card-icon
  svg
  [fill="currentColor"] {
  fill: currentColor !important;
}

.api-clean-page .api-preview-card-tile .api-logo-img,
.api-clean-page .api-preview-card-tile .api-logo-fallback {
  display: none !important;
}

/* ===== PDV Frente de Caixa — barcode + modal de pagamento ===== */
.pdv-barcode-line {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pdv-barcode-line .barcode-input {
  flex: 1;
}
.pdv-barcode-feedback {
  font-size: 12px;
  min-width: 148px;
  color: var(--color-text-secondary, #9ca3af);
}
.pdv-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.62);
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(8px);
}
.pdv-payment-card {
  width: min(520px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--color-background-primary, #111827);
  border: 1px solid var(--color-border-secondary, rgba(255, 255, 255, 0.12));
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}
.pdv-payment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.pdv-payment-head h2 {
  margin: 0;
  font-size: 20px;
  color: var(--color-text-primary, #fff);
}
.pdv-payment-total {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--color-text-primary, #fff);
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.16),
    rgba(74, 222, 128, 0.08)
  );
  border: 1px solid rgba(174, 111, 240, 0.18);
  margin-bottom: 18px;
}
.pdv-payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.pdv-payment-method {
  min-height: 78px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.pdv-payment-method span {
  font-size: 12px;
  color: var(--color-text-secondary, #9ca3af);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pdv-payment-method strong {
  font-size: 13px;
  color: inherit;
}
.pdv-payment-subpanel {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--color-background-secondary, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--color-border-secondary, rgba(255, 255, 255, 0.12));
}
.pdv-payment-subpanel label {
  display: block;
  font-size: 13px;
  color: var(--color-text-secondary, #9ca3af);
  margin-bottom: 8px;
}
.pdv-payment-subpanel input {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  border: 1px solid var(--color-border-secondary, rgba(255, 255, 255, 0.14));
  border-radius: 10px;
  background: var(--color-background-primary, #0b0f19);
  color: var(--color-text-primary, #fff);
}
.pdv-payment-installments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pdv-payment-info {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-secondary, #9ca3af);
}
.pdv-payment-confirm {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
}
@media (max-width: 640px) {
  .pdv-barcode-line {
    flex-direction: column;
    align-items: stretch;
  }
  .pdv-barcode-feedback {
    min-width: 0;
  }
  .pdv-payment-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdv-payment-installments {
    grid-template-columns: repeat(3, 1fr);
  }
  .pdv-payment-card {
    padding: 20px;
  }
}

/* PDV — configuração de parcelamento sem juros ou com taxa real do banco */
.pdv-installment-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.pdv-installment-mode-grid .btn {
  justify-content: center;
}
.pdv-installment-fee-box {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(174, 111, 240, 0.08);
  border: 1px solid rgba(174, 111, 240, 0.18);
}
.pdv-installment-fee-box label {
  margin-bottom: 6px !important;
}
.pdv-installment-fee-box input {
  font-size: 16px !important;
}
.pdv-installment-fee-box small {
  display: block;
  margin-top: 8px;
  color: var(--color-text-secondary, #9ca3af);
  line-height: 1.35;
}
@media (max-width: 640px) {
  .pdv-installment-mode-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FlowZen — Central Global de Notificações ===== */
.flowzen-notification-center {
  position: relative;
  overflow: hidden;
  border-color: rgba(174, 111, 240, 0.22) !important;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.08),
    rgba(8, 8, 11, 0.92) 48%,
    rgba(74, 222, 128, 0.05)
  ) !important;
}
.flowzen-notification-center:before {
  content: "";
  position: absolute;
  inset: -90px auto auto -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(217, 110, 234, 0.16),
    transparent 68%
  );
  pointer-events: none;
}
.flowzen-notification-head {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}
.flowzen-notification-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
  position: relative;
  z-index: 1;
}
.flowzen-notification-list {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.flowzen-notification-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}
.flowzen-notification-item.unread {
  border-color: rgba(174, 111, 240, 0.28);
  background: rgba(174, 111, 240, 0.055);
}
.flowzen-notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 111, 240, 0.14);
  color: var(--acc, #ae6ff0);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(174, 111, 240, 0.12);
}
.flowzen-notification-item.priority-success .flowzen-notification-icon {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green, #4ade80);
}
.flowzen-notification-item.priority-warning .flowzen-notification-icon {
  background: rgba(251, 191, 36, 0.12);
  color: var(--yellow, #fbbf24);
}
.flowzen-notification-item.priority-danger .flowzen-notification-icon {
  background: rgba(248, 113, 113, 0.12);
  color: var(--red, #f87171);
}
.flowzen-notification-body strong {
  display: block;
  color: var(--text, #f8fafc);
  font-size: 14px;
  margin-bottom: 3px;
}
.flowzen-notification-body p {
  margin: 0;
  color: var(--muted, #a1a1aa);
  font-size: 13px;
  line-height: 1.45;
}
.flowzen-notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted, #a1a1aa);
}
.flowzen-notification-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.flowzen-notification-actions .btn {
  white-space: nowrap;
}
.flowzen-notification-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--muted, #a1a1aa);
  background: rgba(255, 255, 255, 0.025);
}
.flowzen-channel-dock {
  position: fixed;
  right: 22px;
  top: 46%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 990;
}
.flowzen-channel-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 18, 0.82);
  color: #f8fafc;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.flowzen-channel-btn:hover {
  transform: translateX(-3px) scale(1.04);
  border-color: rgba(174, 111, 240, 0.42);
  background: rgba(174, 111, 240, 0.16);
}
.flowzen-channel-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.flowzen-channel-badge {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(8, 8, 11, 0.92);
}
.flowzen-floating-panel {
  position: fixed;
  right: 80px;
  bottom: 24px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 48px));
  z-index: 991;
  border: 1px solid rgba(174, 111, 240, 0.24);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 28, 0.96),
    rgba(8, 8, 11, 0.98)
  );
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  display: none;
}
.flowzen-floating-panel.open {
  display: block;
  animation: flowzenPanelIn 0.18s ease-out;
}
.flowzen-floating-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.14),
    rgba(74, 222, 128, 0.04)
  );
}
.flowzen-floating-title strong {
  display: block;
  color: #fff;
}
.flowzen-floating-title span {
  font-size: 12px;
  color: var(--muted, #a1a1aa);
}
.flowzen-floating-body {
  padding: 14px;
  display: grid;
  gap: 10px;
  max-height: 480px;
  overflow: auto;
}
.flowzen-mini-message {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.flowzen-mini-message strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 3px;
}
.flowzen-mini-message p {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #a1a1aa);
  line-height: 1.4;
}
.flowzen-mini-note {
  font-size: 12px;
  color: var(--muted, #a1a1aa);
  line-height: 1.45;
  padding: 11px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
@keyframes flowzenPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 780px) {
  .flowzen-notification-head {
    display: block;
  }
  .flowzen-notification-head .btn-group {
    margin-top: 12px;
  }
  .flowzen-notification-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .flowzen-notification-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
  .flowzen-channel-dock {
    right: 12px;
    top: auto;
    bottom: 92px;
    transform: none;
  }
  .flowzen-floating-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

/* ===== FlowZen — Central Omnichannel Profissional ===== */
.flowzen-omni-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(
      260px,
      320px
    );
  gap: 18px;
  align-items: stretch;
}
.flowzen-omni-sidebar,
.flowzen-omni-chat-panel,
.flowzen-omni-phone-panel {
  min-height: 620px;
}
.flowzen-omni-conversation-list {
  display: grid;
  gap: 10px;
  max-height: 470px;
  overflow: auto;
  padding-right: 4px;
}
.flowzen-omni-conversation {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
  cursor: pointer;
  color: var(--text, #f8fafc);
  display: grid;
  gap: 6px;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}
.flowzen-omni-conversation:hover {
  border-color: rgba(174, 111, 240, 0.34);
  background: rgba(174, 111, 240, 0.07);
  transform: translateY(-1px);
}
.flowzen-omni-conversation.active {
  border-color: rgba(174, 111, 240, 0.58);
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.14),
    rgba(74, 222, 128, 0.04)
  );
}
.flowzen-omni-conv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.flowzen-omni-conv-top strong {
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flowzen-omni-channel-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(174, 111, 240, 0.13);
  color: var(--acc, #ae6ff0);
  border: 1px solid rgba(174, 111, 240, 0.2);
}
.flowzen-omni-channel-pill.whatsapp {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.22);
}
.flowzen-omni-channel-pill.instagram {
  background: rgba(217, 110, 234, 0.12);
  color: #d96eea;
  border-color: rgba(217, 110, 234, 0.22);
}
.flowzen-omni-channel-pill.messenger {
  background: rgba(96, 165, 250, 0.13);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.22);
}
.flowzen-omni-channel-pill.email {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}
.flowzen-omni-channel-pill.webchat {
  background: rgba(45, 212, 191, 0.1);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.2);
}
.flowzen-omni-last {
  font-size: 12px;
  color: var(--muted, #a1a1aa);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.flowzen-omni-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted, #a1a1aa);
}
.flowzen-omni-unread {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}
.flowzen-omni-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.flowzen-omni-chat-head h3 {
  margin-bottom: 3px;
}
.flowzen-omni-messages {
  height: 456px;
  overflow: auto;
  padding: 18px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flowzen-omni-empty {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted, #a1a1aa);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.025);
}
.flowzen-omni-empty strong {
  color: var(--text, #f8fafc);
  font-size: 15px;
}
.flowzen-omni-empty span {
  font-size: 12px;
  max-width: 420px;
  line-height: 1.55;
}
.flowzen-message-bubble {
  max-width: min(74%, 560px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.flowzen-message-bubble.outbound {
  align-self: flex-end;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.2),
    rgba(217, 110, 234, 0.12)
  );
  border-color: rgba(174, 111, 240, 0.28);
}
.flowzen-message-bubble.inbound {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.045);
}
.flowzen-message-bubble small {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  color: var(--muted, #a1a1aa);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.flowzen-message-bubble p {
  margin: 0;
  color: var(--text, #f8fafc);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.flowzen-omni-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
.flowzen-omni-composer textarea {
  min-height: 52px;
  max-height: 120px;
  resize: vertical;
}
.flowzen-phone-shell {
  width: 100%;
  max-width: 286px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}
.flowzen-phone-top {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted, #a1a1aa);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.flowzen-phone-top span:first-child {
  width: 42px;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.flowzen-phone-screen {
  height: 500px;
  overflow: auto;
  border-radius: 25px;
  background:
    radial-gradient(circle at top, rgba(174, 111, 240, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(8, 8, 11, 0.96), rgba(15, 15, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.flowzen-phone-empty {
  margin: auto;
  text-align: center;
  color: var(--muted, #a1a1aa);
  font-size: 12px;
  line-height: 1.45;
}
.flowzen-phone-bubble {
  max-width: 82%;
  padding: 9px 11px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.35;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.flowzen-phone-bubble.outbound {
  align-self: flex-end;
  background: rgba(174, 111, 240, 0.24);
  border-color: rgba(174, 111, 240, 0.25);
  border-bottom-right-radius: 6px;
}
.flowzen-phone-bubble.inbound {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.flowzen-floating-panel.omni-mode {
  width: min(880px, calc(100vw - 112px));
}
.flowzen-floating-omni-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 430px;
}
.flowzen-floating-omni-list {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  overflow: auto;
  max-height: 510px;
}
.flowzen-floating-omni-chat {
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}
.flowzen-floating-omni-chat .flowzen-omni-messages {
  height: 320px;
  padding: 10px 2px;
}
.flowzen-omni-status-note {
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--muted, #a1a1aa);
  line-height: 1.45;
}
.omnichannel-status-cards .card-value {
  font-size: 24px;
}
@media (max-width: 1280px) {
  .flowzen-omni-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .flowzen-omni-phone-panel {
    grid-column: 1/-1;
    min-height: auto;
  }
  .flowzen-phone-shell {
    max-width: 360px;
  }
  .flowzen-phone-screen {
    height: 420px;
  }
}
@media (max-width: 900px) {
  .flowzen-omni-layout {
    grid-template-columns: 1fr;
  }
  .flowzen-omni-sidebar,
  .flowzen-omni-chat-panel,
  .flowzen-omni-phone-panel {
    min-height: auto;
  }
  .flowzen-omni-composer {
    grid-template-columns: 1fr;
  }
  .flowzen-floating-panel.omni-mode {
    right: 12px;
    width: calc(100vw - 24px);
  }
  .flowzen-floating-omni-grid {
    grid-template-columns: 1fr;
  }
  .flowzen-floating-omni-list {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 240px;
  }
}

/* FlowZen Dashboard Operacional v2 — visual vivo com KPIs, sparklines e feed real */
.fz-live-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 32px;
}
.fz-live-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.fz-live-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #f6f1ff;
  margin-bottom: 8px;
}
.fz-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(186, 255, 225, 0.92);
  color: #092019;
  font-size: 11px;
  text-transform: lowercase;
}
.fz-live-pill i,
.fz-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0aa66a;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12);
}
.fz-live-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.fz-live-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.fz-kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.fz-kpi-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
}
.fz-kpi-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}
.fz-kpi-card em {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #2a2118;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.fz-kpi-card em.green {
  background: #e4ffd6;
  color: #153d16;
}
.fz-kpi-icon {
  position: absolute;
  right: 16px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  font-weight: 900;
  color: #171319;
}
.fz-kpi-icon.green {
  background: #dcffd3;
}
.fz-kpi-icon.purple {
  background: #e7e0ff;
}
.fz-kpi-icon.amber {
  background: #fff0d0;
}
.fz-kpi-icon.teal {
  background: #d7fff3;
}
.fz-kpi-spark {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  width: calc(100% - 28px);
  height: 42px;
  opacity: 0.9;
}
.fz-kpi-spark polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fz-kpi-spark.fz-green {
  color: #5ea81a;
}
.fz-kpi-spark.fz-purple {
  color: #8d7cff;
}
.fz-kpi-spark.fz-amber {
  color: #d0820a;
}
.fz-kpi-spark.fz-teal {
  color: #13b893;
}
.fz-live-grid {
  display: grid;
  gap: 16px;
}
.fz-live-grid-main {
  grid-template-columns: 1.45fr 1fr;
}
.fz-live-grid-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fz-live-card {
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.028)
  );
  border-color: rgba(255, 255, 255, 0.12);
}
.fz-live-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.fz-live-card-head h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
}
.fz-period-tabs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.fz-period-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f3ff;
  border-radius: 9px;
  padding: 9px 13px;
  cursor: pointer;
}
.fz-period-tabs button.active,
.fz-period-tabs button:hover {
  background: rgba(174, 111, 240, 0.18);
  border-color: rgba(174, 111, 240, 0.72);
}
.fz-live-main-chart {
  min-height: 260px;
}
.fz-chart-canvas {
  position: relative;
  min-height: 240px;
}
.fz-live-chart svg {
  width: 100%;
  height: 220px;
  display: block;
  color: #a78bfa;
}
.fz-live-chart.fz-green svg {
  color: #a78bfa;
}
.fz-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
.fz-chart-area {
  fill: currentColor;
  opacity: 0.14;
}
.fz-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fz-chart-dot {
  fill: currentColor;
  stroke: #2c2c2c;
  stroke-width: 3;
}
.fz-chart-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 18px;
}
.fz-chart-labels span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
}
.fz-chart-hit {
  position: absolute;
  top: 0;
  bottom: 22px;
  width: 28px;
  margin-left: -14px;
  border: 0;
  background: transparent;
  cursor: crosshair;
}
.fz-chart-hit span {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 22px);
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
  opacity: 0;
  min-width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 12px;
  text-align: center;
  z-index: 4;
}
.fz-chart-hit span b {
  display: block;
  color: #d8ffcf;
  margin-top: 3px;
}
.fz-chart-hit:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fz-activity-feed {
  display: flex;
  flex-direction: column;
}
.fz-activity-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
}
.fz-activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.fz-activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(141, 124, 255, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.18);
}
.fz-activity-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fz-activity-icon.green {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.18);
}
.fz-activity-icon.teal {
  background: rgba(19, 184, 147, 0.14);
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.18);
}
.fz-activity-icon.amber {
  background: rgba(208, 130, 10, 0.14);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.18);
}
.fz-activity-icon.blue {
  background: rgba(74, 168, 255, 0.14);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.18);
}
.fz-activity-icon.red {
  background: rgba(239, 83, 80, 0.14);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.18);
}
.fz-activity-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.fz-activity-copy strong {
  font-size: 13px;
  line-height: 1.25;
  color: #fff;
  font-weight: 700;
}
.fz-activity-copy small {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.fz-activity-item time {
  color: var(--muted);
  font-size: 12px;
  padding-top: 4px;
  white-space: nowrap;
}
.fz-mini-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.fz-mini-bar-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(90px, 1.2fr) 42px;
  align-items: center;
  gap: 10px;
  color: #d8d4df;
  font-size: 13px;
}
.fz-mini-bar-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fz-mini-bar-row i,
.fz-finance-list i {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.fz-mini-bar-row b,
.fz-finance-list b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ae6ff0, #8d7cff);
}
.fz-mini-bar-row strong {
  color: #bdb7c9;
  font-size: 12px;
  text-align: right;
}
.fz-finance-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.fz-finance-list > div:not(.fz-finance-balance) {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.fz-finance-list i b {
  background: #5ea81a;
}
.fz-finance-list i.out b {
  background: #ef5350;
}
.fz-finance-list strong {
  text-align: right;
  font-size: 12px;
}
.fz-finance-balance {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.fz-finance-balance strong {
  font-size: 15px;
}
.fz-live-dashboard .flowzen-notification-center {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .fz-live-kpis,
  .fz-live-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fz-live-grid-main {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .fz-live-top,
  .fz-live-card-head {
    flex-direction: column;
  }
  .fz-live-kpis,
  .fz-live-grid-bottom {
    grid-template-columns: 1fr;
  }
  .fz-kpi-card strong {
    font-size: 24px;
  }
  .fz-period-tabs {
    width: 100%;
  }
  .fz-period-tabs button {
    flex: 1;
  }
  .fz-finance-list > div:not(.fz-finance-balance),
  .fz-mini-bar-row {
    grid-template-columns: 78px 1fr 38px;
  }
}

/* FlowZen — tela profissional de redefinição de senha */
.reset-password-overlay {
  background:
    radial-gradient(
      circle at 50% 12%,
      rgba(174, 111, 240, 0.24),
      transparent 34%
    ),
    rgba(3, 5, 11, 0.82);
}
.reset-password-card {
  position: relative;
  width: min(520px, 96vw);
  border-radius: 30px;
  border: 1px solid rgba(217, 110, 234, 0.24);
  background: linear-gradient(
    155deg,
    rgba(22, 19, 34, 0.98),
    rgba(8, 8, 13, 0.99) 62%,
    rgba(22, 8, 30, 0.98)
  );
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.68),
    0 0 80px rgba(174, 111, 240, 0.14);
  overflow: hidden;
}
.reset-password-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(217, 110, 234, 0.22),
      transparent 35%
    ),
    radial-gradient(
      circle at 100% 18%,
      rgba(74, 222, 128, 0.12),
      transparent 28%
    ),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    48px 48px,
    48px 48px;
  opacity: 0.72;
}
.reset-password-visual {
  position: relative;
  z-index: 1;
  padding: 26px 24px 0;
  display: flex;
  justify-content: center;
}
.reset-password-shield {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #06130d;
  font-size: 25px;
  font-weight: 1000;
  background: linear-gradient(135deg, #4ade80, #b8ffe8);
  box-shadow:
    0 18px 42px rgba(74, 222, 128, 0.18),
    0 0 0 8px rgba(74, 222, 128, 0.06);
}
.reset-password-head {
  position: relative;
  z-index: 1;
  text-align: center;
  display: block;
  padding: 16px 28px 18px;
  border-bottom: 0;
  background: transparent;
}
.reset-password-head h2 {
  font-size: 28px;
  line-height: 1.05;
  margin: 8px 0 8px;
  letter-spacing: -0.045em;
}
.reset-password-head .mini-help {
  max-width: 390px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
}
.reset-password-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  color: #e9d5ff;
  background: rgba(174, 111, 240, 0.13);
  border: 1px solid rgba(174, 111, 240, 0.2);
}
.reset-password-close {
  position: absolute;
  top: 18px;
  right: 18px;
}
.reset-password-body {
  position: relative;
  z-index: 1;
  padding: 0 28px 18px;
  overflow: visible;
}
.reset-password-status {
  margin: 0 0 16px;
  padding: 13px 14px;
  border-radius: 17px;
  color: #dfffee;
  font-size: 12.5px;
  line-height: 1.45;
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.13),
    rgba(174, 111, 240, 0.08)
  );
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.reset-password-status.is-error {
  color: #ffd6d6;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}
.reset-password-status.is-done {
  color: #dfffee;
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.25);
}
.reset-password-field {
  display: block;
  margin-bottom: 13px;
}
.reset-password-field span {
  display: block;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}
.reset-password-field input {
  width: 100%;
  height: 50px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  padding: 0 15px;
  outline: 0;
  box-shadow: 0 0 0 1px transparent inset;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.reset-password-field input:focus {
  border-color: rgba(174, 111, 240, 0.48);
  box-shadow: 0 0 0 4px rgba(174, 111, 240, 0.12);
  background: rgba(255, 255, 255, 0.075);
}
.reset-password-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}
#resetCode {
  font-size: 22px;
  letter-spacing: 7px;
  text-align: center;
  font-weight: 950;
}
.reset-password-field small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11.5px;
  line-height: 1.35;
}
.reset-password-rules {
  margin: 14px 0 4px;
  padding: 13px 14px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}
.reset-password-rules strong {
  color: #fff;
}
.reset-password-feedback {
  min-height: 20px;
  margin-top: 12px;
  color: #b8ffe8;
  font-size: 12.5px;
}
.reset-password-feedback.is-error {
  color: #ffb4b4;
}
.reset-password-actions {
  position: relative;
  z-index: 1;
  padding: 0 28px 26px;
  justify-content: stretch;
}
.reset-password-actions .btn {
  flex: 1;
  justify-content: center;
  border-radius: 16px;
  min-height: 46px;
}
.reset-password-actions .btn-primary {
  background: linear-gradient(92deg, #ae6ff0, #d96eea);
  box-shadow: 0 16px 32px rgba(217, 110, 234, 0.18);
}
@media (max-width: 560px) {
  .reset-password-card {
    border-radius: 24px;
  }
  .reset-password-head {
    padding-left: 18px;
    padding-right: 18px;
  }
  .reset-password-head h2 {
    font-size: 24px;
  }
  .reset-password-close {
    position: static;
    margin-top: 12px;
  }
  .reset-password-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .reset-password-actions {
    padding-left: 18px;
    padding-right: 18px;
    display: grid;
  }
  .reset-password-actions .btn {
    width: 100%;
  }
}

/* ──────────────────────────────────────────────────────────────
   FlowZen UI polish — cards globais no padrão limpo do Dashboard
   Remove brilho/risco superior dos cards antigos e preserva contraste.
────────────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.024)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}
.card::before,
.card::after {
  display: none !important;
}
.card:hover {
  transform: translateY(-1px);
  border-color: rgba(174, 111, 240, 0.18) !important;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}
.card-label {
  color: rgba(184, 178, 199, 0.86);
}
.card p.mini-help {
  color: rgba(173, 166, 189, 0.86);
}

/* Topo do Dashboard: data + relógio mais presente */
.fz-live-eyebrow #statDate {
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #f7f2ff;
}
.fz-live-meta #statHora {
  color: #efe8ff;
  font-family: "DM Mono", monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* KPIs do Dashboard: ícones e badges internos mais coerentes com o FlowZen */
.fz-kpi-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.024)
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.fz-kpi-card:hover {
  border-color: rgba(174, 111, 240, 0.18);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.fz-kpi-card em {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(238, 232, 249, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.fz-kpi-card em.green {
  background: rgba(74, 222, 128, 0.14);
  color: #8ff0ae;
  border-color: rgba(74, 222, 128, 0.2);
}
.fz-kpi-card em.amber {
  background: rgba(251, 191, 36, 0.13);
  color: #ffd277;
  border-color: rgba(251, 191, 36, 0.2);
}
.fz-kpi-card em.neutral {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(238, 232, 249, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}
.fz-kpi-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 20px rgba(0, 0, 0, 0.18);
}
.fz-kpi-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fz-kpi-icon.green {
  color: #82f5a7;
  border-color: rgba(74, 222, 128, 0.22);
}
.fz-kpi-icon.purple {
  color: #c9a8ff;
  border-color: rgba(174, 111, 240, 0.22);
}
.fz-kpi-icon.amber {
  color: #ffd277;
  border-color: rgba(251, 191, 36, 0.22);
}
.fz-kpi-icon.teal {
  color: #6df4d4;
  border-color: rgba(45, 212, 191, 0.22);
}

/* Ajuste UI PRO — topo do Dashboard FlowZen (data, status, relógio e atualização) */
.fz-live-top {
  position: relative;
  align-items: flex-start;
  padding: 2px 0 8px;
}
.fz-live-top::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto -18px;
  height: 118px;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 76% 10%,
      rgba(174, 111, 240, 0.14),
      transparent 42%
    ),
    radial-gradient(circle at 18% 0%, rgba(74, 222, 128, 0.07), transparent 38%);
  opacity: 0.75;
  z-index: -1;
}
.fz-live-eyebrow {
  gap: 11px;
  margin-bottom: 7px;
}
.fz-live-eyebrow #statDate {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 2px;
  color: #f8f5ff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.015em;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.fz-live-pill {
  position: relative;
  min-height: 26px;
  padding: 5px 12px 5px 10px;
  gap: 8px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.16),
    rgba(19, 184, 147, 0.08)
  );
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #a8ffc4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(74, 222, 128, 0.035);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.fz-live-pill i,
.fz-live-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  box-shadow:
    0 0 0 4px rgba(74, 222, 128, 0.13),
    0 0 16px rgba(74, 222, 128, 0.62);
}
.fz-live-pill i::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  opacity: 0.45;
  animation: fzLivePulse 1.9s ease-out infinite;
}
@keyframes fzLivePulse {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70% {
    transform: scale(2.8);
    opacity: 0;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
.fz-live-meta {
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}
.fz-live-meta #statHora {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  color: #f6f1ff;
  font-family: "DM Mono", monospace;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0.035em;
  line-height: 1;
  text-shadow:
    0 12px 26px rgba(0, 0, 0, 0.36),
    0 0 18px rgba(174, 111, 240, 0.12);
}
.fz-live-meta #statHora .fz-clock-sec {
  color: #cbb5ff;
  opacity: 0.92;
  font-size: 0.88em;
  font-weight: 850;
}
.fz-live-meta .badge.local-mode#statStatus {
  position: relative;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.14),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid rgba(174, 111, 240, 0.28);
  color: #d9c2ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 24px rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.015em;
}
.fz-live-meta .badge.local-mode#statStatus::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ae6ff0;
  box-shadow:
    0 0 0 3px rgba(174, 111, 240, 0.13),
    0 0 12px rgba(174, 111, 240, 0.38);
}

.fz-live-meta .badge.local-mode#statStatus.status-online {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.14),
    rgba(20, 184, 166, 0.045)
  );
  border-color: rgba(74, 222, 128, 0.3);
  color: #9cf6bd;
}
.fz-live-meta .badge.local-mode#statStatus.status-online::before {
  background: var(--green);
  box-shadow:
    0 0 0 3px rgba(74, 222, 128, 0.14),
    0 0 13px rgba(74, 222, 128, 0.55);
}
.fz-live-meta .badge.local-mode#statStatus.status-offline {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.09),
    rgba(174, 111, 240, 0.035)
  );
  border-color: rgba(148, 163, 184, 0.2);
  color: #d6d1e3;
}
.fz-live-meta .badge.local-mode#statStatus.status-offline::before {
  background: #94a3b8;
  box-shadow:
    0 0 0 3px rgba(148, 163, 184, 0.11),
    0 0 10px rgba(148, 163, 184, 0.28);
}
.fz-live-meta .badge.local-mode#statStatus.status-waiting {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.12),
    rgba(174, 111, 240, 0.04)
  );
  border-color: rgba(251, 191, 36, 0.26);
  color: #fde68a;
}
.fz-live-meta .badge.local-mode#statStatus.status-waiting::before {
  background: var(--yel);
  box-shadow:
    0 0 0 3px rgba(251, 191, 36, 0.13),
    0 0 12px rgba(251, 191, 36, 0.45);
}
.fz-live-meta .badge.local-mode#statStatus.status-error {
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.12),
    rgba(255, 255, 255, 0.035)
  );
  border-color: rgba(248, 113, 113, 0.26);
  color: #fecaca;
}
.fz-live-meta .badge.local-mode#statStatus.status-error::before {
  background: var(--red);
  box-shadow:
    0 0 0 3px rgba(248, 113, 113, 0.13),
    0 0 12px rgba(248, 113, 113, 0.46);
}
.fz-live-meta .btn.btn-ghost {
  min-height: 32px;
  padding: 7px 13px;
  border-radius: 11px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f2ecff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 26px rgba(0, 0, 0, 0.18);
  font-weight: 850;
}
.fz-live-meta .btn.btn-ghost:hover {
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.18),
    rgba(255, 255, 255, 0.045)
  );
  border-color: rgba(174, 111, 240, 0.34);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .fz-live-top {
    gap: 12px;
  }
  .fz-live-meta {
    justify-content: flex-start;
    width: 100%;
  }
  .fz-live-meta #statHora {
    font-size: 18px;
  }
}

.flowzen-channel-btn-whatsapp {
  color: #f8fafc;
}
.flowzen-channel-btn-whatsapp svg {
  width: 24px;
  height: 24px;
}
.flowzen-channel-btn-whatsapp:hover {
  border-color: rgba(74, 222, 128, 0.46);
  background: rgba(74, 222, 128, 0.14);
}

/* FlowZen — ajuste fino da tela de redefinição de senha: sem ícone/topo e card compacto */
.reset-password-overlay {
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(174, 111, 240, 0.2),
      transparent 34%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(217, 110, 234, 0.14),
      transparent 32%
    ),
    linear-gradient(135deg, rgba(8, 8, 11, 0.92), rgba(11, 7, 18, 0.9));
  padding: 18px;
  overflow: auto;
}
.reset-password-card {
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 26px;
  border: 1px solid rgba(174, 111, 240, 0.28);
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(174, 111, 240, 0.15),
      transparent 35%
    ),
    radial-gradient(
      circle at 100% 12%,
      rgba(217, 110, 234, 0.1),
      transparent 34%
    ),
    linear-gradient(
      155deg,
      rgba(17, 14, 25, 0.98),
      rgba(8, 8, 11, 0.99) 58%,
      rgba(13, 10, 20, 0.98)
    );
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.66),
    0 0 58px rgba(174, 111, 240, 0.12);
}
.reset-password-card::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
}
.reset-password-visual,
.reset-password-shield,
.reset-password-kicker {
  display: none !important;
}
.reset-password-head {
  padding: 30px 30px 14px;
  text-align: left;
}
.reset-password-head h2 {
  margin: 0 0 8px;
  font-size: 27px;
  letter-spacing: -0.04em;
  color: #fff;
}
.reset-password-head .mini-help {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}
.reset-password-close {
  top: 24px;
  right: 24px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}
.reset-password-body {
  padding: 0 30px 16px;
}
.reset-password-status {
  margin-bottom: 14px;
  border-radius: 15px;
  color: #dfffee;
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.11),
    rgba(174, 111, 240, 0.055)
  );
  border-color: rgba(74, 222, 128, 0.18);
}
.reset-password-field {
  margin-bottom: 12px;
}
.reset-password-field span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reset-password-field input {
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
}
.reset-password-field input:focus {
  border-color: rgba(174, 111, 240, 0.55);
  box-shadow: 0 0 0 4px rgba(174, 111, 240, 0.11);
}
.reset-password-rules {
  margin: 12px 0 2px;
  padding: 12px 13px;
  border-radius: 15px;
  background: rgba(174, 111, 240, 0.045);
  border-color: rgba(174, 111, 240, 0.1);
}
.reset-password-actions {
  padding: 0 30px 28px;
}
.reset-password-actions .btn-primary {
  background: linear-gradient(92deg, #9f5ee8, #c95cdb);
  box-shadow: 0 14px 28px rgba(174, 111, 240, 0.16);
}
@media (max-width: 560px) {
  .reset-password-overlay {
    padding: 10px;
  }
  .reset-password-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }
  .reset-password-head {
    padding: 24px 18px 12px;
    text-align: left;
  }
  .reset-password-head h2 {
    font-size: 24px;
    padding-right: 74px;
  }
  .reset-password-close {
    top: 18px;
    right: 18px;
    position: absolute;
    margin: 0;
  }
  .reset-password-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .reset-password-actions {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 22px;
    gap: 10px;
  }
}

/* =========================================================
   FlowZen — ajuste fino login Admin/VPS 2026-05-13
   Remove o selo superior solto do login e reduz brilho visual.
   ========================================================= */
.login-top-title {
  display: none !important;
}
.token-overlay {
  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(236, 72, 153, 0.115),
      transparent 31%
    ),
    radial-gradient(
      circle at 82% 26%,
      rgba(103, 232, 249, 0.065),
      transparent 30%
    ),
    radial-gradient(
      circle at 52% 96%,
      rgba(168, 85, 247, 0.135),
      transparent 34%
    ),
    linear-gradient(135deg, #020204 0%, #070711 39%, #12041a 72%, #1b0624 100%) !important;
}
.login-orb {
  opacity: 0.48 !important;
  filter: blur(7px) saturate(0.86) !important;
}
.login-portal-pro {
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.045) inset !important;
}
.login-card-glow {
  opacity: 0.46 !important;
}
.login-card-refined {
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.118),
    rgba(255, 255, 255, 0.055) 55%,
    rgba(255, 255, 255, 0.034)
  ) !important;
}
.login-card .btn-primary,
.login-card .login-action {
  box-shadow:
    0 12px 24px rgba(236, 72, 153, 0.14),
    0 0 20px rgba(168, 85, 247, 0.12) !important;
}

/* FIX 2026-05-13: painel flutuante de notificações compacto, legível e sem cobrir a tela inteira. */
.flowzen-floating-panel.notif-mode {
  width: min(520px, calc(100vw - 32px));
  right: 80px;
  bottom: 24px;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 28, 0.985),
    rgba(8, 8, 11, 0.995)
  );
  border-color: rgba(174, 111, 240, 0.32);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.035);
}
.flowzen-floating-notification-body {
  max-height: 520px;
  gap: 11px;
  background: rgba(3, 3, 7, 0.22);
}
.flowzen-floating-notification {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}
.flowzen-floating-notification.unread {
  border-color: rgba(174, 111, 240, 0.34);
  background: rgba(174, 111, 240, 0.075);
}
.flowzen-floating-notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 111, 240, 0.14);
  color: var(--acc, #ae6ff0);
  font-weight: 900;
}
.flowzen-floating-notification.priority-danger
  .flowzen-floating-notification-icon {
  background: rgba(239, 68, 68, 0.13);
  color: #f87171;
}
.flowzen-floating-notification.priority-warning
  .flowzen-floating-notification-icon {
  background: rgba(245, 158, 11, 0.13);
  color: #fbbf24;
}
.flowzen-floating-notification.priority-success
  .flowzen-floating-notification-icon {
  background: rgba(74, 222, 128, 0.13);
  color: var(--green, #4ade80);
}
.flowzen-floating-notification-copy {
  min-width: 0;
}
.flowzen-floating-notification-copy strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.flowzen-floating-notification-copy p {
  margin: 0 0 6px;
  color: #d8d4df;
  font-size: 12px;
  line-height: 1.38;
}
.flowzen-floating-notification-copy small {
  display: block;
  color: var(--muted, #a1a1aa);
  font-size: 11px;
}
.flowzen-floating-notification-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 780px) {
  .flowzen-floating-panel.notif-mode {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
  .flowzen-floating-notification {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .flowzen-floating-notification-actions {
    grid-column: 1/-1;
  }
}

/* FlowZen — Agente Local de Impressoras */
.agent-download-panel code {
  background: rgba(174, 111, 240, 0.12);
  border: 1px solid rgba(174, 111, 240, 0.28);
  border-radius: 8px;
  padding: 2px 6px;
  color: #d9b8ff;
}
.printer-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px) {
  .printer-agent-grid {
    grid-template-columns: 1fr;
  }
}

.help-open-error {
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  line-height: 1.5;
}
.flowzen-content-readonly .help-admin-panel,
.flowzen-content-readonly .help-admin-instructions,
.flowzen-content-readonly .support-admin-panel {
  display: none !important;
}

/* FlowZen — Instalação Local oculta para clientes online + melhoria Configurações */
.flowzen-hide-local-install #page-producao-local {
  display: none !important;
}
.local-install-kpis .card,
.settings-map-card,
.settings-safe-card,
.local-install-panel {
  position: relative;
  overflow: hidden;
}
.local-install-kpis .card::after,
.settings-map-card::after,
.settings-safe-card::after,
.local-install-panel::after {
  content: "";
  position: absolute;
  inset: auto -25% -55% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(174, 111, 240, 0.13),
    transparent 68%
  );
  pointer-events: none;
}
.flowzen-local-head,
.settings-head {
  align-items: flex-start;
}
.flowzen-local-head h1,
.settings-head h1 {
  margin-top: 8px;
}
.local-install-panel {
  border-color: rgba(174, 111, 240, 0.2);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.052),
    rgba(174, 111, 240, 0.035),
    rgba(0, 0, 0, 0.1)
  );
}
.local-install-details {
  align-items: stretch;
}
.local-install-details .panel {
  min-height: 260px;
}
.preline {
  white-space: pre-line;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 12px;
  line-height: 1.65;
}
.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.settings-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 16px;
  align-items: stretch;
}
.settings-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.settings-action-grid .btn {
  min-height: 38px;
}
.settings-safe-card .status-box {
  border-color: rgba(174, 111, 240, 0.18);
  background: rgba(0, 0, 0, 0.18);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .settings-hub-layout {
    grid-template-columns: 1fr;
  }
  .input-action {
    grid-template-columns: 1fr;
  }
  .input-action .btn {
    width: 100%;
  }
}

/* FlowZen — Mídias & Logo Pro */
.media-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.media-page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(174, 111, 240, 0.26);
  background: rgba(174, 111, 240, 0.09);
  color: #cfa7ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 10px;
}
.media-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.media-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}
.media-upload-panel,
.brand-panel {
  min-height: 100%;
}
.brand-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(174, 111, 240, 0.22);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.brand-preview-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #0b0b10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-preview-card strong {
  display: block;
  font-size: 18px;
  color: var(--text);
}
.brand-preview-card span {
  display: block;
  margin-top: 3px;
  color: #bda4e9;
  font-size: 12px;
  font-weight: 800;
}
.media-grid-pro {
  grid-template-columns: 1fr;
  gap: 16px;
}
.media-category-panel {
  padding: 18px;
}
.media-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.media-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.media-card-pro {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.018)
  );
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.media-card-pro:hover {
  transform: translateY(-2px);
  border-color: rgba(174, 111, 240, 0.36);
  background: linear-gradient(
    180deg,
    rgba(174, 111, 240, 0.07),
    rgba(255, 255, 255, 0.02)
  );
}
.media-preview {
  width: 100%;
  height: 150px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(174, 111, 240, 0.18),
      transparent 38%
    ),
    #0c0c12;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-preview audio {
  width: calc(100% - 24px);
}
.media-preview-audio {
  gap: 12px;
  padding: 12px;
  flex-direction: column;
  cursor: default;
}
.media-preview-doc {
  flex-direction: column;
  gap: 10px;
  color: #d8c6ff;
}
.media-doc-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(174, 111, 240, 0.14);
  border: 1px solid rgba(174, 111, 240, 0.25);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  color: #d8c6ff;
}
.media-card-body {
  padding: 13px 14px 14px;
}
.media-card-body strong {
  display: block;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.media-card-body span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.media-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.media-card-actions .btn {
  padding: 8px 10px;
  font-size: 11px;
}
.media-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
  color: var(--muted);
}
.media-empty strong {
  color: var(--text);
}
@media (max-width: 980px) {
  .media-page-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .media-management-grid {
    grid-template-columns: 1fr;
  }
  .media-card-list {
    grid-template-columns: 1fr;
  }
}

/* Nota Interna — downloads e modelos personalizados */
.ni-download-select {
  min-width: 118px;
  max-width: 150px;
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text, #f4f4f5);
  border-radius: 10px;
}
.ni-modelos-panel code {
  padding: 2px 6px;
  border: 1px solid rgba(174, 111, 240, 0.25);
  border-radius: 8px;
  background: rgba(174, 111, 240, 0.1);
  color: #d8b4fe;
}
.ni-template-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 86px;
}
@media (max-width: 760px) {
  .ni-template-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .ni-download-select {
    width: 100%;
    max-width: none;
  }
}

/* FlowZen - Usuários e Permissões / Senha Mestra */
.master-security-card {
  border-color: rgba(174, 111, 240, 0.26);
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.1),
    rgba(255, 255, 255, 0.035)
  );
}
.master-security-card.unlocked {
  border-color: rgba(74, 222, 128, 0.34);
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.09),
    rgba(174, 111, 240, 0.035)
  );
}
.master-security-card.locked {
  border-color: rgba(251, 191, 36, 0.28);
}
.panel-lite {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.permission-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.permission-area {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(5, 5, 10, 0.25);
}
.permission-area strong {
  display: block;
  margin-bottom: 8px;
  color: #f4eefc;
  font-size: 13px;
}
.permission-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}
.permission-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  color: #a9a2ba;
  text-transform: none;
  letter-spacing: 0;
}
.permission-actions input {
  width: auto;
  accent-color: #ae6ff0;
}
.permission-matrix.locked {
  opacity: 0.55;
  pointer-events: none;
  filter: saturate(0.55);
}
.user-permission-builder .status-box {
  font-size: 12px;
}

/* FlowZen: separadores leves na nova área de Configurações */
.nav-subheading {
  margin: 10px 14px 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 700;
}
.nav-group-content .nav-subheading:first-child {
  border-top: 0;
  margin-top: 4px;
  padding-top: 0;
}

/* FLOWZEN_GLOBAL_ONBOARDING_UI_20260519 */
.fz-onboarding-shell {
  display: grid;
  gap: 18px;
}
.fz-onboarding-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(122, 92, 255, 0.26),
      transparent 38%
    ),
    radial-gradient(
      circle at 92% 18%,
      rgba(28, 210, 188, 0.18),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(14, 18, 32, 0.96), rgba(17, 21, 39, 0.94));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}
.fz-onboarding-hero h3 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.fz-onboarding-hero p {
  margin: 0;
  color: var(--color-text-secondary, #a8b0c2);
  line-height: 1.55;
}
.fz-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.fz-onboarding-step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}
.fz-onboarding-step strong {
  display: block;
  font-size: 13px;
}
.fz-onboarding-step span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--color-text-secondary, #a8b0c2);
}
.fz-legal-docs-grid {
  display: grid;
  gap: 12px;
}
.fz-legal-doc-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}
.fz-legal-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
}
.fz-legal-doc-title strong {
  display: block;
  font-size: 15px;
}
.fz-legal-doc-title span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-secondary, #a8b0c2);
}
.fz-legal-doc-content {
  display: none;
  padding: 0 16px 14px;
  color: var(--color-text-secondary, #a8b0c2);
  line-height: 1.58;
  font-size: 13px;
  white-space: pre-wrap;
}
.fz-legal-doc-card.is-open .fz-legal-doc-content {
  display: block;
}
.fz-legal-doc-accept {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
  font-size: 13px;
  cursor: pointer;
}
.fz-legal-doc-accept input {
  width: 18px;
  height: 18px;
  accent-color: #7c5cff;
}
.fz-company-onboarding-modal .legal-modal {
  max-width: 980px;
}
.fz-company-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fz-company-form-grid .full {
  grid-column: 1/-1;
}
.fz-onboarding-alert {
  border: 1px solid rgba(255, 193, 7, 0.28);
  background: rgba(255, 193, 7, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  color: #ffd98a;
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .fz-onboarding-steps,
  .fz-company-form-grid {
    grid-template-columns: 1fr;
  }
}

/* FLOWZEN_LICENSE_CARD_SPACING_20260519 */
#flowzenDirectLicenseCard {
  margin-bottom: 24px !important;
}

#flowzenDirectLicenseCard + .panel,
#flowzenDirectLicenseCard + .row,
#flowzenDirectLicenseCard + .cards-grid {
  margin-top: 24px !important;
}

#flowzenDirectLicenseCard .legal-check-row {
  display: grid !important;
  grid-template-columns: 24px 1fr !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 18px !important;
}

#flowzenDirectLicenseCard .legal-check-row input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

#flowzenDirectLicenseCard .legal-check-row span {
  line-height: 1.45 !important;
  text-align: left !important;
}

#flowzenDirectLicenseCard .btn-group {
  margin-top: 18px !important;
}

/* FLOWZEN_QUIZ_IA_PAGE_20260519 */
#page-quiz-ia-flowzen .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#page-quiz-ia-flowzen .checkbox-grid label {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  line-height: 1.35;
}

#page-quiz-ia-flowzen .checkbox-grid input {
  margin-right: 8px;
}

@media (max-width: 860px) {
  #page-quiz-ia-flowzen .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* FLOWZEN_QUIZ_IA_FINAL_SPACING_20260519 */
#page-quiz-ia-flowzen .page-head {
  margin-bottom: 34px !important;
  padding-bottom: 12px !important;
}

#page-quiz-ia-flowzen > .page-head + .panel,
#page-quiz-ia-flowzen > .panel:first-of-type {
  margin-top: 18px !important;
  margin-bottom: 28px !important;
}

#page-quiz-ia-flowzen > .row {
  gap: 24px !important;
  margin-bottom: 28px !important;
}

#page-quiz-ia-flowzen .row + .row {
  margin-top: 18px !important;
}

#page-quiz-ia-flowzen .panel h3 {
  margin-bottom: 8px !important;
}

#page-quiz-ia-flowzen .panel .mini-help {
  margin-bottom: 16px !important;
}

#page-quiz-ia-flowzen textarea {
  min-height: 104px !important;
}

#page-quiz-ia-flowzen #aiQuizFollowupCadence,
#page-quiz-ia-flowzen #aiQuizFollowupApproach,
#page-quiz-ia-flowzen #aiQuizFollowupSpecialOfferRules,
#page-quiz-ia-flowzen #aiQuizFollowupHumanHandoffRules {
  min-height: 82px !important;
}

#page-quiz-ia-flowzen .checkbox-grid {
  margin-top: 12px !important;
  gap: 12px !important;
}

#page-quiz-ia-flowzen .checkbox-grid label {
  min-height: 46px;
  display: flex;
  align-items: center;
}

/* FLOWZEN_LICENSE_VISUAL_LOCK_SAFE_20260519 */
#flowzenLicenseVisualLockBanner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px 0;
  padding: 12px 14px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(42, 31, 13, 0.94),
    rgba(24, 20, 15, 0.94)
  );
  box-shadow: 0 16px 42px rgba(250, 204, 21, 0.06);
  color: #fde68a;
}

#flowzenLicenseVisualLockBanner strong {
  color: #fff;
}
#flowzenLicenseVisualLockBanner p {
  margin: 2px 0 0;
  color: #fef3c7;
  font-size: 13px;
  line-height: 1.4;
}
#flowzenLicenseVisualLockBanner .btn,
.fz-license-banner-action {
  white-space: nowrap;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.fz-license-banner-action::after {
  display: none !important;
}

[onclick*="navTo("].fz-license-nav-disabled,
[onclick*="navToPayments("].fz-license-nav-disabled {
  opacity: 0.42 !important;
  filter: saturate(0.45);
  position: relative;
  cursor: not-allowed !important;
  pointer-events: auto !important;
}

[onclick*="navTo("].fz-license-nav-disabled::after,
[onclick*="navToPayments("].fz-license-nav-disabled::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #facc15;
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, 0.1),
    0 0 8px rgba(250, 204, 21, 0.3);
}

[onclick*="navTo("].fz-license-nav-allowed,
[onclick*="navToPayments("].fz-license-nav-allowed {
  opacity: 1 !important;
  filter: none !important;
}

/* FLOWZEN_ADMIN_MASTER_COMPANIES_PREMIUM_20260520 */
.admin-master-company-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(220px, 0.9fr) minmax(
      180px,
      0.8fr
    );
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.018)
  );
  cursor: pointer;
  transition: 0.16s ease;
}
.admin-master-company-row:hover {
  transform: translateY(-1px);
  border-color: rgba(174, 111, 240, 0.38);
  box-shadow: 0 18px 48px rgba(174, 111, 240, 0.08);
}
@media (max-width: 900px) {
  .admin-master-company-row {
    grid-template-columns: 1fr;
  }
}

/* FLOWZEN_FINAL_UI_FIX_20260520 */
.flowzen-panel-highlight {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  box-shadow:
    0 0 0 6px rgba(96, 165, 250, 0.16),
    0 18px 50px rgba(15, 23, 42, 0.22);
  transition:
    outline 0.25s ease,
    box-shadow 0.25s ease;
}
.nav-icon img {
  max-width: 100%;
  max-height: 100%;
}

/* FLOWZEN_V10_1_TERMS_COMPLETE_ACCEPTANCE */
.fz-terms-v101 .fz-onboarding-hero {
  margin-bottom: 14px;
}
.fz-terms-v101 .fz-terms-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}
.fz-terms-progress {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}
.fz-terms-final-check {
  margin-top: 12px;
  border-color: rgba(174, 111, 240, 0.28) !important;
  background: linear-gradient(
    135deg,
    rgba(174, 111, 240, 0.105),
    rgba(217, 110, 234, 0.035)
  ) !important;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.fz-terms-final-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--acc);
}
.fz-legal-doc-card[data-required="true"] .fz-legal-doc-title span::after {
  content: " · aceite necessário";
  color: var(--yel);
  font-weight: 800;
}
.fz-legal-doc-head .btn {
  pointer-events: none;
  white-space: nowrap;
}
.fz-legal-doc-content {
  max-height: 230px;
  overflow: auto;
  padding-right: 18px;
}
.fz-legal-doc-card.is-open .fz-legal-doc-content {
  display: block;
}
.fz-legal-doc-content::-webkit-scrollbar {
  width: 4px;
}
.fz-legal-doc-content::-webkit-scrollbar-thumb {
  background: rgba(58, 58, 80, 0.9);
  border-radius: 2px;
}
@media (max-width: 720px) {
  .fz-terms-v101 .fz-terms-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fz-legal-doc-head {
    align-items: flex-start;
  }
  .fz-legal-doc-content {
    max-height: 200px;
  }
}

/* FLOWZEN_TERMS_ACTIONS_FIX_V10_1_1_20260524 */
#termsFirstAccessModal .fz-legal-doc-head,
#termsFirstAccessModal .fz-legal-doc-head button,
#termsFirstAccessModal .fz-legal-doc-accept,
#termsFirstAccessModal .fz-legal-doc-accept input,
#termsFirstAccessModal #termsFirstAccessCheck,
#termsFirstAccessModal #termsFirstAccessAcceptBtn {
  pointer-events: auto !important;
}
#termsFirstAccessModal .fz-legal-doc-head button {
  position: relative;
  z-index: 2;
}
#termsFirstAccessModal .fz-legal-doc-card.is-accepted {
  border-color: rgba(74, 222, 128, 0.26);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.045) inset;
}
#termsFirstAccessModal .fz-legal-doc-card.is-accepted .fz-legal-doc-accept {
  color: var(--green);
  background: rgba(74, 222, 128, 0.045);
}
#termsFirstAccessModal #termsFirstAccessAcceptBtn.is-ready {
  opacity: 1;
  cursor: pointer;
}
#termsFirstAccessModal #termsFirstAccessAcceptBtn:disabled {
  cursor: not-allowed;
}

/* FLOWZEN_TERMS_FINAL_RELEASE_FIX_V10_1_2_20260524 */
#termsFirstAccessModal .fz-terms-final-check-v1012 {
  display: flex !important;
  margin: 10px 22px 10px !important;
  position: relative;
  z-index: 4;
}
#termsFirstAccessModal .fz-terms-final-check-v1012 input:disabled {
  opacity: 0.72;
}
#termsFirstAccessModal #termsFirstAccessAcceptBtn.is-ready {
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer !important;
}
#termsFirstAccessModal .legal-modal-actions {
  position: relative;
  z-index: 5;
  background: linear-gradient(
    180deg,
    rgba(9, 10, 17, 0.35),
    rgba(9, 10, 17, 0.96)
  );
}

/* FLOWZEN_ACCOUNT_CARD_CLICK_FIX_V10_1_5_20260524
   Remove o ponto/luz verde residual do card da conta e reforça área clicável sem alterar identidade visual. */
.account-identity-toggle,
.brand-account-shell,
.account-menu-chevron {
  pointer-events: auto !important;
}
.account-photo-slot i {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  box-shadow: none !important;
  background: transparent !important;
}
.account-identity-toggle {
  cursor: pointer !important;
}
.account-menu-panel.open {
  display: block !important;
}

/* FLOWZEN_V11_0_3_LOGIN_TITLE_FIX: microajuste controlado, sem alterar grid/cores globais */
.login-card h2 small {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(245, 246, 255, 0.72);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.login-card h2 span {
  display: block;
  line-height: 1.05;
}

/* FLOWZEN_V11_0_3_2_5_1_CRM_SALES_BUTTON_CONTRACT_FIX */
.fz-required::after {
  content: " *";
  color: #fbbf24;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 2px;
  text-transform: none;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}
.fiscal-config-grid,
.fiscal-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  align-items: start;
}
.fiscal-config-grid .panel,
.fiscal-action-grid .panel {
  min-width: 0;
  height: 100%;
}
.fiscal-sefaz-panel {
  grid-column: 1 / -1;
  max-width: 100%;
  width: 100%;
}
#page-fiscal-notas .fiscal-preview-readable {
  min-height: 300px;
  border: 1px solid rgba(41, 41, 58, 0.9);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.032),
    rgba(174, 111, 240, 0.028)
  );
  padding: 18px;
  overflow: auto;
  color: var(--text);
}
.fiscal-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.fiscal-preview-head h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.fiscal-preview-head p {
  font-size: 12px;
  color: var(--muted);
}
.fiscal-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.fiscal-preview-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 10px;
}
.fiscal-preview-grid strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 5px;
}
.fiscal-preview-grid span {
  font-weight: 800;
  color: var(--text);
}
.fiscal-preview-section {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.1);
}
.fiscal-preview-section strong {
  display: block;
  margin-bottom: 8px;
}
.fiscal-preview-section ul {
  margin-left: 18px;
  color: #d7d7e7;
  font-size: 12.5px;
  line-height: 1.5;
}
.fiscal-preview-debug {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
}
.fiscal-preview-debug summary {
  cursor: pointer;
  color: #cdb7ff;
  font-size: 12px;
  font-weight: 800;
}
.fiscal-preview-debug pre {
  white-space: pre-wrap;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: #b9b9cc;
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
}
@media (max-width: 1180px) {
  .fiscal-config-grid,
  .fiscal-action-grid {
    grid-template-columns: 1fr;
  }
  .fiscal-sefaz-panel {
    max-width: none;
  }
}

/* V11.0.3.3.4 — Fiscal / Notas / SEFAZ spacing fix — local only */
#page-fiscal-notas .fiscal-sefaz-panel .status-box,
#page-fiscal-notas .fiscal-sefaz-panel .status-box.warn,
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox,
#page-fiscal-notas .fiscal-sefaz-panel #sefazCertificateBox {
  display: block;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 18px 18px;
  line-height: 1.7;
}

#page-fiscal-notas .fiscal-sefaz-panel .btn-group + .status-box,
#page-fiscal-notas .fiscal-sefaz-panel .btn-group + #sefazStatusBox,
#page-fiscal-notas .fiscal-sefaz-panel .btn-group + #sefazCertificateBox {
  margin-top: 32px;
}

#page-fiscal-notas .fiscal-sefaz-panel .btn-group {
  margin-bottom: 18px;
}

#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox + #sefazCertificateBox,
#page-fiscal-notas .fiscal-sefaz-panel .status-box + .status-box,
#page-fiscal-notas .fiscal-sefaz-panel .status-box.warn + .status-box.warn,
#page-fiscal-notas .fiscal-sefaz-panel .status-box.warn + .status-box,
#page-fiscal-notas .fiscal-sefaz-panel .status-box + .status-box.warn {
  margin-top: 20px;
}

#page-fiscal-notas .fiscal-sefaz-panel .status-box p,
#page-fiscal-notas .fiscal-sefaz-panel .status-box.warn p,
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox p,
#page-fiscal-notas .fiscal-sefaz-panel #sefazCertificateBox p {
  margin: 0 0 10px 0;
}

#page-fiscal-notas .fiscal-sefaz-panel .status-box p:last-child,
#page-fiscal-notas .fiscal-sefaz-panel .status-box.warn p:last-child,
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox p:last-child,
#page-fiscal-notas .fiscal-sefaz-panel #sefazCertificateBox p:last-child {
  margin-bottom: 0;
}

/* V11.0.3.3.4 — Fiscal / Notas top status box spacing fix — local only */
#page-fiscal-notas #fiscalStatusBox {
  display: block;
  margin-top: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  line-height: 1.55;
}

#page-fiscal-notas .btn-group + #fiscalStatusBox {
  margin-top: 18px;
}

/* V11.0.3.3.4 — Fiscal / Notas SEFAZ direct status spacing override — local only */
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox {
  margin-top: 32px;
}

#page-fiscal-notas .fiscal-sefaz-panel #sefazCertificateBox {
  margin-top: 24px;
}

/* V11.0.3.3.4 — Fiscal / Notas SEFAZ badge spacing — local only */
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox .badge,
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox .pill,
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox span[class*="badge"],
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox span[class*="pill"] {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  margin-bottom: 10px;
}

#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox br + .badge,
#page-fiscal-notas .fiscal-sefaz-panel #sefazStatusBox br + .pill,
#page-fiscal-notas
  .fiscal-sefaz-panel
  #sefazStatusBox
  br
  + span[class*="badge"],
#page-fiscal-notas
  .fiscal-sefaz-panel
  #sefazStatusBox
  br
  + span[class*="pill"] {
  margin-top: 8px;
}

/* V11.0.3.3.4.3 — Nota Interna total display dark override — local only */
#page-nota-interna #niTotalDisplay {
  background: var(--surf2, #191922) !important;
  color: var(--text, #ececf5) !important;
  -webkit-text-fill-color: var(--text, #ececf5) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  opacity: 1 !important;
}

/* V11.0.3.3.4.3 — Nota Interna select dark fix — local only */
#page-nota-interna select,
#page-nota-interna .ni-download-select {
  background: var(--surf2, #191922) !important;
  color: var(--text, #ececf5) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color-scheme: dark;
}

#page-nota-interna select option,
#page-nota-interna .ni-download-select option {
  background: #191922 !important;
  color: #ececf5 !important;
}

#page-nota-interna select option:checked,
#page-nota-interna .ni-download-select option:checked {
  background: #6d3bdc !important;
  color: #ffffff !important;
}

/* FlowZen Agent Local — guided installer visual */
.agent-pro-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.agent-pro-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.agent-pro-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}
.agent-local-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(180, 110, 255, 0.24);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(160, 90, 255, 0.12),
    rgba(255, 255, 255, 0.035)
  );
  color: var(--muted, #b8adc8);
  white-space: nowrap;
}
.agent-local-address code {
  color: #d69cff;
  font-weight: 800;
  background: transparent;
}
.agent-stepper-card,
.agent-install-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(168, 90, 255, 0.13), transparent 32%),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    );
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}
.agent-stepper-card {
  padding: 18px 20px;
}
.agent-stepper-title {
  color: #c78cff;
  font-weight: 900;
  margin-bottom: 14px;
}
.agent-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.agent-step span,
.agent-mini-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(188, 105, 255, 0.62);
  background: rgba(146, 76, 255, 0.18);
  color: #d9b7ff;
  font-weight: 900;
  flex: 0 0 auto;
}
.agent-step strong {
  color: #eee8ff;
  font-size: 13px;
  line-height: 1.25;
}
.agent-step-line {
  height: 1px;
  flex: 1 1 auto;
  min-width: 32px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}
.agent-install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.agent-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}
.agent-install-card {
  padding: 20px;
}
.agent-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.agent-card-title-row strong {
  display: block;
  color: #f1ebff;
  font-size: 17px;
  margin-bottom: 7px;
}
.agent-card-title-row span:not(.agent-os-icon) {
  display: block;
  color: var(--muted, #a99fba);
  font-size: 13px;
  line-height: 1.45;
}
.agent-os-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cf95ff;
  background: rgba(150, 79, 255, 0.15);
  border: 1px solid rgba(186, 105, 255, 0.24);
  box-shadow: 0 0 22px rgba(159, 82, 255, 0.12);
  flex: 0 0 auto;
}
.agent-linux-card {
  border-left: 1px solid rgba(72, 255, 137, 0.42);
}
.agent-windows-card {
  border-left: 1px solid rgba(84, 157, 255, 0.46);
}
.agent-download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.agent-download-buttons .btn {
  min-height: 34px;
}
.agent-card-divider {
  height: 1px;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
}
.agent-mini-steps strong {
  display: block;
  margin-bottom: 10px;
  color: #d6c7e9;
}
.agent-mini-steps p {
  margin: 8px 0;
  color: var(--muted, #afa5bd);
  font-size: 13px;
}
.agent-mini-steps span {
  width: 20px;
  height: 20px;
  font-size: 11px;
  margin-right: 8px;
}
.agent-pairing-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.agent-pairing-input-row input {
  flex: 1 1 auto;
  min-height: 46px;
}
.agent-status-shell #flowzenAgentStatus {
  min-height: 100%;
}
.agent-status-shell #flowzenAgentStatus strong {
  font-size: 17px;
}
.agent-status-shell .badge {
  display: inline-flex;
  margin: 14px 0 10px;
  padding: 8px 12px;
  border-radius: 12px;
}
.agent-status-shell .btn-primary {
  min-width: 250px;
  margin-top: 16px;
}
@media (max-width: 1180px) {
  .agent-pro-header,
  .agent-install-grid,
  .agent-bottom-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .agent-stepper {
    align-items: flex-start;
    flex-direction: column;
  }
  .agent-step-line {
    display: none;
  }
  .agent-local-address {
    white-space: normal;
  }
}

/* FlowZen Agent Local — icon and polish corrections */
.agent-stepper-card,
.agent-install-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.018)
  ) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
}
.agent-title-icon,
.agent-local-address-icon,
.agent-os-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.agent-title-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  color: #c78cff;
  vertical-align: middle;
}
.agent-local-address-icon {
  width: 20px;
  height: 20px;
  color: #c78cff;
}
.agent-os-icon svg {
  width: 21px;
  height: 21px;
}
.agent-icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}
.agent-icon-btn svg {
  width: 17px;
  height: 17px;
}
.agent-verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 280px !important;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 900;
}
.agent-verify-btn svg {
  width: 18px;
  height: 18px;
}
.agent-status-shell #flowzenAgentStatus .badge {
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

/* FlowZen Agent Local — final SVG icon polish */
.agent-stepper-card,
.agent-install-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.042),
    rgba(255, 255, 255, 0.018)
  ) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
}
.agent-title-icon,
.agent-local-address-icon,
.agent-os-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.agent-title-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  color: #c78cff;
  vertical-align: middle;
}
.agent-local-address-icon {
  width: 20px;
  height: 20px;
  color: #c78cff;
}
.agent-os-icon svg {
  width: 21px;
  height: 21px;
}
.agent-icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}
.agent-icon-btn svg {
  width: 17px;
  height: 17px;
}
.agent-verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 280px !important;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 900;
}
.agent-verify-btn svg {
  width: 18px;
  height: 18px;
}
.agent-status-shell #flowzenAgentStatus .badge {
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

/* === FlowZen Agent UI Refinement === */
#flowzenAgentStatus {
  display: block;
}

#flowzenAgentStatus strong,
#flowzenAgentStatus .agent-status-title {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #f5f7ff;
  margin-bottom: 10px;
}

#flowzenAgentStatus .mini-help,
#flowzenAgentStatus p,
#flowzenAgentStatus span {
  font-size: 14px;
  line-height: 1.65;
}

#flowzenAgentStatus .agent-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

#flowzenAgentStatus .agent-verify-btn,
#flowzenAgentStatus button[data-agent-action="verify"],
#flowzenAgentStatus .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

#flowzenAgentStatus .agent-verify-btn svg,
#flowzenAgentStatus button[data-agent-action="verify"] svg,
#flowzenAgentStatus .btn-primary svg {
  display: none !important;
}

#flowzenAgentStatus .agent-verify-btn::before,
#flowzenAgentStatus button[data-agent-action="verify"]::before {
  content: none !important;
}

#flowzenAgentStatus .agent-status-copy {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(230, 234, 255, 0.82);
}

#flowzenAgentStatus .agent-status-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
}
/* === /FlowZen Agent UI Refinement === */
\n\n/* === FlowZen Agent Final Balance === */
.agent-pro-wrap {
  gap: 14px !important;
}

.agent-pro-header h2 {
  font-size: 26px !important;
}

.agent-pro-header .mini-help {
  font-size: 13px !important;
}

.agent-stepper-card {
  padding: 16px 18px !important;
}

.agent-stepper-title {
  font-size: 14px !important;
  line-height: 1.3 !important;
}

.agent-step strong {
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.agent-step span {
  width: 26px !important;
  height: 26px !important;
  font-size: 13px !important;
}

.agent-install-card {
  padding: 18px 20px !important;
}

.agent-card-title-row {
  gap: 12px !important;
}

.agent-card-title-row strong {
  font-size: 15px !important;
  line-height: 1.35 !important;
  margin-bottom: 5px !important;
}

.agent-card-title-row span:not(.agent-os-icon) {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.agent-os-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 13px !important;
}

.agent-download-buttons {
  gap: 9px !important;
  margin-top: 16px !important;
}

.agent-download-buttons .btn {
  min-height: 32px !important;
  padding: 0 13px !important;
  font-size: 12px !important;
}

.agent-card-divider {
  margin: 16px 0 13px !important;
}

.agent-mini-steps strong {
  font-size: 14px !important;
  margin-bottom: 9px !important;
}

.agent-mini-steps p {
  margin: 7px 0 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.agent-mini-steps span {
  width: 19px !important;
  height: 19px !important;
  font-size: 10.5px !important;
}

.agent-bottom-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.agent-bottom-grid .agent-install-card {
  min-height: 218px !important;
}

.agent-pairing-input-row {
  margin-top: 16px !important;
}

.agent-pairing-input-row input {
  min-height: 42px !important;
  font-size: 13px !important;
}

.agent-icon-btn {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
}

#flowzenAgentStatus {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 100% !important;
}

#flowzenAgentStatus strong {
  font-size: 15px !important;
  line-height: 1.35 !important;
  margin-bottom: 14px !important;
}

#flowzenAgentStatus .badge {
  font-size: 11.5px !important;
  min-height: 26px !important;
  padding: 5px 9px !important;
  margin: 4px 10px 8px 0 !important;
}

#flowzenAgentStatus .mini-help,
#flowzenAgentStatus span {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

#flowzenAgentStatus .agent-verify-btn,
#flowzenAgentStatus button[data-agent-action="verify"] {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 100% !important;
  min-height: 42px !important;
  margin-top: 14px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

#flowzenAgentStatus .agent-verify-btn svg,
#flowzenAgentStatus button[data-agent-action="verify"] svg {
  display: none !important;
}

#flowzenAgentPairingHelp {
  font-size: 12px !important;
}

.agent-local-address {
  padding: 10px 14px !important;
  border-radius: 15px !important;
  font-size: 13px !important;
}

.agent-local-address code {
  font-size: 12px !important;
}
/* === /FlowZen Agent Final Balance === */
\n\n\n/* === FlowZen Agent Buttons Harmony === */
.agent-install-card,
#flowzenAgentStatus {
  border-radius: 20px !important;
}

.agent-install-card strong,
#flowzenAgentStatus strong {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.agent-install-card .mini-help,
#flowzenAgentStatus .mini-help,
#flowzenAgentStatus span {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.agent-pairing-actions,
.agent-status-actions {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
}

.agent-pairing-actions .btn,
.agent-status-actions .btn,
#flowzenAgentStatus .btn {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.agent-status-actions .btn {
  min-width: 220px !important;
  justify-content: center !important;
}

.flowzen-agent-button-align-fix,
.agent-status-actions .agent-verify-btn {
  margin-top: 0 !important;
  align-self: stretch !important;
}

.agent-mode-option,
.agent-install-card,
.agent-status-pro {
  transition:none !important;
}

.agent-verify-btn {
  min-width: 220px !important;
}

.agent-test-btn {
  min-width: 220px !important;
}

#flowzenAgentStatus .agent-verify-btn,
#flowzenAgentStatus .agent-test-btn {
  flex: 1 1 220px !important;
}

#flowzenAgentStatus .agent-verify-btn svg,
#flowzenAgentStatus .agent-test-btn svg {
  display: none !important;
}

.agent-pairing-actions .btn {
  min-width: 128px !important;
}

#flowzenAgentStatus {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

#flowzenAgentStatus .status-inline-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 4px 0 10px !important;
}

#flowzenAgentStatus .status-inline-row .badge,
#flowzenAgentStatus .status-inline-row strong {
  margin: 0 !important;
}

#flowzenAgentStatus .agent-status-actions {
  margin-top: 16px !important;
}

#flowzenAgentStatus .agent-status-actions + * {
  margin-top: 10px !important;
}
/* === /FlowZen Agent Buttons Harmony === */
\n
/* FlowZen Drive — usa o design system existente, sem alterar identidade visual global */
.drive-progress {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.drive-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(174, 111, 240, 0.95),
    rgba(58, 222, 199, 0.95)
  );
  transition: width 0.25s ease;
}
.drive-note-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.drive-note-card .mini-help {
  max-width: 760px;
  white-space: pre-wrap;
}
.drive-file-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* FlowZen Tracking / UTMs — estilos complementares usando o visual existente */
.tracking-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.tracking-codebox {
  width: 100%;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 5, 11, 0.72);
  color: #f5f5fb;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}
.tracking-inline-url {
  width: 100%;
  min-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5fb;
  padding: 8px 10px;
  font-size: 12px;
}
.tracking-breakdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.tracking-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  color: #d8d5e6;
}
.tracking-diagnostics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.tracking-diagnostics-list > div,
.panel-soft {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

/* FlowZen Portabilidade de Dados — V11.0.3.3.4.7 */
.portability-form-grid {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.6fr);
}
.portability-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.portability-check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.24);
  font-size: 0.9rem;
  color: var(--muted);
}
.portability-check-list input {
  accent-color: var(--accent);
}
.portability-textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.32);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  line-height: 1.45;
  outline: none;
}
.portability-textarea:focus {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}
.portability-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* FLOWZEN_REGIONAL_SETTINGS_V11_0_3_3_4_8_3 — Ações rápidas ocultas na tela regional, preservadas para uso futuro em Dashboard. */
#page-configuracoes [data-settings-quick-actions="true"],
#page-configuracoes .settings-action-panel,
#page-configuracoes .settings-actions-panel,
#page-configuracoes .settings-action-grid {
  display: none !important;
}
#page-configuracoes .settings-hub-layout {
  align-items: start;
}
#page-configuracoes #regionalCurrentSummary[readonly] {
  cursor: default;
  opacity: 0.95;
}

/* FlowZen Local Agent — UI polish applied to active admin.css */
.agent-pro-wrap .agent-bottom-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr) !important;
  gap: 16px !important;
  align-items: start !important;
  width: 100% !important;
}

.agent-pro-wrap .agent-mode-card {
  grid-column: auto !important;
  min-height: auto !important;
}

.agent-pro-wrap .agent-status-shell {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: auto !important;
}

.agent-pro-wrap .agent-mode-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.agent-pro-wrap .agent-mode-option {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  width: 100% !important;
}

.agent-pro-wrap .agent-mode-option input {
  width: 16px !important;
  height: 16px !important;
  margin: 3px 0 0 0 !important;
}

.agent-pro-wrap .agent-mode-option span {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  min-width: 0 !important;
}

.agent-pro-wrap .agent-mode-option strong {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  white-space: normal !important;
}

.agent-pro-wrap .agent-mode-option small {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.agent-pro-wrap .agent-mode-option code {
  display: inline-flex !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  margin-top: 1px !important;
}

.agent-pro-wrap .agent-lan-url-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px !important;
  align-items: end !important;
  margin-top: 12px !important;
}

.agent-pro-wrap .agent-lan-url-row label {
  grid-column: 1 / -1 !important;
  margin-bottom: -2px !important;
}

.agent-pro-wrap .agent-lan-url-row input {
  width: 100% !important;
  min-height: 42px !important;
}

.agent-pro-wrap .agent-lan-url-row button {
  min-height: 42px !important;
  white-space: nowrap !important;
}

.agent-pro-wrap #flowzenAgentStatus {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: auto !important;
}

.agent-pro-wrap .agent-status-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.agent-pro-wrap .agent-status-actions .btn,
.agent-pro-wrap .agent-status-actions .agent-verify-btn {
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  .agent-pro-wrap .agent-bottom-grid {
    grid-template-columns: 1fr !important;
  }

  .agent-pro-wrap .agent-status-shell {
    grid-column: auto !important;
  }

  .agent-pro-wrap .agent-status-actions {
    grid-template-columns: 1fr !important;
  }
}

/* FlowZen Local Agent — Premium PRO compact layout */
.agent-pro-wrap .agent-bottom-grid {
  display: grid !important;
  grid-template-columns: minmax(520px, 1.2fr) minmax(360px, 0.8fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.agent-pro-wrap .agent-bottom-grid > .agent-install-card {
  min-height: 0 !important;
}

.agent-pro-wrap .agent-mode-card,
.agent-pro-wrap
  .agent-bottom-grid
  > .agent-install-card:not(.agent-status-shell) {
  height: 100% !important;
}

.agent-pro-wrap .agent-mode-card {
  padding: 20px !important;
}

.agent-pro-wrap .agent-mode-card .agent-card-title-row {
  margin-bottom: 12px !important;
}

.agent-pro-wrap .agent-mode-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.agent-pro-wrap .agent-mode-option {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  min-height: 104px !important;
  padding: 12px !important;
  border-radius: 16px !important;
}

.agent-pro-wrap .agent-mode-option input {
  width: 16px !important;
  height: 16px !important;
  margin: 3px 0 0 !important;
}

.agent-pro-wrap .agent-mode-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  min-width: 0 !important;
}

.agent-pro-wrap .agent-mode-copy strong {
  font-size: 12px !important;
  line-height: 1.18 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

.agent-pro-wrap .agent-mode-copy small {
  font-size: 10px !important;
  line-height: 1.35 !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase !important;
}

.agent-pro-wrap .agent-mode-copy code {
  display: inline-flex !important;
  align-self: flex-start !important;
  max-width: 100% !important;
  padding: 4px 7px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.agent-pro-wrap .agent-lan-url-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: end !important;
  margin-top: 12px !important;
}

.agent-pro-wrap .agent-lan-url-row label {
  grid-column: 1 / -1 !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.agent-pro-wrap .agent-lan-url-row input {
  min-height: 40px !important;
  padding: 9px 12px !important;
}

.agent-pro-wrap .agent-lan-url-row button {
  min-height: 40px !important;
  padding: 0 14px !important;
}

.agent-pro-wrap .agent-mode-card > .mini-help {
  margin-top: 10px !important;
  line-height: 1.35 !important;
}

.agent-pro-wrap .agent-status-shell {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 18px 20px !important;
}

.agent-pro-wrap #flowzenAgentStatus {
  min-height: 0 !important;
}

.agent-pro-wrap .agent-status-pro {
  display: grid !important;
  gap: 10px !important;
}

.agent-pro-wrap .agent-status-pro-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.agent-pro-wrap .agent-status-pro-head strong {
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.agent-pro-wrap .agent-status-pro-head .badge {
  margin: 0 !important;
  white-space: nowrap !important;
}

.agent-pro-wrap .agent-status-message {
  margin: 0 !important;
  max-width: 900px !important;
  color: #b8b1c8 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.agent-pro-wrap .agent-status-meta-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px 14px !important;
  max-width: 980px !important;
}

.agent-pro-wrap .agent-status-meta {
  min-width: 0 !important;
  color: #9f98b3 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.agent-pro-wrap .agent-status-meta code,
.agent-pro-wrap .agent-status-message code {
  color: #e8ddff !important;
  background: rgba(149, 91, 255, 0.13) !important;
  border: 1px solid rgba(174, 111, 240, 0.22) !important;
  border-radius: 8px !important;
  padding: 2px 6px !important;
}

.agent-pro-wrap .agent-status-actions {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 0.7fr) minmax(
      180px,
      0.7fr
    ) !important;
  gap: 10px !important;
  margin-top: 4px !important;
  align-items: center !important;
}

.agent-pro-wrap .agent-status-actions .btn,
.agent-pro-wrap .agent-status-actions .agent-verify-btn {
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  border-radius: 14px !important;
}

.agent-pro-wrap .agent-printer-list {
  margin-top: 0 !important;
  max-height: 150px !important;
  overflow: auto !important;
}

@media (max-width: 1120px) {
  .agent-pro-wrap .agent-bottom-grid {
    grid-template-columns: 1fr !important;
  }

  .agent-pro-wrap .agent-mode-options {
    grid-template-columns: 1fr !important;
  }

  .agent-pro-wrap .agent-status-shell {
    grid-column: auto !important;
  }

  .agent-pro-wrap .agent-status-meta-grid,
  .agent-pro-wrap .agent-status-actions {
    grid-template-columns: 1fr !important;
  }
}

/* FlowZen Printers — Premium PRO real-test UI/UX */
.agent-mode-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: start !important;
  margin-top: 16px !important;
}
.agent-mode-option,
.agent-mode-option.active {
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.agent-mode-option input[type="radio"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  border-radius: 3px !important;
  border: 1px solid rgba(190, 166, 235, 0.72) !important;
  background: rgba(12, 13, 22, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(130, 82, 210, 0.1) !important;
  cursor: pointer !important;
}
.agent-mode-option input[type="radio"]:checked {
  border-color: rgba(199, 163, 255, 0.95) !important;
  background-color: rgba(139, 92, 246, 0.88) !important;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.1 6.1 5.1 8.1 8.9 3.9' fill='none' stroke='white' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 10px 10px !important;
  box-shadow:
    0 0 0 2px rgba(139, 92, 246, 0.16),
    0 0 10px rgba(139, 92, 246, 0.22) !important;
}
.agent-mode-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}
.agent-mode-copy strong {
  font-size: 11.5px !important;
  line-height: 1.18 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
  color: #ebe4f5 !important;
}
.agent-mode-copy small {
  max-width: 260px !important;
  font-size: 10.2px !important;
  line-height: 1.35 !important;
  color: #aaa4ba !important;
}
.agent-mode-copy code {
  display: inline-flex !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 4px !important;
  padding: 5px 8px !important;
  border-radius: 8px !important;
  font-size: 10.5px !important;
  color: #dfc7ff !important;
  background: rgba(123, 77, 180, 0.22) !important;
  border: 1px solid rgba(190, 142, 255, 0.22) !important;
}
.agent-pairing-input-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  gap: 8px !important;
  align-items: center !important;
}
.agent-icon-btn {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* FlowZen printers agent mode no-motion guard: keep Local/LAN switch instant and stable. */
#page-impressoras .agent-pro-wrap .agent-mode-card,
#page-impressoras .agent-pro-wrap .agent-mode-options,
#page-impressoras .agent-pro-wrap .agent-mode-option,
#page-impressoras .agent-pro-wrap .agent-mode-option.active,
#page-impressoras .agent-pro-wrap .agent-mode-option *,
#page-impressoras .agent-pro-wrap .agent-lan-url-row,
#page-impressoras .agent-pro-wrap .agent-lan-url-row *,
#page-impressoras .agent-pro-wrap #flowzenAgentBaseUrl,
#page-impressoras .agent-pro-wrap [data-agent-action="save-agent-url"] {
  transition:none !important;
  animation:none !important;
  transform:none !important;
}

#page-impressoras .agent-pro-wrap .agent-lan-url-row,
#page-impressoras .agent-pro-wrap .agent-lan-url-row.is-muted {
  min-height:76px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#page-impressoras .agent-pro-wrap .agent-lan-url-row.is-muted input,
#page-impressoras .agent-pro-wrap .agent-lan-url-row.is-muted button {
  opacity: 0.62 !important;
}
.agent-status-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}
.agent-status-actions .btn {
  min-height: 42px !important;
  width: 100% !important;
  margin: 0 !important;
}

#page-impressoras .row {
  align-items: start !important;
}
#page-impressoras .panel {
  min-height: 0 !important;
}
#page-impressoras .mini-list {
  min-height: 0 !important;
}
#page-impressoras > .row:has(#printerConfigPanel) {
  grid-template-columns: minmax(340px, 0.9fr) minmax(560px, 1.1fr);
  gap: 16px;
}
#page-impressoras > .row:has(#printerHistoryList) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
#page-impressoras > .row:has(#printerConfigPanel) > .panel,
#page-impressoras > .row:has(#printerHistoryList) > .panel {
  height: 100%;
}
.printer-list,
#printerHistoryList,
#printerPresetList,
#printerCatalogModelList {
  overflow: hidden;
}
.printer-list-pro,
.printer-history-pro-list,
.printer-preset-pro-list,
.printer-catalog-row-list,
.barcode-reader-preset-pro-list {
  display: grid;
  gap: 10px;
}
.printer-list-pro,
.printer-history-pro-list,
.printer-preset-pro-list,
.printer-catalog-row-list {
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}
.printer-catalog-row-list {
  max-height: 520px;
}
.printer-history-pro-list,
.printer-preset-pro-list {
  max-height: 380px;
}
.printer-list-pro::-webkit-scrollbar,
.printer-history-pro-list::-webkit-scrollbar,
.printer-preset-pro-list::-webkit-scrollbar,
.printer-catalog-row-list::-webkit-scrollbar {
  width: 5px;
}
.printer-list-pro::-webkit-scrollbar-track,
.printer-history-pro-list::-webkit-scrollbar-track,
.printer-preset-pro-list::-webkit-scrollbar-track,
.printer-catalog-row-list::-webkit-scrollbar-track {
  background: transparent;
}
.printer-list-pro::-webkit-scrollbar-thumb,
.printer-history-pro-list::-webkit-scrollbar-thumb,
.printer-preset-pro-list::-webkit-scrollbar-thumb,
.printer-catalog-row-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.28);
  border-radius: 999px;
}
.printer-item-pro,
.printer-history-pro-item,
.printer-preset-pro,
.printer-catalog-row,
.barcode-reader-preset-pro,
.printer-empty-state {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  border-radius: 16px;
  padding: 14px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.printer-item-pro-head,
.printer-history-pro-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.printer-item-pro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.printer-item-pro-meta span,
.printer-history-pro-item span,
.printer-preset-pro small,
.barcode-reader-preset-pro small {
  color: #9ca3b8;
  font-size: 11.5px;
}
.printer-history-pro-item em,
.printer-preset-pro em {
  font-style: normal;
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e8def7;
  background: rgba(124, 58, 237, 0.16);
  white-space: nowrap;
}
.printer-history-pro-item em.ok {
  color: #57f287;
  border-color: rgba(87, 242, 135, 0.22);
  background: rgba(87, 242, 135, 0.08);
}
.printer-history-pro-item em.warn {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.22);
  background: rgba(250, 204, 21, 0.08);
}
.printer-preset-pro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  width: 100%;
}
.printer-preset-pro:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.12);
}
.printer-preset-pro span,
.barcode-reader-preset-pro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.printer-catalog-panel {
  overflow: hidden;
  border-color: rgba(168, 85, 247, 0.2);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(124, 58, 237, 0.035),
    rgba(255, 255, 255, 0.018)
  );
}
.printer-catalog-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 240px);
  gap: 10px;
  margin-bottom: 14px;
}
.printer-catalog-controls.compact {
  grid-template-columns: 1fr minmax(160px, 220px);
}
.printer-catalog-filter-row {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.printer-catalog-filter-row .btn.active {
  border-color: rgba(168, 85, 247, 0.42);
  background: rgba(124, 58, 237, 0.18);
  color: #f5edff;
}
.printer-catalog-table-head,
.printer-catalog-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.25fr) minmax(110px, 0.55fr) minmax(220px, 1.1fr)
    minmax(120px, 0.55fr) minmax(170px, auto);
  gap: 10px;
  align-items: center;
}
.printer-catalog-table-head {
  padding: 0 14px 8px;
  color: #9ca3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.printer-catalog-row small {
  display: block;
  color: #9ca3b8;
  font-size: 11.5px;
  margin-top: 4px;
}
.printer-connection-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.printer-connection-chip-row span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #ddd6fe;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
}
.printer-empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #a7a3b7;
}
.printer-empty-state.compact {
  padding: 12px;
}
.printer-empty-state strong {
  color: #f4f0ff;
}
.printer-empty-state code {
  color: #dfc7ff;
}
.printer-template-profiles-panel {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(124, 58, 237, 0.1),
    rgba(255, 255, 255, 0.035),
    rgba(0, 0, 0, 0.12)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.18);
}
.printer-template-profiles-head h4 {
  margin: 0 0 4px;
}
.printer-module-usage-grid,
.printer-template-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.printer-module-usage-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.printer-template-profile-card {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 14px;
  padding: 12px;
}
.printer-template-profile-card:last-child {
  border-color: rgba(250, 204, 21, 0.22);
  background: linear-gradient(
    145deg,
    rgba(250, 204, 21, 0.055),
    rgba(255, 255, 255, 0.02)
  );
}
.printer-template-profile-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #f3efff;
  margin-bottom: 10px;
}
.printer-template-profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 64px;
  gap: 8px;
}
.printer-template-profile-fields select,
.printer-template-profile-fields input {
  min-height: 36px;
  font-size: 12px;
}

@media (max-width: 1120px) {
  .agent-mode-options {
    grid-template-columns: 1fr !important;
  }
  .agent-status-actions {
    grid-template-columns: 1fr !important;
  }
  .printer-catalog-controls,
  .printer-catalog-controls.compact,
  .printer-catalog-table-head,
  .printer-catalog-row {
    grid-template-columns: 1fr;
  }
  .printer-catalog-table-head {
    display: none;
  }
}

@media (min-width: 1320px) {
  #page-impressoras > .panel:has(.printer-usage-grid) {
    border-color: rgba(168, 85, 247, 0.24);
    background: linear-gradient(
      145deg,
      rgba(124, 58, 237, 0.085),
      rgba(255, 255, 255, 0.028),
      rgba(0, 0, 0, 0.12)
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 18px 42px rgba(0, 0, 0, 0.16);
  }
  .printer-template-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  #page-impressoras > .row:has(#printerConfigPanel),
  #page-impressoras > .row:has(#printerHistoryList) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .printer-mode-layout,
  .printer-catalog-controls,
  .printer-catalog-controls.compact,
  .printer-template-profile-grid,
  .printer-template-profile-fields {
    grid-template-columns: 1fr !important;
  }
  .printer-catalog-filter-row .btn,
  .printer-preset-pro .btn-group .btn {
    width: 100%;
  }
  .printer-preset-pro,
  .printer-history-pro-item {
    align-items: stretch;
    flex-direction: column;
  }
  .printer-list-pro,
  .printer-history-pro-list,
  .printer-preset-pro-list,
  .printer-catalog-row-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* FlowZen V11.0.3.3.4.5 — dense professional lower printers layout */
#page-impressoras {
  --printer-dense-border: rgba(255, 255, 255, 0.075);
  --printer-dense-bg: rgba(255, 255, 255, 0.026);
  --printer-dense-bg-2: rgba(124, 58, 237, 0.055);
}

#page-impressoras .printer-mode-layout {
  gap: 14px;
  margin-bottom: 16px;
}

#page-impressoras .printer-mode-layout > .panel {
  padding: 16px;
}

#page-impressoras
  .printer-mode-layout
  > .panel:has(#barcodeReaderPresetList)
  .row {
  gap: 10px;
  margin-bottom: 10px;
}

#page-impressoras
  .printer-mode-layout
  > .panel:has(#barcodeReaderPresetList)
  .btn-group {
  gap: 8px;
  margin-top: 10px;
}

#page-impressoras
  .printer-mode-layout
  > .panel:has(#barcodeReaderPresetList)
  #barcodeReaderStatus {
  margin-top: 10px;
  padding: 10px 12px;
  line-height: 1.35;
}

#barcodeReaderPresetList {
  margin-top: 10px !important;
}

#page-impressoras .barcode-reader-preset-pro-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

#page-impressoras .barcode-reader-preset-pro {
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 11px;
  box-shadow: none;
}

#page-impressoras .barcode-reader-preset-pro strong {
  color: #f4efff;
  font-size: 12.5px;
}

#page-impressoras .barcode-reader-preset-pro span {
  color: #d8d2e6;
  font-size: 12px;
  line-height: 1.25;
}

#page-impressoras .barcode-reader-preset-pro small {
  grid-column: 1/-1;
  font-size: 11px;
  line-height: 1.25;
}

#page-impressoras .printer-catalog-panel {
  padding: 16px;
}

#page-impressoras .printer-catalog-panel > .flex,
#page-impressoras > .row .panel > .flex {
  gap: 12px;
  margin-bottom: 12px !important;
}

#page-impressoras .printer-catalog-panel h3,
#page-impressoras > .row .panel h3 {
  margin-bottom: 3px;
}

#page-impressoras .printer-catalog-controls {
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#page-impressoras .printer-catalog-filter-row {
  gap: 6px;
}

#page-impressoras .printer-catalog-filter-row .btn {
  min-height: 30px;
  padding: 6px 9px;
}

#page-impressoras .printer-catalog-table-head {
  padding: 7px 10px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

#page-impressoras .printer-catalog-row-list {
  gap: 6px;
  max-height: 430px;
}

#page-impressoras .printer-catalog-row {
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--printer-dense-bg);
  box-shadow: none;
}

#page-impressoras .printer-catalog-row strong,
#page-impressoras .printer-preset-pro strong,
#page-impressoras .printer-item-pro strong,
#page-impressoras .printer-history-pro-item strong {
  color: #f5f0ff;
  font-size: 12.5px;
  line-height: 1.2;
}

#page-impressoras .printer-catalog-row small,
#page-impressoras .printer-preset-pro small {
  font-size: 11px;
  line-height: 1.25;
  margin-top: 3px;
}

#page-impressoras .printer-connection-chip-row {
  gap: 5px;
}

#page-impressoras .printer-connection-chip-row span {
  padding: 3px 6px;
  font-size: 10.5px;
}

#page-impressoras .printer-catalog-row .btn-group,
#page-impressoras .printer-preset-pro .btn-group {
  justify-content: flex-end;
  gap: 6px;
}

#page-impressoras .printer-catalog-row .btn,
#page-impressoras .printer-preset-pro .btn,
#page-impressoras .printer-item-pro .btn {
  min-height: 30px;
  padding: 6px 8px;
}

#page-impressoras > .panel:has(.printer-usage-grid) {
  padding: 16px;
  margin-bottom: 16px !important;
  border-color: rgba(168, 85, 247, 0.24);
  background: linear-gradient(
    145deg,
    rgba(124, 58, 237, 0.08),
    rgba(255, 255, 255, 0.028),
    rgba(0, 0, 0, 0.1)
  );
}

#page-impressoras .printer-usage-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

#page-impressoras .printer-usage-grid .check-card,
#page-impressoras .printer-module-usage-grid .check-card,
#page-impressoras #printerConfigPanel .check-grid .check-card {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.075);
  font-size: 12px;
  line-height: 1.25;
}

#page-impressoras #printerUsageStatus {
  margin-top: 10px;
  padding: 9px 11px;
  font-size: 12px;
}

#page-impressoras > .row:has(#printerConfigPanel) {
  grid-template-columns: minmax(300px, 0.72fr) minmax(620px, 1.28fr);
  gap: 14px;
  margin-bottom: 16px !important;
}

#page-impressoras #printerConfigPanel {
  padding: 16px;
}

#page-impressoras #printerConfigPanel h4 {
  margin: 13px 0 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #f2ecff;
  font-size: 12px;
  letter-spacing: 0;
}

#page-impressoras #printerConfigPanel h4:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}

#page-impressoras #printerConfigPanel > .row {
  gap: 10px;
  margin-bottom: 9px;
}

#page-impressoras #printerConfigPanel label,
#page-impressoras .printer-template-profile-title {
  font-size: 11.5px;
}

#page-impressoras #printerConfigPanel input,
#page-impressoras #printerConfigPanel select {
  min-height: 36px;
}

#page-impressoras #printerConfigPanel .check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px !important;
}

#page-impressoras .printer-template-profiles-panel {
  margin: 12px 0;
  padding: 13px;
  border-radius: 14px;
}

#page-impressoras .printer-template-profiles-head .mini-help {
  margin-bottom: 0;
  line-height: 1.35;
}

#page-impressoras .printer-module-usage-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

#page-impressoras .printer-template-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

#page-impressoras .printer-template-profile-card {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: none;
}

#page-impressoras .printer-template-profile-card:last-child {
  grid-column: span 3;
}

#page-impressoras .printer-template-profile-title {
  margin-bottom: 8px;
  line-height: 1.2;
}

#page-impressoras .printer-template-profile-fields {
  grid-template-columns: minmax(74px, 0.9fr) minmax(92px, 1.1fr) 54px;
  gap: 6px;
}

#page-impressoras .printer-template-profile-fields select,
#page-impressoras .printer-template-profile-fields input {
  min-height: 32px;
  font-size: 11.5px;
  padding: 6px 7px;
}

#page-impressoras .printer-list-pro {
  gap: 7px;
  max-height: 520px;
}

#page-impressoras .printer-item-pro {
  padding: 10px;
  border-radius: 12px;
  box-shadow: none;
}

#page-impressoras .printer-item-pro-head {
  gap: 8px;
}

#page-impressoras .printer-item-pro-meta {
  gap: 5px;
  margin-top: 6px;
}

#page-impressoras .printer-item-pro-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10.8px;
}

#page-impressoras .printer-item-pro p.mini-help {
  margin: 7px 0 0;
  line-height: 1.3;
}

#page-impressoras .printer-item-pro .btn-group {
  margin-top: 8px !important;
  gap: 6px;
}

#page-impressoras .printer-empty-state {
  gap: 7px;
  padding: 11px 12px;
  border-radius: 12px;
  box-shadow: none;
  line-height: 1.35;
}

#page-impressoras .printer-empty-state.compact {
  padding: 10px 11px;
}

#page-impressoras .printer-empty-state .btn-group {
  margin-top: 4px !important;
}

#page-impressoras > .row:has(#printerHistoryList) {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

#page-impressoras .printer-history-pro-list,
#page-impressoras .printer-preset-pro-list {
  gap: 6px;
  max-height: 360px;
}

#page-impressoras .printer-history-pro-item {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 11px;
  box-shadow: none;
}

#page-impressoras .printer-history-pro-item span {
  display: block;
  margin-top: 3px;
  line-height: 1.25;
}

#page-impressoras .printer-history-pro-item em {
  padding: 3px 7px;
  font-size: 10.5px;
}

#page-impressoras .printer-preset-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--printer-dense-bg);
  box-shadow: none;
}

#page-impressoras .printer-preset-pro > span:first-child {
  min-width: 0;
}

#page-impressoras .printer-preset-pro > span:first-child small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-impressoras .printer-catalog-controls.compact {
  gap: 8px;
  margin-bottom: 10px;
}

#page-impressoras #printerPanelStatus {
  margin-top: 10px;
  padding: 10px 12px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
}

@media (max-width: 1420px) {
  #page-impressoras .printer-usage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #page-impressoras .printer-module-usage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #page-impressoras .printer-template-profile-card:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 1240px) {
  #page-impressoras > .row:has(#printerConfigPanel),
  #page-impressoras > .row:has(#printerHistoryList) {
    grid-template-columns: 1fr;
  }
  #page-impressoras .printer-template-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-impressoras .printer-template-profile-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  #page-impressoras .printer-catalog-table-head {
    display: none;
  }
  #page-impressoras .printer-catalog-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  #page-impressoras .printer-catalog-row .btn-group {
    justify-content: flex-start;
  }
  #page-impressoras .printer-usage-grid,
  #page-impressoras .printer-module-usage-grid,
  #page-impressoras #printerConfigPanel .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #page-impressoras .printer-mode-layout > .panel,
  #page-impressoras .printer-catalog-panel,
  #page-impressoras #printerConfigPanel,
  #page-impressoras > .panel:has(.printer-usage-grid) {
    padding: 14px;
  }
  #page-impressoras .barcode-reader-preset-pro,
  #page-impressoras .printer-preset-pro {
    grid-template-columns: 1fr;
  }
  #page-impressoras .printer-usage-grid,
  #page-impressoras .printer-module-usage-grid,
  #page-impressoras .printer-template-profile-grid,
  #page-impressoras #printerConfigPanel .check-grid {
    grid-template-columns: 1fr;
  }
  #page-impressoras .printer-template-profile-card:last-child {
    grid-column: auto;
  }
  #page-impressoras .printer-preset-pro > span:first-child small {
    white-space: normal;
  }
}

/* FlowZen V11.0.3.3.4.9.1 — anti-black-screen fallback panel */
.flowzen-page-fallback-panel {
  max-width: 860px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}
.flowzen-page-fallback-panel code {
  display: inline-block;
  margin-top: 8px;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  color: #f1d6ff;
}

/* FlowZen printers agent mode stable layout guard:
   active/inactive options must keep identical box metrics. */
#page-impressoras .agent-pro-wrap .agent-mode-option,
#page-impressoras .agent-pro-wrap .agent-mode-option.active {
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}

#page-impressoras .agent-pro-wrap .agent-mode-option input[type="radio"],
#page-impressoras
  .agent-pro-wrap
  .agent-mode-option.active
  input[type="radio"] {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}

#page-impressoras .agent-pro-wrap .agent-mode-copy,
#page-impressoras .agent-pro-wrap .agent-mode-option.active .agent-mode-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}

#page-impressoras .agent-pro-wrap .agent-mode-copy code,
#page-impressoras
  .agent-pro-wrap
  .agent-mode-option.active
  .agent-mode-copy
  code {
  display: inline-flex !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}

/* FlowZen printers agent mode stable layout guard:
   active/inactive options must keep identical box metrics. */
#page-impressoras .agent-pro-wrap .agent-mode-option,
#page-impressoras .agent-pro-wrap .agent-mode-option.active {
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}

#page-impressoras .agent-pro-wrap .agent-mode-option input[type="radio"],
#page-impressoras
  .agent-pro-wrap
  .agent-mode-option.active
  input[type="radio"] {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}

#page-impressoras .agent-pro-wrap .agent-mode-copy,
#page-impressoras .agent-pro-wrap .agent-mode-option.active .agent-mode-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}

#page-impressoras .agent-pro-wrap .agent-mode-copy code,
#page-impressoras
  .agent-pro-wrap
  .agent-mode-option.active
  .agent-mode-copy
  code {
  display: inline-flex !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}

/* ============================================================
   FlowZen — UI Melhoria Impressoras: Modo conexão + Catálogo
   Chat-10 · 20260604
   ============================================================ */

/* ── Modo de conexão: cards visuais (não estilo terminal) ── */
#page-impressoras
  .printer-mode-layout
  > .panel:first-child
  .printer-mode-grid
  .status-box {
  font-family: inherit;
  white-space: normal;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.018)
  );
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.18s,
    background 0.18s;
  min-height: 90px;
}

#page-impressoras
  .printer-mode-layout
  > .panel:first-child
  .printer-mode-grid
  .status-box:hover {
  border-color: rgba(174, 111, 240, 0.32);
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.085),
    rgba(255, 255, 255, 0.028)
  );
}

#page-impressoras
  .printer-mode-layout
  > .panel:first-child
  .printer-mode-grid
  .status-box
  strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #f5edff;
  letter-spacing: -0.01em;
}

#page-impressoras
  .printer-mode-layout
  > .panel:first-child
  .printer-mode-grid
  .status-box
  .mini-help {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

/* ── Agent download panel: cards uniformes ── */
#page-impressoras .printer-agent-grid .status-box {
  font-family: inherit;
  white-space: normal;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  padding: 14px;
}

#page-impressoras .printer-agent-grid .status-box strong {
  color: #f0e9ff;
  font-size: 12.5px;
  display: block;
  margin-bottom: 4px;
}

#page-impressoras .printer-agent-grid .status-box .mini-help {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ── Leitor de código de barras: status com fonte normal ── */
#page-impressoras #barcodeReaderStatus {
  font-family: inherit;
  white-space: normal;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

/* ── Catálogo: linha de separação por marca visual ── */
#page-impressoras .printer-catalog-row {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.038),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.072);
  border-radius: 12px;
  padding: 10px 12px;
  transition:
    border-color 0.16s,
    background 0.16s;
}

#page-impressoras .printer-catalog-row:hover {
  border-color: rgba(174, 111, 240, 0.28);
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.07),
    rgba(255, 255, 255, 0.025)
  );
}

/* ── Melhorar espaçamento do painel de usos padrão ── */
#page-impressoras
  > .panel:has(.printer-usage-grid)
  .printer-usage-grid
  .check-card:has(input:checked) {
  border-color: rgba(174, 111, 240, 0.4);
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.12),
    rgba(124, 58, 237, 0.06)
  );
  color: #f5edff;
}

/* ── Painel config: campos de grupos mais legíveis ── */
#page-impressoras #printerConfigPanel h4 {
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
  color: #a890cc !important;
  font-weight: 800 !important;
}

/* ── Barcode preset list: cards compactos melhorados ── */
#page-impressoras .barcode-reader-preset-pro {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.038),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow: none;
  transition: border-color 0.16s;
}

#page-impressoras .barcode-reader-preset-pro:hover {
  border-color: rgba(174, 111, 240, 0.3);
}

#page-impressoras .barcode-reader-preset-pro strong {
  font-size: 13px;
  color: #f4efff;
}

/* ── Printer mode layout: alinhamento lado a lado ── */
@media (min-width: 900px) {
  #page-impressoras .printer-mode-layout {
    grid-template-columns: minmax(320px, 0.88fr) minmax(440px, 1.12fr) !important;
    align-items: stretch;
  }
}

/* ── Catalog table head: visual mais limpo ── */
#page-impressoras .printer-catalog-table-head {
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.1),
    rgba(255, 255, 255, 0.018)
  );
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  color: #c4b0e8;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 8px 12px;
}

/* ── Summary cards spacing ── */
#page-impressoras #printerSummaryCards {
  margin-bottom: 16px !important;
}

/* ── Agent download panel: melhorar header ── */
#page-impressoras .agent-download-panel {
  border-color: rgba(174, 111, 240, 0.18);
  background: linear-gradient(
    145deg,
    rgba(174, 111, 240, 0.055),
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.08)
  );
}

#page-impressoras .agent-download-panel h3 {
  color: #f0e8ff;
}

/* ── Printer usage grid: layout responsivo melhorado ── */
@media (max-width: 1100px) {
  #page-impressoras .printer-usage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #page-impressoras .printer-usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #page-impressoras .printer-mode-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   FlowZen Impressoras — gestão full-width PRO
   Impressoras cadastradas acima + formulário completo abaixo.
   ============================================================ */

#page-impressoras .printer-management-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

#page-impressoras .printer-list-panel,
#page-impressoras .printer-config-panel {
  width: 100%;
  max-width: 100%;
}

#page-impressoras .printer-list-panel {
  min-height: 260px;
}

#page-impressoras .printer-list-panel > .flex:first-child {
  align-items: flex-start;
}

#page-impressoras .printer-list-panel h3,
#page-impressoras .printer-config-panel h3 {
  letter-spacing: -.02em;
}

#page-impressoras .printer-list-panel .mini-help {
  max-width: 760px;
}

#page-impressoras #printerListSearch {
  width: 100%;
  min-height: 42px;
}

#page-impressoras #printerList.printer-list {
  min-height: 118px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

#page-impressoras #printerList.printer-list::-webkit-scrollbar {
  width: 8px;
}

#page-impressoras #printerList.printer-list::-webkit-scrollbar-thumb {
  background: rgba(174,111,240,.34);
  border-radius: 999px;
}

#page-impressoras .printer-config-panel {
  position: relative;
  overflow: hidden;
}

#page-impressoras .printer-config-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174,111,240,.72), transparent);
  pointer-events: none;
}

#page-impressoras .printer-config-panel > .flex:first-child {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

#page-impressoras .printer-config-panel h4 {
  margin: 22px 0 12px;
  padding-top: 2px;
  color: rgba(206,170,255,.96);
  font-size: .82rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#page-impressoras .printer-config-panel h4 + .row,
#page-impressoras .printer-config-panel .row + .row {
  margin-top: 12px;
}

#page-impressoras .printer-config-panel .row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

#page-impressoras .printer-config-panel label {
  color: rgba(180,176,205,.88);
  font-size: .72rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}

#page-impressoras .printer-config-panel input,
#page-impressoras .printer-config-panel select {
  min-height: 42px;
}

#page-impressoras .printer-config-panel .check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#page-impressoras .printer-config-panel .check-card {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(18,18,25,.84);
}

#page-impressoras .printer-config-panel > .btn-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}

#page-impressoras #printerPanelStatus {
  min-height: 44px;
}

@media (max-width: 980px) {
  #page-impressoras .printer-config-panel .row,
  #page-impressoras .printer-config-panel .check-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FlowZen Impressoras — gestão full-width PRO
   Impressoras cadastradas acima + formulário completo abaixo.
   ============================================================ */

#page-impressoras .printer-management-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

#page-impressoras .printer-list-panel,
#page-impressoras .printer-config-panel {
  width: 100%;
  max-width: 100%;
}

#page-impressoras .printer-list-panel {
  min-height: 260px;
}

#page-impressoras .printer-list-panel > .flex:first-child {
  align-items: flex-start;
}

#page-impressoras .printer-list-panel h3,
#page-impressoras .printer-config-panel h3 {
  letter-spacing: -.02em;
}

#page-impressoras .printer-list-panel .mini-help {
  max-width: 760px;
}

#page-impressoras #printerListSearch {
  width: 100%;
  min-height: 42px;
}

#page-impressoras #printerList.printer-list {
  min-height: 118px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

#page-impressoras #printerList.printer-list::-webkit-scrollbar {
  width: 8px;
}

#page-impressoras #printerList.printer-list::-webkit-scrollbar-thumb {
  background: rgba(174,111,240,.34);
  border-radius: 999px;
}

#page-impressoras .printer-config-panel {
  position: relative;
  overflow: hidden;
}

#page-impressoras .printer-config-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174,111,240,.72), transparent);
  pointer-events: none;
}

#page-impressoras .printer-config-panel > .flex:first-child {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

#page-impressoras .printer-config-panel h4 {
  margin: 22px 0 12px;
  padding-top: 2px;
  color: rgba(206,170,255,.96);
  font-size: .82rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#page-impressoras .printer-config-panel h4 + .row,
#page-impressoras .printer-config-panel .row + .row {
  margin-top: 12px;
}

#page-impressoras .printer-config-panel .row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

#page-impressoras .printer-config-panel label {
  color: rgba(180,176,205,.88);
  font-size: .72rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}

#page-impressoras .printer-config-panel input,
#page-impressoras .printer-config-panel select {
  min-height: 42px;
}

#page-impressoras .printer-config-panel .check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#page-impressoras .printer-config-panel .check-card {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(18,18,25,.84);
}

#page-impressoras .printer-config-panel > .btn-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}

#page-impressoras #printerPanelStatus {
  min-height: 44px;
}

@media (max-width: 980px) {
  #page-impressoras .printer-config-panel .row,
  #page-impressoras .printer-config-panel .check-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FlowZen Impressoras — Leitor de código de barras PRO
   Camada real: HID teclado + WebHID/WebUSB opcional + Agente Local.
   ============================================================ */

#page-impressoras .barcode-reader-pro-panel {
  position: relative;
  overflow: hidden;
}

#page-impressoras .barcode-reader-pro-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174,111,240,.72), transparent);
  pointer-events: none;
}

#page-impressoras .barcode-reader-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

#page-impressoras .barcode-reader-pro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .9fr) minmax(320px, .85fr);
  gap: 16px;
  align-items: stretch;
}

#page-impressoras .barcode-reader-pro-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.014)),
    rgba(14,14,20,.88);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 16px;
  box-shadow:
    0 8px 28px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.03);
}

#page-impressoras .barcode-reader-pro-card h4 {
  margin: 0;
  color: rgba(206,170,255,.95);
  font-size: .78rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#page-impressoras .barcode-reader-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

#page-impressoras .barcode-reader-settings-grid .check-card.compact {
  min-height: 42px;
  padding: 11px 12px;
  align-items: center;
}

#page-impressoras .barcode-reader-status-pro {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 14px 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(17,17,22,.92);
  color: rgba(236,236,245,.92);
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.028);
}

#page-impressoras .barcode-reader-status-pro.ok {
  border-color: rgba(74,222,128,.25);
}

#page-impressoras .barcode-reader-status-pro.warn {
  border-color: rgba(251,191,36,.30);
}

#page-impressoras .barcode-reader-status-pro.err {
  border-color: rgba(248,113,113,.30);
}

#page-impressoras .barcode-reader-history {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
  padding-right: 4px;
}

#page-impressoras .barcode-reader-history::-webkit-scrollbar {
  width: 8px;
}

#page-impressoras .barcode-reader-history::-webkit-scrollbar-thumb {
  background: rgba(174,111,240,.34);
  border-radius: 999px;
}

#page-impressoras .barcode-reader-history-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.032), rgba(255,255,255,.012)),
    rgba(255,255,255,.018);
}

#page-impressoras .barcode-reader-history-row strong {
  display: block;
  color: rgba(236,236,245,.95);
  font-size: .9rem;
  line-height: 1.25;
}

#page-impressoras .barcode-reader-history-row span {
  display: block;
  color: rgba(138,138,163,.95);
  font-size: .78rem;
  margin-top: 2px;
}

#page-impressoras .barcode-reader-history-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

#page-impressoras .barcode-reader-history-meta small {
  color: rgba(138,138,163,.82);
}

@media (max-width: 1280px) {
  #page-impressoras .barcode-reader-pro-grid {
    grid-template-columns: 1fr 1fr;
  }

  #page-impressoras .barcode-reader-history-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  #page-impressoras .barcode-reader-pro-grid,
  #page-impressoras .barcode-reader-settings-grid {
    grid-template-columns: 1fr;
  }

  #page-impressoras .barcode-reader-badges {
    justify-content: flex-start;
  }
}

/* ============================================================
   FlowZen Impressoras — correção largura total do Leitor PRO
   Mantém o card de código de barras em full-width na página.
   ============================================================ */

#page-impressoras .printer-mode-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  gap: 22px !important;
}

#page-impressoras .printer-mode-layout > .barcode-reader-pro-panel,
#page-impressoras .printer-mode-layout > .panel.barcode-reader-pro-panel {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#page-impressoras .barcode-reader-pro-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#page-impressoras .barcode-reader-pro-panel > .flex:first-child {
  width: 100%;
}

#page-impressoras .barcode-reader-pro-grid {
  width: 100% !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .9fr) minmax(300px, .85fr) !important;
}

#page-impressoras .barcode-reader-pro-card {
  min-width: 0 !important;
}

#page-impressoras .barcode-reader-pro-card .row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  #page-impressoras .barcode-reader-pro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #page-impressoras .barcode-reader-history-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  #page-impressoras .barcode-reader-pro-grid,
  #page-impressoras .barcode-reader-pro-card .row,
  #page-impressoras .barcode-reader-settings-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   FlowZen Impressoras — diagnóstico PRO de conexão da impressora
   ============================================================ */

#page-impressoras .printer-connection-diagnostic {
  border: 1px solid rgba(174,111,240,.18);
  border-radius: 14px;
  padding: 14px 16px;
  background:
    linear-gradient(145deg, rgba(174,111,240,.07), rgba(255,255,255,.015)),
    rgba(15,15,22,.88);
}

#page-impressoras .printer-connection-diagnostic-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

#page-impressoras .printer-connection-diagnostic-head strong {
  color: rgba(236,236,245,.96);
  font-size: .94rem;
}

#page-impressoras .printer-connection-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}

#page-impressoras .printer-connection-diagnostic-grid span {
  display: block;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.025);
  color: rgba(180,176,205,.92);
  font-size: .82rem;
  line-height: 1.45;
}

#page-impressoras .printer-connection-diagnostic-grid strong {
  color: rgba(206,170,255,.95);
}

@media (max-width: 860px) {
  #page-impressoras .printer-connection-diagnostic-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FlowZen Impressoras — botão Teste via Agente Local
   Corrige btn-warning claro para padrão dark premium.
   ============================================================ */

#page-impressoras .printer-config-panel .btn.btn-warning,
#page-impressoras button[onclick*="testPrinterPanelViaAgent"] {
  color: rgba(246,239,255,.96) !important;
  background:
    linear-gradient(135deg, rgba(174,111,240,.32), rgba(116,78,255,.22)),
    rgba(22,18,30,.96) !important;
  border: 1px solid rgba(174,111,240,.42) !important;
  box-shadow:
    0 10px 24px rgba(116,78,255,.18),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

#page-impressoras .printer-config-panel .btn.btn-warning:hover,
#page-impressoras button[onclick*="testPrinterPanelViaAgent"]:hover {
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(190,130,255,.42), rgba(116,78,255,.30)),
    rgba(27,22,38,.98) !important;
  border-color: rgba(190,130,255,.58) !important;
  transform: translateY(-1px);
}

#page-impressoras .printer-config-panel .btn.btn-warning:disabled,
#page-impressoras button[onclick*="testPrinterPanelViaAgent"]:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   FlowZen Impressoras — botão Teste via Agente Local
   Corrige btn-warning claro para padrão dark premium.
   ============================================================ */

#page-impressoras .printer-config-panel .btn.btn-warning,
#page-impressoras button[onclick*="testPrinterPanelViaAgent"] {
  color: rgba(246,239,255,.96) !important;
  background:
    linear-gradient(135deg, rgba(174,111,240,.32), rgba(116,78,255,.22)),
    rgba(22,18,30,.96) !important;
  border: 1px solid rgba(174,111,240,.42) !important;
  box-shadow:
    0 10px 24px rgba(116,78,255,.18),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

#page-impressoras .printer-config-panel .btn.btn-warning:hover,
#page-impressoras button[onclick*="testPrinterPanelViaAgent"]:hover {
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(190,130,255,.42), rgba(116,78,255,.30)),
    rgba(27,22,38,.98) !important;
  border-color: rgba(190,130,255,.58) !important;
  transform: translateY(-1px);
}

#page-impressoras .printer-config-panel .btn.btn-warning:disabled,
#page-impressoras button[onclick*="testPrinterPanelViaAgent"]:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   FlowZen Impressoras — diagnóstico PRO por nicho/tipo
   Sem novos campos persistidos; usa preset, protocolo e configuração atual.
   ============================================================ */

#page-impressoras .printer-niche-diagnostic {
  border: 1px solid rgba(174,111,240,.18);
  border-radius: 15px;
  padding: 15px 16px;
  background:
    radial-gradient(circle at top right, rgba(174,111,240,.10), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(14,14,21,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

#page-impressoras .printer-niche-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

#page-impressoras .printer-niche-head strong {
  display: block;
  color: rgba(236,236,245,.96);
  font-size: .98rem;
  line-height: 1.25;
}

#page-impressoras .printer-niche-head span:not(.badge) {
  display: block;
  color: rgba(162,158,190,.95);
  font-size: .82rem;
  line-height: 1.45;
  margin-top: 4px;
}

#page-impressoras .printer-niche-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 9px;
  margin-bottom: 12px;
}

#page-impressoras .printer-niche-meta span {
  display: block;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  padding: 9px 10px;
  background: rgba(255,255,255,.022);
  color: rgba(174,170,200,.92);
  font-size: .78rem;
  line-height: 1.35;
}

#page-impressoras .printer-niche-meta strong {
  color: rgba(206,170,255,.95);
}

#page-impressoras .printer-niche-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 12px;
}

#page-impressoras .printer-niche-grid > div {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  padding: 12px;
  background: rgba(255,255,255,.02);
}

#page-impressoras .printer-niche-grid strong {
  display: block;
  color: rgba(236,236,245,.94);
  font-size: .82rem;
  margin-bottom: 8px;
}

#page-impressoras .printer-niche-grid ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(174,170,200,.94);
  font-size: .8rem;
  line-height: 1.5;
}

#page-impressoras .printer-niche-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#page-impressoras .printer-niche-chip-row span {
  border: 1px solid rgba(174,111,240,.20);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(174,111,240,.075);
  color: rgba(225,214,245,.94);
  font-size: .75rem;
}

@media (max-width: 1024px) {
  #page-impressoras .printer-niche-meta,
  #page-impressoras .printer-niche-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FlowZen Impressoras — polimento Perfis de uso e folha
   Corrige checkbox gigante/azul e organiza cards de perfil.
   ============================================================ */

#page-impressoras #printerTemplateProfilesPanel input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  accent-color: #a855f7;
  margin: 0 !important;
  flex: 0 0 16px;
}

#page-impressoras #printerTemplateProfilesPanel .printer-module-usage-grid .check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
}

#page-impressoras #printerTemplateProfilesPanel .printer-template-profile-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border-radius: 14px;
}

#page-impressoras #printerTemplateProfilesPanel .printer-template-profile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  color: rgba(236,236,245,.94);
  font-size: .78rem;
  line-height: 1.25;
  letter-spacing: .055em;
  text-transform: uppercase;
}

#page-impressoras #printerTemplateProfilesPanel .printer-template-profile-fields {
  display: grid;
  grid-template-columns: minmax(96px, .9fr) minmax(120px, 1fr) minmax(58px, .45fr);
  gap: 8px;
  align-items: center;
}

#page-impressoras #printerTemplateProfilesPanel .printer-template-profile-fields select,
#page-impressoras #printerTemplateProfilesPanel .printer-template-profile-fields input[type="number"] {
  min-height: 36px;
  height: 36px;
  font-size: .82rem;
}

@media (max-width: 980px) {
  #page-impressoras #printerTemplateProfilesPanel .printer-template-profile-fields {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FlowZen Impressoras — Perfil técnico compacto
   Evita texto longo espremido no input readonly.
   ============================================================ */

#page-impressoras #printerPresetInfo {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(216,202,240,.92);
}

#page-impressoras #printerPresetInfo[readonly] {
  background:
    linear-gradient(145deg, rgba(174,111,240,.045), rgba(255,255,255,.012)),
    rgba(18,18,26,.92);
  border-color: rgba(174,111,240,.18);
}

/* ============================================================
   FlowZen Impressoras — Card Etiquetas v1
   Perfis reais via print_profiles + preview + teste seco.
   ============================================================ */

#page-impressoras .label-printer-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(174,111,240,.18);
  background:
    radial-gradient(circle at top right, rgba(174,111,240,.11), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(14,14,21,.92);
}

#page-impressoras .label-printer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
}

#page-impressoras .label-printer-card {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255,255,255,.025);
  min-width: 0;
}

#page-impressoras .label-printer-card h4 {
  margin: 0;
  color: rgba(236,236,245,.96);
  font-size: .9rem;
}

#page-impressoras .label-size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

#page-impressoras .label-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#page-impressoras .label-status-box {
  border: 1px solid rgba(174,111,240,.16);
  border-radius: 13px;
  padding: 11px 12px;
  background: rgba(174,111,240,.055);
  color: rgba(190,185,210,.94);
  font-size: .82rem;
  line-height: 1.45;
}

#page-impressoras .label-preview-card {
  display: flex;
  flex-direction: column;
}

#page-impressoras .label-preview-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 255px;
  border: 1px dashed rgba(174,111,240,.22);
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    rgba(0,0,0,.16);
  background-size: 18px 18px;
}

#page-impressoras .label-preview-box {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(20,20,26,.35);
  border-radius: 10px;
  background: rgba(252,252,247,.96);
  color: #17171d;
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  transition:none !important;
}

#page-impressoras .label-preview-box.is-rotated {
  transform: rotate(0deg);
}

#page-impressoras .label-preview-box strong {
  display: block;
  color: #111;
  font-size: 1rem;
  line-height: 1.15;
}

#page-impressoras .label-preview-box em {
  color: #333;
  font-style: normal;
  font-size: .78rem;
}

#page-impressoras .label-preview-company {
  min-height: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .58rem;
  color: #333;
  text-transform: uppercase;
}

#page-impressoras .label-preview-company span {
  white-space: nowrap;
}

#page-impressoras .label-preview-barcode {
  margin-top: 4px;
  padding: 12px 6px 4px;
  border-top: 22px repeating-linear-gradient(
    90deg,
    #111 0 2px,
    transparent 2px 4px,
    #111 4px 5px,
    transparent 5px 8px
  );
  text-align: center;
  font-size: .7rem;
  letter-spacing: .06em;
}

#page-impressoras .label-preview-qr {
  position: absolute;
  right: 12px;
  top: 42px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid #111;
  font-size: .62rem;
  font-weight: 800;
}

#page-impressoras .label-preview-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: end;
  font-size: .68rem;
}

#page-impressoras .label-preview-bottom b {
  font-size: .95rem;
  color: #111;
}

@media (max-width: 1120px) {
  #page-impressoras .label-printer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #page-impressoras .label-size-grid,
  #page-impressoras .label-printer-card .row {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   FlowZen Impressoras — Etiquetas v2 QR/Barcode/SKU
   ============================================================ */

#page-impressoras .label-sku-auto-grid,
#page-impressoras .label-qr-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

#page-impressoras .label-qr-extra[hidden],
#page-impressoras .label-sku-auto-grid[hidden] {
  display: none !important;
}

#page-impressoras .label-barcode-card,
#page-impressoras .label-qr-card {
  border-color: rgba(174,111,240,.12);
}

#page-impressoras .label-preview-barcode-asset {
  min-height: 34px;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

#page-impressoras .label-preview-barcode-asset span {
  color: rgba(0,0,0,.42);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

#page-impressoras .label-preview-barcode-img {
  max-width: 94%;
  max-height: 54px;
  object-fit: contain;
  image-rendering: auto;
}

#page-impressoras .label-preview-qr-asset {
  position: absolute;
  right: 11px;
  top: 42px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

#page-impressoras .label-preview-qr-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
}

#page-impressoras .label-preview-logo-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: .55rem;
  font-weight: 900;
  margin-right: 4px;
}

@media (max-width: 980px) {
  #page-impressoras .label-sku-auto-grid,
  #page-impressoras .label-qr-extra-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   FlowZen — Etiquetas import UI · Camada 3B · 20260606
   ============================================================ */

#page-impressoras .label-import-card {
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.03);
}

#page-impressoras .label-import-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, .6fr);
  gap: 14px;
  align-items: end;
}

#page-impressoras .label-import-status {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

#page-impressoras .label-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

#page-impressoras .label-import-summary > div {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 10px 12px;
}

#page-impressoras .label-import-summary strong {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: 4px;
}

#page-impressoras .label-import-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
}

#page-impressoras .label-import-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

#page-impressoras .label-import-table th,
#page-impressoras .label-import-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  vertical-align: top;
}

#page-impressoras .label-import-table th {
  color: var(--muted);
  font-size: .78rem;
  text-align: left;
  background: rgba(255,255,255,.035);
}

#page-impressoras .label-import-row-valid {
  background: rgba(74,222,128,.035);
}

#page-impressoras .label-import-row-invalid {
  background: rgba(248,113,113,.04);
}

#page-impressoras .label-import-error-list {
  margin: 0;
  padding-left: 16px;
  color: var(--red);
  font-size: .86rem;
}

#page-impressoras .label-import-table .btn-xs {
  white-space: nowrap;
}

@media (max-width: 820px) {
  #page-impressoras .label-import-toolbar,
  #page-impressoras .label-import-summary {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FlowZen — Etiquetas layout polish · Camada 3C · 20260607
   Objetivo: ampliar Código de barras e Conteúdo/SKU sem alterar design system.
   ============================================================ */

#page-impressoras .label-printer-grid > .label-printer-card:nth-of-type(1) {
  order: 1;
}

#page-impressoras .label-printer-grid > .label-printer-card:nth-of-type(2) {
  order: 2;
}

#page-impressoras .label-printer-grid > .label-barcode-card {
  order: 3;
  grid-column: 1 / -1;
  min-height: 250px;
}

#page-impressoras .label-printer-grid > .label-content-card {
  order: 4;
  grid-column: 1 / -1;
}

#page-impressoras .label-printer-grid > .label-qr-card {
  order: 5;
}

#page-impressoras .label-printer-grid > .label-preview-card {
  order: 6;
}

#page-impressoras .label-barcode-card .row {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

#page-impressoras .label-barcode-card #labelBarcodeValue {
  max-width: 100%;
}

#page-impressoras .label-content-card .label-import-card {
  max-width: none;
}

#page-impressoras .label-content-card #labelImportContent {
  min-height: 118px;
  resize: vertical;
}

#page-impressoras .label-content-card .label-import-table-wrap {
  width: 100%;
}

#page-impressoras .label-content-card .label-import-table {
  min-width: 920px;
}

@media (max-width: 1120px) {
  #page-impressoras .label-printer-grid > .label-barcode-card,
  #page-impressoras .label-printer-grid > .label-content-card {
    grid-column: 1;
  }

  #page-impressoras .label-barcode-card .row {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   FlowZen — Impressoras · Ajustes finais UI · Chat 10
   ============================================================ */
#page-impressoras .printer-catalog-details-panel{
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(168, 85, 247, .28);
  border-radius: 14px;
  background: rgba(168, 85, 247, .08);
}

#page-impressoras .printer-preset-inline-section{
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
}

#page-impressoras .printer-preset-inline-list{
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

#page-impressoras .printer-history-wide-panel{
  width: 100%;
  grid-column: 1 / -1;
}

#page-impressoras .printer-history-scroll{
  max-height: 380px;
  overflow: auto;
  padding-right: 4px;
}

#page-impressoras .printer-history-pro-list{
  display: grid;
  gap: 10px;
}

#page-impressoras .printer-panel-highlight{
  animation: flowzen-printer-panel-highlight 1.4s ease;
}

@keyframes flowzen-printer-panel-highlight{
  0% { box-shadow: 0 0 0 0 rgba(168,85,247,.0); }
  35% { box-shadow: 0 0 0 4px rgba(168,85,247,.22), 0 0 32px rgba(168,85,247,.18); }
  100% { box-shadow: 0 0 0 0 rgba(168,85,247,.0); }
}

#page-impressoras .agent-lan-url-row.is-muted .mini-help,
#page-impressoras .agent-lan-url-row.is-muted + .mini-help{
  opacity: .86;
}

#page-impressoras #printerCatalogLoadMoreBtn:disabled{
  opacity: .65;
  cursor: not-allowed;
}


/* FlowZen — lista única real de modelos e presets */
#page-impressoras .printer-catalog-row-preset{
  border-style: dashed;
}

#page-impressoras .printer-catalog-row-model,
#page-impressoras .printer-catalog-row-preset{
  min-height: 72px;
}

#page-impressoras .printer-preset-inline-section{
  display: none !important;
}


/* FlowZen — catálogo carrega tudo pelo botão Atualizar */
#page-impressoras #printerCatalogLoadMoreBtn,
#page-impressoras [data-printer-legacy-check="Carregar mais modelos"]{
  display: none !important;
}


/* FLOWZEN_LEGAL_CHECKBOX_FOCUS_FIX_20260629
   Remove contorno nativo/roxo feio dos checkboxes legais mantendo o layout FlowZen. */
#termsFirstAccessModal .legal-check-row input,
#termsFirstAccessModal .fz-legal-doc-accept input,
#fiscalLegalNoticeModal .legal-check-row input,
#fiscalLegalNoticeModal .fz-legal-doc-accept input {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(174,111,240,.38);
}

#termsFirstAccessModal .legal-check-row input:focus,
#termsFirstAccessModal .legal-check-row input:focus-visible,
#termsFirstAccessModal .fz-legal-doc-accept input:focus,
#termsFirstAccessModal .fz-legal-doc-accept input:focus-visible,
#fiscalLegalNoticeModal .legal-check-row input:focus,
#fiscalLegalNoticeModal .legal-check-row input:focus-visible,
#fiscalLegalNoticeModal .fz-legal-doc-accept input:focus,
#fiscalLegalNoticeModal .fz-legal-doc-accept input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

#termsFirstAccessModal .legal-check-row:focus-within,
#termsFirstAccessModal .fz-legal-doc-accept:focus-within,
#fiscalLegalNoticeModal .legal-check-row:focus-within,
#fiscalLegalNoticeModal .fz-legal-doc-accept:focus-within {
  border-color: rgba(174,111,240,.28);
}
