:root {
  --ink: #20352f;
  --muted: #7b8882;
  --green: #237d60;
  --paper: #fff;
  --border: #e8ede8;
  --canvas: #f6f7f3;
  --fixed: #dba797;
  --equity: #aaa0cd;
  --crypto: #72af99;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
/* Importações: one focused task, responsive cards, no horizontal table. */
.imports {
  max-width: 1040px;
  margin: auto;
}
main[data-view="importar"] .page-heading {
  max-width: 1040px;
  margin-inline: auto;
}
.import-steps {
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
}
.import-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.import-steps li > span {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 23px;
  height: 23px;
  font-size: 10px;
}
.import-steps .current {
  color: var(--green);
}
.import-steps .current > span {
  background: #e5efe8;
  border-color: #e5efe8;
}
.import-classes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}
.import-classes button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 7px;
  min-height: 46px;
  background: transparent;
  border: 1px solid #e1e7df;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
}
.import-classes svg {
  width: 17px;
  height: 17px;
}
.import-classes .selected {
  background: #e7eee7;
  border-color: #b8cebd;
  color: #2b654c;
}
.import-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 23px 19px;
}
.import-card h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
.import-card-heading p,
.import-review-heading p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
}
.import-card-heading {
  margin-bottom: 24px;
}
.import-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.import-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.import-field > span {
  font-size: 11px;
  color: #7c8b7c;
}
.import-field input,
.import-field select {
  min-height: 46px;
  color: var(--ink);
}
.import-method {
  display: flex;
  gap: 5px;
  background: var(--canvas);
  padding: 5px;
  border-radius: 10px;
  margin: 24px 0 18px;
}
.import-method button {
  flex: 1;
  padding: 11px 6px;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.import-method .selected {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 5px #20352f0c;
}
.import-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed #b9cdbd;
  border-radius: 12px;
  background: #fafcf8;
  padding: 27px 15px;
  position: relative;
  cursor: pointer;
}
.import-dropzone strong {
  font-size: 13px;
  font-weight: 550;
}
.import-dropzone > span:not(.import-symbol) {
  font-size: 11px;
  color: var(--muted);
}
.import-dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.import-dropzone:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.import-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e9f1e8;
  color: #55856a;
  margin-bottom: 5px;
}
.import-files {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}
.import-file {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 9px;
  min-width: 0;
}
.import-file img {
  width: 40px;
  height: 54px;
  object-fit: contain;
  background: var(--canvas);
  border-radius: 5px;
}
.import-file > span {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  word-break: break-word;
  line-height: 1.5;
}
.import-file small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.import-file .icon-button {
  flex-shrink: 0;
}
.import-context {
  margin: 18px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.import-context summary {
  cursor: pointer;
  min-height: 34px;
  padding: 9px 0;
}
.import-context p {
  line-height: 1.7;
  margin: 6px 0 13px;
}
.import-context .import-form-grid {
  margin-top: 12px;
}
.import-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 17px 0 0;
}
.import-form-end {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.import-form-end > span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.import-form-end .button {
  min-height: 46px;
}
.crypto-import {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 35px 22px;
}
.crypto-import h2 {
  margin: 12px 0 10px;
}
.crypto-import p,
.import-reading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 460px;
}
.crypto-import .button {
  margin-top: 24px;
}
.crypto-import small {
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}
.import-feedback {
  padding: 14px 16px;
  background: #edf2e9;
  border: 1px solid #dce5d7;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #536c53;
}
.import-feedback.error,
.import-notice {
  color: #906338;
  background: #f8f1e6;
  border-color: #ebdfce;
}
.import-feedback.error {
  /* Keep inline errors compact, independent of the full-page .error state. */
  padding: 14px 16px;
  text-align: left;
  line-height: 1.7;
}
.import-feedback[hidden] {
  display: none;
}
.import-notice {
  margin-top: 15px;
  padding: 12px;
  font-size: 11px;
  border-radius: 8px;
}
.import-recent {
  margin-top: 32px;
}
.import-recent .investments-heading p {
  margin-top: 7px;
}
.import-recent-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: white;
}
.import-recent-row {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 17px;
  gap: 10px;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 18px 15px;
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.import-recent-row:last-child {
  border-bottom: 0;
}
.import-recent-row:hover {
  background: #fafcf8;
}
.import-recent-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #eef2e9;
  border-radius: 10px;
  color: #759073;
}
.import-recent-icon svg {
  width: 16px;
  height: 16px;
}
.import-recent-info strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.import-recent-info small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.import-recent-row > .import-badge {
  grid-column: 2;
  justify-self: start;
  font-size: 9px;
}
.import-recent-row > svg {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 15px;
  height: 15px;
  color: #a0ad98;
}
.import-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  font-size: 10px;
  color: var(--muted);
}
.import-empty {
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed #dde5da;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}
.import-review-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.import-badge {
  display: inline-flex;
  align-items: center;
  background: #edf3e9;
  border-radius: 6px;
  padding: 5px 8px;
  color: #6f856c;
  font-size: 10px;
  white-space: normal;
}
.import-badge.attention {
  background: #f8f0e3;
  color: #997641;
}
.import-review-heading {
  margin-bottom: 20px;
}
.import-review-layout {
  display: grid;
  gap: 22px;
}
.import-review-rows {
  display: grid;
  gap: 14px;
}
.import-row-top {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}
.import-row-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: var(--canvas);
  border-radius: 50%;
  color: var(--muted);
  font-size: 10px;
}
.import-row-top h3 {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  word-break: break-word;
}
.import-row-top p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.import-row-top > .import-badge {
  grid-column: 2;
  justify-self: start;
}
.import-row-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 17px 0 4px;
  font-size: 21px;
  font-weight: 550;
}
.import-row-value span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.import-row-fields {
  margin-top: 8px;
}
.import-row-fields > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 11px;
  color: #6f8a70;
  min-height: 43px;
  list-style: none;
}
.import-row-fields > summary::-webkit-details-marker {
  display: none;
}
.import-row-fields > summary svg {
  width: 13px;
  height: 13px;
}
.import-row-fields .import-form-grid {
  margin-top: 14px;
}
.import-choice {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
}
.import-choice > span,
.import-row-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}
.import-choice select {
  font-size: 13px;
}
.import-row-note {
  margin-top: 14px;
}
.import-validation {
  font-size: 11px;
  line-height: 1.7;
  color: #a37b49;
  margin-top: 14px;
}
.import-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.import-review-footer {
  margin-top: 20px;
  padding: 1px 1px 12px;
}
.import-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  color: #708370;
  line-height: 1.7;
  margin: 22px 0 14px;
}
.import-check input {
  appearance: auto;
  width: 17px;
  height: 17px;
  min-width: 17px;
  accent-color: var(--green);
  margin: 1px 0 0;
}
.import-confirm {
  width: 100%;
  min-height: 48px;
}
.import-undo {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 17px;
  font-size: 11px;
  color: var(--muted);
}
.import-undo summary {
  cursor: pointer;
  padding: 6px 0;
}
.import-undo p {
  margin: 12px 0;
  line-height: 1.8;
}
.import-undo .button {
  margin-top: 14px;
}
.import-evidence {
  background: #eff2ea;
  border-radius: 14px;
  padding: 19px;
  height: fit-content;
}
.import-evidence h3 {
  font-size: 13px;
  font-weight: 550;
}
.import-evidence > p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 8px 0 15px;
}
.import-source {
  border-top: 1px solid #dde5d7;
  padding: 5px 0;
  font-size: 11px;
}
.import-source summary {
  padding: 10px 0;
  cursor: pointer;
  word-break: break-word;
  line-height: 1.6;
}
.import-source img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--canvas);
  margin-bottom: 12px;
}
.import-source ul {
  padding-left: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.import-reading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 35px 22px;
}
.import-reading .import-symbol .spinner {
  width: 20px;
  height: 20px;
}
.import-reading .import-action-row {
  justify-content: center;
}
@media (max-width: 599px) {
  .app-header nav {
    gap: 0;
    justify-content: space-between;
  }
  .app-header nav a {
    font-size: 11px;
    gap: 5px;
  }
  .app-header nav svg {
    width: 14px;
    height: 14px;
  }
}
@media (min-width: 600px) {
  .import-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .import-card {
    padding: 27px;
  }
  .import-form-end {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .import-recent-row {
    grid-template-columns: 35px minmax(0, 1fr) auto 17px;
  }
  .import-recent-icon {
    grid-row: auto;
  }
  .import-recent-row > .import-badge {
    grid-column: 3;
  }
  .import-recent-row > svg {
    grid-column: 4;
    grid-row: 1;
  }
  .import-row-top {
    grid-template-columns: 25px minmax(0, 1fr) auto;
  }
  .import-row-top > .import-badge {
    grid-column: 3;
  }
  .import-classes {
    max-width: 520px;
  }
  .import-confirm {
    width: auto;
    min-width: 225px;
  }
}
@media (min-width: 900px) {
  .import-review-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .import-evidence {
    position: sticky;
    top: 22px;
  }
  .app-header nav {
    gap: 25px;
  }
}
.updates-menu {
  position: relative;
  flex-shrink: 0;
}
.updates-menu summary {
  list-style: none;
  cursor: pointer;
  gap: 12px;
}
.updates-menu summary::-webkit-details-marker {
  display: none;
}
.updates-menu summary [data-icon] {
  display: inline-flex;
  align-items: center;
}
.updates-menu .updates-chevron {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
}
.updates-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(290px, calc(100vw - 44px));
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 32px #20352f12;
}
.update-option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  min-height: 56px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
}
.update-option:hover:not(:disabled) {
  background: var(--canvas);
}
.update-option svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex-shrink: 0;
}
.update-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.updates-status {
  border-top: 1px solid var(--border);
  padding: 11px 12px 5px;
  margin-top: 4px;
}
#sync-date {
  font-size: 10px;
  color: var(--muted);
}
#sync-message {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 5px 0;
}
.updates-menu[data-running="true"] summary [data-icon] svg {
  animation: sync-spin 1.4s linear infinite;
}
@keyframes sync-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .updates-menu[data-running="true"] summary [data-icon] svg {
    animation: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid #65a991;
}
svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
strong {
  font-weight: 600;
}
.number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.right {
  text-align: right;
}
.positive {
  color: var(--green);
}
.negative {
  color: #b45d5d;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 14px;
  background: white;
  z-index: 40;
}
.skip:focus {
  top: 8px;
}
.app-header {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 27px;
  letter-spacing: -1.2px;
  font-weight: 700;
}
.brand-icon {
  width: 46px;
  height: 46px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  margin-right: 9px;
}
.brand-dot {
  color: var(--green);
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-name {
  display: none;
}
.avatar {
  position: relative;
  overflow: hidden;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9e9dc;
  color: #798372;
  font-size: 10px;
  font-weight: 650;
}
.avatar-photo {
  /* Original 603x1304 screenshot: frame (72,386,416,416), circular face crop. */
  position: absolute;
  width: 144.951923%;
  height: auto;
  max-width: none;
  left: -17.307692%;
  top: -92.788462%;
}
.avatar-photo[hidden] { display: none; }
.app-header nav {
  display: flex;
  order: 3;
  width: 100%;
  gap: 22px;
  border-bottom: 1px solid #e0e6df;
}
.app-header nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 0 14px;
  border-bottom: 2px solid transparent;
  color: #8a958d;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: -1px;
}
.app-header nav svg {
  width: 16px;
  height: 16px;
}
.app-header nav a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 29px 22px 22px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: #829080;
  margin-bottom: 9px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 600;
}
.page-heading h1 + p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.65;
  max-width: 220px;
}
.button {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  padding: 11px 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  background: var(--green);
  color: white;
}
.button.secondary {
  border: 1px solid #dce4da;
  background: transparent;
  color: #65846f;
}
.button:hover {
  filter: brightness(0.97);
}
.button svg {
  width: 16px;
  height: 16px;
}
.refresh-label {
  display: none;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 9px;
  min-height: 38px;
  min-width: 38px;
  border-radius: 9px;
}
.icon-button:hover {
  background: #ecf3ee;
}
.full {
  width: 100%;
  margin-top: 20px;
}
.overview-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 31px;
}
.balance-card {
  border-radius: 18px;
  padding: 23px;
  background: #254c40;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px #2b4b3510;
}
.balance-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid #ffffff07;
  border-radius: 50%;
  right: -120px;
  top: -80px;
  pointer-events: none;
}
.balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bed0c4;
  font-size: 11px;
  letter-spacing: 0.1px;
}
.balance-top .icon-button {
  color: #a9c5b6;
  margin: -8px -8px 0 0;
}
.balance-top .icon-button:hover {
  background: #ffffff0a;
}
.balance-top svg {
  width: 17px;
  height: 17px;
}
.balance-value {
  font-size: 38px;
  font-weight: 550;
  letter-spacing: -1.4px;
  margin: 17px 0 7px;
}
.balance-caption {
  color: #99b5a5;
  font-size: 11px;
}
.balance-breakdown {
  display: grid;
  gap: 13px;
  border-top: 1px solid #ffffff13;
  margin-top: 26px;
  padding-top: 20px;
}
.balance-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.balance-breakdown span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9cdc0;
}
.balance-breakdown strong {
  font-weight: 500;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.fixed_income {
  --asset-color: var(--fixed);
}
.equities {
  --asset-color: var(--equity);
}
.crypto {
  --asset-color: var(--crypto);
}
.dot {
  background: var(--asset-color);
}
.quote-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #9ab7a5;
  padding-top: 20px;
  line-height: 1.6;
}
.live-dot {
  display: inline-block;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #98bca1;
  flex-shrink: 0;
}
.live-dot.warn {
  background: #e4b188;
}
.allocation-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 23px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-heading h2 {
  font-size: 16px;
  letter-spacing: -0.35px;
  font-weight: 600;
}
.card-heading > span {
  font-size: 10px;
  color: #9da69e;
}
.allocation-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.donut {
  width: 130px;
  height: 130px;
  position: relative;
  flex-shrink: 0;
}
.donut svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.arc,
.ring-base {
  fill: none;
  stroke-width: 17;
}
.arc {
  stroke: var(--asset-color);
  transform: rotate(-90deg);
  transform-origin: center;
}
.ring-base {
  stroke: #f1f3ed;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.donut-center strong {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -1px;
}
.donut-center span {
  font-size: 8px;
  color: #9aa69b;
}
.allocation-legend {
  display: grid;
  gap: 11px;
  flex: 1;
}
.allocation-legend button {
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--ink);
  font-size: 11px;
  min-height: 36px;
}
.allocation-legend button span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.allocation-legend strong {
  font-size: 11px;
  font-weight: 500;
}
.card-footnote {
  color: #97a091;
  font-size: 9px;
  line-height: 1.6;
  margin-top: 20px;
}
.investments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.investments-heading h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.65px;
}
.investments-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.count-badge {
  background: #e9ede4;
  color: #89937f;
  border-radius: 6px;
  font-size: 9px;
  padding: 6px 8px;
  white-space: nowrap;
}
.category-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 3px 2px 7px;
  scrollbar-width: none;
}
.category-filters button {
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 13px;
  min-height: 38px;
  white-space: nowrap;
  border-radius: 9px;
  font-size: 11px;
  color: #929b90;
}
.category-filters button.selected {
  background: white;
  color: #486652;
  border-color: #dfe6dc;
  box-shadow: 0 2px 4px #2a4b3510;
}
.holdings-section {
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 11px;
  gap: 15px;
}
.section-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #7d8b7d;
}
.section-heading > span {
  font-size: 11px;
  color: #8a9687;
}
.wallet-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 6px;
}
.wallet-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.wallet-controls select {
  width: 112px;
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border-radius: 10px;
  background-position: right 12px center;
  font-size: 16px;
}
@media (min-width: 768px) {
  .wallet-controls select { font-size: 12px; }
}
.wallet-metric {
  display: flex;
  padding: 3px;
  background: #edf1e8;
  border-radius: 11px;
}
.wallet-metric button {
  min-width: 46px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #75816d;
  font-size: 12px;
}
.wallet-metric button.selected {
  color: var(--ink);
  background: white;
  box-shadow: 0 1px 4px #263c1610;
}
.wallet-caption {
  color: #84907b;
  font-size: 10px;
  line-height: 1.5;
  min-height: 20px;
  margin: 4px 0 20px;
}
.wallet-caption .text-button {
  font-size: inherit;
}
.asset-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
}
.asset-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #edf0e9;
  padding: 19px 16px;
  background: white;
  text-align: left;
  color: var(--ink);
}
.asset-row:last-child {
  border-bottom: 0;
}
.asset-row:hover {
  background: #fcfdf9;
}
.asset-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}
.asset-left strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.asset-left small {
  color: #96a090;
  font-size: 10px;
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}
.asset-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #eef4ed;
  color: #749779;
  font-size: 13px;
  font-weight: 600;
}
.asset-logo svg {
  width: 18px;
  height: 18px;
}
.asset-logo.fixed_income {
  background: #fcf0e9;
  color: #b78772;
}
.asset-logo.equities {
  background: #f0eef9;
  color: #8d7daa;
}
.asset-logo.BTC {
  background: #fcf2df;
  color: #c2994f;
}
.asset-logo.ETH {
  background: #f0eef8;
  color: #8d87ac;
}
.asset-logo.SOL {
  background: #eaf0fa;
  color: #8ba0c1;
}
.asset-logo.USDT {
  background: #ebf5ee;
  color: #80a691;
}
.mobile-quantity {
  display: block;
  font-size: 9px;
  color: #9ca498;
  margin-top: 5px;
}
.asset-quantity,
.asset-price,
.row-arrow {
  display: none;
}
.asset-result {
  text-align: right;
  flex-shrink: 0;
}
.asset-result > strong {
  display: block;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.gain {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  white-space: nowrap;
}
.gain > span {
  display: none;
}
.asset-result > small {
  font-size: 8px;
  color: #99a08f;
  display: block;
  margin-top: 4px;
}
.method-note {
  margin: 24px 3px 8px;
  color: #85917f;
  font-size: 10px;
}
.method-note summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  min-height: 32px;
}
.method-note summary svg {
  width: 14px;
  height: 14px;
}
.method-note > div {
  line-height: 1.8;
  padding: 12px 0 0 21px;
  max-width: 740px;
}
.method-note p + p {
  margin-top: 10px;
}
.app-update {
  margin: 0 0 16px;
  font-size: 12px;
  text-align: left;
}
.app-update[hidden] { display: none; }
footer {
  color: #9da796;
  font-size: 9px;
  text-align: center;
  margin-top: 27px;
  line-height: 1.7;
}
.section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: end;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.field {
  display: grid;
  gap: 7px;
  flex: 1 1 calc(50% - 13px);
  min-width: 0;
}
.field.search {
  flex-basis: 100%;
}
.field.investment-field {
  flex-basis: 100%;
}
.field.institution-field {
  flex-basis: 100%;
}
.field label {
  color: #83907e;
  font-size: 10px;
}
.search-wrap {
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 16px;
  height: 16px;
  color: #9ca695;
  pointer-events: none;
}
input,
select {
  width: 100%;
  min-width: 0;
  height: 43px;
  font-size: 16px;
  padding: 0 12px;
  border: 1px solid #e1e7dc;
  border-radius: 9px;
  background: #fff;
  color: #58715b;
}
input::placeholder {
  color: #a0aa97;
}
.search-wrap input {
  padding-left: 36px;
}
select {
  appearance: none;
  padding-right: 31px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%238b9886' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.text-button {
  background: none;
  border: 0;
  color: #738e76;
  padding: 8px 0;
  font-size: 11px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 32px;
}
.desktop-table {
  display: none;
}
.mobile-movements {
  display: block;
}
.movement-card {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0e9;
  background: white;
  padding: 17px 20px;
  text-align: left;
  color: var(--ink);
}
.movement-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #99a191;
  margin-bottom: 12px;
}
.movement-card-body {
  display: flex;
  gap: 10px;
  align-items: center;
}
.kind-icon {
  background: #f1f5ec;
  color: #94a88c;
  border-radius: 8px;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.kind-icon svg {
  width: 15px;
  height: 15px;
}
.movement-card-body > div {
  flex: 1;
  min-width: 0;
}
.movement-card-body strong {
  font-size: 12px;
}
.movement-card-body small {
  display: block;
  font-size: 10px;
  color: #8fa183;
  margin-top: 4px;
}
.movement-card-body > svg {
  width: 13px;
  height: 13px;
  color: #a4b09c;
}
.movement-card-qty {
  font-size: 10px;
  line-height: 1.6;
  color: #9aa392;
  margin: 7px 0 0 41px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 19px;
  color: #909d88;
  font-size: 10px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination .icon-button {
  border: 1px solid #e8eee1;
  min-width: 32px;
  min-height: 32px;
  padding: 7px;
}
.pagination svg {
  width: 15px;
  height: 15px;
}
.loading,
.empty,
.error {
  padding: 70px 20px;
  color: #869780;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #dce8d5;
  border-top-color: #7ba170;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.error p {
  margin: 10px 0 17px;
}
.empty p {
  margin-top: 7px;
}
.inline-loading {
  opacity: 0.5;
  pointer-events: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 0;
  padding: 0;
  width: min(520px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  background: white;
  color: var(--ink);
  box-shadow: -15px 0 70px #28463216;
}
dialog::backdrop {
  background: #243c3440;
  backdrop-filter: blur(3px);
}
.drawer-heading {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 25px 23px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  z-index: 2;
}
.drawer-heading h2 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.65px;
}
#detail-content {
  padding: 27px 23px;
}
.asset-detail-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 27px;
}
.asset-detail-top span:not(.asset-logo) {
  display: block;
  font-size: 10px;
  color: #92a086;
  margin-top: 6px;
}
.detail-amount {
  font-size: 33px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 17px 0 6px;
}
.detail-subtitle {
  color: #9aa591;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 23px;
}
.detail-brl-quote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0 0 7px;
  font-size: 14px;
  color: var(--ink);
}
.detail-brl-quote span {
  font-size: 10px;
  color: #75866e;
}
.performance-box {
  padding: 17px;
  background: #f0f6ed;
  border-radius: 11px;
  margin-bottom: 24px;
}
.performance-box.negative {
  background: #fcf0ee;
}
.performance-box > span {
  font-size: 16px;
  font-weight: 550;
}
.performance-box small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  opacity: 0.8;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin: 0;
}
.detail-grid dt {
  font-size: 10px;
  color: #96a18c;
  margin-bottom: 8px;
}
.detail-grid dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.detail-notice {
  padding: 16px;
  border-radius: 10px;
  background: #f6f8f1;
  font-size: 11px;
  line-height: 1.85;
  color: #8a9880;
  margin: 15px 0;
}
.source-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #87a27b;
  margin-top: 20px;
}
.source-link svg {
  width: 14px;
  height: 14px;
}
.tag {
  display: inline-flex;
  padding: 5px 8px;
  font-size: 10px;
  background: #f0f3ea;
  color: #93a086;
  border-radius: 5px;
}
.detail-legs {
  margin: 18px 0;
}
.detail-legs h3 {
  font-size: 13px;
  margin-bottom: 14px;
}
.detail-leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  gap: 15px;
  font-size: 12px;
}
.detail-leg small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #94a289;
}
.source-details {
  border-top: 1px solid var(--border);
  padding: 19px 0;
  color: #8ca17f;
  font-size: 11px;
}
.source-details summary {
  cursor: pointer;
}
.source-details small {
  display: block;
  overflow-wrap: anywhere;
  font-size: 10px;
  margin-top: 12px;
}
.source-details pre {
  background: #f4f7ef;
  padding: 15px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.8;
  color: #839c72;
}
.modal-open {
  overflow: hidden;
}
.amount-hidden .sensitive {
  filter: blur(7px);
  user-select: none;
}
@media (min-width: 600px) {
  main {
    padding: 35px 30px;
  }
  .app-header {
    padding: 25px 30px 0;
  }
  .page-heading h1 + p {
    max-width: none;
  }
  .refresh-label {
    display: inline;
  }
  .balance-breakdown {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .balance-breakdown > div {
    display: block;
  }
  .balance-breakdown strong {
    display: block;
    margin-top: 10px;
    font-size: 15px;
  }
  .allocation-content {
    max-width: 450px;
    margin: 20px auto 0;
    gap: 40px;
  }
  .donut {
    width: 160px;
    height: 160px;
  }
  .allocation-legend button,
  .allocation-legend strong {
    font-size: 12px;
  }
  .allocation-legend {
    gap: 16px;
  }
  .asset-row {
    padding: 22px;
  }
  .asset-quantity {
    display: block;
    width: 120px;
    text-align: right;
  }
  .asset-quantity strong {
    font-size: 12px;
    font-weight: 500;
  }
  .asset-quantity small {
    display: block;
    font-size: 9px;
    color: #9ca793;
    margin-top: 6px;
  }
  .mobile-quantity {
    display: none;
  }
  .asset-result {
    min-width: 170px;
  }
  .gain > span {
    display: inline;
  }
  .row-arrow {
    display: block;
    color: #b1bda7;
    margin-left: 8px;
  }
  .row-arrow svg {
    width: 14px;
    height: 14px;
  }
  .field {
    flex-basis: 140px;
  }
  .field.search {
    flex-basis: 100%;
  }
  input,
  select {
    font-size: 12px;
  }
}
@media (min-width: 900px) {
  .app-header {
    padding: 28px 32px;
    flex-wrap: nowrap;
    gap: 45px;
    border-bottom: 1px solid #e4e9de;
  }
  .app-header nav {
    order: 0;
    width: auto;
    border: 0;
    gap: 30px;
    margin-right: auto;
    margin-left: 25px;
  }
  .app-header nav a {
    padding: 8px 0;
    border: 0;
    font-size: 12px;
  }
  .profile-name {
    display: inline;
    font-size: 11px;
    color: #8c9982;
  }
  main {
    padding: 36px 32px 25px;
  }
  h1 {
    font-size: 32px;
  }
  .page-heading {
    margin-bottom: 29px;
  }
  .page-heading h1 + p {
    font-size: 12px;
  }
  .overview-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    margin-bottom: 37px;
  }
  .balance-card {
    padding: 27px 29px;
  }
  .balance-value {
    font-size: 46px;
    margin: 19px 0 8px;
  }
  .balance-breakdown {
    margin-top: 30px;
    padding-top: 25px;
    gap: 14px;
  }
  .balance-breakdown strong {
    font-size: 16px;
  }
  .quote-status {
    padding-top: 24px;
    font-size: 10px;
  }
  .allocation-card {
    padding: 27px;
  }
  .allocation-content {
    gap: 20px;
    margin-top: 27px;
  }
  .donut {
    width: 145px;
    height: 145px;
  }
  .allocation-legend button,
  .allocation-legend strong {
    font-size: 11px;
  }
  .card-footnote {
    margin-top: 27px;
  }
  .asset-left strong {
    font-size: 14px;
  }
  .asset-left small {
    font-size: 11px;
  }
  .asset-logo {
    width: 40px;
    height: 40px;
  }
  .asset-price {
    display: block;
    text-align: right;
    width: 130px;
    margin-right: 30px;
  }
  .asset-price strong {
    font-weight: 500;
    font-size: 12px;
  }
  .asset-price small {
    display: block;
    font-size: 9px;
    margin-top: 6px;
    color: #9ca793;
  }
  .asset-result > strong {
    font-size: 16px;
  }
  .asset-result .gain {
    font-size: 11px;
  }
  .category-filters button {
    font-size: 12px;
    padding: 10px 17px;
  }
  .field.search {
    flex: 1 1 190px;
  }
  .field.investment-field {
    flex: 1 1 200px;
  }
  .field.institution-field {
    flex: 0 1 140px;
  }
  .field {
    flex: 0 1 140px;
  }
  .field.date-field {
    flex-basis: 130px;
  }
  .desktop-table {
    display: block;
    overflow-x: auto;
  }
  .mobile-movements {
    display: none;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12px;
    min-width: 820px;
  }
  th {
    font-weight: 500;
    font-size: 10px;
    color: #9aa58e;
    background: #fcfdf9;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }
  td {
    padding: 18px 20px;
    border-bottom: 1px solid #edf0e8;
    line-height: 1.6;
  }
  tbody tr:last-child td {
    border: 0;
  }
  .date-cell small {
    display: block;
    font-size: 9px;
    color: #a5ae9b;
    margin-top: 4px;
  }
  .movement-type {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .movement-type small {
    display: block;
    font-size: 10px;
    color: #96a98a;
    margin-top: 4px;
  }
  .row-link {
    border: 0;
    background: none;
    color: #607b59;
    font-size: 12px;
    padding: 0;
  }
  .institution {
    color: #9ca98f;
    font-size: 10px;
  }
  .method-note {
    font-size: 10px;
  }
}
@media (max-width: 359px) {
  main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .app-header {
    padding-left: 15px;
    padding-right: 15px;
  }
  .balance-card,
  .allocation-card {
    padding: 19px;
  }
  .balance-value {
    font-size: 34px;
  }
  .donut {
    width: 110px;
    height: 110px;
  }
  .allocation-content {
    gap: 12px;
  }
  .asset-row {
    padding: 18px 12px;
    gap: 8px;
  }
  .asset-left {
    gap: 8px;
  }
  .asset-left strong {
    font-size: 12px;
  }
  .asset-result > strong {
    font-size: 13px;
  }
  .asset-logo {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Asset detail: price history and personal results stay in the same panel. */
.mobile-price {
  display: block;
  font-size: 11px;
  color: #708b74;
  margin-top: 5px;
}
@media (min-width: 600px) {
  .mobile-price {
    display: none;
  }
}
dialog.asset-mode {
  width: min(610px, 100%);
}
.position-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  background: #f5f7f0;
  border: 1px solid #e9eedf;
  border-radius: 11px;
  margin: 22px 0;
}
.position-strip > div span {
  display: block;
  font-size: 10px;
  color: #87967c;
  margin-bottom: 6px;
}
.position-strip strong {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.position-strip > span {
  font-size: 11px;
  color: #8a987f;
}
.asset-chart {
  margin: 27px 0 32px;
}
.chart-periods {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f5f7f1;
  border-radius: 10px;
}
.chart-periods button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #8b9b7f;
  font-size: 10px;
  padding: 10px 3px;
  min-height: 37px;
  border-radius: 7px;
  white-space: nowrap;
}
.chart-periods button.active {
  background: white;
  color: #486b40;
  box-shadow: 0 1px 5px #31462510;
}
.chart-change {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  padding-top: 23px;
}
.chart-change strong {
  font-size: 15px;
  font-weight: 550;
}
.chart-change > span {
  font-size: 10px;
}
.price-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  margin-top: 12px;
  overflow: visible;
}
.chart-times {
  display: flex;
  justify-content: space-between;
  color: #9caa8e;
  font-size: 9px;
  margin-top: 6px;
}
.chart-cursor {
  width: 100%;
  accent-color: #719663;
  height: 25px;
  margin: 12px 0 0;
  border: 0;
  padding: 0;
  cursor: ew-resize;
}
.chart-point {
  text-align: center;
  color: #8ba078;
  font-size: 10px;
  min-height: 18px;
  margin: 6px 0;
}
.chart-point strong {
  color: #5d7e4e;
  font-weight: 550;
}
.chart-caption {
  text-align: center;
  font-size: 9px;
  color: #9cab8f;
  line-height: 1.6;
}
.chart-unavailable {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  color: #8ca477;
  padding: 30px 10px;
  font-size: 11px;
  line-height: 1.7;
}
.chart-unavailable svg {
  width: 28px;
  height: 28px;
}
.chart-error {
  padding: 12px;
  background: #fbf6ec;
  color: #a79565;
  font-size: 10px;
  line-height: 1.7;
  border-radius: 8px;
  margin-top: 12px;
}
.asset-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.asset-section-title h3 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.asset-section-title > span {
  font-size: 10px;
  color: #9ca98d;
}
.asset-section-title .tag {
  background: #fcf3e4;
  color: #ac915c;
}
.lifetime-result {
  border: 1px solid #e4edda;
  border-radius: 12px;
  background: #f5f8ef;
  padding: 20px;
  margin-bottom: 24px;
}
.lifetime-result.negative {
  border-color: #f3e5dd;
  background: #fbf6f2;
}
.lifetime-result > strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.7px;
  font-weight: 550;
}
.lifetime-result > span {
  display: block;
  font-size: 10px;
  margin-top: 8px;
  color: #91a580;
  line-height: 1.7;
}
.lifetime-result.negative > span {
  color: #b8a691;
}
.metric-note {
  font-size: 9px;
  color: #99aa88;
  display: block;
  margin-top: 5px;
}
.performance-method {
  font-size: 10px;
  color: #8ba077;
  line-height: 1.8;
  margin: 2px 0 28px;
}
.performance-method summary {
  cursor: pointer;
  min-height: 28px;
}
.performance-method > div {
  background: #f7f9f2;
  padding: 16px;
  border-radius: 9px;
  margin-top: 10px;
}
.performance-method p + p {
  margin-top: 10px;
}
.asset-transactions {
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.asset-transaction {
  border-bottom: 1px solid var(--border);
}
.asset-transaction summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  list-style: none;
  cursor: pointer;
}
.asset-transaction summary::-webkit-details-marker {
  display: none;
}
.asset-transaction summary strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 5px 0;
}
.asset-transaction summary small {
  color: #91a381;
  font-size: 9px;
}
.asset-transaction summary > div > span {
  font-size: 10px;
  color: #91a381;
}
.transaction-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  text-align: right;
  line-height: 1.7;
  color: #607e4e;
  flex-shrink: 0;
}
.transaction-amount svg {
  width: 13px;
  height: 13px;
  color: #a0b08e;
}
.asset-transaction[open] .transaction-amount svg {
  transform: rotate(90deg);
}
.transaction-expanded {
  padding: 13px;
  background: #f8faf4;
  border-radius: 8px;
  margin-bottom: 17px;
  color: #8ea67a;
  font-size: 10px;
  line-height: 1.8;
}
.transaction-expanded > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 5px 0;
}
.transaction-expanded p {
  color: #a3af93;
  margin-top: 8px;
}
.asset-updating {
  opacity: 0.55;
}
.asset-updating .asset-chart {
  pointer-events: none;
}

/* Comparativos: quiet controls, two charts, no extra navigation layers. */
.cmp-update-status {
  color: #98a38b;
  font-size: 10px;
  min-height: 0;
}
.cmp-update-status:not(:empty) {
  margin: 0 0 12px;
}
.cmp-updating .cmp-chart,
.cmp-updating .cmp-outcomes,
.cmp-updating .cmp-summary,
.cmp-updating .cmp-metrics {
  opacity: 0.45;
}
.cmp-updating .cmp-chart,
.cmp-updating .cmp-switches {
  pointer-events: none;
}
.cmp-controls {
  display: grid;
  grid-template-columns: 1fr minmax(110px, 0.65fr);
  gap: 15px 12px;
  margin-bottom: 8px;
}
.cmp-whole {
  width: fit-content;
  align-self: end;
  min-height: 46px;
}
.cmp-whole[aria-pressed="true"] {
  background: #eaf3e9;
  border-color: #bdd5c1;
  color: #345b48;
}
.cmp-whole svg {
  width: 14px;
  height: 14px;
}
.cmp-currency-note {
  grid-column: 1/-1;
  font-size: 10px;
  color: #91a08c;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cmp-currency-note svg {
  width: 13px;
  height: 13px;
}
.cmp-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.cmp-field > span {
  color: #889587;
  font-size: 11px;
}
.cmp-field select {
  width: 100%;
  border: 1px solid #e2e8df;
  border-radius: 12px;
  padding: 13px 35px 13px 14px;
  background-color: #fff;
  color: var(--ink);
  font-size: 12px;
  min-height: 46px;
}
.cmp-currency {
  grid-column: 1 / -1;
}
.cmp-assets,
.cmp-benchmarks {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cmp-assets {
  grid-column: 1 / -1;
  padding-top: 3px;
}
.cmp-assets[hidden] {
  display: none;
}
.cmp-assets legend,
.cmp-benchmarks legend {
  font-size: 11px;
  color: #899385;
  margin-bottom: 12px;
}
.cmp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #e5e9e1;
  border-radius: 10px;
  color: #819084;
  cursor: pointer;
  font-size: 11px;
  background: #fff;
  min-height: 39px;
}
.cmp-chip:has(input:checked) {
  border-color: #c6dccd;
  background: #f3f8f3;
  color: #345b48;
}
.cmp-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cmp-chip:has(input:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.cmp-control-notice,
.cmp-benchmark-notice {
  margin: 0;
  min-height: 21px;
  font-size: 11px;
  color: #8a6e58;
}
.cmp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 21px;
  margin-bottom: 22px;
  padding: 23px 19px 0;
  overflow: hidden;
}
.cmp-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cmp-card-heading .eyebrow {
  margin-bottom: 9px;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.cmp-card h2 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}
.cmp-card-heading p:not(.eyebrow) {
  font-size: 11px;
  color: #91a08d;
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}
.cmp-date-tag {
  background: #f6f7f3;
  color: #98a18f;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 10px;
  align-self: flex-start;
}
.cmp-coverage {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid #e3e9da;
  border-radius: 13px;
  background: #f2f5ec;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.cmp-coverage svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #7c9175;
  margin-top: 2px;
}
.cmp-coverage p {
  margin: 0;
  font-size: 11px;
  color: #84917d;
  line-height: 1.8;
}
.cmp-coverage strong {
  display: block;
  font-size: 12px;
  color: #566e4f;
  font-weight: 550;
}
.cmp-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.cmp-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cmp-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #90a08b;
}
.cmp-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.cmp-buy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #237d60;
  outline: 2px solid #dfeee5;
}
.cmp-color-actual {
  color: #237d60;
}
.cmp-color-BTC,
.cmp-color-gold {
  color: #c5a35a;
}
.cmp-color-ETH,
.cmp-color-cdi {
  color: #a699c2;
}
.cmp-color-SOL {
  color: #6ca897;
}
.cmp-color-USDT {
  color: #8faaa0;
}
.cmp-color-IVVB11 {
  color: #8798c4;
}
.cmp-color-AGRO3 {
  color: #c99980;
}
.cmp-color-ibov {
  color: #aabd89;
}
.cmp-color-sp500 {
  color: #d6a186;
}
.cmp-color-nasdaq {
  color: #7c9ec0;
}
.cmp-color-cost {
  color: #99a38f;
}
.cmp-color-ipca {
  color: #a7ae97;
}
.cmp-color-fixed,
.cmp-color-RF_TURBO,
.cmp-color-RF_LIMITE {
  color: #dba797;
}
.cmp-chip small {
  color: #a2aa97;
  font-size: 9px;
}
.cmp-legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 400;
  color: #7e907c;
  border: 1px solid transparent;
  background: none;
  border-radius: 6px;
}
.cmp-legend-toggle.off {
  opacity: 0.45;
  text-decoration: line-through;
}
.cmp-legend-toggle:hover {
  border-color: #e1e8dc;
  background: #f7faf3;
}
.cmp-wealth-legend {
  margin: 12px 0 18px;
}
.cmp-current {
  padding: 23px 20px;
  margin: 0 0 22px;
  border: 1px solid #dfe9dc;
  border-radius: 19px;
  background: #f0f5ec;
}
.cmp-current .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.cmp-current-total {
  display: block;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 12px 0 8px;
  color: #35684f;
}
.cmp-current > div > p:not(.eyebrow) {
  font-size: 11px;
  color: #8a9b82;
  line-height: 1.8;
}
.cmp-current-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}
.cmp-current-breakdown {
  margin: 15px 0;
}
.cmp-current-breakdown summary {
  color: #7c9174;
  cursor: pointer;
  font-size: 11px;
  min-height: 28px;
}
.cmp-current-items > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
}
.cmp-current-items span {
  display: block;
  color: #667e61;
}
.cmp-current-items .cmp-dot {
  margin-right: 6px;
}
.cmp-current-items small {
  display: block;
  margin: 4px 0 0 13px;
  font-size: 9px;
  color: #9aa58e;
  line-height: 1.6;
}
.cmp-current-items strong {
  font-weight: 500;
  white-space: nowrap;
}
.cmp-history-pending {
  border-top: 1px solid #dfe8d8;
  display: flex;
  gap: 9px;
  padding-top: 13px;
  align-items: flex-start;
}
.cmp-history-pending svg {
  width: 15px;
  height: 15px;
  color: #93a386;
  flex-shrink: 0;
  margin-top: 3px;
}
.cmp-history-pending p {
  font-size: 10px;
  color: #95a08a;
  margin: 0;
  line-height: 1.8;
}
.cmp-history-pending strong {
  display: block;
  font-weight: 500;
  color: #6f8764;
  margin-bottom: 3px;
}
.cmp-power {
  background: #fafbf6;
  border: 1px solid #e6ecdf;
  border-radius: 13px;
  margin: 18px 0;
  padding: 17px 18px;
}
.cmp-power-heading > span {
  font-size: 12px;
  font-weight: 500;
  color: #5b7654;
}
.cmp-power small {
  display: block;
  font-size: 9px;
  color: #9ba58d;
  line-height: 1.7;
  margin-top: 5px;
}
.cmp-power-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 0 9px;
}
.cmp-power-metrics span {
  display: block;
  font-size: 10px;
  color: #8d9b82;
}
.cmp-power-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.cmp-power p {
  font-size: 11px;
  color: #819275;
  line-height: 1.7;
}
@media (min-width: 600px) {
  .cmp-current {
    padding: 27px 32px;
  }
  .cmp-current-items {
    grid-template-columns: 1fr 1fr;
    gap: 16px 42px;
  }
  .cmp-current-total {
    font-size: 39px;
  }
}
.cmp-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.cmp-switches label {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: #899684;
  cursor: pointer;
  min-height: 24px;
}
.cmp-switches input {
  accent-color: var(--green);
  margin: 0;
  width: 14px;
  height: 14px;
  min-height: 0;
  padding: 0;
  border: 0;
  appearance: auto;
  background: none;
}
.cmp-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.cmp-grid {
  stroke: #edf1eb;
  stroke-width: 1;
}
.cmp-axis {
  fill: #9aa591;
  font:
    10px system-ui,
    sans-serif;
}
.cmp-line {
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.cmp-dashed {
  stroke-dasharray: 5 5;
  stroke-width: 1.5;
}
.cmp-trade {
  fill: #237d60;
  stroke: white;
  stroke-width: 2;
  cursor: pointer;
}
[data-cmp-marker]:focus .cmp-trade {
  outline: none;
  stroke: #143f31;
  stroke-width: 4;
}
.cmp-hit {
  fill: transparent;
  stroke: none;
  cursor: pointer;
}
.cmp-sell {
  fill: white;
  stroke: #c99980;
  stroke-width: 2;
}
.cmp-cursor {
  width: 100%;
  accent-color: #7aab90;
  height: 20px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: ew-resize;
  margin: 3px 0 10px;
}
.cmp-cursor-label {
  display: block;
  margin-top: 8px;
  color: #a1aa99;
  font-size: 9px;
}
.cmp-readout {
  color: #98a38e;
  font-size: 10px;
  line-height: 1.7;
  padding: 8px 0;
}
.cmp-readout > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
}
.cmp-readout > div > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.cmp-readout strong {
  color: #4d6455;
  font-size: 11px;
  font-weight: 550;
}
.cmp-marker-note {
  min-height: 32px;
  font-size: 10px;
  color: #9aa28e;
  line-height: 1.8;
  margin: 7px 0 17px;
}
.cmp-marker-note strong {
  color: #6a826e;
}
.cmp-marker-note p {
  margin: 4px 0;
}
.cmp-metrics {
  border-top: 1px solid #ecf0e7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 21px 0 23px;
}
.cmp-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cmp-metrics span {
  color: #91a08c;
  font-size: 9px;
  line-height: 1.5;
}
.cmp-metrics strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.7px;
}
.cmp-metrics small {
  font-size: 9px;
  font-weight: 400;
  color: #a4ac9a;
  display: block;
  letter-spacing: 0;
  margin-top: 3px;
}
.cmp-summary {
  background: #f7f9f3;
  border-radius: 13px;
  padding: 19px;
  margin: 18px 0;
}
.cmp-summary > span {
  font-size: 11px;
  color: #91a185;
}
.cmp-summary > strong {
  display: block;
  font-weight: 500;
  letter-spacing: -1px;
  font-size: 29px;
  color: #356750;
  margin: 8px 0;
}
.cmp-summary > p {
  margin: 0;
  color: #9da791;
  font-size: 10px;
  line-height: 1.9;
}
.cmp-outcome {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid #edf0e8;
}
.cmp-outcome > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.cmp-outcome .cmp-dot {
  margin-top: 5px;
}
.cmp-outcome > div:last-child {
  text-align: right;
  flex-shrink: 0;
}
.cmp-outcome strong {
  font-size: 12px;
  font-weight: 500;
}
.cmp-outcome small {
  display: block;
  font-size: 9px;
  color: #9ba792;
  margin-top: 5px;
  line-height: 1.5;
}
.cmp-outcome > div:last-child > strong {
  font-size: 15px;
  letter-spacing: -0.4px;
}
.cmp-outcome small.positive {
  color: #438b71;
}
.cmp-outcome small.negative {
  color: #bb897c;
}
.cmp-actual {
  color: #356750;
}
.cmp-method {
  margin: 22px -19px 0;
  background: #fafbf7;
  padding: 17px 19px;
}
.cmp-method summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
  color: #899783;
  min-height: 20px;
}
.cmp-method summary svg {
  width: 14px;
  height: 14px;
}
.cmp-method p {
  font-size: 11px;
  line-height: 1.85;
  color: #8f9c87;
  margin: 14px 0 0;
}
.cmp-source-error,
.cmp-empty {
  font-size: 11px;
  color: #9b8b6f;
  line-height: 1.8;
}
.bank-history {
  margin: 26px 0;
}
.bank-history h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 17px;
}
.bank-history > svg {
  width: 100%;
  height: auto;
  max-height: 190px;
  display: block;
  margin: 20px 0 12px;
}
.bank-history .asset-section-title h3 {
  margin: 0;
}
.bank-bar {
  fill: #b6d7c3;
}
.bank-bar-partial {
  fill: #759e85;
  stroke: #547b65;
  stroke-width: 1;
  stroke-dasharray: 3 2;
}
.bank-gain > span,
.bank-gain small {
  display: block;
  font-size: 11px;
  color: #8b9881;
  line-height: 1.8;
}
.bank-gain strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  color: #5f967d;
  margin: 7px 0;
}
.bank-month {
  border-bottom: 1px solid var(--border);
}
.bank-month > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 13px 0;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.bank-month > summary::after {
  content: "+";
  color: #a3b09a;
  font-size: 17px;
}
.bank-month[open] > summary::after {
  content: "−";
}
.bank-month > summary::-webkit-details-marker {
  display: none;
}
.bank-month > summary > strong {
  margin-left: auto;
  font-weight: 500;
  white-space: nowrap;
}
.bank-month small {
  display: block;
  font-size: 10px;
  color: #a19780;
  line-height: 1.6;
  margin-top: 4px;
}
.bank-month .detail-grid {
  padding-bottom: 18px;
}
.bank-older > summary {
  color: #829478;
  font-size: 11px;
  min-height: 44px;
  padding: 14px 0;
  cursor: pointer;
}
.bank-caption,
.cmp-monthly-caption {
  font-size: 11px;
  color: #8f9c86;
  line-height: 1.8;
  margin: 14px 0 20px;
}
.cmp-simulation .cmp-metrics strong {
  font-size: clamp(17px, 3.6vw, 27px);
}
.cmp-skeleton {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 21px;
  padding: 50px 20px;
  text-align: center;
  min-height: 280px;
}
.cmp-skeleton > p {
  color: #9ca88f;
  font-size: 11px;
  line-height: 1.8;
}
@media (min-width: 600px) {
  .cmp-controls {
    grid-template-columns: 220px 200px;
    max-width: none;
  }
  .cmp-currency {
    grid-column: auto;
  }
  .cmp-card {
    padding: 30px 32px 0;
  }
  .cmp-card h2 {
    font-size: 23px;
  }
  .cmp-card-heading p:not(.eyebrow) {
    font-size: 12px;
  }
  .cmp-metrics {
    padding: 24px 0 26px;
  }
  .cmp-metrics span {
    font-size: 11px;
  }
  .cmp-metrics strong {
    font-size: 27px;
  }
  .cmp-outcome strong {
    font-size: 13px;
  }
  .cmp-outcome small {
    font-size: 10px;
  }
  .cmp-outcome > div:last-child > strong {
    font-size: 18px;
  }
  .cmp-method {
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .cmp-chart {
    max-width: 980px;
    margin: auto;
  }
}
@media (max-width: 599px) {
  .app-header nav {
    gap: 0;
    justify-content: space-between;
  }
  .app-header nav a {
    font-size: 11px;
    gap: 5px;
    white-space: nowrap;
  }
  .app-header nav svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 359px) {
  .app-header nav svg {
    display: none;
  }
}
@media (max-width: 359px) {
  .app-header nav {
    gap: 15px;
  }
  .app-header nav a {
    gap: 5px;
    font-size: 11px;
  }
  .cmp-outcome > div:last-child > strong {
    font-size: 13px;
  }
  .cmp-card {
    padding-left: 14px;
    padding-right: 14px;
  }
  .cmp-method {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}
:root { --wallet-freshness-dot: #769c86; }
.wallet-freshness {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.wallet-freshness[hidden] { display: none; }
.freshness-dot, .freshness-pulse {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wallet-freshness-dot);
}
.freshness-pulse { animation: wallet-pulse 1.5s ease-in-out infinite; }
.wallet-freshness[data-state="failed"] .freshness-dot { background: #ad9065; }
.wallet-freshness .text-button { font-size: inherit; padding: 0; }
@keyframes wallet-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .freshness-pulse { animation: none; } }
