:root {
  color-scheme: light;
  --ink: #312c51;
  --ink-2: #48426d;
  --muted: #746d82;
  --line: #e3d8cf;
  --paper: #fffaf4;
  --paper-2: #f6efe7;
  --paper-3: #eadfd8;
  --gold: #f0c38e;
  --gold-2: #f4d1a7;
  --coral: #f1aa9b;
  --green: #42a67a;
  --red: #d95d4e;
  --blue: #6f75a8;
  --shadow: 0 18px 50px rgba(49, 44, 81, 0.15);
  --nav-h: 68px;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper-2);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(241, 170, 155, 0.18), transparent 34%),
    linear-gradient(180deg, #f3ede7 0%, #fff8ef 48%, #eee4da 100%);
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(245, 200, 76, 0.58);
  outline-offset: 2px;
}

.app-shell {
  width: min(100%, 1220px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 14px calc(var(--nav-h) + 22px);
}

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

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

.identity > div {
  min-width: 0;
}

.avatar {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fffaf4;
  object-fit: cover;
}

.eyebrow,
.mini-label,
.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.28rem, 3vw, 1.65rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.context-label {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 850;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 0.96rem;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-button,
.nav-item,
.chip,
.month-button,
.small-action,
.primary-button,
.secondary-button,
.danger-button {
  border: 0;
  border-radius: var(--radius);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 10px 26px rgba(17, 17, 15, 0.18);
  font-weight: 900;
}

.icon-button.soft {
  color: var(--ink);
  background: var(--gold);
}

.logout-button {
  display: none;
  width: auto;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.online-mode .logout-button {
  display: grid;
}

.main-view {
  display: grid;
  gap: 14px;
}

.auth-mode .topbar,
.auth-mode .top-actions,
.auth-mode .bottom-nav {
  display: none;
}

.auth-mode {
  background:
    linear-gradient(135deg, #141218 0%, #312c51 46%, #48426d 100%);
}

.auth-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(100%, 920px);
  margin: 7vh auto 0;
}

.auth-card {
  padding: 18px;
  border: 1px solid rgba(255, 250, 244, 0.2);
  border-radius: var(--radius);
  color: #fffaf4;
  background:
    linear-gradient(160deg, rgba(255, 250, 244, 0.13), rgba(255, 250, 244, 0.05)),
    rgba(49, 44, 81, 0.9);
  box-shadow: 0 28px 70px rgba(12, 10, 20, 0.32);
  backdrop-filter: blur(18px);
}

.auth-card .field label,
.auth-card .empty-state {
  color: rgba(255, 250, 244, 0.72);
}

.auth-card .field input {
  border-color: rgba(255, 250, 244, 0.2);
  color: #fffaf4;
  background: rgba(255, 250, 244, 0.08);
}

.auth-card .field input::placeholder {
  color: rgba(255, 250, 244, 0.44);
}

.auth-card .primary-button {
  color: #312c51;
  background: linear-gradient(135deg, #f0c38e, #f1aa9b);
}

.auth-card .secondary-button {
  color: #fffaf4;
  border: 1px solid rgba(240, 195, 142, 0.36);
  background: rgba(240, 195, 142, 0.12);
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-card-head h2 {
  margin: 3px 0 0;
  color: #fffaf4;
  font-size: 1.35rem;
}

.auth-card-head.compact {
  margin: 0 0 10px;
}

.auth-kicker {
  margin: 0;
  color: #f0c38e;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-visual {
  display: grid;
  align-content: center;
  min-height: 280px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fffaf4;
  background:
    linear-gradient(150deg, #312c51 0%, #48426d 62%, #6c4d6c 100%);
  box-shadow: 0 28px 70px rgba(12, 10, 20, 0.24);
}

.auth-visual h2 {
  max-width: 320px;
  margin: 4px 0 0;
  color: #fffaf4;
  font-size: clamp(1.55rem, 8vw, 2.7rem);
  line-height: 0.98;
}

.auth-brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fffaf4;
  object-fit: cover;
}

.auth-preview-card {
  display: none;
  gap: 3px;
  width: min(100%, 250px);
  margin-top: 28px;
  padding: 15px;
  border-radius: var(--radius);
  color: #312c51;
  background: linear-gradient(135deg, #f0c38e, #f1aa9b);
}

.auth-preview-card span,
.auth-preview-card small {
  font-size: 0.76rem;
  font-weight: 850;
}

.auth-preview-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.auth-swatches {
  display: none;
  gap: 8px;
  margin-top: 22px;
}

.auth-swatches span {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 250, 244, 0.22);
  border-radius: 50%;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: rgba(255, 250, 244, 0.58);
  font-size: 0.76rem;
  font-weight: 850;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  content: "";
  background: rgba(255, 250, 244, 0.16);
}

.auth-error {
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid rgba(217, 93, 78, 0.24);
  border-radius: var(--radius);
  color: #9a3027;
  background: #fff0ea;
  font-size: 0.84rem;
  font-weight: 800;
}

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

.month-switcher {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
}

.month-button {
  min-height: 42px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 900;
}

.month-current {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 900;
}

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

.fx-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(49, 44, 81, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.92);
  box-shadow: 0 10px 26px rgba(49, 44, 81, 0.08);
  backdrop-filter: blur(14px);
}

.fx-card > div {
  min-width: 0;
}

.fx-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-status-card {
  grid-column: 1 / -1;
}

.fx-status-card .small-action {
  flex: 0 0 auto;
}

.tv-fx-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tv-fx-card {
  display: grid;
  align-items: stretch;
  gap: 6px;
  min-height: 146px;
  padding: 8px;
  overflow: hidden;
  pointer-events: none;
}

.tv-fx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tv-fx-head .mini-label {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.1;
}

.tv-fx-head .chip {
  padding: 7px 8px;
  font-size: 0.68rem;
}

.tv-fx-card tv-mini-chart {
  display: block;
  width: 100%;
  min-height: 96px;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  pointer-events: none;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 188px;
  gap: 8px;
  padding: 30px 16px;
  border-radius: var(--radius);
  color: var(--paper);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(240, 195, 142, 0.16), rgba(241, 170, 155, 0.09)),
    var(--ink);
  box-shadow: var(--shadow);
}

.hero-title {
  margin: 0;
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-value {
  margin: 0;
  color: #9bc8a3;
  font-size: clamp(2.6rem, 10vw, 5rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.content-panel.overview-card {
  padding: 0;
  overflow: hidden;
  color: var(--paper);
  border-color: rgba(255, 250, 240, 0.1);
  background:
    radial-gradient(circle at 80% 16%, rgba(240, 195, 142, 0.24), transparent 28%),
    linear-gradient(145deg, #312c51 0%, #48426d 54%, #2f4157 100%);
  box-shadow: var(--shadow);
}

.balance-overview {
  display: grid;
  gap: 18px;
  padding: 20px;
  color: var(--paper);
}

.balance-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.balance-copy .hero-title {
  color: rgba(255, 250, 240, 0.72);
}

.balance-copy .hero-value {
  color: #9bc8a3;
  font-size: clamp(2.8rem, 11vw, 5.1rem);
}

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

.overview-mini-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.09);
}

.overview-mini-grid span {
  display: block;
  color: rgba(255, 250, 240, 0.66);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.overview-mini-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--paper);
  font-size: clamp(0.95rem, 4vw, 1.22rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.balance-pie-wrap {
  position: relative;
  min-height: 230px;
}

.balance-pie-wrap canvas {
  width: 100%;
  height: 230px;
}

.balance-pie-center {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 94px;
  transform: translate(-50%, -50%);
  place-items: center;
  text-align: center;
}

.balance-pie-center span {
  color: rgba(255, 250, 240, 0.66);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.balance-pie-center strong {
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 950;
}

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

.metric-card,
.content-panel,
.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 10px 28px rgba(40, 33, 20, 0.06);
}

.metric-card {
  min-height: 106px;
  padding: 13px;
}

.metric-value {
  margin: 7px 0 3px;
  font-size: clamp(1.12rem, 4.4vw, 1.55rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.money-converted {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.card-foot .money-converted,
.wallet-total-glass .money-converted {
  color: rgba(255, 250, 240, 0.74);
}

.readonly-field {
  min-height: 42px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
  font-weight: 900;
}

.metric-card.warn {
  border-color: rgba(217, 93, 78, 0.28);
  background: #fff4ec;
}

.metric-card.good {
  border-color: rgba(66, 166, 122, 0.27);
  background: #eff9f1;
}

.content-panel {
  padding: 14px;
}

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

.panel-head h2,
.panel-head h3 {
  margin: 0;
}

.small-action {
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
}

.small-action.dark {
  color: var(--paper);
  background: var(--ink);
}

.small-action.ghost {
  border: 1px solid var(--line);
  background: var(--paper);
}

.small-action.icon-action {
  min-width: 38px;
  padding: 0 12px;
  font-size: 1.05rem;
  line-height: 1;
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 230px;
}

canvas {
  display: block;
  width: 100%;
  height: 240px;
}

.chart-tooltip {
  position: fixed;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 9px 10px;
  border: 1px solid rgba(255, 250, 244, 0.18);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(49, 44, 81, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip > span {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
}

.chart-tooltip strong,
.chart-tooltip small {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 3px;
  font-size: 0.82rem;
}

.chart-tooltip small {
  color: rgba(255, 250, 244, 0.78);
  font-size: 0.78rem;
  line-height: 1.25;
}

.chart-tooltip .money-converted {
  display: inline;
  color: rgba(255, 250, 244, 0.6);
}

.split-grid,
.dashboard-grid,
.reports-grid {
  display: grid;
  gap: 12px;
}

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

.join-family-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px dashed rgba(49, 44, 81, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.54);
}

.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.list-row.compact {
  grid-template-columns: 1fr auto;
}

.row-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-weight: 950;
}

.row-icon.green {
  background: #bfe6cd;
}

.row-icon.red {
  background: #ffd0c4;
}

.row-icon.blue {
  background: #c9dceb;
}

.row-main {
  min-width: 0;
}

.row-title {
  margin: 0;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta,
.empty-state {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.row-amount {
  text-align: right;
  font-weight: 950;
  white-space: nowrap;
}

.row-amount.income {
  color: #247653;
}

.row-amount.expense {
  color: #aa3d31;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
}

.settings-rate-card,
.family-members-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(49, 44, 81, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.66);
}

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

.readonly-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.readonly-field strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

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

.family-member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(49, 44, 81, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.76);
}

.member-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
}

.empty-action {
  display: grid;
  justify-items: start;
  gap: 9px;
}

.source-list {
  margin-top: 8px;
}

.income-payments-block {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.source-row .row-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.source-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(17, 17, 15, 0.06);
}

.vehicle-panel {
  background:
    linear-gradient(135deg, rgba(86, 124, 155, 0.12), rgba(245, 200, 76, 0.08)),
    rgba(255, 250, 240, 0.82);
}

.housing-panel {
  background:
    linear-gradient(135deg, rgba(240, 195, 142, 0.18), rgba(66, 166, 122, 0.08)),
    rgba(255, 250, 240, 0.82);
}

.housing-stack {
  display: grid;
  gap: 10px;
}

.housing-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(49, 44, 81, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.74);
}

.housing-card-head,
.housing-total,
.housing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.housing-card-head h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.housing-total {
  padding: 10px;
  border: 1px solid rgba(49, 44, 81, 0.08);
  border-radius: var(--radius);
  background: var(--paper);
}

.housing-total span,
.housing-total small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.housing-total strong {
  color: #2f7f5f;
  font-size: 1.22rem;
  font-weight: 950;
  text-align: center;
}

.housing-items {
  display: grid;
  gap: 8px;
}

.housing-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.housing-item.is-paid {
  opacity: 0.72;
}

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

.housing-form-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.62);
}

.housing-service-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.small-action:disabled {
  cursor: default;
  opacity: 0.7;
}

.vehicle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(86, 124, 155, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 18%, rgba(245, 200, 76, 0.34), transparent 24%),
    var(--paper);
}

.vehicle-visual {
  display: grid;
  width: 78px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff4d8, #f0c38e);
}

.vehicle-image {
  position: relative;
  width: 64px;
  height: 36px;
}

.vehicle-car-body,
.vehicle-car-window,
.vehicle-wheel {
  position: absolute;
  display: block;
}

.vehicle-car-body {
  right: 0;
  bottom: 8px;
  width: 60px;
  height: 19px;
  border-radius: 14px 18px 8px 8px;
  background: linear-gradient(135deg, #fffaf4 0%, #dfe9ef 55%, #9cb0bd 100%);
  box-shadow: inset 0 -2px 0 rgba(49, 44, 81, 0.12);
}

.vehicle-car-window {
  left: 18px;
  top: 3px;
  width: 28px;
  height: 17px;
  border-radius: 14px 14px 3px 3px;
  background: linear-gradient(135deg, #567c9b, #dfe9ef);
  clip-path: polygon(12% 100%, 36% 0, 78% 0, 100% 100%);
}

.vehicle-wheel {
  bottom: 3px;
  width: 12px;
  height: 12px;
  border: 3px solid #312c51;
  border-radius: 50%;
  background: #fffaf4;
}

.vehicle-wheel.left {
  left: 12px;
}

.vehicle-wheel.right {
  right: 9px;
}

.vehicle-main {
  min-width: 0;
}

.vehicle-card strong {
  display: block;
  max-width: 100%;
  font-size: 1.02rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-info-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(49, 44, 81, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.78);
}

.vehicle-info-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.vehicle-insurance-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 8px;
  min-width: 132px;
  padding: 10px;
  border: 1px solid rgba(66, 166, 122, 0.22);
  border-radius: var(--radius);
  background: rgba(232, 248, 237, 0.66);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.vehicle-insurance-check input {
  width: 16px;
  height: 16px;
  accent-color: #42a67a;
}

.vehicle-insurance-check small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.vehicle-maintenance-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.vehicle-maintenance-empty {
  margin-top: 10px;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7d9c5;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius);
  background: var(--green);
}

.cards-wallet {
  display: block;
}

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

.cards-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.cards-grid .credit-card-tile {
  min-height: 198px;
}

.cards-grid.with-actions .credit-card-tile {
  min-height: 238px;
}

.cards-carousel {
  display: grid;
  gap: 12px;
}

.card-carousel-stage {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  isolation: isolate;
  perspective: 1000px;
}

.cards-carousel.with-actions .card-carousel-stage {
  min-height: 382px;
}

.wallet-total-glass span {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wallet-total-glass strong {
  font-size: 1.45rem;
  line-height: 1;
}

.wallet-total-glass small {
  font-size: 0.72rem;
  font-weight: 750;
}

.wallet-total-glass {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 12;
  display: grid;
  width: min(94%, 360px);
  min-height: 132px;
  place-items: center;
  gap: 5px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 250, 240, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(49, 44, 81, 0.98), rgba(37, 33, 61, 0.98));
  box-shadow: 0 24px 48px rgba(49, 44, 81, 0.32);
  color: #fffaf0;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
}

.wallet-total-glass::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 250, 240, 0.22);
  border-radius: 16px;
  pointer-events: none;
}

.wallet-total-glass::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  right: 18px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.22), rgba(255, 250, 240, 0));
  opacity: 0.7;
  pointer-events: none;
}

.wallet-pocket.has-actions {
  min-height: 164px;
  pointer-events: auto;
}

.wallet-total-glass span,
.wallet-total-glass small {
  color: rgba(255, 250, 240, 0.72);
}

.wallet-total-glass > * {
  position: relative;
  z-index: 1;
}

.wallet-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 7px;
}

.wallet-action-row .small-action {
  color: var(--ink);
  background: var(--gold);
  border-color: rgba(255, 250, 240, 0.18);
}

.wallet-action-row .small-action.ghost {
  color: var(--paper);
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.2);
}

.credit-card-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 14px;
  border-radius: var(--radius);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(240, 195, 142, 0.45), transparent 26%),
    linear-gradient(315deg, rgba(241, 170, 155, 0.34), transparent 34%),
    linear-gradient(135deg, #312c51 0%, #48426d 58%, #262241 100%);
  box-shadow: 0 18px 36px rgba(49, 44, 81, 0.22);
}

.cards-carousel .credit-card-tile {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(94%, 350px);
  transform-origin: center;
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-card {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px) scale(0.82);
}

.carousel-card.is-active {
  z-index: 6;
  opacity: 1;
  pointer-events: auto;
  filter: none;
  animation: cardDeckIn 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateX(-50%) translateY(88px) rotateX(0deg) scale(1);
}

.carousel-card.is-next {
  z-index: 5;
  opacity: 0.92;
  cursor: pointer;
  pointer-events: auto;
  filter: saturate(0.95);
  animation: cardDeckBack 260ms ease;
  transform: translateX(-50%) translateY(54px) rotateX(0deg) scale(0.95);
}

.carousel-card.is-prev {
  z-index: 4;
  opacity: 0.7;
  cursor: pointer;
  pointer-events: auto;
  filter: blur(0.4px) saturate(0.88);
  transform: translateX(-50%) translateY(22px) rotateX(0deg) scale(0.88);
}

.carousel-card.is-hidden {
  z-index: 1;
  transform: translateX(-50%) translateY(0) scale(0.82);
}

@keyframes cardDeckIn {
  from {
    opacity: 0.82;
    transform: translateX(-50%) translateY(54px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(88px) scale(1);
  }
}

@keyframes cardDeckBack {
  from {
    transform: translateX(-50%) translateY(88px) scale(1);
  }
  to {
    transform: translateX(-50%) translateY(54px) scale(0.95);
  }
}

.card-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.carousel-arrow {
  display: grid;
  width: 36px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(49, 44, 81, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(49, 44, 81, 0.22);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 21px;
  background: var(--ink);
}

.credit-card-tile.jp-card {
  background:
    linear-gradient(135deg, rgba(240, 195, 142, 0.48), transparent 26%),
    linear-gradient(315deg, rgba(111, 117, 168, 0.42), transparent 34%),
    linear-gradient(135deg, #312c51 0%, #48426d 58%, #262241 100%);
}

.credit-card-tile.br-card {
  background:
    linear-gradient(135deg, rgba(240, 195, 142, 0.5), transparent 26%),
    linear-gradient(315deg, rgba(66, 166, 122, 0.48), transparent 34%),
    linear-gradient(135deg, #273b35 0%, #48426d 62%, #312c51 100%);
}

.credit-card-tile.style-nubank {
  background:
    radial-gradient(circle at 82% 18%, rgba(241, 170, 155, 0.42), transparent 26%),
    linear-gradient(135deg, #5f1bb4 0%, #7b2fd3 45%, #312c51 100%);
}

.credit-card-tile.style-santander {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 220, 177, 0.48), transparent 24%),
    linear-gradient(135deg, #7f1d1d 0%, #d93a2f 48%, #312c51 100%);
}

.credit-card-tile.style-caixa {
  background:
    radial-gradient(circle at 84% 16%, rgba(245, 200, 76, 0.46), transparent 24%),
    linear-gradient(135deg, #0f4c81 0%, #2377b7 52%, #312c51 100%);
}

.credit-card-tile.style-wise {
  background:
    radial-gradient(circle at 82% 18%, rgba(213, 255, 132, 0.48), transparent 25%),
    linear-gradient(135deg, #0b3d38 0%, #1f8f78 52%, #312c51 100%);
}

.credit-card-tile.style-jcb {
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(135deg, #143d74 0%, #b9324a 50%, #236b4b 100%);
}

.credit-card-tile.style-amex {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(135deg, #3f6f8f 0%, #97b7c9 50%, #312c51 100%);
}

.credit-card-tile.style-visa {
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 200, 76, 0.44), transparent 24%),
    linear-gradient(135deg, #17245f 0%, #2b58c8 54%, #312c51 100%);
}

.credit-card-tile.style-mastercard {
  background:
    radial-gradient(circle at 82% 16%, rgba(241, 170, 155, 0.5), transparent 24%),
    linear-gradient(135deg, #2f284f 0%, #d95d4e 48%, #f0a64c 100%);
}

.credit-card-tile.style-brasil {
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 200, 76, 0.48), transparent 24%),
    linear-gradient(135deg, #133f31 0%, #42a67a 54%, #312c51 100%);
}

.credit-card-tile.style-japao {
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 93, 78, 0.42), transparent 24%),
    linear-gradient(135deg, #312c51 0%, #48426d 54%, #567c9b 100%);
}

.flag-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  min-width: 38px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 950;
}

.flag-badge.br {
  color: #153c25;
  background: linear-gradient(135deg, #42a67a 0%, #f5c84c 100%);
}

.flag-badge.jp {
  color: #8c1f25;
  background:
    radial-gradient(circle at center, #d95d4e 0 31%, transparent 33%),
    #fffaf0;
}

.card-brand {
  width: max-content;
  max-width: calc(100% - 52px);
  padding: 5px 8px;
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.12);
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.76rem;
  font-weight: 850;
}

.card-name {
  margin: 18px 0 6px;
  font-size: 1.06rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-number {
  margin: 0 0 14px;
  color: rgba(255, 250, 240, 0.72);
  font-weight: 850;
  letter-spacing: 0;
}

.card-foot,
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.78rem;
  font-weight: 850;
}

.card-progress {
  height: 7px;
  margin: 8px 0;
  background: rgba(255, 250, 240, 0.18);
}

.card-delete {
  width: 100%;
  margin-top: 10px;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.subscriptions-panel {
  overflow: hidden;
}

.subscription-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.subscription-summary strong {
  color: var(--ink);
  font-size: 1.18rem;
}

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

.subscription-badge {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 98px;
  padding: 10px 6px;
  border: 1px solid rgba(49, 44, 81, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.68);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.subscription-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #fffaf0;
  background: var(--subscription-color, #48426d);
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(49, 44, 81, 0.16);
  overflow: hidden;
}

.subscription-logo.has-image {
  color: transparent;
  background: transparent;
  box-shadow: none;
}

.subscription-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.subscription-logo.has-image .subscription-fallback {
  display: none;
}

.subscription-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.subscription-icon {
  width: 38px;
  height: 38px;
}

.subscription-badge strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-value {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.subscription-value .money-converted {
  margin-top: 1px;
  font-size: 0.66rem;
}

.subscription-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.subscription-home-carousel {
  display: grid;
  gap: 8px;
}

.subscription-home-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.subscription-home-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 100%;
  scroll-snap-align: start;
}

.subscription-home-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 132px;
  padding: 12px 8px;
  border: 1px solid rgba(49, 44, 81, 0.1);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.72);
  cursor: pointer;
  text-align: center;
}

.subscription-home-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.subscription-home-card strong,
.subscription-home-card small,
.subscription-home-card em {
  display: block;
}

.subscription-home-card strong {
  width: 100%;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-home-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
}

.subscription-home-card em {
  color: #aa3d31;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1.1;
}

.subscription-home-card em .money-converted {
  margin-top: 1px;
  font-size: 0.66rem;
}

.carousel-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.subscription-detail-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.subscription-detail-row .row-amount {
  min-width: 116px;
}

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

.calendar-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.44);
}

.calendar-item.red {
  border-color: rgba(217, 93, 78, 0.3);
  background: #fff4ec;
}

.calendar-item.gold {
  border-color: rgba(240, 195, 142, 0.56);
  background: #fff8e9;
}

.calendar-item.green {
  border-color: rgba(66, 166, 122, 0.28);
  background: #eff9f1;
}

.calendar-item.calendar-income {
  border-color: rgba(66, 166, 122, 0.28);
  background: #eff9f1;
}

.calendar-item.calendar-expense {
  border-color: rgba(217, 93, 78, 0.32);
  background: #fff0ec;
}

.calendar-item.calendar-income .calendar-date {
  background: #2f6f55;
}

.calendar-item.calendar-expense .calendar-date {
  background: #7a332d;
}

.calendar-date {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--ink);
}

.calendar-date span {
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.calendar-date small {
  color: rgba(255, 250, 244, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-main {
  min-width: 0;
}

.calendar-amount {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
  font-weight: 950;
  white-space: nowrap;
}

.calendar-amount.income {
  color: #247653;
}

.calendar-amount.expense {
  color: #aa3d31;
}

.crypto-panel {
  overflow: hidden;
}

.crypto-wallet {
  display: grid;
  gap: 12px;
  width: 100%;
}

.crypto-wallet-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 200, 76, 0.24), transparent 28%),
    linear-gradient(145deg, #312c51 0%, #48426d 55%, #2f4157 100%);
}

.crypto-wallet-hero .mini-label {
  color: rgba(255, 250, 244, 0.72);
}

.crypto-wallet-hero strong {
  display: block;
  margin-top: 5px;
  color: var(--paper);
  font-size: clamp(1.55rem, 7vw, 2.65rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.crypto-wallet-hero .row-meta {
  margin-top: 6px;
  color: rgba(255, 250, 244, 0.72);
}

.crypto-wallet-hero .money-converted {
  color: rgba(255, 250, 244, 0.62);
}

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

.crypto-wallet-kpis div {
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(49, 44, 81, 0.045);
}

.crypto-wallet-kpis span,
.crypto-token-grid span,
.crypto-allocation-head span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.crypto-wallet-kpis strong,
.crypto-wallet-kpis small {
  display: block;
}

.crypto-wallet-kpis strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.crypto-wallet-kpis small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.crypto-wallet .income,
.crypto-token-card .income {
  color: #247653;
}

.crypto-wallet .expense,
.crypto-token-card .expense {
  color: #aa3d31;
}

.crypto-allocation {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(49, 44, 81, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.68);
}

.crypto-allocation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.crypto-allocation-head strong {
  color: var(--ink);
  font-size: 0.85rem;
}

.crypto-allocation-bar {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 44, 81, 0.09);
}

.crypto-allocation-bar span {
  flex: 0 0 var(--segment-width);
  min-width: 4px;
  background: var(--segment-color);
}

.crypto-allocation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.crypto-allocation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.crypto-allocation-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

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

.crypto-token-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(49, 44, 81, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
}

.crypto-token-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(49, 44, 81, 0.14);
}

.crypto-token-main {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.crypto-token-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.crypto-token-head > div {
  min-width: 0;
}

.crypto-token-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.crypto-token-grid div {
  min-width: 0;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(49, 44, 81, 0.045);
}

.crypto-token-grid strong,
.crypto-token-grid small {
  display: block;
}

.crypto-token-grid strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.crypto-token-grid small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.crypto-token-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.crypto-layout {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.crypto-donut-wrap {
  position: relative;
  width: min(100%, 280px);
  min-height: 230px;
}

.crypto-donut-wrap canvas {
  width: 100%;
  height: 230px;
}

.crypto-center {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 132px;
  transform: translate(-50%, -50%);
  place-items: center;
  text-align: center;
}

.crypto-center span,
.crypto-center small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.crypto-center strong {
  max-width: 100%;
  margin: 3px 0;
  font-size: clamp(1.02rem, 4.5vw, 1.42rem);
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crypto-center .income,
.crypto-list .income,
.stat-box .income {
  color: #247653;
}

.crypto-center .expense,
.crypto-list .expense,
.stat-box .expense {
  color: #aa3d31;
}

.crypto-side {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.crypto-stats {
  width: min(100%, 360px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crypto-stats .stat-box {
  text-align: center;
}

.crypto-value-card {
  width: min(100%, 430px);
  padding: 12px;
  border: 1px solid rgba(49, 44, 81, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.66);
}

.panel-head.compact {
  margin-bottom: 6px;
}

.crypto-value-card canvas {
  width: 100%;
  height: 88px;
}

.crypto-status {
  width: min(100%, 430px);
  align-items: center;
  justify-content: space-between;
}

.crypto-panel.is-compact .crypto-layout {
  gap: 12px;
}

.crypto-panel.is-compact .crypto-donut-wrap {
  min-height: 218px;
}

.crypto-panel.is-compact .crypto-donut-wrap canvas {
  height: 218px;
}

.crypto-list {
  width: min(100%, 520px);
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.crypto-entry-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(49, 44, 81, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
}

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

.crypto-entry-head > div {
  min-width: 0;
  flex: 1;
}

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

.crypto-entry-grid div {
  min-width: 0;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(49, 44, 81, 0.045);
}

.crypto-entry-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.crypto-entry-grid strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.crypto-entry-grid strong.income,
.crypto-value-card .income {
  color: #247653;
}

.crypto-entry-grid strong.expense,
.crypto-value-card .expense {
  color: #aa3d31;
}

.crypto-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 10px;
}

.crypto-donut-placeholder {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 14px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 950;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--paper-3);
  font-size: 0.8rem;
  font-weight: 850;
}

.chip.gold {
  background: var(--gold);
}

.chip.green {
  background: #c9eed9;
}

.chip.red {
  background: #ffd8cf;
}

.chip.blue {
  background: #d7e7f2;
}

.tabs-inline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tabs-inline button {
  flex: 0 0 auto;
}

.form-grid {
  display: grid;
  gap: 11px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.is-wide {
  grid-column: 1 / -1;
}

.is-hidden {
  display: none !important;
}

.field label {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

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

.three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 42px;
  padding: 0 14px;
  font-weight: 900;
}

.primary-button {
  color: var(--ink);
  background: var(--gold);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
}

.danger-button {
  color: #fff;
  background: var(--red);
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  max-width: 760px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: var(--radius);
  background: rgba(49, 44, 81, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 3px;
  color: rgba(255, 250, 240, 0.62);
  background: transparent;
  font-size: clamp(0.62rem, 2.6vw, 0.78rem);
  font-weight: 820;
  letter-spacing: 0;
}

.nav-item span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 250, 240, 0.08);
  font-size: 0.74rem;
  font-weight: 950;
}

.nav-item.is-active {
  color: var(--gold);
}

.nav-item.is-active span {
  color: var(--ink);
  background: var(--gold);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(49, 44, 81, 0.44);
}

.modal {
  width: min(100%, 680px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.modal-head h2 {
  margin: 0;
}

.close-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper-2);
  font-weight: 950;
}

.add-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.add-hub-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  text-align: left;
}

.add-hub-option strong,
.add-hub-option small {
  display: block;
}

.add-hub-option strong {
  font-size: 0.95rem;
}

.add-hub-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 26px);
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 11px 12px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.stat-box {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.stat-box strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.install-hint {
  display: none;
}

/* Nekuma UI Premium v1 */
:root {
  --ink: #10231f;
  --ink-2: #1f4a3e;
  --muted: #748179;
  --line: rgba(16, 35, 31, 0.1);
  --paper: #fffdf7;
  --paper-2: #edf3ed;
  --paper-3: #dfe9df;
  --gold: #d8ff72;
  --gold-2: #efffb6;
  --coral: #f1aa9b;
  --green: #0f7d50;
  --red: #dc5b50;
  --blue: #4f72d8;
  --deep: #071f19;
  --deep-2: #0e3329;
  --lime: #c5ff67;
  --glass: rgba(255, 253, 247, 0.78);
  --shadow: 0 24px 70px rgba(7, 31, 25, 0.14);
  --radius: 20px;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle at 18% 8%, rgba(197, 255, 103, 0.18), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(15, 125, 80, 0.14), transparent 28%),
    linear-gradient(180deg, #f5f7f0 0%, #edf3ed 44%, #f8f1e8 100%);
}

.app-shell {
  padding-top: 18px;
}

.topbar {
  padding: 10px 2px 0;
}

.avatar,
.auth-brand-mark {
  border-color: rgba(16, 35, 31, 0.16);
  box-shadow:
    0 10px 28px rgba(7, 31, 25, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

h1 {
  color: var(--deep);
  font-weight: 850;
}

.eyebrow,
.mini-label,
.metric-label {
  color: rgba(16, 35, 31, 0.56);
  font-weight: 850;
}

.context-label {
  color: var(--green);
}

.content-panel,
.metric-card,
.list-card,
.month-current,
.month-button,
.form-grid input,
.form-grid select,
.form-grid textarea {
  border-color: rgba(16, 35, 31, 0.1);
  background: var(--glass);
  box-shadow: 0 18px 54px rgba(7, 31, 25, 0.08);
  backdrop-filter: blur(18px);
}

.content-panel {
  position: relative;
  overflow: hidden;
}

.content-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(197, 255, 103, 0.12), transparent 22%);
  pointer-events: none;
}

.content-panel > * {
  position: relative;
  z-index: 1;
}

.panel-head h2 {
  color: var(--deep);
  font-size: 1rem;
  font-weight: 850;
}

.small-action,
.primary-button {
  border: 1px solid rgba(16, 35, 31, 0.08);
  color: var(--deep);
  background: linear-gradient(135deg, #d8ff72, #f0c38e);
  box-shadow: 0 12px 28px rgba(7, 31, 25, 0.1);
}

.small-action.ghost,
.secondary-button,
.month-button {
  color: var(--deep);
  background: rgba(255, 253, 247, 0.68);
}

.icon-button {
  border-radius: 16px;
  color: #effff4;
  background:
    radial-gradient(circle at 30% 18%, rgba(197, 255, 103, 0.28), transparent 32%),
    linear-gradient(135deg, var(--deep), #17473a);
  box-shadow: 0 16px 36px rgba(7, 31, 25, 0.18);
}

.icon-button.soft {
  color: var(--deep);
  background: linear-gradient(135deg, #d8ff72, #f0c38e);
}

.icon-button svg,
.nav-item svg {
  width: 18px;
  height: 18px;
}

.logout-button {
  grid-auto-flow: column;
  gap: 7px;
}

.fx-strip.tv-fx-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-card.tv-fx-card {
  min-height: 142px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.9), rgba(255, 253, 247, 0.7)),
    radial-gradient(circle at 82% 18%, rgba(197, 255, 103, 0.22), transparent 36%);
}

.tv-fx-card tv-mini-chart {
  min-height: 94px;
}

.chip {
  border-radius: 999px;
  font-weight: 900;
}

.chip.green {
  color: #093126;
  background: #bff3ce;
}

.chip.gold {
  color: #1f2611;
  background: #e7ff92;
}

.chip.blue {
  color: #122346;
  background: #d8e5ff;
}

.content-panel.overview-card {
  border: 1px solid rgba(216, 255, 114, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 14%, rgba(216, 255, 114, 0.26), transparent 24%),
    radial-gradient(circle at 12% 84%, rgba(67, 168, 111, 0.24), transparent 26%),
    linear-gradient(145deg, #08221b 0%, #123d31 58%, #071a16 100%);
  box-shadow: 0 34px 90px rgba(7, 31, 25, 0.28);
}

.content-panel.overview-card::before {
  opacity: 0.8;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px);
}

.balance-overview {
  gap: 22px;
  padding: 22px;
}

.balance-copy .hero-title,
.balance-pie-center span {
  color: rgba(239, 255, 244, 0.64);
}

.balance-copy .hero-value {
  color: #d8ff72;
  text-shadow: 0 18px 40px rgba(216, 255, 114, 0.18);
}

.overview-mini-grid div {
  border-color: rgba(239, 255, 244, 0.13);
  background: rgba(239, 255, 244, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.overview-mini-grid strong,
.balance-pie-center strong {
  color: #fffdf7;
}

.bottom-nav {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(8, 34, 27, 0.94), rgba(7, 26, 22, 0.96));
  box-shadow: 0 22px 54px rgba(7, 31, 25, 0.36);
}

.nav-item {
  border-radius: 18px;
  color: rgba(239, 255, 244, 0.58);
}

.nav-item span {
  width: 28px;
  height: 28px;
  background: rgba(239, 255, 244, 0.08);
}

.nav-item.is-active {
  color: #d8ff72;
  background: rgba(216, 255, 114, 0.08);
}

.nav-item.is-active span {
  color: var(--deep);
  background: linear-gradient(135deg, #d8ff72, #f0c38e);
  box-shadow: 0 8px 18px rgba(216, 255, 114, 0.24);
}

.calendar-item,
.list-row,
.subscription-home-card,
.crypto-token-card,
.vehicle-info-card {
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow: 0 12px 32px rgba(7, 31, 25, 0.06);
}

.calendar-date {
  border-radius: 15px;
}

.chart-wrap canvas {
  filter: drop-shadow(0 20px 28px rgba(7, 31, 25, 0.08));
}

.credit-card-tile {
  min-height: 214px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  box-shadow:
    0 24px 56px rgba(7, 31, 25, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform-style: preserve-3d;
}

.credit-card-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 90% 82%, rgba(255, 255, 255, 0.16), transparent 24%),
    repeating-linear-gradient(130deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px);
  pointer-events: none;
}

.credit-card-tile::after {
  content: "";
  position: absolute;
  top: -44%;
  right: -20%;
  width: 65%;
  height: 115%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(24deg);
  pointer-events: none;
}

.credit-card-tile > * {
  position: relative;
  z-index: 1;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.card-chip {
  position: relative;
  display: block;
  width: 38px;
  height: 28px;
  border: 1px solid rgba(28, 20, 8, 0.18);
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent 46%),
    linear-gradient(135deg, #e7c36d, #fff2b8 48%, #c8943d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.card-chip::before,
.card-chip::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 1px;
  background: rgba(28, 20, 8, 0.22);
}

.card-chip::after {
  inset: auto 8px 0;
  width: 1px;
  height: 100%;
}

.card-network-mark {
  color: rgba(255, 253, 247, 0.86);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.card-brand {
  display: inline-flex;
  width: fit-content;
  max-width: 72%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.card-name {
  margin-top: 20px;
  font-size: 1.08rem;
  font-weight: 850;
}

.card-number {
  margin: 8px 0 20px;
  color: rgba(255, 253, 247, 0.88);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.card-foot,
.card-meta-row {
  color: rgba(255, 253, 247, 0.88);
}

.card-progress {
  height: 7px;
  background: rgba(255, 255, 255, 0.18);
}

.card-progress .progress-fill {
  background: linear-gradient(90deg, #d8ff72, #45d68c);
}

.flag-badge {
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(7, 31, 25, 0.16);
}

.credit-card-tile.style-nubank {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, #6b21d8 0%, #a244ff 45%, #16112c 100%);
}

.credit-card-tile.style-mastercard {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #111827 0%, #43315f 42%, #ef8f30 100%);
}

.credit-card-tile.style-visa {
  background:
    radial-gradient(circle at 80% 18%, rgba(216, 255, 114, 0.24), transparent 24%),
    linear-gradient(135deg, #071f4d 0%, #315cc8 52%, #061a38 100%);
}

.credit-card-tile.style-wise,
.credit-card-tile.jp-card {
  background:
    radial-gradient(circle at 82% 20%, rgba(216, 255, 114, 0.28), transparent 25%),
    linear-gradient(135deg, #06241d 0%, #0f7d50 50%, #071a16 100%);
}

.credit-card-tile.br-card {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 235, 109, 0.26), transparent 25%),
    linear-gradient(135deg, #08221b 0%, #15694a 48%, #0a3155 100%);
}

@media (min-width: 760px) {
  .fx-strip.tv-fx-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fx-card.tv-fx-card {
    min-height: 196px;
  }

  .tv-fx-card tv-mini-chart {
    min-height: 148px;
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .auth-panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

  .fx-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tv-fx-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tv-fx-card {
    min-height: 218px;
  }

  .tv-fx-card tv-mini-chart {
    min-height: 172px;
  }

  .fx-status-card {
    grid-column: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .balance-overview {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.52fr);
    align-items: center;
    min-height: 300px;
    padding: 24px;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .reports-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .crypto-panel.is-compact .crypto-layout {
    grid-template-columns: minmax(250px, 0.8fr) minmax(280px, 1fr);
    align-items: center;
  }

  .crypto-panel.is-compact .crypto-value-card,
  .crypto-panel.is-compact .crypto-status {
    grid-column: 2;
  }

  .modal-backdrop {
    place-items: center;
  }

  .add-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .main-view {
    gap: 18px;
  }

  .bottom-nav {
    top: 96px;
    right: calc((100vw - min(100%, 1220px)) / 2 + 20px);
    bottom: auto;
    left: auto;
    width: 92px;
    height: auto;
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding-right: 126px;
    padding-bottom: 36px;
  }

  .toast {
    bottom: 18px;
  }
}

@media (max-width: 420px) {
  .balance-overview {
    grid-template-columns: minmax(0, 1fr) 128px;
    align-items: center;
    gap: 10px;
    min-height: 236px;
    padding: 16px;
  }

  .overview-mini-grid {
    grid-template-columns: 1fr;
  }

  .balance-copy {
    gap: 8px;
  }

  .balance-copy .hero-value {
    font-size: clamp(2.25rem, 16vw, 3.55rem);
  }

  .overview-mini-grid div {
    padding: 8px;
  }

  .balance-pie-wrap {
    min-height: 156px;
  }

  .balance-pie-wrap canvas {
    height: 156px;
  }

  .balance-pie-center {
    width: 76px;
  }

  .balance-pie-center strong {
    font-size: 1.14rem;
  }

  .subscription-home-page {
    gap: 8px;
  }

  .subscription-home-card {
    min-height: 122px;
    padding: 10px 6px;
  }

  .subscription-home-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .subscription-home-card strong {
    font-size: 0.72rem;
  }

  .three-cols,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .crypto-layout {
    grid-template-columns: 1fr;
  }

  .crypto-wallet-hero,
  .crypto-token-head,
  .crypto-token-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .crypto-wallet-kpis,
  .crypto-token-grid {
    grid-template-columns: 1fr;
  }

  .crypto-token-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .crypto-entry-grid {
    grid-template-columns: 1fr;
  }

  .crypto-entry-head,
  .crypto-entry-actions {
    align-items: flex-start;
  }

  .settings-rate-grid,
  .family-member-row {
    grid-template-columns: 1fr;
  }

  .card-carousel-stage {
    min-height: 316px;
  }

  .cards-carousel.with-actions .card-carousel-stage {
    min-height: 382px;
  }

  .cards-carousel .credit-card-tile {
    width: min(94%, 312px);
  }

  .carousel-card.is-next {
    opacity: 0.84;
    transform: translateX(-50%) translateY(48px) scale(0.93);
  }

  .carousel-card.is-prev {
    opacity: 0.58;
    transform: translateX(-50%) translateY(18px) scale(0.86);
  }

  .carousel-card.is-active {
    transform: translateX(-50%) translateY(82px) scale(1);
  }

  .wallet-total-glass {
    width: min(96%, 324px);
    min-height: 126px;
    padding: 18px 14px 16px;
  }

  .wallet-pocket.has-actions {
    min-height: 170px;
  }

  .hero-panel {
    padding: 14px;
  }

  .list-row {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .list-row.compact {
    grid-template-columns: 1fr;
  }

  .housing-card-head,
  .housing-total,
  .housing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .housing-item {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .housing-form-row {
    grid-template-columns: 1fr;
  }

  .vehicle-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .vehicle-info-card,
  .vehicle-insurance-check {
    grid-column: 1 / -1;
    width: 100%;
  }

  .row-amount {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    white-space: normal;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .calendar-item {
    grid-template-columns: 48px 1fr;
  }

  .calendar-amount {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: start;
    align-items: center;
    text-align: left;
    white-space: normal;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
