/* 
  Aqui são definidas as "variáveis" do CSS. 
  Pense nisso como um estoque de cores e tamanhos que você reaproveita em todo o código. 
  Ex: Toda vez que usar var(--accent), o navegador pintará com a cor verde #0f8b73.
*/
:root {
  --bg: #ecf2f7;
  --bg-2: #dde7f0;
  --ink: #132234;
  --muted: #627487;
  --accent: #0f8b73;
  --accent-2: #0c223d;
  --surface: #ffffff;
  --surface-strong: #f5f8fb;
  --surface-soft: #edf3f7;
  --stroke: rgba(12, 34, 61, 0.1);
  --stroke-strong: rgba(12, 34, 61, 0.16);
  --shadow: 0 24px 56px rgba(12, 34, 61, 0.12);
  --shadow-soft: 0 16px 36px rgba(12, 34, 61, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "IBM Plex Serif", serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

/* Reset global básico para que todos os navegadores lidem melhor com tamanhos */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Configurações da página inteira (fundo, fonte padrão) */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #eef3f8 0%, #e5ebf3 48%, #f4f7fb 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
      rgba(12, 34, 61, 0.06) 1px,
      transparent 0
    ),
    radial-gradient(rgba(15, 139, 115, 0.12), transparent 58%);
  background-size: 110px 110px, 540px 540px;
  background-position: 0 0, 92% -8%;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: auto auto -180px -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(12, 34, 61, 0.12) 0%,
    rgba(12, 34, 61, 0.02) 58%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   G2G Suite dark alignment
   Mantem o modulo financeiro no mesmo visual do sistema principal.
   ========================================================================== */
:root {
  --bg: #191d26;
  --bg-2: #131720;
  --ink: #f7f9ff;
  --muted: #98a3bb;
  --accent: #5db7e7;
  --accent-2: #915cff;
  --surface: #202530;
  --surface-strong: #252b39;
  --surface-soft: #2e3547;
  --stroke: #343c50;
  --stroke-strong: #52617f;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.14);
  --radius: 18px;
  --radius-sm: 14px;
}

body {
  color: var(--ink);
  background: var(--bg) !important;
}

body::before,
body::after {
  display: none;
}

.sidebar {
  background: #151922 !important;
  border-right: 5px solid #a5aab5 !important;
  box-shadow: none !important;
}

.sidebar::before {
  display: none;
}

.brand-logo,
.brand-mark,
.nav-item,
.sidebar-card,
.sidebar-history,
.panel,
.feature-card,
.metric-card,
.hero-card,
.calculator-card,
.result-card,
.summary-card,
.history-list li,
.top-search,
.top-actions button {
  border: 1px solid var(--stroke) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

.nav-item:hover,
.nav-item.is-active,
.feature-card:hover,
.metric-card:hover,
.calculator-card:hover,
.result-card:hover,
.summary-card:hover,
.top-actions button:hover {
  background: #303749 !important;
  border-color: var(--stroke-strong) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.page,
.tab-panel {
  background: var(--bg) !important;
}

.app-topbar {
  background: var(--bg) !important;
}

.home-hero,
.panel,
.hero-card {
  background: var(--surface) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: var(--radius) !important;
}

h1,
h2,
h3,
.brand-copy strong,
.nav-title,
.panel-head h2,
.feature-card h3,
.hero-card h2,
.metric-card strong {
  color: var(--ink) !important;
}

p,
.brand-copy > span,
.nav-meta,
.panel-head p,
.feature-card p,
.feature-meta,
.metric-card span,
.sidebar-card p,
.sidebar-history p {
  color: var(--muted) !important;
}

.btn,
button,
input,
select,
textarea {
  border-radius: 14px !important;
}

.btn {
  background: #343b50 !important;
  border: 1px solid #414a63 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn:hover {
  background: #414a62 !important;
  border-color: #53607e !important;
}

.btn-ghost {
  background: #252b39 !important;
  border-color: #3a4258 !important;
  color: #f7f9ff !important;
}

input,
select,
textarea,
.top-search {
  background: #252b39 !important;
  border-color: #3a4258 !important;
  color: var(--ink) !important;
}

input::placeholder,
textarea::placeholder {
  color: #a7b1c7 !important;
}

.eyebrow,
.section-kicker,
.feature-tag {
  color: var(--accent) !important;
}

/* A estrutura principal que segura tanto o menu lateral quanto a área do conteúdo da direita */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
}

/* Menu lateral escuro na esquerda */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 26px 22px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 14%),
    linear-gradient(180deg, #0b1d35 0%, #102746 52%, #143054 100%);
  color: #d5deea;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0f8b73 0%, rgba(15, 139, 115, 0.15) 72%, transparent 100%);
}

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

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #11866f 0%, #0f6f60 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-copy strong {
  display: block;
  font-size: 1.02rem;
  color: #ffffff;
}

.brand-copy > span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.sidebar-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.46);
  font-weight: 600;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  appearance: none;
  text-decoration: none;
  color: rgba(213, 222, 234, 0.84);
  padding: 14px 15px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 500;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item:hover {
  background: rgba(15, 139, 115, 0.14);
  color: #ffffff;
  border-color: rgba(15, 139, 115, 0.22);
  transform: translateY(-1px);
}

.nav-item.is-active {
  background: linear-gradient(135deg, rgba(15, 139, 115, 0.28) 0%, rgba(15, 139, 115, 0.08) 100%);
  color: #ffffff;
  border-color: rgba(15, 139, 115, 0.32);
  box-shadow: 0 18px 34px rgba(6, 18, 33, 0.28);
}

.nav-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.nav-meta {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(213, 222, 234, 0.66);
}

.nav-item.is-active .nav-meta,
.nav-item:hover .nav-meta {
  color: rgba(255, 255, 255, 0.82);
}

.sidebar-history {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-history p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow: auto;
}

.history-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 34, 61, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.45;
}

.history-empty {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-card {
  margin-top: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Área central "Main" - A tela onde os cálculos do sistema acontecem */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 34px) clamp(16px, 2.5vw, 34px) clamp(42px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 22px;
}

.tab-panel.is-active {
  display: flex;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.98) 100%);
  border: 1px solid rgba(12, 34, 61, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 34, 61, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 249, 0.98) 56%, rgba(248, 250, 252, 0.99) 100%);
  box-shadow: var(--shadow-soft);
}

.topbar,
.home-hero,
.panel {
  position: relative;
  overflow: visible;
}

.topbar::before,
.home-hero::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(15, 139, 115, 0.22) 70%, transparent 100%);
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 139, 115, 0.1);
  border: 1px solid rgba(15, 139, 115, 0.18);
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 600;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #14a57f;
  box-shadow: 0 0 0 6px rgba(20, 165, 127, 0.14);
}

.home-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 2vw + 1.55rem, 3.15rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.welcome-user {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.user-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(15, 139, 115, 0.2);
  box-shadow: 0 10px 20px rgba(12, 34, 61, 0.1);
  background-color: var(--surface-soft);
}

.user-greeting {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-hero-text p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 60ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 22px;
}

.hero-actions--stack {
  flex-direction: column;
  align-items: stretch;
  margin-top: 16px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 16px 16px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 34, 61, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.metric-card strong {
  font-size: 1.02rem;
  color: var(--accent-2);
}

.hero-card {
  background: linear-gradient(165deg, #0b1f39 0%, #113054 54%, #173b62 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: #e9f1fb;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 22px 42px rgba(12, 34, 61, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card h2 {
  margin: 6px 0 8px;
  font-size: 1.3rem;
  font-family: var(--font-display);
}

.hero-card p {
  margin: 0;
  color: rgba(233, 241, 251, 0.78);
  font-size: 0.95rem;
}

.suggestion-panel {
  margin-top: 24px;
}

.suggestion-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.suggestion-alert {
  padding: 12px 16px;
  border-radius: 12px;
  background-color: rgba(230, 244, 250, 0.8);
  border: 1px solid rgba(17, 134, 111, 0.2);
  color: var(--accent-2);
  font-size: 0.9rem;
}

.suggestion-alert strong {
  color: var(--accent);
}

.suggestion-textarea {
  width: 100%;
  min-height: 100px;
  background-color: #f7fafc !important;
  cursor: not-allowed;
  opacity: 0.8;
}

.hero-card .btn {
  box-shadow: 0 14px 24px rgba(17, 134, 111, 0.3);
}

.hero-card .btn-ghost {
  color: rgba(233, 241, 251, 0.92);
  border-color: rgba(233, 241, 251, 0.4);
}

.hero-card .btn-ghost:hover {
  background: rgba(233, 241, 251, 0.12);
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(233, 241, 251, 0.88);
}

.hero-list li {
  position: relative;
  padding-left: 18px;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18a689;
  box-shadow: 0 0 0 4px rgba(24, 166, 137, 0.2);
}

.topbar-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2vw + 1.6rem, 2.7rem);
  margin: 12px 0 10px;
  letter-spacing: -0.01em;
}

.topbar-text p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 58ch;
  line-height: 1.65;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 139, 115, 0.2);
  background: rgba(15, 139, 115, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
}

.summary-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f5 100%);
  border: 1px solid rgba(15, 139, 115, 0.14);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.summary-head h2 {
  margin: 6px 0 0;
  font-size: 1.15rem;
}

.summary-total {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent-2);
}

.summary-total--text {
  font-size: clamp(1.5rem, 1.2vw + 1.2rem, 2.05rem);
  line-height: 1.2;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 10px;
  column-gap: 12px;
  font-size: 0.93rem;
  color: var(--muted);
}

.summary-grid--panel {
  margin-top: 6px;
}

.summary-grid--panel div:nth-child(even) {
  font-weight: 600;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.summary-grid--panel div:last-child {
  color: var(--accent);
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(12, 34, 61, 0.08);
  box-shadow: var(--shadow-soft);
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(12, 34, 61, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 12px 26px rgba(12, 34, 61, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 134, 111, 0.25);
  background: rgba(17, 134, 111, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--accent-2);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.feature-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(12, 34, 61, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.step-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(12, 34, 61, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-index {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(17, 134, 111, 0.15);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
}

.step-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent-2);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-head {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.field--full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--accent-2);
  font-weight: 600;
}

.field span,
.field label {
  font-weight: 600;
}

.section-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 139, 115, 0.09);
  border: 1px solid rgba(15, 139, 115, 0.16);
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.formula {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(12, 34, 61, 0.18);
  background: var(--surface-strong);
  color: var(--accent-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.result {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 139, 115, 0.22);
  background: rgba(15, 139, 115, 0.08);
  color: var(--accent-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 34, 61, 0.14);
  font-size: 0.97rem;
  font-family: var(--font-body);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, outline 0.2s ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 139, 115, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.field--static .formula,
.field--static .result {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.field-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.field-hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: -4px;
}

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

.btn {
  padding: 11px 16px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #0f8b73 0%, #0b705d 100%);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 14px 28px rgba(15, 139, 115, 0.24);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15, 139, 115, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(12, 34, 61, 0.12);
  color: var(--accent-2);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(12, 34, 61, 0.04);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 34, 61, 0.12);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 0.92rem;
}

.calc-table thead th {
  background: #0d223d;
  color: #f2f6fb;
  text-align: left;
  padding: 13px 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
}

.calc-table tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(12, 34, 61, 0.08);
  vertical-align: middle;
}

.calc-table tbody tr:hover {
  background: rgba(15, 139, 115, 0.05);
}

.calc-table input {
  width: 100%;
  min-width: 120px;
}

.calc-table .index {
  font-weight: 600;
  color: var(--accent-2);
}

.calc-table .numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc-table .remove-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.note-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.note-config,
.note-preview-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(12, 34, 61, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 12px 24px rgba(12, 34, 61, 0.05);
}

.note-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.note-preview-head h3 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--accent-2);
}

.note-preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 139, 115, 0.1);
  border: 1px solid rgba(15, 139, 115, 0.18);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.note-sheet {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(12, 34, 61, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 253, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.note-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(12, 34, 61, 0.08);
}

.note-sheet-header h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent-2);
}

.note-kicker {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 139, 115, 0.08);
  border: 1px solid rgba(15, 139, 115, 0.14);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-sheet-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.note-sheet-brand strong {
  font-size: 1rem;
  color: var(--accent-2);
}

.note-sheet-brand span {
  font-size: 0.82rem;
  color: var(--muted);
}

.note-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.note-meta-item {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid rgba(12, 34, 61, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-meta-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-meta-item strong {
  color: var(--accent-2);
  font-size: 0.97rem;
}

.note-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.opa-message-card {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 139, 115, 0.08);
  border: 1px solid rgba(15, 139, 115, 0.16);
}

.opa-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.opa-message-head span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opa-message-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

.service-message-card {
  padding: 18px;
  border-radius: 16px;
  background: #f8fbfd;
  border: 1px solid rgba(12, 34, 61, 0.08);
}

.service-message-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

.btn-small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.motivation-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 34, 61, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.motivation-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.motivation-card {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 16px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
  transform: translateY(10px);
  transition: transform 0.18s ease;
}

.motivation-modal.is-visible .motivation-card {
  transform: translateY(0);
}

.motivation-card h2 {
  margin: 12px 0 10px;
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 800;
}

.motivation-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 0.95rem;
}

.motivation-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.motivation-card .section-kicker {
  background: #3b82f6;
  color: #ffffff;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.update-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.update-card {
  position: relative;
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 14px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
  color: #f8fafc;
}

.update-card h2 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
}

.update-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.55;
}

.update-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #cbd5e1;
  line-height: 1.6;
}

.update-card li + li {
  margin-top: 6px;
}

.update-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.note-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(12, 34, 61, 0.08);
  margin-bottom: 18px;
}

.note-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.note-table thead th {
  padding: 12px;
  background: #edf4f7;
  color: var(--accent-2);
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note-table tbody td {
  padding: 12px;
  border-top: 1px solid rgba(12, 34, 61, 0.08);
  color: var(--ink);
  vertical-align: top;
}

.note-empty {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.note-total-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.note-total-grid div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 139, 115, 0.08);
  border: 1px solid rgba(15, 139, 115, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-total-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.note-total-grid strong {
  color: var(--accent-2);
  font-size: 1rem;
}

.note-observation {
  padding: 16px;
  border-radius: 16px;
  background: #f8fbfd;
  border: 1px solid rgba(12, 34, 61, 0.08);
}

.note-observation span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-observation p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.mini-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(12, 34, 61, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(12, 34, 61, 0.05);
}

.mini-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.mini-card strong {
  font-size: 1.3rem;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.text-result {
  font-size: 1rem;
  line-height: 1.4;
  font-variant-numeric: normal;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.6s ease forwards;
}

.topbar {
  animation-delay: 0.05s;
}

.home-hero {
  animation-delay: 0.05s;
}

.tab-panel .panel:nth-of-type(1) {
  animation-delay: 0.1s;
}

.tab-panel .panel:nth-of-type(2) {
  animation-delay: 0.18s;
}

.tab-panel .panel:nth-of-type(3) {
  animation-delay: 0.26s;
}

.tab-panel .panel:nth-of-type(4) {
  animation-delay: 0.34s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(11, 31, 58, 0.12);
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-history {
    width: 100%;
  }

  .sidebar-card {
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-height: 760px) and (min-width: 1101px) {
  .sidebar {
    gap: 14px;
    padding: 18px 18px 20px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .nav {
    gap: 8px;
  }

  .nav-item {
    padding: 10px 12px;
  }

  .sidebar-history {
    padding: 14px;
  }

  .history-list {
    max-height: 110px;
  }

  .page {
    gap: 18px;
  }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .note-layout {
    grid-template-columns: 1fr;
  }

  .note-total-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 48px;
  }

  .home-hero {
    padding: 20px;
  }

  .panel,
  .topbar {
    padding: 18px;
  }

  .nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    min-width: unset;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .note-sheet,
  .note-config,
  .note-preview-card {
    padding: 18px;
  }

  .note-meta-grid,
  .note-total-grid {
    grid-template-columns: 1fr;
  }

  .summary-total {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn,
  .nav-item {
    transition: none;
  }
}

/* Ajuste visual alinhado ao tema padrao do projeto */
:root {
  --font-body: "Inter", "IBM Plex Sans", sans-serif;
  --bg: #0f172a;
  --bg-2: #111c31;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #f8fafc;
  --surface: #1e293b;
  --surface-strong: #263449;
  --surface-soft: #334155;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.22);
  --radius: 14px;
  --radius-sm: 8px;
}

body {
  background: #0f172a;
}

body::before,
body::after,
.topbar::before,
.home-hero::before,
.panel::before {
  display: none;
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  background: #1e293b;
  color: #f8fafc;
  border-right: 1px solid var(--stroke);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.18);
  padding: 18px 14px;
}

.sidebar::before {
  display: none;
}

.brand {
  align-items: center;
  gap: 12px;
  padding: 0 8px 18px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  box-shadow: none;
}

.brand-copy strong {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-copy > span {
  color: #94a3b8;
  font-size: 0.76rem;
}

.sidebar-label {
  display: none;
}

.nav {
  gap: 4px;
}

.nav-item {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  box-shadow: none;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(59, 130, 246, 0.14);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: none;
  transform: none;
}

.nav-title {
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-meta {
  display: none;
}

.sidebar-history {
  margin-top: auto;
  background: transparent;
  border: none;
  border-top: 1px solid var(--stroke);
  border-radius: 0;
  padding: 18px 4px 0;
  box-shadow: none;
  color: #cbd5e1;
}

.sidebar-history .eyebrow,
.sidebar-history p {
  display: none;
}

.history-list {
  max-height: 96px;
}

.history-item,
.history-empty {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid var(--stroke);
}

.sidebar-card {
  margin-top: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 10px;
  color: #bfdbfe;
  box-shadow: none;
}

.sidebar-card .eyebrow {
  color: #93c5fd;
}

.page {
  max-width: none;
  padding: 0 24px 34px;
  gap: 18px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin: 0 -24px;
  padding: 0 24px;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
}

.top-search {
  width: min(480px, 55vw);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
}

.top-search input {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #f8fafc;
  font-size: 0.86rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.05rem;
  cursor: pointer;
}

.tab-panel {
  gap: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(380px, 1.5fr) minmax(360px, 1.45fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 16px;
  padding: 24px 0 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.topbar-text {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
}

.topbar-text .eyebrow,
.chips {
  display: none;
}

.topbar-text h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.topbar-text p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: none;
}

.summary-card {
  grid-column: span 2;
  min-height: 190px;
  padding: 24px 26px;
  border-radius: 14px;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow);
}

.summary-head .eyebrow {
  color: #94a3b8;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.summary-head h2 {
  display: none;
}

.summary-total {
  margin-top: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.summary-grid div:nth-child(odd) {
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-grid div:nth-child(even) {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.insight-card {
  min-height: 190px;
  padding: 20px;
  border-radius: 14px;
  background: #1e293b;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  font-size: 1.1rem;
}

.insight-card span:not(.insight-icon) {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.84rem;
}

.insight-card strong {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
}

.panel,
.home-hero,
.feature-card,
.step-card,
.metric-card,
.hero-card {
  background: #ffffff;
  background: #1e293b;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 0;
}

.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--stroke);
}

.panel-head--row {
  align-items: center;
}

.section-kicker,
.step-index {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.panel-head h2 {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 700;
}

.panel-head p {
  color: var(--muted);
}

.form-grid,
.summary-cards,
.service-message-card,
.suggestion-box,
.step-grid,
.feature-grid {
  margin: 0;
  padding: 22px 24px 24px;
}

.form-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px 22px;
}

.field {
  color: #f8fafc;
  font-weight: 600;
  gap: 8px;
  font-size: 0.84rem;
}

.field-hint {
  display: none;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  min-height: 58px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: none;
  color: #f8fafc;
  font-size: 0.88rem;
}

textarea {
  padding: 14px 18px;
}

.btn,
.btn-ghost,
.remove-btn {
  min-height: 44px;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.btn:hover,
.btn-ghost:hover,
.remove-btn:hover {
  background: #006657;
  border-color: #006657;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border-color: var(--stroke);
}

.btn-ghost:hover {
  color: #ffffff;
}

.table-wrap {
  margin: 0;
  border: none;
  border-radius: 0 0 20px 20px;
  overflow-x: auto;
}

.calc-table {
  min-width: 1080px;
  font-size: 0.82rem;
}

.calc-table thead th {
  padding: 13px 18px;
  background: #111c31;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc-table tbody td {
  padding: 12px 18px;
  border-top: 1px solid var(--stroke);
}

.calc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mini-card {
  min-height: 96px;
  border-radius: 12px;
  background: #111c31;
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.mini-label {
  color: var(--muted);
  font-weight: 700;
}

.mini-card strong {
  color: #f8fafc;
  font-size: 1.22rem;
}

.service-message-card {
  margin: 0;
  border: none;
  border-top: 1px solid var(--stroke);
  border-radius: 0 0 20px 20px;
  background: #1e293b;
}

.service-message-card p {
  padding: 18px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid var(--stroke);
  color: #cbd5e1;
}

.home-hero {
  margin-top: 34px;
  padding: 22px;
  background: #1e293b;
}

.home-hero-text h1 {
  color: #f8fafc;
  font-size: clamp(1.7rem, 1.6vw + 1rem, 2.25rem);
}

.home-hero-text p,
.hero-card p,
.feature-card p,
.step-card p,
.user-message,
.feature-meta {
  color: #94a3b8;
  font-size: 0.88rem;
}

.hero-card h2,
.feature-card h3,
.step-card h3 {
  color: #f8fafc;
  font-size: 1rem;
}

.hero-signal,
.feature-tag {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.hero-list li {
  color: #cbd5e1;
}

.metric-card,
.feature-card,
.step-card,
.hero-card {
  background: #111c31;
  border-color: var(--stroke);
}

.metric-card strong {
  color: #f8fafc;
  font-size: 0.9rem;
}

.metric-card span {
  color: #94a3b8;
}

.suggestion-alert,
.formula,
.result {
  background: #0f172a;
  border-color: var(--stroke);
  color: #cbd5e1;
}

.summary-grid--panel {
  background: #111c31;
}

.summary-grid--panel div {
  border-color: var(--stroke);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    max-height: none;
  }

  .topbar {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-text {
    grid-column: 1 / -1;
  }

  .summary-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 0 16px 36px;
  }

  .app-topbar {
    margin: 0 -16px;
    padding: 12px 16px;
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .top-search {
    width: 100%;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .form-grid,
  .summary-cards,
  .service-message-card,
  .suggestion-box,
  .step-grid,
  .feature-grid,
  .panel-head {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Refinos de proporcao e contraste no tema compacto */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
}

.topbar {
  grid-template-columns: minmax(320px, 1.55fr) minmax(150px, 0.72fr) minmax(150px, 0.72fr);
  align-items: stretch;
}

.topbar-text {
  display: block;
  grid-column: 1 / -1;
}

.topbar-text h1 {
  font-size: 1rem;
  line-height: 1.2;
}

.topbar-text p {
  max-width: 720px;
  line-height: 1.45;
}

.summary-card {
  grid-column: auto;
  min-height: 168px;
  padding: 22px 26px;
}

.summary-total {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  padding-bottom: 16px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.insight-card {
  min-height: 168px;
  padding: 18px 20px;
}

.insight-card strong {
  font-size: 1.35rem;
}

.section-kicker {
  width: auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.panel-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 24px;
}

.panel-head h2 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.2;
}

.panel-head p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.panel-head--row {
  flex-direction: row;
}

.form-grid,
.summary-cards,
.service-message-card,
.suggestion-box,
.step-grid,
.feature-grid {
  padding: 18px 24px 22px;
}

.table-wrap {
  background: #0f172a;
}

.calc-table {
  min-width: 980px;
  background: #0f172a;
}

.calc-table thead th {
  background: #0f172a;
  color: #dbeafe;
  padding: 12px 18px;
  line-height: 1.15;
}

.calc-table tbody,
.calc-table tbody tr,
.calc-table tbody td {
  background: #1e293b;
  color: #e2e8f0;
}

.calc-table tbody tr:hover,
.calc-table tbody tr:hover td {
  background: #263449;
}

.calc-table tbody td {
  padding: 11px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.calc-table input[type="number"],
.calc-table input[type="date"] {
  min-height: 36px;
  max-width: 150px;
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.calc-table .numeric {
  color: #cbd5e1;
}

.remove-btn {
  min-height: 32px;
  padding: 6px 10px;
  background: transparent;
  border-color: transparent;
  color: #60a5fa;
}

.summary-cards {
  gap: 16px;
}

.mini-card {
  min-height: 82px;
  padding: 18px;
}

.mini-card strong {
  font-size: 1.08rem;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .insight-card {
    min-height: auto;
  }
}
