:root {
  --green: #1e8916;
  --green-dark: #176e12;
  --green-soft: #e8f6e6;
  --blue: #1883f1;
  --blue-text: #2563eb;
  --gold: #f9c900;
  --header: #000;
  --bg: #f3f4f6;
  --card: #fff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --danger: #b91c1c;
  --shadow: 0 8px 24px rgba(17, 24, 39, .06);
  --radius: 8px;
  --header-h: 72px;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

:root { color-scheme: light; }
:root[data-theme="dark"] {
  --green-soft: #20911724;
  --bg: #0c111d;
  --card: #16181d;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #2e323a;
  --line-strong: #3f3f46;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-text); text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; letter-spacing: -.03em; }
.logo__word { font-weight: 800; font-size: 20px; font-style: italic; white-space: nowrap; }
.logo--sm .logo__word { font-size: 15px; }
.logo__mark { width: 26px; height: 26px; }
.logo--sm .logo__mark { width: 22px; height: 22px; }

.auth {
  min-height: 100vh;
  background: #0b0b0f;
  color: #e5e7eb;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.auth__card { width: min(440px, 100%); }
.auth h1 { font-size: 26px; font-weight: 800; color: #e2e2e2; margin: 28px 0 6px; }
.auth .lead { color: #9ca3af; margin-bottom: 22px; }
.auth label { display: block; font-size: 14px; margin: 14px 0 6px; }
.auth label span { color: #ef4444; }
.auth input[type="email"], .auth input[type="password"], .auth input[type="text"], .auth input[type="tel"] {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid #2a2e36;
  background: #0f1115; color: #e5e7eb; padding: 0 14px;
}
.auth input:focus { outline: none; border-color: var(--green); }
.auth .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #c1c1c1; margin: 16px 0; }
.auth .check input { margin-top: 3px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; min-height: 44px; padding: 0 16px; font-weight: 700;
  background: var(--green); color: #fff;
}
.btn:hover { background: var(--green-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--block { width: 100%; height: 48px; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn--blue { background: #1a73e8; }
.btn--blue:hover { background: #1664cc; }
.btn--white { background: #fff; color: #111; }
.btn--white:hover { background: #f3f4f6; }
.btn--sm { min-height: 34px; border-radius: 8px; font-size: 13px; padding: 0 12px; }
.ou { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: #6b7280; margin: 16px 0; font-size: 13px; }
.ou::before, .ou::after { content: ""; height: 1px; background: #2a2e36; }
.auth__links { text-align: center; color: #9ca3af; margin-top: 18px; font-size: 14px; }
.auth__links a { color: #7cc2ff; }
.aviso { background: #3b1d1d; color: #fecaca; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }

.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 40;
  background: var(--header); color: #fff; display: flex; align-items: center; gap: 8px;
  padding: 0 18px; box-shadow: 0 6px 10px rgba(0,0,0,.25);
}
.topbar__brand { margin-right: 12px; }
.nav { display: flex; align-items: center; height: 100%; gap: 2px; flex: 1; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__btn, .nav__link {
  background: transparent; color: #fff; border: 0; padding: 8px 14px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; height: 40px;
}
.nav__btn:hover, .nav__link:hover, .nav__item:hover > .nav__btn { color: var(--gold); }
.submenu {
  display: none; position: absolute; top: calc(100% - 8px); left: 0; min-width: 230px;
  background: #fff; color: #111; border: 1px solid #ddd; border-radius: 7px; padding: 6px 0;
  box-shadow: var(--shadow); z-index: 50;
}
:root[data-theme="dark"] .submenu { background: #16181d; color: #e5e7eb; border-color: #3f3f46; }
.nav__item:hover .submenu, .nav__item:focus-within .submenu { display: block; }
.submenu a, .submenu button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  color: inherit; padding: 10px 14px; font-weight: 500;
}
.submenu a:hover, .submenu button:hover { background: #f3f4f6; }
:root[data-theme="dark"] .submenu a:hover, :root[data-theme="dark"] .submenu button:hover { background: #ffffff10; }
.menu-ia {
  margin-left: auto; background: linear-gradient(90deg, #209117, #1570d6); color: #fff;
  border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; letter-spacing: .02em;
}
.ia-panel { right: 0; left: auto; width: 320px; padding: 8px; }
.ia-panel a { border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.selo { font-size: 10px; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 2px 6px; background: var(--gold); color: #111; }
.selo--novo { background: var(--green); color: #fff; }
.selo--breve { background: #e5e7eb; color: #374151; }
.tema { display: flex; margin-left: 12px; background: #1a1a1a; border: 1px solid #3a3a3a; border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.tema button { border: 0; background: transparent; color: #d1d5db; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.tema button.is-on { background: #fff; color: #111; }
.userbox { position: relative; margin-left: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-weight: 800;
}
.userbox .submenu { left: auto; right: 0; min-width: 220px; }
.userbox:hover .submenu, .userbox:focus-within .submenu { display: block; }
.burger { display: none; background: transparent; color: #fff; border: 0; font-size: 22px; }

.page { padding: calc(var(--header-h) + 22px) 22px 48px; max-width: 1180px; margin: 0 auto; }
.page__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.page__head h1 { font-size: 26px; font-weight: 800; }
.page__head p { color: var(--muted); margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(180deg, #11182714, transparent); }
:root[data-theme="dark"] .card::before { background: linear-gradient(180deg, #ffffff14, transparent); }
.kpi strong { display: block; font-size: 28px; margin-top: 6px; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; }
.orgaos-lista { display: flex; flex-direction: column; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.section-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.chip--on, .tag { background: #dbeafe; color: #1e3a8a; border-color: #bfdbfe; }
:root[data-theme="dark"] .chip--on, :root[data-theme="dark"] .tag { background: #1e3a8a55; color: #dbeafe; }
.tag { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.tag--gold { background: var(--gold); color: #111; border: 0; }
.tag--green { background: #1a7a12; color: #fff; border: 0; }
.tag--teal { background: #0ad5c1; color: #111; border: 0; }
.funil { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.funil__passo { background: var(--green-soft); border-radius: 8px; padding: 10px; text-align: center; }
.funil__passo b { display: block; font-size: 20px; }
.funil__passo span { font-size: 12px; color: var(--muted); }
.lista { display: flex; flex-direction: column; gap: 8px; }
.linha { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.linha:last-child { border-bottom: 0; }

.busca { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px auto 16px; max-width: 960px; }
.field select.select-modo {
  appearance: none;
  background-color: #16181d;
  color: #e5e7eb;
  border: 1px solid #2a2e36;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 42px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%239ca3af' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select.select-modo:has(option[value=""]:checked) { color: #9ca3af; }
.intervalo-field { position: relative; }
.intervalo {
  width: 100%;
  min-height: 44px;
  border: 1px solid #2a2e36;
  border-radius: 8px;
  background: #16181d;
  color: #f5f5f5;
  font-weight: 600;
  text-align: center;
}
.intervalo__pop {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #16181d;
  color: #f5f5f5;
}
.intervalo__pop[hidden] { display: none; }
.intervalo__pop input { color-scheme: dark; }
.busca input, .field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--card); border-radius: 8px;
  min-height: 44px; padding: 8px 12px;
}
.busca input { flex: 1; }
.links-rapidos { display: flex; gap: 14px; justify-content: flex-end; max-width: 960px; margin: -8px auto 12px; font-size: 13px; font-weight: 600; }
.op { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding: 16px 18px; }
.op__titulo { color: #5b9fd4; font-weight: 700; font-size: 15px; line-height: 1.35; }
:root[data-theme="light"] .op__titulo { color: #1a6fb5; }
.op__titulo:hover { text-decoration: underline; }
.op__objeto { margin: 0; color: var(--muted); line-height: 1.45; text-transform: uppercase; font-size: 13px; }
.op__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.op__cats span {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; color: #8fd98a; background: #14351a; border: 1px solid #2f6b2c;
}
:root[data-theme="light"] .op__cats span { color: #1e8916; background: #e8f6e6; border-color: #b7e0b2; }
.op__quando {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0;
  font-size: 14px; color: var(--text);
}
.op__quando svg { flex: 0 0 auto; color: var(--muted); }
.op__quando strong { font-weight: 700; }
.op__quando span { color: var(--muted); font-weight: 500; }
.op__rodape { display: flex; flex-wrap: wrap; gap: 8px; }
.op__rodape > span {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line-strong); background: transparent;
}
.op__top, .op__meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.op__orgao { color: var(--muted); font-size: 14px; }
.contador { font-weight: 800; color: var(--green); font-size: 13px; }
.pagina-info { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

.kanban { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 10px; align-items: start; }
.coluna { background: color-mix(in srgb, var(--card) 70%, var(--bg)); border: 1px dashed var(--line-strong); border-radius: 10px; min-height: 240px; padding: 8px; }
.coluna header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; padding: 6px; }
.deal { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; cursor: grab; }
.deal small { color: var(--muted); display: block; margin-top: 4px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.toolbar select, .toolbar input { min-height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); padding: 0 10px; }

.page:has(.quadro) { max-width: none; width: 100%; margin: 0; padding: var(--header-h) 0 0; min-height: 100vh; background: #0b0d11; }
.quadro { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); background: #0b0d11; color: #f3f4f6; }
.quadro__abas { display: flex; gap: 22px; align-items: center; padding: 8px 16px 0; border-bottom: 1px solid #23262d; }
.quadro__abas button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #9ca3af; padding: 10px 2px; font-weight: 600; }
.quadro__abas .is-ativa { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.quadro__abas small { font-size: 11px; font-weight: 500; color: #6b7280; }
.quadro__barra { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; }
.quadro__esq, .quadro__dir { display: flex; gap: 8px; align-items: center; }
.quadro__esq { flex: 1; min-width: 0; }
.quadro #empresa { width: 210px; flex: none; }
.quadro select, .quadro__btn, .quadro__icone {
  background: #16181d; color: #e5e7eb; border: 1px solid #2c313a; border-radius: 8px; min-height: 36px; padding: 0 12px;
}
.quadro__btn { display: inline-flex; align-items: center; text-decoration: none; color: #e5e7eb; font-weight: 600; font-size: 14px; }
.quadro__btn.is-on, .quadro__icone.is-on { border-color: #f3f4f6; }
.quadro__btn[hidden] { display: none; }
.quadro__icone { width: 36px; padding: 0; display: grid; place-items: center; }
.quadro__busca { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; background: #121417; border: 1px solid #2c313a; border-radius: 8px; padding: 0 10px; }
.quadro__busca input { flex: 1; min-height: 36px; border: 0; background: transparent; outline: none; color: #f3f4f6; }
.quadro .kanban { flex: 1; align-items: stretch; gap: 8px; padding: 0 12px 12px; min-height: 0; }
.quadro .coluna { background: #121418; border: 1px solid #23262d; border-top-width: 3px; border-top-style: solid; border-radius: 10px; min-height: calc(100vh - var(--header-h) - 118px); padding: 0; display: flex; flex-direction: column; }
.quadro .coluna[data-etapa="oportunidade"] { border-top-color: #22c55e; }
.quadro .coluna[data-etapa="qualificacao"] { border-top-color: #a855f7; }
.quadro .coluna[data-etapa="disputa"] { border-top-color: #6366f1; }
.quadro .coluna[data-etapa="classificacao"] { border-top-color: #f97316; }
.quadro .coluna[data-etapa="contrato"] { border-top-color: #6b7280; }
.quadro .coluna header { padding: 12px 12px 8px; font-size: 14px; font-weight: 700; }
.quadro .coluna header b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #2a2d33; display: grid; place-items: center; font-size: 12px; }
.coluna__corpo { overflow: auto; flex: 1; }
.coluna__vazio { margin: 8px; min-height: 92px; border: 1px dashed #3a3d44; border-radius: 10px; color: #9ca3af; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; text-align: center; padding: 12px; }
.coluna__vazio[hidden] { display: none; }
.quadro .deal { position: relative; background: #1c1f26; border: 1px solid #2c313a; border-radius: 12px; margin: 8px; padding: 12px 12px 10px; color: #f5f5f5; }
.quadro .deal a { color: inherit; display: flex; flex-direction: column; gap: 8px; }
.quadro .deal strong { font-size: 14px; line-height: 1.35; }
.deal__orgao, .deal__fonte { color: #9ca3af; font-size: 13px; }
.deal__fonte { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal__quando { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #d1d5db; font-size: 13px; }
.deal__quando b { color: #4ade80; font-weight: 600; white-space: nowrap; }
.deal__quando b.is-passado { color: #9ca3af; }
.deal__tag { align-self: flex-start; border: 1px solid #3a3d44; border-radius: 999px; padding: 2px 8px; font-size: 12px; color: #e5e7eb; }
.deal__tarefas { display: flex; align-items: center; gap: 6px; color: #d1d5db; font-size: 13px; }
.deal__marca { display: none; position: absolute; top: 10px; right: 10px; }
.quadro.is-selecao .deal__marca { display: block; }
.deal__marca input { width: 16px; height: 16px; accent-color: #1e8916; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow, .cal__dia { text-align: center; font-size: 12px; }
.cal__dow { color: var(--muted); font-weight: 700; }
.cal__dia { min-height: 72px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 6px; text-align: left; }
.cal__dia.is-out { opacity: .4; }
.cal__dia.is-today { outline: 2px solid var(--green); }
.cal__evento { display: block; margin-top: 4px; font-size: 11px; background: var(--green-soft); border-radius: 4px; padding: 2px 4px; color: var(--text); }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.bars div { flex: 1; background: linear-gradient(#3b82f6, var(--green)); border-radius: 6px 6px 0 0; min-height: 4px; position: relative; }
.bars span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.mapa { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.mapa button { border: 0; border-radius: 6px; min-height: 42px; font-weight: 800; color: #111; }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 80; display: grid; place-items: center; padding: 18px; }
.modal { width: min(860px, 100%); max-height: min(88vh, 900px); overflow: auto; background: var(--card); color: var(--text); border-radius: 12px; padding: 18px; }
.modal h2 { font-size: 20px; margin-bottom: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-weight: 500; font-size: 12px; }
.portais, .estados, .modalidades { background: #1e2126; color: #f3f4f6; border-radius: 12px; padding: 16px 12px 14px; }
.portais__head { font-size: 15px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.checks--portais, .checks--modalidades { justify-content: center; gap: 8px; }
.modalidade-chip {
  position: relative;
  justify-content: center;
  background: #3a3d44;
  color: #f3f4f6;
  border: 0 !important;
  border-radius: 999px;
  padding: 10px 18px !important;
  font-size: 14px;
  font-weight: 600;
}
.modalidade-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.modalidade-chip:has(input:checked) { background: #1e8916; color: #fff; }
.portal-chip {
  position: relative;
  background: #2a2d33;
  color: #f3f4f6;
  border: 1px solid #3a3e46 !important;
  border-radius: 999px;
  padding: 6px 12px 6px 8px !important;
  font-size: 13px;
  font-weight: 600;
}
.portal-chip img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; background: #fff; }
.portal-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.portal-chip:has(input:checked) { box-shadow: inset 0 0 0 2px #1e8916; }
.portais__acoes { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.portais__acoes button { background: none; border: 0; color: var(--blue-text); font-weight: 600; text-decoration: underline; padding: 0; }
.checks--ufs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.uf-chip {
  position: relative;
  width: calc((100% - 96px) / 13);
  min-width: 42px;
  justify-content: center;
  background: #3a3d44;
  color: #f3f4f6;
  border: 0 !important;
  border-radius: 999px;
  padding: 8px 0 !important;
  font-size: 13px;
  font-weight: 700;
}
.uf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uf-chip:has(input:checked) { background: #1e8916; color: #fff; }
@media (max-width: 720px) {
  .uf-chip { width: calc((100% - 48px) / 7); }
}
.filtros-extra { display: flex; flex-direction: column; gap: 12px; }
.filtro-acc { background: #1e2126; color: #f3f4f6; border-radius: 12px; padding: 4px 16px 14px; }
.filtro-acc:not([open]) { padding-bottom: 4px; }
.filtro-acc summary {
  position: relative;
  list-style: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
}
.filtro-acc summary::-webkit-details-marker { display: none; }
.filtro-acc summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8eb7ff;
  border-bottom: 2px solid #8eb7ff;
  transform: translateY(-70%) rotate(45deg);
}
.filtro-acc[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.filtro-acc__dica { margin: 4px 0 12px; font-size: 14px; font-weight: 500; color: #e5e7eb; }
.orgao-busca { position: relative; }
.orgao-busca__btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #121417;
  color: #9ca3af;
  text-align: left;
  padding: 10px 36px 10px 14px;
  font-weight: 500;
  position: relative;
}
.orgao-busca__btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #9ca3af;
  border-bottom: 1.5px solid #9ca3af;
  transform: translateY(-70%) rotate(45deg);
}
.orgao-busca__pop {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #121417;
  border-radius: 10px;
  padding: 8px;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.orgao-busca__pop[hidden] { display: none; }
.orgao-busca__pop input { margin-bottom: 8px; }
.filtros-extra input {
  background: #121417;
  color: #f5f5f5;
  border: 0;
}
.orgao-opcao {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}
.orgao-opcao:hover { background: #1e2126; }
.orgao-opcao input { width: 16px; height: 16px; min-height: 16px; padding: 0; flex: none; accent-color: #1e8916; }
.orgao-busca__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.orgao-busca__chips:empty { display: none; }
.orgao-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e8916;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.orgao-chip button { background: none; border: 0; color: #fff; padding: 0; font-size: 14px; }
.filtro-acc__valores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filtro-acc__valores label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.filtro-acc__toggles { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 6px 0 4px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: #6b7280; position: relative; flex: none; }
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a1d22;
  transition: transform .15s ease;
}
.switch input:checked + span { background: #1e8916; }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; }
.modal__actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jornal-nome { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 13px; font-weight: 600; }
.jornal-nome[hidden] { display: none; }
.jornal-nome input { min-width: 220px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; background: var(--card); }
.modal--escuro { position: relative; width: min(720px, 100%); background: #1c1f26; color: #f5f5f5; padding: 28px 36px 22px; border-radius: 16px; }
.modal--escuro h2 { text-align: center; font-size: 22px; font-weight: 700; margin: 0; }
.wizard-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: #d1d5db; font-size: 22px; line-height: 1; }
.trilha { display: flex; justify-content: center; align-items: center; list-style: none; padding: 0; margin: 22px auto 6px; }
.trilha li { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f4f4f5; color: #111; font-weight: 700; position: relative; }
.trilha li.is-feito, .trilha li.is-atual { background: #1e8916; color: #fff; }
.trilha li:not(:last-child) { margin-right: 78px; }
.trilha li:not(:last-child)::after { content: ""; position: absolute; left: 28px; top: 12px; width: 78px; height: 3px; background: #3a3f48; }
.trilha li.is-feito::after { background: #1e8916; }
.wizard-texto { text-align: center; color: #e5e7eb; margin: 18px 0 12px; font-size: 15px; }
.wizard-busca { position: relative; margin-bottom: 14px; }
.wizard-busca input, .negocio-wizard input[type="text"], .negocio-wizard select {
  width: 100%; min-height: 44px; border-radius: 8px; border: 1px solid #2c313a; background: #12151c; color: #f5f5f5; padding: 8px 12px;
}
.wizard-busca input { padding-left: 38px; }
.wizard-busca svg { position: absolute; left: 12px; top: 12px; }
.item-lista { border: 1px solid #2c313a; border-radius: 10px; background: #14171d; max-height: 280px; overflow: auto; }
.item-lista label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid #2a2e36; font-weight: 600; }
.item-lista label:last-child { border-bottom: 0; }
.item-lista input { width: 16px; height: 16px; min-height: 16px; margin-top: 2px; accent-color: #1e8916; }
.item-lista b { margin-right: 10px; }
.wizard-link { margin: 8px 0 16px; font-size: 14px; }
.wizard-link a { color: #3b82f6; }
.wizard-resumo { margin-top: 14px; font-weight: 700; }
.wizard-tarefas { list-style: none; padding: 0; margin: 8px 0; }
.wizard-tarefas li { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 14px; }
.wizard-nota { color: #9ca3af; font-size: 13px; line-height: 1.45; }
.negocio-wizard__acoes { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.negocio-wizard__acoes .btn { min-width: 110px; border-radius: 10px; }
.negocio-wizard__acoes .btn[hidden] { display: none; }
.btn--voltar { background: #2a2d33; color: #fff; border: 0; }

.chat { display: flex; flex-direction: column; gap: 8px; }
.bolha { border-radius: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.4; }
.bolha--ia { background: var(--green-soft); }
.bolha--eu { background: #dbeafe; margin-left: 24px; }
:root[data-theme="dark"] .bolha--eu { background: #1e3a8a55; }
.nota { color: var(--muted); font-size: 12px; }

.hero-ia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.passo { font-size: 13px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.nota-letra { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #111; }
.nota-A { background: #86efac; } .nota-B { background: var(--gold); } .nota-C { background: #fca5a5; }
.score { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.score span { display: block; height: 100%; background: var(--green); }

.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast { background: #111827; color: #fff; border-radius: 8px; padding: 10px 12px; max-width: 320px; }
.toast--erro { background: var(--danger); }

.page:has(.mercado) { max-width: none; width: 100%; margin: 0; padding: calc(var(--header-h) + 18px) 22px 48px; min-height: 100vh; background: #101216; color: #f3f4f6; }
.page:has(.prospeccao) { max-width: none; width: 100%; margin: 0; padding: var(--header-h) 0 0; height: 100vh; overflow: hidden; background: #101216; color: #f3f4f6; display: flex; flex-direction: column; }
.prospeccao { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #101216; }
.prospeccao__topo { display: flex; align-items: center; gap: 10px; padding: 14px 22px 8px; }
.prospeccao__topo strong { display: block; font-size: 16px; }
.prospeccao__topo small { color: #9ca3af; font-size: 12px; }
.prospeccao__logo { width: 28px; height: 28px; border-radius: 8px; background: #1e8916; color: #fff; display: grid; place-items: center; flex: none; }
.prospeccao__topo button, .prospeccao__topo a { margin-left: 4px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #9ca3af; display: grid; place-items: center; }
.prospeccao__topo button { margin-left: auto; }
.prospeccao__topo button:hover, .prospeccao__topo a:hover { background: #1a1d24; color: #fff; }
.prospeccao__cota { padding: 4px 22px 12px; }
.prospeccao__cota div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.prospeccao__cota span { color: #9ca3af; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prospeccao__cota b { color: #3dde22; font-size: 13px; font-weight: 700; }
.prospeccao__cota i { display: block; height: 3px; margin-top: 6px; background: #1e8916; border-radius: 99px; }
.prospeccao__chat { flex: 1; overflow: auto; padding: 18px 7% 8px; }
.prospeccao__eu { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.prospeccao__eu span { background: #1e8916; color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.prospeccao__ia { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.prospeccao__seta { width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #1e8916; flex: none; position: relative; }
.prospeccao__seta::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 7px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.prospeccao__ia p { color: #e5e7eb; line-height: 1.5; margin-top: 8px; }
.prospecto { margin-bottom: 14px; }
.prospecto h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.prospecto h2 svg { color: #d1d5db; flex: none; }
.prospecto ul { margin: 0; padding-left: 18px; color: #e5e7eb; }
.prospecto li { margin: 3px 0; line-height: 1.45; }
.prospecto li::marker { color: #3dde22; }
.prospeccao__form { display: flex; align-items: center; gap: 8px; margin: 8px 7% 18px; background: #1a1d24; border: 1px solid #2c313a; border-radius: 12px; padding: 6px 6px 6px 14px; }
.prospeccao__form input { flex: 1; min-height: 40px; border: 0; background: transparent; color: #f3f4f6; outline: none; }
.prospeccao__form button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #1e8916; color: #fff; display: grid; place-items: center; flex: none; }
.mercado { max-width: 1080px; margin: 0 auto; }
.mercado__intro { text-align: center; color: #d1d5db; font-size: 14px; margin-bottom: 16px; }
.mercado__busca { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; background: #1a1d24; border: 1px solid #2c313a; border-radius: 10px; padding: 0 8px 0 14px; }
.mercado__busca input { flex: 1; min-height: 46px; border: 0; background: transparent; color: #f3f4f6; outline: none; }
.mercado__busca button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #e5e7eb; display: grid; place-items: center; }
.mercado__links { display: flex; justify-content: center; gap: 22px; margin: 14px 0 18px; }
.mercado__links button, .mercado__links a { background: none; border: 0; color: #3b82f6; font-weight: 600; font-size: 14px; padding: 0; }
.mercado__links .is-on { text-decoration: underline; }
.mercado__periodo { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 860px; margin: 0 auto 16px; }
.mercado__periodo > span { color: #9ca3af; font-size: 13px; font-weight: 600; }
.mercado__periodo button { background: #1a1d24; border: 1px solid #2c313a; color: #d1d5db; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.mercado__periodo button.is-on { background: #1e8916; border-color: #1e8916; color: #fff; }
.mercado__periodo label { display: flex; align-items: center; gap: 6px; color: #9ca3af; font-size: 12px; }
.mercado__periodo input { min-height: 34px; border: 1px solid #2c313a; border-radius: 8px; background: #16181d; color: #f3f4f6; padding: 0 8px; }
.mercado__filtros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 760px; margin: -6px auto 16px; }
.mercado__filtros[hidden] { display: none; }
.mercado__filtros label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #9ca3af; }
.mercado__filtros input, .mercado__filtros select { min-height: 38px; border: 1px solid #2c313a; border-radius: 8px; background: #16181d; color: #f3f4f6; padding: 0 10px; }
.mercado__painel { display: grid; grid-template-columns: minmax(240px, .9fr) 1.3fr; gap: 18px 28px; align-items: center; border: 1px solid #2a2e36; border-radius: 12px; background: #14171c; padding: 22px 22px 16px; }
.mercado__mapa-box { position: relative; }
.mercado__mapa { width: 100%; height: auto; display: block; }
.mercado__mapa path { stroke: #edf8e8; stroke-width: .8; cursor: pointer; }
.mercado__mapa path:hover { stroke: #fff; stroke-width: 1.6; }
.mapa__dica { position: absolute; z-index: 4; width: 210px; pointer-events: none; background: #1b2330; color: #e5e7eb; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.35; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.mapa__dica[hidden] { display: none; }
.mapa__dica b { display: block; margin-bottom: 2px; }
.mercado__serie { min-width: 0; }
.serie { display: flex; gap: 8px; height: 190px; }
.serie__eixo { display: flex; flex-direction: column; justify-content: space-between; color: #9ca3af; font-size: 11px; width: 42px; text-align: right; }
.serie__plot { flex: 1; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid #3a3f48; }
.serie__col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.serie__col i { display: block; width: 100%; background: #2f9e22; border-radius: 2px 2px 0 0; }
.serie__dica { display: none; position: absolute; left: 50%; bottom: calc(100% - 28px); transform: translateX(-50%); width: 180px; background: #1b2330; color: #e5e7eb; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.35; z-index: 2; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.serie__dica b { display: block; margin-bottom: 2px; }
.serie__col:hover .serie__dica { display: block; }
.serie__rotulos { display: flex; gap: 8px; margin-left: 50px; margin-top: 6px; }
.serie__rotulos span { flex: 1; text-align: center; color: #9ca3af; font-size: 10px; letter-spacing: .03em; }
.mercado__nota { display: flex; gap: 8px; align-items: flex-start; color: #9ca3af; font-size: 12px; line-height: 1.4; margin-top: 14px; }
.mercado__nota i { width: 10px; height: 10px; margin-top: 3px; background: #2f9e22; flex: none; }
.mercado__total { grid-column: 2; border: 1px solid #1f8f18; border-radius: 8px; padding: 14px 16px 12px; }
.mercado__total strong { display: block; color: #3dde22; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.mercado__total p { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #3dde22; font-weight: 700; margin-top: 4px; }
.mercado__total a { display: inline-flex; align-items: center; gap: 6px; color: #7eb6ff; font-weight: 600; font-size: 13px; }
.mercado__angulos { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 28px 0 16px; color: #9ca3af; font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.mercado__angulos::before, .mercado__angulos::after { content: ""; height: 1px; width: 72px; background: #3a3f48; }
.mercado__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.angulo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 168px; background: #1a1d24; border: 1px solid #2c313a; border-radius: 12px; padding: 16px; color: #f3f4f6; }
.angulo svg { width: 22px; height: 22px; color: #d1d5db; margin-bottom: 8px; }
.angulo span { color: #d1d5db; font-size: 14px; }
.angulo strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.angulo small { color: #9ca3af; font-size: 13px; }
.angulo em { margin-top: auto; color: #3b82f6; font-style: normal; font-weight: 600; font-size: 14px; padding-top: 12px; }
.mercado__voltar { color: #7eb6ff; font-weight: 600; font-size: 14px; }
.mercado__titulo { font-size: 26px; font-weight: 800; margin: 12px 0 4px; }
.mercado__lista { border: 1px solid #2a2e36; border-radius: 12px; background: #14171c; overflow: auto; }
.mercado__lista table { width: 100%; border-collapse: collapse; }
.mercado__lista th, .mercado__lista td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #2a2e36; vertical-align: top; }
.mercado__lista th { color: #9ca3af; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.mercado__lista a { color: #7eb6ff; font-weight: 700; }
.mercado__lista .nota { color: #9ca3af; margin-top: 2px; }
.mercado__vazio { margin: 0; padding: 18px 16px; color: #d1d5db; }
.mercado__paginas { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: #9ca3af; }
.mercado__paginas a { color: #7eb6ff; font-weight: 700; }
.page:has(.empresa) { max-width: none; width: 100%; margin: 0; padding: calc(var(--header-h) + 28px) 28px 48px; min-height: 100vh; background: #10141c; color: #f3f4f6; }
.empresa { max-width: 1080px; margin: 0 auto; }
.empresa__cabeca { text-align: center; margin-bottom: 18px; }
.empresa__cabeca h1 { font-size: 28px; font-weight: 800; }
.empresa__cabeca p { color: #c5cad3; margin-top: 6px; }
.empresa__periodo { display: flex; justify-content: flex-end; align-items: center; gap: 8px; max-width: 920px; margin: 16px auto 0; }
.empresa__periodo span, .empresa__periodo b { color: #9ca3af; font-size: 12px; font-weight: 700; }
.empresa__periodo input { min-height: 34px; border: 1px solid #2c3340; border-radius: 8px; background: #0c0f14; color: #f3f4f6; padding: 0 8px; }
.empresa__campo { position: relative; max-width: 920px; margin: 14px auto 0; }
.empresa__busca { display: flex; align-items: center; gap: 8px; background: #141820; border: 1px solid #2c3340; border-radius: 8px; padding: 0 8px 0 14px; }
.empresa__busca input { flex: 1; min-height: 48px; border: 0; background: transparent; color: #f3f4f6; outline: none; }
.empresa__busca button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #d1d5db; display: grid; place-items: center; }
.empresa__busca button[hidden] { display: none; }
.empresa__sugestoes { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: #1b202a; border: 1px solid #2c3340; border-radius: 8px; overflow: hidden; }
.empresa__sugestoes[hidden] { display: none; }
.empresa__sugestoes button { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: #f3f4f6; padding: 10px 14px; }
.empresa__sugestoes button:hover { background: #242a36; }
.empresa__atalho { text-align: center; margin: 12px 0 16px; }
.empresa__atalho a { display: inline-flex; align-items: center; gap: 6px; color: #7eb6ff; font-weight: 600; }
.empresa__abas { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.empresa__abas button { background: #1a1f29; border: 1px solid #2c3340; color: #d1d5db; border-radius: 8px; padding: 8px 14px; font-weight: 700; }
.empresa__abas button.is-on { background: #2563eb; border-color: #2563eb; color: #fff; }
.empresa__nome { color: #d1d5db; font-size: 13px; font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; }
.empresa__aviso { color: #9ca3af; font-size: 13px; line-height: 1.45; margin: 0 0 14px; }
.empresa__vazio, .empresa__nota { color: #c5cad3; }
.empresa__bloco { background: #171b24; border: 1px solid #2a3140; border-radius: 10px; padding: 16px 18px 14px; margin-bottom: 12px; }
.empresa__bloco h2 { display: flex; align-items: center; gap: 8px; color: #9ca3af; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.empresa__nums { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.empresa__nums strong { display: block; font-size: 22px; font-weight: 800; }
.empresa__nums span { display: block; margin-top: 4px; color: #9ca3af; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.empresa__nums .is-verde { color: #3dde22; }
.empresa__nums .is-vermelho { color: #f07171; }
.empresa__nums .is-laranja { color: #f5a524; }
.empresa__graficos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empresa__pizza > div { display: flex; align-items: center; gap: 18px; }
.empresa__pizza svg { width: 180px; height: 180px; flex: none; }
.empresa__legenda { list-style: none; color: #d1d5db; font-size: 13px; }
.empresa__legenda li { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.empresa__legenda i { width: 10px; height: 10px; border-radius: 50%; }
.empresa__barra { height: 28px; margin: 10px 0; background: transparent; }
.empresa__barra i { display: block; height: 100%; background: #3b82f6; border-radius: 2px; }
.empresa__barra--curta { height: 10px; }
.empresa__motivos { margin-top: 8px; }
.empresa__motivos header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.empresa__motivos h2 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.empresa__motivos header button { border: 1px solid #3b82f6; color: #93c5fd; background: transparent; border-radius: 8px; padding: 6px 12px; font-weight: 700; }
.empresa__motivos ul { list-style: none; }
.empresa__motivos li { display: flex; align-items: center; gap: 10px; background: #141820; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.empresa__motivos li i { background: #7f1d1d; color: #fecaca; font-style: normal; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 3px 6px; }
.empresa__motivos [data-lista="inabil"] li i { background: #7c4a03; color: #fde68a; }
.empresa__motivos li span { flex: 1; }
.empresa__motivos li b { font-weight: 800; }
.empresa__grafico { background: #171b24; border: 1px solid #2a3140; border-radius: 10px; padding: 16px 16px 8px; margin-bottom: 14px; }
.empresa__grafico h2 { color: #9ca3af; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin: 0 0 4px; }
.empresa__grafico svg { width: 100%; height: auto; display: block; }
.empresa__ufs table { width: 100%; border-collapse: collapse; }
.empresa__ufs th { text-align: left; color: #9ca3af; font-size: 13px; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid #2a3140; }
.empresa__ufs td { padding: 9px 12px; border-bottom: 1px solid #232833; color: #e5e7eb; font-size: 13px; }
.empresa__ufs th:last-child, .empresa__ufs td:last-child { text-align: right; }
.empresa__ufs td[colspan] { text-align: left; }
.empresa [hidden] { display: none; }
.carga__job { margin-bottom: 12px; }
.carga__etapa { margin: 14px 0; }
.carga__etapa .op__top span { color: var(--muted); font-size: 13px; }
.carga__barra { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.carga__barra i { display: block; height: 100%; background: var(--green); }
.carga__log { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.carga .page__head { align-items: center; }

:root:not([data-theme="dark"]) .page:has(.mercado),
:root:not([data-theme="dark"]) .page:has(.empresa),
:root:not([data-theme="dark"]) .page:has(.prospeccao),
:root:not([data-theme="dark"]) .page:has(.quadro),
:root:not([data-theme="dark"]) .prospeccao,
:root:not([data-theme="dark"]) .quadro {
  background: var(--bg);
  color: var(--text);
}
:root:not([data-theme="dark"]) :is(
  .mercado__painel, .mercado__lista, .angulo, .mercado__busca, .mercado__periodo button,
  .mercado__periodo input, .mercado__filtros input, .mercado__filtros select,
  .empresa__bloco, .empresa__grafico, .empresa__busca, .empresa__periodo input,
  .empresa__abas button, .empresa__motivos li, .empresa__sugestoes,
  .prospeccao__form, .quadro select, .quadro__btn, .quadro__icone, .quadro__busca, .quadro .coluna,
  .portais, .estados, .modalidades, .filtro-acc, .field select.select-modo, .intervalo, .intervalo__pop,
  .orgao-busca__btn, .orgao-busca__pop, .filtros-extra input, .modal--escuro,
  .wizard-busca input, .negocio-wizard input[type="text"], .negocio-wizard select, .item-lista
) {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}
:root:not([data-theme="dark"]) :is(.modalidade-chip, .uf-chip, .portal-chip) {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong) !important;
}
:root:not([data-theme="dark"]) :is(
  .mercado__intro, .mercado__nota, .serie__eixo, .serie__rotulos span, .mercado__lista th, .mercado__lista .nota,
  .empresa__cabeca p, .empresa__periodo span, .empresa__periodo b, .empresa__nome, .empresa__aviso,
  .empresa__vazio, .empresa__nota, .empresa__bloco h2, .empresa__nums span, .empresa__grafico h2,
  .empresa__legenda, .empresa__ufs th, .prospeccao__topo small, .prospeccao__cota span, .prospeccao__ia p,
  .prospecto ul, .quadro__abas button, .coluna__vazio, .filtro-acc__dica, .wizard-texto
) {
  color: var(--muted);
}
:root:not([data-theme="dark"]) :is(.mercado__busca input, .empresa__busca input, .prospeccao__form input, .quadro__busca input, .empresa__ufs td) {
  color: var(--text);
}
:root:not([data-theme="dark"]) .empresa__abas button.is-on { background: #2563eb; color: #fff; border-color: #2563eb; }
:root:not([data-theme="dark"]) .mercado__periodo button.is-on { background: var(--green); color: #fff; border-color: var(--green); }

@media (max-width: 980px) {
  .kpis, .grid-2, .grid-3, .funil, .hero-ia, .fields { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .quadro__barra, .quadro__esq, .quadro__dir { flex-wrap: wrap; align-items: stretch; }
  .quadro__esq, .quadro__dir { width: 100%; }
  .quadro #empresa, .quadro__busca { width: 100%; }
  .quadro .coluna { min-height: 280px; }
  .mercado__painel, .mercado__cards, .mercado__filtros, .empresa__graficos, .empresa__nums { grid-template-columns: 1fr; }
  .empresa__periodo { justify-content: center; flex-wrap: wrap; }
  .mercado__total { grid-column: 1; }
  .mercado__total strong { font-size: 26px; }
  .tema button { padding: 6px 8px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #111; flex-direction: column; height: auto; padding: 8px; }
  .nav.is-open { display: flex; }
  .submenu { display: none; position: static; width: auto; background: transparent; border: 0; box-shadow: none; color: #fff; }
  .nav.is-open .submenu { display: block; }
  .userbox .submenu { display: none; position: absolute; top: calc(100% - 6px); right: 0; width: 220px; background: #fff; color: #111; border: 1px solid #ddd; }
  .userbox.is-open .submenu { display: block; }
  .menu-ia { margin-left: 0; }
}

.ficha { width: min(760px, 100%); margin: 0 auto 28px; text-align: center; }
.ficha--ampla { width: min(980px, 100%); }
.ficha__topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.ficha__id { color: var(--muted); font-size: 13px; }
.ficha__util { display: flex; align-items: center; gap: 8px; }
.ficha__icone, .ficha__fechar {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
}
.ficha__fechar { border: 0; background: transparent; font-size: 28px; line-height: 1; width: auto; }
.ficha__fonte { font-size: 22px; font-weight: 600; }
.ficha__titulo { margin-top: 8px; font-size: 18px; font-weight: 500; }
.ficha__orgao { margin-top: 18px; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.ficha__objeto { margin: 16px auto 0; max-width: 640px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.ficha__tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ficha__tag { background: #14924a; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.ficha__valor {
  display: inline-flex; margin-top: 12px; background: #2f6bff; color: #fff;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700;
}
.ficha__abertura { margin-top: 16px; color: #22a34a; font-size: 18px; font-weight: 800; }
.ficha__modo { margin-top: 6px; color: var(--muted); }
.ficha__botoes { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.arquivos { margin-top: 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.arquivos[hidden] { display: none; }
.arquivos__topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.arquivos__topo strong { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.arquivos__topo p { margin: 2px 0 0 24px; color: var(--muted); font-size: 13px; }
.arquivos__topo button { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.arquivos__item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; color: inherit; }
.arquivos__item strong { font-size: 14px; }
.arquivos__item span { color: #8ea0b8; font-size: 13px; word-break: break-all; }
.arquivos__item:hover span { text-decoration: underline; }
.arquivos .nota { padding: 14px 16px; }
:root[data-theme="dark"] .arquivos { background: #141922; border-color: #2c3444; }
.ficha__botoes .btn { border-radius: 12px; }
.pago { margin-top: 22px; border-radius: 16px; padding: 1px; background: linear-gradient(90deg, #22c55e, #3b82f6); text-align: left; }
.pago__miolo { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border-radius: 15px; padding: 12px 14px; }
.pago__marca { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.pago__selo {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#22c55e, #38bdf8, #a78bfa, #f59e0b, #22c55e); color: #111; font-weight: 800;
}
.pago__risco {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: var(--muted); font-size: 14px;
}
.pago__painel { background: var(--card); border-radius: 0 0 15px 15px; margin-top: -8px; padding: 16px 14px 12px; }
.ficha__convite { margin: 22px auto 14px; max-width: 520px; color: var(--muted); line-height: 1.45; }
.ficha__adicionar { min-width: 280px; border-radius: 10px; }
.ficha__rotulo { display: block; margin: 28px 0 8px; text-align: left; font-weight: 600; }
.ficha__busca {
  display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 12px; background: var(--card); color: var(--muted);
}
.ficha__busca input { flex: 1; height: 44px; border: 0; background: transparent; outline: none; }
.ficha__itens { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ficha-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px;
}
.ficha-item__n {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); font-weight: 700; flex: none;
}
.ficha-item__corpo { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ficha-item__corpo span, .ficha-item__extra { color: var(--muted); font-size: 13px; }
.ficha-item__extra { display: flex; gap: 12px; margin-top: 4px; }
.ficha-item__extra[hidden], .pago__painel[hidden] { display: none; }
.ficha-item__abre { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.ficha-extra { margin-top: 12px; text-align: left; }
:root[data-theme="dark"] .ficha__icone { background: #1a1d24; }
:root[data-theme="dark"] .pago__miolo, :root[data-theme="dark"] .pago__painel { background: #12151c; }
:root[data-theme="dark"] .ficha-item { background: #141820; }
@media (max-width: 720px) {
  .pago__miolo, .ficha__botoes { flex-direction: column; align-items: stretch; }
  .ficha__adicionar { width: 100%; }
}

.diretorio__banner {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  margin: 8px 0 18px; padding: 12px 16px; border: 0; border-radius: 14px; color: var(--text);
  background: linear-gradient(90deg, #123226, #10243a 55%, #101820);
}
.diretorio__banner > span:nth-child(2) { flex: 1; color: #d1d5db; }
.diretorio__ajuda { margin: -8px 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.diretorio__ajuda[hidden], .diretorio__ufs[hidden] { display: none; }
.diretorio__negocios { margin-bottom: 16px; }
.diretorio__negocios h2 { font-size: 15px; margin-bottom: 8px; }
.diretorio__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.diretorio__chips a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; color: var(--text); font-size: 13px; }
.diretorio__barra { display: flex; gap: 10px; align-items: center; }
.diretorio__busca {
  flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 12px; background: var(--card);
}
.diretorio__busca input { flex: 1; height: 44px; border: 0; background: transparent; outline: none; }
.diretorio__busca button {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}
.diretorio__estados { position: relative; }
.diretorio__estados > button, .diretorio__barra select {
  height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card);
  padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.diretorio__ufs {
  position: absolute; right: 0; top: 48px; z-index: 5; width: 280px;
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.diretorio__ufs a { min-width: 36px; text-align: center; border-radius: 8px; padding: 6px; color: var(--text); }
.diretorio__ufs a.is-on, .diretorio__ufs a:hover { background: var(--green); color: #fff; }
.diretorio__total-lista { margin: 14px 0 8px; color: var(--muted); font-size: 14px; }
.diretorio__linha {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.diretorio__linha h2 { font-size: 16px; font-weight: 700; }
.diretorio__linha h2 a { color: var(--text); }
.diretorio__meta, .diretorio__ente { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.diretorio__ente { align-items: center; }
.diretorio__selos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.diretorio__portal { color: var(--muted); font-size: 12px; font-weight: 700; }
.diretorio__prazo, .diretorio__pagometro {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  border: 1px solid #1a9b4a; color: #1a9b4a; padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.diretorio__prazo b {
  width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center;
  background: #1a9b4a; color: #fff; font-size: 11px;
}
.diretorio__numero { text-align: right; color: #1a9b4a; min-width: 120px; }
.diretorio__numero strong { display: block; font-size: 28px; line-height: 1; }
.diretorio__numero span { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; text-transform: lowercase; }
.diretorio__leitura { margin-top: 8px; }
:root[data-theme="dark"] .diretorio__banner { color: #e5e7eb; }
@media (max-width: 720px) {
  .diretorio__barra, .diretorio__linha { display: flex; flex-direction: column; align-items: stretch; }
  .diretorio__numero { text-align: left; }
}
