﻿[hidden] { display: none !important; }

:root {
  --bg: #fff7f9;
  --surface: #ffffff;
  --surface-2: #fff0f5;
  --ink: #322832;
  --muted: #7f6b76;
  --line: #f2d8e2;
  --primary: #f47c9f;
  --primary-strong: #db527c;
  --green: #168b63;
  --green-soft: #ddf7ec;
  --blue: #4969d8;
  --blue-soft: #e8edff;
  --amber: #a86600;
  --amber-soft: #fff2d9;
  --red: #bf3556;
  --red-soft: #ffe6ec;
  --shadow: 0 18px 48px rgba(96, 50, 70, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

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

.auth-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 16%, rgba(244, 124, 159, 0.18), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(73, 105, 216, 0.12), transparent 24%),
    var(--bg);
  z-index: 20;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-card h1, .topbar h2 {
  margin: 0;
  font-family: Nunito, Inter, sans-serif;
  font-weight: 900;
}

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

.brand-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #ffa9bd);
  color: white;
  font: 900 34px Nunito, sans-serif;
  box-shadow: 0 14px 30px rgba(244, 124, 159, 0.35);
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 14px;
  font-size: 22px;
  flex: 0 0 auto;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand strong {
  display: block;
  font: 900 22px Nunito, sans-serif;
}

.sidebar-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.nav-button.active {
  background: var(--surface-2);
  color: var(--primary-strong);
}

.content { min-width: 0; padding: 28px; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 auto 22px;
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.month-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary-strong);
  font-size: 22px;
  line-height: 1;
}

.view { display: none; max-width: 1180px; margin: 0 auto; }
.view.active { display: block; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(96, 50, 70, 0.07);
}

.card { padding: 18px; }
.panel { padding: 22px; margin-bottom: 16px; }

.card-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.card-value { display: block; margin-top: 8px; font: 900 28px Nunito, sans-serif; }
.positive { color: var(--green); }
.negative { color: var(--red); }

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

.section-title h3 { margin: 0; font: 900 22px Nunito, sans-serif; }
.section-title p { margin: 4px 0 0; color: var(--muted); }

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

.field { display: grid; gap: 6px; }
.field.span-2 { grid-column: span 2; }
.field.span-4 { grid-column: 1 / -1; }

label { color: var(--muted); font-size: 12px; font-weight: 900; }

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

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

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(244, 124, 159, 0.14);
}

.primary-action, .secondary-action, .ghost-action, .danger-action {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
}

.primary-action { background: var(--primary); color: white; }
.secondary-action { background: var(--blue-soft); color: var(--blue); }
.ghost-action { background: var(--surface-2); color: var(--primary-strong); }
.danger-action { background: var(--red-soft); color: var(--red); }

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

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.item-main strong { display: block; }

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.mini-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-2);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
}

.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f6e5eb;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; gap: 6px; }

.bar-row header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 22px;
  color: var(--muted);
  background: #fffafb;
}

.empty-state strong { display: block; color: var(--ink); margin-bottom: 4px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 30;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.chat-shell { display: grid; grid-template-rows: minmax(320px, 55vh) auto; gap: 12px; }

.chat-log {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.message {
  max-width: 82%;
  margin-bottom: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  line-height: 1.45;
}

.message.user { margin-left: auto; background: var(--primary); color: #fff; }
.message.bot { background: var(--surface-2); }

.ai-preview {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.form-error { min-height: 20px; color: var(--red); font-size: 13px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px; }
  .section-nav { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .nav-button { white-space: nowrap; }
  .content { padding: 18px 14px 92px; }
  .topbar { display: grid; }
  .grid.two, .grid.three, .grid.four, .form-grid { grid-template-columns: 1fr; }
  .field.span-2, .field.span-4 { grid-column: auto; }
  .list-item { grid-template-columns: 1fr; }
  .item-actions { justify-content: flex-start; }
}


/* Visual refresh - Gastitos personality */
body {
  background:
    radial-gradient(circle at 8% 10%, rgba(244, 124, 159, 0.22), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(178, 247, 239, 0.36), transparent 22%),
    linear-gradient(180deg, #fff8fb 0%, #fff2f7 45%, #f7fffc 100%);
}

.app-shell {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 280px, transparent 280px),
    radial-gradient(circle at 76% 18%, rgba(255, 238, 178, 0.28), transparent 20%);
}

.sidebar {
  background: rgba(255, 247, 250, 0.88);
  box-shadow: 14px 0 44px rgba(219, 82, 124, 0.08);
}

.sidebar::after {
  content: "";
  height: 140px;
  margin-top: auto;
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 30%, #ffb5c8 0 18px, transparent 19px),
    radial-gradient(circle at 68% 70%, #b2f7ef 0 22px, transparent 23px),
    linear-gradient(135deg, rgba(255, 240, 245, 0.9), rgba(232, 213, 251, 0.55));
  opacity: 0.95;
}

.brand-mark,
.brand-mark.small {
  overflow: hidden;
  background: linear-gradient(135deg, #ff85a1, #ffb5c8 58%, #e8d5fb);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-brand strong {
  color: #3d2c35;
  letter-spacing: 0.01em;
}

.section-nav {
  gap: 9px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #6f5663;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-button:hover {
  transform: translateX(3px);
  background: rgba(255, 240, 245, 0.85);
  color: var(--primary-strong);
}

.nav-button.active {
  background: linear-gradient(135deg, #ff85a1, #ffb5c8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(244, 124, 159, 0.25);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
  font: 900 14px Nunito, sans-serif;
}

.nav-button.active .nav-icon {
  background: rgba(255, 255, 255, 0.92);
}

.topbar {
  padding: 18px 20px;
  border: 1px solid rgba(242, 216, 226, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(96, 50, 70, 0.07);
  backdrop-filter: blur(14px);
}

.topbar h2 {
  color: #3d2c35;
}

.month-control {
  box-shadow: inset 0 0 0 1px rgba(255, 181, 200, 0.34);
}

.icon-button:hover,
.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.card,
.panel {
  border-color: rgba(242, 216, 226, 0.68);
  box-shadow: 0 18px 46px rgba(96, 50, 70, 0.08);
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 240, 245, 0.74));
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -32px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(255, 133, 161, 0.14);
}

.metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff85a1, #ffb5c8);
  color: #fff;
  font: 900 16px Nunito, sans-serif;
  box-shadow: 0 10px 22px rgba(244, 124, 159, 0.26);
}

.panel {
  background: rgba(255, 255, 255, 0.86);
}

.section-title h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 22px;
  margin-right: 10px;
  border-radius: 99px;
  background: linear-gradient(#ff85a1, #b2f7ef);
  vertical-align: -4px;
}

.progress {
  background: #ffe6ef;
}

.progress span {
  background: linear-gradient(90deg, #2eca8b, #7de8dc);
}

.empty-state {
  background:
    linear-gradient(135deg, rgba(255, 250, 251, 0.96), rgba(255, 240, 245, 0.84));
}

.gasti-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  background: linear-gradient(135deg, #ff85a1, #ff6b8d);
  color: #fff;
  font: 900 15px Nunito, sans-serif;
  box-shadow: 0 18px 42px rgba(244, 124, 159, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gasti-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 52px rgba(244, 124, 159, 0.52);
}

.gasti-fab img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.chat-log {
  background:
    linear-gradient(180deg, rgba(255, 250, 251, 0.96), rgba(255, 255, 255, 0.96));
}

.message.bot {
  background: #fff0f5;
  color: #4b3540;
}

.message.user {
  background: linear-gradient(135deg, #ff85a1, #ff6b8d);
}

@media (max-width: 980px) {
  .sidebar::after { display: none; }
  .gasti-fab { right: 16px; bottom: 18px; }
  .topbar { padding: 16px; }
}

/* Fase 1 - planning refinements */
.starter-panel {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(232, 213, 251, 0.72));
}

.alert-item {
  border-color: rgba(255, 181, 200, 0.7);
  background: linear-gradient(135deg, #fffafb, #fff0f5);
}

.planned-card {
  align-items: start;
}

.planned-card .item-main p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.item-actions .mini-button[data-edit],
.item-actions .mini-button[data-postpone] {
  background: var(--blue-soft);
  color: var(--blue);
}

.item-actions .mini-button[data-delete] {
  background: var(--red-soft);
  color: var(--red);
}

/* Fase 2 - money flow and calendar */
.simulation-result {
  margin: 12px 0;
}

.simulation-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 181, 200, 0.7);
  background: #fffafb;
  font-size: 14px;
}

.simulation-card.positive {
  border-color: rgba(46, 202, 139, 0.35);
  background: linear-gradient(135deg, rgba(236, 255, 247, 0.96), rgba(255, 255, 255, 0.94));
}

.simulation-card.negative {
  border-color: rgba(233, 90, 111, 0.35);
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.96), rgba(255, 255, 255, 0.94));
}

.compact-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 124, 159, 0.16);
}

.calendar-list {
  gap: 10px;
}

.calendar-item {
  grid-template-columns: 92px 1fr;
  align-items: center;
}

.calendar-date {
  display: grid;
  gap: 2px;
  min-height: 58px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff0f5, #f3fbff);
  color: var(--ink);
}

.calendar-date strong {
  font-size: 18px;
  line-height: 1;
}

.calendar-date span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-item.week .calendar-date,
.calendar-item.late .calendar-date {
  background: linear-gradient(135deg, #ff85a1, #ffb5c8);
  color: #fff;
}

.calendar-item.week .calendar-date span,
.calendar-item.late .calendar-date span {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 680px) {
  .calendar-item {
    grid-template-columns: 1fr;
  }

  .calendar-date {
    width: 100%;
  }
}

/* Fase 4 - motivation and organization */
.vision-preview {
  margin-top: 16px;
  border-color: color-mix(in srgb, var(--vision-color, #ff85a1) 45%, white);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--vision-color, #ff85a1) 18%, white), rgba(255,255,255,0.9));
}

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

.vision-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--vision-color, #ff85a1) 35%, white);
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 42px rgba(96, 50, 70, 0.08);
}

.vision-card img,
.vision-swatch {
  width: 100%;
  height: 128px;
  display: block;
  object-fit: cover;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.65), transparent 24%),
    linear-gradient(135deg, var(--vision-color, #ff85a1), #b2f7ef);
}

.vision-card > div {
  padding: 14px;
}

.vision-card p {
  min-height: 38px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Floating Gasti chat + app-like responsive shell */
.gasti-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-content: end;
  align-items: end;
  padding: 24px;
  background: rgba(48, 33, 42, 0.18);
  backdrop-filter: blur(4px);
}

.gasti-chat-card {
  width: min(420px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(242, 216, 226, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 76px rgba(96, 50, 70, 0.24);
}

.gasti-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(242, 216, 226, 0.7);
  background: linear-gradient(135deg, #fff8fb, #fff0f5);
}

.gasti-chat-header > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.gasti-chat-header strong,
.gasti-chat-header span {
  display: block;
}

.gasti-chat-header strong {
  font: 900 18px Nunito, sans-serif;
}

.gasti-chat-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gasti-chat-avatar {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(244, 124, 159, 0.22);
}

.gasti-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gasti-panel .chat-log {
  min-height: 0;
  height: auto;
  max-height: none;
  overflow-y: auto;
  padding: 16px;
}

.gasti-panel .chat-compose {
  padding: 12px;
  border-top: 1px solid rgba(242, 216, 226, 0.7);
  background: rgba(255, 250, 251, 0.95);
}

.gasti-panel .chat-compose textarea {
  min-height: 54px;
  max-height: 140px;
}

.gasti-fab.active {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 58px rgba(244, 124, 159, 0.55);
}

@media (max-width: 1180px) {
  body {
    background: linear-gradient(180deg, #fff8fb 0%, #fff2f7 100%);
  }

  .app-shell {
    min-height: 100svh;
    display: block;
    background: transparent;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 30;
    height: auto;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid rgba(242, 216, 226, 0.86);
    background: rgba(255, 250, 251, 0.94);
    box-shadow: 0 -18px 42px rgba(96, 50, 70, 0.1);
  }

  .sidebar-brand,
  .ghost-action {
    display: none;
  }

  .section-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(74px, 1fr);
    gap: 6px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    min-height: 58px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 18px;
    text-align: center;
    font-size: 11px;
    line-height: 1.05;
  }

  .nav-button span:last-child {
    display: block;
    white-space: nowrap;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto;
  }

  .content {
    min-height: 100svh;
    padding: 12px 12px 104px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 18;
    margin-bottom: 14px;
    border-radius: 22px;
  }

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

  .gasti-fab {
    right: 16px;
    bottom: 96px;
  }
}

@media (max-width: 720px) {
  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar {
    align-items: flex-start;
    padding: 14px;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .month-control {
    max-width: 100%;
    font-size: 13px;
  }

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

  .span-2,
  .span-4 {
    grid-column: auto;
  }

  .panel,
  .card {
    border-radius: 20px;
  }

  .metric-card {
    min-height: 98px;
  }

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

  .item-actions .mini-button {
    min-height: 40px;
    flex: 1 1 auto;
  }

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

  .gasti-panel {
    align-items: end;
    padding: 0;
  }

  .gasti-chat-card {
    width: 100vw;
    height: min(86svh, 760px);
    border-radius: 28px 28px 0 0;
    border-bottom: 0;
  }

  .gasti-fab {
    right: 14px;
    bottom: 92px;
    padding-right: 12px;
  }

  .gasti-fab span {
    display: none;
  }

  .gasti-fab img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 460px) {
  .section-nav {
    grid-auto-columns: minmax(64px, 1fr);
  }

  .nav-button {
    font-size: 10px;
  }

  .topbar {
    display: grid;
  }
}

/* Gastitos modal system - replaces browser prompt/confirm */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(48, 33, 42, 0.34);
  backdrop-filter: blur(8px);
}

.app-modal-card {
  width: min(520px, calc(100vw - 28px));
  max-height: min(760px, calc(100svh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 181, 200, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 90px rgba(48, 33, 42, 0.28);
}

.app-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(242, 216, 226, 0.86);
  background: linear-gradient(135deg, #fff8fb, #fff0f5);
}

.app-modal-header strong,
.app-modal-header span {
  display: block;
}

.app-modal-header strong {
  font: 900 20px Nunito, sans-serif;
}

.app-modal-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.app-modal-form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.app-modal-body {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
}

.app-modal-body .field {
  margin: 0;
}

.modal-summary,
.modal-copy {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff0f5;
  color: #5f3e4c;
  font-weight: 800;
  line-height: 1.45;
}

.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(242, 216, 226, 0.7);
  background: rgba(255, 250, 251, 0.94);
}

.danger-action {
  background: linear-gradient(135deg, #e95a6f, #bf3556) !important;
}

@media (max-width: 720px) {
  .app-modal {
    align-items: end;
    padding: 0;
  }

  .app-modal-card {
    width: 100vw;
    max-height: 88svh;
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
  }

  .app-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* UX simplification - guided home */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(242, 216, 226, 0.82);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 245, 0.86)),
    radial-gradient(circle at 92% 12%, rgba(178, 247, 239, 0.45), transparent 28%);
  box-shadow: 0 22px 58px rgba(96, 50, 70, 0.1);
}

.home-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff0f5;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero h3 {
  max-width: 680px;
  margin: 0;
  color: #352a33;
  font: 900 34px/1.05 Nunito, Inter, sans-serif;
}

.home-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #6f5663;
  font-size: 17px;
  line-height: 1.45;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.money-focus {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #2eca8b, #7de8dc);
  color: #073c30;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.46), 0 18px 42px rgba(46, 202, 139, 0.22);
}

.money-focus.negative {
  background: linear-gradient(135deg, #ff85a1, #ffd1dc);
  color: #5a1024;
}

.money-focus span,
.money-focus small {
  font-weight: 900;
}

.money-focus strong {
  margin: 8px 0;
  font: 900 36px/1 Nunito, Inter, sans-serif;
}

.money-focus small {
  line-height: 1.35;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.setup-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(242, 216, 226, 0.8);
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 14px 34px rgba(96, 50, 70, 0.07);
}

.setup-card.done {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(221,247,236,0.6));
}

.setup-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff85a1, #ffb5c8);
  color: #fff;
  font-weight: 900;
}

.setup-card strong {
  display: block;
  color: #352a33;
  font: 900 18px Nunito, Inter, sans-serif;
}

.setup-card p {
  margin: 6px 0 10px;
  color: #755d6b;
  line-height: 1.35;
}

.setup-card .mini-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.dashboard-lite {
  margin-top: 4px;
}

.calm-panel .section-title h3 {
  font-size: 22px;
}

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

.simple-pill {
  padding: 14px;
  border-radius: 18px;
  background: #fff7fa;
  border: 1px solid rgba(242, 216, 226, 0.78);
}

.simple-pill span {
  display: block;
  margin-bottom: 6px;
  color: #755d6b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-pill strong {
  color: #332832;
  font: 900 22px Nunito, Inter, sans-serif;
}

.simple-pill.green { background: #effcf6; border-color: #c9f1df; }
.simple-pill.amber { background: #fff7e8; border-color: #ffe2aa; }
.simple-pill.red { background: #fff0f4; border-color: #ffc9d6; }

.advanced-panel {
  margin-top: 18px;
}

.advanced-panel summary {
  cursor: pointer;
  color: var(--primary-strong);
  font-weight: 900;
  list-style: none;
}

.advanced-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-panel summary::after {
  content: "+";
  float: right;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0f5;
}

.advanced-panel[open] summary::after {
  content: "-";
}

.compact-metrics {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .home-hero,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .money-focus {
    min-height: 150px;
  }
}

@media (max-width: 720px) {
  .home-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .home-hero h3 {
    font-size: 27px;
  }

  .home-hero p {
    font-size: 15px;
  }

  .home-actions,
  .home-actions button,
  .setup-card .mini-button {
    width: 100%;
  }

  .money-focus strong {
    font-size: 31px;
  }

  .simple-readout {
    grid-template-columns: 1fr;
  }
}

.danger-mini {
  background: var(--red-soft) !important;
  color: var(--red) !important;
}

.modal-error {
  padding: 10px 12px;
  border: 1px solid #ffc9d6;
  border-radius: 14px;
  background: #fff0f4;
  color: var(--red);
  font-weight: 900;
  line-height: 1.35;
}

/* Simple core: ingresos, gastos y deudas */
.quick-capture-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(242, 216, 226, 0.86);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 240, 245, 0.86)),
    radial-gradient(circle at 95% 10%, rgba(178, 247, 239, 0.5), transparent 24%);
  box-shadow: 0 20px 52px rgba(96, 50, 70, 0.1);
}

.quick-capture-copy h3 {
  margin: 0;
  font: 900 34px/1.05 Nunito, Inter, sans-serif;
  color: #352a33;
}

.quick-capture-copy p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #6f5663;
  font-size: 16px;
  line-height: 1.45;
}

.quick-gasti-form {
  display: grid;
  grid-template-rows: minmax(148px, 1fr) auto;
  gap: 12px;
}

.quick-gasti-form textarea {
  min-height: 148px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.45;
}

.quick-gasti-form button {
  justify-self: end;
}

.household-strip {
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .quick-capture-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quick-capture-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .quick-capture-copy h3 {
    font-size: 28px;
  }

  .quick-gasti-form button {
    width: 100%;
  }
}

/* Zero-state UI polish */
:root {
  --bg: #fff8fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: #fff0f5;
  --line: #f0d6df;
  --shadow: 0 14px 34px rgba(77, 43, 58, 0.08);
  --sidebar-w: 258px;
}

body {
  background: linear-gradient(135deg, #fff8fb 0%, #f8fffc 100%);
}

.app-shell {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  padding: 24px 20px;
  background: rgba(255, 247, 250, 0.9);
}

.sidebar::after {
  display: none;
}

.content {
  padding: 32px 24px 34px;
}

.topbar,
.view {
  max-width: 1160px;
}

.topbar {
  min-height: 88px;
  padding: 18px 22px;
  border-radius: 22px;
}

.month-control {
  min-width: 188px;
  justify-content: space-between;
}

.grid {
  gap: 14px;
}

.panel,
.card {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.metric-card {
  min-height: auto;
  padding: 16px;
  background: var(--surface);
}

.metric-card::after,
.metric-icon {
  display: none;
}

.card-value {
  margin-top: 6px;
  font-size: 26px;
}

.section-title {
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-title h3 {
  font-size: 21px;
  line-height: 1.1;
}

.section-title h3::before {
  height: 18px;
  margin-right: 8px;
}

.section-title p {
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.35;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  align-items: end;
  gap: 12px 14px;
}

.field.span-2 {
  grid-column: span 2;
}

.field.span-4 {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  min-height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

textarea {
  min-height: 92px;
}

.primary-action,
.secondary-action,
.ghost-action,
.danger-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.list-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.empty-state {
  min-height: 92px;
  display: grid;
  align-content: center;
  border-radius: 16px;
}

.quick-capture-panel {
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 241, 246, 0.9));
}

.quick-capture-copy h3 {
  font-size: 32px;
}

.quick-gasti-form textarea {
  min-height: 138px;
}

#view-debts > .grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  align-items: start;
}

#view-debts > .grid.two .panel,
#view-plan .panel,
#view-money .panel {
  overflow: visible;
}

#view-debts > .grid.two .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#view-debts > .grid.two .field.span-2,
#view-debts > .grid.two .field.span-4 {
  grid-column: 1 / -1;
}

.gasti-fab {
  right: 24px;
  bottom: 24px;
}

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

  .content {
    padding: 14px 14px 106px;
  }

  .topbar,
  .view {
    max-width: none;
  }

  .topbar {
    min-height: 78px;
  }

  #view-debts > .grid.two {
    grid-template-columns: 1fr;
  }

  .gasti-fab {
    bottom: 96px;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .month-control {
    width: 100%;
  }

  .grid.four,
  .grid.three,
  .grid.two,
  .form-grid,
  #view-debts > .grid.two .form-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2,
  .field.span-4 {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 16px;
  }

  .section-title {
    display: grid;
  }

  .section-title .secondary-action,
  .section-title .primary-action {
    width: 100%;
  }
}

/* Calm home summary and on-demand analytics */
.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 4px 24px;
  border-bottom: 1px solid var(--line);
}

.home-overview-copy h3,
.analytics-heading h3 {
  margin: 5px 0 8px;
  color: #302831;
  font: 900 32px/1.08 Nunito, Inter, sans-serif;
  letter-spacing: 0;
}

.home-overview-copy p,
.analytics-heading p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-balance {
  min-height: 130px;
  display: grid;
  align-content: center;
  padding: 20px;
  border: 1px solid #bfe9d7;
  border-radius: 18px;
  background: #eefaf5;
}

.home-balance.negative {
  border-color: #ffc6d3;
  background: #fff0f4;
}

.home-balance span,
.home-summary-card > span,
.analytics-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-balance strong {
  margin: 4px 0;
  color: var(--green);
  font: 900 34px/1 Nunito, Inter, sans-serif;
}

.home-balance.negative strong { color: var(--red); }
.home-balance small { color: var(--muted); }

.home-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.home-summary-card {
  min-height: 128px;
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid #8b63c7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.home-summary-card.income { border-top-color: #20a77a; }
.home-summary-card.expense { border-top-color: #f06f98; }
.home-summary-card.debt { border-top-color: #5575df; }

.home-summary-card strong {
  margin: 5px 0;
  color: var(--ink);
  font: 900 28px/1.1 Nunito, Inter, sans-serif;
}

.home-summary-card small { color: var(--muted); }

.home-dashboard-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #dbe2fb;
  border-radius: 16px;
  background: #f3f6ff;
}

.home-dashboard-action strong,
.home-dashboard-action span { display: block; }
.home-dashboard-action strong { color: #354780; }
.home-dashboard-action span { margin-top: 3px; color: #6c7694; font-size: 13px; }

.month-pulse { display: grid; gap: 14px; }
.month-pulse .progress span { background: #5575df; }
.month-pulse .bar-row:nth-child(2) .progress span { background: #e7a229; }

.month-pulse-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.month-pulse-note strong { color: var(--ink); }

.analytics-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 4px 2px 18px;
  border-bottom: 1px solid var(--line);
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-metric {
  min-height: 96px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid #5575df;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.analytics-metric.green { border-left-color: #20a77a; }
.analytics-metric.pink { border-left-color: #f06f98; }
.analytics-metric.blue { border-left-color: #5575df; }
.analytics-metric.amber { border-left-color: #e7a229; }
.analytics-metric.red { border-left-color: #d95b55; }

.analytics-metric strong {
  margin-top: 7px;
  color: var(--ink);
  font: 900 24px/1.1 Nunito, Inter, sans-serif;
}

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

.analytics-panel { min-height: 330px; }
.analytics-panel.wide { grid-column: 1 / -1; min-height: 300px; }

.trend-legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { width: 9px; height: 9px; border-radius: 3px; }
.trend-legend i.income { background: #20a77a; }
.trend-legend i.spent { background: #f06f98; }

.trend-chart {
  height: 205px;
  display: grid;
  grid-template-columns: repeat(6, minmax(38px, 1fr));
  gap: 14px;
  align-items: end;
  padding: 14px 8px 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0, transparent 48px, rgba(127, 107, 118, 0.08) 49px, transparent 50px);
}

.trend-column { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) 24px; gap: 6px; }
.trend-column small { color: var(--muted); text-align: center; text-transform: capitalize; }
.trend-bars { min-height: 0; display: flex; align-items: end; justify-content: center; gap: 5px; }
.trend-bars span { width: min(22px, 38%); min-height: 3px; border-radius: 5px 5px 0 0; }
.trend-income { background: #20a77a; }
.trend-spent { background: #f06f98; }

.donut-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.donut {
  width: 170px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.donut > div {
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut strong { font: 900 18px Nunito, Inter, sans-serif; }
.donut span { color: var(--muted); font-size: 11px; }
.donut-legend { display: grid; gap: 9px; }

.donut-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.donut-legend-row i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend-row strong { color: var(--ink); }

.comparison-bars,
.debt-chart { display: grid; gap: 16px; }
.comparison-row { display: grid; gap: 7px; }
.comparison-row header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.comparison-row header strong { color: var(--ink); }
.comparison-row > div { height: 12px; overflow: hidden; border-radius: 999px; background: #edf0f8; }
.comparison-row > div span { display: block; height: 100%; border-radius: inherit; background: #5575df; }
.comparison-row:nth-child(2) > div span { background: #f06f98; }
.comparison-row:nth-child(3) > div span { background: #20a77a; }

.debt-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.debt-chart-row { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.debt-chart-row header { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.debt-chart-row header span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.debt-chart-row small { display: block; margin-top: 7px; color: var(--muted); }
.debt-chart-row .progress span { background: #20a77a; }

/* Keep Gasti available without covering dashboard actions. */
.gasti-fab {
  width: 64px;
  min-width: 64px;
  height: 64px;
  padding: 6px;
  justify-content: center;
  border-radius: 50%;
}

.gasti-fab span { display: none; }
.gasti-fab img { width: 52px; height: 52px; }

@media (min-width: 1181px) {
  .content { padding-right: 88px; }
  .gasti-fab { right: 14px; }
}

@media (max-width: 900px) {
  .sidebar > .ghost-action { display: none; }
  .home-overview { grid-template-columns: 1fr; }
  .home-balance { min-height: 108px; }
  .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-panel.wide { grid-column: auto; }
}

@media (max-width: 620px) {
  .home-overview-copy h3,
  .analytics-heading h3 { font-size: 27px; }
  .home-summary-grid,
  .analytics-metrics,
  .debt-chart { grid-template-columns: 1fr; }
  .home-summary-card { min-height: 110px; }
  .home-dashboard-action,
  .analytics-heading { align-items: stretch; flex-direction: column; }
  .home-dashboard-action .primary-action,
  .analytics-heading .secondary-action { width: 100%; }
  .analytics-panel { min-height: auto; }
  .trend-chart { gap: 7px; padding-inline: 0; }
  .donut-layout { grid-template-columns: 1fr; justify-items: center; }
  .donut-legend { width: 100%; }
}
