@import url("https://fonts.googleapis.com/css2?family=Catamaran:wght@400;500;600;700;800;900&display=swap");

:root {
  --verde: #335d4a;
  --verde-escuro: #183a2d;
  --verde-2: #cbded4;
  --verde-claro: #edf4ef;
  --amarelo: #f59b1e;
  --amarelo-claro: #f6edda;
  --areia: #ede2c9;
  --cinza-1: #485156;
  --cinza-2: #7d8386;
  --cinza-3: #b1b7bc;
  --ink: var(--verde-escuro);
  --muted: var(--cinza-2);
  --line: #c9d3ce;
  --paper: #f7faf8;
  --surface: #eef4f0;
  --accent: var(--verde);
  --accent-strong: var(--verde-escuro);
  --danger: #9d432f;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(24, 58, 45, 0.14);
  --shadow-soft: 0 12px 34px rgba(24, 58, 45, 0.08);
  --panel: rgba(255, 255, 255, 0.74);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(203, 222, 212, 0.52), transparent 32rem),
    linear-gradient(180deg, #f8fbf9 0%, var(--paper) 42%, #eef4f0 100%);
  font-family:
    Catamaran, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  min-height: 42px;
  padding: 0 16px;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

button:hover {
  box-shadow: 0 8px 18px rgba(24, 58, 45, 0.09);
  transform: translateY(-1px);
}

button:active {
  box-shadow: none;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(245, 155, 30, 0.72);
  outline-offset: 3px;
}

.skip-link {
  background: var(--verde-escuro);
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  text-decoration: none;
  top: 12px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
  z-index: 20;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.button-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.primary {
  background: var(--verde-escuro);
  color: var(--white);
}

.primary:hover {
  background: var(--verde);
}

.secondary {
  background: var(--areia);
  color: var(--verde-escuro);
}

.secondary:hover {
  background: var(--verde-2);
}

.app-shell {
  min-height: 100vh;
}

.workspace {
  padding: 28px;
}

.auth-locked .workspace {
  margin: 0 auto;
  max-width: 1280px;
  min-height: 100vh;
}

.auth-locked .topbar-actions,
.auth-locked .owner-metrics,
.auth-locked .period-metrics,
.auth-locked .action-center,
.auth-locked .finance-command-panel,
.auth-locked .client-command-center,
.auth-locked .communication-hero-panel,
.auth-locked .communication-help-panel,
.auth-locked .communication-template-grid,
.auth-locked .operations-agenda,
.auth-locked .reports-panel,
.auth-locked .pipeline-panel,
.auth-locked .help-panel,
.auth-locked .quote-layout,
.auth-locked .prices-editor,
.auth-locked .values-layout,
.auth-locked .proposal-paper {
  display: none;
}

.auth-locked .team-panel {
  border-bottom: 0;
  margin: 0 auto;
  max-width: 760px;
}

.auth-locked .topbar {
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1fr);
}

.auth-locked .topbar-team-auth {
  background: var(--white);
  box-shadow: var(--shadow);
}

.topbar {
  align-items: start;
  background: var(--panel);
  border: 1px solid rgba(24, 58, 45, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 0.75fr) minmax(190px, 220px);
  margin: 0 0 16px;
  padding: 12px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 94px;
  object-fit: contain;
  width: 94px;
}

.brand-logo.small {
  background: var(--areia);
  border-radius: 50%;
  height: 46px;
  padding: 4px;
  width: 46px;
}

.brand-logo.print-logo {
  height: 82px;
  margin-bottom: 10px;
  width: 82px;
}

.topbar h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 0.9;
  margin: 4px 0 0;
  max-width: 520px;
}

.send-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-actions {
  align-self: start;
  display: grid;
  gap: 6px;
  width: 100%;
}

.topbar-tools {
  display: grid;
  gap: 12px;
  grid-column: span 2;
  grid-template-columns: minmax(320px, 1fr) minmax(190px, 220px);
}

.topbar-actions .button-link,
.topbar-actions button {
  min-height: 34px;
  width: 100%;
}

.topbar-action-row {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) minmax(68px, 0.32fr);
}

.copy-link-small {
  font-size: 0.78rem;
  line-height: 1.05;
  padding: 0 8px;
}

.copy-link-small.primary {
  background: var(--verde-escuro);
  color: var(--white);
}

.pricing-admin-link {
  background: var(--verde-claro);
  border-left: 4px solid var(--verde);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
  padding: 12px 14px;
}

.pricing-admin-link a {
  color: inherit;
}

.values-layout {
  display: grid;
  gap: 32px;
  padding-top: 8px;
}

.compact-team {
  padding-bottom: 24px;
}

.team-panel {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.team-grid,
.team-access {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(420px, 0.9fr) minmax(360px, 1.1fr);
}

.team-config,
.team-auth,
.team-context {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 58, 45, 0.13);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.team-auth-heading {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
}

.team-auth-heading .section-heading {
  margin: 0;
}

.team-config p,
.team-auth p,
.team-context p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.team-primary {
  align-content: start;
}

.team-email-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-email-presets button {
  min-height: 34px;
  padding: 0 12px;
}

.topbar-team-auth {
  align-content: start;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(24, 58, 45, 0.12);
  gap: 2px;
  padding: 5px 8px;
}

.topbar-team-auth .section-heading h2 {
  font-size: 0.96rem;
}

.topbar-team-auth .team-email-presets button {
  min-height: 32px;
  padding: 0 10px;
}

.topbar-team-auth .compact-login-row {
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) auto auto;
}

.topbar-team-auth input,
.topbar-team-auth button {
  min-height: 28px;
}

.topbar-team-auth button {
  padding: 0 10px;
}

.topbar-team-auth .team-status {
  font-size: 0.72rem;
  line-height: 1.05;
  padding: 4px 8px;
}

.team-session-row {
  align-items: stretch;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.team-session-row .team-status {
  align-content: center;
  display: grid;
}

.team-session-row #logoutBtn {
  min-width: 58px;
}

.auth-connected .topbar-team-auth .team-email-presets,
.auth-connected .topbar-team-auth > .compact-login-row {
  display: none;
}

.auth-connected .topbar-team-auth {
  gap: 2px;
}

.magic-link-recovery {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
}

.magic-link-recovery summary,
.team-advanced summary {
  color: var(--verde);
  cursor: pointer;
  font-weight: 900;
}

.topbar-recovery {
  gap: 3px;
  margin-top: 0;
  padding-top: 3px;
}

.topbar-recovery summary {
  font-size: 0.66rem;
  line-height: 1;
}

.topbar-recovery p {
  font-size: 0.76rem;
}

.compact-config-grid {
  grid-template-columns: minmax(170px, 0.9fr) minmax(190px, 1fr) auto;
}

.team-ready {
  display: grid;
  gap: 4px;
}

.team-ready span {
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-ready strong {
  font-size: 1rem;
  line-height: 1.1;
}

.team-checklist {
  color: var(--muted);
  display: grid;
  font-weight: 800;
  gap: 6px;
  line-height: 1.35;
  margin: 0;
  padding-left: 18px;
}

.team-advanced {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.team-advanced[open] {
  display: grid;
  gap: 12px;
}

.supabase-config-grid,
.login-row {
  align-items: end;
  display: grid;
  gap: 12px;
}

.supabase-config-grid {
  grid-template-columns: minmax(220px, 1.2fr) minmax(240px, 1.4fr) auto;
}

.login-row {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

label small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 4px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(157, 67, 47, 0.12);
}

.team-status {
  background: var(--surface);
  border-left: 4px solid var(--verde-2);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 10px 12px;
}

.request-panel,
.pipeline-panel,
.help-panel {
  background: var(--panel);
  border: 1px solid rgba(24, 58, 45, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.request-panel {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.request-panel p {
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.request-panel strong {
  color: var(--verde-escuro);
  overflow-wrap: anywhere;
}

.request-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.pipeline-panel > p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
  margin: -4px 0 12px;
}

.pipeline-stage-header {
  align-items: center;
  background: var(--verde-escuro);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: -2px 0 12px;
  padding: 8px 10px;
}

.pipeline-stage-header div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.pipeline-stage-header span {
  color: var(--verde-2);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.pipeline-stage-header strong {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  min-width: 0;
}

.pipeline-stage-header button {
  background: var(--areia);
  color: var(--verde-escuro);
  flex: 0 0 auto;
  font-size: 0.64rem;
  min-height: 24px;
  padding: 0 9px;
}

.pipeline-header-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.pipeline-header-actions .primary {
  background: var(--white);
  color: var(--verde-escuro);
  font-size: 0.64rem;
  min-height: 26px;
  padding: 0 10px;
}

.pipeline-guidance {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -4px 0 12px;
}

.pipeline-guidance span {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-left: 4px solid rgba(24, 58, 45, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 8px 10px;
}

.pipeline-guidance strong {
  color: var(--verde-escuro);
}

.pipeline-quick-filters {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: -2px 0 14px;
}

.pipeline-quick-filters > span {
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pipeline-filter-list button {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.12);
  color: var(--verde-escuro);
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
}

.pipeline-filter-list button span {
  font-size: 0.76rem;
  font-weight: 900;
}

.pipeline-filter-list button b {
  align-items: center;
  background: rgba(24, 58, 45, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 7px;
}

.pipeline-filter-list button.is-active,
.pipeline-filter-list button:hover {
  background: var(--verde-escuro);
  border-color: var(--verde-escuro);
  color: var(--white);
}

.pipeline-filter-list button.is-active b,
.pipeline-filter-list button:hover b {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.pipeline-filter-list .pipeline-active-filter {
  background: rgba(255, 149, 0, 0.14);
  border-color: rgba(255, 149, 0, 0.32);
  color: var(--verde-escuro);
}

.pipeline-filter-list .pipeline-active-filter b {
  background: var(--verde-escuro);
  color: var(--white);
  text-transform: uppercase;
}

.pipeline-board p,
.pipeline-column-list > small {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.owner-metrics {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.owner-metrics button {
  appearance: none;
  background: var(--verde-escuro);
  border-radius: 8px;
  border: 0;
  box-shadow: 0 10px 22px rgba(24, 58, 45, 0.1);
  color: var(--white);
  cursor: pointer;
  display: grid;
  gap: 2px;
  font: inherit;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.owner-metrics button:hover,
.owner-metrics button:focus-visible {
  box-shadow: 0 14px 28px rgba(24, 58, 45, 0.16);
  filter: saturate(1.06);
  outline: 2px solid rgba(24, 58, 45, 0.22);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.owner-metrics .metric-stage-lead {
  background: #c7473f;
}

.owner-metrics .metric-stage-sem-resposta {
  background: #ed7d36;
}

.owner-metrics .metric-stage-negociacao {
  background: #f2b94b;
}

.owner-metrics .metric-stage-sinal {
  background: #5cc3bd;
  color: var(--verde-escuro);
}

.owner-metrics .metric-stage-pg-restante {
  background: #3f8f93;
}

.owner-metrics .metric-stage-planejamento {
  background: #2e7e86;
}

.owner-metrics .metric-stage-48h {
  background: #1f6f93;
}

.owner-metrics .metric-stage-pos-venda {
  background: #0d6fa3;
}

.owner-metrics span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.owner-metrics .metric-stage-sinal span {
  color: var(--verde-escuro);
}

.owner-metrics strong {
  color: var(--white);
  font-size: 1.28rem;
  line-height: 1;
}

.owner-metrics .metric-stage-sinal strong {
  color: var(--verde-escuro);
}

.pipeline-column.is-stage-focus {
  animation: stageFocusPulse 1.4s ease;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.24), 0 18px 40px rgba(24, 58, 45, 0.14);
}

.form-section.is-loaded-focus,
.quote-layout.is-loaded-focus,
.proposal-paper.is-loaded-focus,
.loaded-editor-bar.is-loaded-focus,
.send-review-panel.is-loaded-focus {
  animation: loadedProposalPulse 1.5s ease;
}

@keyframes stageFocusPulse {
  0% {
    transform: translateY(-2px);
  }
  45% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes loadedProposalPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 149, 0, 0);
  }
  30% {
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.24);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 149, 0, 0);
  }
}

.period-metrics {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.period-metric-card {
  background: var(--verde-escuro);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(24, 58, 45, 0.08);
  color: var(--white);
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
}

.period-metric-card > span {
  color: var(--verde-2);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.period-metric-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.period-metric-card dl div {
  align-items: baseline;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  min-width: 0;
}

.period-metric-card dt,
.period-metric-card dd {
  margin: 0;
}

.period-metric-card dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.period-metric-card dd {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-command-center {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.clients-page .workspace {
  gap: 14px;
}

.clients-page .client-command-center {
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
}

.clients-hero-panel {
  background: linear-gradient(135deg, rgba(24, 58, 45, 0.98), rgba(49, 103, 79, 0.96));
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: var(--white);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.clients-hero-panel span {
  color: var(--amarelo);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.clients-hero-panel strong {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.03;
}

.clients-hero-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 750;
  margin: 0;
  max-width: 780px;
}

.global-search-panel,
.client-registry-panel {
  background: var(--panel);
  border: 1px solid rgba(24, 58, 45, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.command-heading {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.command-heading div {
  display: grid;
  gap: 2px;
}

.command-heading span {
  color: var(--amarelo);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-heading strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.command-heading small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.global-search-box input {
  min-height: 42px;
}

.global-search-results,
.client-directory-list {
  display: grid;
  gap: 8px;
}

.search-empty-guide,
.global-search-summary {
  background: rgba(24, 58, 45, 0.055);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 0.76rem;
  font-weight: 780;
  gap: 3px;
  padding: 10px 12px;
}

.search-empty-guide strong,
.global-search-summary {
  color: var(--verde-escuro);
  font-weight: 950;
}

.global-search-results > p,
.client-directory-list > p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.global-search-hit,
.client-registry-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.98));
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.global-search-hit {
  grid-template-columns: minmax(0, 1fr) auto;
}

.global-search-hit span,
.client-registry-topline span {
  color: var(--verde);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.global-search-hit strong,
.client-registry-main strong {
  color: var(--verde-escuro);
  font-size: 0.92rem;
  line-height: 1.08;
}

.global-search-hit small,
.client-registry-main small,
.client-registry-card li {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.25;
}

.global-search-hit button {
  grid-row: 1 / span 3;
  min-height: 30px;
  padding: 0 10px;
}

.client-registry-card ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-registry-card li {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.client-registry-card li small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-registry-topline,
.client-registry-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.client-registry-topline strong {
  background: rgba(24, 58, 45, 0.08);
  border-radius: 999px;
  color: var(--verde);
  font-size: 0.68rem;
  padding: 3px 8px;
}

.client-registry-summary {
  background: rgba(24, 58, 45, 0.05);
  border-radius: 8px;
  color: var(--verde);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 6px 8px;
}

.client-registry-profile {
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
}

.client-registry-profile span {
  color: var(--verde);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.client-registry-profile strong {
  color: var(--verde-escuro);
  font-size: 0.74rem;
  line-height: 1.22;
}

.client-profile-hot,
.client-profile-confirmed {
  background: rgba(245, 155, 30, 0.1);
  border-color: rgba(245, 155, 30, 0.22);
}

.client-profile-realized {
  background: rgba(47, 111, 69, 0.09);
  border-color: rgba(47, 111, 69, 0.22);
}

.client-profile-canceled {
  background: rgba(168, 50, 39, 0.07);
  border-color: rgba(168, 50, 39, 0.16);
}

.client-registry-commerce {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 850;
}

.client-registry-commerce span {
  background: rgba(24, 58, 45, 0.045);
  border-radius: 999px;
  padding: 4px 7px;
}

.client-registry-next {
  background: rgba(245, 155, 30, 0.1);
  border: 1px solid rgba(245, 155, 30, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}

.client-registry-next span {
  color: var(--verde);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-registry-next strong {
  color: var(--verde-escuro);
  font-size: 0.8rem;
}

.client-registry-metrics {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-registry-metrics span {
  background: rgba(24, 58, 45, 0.045);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 6px;
}

.client-registry-metrics b {
  color: var(--verde-escuro);
  font-size: 0.92rem;
  line-height: 1;
}

.client-registry-metrics small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.05;
  text-transform: uppercase;
}

.client-history-chip {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}

.client-history-quote {
  background: rgba(24, 58, 45, 0.08);
  color: var(--verde);
}

.client-history-confirmed {
  background: rgba(88, 188, 180, 0.24);
  color: #174f4b;
}

.client-history-realized {
  background: rgba(13, 111, 163, 0.16);
  color: #0b5f8c;
}

.client-history-canceled {
  background: rgba(139, 42, 35, 0.12);
  color: #8b2a23;
}

.client-registry-footer b {
  color: var(--verde-escuro);
  font-size: 0.82rem;
}

.client-registry-footer button {
  min-height: 30px;
  padding: 0 10px;
}

.action-center {
  background: var(--panel);
  border: 1px solid rgba(24, 58, 45, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.action-center-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.action-center-heading div {
  display: grid;
  gap: 2px;
}

.action-center-heading span {
  color: var(--amarelo);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-center-heading strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.action-center-heading small,
.action-list > p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

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

.action-focus-card {
  align-items: center;
  background: linear-gradient(135deg, var(--verde-escuro), #245f49);
  border: 1px solid rgba(24, 58, 45, 0.18);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(24, 58, 45, 0.14);
  color: white;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  padding: 14px 16px;
}

.action-focus-card span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.action-focus-card strong {
  color: white;
  display: block;
  font-size: 1.05rem;
  line-height: 1.08;
  margin-top: 2px;
}

.action-focus-card small,
.action-focus-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 4px 0 0;
}

.action-focus-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.action-focus-steps li {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 6px 8px;
}

.action-focus-card .action-open-button {
  background: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(10, 28, 21, 0.18);
  color: var(--verde-escuro) !important;
  justify-self: end;
  min-height: 34px;
  min-width: 128px;
  text-align: center;
}

.action-focus-card .action-open-button:hover {
  background: var(--amarelo-claro) !important;
  color: var(--verde-escuro) !important;
}

.action-track-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

.action-track-summary span {
  background: rgba(24, 58, 45, 0.065);
  border-radius: 999px;
  color: var(--verde);
  font-size: 0.68rem;
  font-weight: 900;
  min-height: 24px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.action-track-summary b {
  color: var(--verde-escuro);
}

.operations-agenda {
  background: var(--panel);
  border: 1px solid rgba(24, 58, 45, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.operations-agenda-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.operations-agenda-heading div {
  display: grid;
  gap: 2px;
}

.operations-agenda-heading span {
  color: var(--amarelo);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operations-agenda-heading strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.operations-agenda-heading small,
.agenda-empty {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.operations-agenda-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operations-agenda-column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.98));
  border: 1px solid rgba(24, 58, 45, 0.09);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
}

.operations-agenda-column header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.operations-agenda-column header span {
  color: var(--verde-escuro);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operations-agenda-column header strong {
  align-items: center;
  background: rgba(24, 58, 45, 0.08);
  border-radius: 999px;
  color: var(--verde);
  display: inline-flex;
  font-size: 0.82rem;
  min-height: 28px;
  padding: 0 10px;
}

.operations-agenda-column > small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  margin: -4px 0 2px;
}

.operations-agenda-list {
  display: grid;
  gap: 10px;
}

.agenda-event-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.11);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(24, 58, 45, 0.05);
  display: grid;
  gap: 6px;
  padding: 11px 12px;
}

.agenda-event-topline,
.agenda-event-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.agenda-event-topline span {
  color: var(--amarelo);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-event-topline b {
  color: var(--verde);
  font-size: 0.78rem;
}

.agenda-event-card strong {
  color: var(--verde-escuro);
  font-size: 0.94rem;
}

.agenda-event-card small,
.agenda-event-card p,
.agenda-event-card em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 780;
  margin: 0;
}

.agenda-event-card p {
  color: var(--verde-escuro);
}

.agenda-event-footer em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-conflict-card.agenda-conflict-warning {
  border-color: rgba(199, 134, 33, 0.34);
}

.agenda-conflict-card.agenda-conflict-danger {
  border-color: rgba(168, 61, 33, 0.3);
  box-shadow: 0 10px 22px rgba(168, 61, 33, 0.08);
}

.action-task {
  align-content: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.98));
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-top: 4px solid var(--verde);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(24, 58, 45, 0.06);
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 12px;
}

.action-task-topline,
.action-task-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.action-task-track,
.action-task-urgency {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  min-height: 22px;
  padding: 0 9px;
  text-transform: uppercase;
}

.action-task-track {
  background: rgba(24, 58, 45, 0.08);
  color: var(--verde);
}

.action-task-urgency {
  background: rgba(245, 155, 30, 0.12);
  color: #8a5a00;
}

.action-task-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.action-task strong {
  color: var(--verde-escuro);
  font-size: 0.92rem;
  line-height: 1.1;
}

.action-task-title {
  color: var(--verde);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-task small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.3;
}

.action-task-sla {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.64rem !important;
  font-weight: 950 !important;
  justify-self: start;
  padding: 3px 7px;
  text-transform: uppercase;
}

.sla-fresh {
  background: rgba(47, 111, 69, 0.1);
  color: var(--verde) !important;
}

.sla-warning {
  background: rgba(245, 155, 30, 0.16);
  color: #8a5a00 !important;
}

.sla-danger {
  background: rgba(237, 125, 54, 0.14);
  color: #b35a18 !important;
}

.sla-critical {
  background: rgba(199, 71, 63, 0.13);
  color: #9d2f28 !important;
}

.action-task p {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.action-danger {
  border-left-color: #ed7d36;
}

.action-critical {
  border-left-color: #c7473f;
}

.action-warning {
  border-left-color: #f2b94b;
}

.action-open-button {
  font-size: 0.62rem;
  min-height: 24px;
  padding: 0 10px;
}

.action-critical .action-task-urgency {
  background: rgba(199, 71, 63, 0.12);
  color: #9d2f28;
}

.action-danger .action-task-urgency {
  background: rgba(237, 125, 54, 0.12);
  color: #b35a18;
}

.action-warning .action-task-urgency {
  background: rgba(242, 185, 75, 0.18);
  color: #8a5a00;
}

.quote-empty-state {
  background:
    linear-gradient(135deg, rgba(24, 58, 45, 0.06), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 20px 22px;
}

.quote-empty-copy {
  display: grid;
  gap: 6px;
}

.quote-empty-copy span {
  color: var(--amarelo);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-empty-copy strong {
  color: var(--verde-escuro);
  font-size: 1.18rem;
  line-height: 1.1;
}

.quote-empty-copy p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  max-width: 760px;
}

.quote-empty-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-empty-steps article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 15px;
}

.quote-empty-steps span {
  align-items: center;
  background: var(--surface);
  border-radius: 999px;
  color: var(--verde);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.quote-empty-steps strong {
  color: var(--verde-escuro);
  font-size: 0.94rem;
}

.quote-empty-steps p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.35;
  margin: 0;
}

.quote-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reports-panel {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.reports-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.reports-header div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reports-header span {
  color: var(--amarelo);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reports-header h2 {
  color: var(--verde-escuro);
  font-size: 1.1rem;
  line-height: 1.1;
  margin: 0;
}

.reports-header button {
  min-height: 30px;
  padding: 0 12px;
}

.report-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-presets button {
  background: rgba(24, 58, 45, 0.06);
  border: 1px solid transparent;
  color: var(--verde-escuro);
  font-size: 0.72rem;
  min-height: 30px;
  padding: 0 10px;
}

.report-presets button.is-active,
.report-presets button:hover {
  background: var(--verde-escuro);
  color: var(--white);
}

.reports-toolbar {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.reports-toolbar > button {
  min-height: 30px;
  padding: 0 12px;
}

.reports-body {
  display: grid;
  gap: 12px;
}

.custom-report {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
}

.custom-report label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  gap: 4px;
}

.custom-report input,
.custom-report select {
  min-height: 34px;
}

.custom-report button {
  min-height: 34px;
  padding: 0 14px;
}

.report-output {
  display: grid;
  gap: 10px;
}

.report-summary {
  background: var(--verde-escuro);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
  padding: 12px;
}

.report-summary > div:first-child {
  display: grid;
  gap: 4px;
}

.report-summary span {
  color: var(--verde-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-summary strong {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.1;
}

.report-summary dl {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.report-summary dl div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 8px;
}

.report-summary dt,
.report-summary dd {
  margin: 0;
}

.report-summary dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-summary dd {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
}

.report-insights {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(1.3fr, 1.8fr) repeat(3, minmax(0, 1fr));
}

.report-insights article {
  background: rgba(24, 58, 45, 0.045);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.report-insights span {
  color: var(--amarelo);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.report-insights strong {
  color: var(--verde-escuro);
  font-size: 0.82rem;
  line-height: 1.24;
}

.report-list {
  display: grid;
  gap: 7px;
  max-height: 340px;
  overflow: auto;
}

.report-list > p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.report-item {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 10px;
}

.report-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-item > div:last-child {
  justify-items: end;
}

.report-item strong {
  color: var(--verde-escuro);
  font-size: 0.9rem;
  line-height: 1.05;
}

.report-item span,
.report-item small {
  color: var(--muted);
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-item span {
  color: var(--verde);
}

.report-item b {
  color: var(--verde-escuro);
  font-size: 0.82rem;
  white-space: nowrap;
}

.report-open-button {
  font-size: 0.62rem;
  min-height: 24px;
  padding: 0 10px;
}

.pipeline-board {
  display: grid;
  gap: 16px;
  overflow: visible;
  padding-bottom: 4px;
}

.pipeline-row {
  align-items: start;
  display: grid;
  gap: 12px;
}

.pipeline-row-commercial {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
}

.pipeline-row-operation {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.pipeline-row-archive {
  grid-template-columns: minmax(220px, 360px);
}

.pipeline-column {
  align-self: start;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 58, 45, 0.13);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding: calc(1cm + 9px) 9px 9px;
  position: relative;
}

.pipeline-column::before {
  background: var(--stage-color, var(--verde-escuro));
  content: "";
  height: 1cm;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.pipeline-stage-lead_recebido {
  --stage-color: #c7473f;
  --stage-text: var(--white);
}

.pipeline-stage-proposta_enviada {
  --stage-color: #ed7d36;
  --stage-text: var(--white);
}

.pipeline-stage-negociacao {
  --stage-color: #f2b94b;
  --stage-text: var(--verde-escuro);
}

.pipeline-stage-confirmado {
  --stage-color: #5cc3bd;
  --stage-text: var(--verde-escuro);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(92, 195, 189, 0.48);
  box-shadow: inset 0 0 0 1px rgba(92, 195, 189, 0.14);
}

.pipeline-stage-pagamento_final {
  --stage-color: #3f8f93;
  --stage-text: var(--white);
}

.pipeline-stage-planejamento {
  --stage-color: #2e7e86;
  --stage-text: var(--white);
}

.pipeline-stage-evento_proximo {
  --stage-color: #1f6f93;
  --stage-text: var(--white);
}

.pipeline-stage-pos_venda {
  --stage-color: #0d6fa3;
  --stage-text: var(--white);
}

.pipeline-stage-cancelado {
  --stage-color: #8a8f8d;
  --stage-text: var(--white);
}

.pipeline-stage-confirmado .pipeline-column-heading span::before {
  color: var(--amarelo);
  content: "";
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline-stage-confirmado .pipeline-column-heading strong {
  background: rgba(255, 255, 255, 0.24);
  color: inherit;
}

.pipeline-column-heading {
  align-items: center;
  color: var(--stage-text, var(--white));
  display: flex;
  height: 1cm;
  justify-content: space-between;
  gap: 10px;
  left: 0;
  padding: 0 9px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.pipeline-column-heading span {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.05;
}

.pipeline-column-heading strong {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: inherit;
  line-height: 1.05;
  min-width: 26px;
  padding: 1px 7px;
  text-align: center;
}

.pipeline-column-collapsible {
  padding: 0;
}

.pipeline-column-collapsible details {
  display: grid;
  gap: 10px;
  padding: calc(1cm + 9px) 9px 9px;
}

.pipeline-column-summary {
  cursor: pointer;
  list-style: none;
}

.pipeline-column-summary::-webkit-details-marker {
  display: none;
}

.pipeline-column-summary::before {
  color: var(--verde);
  content: "\25B8";
  font-size: 0.72rem;
  font-weight: 900;
}

.pipeline-column-collapsible details[open] .pipeline-column-summary::before {
  content: "\25BE";
}

.pipeline-column-summary span {
  flex: 1 1 auto;
}

.pipeline-column-list {
  align-content: start;
  display: grid;
  gap: 10px;
  min-height: 84px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.pipeline-column-list.is-drop-target {
  background: rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(24, 58, 45, 0.18);
}

.pipeline-empty-state {
  background: rgba(255, 255, 255, 0.64);
  border: 1px dashed rgba(24, 58, 45, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
}

.pipeline-empty-state strong {
  color: var(--verde-escuro);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.16;
}

.pipeline-empty-state small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.22;
}

.pipeline-card {
  background: var(--white);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  line-height: 1.12;
  overflow: hidden;
  padding: 6px 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pipeline-card:hover {
  border-color: rgba(24, 58, 45, 0.28);
  box-shadow: 0 10px 24px rgba(24, 58, 45, 0.08);
  transform: translateY(-1px);
}

.pipeline-card:focus-visible {
  border-color: rgba(245, 155, 30, 0.72);
  box-shadow: 0 0 0 3px rgba(245, 155, 30, 0.22);
  outline: none;
}

.action-focus-card,
.action-task {
  cursor: pointer;
}

.action-focus-card:focus-visible,
.action-task:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 155, 30, 0.24);
  outline: 2px solid rgba(245, 155, 30, 0.72);
  outline-offset: 2px;
}

.pipeline-card[draggable="true"] {
  cursor: pointer;
}

.pipeline-card.is-dragging {
  cursor: grabbing;
  opacity: 0.58;
}

.pipeline-card-kicker,
.pipeline-card-event-row,
.pipeline-card-name-row,
.pipeline-card-title {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.pipeline-card-kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: -1px;
  min-width: 0;
}

.pipeline-card-kicker small {
  font-size: 0.62rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-card-reference {
  color: var(--muted) !important;
  flex: 1 1 82px;
  font-weight: 500 !important;
  letter-spacing: 0;
  min-width: 54px;
  max-width: none;
}

.pipeline-card-reference-bottom {
  color: #7d8883 !important;
  font-size: 0.55rem !important;
  font-weight: 650 !important;
  grid-column: auto;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-age-badge {
  border-radius: 999px;
  flex: 0 0 auto;
  justify-self: start;
  max-width: 100%;
  padding: 2px 7px;
}

.follow-up-badge {
  border-radius: 999px;
  flex: 0 0 auto;
  justify-self: start;
  max-width: 100%;
  padding: 2px 7px;
}

.lead-age-fresh {
  background: rgba(24, 58, 45, 0.08);
  color: var(--verde) !important;
}

.lead-age-warning {
  background: rgba(245, 155, 30, 0.18);
  color: #8a5100 !important;
}

.lead-age-danger,
.lead-age-critical {
  background: rgba(199, 71, 63, 0.12);
  color: #a72d26 !important;
}

.lead-age-critical {
  font-weight: 950 !important;
}

.follow-up-warning {
  background: rgba(245, 155, 30, 0.18);
  color: #8a5100 !important;
}

.follow-up-danger,
.follow-up-critical {
  background: rgba(199, 71, 63, 0.12);
  color: #a72d26 !important;
}

.follow-up-critical {
  font-weight: 950 !important;
}

.pipeline-card-actions {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  justify-content: flex-end;
  margin-left: auto;
}

.pipeline-card-kicker .pipeline-status-control {
  margin-left: 0;
}

.pipeline-card-kicker .pipeline-status-control summary {
  font-size: 0.58rem;
  height: 20px;
  min-height: 20px;
  padding: 0 8px;
}

.pipeline-card-title strong,
.pipeline-card-title span {
  color: var(--verde-escuro);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.pipeline-card-title strong {
  min-width: 0;
}

.pipeline-card-title > span {
  margin-left: auto;
  white-space: nowrap;
}

.pipeline-open-button {
  flex: 0 0 auto;
  font-size: 0.6rem;
  height: 20px;
  line-height: 1;
  margin-left: 0;
  max-width: 112px;
  min-height: 20px;
  padding: 0 8px;
  white-space: nowrap;
}

.pipeline-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.12;
}

.pipeline-card-event-line {
  color: #245341 !important;
  font-size: 0.82rem !important;
  font-weight: 820 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-card-value-stack {
  align-items: flex-end;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  margin-left: auto;
  min-width: 92px;
}

.pipeline-card-value {
  color: var(--verde-escuro) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.pipeline-card-breakdown-row {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: space-between;
  min-width: 0;
}

.pipeline-value-breakdown {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
}

.pipeline-value-breakdown span {
  align-items: center;
  background: rgba(24, 58, 45, 0.045);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 999px;
  color: #335d4a;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 780;
  line-height: 1;
  min-height: 16px;
  overflow: visible;
  padding: 2px 6px;
  text-overflow: clip;
  white-space: nowrap;
}

.pipeline-value-breakdown .pipeline-product-chip {
  background: rgba(24, 58, 45, 0.08);
  border-color: rgba(24, 58, 45, 0.14);
  color: var(--verde-escuro);
  font-weight: 820;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-value-breakdown span.has-privatization {
  background: rgba(245, 155, 30, 0.12);
  border-color: rgba(245, 155, 30, 0.22);
  color: #7f5100;
}

.report-value-breakdown {
  justify-content: flex-end;
  margin: 2px 0 4px;
}

.pipeline-card-name {
  color: var(--verde-escuro) !important;
  display: -webkit-box;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.08 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.pipeline-card-type {
  color: var(--verde) !important;
  font-weight: 850 !important;
}

.pipeline-card-final-client {
  color: #68736e;
  display: block;
  font-size: 0.84rem;
  font-weight: 680;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-card-alerts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -1px;
}

.pipeline-alert {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.58rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 18px;
  padding: 0 7px;
  text-transform: uppercase;
}

.pipeline-alert-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #7a4f00 !important;
}

.pipeline-alert-danger,
.pipeline-alert-critical {
  background: rgba(168, 50, 39, 0.11);
  color: #8d261d !important;
}

.pipeline-alert-success {
  background: rgba(47, 111, 69, 0.12);
  color: var(--verde) !important;
}

.pipeline-card-next-action {
  align-items: center;
  background: rgba(24, 58, 45, 0.075);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 1px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 24px;
  padding: 4px 7px;
}

.pipeline-card-next-action.has-action-button {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pipeline-card-next-action span {
  color: #8a6a32;
  font-size: 0.56rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.pipeline-card-next-action strong {
  color: var(--verde-escuro);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.05;
  text-align: right;
}

.pipeline-card-next-action small {
  color: #6f7773 !important;
  font-size: 0.6rem !important;
  font-weight: 620 !important;
  grid-column: 1 / -1;
  line-height: 1.05;
}

.pipeline-next-action-button {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-end;
  align-self: center;
}

.pipeline-next-action-button .pipeline-signal-action {
  margin-left: auto;
}

.pipeline-card-next-action.has-action-button small {
  grid-column: 1;
  grid-row: 2;
}

.pipeline-card-next-action.is-warning,
.pipeline-card-next-action.is-warm,
.pipeline-card-next-action.is-attention {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
}

.pipeline-card-next-action.is-danger,
.pipeline-card-next-action.is-critical {
  background: rgba(168, 50, 39, 0.1);
  border-color: rgba(168, 50, 39, 0.2);
}

.pipeline-card-next-action.is-success,
.pipeline-card-next-action.is-operation,
.pipeline-card-next-action.is-client {
  background: rgba(47, 111, 69, 0.1);
  border-color: rgba(47, 111, 69, 0.16);
}

.pipeline-card-next-action.is-muted {
  background: rgba(107, 114, 128, 0.08);
}

.pipeline-client-response {
  background: rgba(92, 195, 189, 0.14);
  border-radius: 8px;
  color: var(--verde-escuro) !important;
  display: block;
  font-weight: 900 !important;
  padding: 4px 7px;
  white-space: normal;
}

.pipeline-client-change {
  appearance: none;
  background: linear-gradient(135deg, rgba(92, 195, 189, 0.16), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(47, 111, 69, 0.22);
  border-left: 4px solid #5cc3bd;
  border-radius: 8px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.pipeline-client-change:hover {
  border-color: rgba(47, 111, 69, 0.36);
  box-shadow: 0 8px 18px rgba(24, 58, 45, 0.08);
  transform: translateY(-1px);
}

.pipeline-client-change:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 155, 30, 0.22);
  outline: 2px solid rgba(245, 155, 30, 0.7);
  outline-offset: 2px;
}

.pipeline-client-change span {
  color: var(--verde);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pipeline-client-change strong {
  color: var(--verde-escuro);
  display: -webkit-box;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.18;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pipeline-client-change small {
  color: var(--muted) !important;
  font-size: 0.64rem !important;
  font-weight: 820 !important;
  line-height: 1.2 !important;
}

.pipeline-card-event-row {
  align-items: center;
  min-width: 0;
}

.pipeline-card-event-row .pipeline-status-control {
  margin-left: auto;
}

.pipeline-card-name-row {
  align-items: center;
  min-width: 0;
}

.pipeline-card-bottom-row {
  align-items: center;
  display: grid;
  gap: 3px 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pipeline-card-meta-group {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  min-width: 0;
}

.pipeline-card-meta {
  font-weight: 600 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-change-dialog-backdrop {
  align-items: center;
  background: rgba(10, 28, 22, 0.52);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 9999;
}

.client-change-dialog {
  background: var(--white);
  border: 1px solid rgba(24, 58, 45, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(10, 28, 22, 0.28);
  display: grid;
  gap: 14px;
  max-height: min(720px, 92vh);
  max-width: 720px;
  overflow: auto;
  padding: 18px;
  width: min(720px, 100%);
}

.client-change-dialog-header {
  align-items: start;
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.client-change-dialog-header span {
  color: var(--amarelo);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.client-change-dialog-header h2 {
  color: var(--verde-escuro);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  grid-column: 1;
  line-height: 1.05;
  margin: 0;
}

.client-change-dialog-header .icon-button {
  align-self: start;
  background: rgba(24, 58, 45, 0.08);
  color: var(--verde-escuro);
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 34px;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.client-change-dialog-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-change-dialog-summary div,
.client-change-dialog-message,
.client-change-dialog-meta strong {
  background: rgba(24, 58, 45, 0.045);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
}

.client-change-dialog-summary div {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.client-change-dialog-summary span,
.client-change-dialog-message span {
  color: var(--verde);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.client-change-dialog-summary strong {
  color: var(--verde-escuro);
  font-size: 1rem;
  line-height: 1.1;
}

.client-change-dialog-summary small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.client-change-dialog-message {
  border-left: 5px solid #5cc3bd;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.client-change-dialog-message p {
  color: var(--verde-escuro);
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.42;
  margin: 0;
  white-space: pre-wrap;
}

.client-change-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-change-dialog-meta strong {
  color: var(--verde-escuro);
  font-size: 0.82rem;
  padding: 8px 10px;
}

.client-change-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .client-change-dialog-backdrop {
    align-items: end;
    padding: 10px;
  }

  .client-change-dialog {
    max-height: 88vh;
    padding: 14px;
  }

  .client-change-dialog-summary {
    grid-template-columns: 1fr;
  }

  .client-change-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.pipeline-score-badge {
  align-items: center;
  align-self: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.53rem !important;
  font-weight: 720 !important;
  line-height: 1;
  max-width: 96px;
  min-height: 14px;
  overflow: hidden;
  padding: 1px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-score-high {
  background: rgba(199, 71, 63, 0.12);
  color: #9f2f28 !important;
}

.pipeline-score-good {
  background: rgba(47, 111, 69, 0.1);
  color: #335d4a !important;
}

.pipeline-score-warm {
  background: rgba(245, 155, 30, 0.18);
  color: #8a5100 !important;
}

.pipeline-score-base {
  background: rgba(24, 58, 45, 0.07);
  color: #68736e !important;
}

.pipeline-top-action,
.pipeline-proof-download {
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--verde) !important;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  height: 20px;
  justify-content: center;
  line-height: 1;
  max-width: 108px;
  min-height: 20px;
  overflow: hidden;
  padding: 0 8px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-proof-download {
  background: rgba(24, 58, 45, 0.1);
}

.pipeline-card-kicker .pipeline-top-action {
  margin-left: auto;
}

.pipeline-signal-action {
  background: var(--amarelo);
  color: var(--verde-escuro) !important;
  font-weight: 900 !important;
  min-width: 88px;
}

.pipeline-signal-action:hover {
  background: #ffb447;
}

.pipeline-final-payment-action {
  background: #2f7f7f;
  color: var(--white) !important;
  min-width: 88px;
}

.pipeline-final-payment-action:hover {
  background: #236a6a;
}

.pipeline-card-status-row {
  align-items: start;
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.pipeline-status-control {
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
}

.pipeline-status-control summary {
  background: var(--surface);
  border-radius: 8px;
  color: var(--verde);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  list-style: none;
  padding: 4px 8px;
  text-transform: uppercase;
}

.pipeline-status-control summary::-webkit-details-marker {
  display: none;
}

.pipeline-status-control[open] {
  min-width: min(260px, 100%);
}

.pipeline-status-control label {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(24, 58, 45, 0.12);
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 8px;
}

.pipeline-status-control select {
  min-height: 36px;
  padding: 6px 8px;
}

label.pipeline-status-control {
  align-items: flex-end;
  display: flex;
  font-size: 0;
  justify-content: flex-end;
  min-height: 28px;
  position: relative;
}

label.pipeline-status-control::before {
  background: var(--surface);
  border-radius: 8px;
  color: var(--verde);
  content: "Mudar";
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

label.pipeline-status-control select {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(240px, 78vw);
  z-index: 4;
}

label.pipeline-status-control:hover select,
label.pipeline-status-control:focus-within select {
  display: block;
}

.danger-light {
  color: var(--danger);
}

.request-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.request-item strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.request-item small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.loaded-editor-bar {
  align-items: center;
  background: linear-gradient(135deg, rgba(24, 58, 45, 0.95), rgba(47, 111, 69, 0.9));
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(24, 58, 45, 0.14);
  color: var(--white);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 8px 0 12px;
  padding: 10px 12px;
  position: sticky;
  scroll-margin-top: 12px;
  top: 8px;
  z-index: 24;
}

.loaded-editor-bar.is-hidden {
  display: none;
}

.loaded-editor-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.loaded-editor-main span {
  color: var(--amarelo);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.loaded-editor-main strong {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loaded-editor-main small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loaded-editor-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.loaded-editor-actions button {
  background: var(--white);
  color: var(--verde-escuro);
  font-size: 0.68rem;
  min-height: 28px;
  padding: 0 10px;
}

.loaded-editor-saved,
.loaded-editor-dirty {
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.loaded-editor-saved {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.loaded-editor-dirty {
  background: rgba(255, 149, 0, 0.2);
  color: var(--amarelo);
}

@media (max-width: 720px) {
  .pipeline-header-actions {
    justify-content: stretch;
    width: 100%;
  }

  .pipeline-header-actions .primary,
  .pipeline-header-actions .secondary {
    flex: 1 1 0;
  }

  .loaded-editor-bar {
    grid-template-columns: 1fr;
  }

  .loaded-editor-main strong,
  .loaded-editor-main small {
    white-space: normal;
  }

  .loaded-editor-actions {
    justify-content: space-between;
    width: 100%;
  }
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.request-actions button {
  font-size: 0.84rem;
  min-height: 30px;
  padding: 0 10px;
}

.signal-modal-backdrop {
  align-items: center;
  background: rgba(11, 33, 25, 0.48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 90;
}

.signal-modal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(11, 33, 25, 0.2);
  display: grid;
  gap: 12px;
  max-width: 420px;
  padding: 20px;
  width: min(420px, 100%);
}

.signal-modal h3 {
  color: var(--verde-escuro);
  font-size: 1.15rem;
  line-height: 1.1;
  margin: 4px 0;
}

.signal-modal p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

.optional-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.signal-modal fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 10px;
}

.signal-modal legend {
  color: var(--verde);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 6px;
  text-transform: uppercase;
}

.signal-bank-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-payment-presets {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-payment-presets label {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 9px;
}

.signal-payment-presets input {
  accent-color: var(--verde-escuro);
  height: 16px;
  width: 16px;
}

.signal-payment-presets span,
.signal-payment-presets small {
  display: block;
}

.signal-payment-presets span {
  color: var(--verde-escuro);
  font-weight: 900;
}

.signal-payment-presets small {
  color: var(--muted);
  font-weight: 800;
}

.signal-bank-options label {
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 8px;
}

.signal-bank-options input {
  accent-color: var(--verde-escuro);
  height: 16px;
  width: 16px;
}

.signal-error {
  color: #9a3412;
  min-height: 16px;
}

.signal-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.payment-mismatch {
  background: rgba(245, 155, 30, 0.12);
  border-left: 4px solid var(--amarelo);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.payment-mismatch strong {
  color: var(--verde-escuro);
  font-size: 0.86rem;
}

.payment-mismatch textarea {
  min-height: 84px;
}

.signal-summary {
  background: rgba(24, 58, 45, 0.08);
  border-left: 4px solid var(--verde);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  margin: 10px 0 12px;
  padding: 10px 12px;
}

.signal-summary span {
  color: var(--verde);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-summary strong {
  color: var(--verde-escuro);
  font-size: 0.98rem;
}

.signal-summary small {
  color: var(--muted);
  font-weight: 700;
}

.signal-summary a {
  color: var(--verde);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.availability-alert {
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin: 8px 0 12px;
  padding: 10px 12px;
}

.availability-alert strong {
  color: var(--verde-escuro);
  font-size: 0.9rem;
}

.availability-alert span,
.availability-alert small {
  color: var(--muted);
  font-weight: 800;
}

.availability-alert div {
  display: grid;
  gap: 3px;
}

.availability-ok {
  background: rgba(47, 111, 69, 0.08);
  border: 1px solid rgba(47, 111, 69, 0.18);
}

.availability-warning {
  background: rgba(242, 185, 75, 0.18);
  border: 1px solid rgba(219, 139, 27, 0.24);
}

.availability-danger {
  background: rgba(199, 71, 63, 0.12);
  border: 1px solid rgba(199, 71, 63, 0.28);
}

.form-source-panel {
  background:
    linear-gradient(135deg, rgba(24, 58, 45, 0.05), rgba(255, 255, 255, 0.92)),
    var(--panel);
  border: 1px solid rgba(24, 58, 45, 0.14);
  border-left: 5px solid var(--verde);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 12px;
}

.form-source-panel.has-missing {
  border-left-color: var(--amarelo);
}

.form-source-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.form-source-head div {
  display: grid;
  gap: 3px;
}

.form-source-head span,
.form-source-card span,
.form-source-briefing span {
  color: var(--amarelo);
  display: block;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.form-source-head strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.form-source-head p {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 780;
  line-height: 1.3;
  margin: 0;
}

.form-source-head small {
  background: rgba(245, 155, 30, 0.12);
  border: 1px solid rgba(245, 155, 30, 0.2);
  border-radius: 999px;
  color: var(--verde-escuro);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  max-width: 34ch;
  padding: 7px 10px;
  text-align: right;
}

.form-source-panel.is-complete .form-source-head small {
  background: rgba(47, 111, 69, 0.1);
  border-color: rgba(47, 111, 69, 0.18);
}

.form-source-edit {
  background: rgba(24, 58, 45, 0.045);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.form-source-edit > div:first-child {
  display: grid;
  gap: 2px;
}

.form-source-edit > div:first-child span,
.form-source-edit-field span {
  color: var(--amarelo);
  display: block;
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.form-source-edit > div:first-child strong {
  color: var(--verde-escuro);
  font-size: 0.9rem;
}

.form-source-edit > div:first-child p {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.28;
  margin: 0;
}

.form-source-edit-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-source-edit-field {
  display: grid;
  gap: 5px;
}

.form-source-edit-field input,
.form-source-edit-field select,
.form-source-edit-field textarea {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 58, 45, 0.18);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-size: 0.82rem;
  font-weight: 850;
  min-height: 42px;
  padding: 10px;
}

.form-source-edit-field textarea {
  min-height: 84px;
  resize: vertical;
}

.form-source-edit-field.is-wide {
  grid-column: 1 / -1;
}

.form-source-edit-field input:focus,
.form-source-edit-field select:focus,
.form-source-edit-field textarea:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(24, 58, 45, 0.1);
  outline: none;
}

.form-source-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-source-full-summary {
  border-top: 1px solid rgba(24, 58, 45, 0.1);
  padding-top: 2px;
}

.form-source-full-summary summary {
  align-items: center;
  border-radius: 8px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
  padding: 8px 10px;
}

.form-source-full-summary summary::-webkit-details-marker {
  display: none;
}

.form-source-full-summary summary::before {
  content: "▸";
  color: var(--verde);
  font-size: 0.82rem;
  font-weight: 950;
}

.form-source-full-summary[open] summary::before {
  content: "▾";
}

.form-source-full-summary summary span {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.form-source-full-summary summary small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 780;
}

.form-source-full-summary .form-source-grid {
  margin-top: 8px;
}

.form-source-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(24, 58, 45, 0.11);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 66px;
  padding: 10px 11px;
}

.form-source-card strong {
  color: var(--verde-escuro);
  font-size: 0.82rem;
  line-height: 1.25;
}

.form-source-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 820;
}

.form-source-card.is-missing {
  background: rgba(245, 155, 30, 0.1);
  border-color: rgba(245, 155, 30, 0.24);
}

.form-source-briefing {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-source-briefing article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.11);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.form-source-briefing p {
  color: var(--verde-escuro);
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.35;
  margin: 0;
}

.form-source-briefing.is-empty {
  grid-template-columns: 1fr;
}

.service-cockpit {
  background:
    linear-gradient(135deg, rgba(24, 58, 45, 0.06), rgba(255, 255, 255, 0.94)),
    var(--panel);
  border: 1px solid rgba(24, 58, 45, 0.14);
  border-left: 5px solid var(--verde);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(24, 58, 45, 0.07);
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px;
}

.service-cockpit.is-danger {
  border-left-color: #b3362d;
}

.service-cockpit.is-warning,
.service-cockpit.is-attention {
  border-left-color: var(--amarelo);
}

.service-cockpit-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.service-cockpit-head div:first-child {
  display: grid;
  gap: 3px;
}

.service-cockpit-head span,
.service-cockpit-card span {
  color: var(--amarelo);
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.service-cockpit-head strong {
  color: var(--verde-escuro);
  font-size: 1.14rem;
}

.service-cockpit-head small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-cockpit-progress {
  align-items: center;
  background: var(--verde-escuro);
  border-radius: 8px;
  color: #fff;
  display: grid;
  justify-items: center;
  min-width: 76px;
  padding: 9px 12px;
}

.service-cockpit-progress b {
  color: #fff;
  font-size: 1.12rem;
}

.service-cockpit-progress small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
}

.service-mobile-path {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-mobile-path button,
.send-review-route button {
  appearance: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 9px 10px;
  text-align: left;
  touch-action: manipulation;
}

.service-mobile-path button:hover,
.send-review-route button:hover {
  border-color: rgba(24, 58, 45, 0.28);
  box-shadow: 0 10px 22px rgba(24, 58, 45, 0.08);
  transform: translateY(-1px);
}

.service-mobile-path span,
.send-review-route span {
  align-items: center;
  background: rgba(245, 155, 30, 0.16);
  border-radius: 999px;
  color: var(--laranja);
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  width: 24px;
}

.service-mobile-path strong,
.send-review-route strong {
  color: var(--verde-escuro);
  font-size: 0.78rem;
  line-height: 1.05;
}

.service-mobile-path small,
.send-review-route small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.15;
}

.service-coach-note {
  background: rgba(24, 58, 45, 0.06);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.service-coach-note span {
  color: var(--amarelo);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.service-coach-note strong {
  color: var(--verde-escuro);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.28;
}

.service-cockpit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(180px, 1fr));
}

.service-cockpit-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.11);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.service-cockpit-card strong {
  color: var(--verde-escuro);
  font-size: 0.96rem;
}

.service-cockpit-card p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 790;
  line-height: 1.32;
  margin: 0;
}

.service-cockpit-card small {
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 900;
}

.service-template-card button,
.service-client-context button,
.service-next-card button {
  justify-self: start;
  min-height: 34px;
  padding: 8px 12px;
}

.service-next-card {
  background:
    linear-gradient(135deg, rgba(24, 58, 45, 0.1), rgba(255, 255, 255, 0.9)),
    #fff;
  border-color: rgba(24, 58, 45, 0.18);
}

.service-next-card.is-danger {
  border-color: rgba(168, 50, 39, 0.28);
}

.service-next-card.is-warning,
.service-next-card.is-attention {
  border-color: rgba(245, 158, 11, 0.34);
}

.service-cockpit-bottom {
  align-items: center;
  border-top: 1px solid rgba(24, 58, 45, 0.1);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 10px;
}

.service-cockpit-hint {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  margin-left: auto;
}

.service-checklist-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-check-mini {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 999px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
}

.service-check-mini b {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.62rem;
  height: 18px;
  justify-content: center;
  width: 20px;
}

.service-check-mini.is-error b {
  background: rgba(179, 54, 45, 0.13);
  color: #9d2f28;
}

.service-check-mini.is-warning b {
  background: rgba(245, 155, 30, 0.18);
  color: #8a5a00;
}

.service-check-mini.is-ok b {
  background: rgba(47, 111, 69, 0.12);
  color: var(--verde);
}

.service-next-action {
  min-height: 34px;
  white-space: nowrap;
}

.lead-review-panel {
  background:
    linear-gradient(135deg, rgba(24, 58, 45, 0.05), rgba(255, 255, 255, 0.9)),
    var(--panel);
  border: 1px solid rgba(24, 58, 45, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 58, 45, 0.06);
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
}

.lead-review-panel.has-blocker {
  border-left: 5px solid #b3362d;
}

.lead-review-panel.has-warning {
  border-left: 5px solid var(--amarelo);
}

.lead-review-panel.is-ready {
  border-left: 5px solid var(--verde);
}

.lead-review-heading,
.upsell-strip-heading {
  align-items: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.lead-review-heading span,
.upsell-strip-heading span {
  color: var(--amarelo);
  display: block;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lead-review-heading strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.lead-review-heading small,
.upsell-strip-heading small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.lead-review-priority {
  background: rgba(245, 155, 30, 0.11);
  border: 1px solid rgba(245, 155, 30, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.lead-review-priority.is-clear {
  background: rgba(47, 125, 79, 0.1);
  border-color: rgba(47, 125, 79, 0.18);
}

.lead-review-priority span {
  color: var(--verde);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-review-priority strong {
  color: var(--verde-escuro);
}

.lead-review-priority small {
  color: var(--muted);
  font-weight: 750;
}

.lead-approval-gate {
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.lead-approval-gate strong {
  color: var(--verde-escuro);
  font-size: 0.9rem;
}

.lead-approval-gate span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.32;
}

.lead-approval-gate.is-blocker {
  background: rgba(168, 50, 39, 0.09);
  border: 1px solid rgba(168, 50, 39, 0.2);
}

.lead-approval-gate.is-warning {
  background: rgba(245, 155, 30, 0.12);
  border: 1px solid rgba(245, 155, 30, 0.22);
}

.lead-approval-gate.is-ready {
  background: rgba(47, 111, 69, 0.09);
  border: 1px solid rgba(47, 111, 69, 0.18);
}

.review-command-center {
  align-items: center;
  background: linear-gradient(135deg, rgba(24, 58, 45, 0.08), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(24, 58, 45, 0.14);
  border-left: 5px solid var(--verde-escuro);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 13px 14px;
}

.review-command-center.is-blocker {
  background: linear-gradient(135deg, rgba(168, 50, 39, 0.1), rgba(255, 255, 255, 0.94));
  border-color: rgba(168, 50, 39, 0.22);
  border-left-color: #b3362d;
}

.review-command-center.is-warning {
  background: linear-gradient(135deg, rgba(245, 155, 30, 0.14), rgba(255, 255, 255, 0.94));
  border-color: rgba(245, 155, 30, 0.28);
  border-left-color: var(--amarelo);
}

.review-command-center.is-ready,
.review-command-center.is-approved {
  background: linear-gradient(135deg, rgba(47, 111, 69, 0.11), rgba(255, 255, 255, 0.94));
  border-color: rgba(47, 111, 69, 0.2);
  border-left-color: var(--verde);
}

.review-command-copy {
  display: grid;
  gap: 4px;
}

.review-command-copy span,
.review-workflow-step small,
.lead-review-item em,
.send-review-item em {
  color: var(--amarelo);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.review-command-copy strong {
  color: var(--verde-escuro);
  font-size: 1rem;
  line-height: 1.12;
}

.review-command-copy p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 810;
  line-height: 1.32;
  margin: 0;
}

.review-command-side {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 150px;
}

.review-command-side b {
  background: rgba(24, 58, 45, 0.08);
  border-radius: 999px;
  color: var(--verde-escuro);
  font-size: 0.68rem;
  padding: 5px 9px;
  text-transform: uppercase;
}

.review-command-side button {
  min-height: 38px;
  padding-inline: 14px;
  white-space: nowrap;
}

.review-workflow {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.review-workflow-step {
  appearance: none;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 54px;
  padding: 9px;
  text-align: left;
}

.review-workflow-step span {
  align-items: center;
  background: rgba(47, 111, 69, 0.12);
  border-radius: 999px;
  color: var(--verde);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 950;
  grid-row: span 2;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.review-workflow-step strong {
  color: var(--verde-escuro);
  font-size: 0.78rem;
  line-height: 1.12;
}

.review-workflow-step.is-error {
  background: rgba(168, 50, 39, 0.07);
  border-color: rgba(168, 50, 39, 0.22);
}

.review-workflow-step.is-error span {
  background: rgba(168, 50, 39, 0.14);
  color: #8d261d;
}

.review-workflow-step.is-warning {
  background: rgba(245, 155, 30, 0.1);
  border-color: rgba(245, 155, 30, 0.24);
}

.review-workflow-step.is-warning span {
  background: rgba(245, 155, 30, 0.18);
  color: #8a5a00;
}

.review-focus-note {
  align-items: center;
  background: rgba(24, 58, 45, 0.045);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 9px 11px;
}

.review-focus-note div {
  background: rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 160px;
  padding: 8px 10px;
}

.review-focus-note span {
  color: var(--amarelo);
  font-size: 0.6rem;
  font-weight: 950;
  text-transform: uppercase;
}

.review-focus-note strong {
  color: var(--verde-escuro);
  font-size: 0.88rem;
  line-height: 1.1;
}

.review-focus-note p {
  color: var(--verde-escuro);
  font-size: 0.76rem;
  font-weight: 810;
  line-height: 1.28;
  margin: 0;
}

.review-focus-note.is-blocked {
  background: rgba(168, 50, 39, 0.055);
  border-color: rgba(168, 50, 39, 0.14);
}

.review-focus-note.is-blocked div {
  background: rgba(168, 50, 39, 0.08);
}

.review-focus-note.is-attention {
  background: rgba(245, 155, 30, 0.075);
  border-color: rgba(245, 155, 30, 0.18);
}

.review-focus-note.is-ready {
  background: rgba(47, 111, 69, 0.07);
  border-color: rgba(47, 111, 69, 0.15);
}

.review-compact-alerts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.review-compact-alerts .smart-alert {
  min-height: 0;
  padding: 9px 10px;
}

.approval-confidence,
.send-review-confidence {
  align-items: center;
  background: rgba(24, 58, 45, 0.06);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px 12px;
}

.approval-confidence div,
.send-review-confidence div {
  align-items: center;
  background: var(--verde-escuro);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  min-width: 94px;
  padding: 8px 10px;
}

.approval-confidence span,
.send-review-confidence span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.approval-confidence strong,
.send-review-confidence strong {
  color: var(--white);
  font-size: 1.18rem;
}

.approval-confidence p,
.send-review-confidence p {
  color: var(--verde-escuro);
  font-size: 0.78rem;
  font-weight: 830;
  line-height: 1.28;
  margin: 0;
}

.approval-confidence.is-blocked,
.send-review-confidence.is-blocked {
  background: rgba(168, 50, 39, 0.08);
  border-color: rgba(168, 50, 39, 0.18);
}

.approval-confidence.is-attention,
.send-review-confidence.is-attention {
  background: rgba(245, 155, 30, 0.1);
  border-color: rgba(245, 155, 30, 0.18);
}

.smart-alerts,
.send-smart-alerts {
  display: grid;
  gap: 8px;
}

.smart-alerts.is-detail {
  background: rgba(24, 58, 45, 0.035);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  padding: 9px;
}

.smart-alerts.is-detail:not([open]) {
  padding-block: 8px;
}

.smart-alerts.is-detail summary {
  cursor: pointer;
  list-style: none;
}

.smart-alerts.is-detail summary::-webkit-details-marker {
  display: none;
}

.smart-alerts.is-detail summary::before {
  color: var(--verde);
  content: "▸";
  font-size: 0.86rem;
  font-weight: 950;
}

.smart-alerts.is-detail[open] summary {
  margin-bottom: 8px;
}

.smart-alerts.is-detail[open] summary::before {
  content: "▾";
}

.smart-alerts-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.smart-alerts-heading span {
  color: var(--amarelo);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.smart-alerts-heading small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.smart-alerts-grid,
.send-smart-alerts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.smart-alert {
  appearance: none;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.smart-alert span {
  color: var(--amarelo);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.smart-alert strong {
  color: var(--verde-escuro);
  font-size: 0.82rem;
  line-height: 1.1;
}

.smart-alert small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1.24;
}

.smart-alert.is-danger {
  background: rgba(168, 50, 39, 0.08);
  border-color: rgba(168, 50, 39, 0.2);
}

.smart-alert.is-warning {
  background: rgba(245, 155, 30, 0.1);
  border-color: rgba(245, 155, 30, 0.22);
}

.smart-alert.is-opportunity {
  background: rgba(237, 226, 201, 0.58);
}

.smart-alert.is-success {
  background: rgba(47, 111, 69, 0.08);
  border-color: rgba(47, 111, 69, 0.16);
}

.lead-review-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lead-review-item {
  align-items: start;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 9px;
  text-align: left;
}

.lead-review-item span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  width: 28px;
}

.lead-review-item strong {
  color: var(--verde-escuro);
  font-size: 0.82rem;
}

.lead-review-item small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
}

.lead-review-item em,
.send-review-item em {
  align-self: end;
  color: var(--verde);
  margin-top: 2px;
}

.lead-review-item.is-ok span {
  background: rgba(47, 111, 69, 0.12);
  color: var(--verde);
}

.lead-review-item.is-warning span {
  background: rgba(245, 155, 30, 0.18);
  color: #8a5a00;
}

.lead-review-item.is-warning em,
.send-review-item.is-warning em {
  color: #8a5a00;
}

.lead-review-item.is-error span {
  background: rgba(179, 54, 45, 0.13);
  color: #9d2f28;
}

.lead-review-item.is-error em,
.send-review-item.is-error em {
  color: #8d261d;
}

.upsell-strip {
  border-top: 1px solid rgba(24, 58, 45, 0.1);
  display: grid;
  gap: 9px;
  padding-top: 10px;
}

.upsell-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upsell-card {
  background: linear-gradient(180deg, rgba(237, 226, 201, 0.5), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 11px;
  text-align: left;
}

.upsell-card:hover {
  border-color: rgba(24, 58, 45, 0.28);
  box-shadow: 0 10px 22px rgba(24, 58, 45, 0.08);
  transform: translateY(-1px);
}

.upsell-card span {
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.upsell-card strong {
  color: var(--verde-escuro);
  font-size: 0.82rem;
}

.upsell-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
}

.upsell-card em {
  background: rgba(24, 58, 45, 0.06);
  border-radius: 8px;
  color: var(--verde-escuro);
  display: block;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 820;
  line-height: 1.25;
  padding: 7px 8px;
}

.proposal-next-step {
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
}

.proposal-next-step-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.proposal-next-step-heading span {
  color: var(--amarelo);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proposal-next-step-heading strong {
  color: var(--verde-escuro);
  font-size: 0.96rem;
}

.proposal-next-step-body {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.proposal-next-step-body p {
  color: var(--verde-escuro);
  font-weight: 780;
  margin: 0;
}

.proposal-next-step-commercial,
.proposal-next-step-success,
.proposal-next-step-operation,
.proposal-next-step-warning,
.proposal-next-step-neutral {
  border: 1px solid rgba(24, 58, 45, 0.14);
}

.proposal-next-step-commercial {
  background: rgba(24, 58, 45, 0.07);
}

.proposal-next-step-success {
  background: rgba(47, 111, 69, 0.09);
}

.proposal-next-step-operation {
  background: rgba(0, 90, 129, 0.08);
}

.proposal-next-step-warning {
  background: rgba(199, 134, 33, 0.12);
}

.proposal-next-step-neutral {
  background: rgba(107, 114, 128, 0.08);
}

.operational-checklist {
  background: rgba(47, 111, 69, 0.08);
  border: 1px solid rgba(47, 111, 69, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
}

.checklist-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.checklist-heading span {
  color: var(--verde);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checklist-heading strong {
  color: var(--verde-escuro);
  font-size: 0.9rem;
}

.checklist-items {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checklist-items label,
.builder-checkbox {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: var(--verde-escuro);
  display: flex;
  flex-direction: row;
  font-weight: 850;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.checklist-items input,
.builder-checkbox input {
  accent-color: var(--verde);
  min-height: auto;
  width: auto;
}

.commercial-timeline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.96));
  border: 1px solid rgba(24, 58, 45, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
}

.timeline-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.timeline-heading div {
  display: grid;
  gap: 3px;
}

.timeline-heading span {
  color: var(--amarelo);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-heading strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.timeline-heading p {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.timeline-heading b {
  color: var(--verde-escuro);
}

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-executive-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.timeline-summary-card {
  background: rgba(247, 250, 248, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-left: 5px solid rgba(24, 58, 45, 0.25);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 10px 11px;
}

.timeline-summary-card span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.timeline-summary-card strong {
  color: var(--verde-escuro);
  font-size: 0.95rem;
  line-height: 1.05;
}

.timeline-summary-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.16;
}

.timeline-summary-card.is-client {
  border-left-color: #2b6f7f;
}

.timeline-summary-card.is-money,
.timeline-summary-card.is-warning {
  border-left-color: var(--amarelo);
}

.timeline-summary-card.is-stage {
  border-left-color: var(--verde);
}

.timeline-summary-card.is-muted {
  opacity: 0.86;
}

.timeline-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.timeline-step {
  background: rgba(247, 250, 248, 0.94);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 9px 10px;
}

.timeline-step span {
  color: var(--verde);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-step strong {
  color: var(--verde-escuro);
  font-size: 0.82rem;
}

.timeline-step small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 780;
}

.timeline-step.is-current {
  background: rgba(24, 58, 45, 0.1);
  border-color: rgba(24, 58, 45, 0.18);
}

.timeline-step.is-done {
  background: rgba(47, 111, 69, 0.08);
  border-color: rgba(47, 111, 69, 0.16);
}

.timeline-step.is-upcoming {
  opacity: 0.82;
}

.timeline-entry {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-left: 5px solid rgba(47, 111, 69, 0.45);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 8px 10px;
}

.timeline-entry-badge {
  align-items: center;
  background: rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  color: var(--verde-escuro);
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 950;
  justify-content: center;
  min-height: 28px;
  min-width: 52px;
  padding: 0 8px;
  text-transform: uppercase;
}

.timeline-entry-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.timeline-entry-meta {
  color: var(--muted);
  display: grid;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 2px;
  justify-items: end;
  min-width: 138px;
  text-align: right;
}

.timeline-list strong {
  color: var(--verde-escuro);
  font-size: 0.88rem;
}

.timeline-list small,
.timeline-list span,
.timeline-list em,
.timeline-list p {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
  margin: 0;
}

.timeline-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-entry.is-sent {
  border-left-color: #2f7d4f;
}

.timeline-entry.is-sent .timeline-entry-badge {
  background: rgba(47, 125, 79, 0.14);
}

.timeline-entry.is-money {
  border-left-color: var(--amarelo);
}

.timeline-entry.is-money .timeline-entry-badge {
  background: rgba(245, 158, 11, 0.18);
}

.timeline-entry.is-danger {
  border-left-color: #a83227;
}

.timeline-entry.is-danger .timeline-entry-badge {
  background: rgba(168, 50, 39, 0.12);
  color: #8d261d;
}

.timeline-entry.is-stage {
  border-left-color: #2b6f7f;
}

.timeline-entry.is-audit {
  border-left-color: #6b7f76;
}

.timeline-entry.is-audit .timeline-entry-badge {
  background: rgba(24, 58, 45, 0.1);
  color: var(--verde);
}

.timeline-entry.is-muted {
  background: rgba(247, 250, 248, 0.7);
  border-left-color: rgba(24, 58, 45, 0.18);
}

.timeline-change-list {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.timeline-change-list li {
  align-items: center;
  background: rgba(24, 58, 45, 0.05);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 5px 7px;
}

.timeline-change-list b,
.timeline-change-list span {
  color: var(--verde-escuro);
  font-size: 0.68rem;
  font-weight: 850;
}

.internal-notes-panel,
.event-attachments-panel,
.finance-command-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
}

.internal-notes-panel details,
.event-attachments-panel details {
  display: grid;
  gap: 10px;
}

.internal-notes-panel details:not([open]),
.event-attachments-panel details:not([open]) {
  gap: 0;
}

.internal-panel-heading,
.finance-command-heading {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
}

.internal-panel-heading::-webkit-details-marker {
  display: none;
}

.internal-panel-heading::after {
  color: var(--verde);
  content: "Abrir";
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.internal-notes-panel details[open] .internal-panel-heading::after,
.event-attachments-panel details[open] .internal-panel-heading::after {
  content: "Fechar";
}

.internal-notes-panel details[open] .internal-panel-heading,
.event-attachments-panel details[open] .internal-panel-heading {
  margin-bottom: 10px;
}

.internal-panel-heading div,
.finance-command-heading {
  display: grid;
  gap: 2px;
}

.internal-panel-heading span,
.finance-command-heading span {
  color: var(--amarelo);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.internal-panel-heading strong,
.finance-command-heading strong {
  color: var(--verde-escuro);
  font-size: 0.92rem;
}

.internal-panel-heading small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.internal-note-form,
.attachment-form {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.attachment-form {
  grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr) auto;
}

.internal-note-form textarea,
.attachment-form input,
.attachment-form select {
  min-height: 42px;
}

.internal-note-list,
.attachment-list {
  display: grid;
  gap: 7px;
}

.internal-note-list article,
.attachment-list article {
  background: rgba(247, 250, 248, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
}

.internal-note-list p,
.attachment-list p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  margin: 0;
}

.internal-note-list small,
.attachment-list small,
.attachment-list span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.attachment-list a,
.attachment-list strong {
  color: var(--verde-escuro);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.finance-command-panel {
  margin: 10px 0 12px;
}

.finance-command-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-command-grid article {
  background: rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.finance-command-grid span {
  color: var(--verde);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.finance-command-grid strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.eyebrow {
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.quote-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  scroll-margin-top: 12px;
}

.quote-section-nav {
  position: sticky;
  top: 12px;
  z-index: 6;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 248, 0.9);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding: 8px;
}

.quote-section-nav a {
  align-items: center;
  background: rgba(24, 58, 45, 0.05);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--verde-escuro);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
  touch-action: manipulation;
}

.quote-section-nav a:hover {
  background: rgba(24, 58, 45, 0.1);
  border-color: rgba(24, 58, 45, 0.12);
}

#clientDataSection {
  scroll-margin-top: 18px;
}

.quote-form,
.summary-panel,
.prices-editor,
.proposal-paper {
  animation: riseIn 420ms ease both;
}

.form-section,
.prices-editor {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  padding: 18px;
}

.form-section + .form-section {
  margin-top: 16px;
}

.section-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--amarelo);
  font-size: 0.84rem;
  font-weight: 900;
}

.section-heading h2 {
  font-size: 1.12rem;
  margin: 0;
  text-wrap: balance;
}

.fields-grid,
.filters {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-details-grid {
  align-items: start;
  column-gap: 12px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  row-gap: 12px;
}

.event-details-grid label {
  gap: 6px;
}

.guest-count-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.event-details-grid label:nth-child(1),
.event-details-grid label:nth-child(2) {
  grid-column: span 3;
}

.event-details-grid label:nth-child(3) {
  grid-column: span 4;
}

.event-details-grid label:nth-child(4) {
  grid-column: span 4;
}

.event-details-grid label:nth-child(5),
.event-details-grid label:nth-child(6),
.event-details-grid label:nth-child(7) {
  grid-column: span 2;
}

.event-details-grid input,
.event-details-grid select {
  min-height: 48px;
}

.event-details-grid label:nth-child(4) small,
.event-details-grid label:nth-child(6) small {
  max-width: 26ch;
}

.field-span-2 {
  grid-column: span 2;
}

.filters {
  grid-template-columns: 2fr 1fr;
  margin-bottom: 16px;
}

.guided-flow {
  display: grid;
  gap: 18px;
}

.flow-status {
  background: linear-gradient(90deg, rgba(203, 222, 212, 0.92), rgba(238, 244, 240, 0.72));
  border-left: 4px solid var(--verde);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-weight: 800;
  line-height: 1.35;
  padding: 12px 14px;
}

.flow-block {
  display: grid;
  gap: 10px;
}

.flow-block p {
  color: var(--verde);
  font-size: 0.82rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid button {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 58, 45, 0.12);
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 14px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-grid button:hover,
.choice-grid button.is-active {
  background: var(--verde-escuro);
  border-color: var(--verde-escuro);
  box-shadow: 0 10px 24px rgba(24, 58, 45, 0.1);
  color: var(--white);
}

.choice-grid button span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.choice-grid button:hover span,
.choice-grid button.is-active span {
  color: var(--verde-2);
}

.flow-actions {
  display: flex;
  justify-content: flex-start;
}

.calculation-flow {
  display: grid;
  gap: 18px;
}

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

.calculation-grid div,
.proposal-totals div {
  background: #f2f7f4;
  border-left: 4px solid var(--verde-2);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.calculation-grid span,
.proposal-totals span,
.flow-kicker {
  color: var(--verde);
  font-size: 0.76rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.calculation-grid strong,
.proposal-totals strong {
  color: var(--verde-escuro);
  font-size: 1.2rem;
  line-height: 1;
}

.calculation-grid small {
  color: var(--muted);
  line-height: 1.3;
}

.privatization-panel {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding: 16px 0;
}

.privatization-panel strong {
  display: block;
  font-size: 1.15rem;
  margin: 4px 0;
}

.privatization-panel > div > span {
  color: var(--muted);
  display: block;
  line-height: 1.45;
}

.rules-editor {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.rules-editor summary {
  color: var(--verde-escuro);
  cursor: pointer;
  font-weight: 900;
  margin-bottom: 14px;
}

.privatization-rules-wrap {
  overflow: auto;
}

.privatization-rules-table {
  min-width: 860px;
}

.privatization-rules-table th:first-child,
.privatization-rules-table td:first-child {
  min-width: 96px;
}

.privatization-rules-table input {
  min-width: 86px;
}

.is-hidden {
  display: none;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(51, 93, 74, 0.15);
  outline: 0;
}

textarea {
  resize: vertical;
}

.price-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.price-row {
  --price-accent: var(--verde);
  --price-soft: rgba(51, 93, 74, 0.12);
  align-items: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 247, 0.98));
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-top: 4px solid var(--price-accent);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 22px minmax(0, 1fr);
  overflow: hidden;
  padding: 18px;
  position: relative;
  height: 100%;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.price-row:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(24, 58, 45, 0.22);
  box-shadow: 0 14px 30px rgba(24, 58, 45, 0.08);
  transform: translateY(-2px);
}

.price-row::before {
  background: linear-gradient(180deg, var(--price-soft), rgba(255, 255, 255, 0));
  content: "";
  inset: 0 0 auto 0;
  height: 86px;
  pointer-events: none;
  position: absolute;
}

.price-row input[type="checkbox"] {
  accent-color: var(--verde);
  margin-top: 4px;
  min-height: auto;
  position: relative;
  width: 16px;
  z-index: 1;
}

.price-row-body {
  display: grid;
  gap: 11px;
  position: relative;
  z-index: 1;
}

.price-card-topline {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.price-category-group {
  display: grid;
  gap: 6px;
}

.price-category-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-radius: 999px;
  color: var(--price-accent);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  min-height: 32px;
  padding: 0 12px;
  text-transform: uppercase;
  width: fit-content;
}

.price-category-support {
  color: var(--price-accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.price-card-main {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.price-select-indicator {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 999px;
  color: var(--price-accent);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  width: fit-content;
}

.price-row:has(input:checked) {
  background: linear-gradient(180deg, rgba(24, 58, 45, 0.07), rgba(248, 250, 247, 0.98));
  border-color: rgba(24, 58, 45, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(24, 58, 45, 0.08),
    0 12px 24px rgba(24, 58, 45, 0.08);
}

.price-row:has(input:checked) .price-select-indicator {
  background: var(--price-accent);
  border-color: var(--price-accent);
  color: var(--white);
}

.price-row:has(input:checked) .price-category-badge {
  background: var(--price-accent);
  border-color: var(--price-accent);
  color: var(--white);
}

.price-name {
  display: block;
  margin: 0;
}

.price-name strong {
  color: var(--ink);
  display: block;
  font-size: 1.12rem;
  line-height: 1.2;
}

.price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
}

.chip-soft {
  background: rgba(184, 158, 106, 0.18);
  color: #705725;
}

.chip-priority-high {
  background: rgba(171, 73, 47, 0.12);
  color: #8d3e28;
}

.chip-priority-medium {
  background: rgba(155, 122, 31, 0.14);
  color: #7a5b10;
}

.chip-priority-low {
  background: rgba(58, 103, 89, 0.12);
  color: #2f5d50;
}

.price-row p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.price-summary {
  color: var(--ink) !important;
  font-weight: 700;
  line-height: 1.5;
}

.price-card-footer {
  align-items: center;
  border-top: 1px solid rgba(24, 58, 45, 0.08);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 12px;
}

.price-window {
  display: grid;
  gap: 3px;
}

.price-window-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-window strong {
  color: var(--verde-escuro);
  font-size: 0.92rem;
}

.price-detail {
  color: var(--muted) !important;
  border-top: 1px dashed rgba(24, 58, 45, 0.1);
  font-size: 0.84rem;
  padding-top: 10px;
}

.item-cost {
  align-items: end;
  color: var(--ink);
  display: grid;
  gap: 3px;
  justify-items: end;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.08);
  border-radius: 8px;
  min-width: 136px;
  padding: 10px 12px;
  text-align: right;
}

.item-cost-label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-cost strong {
  color: var(--verde-escuro);
  font-size: 1.22rem;
  line-height: 0.98;
}

.price-row[data-price-category="coquetel"] {
  --price-accent: #a8573a;
  --price-soft: rgba(168, 87, 58, 0.13);
}

.price-row[data-price-category="cafe"] {
  --price-accent: #6d7d37;
  --price-soft: rgba(109, 125, 55, 0.14);
}

.price-row[data-price-category="welcome"] {
  --price-accent: #9a7425;
  --price-soft: rgba(154, 116, 37, 0.13);
}

.price-row[data-price-category="workshop"] {
  --price-accent: #4f7d76;
  --price-soft: rgba(79, 125, 118, 0.13);
}

.price-row[data-price-category="almoco"] {
  --price-accent: #8a5c31;
  --price-soft: rgba(138, 92, 49, 0.13);
}

.price-row[data-price-category="comidas"] {
  --price-accent: #78573c;
  --price-soft: rgba(120, 87, 60, 0.12);
}

.price-row[data-price-category="snacks"] {
  --price-accent: #6f6a45;
  --price-soft: rgba(111, 106, 69, 0.12);
}

.price-row[data-price-category="generic"] {
  --price-accent: var(--verde);
  --price-soft: rgba(51, 93, 74, 0.1);
}

.summary-panel {
  background: var(--areia);
  border: 1px solid rgba(72, 81, 86, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 18px;
}

.venue-image {
  aspect-ratio: 16 / 8;
  display: block;
  filter: saturate(1.05) contrast(1.03);
  object-fit: cover;
  width: 100%;
}

.summary-brand {
  align-items: center;
  background: var(--verde);
  color: var(--white);
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 10px;
  padding: 12px 18px;
  text-transform: uppercase;
}

.totals,
.selected-items,
.send-actions {
  padding: 18px;
}

.totals {
  border-bottom: 1px solid var(--line);
}

.total-line {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.total-line span {
  color: var(--muted);
}

.total-line strong {
  color: var(--verde-escuro);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.total-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 10px;
}

.selected-items {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.selected-line {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.selected-line:last-child {
  border-bottom: 0;
}

.selected-line strong {
  align-items: baseline;
  display: flex;
  color: var(--verde);
  justify-content: space-between;
  gap: 12px;
}

.selected-line small {
  color: var(--muted);
  line-height: 1.35;
}

.send-review-panel {
  background: rgba(247, 250, 248, 0.88);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px 18px;
}

.send-review-panel.is-ready {
  background: linear-gradient(135deg, rgba(232, 244, 236, 0.92), rgba(255, 255, 255, 0.94));
  border-left: 5px solid var(--verde);
}

.send-review-panel.is-blocked {
  background: linear-gradient(135deg, rgba(255, 246, 232, 0.96), rgba(255, 255, 255, 0.94));
  border-left: 5px solid var(--laranja);
}

.send-review-panel.is-approved {
  background: linear-gradient(135deg, rgba(232, 244, 236, 0.96), rgba(255, 255, 255, 0.96));
  border-left: 5px solid var(--verde-escuro);
}

.send-review-heading {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.send-review-heading div {
  display: grid;
  gap: 2px;
}

.send-review-heading span {
  color: var(--amarelo);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.send-review-heading strong {
  color: var(--verde-escuro);
  font-size: 1.02rem;
  line-height: 1.08;
}

.send-review-heading small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 190px;
  text-align: right;
}

.send-review-channel-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.send-review-channel-actions button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.send-review-channel-actions .secondary {
  background: var(--bege);
  color: var(--verde-escuro);
}

.send-review-channel-actions .secondary:hover {
  background: #f5e7c7;
}

.send-review-command {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.send-review-command article {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
}

.send-review-command span {
  color: var(--amarelo);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.send-review-command strong {
  color: var(--verde-escuro);
  font-size: 0.86rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-review-command small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-review-command .send-review-next-action {
  background: linear-gradient(135deg, var(--verde-escuro), #2f6f45);
  border-color: transparent;
}

.send-review-command .send-review-next-action span,
.send-review-command .send-review-next-action strong,
.send-review-command .send-review-next-action small {
  color: var(--white);
}

.send-review-command .send-review-next-action small {
  opacity: 0.88;
  white-space: normal;
}

.send-review-route {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.send-review-route .is-primary {
  background: linear-gradient(135deg, var(--verde-escuro), #2f6f45);
  border-color: transparent;
}

.send-review-route .is-primary span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.send-review-route .is-primary strong,
.send-review-route .is-primary small {
  color: #fff;
}

.send-review-safe-note {
  background: rgba(24, 58, 45, 0.06);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
  padding: 9px 10px;
}

.review-sixty {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.11);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 11px 12px;
}

.review-sixty span {
  color: var(--amarelo);
  display: block;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.review-sixty strong {
  color: var(--verde-escuro);
  font-size: 0.88rem;
}

.review-sixty ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.review-sixty li {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 790;
  line-height: 1.25;
}

.customer-decision-loop {
  background: linear-gradient(135deg, rgba(237, 226, 201, 0.58), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 11px 12px;
}

.customer-decision-heading {
  display: grid;
  gap: 3px;
}

.customer-decision-heading span {
  color: var(--amarelo);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customer-decision-heading strong {
  color: var(--verde-escuro);
  font-size: 0.9rem;
}

.customer-decision-heading small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.25;
}

.customer-decision-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-decision-step {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 9px;
}

.customer-decision-step span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.customer-decision-step strong {
  color: var(--verde-escuro);
  font-size: 0.78rem;
  line-height: 1.1;
}

.customer-decision-step small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.2;
}

.customer-decision-step.is-done {
  border-color: rgba(47, 111, 69, 0.24);
  box-shadow: inset 4px 0 0 rgba(47, 111, 69, 0.86);
}

.customer-decision-step.is-current {
  border-color: rgba(245, 155, 30, 0.3);
  box-shadow: inset 4px 0 0 rgba(245, 155, 30, 0.92);
}

.send-review-panel.is-approved .send-review-next-action {
  background: linear-gradient(135deg, #2f7f45, var(--verde-escuro));
}

.send-review-primary-button {
  align-items: center;
  appearance: none;
  background: var(--bege);
  border: 0;
  border-radius: 8px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  justify-content: center;
  margin-top: 6px;
  min-height: 34px;
  padding: 0 12px;
  width: 100%;
}

.send-review-primary-button:hover {
  background: #f5e7c7;
}

.send-review-panel.is-ready:not(.is-approved) .send-review-primary-button {
  background: var(--verde-escuro);
  color: var(--white);
}

.send-review-panel.is-ready:not(.is-approved) .send-review-primary-button:hover {
  background: #245f49;
}

.send-review-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.send-review-item {
  appearance: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 58px;
  padding: 9px;
  text-align: left;
  touch-action: manipulation;
}

.send-review-item span {
  align-items: center;
  background: rgba(47, 111, 69, 0.12);
  border-radius: 999px;
  color: var(--verde);
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 950;
  grid-row: span 3;
  height: 24px;
  justify-content: center;
  margin-top: 1px;
  width: 24px;
}

.send-review-item strong {
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
}

.send-review-item small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.2;
}

.send-review-item.is-warning span {
  background: rgba(245, 158, 11, 0.2);
  color: #9a5d00;
}

.send-review-item.is-error {
  border-color: rgba(168, 50, 39, 0.24);
}

.send-review-item.is-error span {
  background: rgba(168, 50, 39, 0.12);
  color: #8d261d;
}

.send-actions {
  border-top: 1px solid var(--line);
}

.send-actions button {
  flex: 1 1 122px;
  min-height: 42px;
}

.send-actions #newProposalBtn {
  flex-basis: 100%;
}

.send-actions #newProposalBtn {
  background: var(--white);
  border: 1px solid var(--verde);
  color: var(--verde-escuro);
}

.send-actions #saveProposalBtn {
  background: rgba(24, 58, 45, 0.08);
  color: var(--verde-escuro);
}

.send-actions #saveProposalBtn:hover {
  background: rgba(24, 58, 45, 0.14);
}

.send-actions #whatsappBtn {
  background: linear-gradient(135deg, var(--verde-escuro), #2f6f45);
  box-shadow: 0 14px 28px rgba(24, 58, 45, 0.18);
  color: var(--white);
  flex-basis: 100%;
  font-size: 1rem;
}

.send-actions #emailBtn,
.send-actions #copyBtn {
  background: var(--verde-escuro);
  color: var(--white);
}

.send-actions #printBtn,
.send-actions #confirmEventBtn {
  font-weight: 900;
}

.send-actions #confirmEventBtn {
  background: rgba(245, 155, 30, 0.18);
  color: #8a3b1e;
}

.proposal-link-hint {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  padding: 10px 18px 14px;
}

.quick-replies-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 16px 18px 14px;
}

.quick-replies-heading {
  display: grid;
  gap: 4px;
}

.quick-replies-heading span {
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-replies-heading strong {
  color: var(--verde-escuro);
  font-size: 1rem;
  line-height: 1.15;
}

.quick-replies-heading small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.quick-replies-list {
  display: grid;
  gap: 10px;
}

.quick-replies-list p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.quick-reply-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.quick-reply-card.is-recommended {
  background:
    linear-gradient(180deg, rgba(237, 244, 239, 0.98), rgba(255, 255, 255, 0.92));
  border-color: rgba(51, 93, 74, 0.28);
  box-shadow: 0 10px 28px rgba(24, 58, 45, 0.08);
}

.quick-reply-copy {
  display: grid;
  gap: 6px;
}

.quick-reply-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.quick-reply-topline span {
  color: var(--amarelo);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-reply-topline strong {
  background: rgba(51, 93, 74, 0.1);
  border-radius: 999px;
  color: var(--verde-escuro);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  min-height: 20px;
  padding: 5px 8px;
  text-transform: uppercase;
}

.quick-reply-card h3 {
  color: var(--verde-escuro);
  font-size: 0.98rem;
  line-height: 1.1;
  margin: 0;
}

.quick-reply-card p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 0;
}

.quick-reply-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-reply-actions button {
  font-size: 0.78rem;
  min-height: 34px;
  padding: 0 10px;
}

.history-panel {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
}

.history-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.history-heading span {
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-heading button {
  min-height: 34px;
  padding: 0 12px;
}

.history-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.confirmed-events-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.history-list p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.history-item {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(72, 81, 86, 0.16);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  min-height: auto;
  padding: 10px 12px;
  text-align: left;
}

.history-item:hover {
  background: var(--white);
}

.history-item strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.history-item small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
}

.status-chip {
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  color: var(--verde);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  margin-right: 6px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.pipeline-stage-chip {
  flex: 0 0 auto;
  font-size: 0.58rem;
  margin-right: 0;
  min-height: 18px;
  padding: 2px 6px;
}

.pipeline-cancel-chip,
.pipeline-delete-chip,
.pipeline-reopen-chip {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 700;
  height: 20px;
  min-height: 20px;
  padding: 0 7px;
  text-transform: none;
}

.pipeline-reopen-chip {
  background: rgba(47, 111, 69, 0.12);
  border-color: rgba(47, 111, 69, 0.2);
  color: var(--verde-escuro);
}

.pipeline-delete-chip {
  background: rgba(157, 67, 47, 0.12);
  border-color: rgba(157, 67, 47, 0.18);
}

.pipeline-card-actions .pipeline-status-control summary {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  line-height: 1;
  max-width: 86px;
  min-height: 20px;
  overflow: hidden;
  padding: 0 8px;
  text-transform: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-chip.confirmed {
  background: rgba(24, 58, 45, 0.1);
  color: var(--verde-escuro);
}

.status-chip.canceled {
  background: rgba(157, 67, 47, 0.14);
  color: var(--danger);
}

.help-panel {
  display: grid;
  gap: 10px;
}

.help-panel .reports-panel,
.help-panel .system-health-panel {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 12px;
}

.help-panel details {
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
}

.help-panel details.reports-panel,
.help-panel details.system-health-panel {
  display: block;
}

.help-panel details:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.help-panel summary {
  color: var(--verde-escuro);
  cursor: pointer;
  font-weight: 900;
}

.help-panel .reports-panel summary,
.help-panel .system-health-panel summary {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-panel .reports-panel summary span,
.help-panel .system-health-panel summary span,
.integration-log-header span {
  color: var(--amarelo);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.help-panel .reports-panel summary strong,
.help-panel .system-health-panel summary strong,
.integration-log-header strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.help-panel .reports-panel[open] summary,
.help-panel .system-health-panel[open] summary {
  margin-bottom: 12px;
}

.system-health-body {
  display: grid;
  gap: 12px;
}

.system-health-toolbar,
.integration-log-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.system-health-toolbar h3 {
  color: var(--verde-escuro);
  font-size: 1rem;
  margin: 0 0 4px;
}

.system-health-toolbar p {
  color: var(--muted);
  font-weight: 780;
  line-height: 1.35;
  margin: 0;
}

.system-health-toolbar button,
.integration-log-header button {
  min-height: 32px;
  padding: 0 12px;
}

.system-health-summary {
  background: rgba(24, 58, 45, 0.06);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-weight: 900;
  padding: 10px 12px;
}

.system-health-summary.is-ok {
  background: rgba(46, 125, 82, 0.1);
  border-left-color: #2e7d52;
}

.system-health-summary.is-warning {
  background: rgba(241, 151, 23, 0.12);
  border-left-color: var(--amarelo);
}

.system-health-summary.is-error {
  background: rgba(157, 67, 47, 0.12);
  border-left-color: var(--danger);
}

.system-health-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-health-grid > p,
.integration-log-list > p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.system-health-card {
  background: rgba(24, 58, 45, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 11px;
}

.system-health-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.system-health-card strong {
  color: var(--verde-escuro);
  font-size: 0.92rem;
  line-height: 1.15;
}

.system-health-card p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.3;
  margin: 0;
}

.system-health-card.is-ok {
  border-color: rgba(46, 125, 82, 0.35);
}

.system-health-card.is-warning {
  border-color: rgba(241, 151, 23, 0.45);
}

.system-health-card.is-error {
  border-color: rgba(157, 67, 47, 0.45);
}

.integration-log-list {
  display: grid;
  gap: 8px;
}

.integration-log-entry {
  align-items: start;
  background: rgba(24, 58, 45, 0.04);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.integration-log-entry.is-success,
.integration-log-entry.is-opened {
  border-left-color: #2e7d52;
}

.integration-log-entry.is-pending {
  border-left-color: var(--amarelo);
}

.integration-log-entry.is-config,
.integration-log-entry.is-error {
  border-left-color: var(--danger);
}

.integration-log-entry.is-canceled {
  border-left-color: var(--muted);
}

.integration-log-entry span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.integration-log-entry strong {
  color: var(--verde-escuro);
  display: block;
  font-size: 0.92rem;
  margin-top: 2px;
}

.integration-log-entry p,
.integration-log-entry small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.3;
  margin: 0;
}

.help-panel ol,
.faq-list {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
  margin: 10px 0 0;
}

.help-panel ol {
  padding-left: 22px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list p {
  margin: 0;
}

.guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.guide-grid section {
  background: rgba(24, 58, 45, 0.04);
  border-radius: 8px;
  padding: 12px;
}

.guide-grid h3 {
  color: var(--verde-escuro);
  font-size: 0.92rem;
  margin: 0 0 8px;
}

.guide-grid ol {
  margin-top: 0;
}

.prices-editor {
  margin-top: 30px;
  padding-top: 2px;
}

.prices-editor p {
  color: var(--muted);
  margin: -8px 0 18px;
}

.values-command-panel,
.product-types-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 14px;
}

.values-command-panel {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
}

.values-command-panel::before {
  background: linear-gradient(180deg, var(--verde-escuro), rgba(24, 58, 45, 0.72));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 6px;
}

.spreadsheet-copy {
  padding-left: 6px;
}

.values-command-panel span,
.product-types-panel .section-heading span {
  color: var(--amarelo);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.values-command-panel strong {
  color: var(--verde-escuro);
  display: block;
  font-size: 1.08rem;
  line-height: 1.16;
  margin-top: 2px;
}

.values-command-panel p,
.product-types-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0 0;
}

.spreadsheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.spreadsheet-actions button {
  min-height: 40px;
  white-space: nowrap;
}

.spreadsheet-steps {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 12px;
}

.spreadsheet-steps div {
  background: rgba(237, 245, 240, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
}

.spreadsheet-steps strong {
  color: var(--verde-escuro);
  display: block;
  font-size: 0.84rem;
  line-height: 1.1;
}

.spreadsheet-steps span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 4px;
  text-transform: none;
}

.spreadsheet-help {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 10px;
}

.spreadsheet-help summary {
  color: var(--verde-escuro);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.spreadsheet-help ul {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 0;
  padding-left: 20px;
}

.formula-help {
  background: rgba(237, 245, 240, 0.9);
  border-left: 4px solid var(--verde-medio);
  border-radius: 6px;
  color: var(--verde-escuro);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 8px;
  padding: 8px 10px;
}

.product-types-panel .section-heading {
  align-items: baseline;
  margin-bottom: 0;
}

.product-types-panel .section-heading h3 {
  margin: 0;
}

.product-type-create {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.product-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-type-chip {
  background: var(--verde-claro);
  border: 1px solid rgba(24, 58, 45, 0.12);
  color: var(--verde-escuro);
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 8px 12px;
  text-align: left;
}

.product-type-chip strong {
  font-size: 0.82rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-type-chip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-type-chip:hover,
.product-type-chip:focus-visible {
  background: var(--verde-escuro);
  color: var(--white);
}

.product-type-chip:hover span,
.product-type-chip:focus-visible span {
  color: rgba(255, 255, 255, 0.78);
}

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

.item-builder {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 20px;
}

.item-builder h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.item-builder p {
  margin: 0;
}

.commercial-library {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.commercial-library .section-heading h3 {
  margin: 0;
}

.library-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.library-summary div {
  background: rgba(24, 58, 45, 0.07);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.library-summary span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.library-summary strong {
  color: var(--verde-escuro);
  font-size: 1.1rem;
}

.builder-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.builder-wide {
  grid-column: span 2;
}

.builder-grid button {
  align-self: end;
}

.table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 1540px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

td input,
td select {
  min-height: 36px;
  padding: 6px 8px;
}

td textarea {
  min-height: 54px;
  min-width: 240px;
  padding: 6px 8px;
  resize: vertical;
}

td:nth-child(1),
td:nth-child(4),
td:nth-child(5),
td:nth-child(6),
td:nth-child(7),
td:nth-child(8),
td:nth-child(9) {
  width: 88px;
}

.proposal-paper {
  background: var(--white);
  border-top: 10px solid var(--verde-escuro);
  box-shadow: var(--shadow);
  margin: 0 auto 36px;
  max-width: 210mm;
  min-height: 297mm;
  padding: 14mm;
}

.proposal-page {
  break-inside: avoid;
}

.proposal-page-main {
  margin-bottom: 0;
}

.proposal-page-terms {
  margin-top: 26px;
}

.proposal-payment {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.proposal-payment div {
  background: var(--verde-escuro);
  border-radius: 8px;
  color: var(--white);
  padding: 10px 12px;
}

.proposal-payment strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.25;
}

.proposal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.proposal-lockup {
  align-items: center;
  display: flex;
  gap: 14px;
}

.proposal-header p {
  color: var(--verde);
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.proposal-header h2 {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.proposal-header-repeat {
  display: none;
}

.proposal-total-box {
  background: var(--verde-escuro);
  border-radius: 8px;
  color: var(--white);
  min-width: 176px;
  padding: 12px 14px;
  text-align: right;
}

.proposal-total-box span {
  color: var(--verde-2);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proposal-total-box strong {
  color: var(--white);
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 4px;
}

.proposal-cover {
  border-radius: 8px;
  display: grid;
  margin-bottom: 16px;
  min-height: 124px;
  overflow: hidden;
  position: relative;
}

.proposal-cover::after {
  background:
    linear-gradient(90deg, rgba(24, 58, 45, 0.86) 0%, rgba(24, 58, 45, 0.54) 42%, rgba(24, 58, 45, 0.12) 100%),
    linear-gradient(0deg, rgba(24, 58, 45, 0.42), rgba(24, 58, 45, 0.02));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.proposal-cover img {
  filter: saturate(1.04) contrast(1.02) brightness(0.96);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 28%;
  position: absolute;
  transform: scale(0.92);
  width: 100%;
}

.proposal-cover div {
  align-self: end;
  color: var(--white);
  padding: 18px;
  position: relative;
  z-index: 2;
}

.proposal-cover span,
.proposal-summary-strip span,
.proposal-section-title span {
  color: var(--verde-2);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proposal-cover strong {
  display: block;
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1.02;
  max-width: 520px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.proposal-summary-strip {
  background: var(--areia);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  grid-template-columns: 1.4fr 1.15fr 0.8fr 1fr;
  margin-bottom: 18px;
  overflow: hidden;
}

.proposal-summary-strip div {
  background: rgba(255, 255, 255, 0.44);
  padding: 11px 12px;
}

.proposal-summary-strip span {
  color: var(--verde);
}

.proposal-summary-strip strong {
  color: var(--verde-escuro);
  display: block;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.12;
  margin-top: 3px;
}

.proposal-section-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  margin: 18px 0 10px;
  padding-bottom: 6px;
}

.proposal-section-title span {
  color: var(--amarelo);
}

.proposal-section-title h3 {
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
}

.proposal-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.proposal-grid div,
.proposal-note {
  background: #f4f8f5;
  border-left: 3px solid var(--verde-2);
  border-radius: 8px;
  padding: 10px 11px;
}

.proposal-grid-wide {
  grid-column: 1 / -1;
}

.proposal-grid span,
.proposal-note span {
  color: var(--verde);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.proposal-table {
  border-collapse: collapse;
  margin: 8px 0 16px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.proposal-table .proposal-col-item {
  width: 28%;
}

.proposal-table .proposal-col-description {
  width: 54%;
}

.proposal-table .proposal-col-value {
  width: 18%;
}

.proposal-table th,
.proposal-table td {
  border-bottom: 1px solid #dedbd3;
  padding: 9px 8px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.proposal-table td:first-child,
.proposal-table th:first-child,
.proposal-table td:nth-child(4),
.proposal-table td:nth-child(5),
.proposal-table td:nth-child(6),
.proposal-table td:nth-child(7),
.proposal-table td:nth-child(8),
.proposal-table td:nth-child(9) {
  width: auto;
}

.proposal-table th {
  background: var(--verde-escuro);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.proposal-table small {
  color: var(--muted);
  font-weight: 700;
}

.proposal-table td:last-child,
.proposal-table th:last-child {
  text-align: right;
}

.proposal-table .proposal-value {
  white-space: nowrap;
}

.proposal-note {
  line-height: 1.55;
  margin-top: 12px;
}

.terms-note {
  font-size: 0.82rem;
}

.terms-title {
  margin-top: 26px;
}

.proposal-terms-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  margin: 18px 0 12px;
  padding-bottom: 10px;
}

.proposal-terms-header img {
  display: block;
  height: 52px;
  width: 52px;
}

.proposal-terms-header span {
  color: var(--verde);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proposal-terms-header strong {
  color: var(--verde-escuro);
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.proposal-totals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.toast {
  animation: toastIn 220ms ease both;
  background: var(--verde-escuro);
  border-radius: 8px;
  bottom: 22px;
  color: var(--white);
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 10;
}

.communication-hero-panel,
.communication-help-panel {
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 18px;
}

.communication-hero-panel span,
.communication-help-panel h3,
.communication-template-head span {
  color: var(--amarelo);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.communication-hero-panel h2,
.communication-help-panel h3,
.communication-template-head h3 {
  color: var(--verde-escuro);
  line-height: 1.12;
  margin: 0;
}

.communication-hero-panel p,
.communication-help-panel p,
.communication-template-head p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
  margin: 8px 0 0;
  max-width: 760px;
}

.communication-toolbar {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.communication-placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.communication-placeholder-list code {
  background: var(--verde-claro);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--verde-escuro);
  font: 800 0.78rem/1.2 Catamaran, sans-serif;
  padding: 7px 9px;
}

.communication-template-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.communication-template-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.communication-template-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.communication-template-head strong {
  background: var(--verde-claro);
  border-radius: 999px;
  color: var(--verde-escuro);
  font-size: 0.72rem;
  padding: 6px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.communication-template-card label {
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  font-weight: 900;
  gap: 6px;
}

.communication-template-card input,
.template-textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--verde-escuro);
  font: 800 0.93rem/1.45 Catamaran, sans-serif;
  padding: 11px 12px;
  width: 100%;
}

.template-textarea {
  min-height: 190px;
  resize: vertical;
}

.template-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.template-preview summary {
  color: var(--verde-escuro);
  cursor: pointer;
  font-weight: 900;
}

.template-preview pre {
  color: var(--verde-escuro);
  font: 800 0.82rem/1.45 Catamaran, sans-serif;
  margin: 10px 0 0;
  white-space: pre-wrap;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.public-form-body {
  background: var(--paper);
  overflow-x: hidden;
  position: relative;
}

.public-form-shell {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.public-form-hero {
  min-height: 46svh;
  overflow: hidden;
  position: relative;
}

.public-form-hero::after {
  background:
    linear-gradient(90deg, rgba(24, 58, 45, 0.9) 0%, rgba(24, 58, 45, 0.62) 42%, rgba(24, 58, 45, 0.08) 100%),
    linear-gradient(0deg, rgba(24, 58, 45, 0.26), rgba(24, 58, 45, 0.08));
  content: "";
  inset: 0;
  position: absolute;
}

.public-form-hero > img {
  filter: saturate(1.04) contrast(1.02);
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  position: absolute;
  transform: scale(0.96);
  width: 100%;
}

.public-form-hero-copy {
  color: var(--white);
  display: grid;
  gap: 10px;
  max-width: 700px;
  min-width: 0;
  padding: 42px 28px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.language-toggle {
  display: inline-flex;
  gap: 6px;
  justify-self: start;
  margin-bottom: 6px;
}

.language-toggle button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  min-height: 34px;
  min-width: 50px;
  padding: 0 12px;
  touch-action: manipulation;
}

.language-toggle button.is-active,
.language-toggle button:hover {
  background: var(--areia);
  color: var(--verde-escuro);
}

.public-form-hero-copy img {
  background: rgba(237, 226, 201, 0.92);
  border-radius: 50%;
  height: 74px;
  padding: 6px;
  width: 74px;
}

.public-form-hero-copy .eyebrow {
  color: var(--verde-2);
}

.public-form-hero-copy h1 {
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.public-form-hero-copy span {
  color: var(--verde-2);
  display: block;
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.35;
  max-width: 520px;
  overflow-wrap: anywhere;
}

.public-form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.public-form-trust b {
  background: rgba(237, 226, 201, 0.16);
  border: 1px solid rgba(237, 226, 201, 0.32);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.78rem;
  padding: 8px 10px;
}

.public-form-panel {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
  max-width: 1080px;
  padding: 28px;
}

.public-form-intro {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  margin-bottom: 24px;
  padding-bottom: 18px;
}

.public-form-intro h2 {
  font-size: 2rem;
  line-height: 1;
  margin: 4px 0 0;
  text-wrap: balance;
}

.public-form-intro p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0 0;
  max-width: 620px;
  overflow-wrap: anywhere;
}

.public-form-progress-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.public-form-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-form-steps li {
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  color: var(--verde-escuro);
  display: flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  text-align: center;
}

.public-form-steps li[data-active],
.public-form-steps li[data-complete] {
  background: var(--verde-escuro);
  color: var(--white);
}

.public-form-steps span {
  color: var(--amarelo);
  font-size: 0.78rem;
}

.form-progress {
  display: grid;
  gap: 8px;
}

.form-progress span {
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 900;
}

.form-progress div {
  background: rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
}

.form-progress i {
  background: var(--verde-escuro);
  display: block;
  height: 100%;
  transition: width 220ms ease;
  width: 16.666%;
}

.form-ux-cues {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-ux-cues span {
  background: rgba(24, 58, 45, 0.06);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  min-height: 32px;
  padding: 8px;
  text-align: center;
}

.client-quote-form {
  display: grid;
  gap: 26px;
}

.consult-step {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
  scroll-margin-top: 18px;
}

.consult-step[data-invalid] {
  border-color: var(--danger);
  border-radius: 8px;
  outline: 2px solid rgba(157, 67, 47, 0.16);
  outline-offset: 8px;
}

.step-support {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
  margin: -6px 0 0;
}

.choice-card-grid,
.format-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.choice-card-grid button,
.format-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-height: 118px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 16px;
  text-align: left;
  touch-action: manipulation;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-grid button {
  min-height: 72px;
}

.profile-grid button {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.choice-card-grid .profile-icon {
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  color: var(--verde);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.choice-card-grid button:hover,
.choice-card-grid button.is-selected,
.format-card:hover,
.format-card.is-selected {
  background: var(--verde-escuro);
  border-color: var(--verde-escuro);
  box-shadow: 0 12px 28px rgba(24, 58, 45, 0.12);
  color: var(--white);
}

.choice-card-grid strong,
.format-card strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.choice-card-grid span,
.format-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.choice-card-grid button:hover span,
.choice-card-grid button.is-selected span,
.format-card:hover em,
.format-card.is-selected em,
.format-card:hover small,
.format-card.is-selected small {
  color: var(--verde-2);
}

.choice-card-grid button:hover .profile-icon,
.choice-card-grid button.is-selected .profile-icon {
  background: rgba(237, 226, 201, 0.16);
  color: var(--verde-2);
}

.format-card span {
  color: var(--amarelo);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.format-card i {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--verde-escuro);
  display: inline-flex;
  font-style: normal;
  font-weight: 900;
  justify-content: center;
  min-height: 54px;
  text-align: center;
}

.format-card:hover i,
.format-card.is-selected i {
  background: rgba(237, 226, 201, 0.12);
  border-color: rgba(237, 226, 201, 0.28);
  color: var(--verde-2);
}

.format-card small {
  color: var(--muted);
  font-weight: 900;
}

.format-card b {
  align-self: end;
  color: inherit;
  font-size: 0.86rem;
}

.recommendation-empty {
  background: var(--verde-claro);
  border-left: 4px solid var(--verde);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-weight: 900;
  padding: 16px;
}

.commercial-windows {
  border-left: 4px solid var(--verde);
  color: var(--verde-escuro);
  display: grid;
  gap: 6px;
  line-height: 1.35;
  padding: 4px 0 4px 12px;
}

.commercial-windows summary {
  cursor: pointer;
  font-weight: 900;
}

.commercial-windows span {
  display: block;
  font-weight: 800;
}

.guest-range-output {
  color: var(--verde-escuro);
  display: inline-block;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
  white-space: nowrap;
}

input[type="range"] {
  accent-color: var(--verde-escuro);
  cursor: pointer;
}

.preference-chips {
  background:
    linear-gradient(180deg, rgba(238, 244, 240, 0.78), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(24, 58, 45, 0.16);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 14px 14px 15px;
}

.preference-chips legend {
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 8px;
  text-transform: uppercase;
}

.preference-chips label {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 900;
  min-height: 44px;
  padding: 0 13px;
  touch-action: manipulation;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.preference-chips input {
  accent-color: var(--verde-escuro);
  appearance: none;
  background: var(--white);
  border: 1.5px solid rgba(24, 58, 45, 0.42);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--white);
  flex: 0 0 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  width: 18px;
}

.preference-chips label:hover {
  border-color: rgba(24, 58, 45, 0.26);
  transform: translateY(-1px);
}

.preference-chips label:has(input:checked) {
  background: var(--verde-escuro);
  border-color: var(--verde-escuro);
  color: var(--white);
}

.preference-chips input:checked {
  background: var(--amarelo);
  border-color: var(--amarelo);
}

.briefing-text-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.briefing-text-grid textarea {
  min-height: 94px;
}

.contact-step-shell {
  display: grid;
  gap: 14px;
}

.contact-step-intro {
  background: linear-gradient(135deg, rgba(24, 58, 45, 0.06), rgba(238, 244, 240, 0.72));
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.contact-intro-title {
  color: var(--verde-escuro);
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.contact-intro-body,
.contact-requirement-note {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.contact-requirement-note {
  color: var(--verde);
}

.contact-fields-grid {
  background: rgba(238, 244, 240, 0.52);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  padding: 14px;
}

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

.contact-secondary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-fields-grid label {
  display: grid;
  gap: 6px;
}

.contact-fields-grid label > span {
  color: var(--verde-escuro);
  font-weight: 900;
}

.contact-fields-grid label > small {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  min-height: 2.3em;
}

.contact-fields-grid label > small[data-tone="highlight"] {
  color: var(--verde);
}

.contact-fields-grid label > small[data-tone="warning"] {
  color: var(--danger);
}

.contact-fields-grid label > small[data-tone="success"] {
  color: var(--verde);
}

.conditional-contact-field {
  border-left: 3px solid rgba(24, 58, 45, 0.24);
  padding-left: 12px;
}

.contact-reassurance {
  display: grid;
  gap: 8px;
}

.contact-promise {
  background: var(--verde-claro);
  border-left: 4px solid var(--verde);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-weight: 900;
  margin: 0;
  padding: 12px 14px;
}

.contact-assurance {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.final-review-card {
  background: linear-gradient(135deg, rgba(24, 58, 45, 0.06), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(24, 58, 45, 0.13);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.final-review-card > div:first-child {
  display: grid;
  gap: 4px;
}

.final-review-card > div:first-child span {
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.final-review-card h2 {
  color: var(--verde-escuro);
  margin: 0;
}

.final-review-card p {
  color: var(--muted);
  font-weight: 750;
  margin: 0;
}

.final-review-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.final-review-grid button {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  text-align: left;
}

.final-review-grid button.is-required {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.9));
  border-color: rgba(238, 146, 14, 0.5);
}

.final-review-grid button.is-ok {
  background: linear-gradient(135deg, rgba(232, 244, 236, 0.94), rgba(255, 255, 255, 0.9));
  border-color: rgba(44, 113, 72, 0.24);
}

.final-review-grid button.is-optional {
  background: linear-gradient(135deg, rgba(239, 244, 241, 0.96), rgba(255, 255, 255, 0.9));
}

.final-review-grid .final-review-status {
  align-self: start;
  background: rgba(238, 146, 14, 0.13);
  border-radius: 999px;
  color: var(--amarelo);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 950;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
}

.final-review-grid .is-ok .final-review-status {
  background: rgba(44, 113, 72, 0.12);
  color: var(--verde);
}

.final-review-grid .is-required .final-review-status {
  background: rgba(179, 48, 36, 0.1);
  color: var(--danger);
}

.final-review-grid .is-optional .final-review-status {
  background: rgba(24, 58, 45, 0.08);
  color: var(--muted);
}

.final-review-grid .final-review-label {
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.final-review-grid button:hover,
.final-review-grid button:focus-visible {
  border-color: rgba(24, 58, 45, 0.35);
  box-shadow: 0 10px 24px rgba(24, 58, 45, 0.08);
}

.final-review-grid strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.final-review-grid small {
  color: var(--amarelo);
  font-weight: 900;
}

.public-form-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
}

.public-form-actions p {
  color: var(--muted);
  display: grid;
  gap: 4px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.public-form-actions p[data-status="success"] {
  background: rgba(24, 58, 45, 0.08);
  border-left: 4px solid var(--verde);
  border-radius: 8px;
  color: var(--verde);
  padding: 12px 14px;
}

.public-form-actions p[data-status="success"] strong {
  color: var(--verde-escuro);
  font-size: 1rem;
}

.public-form-actions p[data-status="success"] b {
  color: var(--verde-escuro);
}

.public-form-actions p a {
  color: var(--verde-escuro);
  font-weight: 900;
}

.public-form-actions p[data-status="error"] {
  background: rgba(157, 67, 47, 0.08);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  color: var(--danger);
  padding: 12px 14px;
}

.public-form-actions p[data-status="error"] strong {
  color: var(--danger);
  font-size: 0.98rem;
}

.public-form-actions p[data-status="error"] ul {
  color: var(--verde-escuro);
  display: grid;
  gap: 3px;
  margin: 2px 0 0;
  padding-left: 18px;
}

.public-form-actions p[data-status="error"] span {
  color: var(--muted);
}

.consult-step[data-invalid] .section-heading h2::after {
  background: rgba(157, 67, 47, 0.1);
  border-radius: 999px;
  color: var(--danger);
  content: "revisar";
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 900;
  margin-left: 8px;
  padding: 3px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.public-proposal-body {
  background: var(--paper);
}

.public-proposal-shell {
  min-height: 100vh;
}

.public-proposal-hero {
  min-height: 42svh;
  overflow: hidden;
  position: relative;
}

.public-proposal-hero::after {
  background:
    linear-gradient(90deg, rgba(24, 58, 45, 0.92), rgba(24, 58, 45, 0.6) 46%, rgba(24, 58, 45, 0.06)),
    linear-gradient(0deg, rgba(24, 58, 45, 0.22), rgba(24, 58, 45, 0.02));
  content: "";
  inset: 0;
  position: absolute;
}

.public-proposal-hero > img {
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  position: absolute;
  width: 100%;
}

.public-proposal-hero-copy {
  color: var(--white);
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 40px 28px;
  position: relative;
  z-index: 1;
}

.public-proposal-hero-copy img {
  background: rgba(237, 226, 201, 0.92);
  border-radius: 50%;
  height: 78px;
  padding: 6px;
  width: 78px;
}

.public-proposal-hero-copy p {
  color: var(--verde-2);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.public-proposal-hero-copy h1 {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 680px;
  overflow-wrap: anywhere;
}

.public-proposal-hero-copy span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 750;
}

.public-proposal-card {
  display: grid;
  gap: 18px;
  margin: -58px auto 46px;
  max-width: 980px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.public-proposal-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-proposal-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 999px;
  color: var(--verde-escuro);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 14px;
}

.public-proposal-chip.is-status {
  background: rgba(245, 155, 30, 0.14);
  border-color: rgba(245, 155, 30, 0.22);
  color: #9d432f;
}

.public-proposal-chip-deadline {
  background: rgba(24, 58, 45, 0.08);
  border-color: rgba(24, 58, 45, 0.18);
}

.public-proposal-stage {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  overflow: hidden;
}

.public-proposal-stage-copy,
.public-proposal-decision-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.public-proposal-stage-copy {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 240, 0.78));
}

.public-proposal-decision-card {
  background: linear-gradient(180deg, rgba(24, 58, 45, 0.06), rgba(24, 58, 45, 0.02));
  border-left: 1px solid rgba(24, 58, 45, 0.1);
}

.public-proposal-stage-copy span,
.public-proposal-decision-card span,
.public-proposal-contact-card span {
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-proposal-stage-copy h2 {
  color: var(--verde-escuro);
  font-size: 1.7rem;
  line-height: 1;
  margin: 0;
}

.public-proposal-stage-copy p,
.public-proposal-decision-card p,
.public-proposal-contact-card p {
  color: var(--muted);
  font-weight: 780;
  line-height: 1.45;
  margin: 0;
}

.public-proposal-decision-card strong,
.public-proposal-contact-card strong {
  color: var(--verde-escuro);
  font-size: 1.08rem;
  line-height: 1.15;
}

.public-deadline-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 155, 30, 0.34);
  border-left: 5px solid var(--laranja);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.public-deadline-card span {
  color: var(--laranja);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-deadline-card strong {
  color: var(--verde-escuro);
  font-size: 1.02rem;
  line-height: 1.18;
}

.public-deadline-card p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
  margin: 0;
}

.public-proposal-loading,
.public-proposal-empty,
.public-proposal-summary,
.public-proposal-section,
.public-proposal-items,
.public-proposal-totals,
.public-proposal-terms,
.public-proposal-actions,
.public-proposal-response {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.public-proposal-loading,
.public-proposal-empty {
  color: var(--verde-escuro);
  font-weight: 850;
  padding: 22px;
}

.public-proposal-empty,
.public-proposal-section,
.public-proposal-items,
.public-proposal-actions,
.public-proposal-terms {
  display: grid;
  gap: 12px;
}

.public-proposal-empty h2,
.public-proposal-section h2,
.public-proposal-actions h3,
.public-proposal-items h3 {
  color: var(--verde-escuro);
  margin: 0;
}

.public-proposal-empty p,
.public-proposal-section p,
.public-proposal-actions p {
  color: var(--muted);
  font-weight: 750;
  margin: 0;
}

.public-proposal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.public-proposal-summary div {
  background: var(--amarelo-claro);
  border-right: 1px solid rgba(24, 58, 45, 0.1);
  display: grid;
  gap: 5px;
  padding: 15px;
}

.public-proposal-summary div:last-child {
  border-right: 0;
}

.public-proposal-summary span,
.public-proposal-section > span,
.public-proposal-totals span {
  color: var(--verde);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-proposal-summary strong,
.public-proposal-totals strong {
  color: var(--verde-escuro);
  font-size: 0.98rem;
  line-height: 1.1;
}

.public-proposal-response {
  border-left: 5px solid var(--verde);
  display: grid;
  gap: 5px;
  padding: 16px;
}

.public-proposal-response strong {
  color: var(--verde-escuro);
}

.public-proposal-response span {
  color: var(--muted);
  font-weight: 750;
}

.public-payment-info {
  background: linear-gradient(135deg, rgba(237, 226, 201, 0.72), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(24, 58, 45, 0.16);
  border-left: 5px solid var(--verde);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.public-payment-heading {
  display: grid;
  gap: 5px;
}

.public-payment-heading span,
.public-payment-grid span,
.public-payment-pix span {
  color: var(--verde);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-payment-heading h3 {
  color: var(--verde-escuro);
  font-size: 1.2rem;
  margin: 0;
}

.public-payment-heading p {
  color: var(--muted);
  font-weight: 780;
  line-height: 1.4;
  margin: 0;
}

.public-payment-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.public-payment-grid div,
.public-payment-pix {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 58, 45, 0.1);
  border-radius: 8px;
}

.public-payment-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.public-payment-grid .public-payment-highlight {
  background: linear-gradient(135deg, rgba(24, 58, 45, 0.96), rgba(45, 113, 74, 0.94));
  border-color: rgba(24, 58, 45, 0.18);
}

.public-payment-grid .public-payment-highlight span,
.public-payment-grid .public-payment-highlight strong {
  color: var(--white);
}

.public-payment-grid .public-payment-highlight strong {
  font-size: 1.18rem;
}

.public-payment-grid strong,
.public-payment-pix strong {
  color: var(--verde-escuro);
  font-size: 0.98rem;
}

.public-payment-pix {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.public-payment-pix div {
  display: grid;
  gap: 4px;
}

.public-payment-pix small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
}

.public-copy-pix {
  background: var(--verde-escuro);
  color: var(--white);
  min-height: 44px;
  white-space: nowrap;
}

.public-copy-pix:hover {
  background: var(--verde);
}

.public-proof-uploader {
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed rgba(24, 58, 45, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.public-proof-heading {
  display: grid;
  gap: 4px;
}

.public-proof-heading span,
.public-proof-summary span {
  color: var(--laranja);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-proof-heading strong,
.public-proof-summary strong,
.public-proof-summary a {
  color: var(--verde-escuro);
  font-size: 0.98rem;
}

.public-proof-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
  margin: 0;
}

.public-proof-dropzone {
  align-items: center;
  background: rgba(24, 58, 45, 0.05);
  border: 1px solid rgba(24, 58, 45, 0.16);
  border-radius: 8px;
  color: var(--verde-escuro);
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 76px;
  padding: 16px;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.public-proof-dropzone input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.public-proof-dropzone span {
  font-weight: 900;
  line-height: 1.3;
}

.public-proof-dropzone:hover,
.public-proof-dropzone.is-dragover {
  background: rgba(24, 58, 45, 0.1);
  border-color: var(--verde);
  transform: translateY(-1px);
}

.public-proof-status {
  color: var(--muted);
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 820;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
}

.public-proof-status[data-status="ok"] {
  color: var(--verde);
}

.public-proof-status button {
  background: rgba(163, 54, 38, 0.1);
  color: var(--danger);
  min-height: 32px;
  padding: 0 10px;
}

.public-proof-summary {
  background: rgba(24, 58, 45, 0.07);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.public-proposal-next-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-proposal-next-steps article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 5px;
  padding: 14px;
}

.public-proposal-next-steps span {
  color: var(--amarelo);
  font-size: 0.7rem;
  font-weight: 950;
}

.public-proposal-next-steps strong {
  color: var(--verde-escuro);
  font-size: 0.98rem;
}

.public-proposal-next-steps p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
  margin: 0;
}

.public-proposal-section,
.public-proposal-items,
.public-proposal-actions,
.public-proposal-terms {
  padding: 20px;
}

.public-proposal-actions {
  gap: 14px;
}

.public-proposal-actions-copy {
  display: grid;
  gap: 6px;
}

.public-proposal-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
}

.public-proposal-side-stack {
  display: grid;
  gap: 18px;
}

.public-proposal-items article {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 0;
}

.public-proposal-items article:last-child {
  border-bottom: 0;
}

.public-proposal-items strong,
.public-proposal-items b {
  color: var(--verde-escuro);
}

.public-proposal-items p,
.public-proposal-items small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
  margin: 4px 0 0;
}

.public-proposal-totals {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.public-proposal-totals div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 18px;
}

.public-proposal-totals div:last-child {
  background: var(--verde-escuro);
  border-bottom: 0;
}

.public-proposal-totals div:last-child span,
.public-proposal-totals div:last-child strong {
  color: var(--white);
}

.public-proposal-contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 45, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.public-proposal-terms summary {
  color: var(--verde-escuro);
  cursor: pointer;
  font-weight: 900;
}

.public-proposal-terms p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 10px 0 0;
}

.public-proposal-buttons,
.public-proposal-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-proposal-main-cta {
  flex: 1 1 260px;
}

.public-proposal-change-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.public-proposal-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-proposal-status {
  background: rgba(24, 58, 45, 0.06);
  border-left: 4px solid var(--verde);
  border-radius: 8px;
  color: var(--verde-escuro);
  font-weight: 850;
  margin: 0;
  padding: 12px;
}

.public-proposal-status[data-status="error"] {
  background: rgba(139, 42, 35, 0.1);
  border-left-color: #a72d26;
  color: #8b2a23;
}

.public-proposal-status[data-status="success"] {
  background: rgba(24, 58, 45, 0.1);
  border-left-color: var(--verde-escuro);
}

@media (max-width: 1080px) {
  .communication-template-grid {
    grid-template-columns: 1fr;
  }

  .communication-hero-panel,
  .communication-help-panel {
    flex-direction: column;
  }

  .communication-toolbar {
    width: 100%;
  }

  .communication-toolbar button {
    flex: 1;
  }

  .topbar,
  .auth-locked .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-tools {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .quote-layout {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .team-access,
  .supabase-config-grid,
  .login-row,
  .topbar-team-auth .compact-login-row,
  .compact-config-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    max-width: 420px;
  }

  .pipeline-guidance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .send-review-command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-panel {
    position: static;
  }

  .fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-primary-grid,
  .contact-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-details-grid label:nth-child(n) {
    grid-column: span 1;
  }

  .event-details-grid label:nth-child(4) {
    grid-column: 1 / -1;
  }

  .guest-count-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .owner-metrics,
  .period-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-list,
  .client-command-center,
  .service-cockpit-grid,
  .form-source-edit-grid,
  .form-source-grid,
  .form-source-briefing,
  .lead-review-grid,
  .upsell-grid,
  .library-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-quick-filters,
  .operations-agenda-grid,
  .public-proposal-stage,
  .public-proposal-layout,
  .public-proposal-next-steps {
    grid-template-columns: 1fr;
  }

  .quote-empty-steps {
    grid-template-columns: 1fr;
  }

  .custom-report {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-report button {
    grid-column: 1 / -1;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-row-commercial,
  .pipeline-row-operation {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .choice-card-grid,
  .format-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 18px;
  }

  .topbar {
    align-items: start;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: 2.4rem;
  }

  .brand-logo {
    height: 66px;
    width: 66px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-action-row {
    grid-template-columns: minmax(0, 1fr) minmax(88px, 0.45fr);
  }

  .button-link {
    flex: 1 1 150px;
  }

  .fields-grid,
  .filters,
  .event-details-grid,
  .briefing-text-grid,
  .system-health-grid,
  .owner-metrics,
  .period-metrics,
  .action-list,
  .client-command-center,
  .client-registry-metrics,
  .service-cockpit-grid,
  .lead-review-grid,
  .upsell-grid,
  .report-insights,
  .library-summary,
  .checklist-items,
  .custom-report,
  .pipeline-row-commercial,
  .pipeline-row-operation,
  .pipeline-row-archive,
  .choice-grid,
  .choice-grid.compact,
  .choice-card-grid,
  .format-grid,
  .profile-grid,
  .calculation-grid,
  .builder-grid,
  .proposal-grid,
  .proposal-totals {
    grid-template-columns: 1fr;
  }

  .contact-primary-grid,
  .contact-secondary-grid {
    grid-template-columns: 1fr;
  }

  .service-cockpit-head,
  .form-source-head,
  .service-cockpit-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .form-source-grid,
  .form-source-edit-grid,
  .form-source-briefing {
    grid-template-columns: 1fr;
  }

  .form-source-head small {
    max-width: none;
    text-align: left;
  }

  .service-cockpit {
    gap: 10px;
    padding: 10px;
  }

  .service-mobile-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-mobile-path button {
    min-height: 56px;
    padding: 8px;
  }

  .service-mobile-path strong {
    font-size: 0.74rem;
  }

  .service-mobile-path small {
    font-size: 0.6rem;
  }

  .service-next-card {
    order: -1;
  }

  .action-focus-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .action-focus-card .action-open-button {
    justify-self: stretch;
    min-height: 44px;
    width: 100%;
  }

  .service-cockpit-progress {
    justify-items: start;
  }

  .reports-header,
  .report-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .reports-header {
    display: grid;
  }

  .report-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-toolbar {
    grid-template-columns: 1fr;
  }

  .system-health-toolbar,
  .integration-log-header,
  .integration-log-entry {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .system-health-toolbar,
  .integration-log-header {
    display: grid;
  }

  .report-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-item > div:last-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .report-item span,
  .report-item small {
    white-space: normal;
  }

  .event-details-grid label:nth-child(n) {
    grid-column: auto;
  }

  .builder-wide {
    grid-column: auto;
  }

  .values-command-panel,
  .product-type-create {
    grid-template-columns: 1fr;
  }

  .spreadsheet-steps {
    grid-template-columns: 1fr;
  }

  .spreadsheet-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .product-type-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 16px;
  }

  .price-list {
    grid-template-columns: 1fr;
  }

  .item-cost {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .price-card-topline,
  .price-card-footer {
    align-items: start;
    flex-direction: column;
  }

  .price-card-main {
    grid-template-columns: 1fr;
  }

  .price-category-group,
  .item-cost {
    width: 100%;
  }

  .proposal-paper {
    max-width: 100%;
    overflow: hidden;
    padding: 22px 14px;
    width: 100%;
  }

  #proposalContent,
  .proposal-page {
    max-width: 100%;
    overflow: hidden;
  }

  .proposal-header,
  .proposal-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .proposal-total-box {
    text-align: left;
    width: 100%;
  }

  .proposal-summary-strip {
    grid-template-columns: 1fr;
  }

  .proposal-table,
  .proposal-table tbody,
  .proposal-table tr,
  .proposal-table th,
  .proposal-table td {
    display: block;
    width: 100%;
  }

  .proposal-table thead {
    display: none;
  }

  .proposal-table tr {
    border-bottom: 1px solid rgba(24, 58, 45, 0.12);
    padding: 10px 0;
  }

  .proposal-table td {
    border-bottom: 0;
    padding: 5px 0;
    text-align: left;
  }

  .proposal-table td:last-child,
  .proposal-table th:last-child,
  .proposal-table .proposal-value {
    text-align: left;
    white-space: normal;
  }

  .public-form-hero {
    min-height: 410px;
  }

  .public-form-hero-copy {
    max-width: 100%;
    padding: 32px 22px;
  }

  .public-form-hero-copy h1 {
    font-size: 2.4rem;
    line-height: 1;
    max-width: 12ch;
  }

  .public-form-hero-copy span {
    max-width: 26ch;
  }

  .public-proposal-hero {
    min-height: 390px;
  }

  .public-proposal-hero-copy {
    padding: 30px 20px;
  }

  .public-proposal-hero-copy h1 {
    font-size: 2.35rem;
    line-height: 1;
  }

  .public-proposal-card {
    margin-top: -42px;
    padding: 0 14px 26px;
  }

  .public-proposal-summary,
  .public-proposal-form-grid {
    grid-template-columns: 1fr;
  }

  .public-proposal-summary div {
    border-bottom: 1px solid rgba(24, 58, 45, 0.1);
    border-right: 0;
  }

  .public-proposal-summary div:last-child {
    border-bottom: 0;
  }

  .public-proposal-items article {
    grid-template-columns: 1fr;
  }

  .public-payment-pix {
    align-items: stretch;
    flex-direction: column;
  }

  .public-copy-pix {
    width: 100%;
  }

  .timeline-heading {
    align-items: start;
    display: grid;
  }

  .timeline-heading p {
    text-align: left;
  }

  .timeline-entry {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .timeline-entry-badge {
    justify-content: flex-start;
    min-width: 0;
    width: fit-content;
  }

  .timeline-entry-meta {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .internal-note-form,
  .attachment-form,
  .finance-command-grid {
    grid-template-columns: 1fr;
  }

  .send-review-heading {
    display: grid;
  }

  .send-review-heading small {
    max-width: none;
    text-align: left;
  }

  .send-review-grid {
    grid-template-columns: 1fr;
  }

  .send-review-command {
    grid-template-columns: 1fr;
  }

  .send-review-panel {
    gap: 10px;
    padding: 12px;
  }

  .review-command-center {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .review-command-side {
    align-items: stretch;
    justify-items: stretch;
    min-width: 0;
  }

  .review-command-side b {
    justify-self: start;
  }

  .review-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .send-review-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .send-review-route button {
    min-height: 58px;
  }

  .send-review-primary-button {
    min-height: 44px;
  }

  .approval-confidence,
  .review-focus-note,
  .send-review-confidence {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .approval-confidence div,
  .review-focus-note div,
  .send-review-confidence div {
    min-width: 0;
  }

  .review-compact-alerts {
    grid-template-columns: 1fr;
  }

  .smart-alerts-heading {
    align-items: start;
    display: grid;
  }

  .smart-alerts-heading small {
    text-align: left;
  }

  .smart-alerts-grid,
  .send-smart-alerts {
    grid-template-columns: 1fr;
  }

  .customer-decision-steps {
    grid-template-columns: 1fr;
  }

  .pipeline-card {
    gap: 5px;
    padding: 10px;
  }

  .pipeline-card-kicker {
    gap: 5px;
  }

  .pipeline-card-event-row,
  .pipeline-card-name-row,
  .pipeline-card-title {
    gap: 8px;
  }

  .pipeline-card-event-line,
  .pipeline-card-final-client,
  .pipeline-card-meta {
    white-space: normal;
  }

  .pipeline-card-name {
    -webkit-line-clamp: 2;
  }

  .pipeline-card-next-action {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .pipeline-card-next-action strong {
    text-align: left;
  }

  .pipeline-card-bottom-row {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pipeline-card-actions {
    justify-content: flex-end;
    width: 100%;
  }

  .pipeline-open-button,
  .pipeline-top-action,
  .pipeline-proof-download,
  .pipeline-card-kicker .pipeline-status-control summary {
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
  }

  .proposal-next-step-body {
    align-items: stretch;
    flex-direction: column;
  }

  .public-form-trust {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .public-form-trust b {
    display: block;
    line-height: 1.18;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .public-form-panel {
    margin: 0;
    max-width: none;
    overflow: hidden;
    padding: 22px 18px;
    width: 100%;
  }

  .public-form-intro {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .public-form-intro h2 {
    font-size: 1.55rem;
    line-height: 1.05;
    max-width: 16ch;
  }

  .public-form-intro p:not(.eyebrow) {
    max-width: 28ch;
  }

  .public-form-steps {
    background: transparent;
    border-bottom: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    overflow: visible;
    padding: 0;
    position: static;
    scrollbar-width: none;
  }

  .public-form-steps::-webkit-scrollbar {
    display: none;
  }

  .public-form-steps li {
    font-size: 0.92rem;
    min-height: 38px;
    padding: 0 8px;
  }

  .pipeline-guidance,
  .guide-grid,
  .form-ux-cues {
    grid-template-columns: 1fr;
  }

  .consult-step {
    gap: 14px;
    padding-bottom: 28px;
    scroll-margin-top: 76px;
  }

  .consult-step[data-invalid] {
    outline-offset: 4px;
  }

  .section-heading {
    margin-bottom: 0;
  }

  .commercial-windows,
  .choice-card-grid button,
  .format-card {
    max-width: 100%;
  }

  .final-review-grid {
    grid-template-columns: 1fr;
  }

  .choice-card-grid button,
  .format-card {
    min-height: auto;
    padding: 16px;
  }

  .choice-card-grid button {
    min-height: 72px;
    padding: 16px 18px;
  }

  .profile-grid button {
    min-height: 58px;
  }

  .public-form-actions {
    align-items: stretch;
    background: var(--paper);
    bottom: 0;
    display: grid;
    margin: 0;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    position: sticky;
    z-index: 6;
  }

  .public-form-actions button {
    width: 100%;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .public-form-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

@media print {
  @page {
    margin: 0;
    size: A4;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: var(--white);
    font-size: 10pt;
  }

  .workspace {
    display: none;
  }

  .app-shell {
    min-height: auto;
  }

  .proposal-paper {
    border-top: 7mm solid var(--verde-escuro);
    box-shadow: none;
    margin: 0;
    max-width: none;
    min-height: 297mm;
    overflow: hidden;
    padding: 8mm 10mm 9mm;
    width: 210mm;
  }

  .proposal-header {
    margin-bottom: 4mm;
    padding-bottom: 3mm;
  }

  .proposal-header-repeat {
    display: flex;
    margin-bottom: 5mm;
  }

  .brand-logo.print-logo {
    height: 18mm;
    width: 18mm;
  }

  .proposal-header h2 {
    font-size: 18pt;
  }

  .proposal-header p {
    font-size: 8pt;
  }

  .proposal-total-box {
    min-width: 44mm;
    padding: 8px 10px;
  }

  .proposal-total-box strong {
    font-size: 15pt;
  }

  .proposal-cover {
    margin-bottom: 4mm;
    min-height: 28mm;
  }

  .proposal-cover div {
    padding: 10px 12px;
  }

  .proposal-cover strong {
    font-size: 15pt;
  }

  .proposal-cover span,
  .proposal-summary-strip span,
  .proposal-section-title span,
  .proposal-grid span,
  .proposal-note span,
  .proposal-totals span {
    font-size: 6.8pt;
  }

  .proposal-summary-strip {
    margin-bottom: 4mm;
  }

  .proposal-summary-strip div {
    padding: 7px 8px;
  }

  .proposal-summary-strip strong {
    font-size: 8.7pt;
  }

  .proposal-summary-strip,
  .proposal-totals,
  .proposal-payment {
    break-inside: avoid;
  }

  .proposal-section-title {
    break-after: avoid;
    margin: 4mm 0 2.4mm;
    padding-bottom: 3px;
  }

  .proposal-section-title h3 {
    font-size: 8.7pt;
  }

  .proposal-grid {
    gap: 5px;
    margin-bottom: 3mm;
  }

  .proposal-grid div,
  .proposal-note {
    border-left-width: 2px;
    padding: 6px 7px;
  }

  .proposal-table {
    break-inside: auto;
    font-size: 7.8pt;
    margin: 2mm 0 3mm;
  }

  .proposal-table tr {
    break-inside: avoid;
  }

  .proposal-table th,
  .proposal-table td {
    padding: 4px 5px;
  }

  .proposal-table small {
    font-size: 6.8pt;
  }

  .proposal-totals {
    gap: 5px;
    margin-bottom: 3mm;
  }

  .proposal-totals div {
    padding: 6px 7px;
  }

  .proposal-totals strong {
    font-size: 9.5pt;
  }

  .proposal-payment {
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
  }

  .proposal-payment div {
    padding: 6px 7px;
  }

  .proposal-payment strong {
    font-size: 8pt;
    line-height: 1.18;
  }

  .proposal-note {
    break-inside: avoid;
    font-size: 7.5pt;
    line-height: 1.3;
    margin-top: 2mm;
  }

  .proposal-page {
    break-inside: avoid;
  }

  .proposal-page-main {
    break-after: page;
    height: 246mm;
    overflow: hidden;
  }

  .proposal-page-details {
    break-before: page;
    height: 260mm;
    margin-top: 0;
    overflow: hidden;
  }

  .proposal-page-details .proposal-section-title {
    margin-top: 0;
  }

  .proposal-details-title h3::after {
    color: var(--muted);
    content: " - página 2 de 2";
    font-size: 7pt;
    font-weight: 800;
    margin-left: 6px;
  }

  .terms-note {
    break-inside: auto;
    column-count: 3;
    column-gap: 6mm;
    font-size: 7.15pt;
    line-height: 1.3;
    max-height: 154mm;
    overflow: hidden;
    padding: 7px 8px;
  }

  .proposal-terms-header {
    margin: 0 0 5mm;
    padding-bottom: 3mm;
  }

  .proposal-terms-header img {
    height: 18mm;
    width: 18mm;
  }

  .proposal-terms-header span {
    font-size: 7pt;
  }

  .proposal-terms-header strong {
    font-size: 16pt;
  }

  .toast {
    display: none;
  }
}
