* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f4f6f9;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}
a { color: #e65100; }
header.hub-header {
  background: linear-gradient(135deg, #ff6a00, #ff8c00);
  color: white;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header.hub-header h1 { font-size: 24px; font-weight: 700; }
header.hub-header p { font-size: 13px; opacity: 0.9; margin-top: 4px; }
.hub-brand { display: flex; align-items: center; gap: 14px; }
.hub-avatar {
  width: 42px; height: 42px; border-radius: 10px;
  background: #1a1a2e; color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.hub-nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 24px; background: #2d3748;
}
.hub-nav a {
  color: rgba(255,255,255,.75); text-decoration: none;
  padding: 10px 16px; border-radius: 8px 8px 0 0;
  font-size: 13px; font-weight: 600;
}
.hub-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hub-nav a.ativo { background: #f4f6f9; color: #ff6a00; }
.hub-acesso-banner {
  background: #fff3e0;
  border-bottom: 1px solid #ffcc80;
  color: #5d4037;
  padding: 10px 24px;
  font-size: 13px;
  line-height: 1.45;
}
.hub-acesso-banner strong { color: #e65100; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 48px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: white; border-radius: 12px; padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border: 1px solid #eee; text-decoration: none; color: inherit;
  transition: transform .12s, box-shadow .12s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.card h2 { font-size: 17px; margin-bottom: 8px; color: #1a1a2e; }
.card p { font-size: 13px; color: #666; margin: 0; flex: 1; }
.card .tag {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 700; color: #ff6a00;
}
.section-title {
  font-size: 18px; font-weight: 700;
  color: #2d3748; margin: 24px 0 12px;
}
.panel {
  background: white; border-radius: 12px;
  padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid #eee; margin-bottom: 16px;
}
.panel h3 { font-size: 15px; margin-bottom: 10px; color: #1a1a2e; }
.panel ul { list-style: none; }
.panel li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.panel li:last-child { border-bottom: none; }
.meta { font-size: 12px; color: #888; margin-top: 8px; }
.vazio { color: #999; font-size: 13px; padding: 8px 0; }
.ext-link { font-size: 13px; margin-top: 16px; }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card-head h2 {
  margin: 0;
  font-size: 17px;
  color: #1a1a2e;
  line-height: 1.1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}

.card-icon-fundos { background: #0a7a3e; }
.card-icon-agenda { background: #2563eb; }
.card-icon-crilog { background: #1565c0; }
.card-icon-crabrf { background: #8b4513; }
.card-icon-knsc11 { background: #b91c1c; }
.card-icon-knuq11 { background: #7c3aed; }
.card-icon-crilog,
.card-icon-crabrf,
.card-icon-knsc11,
.card-icon-knuq11 {
  transform: translateY(-1px);
}

.card-cta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #ff6a00;
}

.card-arrow { font-size: 16px; }
.card:hover .card-cta { color: #e65100; }

.hub-destaque-semana {
  margin-bottom: 22px;
}

.hub-destaque-semana .card-featured {
  margin-bottom: 0;
}

/* Card em destaque (ex.: destaque da semana no app) */
.card-featured {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  padding: 20px 22px 18px;
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 45%, #f8f4ff 100%);
  border: 2px solid #ff6a00;
  box-shadow: 0 10px 32px rgba(255, 106, 0, 0.14);
  margin-bottom: 4px;
}

.card-featured:hover {
  border-color: #e65100;
  box-shadow: 0 14px 40px rgba(255, 106, 0, 0.2);
}

.card-featured-badge {
  display: inline-block;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ff6a00, #e65100);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
}

.card-featured-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-featured .card-head h2 {
  font-size: 20px;
}

.card-featured .card-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #444;
  font-weight: 600;
  line-height: 1.45;
  max-width: 52ch;
}

.card-featured .card-icon {
  width: 52px;
  height: 52px;
  font-size: 14px;
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
}

.card-featured .card-cta {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  min-width: 120px;
  justify-content: flex-end;
}

.destaques-sublabel {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 18px 0 10px;
}

.hub-destaque-semana .destaques-sublabel:first-child {
  margin-top: 0;
}

.card-featured-gaveta {
  margin-top: 14px;
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 50%, #fff8f0 100%);
  border-color: #1565c0;
  box-shadow: 0 10px 32px rgba(21, 101, 192, 0.12);
}

.card-featured-gaveta:hover {
  border-color: #0d47a1;
  box-shadow: 0 14px 40px rgba(21, 101, 192, 0.18);
}

.card-featured-badge-gaveta {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35);
}

@media (max-width: 720px) {
  .card-featured-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-featured-badge {
    margin-bottom: 10px;
  }
  .card-featured .card-cta {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid #f1f1f1;
    padding-top: 14px;
    margin-top: 8px;
  }
}

/* Painel do dia (home) */
.painel-dia {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 22px 24px 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.painel-dia-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.painel-dia-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
}

.painel-dia-meta {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.painel-dia-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.painel-dia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.painel-dia-grid-2 {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
}

.painel-col-hint {
  font-size: 12px;
  color: #888;
  margin: -6px 0 12px;
  line-height: 1.4;
}

.painel-grupos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.painel-grupo {
  border: 1px solid #eef0f3;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
}

.painel-grupo-head {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a2e;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
}

.painel-grupo-head a {
  color: #e65100;
  text-decoration: none;
}

.painel-grupo-head a:hover {
  text-decoration: underline;
}

.painel-grupo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.painel-grupo-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
}

.painel-grupo-item:last-child {
  border-bottom: none;
}

.painel-grupo-item-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.painel-grupo-item .painel-evento-detalhe {
  font-weight: 500;
  color: #666;
  font-size: 12px;
}

.painel-grupo-item .painel-evento-detalhe::before {
  content: "· ";
  color: #bbb;
}

.painel-prox-semana {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e0e4ea;
}

.painel-prox-titulo {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.painel-prox-periodo {
  font-weight: 600;
  color: #888;
  text-transform: none;
  letter-spacing: 0;
}

.painel-prox-alerta {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8f0;
  border: 1px solid #ffd4b0;
  font-size: 13px;
  line-height: 1.45;
  color: #5c3d1e;
}

.painel-prox-alerta strong {
  display: block;
  color: #c2410c;
  margin-bottom: 2px;
}

.painel-prox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.painel-prox-dia {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
  line-height: 1.4;
}

.painel-prox-dia:last-child {
  border-bottom: none;
}

.painel-prox-dia .painel-data {
  min-width: 42px;
  font-weight: 700;
  color: #444;
}

.painel-prox-ev {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.painel-prox-ev a {
  color: #e65100;
  font-weight: 700;
  text-decoration: none;
}

.painel-prox-ev a:hover {
  text-decoration: underline;
}

.painel-item-evento {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.painel-evento-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.painel-evento-produto {
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
}

.painel-evento-produto a {
  color: #e65100;
  text-decoration: none;
}

.painel-evento-produto a:hover {
  text-decoration: underline;
}

.painel-evento-detalhe {
  font-weight: 500;
  color: #666;
  font-size: 12px;
}

.painel-evento-detalhe::before {
  content: "· ";
  color: #bbb;
}

.painel-item-hoje .painel-data {
  color: #c2410c;
  font-weight: 800;
}

.painel-item-amanha .painel-data {
  color: #b45309;
  font-weight: 700;
}

.painel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.painel-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.painel-chip:hover {
  background: #fff3e8;
  border-color: #ffcc80;
  color: #c2410c;
}

.painel-dia-loading .painel-skeleton {
  height: 180px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eef0f3 0%, #f8f9fa 50%, #eef0f3 100%);
  background-size: 200% 100%;
  animation: hub-fundo-shimmer 1.1s ease-in-out infinite;
}

.painel-dia-loading .painel-skeleton-sm {
  height: 88px;
}

.painel-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #ff6a00;
  margin: 0 0 12px;
}

.painel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.painel-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
}

.painel-item:last-child { border-bottom: none; }

.painel-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hub-links-app {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-link-copy {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #ff6a00;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff8f0;
  border: 1px solid #ffd2a8;
  font-family: inherit;
}

.hub-link-copy:hover {
  background: #ff6a00;
  color: #fff;
}

.hub-link-copy.copiado {
  background: #0a7a3e;
  border-color: #0a7a3e;
  color: #fff;
}

.painel-data {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
}

.painel-urg {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #c2410c;
  background: #fff3e8;
  padding: 2px 8px;
  border-radius: 999px;
}

.painel-item-urgente .painel-data { color: #c2410c; }

.painel-produto {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
}

.painel-produto small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin-top: 2px;
}

.painel-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  padding: 2px 8px;
  border-radius: 999px;
}

.painel-tag-encerra { background: #fff3e8; color: #c2410c; }
.painel-tag-liq { background: #e8f4fd; color: #1565c0; }
.painel-tag-reserva { background: #f3f4f6; color: #4b5563; }
.painel-tag-abre { background: #e8f5e9; color: #1b5e20; }

.painel-vazio {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.45;
}

.painel-ofertas-hub {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f5;
}

.painel-ofertas-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #888;
  margin-bottom: 10px;
}

.painel-ofertas-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.painel-oferta-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e8eaed;
  background: #fafbfc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, transform 0.12s;
}

.painel-oferta-card:hover {
  border-color: #ff6a00;
  transform: translateY(-1px);
}

.painel-oferta-card strong {
  font-size: 14px;
  color: #1a1a2e;
}

.painel-oferta-card span {
  font-size: 12px;
  color: #666;
}

.painel-foot {
  margin: 14px 0 0;
  font-size: 11px;
  color: #999;
}

@media (max-width: 900px) {
  .painel-dia-grid,
  .painel-dia-grid-2 { grid-template-columns: 1fr; }
}

.section-hub-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #2d3748;
  margin: 0 0 14px;
}

.destaques {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #eef0f3;
}

.destaques-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #ff6a00;
  margin-bottom: 12px;
}

.destaques-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.destaque-pill {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, transform 0.12s;
  display: inline-flex;
  align-items: center;
}

.destaque-pill:hover {
  border-color: #ff6a00;
  color: #ff6a00;
  transform: translateY(-1px);
}

.destaque-pill.ativo {
  border-color: #ff6a00;
  color: #ff6a00;
  transform: none;
}

/* Materiais (documentos) - bloco padronizado (CRI LOG x KNSC11) */
.cri-panel.hub-docs-panel,
.k11-panel.hub-docs-panel {
  margin-top: 18px;
  margin-bottom: 22px;
  background: #fff8f0;
  border-color: #ff6a00;
  box-shadow: 0 6px 20px rgba(255, 106, 0, .10);
}

.hub-docs-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #ff6a00;
  margin: 0 0 16px;
}

.hub-doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-doc-tab {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 220px;
  max-width: 100%;
  background: #fff3e8;
  border: 1px solid #ffd2a8;
  color: #ff6a00;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
}

.hub-doc-tab:hover { filter: brightness(0.98); }

.hub-doc-name {
  color: #ff6a00;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
}

.hub-doc-meta {
  color: #666;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  min-height: 18px; /* garante altura consistente quando o KNSC nao tem meta */
}

.hub-doc-empty {
  color: #666;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.6;
}

/* Páginas de fundo em destaque — skeleton enquanto carrega Top Funds */
.hub-fundo-loading .fund-type-title {
  color: #d1d5db;
}
.hub-fundo-loading [data-hub-field] {
  display: inline-block;
  min-width: 4.5em;
  min-height: 0.95em;
  border-radius: 4px;
  vertical-align: middle;
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 45%, #e5e7eb 90%);
  background-size: 200% 100%;
  animation: hub-fundo-shimmer 1.1s ease-in-out infinite;
  color: transparent !important;
}
@keyframes hub-fundo-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 720px) {
  .hub-doc-tab { width: 100%; }
}

/* Carteira Recomendada (Investment Strategy) */
.carteira-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.carteira-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #243b55 55%, #1565c0 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.25);
  margin-bottom: 18px;
}

.carteira-hero-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 8px;
}

.carteira-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.carteira-hero-month {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ff6a00;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.45);
}

.carteira-hero-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.15;
}

.carteira-hero-meta {
  margin: 10px 0 0;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.carteira-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.carteira-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.carteira-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.carteira-btn-primary {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
}

.carteira-btn-primary:hover {
  filter: brightness(1.05);
  background: #ff6a00;
}

.carteira-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.carteira-toolbar-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.carteira-editions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carteira-edition-chip {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #2d3748;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.carteira-edition-chip:hover {
  border-color: #ff6a00;
}

.carteira-edition-chip.ativo {
  border-color: #ff6a00;
  background: #fff8f0;
  color: #c2410c;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.carteira-viewer-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.carteira-pdf-frame {
  display: block;
  width: 100%;
  min-height: min(78vh, 900px);
  height: 78vh;
  border: none;
  background: #f4f6f9;
}

.carteira-viewer-hint {
  margin: 0;
  padding: 12px 16px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #eee;
  line-height: 1.5;
}

.carteira-footnote {
  margin: 16px 4px 0;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.carteira-posicoes-panel {
  background: #fff;
  border: 1px solid #e8ddd0;
  border-radius: 14px;
  padding: 22px 22px 18px;
  margin-bottom: 22px;
  box-shadow: 0 6px 24px rgba(194, 65, 12, 0.06);
}

.carteira-posicoes-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: #c2410c;
  line-height: 1.2;
}

.carteira-posicoes-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.carteira-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #f0e6dc;
}

.carteira-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.carteira-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: #fff8f0;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #ffd2a8;
}

.carteira-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3ebe3;
  color: #2d3748;
}

.carteira-table tbody tr:last-child td {
  border-bottom: none;
}

.carteira-table tbody tr:hover td {
  background: #fffcf9;
}

.carteira-classe {
  font-weight: 700;
  color: #5c4a3a;
}

.carteira-ticker {
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}

.carteira-ticker-link {
  color: #ff6a00;
  text-decoration: none;
  font-weight: 900;
}

.carteira-ticker-link:hover {
  text-decoration: underline;
}

.carteira-num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.carteira-table thead th:nth-child(n + 3) {
  text-align: right;
}

.carteira-table-empty {
  text-align: center;
  color: #888;
  padding: 24px !important;
}

.carteira-posicoes-fonte {
  margin: 12px 2px 0;
  font-size: 11px;
  color: #999;
  line-height: 1.4;
}

.carteira-pdf-heading {
  margin: 0 0 12px 4px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.carteira-erro {
  padding: 24px;
  color: #c62828;
  font-weight: 700;
}

@media (max-width: 720px) {
  .carteira-page { padding: 16px 14px 32px; }
  .carteira-hero { padding: 20px 18px; }
  .carteira-hero-actions { width: 100%; }
  .carteira-btn { flex: 1 1 auto; min-width: 140px; }
  .carteira-pdf-frame { min-height: 65vh; height: 65vh; }
}
