@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --papel: #f3eee3;
  --bosque: #162f2b;
  --hoja: #34644f;
  --salvia: #d9ddcc;
  --arcilla: #a44438;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--bosque);
  background: var(--papel);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
input:focus,
select:focus {
  outline: 3px solid var(--hoja);
  outline-offset: 2px;
}
input,
select {
  border: 1px solid #cad8df;
  border-radius: 9px;
  padding: 9px 11px;
  min-height: 42px;
  background: #fff;
  color: var(--bosque);
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--bosque);
  color: #fff;
  padding: 26px 17px;
  display: flex;
  flex-direction: column;
  gap: 33px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  padding: 0 9px;
}
.brand-mark,
.boot-mark {
  display: grid;
  place-items: center;
  background: var(--salvia);
  color: var(--bosque);
  width: 39px;
  height: 39px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.4rem;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-size: 0.73rem;
  color: #adc8c7;
  font-weight: 500;
  margin-top: 5px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button,
.mobile-nav button {
  border: 0;
  background: none;
  color: var(--papel);
  text-align: left;
  border-radius: 10px;
  padding: 12px 13px;
  font-weight: 650;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav button[aria-current="page"],
.nav button:hover {
  background: var(--hoja);
  color: white;
}
.nav svg,
.mobile-nav svg {
  width: 19px;
  height: 19px;
}
.count {
  margin-left: auto;
  background: var(--salvia);
  color: var(--bosque);
  border-radius: 15px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}
.side-note {
  margin-top: auto;
  border: 1px solid #577569;
  background: var(--hoja);
  border-radius: 11px;
  padding: 13px;
  font-size: 0.8rem;
  color: var(--papel);
  line-height: 1.45;
}
.side-note strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}
.workspace {
  max-width: 1450px;
  width: 100%;
  min-width: 0;
  margin: auto;
  padding: 0 34px 45px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid #c6cebd;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.topbar-left {
  font-size: 0.8rem;
  color: #40574c;
  font-weight: 700;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-pill {
  background: #fff;
  border: 1px solid #d1dee2;
  border-radius: 30px;
  padding: 7px 10px;
  color: #647b87;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  font-weight: 800;
}
.user-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #687f8c;
  font-weight: 700;
}
.user-control select {
  max-width: 160px;
  font-size: 0.84rem;
}
.user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #3d5868;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(100%, 420px);
  padding: clamp(24px, 5vw, 42px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dbe5e9;
  box-shadow: 0 18px 50px #14334a14;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  margin-bottom: 38px;
}
.auth-card h1 {
  margin-bottom: 8px;
}
.auth-card .subline {
  margin-bottom: 26px;
}
.auth-card .field {
  margin-bottom: 16px;
}
.auth-card .field input {
  width: 100%;
}
.auth-submit,
.auth-switch {
  width: 100%;
  margin-top: 12px;
}
.auth-note {
  color: #647b87;
  font-size: 0.79rem;
  line-height: 1.5;
  margin: 25px 0 0;
}
.gmail-card {
  margin-bottom: 20px;
}
.gmail-card > p {
  max-width: 72ch;
  line-height: 1.55;
}
.source-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 66ch;
  line-height: 1.5;
  margin: 16px 0;
}
.consent-row input {
  flex: none;
  min-height: auto;
  margin-top: 4px;
}
.mobile-brand,
.mobile-nav {
  display: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  margin: 0;
}
h3 {
  font-size: 0.98rem;
  margin: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #40574c;
  font-size: 0.72rem;
  font-weight: 850;
  margin: 0 0 7px;
}
.subline {
  color: #40574c;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 8px 0 0;
}
.page-head,
.card-head,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.page-head {
  align-items: flex-end;
  margin-bottom: 22px;
}
.card-head {
  margin-bottom: 17px;
}
.card-head p {
  color: #40574c;
  font-size: 0.81rem;
  margin: 5px 0 0;
}
.toolbar {
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .hint {
  color: #40574c;
  font-size: 0.82rem;
}
.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 14px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 780;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  background: var(--hoja);
  color: white;
}
.btn-primary:hover {
  background: var(--bosque);
}
.btn-dark {
  background: var(--bosque);
  color: #fff;
}
.btn-light {
  background: white;
  color: #24495a;
  border-color: #cbd9df;
}
.btn-light:hover {
  background: #f5faf9;
}
.btn-quiet {
  border: 0;
  background: transparent;
  color: var(--hoja);
  padding: 7px;
}
.btn-danger {
  background: #fff;
  border-color: #efd1cc;
  color: var(--arcilla);
}
.btn-small {
  min-height: 33px;
  padding: 7px 10px;
  font-size: 0.77rem;
}
.grid-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.85fr);
  gap: 17px;
}
.balance-panel {
  background: var(--bosque);
  color: white;
  border-radius: 17px;
  min-height: 248px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.balance-panel:after {
  content: none;
}
.balance-panel > * {
  position: relative;
  z-index: 1;
}
.balance-label {
  font-size: 0.9rem;
  color: #d2e4e4;
  font-weight: 670;
}
.balance-value {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 820;
  letter-spacing: -0.06em;
  white-space: nowrap;
  margin: 24px 0 14px;
}
.balance-value span {
  font-size: 0.45em;
  letter-spacing: 0;
  color: var(--salvia);
  vertical-align: top;
  margin-right: 5px;
}
.balance-note {
  font-size: 0.8rem;
  color: #c0d2d2;
  line-height: 1.5;
  max-width: 390px;
}
.metric-stack {
  display: grid;
  gap: 16px;
}
.metric {
  background: white;
  border: 1px solid #e0e9ec;
  border-radius: 16px;
  padding: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 116px;
}
.metric-label {
  font-size: 0.83rem;
  color: #68808c;
  font-weight: 700;
  margin-bottom: 11px;
}
.metric-value {
  font-size: 1.5rem;
  font-weight: 820;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.metric-income .metric-icon {
  background: #e0f7ef;
  color: #1a826e;
}
.metric-expense .metric-icon {
  background: #fff0df;
  color: #ab6a2d;
}
.section-grid,
.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: 17px;
  margin-top: 18px;
}
.card {
  background: #fff;
  border: 1px solid #e0e9ec;
  border-radius: 16px;
  padding: 21px;
  min-width: 0;
}
.alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--salvia);
  border: 1px solid #b9c3b0;
  border-radius: 12px;
  padding: 17px;
  margin-bottom: 18px;
}
.alert-card strong {
  display: block;
  margin-bottom: 4px;
}
.alert-card p {
  margin: 0;
  font-size: 0.81rem;
  color: #54756f;
  line-height: 1.4;
}
.alert-count {
  background: var(--hoja);
  color: white;
  border-radius: 9px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 850;
}
.mini-heading {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #76909b;
  font-size: 0.74rem;
  font-weight: 850;
  margin: 0 0 12px;
}
.account-row,
.movement-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid #edf1f2;
  min-width: 0;
}
.account-row:first-child,
.movement-row:first-child {
  border: 0;
  padding-top: 2px;
}
.bank-symbol,
.movement-symbol {
  width: 41px;
  height: 41px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.79rem;
  font-weight: 850;
}
.bank-pichincha {
  background: #ffebee;
  color: var(--arcilla);
}
.bank-deuna {
  background: #e4f4f8;
  color: #206a83;
}
.bank-produbanco {
  background: #e9edf9;
  color: #263d83;
}
.symbol-income {
  background: #e3f8f1;
  color: #167865;
}
.symbol-expense {
  background: #fff0e0;
  color: #aa6722;
}
.symbol-transfer {
  background: #e9f1fa;
  color: #547ca5;
}
.symbol-reversal {
  background: #edf1f5;
  color: #647b8f;
}
.row-copy {
  min-width: 0;
  flex: 1;
}
.row-title {
  font-size: 0.89rem;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-sub {
  color: #40574c;
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: 4px;
}
.row-value {
  font-size: 0.9rem;
  font-weight: 820;
  white-space: nowrap;
  text-align: right;
}
.row-value button {
  display: block;
  margin: 5px 0 0 auto;
}
.positive {
  color: var(--hoja);
}
.negative {
  color: var(--arcilla);
}
.neutral {
  color: #40574c;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.progress {
  height: 8px;
  background: var(--salvia);
  border-radius: 20px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--hoja);
  max-width: 100%;
}
.progress.warning span {
  background: #e6a345;
}
.progress.danger span {
  background: var(--arcilla);
}
.budget-mini + .budget-mini {
  margin-top: 17px;
}
.budget-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.81rem;
  margin-bottom: 8px;
}
.budget-label span {
  color: #6a808b;
  white-space: nowrap;
}
.empty {
  border: 1px dashed #c8d7dc;
  border-radius: 13px;
  padding: 34px 18px;
  text-align: center;
  color: #40574c;
  background: #fff;
}
.empty strong {
  display: block;
  color: var(--bosque);
  margin-bottom: 8px;
}
.empty p {
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0 auto 15px;
  max-width: 390px;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.tab {
  border: 1px solid #d7e1e5;
  background: white;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.8rem;
  font-weight: 760;
  color: #5d7580;
}
.tab[aria-selected="true"] {
  background: #193749;
  border-color: #193749;
  color: white;
}
.review-row {
  border: 1px solid #dfe8eb;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 13px;
}
.review-row + .review-row {
  margin-top: 12px;
}
.review-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.batch-card {
  margin: 12px 0;
}
.batch-card p {
  line-height: 1.5;
}
.batch-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.batch-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 16px 0;
}
.batch-fields label {
  display: grid;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
}
.batch-fields input,
.batch-fields select {
  width: 100%;
  min-height: 40px;
}
.auto-policy {
  border-top: 1px solid #dfe8eb;
  padding-top: 12px;
  margin: 12px 0;
}
.auto-policy p {
  margin: 7px 0;
  line-height: 1.5;
}
.rule-details {
  margin-top: 12px;
}
.rule-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
}
.rule-details .source-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
[hidden] {
  display: none !important;
}
.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.review-top h3 {
  margin-top: 8px;
}
.review-top p {
  font-size: 0.8rem;
  color: #778a95;
  margin: 5px 0 0;
}
.review-amount {
  font-size: 1.14rem;
  font-weight: 830;
  white-space: nowrap;
}
.chip {
  display: inline-flex;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.71rem;
  font-weight: 850;
}
.chip-review {
  background: #fff1df;
  color: #a6601a;
}
.chip-accepted {
  background: #e2f7ef;
  color: #13775e;
}
.chip-duplicate {
  background: #eef1f4;
  color: #667684;
}
.chip-excluded {
  background: #f3edf0;
  color: #95677e;
}
.review-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.76rem;
  color: #718692;
}
.review-details span {
  background: var(--papel);
  border-radius: 6px;
  padding: 6px 8px;
}
.review-reason {
  border-left: 3px solid var(--hoja);
  background: #f5f6ef;
  color: #40574c;
  padding: 9px 12px;
  border-radius: 0 7px 7px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}
.review-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.review-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 14px 0;
  max-width: 630px;
}
.review-confirm p {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  line-height: 1.5;
}
.review-confirm label {
  font-size: 0.88rem;
  font-weight: 600;
}
.review-confirm input,
.review-confirm select {
  width: 100%;
  min-height: 40px;
}
.review-actions label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b7481;
}
.review-actions select {
  min-width: 110px;
  min-height: 35px;
  padding: 6px 8px;
  font-size: 0.81rem;
}
.plan-stack {
  display: grid;
  gap: 17px;
}
.plan-row {
  padding: 15px 0;
  border-top: 1px solid #edf1f2;
}
.plan-row:first-child {
  padding-top: 0;
  border: 0;
}
.plan-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.plan-row p {
  color: #748793;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 5px 0 0;
}
.plan-value {
  font-size: 0.9rem;
  font-weight: 820;
  white-space: nowrap;
}
.info-banner {
  background: var(--salvia);
  border: 1px solid #b9c3b0;
  border-radius: 13px;
  padding: 15px 17px;
  color: var(--bosque);
  font-size: 0.83rem;
  line-height: 1.5;
  margin-bottom: 18px;
}
.info-banner strong {
  color: var(--bosque);
}
.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.source-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 255px;
}
.source-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.source-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 900;
}
.source-top h2 {
  font-size: 0.99rem;
}
.source-top p {
  margin: 4px 0 0;
  color: #40574c;
  font-size: 0.77rem;
}
.source-card > p {
  color: #40574c;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.source-stat {
  border-top: 1px solid #ebf0f1;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font-size: 0.78rem;
  color: #40574c;
}
.source-stat strong {
  color: var(--bosque);
}
.source-bottom {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.source-bottom p {
  max-width: 550px;
  font-size: 0.81rem;
  color: #40574c;
  line-height: 1.5;
  margin: 0;
}
.footnote {
  color: #40574c;
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 25px 0 0;
}
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #66808d;
}
.boot p {
  margin: 0;
}
.error-page {
  max-width: 460px;
  margin: 20vh auto;
  text-align: center;
  padding: 24px;
}
.error-page p {
  color: #708591;
  line-height: 1.5;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 16px;
  width: min(92vw, 480px);
  box-shadow: 0 20px 70px #071c3060;
  color: #173448;
}
dialog::backdrop {
  background: #0d2536aa;
}
.modal-inner {
  padding: 24px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.modal-head p {
  color: #718692;
  font-size: 0.81rem;
  margin: 6px 0 0;
  line-height: 1.4;
}
.close {
  border: 0;
  background: #eff3f4;
  color: #526c79;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.25rem;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 0.81rem;
  font-weight: 760;
  color: #395867;
}
.field small {
  color: #7d919b;
  font-size: 0.73rem;
}
.field input,
.field select {
  width: 100%;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
#toast:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: #183848;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px #162f2b40;
  max-width: min(90vw, 380px);
  font-size: 0.85rem;
}
#toast.error {
  background: var(--arcilla);
}
@media (max-width: 1100px) {
  .workspace {
    padding: 0 24px 40px;
  }
  .grid-overview,
  .section-grid,
  .plan-layout {
    grid-template-columns: 1fr;
  }
  .metric-stack {
    grid-template-columns: 1fr 1fr;
  }
  .source-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    padding: 0 18px 95px;
  }
  .topbar {
    height: 66px;
    margin-bottom: 22px;
  }
  .topbar-left,
  .demo-pill,
  .user-control label {
    display: none;
  }
  .mobile-brand {
    display: flex;
    color: #183a48;
    font-weight: 830;
    letter-spacing: -0.035em;
    font-size: 0.92rem;
  }
  .mobile-brand .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 1.1rem;
  }
  .user-control select {
    max-width: 130px;
    min-height: 37px;
    padding: 6px 9px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dde6e9;
    justify-content: space-around;
    padding: 7px 5px max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -5px 25px #0a26300a;
  }
  .mobile-nav button {
    padding: 6px 3px;
    min-width: 55px;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    color: #728591;
    font-size: 0.64rem;
  }
  .mobile-nav button[aria-current="page"] {
    color: var(--hoja);
    background: var(--salvia);
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 1.7rem;
  }
  .head-actions {
    width: 100%;
  }
  .head-actions .btn {
    flex: 1;
  }
  .balance-panel {
    min-height: 220px;
    padding: 22px;
  }
  .balance-value {
    font-size: 2.55rem;
  }
  .metric {
    padding: 16px;
    min-height: 105px;
  }
  .source-list {
    grid-template-columns: 1fr;
  }
  .source-card {
    min-height: 0;
  }
  .source-card > p {
    flex: none;
  }
  .review-actions {
    justify-content: flex-start;
  }
  .review-confirm {
    grid-template-columns: 1fr;
  }
  .batch-fields {
    grid-template-columns: 1fr;
  }
  #toast {
    bottom: 86px;
    left: 15px;
    right: 15px;
    max-width: none;
  }
}
@media (max-width: 470px) {
  .metric-stack {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric {
    padding: 13px;
    min-height: 95px;
    align-items: flex-start;
  }
  .metric-icon {
    display: none;
  }
  .metric-value {
    font-size: 1.15rem;
  }
  .metric-label {
    font-size: 0.74rem;
  }
  .card {
    padding: 17px;
  }
  .balance-value {
    font-size: 2.16rem;
  }
  .account-row,
  .movement-row {
    gap: 8px;
  }
  .bank-symbol,
  .movement-symbol {
    width: 36px;
    height: 36px;
  }
  .row-title {
    font-size: 0.83rem;
  }
  .row-sub {
    font-size: 0.7rem;
  }
  .row-value {
    font-size: 0.8rem;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .modal-inner {
    padding: 19px;
  }
}
