/*
 * Application-wide styles (Propshaft). Tailwind utilities live in builds/tailwind.css.
 *
 * Layout rule for new pages:
 *   Wrap page content in <div class="lm-page"> (full width).
 *   Use <div class="lm-page lm-page--form"> only for short forms.
 *   Do NOT add max-w-xl / max-w-2xl / max-w-3xl on page roots.
 */

:root {
  --lm-ink: #14231c;
  --lm-forest: #0f3d2e;
  --lm-moss: #1f6b4a;
  --lm-sand: #eef4ef;
  --lm-glow: #d8ebe0;
  --lm-page-pad-x: 0.75rem;
  --lm-page-pad-y: 0.75rem;
  --lm-bottom-nav-h: 3.75rem;
}

@media (min-width: 640px) {
  :root {
    --lm-page-pad-x: 1.25rem;
    --lm-page-pad-y: 1rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --lm-page-pad-x: 1.5rem;
    --lm-page-pad-y: 1.25rem;
  }
}

.lm-body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--lm-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--lm-glow), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, #f4f7f2, transparent 50%),
    linear-gradient(180deg, #f7faf8 0%, #eef3f0 100%);
}

.font-display,
.lm-topbar .font-display {
  font-family: "DM Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

.lm-shell a {
  text-decoration: none;
}

.lm-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.lm-shell-main {
  width: 100%;
  flex: 1;
  padding: var(--lm-page-pad-y) var(--lm-page-pad-x);
  padding-bottom: calc(var(--lm-page-pad-y) + var(--lm-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .lm-shell-main {
    padding-bottom: var(--lm-page-pad-y);
  }
}

/* Full-bleed page canvas — use on every authenticated page root */
.lm-page {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .lm-page {
    gap: 1.25rem;
  }
}

/* Feed: sanfonas Em aberto / Histórico */
.lm-feed-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.lm-feed-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  user-select: none;
  border-bottom: 1px solid transparent;
}

.lm-feed-accordion[open] > .lm-feed-accordion__summary {
  border-bottom-color: #e2e8f0;
}

.lm-feed-accordion__summary::-webkit-details-marker {
  display: none;
}

.lm-feed-accordion__summary::before {
  content: "▸";
  color: #64748b;
  font-size: 0.85rem;
}

.lm-feed-accordion[open] > .lm-feed-accordion__summary::before {
  content: "▾";
}

.lm-feed-accordion__count {
  margin-left: auto;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lm-feed-accordion > div {
  padding: 0 0.75rem 0.75rem;
}

@media (min-width: 1280px) {
  .lm-feed-accordion > div {
    padding: 0.75rem;
  }
}

/* Optional slightly narrower column for login-like forms inside the app */
.lm-page--form {
  max-width: 42rem;
}

.lm-panel-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  text-align: center;
}

.lm-org-logo {
  width: 13.125rem;
  height: 13.125rem;
  border-radius: 1.25rem;
  object-fit: cover;
  border: 1px solid rgba(15, 61, 46, 0.12);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 61, 46, 0.06);
}

.lm-org-logo--sm {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  box-shadow: none;
}

@media (min-width: 640px) {
  .lm-org-logo {
    width: 15rem;
    height: 15rem;
  }

  .lm-org-logo--sm {
    width: 3.75rem;
    height: 3.75rem;
  }
}

.lm-dash-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.lm-agora {
  border: 1px solid rgba(15, 61, 46, 0.12);
  background: #f8faf9;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
}

.lm-agora__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.4rem;
}

.lm-agora__ok {
  margin: 0;
  font-size: 0.875rem;
  color: #166534;
}

.lm-agora__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lm-agora__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 61, 46, 0.18);
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: #0f3d2e;
  text-decoration: none;
}

.lm-agora__chip:hover {
  border-color: rgba(15, 61, 46, 0.4);
  background: #ecfdf5;
}

.lm-agora__chip--warn {
  border-color: rgba(180, 83, 9, 0.35);
  color: #92400e;
}

.lm-agora__chip--warn:hover {
  background: #fffbeb;
}

.lm-sales {
  border: 1px solid rgba(15, 61, 46, 0.12);
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lm-sales__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.lm-sales__title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
}

.lm-sales__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.lm-sales__periods {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.lm-sales__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  justify-content: flex-end;
}

.lm-sales__date-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem;
}

.lm-sales__date-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lm-sales__date-input {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.8125rem;
  color: #0f172a;
  background: #fff;
}

.lm-sales__block--ranking {
  margin-top: 0.85rem;
}

.lm-sales__ranking-wrap {
  overflow-x: auto;
}

.lm-sales__ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.lm-sales__ranking-table th {
  text-align: left;
  color: #64748b;
  font-weight: 600;
  padding: 0.35rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.lm-sales__ranking-table td {
  padding: 0.45rem 0.5rem 0.45rem 0;
  border-top: 1px solid #f1f5f9;
  color: #0f172a;
  vertical-align: top;
}

.lm-sales__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.lm-sales__period {
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lm-sales__period:hover {
  color: #0f3d2e;
  background: rgba(255, 255, 255, 0.7);
}

.lm-sales__period.is-active {
  background: #fff;
  color: #0f3d2e;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.lm-sales__kpis {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .lm-sales__kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .lm-sales__kpis {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.lm-sales__kpi {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  background: #f8faf9;
}

.lm-sales__kpi--profit {
  background: #f0fdf4;
  border-color: rgba(22, 101, 52, 0.18);
}

.lm-sales__kpi-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.lm-sales__kpi-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-top: 0.2rem;
}

.lm-sales__kpi-value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  word-break: break-word;
}

.lm-sales__kpi-value--sm {
  font-size: 1.05rem;
}

.lm-sales__kpi-delta {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.lm-sales__kpi-delta.is-up,
.lm-sales .is-up {
  color: #15803d;
}

.lm-sales__kpi-delta.is-down,
.lm-sales .is-down {
  color: #b45309;
}

.lm-sales__kpi-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.lm-sales__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .lm-sales__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lm-sales__block {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.lm-sales__block--health {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
}

.lm-sales__block-title {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.lm-sales__health-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
}

.lm-sales__health-head .lm-sales__block-title {
  margin: 0;
}

.lm-sales__empty {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.lm-sales__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.lm-sales__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.lm-sales__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lm-sales__row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.lm-sales__row-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.lm-sales__row-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.lm-sales__row-side {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.lm-sales__row-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.lm-sales__row-share {
  font-size: 0.72rem;
  color: #64748b;
}

.lm-sales__funnel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.lm-sales__funnel li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.lm-sales__funnel li:last-child {
  border-bottom: 0;
}

.lm-sales__funnel strong {
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.lm-sales__health {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .lm-sales__health {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lm-sales__health-item {
  border: 1px solid rgba(15, 61, 46, 0.1);
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.85);
}

.lm-sales__slo-link {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* ── Dashboard cockpit (revendedor) ── */
.lm-cockpit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.lm-cockpit__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.lm-cockpit__header-main {
  min-width: 0;
}

.lm-cockpit__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.lm-cockpit__period-label {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.lm-cockpit__header-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.lm-cockpit__date {
  font-size: 0.8125rem;
  color: #475569;
  white-space: nowrap;
}

.lm-cockpit__filters--desktop {
  display: none;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.lm-cockpit__filters--mobile {
  position: relative;
}

.lm-cockpit__mobile-trigger {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(15, 61, 46, 0.15);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f3d2e;
}

.lm-cockpit__mobile-trigger::-webkit-details-marker {
  display: none;
}

.lm-cockpit__mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  min-width: 12rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lm-cockpit__mobile-option {
  display: block;
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  color: #334155;
  text-decoration: none;
}

.lm-cockpit__mobile-option:hover,
.lm-cockpit__mobile-option.is-active {
  background: #ecfdf5;
  color: #0f3d2e;
  font-weight: 600;
}

.lm-cockpit__periods {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.lm-cockpit__period {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
}

.lm-cockpit__period:hover {
  color: #0f3d2e;
}

.lm-cockpit__period.is-active,
.lm-cockpit__period--submit.is-active {
  background: #0f3d2e;
  color: #fff;
}

.lm-cockpit__date-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.35rem;
}

.lm-cockpit__date-form--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.35rem 0.25rem 0;
}

.lm-cockpit__date-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lm-cockpit__date-input {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.8125rem;
  color: #0f172a;
  background: #fff;
  min-height: 2.25rem;
}

.lm-cockpit__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  border: 1px solid rgba(15, 61, 46, 0.1);
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  padding: 1rem;
}

.lm-cockpit__hero-kpi {
  min-width: 0;
}

.lm-cockpit__kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.08);
  color: #0f6b4f;
  font-size: 0.7rem;
  margin-right: 0.35rem;
}

.lm-cockpit__kpi-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.lm-cockpit__hero-value {
  margin: 0.35rem 0 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.lm-cockpit__hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
}

.lm-cockpit__delta {
  font-size: 0.8125rem;
  font-weight: 700;
}

.lm-cockpit__delta.is-up,
.lm-cockpit .is-up {
  color: #059669;
}

.lm-cockpit__delta.is-down,
.lm-cockpit .is-down {
  color: #dc2626;
}

.lm-cockpit__delta.is-neutral {
  color: #64748b;
}

.lm-cockpit__delta-context {
  font-size: 0.75rem;
  color: #64748b;
}

.lm-cockpit__hero-foot {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #475569;
}

.lm-cockpit__hero-chart {
  min-width: 0;
}

.lm-cockpit__chart-caption {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}

.lm-cockpit__kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.lm-cockpit__kpi-card {
  border: 1px solid rgba(15, 61, 46, 0.08);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.lm-cockpit__kpi-card--muted {
  background: #f8fafc;
}

.lm-cockpit__kpi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.lm-cockpit__kpi-value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.lm-cockpit__kpi-hint {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.lm-cockpit__row {
  display: grid;
  gap: 0.75rem;
}

.lm-cockpit__row--charts {
  grid-template-columns: 1fr;
}

.lm-cockpit__row--ops {
  grid-template-columns: 1fr;
}

.lm-cockpit__panel {
  border: 1px solid rgba(15, 61, 46, 0.08);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.85rem 0.95rem;
  min-width: 0;
}

.lm-cockpit__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
}

.lm-cockpit__panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.lm-cockpit__panel-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.lm-cockpit__panel-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f6b4f;
  text-decoration: none;
  white-space: nowrap;
}

.lm-cockpit__panel-link:hover {
  text-decoration: underline;
}

.lm-cockpit__empty {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.lm-cockpit__ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lm-cockpit__ranking-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.lm-cockpit__ranking-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lm-cockpit__ranking-pos {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.lm-cockpit__ranking-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.lm-cockpit__ranking-meta {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  font-family: ui-monospace, monospace;
}

.lm-cockpit__ranking-side {
  text-align: right;
}

.lm-cockpit__ranking-amount {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.lm-cockpit__ranking-loads {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.lm-chart {
  width: 100%;
  min-height: 7rem;
}

.lm-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 7rem;
}

.lm-chart__svg--donut {
  min-height: auto;
}

.lm-chart--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  border-radius: 0.65rem;
  background: #f8fafc;
}

.lm-chart__empty-msg {
  font-size: 0.8125rem;
  color: #64748b;
}

.lm-chart-spark {
  display: block;
  margin-top: 0.15rem;
  opacity: 0.85;
}

.lm-chart--donut {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  min-height: auto;
}

.lm-chart--donut .lm-chart__svg--donut {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  min-height: 0;
  max-width: 7.5rem;
  flex-shrink: 0;
}

.lm-chart-donut__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #475569;
  min-width: 0;
}

.lm-chart-donut__dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.lm-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: #64748b;
}

.lm-chart__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lm-chart__legend-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.lm-chart__legend-dot--dashed {
  background: transparent;
  border: 2px dashed;
}

.lm-cockpit__channel-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lm-cockpit__channel-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.8125rem;
  color: #475569;
}

.lm-cockpit__channel-list strong {
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.lm-cockpit__channel-list em {
  font-style: normal;
  font-size: 0.72rem;
  color: #64748b;
}

.lm-cockpit__funnel {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lm-cockpit__funnel-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  color: #334155;
  background: #f8fafc;
}

.lm-cockpit__funnel-step strong {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.lm-cockpit__funnel-step--amber { border-left: 3px solid #f59e0b; }
.lm-cockpit__funnel-step--blue { border-left: 3px solid #3b82f6; }
.lm-cockpit__funnel-step--orange { border-left: 3px solid #f97316; }
.lm-cockpit__funnel-step--violet { border-left: 3px solid #8b5cf6; }
.lm-cockpit__funnel-step--green { border-left: 3px solid #059669; }

.lm-cockpit__health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.lm-cockpit__health-item {
  border: 1px solid #f1f5f9;
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: #fafafa;
}

.lm-cockpit__health-value {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.lm-cockpit__alerts-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.lm-cockpit__alerts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.lm-cockpit__alert {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-radius: 0.75rem;
  padding: 0.7rem 0.75rem;
  text-decoration: none;
  min-height: 4.5rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lm-cockpit__alert:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.lm-cockpit__alert-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lm-cockpit__alert strong {
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lm-cockpit__alert-sub {
  font-size: 0.72rem;
  opacity: 0.85;
}

.lm-cockpit__alert--amber { background: #fffbeb; color: #92400e; }
.lm-cockpit__alert--blue { background: #eff6ff; color: #1d4ed8; }
.lm-cockpit__alert--orange { background: #fff7ed; color: #c2410c; }
.lm-cockpit__alert--green { background: #ecfdf5; color: #047857; }

.lm-cockpit__mix {
  border: 1px solid rgba(15, 61, 46, 0.08);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.65rem 0.85rem;
}

.lm-cockpit__mix-summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lm-cockpit__mix-summary::-webkit-details-marker {
  display: none;
}

.lm-cockpit__mix-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.lm-cockpit__mix-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lm-cockpit__mix-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #f1f5f9;
}

.lm-cockpit__mix-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lm-cockpit__mix-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

.lm-cockpit__mix-meta {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.lm-cockpit__mix-side {
  text-align: right;
  font-size: 0.8125rem;
  color: #0f172a;
}

.lm-cockpit__mix-side em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: #64748b;
}

.lm-cockpit__insight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 61, 46, 0.12);
}

.lm-cockpit__insight--success {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.lm-cockpit__insight--warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

.lm-cockpit__insight--neutral {
  background: #f8fafc;
}

.lm-cockpit__insight-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.lm-cockpit__insight-text {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #475569;
}

.lm-cockpit__insight-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f3d2e;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(15, 61, 46, 0.15);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
}

.lm-cockpit__insight-cta:hover {
  background: #fff;
}

@media (min-width: 768px) {
  .lm-cockpit__kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lm-cockpit__alerts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lm-cockpit__row--charts {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .lm-cockpit__row--ops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lm-cockpit__panel .lm-chart--donut {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .lm-cockpit__filters--desktop {
    display: flex;
  }

  .lm-cockpit__filters--mobile {
    display: none;
  }

  .lm-cockpit__hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    padding: 1.1rem 1.15rem;
  }

  .lm-cockpit__kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-cockpit__alert {
    transition: none;
  }

  .lm-cockpit__alert:hover {
    transform: none;
  }
}

/* Desktop: densificar — 1 linha de detalhe, menos padding, sem “caixa vazia” */
@media (min-width: 1100px) {
  .lm-sales {
    padding: 0.7rem 0.85rem 0.8rem;
    gap: 0.55rem;
  }

  .lm-sales__head {
    gap: 0.5rem;
    align-items: center;
  }

  .lm-sales__title {
    font-size: 1.05rem;
  }

  .lm-sales__subtitle {
    margin-top: 0.05rem;
    font-size: 0.75rem;
  }

  .lm-sales__period {
    padding: 0.22rem 0.65rem;
    font-size: 0.75rem;
  }

  .lm-sales__kpis {
    gap: 0.4rem;
  }

  .lm-sales__kpi {
    padding: 0.4rem 0.55rem;
    border-radius: 0.55rem;
  }

  .lm-sales__kpi-label {
    font-size: 0.62rem;
  }

  .lm-sales__kpi-value {
    font-size: 1.05rem;
  }

  .lm-sales__kpi-hint {
    font-size: 0.68rem;
  }

  .lm-sales__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(0, 1.45fr);
    gap: 0.5rem;
  }

  .lm-sales__block {
    padding: 0.5rem 0.65rem;
    border-radius: 0.55rem;
  }

  .lm-sales__block-title {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
  }

  .lm-sales__list {
    gap: 0.2rem;
  }

  .lm-sales__row {
    padding: 0.2rem 0;
    gap: 0.5rem;
  }

  .lm-sales__row-label,
  .lm-sales__row-amount {
    font-size: 0.8125rem;
  }

  .lm-sales__funnel {
    gap: 0.15rem;
  }

  .lm-sales__funnel li {
    padding: 0.15rem 0;
    font-size: 0.8125rem;
  }

  .lm-sales__health {
    gap: 0.35rem;
  }

  .lm-sales__health-item {
    padding: 0.35rem 0.45rem;
    border-radius: 0.45rem;
  }

  .lm-sales__kpi-value--sm {
    font-size: 0.95rem;
  }
}

.lm-setup {
  border: 1px solid rgba(15, 61, 46, 0.12);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
}

.lm-setup__head {
  margin-bottom: 0.65rem;
}

.lm-setup__details > summary {
  cursor: pointer;
  list-style: none;
}

.lm-setup__details > summary::-webkit-details-marker {
  display: none;
}

.lm-setup__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 600;
  color: #0f172a;
}

.lm-setup__summary-hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: underline;
}

.lm-setup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.lm-setup__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid #f1f5f9;
}

.lm-setup__item:last-child {
  border-bottom: 0;
}

.lm-setup__item.is-done {
  opacity: 0.72;
}

.lm-setup__mark {
  width: 1.25rem;
  text-align: center;
  font-weight: 700;
  color: #0f3d2e;
  line-height: 1.4;
}

.lm-setup__item.is-pending .lm-setup__mark {
  color: #94a3b8;
}

.lm-setup__action {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f3d2e;
  text-decoration: underline;
  padding-top: 0.15rem;
}

.lm-setup__action--muted {
  color: #64748b;
  font-weight: 500;
}

.lm-advanced {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
}

.lm-advanced__summary {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
}

.lm-advanced__summary::-webkit-details-marker {
  display: none;
}

.lm-page--split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .lm-page--split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
}

.lm-dense-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .lm-dense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lm-dense-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1280px) {
  .lm-dense-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lm-panel {
  border: 1px solid rgba(15, 61, 46, 0.12);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

@media (min-width: 768px) {
  .lm-panel {
    padding: 1rem 1.15rem;
  }
}

/* Sticky mobile tab bar — live-app feel */
.lm-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.15rem;
  height: calc(var(--lm-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 61, 46, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .lm-bottom-nav {
    display: none;
  }
}

.lm-bottom-nav--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lm-bottom-nav--cols-5 a {
  font-size: 0.58rem;
}

.lm-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(220, 240, 230, 0.72);
  padding: 0.25rem;
  position: relative;
}

.lm-bottom-nav a:hover,
.lm-bottom-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lm-bottom-nav .lm-nav-ico {
  font-size: 1rem;
  line-height: 1;
}

.lm-bottom-nav .lm-nav-ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.15rem;
}

.lm-bottom-nav .lm-nav-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.7rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(15, 61, 46, 0.95);
}

.lm-bottom-nav .lm-nav-badge.is-empty {
  display: none;
}

/* Guest / login */
.lm-login {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
}

.lm-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.lm-login-logo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px #0b0b0b,
    0 12px 28px rgba(15, 61, 46, 0.22);
}

.lm-login h1 {
  font-family: "DM Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lm-ink);
  margin: 0;
}

.lm-login-lead {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #5b6b62;
}

.lm-login-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
  text-align: left;
}

.lm-login-form input[type="email"],
.lm-login-form input[type="password"],
.lm-login-form input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c9d5ce;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 35, 28, 0.04);
  font: inherit;
  color: var(--lm-ink);
}

.lm-login-form input:focus {
  outline: 2px solid var(--lm-moss);
  outline-offset: 1px;
  border-color: var(--lm-moss);
}

.lm-login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.15rem;
}

.lm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #fff !important;
  background: var(--lm-forest);
  box-shadow: 0 2px 8px rgba(15, 61, 46, 0.28);
}

.lm-btn-primary:hover {
  background: var(--lm-moss);
}

.lm-login-actions a {
  font-size: 0.875rem;
  color: #4a5c53;
  text-decoration: underline;
}

.lm-login-flash {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.lm-login-flash-alert {
  background: #fef2f2;
  color: #dc2626;
}

.lm-login-flash-notice {
  background: #ecfdf5;
  color: #059669;
}

.lm-password-match-feedback {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.lm-password-match-feedback.is-idle {
  color: #64748b;
  font-weight: 500;
}

.lm-password-match-feedback.is-ok {
  color: #047857;
}

.lm-password-match-feedback.is-error {
  color: #dc2626;
}

.lm-login-tenant {
  margin: -0.35rem 0 0.85rem;
  font-family: "DM Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lm-forest);
}

.lm-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 61, 46, 0.22);
  border-radius: 0.5rem;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--lm-forest) !important;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none !important;
}

.lm-btn-ghost:hover {
  background: #fff;
  border-color: var(--lm-moss);
}

/* Landing pública da revenda (/r/:slug) */
.lm-storefront {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  text-align: center;
}

.lm-storefront-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.lm-storefront-logo {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 1.35rem;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(15, 61, 46, 0.1);
  box-shadow:
    0 1px 2px rgba(15, 61, 46, 0.06),
    0 18px 40px rgba(15, 61, 46, 0.12);
}

.lm-storefront-logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--lm-forest), var(--lm-moss));
  border: 0;
}

.lm-storefront-name {
  font-family: "DM Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lm-ink);
  margin: 0;
  line-height: 1.15;
}

.lm-storefront-lead {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a5c53;
}

.lm-storefront-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.65rem;
}

.lm-storefront-actions .lm-btn-primary,
.lm-storefront-actions .lm-btn-ghost {
  width: 100%;
}

.lm-storefront-foot {
  margin: 1.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #6b7a72;
}

/* —— WhatsApp inbox (live chat workspace) —— */
/* Lock the shell so only list/thread/side scroll — never a double page scrollbar */
body:has(.wa-inbox-page) {
  overflow: hidden;
  height: 100dvh;
}

.lm-shell:has(.wa-inbox-page) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.lm-shell:has(.wa-inbox-page) .lm-breadcrumb {
  display: none;
}

.lm-shell:has(.wa-inbox-page) .lm-shell-main {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lm-shell:has(.wa-inbox-page) #flash:empty {
  display: none;
}

@media (max-width: 767px) {
  .lm-shell:has(.wa-inbox-page) {
    padding-bottom: calc(var(--lm-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }
}

.wa-inbox-page {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #12161a;
  color: #e8eee9;
}

.wa-inbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1316;
}

.wa-inbox-toolbar h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wa-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #9db5a8;
}

.wa-live-dot::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.wa-live-dot.is-off::before {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.wa-live-dot.is-err::before {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.wa-inbox-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .wa-inbox-body {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }
}

@media (min-width: 1200px) {
  .wa-inbox-body {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(240px, 300px);
  }
}

.wa-inbox-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #161b20;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Lista + templates em sequência — uma rolagem só (fecha as sanfonas para chegar mais rápido). */
.wa-conv-scroll {
  flex: 0 0 auto;
  overflow: visible;
}

.wa-inbox-mobile-ops {
  flex: 0 0 auto;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  background: #161b20;
}

.wa-inbox-search-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-inbox-search {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border-bottom: none;
}

.wa-inbox-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f1418;
  color: #e8eee9;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
}

.wa-inbox-search input::placeholder {
  color: #6b7f74;
}

.wa-new-chat-btn {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 0.5rem;
}

.wa-new-chat-search-hint {
  margin: 0;
  padding: 0 0.75rem 0.45rem;
  font-size: 0.75rem;
  color: #86efac;
}

.wa-tpl-select-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.wa-tpl-select-row select {
  flex: 1 1 auto;
  min-width: 0;
}

.wa-tpl-icon-btn {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 0.5rem;
}

.wa-tpl-editor {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  flex-direction: column;
  gap: 0.4rem;
}

.wa-tpl-editor:not(.hidden) {
  display: flex;
}

.wa-tpl-editor.hidden {
  display: none !important;
}

.wa-tpl-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #e8eee9;
  font-size: 0.85rem;
}

.wa-tpl-editor-hint {
  margin: 0;
  font-size: 0.7rem;
  color: #8fa398;
  line-height: 1.35;
}

.wa-tpl-editor input[type="text"],
.wa-tpl-editor select,
.wa-tpl-editor textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1418;
  color: #e8eee9;
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
}

.wa-tpl-editor textarea {
  resize: vertical;
  min-height: 5rem;
}

.wa-new-chat-dialog {
  border: none;
  border-radius: 0.85rem;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 1.5rem);
  width: 24rem;
}

.wa-new-chat-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.wa-new-chat-modal {
  background: #161b20;
  color: #e8eee9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wa-new-chat-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wa-new-chat-modal-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.wa-new-chat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8fa398;
}

.wa-new-chat-modal input[type="tel"],
.wa-new-chat-modal select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1418;
  color: #e8eee9;
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.wa-new-chat-status {
  margin: 0;
  font-size: 0.82rem;
  color: #9fe0b8;
}

.wa-new-chat-error {
  margin: 0;
  font-size: 0.82rem;
  color: #f5a8a8;
}

.wa-new-chat-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #8fa398;
}

.wa-new-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wa-new-chat-preview {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
}

.wa-new-chat-preview-label {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7f74;
}

.wa-new-chat-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.8rem;
  color: #d7e6dc;
}

.wa-list-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.85rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa398;
}

.wa-accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9db5a8;
  background: #12171b;
  user-select: none;
}

.wa-accordion-summary::-webkit-details-marker {
  display: none;
}

.wa-accordion-summary::before {
  content: "▸";
  margin-right: 0.35rem;
  color: #6b7f74;
}

.wa-accordion[open] > .wa-accordion-summary::before {
  content: "▾";
}

.wa-accordion-count {
  border-radius: 999px;
  background: rgba(31, 107, 74, 0.35);
  color: #86efac;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.wa-accordion-body {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.wa-templates-fold {
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  overflow: hidden;
}

.wa-templates-fold .wa-accordion-summary {
  padding: 0.7rem 0.75rem;
}

.wa-templates-fold .wa-side-card {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
}

.wa-conv-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
}

.wa-conv-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.wa-conv-item.is-active {
  background: rgba(31, 107, 74, 0.28);
}

.wa-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: #1f6b4a;
  color: #ecfdf5;
}

.wa-avatar.is-amber {
  background: #b45309;
}

.wa-conv-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f3f7f4;
}

.wa-conv-preview {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #8fa398;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}

.wa-conv-meta {
  text-align: right;
  font-size: 0.65rem;
  color: #6b7f74;
}

.wa-thread {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #0f1316;
  overflow-x: hidden;
}

.wa-thread-chat-pane {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.wa-thread-ops-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem;
  background: #161b20;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.wa-mobile-thread-tabs {
  display: none;
  grid-template-columns: auto 1fr 1fr;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #141a1e;
  flex-shrink: 0;
}

.wa-mobile-thread-tabs__list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #c5d5cb;
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.wa-mobile-thread-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #9db5a8;
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.wa-mobile-thread-tabs button.is-active {
  background: rgba(31, 107, 74, 0.45);
  border-color: rgba(52, 211, 153, 0.35);
  color: #ecfdf5;
}

@media (max-width: 767px) {
  .wa-mobile-thread-tabs {
    display: grid;
  }
}

.wa-thread-empty {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: #6b7f74;
  padding: 2rem;
}

.wa-thread-empty strong {
  display: block;
  margin-top: 0.75rem;
  color: #c5d5cb;
  font-size: 1.05rem;
}

.wa-thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #141a1e;
}

.wa-thread-messages {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wa-thread-msg-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.wa-thread-load-status {
  text-align: center;
  font-size: 0.7rem;
  color: #8fa398;
  padding: 0.25rem 0 0.5rem;
}

.wa-bubble {
  max-width: min(85%, 32rem);
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 0.85rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.wa-bubble p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wa-bubble-body {
  white-space: pre-wrap;
}

.wa-copy-pix-wrap {
  margin-top: 0.4rem;
}

.wa-copy-pix {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  border-radius: 0.4rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.wa-copy-pix:hover {
  background: rgba(0, 0, 0, 0.35);
}

.wa-bubble.is-in {
  align-self: flex-start;
  background: #1c2429;
  color: #e8eee9;
}

.wa-bubble.is-out {
  align-self: flex-end;
  background: #1f6b4a;
  color: #ecfdf5;
}

.wa-bubble-meta {
  font-size: 0.65rem;
  opacity: 0.65;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.wa-ticks {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 1;
}

.wa-ticks.is-sent,
.wa-ticks.is-delivered {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.wa-ticks.is-read {
  color: #1ea7ff;
  font-weight: 800;
  text-shadow: 0 0 0.5px currentColor;
}

.wa-ticks.is-failed {
  color: #f87171;
  letter-spacing: 0;
  font-weight: 800;
}

.wa-audio-player,
.wa-video-player {
  display: block;
  width: 100%;
  max-width: 18rem;
  border-radius: 0.5rem;
}

.wa-audio-player {
  height: 2.25rem;
  accent-color: #34d399;
}

.wa-video-player {
  max-height: 14rem;
  background: #0b0f12;
}

.wa-compose {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #141a1e;
}

.wa-compose.is-locked {
  align-items: stretch;
}

.wa-compose-locked-msg {
  margin: 0;
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 0.8rem;
  line-height: 1.35;
}

.wa-compose-attach {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1418;
  cursor: pointer;
  flex-shrink: 0;
}

.wa-compose-attach:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: #15201a;
}

.wa-compose-attach input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.wa-compose-attach-ico {
  font-size: 1.05rem;
  line-height: 1;
  pointer-events: none;
}

.wa-compose-record {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1418;
  color: #e8eee9;
  cursor: pointer;
  flex-shrink: 0;
}

.wa-compose-record:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: #15201a;
}

.wa-compose-record.is-recording {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
  animation: wa-pulse-record 1.1s ease-in-out infinite;
}

@keyframes wa-pulse-record {
  50% { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25); }
}

.wa-compose-record-status {
  flex: 1 1 100%;
  font-size: 0.75rem;
  color: #fca5a5;
}

.wa-compose-audio-name {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
  color: #86efac;
}

.wa-bubble-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.wa-reaction-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  line-height: 1.2;
}

.wa-react-bar {
  position: relative;
  margin-top: 0.35rem;
  z-index: 2;
}

.wa-react-toggle {
  border: 0;
  background: transparent;
  color: rgba(232, 238, 233, 0.55);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
}

.wa-react-toggle:hover,
.wa-react-toggle[aria-expanded="true"] {
  color: #e8eee9;
  background: rgba(255, 255, 255, 0.08);
}

/* Fechado por padrão — display:flex no picker antigo anulava .hidden e cobria o texto */
.wa-react-picker {
  display: none;
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 20;
  gap: 0.15rem;
  padding: 0.35rem;
  border-radius: 0.65rem;
  background: #1c2429;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.wa-react-picker.is-open {
  display: flex;
}

.wa-bubble.is-out .wa-react-picker {
  left: auto;
  right: 0;
}

.wa-react-emoji {
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.35rem;
}

.wa-react-emoji:hover {
  background: rgba(255, 255, 255, 0.1);
}

.wa-compose input[type="text"] {
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0f12;
  color: #e8f0eb;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.wa-sequence-picker-wrap {
  flex: 1;
  min-width: 8rem;
}

.wa-sequence-picker-wrap input[type="text"] {
  width: 100%;
}

.wa-compose-sequence-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border-top: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  font-size: 0.75rem;
}

.wa-compose-sequence-cancel {
  margin: 0;
}

.wa-side {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #161b20;
  padding: 0.85rem;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

@media (min-width: 1200px) {
  .wa-side {
    display: block;
  }
}

.wa-side h2 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa398;
}

.wa-side-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: #12171b;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.wa-side-card label {
  display: block;
  font-size: 0.7rem;
  color: #8fa398;
  margin-bottom: 0.25rem;
}

.wa-side-card input,
.wa-side-card select,
.wa-side-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f1418;
  color: #e8eee9;
  border-radius: 0.4rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.wa-side-card textarea {
  resize: vertical;
  min-height: 4rem;
}

.wa-side-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.92);
  touch-action: none;
}

.wa-lightbox.is-open {
  display: flex;
}

.wa-lightbox-toolbar {
  position: absolute;
  top: calc(0.5rem + env(safe-area-inset-top, 0px));
  right: calc(0.5rem + env(safe-area-inset-right, 0px));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wa-lightbox-close,
.wa-lightbox-zoom {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.wa-lightbox-zoom {
  font-size: 1.55rem;
  font-weight: 700;
}

.wa-lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  padding: 3.5rem 0.75rem 2.75rem;
}

.wa-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.wa-lightbox-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0 3.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

.wa-badge {
  flex-shrink: 0;
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  color: #c5d5cb;
}

.wa-badge-ok {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.wa-badge-wait {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.wa-badge-err {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}

.wa-btn-primary {
  background: #1f6b4a;
  color: #ecfdf5;
}

.wa-btn-primary:hover {
  background: #258356;
}

.wa-btn-ghost {
  background: transparent;
  color: #c5d5cb;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wa-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wa-btn-danger {
  background: transparent;
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

@media (max-width: 767px) {
  .wa-inbox-page.is-thread-open .wa-inbox-list {
    display: none;
  }

  .wa-inbox-page:not(.is-thread-open) .wa-thread {
    display: none;
  }
}

/* Feed → WhatsApp chat modal */
.wa-chat-dialog {
  border: 0;
  padding: 0;
  border-radius: 0.85rem;
  width: min(440px, calc(100vw - 1.5rem));
  max-height: min(85dvh, 720px);
  background: transparent;
  box-shadow: 0 20px 50px rgba(15, 61, 46, 0.28);
}

.wa-chat-dialog::backdrop {
  background: rgba(15, 23, 20, 0.55);
}

.wa-chat-dialog-inner {
  position: relative;
  background: #fff;
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(85dvh, 720px);
}

.wa-chat-dialog-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.wa-modal-chat {
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  max-height: min(85dvh, 720px);
}

.wa-modal-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 2.25rem 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.wa-modal-chat-messages {
  flex: 1;
  min-height: 12rem;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #f1f5f4;
  list-style: none;
  margin: 0;
}

.wa-modal-bubble {
  max-width: 85%;
  border-radius: 0.75rem;
  padding: 0.5rem 0.7rem;
}

.wa-modal-bubble.is-in {
  align-self: flex-start;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.wa-modal-bubble.is-out {
  align-self: flex-end;
  background: #0f3d2e;
  color: #ecfdf5;
}

.wa-modal-compose {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.wa-modal-compose .wa-compose-attach {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.wa-modal-compose .wa-compose-audio-name {
  color: #047857;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lm-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.lm-btn-submit-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.lm-btn-submit.is-loading {
  opacity: 0.88;
  cursor: wait;
  pointer-events: none;
}

.lm-btn-submit.is-loading .lm-btn-submit-spinner {
  display: inline-block;
  animation: lm-spin 0.7s linear infinite;
}

.lm-btn-submit:disabled {
  opacity: 0.88;
  cursor: wait;
}

@keyframes lm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Catalog — package grid + sticky checkout (Joytify-inspired, LM brand) */
.lm-catalog {
  --lm-catalog-bar-h: 4.5rem;
  /* shell-main already reserves bottom nav; only clear the checkout bar */
  padding-bottom: calc(var(--lm-catalog-bar-h) + 1rem);
}

@media (min-width: 768px) {
  .lm-catalog {
    padding-bottom: calc(var(--lm-catalog-bar-h) + 1.25rem);
  }
}

.lm-catalog-header h1 {
  color: var(--lm-ink);
}

.lm-catalog-currency-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lm-catalog-currency-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d1d9d4;
  background: #fff;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lm-catalog-currency-pill:hover {
  border-color: var(--lm-moss);
  color: var(--lm-forest);
}

.lm-catalog-currency-pill.is-active {
  border-color: var(--lm-forest);
  background: var(--lm-sand);
  color: var(--lm-forest);
  font-weight: 600;
}

.lm-catalog-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lm-ink);
}

.lm-catalog-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--lm-forest);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.lm-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .lm-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .lm-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@keyframes lm-catalog-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lm-catalog-grid--animate .lm-catalog-card {
  opacity: 0;
  animation: lm-catalog-card-in 0.32s ease forwards;
  animation-delay: calc(var(--lm-card-i, 0) * 45ms);
}

@media (prefers-reduced-motion: reduce) {
  .lm-catalog-grid--animate .lm-catalog-card {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

.lm-catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 8.5rem;
  cursor: pointer;
  border-radius: 0.95rem;
  border: 1.5px solid #dce4df;
  background: #fff;
  padding: 0.7rem 0.7rem 0.85rem;
  box-shadow: 0 1px 2px rgba(20, 35, 28, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    transform 0.12s ease;
  overflow: hidden;
}

.lm-catalog-card--featured {
  border-color: #9bc4ae;
  background: linear-gradient(180deg, #f4faf6, #fff 55%);
}

.lm-catalog-card:hover {
  border-color: #a8c4b4;
  box-shadow: 0 4px 12px rgba(15, 61, 46, 0.08);
  transform: translateY(-1px);
}

.lm-catalog-card:has(input:checked),
.lm-catalog-card:has(input:focus-visible) {
  border-color: var(--lm-forest);
  background: linear-gradient(180deg, var(--lm-sand), #fff 70%);
  box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.18);
}

.lm-catalog-card-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  max-width: calc(100% - 0.9rem);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  background: var(--lm-forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-catalog-card-badge--hot {
  background: #c2410c;
}

.lm-catalog-card-badge--bestseller {
  background: #0f766e;
}

.lm-catalog-card-badge--promo {
  background: #b91c1c;
}

.lm-catalog-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  border-radius: 0.7rem;
  background: linear-gradient(160deg, #eef6f1, #f8faf9 60%, #fff);
  overflow: hidden;
}

.lm-catalog-card-image {
  width: 100%;
  height: 4.5rem;
  object-fit: cover;
  display: block;
}

.lm-catalog-card-media-fallback {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #c4a035;
  line-height: 1;
  padding: 0.75rem 0.5rem;
}

.lm-catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.lm-catalog-card-qty {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lm-ink);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-catalog-card-unit {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.lm-catalog-card-pricing {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.35rem;
}

.lm-catalog-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--lm-moss);
  line-height: 1.1;
}

.lm-catalog-card-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.lm-catalog-card-compare-price {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.lm-catalog-card-discount {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.lm-catalog-destination {
  border-radius: 1rem;
  border: 1px solid #f0d9a8;
  background: linear-gradient(180deg, #fffbeb, #fff 55%);
  padding: 1rem 1rem 1.15rem;
}

.lm-catalog-destination > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.35rem;
}

.lm-catalog-destination > legend + * {
  clear: both;
}

.lm-catalog-input {
  margin-top: 0.4rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  color: var(--lm-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lm-catalog-input:focus {
  outline: none;
  border-color: var(--lm-moss);
  box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.15);
}

.lm-catalog-input--code {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.lm-catalog-player-card {
  margin-top: 0.85rem;
  border-radius: 1rem;
  border: 1px solid #d7e5dc;
  background: linear-gradient(135deg, #f7fbf8 0%, #fff 55%);
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 18px rgba(20, 35, 28, 0.06);
}

.lm-catalog-player-card.is-idle,
.lm-catalog-player-card[hidden] {
  display: none;
}

.lm-catalog-player-card-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lm-catalog-player-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
}

.lm-catalog-player-avatar,
.lm-catalog-player-avatar-fallback {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c5d8cc;
}

.lm-catalog-player-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f2ec;
  color: var(--lm-forest);
  font-size: 1.15rem;
  font-weight: 700;
}

.lm-catalog-player-avatar[hidden],
.lm-catalog-player-avatar-fallback[hidden] {
  display: none;
}

.lm-catalog-player-nick {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lm-ink);
  line-height: 1.25;
}

.lm-catalog-player-country {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: #64748b;
}

.lm-catalog-player-status {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: #b45309;
}

.lm-catalog-player-card.is-loading .lm-catalog-player-nick {
  color: #64748b;
  font-weight: 600;
}

.lm-catalog-player-card.is-error .lm-catalog-player-card-inner {
  opacity: 0.55;
}

.lm-catalog-checkout {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--lm-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  pointer-events: none;
}

@media (min-width: 768px) {
  .lm-catalog-checkout {
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.lm-catalog-checkout-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 auto;
  max-width: 72rem;
  border-top: 1px solid #d5e0d9;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.7rem var(--lm-page-pad-x);
  box-shadow: 0 -8px 24px rgba(20, 35, 28, 0.08);
}

.lm-catalog-checkout-summary {
  min-width: 0;
}

.lm-catalog-checkout-amount {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--lm-ink);
  line-height: 1.2;
}

.lm-catalog-checkout-detail {
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: #64748b;
}

.lm-catalog-checkout-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 0.85rem;
  background: var(--lm-forest);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.lm-catalog-checkout-btn:hover:not(:disabled) {
  background: var(--lm-moss);
}

.lm-catalog-checkout-btn:disabled {
  cursor: not-allowed;
}

.lm-catalog-terms {
  margin-top: 0.25rem;
}

.lm-catalog-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #334155;
}

.lm-catalog-terms-checkbox {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: #0f3d2e;
}

.lm-catalog-terms-text {
  flex: 1;
}

.lm-site-footer {
  margin-top: auto;
  background: transparent;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

.lm-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 0.25rem;
  font-size: 0.75rem;
}

.lm-site-footer-links a {
  color: #64748b;
  text-decoration: underline;
}

.lm-site-footer-links a:hover {
  color: #0f172a;
}

.lm-reseller-disclaimer {
  margin: 0 auto;
  padding: 0.35rem 1rem 1rem;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 40rem;
  background: transparent;
}

.lm-page .lm-reseller-disclaimer {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  max-width: none;
  text-align: left;
}

.lm-legal-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.lm-legal-kicker {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.lm-legal-kicker a {
  color: #475569;
  text-decoration: underline;
}

.lm-legal-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #64748b;
}

.lm-legal-body h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.lm-legal-body a {
  color: #0f3d2e;
}

/* —— Home da plataforma (apex/www): diretório de revendas —— */
.lm-platform-body {
  margin: 0;
  min-height: 100vh;
  color: #14231c;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 107, 74, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f7f4 0%, #e7efe9 42%, #f7faf8 100%);
  font-family: "DM Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

.lm-platform-top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(15, 61, 46, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lm-platform-top-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lm-platform-top-brand {
  font-family: "Fraunces", "DM Sans", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.lm-platform-top-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lm-platform-top-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.lm-platform-top-cta {
  display: inline-flex;
  align-items: center;
  border-radius: 0.65rem;
  background: #fff;
  color: #0f3d2e;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
}

.lm-platform-hero {
  padding: 3.5rem 1.25rem 2.5rem;
}

.lm-platform-hero-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  animation: lm-platform-rise 0.7s ease both;
}

.lm-platform-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f6b4a;
}

.lm-platform-brand {
  margin: 0.55rem 0 0;
  font-family: "Fraunces", "DM Sans", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #0f3d2e;
}

.lm-platform-tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.4;
  color: #24362d;
  font-weight: 500;
}

.lm-platform-support {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a5c53;
}

.lm-platform-section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.lm-platform-section-head {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.lm-platform-section-head h2,
.lm-platform-platforms h2 {
  margin: 0;
  font-family: "Fraunces", "DM Sans", Georgia, serif;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: #0f3d2e;
}

.lm-platform-section-head p {
  margin: 0.45rem 0 0;
  color: #4a5c53;
  font-size: 0.95rem;
  line-height: 1.45;
}

.lm-platform-reseller-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .lm-platform-reseller-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .lm-platform-reseller-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lm-platform-reseller {
  animation: lm-platform-rise 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.lm-platform-reseller-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 61, 46, 0.12);
  background: rgba(255, 255, 255, 0.82);
  padding: 1.15rem;
  box-shadow: 0 10px 28px rgba(20, 35, 28, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lm-platform-reseller-link:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 107, 74, 0.35);
  box-shadow: 0 16px 34px rgba(20, 35, 28, 0.1);
}

.lm-platform-reseller-logo-wrap {
  margin-bottom: 0.9rem;
}

.lm-platform-reseller-logo {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
  object-fit: cover;
  display: block;
  background: #fff;
  border: 1px solid rgba(15, 61, 46, 0.1);
}

.lm-platform-reseller-logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #0f3d2e, #1f6b4a);
  border: 0;
}

.lm-platform-reseller-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f3d2e;
}

.lm-platform-reseller-host {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  word-break: break-all;
}

.lm-platform-reseller-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.lm-platform-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #e8f2ec;
  color: #0f3d2e;
}

.lm-platform-badge--domi {
  background: #eef2ff;
  color: #312e81;
}

.lm-platform-reseller-cta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f6b4a;
}

.lm-platform-empty {
  color: #4a5c53;
  font-size: 0.95rem;
}

.lm-platform-platforms {
  padding-bottom: 1rem;
}

.lm-platform-platform-row {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .lm-platform-platform-row {
    grid-template-columns: 1fr 1fr;
  }
}

.lm-platform-platform-row article {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 61, 46, 0.08);
}

.lm-platform-platform-row h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f3d2e;
}

.lm-platform-platform-row p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4a5c53;
}

.lm-platform-footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  color: #6b7a72;
  font-size: 0.8rem;
}

@keyframes lm-platform-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
