@font-face{font-family:Archivo;src:url('/fonts/archivo.woff2') format('woff2');font-weight:800 900;font-display:swap}
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans.woff2') format('woff2');font-weight:400 600;font-display:swap}

:root {
  color-scheme: dark;
  --bg-main: #070B14;
  --bg-surface: #0E1726;
  --bg-card: rgba(16, 26, 44, 0.85);
  --bg-card-hover: rgba(22, 36, 61, 0.95);
  --bg-card-accent: rgba(245, 158, 11, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-focus: #F59E0B;
  --border-gold: rgba(245, 158, 11, 0.35);
  --text-main: #F8FAFC;
  --text-sub: #94A3B8;
  --text-muted: #64748B;
  --gold: #F59E0B;
  --gold-hover: #D97706;
  --gold-glow: rgba(245, 158, 11, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 12px 32px -4px rgba(0,0,0,0.45), 0 0 0 1px var(--border);
  --shadow-lg: 0 20px 48px -8px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.12);
  font-family: Plex, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

* { box-sizing: border-box; }
.skip {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
.skip:focus {
  top: 16px;
  left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: #070B14;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
html {
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #152338 0%, #070B14 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

header {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

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

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-link:hover { color: var(--gold); }

main {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
  flex: 1;
}

h1, h2, h3 {
  font-family: Archivo, Plex, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.25;
  margin-bottom: 16px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

p, li {
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0 0 16px;
  text-wrap: pretty;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover { color: var(--gold); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

/* === BENTO & CARDS === */
.portal-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
.portal-hero p {
  font-size: 16px;
  color: var(--text-sub);
}

.auth-card {
  max-width: 520px;
  margin: 0 auto 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  text-align: center;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-card p.auth-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  width: 100%;
}

.btn-primary {
  background: var(--gold);
  color: #070B14;
  border-color: var(--gold);
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-google {
  background: #FFFFFF;
  color: #1F2937;
  border-color: #E5E7EB;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 15px;
}
.btn-google:hover {
  background: #F3F4F6;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-google svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-main);
  padding: 10px 20px;
  font-size: 14px;
  width: auto;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-link:hover { color: #EF4444; }

/* === SECURITY BADGES === */
.security-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.security-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.security-item svg {
  color: #10B981;
}

/* === CLIENT PILLARS (3 COLS) === */
.client-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.pillar-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.pillar-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-block;
}
.pillar-card h3 {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 8px;
}
.pillar-card p {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .client-pillars { grid-template-columns: 1fr; }
}
.access-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.access-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.access-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.access-badge.client {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
}

.access-badge.partner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.access-card h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.access-card p {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.access-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.access-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #CBD5E1;
  margin-bottom: 8px;
}
.access-features li span.icon {
  color: #10B981;
  font-weight: bold;
}

/* === LOGGED IN DASHBOARD === */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.user-identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-email {
  font-size: 13px;
  color: var(--text-muted);
}

.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
}
.role-tag.master { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35); color: #F87171; }
.role-tag.admin { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.35); color: #C084FC; }
.role-tag.captador { background: rgba(245, 158, 11, 0.15); border: 1px solid var(--border-gold); color: var(--gold); }
.role-tag.cliente { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.35); color: #38BDF8; }
.role-tag.pending { background: rgba(148, 163, 184, 0.15); border: 1px solid rgba(148, 163, 184, 0.3); color: #94A3B8; }

.nav-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.nav-tab {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.nav-tab:hover, .nav-tab.active {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-gold);
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-family: Plex, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0;
}

.kpi-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  text-align: center;
}
.kpi-number {
  font-family: Archivo, Plex, sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #10B981;
  text-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  letter-spacing: -0.03em;
}
.kpi-label {
  font-family: Plex, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6EE7B7;
  margin-top: 4px;
  line-height: 1;
  white-space: nowrap;
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-status-pill strong {
  color: #10B981;
  font-weight: 700;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  flex-shrink: 0;
}

/* Material / Proposta Card */
.proposal-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(14, 23, 38, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-top: 14px;
  gap: 20px;
  flex-wrap: wrap;
}

.proposal-info h3 {
  font-size: 20px;
  color: #FFF;
  margin-bottom: 4px;
}
.proposal-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}

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

/* Referral link box */
.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #080D18;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 16px 0 12px;
  flex-wrap: wrap;
}
.copy-box code {
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 220px;
  overflow-wrap: anywhere;
  font-family: monospace;
}
.btn-copy {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
}
.ref-sub-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.ref-sub-links code {
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}
.ref-customizer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
}
.ref-customizer summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  user-select: none;
}
.inline-form-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Row list for leads */
.lead-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all 0.2s;
  text-decoration: none;
}
.lead-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.lead-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 15px;
}
.lead-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-novo { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.status-conversa { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.status-proposta { background: rgba(168, 85, 247, 0.15); color: #C084FC; }
.status-concluido { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.status-arquivado { background: rgba(148, 163, 184, 0.15); color: #94A3B8; }

/* Forms */
form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  background: #080D18;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font: 400 15px Plex, sans-serif;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}

footer {
  border-top: 1px solid var(--border);
  max-width: 1140px;
  width: 100%;
  margin: auto auto 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  header {
    padding: 14px 18px;
    gap: 12px;
  }
  .brand-wrapper {
    gap: 10px;
  }
  .brand-wrapper img {
    height: 28px;
  }
  .header-badge {
    font-size: 10px;
    padding: 3px 8px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .header-link {
    font-size: 12.5px;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
  }
  .access-split { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column; }
  .proposal-highlight { flex-direction: column; align-items: flex-start; }
  .proposal-actions { width: 100%; }
  .proposal-actions .btn { width: 100% !important; text-align: center; justify-content: center; }
  main { padding: 32px 16px 60px; max-width: 100vw; overflow-x: hidden; }
  .auth-card { padding: 28px 20px; }
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-right: -16px;
    padding-right: 16px;
    scrollbar-width: none;
    max-width: 100%;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .copy-box {
    flex-direction: column;
    align-items: stretch;
  }
  .copy-box code {
    min-width: 0 !important;
    width: 100%;
    word-break: break-all;
  }
  .btn-copy {
    width: 100% !important;
  }
  .inline-form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .inline-form-row label {
    min-width: 0 !important;
    width: 100%;
  }
  .inline-form-row button {
    width: 100% !important;
  }
  .lead-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .lead-status {
    align-self: flex-start;
  }
  .account {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 440px) {
  header {
    padding: 12px 16px;
  }
  .header-badge {
    display: none;
  }
  .brand-wrapper img {
    height: 25px;
  }
}

/* Portal navigation: sleek glassmorphic pill dock with icons and active state. */
header {
  flex-wrap: wrap;
  gap: 16px;
}
.portal-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 9999px;
  background: rgba(14, 23, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  flex-wrap: nowrap;
}
.portal-nav a,
.portal-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: #CBD5E1;
  background: transparent;
  font-family: Plex, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-nav a svg,
.portal-nav button svg {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.portal-nav form {
  margin: 0;
  display: inline-flex;
}
.portal-nav a:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.07);
}
.portal-nav a.nav-pill-ghost:hover svg {
  transform: translateX(-2px);
}
.portal-nav a.nav-pill-active {
  color: #070B14;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}
.portal-nav a.nav-pill-active svg {
  opacity: 1;
  stroke: #070B14;
}
.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
  flex-shrink: 0;
}
.portal-nav .portal-signout {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
}
.portal-nav .portal-signout:hover {
  color: #FFF;
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
}
.google-help {
  margin: 22px 0 0;
  text-align: left;
  font-size: 13px;
  color: #c3cedd;
}
.google-help summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  padding-block: 10px;
  font-weight: 600;
}
.google-help p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
}
.portal-nav :focus-visible,
.google-help summary:focus-visible {
  outline: 3px solid #D9A10E;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  header {
    gap: 12px;
  }
  .portal-nav {
    width: 100%;
    justify-content: space-between;
  }
  .portal-nav a,
  .portal-nav button {
    padding: 7px 12px;
    font-size: 12px;
    flex: 1;
  }
  .portal-nav form {
    display: inline-flex;
    flex: 1;
  }
  .portal-nav form button {
    width: 100%;
  }
  .google-help {
    font-size: 12px;
  }
}

/* ===== Padrão do site público v9 (27/10/2026): paleta, fontes e topo iguais ao site ===== */
@font-face{font-family:Archivo;src:url('/fonts/archivo.woff2') format('woff2');font-weight:700 900;font-stretch:100% 112%;font-display:swap}
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans.woff2') format('woff2');font-weight:400 700;font-display:swap}
:root{color-scheme:light;
  --bg-main:#F5F5F1;--bg-surface:#EAEBE5;--bg-card:#FFFFFF;--bg-card-hover:#FFFFFF;--bg-card-accent:rgba(217,161,14,.08);
  --border:#D3D6CF;--border-focus:#D9A10E;--border-gold:rgba(217,161,14,.45);
  --text-main:#132033;--text-sub:#4A586B;--text-muted:#6B7686;
  --gold:#D9A10E;--gold-hover:#C08E0B;--gold-glow:rgba(217,161,14,.16);--gold-ink:#8A6200;
  --field:#FFFFFF;--soft:rgba(19,32,51,.04);--soft-2:rgba(19,32,51,.07);
  --shadow-sm:0 1px 2px rgba(19,32,51,.06);
  --shadow-md:0 1px 2px rgba(19,32,51,.06),0 12px 30px -20px rgba(19,32,51,.35),0 0 0 1px var(--border);
  --shadow-lg:0 1px 2px rgba(19,32,51,.06),0 20px 44px -22px rgba(19,32,51,.4),0 0 0 1px var(--border);
  --btn-shadow:0 8px 20px -10px rgba(217,161,14,.75)}
@media (prefers-color-scheme:dark){:root{color-scheme:dark;
  --bg-main:#0D1624;--bg-surface:#132033;--bg-card:#16243A;--bg-card-hover:#1B2C45;--bg-card-accent:rgba(227,174,31,.08);
  --border:#2A3850;--border-focus:#E3AE1F;--border-gold:rgba(227,174,31,.45);
  --text-main:#EEF0EE;--text-sub:#A9B5C4;--text-muted:#8794A6;
  --gold:#E3AE1F;--gold-hover:#F0BE3A;--gold-glow:rgba(227,174,31,.16);--gold-ink:#E3AE1F;
  --field:#0D1624;--soft:rgba(238,240,238,.04);--soft-2:rgba(238,240,238,.08);
  --shadow-sm:none;--shadow-md:0 0 0 1px var(--border);--shadow-lg:0 0 0 1px var(--border);--btn-shadow:none}}
body{background:var(--bg-main);background-attachment:scroll}
h1,h2,h3{font-family:Archivo,Plex,sans-serif;font-stretch:108%;font-weight:800}
.eyebrow{color:var(--gold-ink)}
a:hover{color:var(--gold-ink)}

/* Topo: sólido, 76 px, logo oficial, menu em texto e um botão amarelo */
header.top{position:sticky;top:0;z-index:50;display:block;max-width:none;width:100%;margin:0;padding:0;background:var(--bg-main);border-bottom:1px solid var(--border)}
.top__in{max-width:1140px;margin:0 auto;padding:0 24px;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px}
header.top .brand-wrapper img{height:62px;width:auto;display:block}
header.top .brand-wrapper .on-dark{display:none}
@media (prefers-color-scheme:dark){header.top .brand-wrapper .on-light{display:none}header.top .brand-wrapper .on-dark{display:block}}
header.top .portal-nav{margin-left:auto;display:flex;align-items:center;gap:6px;padding:0;background:none;border:0;box-shadow:none;border-radius:0}
header.top .portal-nav form{margin:0;display:flex}
header.top .portal-nav a,header.top .portal-nav button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;font:600 15px/1 Plex,sans-serif;color:var(--text-main);background:transparent;border:1px solid transparent;cursor:pointer;text-decoration:none;white-space:nowrap}
header.top .portal-nav a:hover,header.top .portal-nav button:hover{background:var(--bg-surface);color:var(--text-main)}
header.top .portal-nav svg,header.top .nav-divider{display:none}
header.top .portal-nav a.nav-pill-active{background:var(--gold);color:#132033;box-shadow:var(--btn-shadow);margin-left:4px}
header.top .portal-nav a.nav-pill-active:hover{background:var(--gold-hover);color:#132033}
header.top .portal-nav .portal-signout{border-color:var(--border)}

/* Componentes que tinham cor fixa do tema escuro */
.btn-primary,.portal-nav a.nav-pill-active{color:#132033}
.btn-primary{box-shadow:var(--btn-shadow)}
.btn-google{background:var(--bg-card);color:var(--text-main);border:1px solid var(--border)}
.btn-secondary{background:var(--soft);color:var(--text-main);border-color:var(--border)}
.btn-secondary:hover{background:var(--soft-2);border-color:var(--text-sub)}
.access-card:hover,.lead-card:hover{border-color:var(--text-sub)}
.access-features li,.header-status-pill{color:var(--text-sub)}
.role-tag.pending,.status-arquivado{color:var(--text-muted)}
.nav-tab{background:var(--soft);color:var(--text-main)}
.count-badge,.ref-sub-links code,.lead-card{background:var(--soft)}
.lead-card:hover{background:var(--soft-2)}
.proposal-info h3{color:var(--text-main)}
.copy-box,input,textarea,select{background:var(--field);color:var(--text-main);border-color:var(--border)}
.header-link{background:var(--soft)}
footer{border-top:1px solid var(--border);color:var(--text-sub)}
footer a{color:var(--text-sub)}

@media (max-width:640px){
  .top__in{padding:0 16px;min-height:68px}
  header.top .brand-wrapper img{height:54px}
  header.top .portal-nav{gap:2px}
  header.top .portal-nav a,header.top .portal-nav button{padding:0 11px;font-size:14px}
}
@media (max-width:360px){header.top .brand-wrapper img{height:46px}header.top .portal-nav a,header.top .portal-nav button{padding:0 9px;font-size:13.5px}}
.google-help summary,details summary{color:var(--text-main)}
