@import url("/tokens.css");
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #007aff70;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.boot {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
}
.brand-mark {
  height: 40px;
  width: 40px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 37px;
  font-weight: 650;
  font-style: italic;
  line-height: 1;
  padding-right: 5px;
  letter-spacing: -4px;
}
.loader {
  width: 25px;
  height: 25px;
  border: 2px solid #ddd;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #fbfbfc;
  border-right: 1px solid var(--line);
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.2px;
}
.brand .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 30px;
  border-radius: 10px;
}
.workspace {
  padding: 24px 12px 23px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border-radius: 11px;
  color: #76767e;
  font-size: 14px;
  font-weight: 550;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.nav button:hover {
  background: #eeeef1;
  color: var(--ink);
}
.nav button.active {
  background: #e9f1ff;
  color: var(--blue);
}
.nav button svg {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-status {
  padding: 15px 13px 21px;
  display: flex;
  gap: 10px;
  color: var(--muted);
  align-items: center;
  font-size: 12px;
  line-height: 1.6;
}
.local-status svg {
  width: 17px;
}
.local-status strong {
  display: block;
  color: var(--ink);
  font-weight: 550;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 20px 10px 0;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #eaeaf0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}
.profile strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.profile small {
  font-size: 12px;
  color: var(--muted);
}
.main {
  margin-left: 224px;
  padding: 29px 46px 52px;
  max-width: 1600px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
  gap: 18px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.breadcrumb span {
  color: var(--ink);
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 13px;
}
.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select-wrap select {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 21px 0 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  outline-offset: 5px;
}
.select-wrap > svg {
  position: absolute;
  right: 0;
  width: 14px;
  pointer-events: none;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  border-radius: 10px;
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-button:hover {
  background: #eeeef2;
  color: var(--ink);
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.page-heading h1 {
  margin: 0 0 7px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -1.3px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 3px 6px #007aff12;
}
.btn-primary:hover {
  background: #0069df;
  box-shadow: 0 4px 12px #007aff26;
}
.btn-dark {
  background: var(--ink);
  color: white;
}
.btn-light {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-soft {
  background: #edf4ff;
  color: var(--blue);
}
.btn-danger {
  background: #fff0ef;
  color: var(--red);
}
.btn-small {
  min-height: 32px;
  padding: 8px 11px;
  font-size: 12px;
  border-radius: 9px;
}
.text-button {
  padding: 5px 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 11px 14px;
  background: #eaf1fc;
  color: #45688f;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 11px;
}
.demo-banner > svg {
  width: 17px;
}
.demo-banner span {
  flex: 1;
}
.demo-banner button {
  background: transparent;
  color: #2863a9;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.page-content {
  animation: page-in 0.35s ease both;
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  padding: 31px 34px;
  margin-bottom: 23px;
  min-height: 219px;
  gap: 35px;
  box-shadow: 0 2px 5px #00000002;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.eyebrow svg {
  width: 16px;
  height: 16px;
}
.total-amount {
  font-size: 53px;
  font-weight: 620;
  letter-spacing: -2.8px;
  margin: 13px 0 15px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.total-amount .currency {
  font-size: 35px;
  color: #a2a2ab;
  letter-spacing: -1.5px;
  margin-right: 5px;
  font-weight: 450;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.hero-meta svg {
  width: 14px;
  height: 14px;
}
.hero-distribution {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.distribution-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 19px;
}
.distribution-bar {
  display: flex;
  height: 9px;
  border-radius: 5px;
  overflow: hidden;
  gap: 3px;
  margin-bottom: 18px;
}
.distribution-bar span {
  border-radius: 3px;
  min-width: 3px;
  transition: flex 0.5s ease;
}
.distribution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;
}
.legend-item {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.legend-item strong {
  color: var(--ink);
  font-weight: 550;
  margin-left: 3px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 28px 0 14px;
}
.section-heading h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  font-weight: 620;
  margin: 0;
}
.section-heading .muted {
  font-size: 12px;
}
.month-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.month-picker button {
  padding: 5px;
}
.month-picker strong {
  font-weight: 550;
  font-size: 13px;
  min-width: 114px;
  text-align: center;
  text-transform: capitalize;
}
.month-picker svg {
  width: 15px;
  height: 15px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-card {
  padding: 19px 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f2f4f8;
  color: #8b94a1;
}
.stat-icon svg {
  width: 15px;
  height: 15px;
}
.stat-value {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 9px 0 6px;
  font-variant-numeric: tabular-nums;
}
.stat-bottom {
  font-size: 11px;
  color: var(--muted);
}
.stat-card.accent {
  background: #edf4ff;
  border-color: #e0ebfd;
}
.stat-card.accent .stat-value {
  color: var(--blue);
}
.stat-card.accent .stat-icon {
  background: #dceaff;
  color: var(--blue);
}
.insight {
  display: flex;
  gap: 11px;
  background: #fff8eb;
  border: 1px solid #f6e9ce;
  border-radius: 12px;
  padding: 13px 16px;
  margin-top: 14px;
  color: #8f682c;
  font-size: 12px;
  line-height: 1.6;
}
.insight > svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
}
.insight strong {
  font-weight: 600;
}
.insight.good {
  background: #edf8f1;
  border-color: #def0e4;
  color: #387453;
}
.insight.neutral {
  background: #eff4fb;
  border-color: #e1e9f7;
  color: #57708e;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.account-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px 18px 15px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-align: left;
  color: var(--ink);
  width: 100%;
}
.account-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #18182808;
}
.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bank-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef3ff;
  color: #2865e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 750;
}
.bank-icon.dark {
  background: #25252a;
  color: #fff;
}
.bank-icon.yellow {
  background: #ffdf4e;
  color: #25252a;
}
.bank-icon.green {
  background: #e0f3e3;
  color: #49a858;
}
.bank-icon.violet {
  background: #eeeafa;
  color: #8467cc;
}
.account-owner {
  color: #9a9aa4;
  font-size: 11px;
}
.account-name {
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 7px;
}
.account-balance {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.account-balance small {
  font-size: 13px;
  font-weight: 450;
  color: var(--muted);
  margin-left: 3px;
}
.account-equivalent {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  gap: 21px;
  margin-top: 2px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.panel-head h2,
.panel-head h3 {
  font-size: 14px;
  letter-spacing: -0.2px;
  font-weight: 600;
  margin: 0;
}
.panel-body {
  padding: 18px 21px;
}
.plan-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
}
.plan-row:last-child {
  border: 0;
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #f1f3f8;
  color: #78859c;
}
.category-icon svg {
  width: 17px;
  height: 17px;
}
.category-icon.blue {
  background: #edf3ff;
  color: #6590dd;
}
.category-icon.green {
  background: #edf7f0;
  color: #6caa82;
}
.category-icon.orange {
  background: #fdf1e8;
  color: #c58d5c;
}
.category-icon.violet {
  background: #f2edfb;
  color: #9e83c8;
}
.row-info {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.row-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.row-money {
  text-align: right;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.row-money small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  padding: 34px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 195px;
}
.empty-icon {
  height: 42px;
  width: 42px;
  border-radius: 14px;
  background: #f4f5f8;
  color: #a1a7b4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.empty h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 6px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 280px;
}
.empty .text-button {
  margin-top: 12px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #a2a2ac;
  font-size: 11px;
}
.footer button {
  font-size: 11px;
  color: #8b8b96;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.footer svg {
  width: 13px;
  height: 13px;
}
.muted {
  color: var(--muted);
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f0f2f6;
  color: #868a94;
  font-size: 10px;
  white-space: nowrap;
}
.tag.blue {
  background: #edf4ff;
  color: var(--blue);
}
.tag.green {
  background: #edf8f0;
  color: var(--green);
}
.tag.orange {
  background: #fff5e7;
  color: #ab803d;
}
.segmented {
  display: inline-flex;
  border-radius: 9px;
  background: #eaeaf0;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  border-radius: 7px;
  padding: 7px 12px;
  transition: all 0.2s;
}
.segmented button.active {
  background: white;
  box-shadow: 0 1px 4px #00000012;
  color: var(--ink);
}
.budget-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  margin-bottom: 18px;
}
.budget-summary > div {
  padding: 20px;
  background: white;
}
.budget-summary span {
  color: var(--muted);
  font-size: 12px;
}
.budget-summary strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin-top: 10px;
}
.plan-group {
  margin-top: 25px;
}
.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.group-heading h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.group-heading span {
  font-size: 13px;
  color: var(--muted);
}
.plan-table-head {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 100px 125px 100px 112px;
  padding: 13px 21px;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.plan-table-head span:not(:first-child) {
  text-align: right;
}
.plan-table-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 100px 125px 100px 112px;
  align-items: center;
  padding: 15px 21px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.plan-table-row:last-child {
  border-bottom: 0;
}
.plan-name {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.plan-cell {
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.plan-cell small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}
.progress {
  height: 4px;
  background: #eef0f5;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #8fb7ff;
  border-radius: 4px;
  transition: width 0.5s;
}
.accounts-full {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.accounts-full .account-card {
  padding: 23px;
}
.accounts-full .account-balance {
  font-size: 30px;
}
.accounts-full .account-name {
  font-size: 15px;
}
.accounts-full .bank-icon {
  height: 40px;
  width: 40px;
  border-radius: 13px;
}
.accounts-full .account-top {
  margin-bottom: 25px;
}
.accounts-full .account-equivalent {
  font-size: 13px;
  margin-top: 9px;
}
.account-add {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 13px;
  min-height: 204px;
  border: 1px dashed #d7d9e1;
  border-radius: 17px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: background 0.2s;
}
.account-add:hover {
  background: #edeef4;
}
.account-add svg {
  width: 26px;
  height: 26px;
}
.accounts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.history-toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.search-field {
  position: relative;
  flex: 1;
  max-width: 350px;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 17px;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 11px 12px 11px 38px;
  font-size: 13px;
  color: var(--ink);
  outline-color: var(--blue);
}
.entry-group-title {
  font-size: 12px;
  color: var(--muted);
  padding: 16px 21px;
  background: #fcfcfd;
  border-bottom: 1px solid var(--line);
}
.entry-row .row-title {
  font-size: 14px;
}
.entry-row {
  padding: 17px 21px;
}
.entry-row .icon-button {
  margin-left: 4px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filters button {
  padding: 8px 11px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.filters button.active {
  background: #e8effc;
  color: var(--blue);
}
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row:first-child {
  padding-top: 0;
}
.settings-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.settings-row h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 0 0 5px;
}
.settings-row p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.rate-item {
  background: #f7f8fb;
  padding: 14px;
  border-radius: 12px;
}
.rate-item span {
  font-size: 11px;
  color: var(--muted);
}
.rate-item strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.rate-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 14px 0 0;
}
.rate-note button {
  font-size: 12px;
}
.mobile-brand {
  display: none;
}
.notice {
  padding: 13px 15px;
  background: #f4f6fa;
  border-radius: 11px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.notice strong {
  font-weight: 600;
  color: var(--ink);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #151a2347;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.2s;
}
.modal {
  background: #fff;
  border-radius: 23px;
  width: 100%;
  max-width: 506px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: 0 30px 100px #11132626;
  animation: modal-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  overscroll-behavior: contain;
}
.modal.wide {
  max-width: 570px;
}
.modal-header {
  padding: 23px 25px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 0;
  font-weight: 620;
}
.modal-body {
  padding: 0 25px 25px;
}
.modal-subtitle {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field > label {
  font-size: 12px;
  color: #70707d;
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #e1e3ea;
  border-radius: 10px;
  background: #fbfbfd;
  min-height: 43px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  outline: 0;
  transition:
    border 0.2s,
    box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #8ab9f5;
  box-shadow: 0 0 0 3px #007aff0b;
  background: white;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888899' stroke-width='1.5'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.field textarea {
  resize: vertical;
  min-height: 70px;
}
.field input:disabled {
  color: #92929c;
  background: #f3f3f6;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
}
.form-actions .btn-primary {
  flex: 1;
}
.form-actions .btn-danger {
  margin-right: auto;
}
.form-error {
  background: #fff0ef;
  color: #ba4a43;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 15px;
}
.form-error:empty {
  display: none;
}
.form-type {
  display: flex;
  background: #f0f1f5;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.form-type button {
  flex: 1;
  padding: 9px 5px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
.form-type button.active {
  background: white;
  box-shadow: 0 1px 5px #0000000a;
  color: var(--ink);
}
.form-preview {
  padding: 13px 15px;
  border: 1px solid #e1eafa;
  background: #f3f7ff;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: #5e769b;
  line-height: 1.8;
}
.form-preview strong {
  font-weight: 600;
  color: #316cbd;
}
.big-input {
  margin-bottom: 20px;
  text-align: center;
}
.big-input input {
  width: 100%;
  border: 0;
  outline: 0;
  text-align: center;
  font-size: 43px;
  letter-spacing: -1.5px;
  font-weight: 550;
  color: var(--ink);
  padding: 10px;
  background: none;
}
.big-input label {
  font-size: 12px;
  color: var(--muted);
}
.modal .notice {
  margin-top: 16px;
}
.delete-link {
  background: none;
  color: var(--red);
  font-size: 12px;
  padding: 12px 0;
  margin-top: 5px;
}
.settings-note {
  margin-top: 16px;
}
.confirm-message {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 0;
}
.modal.close {
  animation: modal-out 0.15s both;
}
.modal-backdrop.close {
  animation: fade-out 0.15s both;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 100px);
  transform: translate(-50%, 20px);
  padding: 13px 19px;
  max-width: calc(100vw - 40px);
  background: #25252bef;
  color: white;
  font-size: 13px;
  border-radius: 13px;
  box-shadow: 0 8px 25px #0002;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s,
    transform 0.22s;
  line-height: 1.5;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #a8403bef;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.balance-breakdown {
  background: #f6f7fa;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}
.balance-breakdown strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 550;
}
.hidden {
  display: none !important;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes modal-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
}
@media (min-width: 1600px) {
  .main {
    margin-right: auto;
    margin-left: max(224px, calc((100vw - 1600px) / 2 + 224px));
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding: 30px 15px;
  }
  .main {
    margin-left: 190px;
    padding: 26px 28px 40px;
  }
  .account-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding: 27px;
    gap: 20px;
  }
  .hero-distribution {
    padding-left: 24px;
  }
  .total-amount {
    font-size: 46px;
  }
  .plan-table-head,
  .plan-table-row {
    grid-template-columns: minmax(120px, 1fr) 75px 100px 85px 112px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 9px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-value {
    font-size: 24px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 76px;
    padding: 30px 10px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand-name,
  .workspace,
  .nav span,
  .sidebar-bottom .local-status,
  .profile > div:last-child {
    display: none;
  }
  .nav {
    margin-top: 40px;
  }
  .nav button {
    justify-content: center;
    padding: 14px 0;
  }
  .profile {
    padding: 20px 0 0;
    justify-content: center;
  }
  .main {
    margin-left: 76px;
    padding: 25px 27px 40px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
  }
  .hero-distribution {
    padding-left: 22px;
  }
  .total-amount {
    font-size: 42px;
  }
  .total-amount .currency {
    font-size: 29px;
  }
  .distribution-legend {
    gap: 12px;
  }
  .two-col {
    gap: 15px;
  }
  .budget-summary > div {
    padding: 17px 14px;
  }
  .budget-summary strong {
    font-size: 21px;
  }
  #toast {
    left: calc(50% + 38px);
  }
}
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #ffffffed;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 0;
    border-top: 1px solid #e6e6eb;
    z-index: 40;
  }
  .sidebar .brand,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    gap: 0;
  }
  .nav button {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px 0 3px;
    border-radius: 9px;
  }
  .nav span {
    display: block;
    font-size: 10px;
    font-weight: 500;
  }
  .nav button svg {
    width: 21px;
    height: 21px;
  }
  .nav button.active {
    background: transparent;
    color: var(--blue);
  }
  .nav button[data-page="settings"] {
    display: none;
  }
  .main {
    margin: 0;
    padding: 18px 18px 110px;
  }
  .topbar {
    margin-bottom: 27px;
    gap: 10px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.8px;
  }
  .mobile-brand .brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 25px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .pill {
    padding: 7px 9px;
    border-radius: 9px;
  }
  .pill > .icon-button {
    padding: 3px;
  }
  .top-actions > .icon-button {
    padding: 7px;
  }
  .page-heading {
    align-items: center;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 215px;
  }
  .page-heading > .btn {
    font-size: 0;
    padding: 11px;
    min-height: 40px;
    border-radius: 12px;
    gap: 0;
  }
  .page-heading > .btn svg {
    width: 20px;
    height: 20px;
  }
  .demo-banner {
    padding: 10px 12px;
    align-items: flex-start;
    margin-bottom: 17px;
    font-size: 11px;
    gap: 8px;
  }
  .demo-banner button {
    font-size: 11px;
    padding: 0;
    align-self: center;
  }
  .demo-banner > svg {
    margin-top: 1px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  .total-amount {
    font-size: 49px;
    margin: 12px 0;
  }
  .total-amount .currency {
    font-size: 34px;
  }
  .hero-distribution {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 19px 0 0;
  }
  .distribution-title {
    margin-bottom: 12px;
    font-size: 11px;
  }
  .distribution-bar {
    height: 7px;
    margin-bottom: 13px;
  }
  .distribution-legend {
    gap: 10px 18px;
  }
  .legend-item {
    font-size: 11px;
  }
  .section-heading {
    margin: 24px 0 12px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading .text-button {
    font-size: 12px;
  }
  .month-picker {
    gap: 0;
  }
  .month-picker strong {
    font-size: 12px;
    min-width: 102px;
  }
  .stats-grid {
    gap: 8px;
  }
  .stat-card {
    padding: 13px 12px;
    border-radius: 13px;
  }
  .stat-top {
    font-size: 10px;
    gap: 4px;
  }
  .stat-icon {
    display: none;
  }
  .stat-value {
    font-size: 21px;
    margin-top: 12px;
    letter-spacing: -0.8px;
  }
  .stat-bottom {
    font-size: 10px;
    line-height: 1.5;
  }
  .insight {
    font-size: 11px;
    gap: 9px;
    padding: 12px;
    margin-top: 11px;
  }
  .insight svg {
    width: 15px;
  }
  .account-grid {
    gap: 10px;
  }
  .account-card {
    padding: 15px;
    border-radius: 15px;
  }
  .account-top {
    margin-bottom: 15px;
  }
  .account-balance {
    font-size: 21px;
  }
  .account-name {
    font-size: 12px;
  }
  .account-equivalent {
    font-size: 10px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel-head {
    padding: 17px 17px;
  }
  .plan-row {
    padding: 15px 17px;
  }
  .footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-top: 23px;
    font-size: 10px;
  }
  .footer button {
    font-size: 11px;
  }
  .budget-summary {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }
  .budget-summary > div {
    padding: 16px;
  }
  .budget-summary span {
    font-size: 11px;
  }
  .budget-summary strong {
    font-size: 23px;
  }
  .plan-table-head {
    display: none;
  }
  .plan-table-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 11px;
    padding: 16px;
  }
  .plan-table-row > .plan-name {
    grid-column: 1;
  }
  .plan-table-row > .plan-cell {
    grid-column: 2;
    grid-row: auto;
  }
  .plan-table-row > .plan-cell.date-cell {
    display: none;
  }
  .plan-table-row > .plan-cell.actual-cell {
    grid-column: 1;
    text-align: left;
    padding-left: 46px;
    font-size: 11px;
    color: var(--muted);
    margin-top: -13px;
  }
  .plan-table-row > .plan-cell.actual-cell small {
    display: inline;
    margin-left: 5px;
  }
  .plan-table-row > .row-actions {
    grid-column: 2;
    grid-row: 2;
  }
  .plan-table-row .category-icon {
    width: 34px;
    height: 34px;
  }
  .plan-table-row .row-title {
    font-size: 13px;
  }
  .plan-table-row .row-subtitle {
    font-size: 10px;
  }
  .group-heading h2 {
    font-size: 14px;
  }
  .group-heading > span {
    font-size: 12px;
  }
  .accounts-full {
    grid-template-columns: 1fr;
  }
  .accounts-full .account-card {
    padding: 22px;
  }
  .accounts-full .account-top {
    margin-bottom: 19px;
  }
  .accounts-full .account-balance {
    font-size: 30px;
  }
  .account-add {
    min-height: 115px;
  }
  .accounts-toolbar {
    align-items: flex-start;
  }
  .accounts-toolbar > .muted {
    font-size: 11px;
  }
  .history-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .search-field {
    max-width: none;
  }
  .filters {
    gap: 3px;
  }
  .filters button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .entry-row .row-title {
    font-size: 13px;
  }
  .entry-row .row-money {
    font-size: 12px;
  }
  .entry-row {
    padding: 15px;
  }
  .row-money small {
    font-size: 10px;
  }
  .settings-grid {
    gap: 16px;
  }
  .rates-grid {
    gap: 8px;
  }
  .rate-item {
    padding: 12px;
  }
  .rate-item strong {
    font-size: 15px;
  }
  .settings-row {
    gap: 12px;
  }
  .settings-row h3 {
    font-size: 13px;
  }
  .settings-row p {
    font-size: 11px;
  }
  .settings-row .btn {
    font-size: 11px;
    padding: 9px 12px;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-height: calc(100dvh - 30px);
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    max-width: 100%;
  }
  .modal.wide {
    max-width: 100%;
  }
  .modal-header {
    padding: 22px 22px 16px;
  }
  .modal-body {
    padding: 0 22px 25px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .form-grid {
    gap: 14px 12px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 46px;
  }
  .field label {
    font-size: 12px;
  }
  .form-actions .btn {
    min-height: 46px;
  }
  .big-input input {
    font-size: 43px;
  }
  .form-type button {
    font-size: 12px;
    padding: 10px 5px;
  }
  #toast {
    left: 50%;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100vw - 36px);
    font-size: 12px;
  }
  .budget-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
  }
  .budget-actions .btn {
    font-size: 11px;
  }
  .notice {
    font-size: 11px;
  }
  .history-month {
    margin-bottom: 15px;
  }
  .settings-top-note {
    display: none;
  }
}
.top-actions .select-wrap {
  width: 65px;
}
.top-actions .select-wrap select {
  width: 100%;
}
.row-title {
  font-size: 14px;
}
.row-subtitle {
  font-size: 12px;
}
.row-money {
  font-size: 14px;
}
.field > label {
  font-size: 13px;
}
.demo-banner {
  font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
