:root {
  --bg: #0b0e14;
  --bg-2: #10141c;
  --card: #141922;
  --card-2: #1a202b;
  --border: #232a37;
  --border-2: #2d3646;
  --text: #e6e9ef;
  --muted: #8a93a6;
  --faint: #5b6476;
  --accent: #00c48c;
  --accent-2: #00a876;
  --up: #22c55e;
  --down: #f04f5a;
  --warn: #f5a524;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font: inherit; color: inherit; }
code { background: var(--card-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: rgba(11, 14, 20, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.market { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.market .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.market.open .dot { background: var(--up); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--card); }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 20px 24px 40px; }

.wallet-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.wallet-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wallet-tab {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); cursor: pointer; font-weight: 500; white-space: nowrap;
}
.wallet-tab:hover { color: var(--text); border-color: var(--border-2); }
.wallet-tab.active { background: rgba(0, 196, 140, .12); border-color: var(--accent); color: var(--accent); }

.wallet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.wallet-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.wallet-actions { display: flex; gap: 14px; margin-top: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.link-btn.danger:hover { color: var(--down); }

/* ---------- Buttons / inputs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.primary { background: var(--accent); color: #04130d; }
.btn.primary:hover { background: var(--accent-2); }
.btn.primary:disabled { opacity: .5; cursor: progress; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--border-2); }
.btn.danger { background: var(--down); color: #fff; }

.input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font: inherit; outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 196, 140, .15); }
.input.sm { padding: 7px 10px; max-width: 260px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--border-2); }
.stat:first-child::before { background: var(--accent); }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stat .sub.up, .stat .sub.down { font-weight: 600; }

.charts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart-card { padding: 18px 20px; min-height: 260px; }
.chart-card h2, .assets h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { flex: 0 0 150px; width: 150px; height: 150px; }
.donut circle { transition: stroke-width .15s, opacity .15s; }
.donut text { fill: var(--text); font-variant-numeric: tabular-nums; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow: auto; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: default; padding: 2px 4px; border-radius: 6px; }
.legend li:hover, .legend li.hl { background: var(--card-2); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend .pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-empty { color: var(--faint); font-size: 13px; padding: 40px 0; text-align: center; width: 100%; }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .t { font-weight: 600; }
.bar-track { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transition: width .4s ease; }
.bar-row .p { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Tabela ---------- */
.assets { padding: 0; overflow: hidden; }
.assets-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.type-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.type-tab {
  background: transparent; border: 0; padding: 7px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.type-tab:hover { background: var(--card-2); color: var(--text); }
.type-tab.active { background: var(--card-2); color: var(--text); }
.type-tab .count { font-size: 11px; background: var(--border); padding: 1px 7px; border-radius: 99px; color: var(--muted); }
.type-tab .sw { width: 8px; height: 8px; border-radius: 50%; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1080px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; text-align: left; cursor: pointer; user-select: none; background: var(--bg-2); }
th:hover { color: var(--muted); }
th.sorted { color: var(--text); }
th.sorted::after { content: " ▾"; }
th.sorted.asc::after { content: " ▴"; }
th.actions-col { cursor: default; width: 80px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
tbody tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }

.asset-cell { display: flex; align-items: center; gap: 10px; }
.ticker-badge {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: #0b0e14; flex: none;
}
.asset-cell .tk { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.asset-cell .nm { color: var(--muted); font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.type-pill { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; border: 1px solid; text-transform: uppercase; letter-spacing: .03em; }
.seg-chip { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.chg { display: inline-block; padding: 2px 7px; border-radius: 6px; font-weight: 600; font-size: 12.5px; }
.chg.up { background: rgba(34, 197, 94, .12); }
.chg.down { background: rgba(240, 79, 90, .12); }
.profit-cell .big { font-weight: 600; }
.profit-cell .small { font-size: 12px; }
.weight-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.weight-bar { width: 44px; height: 5px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.weight-bar span { display: block; height: 100%; background: var(--accent); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: .5; transition: opacity .15s; }
tr:hover .row-actions { opacity: 1; }
.row-actions .icon-btn { width: 28px; height: 28px; }
.row-actions .icon-btn.del:hover { color: var(--down); border-color: rgba(240, 79, 90, .4); }
.wallet-names { font-size: 11px; color: var(--faint); }

.flash-up { animation: flashUp 1.2s ease; }
.flash-down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { background: rgba(34, 197, 94, .35); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(240, 79, 90, .35); } 100% { background: transparent; } }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.footnote { color: var(--faint); font-size: 12px; text-align: center; margin-top: 18px; }

/* ---------- Modais ---------- */
.modal {
  width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-2); border-radius: 16px;
  background: var(--card); color: var(--text); box-shadow: var(--shadow); overflow: visible;
}
.modal.small { width: min(400px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(3, 5, 9, .7); backdrop-filter: blur(3px); }
.modal form { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--down); margin: 0; font-size: 13px; }

.suggestions {
  position: absolute; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; z-index: 5;
  background: var(--card-2); border: 1px solid var(--border-2); border-radius: 10px; box-shadow: var(--shadow); max-height: 260px; overflow: auto;
}
.suggestions li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.suggestions li:hover, .suggestions li.active { background: var(--border); }
.suggestions .tk { font-weight: 700; width: 64px; }
.suggestions .nm { color: var(--muted); font-size: 12.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.preview {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.preview .info { flex: 1; min-width: 0; }
.preview .info .nm { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview .px { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.preview.loading { color: var(--muted); font-size: 13px; }

.merge-note { font-size: 12.5px; color: var(--warn); background: rgba(245, 165, 36, .08); border: 1px solid rgba(245, 165, 36, .25); padding: 10px 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.merge-note label { display: flex; gap: 8px; align-items: center; color: var(--text); cursor: pointer; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--card-2); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; animation: toastIn .2s ease; max-width: 340px; }
.toast.error { border-left-color: var(--down); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .charts { grid-template-columns: 1fr 1fr; }
  .charts .chart-card:last-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .topbar { padding: 10px 16px; }
  .container { padding: 16px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
  .charts .chart-card:last-child { grid-column: auto; }
  .stat .value { font-size: 19px; }
  .market #last-update { display: none; }
  .wallet-head { flex-direction: column; align-items: stretch; }
  .grid2 { grid-template-columns: 1fr; }
  .input.sm { max-width: none; }
}

/* ---------- Assistente IA ---------- */
.ai-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #00c48c, #4f8cff); color: #04130d; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 196, 140, .3);
  transition: transform .15s;
}
.ai-fab:hover { transform: translateY(-2px); }
body.ai-open .ai-fab { display: none; }
body.ai-open .toasts { right: 440px; }

.ai-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: 420px; max-width: 100vw;
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--border-2); box-shadow: -10px 0 40px rgba(0, 0, 0, .4);
}
.ai-panel[hidden] { display: none !important; }
.ai-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ai-meta { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.ai-head-actions { display: flex; gap: 6px; }

.ai-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; word-wrap: break-word; }
.ai-msg.user { align-self: flex-end; background: rgba(0, 196, 140, .14); border: 1px solid rgba(0, 196, 140, .3); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.ai-msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ai-msg.bot p { margin: 0 0 6px; }
.ai-msg.bot p:last-child { margin-bottom: 0; }
.ai-msg.bot ul { margin: 4px 0 6px; padding-left: 18px; }
.ai-msg.bot code { font-size: 12px; }
.ai-msg.bot h5 { margin: 8px 0 4px; font-size: 13.5px; }
.ai-msg.bot h5:first-child { margin-top: 0; }
.ai-msg.bot hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; }
.ai-msg.bot:has(.ai-table) { align-self: stretch; max-width: none; }
.ai-table { overflow-x: auto; margin: 6px 0; border: 1px solid var(--border); border-radius: 10px; }
.ai-table:last-child { margin-bottom: 0; }
.ai-table table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 12.5px; }
.ai-table th, .ai-table td { padding: 6px 9px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; white-space: normal; }
.ai-table th { background: var(--card-2); color: var(--muted); font-weight: 600; font-size: 11.5px; white-space: nowrap; text-transform: none; letter-spacing: 0; cursor: default; }
.ai-table tr:last-child td { border-bottom: 0; }
.ai-table tbody tr:hover { background: none; }
.ai-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai-msg .files { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; white-space: normal; }
.ai-file-chip { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--border-2); }
.ai-msg.error { align-self: stretch; max-width: none; background: rgba(240, 79, 90, .08); border: 1px solid rgba(240, 79, 90, .35); color: #ffb4b9; }
.ai-msg .imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ai-msg .imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-2); }
.ai-tool { align-self: flex-start; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); padding: 2px 4px; }
.ai-tool .ic { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(34, 197, 94, .15); color: var(--up); }
.ai-tool.err .ic { background: rgba(240, 79, 90, .15); color: var(--down); }
.ai-cost { align-self: flex-start; font-size: 11px; color: var(--faint); padding-left: 4px; }
.ai-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.ai-welcome { color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.ai-welcome h4 { margin: 0; color: var(--text); font-size: 15px; }
.ai-examples { display: flex; flex-direction: column; gap: 6px; }
.ai-example { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--text); font-size: 12.5px; }
.ai-example:hover { border-color: var(--accent); }
.ai-setup ol { padding-left: 18px; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.ai-setup a { color: var(--accent); }

.ai-form { border-top: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-input-row { display: flex; align-items: flex-end; gap: 8px; }
.ai-input-row textarea {
  flex: 1; resize: none; max-height: 160px; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border);
  color: var(--text); font: inherit; outline: none; line-height: 1.4;
}
.ai-input-row textarea:focus { border-color: var(--accent); }
.ai-attach { width: 38px; height: 38px; flex: none; cursor: pointer; }
.ai-send { width: 40px; height: 38px; padding: 0; flex: none; }
.ai-hint { font-size: 11px; color: var(--faint); text-align: center; }
.ai-attachments { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-thumb { position: relative; }
.ai-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-2); display: block; }
.ai-thumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--down); color: #fff; font-size: 10px; cursor: pointer; line-height: 1; }
.ai-thumb.file span { display: flex; align-items: center; height: 36px; max-width: 200px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--card); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-history { display: flex; flex-direction: column; gap: 10px; }
.ai-history-head { display: flex; align-items: center; justify-content: space-between; }
.ai-history-head h4 { margin: 0; font-size: 15px; }
.ai-history-list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ai-history-item { position: relative; padding: 9px 34px 9px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); cursor: pointer; }
.ai-history-item:hover { border-color: var(--accent); }
.ai-history-item.current { border-color: rgba(0, 196, 140, .5); }
.ai-history-item .t { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-history-item .d { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.ai-history-del { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; }
.ai-history-del:hover { background: rgba(240, 79, 90, .15); color: var(--down); }
.ai-drop { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 196, 140, .12); border: 2px dashed var(--accent); color: var(--accent); font-weight: 700; font-size: 16px; pointer-events: none; }

@media (max-width: 760px) {
  .ai-panel { width: 100vw; }
  .ai-fab span { display: none; }
  .ai-fab { padding: 14px; }
}

/* ---------- Renda fixa ---------- */
.head-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.head-buttons.center { justify-content: center; }
.rf-section { border-top: 1px solid var(--border); }
.assets-head + .table-wrap[style*="none"] + .rf-section, .assets .table-wrap[style*="none"] + .rf-section { border-top: 0; }
.rf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; flex-wrap: wrap; }
.rf-head h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.rf-head h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; }
.rf-indexes { font-size: 12px; color: var(--faint); }
#rf-table { min-width: 1000px; }
.small-note { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.small-note.warn { color: var(--warn); font-weight: 600; }
tr.rf-alert td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.check-field { justify-content: flex-end; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text) !important; font-size: 13.5px !important; font-weight: 500 !important; cursor: pointer; padding: 10px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.fi-adjust { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.fi-adjust summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.fi-adjust[open] summary { margin-bottom: 10px; }
.small-p { font-size: 12px; margin: 8px 0 0; }
input[type=date].input { color-scheme: dark; }
#rf-table th, #rf-table td { padding: 12px 10px; }
#rf-table .asset-cell .nm { max-width: 190px; }
.bar-row { grid-template-columns: 92px 1fr 48px; }
.bar-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
