:root {
  --bg: #0F1830; --panel: #16213F; --line: #2A3760; --fg: #E8ECF6; --muted: #A9B4CF;
  --up: #2fb36b; --down: #f0665e; --up-bg: rgba(47, 179, 107, .12); --down-bg: rgba(229, 83, 75, .12); --accent: #8FA6F0; --accent-strong: #2D45A8;
  --brand: #1F2F6B; --on-brand: #FFFFFF; --brand-cta: #F2C46B; --mine: #F2C46B;
  --warn: #f2b134;
  --c1: #4c8dff; --c2: #2fb36b; --c3: #f2b134; --c4: #b07cff; --c5: #39c5cf; --c6: #ef7f55; --c7: #e86fb0; --c8: #8b97ad;
}
[data-theme="light"] {
  --bg: #EDF0F4; --panel: #FFFFFF; --line: #CCD3DE; --fg: #1B2433; --muted: #4E5A6E;
  --up: #0f7a45; --down: #c62f28; --up-bg: rgba(18, 129, 74, .08); --down-bg: rgba(198, 47, 40, .08); --accent: #22357A; --accent-strong: #1F2F6B;
  --brand: #1F2F6B; --on-brand: #FFFFFF; --brand-cta: #F2C46B; --mine: #A3660F;
  --warn: #8a5700;
  --c1: #1f5fd6; --c2: #12814a; --c3: #b07a00; --c4: #7a4fd0; --c5: #0e8a94; --c6: #c4521f; --c7: #b8407f; --c8: #5d6b82;
}
/* Public Sans (SIL OFL 1.1, fonts/OFL.txt), served by the site so the installed app works offline */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/PublicSans-Variable.woff2?v=1") format("woff2"); }
* { box-sizing: border-box; }
:root { --radius: 14px; --radius-s: 10px; --shadow: 0 1px 2px rgba(0, 0, 0, .25); --control: 44px; }
[data-theme="light"] { --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { -webkit-tap-highlight-color: transparent; }
.app { display: flex; min-height: 100vh; }
.side { width: 230px; flex: none; background: var(--panel); border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; color: var(--fg); }
.brand-solo { margin: 0; padding: 14px 24px; background: var(--brand); color: var(--on-brand); }
.marca-topo { display: none; }
.nav-title { color: var(--muted); font-size: 12px; margin: 12px 0 4px; }
.nav-item { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: var(--fg); text-decoration: none; padding: 7px 10px; border-radius: 8px; }
.nav-item.on { font-weight: 600; color: var(--accent); }
.nav-item[hidden] { display: none; } /* the class sets a display that would override the attribute */
.nav-item:hover, .nav-item.on { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ext { color: var(--muted); }
.conta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.quem { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.sair { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--down); text-decoration: none; font-weight: 600; }
.sair:hover { border-color: var(--down); }
.theme { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 8px; min-height: 40px; cursor: pointer; font: inherit; }
main { flex: 1; min-width: 0; padding: 20px 24px 40px; }
.head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.015em; }
.sub, .note { color: var(--muted); margin: 4px 0 0; }
.head .sub { max-width: 62ch; }
.menu { display: none; flex: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 0; font-size: 20px; cursor: pointer; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.dm { display: none; color: var(--muted); font-size: 11px; }
#pareceres .dm { display: block; }  /* the fund or company name under the ticker, on every width */
.veil { display: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.card .n { color: var(--muted); font-size: 13px; }
.card .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.card.up { background: linear-gradient(var(--up-bg), var(--up-bg)), var(--panel); }
.card.down { background: linear-gradient(var(--down-bg), var(--down-bg)), var(--panel); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; min-width: 0; box-shadow: var(--shadow); }
.box h2 { font-size: 16px; margin: 0 0 10px; letter-spacing: -.005em; }
.box h3 { font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
th { color: var(--muted); font-weight: 500; text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
td { text-align: right; padding: 7px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td:first-child { white-space: normal; }
th:first-child, td:first-child { text-align: left; }
td.d { color: var(--muted); font-size: 12px; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.card .up, .card .down, .card .flat { font-size: 13px; }
.warn { color: var(--down); font-size: 12px; margin: 0 0 6px; }
.foot { color: var(--muted); font-size: 12px; margin-top: 24px; }
@media (max-width: 760px) {
  .side { position: fixed; left: -260px; z-index: 5; transition: left .2s, visibility .2s; box-shadow: 0 0 24px rgba(0,0,0,.4); visibility: hidden; }
  .side.open { left: 0; visibility: visible; }
  .menu { display: block; }
  main { padding: 16px; }
  /* the navy bar of the phone: brand and menu on top, the page title under them, edge to edge */
  .head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "marca menu" "texto texto"; gap: 14px 12px; align-items: center;
    background: var(--brand); color: var(--on-brand); margin: -16px -16px 16px; padding: 12px 16px 18px; }
  .head .menu { grid-area: menu; border-color: rgba(255, 255, 255, .45); color: var(--on-brand); }
  .head .marca-topo { display: block; grid-area: marca; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
  .head > div { grid-area: texto; }
  .head .sub { color: #D7DAE4; }
  .head .sub { color: color-mix(in srgb, var(--on-brand) 82%, var(--brand)); }
  .head .sub a { color: var(--brand-cta); }
  #inicio .head { grid-template-areas: "marca menu" "texto texto" "pergunta pergunta"; }
  #inicio .head #assessor { grid-area: pergunta; }
  #inicio .head .pergunta-inicio label, #inicio .head .pergunta-inicio .note { color: color-mix(in srgb, var(--on-brand) 82%, var(--brand)); }
  #inicio .head .pergunta-inicio .note a { color: var(--brand-cta); }
  #inicio .head .pergunta-inicio { background: none; border: 0; box-shadow: none; padding: 0; }
  #inicio .head .pergunta-inicio input { background: #FFFFFF; color: #1B2433; border-color: transparent; }
  #inicio .head .pergunta-inicio input:focus { border-color: var(--brand-cta); box-shadow: 0 0 0 3px var(--brand-cta); }
  #inicio .head .pergunta-inicio button.principal { background: var(--brand-cta); border-color: var(--brand-cta); color: #1B2433; }
  #inicio .head .sugestoes .filtro { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: var(--on-brand); }
  .head :focus-visible { outline-color: var(--brand-cta); }
  .brand-solo { padding: 12px 16px; }
  .grid { grid-template-columns: 1fr; }
  .veil.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 4; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
  main { padding: 12px 12px 32px; }
  .head { margin: -12px -12px 14px; padding: 10px 12px 16px; }
  h1 { font-size: 24px; }
  .head .sub { font-size: 13px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card { padding: 10px; }
  .card .v { font-size: 18px; }
  .box { padding: 12px; }
  .col-setor { display: none; }
  td .sub-cel { display: block; }
  th.d, td.d { display: none; }
  .dm { display: block; }
  td, th { padding: 6px 3px; }
}

/* Agenda macroeconômica: the Investing.com widget, as published by them */
.agenda { margin-top: 16px; }
.agenda iframe { display: block; width: 100%; height: 560px; border: 0; border-radius: 6px; background: #fff; }
.agenda .credit { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.agenda .credit a { color: var(--accent); }

/* Carteira: one column, phone first */
.coluna { display: grid; gap: 14px; max-width: 720px; }
.coluna .box { overflow-x: visible; }
.aviso { color: var(--muted); font-size: 12px; border-left: 3px solid var(--warn); padding-left: 8px; margin: 8px 0 0; }
.titulo { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.titulo h2 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 2px 0 8px; }
.seg button { background: none; border: 0; color: var(--fg); font: inherit; font-size: 13px; min-height: 40px; padding: 6px 14px; cursor: pointer; }
.seg button.on { background: var(--accent-strong); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.abas { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0 0 12px; }
.abas .aba { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; color: var(--fg); text-decoration: none; font-size: 13px; }
.abas .aba.on { background: var(--accent-strong); color: #fff; }
.abas .aba:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 13px; }
.pill.bom { background: var(--up-bg); color: var(--up); }
.pill.medio { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.baixo { background: var(--down-bg); color: var(--down); }
.regua { position: relative; height: 8px; border-radius: 4px; margin: 14px 8px 4px; background: linear-gradient(90deg, var(--down), var(--warn), var(--up)); }
.regua i { position: absolute; top: -5px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--panel); border: 3px solid var(--fg); }
.escala { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin: 0 2px; }
.dist { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.rosca { width: 180px; max-width: 100%; flex: none; }
.fatia { stroke: var(--panel); stroke-width: 1.5; }
.c1 { fill: var(--c1); background: var(--c1); } .c2 { fill: var(--c2); background: var(--c2); } .c3 { fill: var(--c3); background: var(--c3); }
.c4 { fill: var(--c4); background: var(--c4); } .c5 { fill: var(--c5); background: var(--c5); } .c6 { fill: var(--c6); background: var(--c6); }
.c7 { fill: var(--c7); background: var(--c7); } .c8 { fill: var(--c8); background: var(--c8); }
.legenda, .aporte { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; flex: 1 1 240px; min-width: 0; font-size: 13px; }
.legenda li, .aporte li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.legenda b { white-space: nowrap; }
.aporte li { grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 4px 0; }
.sw { width: 10px; height: 10px; border-radius: 2px; }
.rolagem { overflow-x: auto; }
.rolagem:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sub-cel { display: none; color: var(--muted); font-size: 11px; white-space: normal; }
.ativos { display: grid; gap: 10px; }
.ativo { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ativo header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.ativo header .note { margin: 0; margin-left: auto; font-size: 12px; }
.ativo > .note { margin: 2px 0 4px; font-size: 12px; }
.ativo details summary { cursor: pointer; color: var(--fg); min-height: 40px; }
.ativo details[open] summary { color: var(--muted); font-size: 12px; }
.ativo details p { margin: 6px 0 0; line-height: 1.5; }
.chip { font-size: 11px; color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 0 8px; }
/* the list's stale badge sits under the date and never widens the table */
td.lido { white-space: nowrap; }
td.lido .chip { display: inline-block; margin-top: 4px; padding: 0 6px; white-space: nowrap; }

/* Pareceres */
.parecer h3 { font-size: 14px; margin: 16px 0 4px; }
.parecer p { line-height: 1.55; margin: 4px 0; }
.fontes { padding-left: 18px; margin: 4px 0; display: grid; gap: 4px; }
.box a { color: var(--accent); }
/* Controls: one look for every input, select, textarea and button of the forms */
.busca :is(input, select, button), .ajustes :is(input, select, textarea, button), .versoes button, #setor, #tipo {
  min-height: var(--control); padding: 9px 12px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background-color: var(--bg); color: var(--fg); font: inherit; min-width: 0; }
.ajustes textarea { min-height: 260px; }
:is(.busca, .ajustes) :is(input, textarea, select):focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
:is(.busca, .ajustes, .versoes) button { cursor: pointer; font-weight: 600; background-color: var(--panel); }
:is(.busca, .ajustes, .versoes) button:hover { border-color: var(--accent); }
.busca #perguntar, .ajustes button.principal { background-color: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
:is(.busca, .ajustes) button:disabled { opacity: .55; cursor: progress; }
select, .busca select, .ajustes select, #setor, #tipo { -webkit-appearance: none; appearance: none; padding-right: 32px !important; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
#setor, #tipo { max-width: 100%; }
/* Busca: question on its own line; company, then the two actions */
.busca { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.busca input { grid-column: 1 / -1; }
.busca select { width: 100%; }
@media (max-width: 560px) {
  .busca { grid-template-columns: 1fr 1fr; }
  .busca select { grid-column: 1 / -1; }
}
.achado { border-top: 1px solid var(--line); padding: 10px 0; }
.fontes { padding-left: 22px; }
.fontes li:first-child .achado { border-top: 0; padding-top: 2px; }
.resposta h2 { display: flex; align-items: center; gap: 8px; }
.resposta ul { margin: 6px 0; padding-left: 20px; }
.resposta li { margin: 3px 0; }
.resposta > p { line-height: 1.6; }
.achado p { margin: 4px 0; overflow-wrap: anywhere; }
mark { background: color-mix(in srgb, var(--warn) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
/* Ajustes do assessor */
.ajustes { display: grid; gap: 12px; }
.ajustes label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.ajustes textarea { resize: vertical; line-height: 1.5; font-size: 13px; }
.ajustes .linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ajustes .acoes { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .ajustes .acoes button { flex: 1 1 100%; } }
.versoes { list-style: none; padding: 0; margin: 0; }
.versoes li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; border-top: 1px solid var(--line); padding: 8px 0; }
.versoes li .note { margin: 0; }
.versoes li button { margin-left: auto; min-height: 40px; padding: 4px 14px; }

/* Ações (acoes.html): filters, the list, the comparison with numbered medals, the detail */
.acoes h2 { font-size: 18px; margin: 0; }
/* the filters: a grid of equal cells (2 on a phone, as many as fit on a computer), the search on a row of its own */
.filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; align-items: stretch; }
.filtros > * { width: 100%; min-width: 0; max-width: none; }
.filtro, .filtros select, .filtros input { min-height: var(--control); border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font: inherit; padding: 0 14px; }
.filtro { cursor: pointer; }
.filtro.on { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.filtro.on::before { content: "✓ "; }
.filtros input { grid-column: 1 / -1; }
.filtro { text-align: center; line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
.filtros select { text-overflow: ellipsis; text-align: center; text-align-last: center; }
.filtro:focus-visible, .filtros :is(select, input):focus-visible, .acoes .botao:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.legenda-filtros { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.contagem { margin: 10px 0 6px; color: var(--muted); font-size: 12px; }
.contagem b { color: var(--fg); font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* The sort buttons are 40 px tall and as wide as their column, with no min-width on purpose:
   the FIIs list's "P/VP" column is 30-34 px wide on a phone, and a 40 px minimum makes the list
   wider than a 360 px screen (accepted on 10/11/2026, PR #82: above the 24 px of WCAG 2.5.8) */
.acoes-lista th button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px 0; min-height: 40px; width: 100%; text-align: inherit; }
.acoes-lista th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 10px; }
.acoes-lista th[aria-sort="descending"] button::after { content: " ▼"; font-size: 10px; }
.acoes-lista th[aria-sort]:not([aria-sort="none"]) { color: var(--fg); }
.acoes-lista tbody tr { cursor: pointer; }
.acoes-lista tbody tr:hover { background: var(--up-bg); }
.acoes-lista td.l, .acoes-lista th:nth-child(2), .acoes-lista th:nth-child(3) { text-align: left; }
.acoes-lista td.marca, .acoes-lista th.marca { width: 40px; padding: 0; }
.acoes-lista td.marca label { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; cursor: pointer; }
.acoes-lista input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent-strong); vertical-align: middle; }
.acoes-lista td a { font-weight: 600; text-decoration: none; }
.aviso-dy { color: var(--warn); font-weight: 700; cursor: help; }
.acoes .ok { color: var(--up); } .acoes .bad { color: var(--down); } .acoes .muted { color: var(--muted); }
.marcadas { position: fixed; right: 24px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 3; display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.marcadas .note { margin: 0; font-size: 12px; }
.acoes .botao { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent-strong); color: #fff; text-decoration: none; font-weight: 600; }
.acoes .link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; min-height: 40px; padding: 0 8px; }
.acoes:has(.marcadas) { padding-bottom: 76px; }
.acoes-comparar th, .acoes-comparar td { text-align: center; padding: 8px 10px; }
.acoes-comparar tbody th { text-align: left; font-weight: 400; color: var(--fg); position: sticky; left: 0; background: var(--panel); white-space: normal; min-width: 132px; max-width: 220px; }
.acoes-comparar thead th { font-size: 14px; color: var(--fg); }
.acoes-comparar thead th a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; }
.acoes-comparar thead th:first-child { position: sticky; left: 0; background: var(--panel); }
.acoes-comparar tr.grupo th { background: var(--bg); color: var(--fg); font-weight: 700; font-size: 12px; letter-spacing: .03em; }
.acoes-comparar .dica { display: block; color: var(--muted); font-size: 11px; }
.acoes-comparar td.tom { background: color-mix(in srgb, color-mix(in srgb, var(--up) calc(var(--tom) * 100%), var(--down)) 20%, transparent); }
.medalha { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #1b1b1b; margin-right: 6px; text-align: center; }
.medalha.m1 { background: #e6b422; } .medalha.m2 { background: #b9bec6; } .medalha.m3 { background: #c98a4b; }
.titulo-acao { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin: 8px 0; }
.titulo-acao h2 { font-size: 22px; }
.titulo-acao .preco { text-align: right; } .titulo-acao .preco b { display: block; font-size: 22px; }
.grafico { width: 100%; height: auto; display: block; touch-action: pan-y; }
.grafico .linha { fill: none; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.grafico .cotacao { stroke: var(--accent); stroke-width: 2.2; }
.grafico .mm21 { stroke: #e6a23c; } .grafico .mm50 { stroke: #2fb3a6; } .grafico .mm200 { stroke: #b072e8; }
.grafico .cursor { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grafico .cursor[hidden] { display: none; }
.grafico-caixa { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px; }
.leitura { margin: 4px 0 0; font-size: 12px; color: var(--muted); } .leitura b { color: var(--fg); }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }
.legenda .sw { height: 3px; width: 14px; }
.sw.cotacao { background: var(--accent); } .sw.mm21 { background: #e6a23c; } .sw.mm50 { background: #2fb3a6; } .sw.mm200 { background: #b072e8; }
.bloco { margin-top: 18px; }
.bloco h3 { margin: 0 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); font-size: 14px; }
.itens { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.item { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; }
.item span { display: block; color: var(--muted); font-size: 12px; } .item b { font-size: 16px; }
.par { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.bloco figure { margin: 10px 0 0; } .bloco figcaption { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.barras { width: 100%; max-width: 360px; height: auto; display: block; }
.barras .pos { fill: var(--accent); } .barras .neg { fill: var(--down); }
.barras text { fill: var(--muted); font-size: 8px; }
.alertas { margin: 0; padding-left: 18px; }
.acoes .botao { white-space: nowrap; }
.acoes-comparar td { white-space: normal; }
@media (max-width: 720px) {
  .so-largo { display: none; }
  .acoes-lista td, .acoes-lista th { padding-left: 2px; padding-right: 2px; }
  .acoes-lista td.marca, .acoes-lista th.marca { width: 40px; }
  .marcadas { left: 12px; right: 12px; justify-content: space-between; }
  .filtros { gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtros > * { font-size: 13px; }
  .filtro, .filtros select, .filtros input { padding: 0 12px; min-height: 40px; }
  .filtro, .filtros select { padding-left: 8px; padding-right: 8px; }
  .acoes-comparar { font-size: 12px; }
  .acoes-comparar th, .acoes-comparar td { padding: 7px 3px; }
  .acoes-comparar tbody th { min-width: 88px; max-width: 100px; }
  .acoes-comparar thead th { font-size: 13px; }
  .medalha { min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; margin-right: 3px; }
}
@media (max-width: 400px) {
  .acoes-lista { font-size: 12.5px; }
  .acoes-lista td, .acoes-lista th { padding-left: 1px; padding-right: 1px; }
}

/* FIIs (fiis.html): the Ações classes, plus the 24-month income chart and the detail's links */
.rend24 { margin: 12px 0 0; } .rend24 figcaption { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.rend24 .barras { max-width: 100%; min-width: 620px; } .rend24 .barras text { font-size: 9px; } .rend24 .barras text.valor { fill: var(--fg); font-size: 9.5px; }
.acoes .links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
.acoes .dica { color: var(--muted); font-size: 11px; }
.fiis-lista td.l, .fiis-lista th:nth-child(4) { text-align: left; }
/* Início: the novidades of the official documents */
#inicio .botao { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent-strong); color: #fff; text-decoration: none; font-weight: 600; }
#inicio .botao:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filtros-inicio { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.filtros-inicio .filtro { min-width: 56px; min-height: 44px; padding: 0 12px; }
.novidades { display: grid; gap: 0; }
.novidade { display: grid; grid-template-columns: 52px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 10px 0; min-width: 0; overflow-wrap: anywhere; }
.novidade .data-ficha { display: flex; flex-direction: column; align-items: center; padding: 14px 0; border-right: 1px dashed var(--line); }
.novidade .data-ficha b { font-size: 22px; font-weight: 800; line-height: 1; }
.novidade .data-ficha span { font-size: 12px; font-weight: 600; color: var(--muted); }
.novidade .ficha { padding: 10px 12px 6px; min-width: 0; }
.novidade .fonte { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 6px; padding: 1px 6px; }
.novidade .ler a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--accent); }
.novidade h3 { font-size: 16px; margin: 4px 0; }
.como-funciona { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.como-funciona summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--accent); }
.novidade .note { margin: 0; }
.resumo { margin: 6px 0; line-height: 1.5; }
.rotulo { display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-right: 4px; }
/* Ajustes: review of the Início's summaries */
.revisao { list-style: none; padding: 0; margin: 0; }
.revisao li { border-top: 1px solid var(--line); padding: 10px 0; overflow-wrap: anywhere; }
.revisao li p { margin: 4px 0; }
.revisao .acoes { display: flex; gap: 8px; }
:is(.revisao, #cliente) button { min-height: 44px; padding: 4px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
:is(.revisao, #cliente) button:hover { border-color: var(--accent); }
.revisao button:disabled { opacity: .55; cursor: progress; }
/* Meus ativos: the star (meus.js) */
.com-estrela { display: flex; align-items: center; gap: 6px; min-width: 0; }
.com-estrela h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.estrela { flex: none; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.estrela[aria-pressed="true"] { color: var(--warn); border-color: var(--warn); }
.estrela:hover { border-color: var(--accent); }
.estrela:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.estrela:disabled { opacity: .55; cursor: progress; }
.meu { color: var(--warn); margin-left: 3px; font-size: 12px; }
.novidade .meta { display: flex; align-items: center; gap: 8px; }
.novidade .meta .estrela { min-width: 40px; min-height: 40px; font-size: 19px; }
.vazio { border-top: 1px solid var(--line); padding: 12px 0; }
.perguntas { padding-left: 18px; display: grid; gap: 10px; margin: 6px 0; }
.perguntas a { color: var(--accent); }
/* The assessor on the Início and the cited assets of an answer */
.busca.pergunta-inicio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pergunta-inicio .linha { display: flex; gap: 8px; }
.pergunta-inicio input { flex: 1; min-width: 0; }
.sugestoes { display: flex; flex-wrap: wrap; gap: 8px; }
.sugestoes .filtro { min-height: 44px; text-align: left; border-radius: var(--radius-s); }
.citados { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.citado { display: inline-flex; align-items: center; gap: 4px; }
.citado .estrela { min-width: 40px; min-height: 40px; font-size: 19px; }
/* Phone notifications box on the Início */
.aviso-celular { display: grid; gap: 8px; }
.aviso-celular p { margin: 0; }
.aviso-celular #avisar { justify-self: start; min-height: 44px; }
/* Waiting for the assessor */
.carregando { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); margin: 12px 0; }
.spinner { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: color-mix(in srgb, var(--accent) 25%, transparent); border-right-color: var(--accent); } }
/* The answer's summary, the folded sources and the star's confirmation */
.resumo-resposta { font-weight: 600; }
.outras-fontes summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--accent); }
.meus-aviso { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.meus-aviso.on { opacity: 1; }
/* Glossary */
.glossario dl { margin: 0; display: grid; gap: 0; }
.glossario .termo { border-top: 1px solid var(--line); padding: 10px 0; scroll-margin-top: 16px; }
.glossario dt { font-weight: 700; }
.glossario dd { margin: 4px 0 0; line-height: 1.5; }
.glossario .alvo-termo { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: var(--radius-s); padding-left: 8px; }
/* A long answer folded after its summary; the citation the reader followed */
.detalhes-resposta.recolhida { max-height: 5.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
[data-expandir] { margin: 6px 0 10px; min-height: 44px; }
[data-expandir] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; font-weight: 600; }
.fontes li.fonte-ativa, .fontes li:target { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-s); }
.reportar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0; }
.reportar button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg); font: inherit; cursor: pointer; }
.reportar button:hover { border-color: var(--accent); }
/* The Início's strip of the person's news */
.faixa ul { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 2px; }
.faixa li a { display: flex; align-items: center; min-height: 40px; color: var(--fg); text-decoration: none; border-top: 1px solid var(--line); }
.faixa-titulo { font-size: 15px; margin: 0; }
.faixa [data-ver-todas] { min-height: 40px; }
/* "?" after a detail label: the glossary's definition */
.item { position: relative; }
.item:has(.ajuda) > span { padding-right: 30px; }
/* a 40 px touch target in the card's corner around a small circle */
.ajuda { position: absolute; top: 0; right: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ajuda span { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--accent); }
.ajuda:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 50%; }
.faixa li a { flex-direction: column; align-items: flex-start; justify-content: center; padding: 6px 0; }
.faixa-linha { color: var(--muted); font-size: 13px; line-height: 1.35; }
.pergunta-feita { margin: 12px 0 0; }
/* The FII parecer's last 12 months of income */
.rend12 { margin: 10px 0 4px; }
.rend-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.rend-mes { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px 8px; display: grid; gap: 2px; }
.rend-mes span { color: var(--muted); font-size: 12px; }
.vazio a { color: var(--accent); }
/* Panorama: a series its source publishes weekly says so under its name, on every width */
.dm.semanal { display: block; font-style: italic; }

/* Login page of the product host (no side menu: it comes before the session) */
.entrar { max-width: 420px; margin: 8vh auto; padding: 0 16px; }
.entrar form { display: grid; gap: 10px; margin-top: 12px; }
.entrar form[hidden] { display: none; }
.entrar label { font-weight: 600; }
.entrar :is(input, button) { min-height: 44px; }

/* Plans (docs/assinaturas-inventario.md): the badge next to the e-mail, the paid-feature notice, the plans page */
.plano-selo { order: 3; flex: 1 0 100%; font-size: 12px; color: var(--muted); } /* always its own line under the e-mail */
.plano-aviso { border-color: var(--accent); }
.plano-aviso p { margin: 4px 0; }
.plano-aviso a, .meus-aviso a { color: var(--accent); font-weight: 600; }
.entrar a, .planos a { color: var(--accent); }
.planos { max-width: 820px; margin: 0 auto; padding: 16px; }
.planos-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.planos .preco { font-size: 18px; font-weight: 700; margin: 4px 0 8px; }
.planos ul { padding-left: 20px; margin: 8px 0; line-height: 1.6; }
.planos button { min-height: 44px; padding: 4px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.planos button:hover { border-color: var(--accent); }
.planos button.principal { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.planos button:disabled { opacity: .55; cursor: progress; }
.planos-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.planos-botoes button { flex: 1 1 180px; }
#meu-plano .box, .legal .box { margin-bottom: 12px; }
.legal h2 { font-size: 17px; margin: 18px 0 6px; }
.legal p, .legal li { line-height: 1.6; }
.planos-tabela { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.planos-tabela th, .planos-tabela td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.planos-tabela thead th { color: var(--muted); font-weight: 600; }
.planos-tabela tbody th { font-weight: 500; }
.planos-tabela td:last-child { font-weight: 600; }
.planos-tabela { table-layout: fixed; }
.planos-tabela th, .planos-tabela td { white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.planos-tabela th:first-child { width: 42%; }

/* While a screen's data loads: grey bars where the content will be, so the page does not grow in steps
   (the text is only for screen readers) */
.esqueleto { min-height: 60vh; display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.esqueleto.curto { min-height: 240px; }
.esqueleto i { display: block; height: 56px; border-radius: 12px; background: var(--line); opacity: .7;
  animation: esqueleto 1.2s ease-in-out infinite alternate; }
.esqueleto i:nth-child(3) { height: 120px; }
.esqueleto i:nth-child(5) { height: 220px; }
@keyframes esqueleto { from { opacity: .45; } to { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .esqueleto i { animation: none; } }

/* the in-page notice that replaces the browser's alert box (window.avisar in site.js) */
.aviso-site { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  width: min(480px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 10px; background: var(--panel); color: var(--fg);
  border: 1px solid var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.4; }
.aviso-site[hidden] { display: none; }
.busca .rotulo { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-bottom: -4px; }

/* the Início's question box inside the header (phase 2 of the Lastro visual) */
#inicio .head { flex-wrap: wrap; }
#inicio .head #assessor { flex: 1 1 100%; min-width: 0; }
#inicio .head .pergunta-inicio { margin: 4px 0 0; }

/* the price ruler and the cards (Lastro visual, phase 3; regua() in triagem.js; not the Carteira's .regua) */
.regua-teto { margin: 12px 0 2px; }
.rt-barra { position: relative; height: 22px; }
.rt-barra::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--line); }
.rt-faixa { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--brand); }
[data-theme="dark"] .rt-faixa { background: var(--accent); }
.rt-traco { position: absolute; z-index: 2; top: 3px; width: 2px; height: 16px; margin-left: -1px; background: var(--fg); }
.rt-losango { position: absolute; z-index: 2; top: 6px; width: 10px; height: 10px; margin-left: -5px; border: 2px solid var(--fg); background: var(--panel); transform: rotate(45deg); }
.rt-preco { position: absolute; z-index: 1; top: 2px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--mine); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--mine); }
.rt-rotulos { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rt-rotulos span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; min-width: 0; }
.rt-ico { display: inline-block; flex: none; }
.rt-ico-traco { width: 2px; height: 11px; background: var(--fg); }
.rt-ico-losango { width: 8px; height: 8px; border: 2px solid var(--fg); transform: rotate(45deg); }
.cartoes-acoes { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.cartao-acao { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 10px 14px 12px; min-width: 0; }
.cartao-topo { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cartao-topo .alvo { flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: -10px; cursor: pointer; }
.cartao-topo input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent-strong); margin: 0; }
.cartao-codigo { font-size: 18px; font-weight: 800; color: var(--fg); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.cartao-nome { color: var(--muted); font-size: 13px; min-width: 0; flex: 1; line-height: 1.35; }
.cartao-setor { display: block; font-size: 12px; }
.cartao-preco { margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.cartao-preco b { font-size: 18px; }
.variacao { font-size: 13px; font-weight: 700; }
.variacao.sobe { color: var(--up); } .variacao.desce { color: var(--down); }
.cartao-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 2px; padding-left: 34px; }
.faisca { flex: none; } .faisca.sobe polyline { stroke: var(--up); } .faisca.desce polyline { stroke: var(--down); }
.cartao-pe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 14px; }
.cartao-dy { white-space: nowrap; }
.leitura { font-weight: 700; font-size: 13px; border-radius: 6px; padding: 3px 8px; background: var(--bg); color: var(--muted); }
.leitura.abaixo { background: color-mix(in srgb, var(--brand) 12%, var(--panel)); color: var(--accent); }
.contagem-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.contagem-linha .contagem { flex: 1 1 260px; }
.troca-vista { flex: none; }
.busca-lista { display: block; width: 100%; margin-top: 8px; min-height: var(--control); border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font: inherit; padding: 0 14px; }
.busca-lista:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  /* the main pills wrap (three of them: "★ meus ativos" first), never cut at the edge; the search below */
  .acoes .filtros { display: flex; flex-wrap: wrap; padding: 2px 0 4px; }
  .acoes .filtros > * { flex: 0 1 auto; width: auto; }
}

/* the cards as in the prototype: DY on its own line; the reading and the data's source under a dashed rule;
   the main pills in view, the rest under "Mais filtros" */
.cartao-dy { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.cartao-dy b { color: var(--fg); }
.cartao-pe { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.cartao-fonte { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mais-filtros { margin-top: 6px; }
.mais-filtros > summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--accent); }
.mais-filtros[open] > summary { margin-bottom: 6px; }

/* the whole card opens the detail (the list click handler); its controls keep their own action */
.cartao-acao { cursor: pointer; }
.cartao-acao:hover { border-color: var(--accent); }
