:root {
  /* Color: superficies y marca */
  --background: lab(98.8505% -.00655651 .761843);
  --bg:  lab(98.8505% -.00655651 .761843); /* #eee9e2;*/
  --bg-accent: #e6dfd5;
  --surface: #ffffff;
  --surface-soft: #f8f4ee;
  --surface-muted: #f3ede5;
  --foreground: #efebe4;
  --text: #261d19;
  --muted: #6c6158;
  --primary: #241611;
  --primary-hover: #34221a;
  --primary-contrast: #ffffff;
  --success: #1f9f63;
  --danger: #d83a4b;
  --warning: #c78717;
  --border: lab(89.5757% -.00873208 1.1435); /* #ddd3c8; */
  --border-strong: #cec0b2;
  --focus: #7bb6ff;
  --color-red-600: lab(48.4493% 77.4328 61.5452);
  --color-green-600: lab(59.0978% -58.6621 41.2579);
  --color-black: #000000;
  --color-white: #ffffff;
  --color-logo-gradient-start: #1ea167;
  --color-logo-gradient-end: #0c8352;

  /* Color: overlays y estados */
  --color-overlay-white-70: rgba(255, 255, 255, 0.7);
  --color-overlay-surface-98: rgba(255, 255, 255, 0.98);
  --color-overlay-surface-96: rgba(255, 255, 255, 0.96);
  --color-overlay-surface-88: rgba(255, 255, 255, 0.88);
  --color-overlay-light-24: rgba(255, 255, 255, 0.24);
  --color-overlay-light-07: rgba(255, 255, 255, 0.07);
  --color-overlay-dark-50: rgba(17, 8, 5, 0.5);
  --color-border-soft: rgba(34, 24, 19, 0.1);
  --color-focus-ring: rgba(123, 182, 255, 0.24);
  --color-success-500: #22c55e;
  --color-danger-500: #ef4444;
  --color-danger-soft-bg: #fff4f6;
  --color-danger-soft-border: #edc9cf;
  --color-warning-soft: #ffefca;
  --color-warning-chip: #f5c977;
  --color-select-active-text: #0b7a49;

  /* Color: texto y etiquetas semánticas */
  --color-text-subtle: #9a8e86;
  --color-text-soft: #7c726b;
  --color-text-caption: #6d625a;
  --color-text-emphasis: #3b312b;
  --color-text-secondary: #5f544e;
  --color-text-placeholder: #9d928a;
  --color-text-nav: #1d140d;
  --color-text-nav-icon: #1d140d;
  --color-text-hint: #72675f;
  --color-text-label: #7b716b;
  --color-text-dropdown-group: #7a6f67;
  --color-text-action-icon: #685e58;
  --color-text-action-menu-icon: #695f59;
  --color-text-warning-strong: #9a4b00;
  --color-text-warning: #b26a0e;
  --color-text-recurrence: #766a62;
  --color-text-button-secondary: #2f241e;
  --color-text-account-icon: #2a1f1a;
  --color-tag-neutral-bg: #eee;
  --color-tag-asset-bg: #e8f6ee;
  --color-tag-liability-bg: #ffecef;
  --color-tag-tx-bg: #eceffb;
  --color-tag-tx-text: #3754c0;
  --color-toggle-track: #e7e0d7;

  /* Layout */
  --topbar-height: 62px;
  --sidebar-width: 228px;

  /* Bordes y elevación */
  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(30, 14, 7, 0.06);
  --shadow-sm: 0 1px 2px rgba(30, 14, 7, 0.08), 0 8px 22px rgba(30, 14, 7, 0.04);
  --shadow-md: 0 1px 2px rgba(30, 14, 7, 0.12), 0 14px 30px rgba(30, 14, 7, 0.08);

  /* Tipografía: pesos */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Tipografía: escala */
  --text-xs: .75rem;
  --text-xs--line-height: calc(1 / .75);
  --text-sm: .875rem;
  --text-sm--line-height: calc(1.25 / .875);
  --text-base: 1rem;
  --text-base--line-height: calc(1.5 / 1);
  --text-lg: 1.125rem;
  --text-lg--line-height: calc(1.75 / 1.125);
  --text-xl: 1.25rem;
  --text-xl--line-height: calc(1.75 / 1.25);
  --text-2xl: 1.5rem;
  --text-2xl--line-height: calc(2 / 1.5);
  --text-3xl: 1.875rem;
  --text-3xl--line-height: calc(2.25 / 1.875);
  --text-4xl: 2.25rem;
  --text-4xl--line-height: calc(2.5 / 2.25);
  --line-height-tight: 1;

  /* Botones y acciones */
  --btn-gap: 8px;
  --btn-border-radius: 12px;
  --btn-min-height: 42px;
  --btn-padding-y: 9px;
  --btn-padding-x: 14px;
  --btn-font-weight: 400;
  --btn-font-size: .875rem;
  --btn-line-height: calc(1.25 / .875);
  --btn-letter-spacing: -0.01em;
  --btn-icon-size: 18px;
  --btn-primary-bg: #241611;
  --btn-primary-bg-hover: #34221a;
  --btn-primary-color: #ffffff;
  --btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  --btn-secondary-bg: #ffffff;
  --btn-secondary-bg-hover: #f8f4ee;
  --btn-secondary-color: #261d19;
  --btn-secondary-border: #ddd3c8;
  --btn-danger-bg: #d83a4b;
  --btn-danger-bg-hover: #bf3141;
  --btn-danger-color: #ffffff;
  --btn-social-bg: #ffffff;
  --btn-social-color: #261d19;
  --btn-social-font-weight: 700;
  --btn-social-border: #ddd3c8;
  --topbar-action-min-height: 44px;
  --topbar-action-radius: 14px;
  --topbar-action-padding-inline: 14px;
  --topbar-action-mobile-min-height: 38px;
  --topbar-action-mobile-padding-y: 7px;
  --topbar-action-mobile-padding-x: 11px;
  --topbar-action-mobile-font-size: .875rem;
  --topbar-action-mobile-line-height: calc(1.25 / .875);
  --action-menu-item-gap: 10px;
  --action-menu-item-min-height: 0;
  --action-menu-item-padding-y: 11px;
  --action-menu-item-padding-x: 12px;
  --action-menu-item-font-weight: 700;
  --action-menu-item-font-size: 1rem;
  --action-menu-item-icon-size: 18px;
  --action-menu-item-icon-color: #695f59;
  --action-menu-item-hover-bg: #f8f4ee;

  /* Botones de icono */
  --icon-btn-size: 34px;
  --icon-btn-border-radius: 10px;
  --icon-btn-color: #685e58;
  --icon-btn-icon-size: 18px;
  --icon-btn-hover-bg: #f8f4ee;
  --icon-btn-hover-border: #ddd3c8;
  --icon-btn-hover-color: #261d19;

  /* Iconografía */
  --icon-size-base: 20px;
  --icon-size-nav: 22px;
  --icon-size-breadcrumb: 14px;
  --icon-size-sm: 16px;
  --icon-size-md: 18px;
  --icon-size-lg: 20px;
  --icon-size-xl: 21px;
  --icon-size-2xl: 22px;
  --icon-size-3xl: 24px;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Inter"), local("Segoe UI"), local("Helvetica Neue"), local("Arial");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Inter", "Inter Fallback", "Avenir Next", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  letter-spacing: -0.015em;
  background: radial-gradient(1200px 900px at 100% -10%, var(--color-overlay-white-70), transparent 42%), var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: var(--font-weight-normal);
  font-style: normal;
  font-size: var(--icon-size-base);
  line-height: var(--line-height-tight);
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-placeholder);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 0;
  border-color: color-mix(in srgb, var(--focus) 58%, var(--border));
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

select {
  cursor: pointer;
}

input[type="color"] {
  min-height: 44px;
  padding: 2px;
  cursor: pointer;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.muted {
  color: var(--muted);
}

.success {
  color: var(--success);
}

.danger {
  color: var(--danger);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  border: 1px solid transparent;
  border-radius: var(--btn-border-radius);
  min-height: var(--btn-min-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  cursor: pointer;
  font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size);
  line-height: var(--btn-line-height);
  letter-spacing: var(--btn-letter-spacing);
  white-space: nowrap;
  transition: transform 0.08s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.btn .material-symbols-rounded {
  font-size: var(--btn-icon-size);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  box-shadow: var(--btn-primary-shadow);
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
  background: var(--btn-secondary-bg-hover);
}

.btn-danger {
  background: var(--btn-danger-bg);
  color: var(--btn-danger-color);
}

.btn-danger:hover {
  background: var(--btn-danger-bg-hover);
}

.btn-social {
  border: 1px solid var(--btn-social-border);
  background: var(--btn-social-bg);
  color: var(--btn-social-color);
  font-weight: var(--btn-social-font-weight);
}

.w-100 {
  width: 100%;
}

.icon-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--icon-btn-border-radius);
  width: var(--icon-btn-size);
  height: var(--icon-btn-size);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--icon-btn-color);
  font-size: var(--icon-btn-icon-size);
}

.icon-btn .material-symbols-rounded {
  font-size: var(--icon-btn-icon-size);
}

.icon-btn:hover {
  background: var(--icon-btn-hover-bg);
  border-color: var(--icon-btn-hover-border);
  color: var(--icon-btn-hover-color);
}

.public-page {
  min-height: 100vh;
  padding: 24px;
}

body:not([data-page="landing"]).public-page {
  display: grid;
  place-items: center;
}

body[data-page="landing"].public-page {
  display: block;
  padding: 0;
}

.auth-wrap {
  width: min(100%, 520px);
}

.lp-shell {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 14px 20px 60px;
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}

.lp-topbar {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.lp-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lp-nav a {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: var(--font-weight-normal);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lp-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
  transform: translateY(-1px);
}

.lp-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lp-login-link {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  padding: 0 6px;
}

.lp-login-link:hover {
  color: var(--text);
}

.lp-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--border));
  background: color-mix(in srgb, #eafbf0 74%, var(--surface));
  color: var(--success);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-medium);
}

.lp-hero-badge .material-symbols-rounded {
  font-size: var(--icon-size-sm);
}

.lp-hero-title {
  display: grid;
  gap: 4px;
  justify-items: center;
  font-size: clamp(2.6rem, 8vw, 4.7rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: var(--font-weight-bold);
}

.lp-hero-title .accent {
  color: var(--success);
}

.lp-hero-subtitle {
  max-width: 62ch;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-hero-actions .btn {
  min-height: 44px;
  padding-inline: 18px;
}

.lp-hero-actions .material-symbols-rounded {
  font-size: var(--icon-size-md);
}

.lp-link-inline {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
}

.lp-link-inline:hover {
  color: var(--text);
}

.lp-showcase-card {
  width: min(100%, 560px);
  margin-top: 6px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
  display: grid;
  gap: 14px;
}

.lp-showcase-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lp-showcase-card header p {
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.lp-pill {
  border-radius: 999px;
  background: color-mix(in srgb, #eafbf0 72%, var(--surface));
  color: var(--success);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  padding: 5px 9px;
  font-weight: var(--font-weight-semibold);
}

.lp-showcase-card > strong {
  font-size: clamp(var(--text-2xl), 5vw, 2.8rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.lp-bar-chart {
  height: 130px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  align-items: end;
}

.lp-bar-chart span {
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--success) 56%, #bbebca), color-mix(in srgb, var(--success) 70%, #7ec49b));
}

.lp-bar-chart span:nth-child(1) { height: 28%; }
.lp-bar-chart span:nth-child(2) { height: 36%; }
.lp-bar-chart span:nth-child(3) { height: 44%; }
.lp-bar-chart span:nth-child(4) { height: 39%; }
.lp-bar-chart span:nth-child(5) { height: 51%; }
.lp-bar-chart span:nth-child(6) { height: 58%; }
.lp-bar-chart span:nth-child(7) { height: 53%; }
.lp-bar-chart span:nth-child(8) { height: 64%; }
.lp-bar-chart span:nth-child(9) { height: 68%; }
.lp-bar-chart span:nth-child(10) { height: 73%; }
.lp-bar-chart span:nth-child(11) { height: 79%; }
.lp-bar-chart span:nth-child(12) { height: 83%; }
.lp-bar-chart span:nth-child(13) { height: 87%; }
.lp-bar-chart span:nth-child(14) { height: 82%; }
.lp-bar-chart span:nth-child(15) { height: 91%; }
.lp-bar-chart span:nth-child(16) { height: 95%; }

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

.lp-showcase-metrics article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 10px 9px;
  text-align: center;
  background: color-mix(in srgb, var(--surface) 82%, #f8fcfa);
}

.lp-showcase-metrics p {
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.lp-showcase-metrics strong {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
}

.lp-section {
  display: grid;
  gap: 22px;
}

.lp-section-head {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.lp-kicker {
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-semibold);
}

.lp-section-head h2 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: var(--font-weight-semibold);
}

.lp-feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-feature-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 188px;
  box-shadow: var(--shadow-xs);
}

.lp-feature-card .material-symbols-rounded {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eafbf0;
  color: var(--success);
  font-size: var(--icon-size-lg);
}

.lp-feature-card h3 {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-medium);
}

.lp-feature-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.lp-steps-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-step-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.lp-step-number {
  color: var(--border-strong);
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-semibold);
}

.lp-step-card h3 {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-semibold);
}

.lp-step-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.lp-step-visual {
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, #f5f8f6);
  height: 68px;
}

.lp-step-input {
  position: relative;
}

.lp-step-input::before {
  content: "";
  position: absolute;
  inset: 50% 14px auto;
  transform: translateY(-50%);
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 25%, #d6efe1);
}

.lp-step-list {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.lp-step-list span {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 32%, #d8f2e2);
}

.lp-step-bars {
  display: grid;
  gap: 6px;
  padding: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
}

.lp-step-bars span {
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 70%, #79c49a);
}

.lp-step-bars span:nth-child(1) { height: 36%; }
.lp-step-bars span:nth-child(2) { height: 54%; }
.lp-step-bars span:nth-child(3) { height: 48%; }
.lp-step-bars span:nth-child(4) { height: 67%; }
.lp-step-bars span:nth-child(5) { height: 73%; }
.lp-step-bars span:nth-child(6) { height: 82%; }

.lp-metric-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-metric-strip article {
  text-align: center;
  display: grid;
  gap: 4px;
}

.lp-metric-strip strong {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  line-height: var(--text-3xl--line-height);
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-semibold);
}

.lp-metric-strip p {
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.lp-testimonial-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-testimonial-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.lp-stars {
  color: var(--success);
  letter-spacing: 0.14em;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-semibold);
}

.lp-testimonial-card > p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.lp-testimonial-card footer {
  display: grid;
  gap: 2px;
}

.lp-testimonial-card footer strong {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-semibold);
}

.lp-testimonial-card footer span {
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.lp-faq {
  gap: 14px;
}

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

.lp-faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 14px;
}

.lp-faq summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-medium);
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq p {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.lp-final-cta {
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(460px 220px at 88% 0%, color-mix(in srgb, #eafbf0 65%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #f7fbf8), var(--surface));
  padding: clamp(20px, 4vw, 34px);
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.lp-final-cta h2 {
  font-size: clamp(var(--text-2xl), 4.8vw, var(--text-4xl));
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: var(--font-weight-semibold);
}

.lp-final-cta p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
}

.lp-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}

.lp-footer article {
  display: grid;
  align-content: start;
  gap: 7px;
}

.lp-footer h3 {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  letter-spacing: -0.01em;
  font-weight: var(--font-weight-semibold);
}

.lp-footer article > p,
.lp-footer article > a {
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.lp-footer a:hover {
  color: var(--text);
}

@keyframes lp-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-hero > * {
  animation: lp-fade-up 0.4s ease both;
}

.lp-showcase-card {
  animation: lp-fade-up 0.45s ease both;
  animation-delay: 0.08s;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-bold);
  color: var(--surface);
  background: linear-gradient(155deg, var(--color-logo-gradient-start), var(--color-logo-gradient-end));
  box-shadow: inset 0 1px 0 var(--color-overlay-light-24);
}

.landing-page {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 18px;
  display: grid;
  gap: 18px;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
}

.landing-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-hero {
  padding: 22px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: var(--font-weight-bold);
  color: var(--surface);
  background: linear-gradient(155deg, var(--color-logo-gradient-start), var(--color-logo-gradient-end));
  box-shadow: inset 0 1px 0 var(--color-overlay-light-24);
}

.landing-hero-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 6px 10px;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-text-caption);
}

.landing-badge .material-symbols-rounded {
  font-size: var(--icon-size-sm);
  color: var(--primary);
}

.landing-hero h1 {
  font-size: clamp(var(--text-3xl), 3.4vw, 3.2rem);
  line-height: var(--text-4xl--line-height);
  letter-spacing: -0.045em;
}

.landing-lead {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  max-width: 58ch;
}

.landing-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--color-text-emphasis);
}

.landing-checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.landing-checks .material-symbols-rounded {
  font-size: var(--icon-size-sm);
  color: var(--success);
  margin-top: 1px;
}

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

.landing-note {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-text-subtle);
}

.landing-hero-aside {
  display: grid;
  gap: 10px;
  align-content: start;
}

.landing-metric-card,
.landing-mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.landing-metric-card p {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-text-caption);
}

.landing-metric-card strong {
  font-size: clamp(var(--text-xl), 2vw, 2rem);
  line-height: var(--text-2xl--line-height);
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-bold);
}

.landing-metric-card span {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-text-soft);
}

.landing-mini-card h3 {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-semibold);
}

.landing-mini-bars {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.landing-mini-bars span {
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 86%, #4f392f), var(--primary));
  box-shadow: inset 0 1px 0 var(--color-overlay-light-24);
}

.landing-mini-bars span:nth-child(1) { height: 24%; }
.landing-mini-bars span:nth-child(2) { height: 38%; }
.landing-mini-bars span:nth-child(3) { height: 31%; }
.landing-mini-bars span:nth-child(4) { height: 54%; }
.landing-mini-bars span:nth-child(5) { height: 66%; }
.landing-mini-bars span:nth-child(6) { height: 84%; }

.landing-section {
  display: grid;
  gap: 12px;
}

.landing-section-head {
  display: grid;
  gap: 4px;
}

.landing-section-head h2 {
  font-size: clamp(var(--text-xl), 2.2vw, var(--text-3xl));
  line-height: var(--text-3xl--line-height);
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-semibold);
}

.landing-section-head p {
  color: var(--color-text-soft);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

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

.landing-flow-card {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.landing-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: var(--surface);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-bold);
}

.landing-flow-card h3 {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-semibold);
}

.landing-flow-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

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

.landing-feature {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.landing-feature h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
}

.landing-feature h3 .material-symbols-rounded {
  font-size: var(--icon-size-lg);
  color: var(--primary);
}

.landing-feature p {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-text-secondary);
}

.landing-cta {
  padding: 20px;
  display: grid;
  gap: 10px;
  border-style: dashed;
}

.landing-cta h2 {
  font-size: clamp(var(--text-xl), 2.2vw, var(--text-3xl));
  line-height: var(--text-3xl--line-height);
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-semibold);
}

.landing-cta p {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-text-secondary);
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.logo-mark.small {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: var(--text-sm);
}

.auth-wrap {
  display: grid;
  gap: 20px;
}

.auth-brand {
  text-align: center;
  display: grid;
  gap: 8px;
}

.auth-brand h1 {
  font-size: clamp(var(--text-3xl), 4vw, 2.5rem);
  line-height: var(--text-3xl--line-height);
  letter-spacing: -0.04em;
}

.auth-brand p {
  color: var(--muted);
  font-weight: var(--font-weight-semibold);
}

.auth-card {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.auth-card h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
  line-height: var(--text-3xl--line-height);
  font-weight: var(--font-weight-semibold);
}

.auth-card > p {
  color: var(--muted);
  line-height: var(--text-base--line-height);
}

.auth-card label {
  display: grid;
  gap: 6px;
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.auth-links-row {
  display: flex;
  justify-content: flex-end;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.auth-foot {
  text-align: center;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--muted);
}

.auth-foot a,
.auth-links-row a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: 3px;
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-row .btn {
  flex: 1;
}

.auth-separator {
  position: relative;
  text-align: center;
  margin: 2px 0;
}

.auth-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}

.auth-separator span {
  position: relative;
  background: var(--surface);
  padding: 0 10px;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
}

.app-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  background: var(--color-overlay-surface-96);
  backdrop-filter: saturate(160%) blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-size: clamp(var(--text-3xl), 2.5vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--text-3xl--line-height);
  letter-spacing: -0.045em;
}

.topbar-actions {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
}

.topbar-actions .btn {
  min-height: var(--topbar-action-min-height);
  border-radius: var(--topbar-action-radius);
  padding-inline: var(--topbar-action-padding-inline);
}

.topbar-actions .btn .material-symbols-rounded {
  font-size: var(--btn-icon-size);
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  min-width: 250px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 60;
}

.menu-dropdown.is-floating {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  z-index: 120;
}

.menu-dropdown button {
  display: flex;
  align-items: center;
  gap: var(--action-menu-item-gap);
  min-height: var(--action-menu-item-min-height);
  width: 100%;
  text-align: left;
  border: 0;
  padding: var(--action-menu-item-padding-y) var(--action-menu-item-padding-x);
  background: var(--surface);
  cursor: pointer;
  font-weight: var(--action-menu-item-font-weight);
  font-size: var(--action-menu-item-font-size);
}

.menu-dropdown button .material-symbols-rounded {
  font-size: var(--action-menu-item-icon-size);
  color: var(--action-menu-item-icon-color);
}

.menu-dropdown button:hover {
  background: var(--action-menu-item-hover-bg);
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-height));
}

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--color-overlay-surface-88);
  backdrop-filter: blur(2px);
  padding: 16px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 4px;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
  letter-spacing: -0.035em;
}

.sidebar nav {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: auto;
  padding-right: 1px;
  padding-top: 2px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--color-text-nav);
  font-weight: var(--font-weight-normal);
  border: 1px solid transparent;
}

.nav-icon {
  width: 17px;
  font-size: var(--icon-size-nav);
  opacity: 0.9;
  color: var(--color-text-nav-icon);
}

.sidebar .nav-label {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
}

.sidebar nav a.active {
  background: var(--primary);
  color: var(--surface);
}

.sidebar nav a:hover {
  background: var(--foreground);
  color: var(--color-text-nav);
}

.sidebar nav a.active,
.sidebar nav a:hover {
  box-shadow: inset 0 1px 0 var(--color-overlay-light-07);
}

.sidebar nav a.active .nav-icon {
  color: var(--surface);
}

.sidebar nav a:hover .nav-icon {
  color: var(--color-text-nav);
}


.sidebar-footer {
  display: grid;
  gap: 10px;
}

.user-mini {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface-soft);
}

.content {
  padding: 24px;
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}

@media (min-width: 981px) {
  .app-page {
    height: 100vh;
    overflow: hidden;
  }

  .shell {
    min-height: 0;
    height: calc(100vh - var(--topbar-height));
    overflow: hidden;
  }

  .sidebar {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .content {
    min-height: 0;
    overflow: auto;
  }
}

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

.page-title {
  display: grid;
  gap: 4px;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.breadcrumbs a {
  color: inherit;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs .material-symbols-rounded {
  font-size: var(--icon-size-breadcrumb);
  color: var(--color-text-subtle);
}

.page-title h1,
.page-head h1 {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
  letter-spacing: -0.04em;
  font-weight: var(--font-weight-medium);
}

.page-title p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-normal);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.kpi-card {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.kpi-card .muted {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-soft);
}

.kpi-value {
  font-size: clamp(var(--text-3xl), 2.6vw, var(--text-4xl));
  line-height: var(--text-3xl--line-height);
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-bold);
}

.panel {
  padding: 24px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.panel h3 {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  letter-spacing: -0.015em;
  font-weight: var(--font-weight-medium);
}

.settings-trm-calc {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 8px;
}

.settings-trm-calc-head {
  display: grid;
  gap: 2px;
}

.settings-trm-calc-head h4 {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
}

.settings-trm-calc-head .muted {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-normal);
}

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

.settings-trm-calc-grid label {
  display: grid;
  gap: 6px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-normal);
}

.settings-trm-calc-grid input[readonly] {
  background: var(--surface-soft);
  color: var(--color-text-hint);
}

.settings-trm-calc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-trm-calc-meta {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-normal);
}

#trmCalcBtn.is-loading .material-symbols-rounded {
  animation: spin 0.9s linear infinite;
}

.dashboard-section-head {
  display: grid;
  gap: 2px;
}

.dashboard-estado-panel {
  gap: 14px;
}

.dashboard-estado-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.dashboard-estado-chart-wrap {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 4px;
  width: 100%;
}

.dashboard-patrimonial-chart-box {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
}

.dashboard-estado-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
}

.dashboard-estado-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  color: var(--color-text-caption);
}

.dashboard-estado-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-estado-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-estado-legend .dot-success {
  background: var(--color-success-500);
}

.dashboard-estado-legend .dot-danger {
  background: var(--color-danger-500);
}

.dashboard-estado-right {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dashboard-breakdown-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.dashboard-breakdown-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.dashboard-breakdown-head h4 {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
}

.dashboard-breakdown-head strong {
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-semibold);
  text-align: right;
}

.dashboard-breakdown-list {
  display: grid;
  gap: 7px;
}

.dashboard-breakdown-list .empty-state {
  padding: 12px;
  border-style: solid;
  background: var(--surface-soft);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.dashboard-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-breakdown-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-normal);
}

.dashboard-breakdown-row strong {
  color: var(--color-text-emphasis);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.dashboard-breakdown-net {
  gap: 6px;
}

.dashboard-breakdown-net.is-negative {
  border-color: color-mix(in srgb, var(--danger) 36%, var(--border));
  background: color-mix(in srgb, var(--surface) 93%, var(--danger));
}

.dashboard-breakdown-net.is-positive {
  border-color: color-mix(in srgb, var(--success) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 93%, var(--success));
}

.dashboard-breakdown-net .item-sub {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.dashboard-month-cards .kpi-card {
  border-width: 1px;
}

.dashboard-month-card {
  gap: 8px;
}

.dashboard-month-income {
  border-color: color-mix(in srgb, var(--success) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 92%, var(--success));
}

.dashboard-month-expense {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 92%, var(--danger));
}

.dashboard-month-balance-save {
  border-color: color-mix(in srgb, var(--success) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 93%, var(--success));
}

.dashboard-month-balance-deficit {
  border-color: color-mix(in srgb, var(--warning) 44%, var(--border));
  background: color-mix(in srgb, var(--surface) 91%, var(--color-warning-soft));
}

.dashboard-month-balance-neutral {
  border-color: color-mix(in srgb, var(--border) 78%, var(--surface));
  background: color-mix(in srgb, var(--surface) 94%, var(--bg-accent));
}

.dashboard-trend-panel {
  gap: 12px;
  min-height: 400px;
  align-content: stretch;
}

.dashboard-trend-canvas {
  width: 100% !important;
  height: 260px !important;
  max-height: 260px !important;
}

@media (max-width: 1220px) {
  .dashboard-estado-grid {
    grid-template-columns: 1fr;
  }
}

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

.item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

button.item {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

button.item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.item-title {
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
}

.type-item-row .item-title {
  display: flex;
  align-items: center;
  font-weight: var(--font-weight-semibold);
}

.type-item-row .type-meta .item-title {
  display: block;
  width: 100%;
}

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

.type-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.types-panel {
  padding: 0;
  gap: 0;
  padding-bottom: 14px;
  overflow: visible;
}

.types-panel > .chips {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.types-panel > .types-list {
  padding: 12px 16px 10px;
}

.types-panel > .deleted-items-panel {
  margin-bottom: 0;
}

.inline-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: var(--text-sm);
  vertical-align: middle;
}

.inline-icon .material-symbols-rounded {
  font-size: var(--icon-size-md);
}

.types-list .inline-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-right: 0;
}

.types-list .inline-icon .material-symbols-rounded {
  font-size: var(--icon-size-3xl);
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.types-list .inline-icon.type-visual .material-symbols-rounded {
  font-size: var(--icon-size-2xl);
}

.tx-categories-list .tx-cat-visual {
  font-size: var(--icon-size-lg);
  line-height: var(--line-height-tight);
}

.tx-categories-list .tx-cat-visual .material-symbols-rounded {
  font-size: var(--icon-size-xl);
}

.tx-category-item.is-subcategory {
  border-style: dashed;
  margin-left: 30px;
  margin-right: 10px;
}

.tx-categories-panel {
  padding-bottom: 14px;
  overflow: visible;
}

.tx-categories-panel > .tx-categories-list {
  padding-bottom: 16px;
}

.tx-categories-panel > .deleted-items-panel {
  margin-bottom: 0;
}

.icon-action {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-grid;
  place-items: center;
  color: var(--color-text-action-icon);
  cursor: pointer;
}

.icon-action .material-symbols-rounded {
  font-size: var(--icon-size-md);
}

.icon-action:hover {
  border-color: var(--border);
  background: var(--surface-soft);
}

.icon-action.danger {
  color: var(--danger);
}

.icon-action.danger:hover {
  border-color: var(--color-danger-soft-border);
  background: var(--color-danger-soft-bg);
}

.icon-action.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.deleted-items-panel {
  border-style: dashed;
  box-shadow: none;
  margin: 12px 16px 16px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface));
}

.deleted-items-panel h3 {
  font-size: var(--text-base);
}

.deleted-list .item {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface));
  box-shadow: none;
}

.btn-restore-type {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  gap: 6px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.btn-restore-type .material-symbols-rounded {
  font-size: var(--icon-size-nav);
}

.item-sub {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-normal);
}

.type-item-row .type-meta .item-sub {
  display: block;
  width: 100%;
}

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

.account-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-right: 0;
  flex: 0 0 42px;
}

.account-item-icon .material-symbols-rounded {
  font-size: var(--icon-size-2xl);
}

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

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 14px;
  background: var(--surface);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-nav);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.chip:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
}

.chip.active {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

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

.row.wrap {
  flex-wrap: wrap;
}

.row.grow > * {
  flex: 1;
  min-width: 0;
}

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table th,
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table th {
  color: var(--color-text-label);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.table-actions-col,
.table-actions-cell {
  text-align: right !important;
}

.snapshot-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-bold);
  background: var(--color-tag-neutral-bg);
}

.tag.asset {
  background: var(--color-tag-asset-bg);
  color: var(--success);
}

.tag.liability {
  background: var(--color-tag-liability-bg);
  color: var(--danger);
}

.tag.tx {
  background: var(--color-tag-tx-bg);
  color: var(--color-tag-tx-text);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 26px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-overlay-dark-50);
  display: none;
  place-items: center;
  z-index: 80;
  backdrop-filter: blur(2px);
}

.modal-backdrop.is-open {
  display: grid;
}

.modal-backdrop[hidden],
.modal-backdrop[aria-hidden="true"] {
  display: none !important;
}

.modal {
  width: min(100%, 650px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  padding: 24px 24px 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
  line-height: var(--text-lg--line-height);
  font-weight: var(--font-weight-semibold);
}

.modal-body {
  padding: 12px 14px 14px;
  overflow: auto;
}

.modal.modal-transaction {
  overflow: visible;
  max-height: min(calc(100vh - 26px), 760px);
}

.modal.modal-transaction .modal-body {
  overflow: visible;
}

.modal.modal-confirm {
  width: min(100%, 572px);
}

.modal.modal-confirm .modal-header {
  padding: 16px 18px 12px;
}

.modal.modal-confirm .modal-body {
  padding: 6px 18px 18px;
}

.confirm-modal-copy {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  margin-bottom: 14px;
  font-weight: var(--font-weight-normal);
}

.confirm-modal-actions {
  justify-content: flex-end;
}

.confirm-modal-actions .btn {
  min-width: 108px;
}

.modal-loading {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
}

.modal-loading .material-symbols-rounded {
  font-size: var(--icon-size-md);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form {
  display: grid;
  gap: 10px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-normal);
}

.modal-section-title {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-label);
}

.account-form input,
.account-form select {
  min-height: 46px;
  border-radius: 14px;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
}

.account-form input[readonly] {
  background: var(--surface-soft);
  cursor: default;
}

.account-form .row.grow {
  gap: 12px;
}

.account-form .form-actions {
  margin-top: 4px;
}

.account-form .color-readonly {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal.modal-account-create {
  width: min(100%, 520px);
  max-height: min(calc(100vh - 26px), 700px);
}

.modal.modal-account-create .modal-header {
  padding: 12px 16px 10px;
}

.modal.modal-account-create .modal-header h3 {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
  letter-spacing: -0.025em;
}

.modal.modal-account-create .modal-body {
  padding: 10px 16px 14px;
}

.account-create-form {
  gap: 12px;
}

.account-create-field {
  gap: 6px;
}

.account-create-field > span {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
}

.account-create-form input,
.account-create-form select,
.account-create-form textarea,
.netia-select-trigger {
  font-weight: var(--font-weight-normal);
}

.account-create-money-row {
  gap: 8px;
}

.account-create-money-row > input {
  min-width: 0;
}

.account-create-currency {
  width: 104px;
  flex: 0 0 104px;
}

.account-create-more-link {
  border: 0;
  background: transparent;
  color: var(--color-text-label);
  cursor: pointer;
  padding: 0;
  justify-self: start;
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  font-weight: var(--font-weight-medium);
}

.account-create-more-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.account-create-more-fields {
  display: grid;
  gap: 10px;
}

.account-create-more-fields[hidden] {
  display: none;
}

.netia-select {
  position: relative;
}

.netia-select-trigger {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.netia-select-trigger .material-symbols-rounded {
  font-size: var(--icon-size-md);
  color: var(--muted);
}

.netia-select-trigger:hover {
  border-color: var(--border-strong);
}

.netia-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 4px;
  display: grid;
  gap: 2px;
  z-index: 140;
  max-height: 280px;
  overflow: auto;
}

.netia-select-menu.is-floating {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
}

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

.netia-select-option {
  border: 0;
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  cursor: pointer;
  font-weight: var(--font-weight-normal);
}

.netia-select-option-main {
  min-width: 0;
}

.netia-select-option-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  padding-right: 4px;
  white-space: nowrap;
}

.netia-select-group {
  padding: 7px 10px 4px;
  color: var(--color-text-dropdown-group);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.netia-select-option .material-symbols-rounded {
  opacity: 0;
  font-size: var(--icon-size-md);
}

.netia-select-option:hover {
  background: var(--surface-soft);
}

.netia-select-option.is-selected {
  background: color-mix(in srgb, var(--success) 18%, var(--surface));
  color: var(--color-select-active-text);
}

.netia-select-option.is-selected .material-symbols-rounded {
  opacity: 1;
}

.tx-movement-list {
  gap: 12px;
}

.tx-movement-item {
  padding: 12px 14px;
  gap: 14px;
}

.tx-movement-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.tx-movement-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tx-movement-meta .item-title {
  font-size: var(--text-md);
  line-height: var(--text-md--line-height);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.02em;
}

.tx-movement-meta .item-sub {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-normal);
}

.tx-movement-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin-right: 0;
  flex: 0 0 42px;
  font-size: var(--icon-size-lg);
}

.tx-movement-icon .material-symbols-rounded {
  font-size: var(--icon-size-lg);
}

.tx-movement-right {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 2px;
}

.tx-movement-amount {
  font-size: var(--text-md);
  line-height: var(--text-md--line-height);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

.tx-movement-amount.tx-amount-expense {
  color: var(--color-red-600);
}

.tx-movement-amount.tx-amount-income {
  color: var(--color-green-600);
}

.tx-movement-currency {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-normal);
}

.tx-movement-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-movement-list {
  display: grid;
  gap: 0;
}

.account-movement-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.account-movement-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.account-movement-item .tx-movement-main {
  min-width: 0;
}

.account-movement-item .tx-movement-right {
  margin-left: auto;
}

.account-movement-item .tx-movement-meta .item-title {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
}

.account-movement-item .tx-movement-meta .item-sub {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.account-movement-item .tx-movement-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.account-movement-item-boxed {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.account-movement-item-boxed + .account-movement-item-boxed {
  margin-top: 10px;
}

.account-movement-item-boxed:last-child {
  padding-bottom: 12px;
}

.tx-description-input::placeholder {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-normal);
}

.tx-balance-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px !important;
}

.tx-balance-toggle-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tx-balance-toggle-copy strong {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-medium);
}

.tx-balance-toggle-control {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 100%;
}

.tx-balance-toggle-control input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tx-balance-toggle-track {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--color-toggle-track);
  position: relative;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.tx-balance-toggle-track::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--color-border-soft);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.16s ease;
}

.tx-balance-toggle-control input:checked + .tx-balance-toggle-track {
  background: color-mix(in srgb, var(--success) 34%, var(--surface));
  border-color: color-mix(in srgb, var(--success) 58%, var(--border));
}

.tx-balance-toggle-control input:checked + .tx-balance-toggle-track::after {
  transform: translateX(18px);
}

.tx-summary-grid .tx-kpi-card {
  border-width: 1px;
}

.tx-kpi-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 40%, var(--surface));
  color: var(--color-text-caption);
}

.tx-kpi-icon .material-symbols-rounded {
  font-size: var(--icon-size-md);
}

.tx-kpi-card-expense {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: color-mix(in srgb, var(--surface) 92%, var(--danger));
}

.tx-kpi-card-expense .tx-kpi-icon {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 20%, var(--surface));
}

.tx-kpi-card-income {
  border-color: color-mix(in srgb, var(--success) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 92%, var(--success));
}

.tx-kpi-card-income .tx-kpi-icon {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 20%, var(--surface));
}

.tx-kpi-card-expected {
  border-color: color-mix(in srgb, var(--warning) 44%, var(--border));
  background: color-mix(in srgb, var(--surface) 91%, var(--color-warning-soft));
}

.tx-kpi-card-expected .kpi-value {
  color: var(--color-text-warning-strong);
}

.tx-kpi-card-expected .tx-kpi-icon {
  color: var(--color-text-warning);
  background: color-mix(in srgb, var(--color-warning-chip) 22%, var(--surface));
}

.tx-filter-panel {
  gap: 12px;
}

.tx-filter-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tx-filter-panel-head h3 {
  margin-bottom: 3px;
}

.tx-filter-panel-description {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--muted);
  font-weight: var(--font-weight-normal);
}

.tx-filter-panel-summary {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.tx-filter-panel-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tx-filter-panel-total {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.tx-filter-panel-total-value {
  font-weight: var(--font-weight-semibold);
}

.tx-filter-panel-total-value.expense {
  color: var(--color-red-600);
}

.tx-filter-panel-total-value.income {
  color: var(--color-green-600);
}

.tx-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.tx-filter-field {
  display: grid;
  gap: 6px;
}

.tx-filter-field-label {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--muted);
  font-weight: var(--font-weight-medium);
}

.tx-filter-input-wrap {
  position: relative;
  display: block;
}

.tx-filter-input-wrap .material-symbols-rounded {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}

.tx-filter-input-wrap input {
  padding-left: 38px;
  font-size: var(--text-sm);
}

.tx-filter-actions {
  display: flex;
  align-items: end;
}

.tx-recent-panel {
  gap: 12px;
}

.tx-recent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tx-recent-head h3 {
  margin: 0;
}

.tx-recent-count {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  text-align: right;
  white-space: nowrap;
}

.recurring-panel {
  gap: 12px;
}

.recurring-panel-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.recurring-panel-main {
  min-width: 0;
}

.recurring-panel-right {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.recurring-panel-head h3 {
  margin-bottom: 3px;
}

.recurring-panel-description {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--muted);
  font-weight: var(--font-weight-normal);
}

.recurring-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.recurring-total-label {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--muted);
  font-weight: var(--font-weight-medium);
}

.recurring-total-value {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  font-weight: var(--font-weight-semibold);
}

.recurring-total-value.expense {
  color: var(--color-red-600);
}

.recurring-total-value.income {
  color: var(--color-green-600);
}

.recurring-list {
  gap: 10px;
}

.recurring-breakdown-panel {
  gap: 12px;
}

.recurring-breakdown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.recurring-breakdown-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-soft));
  padding: 10px;
  display: grid;
  gap: 8px;
}

.recurring-breakdown-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.recurring-breakdown-block-title {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
}

.recurring-breakdown-head h3 {
  margin-bottom: 3px;
}

.recurring-breakdown-description {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--muted);
  font-weight: var(--font-weight-normal);
}

.recurring-breakdown-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
}

.recurring-breakdown-total-label {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--muted);
  font-weight: var(--font-weight-medium);
}

.recurring-breakdown-total-value {
  font-size: var(--text-md);
  line-height: var(--text-md--line-height);
  font-weight: var(--font-weight-semibold);
}

.recurring-breakdown-total-value.expense {
  color: var(--color-red-600);
}

.recurring-breakdown-total-value.income {
  color: var(--color-green-600);
}

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

.recurring-breakdown-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recurring-breakdown-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.recurring-breakdown-label {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
}

.recurring-breakdown-sub {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--muted);
  font-weight: var(--font-weight-normal);
}

.recurring-breakdown-value {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
  text-align: right;
  white-space: nowrap;
}

.recurring-breakdown-value.expense {
  color: var(--color-red-600);
}

.recurring-breakdown-value.income {
  color: var(--color-green-600);
}

.recurrence-month-separator {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-semibold);
  color: var(--muted);
  padding: 2px 2px 0;
}

.recurrence-item {
  gap: 14px;
}

.recurrence-item.is-due {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--border));
  background: color-mix(in srgb, var(--surface) 94%, var(--danger));
}

.recurrence-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.recurrence-right {
  margin-left: auto;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "amount actions"
    "currency actions";
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  justify-items: end;
}

.recurrence-amount {
  grid-area: amount;
  font-size: var(--text-md);
  line-height: var(--text-md--line-height);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

.recurrence-amount-neutral {
  color: var(--text);
}

.recurrence-amount-expense {
  color: var(--color-red-600);
}

.recurrence-amount-income {
  color: var(--color-green-600);
}

.recurrence-amount-variable {
  grid-area: amount;
  color: var(--color-text-recurrence);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
}

.recurrence-currency {
  grid-area: currency;
  text-align: right;
  white-space: nowrap;
}

.recurrence-due-danger {
  color: var(--color-red-600);
  font-weight: var(--font-weight-medium);
}

.recurrence-mark-btn {
  min-width: 110px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 12px;
  border-color: var(--border);
  background: var(--surface);
  color: var(--color-text-button-secondary);
  font-weight: var(--font-weight-medium);
}

.recurrence-mark-btn .material-symbols-rounded {
  font-size: var(--icon-size-sm);
}

.recurrence-mark-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
}

.recurrence-mark-btn.is-due {
  border-color: var(--color-red-600);
  background: var(--color-red-600);
  color: var(--surface);
}

.recurrence-mark-btn.is-due .material-symbols-rounded {
  color: var(--surface);
}

.recurrence-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-area: actions;
  margin-left: 2px;
}

.recurrence-more {
  position: relative;
}

.recurrence-more-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
}

.recurrence-more-btn .material-symbols-rounded {
  font-size: var(--icon-size-lg);
}

.recurrence-menu {
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  z-index: 70;
}

.recurrence-menu button {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-normal);
}

.recurrence-menu button .material-symbols-rounded {
  color: var(--muted);
  font-size: var(--icon-size-md);
}

.recurrence-menu .danger-option {
  color: var(--color-red-600);
}

.recurrence-menu .danger-option .material-symbols-rounded {
  color: var(--color-red-600);
}

@media (max-width: 880px) {
  .recurring-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tx-filter-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tx-filter-panel-summary {
    text-align: left;
    white-space: normal;
  }

  .tx-filter-panel-metrics {
    align-items: flex-start;
  }

  .tx-filter-panel-total {
    text-align: left;
    white-space: normal;
  }

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

  .tx-filter-field-search {
    grid-column: 1 / -1;
  }

  .tx-filter-actions {
    grid-column: 1 / -1;
  }

  .recurring-panel-right {
    margin-left: 0;
    align-items: center;
    justify-content: space-between;
  }

  .recurring-total {
    align-items: flex-start;
  }

  .recurrence-right {
    grid-template-columns: 1fr;
    grid-template-areas:
      "amount"
      "currency"
      "actions";
    justify-items: end;
    row-gap: 4px;
  }

  .recurrence-actions {
    margin-left: 0;
  }

  .recurring-breakdown-head {
    flex-direction: column;
    align-items: stretch;
  }

  .recurring-breakdown-columns {
    grid-template-columns: 1fr;
  }

  .recurring-breakdown-block-head {
    flex-direction: column;
    align-items: stretch;
  }

  .recurring-breakdown-total {
    margin-left: 0;
    align-items: flex-start;
  }

  .recurring-breakdown-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .recurring-breakdown-value {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .tx-filter-grid {
    grid-template-columns: 1fr;
  }

  .tx-filter-actions .btn {
    width: 100%;
  }

  .tx-recent-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tx-recent-count {
    text-align: left;
    white-space: normal;
  }
}

.recurrence-form,
.recurrence-pay-form {
  gap: 12px;
}

.recurrence-form {
  gap: 10px;
}

.recurrence-inline-row {
  align-items: flex-end;
  gap: 10px;
}

.recurrence-inline-row > label {
  margin: 0;
}

.recurrence-frequency-field {
  flex: 0.95;
}

.recurrence-date-field {
  flex: 1.05;
}

.recurrence-date-hint {
  display: block;
  margin-top: -2px;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.tx-balance-toggle-recurrence {
  justify-content: flex-start !important;
  gap: 8px;
  align-items: flex-start;
}

.tx-balance-toggle-recurrence .tx-balance-toggle-control {
  flex: 0 0 auto;
  margin-top: 0;
  align-self: flex-start;
}

.tx-balance-toggle-recurrence .tx-balance-toggle-copy {
  align-items: flex-start;
  gap: 0;
}

.tx-balance-toggle-recurrence .tx-balance-toggle-copy strong {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-medium);
}

.tx-balance-toggle-recurrence .tx-balance-toggle-copy .muted {
  display: block;
  margin-top: -1px;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.tx-balance-toggle-recurrence .tx-balance-toggle-track {
  width: 40px;
  height: 22px;
}

.tx-balance-toggle-recurrence .tx-balance-toggle-track::after {
  width: 16px;
  height: 16px;
  top: 2px;
  left: 2px;
}

.tx-balance-toggle-recurrence .tx-balance-toggle-control input:checked + .tx-balance-toggle-track::after {
  transform: translateX(18px);
}

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

.modal.modal-recurrence {
  width: min(100%, 560px);
  overflow: hidden;
  max-height: min(calc(100vh - 26px), 720px);
}

.modal.modal-recurrence .modal-body {
  padding: 0px 24px 24px 24px;
  max-height: min(calc(100vh - 106px), 650px);
  overflow-x: visible;
  overflow-y: auto;
}

.modal.modal-recurrence-pay {
  width: min(100%, 560px);
  overflow: hidden;
  max-height: min(calc(100vh - 26px), 520px);
}

.modal.modal-recurrence-pay .modal-body {
  padding: 10px 12px 12px;
  overflow-x: visible;
  overflow-y: auto;
}

.modal.modal-recurrence input,
.modal.modal-recurrence select,
.modal.modal-recurrence textarea,
.modal.modal-recurrence-pay input,
.modal.modal-recurrence-pay select,
.modal.modal-recurrence-pay textarea {
  min-height: 40px;
  padding: 7px 10px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.modal.modal-recurrence .netia-select-trigger,
.modal.modal-recurrence-pay .netia-select-trigger {
  min-height: 40px;
  padding: 7px 10px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.modal.modal-recurrence textarea,
.modal.modal-recurrence-pay textarea {
  min-height: 78px;
}

.modal.modal-account-type {
  width: min(100%, 448px);
}

.modal.modal-account-type .modal-header {
  padding: 10px 16px 8px;
}

.modal.modal-account-type .modal-header h3 {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

.modal.modal-account-type .modal-body {
  padding: 8px 16px 12px;
}

.account-type-form {
  gap: 10px;
}

.account-type-field {
  gap: 4px;
}

.account-type-field > span,
.account-type-section h4 {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.015em;
  color: var(--text);
}

.account-type-field input {
  min-height: 42px;
  border-radius: 14px;
  padding-inline: 12px;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-normal);
}

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

.account-type-picker {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 7px;
}

.account-type-icon-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.account-type-icon-option {
  border: 1px solid transparent;
  min-height: 32px;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--color-text-account-icon);
}

.account-type-icon-option .material-symbols-rounded {
  font-size: var(--icon-size-lg);
}

.account-type-icon-option:hover {
  border-color: var(--border);
  background: var(--surface-soft);
}

.account-type-icon-option.is-selected {
  background: var(--primary);
  color: var(--surface);
}

.account-type-color-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.account-type-color-option {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--account-color);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--surface);
  margin-inline: auto;
}

.account-type-color-option .material-symbols-rounded {
  opacity: 0;
  font-size: var(--icon-size-sm);
}

.account-type-color-option:hover {
  transform: translateY(-1px);
}

.account-type-color-option.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--primary) 26%, transparent);
}

.account-type-color-option.is-selected .material-symbols-rounded {
  opacity: 1;
}

.account-type-preview {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 9px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-type-preview-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.account-type-preview-icon .material-symbols-rounded {
  font-size: var(--icon-size-2xl);
}

.account-type-preview-name {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.02em;
}

.account-type-actions {
  margin-top: 2px;
}

.account-type-actions .btn {
  min-height: 36px;
  border-radius: 12px;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-medium);
}

.modal.modal-tx-category {
  width: min(100%, 520px);
  max-height: min(calc(100vh - 26px), 680px);
}

.modal.modal-tx-category .modal-header {
  padding: 12px 16px 10px;
}

.modal.modal-tx-category .modal-header h3 {
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

.modal.modal-tx-category .modal-body {
  padding: 10px 16px 14px;
}

.tx-cat-form {
  gap: 10px;
}

.tx-cat-field {
  gap: 5px;
}

.tx-cat-field > span,
.tx-cat-section h4 {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

.tx-cat-field input,
.tx-cat-field select,
.tx-cat-custom-input {
  min-height: 42px;
  border-radius: 12px;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
}

.tx-cat-section {
  display: grid;
  gap: 6px;
}

.tx-cat-emoji-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tx-cat-emoji-toggle {
  border: 0;
  background: transparent;
  color: var(--color-text-label);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  padding: 0;
}

.tx-cat-emoji-toggle:hover {
  color: var(--text);
  text-decoration: underline;
}

.tx-cat-emoji-picker {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  background: var(--surface);
}

.tx-cat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.tx-cat-emoji-option {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: var(--icon-size-md);
  line-height: var(--line-height-tight);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tx-cat-emoji-option:hover {
  border-color: var(--border);
  background: var(--surface-soft);
}

.tx-cat-emoji-option.is-selected {
  background: var(--primary);
  color: var(--surface);
}

.tx-cat-custom-wrap[hidden] {
  display: none;
}

.tx-cat-custom-input {
  text-align: center;
}

.tx-cat-helper {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--muted);
}

.tx-cat-actions .btn {
  min-height: 40px;
  border-radius: 12px;
}

.desktop-only {
  display: inline-flex;
}

#app.sidebar-collapsed {
  --sidebar-width: 78px;
}

#app.sidebar-collapsed .nav-label,
#app.sidebar-collapsed .sidebar-footer .btn,
#app.sidebar-collapsed .sidebar-footer .user-mini {
  display: none;
}

#app.sidebar-collapsed .sidebar nav a {
  justify-content: center;
  padding-inline: 0;
}

#app.sidebar-collapsed .nav-icon {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.toast-stack {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 8px;
  z-index: 90;
}

.toast {
  min-width: 220px;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--success);
  border-radius: 12px;
  padding: 11px;
  box-shadow: var(--shadow-sm);
}

.toast.error {
  border-left-color: var(--danger);
}

.mobile-only {
  display: none !important;
}

.bottom-nav.mobile-only {
  display: none !important;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-overlay-surface-98);
  border-top: 1px solid var(--border);
  padding: 7px 8px 9px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  z-index: 70;
}

.bottom-nav a {
  display: grid;
  gap: 1px;
  place-items: center;
  text-align: center;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-black);
  min-height: 40px;
  border-radius: 10px;
  font-weight: var(--font-weight-normal);
}

.bottom-nav a .nav-icon {
  width: auto;
  font-size: var(--icon-size-md);
  color: inherit;
}

.bottom-nav .nav-label {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.bottom-nav a.active {
  color: var(--primary);
  background: var(--surface-soft);
}

.fab {
  position: fixed;
  right: 16px;
  bottom: 74px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: var(--surface);
  font-size: var(--icon-size-3xl);
  box-shadow: var(--shadow-md);
  z-index: 75;
}

@media (max-width: 1160px) {
  .content {
    padding: 18px;
  }

  .page-title h1,
  .page-head h1 {
    font-size: clamp(var(--text-2xl), 3.2vw, var(--text-4xl));
    line-height: var(--text-2xl--line-height);
  }
}

@media (max-width: 980px) {
  :root {
    --topbar-height: 60px;
  }

  .lp-shell {
    padding: 12px 14px 38px;
    gap: 40px;
  }

  .lp-topbar {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
  }

  .lp-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .lp-hero-title {
    font-size: clamp(2.3rem, 8.5vw, 4rem);
  }

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

  .lp-steps-grid,
  .lp-testimonial-grid {
    grid-template-columns: 1fr;
  }

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

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

  .landing-page {
    padding: 14px;
    gap: 14px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

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

  .landing-mini-card {
    grid-column: 1 / -1;
  }

  .landing-flow {
    grid-template-columns: 1fr;
  }

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

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

  .sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    z-index: 85;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-md);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    padding: 14px 14px 84px;
    overflow-x: hidden;
  }

  .brand {
    gap: 8px;
  }

  .brand-text {
    font-size: var(--text-2xl);
    line-height: var(--text-2xl--line-height);
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav.mobile-only {
    display: grid !important;
  }

  .fab.mobile-only {
    display: grid !important;
    place-items: center;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head .row {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }

  .page-head .row > * {
    min-width: 0;
  }

  #monthPicker {
    flex: 1 1 100%;
    min-width: 0;
  }

  #registerTxBtn {
    flex: 1 1 100%;
    width: 100%;
  }

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

  .dashboard-patrimonial-chart-box {
    width: min(100%, 260px);
  }

  .dashboard-trend-panel {
    min-height: 320px;
  }

  .dashboard-trend-canvas {
    height: 220px !important;
    max-height: 220px !important;
  }

  .dashboard-estado-right {
    grid-template-columns: 1fr;
  }

  .dashboard-breakdown-head strong {
    font-size: var(--text-xl);
    line-height: var(--text-xl--line-height);
  }

  .row.grow {
    flex-wrap: wrap;
  }

  .row.grow > * {
    min-width: min(100%, 180px);
  }

  .tx-summary-grid,
  .tx-chart-grid,
  .recurring-panel,
  .recurring-breakdown-panel,
  .account-movement-list {
    min-width: 0;
  }

  .tx-chart-grid .panel canvas,
  .dashboard-trend-panel canvas {
    max-width: 100% !important;
  }

  .settings-trm-calc-grid {
    grid-template-columns: 1fr;
  }

  .chips {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 2px;
  }

  .chip {
    white-space: nowrap;
  }

  .menu-dropdown {
    right: 0;
    min-width: 210px;
  }

  #addActionBtn {
    display: none !important;
  }

  .menu-dropdown.is-floating {
    --action-menu-item-min-height: 54px;
    --action-menu-item-padding-y: 14px;
    --action-menu-item-padding-x: 14px;
    --action-menu-item-gap: 12px;
    --action-menu-item-icon-size: 20px;
  }

  .modal.modal-account-create,
  .modal.modal-transaction {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal.modal-account-create .modal-header,
  .modal.modal-transaction .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .modal.modal-account-create .modal-body,
  .modal.modal-transaction .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: none;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .modal.modal-account-create .form-actions,
  .modal.modal-transaction .form-actions {
    position: sticky;
    bottom: 0;
    padding: 10px 0 calc(2px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--surface) 84%, transparent);
  }
}

@media (max-width: 680px) {
  .public-page {
    padding: 16px;
  }

  .lp-shell {
    padding: 8px 10px 32px;
    gap: 32px;
  }

  .lp-topbar {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    position: static;
  }

  .lp-brand {
    font-size: var(--text-xl);
    line-height: var(--text-2xl--line-height);
  }

  .lp-top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .lp-top-actions .btn {
    min-height: 38px;
    padding: 8px 12px;
  }

  .lp-nav {
    display: none;
  }

  .lp-hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .lp-hero-actions .btn {
    width: 100%;
  }

  .lp-showcase-metrics,
  .lp-feature-grid,
  .lp-steps-grid,
  .lp-metric-strip,
  .lp-testimonial-grid,
  .lp-footer {
    grid-template-columns: 1fr;
  }

  .lp-showcase-card {
    padding: 14px;
  }

  .auth-wrap {
    width: 100%;
  }

  .auth-card {
    padding: 18px;
    border-radius: 16px;
  }

  .social-row,
  .form-actions {
    flex-direction: column;
  }

  body[data-page="landing"].public-page {
    padding: 0;
  }

  .landing-page {
    padding: 12px;
    gap: 12px;
  }

  .landing-topbar {
    padding: 10px;
    border-radius: 14px;
  }

  .landing-brand {
    font-size: var(--text-2xl);
    line-height: var(--text-2xl--line-height);
  }

  .landing-top-actions .btn {
    min-height: 38px;
    padding: 8px 11px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 16px;
    gap: 14px;
  }

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

  .landing-mini-card {
    grid-column: 1 / -1;
  }

  .landing-checks li {
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
  }

  .landing-actions {
    width: 100%;
    flex-direction: column;
  }

  .landing-actions .btn {
    width: 100%;
  }

  .landing-flow,
  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-flow-card,
  .landing-feature,
  .landing-cta {
    padding: 12px;
  }

  .landing-footer {
    flex-direction: column;
    gap: 4px;
  }

  .topbar {
    padding-inline: 10px;
  }

  .topbar .btn {
    min-height: var(--topbar-action-mobile-min-height);
    padding: var(--topbar-action-mobile-padding-y) var(--topbar-action-mobile-padding-x);
    font-size: var(--topbar-action-mobile-font-size);
    line-height: var(--topbar-action-mobile-line-height);
  }

  .modal {
    width: min(100%, 560px);
    max-height: calc(100vh - 26px);
  }

  .modal.modal-account-type {
    width: min(100%, 448px);
  }

  .modal.modal-account-create {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal.modal-transaction {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal.modal-tx-category {
    width: min(100%, 520px);
  }

  .modal.modal-confirm {
    width: min(100%, 560px);
  }

  .modal.modal-account-type .modal-header {
    padding: 12px 14px 10px;
  }

  .modal.modal-account-create .modal-header {
    padding: 12px 14px 10px;
  }

  .modal.modal-transaction .modal-header {
    padding: 12px 14px 10px;
  }

  .modal.modal-tx-category .modal-header {
    padding: 12px 14px 10px;
  }

  .modal.modal-account-type .modal-body {
    padding: 10px 14px 14px;
  }

  .modal.modal-account-create .modal-body {
    padding: 10px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .modal.modal-transaction .modal-body {
    padding: 10px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .modal.modal-tx-category .modal-body {
    padding: 10px 14px 14px;
  }

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

  .account-create-money-row {
    flex-wrap: nowrap;
  }

  .account-create-currency {
    width: 92px;
    flex-basis: 92px;
  }

  .tx-cat-emoji-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .tx-category-item.is-subcategory {
    margin-left: 20px;
    margin-right: 6px;
  }

  .account-type-color-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .account-type-color-option {
    width: 40px;
    height: 40px;
  }

  .account-type-field input {
    min-height: 42px;
    border-radius: 12px;
    font-size: var(--text-base);
    line-height: var(--text-base--line-height);
  }

  .account-type-preview {
    border-radius: 12px;
    padding: 10px;
  }

  .account-type-preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .account-type-preview-icon .material-symbols-rounded {
    font-size: var(--icon-size-xl);
  }

  .account-type-preview-name {
    font-size: var(--text-lg);
    line-height: var(--text-lg--line-height);
  }

  .account-type-actions .btn {
    min-height: 38px;
    border-radius: 12px;
    font-size: var(--text-base);
    line-height: var(--text-base--line-height);
  }

  .tx-summary-grid .kpi-value {
    font-size: clamp(var(--text-2xl), 8vw, var(--text-3xl));
    line-height: var(--text-2xl--line-height);
  }

  .recurrence-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .recurrence-right {
    width: 100%;
    margin-left: 0;
    justify-items: start;
    grid-template-columns: 1fr;
    grid-template-areas:
      "amount"
      "currency"
      "actions";
  }

  .recurrence-currency {
    text-align: left;
  }

  .recurrence-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .modal-header h3 {
    font-size: var(--text-2xl);
    line-height: var(--text-2xl--line-height);
  }

  .table th,
  .table td {
    padding-inline: 8px;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
  }
}
