body {
  min-width: 0;
  min-height: 100vh;
  background: #fff;
  color: #211b28;
  overflow: hidden;
}

.app-shell {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.top-bar {
  position: relative;
  z-index: 10;
  height: auto;
  min-height: calc(42px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 4px 0;
}

.top-bar[hidden],
.bottom-nav[hidden] {
  display: none;
}

.brand {
  width: 34px;
  height: 34px;
}

.isotipo-window {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: visible;
}

.isotipo-window img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand .isotipo-window {
  width: 30px;
  height: 36px;
}

.brand-wordmark {
  display: none;
}

.top-bar.home-top-bar {
  height: 68px;
  min-height: 68px;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 27px;
  padding-right: 0;
}

.top-bar.home-top-bar .back-button {
  display: none;
}

/* Global appearance states: every screen must remain legible after changing
   the theme or text size from Perfil. */
:root[data-theme="dark"] .topbar-title,
:root[data-theme="dark"] .top-bar .back-button,
:root[data-theme="dark"] .profile-screen,
:root[data-theme="dark"] .profile-screen strong,
:root[data-theme="dark"] .profile-screen button,
:root[data-theme="dark"] .preference-heading h2,
:root[data-theme="dark"] .text-size-title,
:root[data-theme="dark"] .category-settings-screen .category-label,
:root[data-theme="dark"] .alert-preference-row {
  color: #f5eff8;
}

:root[data-theme="dark"] .profile-group,
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .alert-preferences-intro-screen .panel-card,
:root[data-theme="dark"] .reminder-settings-screen .panel-card,
:root[data-theme="dark"] .text-size-card,
:root[data-theme="dark"] .appearance-card {
  border-color: #3a3340;
  background: #211b28;
  color: #f5eff8;
  box-shadow: 0 3px 8px rgb(0 0 0 / 35%);
}

:root[data-theme="dark"] .profile-group-title,
:root[data-theme="dark"] .preference-heading p,
:root[data-theme="dark"] .alert-intro-note,
:root[data-theme="dark"] .alert-preference-row small,
:root[data-theme="dark"] .profile-help-button {
  color: #cfc5d5;
}

:root[data-theme="dark"] .profile-group .profile-setting,
:root[data-theme="dark"] .alert-preference-row,
:root[data-theme="dark"] .appearance-choice,
:root[data-theme="dark"] .text-size-choice {
  border-bottom-color: #3a3340 !important;
  color: #f5eff8;
}

:root[data-theme="dark"] .profile-setting .setting-value,
:root[data-theme="dark"] .alert-preference-icon,
:root[data-theme="dark"] .category-settings-screen .category-emoji {
  border-color: #624d70;
  background: #302a35;
}

:root[data-theme="dark"] .appearance-preview.light-preview,
:root[data-theme="dark"] .text-size-preview {
  border-color: #624d70;
  background: #302a35;
  color: #f5eff8;
}

:root[data-theme="dark"] .glossary-hero {
  background: #74498e;
  color: #fff;
}

:root[data-theme="dark"] .glossary-hero h1,
:root[data-theme="dark"] .glossary-hero p,
:root[data-theme="dark"] .glossary-simple-title {
  color: #fff;
}

:root[data-theme="dark"] .glossary-simple-card,
:root[data-theme="dark"] .glossary-next-button {
  border-color: #3a3340;
  background: #211b28;
  color: #f5eff8;
}

:root[data-theme="dark"] .glossary-simple-card p {
  color: #e5ddea;
}

/* Text-size preference applies to the complete application, not only its
   settings screen. */
:root[data-text-size="large"] .screen h1,
:root[data-text-size="large"] .screen h2,
:root[data-text-size="large"] .screen h3,
:root[data-text-size="large"] .screen p,
:root[data-text-size="large"] .screen button,
:root[data-text-size="large"] .screen strong,
:root[data-text-size="large"] .screen small,
:root[data-text-size="large"] .screen label {
  font-size: 1.12em;
}

:root[data-text-size="large"] .screen .greeting,
:root[data-text-size="large"] .screen .greeting-subtitle,
:root[data-text-size="large"] .screen .balance-label,
:root[data-text-size="large"] .screen .balance-amount,
:root[data-text-size="large"] .screen .balance-until,
:root[data-text-size="large"] .screen .balance-days,
:root[data-text-size="large"] .topbar-title,
:root[data-text-size="large"] .nav-item:not(.add-nav) > span:last-child {
  font-size: 1.12em !important;
}

/* Keep chart labels independent from the global text-size preference. */
:root[data-text-size="large"] .donut-percent {
  font-size: 7px !important;
}

:root[data-text-size="large"] .graph-percent {
  font-size: 14px !important;
}

/* Fixed navigation slots prevent the active font weight from moving tabs. */
.bottom-nav .nav-item {
  flex: 1 1 0;
  width: 20%;
  min-width: 0;
  box-sizing: border-box;
}

.bottom-nav .nav-item .nav-icon {
  flex: 0 0 43px;
}

.reminder-settings-screen .reminder-settings,
.reminder-settings-screen .reminder-save-button {
  margin-left: auto;
  margin-right: auto;
}

:root[data-theme="dark"] .calculator-card,
:root[data-theme="dark"] .calculator-input-card {
  border-color: #3a3340;
  background: #211b28;
  color: #f5eff8;
}

:root[data-theme="dark"] .calculator-card h2,
:root[data-theme="dark"] .calculator-card label,
:root[data-theme="dark"] .calculator-sub-label,
:root[data-theme="dark"] .calculator-mode-button {
  color: #f5eff8;
}

:root[data-theme="dark"] .calculator-input-card .form-field input,
:root[data-theme="dark"] .reminder-settings .reminder-option {
  background: #302a35;
  color: #f5eff8;
}

:root[data-theme="dark"] .calculator-mode-tabs {
  background: #302a35;
}

/* Keep chart labels independent from the global text-size preference. */
:root[data-text-size="large"] .donut-percent {
  font-size: 7px !important;
}

:root[data-text-size="large"] .graph-percent {
  font-size: 14px !important;
}

/* Fixed navigation slots prevent the active font weight from moving tabs. */
.bottom-nav .nav-item {
  flex: 1 1 0;
  width: 20%;
  min-width: 0;
  box-sizing: border-box;
}

.bottom-nav .nav-item .nav-icon {
  flex: 0 0 43px;
}

.reminder-settings-screen .reminder-settings,
.reminder-settings-screen .reminder-save-button {
  margin-left: auto;
  margin-right: auto;
}

:root[data-theme="dark"] .calculator-card,
:root[data-theme="dark"] .calculator-input-card {
  border-color: #3a3340;
  background: #211b28;
  color: #f5eff8;
}

:root[data-theme="dark"] .calculator-card h2,
:root[data-theme="dark"] .calculator-card label,
:root[data-theme="dark"] .calculator-sub-label,
:root[data-theme="dark"] .calculator-mode-button {
  color: #f5eff8;
}

:root[data-theme="dark"] .calculator-input-card .form-field input,
:root[data-theme="dark"] .reminder-settings .reminder-option {
  background: #302a35;
  color: #f5eff8;
}

:root[data-theme="dark"] .calculator-mode-tabs {
  background: #302a35;
}

:root[data-text-size="large"] .screen .greeting,
:root[data-text-size="large"] .screen .greeting-subtitle,
:root[data-text-size="large"] .screen .balance-label,
:root[data-text-size="large"] .screen .balance-amount,
:root[data-text-size="large"] .screen .balance-until,
:root[data-text-size="large"] .screen .balance-days,
:root[data-text-size="large"] .topbar-title,
:root[data-text-size="large"] .nav-item:not(.add-nav) > span:last-child {
  font-size: 1.12em !important;
}

/* Component cards opt into their own centered width after the generic card
   margin rule. */
.alert-preferences-intro-screen .alert-preference-list,
.appearance-settings-screen .appearance-card,
.appearance-settings-screen .text-size-card {
  margin-left: auto;
  margin-right: auto;
}

.nav-item.add-nav .nav-icon {
  display: grid;
  place-items: center;
}

.nav-item.add-nav .nav-icon > span {
  display: block;
  width: auto;
  height: auto;
  font-family: Arial, sans-serif;
  line-height: 1;
  transform: translateY(-1px);
}

:root[data-text-size="large"] .screen .greeting,
:root[data-text-size="large"] .screen .greeting-subtitle,
:root[data-text-size="large"] .screen .balance-label,
:root[data-text-size="large"] .screen .balance-amount,
:root[data-text-size="large"] .screen .balance-until,
:root[data-text-size="large"] .screen .balance-days,
:root[data-text-size="large"] .topbar-title,
:root[data-text-size="large"] .nav-item:not(.add-nav) > span:last-child {
  font-size: 1.12em !important;
}

:root[data-text-size="large"] .screen .greeting-wave,
:root[data-text-size="large"] .screen img,
:root[data-text-size="large"] .screen svg {
  font-size: initial;
}

.top-bar.root-tab-top-bar.home-top-bar {
  height: 68px;
  min-height: 68px;
  align-items: flex-start;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 27px;
}

.top-bar.root-tab-top-bar .back-button {
  display: none;
}

.top-bar.root-tab-top-bar {
  position: relative;
  justify-content: flex-end;
  padding-right: 27px;
  padding-left: 4px;
}

.top-bar.root-tab-top-bar:not(.home-top-bar) .brand {
  position: absolute;
  top: 32px;
  right: 27px;
}

.top-bar.home-top-bar .brand {
  position: relative;
  width: 142px;
  height: 42px;
  justify-content: flex-start;
  overflow: hidden;
  margin: 35px 0 0;
}

.top-bar.home-top-bar .isotipo-window {
  display: none;
}

.top-bar.home-top-bar .brand-wordmark {
  position: absolute;
  top: -38px;
  left: -5px;
  display: block;
  width: 155px;
  max-width: none;
  height: auto;
  z-index: 2;
}

.app-content {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  z-index: 0;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

.app-content::-webkit-scrollbar {
  display: none;
}

.screen {
  flex: 1 1 auto;
  width: min(100%, 405px);
  min-height: 100%;
  padding: 12px 30px 20px;
  margin-inline: auto;
  animation: screen-enter 180ms ease-out both;
}

.top-bar.title-screen {
  height: 52px;
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 24px;
}

.top-bar.title-screen .back-button {
  margin: 0;
  align-self: center;
}

.top-bar.title-screen .brand {
  display: none;
}

.top-bar.transaction-choice-top-bar .back-button {
  display: none;
}

.top-bar.transaction-choice-top-bar {
  position: relative;
}

.top-bar.transaction-choice-top-bar .brand {
  position: absolute;
  top: 50px;
  right: 27px;
}

.topbar-title {
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  color: var(--purple);
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .screen {
    padding-right: 20px;
    padding-left: 20px;
  }

  .top-bar.root-tab-top-bar:not(.home-top-bar) .brand {
    right: 20px;
  }

  .nav-item {
    min-width: 0;
    flex: 1 1 0;
    font-size: 9px;
  }

  .dashboard-screen .summary-grid {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 6px;
  }

  .dashboard-screen .donut-chart {
    width: 70px;
    height: 70px;
  }

  .dashboard-screen .donut-chart span {
    width: 46px;
    height: 46px;
    font-size: 7px;
  }

  .dashboard-screen .summary-row {
    gap: 3px;
    font-size: 8px;
  }

  .dashboard-screen .summary-row strong {
    font-size: 8px;
  }

  .dashboard-screen .summary-label {
    gap: 3px;
    font-size: 8px;
  }
}

@keyframes screen-enter {
  from { opacity: 0.7; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.screen h1 {
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.45px;
}

.screen h2 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.25;
}

.screen p {
  line-height: 1.45;
}

.screen-header {
  margin: 6px 0 22px;
  text-align: center;
}

.screen-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.screen-header.left {
  text-align: left;
}

.subscreen-description {
  width: min(100%, 290px);
  margin: 1px auto 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.tool-screen-mascot {
  display: grid;
  width: 116px;
  height: 102px;
  place-items: center;
  margin: 0 auto 6px;
}

.tool-screen-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 90px 10px 20px;
  text-align: center;
}

.welcome-logo {
  margin-top: 0;
  width: 100%;
  height: 145px;
  flex: 0 0 145px;
  overflow: hidden;
  margin-inline: auto;
}

.welcome-logo img {
  position: relative;
  display: block;
  width: min(100%, 300px);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  transform: translateY(34px);
}

.mango-art {
  position: relative;
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  margin: 10px auto 14px;
}

.mascot-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mascot-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.welcome-screen .mango-art {
  height: 220px;
  flex: 0 0 220px;
  margin-top: -40px;
  margin-bottom: 47px;
  transform: translateX(-7px);
}

.welcome-copy {
  max-width: 340px;
  margin-bottom: 60px;
}

.welcome-copy h1 {
  margin-bottom: 4px;
  font-size: 24px;
}

.welcome-copy p {
  max-width: 345px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 28px;
  background: var(--purple);
  box-shadow: 0 4px 12px rgb(48 16 70 / 18%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}

.primary-button {
  width: min(100%, 236px);
}

.primary-button:hover,
.secondary-button:hover {
  background: var(--purple-dark);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.text-button {
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.panel-card .setting-button {
  border-bottom: 1px solid #eee;
}

.panel-card .setting-button:last-child {
  border-bottom: 0;
}

.welcome-screen .login-prompt {
  margin: 39px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
  line-height: 1.4;
}

.welcome-copy h1 {
  color: var(--purple);
}

.welcome-copy h1 span {
  color: inherit;
}

.welcome-screen > .primary-button {
  width: min(100%, 270px);
  min-height: 66px;
  font-size: 18px;
}

.login-prompt button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label,
.field-label {
  font-size: 13px;
  font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea,
.soft-input {
  width: 100%;
  min-height: 45px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  outline: 0;
  background: #f2f2f2;
  color: #29242e;
  font-size: 13px;
}

.form-field textarea {
  min-height: 76px;
  padding-top: 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.soft-input:focus {
  border-color: rgb(70 18 115 / 45%);
  box-shadow: 0 0 0 3px rgb(70 18 115 / 9%);
}

.helper-text,
.legal-copy {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.form-error,
.form-success {
  min-height: 17px;
  margin: 0;
  color: #a32222;
  font-size: 12px;
}

.form-success {
  color: #368534;
}

.form-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.form-actions .primary-button,
.wide-button {
  width: 100%;
}

.onboarding-screen .form-actions .primary-button {
  width: min(78%, 250px);
}

.onboarding-screen {
  display: flex;
  flex-direction: column;
  padding-top: max(56px, env(safe-area-inset-top));
}

.onboarding-logo {
  display: flex;
  justify-content: flex-end;
  margin: 7px 3px 26px;
}

.onboarding-screen .screen-header {
  width: min(100%, 350px);
  margin: 0 auto 18px;
}

.onboarding-screen .screen-header h1 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.08;
}

.onboarding-screen .screen-header p {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.onboarding-screen .form-stack {
  display: flex;
  width: min(100%, 350px);
  flex: 1;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
}

.onboarding-screen .form-field {
  gap: 8px;
}

.onboarding-screen .form-field label,
.onboarding-screen .field-label {
  font-size: 17px;
}

.onboarding-screen .form-field input,
.onboarding-screen .form-field select,
.onboarding-screen .form-field textarea {
  min-height: 62px;
  padding-inline: 18px;
  border-radius: 10px;
  font-size: 16px;
}

.onboarding-screen .helper-text {
  margin-top: -4px;
  font-size: 14px;
}

.onboarding-screen .legal-copy {
  font-size: 14px;
}

.onboarding-screen .form-actions .primary-button {
  width: min(100%, 275px);
  min-height: 66px;
  font-size: 17px;
}

.income-setup-screen .onboarding-logo {
  transform: none;
}

.income-setup-screen .onboarding-logo .isotipo-window {
  transform: none;
  transform-origin: top right;
}

.income-setup-screen .screen-header {
  margin: 133px 0 43px;
}

.income-setup-screen .screen-header h1 {
  font-size: 30px;
  line-height: 1.08;
}

.income-setup-screen .screen-header p {
  max-width: 250px;
  margin-inline: auto;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.3;
}

.income-setup-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.currency-entry {
  width: min(100%, 320px);
  min-height: 62px;
  margin: 0 auto;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  background: #f2f2f2;
  color: #88838b;
  font-size: 28px;
  font-weight: 650;
  text-align: center;
}

.income-setup-form .form-actions {
  width: 100%;
  padding-top: 25px;
}

.income-setup-form .primary-button {
  width: min(100%, 275px);
  min-height: 66px;
  font-size: 17px;
}

.onboarding-screen .setup-category-grid {
  width: min(100%, 302px);
  gap: 29px 16px;
  margin: 22px auto 8px;
}

.onboarding-screen.setup-categories-screen {
  padding-bottom: 40px;
}

.setup-categories-screen .screen-header {
  margin-top: 8px;
}

.setup-category-grid .category-option {
  display: flex;
  min-height: 95px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.setup-category-grid .category-option.selected {
  border: 0;
  background: transparent;
}

.setup-category-grid .category-option[aria-pressed="false"] {
  opacity: 0.55;
}

.setup-category-grid .category-emoji {
  width: 76px;
  height: 75px;
  flex: 0 0 75px;
  font-size: 36px;
  box-shadow: 0 2px 4px rgb(26 19 32 / 18%);
}

.pattern-screen {
  background-color: #fff;
  background-image: url("manguito elementos/fondollamativo.svg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.category-emoji:has(.category-asset) {
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
}

.category-asset {
  display: block;
  width: 76px;
  height: 75px;
  object-fit: contain;
}

.category-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.setup-category-grid .category-name {
  font-size: 15px;
  font-weight: 600;
}

.category-chevron {
  color: #3b333e;
  font-size: 21px;
  line-height: 1;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 12px auto 24px;
}

.category-option {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid #ece8ef;
  border-radius: 13px;
  background: #fff;
  color: #2a2430;
  text-align: left;
  cursor: pointer;
}

.category-option.selected {
  border-color: var(--purple);
  background: #faf6ff;
}

.choice-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding-bottom: 28px;
}

.choice-art {
  width: 100%;
  margin-bottom: 3px;
  opacity: .95;
}

.choice-art .mango-art {
  width: 184px;
  height: 190px;
  margin: 0 auto;
}

.choice-screen .screen-header {
  margin: 4px 0 13px;
}

.choice-screen .screen-header h1 {
  margin: 0;
}

.choice-button {
  position: relative;
  display: flex;
  width: min(calc(100% - 28px), 298px);
  min-height: 55px;
  align-items: center;
  justify-content: center;
  margin: 5px 0;
  border: 0;
  border-radius: 30px;
  background: #f5f5f5;
  box-shadow: 0 2px 4px rgb(0 0 0 / 25%);
  font-size: 13px;
  cursor: pointer;
}

.choice-button strong {
  color: var(--purple);
}

.choice-button.income-choice strong {
  color: #32a91f;
}

.choice-arrow {
  position: absolute;
  left: 0;
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
}

.expense-choice .choice-arrow {
  background: var(--purple);
}

.income-choice .choice-arrow {
  background: #32a91f;
}

.choice-screen > .text-button {
  margin-top: 16px;
  color: #242027;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0 15px;
  border-bottom: 1px solid #eee;
}

.profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #f1e8f8;
  font-size: 24px;
}

.profile-heading div {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.profile-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.profile-heading small {
  color: var(--muted);
  font-size: 11px;
}

.category-emoji {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #f2eafa;
  font-size: 22px;
}

.category-grid:not(.setup-category-grid) .category-emoji:has(.category-asset) {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
}

.category-grid:not(.setup-category-grid) .category-emoji .category-asset {
  width: 62px;
  height: 61px;
}

.category-vector {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--purple);
}

.screen-header h1 .category-vector {
  display: inline-block;
  width: 25px;
  height: 25px;
  vertical-align: -5px;
}

.setup-category-grid .category-vector {
  width: 35px;
  height: 35px;
}

.setup-category-grid .category-option.selected .category-emoji {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.category-form-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
}

.category-form-icon .category-vector {
  width: 23px;
  height: 23px;
}

.category-form-icon .category-asset,
.transaction-row .row-emoji .category-asset,
.screen-header h1 .category-asset {
  width: 28px;
  height: 28px;
}

.transaction-row .row-emoji .category-asset {
  width: 32px;
  height: 32px;
}

.summary-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.summary-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}

.summary-label .category-vector {
  width: 17px;
  height: 17px;
}

.transaction-row .row-emoji {
  color: var(--purple);
}

.transaction-row .category-vector {
  width: 22px;
  height: 22px;
}

.tool-list,
.promotion-list {
  display: grid;
  gap: 13px;
}

.tools-screen {
  padding-top: 24px;
}

.tools-screen .screen-header {
  margin-bottom: 54px;
}

.tools-screen .screen-header h1 {
  font-size: 18px;
}

.tools-screen .tool-list {
  gap: 24px;
}

.tool-card {
  display: grid;
  width: 100%;
  min-height: 88px;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 4px rgb(26 19 32 / 20%);
  color: #3c0d5b;
  text-align: left;
  cursor: pointer;
}

.tool-card:active {
  transform: translateY(1px);
}

.tool-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
}

.tool-card-image {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  transform: none;
  transform-origin: center;
  pointer-events: none;
}

.tool-promotions-image {
  transform: scale(1);
}

.tool-calculators-image {
  transform: scale(3) translateX(4px);
}

.tool-graphs-image {
  transform: none;
}

.tool-currency-image {
  width: 165px;
  height: 165px;
  position: relative;
  left: -79px;
  top: -72px;
  transform: none;
}

.tool-glossary-image {
  transform: scale(2) translateX(-3px);
}

.tool-card-icon .promotion-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.tool-card-copy {
  display: grid;
  gap: 4px;
}

.tool-card-copy strong {
  font-size: 14px;
}

.tool-card-copy small {
  color: #4b4650;
  font-size: 11px;
  line-height: 1.3;
}

@media (max-height: 680px) {
  .tools-screen .screen-header {
    margin-bottom: 32px;
  }

  .tools-screen .screen-header h1 {
    margin-bottom: 6px;
  }

  .tools-screen .screen-header p {
    margin-top: 4px;
  }

  .tools-screen {
    padding-top: 28px;
  }

  .tools-screen .tool-list {
    gap: 16px;
  }

  .tools-screen .tool-card {
    min-height: 58px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
  }

  .tools-screen .tool-card-icon,
  .tools-screen .tool-card-image {
    width: 44px;
    height: 44px;
  }

  .tools-screen .tool-card-copy strong {
    font-size: 12px;
  }

  .tools-screen .tool-card-copy small {
    font-size: 10px;
    line-height: 1.15;
  }
}

.calculator-card {
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 16px;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 15px;
}

.calculator-card h2 {
  margin: 0;
  color: #302638;
  font-size: 13px;
  font-weight: 700;
}

.calculator-input-card {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(26 19 32 / 18%);
}

.calculator-input-card .form-field {
  gap: 5px;
}

.calculator-input-card .form-field input {
  min-height: 35px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: #f3f3f3;
  font-size: 10px;
}

.calculator-sub-label {
  margin-top: -2px;
  color: #302638;
  font-size: 10px;
}

.savings-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.savings-month-button {
  min-height: 30px;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: #f1f1f1;
  color: #443b4b;
  font-size: 9px;
}

.savings-month-button.active {
  background: var(--purple);
  color: #fff;
}

.calculator-card .primary-button {
  min-height: 44px;
  margin-top: 2px;
}

.calculator-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 4px;
  border-radius: 18px;
  background: #eee5f3;
}

.calculator-mode-button {
  min-height: 34px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #5c5362;
  font-size: 10px;
  font-weight: 700;
}

.calculator-mode-button.active {
  background: var(--purple);
  color: #fff;
}

.calculator-result-card {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #d8ffba;
  color: #241d29;
}

.installment-result-card {
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  min-height: 78px;
  padding-right: 7px;
}

.installment-result-card > div {
  display: grid;
  gap: 3px;
}

.installment-result-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.calculator-result-card strong {
  color: #34203e;
  font-size: 18px;
}

.savings-result-card,
.installment-result-card {
  grid-template-columns: minmax(0, 1fr) 68px;
  min-height: 65px;
  padding-right: 5px;
  font-size: 10px;
}

.savings-result-card > div,
.installment-result-card > div {
  display: grid;
  gap: 2px;
}

.savings-result-card strong,
.installment-result-card strong {
  font-size: 12px;
}

.savings-result-card img,
.installment-result-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.calculator-submit {
  min-height: 38px !important;
  margin-top: 0 !important;
  font-size: 11px;
  justify-self: center;
}

.calculator-result-card small {
  font-size: 10px;
}

.calculator-card h2 {
  margin: 0;
}

.calculator-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calculator-results {
  display: grid;
  gap: 11px;
  padding-top: 12px;
  border-top: 1px solid #ece8ef;
}

.calculator-results > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.calculator-results .calculator-total {
  padding-top: 10px;
  border-top: 1px solid #ece8ef;
  color: var(--purple);
  font-weight: 700;
}

.currency-form .form-actions {
  margin-top: 0;
}

.currency-form {
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(26 19 32 / 12%);
}

.currency-screen {
  padding-top: 22px;
}

.currency-heading {
  margin: 0 auto 10px;
  text-align: left;
}

.currency-heading h2 {
  margin: 0;
  color: var(--purple);
  font-size: 14px;
}

.currency-heading p {
  margin: 4px 0 0;
  color: #4e4852;
  font-size: 10px;
}

.currency-form {
  display: grid;
  gap: 12px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.currency-direction-toggle {
  display: grid;
  width: min(100%, 224px);
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 auto 2px;
  padding: 3px;
  border-radius: 18px;
  background: #f1f1f1;
}

.currency-direction-button {
  min-height: 28px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #5b5361;
  font-size: 11px;
}

.currency-direction-button.active {
  background: var(--purple);
  color: #fff;
}

.currency-converter-box {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #ded4e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 3px rgb(26 19 32 / 22%);
}

.currency-converter-box > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.currency-name strong {
  color: #302638;
  font-size: 12px;
}

.currency-name span:last-child {
  color: #4d4553;
  font-size: 15px;
}

.currency-flag {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.currency-converter-box label {
  color: #34253c;
  font-size: 12px;
  font-weight: 700;
}

.currency-converter-box small {
  color: var(--muted);
  font-size: 10px;
}

.currency-converter-box input {
  width: 100%;
  min-height: 35px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #211b28;
  text-align: left;
  font-size: 13px;
}

.currency-converter-box.active {
  border-color: #ded4e5;
  box-shadow: 0 2px 3px rgb(26 19 32 / 22%);
}

.currency-swap-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin: -1px auto;
  border: 1px solid #a8e4f7;
  border-radius: 50%;
  background: #dff6ff;
  color: var(--purple);
  font-size: 18px;
  font-weight: 700;
}

.daily-rate-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  width: min(100%, 250px);
  min-height: 58px;
  margin: 4px auto 0;
  padding: 7px 10px 7px 2px;
  border-radius: 12px;
  background: #d8ffba;
  color: #211b28;
}

.daily-rate-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  transform: translateX(-7px);
}

.daily-rate-card div {
  display: grid;
  gap: 2px;
}

.daily-rate-card small,
.daily-rate-card span {
  font-size: 8px;
}

.daily-rate-card strong {
  font-size: 16px;
}

.exchange-source {
  display: block;
  width: min(100%, 250px);
  margin: -6px auto 0;
  color: #34253c;
  font-size: 8px;
  text-align: right;
}

.currency-rate-field {
  margin-top: 14px;
  gap: 4px;
}

.currency-form .form-field input,
.currency-form .form-field select {
  min-height: 40px;
}

.currency-form .primary-button {
  min-height: 44px;
}

.conversion-result {
  display: grid;
  gap: 6px;
  margin: 18px 3px;
  padding: 18px;
  border-radius: 14px;
  background: #f4edf8;
  text-align: center;
}

.conversion-result span,
.conversion-result small {
  color: var(--muted);
  font-size: 12px;
}

.conversion-result strong {
  color: var(--purple);
  font-size: 25px;
}

.glossary-search {
  margin-bottom: 17px;
}

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

.glossary-term {
  padding: 14px;
  border: 1px solid #efedf0;
  border-radius: 12px;
  background: #fff;
}

.glossary-term summary {
  color: var(--purple);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.glossary-term p {
  margin: 10px 0 0;
  color: #514b56;
  font-size: 13px;
}

.promo-disclaimer {
  margin: -6px 3px 15px;
  padding: 12px;
  border-radius: 10px;
  background: #f4edf8;
  color: #51445b;
  font-size: 12px;
  line-height: 1.45;
}

.promo-add-button {
  margin-bottom: 18px;
}

.promotion-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #efedf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(26 19 32 / 10%);
}

.promotion-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.promotion-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.promotion-copy strong {
  color: var(--purple);
  font-size: 14px;
}

.promotion-copy span,
.promotion-copy small {
  color: var(--muted);
  font-size: 11px;
}

.promotion-copy code {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f3eef7;
  color: var(--purple);
  font-size: 11px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f7f3f9;
  color: var(--purple);
  font-size: 20px;
  cursor: pointer;
}

.calendar-card {
  margin: 0 3px 20px;
  padding: 12px 22px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(26 19 32 / 18%);
}

.calendar-card .month-switcher {
  margin: 0 0 11px;
}

.calendar-card .month-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.calendar-card .month-switcher strong {
  text-transform: capitalize;
}

.calendar-card .month-switcher button {
  width: 22px;
  height: 26px;
  border-radius: 0;
  background: transparent;
  color: #343039;
  font-size: 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-items: center;
  gap: 10px 2px;
}

.calendar-weekdays {
  margin-bottom: 5px;
  color: #8b858e;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day,
.calendar-empty {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.calendar-day {
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #211b28;
  font-size: 13px;
  cursor: pointer;
}

.calendar-day.today {
  outline: 1px solid #c7b1d4;
}

.calendar-day.selected:not(.has-alert) {
  background: #eee6f4;
  color: var(--purple);
}

.calendar-day.has-alert {
  background: var(--purple);
  color: #fff;
  font-weight: 750;
}

.calendar-day.selected.has-alert {
  outline: 2px solid #d7c2e5;
  outline-offset: 2px;
}

.alerts-screen {
  padding-top: 82px;
}

.alerts-screen .calendar-card {
  margin: 0 0 37px;
}

.alerts-screen .section-title-row {
  margin-inline: 0;
}

.alert-more-link {
  display: block;
  margin: 7px 0 0 auto;
}

.alert-row {
  width: 100%;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.due-row-main {
  display: grid;
  gap: 3px;
  text-align: left;
}

.alert-row:hover .due-row-main strong {
  color: var(--purple);
}

.alert-detail-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 6px 3px 20px;
  padding: 25px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(26 19 32 / 12%);
  text-align: center;
}

.alert-detail-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #f2eafa;
  color: var(--purple);
}

.alert-detail-icon svg {
  width: 31px;
  height: 31px;
}

.alert-detail-status {
  color: #368534;
  font-size: 12px;
  font-weight: 700;
}

.alert-detail-card h2 {
  margin: 0;
}

.alert-detail-amount {
  color: var(--purple);
  font-size: 30px;
}

.alert-detail-card dl {
  display: grid;
  width: 100%;
  gap: 12px;
  margin: 10px 0 0;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.alert-detail-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.alert-detail-card dt {
  color: var(--muted);
}

.alert-detail-card dd {
  margin: 0;
  font-weight: 650;
}

.alert-reminder-note {
  margin: 0 8px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.danger-button {
  display: block;
  margin: 12px auto;
  color: #a32222;
}

.setting-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple);
  text-align: left;
  cursor: pointer;
}

.setting-button > span:first-child {
  display: grid;
  gap: 4px;
}

.setting-button small {
  color: var(--muted);
  font-size: 10px;
}

.setting-value {
  white-space: nowrap;
}

.category-summary-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 3px 16px;
  padding: 13px;
  border: 1px solid #efedf0;
  border-radius: 14px;
  background: #fff;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 5px;
  border-radius: 20px;
  background: #faf8fb;
  font-size: 11px;
}

.promotions-screen {
  padding-top: 8px;
  padding-right: 50px;
  padding-left: 50px;
}

.featured-promotions {
  display: grid;
  gap: 13px;
}

.featured-promotion-card {
  display: grid;
  min-height: 155px;
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 6px 9px;
  padding: 12px 14px;
  border: 1px solid #efedf0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(26 19 32 / 16%);
}

.featured-promotion-brand {
  grid-column: 1 / -1;
  color: #38333c;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
}

.featured-promotion-card .featured-promotion-brand {
  width: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0;
}

.featured-promotion-brand img {
  display: block;
  width: auto;
  max-width: 145px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.mercado-pago .featured-promotion-brand {
  color: #0878c8;
}

.mercado-pago .featured-promotion-brand img {
  height: 60px;
}

.dia .featured-promotion-brand {
  width: max-content;
  padding: 3px 8px;
  border-radius: 5px;
  background: #ed1728;
  color: #fff;
  font-size: 22px;
}

.dia .featured-promotion-brand img {
  height: 48px;
}

.cuenta-dni .featured-promotion-brand {
  color: #258a43;
}

.cuenta-dni .featured-promotion-brand img {
  height: 52px;
}

.dia .featured-promotion-brand {
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.featured-promotion-offer {
  display: contents;
}

.featured-promotion-offer > span:first-child {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  align-content: center;
  gap: 2px;
}

.featured-promotion-offer strong {
  color: #12a5d6;
  font-size: 21px;
  line-height: 1.05;
}

.dia .featured-promotion-offer strong {
  color: #ed1728;
}

.cuenta-dni .featured-promotion-offer strong {
  color: #258a43;
  font-size: 17px;
}

.featured-promotion-offer small {
  color: #3c3740;
  font-size: 10px;
  font-weight: 650;
}

.promo-validity {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  padding: 6px 8px;
  border-radius: 12px;
  background: #d7f9bd;
  color: #2d8b1b;
  font-size: 8px;
  white-space: nowrap;
}

.promo-conditions-button {
  min-width: 118px;
  min-height: 30px;
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  padding: 0 12px;
  border: 0;
  border-radius: 18px;
  background: var(--purple-dark);
  color: #fff;
  font-size: 9px;
  font-weight: 650;
}

.promo-conditions-copy {
  grid-column: 1 / -1;
  margin: 4px 0 2px;
  color: #514b56;
  font-size: 11px;
  line-height: 1.4;
}

.promo-mascot-note {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
  padding: 5px 12px 5px 4px;
  border-radius: 18px;
  background: #dcffb9;
  color: #4a4a43;
}

.promo-mascot-note img {
  display: block;
  width: 105px;
  height: 76px;
  flex: 0 0 105px;
  object-fit: contain;
  pointer-events: none;
}

.promo-mascot-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.category-chip-button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.category-chip-button > span:last-child {
  color: var(--muted);
  font-size: 16px;
}

.category-management-list {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.category-management-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #efedf0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(37 20 49 / 7%);
}

.category-management-open {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.category-management-open .category-emoji {
  flex: 0 0 42px;
}

.category-management-open .category-label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.category-management-open .category-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-management-open small {
  color: var(--muted);
  font-size: 10px;
}

.category-management-toggle {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  cursor: pointer;
}

.category-management-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.category-management-toggle span {
  position: relative;
  width: 35px;
  height: 20px;
  border-radius: 12px;
  background: #d8d2dd;
  transition: background-color 140ms ease;
}

.category-management-toggle span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
  content: "";
  transition: transform 140ms ease;
}

.category-management-toggle input:checked + span {
  background: var(--purple);
}

.category-management-toggle input:checked + span::after {
  transform: translateX(15px);
}

.category-management-toggle input:focus-visible + span {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.category-detail-list {
  padding-inline: 14px;
}

.reminder-settings {
  display: grid;
  gap: 18px;
  width: min(100%, 345px);
  margin: 38px auto 0;
  padding: 16px 14px;
  border-radius: 18px;
}

.reminder-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.reminder-toggle-row > span {
  display: grid;
  gap: 4px;
}

.reminder-toggle-row small {
  color: var(--muted);
  font-size: 11px;
}

.reminder-toggle-row input {
  appearance: none;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 1px 10px 0 0;
  border: 2px solid var(--purple);
  border-radius: 0;
  background: #fff;
  position: relative;
}

.reminder-toggle-row input:checked {
  background: var(--purple);
}

.reminder-toggle-row input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.reminder-settings .form-field {
  margin: 0;
}

.reminder-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  color: #302638;
  font-size: 14px;
  font-weight: 600;
}

.reminder-email-row input {
  appearance: none;
  position: relative;
  width: 44px;
  height: 28px;
  flex: 0 0 44px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #eeeef0;
  cursor: pointer;
  transition: background 160ms ease;
}

.reminder-email-row input::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
  transition: transform 160ms ease;
}

.reminder-email-row input:checked {
  background: var(--purple-dark);
}

.reminder-email-row input:checked::after {
  transform: translateX(16px);
}

:root[data-theme="dark"] .category-management-row {
  border-color: #3a3340;
  background: #211b28;
}

.category-chip-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
}

.category-chip-icon .category-vector {
  width: 16px;
  height: 16px;
}

.logout-button {
  display: block;
  margin: 8px auto;
}

.appearance-card {
  display: grid;
  width: min(100%, 345px);
  height: auto;
  margin: 28px auto 0;
  gap: 0;
  padding: 12px 16px;
  border-radius: 18px;
}

.appearance-choice {
  display: grid;
  width: 100%;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 0;
  border: 0;
  border-bottom: 1px solid #efedf0;
  background: transparent;
  color: #302638;
  text-align: left;
  cursor: pointer;
}

.appearance-choice:last-child {
  border-bottom: 0;
}

.appearance-choice > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.appearance-choice small {
  color: var(--muted);
  font-size: 11px;
}

.appearance-preview {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  border: 1px solid #ded8e2;
  border-radius: 8px;
  font-weight: 750;
}

.light-preview {
  background: #fff;
  color: #3e0f5d;
}

.dark-preview {
  background: #211b28;
  color: #fff;
}

.appearance-radio {
  width: 18px;
  height: 18px;
  border: 1px solid #a49aa9;
  border-radius: 50%;
}

.appearance-choice.active .appearance-radio {
  border: 5px solid var(--purple);
}

.preference-heading {
  width: min(100%, 300px);
  margin: 14px auto 12px;
  text-align: left;
}

.preference-heading h2 {
  margin: 0;
  color: #302638;
  font-size: 14px;
  font-weight: 750;
}

.preference-heading p {
  margin: 4px 0 0;
  color: #625c66;
  font-size: 10px;
  line-height: 1.25;
}

.appearance-settings-screen .appearance-card {
  gap: 0;
  margin-top: 0;
  padding: 8px 12px;
}

.appearance-settings-screen .appearance-choice {
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  min-height: 57px;
  gap: 9px;
  padding: 5px 0;
}

.appearance-settings-screen .appearance-preview {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 18px;
}

.appearance-settings-screen .appearance-choice strong,
.text-size-choice strong {
  font-size: 10px;
}

.appearance-settings-screen .appearance-choice small,
.text-size-choice small {
  display: block;
  margin-top: 2px;
  color: #756d7b;
  font-size: 8px;
}

.text-size-title {
  width: min(100%, 300px);
  margin: 19px auto 8px;
  color: #302638;
  font-size: 13px;
}

.text-size-card {
  width: min(100%, 345px);
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 14px;
}

.text-size-choice,
.reminder-option {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  color: #302638;
  text-align: left;
}

.text-size-choice:last-child,
.reminder-option:last-child {
  border-bottom: 0;
}

.text-size-preview {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--purple);
  color: #fff;
  font-size: 17px;
}

.text-size-preview.large {
  font-size: 13px;
}

.text-size-choice.active .appearance-radio {
  border: 5px solid var(--purple);
}

.reminder-settings-screen .preference-heading,
.category-heading {
  margin-top: 17px;
}

.reminder-settings-screen .reminder-settings {
  display: grid;
  gap: 0;
  width: min(100%, 300px);
  margin-top: 0;
  padding: 7px 12px;
}

.reminder-option {
  grid-template-columns: minmax(0, 1fr) 18px;
  min-height: 43px;
  font-size: 10px;
}

.reminder-option .appearance-radio {
  justify-self: end;
}

.reminder-option.active .appearance-radio {
  border: 5px solid var(--purple);
}

.reminder-save-button {
  width: min(100%, 220px);
  min-height: 38px;
  display: block;
  margin: 17px auto 0 !important;
  font-size: 10px;
}

.preference-mascot {
  display: grid;
  place-items: center;
  margin-top: 18px;
}

.preference-mascot img {
  width: 104px;
  height: 118px;
  object-fit: contain;
}

.category-settings-screen .category-heading {
  text-align: center;
}

.category-settings-screen .category-heading h2 {
  color: var(--purple);
  font-size: 16px;
}

.category-settings-screen .category-heading p {
  font-size: 9px;
}

.category-settings-screen .setup-category-grid {
  margin-top: 5px;
}

.category-settings-screen .form-actions .primary-button {
  min-height: 38px;
  font-size: 10px;
}

.category-form-screen .preference-heading {
  margin-top: 18px;
}

.category-form {
  width: min(100%, 300px);
  margin: 22px auto 0;
}

.category-form .form-field {
  gap: 6px;
}

.category-form .form-field input {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f3f3f3;
}

.category-icon-picker {
  display: flex;
  gap: 10px;
}

.category-icon-choice {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #e8e3eb;
  border-radius: 50%;
  background: #fff;
  font-size: 17px;
}

.category-icon-choice.active {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px #eadcf4;
}

.category-settings-screen {
  padding-top: 8px;
}

.category-settings-screen .setup-category-grid {
  width: min(100%, 300px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  justify-content: space-between;
  gap: 20px 0;
  margin: 12px auto 24px;
  padding: 12px 0 18px;
}

.category-settings-screen .category-option {
  display: grid;
  width: 130px;
  min-height: 95px;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.category-settings-screen .category-option .category-emoji {
  width: 72px;
  height: 72px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgb(33 27 40 / 18%);
}

.category-settings-screen .category-asset {
  width: 76px;
  height: 75px;
}

.category-settings-screen .category-emoji {
  position: relative;
  overflow: hidden;
}

.category-settings-screen .category-emoji:has(.category-asset) {
  width: 76px;
  height: 75px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.category-settings-screen .category-asset-servicios {
  position: absolute;
  top: 0;
  left: -88px;
  width: 281px;
  height: 97px;
  max-width: none;
  object-fit: fill;
}

.screen-header h1 .category-asset {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.alert-preferences-intro-screen {
  padding-top: 12px;
  text-align: center;
}

.alert-intro-mascot img {
  width: 150px;
  height: 180px;
  object-fit: contain;
}

.alert-preferences-intro-screen .preference-heading {
  margin-top: 4px;
  text-align: center;
}

.alert-preferences-intro-screen .preference-heading h2 {
  color: var(--purple);
  font-size: 18px;
}

.alert-preferences-intro-screen .preference-heading p {
  font-size: 12px;
  line-height: 1.35;
}

.alert-preference-list {
  width: min(100%, 300px);
  margin: 16px auto 0;
  padding: 0 12px;
}

.alert-preference-row {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  border-bottom: 1px solid #eee;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.alert-preference-row:last-child {
  border-bottom: 0;
}

.alert-preference-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.alert-preference-row strong {
  font-size: 11px;
}

.alert-preference-row small {
  color: var(--muted);
  font-size: 9px;
}

.alert-preference-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #eadcf4;
  color: var(--purple);
  font-weight: 700;
}

.alert-preference-row .appearance-radio {
  justify-self: end;
}

.alert-preference-row.active .appearance-radio {
  border: 5px solid var(--purple);
}

:root[data-text-size="large"] .appearance-settings-screen .preference-heading h2 {
  font-size: 19px;
}

:root[data-text-size="large"] .appearance-settings-screen .preference-heading p {
  font-size: 12px;
}

:root[data-text-size="large"] .appearance-settings-screen .appearance-choice strong,
:root[data-text-size="large"] .appearance-settings-screen .text-size-choice strong {
  font-size: 13px;
}

:root[data-text-size="large"] .appearance-settings-screen .appearance-choice small,
:root[data-text-size="large"] .appearance-settings-screen .text-size-choice small {
  font-size: 10px;
}

.alert-intro-continue {
  width: min(100%, 220px);
  min-height: 42px;
  margin: 18px auto 0;
}

.alert-preferences-intro-screen .alert-intro-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.category-settings-screen .category-option .category-label {
  width: 100%;
  justify-content: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
}

.category-settings-screen .category-option .category-chevron {
  font-size: 18px;
  line-height: 1;
}

.category-settings-screen .form-actions {
  width: min(100%, 345px);
  margin-inline: auto;
  padding: 0;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --purple: #c8a6df;
  --purple-dark: #320b4c;
  --field: #302a35;
  --muted: #b8b0bf;
  background: #000;
  color: #f5eff8;
}

:root[data-theme="dark"] .app-content input,
:root[data-theme="dark"] .app-content select,
:root[data-theme="dark"] .app-content textarea {
  color-scheme: dark;
}

:root[data-theme="dark"] .primary-button {
  background: #6b3787;
  color: #fff;
}

:root[data-theme="dark"] .panel-card .setting-button {
  border-bottom-color: #3a3340;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .app-shell,
:root[data-theme="dark"] .app-content {
  background: #000;
  color: #f5eff8;
}

:root[data-theme="dark"] .top-bar,
:root[data-theme="dark"] .bottom-nav {
  background: #000;
  border-color: #3a3340;
}

:root[data-theme="dark"] .screen h1,
:root[data-theme="dark"] .screen h2,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .setting-row button,
:root[data-theme="dark"] .summary-row,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .appearance-choice,
:root[data-theme="dark"] .category-vector {
  color: #d7b7ed;
}

:root[data-theme="dark"] .panel-card,
:root[data-theme="dark"] .summary-card,
:root[data-theme="dark"] .list-card,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .alert-detail-card,
:root[data-theme="dark"] .category-summary-card,
:root[data-theme="dark"] .appearance-card,
:root[data-theme="dark"] .glossary-term,
:root[data-theme="dark"] .promotion-card,
:root[data-theme="dark"] .category-option,
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .currency-entry,
:root[data-theme="dark"] .form-row-button {
  border-color: #3a3340;
  background-color: #211b28;
  color: #f5eff8;
}

:root[data-theme="dark"] .graphs-breakdown,
:root[data-theme="dark"] .currency-converter-box,
:root[data-theme="dark"] .daily-rate-card,
:root[data-theme="dark"] .alert-list-card,
:root[data-theme="dark"] .alert-history-card,
:root[data-theme="dark"] .reminder-settings,
:root[data-theme="dark"] .promotion-card,
:root[data-theme="dark"] .featured-promotion-card {
  border-color: #303030;
  background: #000;
  color: #f5eff8;
}

:root[data-theme="dark"] .graphs-donut::before {
  background: #000;
}

/* Absolute last overrides for the dark presentation. */
:root[data-theme="dark"] {
  --purple: #3c0d5b;
  --purple-dark: #3c0d5b;
}
:root[data-theme="dark"] .mango-art img,
:root[data-theme="dark"] .mascot-image,
:root[data-theme="dark"] .mascot-backdrop,
:root[data-theme="dark"] .glossary-hero-mascot,
:root[data-theme="dark"] .preference-mascot img,
:root[data-theme="dark"] .alert-intro-mascot img { filter: none !important; }
:root[data-theme="dark"] .pattern-screen {
  background-color: #211b28 !important;
  background-image: url("manguito elementos/fondollamativo.svg") !important;
  background-blend-mode: screen;
}
:root[data-theme="dark"] .choice-button,
:root[data-theme="dark"] .form-row-button,
:root[data-theme="dark"] .fixed-choice,
:root[data-theme="dark"] .category-icon-choice {
  border-color: #4a3b50 !important;
  background: #302a35 !important;
  color: #f5eff8 !important;
}
:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .glossary-next-button { background: #3c0d5b !important; color: #fff !important; }
.setup-category-grid .category-option.selected .category-emoji,
.setup-category-grid .category-option:focus .category-emoji,
.setup-category-grid .category-option:focus-visible .category-emoji,
.category-settings-screen .category-option .category-emoji {
  outline: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:root[data-theme="dark"] .currency-swap-button,
html:root[data-theme="light"] .currency-swap-button {
  border-color: #3c0d5b !important;
  background: #3c0d5b !important;
  color: #fff !important;
}
:root[data-theme="dark"] .category-settings-screen .category-option,
:root[data-theme="dark"] .setup-category-grid .category-option {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .category-grid .category-option {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .glossary-lesson-screen { background: #000 !important; }
:root[data-theme="dark"] .top-bar.glossary-top-bar,
:root[data-theme="dark"] .glossary-hero { background: #3c0d5b !important; }
:root[data-theme="dark"] .glossary-wave path { fill: #000 !important; }
:root[data-theme="dark"] .glossary-simple-card {
  border-color: #4a3b50 !important;
  background: #211b28 !important;
  color: #f5eff8 !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .glossary-simple-title,
:root[data-theme="dark"] .glossary-simple-card p { color: #f5eff8 !important; }

/* Final component cleanup. */
.daily-rate-card {
  background: #d8ffba !important;
  border-color: #b7e88d !important;
  color: #211b28 !important;
}

html:root[data-theme="dark"] .daily-rate-card {
  background: #d8ffba !important;
  border-color: #b7e88d !important;
  color: #211b28 !important;
}

.daily-rate-card small,
.daily-rate-card span,
.daily-rate-card strong {
  color: #211b28 !important;
}

.currency-converter-box.active {
  border-color: #9cda72 !important;
}

:root[data-theme="dark"] .currency-converter-box.active {
  border-color: #7fbd58 !important;
}

.featured-promotion-card.mercado-pago .featured-promotion-brand img {
  object-fit: contain;
  object-position: center;
}

.category-settings-screen .category-option .category-emoji,
.setup-category-grid .category-option .category-emoji {
  display: grid;
  place-items: center;
  justify-self: center;
  margin-inline: auto;
  box-shadow: none !important;
}

.category-settings-screen .category-option .category-label,
.setup-category-grid .category-option .category-label {
  width: 100%;
  justify-content: center;
}

.category-settings-screen .category-option .category-asset,
.setup-category-grid .category-option .category-asset {
  display: block;
  margin: 0 auto;
  filter: none !important;
}

.profile-edit-button { color: #3c0d5b !important; background: #fff !important; }
:root[data-theme="dark"] .profile-edit-button { color: #fff !important; background: #3c0d5b !important; border: 0 !important; }
.profile-setting .setting-value { width: auto !important; height: auto !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.reminder-settings .reminder-option,
.fixed-choice { border: 0 !important; border-bottom: 0 !important; background: transparent !important; box-shadow: none !important; }
:root[data-theme="dark"] .reminder-settings .reminder-option,
:root[data-theme="dark"] .fixed-choice { color: #f5eff8 !important; }
:root[data-theme="dark"] .currency-converter-box { border-color: #45404a !important; background: #000 !important; box-shadow: none !important; }
:root[data-theme="dark"] .currency-converter-box input { border: 1px solid #45404a !important; background: #211b28 !important; color: #fff !important; box-shadow: none !important; }
:root[data-theme="dark"] .currency-converter-box label,
:root[data-theme="dark"] .currency-name strong,
:root[data-theme="dark"] .currency-name span:last-child { color: #d9cbe2 !important; }
:root[data-theme="dark"] .currency-swap-button { border-color: #8fd7eb !important; background: #dff6ff !important; color: #3c0d5b !important; box-shadow: none !important; }
:root[data-theme="dark"] .donut-percent { color: #211b28 !important; }
:root[data-theme="dark"] .donut-chart > span { color: #fff !important; }
html:root[data-theme="dark"] .featured-promotion-card.mercado-pago .featured-promotion-brand img { width: 150px !important; max-width: none !important; height: 52px !important; mix-blend-mode: normal !important; filter: none !important; }
.glossary-bulb .category-vector { width: 16px !important; height: 16px !important; fill: currentColor; stroke: none; }
:root[data-theme="dark"] .fixed-choice,
:root[data-theme="dark"] .reminder-settings .reminder-option {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 0 !important;
}

/* True EOF overrides for the converter control. */
html:root[data-theme="dark"] .currency-swap-button,
html:root[data-theme="light"] .currency-swap-button,
html .currency-swap-button {
  width: 24px !important;
  height: 24px !important;
  margin: 10px auto !important;
  border: 0 !important;
  border-color: #3c0d5b !important;
  background: #3c0d5b !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Category assets exported with a label need a clean icon-only presentation. */
.category-asset-servicios-clean {
  display: grid;
  width: 76px !important;
  height: 75px !important;
  place-items: center;
  border-radius: 50%;
  background: #fff3a8;
  color: #7c4d03;
}

.category-asset-servicios-clean .category-vector {
  width: 38px !important;
  height: 38px !important;
  color: inherit !important;
  fill: currentColor !important;
  stroke: none !important;
}

.category-detail-hero .category-asset-servicios-clean {
  width: 76px !important;
  height: 75px !important;
}

.category-detail-list {
  gap: 14px !important;
}

.subcategory-row {
  grid-template-columns: 38px minmax(0, 1fr) 28px !important;
  column-gap: 12px !important;
  min-height: 40px !important;
}

.subcategory-icon {
  width: 34px !important;
  height: 34px !important;
}

.subcategory-icon .subcategory-vector,
.subcategory-icon .category-vector {
  width: 18px !important;
  height: 18px !important;
  color: #8b5c00 !important;
}

.subcategory-row strong {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.subcategory-chevron {
  justify-self: center !important;
  width: 28px;
  color: #71667a !important;
  font-size: 22px !important;
  text-align: center !important;
}

/* Final match to the Figma category-detail frame. */
.category-detail-screen {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: 18px 24px 34px !important;
}

.category-detail-back {
  left: 20px !important;
}

.category-detail-hero {
  margin-top: 24px !important;
}

.category-detail-hero .category-asset,
.category-detail-hero .category-asset-servicios-clean {
  width: 64px !important;
  height: 64px !important;
}

.category-detail-hero .category-asset-servicios-clean .category-vector {
  width: 34px !important;
  height: 34px !important;
  fill: currentColor !important;
  stroke: none !important;
}

.subcategory-question {
  width: 100% !important;
  margin: 64px 0 20px !important;
  text-align: left !important;
}

.category-detail-list {
  width: 100% !important;
  gap: 10px !important;
}

.subcategory-row {
  grid-template-columns: 34px minmax(0, 1fr) 28px !important;
  min-height: 42px !important;
  column-gap: 10px !important;
}

.subcategory-row strong {
  text-align: left !important;
}

.subcategory-chevron {
  justify-self: end !important;
  text-align: right !important;
}

.featured-promotion-card .promo-validity,
.featured-promotion-card .promo-conditions-button {
  display: grid !important;
  width: 118px !important;
  min-width: 118px !important;
  height: 30px !important;
  min-height: 30px !important;
  box-sizing: border-box !important;
  place-items: center !important;
  padding: 0 8px !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Last word on category sizing and original services artwork. */
.category-detail-screen { width: min(100%, 331px) !important; max-width: 331px !important; margin-inline: auto !important; }
.category-detail-back { display: none !important; }
.category-detail-hero { margin-top: 16px !important; }
.category-detail-hero .category-asset-servicios-original,
.setup-category-grid .category-asset-servicios-original {
  position: relative;
  display: block;
  width: 76px !important;
  height: 75px !important;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}
.category-detail-hero .category-asset-servicios-original img,
.setup-category-grid .category-asset-servicios-original img {
  position: absolute;
  top: 0;
  left: -84px;
  width: 281px !important;
  max-width: none !important;
  height: 97px !important;
}

/* Keep the category detail at the mobile frame size from Figma. */
.category-detail-screen {
  width: min(100%, 331px) !important;
  max-width: 331px !important;
  margin-inline: auto !important;
  padding: 18px 24px 34px !important;
}

.category-detail-hero { margin-top: 16px !important; }
.category-detail-hero .category-asset-servicios-original {
  position: relative;
  display: block;
  width: 76px !important;
  height: 75px !important;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.category-detail-hero .category-asset-servicios-original img {
  position: absolute;
  top: 0;
  left: -84px;
  width: 281px !important;
  max-width: none !important;
  height: 97px !important;
  object-fit: fill;
}

.setup-category-grid .category-asset-servicios-original {
  position: relative;
  display: block;
  width: 76px !important;
  height: 75px !important;
  overflow: hidden;
  border-radius: 50%;
}

.setup-category-grid .category-asset-servicios-original img {
  position: absolute;
  top: 0;
  left: -84px;
  width: 281px !important;
  max-width: none !important;
  height: 97px !important;
}

/* Converter and category-detail final alignment. */
.currency-converter-box.active {
  border-color: #ded4e5 !important;
}

html:root[data-theme="dark"] .currency-converter-box.active {
  border-color: #45404a !important;
}

.exchange-source {
  position: relative;
  z-index: 3;
  margin: 4px auto 12px !important;
  color: #34253c !important;
  opacity: 1 !important;
}

html:root[data-theme="dark"] .exchange-source {
  color: #d8cce0 !important;
}

.currency-rate-status {
  width: min(100%, 300px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.currency-rate-status.error {
  color: #a32222;
}

.category-detail-screen {
  position: relative;
  align-items: center;
  padding: 20px 24px 36px;
  text-align: center;
}

.category-detail-back {
  align-self: flex-start;
  width: 32px;
  height: 32px;
  margin: 0 0 4px -8px;
  border: 0;
  background: transparent;
  color: #4b4650;
  font-size: 28px;
  line-height: 1;
}

.category-detail-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.category-detail-hero .category-asset {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: none !important;
}

.category-detail-hero h1 {
  margin: 0;
  color: #26203a;
  font-size: 22px;
}

.subcategory-question {
  width: min(100%, 300px);
  margin: 68px auto 24px;
  color: #4c4652;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
}

.category-detail-list {
  display: grid;
  width: min(100%, 300px);
  gap: 2px;
  padding: 0;
}

.subcategory-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2d2740;
  text-align: left;
}

.subcategory-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #fffab3;
  color: #ff6200;
}

.subcategory-icon .category-vector,
.subcategory-vector {
  width: 19px;
  height: 19px;
}

.subcategory-vector {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subcategory-row strong {
  font-size: 12px;
}

.subcategory-chevron {
  color: #5b5660;
  font-size: 27px;
  line-height: 1;
  text-align: right;
}

.subcategory-manage-button {
  min-height: 36px;
  margin-top: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 20px;
  background: #f0f0f0;
  color: #605b63;
  font-size: 12px;
}

.category-detail-save {
  width: min(100%, 210px);
  min-height: 52px;
  margin: 28px auto 0;
  font-size: 16px;
}

html:root[data-theme="dark"] .category-detail-screen {
  background: #000;
}

html:root[data-theme="dark"] .category-detail-back,
html:root[data-theme="dark"] .category-detail-hero h1,
html:root[data-theme="dark"] .subcategory-question,
html:root[data-theme="dark"] .subcategory-row {
  color: #f5eff8;
}

html:root[data-theme="dark"] .subcategory-manage-button {
  background: #302a35;
  color: #f5eff8;
}

/* Match the Figma spacing and controls for the latest mobile layouts. */
.currency-swap-button {
  width: 24px !important;
  height: 24px !important;
  margin: 10px auto !important;
  border: 0 !important;
  background: #3c0d5b !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.category-detail-screen {
  width: min(100%, 331px);
  min-height: 100%;
  margin-inline: auto;
  padding: 18px 24px 34px !important;
}

.category-detail-back {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  font-size: 27px;
}

.category-detail-hero {
  gap: 8px;
  margin-top: 28px;
}

.category-detail-hero .category-asset {
  width: 76px;
  height: 76px;
}

.category-detail-hero h1 {
  font-size: 21px;
  line-height: 1.15;
}

.subcategory-question {
  width: 100%;
  margin: 62px 0 18px;
  font-size: 16px;
  line-height: 1.2;
}

.category-detail-list {
  width: 100%;
  gap: 8px;
}

.subcategory-row {
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  min-height: 44px;
  gap: 10px;
}

.subcategory-icon {
  width: 32px;
  height: 32px;
}

.subcategory-row strong {
  font-size: 12px;
  line-height: 1.2;
}

.subcategory-chevron {
  justify-self: end;
  font-size: 25px;
  line-height: 1;
}

.subcategory-manage-button {
  margin-top: 30px;
  min-height: 40px;
  padding-inline: 14px;
  white-space: nowrap;
}

.category-detail-save {
  width: 210px;
  min-height: 52px;
  margin-top: 28px;
}
:root[data-theme="dark"] .featured-promotion-card.mercado-pago .featured-promotion-brand img,
.featured-promotion-card.mercado-pago .featured-promotion-brand img {
  width: 150px !important;
  height: 52px !important;
  max-width: none !important;
  object-fit: contain;
  mix-blend-mode: normal !important;
  filter: none !important;
}
:root[data-theme="dark"] .featured-promotion-card.mercado-pago .featured-promotion-brand img,
.featured-promotion-card.mercado-pago .featured-promotion-brand img {
  width: 150px !important;
  height: 52px !important;
  max-width: none !important;
  object-fit: contain;
  mix-blend-mode: normal !important;
  filter: none !important;
}

/* Component cleanup: keep controls readable and remove accidental focus frames. */
.profile-edit-button {
  color: #3c0d5b !important;
  background: #fff !important;
}

:root[data-theme="dark"] .profile-edit-button {
  color: #fff !important;
  background: #3c0d5b !important;
  border: 0 !important;
}

.profile-setting .setting-value {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.reminder-settings .reminder-option,
.fixed-choice {
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .reminder-settings .reminder-option,
:root[data-theme="dark"] .fixed-choice {
  color: #f5eff8 !important;
}

:root[data-theme="dark"] .currency-converter-box {
  border-color: #45404a !important;
  background: #000 !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .currency-converter-box input {
  border: 1px solid #45404a !important;
  background: #211b28 !important;
  color: #fff !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .currency-converter-box label,
:root[data-theme="dark"] .currency-name strong,
:root[data-theme="dark"] .currency-name span:last-child {
  color: #d9cbe2 !important;
}

:root[data-theme="dark"] .currency-swap-button {
  border-color: #8fd7eb !important;
  background: #dff6ff !important;
  color: #3c0d5b !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .donut-percent {
  color: #211b28 !important;
}

:root[data-theme="dark"] .donut-chart > span {
  color: #fff !important;
}

:root[data-theme="dark"] .featured-promotion-card .featured-promotion-brand img.mercado-pago-logo,
:root[data-theme="dark"] .featured-promotion-card .mercado-pago img {
  width: 168px !important;
  max-width: none !important;
  height: 72px !important;
  mix-blend-mode: multiply;
  filter: saturate(1.35) brightness(1.35);
}

.glossary-bulb .category-vector {
  width: 16px !important;
  height: 16px !important;
  color: #6d4c00 !important;
  fill: currentColor !important;
  stroke: none;
}
.glossary-bulb { color: #6d4c00 !important; }

/* Final cleanup for components that otherwise inherit white/focus frames. */
:root[data-theme="dark"] .donut-chart > span,
:root[data-theme="dark"] .graphs-donut::before {
  background: #211b28 !important;
}

:root[data-theme="dark"] .graphs-total,
:root[data-theme="dark"] .graph-percent {
  color: #f5eff8 !important;
}

button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
  outline: none !important;
  box-shadow: none;
}

:root[data-theme="dark"] .profile-setting,
:root[data-theme="dark"] .setting-button,
:root[data-theme="dark"] .reminder-option,
:root[data-theme="dark"] .choice-button,
:root[data-theme="dark"] .category-option {
  outline: none !important;
}

.glossary-bulb {
  overflow: hidden;
}

.glossary-bulb .category-asset-servicios {
  position: absolute;
  width: 104px;
  height: 36px;
  max-width: none;
  left: -31px;
  top: -1px;
}

.glossary-bulb:has(.category-asset-servicios) {
  position: relative;
}

.category-icon-choice .category-vector {
  width: 25px;
  height: 25px;
}

.category-icon-choice.custom-category-study { background: #fff2dd; }
.category-icon-choice.custom-category-work { background: #eadcf4; }
.category-icon-choice.custom-category-savings { background: #d8ffba; }
.category-icon-choice.custom-category-alerts { background: #fffab3; }

:root[data-theme="dark"] .donut-chart > span {
  color: #f5eff8 !important;
}

:root[data-theme="dark"] .category-icon-choice.custom-category-study { background: #fff2dd !important; color: #7b4e00 !important; }
:root[data-theme="dark"] .category-icon-choice.custom-category-work { background: #eadcf4 !important; color: #3c0d5b !important; }
:root[data-theme="dark"] .category-icon-choice.custom-category-savings { background: #d8ffba !important; color: #288b21 !important; }
:root[data-theme="dark"] .category-icon-choice.custom-category-alerts { background: #fffab3 !important; color: #7b4e00 !important; }

:root[data-theme="dark"] .reminder-email-row {
  color: #f5eff8;
}

/* These are intentionally last so later legacy theme rules cannot restore the
   icon frames or hide the white dark-mode logo. */
.bottom-nav .nav-item.active .nav-icon {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .top-bar .brand-wordmark,
:root[data-theme="dark"] .top-bar .isotipo-window img {
  filter: brightness(0) invert(1) !important;
}

/* Final dark-mode pass: these rules intentionally come last. */
:root[data-theme="dark"] {
  --purple: #3c0d5b;
  --purple-dark: #3c0d5b;
}

:root[data-theme="dark"] .mango-art img,
:root[data-theme="dark"] .mascot-image,
:root[data-theme="dark"] .mascot-backdrop,
:root[data-theme="dark"] .glossary-hero-mascot,
:root[data-theme="dark"] .preference-mascot img,
:root[data-theme="dark"] .alert-intro-mascot img {
  filter: none !important;
}

:root[data-theme="dark"] .pattern-screen {
  background-color: #211b28 !important;
  background-image: url("manguito elementos/fondollamativo.svg") !important;
  background-blend-mode: screen;
}

:root[data-theme="dark"] .choice-button,
:root[data-theme="dark"] .form-row-button,
:root[data-theme="dark"] .fixed-choice,
:root[data-theme="dark"] .category-icon-choice {
  border-color: #4a3b50 !important;
  background: #302a35 !important;
  color: #f5eff8 !important;
}

:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .glossary-next-button {
  background: #3c0d5b !important;
  color: #fff !important;
}

.setup-category-grid .category-option.selected .category-emoji,
.setup-category-grid .category-option:focus .category-emoji,
.setup-category-grid .category-option:focus-visible .category-emoji,
.category-settings-screen .category-option .category-emoji {
  outline: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .category-settings-screen .category-option,
:root[data-theme="dark"] .setup-category-grid .category-option {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .glossary-lesson-screen {
  background: #000 !important;
}

:root[data-theme="dark"] .top-bar.glossary-top-bar,
:root[data-theme="dark"] .glossary-hero {
  background: #3c0d5b !important;
}

:root[data-theme="dark"] .glossary-wave path {
  fill: #000 !important;
}

:root[data-theme="dark"] .glossary-simple-card {
  border-color: #4a3b50 !important;
  background: #211b28 !important;
  color: #f5eff8 !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .glossary-simple-title,
:root[data-theme="dark"] .glossary-simple-card p {
  color: #f5eff8 !important;
}

/* Dark mode uses the same Mango purple, with neutral charcoal controls. */
:root[data-theme="dark"] {
  --purple: #3c0d5b;
  --purple-dark: #3c0d5b;
}

:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .glossary-next-button {
  background: #3c0d5b !important;
  color: #fff !important;
}

:root[data-theme="dark"] .choice-button,
:root[data-theme="dark"] .form-row-button,
:root[data-theme="dark"] .fixed-choice,
:root[data-theme="dark"] .category-icon-choice {
  border-color: #4a3b50;
  background: #302a35;
  color: #f5eff8;
}

:root[data-theme="dark"] .choice-button strong {
  color: #fff;
}

:root[data-theme="dark"] .choice-button.income-choice strong {
  color: #32a91f;
}

:root[data-theme="dark"] .choice-screen > .text-button {
  color: #f5eff8;
}

/* Keep all mascot illustrations as exported, full-colour SVGs. */
:root[data-theme="dark"] .mango-art img,
:root[data-theme="dark"] .mascot-image,
:root[data-theme="dark"] .mascot-backdrop,
:root[data-theme="dark"] .glossary-hero-mascot,
:root[data-theme="dark"] .preference-mascot img,
:root[data-theme="dark"] .alert-intro-mascot img {
  filter: none !important;
}

/* The Figma background remains visible on dark screens, but blends into the
   dark canvas instead of being removed. */
:root[data-theme="dark"] .pattern-screen {
  background-color: #211b28 !important;
  background-image: url("manguito elementos/fondollamativo.svg") !important;
  background-blend-mode: screen;
}

/* Category frames are not part of the design; selected state is conveyed by
   the icon and text, never by a rectangular outline. */
.setup-category-grid .category-option.selected .category-emoji,
.setup-category-grid .category-option:focus .category-emoji,
.setup-category-grid .category-option:focus-visible .category-emoji,
.category-settings-screen .category-option .category-emoji {
  outline: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .category-settings-screen .category-option,
:root[data-theme="dark"] .setup-category-grid .category-option {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* A dark glossary needs a dark wave and dark card surfaces, not a white
   section cut into the page. */
:root[data-theme="dark"] .glossary-lesson-screen {
  background: #000;
}

:root[data-theme="dark"] .top-bar.glossary-top-bar,
:root[data-theme="dark"] .glossary-hero {
  background: #3c0d5b;
}

:root[data-theme="dark"] .glossary-wave path {
  fill: #000;
}

:root[data-theme="dark"] .glossary-simple-card {
  border-color: #4a3b50;
  background: #211b28;
  color: #f5eff8;
  box-shadow: none;
}

:root[data-theme="dark"] .glossary-simple-title,
:root[data-theme="dark"] .glossary-simple-card p {
  color: #f5eff8;
}

/* Final visual overrides for the fixed mobile chrome. */
.bottom-nav .nav-item.active .nav-icon {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .top-bar .brand-wordmark,
:root[data-theme="dark"] .top-bar .isotipo-window img {
  filter: brightness(0) invert(1) !important;
}

.tools-screen {
  padding-bottom: 175px;
  flex: 0 0 auto;
  min-height: max-content;
}

.mercado-pago .featured-promotion-brand img {
  width: 132px;
  max-width: none;
  height: 60px;
}

/* Keep the appearance control's preview icon fixed when the page text grows. */
:root[data-text-size="large"] .text-size-preview,
:root[data-text-size="large"] .text-size-preview * {
  box-sizing: border-box;
  font-size: inherit !important;
  line-height: 1 !important;
}

.text-size-preview {
  width: 30px;
  height: 30px;
  overflow: visible;
  line-height: 1;
}

.text-size-preview.large {
  font-size: 13px !important;
}

.screen .text-size-choice .text-size-preview.large {
  position: relative;
  font-size: 13px !important;
}

.text-size-preview sup {
  font-size: 8px !important;
  line-height: 1 !important;
  position: absolute;
  right: 5px;
  bottom: 3px;
}

/* The arrow is anchored to the option, so it does not pull the category name
   away from the icon's center. */
.category-settings-screen .category-option .category-label {
  grid-column: 1;
  grid-row: 2;
  flex: 0 0 130px;
  position: relative;
  width: 130px;
  justify-content: center;
}

.category-settings-screen .category-option {
  grid-template-columns: 130px;
}

.category-settings-screen .category-option .category-chevron {
  position: absolute;
  right: 0;
}

/* Category cards should not show browser focus rectangles in the visual UI. */
.category-settings-screen .category-option:focus,
.category-settings-screen .category-option:focus-visible {
  outline: none !important;
  outline-offset: 0;
}

/* Keep the fixed navigation clean: the active state is expressed by color,
   not by a box that shifts or frames the icon. */
.bottom-nav .nav-item.active .nav-icon {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The wordmark and mark need enough contrast against the dark canvas. */
:root[data-theme="dark"] .top-bar .brand-wordmark,
:root[data-theme="dark"] .top-bar .isotipo-window img {
  filter: brightness(0) invert(1) !important;
}

/* Do not let the enlarged preference cascade multiply nested text sizes. */
:root[data-text-size="large"] .dashboard-screen .donut-chart,
:root[data-text-size="large"] .dashboard-screen .donut-chart span,
:root[data-text-size="large"] .dashboard-screen .donut-percent,
:root[data-text-size="large"] .graphs-donut,
:root[data-text-size="large"] .graphs-donut::before {
  flex: 0 0 auto;
}

:root[data-text-size="large"] .dashboard-screen .donut-chart {
  width: 84px;
  height: 84px;
}

:root[data-text-size="large"] .dashboard-screen .donut-chart > span {
  width: 52px;
  height: 52px;
  font-size: 9px !important;
}

:root[data-text-size="large"] .dashboard-screen .summary-grid {
  grid-template-columns: 84px minmax(0, 1fr);
}

/* Leave the bottom navigation's footprint available for the last tool card. */
.tools-screen {
  padding-bottom: 175px;
}

/* Match the visual weight of the other promotion logos. */
.mercado-pago .featured-promotion-brand img {
  width: 132px;
  max-width: none;
  height: 60px;
}

/* The services asset is a complete Figma export; do not crop or offset it. */
.category-settings-screen .category-asset-servicios {
  position: absolute;
  top: 0;
  left: -84px;
  width: 281px;
  height: 97px;
  max-width: none;
  object-fit: fill;
}

.category-settings-screen .category-emoji:has(.category-asset-servicios) {
  overflow: hidden;
}

.category-settings-screen .category-option:focus,
.category-settings-screen .category-option:focus-visible {
  outline: 0;
}

.category-emoji:has(.category-asset-servicios) {
  position: relative;
  overflow: hidden;
}

.category-emoji .category-asset-servicios {
  position: absolute;
  top: 0;
  left: -84px;
  width: 281px;
  height: 97px;
  max-width: none;
  object-fit: fill;
}

.category-grid:not(.setup-category-grid) .category-emoji .category-asset-servicios {
  width: 281px;
  height: 97px;
  max-width: none;
  left: -84px;
}

/* Avoid browser focus rectangles becoming visible as purple boxes in the UI. */
button:focus,
button:focus-visible {
  outline: none;
}

/* Keep the Mango mark readable on the dark canvas. */
:root[data-theme="dark"] .top-bar .brand .isotipo-window img {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] .pattern-screen {
  background-color: #211b28;
  background-image: none;
}

:root[data-theme="dark"] .graph-row,
:root[data-theme="dark"] .currency-converter-box,
:root[data-theme="dark"] .appearance-choice,
:root[data-theme="dark"] .text-size-choice {
  border-color: #303030;
}

:root[data-theme="dark"] .tool-card-copy small,
:root[data-theme="dark"] .glossary-term p,
:root[data-theme="dark"] .promo-disclaimer,
:root[data-theme="dark"] .appearance-choice small,
:root[data-theme="dark"] .category-chip,
:root[data-theme="dark"] .conversion-result {
  color: #d2cad8;
}

:root[data-theme="dark"] .promo-disclaimer,
:root[data-theme="dark"] .conversion-result,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .category-chip,
:root[data-theme="dark"] .form-row-button,
:root[data-theme="dark"] .month-switcher button {
  background: #302a35;
}

:root[data-theme="dark"] .calendar-card .month-switcher button {
  background: transparent;
  color: #f5eff8;
}

:root[data-theme="dark"] .calendar-day.selected,
:root[data-theme="dark"] .calendar-day.has-alert {
  background: #8d5bab;
  color: #fff;
}

:root[data-theme="dark"] .calendar-day.selected:not(.has-alert) {
  background: #3a2e42;
  color: #f5eff8;
}

:root[data-theme="dark"] .balance-card {
  background: #4b2166;
}

:root[data-theme="dark"] .brand-wordmark,
:root[data-theme="dark"] .isotipo-window img,
:root[data-theme="dark"] .welcome-logo img {
  filter: brightness(0) invert(1);
}

/* Preserve the Mango brand colors on the dark home/profile surfaces. */
:root[data-theme="dark"] .brand-wordmark,
:root[data-theme="dark"] .isotipo-window img {
  filter: none;
}

/* Featured promotions are separate from the generic promotion cards. */
:root[data-theme="dark"] .featured-promotion-card {
  border-color: #3a3340;
  background: #211b28;
  color: #f5eff8;
  box-shadow: 0 2px 5px rgb(0 0 0 / 28%);
}

:root[data-theme="dark"] .featured-promotion-card .featured-promotion-brand,
:root[data-theme="dark"] .featured-promotion-card .featured-promotion-offer small,
:root[data-theme="dark"] .featured-promotion-card .promo-conditions-copy {
  color: #f5eff8;
}

:root[data-theme="dark"] .featured-promotion-card .promo-validity {
  background: #d4f8bd;
  color: #355b2b;
}

:root[data-theme="dark"] .welcome-copy p,
:root[data-theme="dark"] .summary-card h2,
:root[data-theme="dark"] .list-card h2,
:root[data-theme="dark"] .panel-card h2,
:root[data-theme="dark"] .due-row,
:root[data-theme="dark"] .transaction-row,
:root[data-theme="dark"] .summary-row,
:root[data-theme="dark"] .calendar-day {
  color: #f5eff8;
}

.category-name {
  font-size: 13px;
  font-weight: 650;
}

.disclosure-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 218px;
  text-align: center;
}

.disclosure-screen > .onboarding-logo {
  position: absolute;
  top: max(64px, env(safe-area-inset-top));
  right: 26px;
  margin: 0;
}

.disclosure-screen h1 {
  margin: 0 auto 7px;
  max-width: 310px;
  font-size: 30px;
}

.disclosure-screen p {
  max-width: 310px;
  margin: 0 auto 45px;
  font-size: 18px;
}

.mango-small {
  width: 185px;
  height: 250px;
  margin: 60px auto 0;
}

.disclosure-screen > .primary-button {
  width: min(100%, 275px);
  min-height: 66px;
  align-self: center;
  font-size: 17px;
}

.ready-screen {
  justify-content: flex-start;
  padding-top: 168px;
}

.ready-screen h1 {
  margin-bottom: 34px;
}

.ready-screen p {
  max-width: 320px;
  margin: 0 auto 59px;
  font-size: 20px;
}

.ready-screen .mango-art {
  width: 220px;
  height: 220px;
  margin: 0 auto 73px;
}

.ready-screen > .primary-button {
  min-height: 66px;
  margin-top: 0;
}

.dashboard-screen {
  padding: 12px 30px 20px;
}

.greeting {
  margin: 0 5px 1px;
  font-size: 17px !important;
  font-weight: 700;
}

.greeting-wave {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  object-fit: contain;
}

.greeting-subtitle {
  margin: 0 5px 9px;
  font-size: 10px;
}

.balance-card {
  position: relative;
  margin: 0 0 16px;
  padding: 12px 15px 10px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--purple);
  color: #fff;
}

.balance-label,
.balance-until,
.balance-days {
  margin: 0;
  font-size: 9px;
  line-height: 1.2;
}

.balance-amount {
  margin: 1px 0 4px;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.balance-track {
  height: 5px;
  margin: 4px 0 5px;
  overflow: hidden;
  border-radius: 10px;
  background: rgb(255 255 255 / 35%);
}

.balance-track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.summary-card,
.list-card,
.panel-card {
  margin: 0 0 15px;
  padding: 13px 14px;
  border: 1px solid #efedf0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(26 19 32 / 12%);
}

.dashboard-screen .summary-card {
  padding: 10px 12px;
}

.summary-card h2 {
  margin: 0 0 6px;
  font-size: 12px;
}

.list-card h2,
.panel-card h2 {
  margin: 0 0 10px;
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 10px;
}

.donut-chart {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#8b5ab4 0 25%, #d9c4eb 25% 40%, #f4d96a 40% 53%, #94d35b 53% 76%, #c5b1d4 76% 100%);
}

.donut-chart span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #483651;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.summary-list {
  display: grid;
  gap: 5px;
}

.summary-row,
.due-row,
.transaction-row,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.summary-row strong,
.due-row strong,
.transaction-row strong {
  font-size: 11px;
  white-space: nowrap;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px 0 8px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 14px;
}

.text-link {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.due-row {
  min-height: 48px;
  border-bottom: 1px solid #eee;
}

.dashboard-screen .due-row {
  min-height: 43px;
}

.dashboard-screen .summary-list {
  gap: 3px;
}

.due-row:last-child {
  border-bottom: 0;
}

.due-row div,
.transaction-row div {
  display: grid;
  gap: 3px;
}

.due-row small,
.transaction-row small {
  color: var(--muted);
  font-size: 10px;
}

.bottom-nav {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 405px);
  transform: translateX(-50%);
  z-index: 3;
  isolation: isolate;
  pointer-events: auto;
  display: flex;
  min-height: calc(56px + env(safe-area-inset-bottom));
  flex: 0 0 calc(56px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-around;
  margin: 0;
  padding: 2px 0 max(3px, env(safe-area-inset-bottom));
  border-top: 1px solid #f0edf2;
  background: #fff;
}

.nav-item {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 43px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px 2px;
  border: 0;
  background: transparent;
  color: #77717d;
  font-size: 10px;
  cursor: pointer;
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  overflow: hidden;
  color: #77717d;
  font-size: 22px;
  line-height: 1;
}

.nav-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  transform: scale(3.4);
}

.nav-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.nav-icon img.panel-icon-image {
  transform: scale(3.4);
}

.nav-item.active {
  color: var(--purple);
  font-weight: 700;
}

.nav-item.active .nav-icon {
  color: var(--purple);
  border: 1px solid #a8e4f7;
  background: #dff6ff;
}

.nav-item.add-nav .nav-icon {
  width: 43px;
  height: 43px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: none;
  color: #fff;
  font-size: 26px;
}

.donut-percent {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 25px;
  margin: -5px 0 0 -12px;
  color: #45364f;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: rotate(var(--percent-angle)) translateY(-33px) rotate(calc(var(--percent-angle) * -1));
}

.nav-item.add-nav .nav-icon > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  transform: none;
}

.nav-item.add-nav > span:last-child {
  display: none;
}

.profile-screen {
  padding: 0 35px 18px;
}

.profile-hero {
  display: flex;
  height: 258px;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 -35px 36px;
  padding: 84px 35px 0;
  border-radius: 0 0 3px 3px;
  background: var(--purple);
  box-shadow: 0 4px 9px rgb(35 12 51 / 22%);
  color: #fff;
  text-align: center;
}

.profile-avatar {
  position: relative;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.profile-avatar img {
  display: block;
  width: 62px;
  height: 94px;
  object-fit: contain;
}

.profile-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -1px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: #35a91f;
  color: #fff;
}

.profile-avatar-edit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-hero > strong {
  margin-top: 2px;
  font-size: 25px;
  line-height: 1.15;
}

.profile-hero > small {
  margin-top: 7px;
  color: rgb(255 255 255 / 82%);
  font-size: 13px;
}

.profile-edit-button {
  min-width: 132px;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
  color: #77717d;
  font-size: 11px;
  font-weight: 650;
}

.profile-group {
  margin-bottom: 9px;
  padding: 8px 13px 4px;
  border: 0;
  border-radius: 17px;
  box-shadow: 0 3px 8px rgb(26 19 32 / 19%);
}

.profile-screen > .profile-group:first-of-type {
  margin-bottom: 16px;
}

.profile-group-title {
  margin: 0 0 2px !important;
  color: #68616d;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.2;
}

.profile-group .profile-setting {
  min-height: 48px;
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 1px solid #eee !important;
  color: #261d2c;
  font-size: 12px;
}

.profile-setting:last-child {
  border-bottom: 0 !important;
}

.profile-setting-icon {
  display: grid;
  width: 14px;
  height: 16px;
  flex: 0 0 14px;
  place-items: center;
  color: var(--purple);
  font-size: 16px;
}

.profile-setting-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.profile-setting .setting-value {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-left: auto;
  border: 1px solid #a8e4f7;
  background: #dff6ff;
  color: var(--purple);
  font-size: 16px;
  line-height: 1;
}

.profile-footer {
  display: grid;
  justify-items: center;
  margin-top: 72px;
  padding-top: 1px;
  border-bottom: 1px solid #eee;
}

.profile-logout-button {
  min-width: 100px;
  min-height: 28px;
  border: 0;
  border-radius: 20px;
  background: var(--purple);
  box-shadow: 0 2px 5px rgb(0 0 0 / 18%);
  color: #fff;
  font-size: 9px;
  font-weight: 650;
}

.profile-help-button {
  min-height: 26px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #42394a;
  font-size: 11px;
}

.alert-list-screen {
  display: flex;
  flex-direction: column;
  padding-top: 38px;
}

.alert-list-card {
  padding: 13px 15px;
  border: 0;
  border-radius: 17px;
  box-shadow: 0 3px 7px rgb(26 19 32 / 15%);
}

.alert-list-row {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eee;
  color: #211b28;
  font-size: 11px;
}

.alert-list-row:last-child {
  border-bottom: 0;
}

.alert-list-copy,
.alert-list-value {
  display: grid;
  gap: 3px;
}

.alert-list-copy small {
  color: #625c66;
  font-size: 10px;
}

.alert-list-value {
  justify-items: end;
  white-space: nowrap;
}

.alert-list-value button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-size: 10px;
}

.alert-register-button {
  width: 250px;
  min-height: 78px;
  align-self: center;
  margin-top: auto;
  margin-bottom: 88px;
  padding: 0 24px;
  line-height: 1.35;
}

.alert-list-card .alert-list-row {
  min-height: 51px;
}

.reminder-settings .form-field select {
  min-height: 45px;
  padding-inline: 18px 10px;
  border: 0;
  border-radius: 9px;
  background: #f1f1f1;
}

.appearance-choice:first-child {
  border-bottom-color: #eee;
}

.alert-detail-screen {
  padding-top: 106px;
}

.alert-detail-card {
  display: grid;
  justify-items: stretch;
  gap: 8px;
  min-height: 196px;
  margin: 0 3px 25px;
  padding: 24px 22px 17px;
  border-radius: 17px;
  background: var(--purple);
  box-shadow: 0 4px 9px rgb(26 19 32 / 20%);
  color: #fff;
  text-align: left;
}

.alert-detail-heading,
.alert-detail-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alert-detail-heading > span:first-child {
  display: grid;
  gap: 4px;
}

.alert-detail-heading small {
  color: rgb(255 255 255 / 82%);
  font-size: 11px;
}

.alert-pending {
  padding: 4px 9px;
  border-radius: 12px;
  background: #fff;
  color: #d52d53;
  font-size: 9px;
}

.alert-detail-amount {
  justify-self: start;
  color: #fff;
  font-size: 30px;
}

.alert-detail-footer {
  align-self: end;
  color: #fff;
  font-size: 10px;
}

.alert-history-title {
  margin: 0 5px 12px;
  font-size: 13px;
}

.alert-history-card {
  padding: 11px 14px;
}

.alert-history-card .empty-state {
  padding: 20px 8px;
}

.alert-history-card .text-link {
  display: block;
  margin-left: auto;
}

.alert-history-row {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee8f2;
  color: #3c0d5b;
  font-size: 10px;
}

.alert-history-row > span {
  display: grid;
  gap: 2px;
}

.alert-history-row small {
  color: #737078;
  font-size: 8px;
}

.alert-history-row > strong {
  font-size: 10px;
}

.amount-card {
  margin: 4px 0 15px;
  padding: 15px;
  border-radius: 13px;
  background: var(--purple);
  color: white;
}

.amount-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.amount-card input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 29px;
  font-weight: 700;
}

.amount-card input::placeholder {
  color: rgb(255 255 255 / 70%);
}

.amount-card small {
  display: block;
  margin-top: 4px;
  color: rgb(255 255 255 / 85%);
  font-size: 10px;
}

.form-row-button {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: #f2f2f2;
  color: #3a3440;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.form-row-button .row-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chevron-right {
  color: #77717d;
  font-size: 20px;
}

.fixed-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #4f4853;
  font-size: 12px;
}

.fixed-choice input {
  accent-color: var(--purple);
}

.transaction-list {
  display: grid;
}

.transaction-row {
  min-height: 58px;
  padding: 0 2px;
  border-bottom: 1px solid #f0edf1;
  font-size: 12px;
}

.transaction-row .row-emoji {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: #f4edf8;
  font-size: 18px;
}

.transaction-row .row-info {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
}

.transaction-row .income {
  color: #299b45;
}

.transaction-row .expense {
  color: #302638;
}

.month-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 13px;
  font-size: 14px;
  font-weight: 700;
}

.month-switcher button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f5f1f7;
  color: var(--purple);
  font-size: 19px;
  cursor: pointer;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.metric-card {
  padding: 13px 12px;
  border-radius: 13px;
  background: #f6f2f8;
}

.metric-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.metric-card strong {
  color: var(--purple);
  font-size: 17px;
}

.bar-list {
  display: grid;
  gap: 13px;
}

.bar-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #eee8f2;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8c5bb5;
}

.bar-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bar-label .category-vector {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.bar-item strong {
  font-size: 10px;
}

.setting-row {
  min-height: 54px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.setting-row button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--purple);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 15px;
  overflow-x: auto;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #e5ddeb;
  border-radius: 18px;
  background: #fff;
  color: #645c69;
  font-size: 11px;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.empty-state {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.toast {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 76px;
  left: 18px;
  padding: 12px 15px;
  border-radius: 12px;
  background: #30213a;
  box-shadow: 0 4px 18px rgb(0 0 0 / 18%);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.back-button:focus-visible,
.primary-button:focus-visible,
.nav-item:focus-visible,
.text-button:focus-visible,
.category-option:focus-visible,
.form-row-button:focus-visible {
  outline: 2px solid #8f65b3;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .choice-art .mango-art {
    width: 132px;
    height: 136px;
  }

  .choice-arrow {
    width: 61px;
    height: 61px;
  }

  .profile-screen {
    padding-right: 25px;
    padding-left: 25px;
  }

  .profile-hero {
    height: 216px;
    min-height: 0;
    margin: 0 -25px 26px;
    padding: 68px 25px 0;
  }

  .profile-avatar {
    width: 78px;
    height: 78px;
  }

  .profile-avatar img {
    width: 48px;
    height: 74px;
  }

  .profile-avatar-edit {
    width: 22px;
    height: 22px;
  }

  .profile-avatar-edit svg {
    width: 12px;
    height: 12px;
  }

  .profile-hero > strong {
    font-size: 25px;
  }

  .profile-hero > small {
    font-size: 12px;
  }

  .profile-group-title {
    font-size: 9px !important;
  }

  .profile-group .profile-setting {
    min-height: 40px;
    font-size: 12px;
  }

  .profile-screen > .profile-group:first-of-type {
    margin-bottom: 9px;
  }

  .profile-edit-button {
    min-width: 100px;
    min-height: 28px;
    font-size: 12px;
  }

  .profile-footer {
    margin-top: 51px;
  }

  .alerts-screen {
    padding-top: 56px;
  }

  .alerts-screen .calendar-card {
    margin-bottom: 20px;
    padding: 10px 14px 12px;
  }

  .alerts-screen .calendar-card .month-switcher {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .alerts-screen .calendar-card .month-switcher button {
    width: 18px;
    height: 20px;
    font-size: 16px;
  }

  .alerts-screen .calendar-grid {
    gap: 6px 2px;
  }

  .alerts-screen .calendar-weekdays {
    margin-bottom: 3px;
    font-size: 8px;
  }

  .alerts-screen .calendar-day,
  .alerts-screen .calendar-empty {
    width: 26px;
    height: 26px;
  }

  .alerts-screen .calendar-day {
    font-size: 10px;
  }

  .alerts-screen .section-title-row h2 {
    font-size: 12px;
  }

  .alerts-screen .due-row {
    min-height: 36px;
    font-size: 9px;
  }

  .alerts-screen .due-row strong {
    font-size: 9px;
  }

  .alerts-screen .due-row small {
    font-size: 8px;
  }

  .featured-promotions {
    gap: 10px;
  }

  .promotions-screen {
    padding-right: 36px;
    padding-left: 36px;
  }

  .featured-promotion-card {
    min-height: 112px;
    grid-template-columns: minmax(0, 1fr) 90px;
    grid-template-rows: 30px 1fr 28px;
    gap: 4px 6px;
    padding: 8px 11px;
    border-radius: 14px;
  }

  .featured-promotion-brand img {
    max-width: 100px;
    height: 28px;
  }

  .featured-promotion-offer strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .featured-promotion-offer small {
    font-size: 8px;
  }

  .cuenta-dni .featured-promotion-offer strong {
    font-size: 13px;
  }

  .promo-validity {
    padding: 5px 6px;
    font-size: 7px;
  }

  .promo-conditions-button {
    min-width: 88px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 8px;
  }

  .promo-mascot-note {
    min-height: 64px;
    gap: 4px;
    margin-top: 12px;
    padding: 4px 9px 4px 2px;
  }

  .promo-mascot-note img {
    width: 96px;
    height: 60px;
    flex-basis: 96px;
  }

  .promo-mascot-note p {
    font-size: 10px;
  }

  .alert-detail-screen {
    padding-top: 58px;
  }

  .alert-detail-card {
    min-height: 138px;
    margin-bottom: 18px;
    gap: 6px;
    padding: 14px 15px 12px;
    border-radius: 14px;
  }

  .alert-detail-heading > span:first-child strong {
    font-size: 12px;
  }

  .alert-detail-heading small {
    font-size: 9px;
  }

  .alert-pending {
    padding: 3px 7px;
    font-size: 8px;
  }

  .alert-detail-amount {
    font-size: 24px;
  }

  .alert-detail-footer {
    font-size: 8px;
  }

  .alert-history-title {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .alert-history-card {
    padding: 9px 10px;
  }

  .alert-history-card .empty-state {
    padding: 12px 6px;
    font-size: 10px;
  }

  .alert-history-card .text-link {
    font-size: 9px;
  }

  .alert-history-row {
    min-height: 44px;
  }
}

.graphs-screen {
  padding: 50px 30px 20px;
}

.graphs-greeting {
  margin: 0;
  text-align: center;
}

.graphs-greeting h1 {
  margin: 0;
  color: var(--purple);
  font-size: 20px;
  line-height: 1.25;
}

.graphs-greeting p {
  margin: 0;
  color: #4e4852;
  font-size: 14px;
}

.graphs-donut {
  position: relative;
  display: grid;
  width: 250px;
  height: 250px;
  place-items: center;
  margin: 14px auto 16px;
  border-radius: 50%;
}

.graphs-donut::before {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.graphs-total {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  color: #35283e;
  text-align: center;
}

.graphs-total small {
  font-size: 12px;
}

.graphs-total strong {
  font-size: 17px;
}

.graph-percent {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 38px;
  margin: -8px 0 0 -19px;
  color: #34263f;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transform: rotate(var(--percent-angle)) translateY(-99px) rotate(calc(var(--percent-angle) * -1));
}

.graphs-breakdown {
  width: min(100%, 285px);
  margin: 0 auto;
  padding: 5px 12px;
  border: 1px solid #efedf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 7px rgb(26 19 32 / 18%);
}

.graph-row {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee;
  color: #33283c;
}

.graph-row:last-child {
  border-bottom: 0;
}

.graph-category-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #FFFAB3;
  color: #f18a12;
}

.graph-category-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.graph-icon-salud { background: #D8FFBA; color: #41ad36; }
.graph-icon-mercado { background: #F8DBAE; color: #ff8a00; }
.graph-icon-ocio { background: #EBD3FF; color: #7c38b5; }
.graph-icon-comidas { background: #FFF2DD; color: #a87313; }
.graph-icon-transporte { background: #d9f5c9; color: #4f9c47; }
.graph-icon-servicios { background: #fff3a8; color: #9b7c00; }
.graph-icon-mascotas { background: #eadcf4; color: #8157a0; }

.graph-category-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.graph-category-copy strong,
.graph-category-percent {
  font-size: 13px;
}

.graph-category-copy small {
  color: #5f5963;
  font-size: 11px;
}

@media (max-width: 360px) {
  .graphs-screen {
    padding: 60px 20px 16px;
  }

  .graphs-greeting h1 {
    font-size: 16px;
  }

  .graphs-greeting p {
    font-size: 11px;
  }

  .graphs-donut {
    width: 180px;
    height: 180px;
    margin: 10px auto 15px;
  }

  .graphs-total small {
    font-size: 9px;
  }

  .graphs-total strong {
    font-size: 13px;
  }

  .graph-percent {
    font-size: 11px;
  }

  .graphs-breakdown {
    width: min(100%, 205px);
    padding: 3px 8px;
    border-radius: 16px;
  }

  .graph-row {
    min-height: 37px;
    gap: 6px;
  }

  .graph-category-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .graph-category-icon svg {
    width: 15px;
    height: 15px;
  }

  .graph-category-copy strong,
  .graph-category-percent {
    font-size: 10px;
  }

  .graph-category-copy small {
    font-size: 9px;
  }
}

.top-bar.glossary-top-bar {
  height: 60px;
  min-height: 60px;
  padding: 0 24px;
  background: var(--purple);
  color: #fff;
}

.top-bar.glossary-top-bar .topbar-title,
.top-bar.glossary-top-bar .back-button {
  color: #fff;
}

.glossary-lesson-screen {
  padding: 0 30px 20px;
}

.glossary-hero {
  position: relative;
  height: 240px;
  margin: 0 -30px;
  padding: 44px 24px 0;
  overflow: visible;
  background: var(--purple);
  color: #fff;
  text-align: center;
}

.glossary-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto 9px;
  font-size: 22px;
  line-height: 1.2;
}

.glossary-hero p {
  position: relative;
  z-index: 1;
  max-width: 265px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.45;
}

.glossary-hero-mascot {
  position: absolute;
  z-index: 2;
  top: 152px;
  left: 50%;
  width: 160px;
  height: 120px;
  object-fit: contain;
  transform: translateX(-50%);
}

.glossary-wave {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 55px;
}

.glossary-simple-card {
  position: relative;
  z-index: 3;
  width: min(100%, 300px);
  min-height: 112px;
  margin: 57px auto 24px;
  padding: 13px 14px 14px;
  border: 1px solid #e9e6eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 7px rgb(26 19 32 / 19%);
}

.glossary-simple-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #34283d;
  font-size: 13px;
}

.glossary-bulb {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #ffe161;
  box-shadow: 0 2px 4px rgb(26 19 32 / 20%);
  color: #6d4c00;
}

.glossary-bulb svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.glossary-simple-card p {
  margin: 9px 0 0;
  color: #342d39;
  font-size: 13px;
  line-height: 1.45;
}

.glossary-next-button {
  display: flex;
  width: min(100%, 300px);
  min-height: 44px;
  margin: 0 auto;
  border-radius: 24px;
}

@media (max-width: 360px) {
  .glossary-lesson-screen {
    padding-right: 20px;
    padding-left: 20px;
  }

  .glossary-hero {
    margin-right: -20px;
    margin-left: -20px;
    padding-top: 44px;
  }

  .glossary-hero h1 {
    font-size: 16px;
  }

  .glossary-hero p {
    max-width: 190px;
    font-size: 10px;
  }

  .glossary-hero-mascot {
    top: 152px;
    width: 160px;
    height: 120px;
  }

  .glossary-simple-card {
    width: min(100%, 215px);
    min-height: 112px;
    margin-top: 57px;
    padding: 10px 10px 11px;
  }

  .glossary-simple-title {
    gap: 5px;
    font-size: 10px;
  }

  .glossary-bulb {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .glossary-bulb svg {
    width: 14px;
    height: 14px;
  }

  .glossary-simple-card p {
    margin-top: 8px;
    font-size: 10px;
  }

  .glossary-next-button {
    width: min(100%, 215px);
    min-height: 32px;
    margin-top: 29px;
    font-size: 11px;
  }
}

/* Final alignment overrides. */
.alert-preferences-intro-screen .alert-preference-list,
.appearance-settings-screen .appearance-card,
.appearance-settings-screen .text-size-card {
  margin-left: auto;
  margin-right: auto;
}

.nav-item.add-nav .nav-icon {
  display: grid;
  place-items: center;
}

.nav-item.add-nav .nav-icon > span {
  display: block;
  width: auto;
  height: auto;
  font-family: Arial, sans-serif;
  line-height: 1;
  transform: translateY(-1px);
}

/* Final theme overrides must come after the component styles. */
:root[data-theme="dark"] .profile-group,
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .alert-preferences-intro-screen .panel-card,
:root[data-theme="dark"] .reminder-settings-screen .panel-card,
:root[data-theme="dark"] .text-size-card,
:root[data-theme="dark"] .appearance-card,
:root[data-theme="dark"] .glossary-simple-card {
  border-color: #3a3340;
  background: #211b28;
  color: #f5eff8;
  box-shadow: 0 3px 8px rgb(0 0 0 / 35%);
}

:root[data-theme="dark"] .profile-screen,
:root[data-theme="dark"] .profile-screen strong,
:root[data-theme="dark"] .profile-screen button,
:root[data-theme="dark"] .topbar-title,
:root[data-theme="dark"] .top-bar .back-button,
:root[data-theme="dark"] .preference-heading h2,
:root[data-theme="dark"] .text-size-title,
:root[data-theme="dark"] .category-settings-screen .category-label,
:root[data-theme="dark"] .alert-preference-row,
:root[data-theme="dark"] .appearance-choice,
:root[data-theme="dark"] .text-size-choice {
  color: #f5eff8;
}

:root[data-theme="dark"] .profile-group-title,
:root[data-theme="dark"] .preference-heading p,
:root[data-theme="dark"] .alert-intro-note,
:root[data-theme="dark"] .alert-preference-row small,
:root[data-theme="dark"] .profile-help-button,
:root[data-theme="dark"] .glossary-simple-card p {
  color: #cfc5d5;
}

:root[data-theme="dark"] .profile-group .profile-setting,
:root[data-theme="dark"] .alert-preference-row,
:root[data-theme="dark"] .appearance-choice,
:root[data-theme="dark"] .text-size-choice {
  border-bottom-color: #3a3340 !important;
  color: #f5eff8;
}

:root[data-theme="dark"] .profile-setting .setting-value,
:root[data-theme="dark"] .alert-preference-icon,
:root[data-theme="dark"] .category-settings-screen .category-emoji,
:root[data-theme="dark"] .text-size-preview {
  border-color: #624d70;
  background: #302a35;
  color: #f5eff8;
}

:root[data-theme="dark"] .appearance-preview.light-preview {
  border-color: #ffca72;
  background: #ffdda4;
  color: #ff8a00;
}

:root[data-theme="dark"] .glossary-hero {
  background: #74498e;
  color: #fff;
}

:root[data-theme="dark"] .glossary-hero h1,
:root[data-theme="dark"] .glossary-hero p,
:root[data-theme="dark"] .glossary-simple-title,
:root[data-theme="dark"] .glossary-next-button {
  color: #fff;
}

:root[data-theme="dark"] .glossary-next-button {
  border-color: #3a3340;
  background: #6b3787;
}

:root[data-theme="dark"] .nav-item.active .nav-icon {
  border-color: #624d70;
  background: #302a35;
  color: #f5eff8;
}

:root[data-theme="dark"] .nav-item {
  color: #cfc5d5;
}

:root[data-theme="dark"] .nav-item.active {
  color: #e1c8ef;
}

:root[data-text-size="large"] .screen h1,
:root[data-text-size="large"] .screen h2,
:root[data-text-size="large"] .screen h3,
:root[data-text-size="large"] .screen p,
:root[data-text-size="large"] .screen button,
:root[data-text-size="large"] .screen strong,
:root[data-text-size="large"] .screen small,
:root[data-text-size="large"] .screen label {
  font-size: 1.12em;
}

:root[data-text-size="large"] .screen .greeting,
:root[data-text-size="large"] .screen .greeting-subtitle,
:root[data-text-size="large"] .screen .balance-label,
:root[data-text-size="large"] .screen .balance-amount,
:root[data-text-size="large"] .screen .balance-until,
:root[data-text-size="large"] .screen .balance-days,
:root[data-text-size="large"] .topbar-title,
:root[data-text-size="large"] .nav-item:not(.add-nav) > span:last-child {
  font-size: 1.12em !important;
}

/* Large text is a global reading preference, including controls and fields. */
:root[data-text-size="large"] .screen :where(h1, h2, h3, p, button, span, strong, small, label, input, select, textarea, summary) {
  font-size: 1.12em;
}

:root[data-text-size="large"] .screen :where(input, select, textarea) {
  min-height: 1.12em;
}

:root[data-text-size="large"] .top-bar .topbar-title,
:root[data-text-size="large"] .bottom-nav .nav-item > span:last-child {
  font-size: 1.12em !important;
}

/* Keep chart labels independent from the global text-size preference. */
:root[data-text-size="large"] .donut-percent { font-size: 7px !important; }
:root[data-text-size="large"] .graph-percent { font-size: 14px !important; }

/* Fixed navigation slots prevent the active font weight from moving tabs. */
.bottom-nav .nav-item { flex: 1 1 0; width: 20%; min-width: 0; box-sizing: border-box; }
.bottom-nav .nav-item .nav-icon { box-sizing: border-box; flex: 0 0 43px; }

/* Use fixed columns and an inset highlight so the active tab never changes layout. */
.bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); justify-content: initial; }
.bottom-nav .nav-item { width: 100%; }
.nav-item.active .nav-icon { border: 0; box-shadow: inset 0 0 0 1px #a8e4f7; }
:root[data-theme="dark"] .nav-item.active .nav-icon { box-shadow: inset 0 0 0 1px #80629a; }

.reminder-settings-screen .reminder-settings,
.reminder-settings-screen .reminder-save-button { margin-left: auto; margin-right: auto; }

.category-settings-screen .primary-button {
  width: min(100%, 300px);
  margin-left: auto;
  margin-right: auto;
}

:root[data-theme="dark"] .calculator-card,
:root[data-theme="dark"] .calculator-input-card {
  border-color: #3a3340;
  background: #211b28;
  color: #f5eff8;
}
:root[data-theme="dark"] .calculator-card h2,
:root[data-theme="dark"] .calculator-card label,
:root[data-theme="dark"] .calculator-sub-label,
:root[data-theme="dark"] .calculator-mode-button { color: #f5eff8; }
:root[data-theme="dark"] .calculator-input-card .form-field input,
:root[data-theme="dark"] .reminder-settings .reminder-option { background: #302a35; color: #f5eff8; }
:root[data-theme="dark"] .calculator-mode-tabs { background: #302a35; }

/* Center preference layouts consistently on narrow and wide phone screens. */
.appearance-settings-screen .preference-heading,
.appearance-settings-screen .text-size-title,
.appearance-settings-screen .appearance-card,
.appearance-settings-screen .text-size-card {
  width: min(calc(100% - 32px), 345px);
}

.category-settings-screen .category-heading,
.category-settings-screen .setup-category-grid,
.category-settings-screen .form-actions {
  width: min(calc(100% - 32px), 300px);
}

/* Dark mode keeps Mango's purple accent without turning every surface purple. */
:root[data-theme="dark"] .screen h1,
:root[data-theme="dark"] .screen h2,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .setting-row button,
:root[data-theme="dark"] .summary-row,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .category-vector {
  color: #f5eff8;
}

:root[data-theme="dark"] .featured-promotion-card .featured-promotion-brand img {
  opacity: 1;
  filter: none;
}

/* Final dark-state surfaces: the reference uses one continuous black canvas. */
:root[data-theme="dark"] .panel-card,
:root[data-theme="dark"] .summary-card,
:root[data-theme="dark"] .list-card,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .alert-detail-card,
:root[data-theme="dark"] .appearance-card,
:root[data-theme="dark"] .text-size-card,
:root[data-theme="dark"] .profile-group,
:root[data-theme="dark"] .graphs-breakdown,
:root[data-theme="dark"] .currency-converter-box,
:root[data-theme="dark"] .daily-rate-card,
:root[data-theme="dark"] .alert-list-card,
:root[data-theme="dark"] .alert-history-card,
:root[data-theme="dark"] .featured-promotion-card {
  border-color: #303030;
  background: #000;
  box-shadow: none;
}

:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .currency-entry,
:root[data-theme="dark"] .form-row-button,
:root[data-theme="dark"] .calculator-input-card .form-field input {
  border-color: #45404a;
  background: #211b28;
  color: #fff;
}

:root[data-theme="dark"] .graphs-donut::before {
  background: #000;
}

/* Last-pass overrides for the mobile chrome. */
.bottom-nav .nav-item.active .nav-icon {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .top-bar .brand-wordmark,
:root[data-theme="dark"] .top-bar .isotipo-window img {
  filter: brightness(0) invert(1) !important;
}

/* Final dark-mode presentation overrides. */
:root[data-theme="dark"] {
  --purple: #3c0d5b;
  --purple-dark: #3c0d5b;
}
:root[data-theme="dark"] .mango-art img,
:root[data-theme="dark"] .mascot-image,
:root[data-theme="dark"] .mascot-backdrop,
:root[data-theme="dark"] .glossary-hero-mascot,
:root[data-theme="dark"] .preference-mascot img,
:root[data-theme="dark"] .alert-intro-mascot img { filter: none !important; }
:root[data-theme="dark"] .pattern-screen {
  background-color: #211b28 !important;
  background-image: url("manguito elementos/fondollamativo.svg") !important;
  background-blend-mode: screen;
}
:root[data-theme="dark"] .choice-button,
:root[data-theme="dark"] .form-row-button,
:root[data-theme="dark"] .fixed-choice,
:root[data-theme="dark"] .category-icon-choice {
  border-color: #4a3b50 !important;
  background: #302a35 !important;
  color: #f5eff8 !important;
}
:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .glossary-next-button { background: #3c0d5b !important; color: #fff !important; }
.setup-category-grid .category-option.selected .category-emoji,
.setup-category-grid .category-option:focus .category-emoji,
.setup-category-grid .category-option:focus-visible .category-emoji,
.category-settings-screen .category-option .category-emoji {
  outline: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .category-settings-screen .category-option,
:root[data-theme="dark"] .setup-category-grid .category-option {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .glossary-lesson-screen { background: #000 !important; }
:root[data-theme="dark"] .top-bar.glossary-top-bar,
:root[data-theme="dark"] .glossary-hero { background: #3c0d5b !important; }
:root[data-theme="dark"] .glossary-wave path { fill: #000 !important; }
:root[data-theme="dark"] .glossary-simple-card {
  border-color: #4a3b50 !important;
  background: #211b28 !important;
  color: #f5eff8 !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .glossary-simple-title,
:root[data-theme="dark"] .glossary-simple-card p { color: #f5eff8 !important; }
:root[data-theme="dark"] .glossary-simple-card p { color: #f5eff8 !important; }

/* Absolute EOF overrides for the current components. */
.featured-promotion-card.mercado-pago .featured-promotion-brand img {
  width: 150px !important;
  max-width: none !important;
  height: 52px !important;
  object-fit: contain;
  mix-blend-mode: normal !important;
  filter: none !important;
}
.glossary-bulb .category-vector {
  color: #6d4c00 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mercado-pago-vector {
  display: block;
  width: 150px;
  height: 52px;
  overflow: visible;
}

.calculator-result-card img {
  justify-self: end;
  align-self: center;
  object-position: center;
}

.daily-rate-card img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}

.daily-rate-card {
  grid-template-columns: 76px minmax(0, 1fr) !important;
  gap: 6px;
}

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

.promo-mascot-note {
  overflow: hidden;
}

.promo-mascot-note img {
  object-position: center;
  object-fit: contain;
}

.profile-edit-button { color: #3c0d5b !important; background: #fff !important; }
:root[data-theme="dark"] .profile-edit-button { color: #fff !important; background: #3c0d5b !important; border: 0 !important; }
.profile-setting .setting-value { width: auto !important; height: auto !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.reminder-settings .reminder-option,
.fixed-choice { border: 0 !important; border-bottom: 0 !important; background: transparent !important; box-shadow: none !important; }
:root[data-theme="dark"] .reminder-settings .reminder-option,
:root[data-theme="dark"] .fixed-choice { color: #f5eff8 !important; }
:root[data-theme="dark"] .currency-converter-box { border-color: #45404a !important; background: #000 !important; box-shadow: none !important; }
:root[data-theme="dark"] .currency-converter-box input { border: 1px solid #45404a !important; background: #211b28 !important; color: #fff !important; box-shadow: none !important; }
:root[data-theme="dark"] .currency-converter-box label,
:root[data-theme="dark"] .currency-name strong,
:root[data-theme="dark"] .currency-name span:last-child { color: #d9cbe2 !important; }
:root[data-theme="dark"] .currency-swap-button { border-color: #8fd7eb !important; background: #dff6ff !important; color: #3c0d5b !important; box-shadow: none !important; }
:root[data-theme="dark"] .donut-percent { color: #211b28 !important; }
:root[data-theme="dark"] .donut-chart > span { color: #fff !important; }
:root[data-theme="dark"] .featured-promotion-card.mercado-pago .featured-promotion-brand img { width: 168px !important; max-width: none !important; height: 72px !important; mix-blend-mode: multiply; filter: saturate(1.35) brightness(1.35); }
.glossary-bulb .category-vector { width: 16px !important; height: 16px !important; fill: currentColor; stroke: none; }
:root[data-theme="dark"] .fixed-choice,
:root[data-theme="dark"] .reminder-settings .reminder-option {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 0 !important;
}

/* True EOF override: the swap control follows the purple Figma treatment. */
html:root[data-theme="dark"] .currency-swap-button,
html:root[data-theme="light"] .currency-swap-button,
html .currency-swap-button {
  width: 24px !important;
  height: 24px !important;
  margin: 10px auto !important;
  border: 0 !important;
  border-color: #3c0d5b !important;
  background: #3c0d5b !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* True EOF category-detail layout overrides. */
.category-asset-servicios-clean {
  display: grid;
  width: 76px !important;
  height: 75px !important;
  place-items: center;
  border-radius: 50%;
  background: #fff3a8;
  color: #7c4d03;
}

.category-asset-servicios-clean .category-vector {
  width: 38px !important;
  height: 38px !important;
  color: inherit !important;
}

.category-detail-list { gap: 14px !important; }
.subcategory-row {
  grid-template-columns: 38px minmax(0, 1fr) 28px !important;
  column-gap: 12px !important;
  min-height: 40px !important;
}
.subcategory-icon { width: 34px !important; height: 34px !important; }
.subcategory-icon .subcategory-vector,
.subcategory-icon .category-vector {
  width: 18px !important;
  height: 18px !important;
  color: #8b5c00 !important;
}
.subcategory-row strong { font-size: 13px !important; font-weight: 600 !important; }
.subcategory-chevron {
  justify-self: center !important;
  width: 28px;
  color: #71667a !important;
  font-size: 22px !important;
  text-align: center !important;
}

/* Final match to the Figma category-detail frame. */
.category-detail-screen { width: min(100%, 331px) !important; max-width: 331px !important; margin-inline: auto !important; box-sizing: border-box; padding: 18px 24px 34px !important; }
.category-detail-back { display: none !important; }
.category-detail-hero { margin-top: 16px !important; }
.category-detail-hero .category-asset { width: 64px !important; height: 64px !important; }
.category-detail-hero .category-asset-servicios-original { width: 76px !important; height: 75px !important; }
.category-detail-hero .category-asset-servicios-original img { position: absolute; top: 0; left: -84px; width: 281px !important; max-width: none !important; height: 97px !important; }
.subcategory-question { width: 100% !important; margin: 64px 0 20px !important; text-align: left !important; }
.category-detail-list { width: 100% !important; gap: 10px !important; }
.subcategory-row { grid-template-columns: 34px minmax(0, 1fr) 28px !important; min-height: 42px !important; column-gap: 10px !important; }
.subcategory-asset {
  display: block;
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  object-position: center;
}
.subcategory-row strong { text-align: left !important; }
.subcategory-chevron { justify-self: end !important; text-align: right !important; }
.featured-promotion-card .promo-validity,
.featured-promotion-card .promo-conditions-button {
  display: grid !important;
  width: 118px !important;
  min-width: 118px !important;
  height: 30px !important;
  min-height: 30px !important;
  box-sizing: border-box !important;
  place-items: center !important;
  padding: 0 8px !important;
  line-height: 1 !important;
  text-align: center !important;
}

.setup-category-grid .category-asset-servicios-original { position: relative; display: block; width: 76px !important; height: 75px !important; overflow: hidden; border-radius: 50%; }
.setup-category-grid .category-asset-servicios-original img { position: absolute; top: 0; left: -84px; width: 281px !important; max-width: none !important; height: 97px !important; }

.subcategory-picker-screen {
  width: min(100%, 331px) !important;
  max-width: 331px !important;
  margin-inline: auto !important;
  padding: 20px 24px 34px !important;
}

.subcategory-picker-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 18px;
}

.subcategory-picker-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--category-color, #fff3a8);
}

.subcategory-picker-icon .category-vector {
  width: 34px;
  height: 34px;
}

.subcategory-picker-heading h1 {
  margin: 0;
  font-size: 21px;
}

.subcategory-picker-screen > h2 {
  margin: 62px 0 20px;
  font-size: 16px;
  text-align: left;
}

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

.subcategory-form-field {
  margin-top: 12px;
}

.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 20px;
}

.quick-action {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.quick-action span {
  margin-right: 5px;
  font-size: 17px;
}

.quick-action-expense {
  background: #3c0d5b;
  color: #fff;
}

.quick-action-income {
  background: #d8ffba;
  color: #237a1c;
}

/* El selector de categorías usa el mismo círculo que las otras categorías.
   El icono de Servicios no debe crecer ni desbordar su tarjeta. */
.category-grid .category-option .category-emoji .category-asset-servicios-clean {
  display: grid !important;
  width: 62px !important;
  height: 61px !important;
  min-width: 62px !important;
  min-height: 61px !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #fff3a8 !important;
  color: #7c4d03 !important;
  box-shadow: none !important;
}

.category-grid .category-option .category-emoji .category-asset-servicios-clean .category-vector {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  color: inherit !important;
  fill: none !important;
  stroke: currentColor !important;
}

/* Servicios debe usar el SVG original de Manguito, recortado sin el texto
   que forma parte del export de Figma. */
.category-grid .category-option .category-emoji .category-asset-servicios-original,
.category-detail-hero .category-asset-servicios-original,
.subcategory-picker-icon .category-asset-servicios-original {
  position: relative !important;
  display: block !important;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  min-height: 62px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #fff780 !important;
}

.category-grid .category-option .category-emoji .category-asset-servicios-original img,
.category-detail-hero .category-asset-servicios-original img,
.subcategory-picker-icon .category-asset-servicios-original img {
  position: absolute !important;
  top: -2px !important;
  left: -91px !important;
  width: 281px !important;
  height: 97px !important;
  max-width: none !important;
  object-fit: fill !important;
}

/* Recitales sí tiene un SVG entregado por diseño; no usar el fallback genérico. */
.subcategory-icon .subcategory-asset {
  display: block;
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
  object-position: center;
}

/* Ocio usa la paleta lila de su categoría, no la amarilla de Servicios. */
.category-detail-ocio .subcategory-icon,
.subcategory-picker-ocio .subcategory-icon {
  background: #ebd3ff !important;
  color: #4b126d !important;
}

.category-detail-ocio .subcategory-icon .subcategory-vector,
.subcategory-picker-ocio .subcategory-icon .subcategory-vector {
  color: #4b126d !important;
  fill: #4b126d !important;
  stroke: #4b126d !important;
}

/* Alquiler usa la casita original de Vivienda, no el fallback lineal. */
.subcategory-icon .subcategory-category-asset {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
}

/* Responsive pass: keep every screen inside the phone viewport.  Most of the
   application is rendered dynamically, so these shared rules intentionally
   cover both existing and future screens. */
@media (max-width: 480px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .top-bar,
  .screen {
    width: 100%;
    max-width: 405px;
    min-width: 0;
  }

  .screen {
    padding-right: clamp(16px, 7.7vw, 30px);
    padding-left: clamp(16px, 7.7vw, 30px);
  }

  .screen > *,
  .screen-header,
  .screen-header > *,
  .preference-heading,
  .preference-heading > *,
  .form-stack,
  .form-field,
  .panel-card,
  .list-card,
  .tool-card,
  .setting-row,
  .transaction-row,
  .alert-list-row,
  .subcategory-row {
    min-width: 0;
    max-width: 100%;
  }

  .screen h1,
  .screen h2,
  .screen h3,
  .screen p,
  .screen strong,
  .screen small,
  .screen label,
  .screen button,
  .topbar-title {
    overflow-wrap: anywhere;
  }

  .screen img,
  .screen svg {
    max-width: 100%;
  }

  .top-bar {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .top-bar.home-top-bar {
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .top-bar.root-tab-top-bar:not(.home-top-bar) .brand {
    right: max(16px, env(safe-area-inset-right));
  }

  .top-bar.home-top-bar .brand {
    max-width: 142px;
  }

  .bottom-nav {
    width: 100%;
    max-width: 100%;
    padding-right: max(4px, env(safe-area-inset-right));
    padding-left: max(4px, env(safe-area-inset-left));
  }

  .bottom-nav .nav-item {
    min-width: 0;
    overflow: hidden;
    padding-right: 2px;
    padding-left: 2px;
  }

  .bottom-nav .nav-item > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav .nav-item .nav-icon {
    flex-basis: 36px;
  }

  .dashboard-screen .summary-grid,
  .graphs-screen .graph-row,
  .transaction-row,
  .alert-list-row {
    min-width: 0;
  }

  .dashboard-screen .summary-list,
  .dashboard-screen .summary-row,
  .dashboard-screen .summary-label,
  .transaction-row .row-info,
  .graph-category-copy,
  .alert-list-copy,
  .alert-list-value {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-screen .summary-row strong,
  .transaction-row > strong,
  .alert-list-value > strong {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .dashboard-screen .summary-label,
  .transaction-row .row-info strong,
  .graph-category-copy strong,
  .alert-list-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-grid,
  .setup-category-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-option,
  .category-label,
  .category-name {
    min-width: 0;
    max-width: 100%;
  }

  .category-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-detail-screen,
  .subcategory-picker-screen {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: clamp(16px, 7.7vw, 24px) !important;
    padding-left: clamp(16px, 7.7vw, 24px) !important;
  }

  .category-detail-hero,
  .subcategory-picker-heading {
    min-width: 0;
  }

  .subcategory-row {
    grid-template-columns: 34px minmax(0, 1fr) 24px !important;
  }

  .subcategory-row strong {
    overflow-wrap: anywhere;
  }

  .featured-promotion-card {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(78px, 34%);
  }

  .featured-promotion-brand,
  .featured-promotion-offer,
  .promo-validity,
  .promo-conditions-button {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .promo-validity,
  .promo-conditions-button {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-card,
  .alerts-screen .calendar-card {
    width: 100%;
    max-width: 100%;
  }

  .calendar-grid {
    gap: 6px 2px;
  }

  .calendar-day,
  .calendar-empty {
    width: min(34px, 100%);
    height: min(34px, 100%);
    justify-self: center;
  }

  .graphs-screen {
    padding-top: 32px;
  }

  .graphs-donut {
    width: min(250px, 72vw);
    height: min(250px, 72vw);
  }

  .graphs-breakdown {
    width: 100%;
    max-width: 300px;
  }

  .graph-percent {
    transform: rotate(var(--percent-angle)) translateY(calc(min(36vw, 99px) * -1)) rotate(calc(var(--percent-angle) * -1));
  }

  .glossary-lesson-screen {
    padding-right: clamp(16px, 7.7vw, 30px);
    padding-left: clamp(16px, 7.7vw, 30px);
  }

  .glossary-hero {
    width: calc(100% + clamp(32px, 15.4vw, 60px));
    max-width: none;
    margin-right: clamp(-30px, -7.7vw, -16px);
    margin-left: clamp(-30px, -7.7vw, -16px);
  }

  /* These two sections intentionally bleed to the phone edges.  Without an
     explicit width, the negative margins reduce their auto width and leave a
     visible white strip on the right. */
  .profile-screen .profile-hero {
    width: calc(100% + clamp(32px, 15.4vw, 70px));
    max-width: none;
    margin-right: clamp(-35px, -7.7vw, -16px);
    margin-left: clamp(-35px, -7.7vw, -16px);
  }

  .glossary-simple-card,
  .glossary-next-button {
    width: 100%;
    max-width: 300px;
  }

  .currency-converter-box,
  .daily-rate-card,
  .calculator-result-card,
  .calculator-input-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .daily-rate-card > *,
  .calculator-result-card > * {
    min-width: 0;
  }
}

/* Restore the original artwork treatment and only fix the page-level scroll
   space.  The assets below are intentionally not redrawn or replaced. */
@media (max-width: 480px) {
  .app-content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  .top-bar.home-top-bar .brand-wordmark {
    content: revert !important;
    top: -38px !important;
    left: -5px !important;
    width: 155px !important;
    height: auto !important;
  }

  .bottom-nav .nav-item.add-nav {
    position: relative !important;
    display: flex !important;
    height: 56px !important;
    min-height: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .bottom-nav .nav-item.add-nav .nav-icon {
    position: relative !important;
    inset: auto !important;
    width: 43px !important;
    height: 43px !important;
    flex: 0 0 43px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .tools-screen .tool-card {
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  .tools-screen .tool-card-icon {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    overflow: hidden !important;
  }

  .tools-screen .tool-card-image {
    width: 44px !important;
    height: 44px !important;
    max-width: none !important;
    position: relative !important;
  }

  .tools-screen .tool-calculators-image {
    left: 0 !important;
    top: 0 !important;
    transform: scale(3) translateX(4px) !important;
  }

  .tools-screen .tool-currency-image {
    left: -79px !important;
    top: -72px !important;
    transform: none !important;
  }

  .glossary-wave {
    display: block !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 55px !important;
  }

  .promotions-screen {
    padding-right: 36px !important;
    padding-left: 36px !important;
  }

  .featured-promotion-card {
    min-height: 112px !important;
    grid-template-columns: minmax(0, 1fr) 90px !important;
    grid-template-rows: 30px 1fr 28px !important;
    gap: 4px 6px !important;
    padding: 8px 11px !important;
  }

  .featured-promotion-card .featured-promotion-brand {
    display: block !important;
    width: auto !important;
    height: 30px !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    overflow: hidden !important;
  }

  .featured-promotion-card .featured-promotion-brand img {
    display: block !important;
    width: auto !important;
    max-width: 100px !important;
    height: 28px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .featured-promotion-offer > span:first-child {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .featured-promotion-card .promo-validity,
  .featured-promotion-card .promo-conditions-button {
    width: 88px !important;
    min-width: 88px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  .featured-promotion-card .promo-validity {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .featured-promotion-card .promo-conditions-button {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }
}

/* Final mobile component cleanup.  These rules intentionally come last so
   they win over the older visual experiments above. */
@media (max-width: 480px) {
  /* Use the prepared raster logo instead of cropping the oversized SVG
     export.  The export contains a large transparent canvas and was the
     reason the wordmark appeared cut off. */
  .top-bar.home-top-bar .brand-wordmark {
    content: url("logo-svg.png");
    top: -28px;
    left: -1px;
    width: 170px;
    height: auto;
  }

  .top-bar.home-top-bar .brand {
    width: 156px;
    height: 45px;
    margin-top: 30px;
    max-width: none;
  }

  .top-bar.home-top-bar .brand-wordmark {
    top: -42px;
    left: 4px;
    width: 170px;
  }

  /* The converter artwork is a transparent PNG with the illustration in its
     lower-right area; keep the crop, but do not let the global image rule
     shrink the source to the 54px icon slot before it is positioned. */
  .tool-card-icon {
    position: relative;
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px !important;
    overflow: hidden;
  }

  .tools-screen .tool-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .tool-card-icon .tool-calculators-image {
    width: 190px !important;
    height: 190px !important;
    max-width: none !important;
    position: absolute;
    left: -58px;
    top: -60px;
    object-fit: contain;
    transform: none !important;
  }

  .tool-card-icon .tool-currency-image {
    width: 190px !important;
    height: 190px !important;
    max-width: none !important;
    position: absolute;
    left: -102px;
    top: -80px;
    object-fit: contain;
  }

  .bottom-nav .nav-item.add-nav .nav-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    border-radius: 50% !important;
    background: var(--purple) !important;
    color: #fff !important;
    margin: 0 !important;
    position: relative;
    top: -5px;
    left: auto;
    transform: none;
    box-shadow: 0 2px 5px rgb(45 14 70 / 24%) !important;
  }

  .bottom-nav .nav-item.add-nav {
    overflow: visible !important;
    align-items: center !important;
    min-height: 56px !important;
    height: 56px !important;
    justify-content: center !important;
  }

  .bottom-nav .nav-item.add-nav .nav-icon > span {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-2px);
  }

  .featured-promotion-card {
    min-height: 115px !important;
    grid-template-columns: minmax(0, 1fr) 108px !important;
    grid-template-rows: 45px 28px 28px !important;
    align-items: center !important;
    gap: 0 8px !important;
    padding: 7px 10px !important;
  }

  .featured-promotion-card .featured-promotion-brand {
    display: flex !important;
    width: 100% !important;
    height: 45px !important;
    min-width: 0 !important;
    align-items: center !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    overflow: hidden !important;
  }

  .featured-promotion-card .featured-promotion-brand img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: 43px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }

  .featured-promotion-card.mercado-pago .featured-promotion-brand img {
    width: 142px !important;
    max-width: 142px !important;
    height: 45px !important;
  }

  .featured-promotion-card.dia .featured-promotion-brand img {
    width: 86px !important;
    max-width: 86px !important;
    height: 43px !important;
  }

  .featured-promotion-card.cuenta-dni .featured-promotion-brand img {
    width: 142px !important;
    max-width: 142px !important;
    height: 43px !important;
  }

  .featured-promotion-offer > span:first-child {
    min-width: 0 !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    overflow: hidden;
  }

  .featured-promotion-offer > span:first-child strong,
  .featured-promotion-offer > span:first-child small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .featured-promotion-card .promo-validity {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 108px !important;
    min-width: 108px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  .featured-promotion-card .promo-conditions-button {
    grid-column: 2 !important;
    grid-row: 3 !important;
    width: 108px !important;
    min-width: 108px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  .glossary-lesson-screen {
    overflow-x: hidden;
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .glossary-hero {
    overflow: hidden;
  }

  .glossary-wave {
    display: none !important;
  }
}

/* Last corrective override: keep the mobile chrome in normal document flow.
   The previous absolute positioning made the add button's grid row collapse
   and cropped the brand and tool illustrations. */
@media (max-width: 480px) {
  .top-bar.home-top-bar .brand-wordmark {
    content: url("logo-svg.png") !important;
    top: -58px !important;
    left: -1px !important;
    width: 170px !important;
    height: auto !important;
  }

  .bottom-nav .nav-item.add-nav {
    position: relative !important;
    display: flex !important;
    height: 56px !important;
    min-height: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .bottom-nav .nav-item.add-nav .nav-icon {
    position: relative !important;
    inset: auto !important;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .tools-screen .tool-card-icon {
    position: relative !important;
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    overflow: hidden !important;
  }

  .tools-screen .tool-calculators-image,
  .tools-screen .tool-currency-image {
    position: absolute !important;
    display: block !important;
    max-width: none !important;
    transform: none !important;
  }

  .tools-screen .tool-calculators-image {
    width: 190px !important;
    height: 190px !important;
    left: -58px !important;
    top: -60px !important;
  }

  .tools-screen .tool-currency-image {
    width: 190px !important;
    height: 190px !important;
    left: -102px !important;
    top: -80px !important;
  }

  .glossary-lesson-screen,
  .glossary-hero {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .tools-screen .tool-card-icon .tool-inline-icon {
    display: block !important;
    width: 46px !important;
    height: 46px !important;
    max-width: none !important;
    flex: 0 0 46px !important;
    transform: none !important;
  }
}

/* Revert only the experimental crop rules above. */
@media (max-width: 480px) {
  .app-content { padding-bottom: calc(160px + env(safe-area-inset-bottom)) !important; }
  .dashboard-screen { padding-bottom: 90px !important; }
  .dashboard-screen { margin-bottom: 110px !important; }
  .dashboard-screen .list-card:last-of-type { margin-bottom: 80px !important; }

  .top-bar.home-top-bar .brand-wordmark {
    content: revert !important;
    top: -38px !important;
    left: -5px !important;
    width: 155px !important;
    height: auto !important;
  }

  .bottom-nav .nav-item.add-nav {
    position: relative !important;
    height: 56px !important;
    min-height: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .bottom-nav .nav-item.add-nav .nav-icon {
    position: relative !important;
    inset: auto !important;
    width: 43px !important;
    height: 43px !important;
    flex: 0 0 43px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .tools-screen .tool-card {
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  .tools-screen .tool-card-icon {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    overflow: hidden !important;
  }

  .tools-screen .tool-card-image {
    width: 44px !important;
    height: 44px !important;
    max-width: none !important;
    position: relative !important;
  }

  .tools-screen .tool-calculators-image {
    left: 0 !important;
    top: 0 !important;
    transform: scale(3) translateX(4px) !important;
  }

  .tools-screen .tool-currency-image {
    left: -79px !important;
    top: -72px !important;
    transform: none !important;
  }

  .glossary-wave {
    display: block !important;
    bottom: 0 !important;
    height: 55px !important;
  }
}

/* Restauración final de assets y geometría móvil */
@media (max-width: 480px) {
  .top-bar.home-top-bar .brand {
    width: 142px !important;
    height: 42px !important;
    margin: 35px 0 0 !important;
    max-width: none !important;
  }

  .top-bar.home-top-bar .brand-wordmark {
    content: revert !important;
    top: -38px !important;
    left: -5px !important;
    width: 155px !important;
    max-width: none !important;
    height: auto !important;
  }

  .bottom-nav .nav-item.add-nav {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .bottom-nav .nav-item.add-nav .nav-icon {
    position: relative !important;
    inset: auto !important;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .bottom-nav .nav-item.add-nav .nav-icon > span {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 28px !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
  }

  .tools-screen .tool-card-icon {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    overflow: hidden !important;
  }

  /* Preserve the original PNGs while cropping only their transparent canvas. */
  .tools-screen .tool-calculators-image {
    position: absolute !important;
    width: 150px !important;
    height: 150px !important;
    left: -43px !important;
    top: -48px !important;
    max-width: none !important;
    transform: none !important;
  }

  .tools-screen .tool-currency-image {
    position: absolute !important;
    width: 190px !important;
    height: 190px !important;
    left: -98px !important;
    top: -92px !important;
    max-width: none !important;
    transform: none !important;
  }

  .featured-promotion-card.cuenta-dni .featured-promotion-brand {
    height: 40px !important;
    min-height: 40px !important;
    overflow: hidden !important;
    align-items: center !important;
  }

  .featured-promotion-card.cuenta-dni .featured-promotion-brand img {
    width: 132px !important;
    max-width: 132px !important;
    height: 39px !important;
    min-height: 39px !important;
    flex: 0 0 132px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
}

/* Glosario: the lesson is one continuous screen; do not clip the mascot or
   create a second visible frame/scrollbar inside the phone preview. */
@media (max-width: 480px) {
  html,
  body {
    overflow: hidden !important;
  }

  .app-content {
    scrollbar-width: none !important;
  }

  .app-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .glossary-lesson-screen {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .glossary-hero {
    box-sizing: border-box !important;
    width: calc(100% + 60px) !important;
    max-width: none !important;
    margin-right: -30px !important;
    margin-left: -30px !important;
    overflow: visible !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }
}

/* The base stylesheet reserves a 700px phone shell for short windows. That
   makes the glossary look like a clipped page at mobile heights. */
@media (max-width: 480px) and (max-height: 700px) {
  .app-shell {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  .app-content {
    min-height: 0 !important;
  }

  .glossary-lesson-screen {
    min-height: 0 !important;
    flex: 0 0 auto !important;
    padding-bottom: 20px !important;
  }
}

/* Final layout corrections for the phone-sized application screens. */
.pattern-screen {
  min-height: 100%;
  background-position: center center;
  background-size: 100% 100%;
}

.tool-card-icon .tool-graphs-image {
  transform: scale(1.18);
}

.featured-promotion-card .featured-promotion-brand {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.featured-promotion-card .featured-promotion-brand img {
  object-position: center !important;
}

.calculator-screen {
  padding-top: 24px;
}

.calculator-screen .subscreen-description {
  max-width: 320px;
  margin: 0 auto 16px;
  text-align: center;
}

.calculator-screen .calculator-card {
  width: min(100%, 340px);
}

.transaction-row .row-emoji {
  overflow: hidden;
}

.transaction-row .row-emoji .category-asset {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.transaction-row .row-emoji .subcategory-asset,
.transaction-row .row-emoji .subcategory-category-asset {
  display: block;
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  object-position: center;
}

.transaction-row .row-emoji .subcategory-vector,
.transaction-row .row-emoji .category-vector {
  display: block;
  width: 22px !important;
  height: 22px !important;
}

:root[data-text-size="large"] .screen h1,
:root[data-text-size="large"] .screen h2,
:root[data-text-size="large"] .screen h3,
:root[data-text-size="large"] .screen p,
:root[data-text-size="large"] .screen button,
:root[data-text-size="large"] .screen strong,
:root[data-text-size="large"] .screen small:not(.donut-percent):not(.graph-percent),
:root[data-text-size="large"] .screen label,
:root[data-text-size="large"] .topbar-title,
:root[data-text-size="large"] .nav-item:not(.add-nav) > span:last-child {
  font-size: 1.06em !important;
}

:root[data-text-size="large"] .donut-percent {
  font-size: 7px !important;
}

:root[data-text-size="large"] .graph-percent {
  font-size: 14px !important;
}

@media (max-width: 480px) {
  .top-bar.home-top-bar .brand {
    width: 186px !important;
    height: 48px !important;
    margin-top: 35px !important;
  }

  .top-bar.home-top-bar .brand-wordmark {
    top: -38px !important;
    left: 0 !important;
    width: 180px !important;
    max-width: none !important;
  }

  .dashboard-screen .summary-grid {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 8px;
  }

  .dashboard-screen .donut-chart {
    width: 82px;
    height: 82px;
  }

  .dashboard-screen .donut-chart > span {
    width: 52px;
    height: 52px;
  }

  .alerts-screen .calendar-card {
    padding: 12px clamp(10px, 4vw, 18px) 14px;
  }

  .alerts-screen .calendar-grid {
    gap: clamp(5px, 1.8vw, 9px) 1px;
  }

  .alerts-screen .calendar-day,
  .alerts-screen .calendar-empty {
    width: 100%;
    max-width: 38px;
    height: auto;
    aspect-ratio: 1;
  }

  .featured-promotion-card .featured-promotion-brand {
    justify-content: center !important;
  }

  .tool-card-icon .tool-graphs-image {
    transform: scale(1.18) !important;
  }
}

@media (max-width: 360px) {
  .dashboard-screen .summary-grid {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 6px;
  }

  .dashboard-screen .donut-chart {
    width: 76px;
    height: 76px;
  }

  .dashboard-screen .donut-chart > span {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .featured-promotion-card {
    min-height: 114px !important;
    grid-template-rows: 40px 30px 30px !important;
  }

  .featured-promotion-card .featured-promotion-brand {
    height: 40px !important;
    min-height: 40px !important;
  }

  .featured-promotion-card .featured-promotion-brand img {
    width: auto !important;
    max-width: 128px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  .featured-promotion-card.mercado-pago .featured-promotion-brand img,
  .featured-promotion-card.cuenta-dni .featured-promotion-brand img {
    width: 120px !important;
    max-width: 120px !important;
    height: 30px !important;
    min-height: 30px !important;
    flex-basis: 120px !important;
  }

  .featured-promotion-card.dia .featured-promotion-brand img {
    width: 76px !important;
    max-width: 76px !important;
    height: 30px !important;
  }

  .featured-promotion-card .promo-conditions-button {
    width: 108px !important;
    min-width: 108px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }
}

/* Stable geometry for the branded and category-management screens. */
.pattern-screen {
  position: relative;
  isolation: isolate;
  animation: none !important;
  background: transparent !important;
}

.pattern-screen::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #fff url("manguito elementos/fondollamativo.svg") center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.subcategory-management-screen,
.category-detail-screen {
  width: min(100%, 405px);
  margin-inline: auto;
}

.subcategory-management-list {
  display: grid;
  width: min(100%, 345px);
  gap: 8px;
  margin: 18px auto 24px;
}

.subcategory-management-row {
  display: grid;
  min-width: 0;
  min-height: 54px;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #efedf0;
  border-radius: 12px;
  background: #fff;
}

.subcategory-management-row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.subcategory-management-row .subcategory-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #f2eafa;
}

.subcategory-remove-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff0ef;
  color: #a32222;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.subcategory-form {
  width: min(100%, 345px);
  margin: 0 auto;
}

.subcategory-icon-picker .category-icon-choice {
  width: 42px;
  height: 42px;
  color: var(--purple);
}

.subcategory-icon-picker .category-vector {
  width: 22px;
  height: 22px;
}

.subcategory-manage-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #e8e1eb;
  border-radius: 10px;
  background: #fff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.featured-promotions {
  width: min(100%, 345px);
  margin-inline: auto;
}

.promotions-screen {
  padding-right: clamp(16px, 7vw, 28px) !important;
  padding-left: clamp(16px, 7vw, 28px) !important;
}

.featured-promotion-card {
  width: 100%;
  min-width: 0;
  min-height: 126px !important;
  grid-template-columns: minmax(0, 1fr) 108px !important;
  grid-template-rows: 40px 40px 30px !important;
  gap: 0 8px !important;
  padding: 7px 10px !important;
  border-radius: 14px;
}

.featured-promotion-card .featured-promotion-brand {
  display: flex !important;
  width: 100% !important;
  height: 40px !important;
  min-width: 0;
  align-items: center;
  justify-content: flex-start !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  overflow: hidden;
}

.featured-promotion-card .featured-promotion-brand img,
.featured-promotion-card.mercado-pago .featured-promotion-brand img,
.featured-promotion-card.dia .featured-promotion-brand img,
.featured-promotion-card.cuenta-dni .featured-promotion-brand img {
  width: auto !important;
  max-width: 132px !important;
  height: 34px !important;
  min-height: 0 !important;
  max-height: 34px !important;
  flex: 0 1 auto !important;
  object-fit: contain !important;
  object-position: left center !important;
}

html:root[data-theme="dark"] .featured-promotion-card .featured-promotion-brand img,
html:root[data-theme="dark"] .featured-promotion-card.mercado-pago .featured-promotion-brand img {
  width: auto !important;
  max-width: 132px !important;
  height: 34px !important;
  min-height: 0 !important;
  max-height: 34px !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.featured-promotion-offer > span:first-child {
  min-width: 0;
  align-self: center;
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.featured-promotion-offer > span:first-child strong,
.featured-promotion-offer > span:first-child small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-promotion-card .promo-validity,
.featured-promotion-card .promo-conditions-button {
  width: 108px !important;
  min-width: 108px !important;
  height: 28px !important;
  min-height: 28px !important;
  grid-column: 2 !important;
  justify-self: end !important;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-promotion-card .promo-validity {
  grid-row: 2 !important;
  padding: 6px 5px;
  font-size: 8px;
}

.featured-promotion-card .promo-conditions-button {
  grid-row: 3 !important;
  padding: 0 5px !important;
  font-size: 9px;
}

:root[data-text-size="large"] .promotions-screen .featured-promotion-card .promo-conditions-button,
:root[data-text-size="large"] .promotions-screen .featured-promotion-card .promo-validity {
  font-size: 9px !important;
}

:root[data-text-size="large"] .promotions-screen .featured-promotion-offer strong {
  font-size: 18px !important;
}

:root[data-text-size="large"] .screen.promotions-screen .featured-promotion-offer small:not(.donut-percent):not(.graph-percent) {
  font-size: 11px !important;
  line-height: 1.15;
}

:root[data-theme="dark"] .pattern-screen::before {
  background-color: #211b28;
}

@media (max-width: 480px) {
  .top-bar.home-top-bar .brand {
    width: 186px !important;
    height: 44px !important;
    margin-top: 12px !important;
    overflow: hidden;
  }

  .top-bar.home-top-bar .brand-wordmark {
    top: -42px !important;
    left: 0 !important;
    width: 180px !important;
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .top-bar.home-top-bar {
    padding-left: clamp(22px, calc(7.7vw + 5px), 35px) !important;
  }

  .top-bar.home-top-bar .brand {
    width: min(186px, calc(100vw - 40px)) !important;
    height: auto !important;
    margin: 8px 0 0 !important;
    overflow: visible !important;
  }

  .top-bar.home-top-bar .brand-wordmark {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    content: normal !important;
    object-fit: contain;
    transform: none !important;
  }
}

@media (max-width: 360px) {
  .top-bar.home-top-bar {
    padding-left: clamp(22px, calc(7.7vw + 5px), 25px) !important;
  }
}

.category-form .category-icon-picker {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 42px));
  justify-content: center;
  gap: clamp(6px, 2.5vw, 10px);
}

.category-form .category-icon-choice {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  place-items: center !important;
  padding: 0 !important;
}

.category-form .category-icon-choice .category-vector {
  display: block;
  width: 23px !important;
  height: 23px !important;
  margin: 0;
}

.category-form .category-icon-choice.custom-category-study { color: #7b4e00 !important; }
.category-form .category-icon-choice.custom-category-work { color: #3c0d5b !important; }
.category-form .category-icon-choice.custom-category-savings { color: #288b21 !important; }
.category-form .category-icon-choice.custom-category-alerts { color: #7b4e00 !important; }
.category-form .category-icon-choice .category-vector {
  color: inherit !important;
  stroke: currentColor !important;
}

.tools-screen .tool-card {
  grid-template-columns: 52px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
}

.tools-screen .tool-card-icon {
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  place-items: center !important;
  overflow: hidden !important;
}

:root[data-theme="dark"] .top-bar.home-top-bar .brand-wordmark {
  filter: brightness(0) invert(1) !important;
}

:root[data-theme="dark"] .tools-screen .tool-card-copy small {
  color: #ded6e5 !important;
}

:root[data-theme="dark"] .graphs-breakdown .graph-row,
:root[data-theme="dark"] .graphs-breakdown .graph-category-copy strong,
:root[data-theme="dark"] .graphs-breakdown .graph-category-percent {
  border-bottom-color: #3a3340;
  color: #f5eff8 !important;
}

:root[data-theme="dark"] .graphs-breakdown .graph-category-copy small {
  color: #cfc5d5 !important;
}

:root[data-theme="dark"] .alert-list-row,
:root[data-theme="dark"] .alert-list-copy strong,
:root[data-theme="dark"] .alert-list-value strong,
:root[data-theme="dark"] .due-row,
:root[data-theme="dark"] .due-row strong,
:root[data-theme="dark"] .form-field label,
:root[data-theme="dark"] .field-label {
  color: #f5eff8 !important;
}

:root[data-theme="dark"] .alert-list-copy small,
:root[data-theme="dark"] .due-row small {
  color: #cfc5d5 !important;
}

:root[data-theme="dark"] .alert-list-value button {
  color: #d7b7ed !important;
}

:root[data-theme="dark"] .top-bar .brand-wordmark {
  filter: brightness(0) invert(1) !important;
}

:root[data-theme="dark"] .top-bar {
  background: transparent !important;
}

:root[data-theme="dark"] .featured-promotion-card .featured-promotion-brand {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

:root[data-theme="dark"] .transaction-row .row-emoji .category-vector,
:root[data-theme="dark"] .category-grid .category-emoji .category-vector {
  color: #3c0d5b !important;
  fill: none !important;
  stroke: #3c0d5b !important;
}

:root[data-theme="dark"] .category-form-icon .category-vector {
  color: #f5eff8 !important;
  stroke: #f5eff8 !important;
}

:root[data-theme="dark"] .transaction-row .row-info strong,
:root[data-theme="dark"] .transaction-row .row-info small,
:root[data-theme="dark"] .transaction-row > strong.expense {
  color: #f5eff8 !important;
}

:root[data-theme="dark"] .transaction-row > strong.income {
  color: #8fe0a2 !important;
}

:root[data-theme="dark"] .dashboard-screen .greeting-subtitle,
:root[data-theme="dark"] .graphs-greeting p,
:root[data-theme="dark"] .screen-header p,
:root[data-theme="dark"] .preference-heading p,
:root[data-theme="dark"] .text-link {
  color: #cfc5d5 !important;
}

.top-bar.home-top-bar {
  display: none !important;
}

.dashboard-brand {
  display: flex;
  width: min(186px, 100%);
  height: 48px;
  align-items: center;
  margin: 0 5px 8px;
}

.dashboard-brand img {
  display: block;
  width: 100%;
  max-width: 186px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

:root[data-theme="dark"] .dashboard-brand img {
  filter: brightness(0) invert(1);
}

html:root[data-theme="dark"] .graphs-screen .graph-percent {
  color: #2b2233 !important;
  text-shadow: 0 0 2px rgb(255 255 255 / 55%);
}
