/* Keep the live Dashboard summary in one predictable layout. */
html[data-site-route="dashboard"] body.app-mode #dashboardView.dashboard-shell {
  box-sizing: border-box;
  width: 100%;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 16px;
  min-height: 0;
  margin: 0 0 26px !important;
  padding: 0 !important;
  border: 0 !important;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-controls {
  position: static !important;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  transform: none !important;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView #dashboardRefresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ref-border);
  border-radius: 8px;
  background: var(--ref-raised);
  color: var(--ref-text);
  font: 600 12px/1 Inter, system-ui, sans-serif;
  white-space: nowrap;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView #dashboardRefresh .dashboard-refresh-icon {
  font-size: 17px;
  line-height: 1;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-balances {
  display: block;
  margin: 0;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-balances > .dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView #dashboardBalancesTitle {
  display: block !important;
  margin: 0;
  color: var(--ref-text);
  font: 600 16px/1.3 Inter, system-ui, sans-serif;
  letter-spacing: 0;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-balances > .dashboard-section-heading .dashboard-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ref-muted);
  font-size: 13px;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview {
  display: grid;
  grid-template-columns: minmax(280px, .84fr) minmax(0, 1.16fr);
  align-items: stretch;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid var(--ref-border);
  border-radius: 18px;
  background: var(--ref-raised);
  box-shadow: var(--ref-shadow);
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview > .dashboard-wallet-total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 24px 28px;
  border: 0;
  border-right: 1px solid var(--ref-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview > .dashboard-wallet-total > :is(span, strong, small) {
  grid-column: auto;
  grid-row: auto;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview > .dashboard-wallet-total strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--ref-text);
  font: 600 clamp(28px, 3vw, 36px)/1.13 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview > .dashboard-wallet-total small {
  display: block;
  max-width: 290px;
  margin: 8px 0 0;
  color: var(--ref-muted);
  font-size: 12px;
  line-height: 1.45;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview > .dashboard-donut {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-donut-ring {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  padding: 16px;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-donut-legend {
  flex: 1;
  min-width: 0;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-donut-item {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 0;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-donut-item span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-donut-item strong {
  display: none;
}
html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-balances > .dashboard-table-wrap {
  width: 100%;
  margin-top: 16px;
}
@media (max-width: 760px) {
  html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-controls {
    justify-self: start;
  }
  html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview {
    grid-template-columns: 1fr;
  }
  html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview > .dashboard-wallet-total {
    border-right: 0;
    border-bottom: 1px solid var(--ref-border);
    padding: 22px;
  }
  html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview > .dashboard-donut {
    padding: 22px;
  }
}
@media (max-width: 420px) {
  html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-overview > .dashboard-donut {
    gap: 14px;
    flex-wrap: nowrap;
  }
  html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-donut-ring {
    flex-basis: 104px;
    width: 104px;
    height: 104px;
    padding: 12px;
  }
  html[data-site-route="dashboard"] body.app-mode #dashboardView .dashboard-donut-item {
    font-size: 11px;
  }
}
