:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --paper: #fff;
  --ink: #202124;
  --muted: #62666d;
  --green: #242527;
  --lime: #ffd6a5;
  --line: #e8e9ec;
  --amber: #a26932;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
.welcome-art {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
  object-position: center 58%;
  border-radius: 16px;
  margin: 18px 0;
}
.empty-art {
  display: block;
  width: min(220px, 100%);
  height: 155px;
  object-fit: cover;
  object-position: center 55%;
  margin: 0 auto 22px;
  border-radius: 18px;
}
.purchase-art {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 56%;
  border-radius: 14px;
  margin-bottom: 24px;
}
.goal-art {
  display: block;
  width: min(360px, 100%);
  height: auto;
  border-radius: 18px;
  margin: 16px auto;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8dba80;
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 42px;
  font-weight: 550;
  letter-spacing: -1.8px;
  line-height: 1.16;
  margin-bottom: 14px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 22px;
}
p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 38px 23px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -1.3px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand span {
  font-size: 12px;
  align-self: flex-start;
  margin-top: 8px;
}
.sidebar-caption {
  font-size: 12px;
  letter-spacing: 1.6px;
  color: #62666d;
  margin: 22px 0 34px 6px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.nav-item {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 15px;
  border-radius: 10px;
  color: #62666d;
  font-size: 13px;
  font-weight: 500;
}
.nav-item span {
  font-size: 20px;
  line-height: 20px;
  width: 20px;
  text-align: center;
}
.nav-item:hover {
  background: #f2f2f4;
}
.nav-item.active {
  background: #fff0e1;
  color: var(--green);
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-badge {
  font-size: 12px;
  color: #477360;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #95bf79;
  border-radius: 50%;
}
.profile {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.profile > span {
  width: 36px;
  height: 36px;
  background: #ede8dd;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.profile small {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
main {
  margin-left: 236px;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #62666d;
}
.topbar > div {
  display: flex;
  gap: 25px;
  align-items: center;
}
.slash {
  margin: 0 12px;
  color: #c5ccc2;
}
.online-status {
  font-size: 12px;
  color: #62666d;
}
.date {
  color: #62666d;
}
.content {
  max-width: 1400px;
  margin: auto;
  padding: 42px 46px 36px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #62666d;
  margin-bottom: 18px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  margin-bottom: 0;
}
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 42px;
  white-space: nowrap;
}
.btn.primary {
  background: var(--green);
  color: white;
}
.btn.primary:hover {
  background: #226657;
}
.btn.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--green);
}
.btn.lime {
  background: var(--lime);
  color: #204636;
}
.full {
  width: 100%;
}
.green {
  color: #32705b;
}
.amber {
  color: var(--amber);
}
.dashboard {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 23px;
  margin-bottom: 24px;
}
.hero-card {
  background: var(--green);
  color: #fff;
  border-radius: 15px;
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
}
.hero-card:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  right: -130px;
  top: -110px;
  box-shadow:
    0 0 0 45px #ffffff03,
    0 0 0 90px #ffffff03;
  pointer-events: none;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #c9d9ce;
}
.hero-top span:last-child {
  letter-spacing: 0;
}
.big-money {
  font-size: 45px;
  font-weight: 500;
  letter-spacing: -2px;
  margin-top: 35px;
  position: relative;
}
.big-money span {
  font-size: 14px;
  letter-spacing: 0;
  color: #b7cfc1;
  margin-left: 10px;
}
.hero-card p {
  color: #b7cfc1;
  font-size: 12px;
  margin: 10px 0 22px;
}
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff20;
  padding-top: 19px;
  margin-top: auto;
  gap: 15px;
}
.hero-bottom small {
  display: block;
  font-size: 12px;
  color: #b7cfc1;
}
.hero-bottom strong {
  display: block;
  font-size: 14px;
  margin-top: 6px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 24px;
  min-width: 0;
}
.dashboard .card {
  margin-bottom: 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-title h2 {
  margin: 0;
}
.tag {
  font-size: 12px;
  background: #f1f2f4;
  color: #62666d;
  padding: 6px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  color: #62666d;
  font-size: 12px;
}
.calc-row b {
  color: #3b4e44;
  font-size: 12px;
  white-space: nowrap;
}
.calc-row strong {
  color: var(--ink);
}
.calc-row small {
  display: block;
  margin-top: 5px;
}
.calc-row.total {
  border-top: 1px dashed #dce3d6;
  margin-top: 8px;
  padding-top: 15px;
  color: var(--ink);
}
.hint {
  font-size: 12px;
  line-height: 1.75;
  color: #62666d;
  margin: 12px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  padding: 20px 24px;
}
.mini-card > span {
  display: block;
  color: #62666d;
  font-size: 12px;
}
.mini-card > strong {
  font-size: 23px;
  letter-spacing: -0.6px;
  display: block;
  margin: 13px 0 6px;
  font-weight: 550;
}
.mini-card small {
  font-size: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 23px;
  align-items: start;
}
.text-button {
  border: 0;
  background: none;
  padding: 5px 0;
  font-size: 12px;
  color: #62666d;
  font-weight: 600;
}
.tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #eff0f2;
  min-width: 0;
}
.tx:last-child {
  border-bottom: 0;
}
.tx-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #f3f0e7;
  color: #9b8865;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tx-icon.income {
  background: #eaf1e4;
  color: #5a7c4e;
}
.tx-icon.transfer {
  background: #edf0f4;
  color: #687b99;
}
.tx-info {
  flex: 1;
  min-width: 0;
}
.tx-info strong {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tx-info small {
  font-size: 12px;
  display: block;
  margin-top: 5px;
}
.tx-amount {
  font-size: 12px;
  white-space: nowrap;
  font-weight: 600;
}
.icon-button {
  border: 0;
  background: none;
  padding: 7px;
  color: #62666d;
  font-size: 20px;
}
.bill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid #eff1eb;
}
.bill-icon {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  background: #f1f4ea;
  border-radius: 50%;
  color: #8b9a72;
  flex-shrink: 0;
}
.bill > div {
  flex: 1;
}
.bill strong {
  font-size: 12px;
}
.bill small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.bill b {
  font-size: 12px;
}
.calendar-icon {
  color: #9dab87;
}
.soft-note {
  background: #f6f7f0;
  color: #62666d;
  font-size: 12px;
  padding: 18px;
  border-radius: 7px;
  line-height: 1.8;
  margin-top: 20px;
}
.notice {
  font-size: 12px;
  padding: 14px 17px;
  border-radius: 8px;
  line-height: 1.7;
  margin: 18px 0;
}
.notice.warning {
  background: #fbf0df;
  color: #936931;
}
.notice.success {
  background: #edf4e7;
  color: #62666d;
}
.notice button {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
}
.demo-banner {
  background: #eaf0de;
  border-bottom: 1px solid #dde7cd;
  font-size: 12px;
  padding: 11px 46px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #62666d;
}
.demo-banner button {
  border: 0;
  background: none;
  color: #46633c;
  font-size: 12px;
  font-weight: 600;
}
footer {
  max-width: 1400px;
  margin: auto;
  padding: 0 46px 27px;
  font-size: 14px;
  font-weight: 600;
  color: #62666d;
  display: flex;
  justify-content: space-between;
}
footer span {
  font-size: 12px;
  font-weight: 400;
}
.subtitle {
  margin-bottom: 30px;
}
.step-label {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: #62666d;
  display: block;
  margin-bottom: 20px;
}
.comparison {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #f8f9f4;
  border-radius: 9px;
  padding: 22px 17px;
  margin: 20px 0;
}
.comparison small,
.comparison strong {
  display: block;
}
.comparison small {
  font-size: 12px;
}
.comparison strong {
  font-size: 23px;
  margin: 10px 0 6px;
  letter-spacing: -0.5px;
}
.comparison span {
  color: #62666d;
  font-size: 12px;
}
.comparison > span {
  font-size: 22px;
}
.chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 5px;
  position: relative;
  margin: 35px 0 30px;
  padding: 0 4px;
}
.chart-col {
  height: 100%;
  flex: 1;
  position: relative;
  display: flex;
  align-items: end;
  min-width: 0;
}
.bar {
  width: 100%;
  background: #64917a;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.bar.low {
  background: #d6b17c;
}
.chart-col > span {
  position: absolute;
  bottom: -23px;
  font-size: 12px;
  color: #62666d;
  left: 30%;
}
.reserve-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #b4bcab;
  z-index: 1;
  pointer-events: none;
}
.reserve-line span {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 12px;
  color: #62666d;
}
.quick-picks {
  display: flex;
  gap: 8px;
  margin: 14px 0 25px;
}
.quick-picks button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
}
.wallets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin: 24px 0;
}
.wallet {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 12px;
}
.wallet > span {
  font-size: 12px;
  color: #62666d;
}
.wallet strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-top: 15px;
}
.add-wallet {
  border-style: dashed;
  background: none;
  font-size: 12px;
  color: #62666d;
}
.budget-row {
  padding: 15px 0;
}
.budget-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}
.budget-row > small {
  font-size: 12px;
}
.progress {
  height: 6px;
  background: #f0f2ea;
  border-radius: 3px;
  margin: 12px 0 7px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: #347565;
  border-radius: 3px;
}
.empty {
  text-align: center;
  padding: 30px 10px;
}
.empty > span {
  display: block;
  font-size: 30px;
  color: #b3c49b;
  margin-bottom: 15px;
}
.empty strong {
  display: block;
  font-size: 13px;
}
.empty p {
  font-size: 12px;
  margin-top: 10px;
}
.empty.small {
  padding: 24px 8px;
}
label {
  display: block;
  font-size: 12px;
  color: #62666d;
  margin: 18px 0;
}
input,
select {
  display: block;
  width: 100%;
  border: 1px solid #dfe1e5;
  border-radius: 7px;
  background: #ffffff;
  padding: 12px;
  color: var(--ink);
  margin-top: 9px;
  min-width: 0;
}
input::placeholder {
  color: #62666d;
}
.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 7px;
  background: #ffffff;
  margin-top: 9px;
  padding: 0 12px;
  gap: 10px;
}
.input-prefix > span {
  font-size: 12px;
  color: #62666d;
}
.input-prefix input {
  border: 0;
  background: none;
  padding: 12px 0;
  margin: 0;
  outline-offset: 0;
}
.input-prefix.large input {
  font-size: 30px;
  padding: 20px 0;
  letter-spacing: -1px;
}
.search-label {
  max-width: 380px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid label {
  margin-top: 0;
}
.button-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.file-label {
  margin: 0;
  cursor: pointer;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.danger {
  color: #984b37;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: min(480px, calc(100% - 28px));
  max-height: 90vh;
  box-shadow: 0 30px 100px #18392a30;
  color: var(--ink);
}
dialog::backdrop {
  background: #16342665;
  backdrop-filter: blur(4px);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.welcome-mark {
  font-size: 46px;
  color: var(--green);
  font-weight: 650;
  background: #e9f1df;
  width: 85px;
  height: 85px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin: 25px 0;
}
.mobile-nav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #203e32;
  color: #fff;
  padding: 14px 22px;
  border-radius: 9px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 10;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .content {
    padding-top: 55px;
  }
  .hero-card {
    min-height: 310px;
  }
  .big-money {
    font-size: 54px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 30px 18px;
  }
  main {
    margin-left: 205px;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .demo-banner {
    padding: 12px 25px;
  }
  .dashboard {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hero-card {
    padding: 25px 22px;
  }
  .big-money {
    font-size: 36px;
  }
  .hero-bottom {
    align-items: start;
    flex-direction: column;
  }
  .two-col {
    gap: 16px;
  }
  .card {
    padding: 20px;
  }
  .hero-top {
    flex-direction: column;
    gap: 8px;
  }
  .comparison {
    padding: 15px 10px;
  }
  .comparison strong {
    font-size: 19px;
  }
  .stats {
    gap: 12px;
  }
  .mini-card {
    padding: 18px;
  }
  .mini-card > strong {
    font-size: 20px;
  }
}
@media (max-width: 820px) {
  .sidebar {
    width: 76px;
    padding: 25px 10px;
  }
  .brand {
    font-size: 0;
    gap: 0;
    justify-content: center;
  }
  .brand span,
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .nav-item {
    font-size: 0;
    padding: 14px;
    justify-content: center;
    gap: 0;
  }
  main {
    margin-left: 76px;
  }
  .topbar {
    height: 65px;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .hero-bottom .btn {
    font-size: 12px;
    padding: 10px;
  }
  .big-money {
    font-size: 30px;
  }
  .big-money span {
    font-size: 12px;
    margin-left: 6px;
  }
  .page-heading {
    align-items: start;
  }
  h1 {
    font-size: 36px;
  }
  .stats {
    gap: 10px;
  }
  .mini-card {
    padding: 15px;
  }
  .mini-card > strong {
    font-size: 18px;
  }
  .tx {
    gap: 8px;
  }
  .tx-icon {
    display: none;
  }
  .tx-info small {
    font-size: 12px;
  }
  .tx-amount {
    font-size: 12px;
  }
  .bill {
    flex-wrap: wrap;
  }
  .bill b {
    font-size: 12px;
  }
  .comparison {
    flex-wrap: wrap;
  }
  .comparison strong {
    font-size: 18px;
  }
  .explanation .calc-row {
    font-size: 12px;
  }
  .calc-row b {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    display: none;
  }
  main {
    margin-left: 0;
    padding-bottom: 85px;
  }
  .topbar {
    height: 62px;
    padding: 0 20px;
  }
  .topbar > span {
    font-size: 12px;
  }
  .date {
    display: none;
  }
  .content {
    padding: 28px 18px 15px;
  }
  .demo-banner {
    padding: 11px 18px;
    font-size: 12px;
  }
  .demo-banner button {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
  }
  h1 {
    font-size: 34px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .btn {
    align-self: start;
  }
  .dashboard,
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-card {
    min-height: 270px;
    margin-bottom: 18px;
    padding: 25px;
  }
  .hero-top {
    flex-direction: row;
    font-size: 12px;
  }
  .big-money {
    font-size: 44px;
    margin-top: 35px;
  }
  .big-money span {
    font-size: 12px;
  }
  .hero-bottom {
    flex-direction: row;
    align-items: center;
  }
  .hero-bottom .btn {
    font-size: 12px;
    padding: 11px;
  }
  .card {
    padding: 22px;
    margin-bottom: 18px;
  }
  .dashboard .card {
    margin-bottom: 0;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 18px 0;
  }
  .mini-card {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 16px 18px;
    align-items: center;
  }
  .mini-card > strong {
    font-size: 21px;
    margin: 0;
    grid-column: 2;
    grid-row: 1/3;
  }
  .mini-card > small {
    margin-top: 6px;
  }
  .tx-icon {
    display: grid;
  }
  .tx-amount {
    font-size: 12px;
  }
  .tx-info small {
    font-size: 12px;
  }
  .tx {
    gap: 10px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fffffff5;
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--line);
    padding: 8px 4px max(10px, env(safe-area-inset-bottom));
    z-index: 5;
    justify-content: space-around;
  }
  .mobile-nav .nav-item {
    font-size: 12px;
    flex-direction: column;
    gap: 5px;
    padding: 7px 6px;
    border-radius: 7px;
  }
  .mobile-nav .nav-item span {
    font-size: 19px;
  }
  .mobile-nav .nav-item.active {
    background: #edf2e5;
  }
  .comparison strong {
    font-size: 25px;
  }
  .comparison {
    padding: 22px 18px;
  }
  .wallets {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .wallet {
    padding: 17px;
  }
  .wallet strong {
    font-size: 20px;
  }
  footer {
    padding: 0 20px 15px;
  }
  footer span {
    font-size: 12px;
  }
  .explanation .calc-row {
    font-size: 12px;
  }
  .calc-row b {
    font-size: 12px;
  }
  .bill {
    flex-wrap: nowrap;
  }
  #toast {
    bottom: 100px;
  }
  .button-stack {
    flex-direction: column;
  }
  .subtitle {
    font-size: 12px;
  }
  .section-title h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.portfolio-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12px;
}
.portfolio-row small {
  display: block;
  margin: 6px 0;
  font-size: 12px;
}
.portfolio-row > div:last-child {
  text-align: right;
}
.portfolio-row button {
  margin: 6px;
}
.import-preview {
  max-height: 45vh;
  overflow: auto;
}
.sidebar nav {
  overflow-y: auto;
}
.tx-info {
  min-width: 60px;
}
.edit-tx {
  font-size: 14px;
}
.wallet > button {
  float: right;
}
.comparison {
  flex-wrap: nowrap;
}
.simulation {
  container-type: inline-size;
}
@container (max-width:320px) {
  .comparison {
    flex-wrap: wrap;
  }
  .comparison > div {
    min-width: 100%;
  }
  .comparison > span {
    display: none;
  }
}
@media (max-width: 600px) {
  .mobile-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .mobile-nav .nav-item {
    min-width: 62px;
    flex-shrink: 0;
  }
  .tx {
    gap: 6px;
  }
  .tx-info small {
    font-size: 12px;
  }
  .icon-button {
    padding: 5px;
  }
  .wallet > button {
    float: none;
  }
  .calc-row {
    flex-wrap: wrap;
  }
}

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
textarea {
  display: block;
  width: 100%;
  font:
    13px/1.7 ui-monospace,
    monospace;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  padding: 14px;
  margin-top: 10px;
  resize: vertical;
}
.raw-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
  max-height: 40vh;
  overflow: auto;
}
.draft-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
}
.checkbox input {
  width: auto;
  margin: 0;
}
details {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
summary {
  cursor: pointer;
}

.statement-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.statement-table td,
.statement-table th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px;
  min-width: 90px;
}
.statement-table th {
  min-width: 25px;
  color: var(--muted);
}

/* UI audit fixes: readable text, touch targets, coherent responsive controls. */
button,
a.btn {
  min-height: 44px;
}
button {
  min-width: 44px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 8px;
  flex-shrink: 0;
  color: #62666d;
}
.btn {
  font-size: 14px;
}
.hint,
small {
  line-height: 1.65;
}
.section-title {
  flex-wrap: wrap;
}
.section-title h2 {
  flex: 1;
  min-width: 125px;
}
.eyebrow,
.sidebar-caption {
  font-size: 12px;
  letter-spacing: 1.3px;
}
.wallet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wallet > span {
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.wallet > button {
  float: none;
  grid-column: 2;
  grid-row: 1;
}
.wallet > strong {
  grid-column: 1/-1;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.wallet.add-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-prefix input,
input,
select,
textarea {
  font-size: 16px;
}
.demo-banner {
  align-items: center;
}
.demo-banner button {
  white-space: normal;
}
.tx-info strong {
  font-size: 14px;
}
.tx-info small {
  font-size: 12px;
}
.tx-amount {
  font-size: 14px;
}
.form-error {
  padding: 12px;
  background: #fff0e9;
  color: #873c29;
  border-radius: 8px;
  font-size: 14px;
  margin: 12px 0;
}
.dialog-status {
  font-size: 13px;
  color: #62666d;
}
.btn.destructive {
  background: #963f31;
  color: white;
}
.btn.destructive:hover {
  background: #7d3025;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  background: #174d42;
  color: white;
  padding: 14px;
  z-index: 30;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.more-menu {
  display: grid;
  gap: 10px;
}
.more-menu button {
  border: 1px solid var(--line);
  background: #f6f7f3;
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  font-size: 16px;
}
.chart-data {
  margin-top: 32px;
}
.chart-data summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #174d42;
}
.chart-data table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.chart-data th,
.chart-data td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1000px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .comparison {
    flex-wrap: nowrap;
  }
  .simulation {
    container-type: normal;
  }
  .comparison > div {
    min-width: 0;
  }
  .comparison > span {
    display: block;
  }
  .hero-top {
    line-height: 1.6;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .mini-card > strong {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    gap: 0;
    padding-left: 4px;
    padding-right: 4px;
  }
  .mobile-nav .nav-item {
    min-width: 0;
    min-height: 58px;
    padding: 7px 2px;
    font-size: 11px;
    gap: 5px;
    white-space: nowrap;
  }
  .mobile-nav .nav-item span {
    font-size: 20px;
  }
  .page-heading .button-stack {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .page-heading .button-stack .primary {
    order: -1;
  }
  .hero-top {
    font-size: 12px;
    flex-wrap: wrap;
  }
  .big-money {
    font-size: clamp(30px, 9vw, 42px);
  }
  .tx {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 44px 44px;
    gap: 6px;
  }
  .tx-icon {
    grid-column: 1;
    grid-row: 1/3;
    width: 32px;
    height: 32px;
  }
  .tx-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .tx-info strong {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  .tx-info small {
    font-size: 12px;
    line-height: 1.6;
  }
  .tx-amount {
    grid-column: 2;
    grid-row: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  .tx .edit-tx {
    grid-column: 3;
    grid-row: 1/3;
  }
  .tx > .icon-button:not(.edit-tx) {
    grid-column: 4;
    grid-row: 1/3;
  }
  .section-title {
    gap: 8px;
  }
  .section-title h2 {
    flex-basis: 100%;
  }
  .bill {
    flex-wrap: wrap;
  }
  .bill > div {
    min-width: 100px;
  }
  .bill b {
    font-size: 13px;
  }
  .portfolio-row {
    flex-wrap: wrap;
  }
  .portfolio-row > div:last-child {
    text-align: left;
  }
  .hero-bottom {
    flex-wrap: wrap;
  }
  .hero-bottom .btn {
    font-size: 13px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .comparison strong {
    font-size: 22px;
  }
  .mini-card > strong {
    font-size: 22px;
  }
  dialog {
    padding: 22px;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-actions .btn {
    flex: 1;
  }
  .demo-banner {
    flex-wrap: wrap;
    gap: 2px;
  }
  .demo-banner > span {
    flex: 1;
    min-width: 180px;
  }
  .content {
    padding-top: 24px;
  }
  .topbar {
    font-size: 12px;
    gap: 8px;
  }
  .topbar > div {
    gap: 8px;
  }
  .topbar > span {
    font-size: 12px;
  }
  .online-status {
    font-size: 12px;
  }
}

[hidden] {
  display: none !important;
}

main:focus,
h1:focus {
  outline: none;
}
@media (max-width: 600px) {
  .section-title h2 {
    flex-basis: auto;
  }
  .card:has(#tx-list) > .section-title {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }
  .card:has(#tx-list) > .section-title h2 {
    grid-column: 1/-1;
    margin-bottom: 5px;
  }
  .card:has(#tx-list) > .section-title .text-button {
    font-size: 12px;
    padding: 7px 2px;
    white-space: normal;
  }
}

/* Quiet neutral surfaces, clear numbers, and a single warm accent. */
.sidebar {
  padding-top: 30px;
}
.brand {
  font-size: 26px;
  letter-spacing: -1.2px;
}
.sidebar-caption {
  letter-spacing: 1.3px;
  font-size: 10px;
  margin: 18px 0 36px 6px;
}
.nav-item span svg {
  display: block;
  width: 21px;
  height: 21px;
}
.nav-item.active {
  box-shadow: inset 3px 0 #d77b24;
}
.topbar {
  background: #ffffffb8;
}
.content {
  max-width: 1360px;
}
h1 {
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -1.5px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
}
.page-heading {
  margin-bottom: 32px;
}
.page-heading p {
  font-size: 14px;
}
.btn {
  border-radius: 12px;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn.primary {
  box-shadow: 0 3px 7px #20212412;
}
.btn.primary:hover {
  background: #3b3c40;
}
.btn.secondary:hover {
  background: #f3f3f5;
  border-color: #cccfd4;
}
.btn.lime {
  color: #38210d;
}
.card,
.mini-card,
.wallet {
  box-shadow: 0 3px 14px #20212403;
}
.card {
  border-radius: 20px;
  padding: 28px;
}
.section-title h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.hero-card {
  background: linear-gradient(125deg, #28292c, #191a1c);
  border-radius: 22px;
  padding: 30px;
}
.hero-card:before {
  width: 310px;
  height: 310px;
  border-color: #ffffff12;
  top: -130px;
}
.hero-top {
  color: #d2d3d6;
  letter-spacing: 0.6px;
}
.hero-top .dot {
  background: #ffbc75;
}
.big-money {
  font-size: clamp(36px, 3.4vw, 54px);
  font-weight: 600;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.big-money span,
.hero-card p,
.hero-bottom small {
  color: #c8c9cd;
}
.hero-bottom {
  border-color: #ffffff24;
}
.tag {
  border-radius: 20px;
  padding: 6px 11px;
}
.explanation .tag {
  color: #82501c;
  background: #fff1df;
}
.mini-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
}
.mini-card > span {
  font-size: 13px;
}
.mini-card > strong {
  font-weight: 650;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.mini-card > small {
  line-height: 1.5;
}
.tx-icon {
  background: #fff0e0;
  color: #94581d;
  border-radius: 12px;
  width: 38px;
  height: 38px;
}
.tx-info strong {
  font-size: 14px;
  font-weight: 600;
}
.tx-info small {
  line-height: 1.7;
}
.tx-amount {
  font-variant-numeric: tabular-nums;
}
.text-button {
  color: #4e5661;
}
.text-button:hover {
  color: #202124;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.soft-note {
  background: #fff6e9;
  color: #735337;
  border-radius: 14px;
}
.local-badge {
  color: #526258;
}
.profile > span {
  background: #fff0e0;
  color: #86521e;
}
.profile {
  border-color: #e8e9ec;
}
.demo-banner {
  background: #fff5e7;
  color: #78502c;
}
.demo-banner button {
  color: #70421a;
}
.wallet {
  border-radius: 18px;
}
input,
select,
.input-prefix {
  border-radius: 11px;
}
input:focus,
select:focus,
.input-prefix:focus-within {
  border-color: #bd8b53;
}
.input-prefix input {
  border-radius: 0;
}
.quick-picks button {
  background: #f7f7f8;
  border-radius: 20px;
}
.welcome-mark {
  background: #fff0df;
  color: #a05b16;
  border-radius: 24px;
}
dialog {
  border-radius: 24px;
  box-shadow: 0 24px 100px #17181c30;
}
dialog::backdrop {
  background: #17181c65;
  backdrop-filter: blur(6px);
}
.progress {
  background: #eff0f2;
}
.progress i {
  background: #686f79;
}
footer {
  color: #646971;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1150px) {
  .card {
    padding: 22px;
  }
  .hero-card {
    padding: 25px;
  }
}
@media (max-width: 820px) {
  h1 {
    font-size: 32px;
  }
  .mini-card {
    padding: 18px;
  }
  .mini-card > strong {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 25px 18px 20px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .page-heading {
    gap: 20px;
    margin-bottom: 24px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading .button-stack .btn {
    flex: 1;
    padding: 12px;
  }
  .hero-card {
    border-radius: 20px;
    padding: 25px;
  }
  .big-money {
    font-size: clamp(32px, 10vw, 44px);
    margin-top: 28px;
  }
  .card {
    border-radius: 18px;
    padding: 22px;
  }
  .mini-card {
    padding: 19px;
    border-radius: 16px;
  }
  .mini-card > strong {
    font-size: 22px;
  }
  .mini-card > span {
    font-size: 12px;
  }
  .mobile-nav {
    background: #ffffffed;
    border-top: 1px solid #e8e9ec;
    backdrop-filter: blur(12px);
  }
  .mobile-nav .nav-item {
    border-radius: 13px;
  }
  .mobile-nav .nav-item.active {
    box-shadow: none;
    background: #fff0df;
    color: #804a18;
  }
  .tx-info strong {
    font-size: 14px;
  }
  .tx-icon {
    width: 32px;
    height: 32px;
  }
  dialog {
    border-radius: 22px;
  }
}
