:root {
  color-scheme: light;
  --pink: #ec5d95;
  --pink-strong: #cf2f73;
  --rose: #fff0f6;
  --ink: #2b1d27;
  --muted: #77626f;
  --line: #ead2dd;
  --mint: #178f73;
  --paper: #fffafd;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,240,246,.94), rgba(255,255,255,.98) 42%, rgba(232,250,245,.9)),
    #fff;
}
button, input { font: inherit; }
.hidden { display: none !important; }
.shell { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 36px; }
.login {
  min-height: 84vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}
.brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: white;
  font-size: 44px;
  font-weight: 850;
  box-shadow: 0 18px 50px rgba(207, 47, 115, .25);
}
.login h1, .topbar h1 { margin: 0; font-size: clamp(34px, 6vw, 60px); line-height: 1; }
.login p, .topbar p { margin: 0; color: var(--muted); }
#login-form {
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: white;
  color: var(--ink);
}
button {
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  background: var(--pink-strong);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
button:active { transform: translateY(1px); }
.error { min-height: 20px; color: #b42318 !important; }
.dashboard { display: grid; gap: 18px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  color: var(--pink-strong) !important;
}
.icon-button { min-width: 92px; background: #2b1d27; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(120deg, #ffffff, var(--rose));
  box-shadow: 0 18px 60px rgba(207, 47, 115, .12);
}
.label, article span, .panel-head span, .pulse-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero strong {
  display: block;
  margin: 4px 0 8px;
  color: var(--pink-strong);
  font-size: clamp(42px, 10vw, 78px);
  line-height: .95;
}
.hero span { color: var(--muted); font-weight: 650; }
.pulse-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 4px;
}
.cross {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #dff6ef;
  color: var(--mint);
  font-size: 28px;
  font-weight: 900;
}
.pulse-card strong { font-size: 20px; color: var(--ink); }
.money-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
article, .panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  padding: 16px;
}
article strong { display: block; margin-top: 7px; font-size: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.panel h2 { margin: 0; font-size: 20px; }
.list, .accounts, .reminders { display: grid; gap: 9px; }
.row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f2dce6;
}
.row b, .row span { overflow-wrap: anywhere; }
.row small { display: block; margin-top: 2px; color: var(--muted); font-weight: 650; }
.amount { font-weight: 900; color: var(--pink-strong); white-space: nowrap; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tab {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 12px;
}
.tab.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.done b { text-decoration: line-through; color: var(--muted); }
@media (max-width: 780px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 14px; }
  .topbar { align-items: flex-start; }
  .hero, .split { grid-template-columns: 1fr; }
  .money-grid { grid-template-columns: 1fr 1fr; }
  .pulse-card { min-height: 112px; }
}
@media (max-width: 460px) {
  .money-grid { grid-template-columns: 1fr; }
  .topbar { display: grid; }
  .icon-button { width: 100%; }
  .row { grid-template-columns: 1fr; }
  .amount { white-space: normal; }
}
