:root{--brand:#c92519;--brand-dark:#981b13;--ink:#111318;--muted:#676b74;--line:#e6e7eb;--soft:#f5f6f8;--success:#18794e;--warning:#9a6700;--danger:#b42318;--shadow:0 20px 60px rgba(17,19,24,.08);--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Inter,system-ui,sans-serif;line-height:1.55}button,input{font:inherit}a{color:inherit;text-decoration:none}.container{width:min(1160px,calc(100% - 40px));margin:auto}.topbar{position:sticky;top:0;z-index:20;border-bottom:1px solid rgba(230,231,235,.9);background:rgba(255,255,255,.88);backdrop-filter:blur(16px)}.topbar__content,.footer__content,.cta__content{display:flex;align-items:center;justify-content:space-between;gap:24px}.topbar__content{min-height:82px}.brand{display:flex;align-items:center;gap:12px}.brand__mark{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:var(--brand);color:#fff;font-family:"IBM Plex Mono",monospace;font-weight:700}.brand strong,.brand small{display:block}.brand small{color:var(--muted);font-size:11px}.topbar__nav{display:flex;align-items:center;gap:26px;font-size:14px}.hero{border-bottom:1px solid var(--line);background:radial-gradient(circle at 10% 15%,rgba(201,37,25,.1),transparent 28%),linear-gradient(180deg,#fff,#fafafa)}.hero__content{padding:72px 0 48px;text-align:center}.eyebrow{display:inline-block;margin-bottom:14px;color:var(--brand);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{max-width:900px;margin:0 auto 20px;font-size:clamp(38px,6vw,68px);line-height:1.02;letter-spacing:-.045em}.hero__lead{max-width:760px;margin:0 auto 38px;color:var(--muted);font-size:clamp(17px,2vw,20px)}.search{max-width:880px;margin:auto}.search__box{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:14px;padding:10px 10px 10px 20px;border:1px solid #d8d9de;border-radius:20px;background:#fff;box-shadow:var(--shadow)}.search__box:focus-within{border-color:rgba(201,37,25,.55);box-shadow:0 0 0 4px rgba(201,37,25,.08),var(--shadow)}.search__icon{font-size:24px;color:#858892}.search__box input{min-width:0;border:0;outline:0;background:transparent;font-size:17px}.search__help{margin:16px 0 0;color:var(--muted);font-size:13px}.search__help button{padding:0;border:0;background:none;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.trust-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:46px;color:var(--muted);font-size:13px}.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:0 18px;border:1px solid transparent;border-radius:12px;font-weight:600;cursor:pointer;transition:.16s}.button--primary{border-color:var(--brand);background:var(--brand);color:#fff}.button--primary:hover{background:var(--brand-dark);transform:translateY(-1px)}.button--ghost{border-color:var(--line);background:#fff}.button--small{min-height:38px;font-size:13px}.status-area{padding-top:28px}.notice{padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.notice--error{border-color:rgba(180,35,24,.25);background:rgba(180,35,24,.05);color:var(--danger)}.notice--loading{display:flex;align-items:center;gap:12px}.spinner{width:18px;height:18px;border:2px solid #d6d7db;border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.result{padding:54px 0 80px}.result__header{display:flex;justify-content:space-between;gap:24px;margin-bottom:28px}.result__header h2{margin:12px 0 8px;font-size:clamp(27px,4vw,42px);line-height:1.12}.result__header p{color:var(--muted)}.result__actions{display:flex;gap:10px}.pill{display:inline-flex;padding:5px 10px;border-radius:999px;background:rgba(201,37,25,.08);color:var(--brand);font-size:12px;font-weight:700}.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.card--wide{grid-column:1/-1}.card h3{margin-bottom:22px;font-size:16px}.data-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 26px;margin:0}.data-list dt,.participant small,.structure-box small{margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.data-list dd{margin:0;overflow-wrap:anywhere;font-size:14px;font-weight:600}.mono{font-family:"IBM Plex Mono",monospace}.participants,.structure-grid{display:grid;gap:14px}.participant,.structure-box{padding:15px;border:1px solid var(--line);border-radius:12px;background:#fcfcfd}.participant strong,.participant span,.structure-box strong,.structure-box span{display:block;overflow-wrap:anywhere}.participant span,.structure-box span{margin-top:4px;color:var(--muted);font-family:"IBM Plex Mono",monospace;font-size:12px}.status-badge{display:inline-flex;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:700}.status-badge--ok{background:rgba(24,121,78,.1);color:var(--success)}.status-badge--partial{background:rgba(154,103,0,.12);color:var(--warning)}.validation-list{display:flex;flex-wrap:wrap;gap:8px}.validation-list span{padding:6px 9px;border:1px solid #ead7a8;border-radius:8px;background:#fffaf0;color:#7c5200;font-family:"IBM Plex Mono",monospace;font-size:11px}.source-chip{display:inline-flex;margin:0 6px 6px 0;padding:5px 9px;border-radius:999px;background:var(--soft);font-size:12px;font-weight:700}.raw-json{margin-top:20px;border:1px solid var(--line);border-radius:var(--radius);background:#111318;color:#e8e9ed}.raw-json summary{padding:17px 20px;cursor:pointer;font-weight:600}.raw-json pre{overflow:auto;max-height:560px;margin:0;padding:0 20px 20px;font-family:"IBM Plex Mono",monospace;font-size:12px;white-space:pre-wrap}.section{padding:90px 0}.section--muted{border-block:1px solid var(--line);background:var(--soft)}.section h2,.cta h2{font-size:clamp(30px,4vw,46px);line-height:1.1}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.steps article{padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.steps article>span{color:var(--brand);font-family:"IBM Plex Mono",monospace;font-weight:700}.steps h3{margin:30px 0 8px}.steps p,.cta p{color:var(--muted)}.cta__content{padding:42px;border-radius:24px;background:#111318;color:#fff}.cta__content>div{max-width:760px}.footer{padding:34px 0;border-top:1px solid var(--line)}.footer__content{color:var(--muted);font-size:12px}.footer p{margin:0}@media(max-width:820px){.topbar__nav>a:not(.button){display:none}.hero__content{padding:68px 0 44px}.search__box{grid-template-columns:24px 1fr}.search__box .button{grid-column:1/-1;width:100%}.result__header,.cta__content,.footer__content{flex-direction:column;align-items:stretch}.result__actions{width:100%}.result__actions .button{flex:1}.result-grid,.steps{grid-template-columns:1fr}.card--wide{grid-column:auto}.data-list{grid-template-columns:1fr}}@media(max-width:520px){.container{width:min(100% - 24px,1160px)}.topbar__content{min-height:70px}.brand small,.topbar__nav .button{display:none}.card,.cta__content{padding:19px}.result__actions{flex-direction:column}}

/* =========================================================
   Ajustes — versão simplificada para testes internos
   ========================================================= */

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

.hero__content {
  padding: 64px 0 44px;
}

h1 {
  max-width: 900px;
  margin: 0 auto 12px;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero__lead {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.search__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #858892;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search__box input::placeholder {
  color: #92959d;
}

.search__examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.search__examples > span {
  margin-right: 2px;
}

.search__examples button {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.search__examples button:hover,
.search__examples button:focus-visible {
  border-color: rgba(201, 37, 25, .38);
  background: rgba(201, 37, 25, .04);
  color: var(--brand);
  outline: none;
}

.trust-strip {
  margin-top: 32px;
}

.result__heading {
  min-width: 0;
}

.card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.card__heading h3 {
  margin: 0;
}

.card__heading > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.card__heading + .data-list,
.card__heading + .participants,
.card__heading + #structure-list,
.card__heading + #validation-content {
  margin-top: 0;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.button:focus-visible,
.search__box input:focus-visible,
.raw-json summary:focus-visible {
  outline: 3px solid rgba(201, 37, 25, .18);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .hero__content {
    padding: 52px 0 38px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .search__examples {
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  .hero__content {
    padding: 44px 0 32px;
  }

  .search__box {
    padding: 10px;
  }

  .search__icon {
    margin-left: 6px;
  }

  .search__examples {
    gap: 6px;
  }

  .search__examples > span {
    width: 100%;
  }
}


/* =========================================================
   Refinamentos de acabamento — mesma linguagem, mais precisão
   ========================================================= */

/* Correção: os botões de ação da header do resultado herdavam
   align-items:stretch do flex pai e esticavam para a altura do
   título (3 linhas), forçando o texto a quebrar em duas linhas.
   Mantemos os mesmos botões, só travamos a altura/largura naturais. */
.result__header {
  align-items: flex-start;
}

.result__actions {
  flex-shrink: 0;
}

.button {
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease,
              color .16s ease, transform .16s ease, box-shadow .16s ease;
}

/* Estado de hover que faltava nos botões ghost (Copiar JSON,
   Nova consulta, chips de exemplo já tinham o equivalente) */
.button--ghost:hover {
  border-color: #c7c9d0;
  background: var(--soft);
}

.button--ghost:active,
.button--primary:active {
  transform: translateY(0);
}

/* Leve transição no realce de foco da busca, em vez de trocar
   borda/sombra de forma abrupta */
.search__box {
  transition: border-color .18s ease, box-shadow .18s ease;
}

/* Profundidade discreta nos cards — quase imperceptível, só
   separa levemente do fundo branco sem pesar o visual limpo */
.card {
  box-shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 10px 26px rgba(17, 19, 24, .03);
}

/* Título do resultado: nomes de fundos são longos, então cuidamos
   da quebra de linha e do tracking em tamanhos grandes */
.result__header h2 {
  letter-spacing: -.015em;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Selo do tipo de ativo (FII, ação, ETF...) alinhado ao mesmo
   tom das etiquetas (uppercase + tracking) usado no resto da página */
.pill {
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Consistência tipográfica: os cartões de participantes/estrutura
   usavam o peso/tamanho padrão do navegador para <strong>, que
   destoava levemente da dd das outras listas (14px/600) */
.participant,
.structure-box {
  padding: 16px 17px;
}

.participant strong,
.structure-box strong {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

/* Contorno sutil nos badges de status, pra não depender só da cor
   de fundo pra comunicar o estado (ajuda em telas mal calibradas) */
.status-badge--ok {
  box-shadow: inset 0 0 0 1px rgba(24, 121, 78, .18);
}

.status-badge--partial {
  box-shadow: inset 0 0 0 1px rgba(154, 103, 0, .22);
}

.validation-list span {
  letter-spacing: .02em;
}

/* Numeral dos cabeçalhos de cartão com tracking mais cuidado */
.card__heading > span {
  letter-spacing: .02em;
}

/* JSON bruto: separador sutil ao abrir + rolagem mais discreta */
.raw-json summary {
  transition: background-color .14s ease;
}

.raw-json summary:hover {
  background: rgba(255, 255, 255, .035);
}

.raw-json[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.raw-json pre {
  scrollbar-width: thin;
  scrollbar-color: #3a3d46 transparent;
}

.raw-json pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.raw-json pre::-webkit-scrollbar-thumb {
  background: #3a3d46;
  border-radius: 8px;
}

/* Seleção de texto na cor da marca, detalhe pequeno mas cuidado */
::selection {
  background: rgba(201, 37, 25, .16);
  color: var(--ink);
}

/* Piso de qualidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 54px;
}

.dashboard-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 35px rgba(17, 19, 24, .045);
}

.dashboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-card__header h2 {
  margin: 3px 0 0;
  font-size: 18px;
  letter-spacing: -.02em;
}

.dashboard-card__eyebrow {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dashboard-card__period {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

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

.metric {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfcfd;
}

.metric span,
.chart__header {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 27px;
  line-height: 1.1;
}

.chart {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.chart__header {
  margin-bottom: 18px;
}

.chart__bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 150px;
}

.chart-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 8px;
  height: 150px;
  text-align: center;
}

.chart-bar__track {
  position: relative;
  display: flex;
  height: 118px;
  align-items: flex-end;
  justify-content: center;
  border-radius: 9px;
  background: var(--soft);
}

.chart-bar__value {
  width: min(34px, 68%);
  min-height: 4px;
  border-radius: 7px 7px 3px 3px;
  background: var(--brand);
  transition: height .25s ease;
}

.chart-bar__number {
  position: absolute;
  bottom: calc(var(--bar-height, 4%) + 5px);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
}

.chart-bar__label {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.recent-searches {
  display: grid;
  gap: 10px;
}

.recent-search {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcfd;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: .16s ease;
  text-transform: uppercase;
}

.recent-search:hover,
.recent-search:focus-visible {
  border-color: rgba(201, 37, 25, .35);
  background: rgba(201, 37, 25, .035);
  outline: none;
  transform: translateY(-1px);
}

.recent-search__content {
  min-width: 0;
}

.recent-search strong,
.recent-search small {
  display: block;
}

.recent-search strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-search small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.recent-search__arrow {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 17px;
}

@media (max-width: 820px) {
  .dashboard {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
}

@media (max-width: 520px) {
  .dashboard-card {
    padding: 19px;
  }

  .chart__bars {
    gap: 5px;
  }
}
.result__footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  width: 100%;
  margin-top: 24px;
  padding-top: 24px;

  border-top: 1px solid var(--border-color, #e3e5e8);
}

.result__footer-actions .button,
.result__actions .button {
  min-height: 44px;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button--ghost:hover {
  color: #d5261d;
  background: #fff7f6;
  border-color: rgba(213, 38, 29, 0.45);

  box-shadow:
    0 8px 20px rgba(20, 24, 31, 0.08);

  transform: translateY(-2px);
}

.button--primary:hover {
  background: #b91f17;

  box-shadow:
    0 10px 24px rgba(213, 38, 29, 0.24);

  transform: translateY(-2px);
}

.result__footer-actions .button:active,
.result__actions .button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.button--with-icon svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 180ms ease;
}

.button--with-icon:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .result__footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result__footer-actions .button {
    width: 100%;
  }
}
/* =====================================================
   FAB - Voltar ao topo
===================================================== */

.scroll-top {
  position: fixed;

  right: 28px;
  bottom: 28px;

  width: 52px;
  height: 52px;

  border: none;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #d5261d;
  color: #fff;

  cursor: pointer;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, .18);

  opacity: 0;
  visibility: hidden;

  transform: translateY(18px);

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease,
    background-color .2s ease,
    box-shadow .2s ease;

  z-index: 999;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #b81f18;

  transform: translateY(-3px);

  box-shadow:
    0 18px 34px rgba(0,0,0,.24);
}

.scroll-top:active {
  transform: translateY(0);
}

.scroll-top svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {

  .scroll-top {
    right: 18px;
    bottom: 18px;

    width: 48px;
    height: 48px;
  }

}

.asset-summary {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.asset-chip {
  min-width: 118px;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
}

.asset-chip small {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.asset-chip strong {
  display: block;
  color: #111827;
  font-size: 13px;
  line-height: 1.3;
}

.asset-chip--success {
  border-color: #b7e2c5;
  background: #f0faf3;
}

.asset-chip--success small,
.asset-chip--success strong {
  color: #18733a;
}

.asset-chip--warning {
  border-color: #f0d59a;
  background: #fff8e8;
}

.asset-chip--warning small,
.asset-chip--warning strong {
  color: #8a5a00;
}

.asset-chip--missing {
  border-style: dashed;
  background: #fafafa;
}

.asset-chip--missing strong {
  color: #9ca3af;
  font-weight: 600;
}

.asset-summary__coverage {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 11px 15px;
  border-radius: 12px;
}

.asset-summary__coverage-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.asset-summary__coverage strong,
.asset-summary__coverage small {
  display: block;
}

.asset-summary__coverage strong {
  font-size: 13px;
}

.asset-summary__coverage small {
  margin-top: 2px;
  font-size: 11px;
}

.asset-summary__coverage--complete {
  border: 1px solid #b7e2c5;
  background: #f0faf3;
  color: #18733a;
}

.asset-summary__coverage--complete
.asset-summary__coverage-icon {
  background: #d9f2e1;
}

.asset-summary__coverage--partial {
  border: 1px solid #f0d59a;
  background: #fff8e8;
  color: #8a5a00;
}

.asset-summary__coverage--partial
.asset-summary__coverage-icon {
  background: #f8e9bf;
}

@media (max-width: 720px) {
  .asset-summary__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-chip {
    min-width: 0;
  }

  .asset-summary__coverage {
    width: 100%;
    box-sizing: border-box;
  }
}
/* =========================================================
   Resultado do ativo — resumo executivo
   ========================================================= */

#result-subtitle {
  width: 100%;
}

.asset-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.asset-overview__identity,
.asset-coverage {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.asset-overview__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.asset-overview__main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.asset-overview__ticker {
  color: #111827;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.asset-overview__separator {
  color: #d1d5db;
  font-size: 18px;
}

.asset-overview__type {
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.asset-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.asset-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.65);
}

.asset-status--active {
  border-color: #b7e2c5;
  background: #effaf3;
  color: #18733a;
}

.asset-status--attention {
  border-color: #efd49a;
  background: #fff8e8;
  color: #8a5a00;
}

.asset-status--unknown {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
}

.asset-coverage {
  padding: 16px 18px;
}

.asset-coverage__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.asset-coverage__header strong,
.asset-coverage__header small {
  display: block;
}

.asset-coverage__header strong {
  color: #111827;
  font-size: 13px;
}

.asset-coverage__header small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
}

.asset-coverage__value {
  color: #c92519 !important;
  font-size: 22px !important;
  line-height: 1;
}

.asset-coverage__track {
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f1f3;
}

.asset-coverage__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c92519, #e23a2f);
  transition: width 260ms ease;
}

/* =========================================================
   Validação cadastral — sem repetir status e cobertura
   ========================================================= */

.validation-state {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.validation-state__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.validation-state strong,
.validation-state p {
  display: block;
}

.validation-state strong {
  color: #111827;
  font-size: 14px;
}

.validation-state p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.validation-state--ok .validation-state__icon {
  background: #e3f6e9;
  color: #18733a;
}

.validation-state--partial .validation-state__icon {
  background: #fff0ca;
  color: #8a5a00;
}

.validation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.validation-list span {
  padding: 7px 10px;
  border: 1px solid #efd49a;
  border-radius: 999px;
  background: #fffaf0;
  color: #7a4f00;
  font-size: 11px;
  font-weight: 700;
}

/* O card Identidade passa a conter somente identificadores oficiais. */
#identity-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Remove estilos antigos do primeiro resumo, caso permaneçam no CSS. */
.asset-summary,
.asset-summary__chips,
.asset-summary__coverage {
  all: unset;
}

@media (max-width: 900px) {
  .asset-overview {
    grid-template-columns: 1fr;
  }

  #identity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .asset-overview__identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-overview__main {
    flex-wrap: wrap;
  }

  .asset-overview__ticker {
    font-size: 19px;
  }

  .asset-status {
    padding: 8px 10px;
  }

  #identity-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Contrato de resolução — telas por tipo de resultado
   ========================================================= */

.entity-hero {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.entity-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entity-hero__chips span,
.option-item__domain {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.entity-hero p,
.result-context,
.result-pagination {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.relation-list,
.option-list,
.relationship-group__list {
  display: grid;
  gap: 10px;
}

.relation-item,
.option-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.relation-item > div,
.option-item > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.relation-item strong,
.option-item strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
}

.relation-item span,
.relation-item small,
.option-item small {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
}

.relationship-group + .relationship-group {
  margin-top: 24px;
}

.relationship-group h4 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 13px;
}

.result-pagination {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}

#issuer-list,
#fund-list,
#institution-list,
#classification-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#issuer-list > div:has(dt:first-child:nth-last-child(1)),
#issuer-list > div:last-child {
  min-width: 0;
}

#fallback-content {
  max-height: 480px;
  overflow: auto;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  #issuer-list,
  #fund-list,
  #institution-list,
  #classification-list {
    grid-template-columns: 1fr;
  }

  .relation-item,
  .option-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
