:root {
  color-scheme: light;
  --bg: #f6f6f2;
  --surface: #ffffff;
  --surface-2: #eef4f1;
  --ink: #17201d;
  --muted: #7e8b93;
  --line: #dde8e3;
  --green: #1e4e46;
  --green-2: #2c8b69;
  --teal: #7e8b93;
  --gold: #c9a227;
  --red: #b94a48;
  --blue: #4c6fff;
  --purple: #7260d8;
  --copper: #b87445;
  --shadow: 0 2px 12px rgba(30, 78, 70, 0.045);
  --shadow-lift: 0 18px 48px rgba(30, 78, 70, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 4%, rgba(220, 232, 227, 0.86), transparent 30vw),
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.96), transparent 28vw),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef4f1 100%);
  color: var(--ink);
  font-family: Inter, "PingFang SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-shell {
  pointer-events: none;
  user-select: none;
  filter: blur(10px);
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 76% 12%, rgba(220, 232, 227, 0.9), transparent 32vw),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 241, 0.98));
}

.login-card {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid rgba(30, 78, 70, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 74px rgba(30, 78, 70, 0.14);
  backdrop-filter: blur(18px);
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card h1 {
  font-size: 32px;
}

.login-card > div p:last-child,
.login-card > small,
.auth-dialog-card > p {
  color: var(--muted);
}

.login-brand {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  width: 76px;
  height: 76px;
  padding: 17px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f6f6f2 58%, #dce8e3 100%);
  box-shadow: var(--shadow-lift);
}

.login-brand span {
  display: block;
  height: 7px;
  border-radius: 999px;
}

.login-brand span:nth-child(1) { width: 42px; background: var(--green); }
.login-brand span:nth-child(2) { width: 35px; background: var(--green-2); }
.login-brand span:nth-child(3) { width: 29px; background: var(--muted); }
.login-brand span:nth-child(4) { width: 23px; background: var(--gold); }
.login-brand span:nth-child(5) { width: 17px; background: linear-gradient(90deg, var(--muted), var(--green)); }

.login-button {
  width: 100%;
  min-height: 48px;
}

.login-reset-link {
  justify-self: center;
  min-height: 34px;
  color: var(--green);
  font-weight: 760;
}

.auth-error {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.auth-dialog-card {
  border-radius: 20px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.fallback-icon {
  display: inline-grid;
  width: 1em;
  min-width: 1em;
  place-items: center;
  font-weight: 800;
  line-height: 1;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 24px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: inset -1px 0 0 rgba(30, 78, 70, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
}

.brand-mark {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(30, 78, 70, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f6f6f2 58%, #dce8e3 100%);
  box-shadow: var(--shadow);
}

.brand-mark span {
  display: block;
  height: 5px;
  border-radius: 999px;
}

.brand-mark span:nth-child(1) {
  width: 22px;
  background: var(--green);
}

.brand-mark span:nth-child(2) {
  width: 17px;
  background: var(--gold);
}

.brand-mark span:nth-child(3) {
  width: 12px;
  background: var(--muted);
}

.brand h1,
.brand p,
.topbar h2,
.panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 17px;
  font-weight: 780;
}

.brand p {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
  padding: 4px;
}

.nav-item,
.icon-button,
.primary-button,
.secondary-button,
.segmented button {
  border: 0;
  border-radius: 999px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  background: transparent;
  color: #53625f;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(30, 78, 70, 0.09);
  color: var(--green);
}

.sidebar-foot {
  margin-top: auto;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(30, 78, 70, 0.04);
}

.sidebar-foot strong {
  display: block;
  margin-top: 4px;
  color: #5f6e6a;
  font-weight: 650;
}

.main {
  min-width: 0;
  padding: 32px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 760;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-actions,
.dialog-actions,
.accounts-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(30, 78, 70, 0.06);
}

.file-button input,
#importInput {
  display: none;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-button {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 78, 70, 0.16);
}

.secondary-button {
  background: #f1f5f3;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(30, 78, 70, 0.08);
}

.secondary-button.danger-button {
  background: rgba(185, 74, 72, 0.08);
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(185, 74, 72, 0.14);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.save-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(23, 33, 31, 0.94);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 760;
}

.save-toast[data-tone="error"] {
  background: rgba(185, 74, 72, 0.96);
}

.hero-card {
  display: grid;
  gap: 22px;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(30, 78, 70, 0.06);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(220, 232, 227, 0.76), transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 246, 242, 0.94) 56%, rgba(220, 232, 227, 0.76) 100%);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: visible;
  z-index: 2;
}

.hero-card::after {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: -1px;
  width: min(420px, 45%);
  height: 42%;
  background:
    linear-gradient(140deg, transparent 0 38%, rgba(30, 78, 70, 0.08) 38% 39%, transparent 39%),
    linear-gradient(28deg, transparent 0 48%, rgba(126, 139, 147, 0.13) 48% 49%, transparent 49%);
  clip-path: polygon(0 100%, 22% 64%, 38% 78%, 58% 34%, 76% 72%, 100% 48%, 100% 100%);
  content: "";
  pointer-events: none;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 30;
}

.hero-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.hero-value-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hero-value-row > strong {
  min-width: 0;
  color: var(--ink);
  font-family: "SF Pro Display", Inter, "PingFang SC", system-ui, sans-serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 720;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.currency-picker {
  position: relative;
  flex: 0 0 auto;
  z-index: 200;
}

.currency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(30, 78, 70, 0.08);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.currency-menu {
  position: absolute;
  right: 0;
  z-index: 300;
  display: grid;
  width: 172px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(30, 78, 70, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(30, 78, 70, 0.2);
  backdrop-filter: blur(16px);
}

.currency-menu[hidden] {
  display: none;
}

.currency-option {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.currency-option:hover,
.currency-option[aria-checked="true"] {
  background: rgba(30, 78, 70, 0.08);
}

.currency-option small {
  color: var(--muted);
}

.hero-total {
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  text-align: right;
}

.hero-total span,
.goal-item small {
  color: var(--muted);
  font-size: 12px;
}

.hero-total strong {
  color: #4e5d58;
  font-family: "SF Pro Display", Inter, sans-serif;
  font-size: 22px;
  font-weight: 680;
}

.growth-grid,
.goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.growth-item,
.goal-item {
  border: 1px solid rgba(30, 78, 70, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.growth-item {
  padding: 14px;
}

.growth-item span,
.growth-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.growth-item strong {
  display: block;
  margin: 6px 0 2px;
  font-family: "SF Pro Display", Inter, sans-serif;
  font-size: 24px;
  font-weight: 680;
}

.goal-item {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.goal-head,
.goal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.goal-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.goal-head strong {
  font-size: 18px;
}

.goal-progress {
  overflow: hidden;
  width: 100%;
  height: 12px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 139, 147, 0.15), rgba(30, 78, 70, 0.08));
  position: relative;
}

.goal-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7e8b93, var(--green));
}

.goal-progress::before,
.goal-progress::after {
  position: absolute;
  top: -18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.goal-progress::before {
  left: 0;
  content: "Base";
}

.goal-progress::after {
  right: 0;
  content: "Summit";
}

.goal-meta {
  color: var(--muted);
  font-size: 12px;
}

.metric,
.panel,
.account-card {
  border: 1px solid rgba(30, 78, 70, 0.06);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  min-width: 0;
  padding: 22px;
}

.drill-panel {
  cursor: pointer;
}

.panel.wide,
.panel.full {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel h3 {
  font-size: 20px;
  font-weight: 720;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(30, 78, 70, 0.06);
}

.segmented button {
  min-width: 42px;
  padding: 7px 11px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.distribution,
.legend,
.maturity-list,
.snapshot-list {
  display: grid;
  gap: 10px;
}

.region-row {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 78, 70, 0.06);
}

.region-row:last-of-type {
  border-bottom: 0;
}

.region-head,
.currency-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.region-drill,
.allocation-drill {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.region-drill {
  min-width: 0;
  padding: 0;
}

.region-drill:hover strong,
.allocation-drill:hover {
  color: var(--green);
}

.region-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.region-head span {
  color: var(--muted);
  font-weight: 760;
}

.region-bar-track {
  width: 100%;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126, 139, 147, 0.12);
}

.region-stack {
  display: flex;
  height: 100%;
  min-width: 4px;
  overflow: hidden;
  border-radius: inherit;
}

.region-segment {
  display: block;
  height: 100%;
  min-width: 3px;
}

.region-currencies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.currency-capsule {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--capsule-color) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--capsule-color) 10%, #fff);
  color: #293532;
  font-size: 12px;
  font-weight: 720;
}

.currency-legend {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 78, 70, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.donut-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

#assetDonut {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.altitude-panel {
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 80% 0%, rgba(30, 78, 70, 0.12), transparent 36%);
}

.altitude-head {
  align-items: flex-start;
}

.curve-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.curve-select {
  display: grid;
  gap: 6px;
}

.curve-select span,
.curve-toggle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.curve-select select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(30, 78, 70, 0.08);
  border-radius: 999px;
  outline: 0;
  background: #fbfcfa;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.curve-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(30, 78, 70, 0.08);
  border-radius: 999px;
  background: #fbfcfa;
  color: var(--green);
}

.curve-toggle input {
  accent-color: var(--green);
}

.curve-account-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.curve-insights {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 10px;
}

.curve-insight-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(30, 78, 70, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 246, 242, 0.54)),
    radial-gradient(circle at 100% 0%, rgba(76, 111, 255, 0.08), transparent 46%);
}

.curve-insight-card span,
.curve-insight-card small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.curve-insight-card strong {
  display: block;
  overflow: hidden;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curve-insight-card small {
  letter-spacing: 0;
  text-transform: none;
}

.account-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(30, 78, 70, 0.08);
  border-radius: 999px;
  background: rgba(246, 246, 242, 0.74);
  color: #53625f;
  font-size: 12px;
  font-weight: 720;
}

.account-check input {
  accent-color: var(--green);
}

.growth-chart-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 78, 70, 0.06);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(246, 246, 242, 0.58), rgba(255, 255, 255, 0.24)),
    linear-gradient(135deg, rgba(126, 139, 147, 0.08), transparent 62%);
}

#growthChart {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 300px;
}

.growth-tooltip {
  position: absolute;
  z-index: 2;
  width: min(230px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid rgba(30, 78, 70, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lift);
  pointer-events: none;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.growth-tooltip strong,
.growth-tooltip h4,
.growth-tooltip p {
  margin: 0;
}

.growth-tooltip > strong {
  color: var(--muted);
  font-size: 12px;
}

.growth-tooltip p {
  margin-top: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.growth-tooltip h4 {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.1;
}

.growth-tooltip div {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.growth-tooltip div span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.growth-tooltip .dot {
  width: 8px;
  height: 8px;
}

.growth-tooltip div strong {
  color: var(--ink);
}

.growth-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.growth-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(30, 78, 70, 0.06);
  border-radius: 999px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.growth-legend-chip strong {
  color: var(--ink);
}

.legend-row,
.snapshot-row,
.maturity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 78, 70, 0.06);
}

.legend-row:last-child,
.snapshot-row:last-child,
.maturity-item:last-child {
  border-bottom: 0;
}

.allocation-row {
  min-height: 48px;
}

.allocation-label {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.allocation-row strong {
  color: var(--ink);
  font-size: 18px;
}

.allocation-values {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.allocation-values small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.non-allocation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 78, 70, 0.06);
}

.non-allocation-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(30, 78, 70, 0.06);
  border-radius: 16px;
  background: #fbfcfa;
  cursor: pointer;
}

.non-allocation-card span {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.non-allocation-card strong {
  color: var(--ink);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.non-allocation-card small {
  color: var(--muted);
  font-size: 12px;
}

.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.accounts-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(460px, 100%);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-box input,
.search-box select {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
}

#countryFilter,
#assetTypeFilter {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.active-filters span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.accounts-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #d2ddd8;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8f6 100%);
  box-shadow: var(--shadow);
}

.summary-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.summary-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.summary-value-row > strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-stats span,
.summary-original {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 12px;
}

.summary-stats strong,
.summary-original strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.summary-original strong {
  font-size: 16px;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.assets-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assets-summary-grid {
  margin-bottom: 14px;
}

.assets-grid {
  display: grid;
  gap: 18px;
}

.assets-summary-card,
.fixed-asset-card,
.collectible-category-card,
.collectible-item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assets-summary-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.assets-summary-card span,
.assets-summary-card small,
.fixed-asset-body p,
.fixed-asset-body small,
.collectible-category-card p,
.collectible-item-card p,
.collectible-item-card small {
  color: var(--muted);
}

.assets-summary-card strong {
  font-size: 28px;
}

.asset-section {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-add-button {
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}

.text-add-button:hover {
  color: var(--ink);
}

.section-head h3,
.section-head p,
.fixed-asset-body h3,
.fixed-asset-body p,
.collectible-category-card h4,
.collectible-category-card p,
.collectible-item-card h4,
.collectible-item-card p {
  margin: 0;
}

.asset-sort {
  position: relative;
  flex: 0 0 auto;
}

.asset-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-sort-trigger span:first-of-type {
  color: var(--ink);
}

.asset-sort-menu {
  position: absolute;
  right: 0;
  z-index: 4;
  display: grid;
  min-width: 180px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(23, 33, 31, 0.16);
}

.asset-sort-menu[hidden] {
  display: none;
}

.asset-sort-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.asset-sort-menu button:hover,
.asset-sort-menu button.active {
  background: #edf3f0;
}

.fixed-asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fixed-asset-card {
  overflow: hidden;
}

.fixed-asset-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 230px;
  aspect-ratio: 16 / 9;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(19, 35, 31, 0.02), rgba(19, 35, 31, 0.62)),
    linear-gradient(135deg, #d7e6df, #7e9e94 48%, #314f47);
  background-position: center;
  background-size: cover;
}

.fixed-asset-image.has-image,
.fixed-asset-image.has-image.apartment,
.fixed-asset-image.has-image.property {
  background: linear-gradient(145deg, #eef4f1, #dce8e3);
}

.fixed-asset-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
}

.fixed-asset-image.has-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(19, 35, 31, 0.38));
  content: "";
  pointer-events: none;
}

.fixed-asset-image.apartment,
.fixed-asset-image.property {
  background:
    linear-gradient(180deg, rgba(19, 35, 31, 0.02), rgba(19, 35, 31, 0.68)),
    linear-gradient(135deg, #e6e2d8 0%, #8fa7a0 42%, #36544c 43%, #203831 100%);
}

.fixed-asset-image span {
  position: relative;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.image-status {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 760;
}

.fixed-asset-upload-preview {
  display: block;
  width: 100%;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef4f1;
  object-fit: contain;
}

.fixed-asset-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.fixed-asset-body h3 {
  font-size: 20px;
}

.fixed-asset-body strong {
  font-size: 30px;
}

.fixed-asset-body .secondary-button {
  justify-self: start;
}

.fixed-asset-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.fixed-asset-actions .secondary-button {
  justify-self: stretch;
}

.danger-icon-button {
  color: var(--red);
  background: rgba(185, 74, 72, 0.06);
  box-shadow: inset 0 0 0 1px rgba(185, 74, 72, 0.1);
}

.danger-icon-button:hover {
  background: rgba(185, 74, 72, 0.12);
}

.collectible-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.collectible-category-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.collectible-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #edf3f0;
}

.collectible-mosaic span,
.collectible-thumb {
  display: grid;
  place-items: center;
  background: #dfe9e4;
  color: var(--green);
  font-weight: 900;
}

.collectible-category-card strong {
  display: block;
  margin-top: 4px;
}

.collectible-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.collectible-item-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.collectible-thumb {
  width: 76px;
  aspect-ratio: 1;
  border-radius: 8px;
}

.collectible-thumb img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.collectible-item-card strong,
.collectible-item-card small {
  display: block;
  margin-top: 3px;
}

.account-card {
  padding: 16px;
}

.account-head,
.bucket-row,
.bucket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-head {
  margin-bottom: 12px;
}

.account-head h3 {
  margin: 0 0 4px;
}

.account-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.deposit-badge {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e4cf9b;
  border-radius: 999px;
  background: #fff7df;
  color: #7a5408;
  font-size: 12px;
  font-weight: 800;
}

.deposit-detail {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #ead9ad;
  border-radius: 8px;
  background: #fffaf0;
}

.deposit-detail[hidden] {
  display: none;
}

.deposit-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.deposit-detail-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.bucket-list {
  display: grid;
  gap: 8px;
}

.bucket-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.bucket-row strong,
.bucket-row small {
  display: block;
}

.bucket-row small,
.bucket-meta {
  color: var(--muted);
  font-size: 12px;
}

.type-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ddebe4;
  color: var(--green);
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.history-table-wrap {
  overflow-x: auto;
}

.history-header,
.history-controls,
.history-timeline,
.raw-snapshot-panel {
  margin-bottom: 14px;
}

.history-header h3,
.history-header p,
.timeline-day h3,
.history-card h4 {
  margin: 0;
}

.history-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.history-controls .search-box {
  flex: 1 1 320px;
}

.history-controls select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.history-timeline {
  display: grid;
  gap: 18px;
}

.timeline-day {
  display: grid;
  gap: 10px;
}

.timeline-day > h3 {
  color: var(--muted);
  font-size: 14px;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.history-card-main {
  display: grid;
  gap: 5px;
}

.history-action {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3f0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.history-card p,
.history-card small,
.history-immutable-note,
.snapshot-list-plain,
.snapshot-account-list span {
  color: var(--muted);
}

.history-card p {
  margin: 0;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.raw-snapshot-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.raw-snapshot-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.raw-snapshot-panel[open] summary {
  margin-bottom: 12px;
}

.history-detail-grid,
.snapshot-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.history-detail-grid > div,
.snapshot-summary > div,
.snapshot-account-list > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.history-detail-grid span,
.snapshot-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.history-immutable-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.snapshot-list-plain {
  padding-left: 18px;
}

.snapshot-account-list {
  display: grid;
  gap: 8px;
}

.snapshot-account-list span {
  display: block;
  margin-top: 4px;
}


.settings-stack {
  display: grid;
  gap: 18px;
}

.settings-section {
  display: grid;
  gap: 10px;
}

.settings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-section-head h3,
.settings-card h4 {
  margin: 0;
}

.settings-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.settings-grid.two,
.goal-settings-grid,
.rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-card {
  grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
}

.profile-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #163d34;
  color: #fff;
  font-weight: 700;
}

.profile-card span,
.settings-meta,
.setting-row p,
.data-action-card p,
.asset-goals-card p,
.sensitive-list {
  color: var(--muted);
  font-size: 13px;
}

.profile-card strong {
  display: block;
  margin-top: 3px;
}

.profile-card label {
  min-width: 0;
}

.profile-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setting-row > div {
  min-width: 0;
}

.setting-row p,
.data-action-card p,
.asset-goals-card p {
  margin: 5px 0 0;
}

.settings-card select,
.settings-card input {
  min-width: 148px;
}

.exchange-card,
.asset-goals-card,
.data-action-card {
  align-content: start;
}

.settings-meta {
  margin: 0;
}

#syncStatusText {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

#syncStatusText[data-sync-state="ok"] {
  color: var(--green);
}

#syncStatusText[data-sync-state="busy"] {
  color: var(--gold);
}

#syncStatusText[data-sync-state="error"] {
  color: var(--red);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
  align-items: center;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd8d4;
  transition: background 0.16s ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  content: "";
  transition: transform 0.16s ease;
}

.switch input:checked + span {
  background: #2d6a4f;
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.sensitive-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.danger-text-button {
  border: 0;
  background: transparent;
  color: #a33b35;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-eye-inline {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.privacy-toggle[hidden],
.amount-eye-inline[hidden] {
  display: none;
}

.restore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  cursor: pointer;
}

.restore-button input {
  display: none;
}

.compact {
  min-height: 38px;
  padding-block: 8px;
}

dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

dialog::backdrop {
  background: rgba(13, 25, 22, 0.42);
}

.dialog-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.account-type-grid {
  display: grid;
  gap: 10px;
}

.account-type-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  color: var(--ink);
  text-align: left;
}

.account-type-option:hover {
  border-color: #b7cec3;
  background: #eef6f2;
}

.account-type-option span,
.account-type-option small,
.selected-account-type,
.toggle-row small {
  color: var(--muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.toggle-row input {
  width: auto;
  min-height: auto;
}

.selected-account-type {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  font-size: 13px;
  font-weight: 800;
}

.dialog-card.large {
  width: min(760px, calc(100vw - 28px));
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h3 {
  margin: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  min-height: 42px;
  padding: 0 10px;
}

textarea {
  min-height: 120px;
  padding: 10px;
  resize: vertical;
}

.form-grid,
.fixed-fields,
.collectible-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .primary-button {
  align-self: end;
}

.upload-zone {
  display: grid;
  gap: 10px;
}

#screenshotPreview {
  display: none;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.preview-table {
  display: grid;
  gap: 8px;
}

.preview-line {
  display: grid;
  grid-template-columns: 1fr 90px 130px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

input,
select,
textarea {
  border: 1px solid rgba(30, 78, 70, 0.08);
  border-radius: 12px;
  background: #fbfcfa;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(30, 78, 70, 0.14);
  border-color: rgba(30, 78, 70, 0.18);
}

.account-card,
.assets-summary-card,
.settings-card,
.fixed-asset-card,
.collectible-category-card,
.collectible-item-card,
.accounts-summary {
  border-color: rgba(30, 78, 70, 0.06);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.bucket-row,
.collectible-item-card,
.deposit-detail-row {
  border-radius: 14px;
}

.type-pill,
.active-filters span,
.deposit-badge {
  border-radius: 999px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .metrics-grid,
  .hero-main,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card {
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
  }

  .profile-card .danger-text-button {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .accounts-toolbar,
  .history-controls,
  .panel-head,
  .section-head,
  .settings-section-head,
  .setting-row {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .dialog-actions,
  .curve-controls {
    flex-wrap: wrap;
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid,
  .hero-main,
  .growth-grid,
  .goal-grid,
  .curve-controls,
  .curve-insights,
  .summary-main,
  .summary-stats,
  .history-card,
  .history-detail-grid,
  .snapshot-summary,
  .dashboard-grid,
  .form-grid,
  .fixed-fields,
  .collectible-fields,
  .donut-wrap,
  .settings-grid.two,
  .goal-settings-grid,
  .rate-grid,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .accounts-grid {
    grid-template-columns: 1fr;
  }

  .assets-summary-grid,
  .fixed-asset-grid,
  .collectible-category-grid,
  .collectible-item-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 18px;
  }

  .hero-value-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-value-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-total {
    min-width: 0;
    text-align: left;
  }

  .currency-menu {
    left: 0;
    right: auto;
  }

  .asset-sort-menu {
    left: 0;
    right: auto;
  }

  .section-actions {
    justify-content: space-between;
  }
}
