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

[hidden] { display: none !important; }

:root {
  /* Brand colors */
  --color-primary: #005f7a;
  --color-primary-container: #00b8d9;
  --color-surface: #f8f9ff;
  --color-surface-container-low: #eff3ff;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-high: #e1e8f9;
  --color-on-surface: #141c28;
  --color-secondary: #4a5568;
  --color-navy: #1e3a5f;
  --color-navy-muted: #2d4a72;
  --color-warning: #f59e0b;
  --color-outline-variant: #bbcabf;
  --bg: var(--color-surface);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: var(--color-surface-container-lowest);
  --line: rgba(187, 202, 191, 0.20);
  --text: var(--color-on-surface);
  --muted: var(--color-secondary);
  --teal-100: #e0f7fb;
  --teal-200: #9edff0;
  --teal-300: #00d4f0;
  --teal-500: var(--color-primary-container);
  --teal-600: var(--color-primary);
  --teal-700: #004a60;
  --accent: var(--color-primary-container);
  --slate-700: #334155;
  --slate-900: var(--color-on-surface);
  --shadow: 0 28px 48px rgba(20, 28, 40, 0.06);
  --shadow-soft: 0 18px 42px rgba(20, 28, 40, 0.05);

  /* Border radius */
  --radius-btn: 6px;
  --radius-xl: 16px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --button-radius: 12px;
  --pill: 9999px;
  --container: 1180px;

  /* Type scale */
  --text-2xs:  0.72rem;
  --text-xs:   0.75rem;
  --text-xs+:  0.82rem;
  --text-sm:   0.875rem;
  --text-sm-:  0.9rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-hero: clamp(2rem, 3.5vw, 3rem);

  /* Spacing scale */
  --space-sm: 1.5rem;
  --space-md: 2.5rem;
  --space-lg: 3.5rem;
  --space-xl: 5rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  background:
    radial-gradient(circle at top left, rgba(0,184,217,.18), transparent 32%),
    radial-gradient(circle at top right, rgba(225, 232, 249, 0.72), transparent 30%),
    linear-gradient(180deg, var(--color-surface) 0%, #f5fbf8 100%);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.03), transparent 48%),
    linear-gradient(225deg, rgba(15, 118, 110, 0.03), transparent 42%);
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.ambient--one {
  width: 360px;
  height: 360px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12), transparent 65%);
}

.ambient--two {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: 2rem;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.10), transparent 68%);
}

.page-main {
  padding-bottom: 4rem;
}

.inline-alert {
  margin: 1rem auto 0;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
  font-weight: 600;
}

.inline-alert--notice {
  color: var(--teal-700);
  background: rgba(204, 251, 241, 0.76);
}

.inline-alert--error {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.92);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(248, 249, 255, 0.82);
  border-bottom: 0;
}

/* ── Welcome / set-password banner ─────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a5f 100%);
  color: #fff;
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.welcome-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.welcome-banner__copy {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  font-size: var(--text-sm);
  line-height: 1.4;
}

.welcome-banner__copy .muted {
  color: rgba(255,255,255,.6);
  font-size: var(--text-xs);
}

.welcome-banner__form {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.welcome-banner__form .input--sm {
  padding: .35rem .65rem;
  font-size: var(--text-xs+);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  width: 180px;
}

.welcome-banner__form .input--sm::placeholder {
  color: rgba(255,255,255,.5);
}

.welcome-banner__close {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  font-size: 1rem;
  padding: .25rem .5rem;
  line-height: 1;
  margin-left: auto;
  transition: color .15s;
}

.welcome-banner__close:hover { color: #fff; }

.app-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #f8f9ff;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.header-inner,
.app-bar-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-bar-left,
.app-bar-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: var(--text-xs+);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  box-shadow: var(--shadow-soft);
}

.brand-mark--soft {
  width: 38px;
  height: 38px;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--slate-900);
  font-weight: 600;
  opacity: .78;
  transition: opacity .15s;
}

.site-nav a:hover {
  opacity: 1;
}

.button,
.toggle-button,
.tab-button,
.icon-button,
.sidebar-link,
.method-card,
.nav-toggle {
  border: 0;
  border-radius: var(--radius-btn);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 1.1rem;
  font-size: var(--text-sm);
  background: var(--color-surface-container-lowest);
  color: var(--slate-900);
  font-weight: 700;
  box-shadow: none;
  border: 1px solid rgba(187, 202, 191, 0.20);
  cursor: pointer;
}

.button:hover,
.toggle-button:hover,
.tab-button:hover,
.method-card:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.sidebar-link:hover {
  color: var(--slate-900);
  background: rgba(148, 163, 184, .07);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-container) 100%);
  box-shadow: 0 4px 14px rgba(0,95,122,.28);
}

.button--primary:hover {
  box-shadow: 0 6px 20px rgba(0,95,122,.38);
  filter: brightness(1.04);
}

.button--primary:visited,
.button--primary:hover,
.button--primary:active {
  color: #ffffff;
}

.site-nav a.button--primary,
.site-nav a.button--primary:visited,
.site-nav a.button--primary:hover,
.site-nav a.button--primary:active {
  color: #ffffff;
}

.button--soft {
  background: rgba(255, 255, 255, 0.72);
  color: var(--slate-900);
}

.button--danger {
  background: rgba(254, 242, 242, 0.9);
  border-color: rgba(248, 113, 113, 0.28);
  color: #b42318;
}

.button--danger:hover,
.button--danger:active,
.button--danger:visited {
  color: #b42318;
}

.button--badge {
  gap: .45rem;
}

.button--download-pdf {
  min-height: 46px;
  padding-inline: 1.25rem;
  border: 1px solid rgba(0, 128, 96, 0.18);
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.18);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: var(--text-sm-);
  color: var(--slate-500);
  text-decoration: none;
  padding: .25rem 0;
  transition: color .15s;
}
.back-link:hover {
  color: var(--teal-600);
}

.button--small {
  min-height: 28px;
  padding: .28rem .72rem;
  font-size: var(--text-2xs);
}

.button--block {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 1.2rem;
  font-size: var(--text-sm);
}

.button--lg {
  min-height: 48px;
  padding: .75rem 1.5rem;
  font-size: var(--text-base);
}

.nav-toggle,
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--slate-800);
}

.nav-toggle--app {
  display: none;
}

.hero {
  padding: var(--space-lg) 0 var(--space-md);
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1.2fr .95fr;
  gap: 1.5rem;
  align-items: start;
}

.hero-copy h1 {
  margin: .5rem 0 1rem;
  font-size: var(--text-hero);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.workspace-head h1,
.auth-copy h1 {
  margin: .25rem 0 .5rem;
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead,
.section-head p,
.hero-panel p,
.auth-copy p,
.auth-panel p,
.card p,
.workspace-head p,
.fineprint,
.metric-note,
.summary-line span,
.trust-chip span,
.feature-card p,
.sidebar-card p,
.pricing-card p,
.stat-card span,
.mini-card span,
.evidence-card p,
.info-card span {
  color: var(--muted);
}

.hero-copy .lead {
  max-width: 60ch;
  font-size: 1.06rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--teal-700);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.hero-actions--right {
  justify-content: flex-end;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.75rem;
}

.trust-chip,
.stat-card,
.info-card,
.mini-card,
.evidence-card,
.summary-chip,
.credit-chip,
.sidebar-card,
.metric-card,
.pricing-card,
.quote-card,
.method-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.trust-chip {
  padding: 1rem 1rem .95rem;
  border-radius: var(--radius-md);
}

.trust-chip strong,
.feature-card h3,
.pricing-card h2,
.auth-panel h2,
.auth-copy h1,
.card h2,
.workspace-head h1,
.metric-value,
.summary-line strong,
.mini-card strong,
.workspace-head strong {
  color: var(--slate-900);
}

.hero-panel,
.card,
.auth-panel,
.auth-copy {
  border-radius: var(--radius-xl);
  padding: 1.45rem;
}

.pricing-card {
  border-radius: var(--radius-xl);
}

.card--hero {
  background:
    radial-gradient(circle at top right, rgba(204, 251, 241, 0.9), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78));
}

.panel-head {
  margin-bottom: 1rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

/* Buttons inside stacks should not stretch unless explicitly block */
.stack > .button:not(.button--block),
.stack > a.button:not(.button--block) {
  justify-self: start;
}

.form-grid {
  gap: .85rem;
}

.field {
  display: grid;
  gap: .45rem;
}

.field span {
  font-size: var(--text-sm-);
  font-weight: 600;
  color: var(--slate-700);
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  font-weight: 500;
}

.field-help {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.14);
  color: var(--teal-700);
  font-size: var(--text-xs);
  font-weight: 800;
  cursor: help;
}

.field-help__bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .65rem);
  transform: translateX(-50%);
  width: min(280px, calc(100vw - 3rem));
  padding: .8rem .9rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  z-index: 3;
}

/* Evita que a regra global ".field span" escureça o texto do tooltip */
.field .field-help__bubble {
  color: #f8fafc;
}

.field-help__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 7px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
}

.field-help:hover .field-help__bubble,
.field-help:focus .field-help__bubble,
.field-help:focus-within .field-help__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.choice-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card__content {
  min-height: 100%;
  display: grid;
  gap: .28rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.choice-card__title {
  color: var(--slate-900);
  font-size: var(--text-sm-);
  font-weight: 500;
}

.choice-card__meta {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.choice-card__content small {
  color: var(--muted);
  font-size: var(--text-xs+);
  line-height: 1.45;
}

.choice-card input:checked + .choice-card__content {
  border-color: rgba(13, 148, 136, 0.45);
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.58), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.12);
}

.choice-card:hover .choice-card__content {
  transform: translateY(-1px);
}

.input,
.textarea,
select.input {
  width: 100%;
  min-height: 40px;
  padding: .55rem .85rem;
  font-size: 13.5px;
  color: var(--slate-900);
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input:focus,
.textarea:focus,
select.input:focus {
  border-color: #005f7a;
  box-shadow: 0 0 0 3px rgba(0,184,217,.12);
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 6.2rem;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: .9rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--teal-700);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: .25rem;
  cursor: pointer;
}

.password-field__toggle:hover {
  color: var(--teal-600);
}

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

.fineprint {
  margin: 0;
  font-size: var(--text-sm-);
}

.auth-admin-link {
  margin-top: .65rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-admin-link a {
  color: var(--teal-700);
  font-weight: 700;
}

.section {
  padding: 2rem 0;
}

.section--soft {
  padding-block: var(--space-md) var(--space-lg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head--tight {
  align-items: center;
  margin-bottom: 0;
}

.section-head h2 {
  margin: .4rem 0 0;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
}

.feature-grid,
.metric-grid,
.pricing-grid,
.auth-points,
.evidence-grid,
.info-grid,
.stat-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card {
  min-height: 220px;
}

.feature-card,
.stat-card,
.info-card,
.mini-card,
.evidence-card {
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--teal-700);
  background: var(--teal-100);
  font-weight: 800;
}

.split-grid--dashboard,
.split-grid--billing,
.split-grid--checkout,
.split-grid--mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-grid--cases {
  grid-template-columns: 1.08fr .92fr;
}

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

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

.stat-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: .35rem;
}

.stat-card strong,
.metric-value {
  font-size: 1.55rem;
  letter-spacing: -0.05em;
}

.metric-note {
  display: block;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.number-list,
.check-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: .6rem;
  color: var(--slate-700);
}

/* ── Login / Auth pages (lp-*) ─────────────────────────────── */
.lp-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 40px 24px;
}
.lp-wrap { width: 100%; max-width: 380px; }

.lp-brand {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-bottom: 28px; border-bottom: 1px solid #f1f5f9;
  margin-bottom: 28px;
}
.lp-brand-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #005f7a 0%, #00b8d9 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,95,122,.22);
  flex-shrink: 0;
}
.lp-brand-name { font-size: 20px; font-weight: 800; color: #1e3a5f; line-height: 1; }
.lp-brand-powered { font-size: 11px; color: #cbd5e1; }

.lp-card-head { margin-bottom: 24px; text-align: center; }
.lp-card-title { font-size: 20px; font-weight: 700; color: #1e3a5f; margin-bottom: 4px; }
.lp-card-sub { font-size: 13.5px; color: #94a3b8; line-height: 1.5; }

.lp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lp-label { font-size: 12px; font-weight: 600; color: #475569; }
.lp-input {
  width: 100%; padding: 10px 13px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 13.5px; font-family: inherit; color: #1e293b; background: #fafcff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.lp-input:focus { border-color: #005f7a; box-shadow: 0 0 0 3px rgba(0,184,217,.12); }

.lp-pw { position: relative; }
.lp-pw .lp-input { padding-right: 76px; }
.lp-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 600; color: #005f7a;
  background: none; border: none; cursor: pointer; font-family: inherit;
}

.lp-forgot { text-align: right; margin-top: -6px; margin-bottom: 20px; }
.lp-forgot a { font-size: 12px; color: #005f7a; text-decoration: none; }
.lp-forgot a:hover { text-decoration: underline; }

.lp-btn {
  width: 100%; padding: 11px; background: #005f7a; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s;
  margin-bottom: 16px;
}
.lp-btn:hover { background: #004a60; }

.lp-footer { text-align: center; font-size: 12.5px; color: #94a3b8; }
.lp-footer a { color: #005f7a; text-decoration: none; }
.lp-footer a:hover { text-decoration: underline; }

.lp-error {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  padding: 10px 13px; font-size: 13px; color: #dc2626; margin-bottom: 16px;
}
.lp-success {
  background: #f0fbff; border: 1px solid #b2e8f4; border-radius: 8px;
  padding: 10px 13px; font-size: 13px; color: #005f7a; margin-bottom: 16px;
}
.lp-bottom {
  text-align: center; font-size: 11px; color: #e2e8f0;
  margin-top: 32px;
}
/* ── end lp-* ───────────────────────────────────────────────── */

/* ── Login 2 colunas ────────────────────────────────────────── */
body.theme-auth { background: #fff; }
body.theme-auth .page-main { padding: 0; }

.lp2-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.lp2-shell > * { min-height: 100vh; }

.lp2-left {
  background: linear-gradient(145deg, #004a60 0%, #005f7a 50%, #0093b0 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px;
}
.lp2-left-inner {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 40px;
}

.lp2-brand {
  display: flex; align-items: center; gap: 14px;
}
.lp2-brand-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp2-brand-name { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.1; }
.lp2-brand-tagline { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }

.lp2-hero-title {
  font-size: 26px; font-weight: 800; color: #fff; line-height: 1.3;
  margin: 0 0 12px;
}
.lp2-hero-sub {
  font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; margin: 0;
}

.lp2-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.lp2-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(255,255,255,.8); line-height: 1.4;
}
.lp2-features li svg { color: #00d4f0; flex-shrink: 0; }

.lp2-left-footer {
  font-size: 11px; color: rgba(255,255,255,.25); margin-top: auto;
}

.lp2-right {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px;
}
.lp2-form-wrap { width: 100%; max-width: 360px; }
.lp2-form-head { margin-bottom: 28px; }
.lp2-verify-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(0, 95, 122, .08); color: #005f7a;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.lp2-form-title { font-size: 22px; font-weight: 700; color: #1e3a5f; margin-bottom: 6px; }
.lp2-form-sub { font-size: 13.5px; color: #94a3b8; line-height: 1.5; }

@media (max-width: 768px) {
  .lp2-shell { grid-template-columns: 1fr; }
  .lp2-left { display: none; }
}
/* ── Forgot password variante ───────────────────────────────── */
.lp2-left--fp {
  background: linear-gradient(145deg, #0d1f2d 0%, #1e3a5f 60%, #004a60 100%);
}


.lp2-fp-steps {
  display: flex; flex-direction: column; gap: 16px;
}
.lp2-fp-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.4;
}
.lp2-fp-step-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,184,217,.2); border: 1px solid rgba(0,184,217,.4);
  color: #00d4f0; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* ── end lp2-* ──────────────────────────────────────────────── */

.auth-shell {
  padding: 3rem 0 4rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.4rem;
}

.auth-points,
.mini-metrics {
  margin-top: 1.4rem;
}

.point,
.mini-metrics > div {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.point,
.mini-metrics > div {
  display: grid;
  gap: .25rem;
}

.point strong,
.mini-metrics strong {
  color: var(--slate-900);
}

.mini-metrics {
  display: grid;
  gap: .8rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-row--two,
.form-row--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--slate-700);
  font-weight: 600;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-600);
}

.workspace-head {
  width: min(100% - 1.2rem, var(--container));
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
}

.workspace-head .hero-actions {
  align-items: center;
  flex: 0 0 auto;
}

.workspace-head .button {
  align-self: flex-start;
  min-height: 42px;
}

.workspace-head h1 {
  margin: .25rem 0 .35rem;
  font-size: var(--text-3xl);
}

.workspace-head h1.case-heading-title {
  max-width: min(100%, 760px);
  font-size: 1.5rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.case-detail-head {
  width: min(100% - 1.2rem, 980px);
  margin-bottom: 0;
  padding-top: .35rem;
}

.case-detail-head .hero-actions {
  margin-top: .35rem;
}

.case-context-panel {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  gap: .75rem;
  margin-top: -0.5rem;
}

.case-context-panel__item {
  min-width: 0;
  padding: .85rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.case-context-panel__item span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}

.case-context-panel__item strong {
  color: var(--slate-900);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.case-detail-context {
  width: min(100% - 1.2rem, 980px);
  margin-right: auto;
  margin-left: auto;
}

.case-context-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  gap: .75rem;
  align-items: start;
}

.case-context-input {
  min-height: 46px;
}

.case-context-textarea {
  min-height: 74px;
  resize: vertical;
}

.case-context-save-status {
  grid-column: 1 / -1;
  min-height: 1rem;
}

@media (max-width: 700px) {
  .case-context-panel,
  .case-context-editor {
    grid-template-columns: 1fr;
  }
}

.workspace-plan-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: .2rem;
  padding: 0 .7rem;
  border-radius: var(--pill);
  background: rgba(204, 251, 241, 0.72);
  color: var(--teal-700);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.workspace-plan-tag--sidebar {
  margin: 0 0 .35rem .35rem;
  width: fit-content;
}

.app-shell {
  width: min(100% - 1.2rem, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  padding: 0 0 3rem;
  align-items: start;
}

.app-shell:has(.dashboard-table-only) {
  width: min(100% - 1rem, 1420px);
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
}

.app-sidebar {
  position: sticky;
  top: 52px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: calc(100vh - 96px);
  border-right: 1px solid rgba(148, 163, 184, .1);
  padding-right: 0;
}

.sidebar-nav {
  display: grid;
  gap: .15rem;
}

.sidebar-link--billing {
  margin-top: 0;
}

.sidebar-divider {
  height: 1px;
  background: rgba(148, 163, 184, .1);
  margin: .2rem .75rem;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border, rgba(0,0,0,.07));
  display: grid;
  gap: .55rem;
}

.sidebar-footer__label {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .1rem .25rem;
}

.sidebar-link--secondary {
  opacity: .85;
  font-size: var(--text-sm-);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  justify-content: flex-start;
  min-height: 36px;
  padding: .45rem .75rem;
  color: var(--slate-700);
  background: transparent;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: .65;
  transition: opacity .15s;
}

.sidebar-link:hover svg {
  opacity: 1;
}

.sidebar-link--new-case {
  color: var(--teal-700);
  font-weight: 700;
}

.sidebar-link--new-case svg {
  opacity: .8;
}

.sidebar-link.is-active {
  color: var(--teal-700);
  background: rgba(0,184,217,.08);
  border-left-color: var(--teal-500);
  border-color: transparent;
  border-left-color: var(--teal-500);
  font-weight: 700;
}

.sidebar-link.is-active svg {
  opacity: 1;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: var(--pill);
  background: var(--teal-600);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.sidebar-card {
  padding: 1.25rem;
}

.app-workspace {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding-left: 1.25rem;
}

.theme-admin .page-main {
  padding-bottom: 2rem;
}

.admin-bar .brand-lockup {
  gap: .75rem;
}

.admin-brand-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 .75rem;
  border-radius: var(--pill);
  background: rgba(204, 251, 241, 0.72);
  color: var(--teal-700);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-shell {
  width: min(100% - 1.2rem, var(--container));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding: 1.2rem 0 3rem;
}

.admin-head {
  width: 100%;
  margin-bottom: .25rem;
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

.admin-grid--stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-card {
  overflow: hidden;
}

.admin-muted {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: var(--text-xs+);
  font-weight: 500;
}

.admin-json {
  margin-top: .85rem;
}

.admin-json summary {
  cursor: pointer;
  color: var(--teal-700);
  font-weight: 800;
}

.admin-json pre {
  max-height: 520px;
  overflow: auto;
  margin: .8rem 0 0;
  padding: 1rem;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: var(--text-xs);
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: .85rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .admin-grid--stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-inline-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-grid--stats {
    grid-template-columns: 1fr;
  }

  .admin-head {
    display: grid;
  }
}

.dashboard-table-only,
.dashboard-empty-state {
  width: 100%;
}

.dashboard-table-card {
  gap: 1rem;
}

.dashboard-table-head {
  display: block;
}

.dashboard-table-head__copy {
  display: grid;
  gap: .65rem;
  max-width: min(100%, 780px);
}

.dashboard-table-title {
  margin: 0;
  color: var(--slate-900);
  font-size: 1.15rem;
  line-height: 1.25;
}

.dashboard-filter {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.dashboard-filter__field {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: min(100%, 300px);
}

.dashboard-filter__input {
  min-height: 44px;
  width: 190px;
}

.dashboard-filter__submit {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.dashboard-table-card {
  padding: .9rem;
  overflow: hidden;
}

.dashboard-table-card .table-wrap {
  margin: 0;
  overflow-x: visible;
}

.dashboard-table-card .data-table {
  table-layout: fixed;
}

.dashboard-table-card .data-table th:nth-child(1),
.dashboard-table-card .data-table td:nth-child(1) {
  width: 15%;
}

.dashboard-table-card .data-table th:nth-child(2),
.dashboard-table-card .data-table td:nth-child(2),
.dashboard-table-card .data-table th:nth-child(3),
.dashboard-table-card .data-table td:nth-child(3) {
  width: 14%;
}

.dashboard-table-card .data-table th:nth-child(4),
.dashboard-table-card .data-table td:nth-child(4) {
  width: 40%;
}

.dashboard-table-card .data-table th:nth-child(5),
.dashboard-table-card .data-table td:nth-child(5) {
  width: 9%;
}

.dashboard-table-card .data-table th:nth-child(6),
.dashboard-table-card .data-table td:nth-child(6) {
  width: 8%;
}

.dashboard-table-card .data-table th,
.dashboard-table-card .data-table td {
  padding: .85rem .45rem;
  vertical-align: middle;
}

.dashboard-flight-cell {
  display: grid;
  gap: .22rem;
  min-width: 0;
}

.dashboard-flight-link {
  color: var(--teal-700);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.dashboard-flight-link:hover,
.dashboard-flight-link:focus-visible {
  color: var(--teal-600);
  text-decoration: underline;
  text-decoration-color: rgba(13, 148, 136, 0.36);
  text-underline-offset: 0.16em;
}

.dashboard-flight-meta {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
}

.dashboard-flight-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: .3rem .55rem;
  border-radius: var(--button-radius);
  background: rgba(204, 251, 241, 0.68);
  border: 1px solid rgba(13, 148, 136, 0.18);
  color: var(--teal-700);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-flight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  margin-top: .08rem;
}

.dashboard-flight-actions form {
  margin: 0;
}

.dashboard-flight-action--button {
  cursor: pointer;
}

.dashboard-flight-action:hover,
.dashboard-flight-action:focus-visible {
  background: rgba(153, 246, 228, 0.76);
  border-color: rgba(13, 148, 136, 0.28);
  text-decoration: none;
}

.dashboard-delete-form {
  margin: 0;
}

.dashboard-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  padding: .45rem .55rem;
  border-radius: var(--button-radius);
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(254, 242, 242, 0.9);
  color: #b42318;
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
}

.dashboard-delete-button:hover,
.dashboard-delete-button:focus-visible {
  background: rgba(254, 226, 226, 0.92);
  border-color: rgba(248, 113, 113, 0.38);
}

.dashboard-autosave-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .45rem;
  align-items: center;
}

.dashboard-description-input {
  min-width: 0;
  width: 100%;
  min-height: 46px;
}

.dashboard-summary-cell {
  color: var(--slate-700);
  font-size: .84rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
  min-width: 0;
}

.dashboard-summary-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .7rem;
}

.dashboard-summary-tag {
  --summary-accent: var(--teal-500);
  --summary-marker-bg: rgba(204, 251, 241, 0.58);
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  min-height: 0;
  padding: .48rem .55rem .48rem .65rem;
  border: 0;
  border-left: 2px solid var(--summary-accent);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--slate-800);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
  cursor: default;
}

.dashboard-summary-tag::before {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-top: .26rem;
  border-radius: var(--pill);
  background: var(--summary-accent);
  box-shadow: 0 0 0 4px var(--summary-marker-bg);
  flex: 0 0 auto;
}

.dashboard-summary-tag--good {
  --summary-accent: #10b981;
  --summary-marker-bg: rgba(209, 250, 229, 0.78);
}

.dashboard-summary-tag--bad {
  --summary-accent: #ef4444;
  --summary-marker-bg: rgba(254, 226, 226, 0.78);
}

.dashboard-summary-tag--warn {
  --summary-accent: #f59e0b;
  --summary-marker-bg: rgba(254, 243, 199, 0.82);
}

.dashboard-summary-tag--soft {
  --summary-accent: #14b8a6;
  --summary-marker-bg: rgba(204, 251, 241, 0.7);
}

.dashboard-pdf-link {
  min-height: 36px;
  padding: .55rem .85rem;
  white-space: nowrap;
}

.dashboard-pdf-unavailable {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-pagination__summary {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.dashboard-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.dashboard-empty-inline {
  padding: .6rem 0 .1rem;
  display: grid;
  gap: .8rem;
}

.dashboard-empty-inline h3 {
  margin: 0;
  color: var(--slate-900);
}

.dashboard-empty-inline p {
  margin: 0;
  color: var(--muted);
}

.dashboard-empty-inline__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.dashboard-save-status {
  min-height: 1em;
  color: var(--muted);
  font-size: var(--text-2xs);
}

.dashboard-save-status[data-state="saved"] {
  color: var(--teal-700);
}

.dashboard-save-status[data-state="error"] {
  color: #b91c1c;
}

@media (max-width: 700px) {
  .dashboard-table-head,
  .dashboard-filter,
  .dashboard-pagination {
    align-items: stretch;
  }

  .dashboard-filter,
  .dashboard-pagination__controls {
    width: 100%;
  }

  .dashboard-filter {
    flex-wrap: wrap;
  }

  .dashboard-filter__field {
    flex: 1 1 240px;
    min-width: 0;
  }

  .dashboard-filter__input {
    width: 100%;
    min-width: 0;
  }

  .dashboard-pagination__controls .button {
    width: 100%;
  }

  .dashboard-filter__submit {
    flex: 0 0 44px;
  }
}

.notice {
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 700;
}

.notice--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.notice--error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.support-page {
  width: min(100% - 1.2rem, var(--container));
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.support-head {
  width: 100%;
  margin: 0;
  padding-top: .35rem;
}

.support-head h1 {
  margin-bottom: .45rem;
}

.support-head p {
  max-width: 64ch;
}

.support-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(320px, 380px) minmax(420px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.support-layout--compact {
  grid-template-columns: minmax(320px, 380px) minmax(420px, 1fr);
}

.support-layout--admin {
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.2fr);
}

.support-panel {
  min-width: 0;
  padding: 1.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.support-panel--form,
.support-panel--thread {
  display: grid;
  gap: 1rem;
}

.support-panel .section-head p {
  color: var(--muted);
  max-width: 52ch;
}

.support-form,
.support-reply-form {
  display: grid;
  gap: .9rem;
}

.support-form .field,
.support-reply-form .field {
  gap: .45rem;
}

.support-form .field span,
.support-reply-form .field span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--slate-700);
}

.support-form .input,
.support-reply-form .input {
  background: #fff;
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.support-textarea {
  min-height: 152px;
  resize: vertical;
  line-height: 1.55;
}

.support-submit-button {
  min-height: 44px;
  width: fit-content;
  padding: .7rem 1.15rem;
  border-radius: 10px;
}

.support-ticket-list {
  display: grid;
  gap: .75rem;
}

.support-ticket {
  position: relative;
  display: grid;
  gap: .38rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 8px;
  background: #fff;
  color: var(--slate-700);
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.support-ticket:hover,
.support-ticket:focus-visible {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.support-ticket.is-active {
  border-color: rgba(0, 168, 120, 0.42);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: inset 3px 0 0 #00A878;
}

.support-ticket__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
}

.support-ticket__top strong {
  min-width: 0;
  color: var(--slate-900);
  font-size: .96rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.support-ticket__meta,
.support-ticket__preview {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.45;
}

.support-ticket__preview {
  overflow-wrap: anywhere;
}

.support-ticket__badge {
  position: absolute;
  top: .85rem;
  right: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: var(--pill);
  background: #00A878;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.support-empty-state-card {
  display: grid;
  gap: .4rem;
  align-content: center;
  min-height: 220px;
  padding: 1.1rem;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.96));
  color: var(--muted);
  text-align: left;
}

.support-empty-state-card h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 1rem;
}

.support-empty-state-card p {
  margin: 0;
  max-width: 40ch;
  line-height: 1.5;
}

.support-empty-state-card__icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 168, 120, 0.08);
  color: #007F5F;
  font-weight: 800;
}

.support-thread {
  display: grid;
  gap: .8rem;
  max-height: 560px;
  overflow: auto;
  padding-right: .2rem;
}

.support-message {
  width: min(88%, 680px);
  padding: .9rem 1rem;
  border-radius: 8px;
  background: #F8FAFC;
  color: var(--slate-700);
  border: 1px solid rgba(226, 232, 240, 0.78);
}

.support-message--admin {
  margin-left: auto;
  background: rgba(236, 253, 245, 0.98);
  border-color: rgba(16, 185, 129, 0.22);
}

.support-message--user {
  margin-right: auto;
}

.support-message__meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .38rem;
  color: var(--muted);
  font-size: .78rem;
}

.support-message__meta strong {
  color: var(--slate-900);
}

.support-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.support-empty-thread {
  display: grid;
  gap: .45rem;
  min-height: 260px;
  align-content: center;
  justify-items: start;
  color: var(--muted);
}

.support-empty-thread h2 {
  margin: 0;
  color: var(--slate-900);
}

.support-empty-thread p {
  max-width: 38ch;
  margin: 0;
  line-height: 1.5;
}

.report-status--soft {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

@media (max-width: 1120px) {
  .support-layout,
  .support-layout--compact,
  .support-layout--admin {
    grid-template-columns: 1fr;
  }
}

.dashboard-save-status[data-state="error"] {
  color: #b42318;
}

.credit-chip,
.summary-chip {
  padding: .75rem 1rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.credit-chip {
  gap: .5rem;
}

.credit-chip__label {
  color: var(--muted);
  font-size: var(--text-sm);
}

.avatar-chip {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 212, 191, .18), rgba(13, 148, 136, .18));
  border: 1px solid rgba(20, 184, 166, 0.22);
  color: var(--teal-700);
  font-weight: 800;
  cursor: pointer;
}

.avatar-chip--button {
  appearance: none;
}

.avatar-chip__image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-menu {
  position: relative;
}

.profile-menu__panel {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  width: 280px;
  padding: .6rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  z-index: 60;
}

.profile-menu__identity {
  display: grid;
  gap: .15rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-menu__identity strong {
  color: var(--slate-900);
  font-size: var(--text-sm-);
}

.profile-menu__identity span {
  color: var(--muted);
  font-size: var(--text-sm);
  word-break: break-word;
}

.profile-menu__plan-tag {
  justify-self: start;
  margin-top: .35rem;
}

.profile-menu__credits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .45rem;
  padding: .75rem 1rem;
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.72);
  border: 1px solid rgba(20, 184, 166, 0.18);
}

.profile-menu__credits span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.profile-menu__credits strong {
  color: var(--teal-800);
  font-size: .92rem;
  white-space: nowrap;
}

.profile-menu__links {
  display: grid;
  gap: .25rem;
  margin-top: .45rem;
}

.profile-menu__links form {
  margin: 0;
}

.profile-menu__link {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .8rem .9rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--slate-700);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.profile-menu__link:hover {
  background: rgba(241, 245, 249, 0.95);
}

.profile-menu__link--danger {
  color: #b91c1c;
}

.profile-layout {
  display: grid;
  gap: 1rem;
}

.profile-form {
  gap: 1rem;
}
.profile-form .input,
.profile-form .textarea,
.profile-form select.input {
  font-size: 13.5px;
  min-height: 38px;
  padding: .55rem .85rem;
}
.profile-form .field > span {
  font-size: 12px;
}

.profile-identity-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.profile-photo-block {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 13px;
}
.profile-photo-block strong { font-size: 13.5px; }
.profile-photo-block .muted { font-size: 12px; }
.profile-form > .button { font-size: 13.5px; padding: .55rem 1.25rem; }

.profile-photo-frame {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45, 212, 191, .16), rgba(13, 148, 136, .22));
  border: 1px solid rgba(20, 184, 166, 0.22);
  color: var(--teal-700);
  font-size: 2rem;
  font-weight: 800;
}

.profile-photo-frame__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-upload-button {
  position: relative;
  width: fit-content;
  overflow: hidden;
}

.profile-identity-fields {
  display: grid;
  gap: 1rem;
}

.profile-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.profile-tab-panel {
  padding: 28px 28px 40px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

.profile-plan-section {
  display: grid;
  gap: 1.5rem;
  max-width: 520px;
}

.profile-plan-block {
  display: grid;
  gap: .5rem;
}

.profile-plan-block h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--slate-900);
  margin: 0;
}

.profile-plan-block--danger {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

@media (min-width: 701px) {
  .profile-layout form.stack > .button,
  .profile-actions .button {
    width: fit-content;
    min-width: 180px;
    justify-self: start;
  }
}

/* ── Profile page (pf-*) ───────────────────────────────────── */
.pf-page {
  display: flex; flex-direction: column;
}
.pf-topbar {
  background: #fff; border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.pf-topbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 28px 28px 20px;
}
.pf-title {
  font-size: 24px; font-weight: 800; color: #1e3a5f; line-height: 1.2;
  margin: 0 0 0;
}
.pf-subtitle { font-size: 13.5px; color: #64748b; margin: 6px 0 0; }
.pf-tabs-outer {
  background: #fff; border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.pf-tabs {
  display: flex; gap: 0; padding: 0 28px;
  max-width: 1200px; margin: 0 auto;
}
.pf-tab {
  padding: 11px 16px; font-size: 13.5px; font-weight: 500;
  color: #64748b; background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: color .12s, border-color .12s;
  margin-bottom: -1px;
}
.pf-tab:hover { color: #334155; }
.pf-tab.is-active { color: #005f7a; border-bottom-color: #005f7a; font-weight: 600; }

.pf-panel { display: none; padding: 28px 28px 40px; max-width: 1200px; margin: 0 auto; box-sizing: border-box; width: 100%; }
.pf-panel.is-active { display: block; }

.pf-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }

.pf-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 16px;
}
.pf-card--danger { border-color: #fee2e2; }
.pf-card-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8;
}
.pf-card-desc { font-size: 13.5px; color: #64748b; margin: 0; line-height: 1.5; }

.pf-photo-row { display: flex; align-items: center; gap: 18px; }
.pf-photo-frame {
  width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #c7f5e3, #9edff0);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #005f7a; overflow: hidden;
}
.pf-photo-frame__image { width: 100%; height: 100%; object-fit: cover; }
.pf-photo-meta { display: flex; flex-direction: column; gap: 8px; }
.pf-photo-hint { font-size: 12px; color: #94a3b8; margin: 0; }
.pf-photo-actions { display: flex; align-items: center; gap: 10px; }
.pf-remove-check {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: #94a3b8; cursor: pointer;
}
.pf-remove-check:hover { color: #dc2626; }

.pf-fields { display: flex; flex-direction: column; gap: 14px; }
.pf-fields--narrow { max-width: 360px; }

.pf-password-row { position: relative; display: flex; }
.pf-password-row .cn-input { flex: 1; padding-right: 70px; }
.pf-pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 12px; font-weight: 600;
  color: #005f7a; cursor: pointer; font-family: inherit;
  padding: 2px 4px;
}
.pf-pw-toggle:hover { color: #004a60; }

.pf-footer { display: flex; gap: 10px; }

.pf-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 22px; background: #005f7a; color: #fff;
  border: none; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: background .15s;
}
.pf-btn-primary:hover { background: #004a60; }
.pf-btn-soft {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; background: #f8fafc; color: #334155;
  border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pf-btn-soft:hover { background: #f1f5f9; border-color: #cbd5e1; }

.pf-plan-grid { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.pf-plan-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── end pf-* ───────────────────────────────────────────────── */


.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--slate-700);
  font-size: var(--text-sm-);
}

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

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

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

.metric-card {
  padding: 1.2rem 1.25rem;
}

.metric-label {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.metric-value {
  display: block;
  margin: .45rem 0 .2rem;
}

.progress {
  height: 10px;
  border-radius: var(--pill);
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.data-table th {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  background: rgba(248, 250, 252, 0.7);
}

.data-table tbody tr {
  transition: background .15s;
}

.data-table tbody tr:hover td {
  background: rgba(0,95,122,.035);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 .65rem;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  font-weight: 700;
}

.status--good {
  color: var(--teal-700);
  background: var(--teal-100);
}

.status--warn {
  color: #92400e;
  background: #fef3c7;
}

.status--soft {
  color: var(--slate-700);
  background: #e2e8f0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.tab-button {
  min-height: 38px;
  padding: 0 .9rem;
  font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--slate-700);
  font-weight: 700;
  cursor: pointer;
}

.tab-button.is-active,
.toggle-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.20);
}

.tab-panel {
  display: none;
}

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

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

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

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

.info-card,
.mini-card,
.evidence-card {
  min-height: 118px;
}

.quote-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
}

.quote-card p {
  margin: 0;
  color: var(--slate-700);
  font-style: italic;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: .35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12);
}

.timeline-item p {
  margin: .2rem 0 0;
  color: var(--muted);
}

.toggle-group {
  display: inline-flex;
  padding: .25rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.toggle-button {
  min-height: 42px;
  padding: 0 1rem;
  background: transparent;
  color: var(--slate-700);
  font-weight: 700;
  cursor: pointer;
}

.pricing-grid {
  gap: 1rem;
  row-gap: .9rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  padding: 1.35rem 1.35rem 1.5rem;
}

.pricing-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}

.pricing-card .check-list { align-self: start; margin-bottom: .35rem; gap: .4rem; align-content: start; }

.pricing-card .check-list li {
  font-size: var(--text-sm);
}

.pricing-card--featured {
  background:
    radial-gradient(circle at top right, rgba(204, 251, 241, 0.9), transparent 28%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.22);
  border: 1.5px solid rgba(0,184,217,.3);
}

.pricing-card--enterprise {
  background:
    radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.04), transparent 40%),
    rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--slate-200);
}

.pricing-enterprise-cta {
  width: 100%;
  text-align: center;
}

/* Pricing price block */
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin: .1rem 0 .2rem;
}

.pricing-amount {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--slate-900);
  line-height: 1;
}

.pricing-amount--contact {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-600);
}

.pricing-period {
  font-size: var(--text-xs+);
  color: var(--muted);
  font-weight: 500;
}

.button.is-disabled {
  pointer-events: none;
  opacity: .72;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.method-card {
  padding: .95rem;
  border-radius: 18px;
  text-align: center;
  color: var(--slate-700);
  cursor: pointer;
}

.method-card.is-active {
  color: var(--teal-700);
  background: var(--teal-100);
  border-color: rgba(45, 212, 191, 0.34);
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.summary-line:last-of-type {
  border-bottom: 0;
}

.flight-rows {
  display: grid;
  gap: .85rem;
}

.flight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: .8rem;
  align-items: end;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.icon-button--danger {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.9);
}

.card--inner {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, 0.76);
}

.split-grid--landing-clean,
.split-grid--dashboard-clean,
.split-grid--billing-clean {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-faq-list {
  max-width: none;
  margin: 0;
}

.billing-faq-item {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.72);
  box-shadow: none;
}

.billing-faq-inline {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, .1);
}

.billing-faq-inline .billing-faq-item {
  border-radius: var(--radius-btn);
}

.billing-credits-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 280px);
  gap: 2rem;
  align-items: start;
}

.billing-section-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 .25rem;
}

/* Credits purchase card */
.credits-purchase-card {
  display: grid;
  gap: 1.25rem;
}

.credits-purchase-header {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.credits-purchase-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, rgba(0,184,217,.12), rgba(0,95,122,.08));
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Quick select buttons */
.credits-quick-select {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.credits-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .5rem .85rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(148,163,184,.2);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  min-width: 72px;
}

.credits-quick-btn:hover {
  border-color: var(--teal-400);
  background: rgba(0,184,217,.04);
}

.credits-quick-btn.is-selected {
  border-color: var(--teal-500);
  background: rgba(0,184,217,.07);
}

.credits-quick-btn__amount {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-800);
}

.credits-quick-btn__credits {
  font-size: var(--text-xs);
  color: var(--slate-500);
}

.credits-quick-btn.is-selected .credits-quick-btn__amount { color: var(--teal-700); }
.credits-quick-btn.is-selected .credits-quick-btn__credits { color: var(--teal-600); }

/* Credits form */
.credits-subtitle {
  font-size: var(--text-sm);
  color: var(--slate-500);
  margin: 0 0 .25rem;
}

.credits-form {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

/* Campo "Outro" — oculto por padrão */
.credits-custom-row { display: grid; gap: .4rem; }
.credits-custom-row.is-hidden { display: none; }

.credits-custom-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.credits-custom-input-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.credits-custom-input {
  max-width: 140px;
  font-size: var(--text-base) !important;
}

.credits-result {
  font-size: var(--text-sm);
  color: var(--slate-500);
  white-space: nowrap;
}

.credits-result strong {
  color: var(--teal-700);
  font-weight: 700;
}

.credits-quick-btn--other .credits-quick-btn__amount { color: var(--slate-500); }
.credits-quick-btn--other .credits-quick-btn__credits { color: var(--slate-400); }
.credits-quick-btn--other.is-selected { border-color: var(--slate-300); background: rgba(148,163,184,.07); }
.credits-quick-btn--other.is-selected .credits-quick-btn__amount { color: var(--slate-700); }

/* Credits info block */
.credits-info-block {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, .8);
  border: 1px solid rgba(148,163,184,.12);
  margin-top: 1.5rem;
  max-width: fit-content;
}

.credits-info-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-700);
  margin: 0 0 .75rem;
}

.credits-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.credits-info-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: var(--text-sm);
  color: var(--slate-600);
}

.credits-info-list svg {
  flex-shrink: 0;
  color: var(--teal-500);
  margin-top: .1rem;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th {
  text-align: left;
  padding: .5rem .75rem;
  color: var(--slate-500);
  font-weight: 500;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.data-table td {
  padding: .6rem .75rem;
  color: var(--slate-700);
  border-bottom: 1px solid rgba(148, 163, 184, .07);
}

.data-table tr:last-child td {
  border-bottom: none;
}

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

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, .12);
  margin-top: 2rem;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0 1.25rem;
  flex-wrap: wrap;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-brand-mark {
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.footer-brand-sub {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: .15rem;
  max-width: 34ch;
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.footer-nav a:hover {
  color: var(--slate-900);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, .08);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--muted);
}

.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--text-xs);
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.footer-powered:hover {
  color: var(--slate-700);
}

.footer-petition-cta {
  font-size: var(--text-xs);
  color: var(--muted);
}

.footer-petition-link {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.footer-petition-link:hover { color: var(--slate-400); }

/* Keep old class aliases for any stray references */
.footer-inner { padding: 1.5rem 0 2.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .9rem; }
.footer-links { display: flex; align-items: center; gap: 1rem; color: var(--slate-700); font-weight: 600; }
.footer-social { display: flex; align-items: center; gap: .75rem; }
.footer-social__link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: var(--text-sm); font-weight: 500; text-decoration: none; transition: color .15s; }
.footer-social__link:hover { color: var(--accent); }

.mobile-nav-open .site-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-grid,
  .auth-grid,
  .app-shell,
  .metric-grid,
  .feature-grid,
  .stat-grid,
  .pricing-grid,
  .split-grid--dashboard,
  .split-grid--billing,
  .split-grid--checkout,
  .info-grid,
  .evidence-grid,
  .split-grid--mini,
  .split-grid--cases {
    grid-template-columns: 1fr;
  }

  .trust-row,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
    padding-bottom: .5rem;
  }

  .app-workspace {
    padding-left: 0;
  }

  .app-shell {
    padding-top: 0;
    gap: 0;
  }

  .profile-identity-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle,
  .nav-toggle--app {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 52px;
    display: grid;
    gap: .6rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
  }

  .app-sidebar {
    display: none;
  }

  .mobile-nav-open .app-sidebar {
    display: flex;
  }

  .header-inner,
  .app-bar-inner,
  .workspace-head,
  .cta-band,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .workspace-head h1,
  .auth-copy h1 {
    font-size: var(--text-2xl);
  }

  .workspace-head h1.case-heading-title {
    font-size: 1.25rem;
  }

  .feature-grid,
  .stat-grid,
  .stat-grid--compact,
  .form-row--two,
  .form-row--split,
  .flight-row {
    grid-template-columns: 1fr;
  }

  .flight-row {
    align-items: stretch;
  }

  .footer-links,
  .hero-actions,
  .app-bar-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .container,
  .workspace-head,
  .app-shell {
    width: min(100% - 1.2rem, var(--container));
  }

  .app-shell {
    gap: .55rem;
  }

  .app-sidebar {
    margin-right: -.6rem;
    padding-bottom: .55rem;
  }

  .sidebar-link {
    min-height: 36px;
    padding: .5rem .75rem;
    font-size: .8rem;
  }

  .hero-panel,
  .card,
  .auth-panel,
  .auth-copy,
  .pricing-card {
    padding: 1.1rem;
  }

  .pricing-card {
    grid-row: auto;
    grid-template-rows: auto;
    display: flex;
    flex-direction: column;
    gap: .9rem;
  }

  .pricing-card .check-list { flex: 1; }

  .trust-row {
    margin-top: 1.2rem;
  }

  .hero-actions--right {
    justify-content: flex-start;
  }
}

/* ============================================================
   LANDING PAGE — novas seções
============================================================ */

.gradient-text {
  display: inline-block;
  padding-inline-start: .05em;
  background: linear-gradient(135deg, #2dd4bf 0%, var(--teal-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section--lp {
  padding-block: var(--space-lg);
}

.section-head--center {
  justify-content: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head--center h2 {
  font-size: var(--text-2xl);
}

/* Como funciona — 3 steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step-card {
  padding: 1.75rem 1.5rem;
  display: grid;
  gap: .85rem;
  align-content: start;
}

.step-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.step-card p {
  color: var(--muted);
  font-size: var(--text-sm-);
  line-height: 1.65;
  margin: 0;
}

/* ── CTA buttons usados na landing (.btn .btn--primary) ────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: var(--text-sm-);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .15s;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #34d399 0%, var(--teal-600) 100%);
  box-shadow: none;
}

.btn--primary:hover {
  box-shadow: none;
}

.btn--primary:visited,
.btn--primary:hover,
.btn--primary:active {
  color: #ffffff;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.section-cta--full {
  width: 100%;
}

.section-cta--span {
  grid-column: 1 / -1;
}

/* Landing preview - expandable report teaser */
.preview-shell {
  margin-top: 1.75rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.18);
  background:
    radial-gradient(circle at top right, rgba(153, 246, 228, 0.38), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 251, 0.96));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.preview-shell[open] {
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.11);
}

.preview-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.6rem;
  cursor: pointer;
}

.preview-toggle::-webkit-details-marker {
  display: none;
}

.preview-toggle__copy h3 {
  margin: 0.4rem 0 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.04em;
  color: var(--slate-900);
}

.preview-toggle__copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.preview-toggle__meta {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
  flex-shrink: 0;
}

.preview-toggle__action,
.preview-spotlight__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.preview-toggle__action {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.88rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), #134e4a);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.preview-panel {
  padding: 0 1.6rem 1.6rem;
}

.preview-loader,
.preview-report-wrap {
  border-radius: calc(var(--radius-xl) - 8px);
}

.preview-loader {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(240, 253, 250, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.preview-loader[hidden],
.preview-report-wrap[hidden] {
  display: none;
}

.preview-loader__top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.preview-loader__top strong {
  color: var(--slate-900);
}

.preview-loader__top p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.preview-loader__pulse {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.24), rgba(15, 118, 110, 0.46));
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.24);
  animation: preview-pulse 1.6s ease-in-out infinite;
}

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

.preview-skeleton-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  min-height: 150px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.preview-skeleton-card--wide {
  grid-column: 1 / -1;
  min-height: 110px;
}

.skeleton {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.75) 20%, rgba(255, 255, 255, 0.96) 50%, rgba(226, 232, 240, 0.75) 80%);
  background-size: 220% 100%;
  animation: preview-shimmer 1.15s linear infinite;
}

.skeleton--pill {
  width: 108px;
  height: 28px;
}

.skeleton--title {
  width: 82%;
  height: 20px;
}

.skeleton--title-short {
  width: 58%;
}

.skeleton--line {
  width: 100%;
  height: 14px;
}

.skeleton--line-short {
  width: 64%;
}

.preview-report-wrap {
  display: grid;
  gap: 1rem;
  padding-top: 0.35rem;
}

.preview-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(20, 83, 45, 0.94));
  color: #ffffff;
}

.preview-spotlight strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.preview-spotlight p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.preview-spotlight__eyebrow {
  min-height: 30px;
  padding: 0 0.8rem;
  font-size: 0.75rem;
  color: #e0f7fb;
  background: rgba(255, 255, 255, 0.1);
}

.preview-report {
  max-width: none;
  margin: 0;
}

.preview-case-panel {
  margin-bottom: 1rem;
}

.preview-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.72fr);
  gap: 1rem;
}

.preview-report-main,
.preview-report-side {
  display: grid;
  gap: 1rem;
}

.preview-insight-card,
.preview-metric-card,
.preview-proof-card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.preview-insight-card {
  padding: 1rem 1.1rem;
}

.preview-insight-card__label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 0.72rem;
  margin-bottom: 0.6rem;
  border-radius: var(--pill);
  color: var(--teal-700);
  background: rgba(204, 251, 241, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-insight-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--slate-700);
}

.preview-timeline {
  display: grid;
  gap: 0.95rem;
}

.preview-timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.preview-timeline__item strong {
  color: var(--slate-900);
}

.preview-timeline__item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.preview-timeline__dot {
  width: 12px;
  height: 12px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, var(--teal-600));
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

.preview-conclusion {
  margin: 0;
}

.preview-metric-card {
  padding: 1rem 1.1rem;
}

.preview-metric-card span,
.preview-metric-card small {
  display: block;
}

.preview-metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.preview-metric-card strong {
  display: block;
  margin: 0.3rem 0 0.15rem;
  color: var(--slate-900);
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.preview-metric-card small {
  color: var(--muted);
}

.preview-metric-card--accent {
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.12), rgba(255, 255, 255, 0.98));
}

.preview-proof-card {
  padding: 1rem 1.1rem;
}

.preview-proof-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.preview-proof-card__head span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 0.7rem;
  border-radius: var(--pill);
  background: rgba(15, 23, 42, 0.08);
  color: var(--slate-700);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-proof-card code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.77rem;
  line-height: 1.65;
  color: var(--slate-700);
}

@keyframes preview-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

@keyframes preview-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.24); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
}

/* Bloco comparativo Sem/Com Farol */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.compare-intro {
  max-width: 760px;
  margin: 1rem auto 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.compare-col {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.compare-col--no {
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 248, 0.92)),
    radial-gradient(circle at top left, rgba(254, 226, 226, 0.9), transparent 48%);
}

.compare-col--yes {
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.94)),
    radial-gradient(circle at top right, rgba(204, 251, 241, 0.95), transparent 52%);
  box-shadow: 0 22px 44px rgba(13, 148, 136, 0.12);
}

.compare-col__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.compare-badge {
  font-weight: 700;
  font-size: var(--text-sm-);
  letter-spacing: .01em;
  padding: .3rem .75rem;
  border-radius: 999px;
}

.compare-badge--no {
  background: #fff5f5;
  color: #c53030;
}

.compare-badge--yes {
  background: rgba(20, 184, 166, .1);
  color: var(--accent);
}

.compare-stamp,
.compare-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.compare-stamp {
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.06);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.16);
}

.compare-stamp__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 800;
  background: rgba(239, 68, 68, 0.14);
}

.compare-stamp__text,
.compare-brand__pill {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.compare-brand__logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.compare-brand__pill {
  padding: .35rem .7rem;
  border-radius: 999px;
  color: var(--teal-700);
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.18);
}

.compare-hero {
  display: grid;
  gap: .9rem;
  align-items: start;
}

.compare-hero--no {
  grid-template-columns: 64px minmax(0, 1fr);
}

.compare-hero h3 {
  margin: 0 0 .45rem;
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}

.compare-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.compare-orb {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  position: relative;
}

.compare-orb--no {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(135deg, rgba(248, 113, 113, 0.30), rgba(239, 68, 68, 0.14));
  border: 1px solid rgba(239, 68, 68, 0.16);
}

.compare-orb--no::before,
.compare-orb--no::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  height: 2px;
  border-radius: 999px;
  background: rgba(153, 27, 27, 0.55);
}

.compare-orb--no::before {
  top: 26px;
  transform: rotate(25deg);
}

.compare-orb--no::after {
  top: 26px;
  transform: rotate(-25deg);
}

.compare-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.compare-signal {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--teal-700);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 184, 166, 0.16);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.compare-list li {
  font-size: var(--text-sm-);
  line-height: 1.55;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}

.compare-col--no .compare-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #e53e3e;
  font-weight: 700;
}

.compare-col--yes .compare-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.compare-footer {
  margin-top: auto;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.compare-footer__label {
  display: block;
  margin-bottom: .35rem;
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-footer strong {
  font-size: var(--text-sm-);
  line-height: 1.5;
  color: var(--slate-900);
}

.compare-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 184, 166, 0.14);
}

.compare-flow__step {
  display: grid;
  gap: .25rem;
}

.compare-flow__step strong {
  font-size: var(--text-sm);
  color: var(--slate-900);
}

.compare-flow__step span {
  font-size: var(--text-xs+);
  line-height: 1.45;
  color: var(--muted);
}

.compare-flow__step--accent {
  padding: .8rem .9rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(13, 148, 136, 0.08));
}

.compare-flow__arrow {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal-600);
}

.compare-closing {
  margin-top: 2.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.compare-closing__text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
}

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

  .compare-hero--no,
  .compare-flow {
    grid-template-columns: 1fr;
  }

  .compare-flow__arrow {
    display: none;
  }

  .preview-toggle,
  .preview-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-toggle__meta {
    width: 100%;
    justify-items: start;
  }

  .preview-skeleton-grid,
  .preview-report-grid {
    grid-template-columns: 1fr;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

/* FAQ — accordion vertical */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  margin-left: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--teal-600);
  transition: transform .2s ease;
}

details.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  background: var(--slate-50);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: var(--text-sm-);
  line-height: 1.7;
  margin: 0;
  animation: faq-slide-in .6s ease-out;
}

@keyframes faq-slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-answer strong {
  color: var(--slate-900);
}

/* LP check list variant */
.lp-check {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: .6rem;
  margin: 1.5rem 0;
}

.lp-check li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--text-sm-);
  font-weight: 500;
  color: var(--slate-700);
}

.lp-check li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: var(--text-xs);
  font-weight: 800;
}

/* ── Case new — redesign ──────────────────────────────────── */
.cn-topbar {
  padding: 28px 28px 0;
  margin-bottom: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  width: 100%;
}
/* ── Shared page header tokens ─────────────────────────────── */
.cn-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: #005f7a; margin-bottom: 8px;
}
.cn-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #005f7a; flex-shrink: 0; display: inline-block; }
.cn-title { font-size: 24px; font-weight: 800; color: #1e3a5f; line-height: 1.2; margin: 0 0 4px; }
.cn-subtitle { font-size: 13.5px; color: #64748b; margin-top: 3px; }

.cn-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
  padding: 0 28px 40px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

/* Form card */
.cn-form-card {
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
}
.cn-form-body { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 20px; }
.cn-form-footer {
  padding: 16px 24px; background: #fafcff;
  border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end;
}
.cn-form-footer .cn-submit-btn { width: 100%; justify-content: center; }

/* Fields */
.cn-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cn-field { display: flex; flex-direction: column; gap: 6px; }
.cn-label {
  font-size: 11.5px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: .07em;
}
.cn-label-opt { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: #94a3b8; }
.cn-label-row { display: flex; align-items: center; gap: 6px; margin-bottom: 0; }
.cn-help {
  width: 16px; height: 16px; border-radius: 50%;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  font-size: 10px; font-weight: 700; color: #94a3b8;
  display: inline-flex; align-items: center; justify-content: center; cursor: help;
  flex-shrink: 0; position: relative;
}
.cn-help::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #f8fafc;
  font-size: 12px; font-weight: 400; line-height: 1.5;
  width: 240px; padding: 9px 12px; border-radius: 8px;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  white-space: normal; text-transform: none; letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 50;
}
.cn-help::before {
  content: '';
  position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #1e293b;
  pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 50;
}
.cn-help:hover::after, .cn-help:focus::after,
.cn-help:hover::before, .cn-help:focus::before { opacity: 1; }
.cn-input {
  padding: 9px 12px; border-radius: 8px;
  border: 1.5px solid #e2e8f0; background: #fafcff;
  font-size: 13.5px; color: #1e293b; font-family: inherit;
  transition: border-color .15s, box-shadow .15s; outline: none; width: 100%;
  height: 42px; box-sizing: border-box;
}
.cn-input:focus { border-color: #005f7a; box-shadow: 0 0 0 3px rgba(0,184,217,.12); }
.cn-input::placeholder { color: #94a3b8; }
.cn-textarea { resize: vertical; min-height: 88px; }

/* Choice cards */
.cn-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cn-choice { cursor: pointer; }
.cn-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cn-choice-body {
  display: flex; flex-direction: column; gap: 3px;
  border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 11px 10px;
  transition: all .15s; background: #fff; color: #64748b;
}
.cn-choice-body:hover { border-color: #9edff0; background: #f0fbff; color: #004e66; }
.cn-choice input:checked + .cn-choice-body {
  border-color: #005f7a; background: #f0fbff; color: #004e66;
  box-shadow: 0 0 0 2px rgba(0,184,217,.12);
}
.cn-choice-body strong { font-size: 13px; font-weight: 700; color: #1e293b; }
.cn-choice input:checked + .cn-choice-body strong { color: #005f7a; }
.cn-choice-body small { font-size: 11px; color: #94a3b8; line-height: 1.3; }
.cn-choice input:checked + .cn-choice-body small { color: #00d4f0; }

/* Route selection (flight_options step) */
.cn-choices--routes { grid-template-columns: repeat(2, 1fr); }
.cn-choice--route .cn-choice-body { min-height: 90px; align-content: start; }
.cn-route-notice {
  padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid rgba(0, 95, 122, .2);
  background: rgba(204, 251, 241, 0.42);
  color: #005f7a; font-size: .92rem; font-weight: 600;
}

/* Submit button */
.cn-submit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px;
  background: #005f7a; color: #fff; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s; text-decoration: none; white-space: nowrap;
}
.cn-submit-btn:hover { background: #004a60; }
.cn-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Aside */
.cn-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 72px; }
.cn-aside-card {
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 16px 16px;
}
.cn-aside-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #64748b; padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cn-aside-row:last-child { border-bottom: none; padding-bottom: 0; }
.cn-aside-row:first-child { padding-top: 0; }
.cn-aside-val { font-size: 14px; font-weight: 700; color: #1e293b; }
.cn-aside-val--green { color: #005f7a; }
.cn-aside-benefits-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #005f7a; margin-bottom: 12px;
}
.cn-aside-list { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.cn-aside-list li {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12.5px; color: #334155; line-height: 1.4;
}
.cn-check-icon { flex-shrink: 0; margin-top: 2px; }
.cn-aside-benefits { padding: 14px 14px; }

/* Loading state */
.cn-loading-body {
  padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cn-loading-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #e2e8f0; border-top-color: #005f7a;
  animation: cn-spin .75s linear infinite;
}
@keyframes cn-spin { to { transform: rotate(360deg); } }
.cn-loading-title { font-size: 16px; font-weight: 700; color: #1e3a5f; text-align: center; }
.cn-loading-sub { font-size: 13px; color: #94a3b8; text-align: center; }

.cn-steps { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.cn-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; transition: background .2s;
  opacity: .4;
}
.cn-step.is-active { background: #f0fbff; opacity: 1; }
.cn-step.is-done { opacity: .65; }
.cn-step-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: #94a3b8;
}
.cn-step.is-active .cn-step-icon { background: #e0f7fb; color: #005f7a; }
.cn-step.is-done .cn-step-icon { background: #f0fbff; color: #00d4f0; }
.cn-step-text { display: flex; flex-direction: column; gap: 1px; }
.cn-step-text strong { font-size: 13px; font-weight: 700; color: #1e293b; }
.cn-step-text span { font-size: 11.5px; color: #94a3b8; }
.cn-step.is-active .cn-step-text strong { color: #005f7a; }

.cn-progress-wrap {
  width: 100%; height: 4px; background: #e2e8f0; border-radius: 99px; overflow: hidden;
}
.cn-progress-bar { height: 100%; width: 0; background: #005f7a; border-radius: 99px; transition: width .5s linear; }

/* Responsive */
@media (max-width: 900px) {
  .cn-topbar { padding: 20px 20px 0; }
  .cn-grid { grid-template-columns: 1fr; padding: 0 20px 32px; }
  .cn-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .cn-aside-card { flex: 1; min-width: 220px; }
}
@media (max-width: 560px) {
  .cn-topbar { padding: 16px 16px 0; }
  .cn-grid { padding: 0 16px 28px; }
  .cn-field-row { grid-template-columns: 1fr; }
  .cn-choices { grid-template-columns: 1fr; }
  .cn-aside { flex-direction: column; }
}

/* ── Legacy case-new (keep for compat) ── */
.case-new-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; width: min(100% - 2rem, var(--container)); margin: 0 auto; }
.case-processing-grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
.case-new-aside { align-self: start; position: sticky; top: 100px; }
.credit-summary-card { padding: 1.25rem; display: grid; gap: .1rem; }
.credit-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(148,163,184,.12); }
.credit-summary-row:last-of-type { border-bottom: none; }

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

  .faq-list {
    max-width: 100%;
  }

  .case-new-grid {
    grid-template-columns: 1fr;
  }

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

  .case-new-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .section--lp {
    padding-block: 2.5rem 3rem;
  }
}

/* ============================================================
   LOADING STATE — Case generation
============================================================ */

/* ── Case processing — redesign ──────────────────────────── */
.cp-wrap {
  padding: 28px 28px 48px;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.cp-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.cp-back-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: #64748b;
  text-decoration: none; white-space: nowrap; padding-top: 4px;
  transition: color .15s;
}
.cp-back-link:hover { color: #1e3a5f; }

.cp-card {
  background: #fff; border-radius: 14px;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 6px rgba(0,0,0,.05);
  padding: 32px 28px 24px;
  display: flex; flex-direction: column; gap: 28px;
}

/* Spinner + status */
.cp-status-zone {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.cp-spinner-ring {
  width: 52px; height: 52px;
}
.cp-spinner-svg {
  width: 52px; height: 52px;
  animation: cp-spin 1.2s linear infinite;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }
.cp-spinner-track { stroke: #e2e8f0; }
.cp-spinner-arc   { stroke: #005f7a; }

.cp-status-title {
  font-size: 17px; font-weight: 700; color: #1e3a5f; margin-bottom: 3px;
}
.cp-status-sub {
  font-size: 13px; color: #94a3b8;
}

/* Steps */
.cp-steps { display: flex; flex-direction: column; gap: 2px; }

.cp-step {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 9px;
  opacity: .35; transition: all .25s;
}
.cp-step.is-active {
  background: #f0fbff; opacity: 1;
}
.cp-step.is-done {
  opacity: .6;
}
.cp-step.is-error {
  background: #fff1f2; opacity: 1;
}
.cp-step.is-error .cp-step-num {
  background: #fee2e2; color: #dc2626;
}

.cp-step-num {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: #f1f5f9; color: #94a3b8;
  transition: all .25s;
}
.cp-step.is-active .cp-step-num {
  background: #005f7a; color: #fff;
}
.cp-step.is-done .cp-step-num {
  background: #e0f7fb; color: #005f7a;
  /* checkmark via bg-image */
  font-size: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23006c47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}

.cp-step-body { display: flex; flex-direction: column; gap: 1px; }
.cp-step-body strong { font-size: 13.5px; font-weight: 700; color: #1e293b; }
.cp-step-body span   { font-size: 12px; color: #94a3b8; }
.cp-step.is-active .cp-step-body strong { color: #005f7a; }

/* Progress */
.cp-progress-wrap {
  height: 4px; background: #e2e8f0; border-radius: 99px; overflow: hidden;
}
.cp-progress-bar {
  height: 100%; width: 0; background: #005f7a;
  border-radius: 99px; transition: width .5s linear;
}

.loading-card {
  padding: 2rem;
}

.loading-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: .25rem;
}

.loading-header h2 {
  font-size: 1.25rem;
  margin: .75rem 0 .35rem;
  letter-spacing: -0.03em;
}

.loading-header p {
  margin: 0;
  font-size: var(--text-sm-);
}

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

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(20, 184, 166, 0.18);
  border-top-color: var(--teal-500);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.loading-steps {
  display: grid;
  gap: 0;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem .5rem;
  border-radius: var(--radius-md);
  opacity: .4;
  transition: opacity .35s ease, background-color .35s ease;
}

.loading-step.is-active {
  opacity: 1;
  background: rgba(204, 251, 241, 0.35);
}

.loading-step.is-done {
  opacity: .65;
}

.loading-step.is-done .loading-step-icon {
  background: var(--teal-100);
  color: var(--teal-700);
}

.loading-step.is-active .loading-step-icon {
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.loading-step.is-active .loading-step-icon {
  animation: pulse-icon 1.5s ease-in-out infinite;
}

.loading-step-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  flex-shrink: 0;
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}

.loading-step strong {
  display: block;
  font-size: var(--text-sm-);
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.loading-step span {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: .1rem;
}

.loading-progress {
  height: 6px;
  border-radius: var(--pill);
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
  margin-top: .75rem;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  transition: width .5s ease;
}

.case-processing-actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.case-processing-actions form {
  margin: 0;
}
.cp-btn-primary, .cp-btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 8px; border: none;
  font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.cp-btn-primary {
  background: #005f7a; color: #fff;
}
.cp-btn-primary:hover { background: #004d63; }
.cp-btn-danger {
  background: #fff; color: #dc2626;
  border: 1px solid #fca5a5;
}
.cp-btn-danger:hover { background: #fef2f2; }

/* ════════════════════════════════════════════════════════════════
   RELATÓRIO TÉCNICO — case_detail
   ════════════════════════════════════════════════════════════════ */

.report {
  width: min(100%, 820px);
  margin: 0;
}

.case-detail-report {
  width: min(100% - 1.2rem, 980px);
  margin-right: auto;
  margin-left: auto;
}

.app-workspace > .workspace-head + .report,
.app-workspace > .case-context-panel + .report {
  margin-top: -0.5rem;
}

.app-workspace > .case-detail-head + .case-detail-report,
.app-workspace > .case-detail-head + .case-detail-context {
  margin-top: -0.75rem;
}

.app-workspace > .case-detail-context + .case-detail-report {
  margin-top: -0.35rem;
}

/* ── Header ────────────────────────────────────────────────── */
.report-header {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a5f 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 2.2rem 1.8rem;
  color: #fff;
  margin-bottom: 2rem;
}

.report-view-tabs {
  display: grid;
  gap: .85rem;
}

.report-view-tabs__buttons {
  justify-content: flex-start;
}

.report-view-panel {
  display: none;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(204, 251, 241, 0.42), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
}

.report-view-panel.is-active {
  display: grid;
  gap: 1rem;
}

.report-summary-shell {
  display: grid;
  gap: 1rem;
}

/* ── Veredicto principal hero ── */
.report-verdict-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.96), rgba(236, 253, 245, 0.96));
  border: 1.5px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.10);
}

.report-verdict-hero--warn {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.96), rgba(255, 251, 235, 0.96));
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.10);
}

.report-verdict-hero--bad {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.96), rgba(254, 242, 242, 0.96));
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.10);
}

.report-verdict-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-verdict-hero--warn .report-verdict-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.report-verdict-hero--bad .report-verdict-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.report-verdict-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.4;
}

/* ── Chips dos demais achados ── */
.report-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.report-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: var(--pill);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  font-size: var(--text-xs+);
  font-weight: 600;
  color: var(--slate-700);
  box-shadow: var(--shadow-soft);
}

.report-chip svg { color: var(--teal-600); flex-shrink: 0; }

.report-chip--good {
  background: rgba(209, 250, 229, 0.7);
  border-color: rgba(16, 185, 129, 0.2);
}

.report-chip--warn {
  background: rgba(254, 243, 199, 0.7);
  border-color: rgba(245, 158, 11, 0.2);
}

.report-chip--warn svg { color: #b45309; }

.report-chip--bad {
  background: rgba(254, 226, 226, 0.7);
  border-color: rgba(239, 68, 68, 0.18);
}

.report-chip--bad svg { color: #b91c1c; }

/* ── Strip de dados do voo ── */
.report-case-strip {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--color-surface-container-lowest);
  overflow: hidden;
}

.report-case-strip__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.report-case-strip__row--secondary {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(248, 250, 252, 0.5);
}

.report-case-strip .report-case-cell {
  padding: .85rem 1.1rem;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.report-case-strip .report-case-cell:last-child {
  border-right: none;
}

/* Legacy summary styles (kept for backward compat) */
.report-summary-hero {
  padding: 1.8rem 2rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(204, 251, 241, 0.46), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-soft);
}

.report-summary-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
}

.report-summary-tags--hero { margin-top: .8rem; }

.report-summary-tag {
  --summary-accent: var(--teal-500);
  --summary-marker-bg: rgba(204, 251, 241, 0.58);
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  min-height: 0;
  padding: .85rem .95rem .85rem 1rem;
  border: 0;
  border-left: 3px solid var(--summary-accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
  cursor: default;
}

.report-summary-tag::before {
  content: "";
  width: .62rem;
  height: .62rem;
  margin-top: .38rem;
  border-radius: var(--pill);
  background: var(--summary-accent);
  box-shadow: 0 0 0 6px var(--summary-marker-bg);
  flex: 0 0 auto;
}

.report-summary-tag span {
  color: var(--slate-900);
  font-weight: 650;
  font-size: .94rem;
  line-height: 1.45;
}

.report-summary-tag--good {
  --summary-accent: #10b981;
  --summary-marker-bg: rgba(209, 250, 229, 0.86);
}

.report-summary-tag--warn {
  --summary-accent: #f59e0b;
  --summary-marker-bg: rgba(254, 243, 199, 0.9);
}

.report-summary-tag--bad {
  --summary-accent: #ef4444;
  --summary-marker-bg: rgba(254, 226, 226, 0.88);
}

.report-summary-tag--soft {
  --summary-accent: #14b8a6;
  --summary-marker-bg: rgba(204, 251, 241, 0.72);
}

.report-full {
  display: grid;
  gap: 0;
}

.report-supra {
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--teal-300);
  display: block;
  margin-bottom: .5rem;
}

.report-title {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .5rem;
  color: #fff;
}

.report-meta {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 .45rem;
}

.report-generated {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  margin: 0 0 .85rem;
  letter-spacing: .02em;
}

.report-case-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.75rem;
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  border: 0;
  box-shadow: none;
}

.report-case-cell {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  align-items: center;
  text-align: center;
}

.report-case-label {
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.report-case-value {
  font-size: var(--text-sm-);
  font-weight: 600;
  color: var(--slate-900);
  word-break: break-word;
}

.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.report-tag {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: var(--pill);
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.report-tag--source {
  background: var(--teal-600);
  color: #fff;
}

/* ── Sections ──────────────────────────────────────────────── */
.report-section {
  margin-bottom: 1.8rem;
}

.report-section-title {
  text-transform: uppercase;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--slate-900);
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 0;
}

.report-section p {
  font-size: var(--text-sm-);
  line-height: 1.7;
  color: var(--slate-700);
  margin: 0 0 .6rem;
}

.report-section strong {
  color: var(--slate-900);
}

/* ── Tables ────────────────────────────────────────────────── */
.report-table-wrap {
  overflow-x: auto;
  margin: .8rem 0 .5rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-container-lowest);
}

.report-board-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: var(--radius-md);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.report-table thead th {
  background: #0d1f2d;
  color: rgba(255,255,255,.75);
  padding: .6rem .85rem;
  text-align: left;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 2px solid #00b8d9;
}

.report-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.report-table thead th:last-child  { border-radius: 0 var(--radius) 0 0; text-align: right; }

.report-table__titlebar {
  text-align: center;
  background: #0d1f2d;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  letter-spacing: .03em;
  border-bottom: 2px solid #00b8d9;
}

.report-table tbody td {
  padding: .55rem .85rem;
  border-bottom: 1px solid #f0f4f8;
  color: #334155;
  text-align: left;
  font-size: 12.5px;
}

.report-table tbody td:last-child { text-align: right; }

.report-table tbody tr:nth-child(odd) td  { background: #fff; }
.report-table tbody tr:nth-child(even) td { background: #f6f9fc; }
.report-table tbody tr:hover td { background: #eef6fa; }

.report-table tbody tr.report-table__row--selected td {
  background: #e0f4fa;
  border-left: 2px solid #00b8d9;
}

.report-table tbody td strong {
  color: #0d1f2d;
  font-weight: 700;
}

/* ── Status badges ─────────────────────────────────────────── */
.report-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  border: 1px solid;
}

.report-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.report-status--ok {
  background: #f0fbff;
  color: #005f7a;
  border-color: #7dd6ea;
}
.report-status--ok::before { background: #00b8d9; box-shadow: 0 0 0 2px rgba(0,184,217,.2); }

.report-status--warn {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.report-status--warn::before { background: #d97706; }

.report-status--bad {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.report-status--bad::before { background: #dc2626; }

.report-status--bad {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

/* ── Note box ──────────────────────────────────────────────── */
.report-note {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--slate-700);
  margin: .6rem 0 .2rem;
}

.report-note strong {
  color: var(--slate-900);
}

/* ── Weather card ──────────────────────────────────────────── */
.report-weather-card {
  background: var(--color-surface-container-low);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin: .6rem 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--slate-700);
}

.report-weather-card strong {
  color: var(--slate-900);
}

.report-weather-card ul {
  margin: .4rem 0 0;
  padding-left: 1.2rem;
}

.report-weather-card li {
  margin-bottom: .2rem;
}

.report-board-dir {
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--slate-500);
  margin: .8rem 0 .3rem;
}

.report-weather-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .4rem;
  flex-wrap: wrap;
}

.report-weather-card--adverse {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.report-table--metar td,
.report-table--metar th {
  font-size: var(--text-xs);
}

.report-metar-raw {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: var(--text-2xs);
  word-break: break-all;
  color: var(--slate-700);
}

/* ── Analysis list ─────────────────────────────────────────── */
.report-analysis-list p {
  padding-left: .5rem;
}

/* ── Conclusion block ──────────────────────────────────────── */
.report-conclusion {
  background: rgba(0, 95, 122, 0.07);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 1.1rem 1.4rem;
  margin: .5rem 0;
}

.report-conclusion p {
  font-size: var(--text-sm-);
  line-height: 1.7;
  color: var(--slate-800);
  margin: 0;
}

.report-conclusion strong {
  color: var(--slate-900);
}

/* ── Footer / Sources ──────────────────────────────────────── */
.report-footer {
  border-top: 1px solid var(--slate-200);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.report-footer p {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.report-footer strong {
  color: var(--slate-700);
}

/* ── Petition CTA ───────────────────────────────────────────── */
.report-petition-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--slate-200);
  text-align: center;
}

.report-petition-cta__text {
  font-size: 1rem;
  color: var(--slate-600);
  margin: 0;
}

.button--lg {
  padding: .85rem 2rem;
  font-size: 1rem;
}

/* ════════════════════════════════════════════════════════════════
   KPI ROW — dashboard
   ════════════════════════════════════════════════════════════════ */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0,95,122,.08);
  box-shadow: 0 4px 16px rgba(20, 28, 40, 0.06);
  backdrop-filter: blur(12px);
}

.kpi-card__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
}

.kpi-card__body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.kpi-card__value {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  line-height: 1.1;
}

.kpi-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

@media (max-width: 700px) {
  .kpi-row {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════
   DASHBOARD HEAD — toolbar acima da tabela
   ════════════════════════════════════════════════════════════════ */

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.dashboard-toolbar h2 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ════════════════════════════════════════════════════════════════
   FLIGHT BADGE — coluna de voo na tabela
   ════════════════════════════════════════════════════════════════ */

.flight-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .65rem;
  border-radius: var(--pill);
  background: rgba(0,95,122,.07);
  color: var(--teal-700);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.flight-badge:hover {
  background: rgba(0,95,122,.14);
  color: var(--teal-600);
}

/* ════════════════════════════════════════════════════════════════
   RISK BADGE — coluna de risco na tabela
   ════════════════════════════════════════════════════════════════ */

.flight-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .6rem;
  border-radius: var(--pill);
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .1);
  color: var(--slate-700);
  font-weight: 700;
  font-size: var(--text-2xs);
  letter-spacing: .03em;
  white-space: nowrap;
}

.flight-pill svg { color: var(--slate-500); }

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: var(--pill);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.risk-badge--low {
  background: rgba(16, 185, 129, 0.10);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.risk-badge--medium {
  background: rgba(245, 158, 11, 0.10);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.risk-badge--high {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.risk-badge--unknown {
  background: rgba(148, 163, 184, 0.10);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* ════════════════════════════════════════════════════════════════
   BILLING — badge "Mais popular"
   ════════════════════════════════════════════════════════════════ */

.plan-badge-popular {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 .65rem;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .25rem;
  width: fit-content;
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR — billing link unificado
   ════════════════════════════════════════════════════════════════ */

.sidebar-link--billing {
  margin-top: 0;
}

/* ════════════════════════════════════════════════════════════════
   BUTTON COM ÍCONE
   ════════════════════════════════════════════════════════════════ */

.button--with-icon {
  gap: .5rem;
}

.button--with-icon svg {
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   CREDIT CHIP — melhorado
   ════════════════════════════════════════════════════════════════ */

.credit-chip {
  background: rgba(0,184,217,.09);
  border: 1px solid rgba(0,184,217,.2);
  color: var(--teal-700);
}

.credit-chip strong {
  color: var(--teal-700);
  font-size: 1rem;
  font-weight: 800;
}

/* ── Modal ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .report-summary-tags {
    grid-template-columns: 1fr;
  }

  .report-header {
    padding: 1.4rem 1.2rem 1.2rem;
  }
  .report-title {
    font-size: 1.15rem;
  }
  .report-table { font-size: var(--text-xs); }
  .report-table thead th,
  .report-table tbody td { padding: .4rem .5rem; }
}

/* ════════════════════════════════════════════════════════════════
   ACESSIBILIDADE — foco visível e reduced-motion
   ════════════════════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   CREDIT CHIP — estado de aviso (créditos baixos)
   ════════════════════════════════════════════════════════════════ */

.credit-chip--warning {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.28);
  color: #92400e;
}

.credit-chip--warning strong {
  color: #92400e;
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR — workspace label (nome do escritório)
   ════════════════════════════════════════════════════════════════ */

.sidebar-workspace {
  padding: 0 .75rem .5rem;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
  margin-bottom: .15rem;
}

.sidebar-workspace__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  min-width: 0;
}

.sidebar-workspace__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sidebar-plan-chip {
  display: inline-flex;
  align-items: center;
  padding: .1rem .45rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(0,95,122,.22);
  background: transparent;
  color: var(--teal-700);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   KPI CARD — rótulo de contexto
   ════════════════════════════════════════════════════════════════ */

.kpi-card__context {
  font-size: var(--text-2xs);
  color: var(--muted);
  font-weight: 500;
  margin-top: .05rem;
  opacity: .8;
}

/* ════════════════════════════════════════════════════════════════
   DASHBOARD SAVE STATUS — estados mais visíveis
   ════════════════════════════════════════════════════════════════ */

.dashboard-save-status[data-state="saving"] {
  color: var(--muted);
}

.dashboard-save-status[data-state="saved"] {
  color: var(--teal-700);
  font-weight: 600;
}

.dashboard-save-status[data-state="error"] {
  color: #b42318;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════
   LANDING — trust bar de métricas
   ════════════════════════════════════════════════════════════════ */

.trust-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0,95,122,.1);
  backdrop-filter: blur(14px);
}

.trust-metrics-bar__item {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--slate-700);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.trust-metrics-bar__item svg {
  color: var(--teal-600);
  flex-shrink: 0;
}

.trust-metrics-bar__divider {
  width: 1px;
  height: 1.2rem;
  background: rgba(148, 163, 184, 0.28);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .trust-metrics-bar {
    gap: 1rem;
    padding: .9rem 1.1rem;
  }
  .trust-metrics-bar__divider {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   DASHBOARD — toolbar counter chip
   ════════════════════════════════════════════════════════════════ */

.toolbar-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 .6rem;
  border-radius: var(--pill);
  background: rgba(0,95,122,.07);
  color: var(--teal-700);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .02em;
}

/* ════════════════════════════════════════════════════════════════
   DASHBOARD — empty state melhorado
   ════════════════════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 2rem;
  min-height: 340px;
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: .25rem;
}

.empty-state h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════════
   LANDING PRICING — badge "Mais popular" em card featured
   ════════════════════════════════════════════════════════════════ */

.pricing-card--featured .plan-badge-popular {
  position: absolute;
  top: -0.9rem;
  left: 1.1rem;
}

.empty-state h2 { font-size: var(--text-xl); }

.pricing-card--featured {
  border: 2px solid rgba(0,184,217,.38);
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR COLAPSÁVEL — rail de ícones
   ════════════════════════════════════════════════════════════════ */

.app-sidebar {
  position: relative;
}

.sidebar-toggle-btn {
  position: absolute;
  right: -13px;
  top: 1.4rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--muted);
  font-size: var(--text-2xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
}

.sidebar-toggle-btn:hover {
  background: var(--teal-100);
  color: var(--teal-700);
  border-color: rgba(0,184,217,.3);
}

.app-sidebar.is-collapsed {
  width: 52px;
  min-width: 52px;
}

.app-shell:has(.app-sidebar.is-collapsed) {
  grid-template-columns: 52px minmax(0, 1fr);
}

.app-sidebar.is-collapsed .sidebar-workspace,
.app-sidebar.is-collapsed .sidebar-link span {
  display: none;
}

.app-sidebar.is-collapsed .sidebar-link,
.app-sidebar.is-collapsed .sidebar-link--new-case,
.app-sidebar.is-collapsed .sidebar-link--billing {
  justify-content: center;
  padding: .65rem;
  min-width: 0;
}

.app-sidebar.is-collapsed .sidebar-link svg {
  opacity: .7;
}

.app-sidebar.is-collapsed .sidebar-link.is-active svg {
  opacity: 1;
}

.app-sidebar.is-collapsed .sidebar-nav {
  gap: .4rem;
}

/* ════════════════════════════════════════════════════════════════
   DASH TABS — abas do dashboard
   ════════════════════════════════════════════════════════════════ */

.dash-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  background: #fff;
  padding: 0 1.1rem;
}

.dash-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .9rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  font-family: inherit;
  margin-bottom: -1px;
}

.dash-tab:hover {
  color: var(--slate-900);
}

.dash-tab.is-active {
  color: var(--teal-700);
  border-bottom-color: var(--teal-500);
  font-weight: 700;
}

.dash-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 0 .4rem;
  height: 18px;
  border-radius: 9999px;
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(148, 163, 184, .14);
  color: var(--muted);
}

.dash-tab.is-active .dash-tab__count {
  background: rgba(0,184,217,.14);
  color: var(--teal-700);
}

.dash-tab__count--warn {
  background: rgba(245, 158, 11, .14) !important;
  color: #92400e !important;
}

.dash-tab__count--err {
  background: rgba(239, 68, 68, .12) !important;
  color: #991b1b !important;
}

.dash-panel {
  display: none;
}

.dash-panel.is-active {
  display: block;
}

/* ════════════════════════════════════════════════════════════════
   CASE ROW — linha rica de 2 linhas
   ════════════════════════════════════════════════════════════════ */

.case-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}

.case-row:hover {
  background: rgba(0,95,122,.04);
  border-left-color: var(--teal-400);
}

.case-row:last-child {
  border-bottom: none;
}

.case-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.case-row__top {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

.case-row__name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 26ch;
}

.case-row__name--empty {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

.case-row__meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
}

.case-row__meta-sep {
  color: rgba(148, 163, 184, .5);
}

.case-row__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.case-row__edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(148, 163, 184, .2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s, border-color .15s;
  font-family: inherit;
  line-height: 1;
}

.case-row:hover .case-row__edit-btn {
  opacity: 1;
}

.case-row__edit-btn:hover {
  background: var(--teal-100);
  color: var(--teal-700);
  border-color: rgba(0,184,217,.3);
}

/* Variante processando */
.case-row--processing {
  opacity: .85;
}

/* Variante falha */
.case-row--failed {
  background: rgba(254, 242, 242, .4);
}

.case-row--failed:hover {
  background: rgba(254, 226, 226, .4);
}

/* ════════════════════════════════════════════════════════════════
   BADGES — prova e processamento
   ════════════════════════════════════════════════════════════════ */

.proof-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: var(--radius-btn);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════
   CASES TABLE — listagem tabular de análises concluídas
   ════════════════════════════════════════════════════════════════ */

.cases-table {
  width: 100%;
  border-collapse: collapse;
}

.cases-table thead th {
  padding: .55rem 1rem;
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  background: rgba(248, 249, 255, .8);
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  white-space: nowrap;
}

.cases-table thead th:first-child { padding-left: 1.25rem; }
.cases-table thead th:last-child { padding-right: 1.25rem; text-align: right; }

.cases-table__row {
  border-bottom: 1px solid rgba(148, 163, 184, .08);
  transition: background .12s, border-left-color .12s;
  border-left: 2px solid transparent;
}

.cases-table__row:last-child { border-bottom: none; }

.cases-table__row:hover {
  background: rgba(0,95,122,.035);
  border-left-color: var(--teal-400);
}

.cases-table__row:hover .case-row__edit-btn { opacity: 1; }

.cases-table tbody td {
  padding: .85rem 1rem;
  vertical-align: middle;
}

.cases-table tbody td:first-child { padding-left: 1.25rem; }
.cases-table tbody td:last-child { padding-right: 1.25rem; }

.cases-table__client {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate-900);
  border-bottom: 1.5px dashed var(--slate-300);
  cursor: text;
  outline: none;
  border-radius: 3px 3px 0 0;
  padding: .1rem .15rem;
  transition: border-color .15s, background .15s;
  display: inline-block;
}

.cases-table__client:hover {
  border-bottom-color: var(--teal-400);
}

.cases-table__client:focus {
  border-bottom-color: var(--teal-500);
  background: rgba(52, 211, 153, .06);
  box-shadow: 0 2px 0 0 var(--teal-500);
}

.cases-table__client--empty {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
  border-bottom-style: dashed;
  border-bottom-color: var(--slate-200);
}

.cases-table__route {
  font-size: var(--text-sm);
  color: var(--slate-700);
  font-weight: 500;
}

.cases-table__date {
  font-size: var(--text-2xs);
  color: var(--muted);
  margin-top: .1rem;
}

.cases-table__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: var(--pill);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid transparent;
}

.proof-badge--forte {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, .18);
}

.proof-badge--media {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: rgba(109, 40, 217, .18);
}

.proof-badge--fraca {
  background: #fff7ed;
  color: #c2410c;
  border-color: rgba(194, 65, 12, .18);
}

.proof-badge--unknown {
  background: rgba(148, 163, 184, .1);
  color: var(--muted);
  border-color: rgba(148, 163, 184, .18);
}

.processing-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  font-weight: 700;
  background: rgba(99, 102, 241, .1);
  color: #4338ca;
}

.failed-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  font-weight: 700;
  background: rgba(239, 68, 68, .1);
  color: #991b1b;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(99, 102, 241, .25);
  border-top-color: #4338ca;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

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

/* ════════════════════════════════════════════════════════════════
   MODAL — centrado (ex: modal-petition no relatório)
   ════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop[hidden] { display: none; }

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  display: grid;
  gap: 1rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(148, 163, 184, .1);
  border: none;
  color: var(--slate-500);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.modal-close:hover { background: rgba(148, 163, 184, .2); }

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,184,217,.12), rgba(0,95,122,.1));
  color: var(--teal-600);
  margin: 0 auto;
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--slate-900);
  margin: 0;
}

.modal-body {
  font-size: var(--text-sm);
  color: var(--slate-600);
  line-height: 1.6;
  margin: 0;
}

.modal-skip {
  background: none;
  border: none;
  color: var(--slate-400);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: .25rem;
  transition: color .15s;
}

.modal-skip:hover { color: var(--slate-600); }

/* ════════════════════════════════════════════════════════════════
   CASE DRAWER — modal lateral de edição
   ════════════════════════════════════════════════════════════════ */

.case-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}

.case-drawer[hidden] {
  display: none;
}

.case-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .32);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.case-drawer__panel {
  position: relative;
  width: min(440px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(15, 23, 42, .12);
  transform: translateX(100%);
  transition: transform .22s ease;
}

.case-drawer.is-open .case-drawer__panel {
  transform: translateX(0);
}

.case-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  flex-shrink: 0;
}

.case-drawer__header h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.case-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(148, 163, 184, .2);
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm-);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  line-height: 1;
}

.case-drawer__close:hover {
  background: rgba(239, 68, 68, .08);
  color: #991b1b;
  border-color: rgba(239, 68, 68, .2);
}

.case-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-drawer__meta {
  padding: .8rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, .9);
  border: 1px solid rgba(148, 163, 184, .14);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.case-drawer__meta-flight {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--slate-900);
}

.case-drawer__meta-detail {
  font-size: var(--text-sm);
  color: var(--muted);
}

.case-drawer__actions {
  display: flex;
  gap: .65rem;
  margin-top: .25rem;
}

@media (max-width: 640px) {
  .case-drawer__panel {
    width: 100vw;
  }
}

/* ════════════════════════════════════════════════════════════════
   DASH EMPTY STATES por aba
   ════════════════════════════════════════════════════════════════ */

.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .75rem;
  padding: 3rem 2rem;
  min-height: 260px;
}

.dash-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
}

.dash-empty h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.dash-empty p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  max-width: 38ch;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   MARCA CLIMA VOO
   ════════════════════════════════════════════════════════════════ */

.brand-lockup--climavoo {
  gap: .65rem;
}

.climavoo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.climavoo-mark svg {
  display: block;
  width: 32px;
  height: 32px;
}

.climavoo-copy {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
}

.climavoo-copy strong {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.climavoo-copy small {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR — espaçamento compacto
   ════════════════════════════════════════════════════════════════ */

.app-sidebar {
  gap: .5rem;
}

.sidebar-workspace {
  padding: .5rem .75rem .45rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0,95,122,.07);
}

.sidebar-workspace__label {
  font-size: var(--text-xs);
  letter-spacing: .08em;
}

.sidebar-workspace__name {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: .1rem;
}

.workspace-plan-tag--sidebar {
  margin: 0 0 .2rem .4rem;
}

.sidebar-nav {
  gap: .3rem;
}

.sidebar-link {
  min-height: 38px;
  padding: .5rem .75rem;
  font-size: var(--text-sm);
}

.sidebar-link--billing {
  margin-top: 0;
}

/* Collapsed state — compact icons */
.app-sidebar.is-collapsed .sidebar-link {
  min-height: 36px;
  padding: .5rem;
}

/* ── App theme — fundo neutro sem gradiente ──────────────────── */
body.theme-app {
  background: #f4f6f9;
}

/* ── Empty state minimal ─────────────────────────────────────── */
.dash-empty--minimal {
  min-height: 160px;
}

.dash-empty__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: var(--radius-btn);
  border: 1px dashed rgba(0,95,122,.25);
  transition: background .15s, border-color .15s;
}

.dash-empty__link:hover {
  background: rgba(0,184,217,.06);
  border-color: rgba(0,95,122,.4);
}

/* ── Profile menu — workspace info ──────────────────────────── */
.profile-menu__workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, .1);
  margin-top: .15rem;
}

.profile-menu__workspace-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.dash-empty__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ── Heroicons — stroke padrão ───────────────────────────────── */
.sidebar-link svg,
.credit-chip svg {
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* ── Failed case — motivo da falha ──────────────────────────── */
.case-row__failure-reason {
  font-size: var(--text-sm);
  color: #991b1b;
  line-height: 1.5;
  margin-top: .3rem;
  max-width: 72ch;
}

@media (max-width: 760px) {
  .billing-credits-layout {
    grid-template-columns: 1fr;
  }
  .credits-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .credits-result {
    flex-direction: row;
    justify-content: center;
    gap: .4rem;
    min-width: auto;
  }
}

/* ══════════════════════════════════════════════════════════════
   App v2 — Sidebar redesign
   ══════════════════════════════════════════════════════════════ */

body.theme-app {
  height: 100vh;
  overflow: hidden;
  background: #f8f9ff;
}

body.theme-app .page-backdrop,
body.theme-app .ambient--one,
body.theme-app .ambient--two { display: none; }

body.theme-app > .page-main {
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

/* ── App shell: top bar layout ─────────────────────────────── */
.app-v2 {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Top bar ───────────────────────────────────────────────── */
.sv2-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.sv2-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sv2-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.sv2-topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.sv2-topbar-link:hover { background: #f1f5f9; color: #334155; }

.sv2-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.sv2-brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

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

.sv2-brand-copy strong {
  font-size: 13px;
  font-weight: 800;
  color: #0d1f2d;
  line-height: 1;
  letter-spacing: -.2px;
}

.sv2-brand-copy small {
  font-size: 8px;
  font-weight: 700;
  color: #0093b0;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Avatar button (top bar) ───────────────────────────────── */
.sv2-footer {
  flex-shrink: 0;
}

.sv2-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px 5px 5px;
  border-radius: 8px;
  font-family: inherit;
  text-align: left;
  transition: background .12s;
}

.sv2-avatar-btn:hover { background: #f1f5f9; }

.sv2-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b8d9, #005f7a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.sv2-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sv2-avatar-info { min-width: 0; flex: 1; }

.sv2-avatar-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sv2-avatar-plan {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.2;
  margin-top: 1px;
}

/* Avatar dropdown menu */
.sv2-amenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20,28,40,.1);
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
}

.sv2-amenu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.sv2-amenu-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.sv2-amenu-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.sv2-amenu-email {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 1px;
}

.sv2-amenu-recharge {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms;
}
.sv2-amenu-recharge:hover { background: #fef3c7; }
.sv2-amenu-credits {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #005f7a;
  background: #f0fbff;
  border: 1px solid #b2e8f4;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sv2-amenu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: background .1s;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.sv2-amenu-item:hover { background: #f8fafc; }
.sv2-amenu-item svg { color: #94a3b8; flex-shrink: 0; }
.sv2-amenu-item--danger { color: #dc2626; }
.sv2-amenu-item--danger svg { color: #dc2626; }

.sv2-amenu-sep {
  height: 1px;
  background: #f1f5f9;
  margin: 2px 0;
}

/* ── Workspace ─────────────────────────────────────────────── */
.sv2-workspace {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #f8f9ff;
}

.sv2-powered-footer {
  width: 100%;
  padding: 8px 0 14px;
}
.sv2-powered-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}
.sv2-powered-copy {
  font-size: 10px;
  color: #d5dce6;
  font-weight: 500;
  margin-right: auto;
}
.sv2-powered-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #c4cdd8;
  font-size: 10px;
  font-weight: 500;
  transition: color .2s;
}
.sv2-powered-link svg { opacity: .4; transition: opacity .2s; }
.sv2-powered-link:hover { color: #0093b0; }
.sv2-powered-link:hover svg { opacity: 1; }
.sv2-powered-link strong { font-weight: 700; color: #c4cdd8; transition: color .2s; }
.sv2-powered-link:hover strong { color: #005f7a; }

.sv2-notice {
  font-size: 13.5px;
  flex-shrink: 0;
  border-bottom: 1px solid transparent;
}
.sv2-notice-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 28px;
  box-sizing: border-box;
}

.sv2-notice--info { background: #eff6ff; color: #1d4ed8; border-bottom-color: #bfdbfe; }
.sv2-notice--error { background: #fff1f2; color: #9f1239; border-bottom-color: #fecdd3; }

/* ── Dashboard v2: stats + table ───────────────────────────── */
.dash-v2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 28px 28px;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.dash-v2-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dash-v2-title { font-size: 24px; font-weight: 800; color: #1e3a5f; line-height: 1.2; margin: 0 0 4px; }
.dash-v2-subtitle { font-size: 13.5px; color: #64748b; margin-top: 4px; }

/* Stats */
.dash-v2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-v2 {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.stat-v2-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.stat-v2-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #141c28;
}

.stat-v2-val--link {
  background: none; border: none; padding: 0; font-family: inherit;
  font-size: 22px; font-weight: 800; line-height: 1; color: inherit;
  cursor: pointer; text-decoration: none;
  transition: opacity .15s;
}
.stat-v2-val--link:hover { text-decoration: underline; opacity: .75; }

.stat-v2-sub { font-size: 11.5px; color: #64748b; margin-top: 3px; }
.stat-v2.green .stat-v2-val { color: #005f7a; }
.stat-v2.amber .stat-v2-val { color: #b45309; }
.stat-v2.red   .stat-v2-val { color: #dc2626; }

.stat-v2--filter {
  cursor: pointer; user-select: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.stat-v2--filter:hover { border-color: #9edff0; background: #fafffe; }
.stat-v2--filter.is-active {
  border-color: #005f7a;
  box-shadow: 0 0 0 2px rgba(0,184,217,.12);
  background: #f0fbff;
}
.stat-v2--filter.is-active .stat-v2-label { color: #005f7a; }

/* Table card */
.tcard-v2 {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.tcard-toolbar {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.tcard-tabs { display: flex; }

.tcard-tab {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  font-family: inherit;
}

.tcard-tab.is-active {
  color: #005f7a;
  border-bottom-color: #005f7a;
  font-weight: 600;
}

.tcard-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: 5px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
}

.tcard-tab.is-active .tcard-pill { background: #b2e8f4; color: #004e66; }
.tcard-pill--warn { background: #fef3c7; color: #92400e; }
.tcard-pill--err  { background: #fee2e2; color: #dc2626; }

.tcard-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }


.stat-filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 10px; border-radius: 99px;
  background: #e8f5f0; border: 1.5px solid #9edff0;
  color: #005f7a; font-size: 11.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.stat-filter-chip:hover { background: #e0f7fb; border-color: #9edff0; }

.tcard-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 6px 11px;
}

.tcard-search input {
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: #334155;
  width: 160px;
  font-family: inherit;
}

.tcard-search input::placeholder { color: #94a3b8; }

.tcard-scroll { overflow-y: auto; flex: 1; }

.tcard-scroll table { width: 100%; border-collapse: collapse; }

.tcard-scroll thead th {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 9px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.tcard-scroll tbody tr {
  border-bottom: 1px solid #f9fafb;
  cursor: pointer;
  transition: background .1s;
}

.tcard-scroll tbody tr:last-child { border-bottom: none; }
.tcard-scroll tbody tr:hover { background: #fafcff; }
.tcard-scroll tbody tr.is-selected { background: #f0fbff; }
.tcard-scroll tbody td { padding: 12px 16px; vertical-align: middle; }

/* Flight pill */
.fpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f4ff;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid #dde4f5;
  white-space: nowrap;
}

.tcell-client { font-size: 13px; font-weight: 500; color: #1e293b; }
.tcell-empty  { font-size: 13px; color: #c4c9d4; font-style: italic; }
.tcell-route  { font-size: 13px; font-weight: 500; color: #334155; }
.tcell-date   { font-size: 11.5px; color: #94a3b8; margin-top: 1px; }
.tcell-actions { text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row-menu { position: relative; display: inline-flex; align-items: center; }
.row-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
  color: var(--text-muted, #6b7280); cursor: pointer; transition: background .15s, color .15s;
}
.row-menu-btn:hover { background: var(--bg-hover, #f3f4f6); color: var(--text-base, #111827); }
.row-menu-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 200;
  min-width: 148px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10); padding: 4px;
}
.row-menu.is-open .row-menu-dropdown { display: block; }
.row-menu-item {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px 10px;
  border: none; border-radius: 6px; background: transparent; font-size: .82rem;
  cursor: pointer; text-align: left; transition: background .12s, color .12s;
  color: var(--text-base, #111827);
}
.row-menu-item:hover { background: #f3f4f6; }
.row-menu-item--danger { color: #dc2626; }
.row-menu-item--danger:hover { background: #fef2f2; }

/* Evidence indicators */
.ev-col { display: flex; align-items: center; gap: 5px; }

.ev-ind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: default;
  position: relative;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid;
}

.ev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ev-ind.ev-green { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.ev-ind.ev-green .ev-dot { background: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,.22); }
.ev-ind.ev-red   { background: #ffe4e6; color: #9f1239; border-color: #fda4af; }
.ev-ind.ev-red   .ev-dot { background: #f43f5e; box-shadow: 0 0 0 2px rgba(244,63,94,.2); }
.ev-ind.ev-amber { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.ev-ind.ev-amber .ev-dot { background: #d97706; box-shadow: 0 0 0 2px rgba(217,119,6,.2); }
.ev-ind.ev-gray  { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.ev-ind.ev-gray  .ev-dot { background: #94a3b8; }

.ev-ind:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Action button */
.btn-view-v2 {
  padding: 5px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  text-decoration: none;
}

.btn-view-v2:hover,
.is-selected .btn-view-v2 {
  border-color: #005f7a;
  color: #005f7a;
  background: #f0fbff;
}

/* New analysis button */
.btn-new-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #005f7a;
  color: #fff;
  border-radius: 8px;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}

.btn-new-v2:hover { background: #004a60; }

/* Empty states */
.tcard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: #64748b;
  text-align: center;
}

.tcard-empty p { font-size: 13.5px; }

/* Processing rows in table */
.tr-processing td { opacity: .75; }

.processing-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6366f1;
  font-weight: 500;
}

.processing-dot .spinner-sm {
  width: 10px;
  height: 10px;
  border: 1.5px solid #c7d2fe;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* Failed row badge */
.failed-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}

/* ── Drawer v2 ─────────────────────────────────────────────── */
.drawer-v2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,28,40,.18);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}

.drawer-v2-overlay.is-open { opacity: 1; pointer-events: all; }

.drawer-v2 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -8px 0 40px rgba(20,28,40,.1);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

.drawer-v2.is-open { transform: translateX(0); }

.drawer-v2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.drawer-v2-flight { line-height: 1; }

.drawer-flight-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 20px;
  background: #e8f0fe; color: #1e3a5f;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
}

.drawer-v2-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  transition: all .12s;
}

.drawer-v2-close:hover { background: #f1f5f9; color: #141c28; }

.drawer-v2-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.drawer-v2-expand {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all .12s;
  text-decoration: none;
}
.drawer-v2-expand:hover { background: #f1f5f9; color: #1e3a5f; }

.drawer-v2-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafcff;
  flex-shrink: 0;
  font-size: 12px;
  color: #64748b;
}

.drawer-v2-meta strong { color: #334155; font-weight: 600; }

.drawer-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  color: #475569;
}

.drawer-v2-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-v2-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

/* Evidence cards in drawer */
.drawer-ev-strip {
  display: flex;
  gap: 8px;
}

.drawer-ev-card {
  flex: 1;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid;
}

.drawer-ev-card-icon {
  margin-bottom: 3px;
  opacity: .85;
}

.drawer-ev-card-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.drawer-ev-card-status { font-size: 12px; font-weight: 700; line-height: 1.3; }
.drawer-ev-card-detail { font-size: 10.5px; opacity: .75; line-height: 1.3; }

.drawer-ev-card.green { background: #f0fbff; border-color: #b2e8f4; color: #004e66; }
.drawer-ev-card.red   { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.drawer-ev-card.amber { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.drawer-ev-card.gray  { background: #f8fafc; border-color: #e2e8f0; color: #475569; }

/* Edit form in drawer */
.drawer-edit {
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 16px;
}

.drawer-field { margin-bottom: 10px; }
.drawer-field:last-child { margin-bottom: 0; }
.drawer-field label { display: block; font-size: 12px; font-weight: 500; color: #64748b; margin-bottom: 4px; }

.drawer-field input,
.drawer-field textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  color: #334155;
  outline: none;
  background: #fff;
  transition: border-color .15s;
}

.drawer-field input:focus,
.drawer-field textarea:focus { border-color: #005f7a; }
.drawer-field textarea { min-height: 72px; resize: vertical; }

.drawer-form-actions { display: flex; gap: 8px; margin-top: 12px; }

.btn-drawer-save {
  padding: 8px 18px;
  background: #005f7a;
  color: #fff;
  border-radius: 7px;
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.btn-drawer-save:hover { background: #004a60; }

.btn-drawer-cancel {
  padding: 8px 14px;
  background: none;
  color: #64748b;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.drawer-v2-footer {
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafcff;
}

.btn-drawer-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #005f7a;
  color: #fff;
  border-radius: 8px;
  border: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

.btn-drawer-report:hover { background: #004a60; }

.drawer-petition-cta {
  padding: 8px 20px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drawer-petition-label {
  font-size: 12px;
  color: #94a3b8;
}

.drawer-petition-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #005f7a;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

.drawer-petition-btn:hover { color: #003f52; }

.btn-drawer-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-drawer-share:hover { background: #e2e8f0; color: #1e3a5f; }
.btn-drawer-share:disabled { opacity: .6; cursor: default; }

.drawer-share-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 300px;
  background: #1e3a5f;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  animation: fadeInUp .2s ease;
}
.dst-label { font-weight: 700; margin-bottom: 3px; }
.dst-url { font-size: 11px; color: #94a3b8; word-break: break-all; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.drawer-case-ref { font-size: 12px; color: #94a3b8; }

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

/* ── Drawer evidence strip wrapper ─────────────────────────── */
.drawer-ev-strip-wrap {
  display: flex;
  gap: 8px;
}

/* ── Drawer loading skeleton ───────────────────────────────── */
.drawer-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.drawer-skel {
  background: linear-gradient(90deg, #f1f5f9 25%, #e8edf5 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skel-shine 1.4s infinite;
  border-radius: 6px;
  height: 14px;
}

.drawer-skel--full  { width: 100%; }
.drawer-skel--wide  { width: 80%; }
.drawer-skel--half  { width: 50%; }

@keyframes skel-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Summary grid 2×2 ─────────────────────────────────────── */
.summary-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.summary-card-v2 {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid;
}

.summary-card-v2.green { background: #f0fbff; color: #004e66; border-color: #b2e8f4; }
.summary-card-v2.red   { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.summary-card-v2.amber { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.summary-card-v2.gray  { background: #f8fafc; color: #475569; border-color: #e2e8f0; }

/* ── Flight grid 3×3 ──────────────────────────────────────── */
.flight-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.flight-cell-v2 {
  background: #f8fafc;
  border-radius: 6px;
  padding: 7px 9px;
  border: 1px solid #f1f5f9;
}

.flight-cell-v2__label {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 2px;
}

.flight-cell-v2__val {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.flight-cell-v2__val.late { color: #dc2626; font-weight: 600; }
.flight-cell-v2__val.good { color: #005f7a; font-weight: 600; }
.flight-cell-v2__val.muted { color: #94a3b8; font-weight: 400; }

/* ── Drawer section spacing ───────────────────────────────── */
.drawer-v2-body > div { }

/* ═══════════════════════════════════════════════════════════
   CASE DETAIL — sidebar context + new workspace layout
   ═══════════════════════════════════════════════════════════ */

/* Sidebar case context card */
.sv2-case-ctx {
  margin: 8px 10px 4px;
  padding: 11px 12px;
  background: #f0fbff;
  border: 1px solid #b2e8f4;
  border-radius: 9px;
}
.sv2-case-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #005f7a; font-weight: 600;
  text-decoration: none; margin-bottom: 7px;
}
.sv2-case-back:hover { text-decoration: underline; }
.sv2-case-flight {
  font-size: 15px; font-weight: 800; color: #1e3a5f; letter-spacing: .01em;
}
.sv2-case-meta {
  font-size: 11px; color: #64748b; margin-top: 2px; line-height: 1.4;
}
.sv2-case-tabs {
  display: flex; gap: 4px; margin-top: 10px;
}
.sv2-ctab {
  flex: 1; padding: 6px 0; text-align: center;
  font-size: 11.5px; font-weight: 600; border-radius: 6px;
  border: none; cursor: pointer; font-family: inherit; transition: all .12s;
  background: #fff; color: #64748b; border: 1px solid #e2e8f0;
}
.sv2-ctab.is-active {
  background: #005f7a; color: #fff; border-color: #005f7a;
}
.sv2-ctab:not(.is-active):hover { background: #f8fafc; }

/* Topbar */
.cd-topbar-outer {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
.cd-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 28px 20px;
  max-width: 1200px; margin: 0 auto; box-sizing: border-box; width: 100%;
}
.cd-topbar-left { display: flex; flex-direction: column; gap: 0; }
.cd-back-link { text-decoration: none; transition: opacity .12s; }
.cd-back-link:hover { opacity: .75; }
.cd-back-chevron { transition: transform .12s; }
.cd-back-link:hover .cd-back-chevron { transform: translateX(-2px); }
.cd-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #94a3b8;
}
.cd-breadcrumb a { color: #94a3b8; text-decoration: none; }
.cd-breadcrumb a:hover { color: #005f7a; }
.cd-breadcrumb-sep { color: #cbd5e1; }
.cd-page-title {
  font-size: 24px; font-weight: 800; color: #1e3a5f;
  display: flex; align-items: center; gap: 10px; line-height: 1.15;
}
.cd-title-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  vertical-align: middle; position: relative; top: -1px;
}
.cd-title-badge--done {
  background: #f0fbff; color: #0093b0;
  border: 1px solid #9edff0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.cd-title-badge--done svg { color: #0093b0; }
.cd-topbar-actions { display: flex; align-items: center; gap: 8px; }
.cd-generated-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; color: #94a3b8; white-space: nowrap;
}
.drawer-meta-item--muted { color: #94a3b8; }

.drawer-generated-icon {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
  cursor: default;
  padding: 4px;
}
.cd-copy-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  color: #cbd5e1; transition: color .12s, background .12s;
  flex-shrink: 0; position: relative; top: -1px;
}
.cd-copy-icon-btn:hover { color: #64748b; background: #f1f5f9; }
.cd-copy-icon-btn.is-copied { color: #005f7a; background: #f0fbff; }
.cd-copy-icon-btn::after {
  content: 'Copiado!';
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #f8fafc; font-size: 11px; font-weight: 500;
  padding: 4px 8px; border-radius: 5px; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.cd-copy-icon-btn.is-copied::after { opacity: 1; }
.cd-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: #005f7a; color: #fff;
  border-radius: 8px; border: none; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s; font-family: inherit; text-decoration: none;
}
.cd-btn-primary:hover { background: #004a60; }

.cd-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: #f1f5f9; color: #475569;
  border-radius: 8px; border: 1px solid #e2e8f0; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s; font-family: inherit;
}
.cd-btn-secondary:hover { background: #e2e8f0; color: #1e3a5f; }

/* Content scroll area */
.cd-content {
  flex: 1; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 0;
  max-width: 1200px; margin: 0 auto; box-sizing: border-box; width: 100%;
}
.cd-panel { max-width: 960px; width: 100%; }

/* ── Page-level tabs ── */
.cd-page-tabs-outer {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
.cd-page-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 28px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.cd-ptab {
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .12s;
}
.cd-ptab:hover { color: #1e3a5f; }
.cd-ptab.is-active { color: #005f7a; font-weight: 600; border-bottom-color: #005f7a; }

/* ── Evidence strip (case_detail) ── */
.cd-ev-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.cd-ev-card {
  flex: 1;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cd-ev-card--green { background: #f0fbff; border-color: #b2e8f4; color: #004e66; }
.cd-ev-card--red   { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.cd-ev-card--amber { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.cd-ev-card--gray  { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.cd-ev-card-icon   { margin-bottom: 4px; opacity: .85; }
.cd-ev-card-label  { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.cd-ev-card-status { font-size: 13px; font-weight: 700; line-height: 1.3; }
.cd-ev-card-detail { font-size: 11px; opacity: .75; line-height: 1.3; }

/* ── Resumo sections ── */
.cd-resumo-section { margin-bottom: 20px; }
.cd-resumo-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: #94a3b8; margin-bottom: 10px;
}

/* ── Summary chips grid (2 cols) ── */
.cd-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.cd-summary-chip {
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  border: 1px solid;
  background: #f8fafc; border-color: #e2e8f0; color: #475569;
}
.cd-summary-chip--good { background: #f0fbff; border-color: #b2e8f4; color: #004e66; }
.cd-summary-chip--bad  { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.cd-summary-chip--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.cd-summary-chip--soft { background: #f8fafc; border-color: #e2e8f0; color: #475569; }

/* ── Flight grid (3×3) — mirrors drawer .flight-grid-v2 ── */
.cd-flight-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cd-fgv2-cell {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #f1f5f9;
}
.cd-fgv2-label {
  font-size: 9.5px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px;
}
.cd-fgv2-val   { font-size: 13px; font-weight: 700; color: #1e293b; }
.cd-fgv2-val.good { color: #005f7a; }
.cd-fgv2-val.late { color: #dc2626; }

/* ── Dados panel ── */
.cd-dados-wrap { max-width: 520px; }
.cd-dados-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}
.cd-dados-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.cd-dados-field label { font-size: 13px; font-weight: 600; color: #475569; }
.cd-dados-field input,
.cd-dados-field textarea {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: #1e3a5f;
  background: #fafcff;
  transition: border-color .12s;
  outline: none;
}
.cd-dados-field input:focus,
.cd-dados-field textarea:focus { border-color: #005f7a; }
.cd-dados-field textarea { min-height: 100px; resize: vertical; }
.cd-dados-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
#cd-dados-status { font-size: 12px; margin-left: auto; }

/* ── Resumo panel ── */
.cd-verdict {
  display: flex; align-items: flex-start; gap: 14px;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, #f0fbff, #e0f7fb);
  border: 1px solid #b2e8f4;
}
.cd-verdict--bad {
  background: linear-gradient(135deg, #fff1f2, #fee2e2); border-color: #fecdd3;
}
.cd-verdict--warn {
  background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a;
}
.cd-verdict-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #0093b0; display: flex; align-items: center; justify-content: center;
}
.cd-verdict--bad .cd-verdict-icon { background: #dc2626; }
.cd-verdict--warn .cd-verdict-icon { background: #d97706; }
.cd-verdict-label {
  font-size: 10px; font-weight: 700; color: #0093b0;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px;
}
.cd-verdict--bad .cd-verdict-label { color: #dc2626; }
.cd-verdict--warn .cd-verdict-label { color: #d97706; }
.cd-verdict-title { font-size: 14px; font-weight: 700; color: #004e66; }
.cd-verdict--bad .cd-verdict-title { color: #7f1d1d; }
.cd-verdict--warn .cd-verdict-title { color: #78350f; }

.cd-ev-chips { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cd-ev-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 10px; border: 1px solid #b2e8f4;
  background: #f0fbff; font-size: 13px; color: #004e66; font-weight: 500;
}
.cd-ev-chip--bad  { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.cd-ev-chip--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.cd-ev-chip--soft { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.cd-ev-chip svg { flex-shrink: 0; opacity: .8; }

/* Flight table (resumo) */
.cd-flight-table {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
}
.cd-flight-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #f1f5f9;
}
.cd-flight-row--secondary { border-bottom: none; }
.cd-ft-cell {
  padding: 13px 16px; border-right: 1px solid #f1f5f9;
}
.cd-ft-cell:last-child { border-right: none; }
.cd-ft-label { font-size: 9.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.cd-ft-val { font-size: 13.5px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.cd-ft-val--good { color: #005f7a; }
.cd-ft-val--late { color: #dc2626; }

/* ── Full report panel ── */
.cd-report-hero {
  background: linear-gradient(140deg, #1a3558 0%, #1e3a5f 60%, #1a3558 100%);
  border-radius: 16px; padding: 22px 24px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.cd-report-hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 200px; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(0,184,217,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cd-report-hero-tag {
  font-size: 10px; font-weight: 700; color: #00d4f0;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.cd-report-hero-tag::before {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: #00b8d9; flex-shrink: 0;
}
.cd-report-hero-title { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.cd-report-hero-meta { font-size: 12.5px; color: #94a3b8; }
.cd-report-hero-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap; gap: 8px;
}
.cd-report-date { font-size: 11px; color: #64748b; }
.cd-report-pdf-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 7px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22);
  color: #e2e8f0; font-size: 11.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .12s; font-family: inherit;
}
.cd-report-pdf-btn:hover { background: rgba(255,255,255,.22); }
.cd-source-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.cd-source-chip {
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
  font-size: 10.5px; color: #cbd5e1; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
}
.cd-source-chip svg { opacity: .6; }

/* Report flight grid */
.cd-report-flight-grid {
  border: 1px solid #dde6ef;
  border-radius: 10px;
  overflow: hidden; margin-bottom: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.cd-rg-cell {
  padding: 14px 18px;
  border-right: 1px solid #e8eef5;
  border-bottom: 1px solid #e8eef5;
  background: #fff;
}
.cd-rg-cell:first-child { border-left: 3px solid #00b8d9; padding-left: 15px; }
.cd-rg-cell:nth-child(4n) { border-right: none; }
.cd-rg-cell:nth-last-child(-n+4) { border-bottom: none; }
.cd-rg-label {
  font-size: 9px; font-weight: 700; color: #0093b0;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px;
}
.cd-rg-val { font-size: 14px; font-weight: 700; color: #0d1f2d; }
.cd-rg-val--good { color: #005f7a; }
.cd-rg-val--late { color: #dc2626; }

/* Report sections */
.cd-rs { margin-bottom: 26px; }
.cd-rs-title {
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; margin-bottom: 14px;
}
.cd-rs-title-num {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  background: #0d1f2d; color: #00b8d9;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cd-rs-title-text {
  font-size: 11px; font-weight: 700; color: #0d1f2d;
  text-transform: uppercase; letter-spacing: .1em;
}
.cd-rs-body { font-size: 13.5px; color: #334155; line-height: 1.75; }
.cd-rs-body strong { color: #1e293b; }
.cd-rs-board-dir {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; color: #0093b0;
  text-transform: uppercase; letter-spacing: .1em; font-style: normal;
  margin: 10px 0 6px;
}
.cd-rs-board-dir::before {
  content: '';
  display: inline-block; width: 16px; height: 2px;
  background: #00b8d9; border-radius: 2px;
}

/* Weather card */
.cd-weather-card {
  background: #fff;
  border: 1.5px solid #e0eef6;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.cd-weather-card--adverse { border-color: #fecdd3; }
.cd-weather-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f9ff, #e8f4fa);
  border-bottom: 2px solid #b2e8f4;
}
.cd-weather-card--adverse .cd-weather-head { background: linear-gradient(135deg, #fff5f5, #fee2e2); border-bottom-color: #fca5a5; }
.cd-weather-airport { font-size: 13.5px; font-weight: 800; color: #0d1f2d; display: flex; align-items: center; gap: 8px; }
.cd-weather-icao { font-size: 10px; font-weight: 700; color: #0093b0; background: #e0f4fa; padding: 2px 8px; border-radius: 6px; letter-spacing: .06em; }
.cd-weather-card--adverse .cd-weather-icao { color: #991b1b; background: #fee2e2; }
.cd-weather-card .cd-rs-body { padding: 11px 14px; }

.cd-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
  letter-spacing: .02em; border: 1px solid;
}
.cd-status::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
}
.cd-status--ok   { background: #e0f4fa; color: #005f7a; border-color: #7dd6ea; }
.cd-status--ok::before   { background: #00b8d9; box-shadow: 0 0 0 2px rgba(0,184,217,.22); }
.cd-status--warn { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.cd-status--warn::before { background: #d97706; box-shadow: 0 0 0 2px rgba(217,119,6,.2); }
.cd-status--bad  { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.cd-status--bad::before  { background: #dc2626; box-shadow: 0 0 0 2px rgba(220,38,38,.2); }

/* Tables */
.cd-table-wrap { border-radius: 9px; border: 1px solid #dde3ec; overflow: hidden; }
.cd-board-wrap { margin-top: 12px; }
.cd-table { width: 100%; border-collapse: collapse; }
.cd-table th {
  font-size: 9px; font-weight: 700; color: #0093b0;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 8px 12px; background: #f0f9ff;
  border-bottom: 1px solid #b2e8f4; text-align: left;
}
.cd-table__titlebar { font-size: 11px; font-weight: 600; color: #005f7a; text-transform: none; letter-spacing: 0; background: #f0f9ff; }
.cd-table tbody tr:nth-child(odd)  td { background: #fff; }
.cd-table tbody tr:nth-child(even) td { background: #f4f8fb; }
.cd-table tbody td { padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid #eaeff5; color: #1e293b; }
.cd-table tr:last-child td { border-bottom: none; }
.cd-table tbody tr:hover td { background: #e8f3fa !important; }
.cd-table__row--selected td { background: #e8f6fc !important; }
.cd-table__row--selected td:first-child { border-left: 3px solid #00b8d9; padding-left: 9px; }
.cd-metar-raw { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11px; color: #475569; word-break: break-all; }

/* Analysis + conclusion */
.cd-analysis-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.cd-analysis-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: 9px;
  background: #fafcff; border: 1px solid #f1f5f9;
  font-size: 13.5px; color: #334155; line-height: 1.65;
}
.cd-analysis-item strong { color: #1e293b; }
.cd-analysis-letter {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #e9f0ff; color: #3b5fd4;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.cd-conclusion {
  background: linear-gradient(135deg, #f0fdf7 0%, #e6fcf0 100%);
  border: 1px solid #9edff0; border-left: 4px solid #005f7a;
  border-radius: 10px; padding: 16px 18px; margin-top: 12px;
  font-size: 13.5px; color: #1a4731; line-height: 1.75;
}
.cd-conclusion strong { color: #0a3020; }

/* Footer */
.cd-report-petition-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  margin-top: 8px;
}
.cd-report-petition-label { font-size: 12px; color: #94a3b8; }
#drawer-report-content .cd-report-petition-cta { display: none; }
.cd-report-petition-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: #005f7a;
  text-decoration: none; white-space: nowrap; transition: color .15s;
}
.cd-report-petition-btn:hover { color: #003f52; }

.cd-report-footer {
  border-top: 1px solid #f1f5f9; padding-top: 10px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 3px;
}
.cd-report-footer p {
  font-size: 11px; color: #94a3b8; margin: 0;
  display: flex; align-items: flex-start; gap: 5px; line-height: 1.5;
}
.cd-report-footer p svg { flex-shrink: 0; margin-top: 2px; opacity: .45; }
.cd-report-footer p strong { color: #64748b; }

/* ── Drawer panel tabs (Resumo / Relatório) ── */
.drawer-panel-tabs {
  display: flex; gap: 2px;
  padding: 10px 16px 0;
  background: #fafcff;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.drawer-ptab {
  padding: 7px 14px; border-radius: 7px 7px 0 0;
  border: none; background: none;
  font-size: 12.5px; font-weight: 500; color: #94a3b8;
  cursor: pointer; font-family: inherit; transition: all .12s;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.drawer-ptab.is-active {
  color: #005f7a; font-weight: 700;
  border-bottom-color: #005f7a;
  background: none;
}
.drawer-ptab:not(.is-active):hover { color: #334155; background: #f1f5f9; }

/* ── Report fragment inside drawer — responsive overrides ── */
#drawer-report-content .cd-report-hero { margin-bottom: 14px; padding: 16px 18px; border-radius: 12px; }
#drawer-report-content .cd-report-hero-title { font-size: 15px; }
#drawer-report-content .cd-report-hero-tag { font-size: 9.5px; }
#drawer-report-content .cd-report-pdf-btn { display: none; }

#drawer-report-content .cd-report-flight-grid {
  grid-template-columns: repeat(2, 1fr); margin-bottom: 16px;
}
#drawer-report-content .cd-rg-cell:nth-child(4n) { border-right: 1px solid #f1f5f9; }
#drawer-report-content .cd-rg-cell:nth-last-child(-n+4) { border-bottom: 1px solid #f1f5f9; }
#drawer-report-content .cd-rg-cell:nth-child(2n) { border-right: none; }
#drawer-report-content .cd-rg-cell:nth-last-child(-n+2) { border-bottom: none; }

#drawer-report-content .cd-rs { margin-bottom: 18px; }
#drawer-report-content .cd-rs-title { margin-bottom: 10px; padding-bottom: 8px; }
#drawer-report-content .cd-rs-title-num { width: 18px; height: 18px; font-size: 9px; }

#drawer-report-content .cd-rs-body { font-size: 13px; }
#drawer-report-content .cd-table-wrap { overflow-x: visible; }
#drawer-report-content .cd-table { min-width: 0; width: 100%; }
/* Oculta coluna DATA (2ª col) — redundante no drawer */
#drawer-report-content .cd-table th:nth-child(2),
#drawer-report-content .cd-table td:nth-child(2) { display: none; }
#drawer-report-content .cd-table th { padding: 6px 8px; font-size: 9px; }
#drawer-report-content .cd-table td { padding: 6px 8px; font-size: 11.5px; }
#drawer-report-content .cd-status { font-size: 10px; padding: 2px 7px; }
#drawer-report-content .cd-analysis-item { padding: 9px 12px; font-size: 12.5px; }
#drawer-report-content .cd-analysis-letter { width: 18px; height: 18px; font-size: 9px; }
#drawer-report-content .cd-conclusion { font-size: 12.5px; padding: 13px 15px; }
#drawer-report-content .cd-report-footer p { display: block; }
#drawer-report-content .cd-report-footer p svg { display: none; }

/* ════════════════════════════════════════════════════════════════
   SUPORTE — support.html
   ════════════════════════════════════════════════════════════════ */
/* layout wrapper */
.sp-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 24px 28px 40px;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
/* sem thread: form + lista ocupam 2 colunas igualadas e expandem */
.sp-wrap:not(:has(.sp-col--thread)) {
  grid-template-columns: 1fr 1fr;
}
.sp-col { min-width: 0; }
.sp-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  overflow: hidden;
}
.sp-card-head { padding: 20px 22px 12px; border-bottom: 1px solid #f1f5f9; }
.sp-card-head--thread { padding: 18px 22px 14px; }
.sp-card-title { font-size: 15px; font-weight: 700; color: #1e3a5f; }
.sp-card-sub { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }
.sp-thread-subject { font-size: 15px; font-weight: 700; color: #1e3a5f; }
.sp-thread-meta { font-size: 12px; color: #94a3b8; margin-top: 4px; display: flex; align-items: center; gap: 8px; }

/* form */
.sp-form { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.sp-field { display: flex; flex-direction: column; gap: 5px; }
.sp-label { font-size: 12.5px; font-weight: 500; color: #475569; }
.sp-input {
  width: 100%; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 13.5px; color: #1e3a5f; background: #fff; outline: none;
  transition: border-color .15s; box-sizing: border-box;
  font-family: inherit;
}
.sp-input:focus { border-color: #005f7a; box-shadow: 0 0 0 3px rgba(0,95,122,.08); }
.sp-textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

/* ticket list */
.sp-ticket-list { display: flex; flex-direction: column; }
.sp-ticket {
  display: block; padding: 13px 18px; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; transition: background .12s; position: relative;
}
.sp-ticket:last-child { border-bottom: none; }
.sp-ticket:hover { background: #f8fafc; }
.sp-ticket.is-active { background: #f0f9ff; }
.sp-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.sp-ticket-subject { font-size: 13px; font-weight: 600; color: #1e3a5f; }
.sp-ticket-meta { font-size: 11.5px; color: #94a3b8; margin-bottom: 2px; }
.sp-ticket-preview { font-size: 12.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ticket-badge {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.sp-ticket-badge--green { background: #dcfce7; color: #15803d; }
.sp-ticket-badge--yellow { background: #fef9c3; color: #a16207; }
.sp-ticket-badge--gray { background: #f1f5f9; color: #64748b; }
.sp-ticket-badge--red { background: #fee2e2; color: #dc2626; }
.sp-unread {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: #005f7a; color: #fff; font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* empty state */
.sp-empty { padding: 32px 20px; text-align: center; }
.sp-empty-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #f0f9ff; color: #005f7a;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.sp-empty-title { font-size: 13.5px; font-weight: 600; color: #334155; margin: 0 0 4px; }
.sp-empty-sub { font-size: 12.5px; color: #94a3b8; margin: 0; }

/* thread */
.sp-thread { padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; min-height: 200px; }
.sp-msg { display: flex; flex-direction: column; gap: 4px; max-width: 85%; }
.sp-msg--user { align-self: flex-end; }
.sp-msg--admin { align-self: flex-start; }
.sp-msg-meta { font-size: 11px; color: #94a3b8; display: flex; gap: 6px; }
.sp-msg--user .sp-msg-meta { flex-direction: row-reverse; }
.sp-msg-body {
  padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}
.sp-msg--user .sp-msg-body { background: #005f7a; color: #fff; border-bottom-right-radius: 4px; }
.sp-msg--admin .sp-msg-body { background: #f1f5f9; color: #1e3a5f; border-bottom-left-radius: 4px; }

/* reply */
.sp-reply { padding: 0 22px 20px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.sp-reply .sp-textarea { min-height: 80px; }

@media (max-width: 900px) {
  .sp-wrap { grid-template-columns: 1fr 1fr; }
  .sp-col--thread { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sp-wrap { grid-template-columns: 1fr; padding: 16px 14px 32px; gap: 12px; }
  .sp-wrap:not(:has(.sp-col--thread)) { grid-template-columns: 1fr; }
  .sp-card-head { padding: 16px 18px 12px; }
  .sp-form { padding: 14px 18px 18px; gap: 12px; }
  .sp-input { font-size: 16px; } /* prevent iOS zoom */
}

/* ════════════════════════════════════════════════════════════════
   DASHBOARD — mobile responsive
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .dash-v2 { padding: 16px 14px; gap: 12px; }

  /* Topbar: stack title + button */
  .dash-v2-topbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-new-v2 { width: 100%; justify-content: center; }
  .dash-v2-title { font-size: 20px; }

  /* Stats: 2x2 grid */
  .dash-v2-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-v2 { padding: 11px 12px; }
  .stat-v2-val, .stat-v2-val--link { font-size: 18px; }
  .stat-v2-sub { font-size: 10.5px; }

  /* Toolbar: stack tabs above search */
  .tcard-toolbar { flex-wrap: wrap; gap: 0; padding: 0; }
  .tcard-tabs { width: 100%; border-bottom: 1px solid #f1f5f9; padding: 0 12px; }
  .tcard-toolbar-right { width: 100%; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; }
  .tcard-search { width: 100%; }
  .tcard-search input { width: 100%; flex: 1; }

  /* Table: hide Cliente and Evidências columns, show only Voo + Rota + action */
  .tcard-scroll thead th:nth-child(2),
  .tcard-scroll tbody td:nth-child(2) { display: none; } /* Cliente */
  .tcard-scroll thead th:nth-child(4),
  .tcard-scroll tbody td:nth-child(4) { display: none; } /* Evidências */

  .tcard-scroll tbody td { padding: 10px 12px; }
  .tcard-scroll thead th { padding: 8px 12px; }

  /* Route/date cell: allow wrapping */
  .tcell-route { font-size: 12px; }
  .tcell-date { font-size: 11px; }

  /* Actions: tighter */
  .btn-view-v2 { font-size: 11.5px; padding: 4px 10px; }
}

/* ════════════════════════════════════════════════════════════════
   PROFILE MENU — mobile fix (prevent overflow beyond viewport)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .profile-menu__panel {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(280px, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
  }
}

/* ════════════════════════════════════════════════════════════════
   CASE DETAIL — mobile responsive
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Topbar: tighten padding, stack label e actions */
  .cd-topbar { padding: 16px 16px 14px; flex-wrap: wrap; gap: 6px; }
  .cd-topbar-actions { width: 100%; }
  .cd-generated-label { font-size: .68rem; }

  /* Page title: menor e sem quebra estranha */
  .cd-page-title { font-size: 18px; gap: 7px; flex-wrap: wrap; }

  /* Tabs: reduzir padding lateral */
  .cd-page-tabs { padding: 0 16px; gap: 0; }
  .cd-ptab { padding: 10px 12px; font-size: 13px; }

  /* Content: menos padding */
  .cd-content { padding: 16px 16px; }

  /* Evidence strip: 3 cards em linha, mais compactos */
  .cd-ev-strip { gap: 6px; margin-bottom: 16px; }
  .cd-ev-card { padding: 10px 10px; gap: 1px; }
  .cd-ev-card-icon { margin-bottom: 2px; }
  .cd-ev-card-label { font-size: 8.5px; }
  .cd-ev-card-status { font-size: 11.5px; }
  .cd-ev-card-detail { font-size: 10px; }

  /* Report table: oculta coluna METAR (2ª col), sem scroll lateral */
  #cd-panel-relatorio .cd-table th:nth-child(2),
  #cd-panel-relatorio .cd-table td:nth-child(2) { display: none; }
  /* METAR table: sem scroll (colunas ocultadas) */
  .cd-table-wrap:not(.cd-board-wrap) { overflow-x: hidden; }
  /* Tabelas de voo: scroll lateral habilitado */
  .cd-board-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cd-board-wrap .cd-table { min-width: 480px; }
  /* Oculta coluna Data nas tabelas de voo (reduz colunas sem perder info crítica) */
  .cd-board-wrap .cd-table th:nth-child(2),
  .cd-board-wrap .cd-table td:nth-child(2) { display: none; }
  .cd-table th, .cd-table tbody td { padding: 8px 10px; font-size: 11.5px; }

  /* Report footer: empilha em coluna */
  .cd-report-petition-cta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cd-report-footer p { flex-direction: column; gap: 3px; }
  .cd-report-footer p svg { display: none; }

  /* Summary grid: 1 coluna */
  .cd-summary-grid { grid-template-columns: 1fr; gap: 6px; }
  .cd-summary-chip { font-size: 12px; padding: 10px 12px; }

  /* Flight grid: 2 colunas */
  .cd-flight-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .cd-fgv2-cell { padding: 9px 10px; }
  .cd-fgv2-val { font-size: 12.5px; }

  /* Dados: full width */
  .cd-dados-wrap { max-width: 100%; }
}
