:root {
  color-scheme: dark;
  --bg: #111513;
  --sidebar: #141916;
  --card: #1a201c;
  --card-raised: #202722;
  --border: #2a322c;
  --text: #f0f2eb;
  --muted: #929d93;
  --accent: #c6f389;
  --accent-dark: #182614;
  --danger: #eda2a2;
  --amber: #eac48b;
  --shadow: 0 8px 24px #00000008;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f2;
  --sidebar: #fff;
  --card: #fff;
  --card-raised: #f0f3eb;
  --border: #e1e6dc;
  --text: #212c24;
  --muted: #647165;
  --accent: #375a21;
  --accent-dark: #d8efc1;
  --danger: #a62f3d;
  --amber: #9b6012;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.hero-amount,
.stat > strong,
.countdown {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 34px 19px 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 40px;
}
.brand-dot {
  color: var(--accent);
  margin-left: -9px;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 33px;
  height: 36px;
  background: var(--accent);
  color: var(--accent-dark);
  border-radius: 10px;
  font-size: 37px;
  line-height: 1;
  letter-spacing: -3px;
  padding-bottom: 6px;
  padding-right: 7px;
}
.brand-mark span {
  position: absolute;
  right: 5px;
  top: -2px;
  font-size: 32px;
}
.workspace-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.6px;
  margin: 49px 12px 17px;
  font-weight: 600;
}
.nav-item {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 0 13px;
  margin-bottom: 6px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: var(--card-raised);
  color: var(--text);
}
.nav-item.active {
  background: #c6f3890e;
  color: var(--accent);
}
.nav-item.active .icon {
  stroke-width: 2;
}
.nav-item i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.privacy-card {
  margin: 20px 9px 26px;
  padding: 18px 12px;
  background: linear-gradient(130deg, #c6f38907, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.privacy-card > .icon {
  color: var(--accent);
  width: 21px;
  height: 21px;
  margin-bottom: 12px;
}
.privacy-card strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.privacy-card p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.9;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 22px 3px;
  margin-top: 18px;
}
.avatar {
  background: #c5b69f;
  color: #34362b;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: var(--muted);
}
.profile > .icon-button {
  margin-left: auto;
}
.main-shell {
  margin-left: 232px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 11px;
}
.breadcrumb {
  color: var(--muted);
  display: flex;
  gap: 16px;
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 400;
}
.breadcrumb span {
  color: #5d695e;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
}
.local-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.local-indicator i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px #c6f38920;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 38px 16px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1.15px;
  line-height: 1.35;
}
.accent {
  color: var(--accent);
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  min-height: 40px;
  white-space: nowrap;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.button .icon {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: var(--accent);
}
.secondary {
  background: var(--card);
  border-color: var(--border);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 6px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--card-raised);
  color: var(--text);
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.text-button:hover {
  color: var(--accent);
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.cycle-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.period-picker {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px;
  gap: 3px;
}
.period-picker > span {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.period-picker .icon {
  width: 14px;
  height: 14px;
}
.period-picker > span > .icon {
  color: var(--muted);
}
.period-arrow {
  color: var(--muted);
}
.cycle-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  color: var(--muted);
}
.demo-badge {
  font-size: 8px;
  letter-spacing: 0.9px;
  border: 1px solid var(--border);
  padding: 5px 7px;
  border-radius: 4px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 23px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.balance-card {
  position: relative;
  background: linear-gradient(112deg, #283c29 0%, #263727 60%, #283a2a);
  border: 1px solid #42543a;
  border-radius: 11px;
  padding: 23px 26px;
  overflow: hidden;
  color: #f3f6ea;
  isolation: isolate;
}
.card-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.balance-card .card-label {
  color: #c0cdb6;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}
.balance-card .card-label > .icon {
  width: 15px;
  height: 15px;
}
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  background: #c6f38912;
  color: var(--accent);
}
.status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.balance-card .status {
  margin-left: auto;
  background: #c6f38915;
  color: #c6f389;
}
.status.warning,
.status.overdraft {
  color: var(--amber);
  background: #eac48b12;
}
.status.danger {
  color: var(--danger);
  background: #eda2a212;
}
.hero-amount {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1.25;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}
.balance-caption {
  font-size: 10px;
  color: #aabb9f;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.balance-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #b9db921c;
  margin-top: 21px;
  padding-top: 15px;
  position: relative;
  z-index: 1;
}
.balance-bottom span {
  color: #c0ceb6;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.balance-bottom span .icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}
.balance-bottom strong {
  display: block;
  color: #d2f2ad;
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin-top: 5px;
}
.small-note {
  color: #b0c2a3;
  font-size: 9px;
  line-height: 1.8;
  text-align: right;
}
.balance-decoration {
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid #bfe49b0c;
  right: -130px;
  top: -7px;
  box-shadow:
    0 0 0 35px #bfe49b04,
    0 0 0 70px #bfe49b04,
    0 0 0 105px #bfe49b04;
}
.payday-card {
  padding: 24px 26px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.icon-tile {
  display: grid;
  place-items: center;
  background: var(--card-raised);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-tile .icon {
  width: 15px;
  height: 15px;
}
.countdown {
  font-size: 43px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  font-weight: 600;
  margin-top: 11px;
}
.countdown span {
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 10px;
}
.payday-date {
  font-size: 11px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.payday-date > span {
  color: var(--muted);
  font-size: 9px;
}
.payday-date .icon {
  width: 12px;
  height: 12px;
  margin-left: 5px;
}
.progress-track {
  height: 5px;
  background: var(--card-raised);
  border-radius: 4px;
  margin-top: 33px;
  overflow: hidden;
}
.progress-track > div {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-top: 11px;
}
.progress-label > span:nth-child(2) {
  color: var(--text);
  opacity: 0.7;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}
.stat {
  padding: 19px 19px 16px;
}
.stat-label {
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: var(--muted);
}
.stat-label .icon {
  width: 14px;
  height: 14px;
  opacity: 0.65;
}
.stat > strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.stat p {
  font-size: 9px;
  margin-top: 7px;
  color: var(--muted);
}
.stat.mint > strong {
  color: var(--accent);
}
.stat.amber > strong {
  color: var(--amber);
}
.pace-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #c6f38905;
  border: 1px solid #c6f38918;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0 23px;
}
.pace-banner strong {
  color: var(--text);
  font-weight: 500;
  margin-right: 4px;
}
.pace-banner b {
  color: var(--accent);
  font-weight: 500;
}
.pace-icon {
  color: var(--accent);
  display: flex;
}
.pace-icon .icon {
  width: 17px;
  height: 17px;
}
.pace-banner .text-button {
  margin-left: auto;
}
.pace-banner.caution {
  border-color: #eac48b30;
  background: #eac48b05;
}
.pace-banner.caution b,
.pace-banner.caution .pace-icon {
  color: var(--amber);
}
.middle-grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}
.section-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.segmented {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 6px;
  padding: 3px;
  border: 1px solid var(--border);
}
.segmented button {
  padding: 6px 10px;
  border: 0;
  font-size: 9px;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
}
.segmented .selected {
  background: var(--card-raised);
  color: var(--text);
  box-shadow: 0 1px 3px #0002;
}
.trend-chart {
  margin-top: 10px;
  color: var(--muted);
}
.trend-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart-dates {
  display: flex;
  justify-content: space-between;
  padding: 0 5px 0 45px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 0;
}
.chart-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 9px;
}
.chart-legend > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.category-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
}
.donut {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 14px;
  transform: rotate(-0deg);
}
.donut > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.donut span {
  font-size: 9px;
  color: var(--muted);
}
.donut strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.category-legend {
  flex: 1;
  font-size: 9px;
  min-width: 0;
}
.category-legend > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 0;
}
.category-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  white-space: nowrap;
}
.category-legend strong {
  font-weight: 500;
}
.category-legend i,
.category-detail i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  flex-shrink: 0;
}
.category-note {
  border-top: 1px solid var(--border);
  padding-top: 13px;
  margin-top: 24px;
  font-size: 9px;
  color: var(--muted);
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.bottom-grid .section-heading {
  margin-bottom: 12px;
}
.transaction-row,
.bill-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.transaction-row:last-child,
.bill-row:last-child {
  border-bottom: 0;
}
.category-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #adb9a90b;
  color: #adb6a9;
  border: 1px solid #afcba40a;
}
.category-icon .icon {
  width: 16px;
  height: 16px;
}
.category-icon.income {
  color: var(--accent);
  background: #c6f38910;
}
.transaction-info {
  min-width: 0;
  flex: 1;
}
.transaction-info > strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.transaction-info > span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
.transaction-info > small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.transaction-info b {
  font-weight: 400;
  margin: 0 4px;
  color: #59635a;
}
.transaction-amount {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.row-edit {
  width: 24px;
  height: 30px;
}
.row-edit .icon {
  width: 13px;
  height: 13px;
}
.bill-amount {
  text-align: right;
}
.bill-amount strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.bill-amount span {
  color: var(--muted);
  font-size: 8px;
  display: block;
  margin-top: 5px;
}
.bill-foot {
  background: var(--card-raised);
  border-radius: 5px;
  padding: 10px;
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}
.bill-foot .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}
.overview-foot {
  display: flex;
  justify-content: space-between;
  padding: 25px 2px 0;
}
.overview-foot .text-button {
  font-size: 10px;
}
.main-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 38px 25px;
  color: var(--muted);
  font-size: 9px;
  opacity: 0.65;
  max-width: 1500px;
  margin: auto;
}
.main-shell > footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-shell > footer .icon {
  width: 12px;
  height: 12px;
}
.mobile-nav {
  display: none;
}
.positive {
  color: var(--accent);
}
.warning-text {
  color: var(--amber);
}
.danger-button {
  background: #eda2a20b;
  color: var(--danger);
  border-color: #eda2a226;
}
.large-tag {
  display: inline-block;
  font-size: 8px;
  color: var(--amber);
  border: 1px solid #eac48b30;
  border-radius: 4px;
  margin-left: 6px;
  padding: 2px 4px;
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.three .stat {
  padding: 23px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
input,
select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 12px;
  min-height: 42px;
  max-width: 100%;
  min-width: 0;
  font-size: 12px;
}
input::placeholder {
  color: var(--muted);
  opacity: 0.65;
}
.search-field {
  position: relative;
  flex: 1;
}
.search-field input {
  padding-left: 38px;
  width: 100%;
}
.search-field > .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
  width: 17px;
  height: 17px;
}
.empty {
  text-align: center;
  padding: 35px 15px;
  color: var(--muted);
}
.empty > .icon {
  color: var(--accent);
  width: 25px;
  height: 25px;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--text);
  margin-bottom: 6px;
}
.empty p {
  font-size: 12px;
}
.paid-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card-raised);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 10px;
  min-height: 36px;
  margin-left: 8px;
}
.paid-toggle .icon {
  width: 14px;
  height: 14px;
}
.paid-toggle.is-paid {
  background: #c6f38910;
  color: var(--accent);
  border-color: #c6f38930;
}
.spaced {
  margin-top: 20px;
}
.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.schedule-row strong {
  font-size: 12px;
  font-weight: 500;
}
.schedule-row p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.category-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.category-detail > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.category-detail > strong {
  font-weight: 500;
}
.split-bar {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: #96b8ed;
  margin: 35px 0 25px;
}
.split-bar > div {
  background: #c6f389;
}
.split-metrics {
  display: flex;
  gap: 40px;
}
.split-metrics > div {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.split-metrics i {
  width: 7px;
  height: 7px;
  background: #c6f389;
  border-radius: 2px;
}
.split-metrics > div + div i {
  background: #96b8ed;
}
.split-metrics strong {
  grid-column: 2;
  font-size: 22px;
  color: var(--text);
  font-weight: 500;
}
.insight-callout {
  background: var(--card-raised);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 28px 0 10px;
}
.bar-chart {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 10px 0 5px;
  min-height: 200px;
  align-items: flex-end;
}
.bar-col {
  min-width: 42px;
  flex: 1;
  text-align: center;
}
.bar-value {
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 7px;
}
.bar-track {
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bar-track > div {
  background: var(--accent);
  opacity: 0.65;
  border-radius: 3px 3px 0 0;
  width: 65%;
  min-width: 10px;
}
.bar-col > span {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 10px;
  white-space: nowrap;
}
.weekly .bar-track > div {
  max-width: 100px;
}
.weekly .bar-col {
  min-width: 90px;
}
.period-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 0;
  border-top: 1px solid var(--border);
}
.period-icon {
  display: grid;
  place-items: center;
  background: var(--card-raised);
  color: var(--accent);
  height: 42px;
  width: 42px;
  border-radius: 10px;
}
.period-row h3 {
  font-size: 13px;
}
.period-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.period-result {
  margin-left: auto;
  text-align: right;
}
.period-result strong {
  display: block;
  font-size: 20px;
}
.period-result span {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.period-result small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}
.settings-grid .card > p {
  margin: 10px 0 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
}
.form-grid small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.full {
  grid-column: 1/-1;
}
.form-grid .checkbox-label {
  flex-direction: row;
  align-items: center;
  line-height: 1.5;
}
.checkbox-label input {
  min-height: 0;
  flex-shrink: 0;
}
.form-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.category-chips button {
  background: var(--card-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.category-chips .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.inline-form {
  display: flex;
  gap: 8px;
}
.inline-form input {
  flex: 1;
  width: 100px;
}
.settings-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.settings-buttons .button {
  white-space: normal;
  text-align: center;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 25px 0;
}
dialog {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  max-width: calc(100% - 28px);
  width: 500px;
  max-height: calc(100dvh - 40px);
  box-shadow: 0 30px 150px #0008;
}
dialog::backdrop {
  background: #050906bb;
  backdrop-filter: blur(7px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.modal-heading h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.modal-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-actions > .danger-button {
  margin-right: auto;
}
.amount-input input {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 38px;
  letter-spacing: -1px;
  padding: 16px;
  background: var(--bg);
}
.optional {
  font-size: 10px;
  opacity: 0.6;
}
.scenario-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.scenario-presets button {
  background: var(--card-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 10px;
}
.scenario-result {
  padding: 25px;
  background: #c6f38908;
  border: 1px solid #c6f38920;
  border-radius: 10px;
  text-align: center;
}
.scenario-result > span:first-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.scenario-result > strong {
  display: block;
  font-size: 36px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.scenario-result p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.calculation-list {
  margin: 20px 0;
}
.calculation-list > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.calculation-list strong {
  font-weight: 500;
}
.calculation-list span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.import-card {
  padding: 30px;
}
.import-steps {
  display: flex;
  gap: 35px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 28px;
}
.import-steps span {
  display: flex;
  gap: 10px;
  align-items: center;
}
.import-steps b {
  font-weight: 400;
}
.import-steps .selected {
  color: var(--accent);
}
.file-drop {
  border: 1px dashed #66765b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 40px 20px;
  background: #c6f38904;
  cursor: pointer;
}
.file-drop > .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 8px;
}
.file-drop strong {
  font-size: 16px;
}
.file-drop span {
  font-size: 11px;
  color: var(--muted);
}
.file-drop input {
  font-size: 11px;
  padding: 10px;
  max-width: 100%;
  margin-top: 8px;
}
.import-card > .form-note {
  margin-top: 20px;
}
.import-preview {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}
.table-scroll {
  overflow: auto;
  margin-bottom: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  color: var(--muted);
  font-weight: 400;
  padding: 8px;
}
td {
  padding: 7px;
  border-top: 1px solid var(--border);
}
td input,
td select {
  font-size: 11px;
  padding: 8px;
  min-width: 110px;
}
td input[data-import="amount"] {
  width: 90px;
  min-width: 90px;
}
td input[type="checkbox"] {
  min-width: 16px;
  width: 16px;
  min-height: 16px;
}
td:last-child {
  min-width: 100px;
}
.import-preview > .button {
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: calc(50% + 100px);
  transform: translate(-50%, 20px);
  z-index: 100;
  background: var(--accent);
  color: var(--accent-dark);
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 40px #0003;
  max-width: calc(100% - 32px);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  line-height: 1.6;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.alert {
  padding: 14px;
  border: 1px solid #ed9f9f77;
  color: var(--danger);
  border-radius: 7px;
  margin-bottom: 20px;
  font-size: 12px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 42px;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .hero-amount {
    font-size: 52px;
  }
  .card {
    padding: 26px;
  }
  .stat {
    padding: 22px;
  }
  .middle-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .donut {
    width: 155px;
    height: 155px;
  }
  .category-layout {
    justify-content: center;
    gap: 35px;
  }
  .category-legend {
    max-width: 200px;
  }
  .category-legend > div {
    font-size: 11px;
  }
  .balance-card {
    padding: 26px;
  }
  .balance-bottom {
    margin-top: 24px;
  }
  .payday-card {
    padding: 26px;
  }
  .countdown {
    font-size: 48px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-shell {
    margin-left: 205px;
  }
  main {
    padding: 28px 24px 12px;
  }
  .topbar {
    padding: 0 24px;
  }
  .main-shell > footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .top-date {
    display: none;
  }
  .category-layout {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }
  .category-legend {
    width: 100%;
  }
  .category-legend > div {
    margin: 8px 0;
  }
  .donut {
    width: 112px;
    height: 112px;
    padding: 12px;
  }
  .donut strong {
    font-size: 16px;
  }
  .middle-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .trend-chart {
    margin-top: 38px;
  }
  .trend-chart svg {
    min-height: 175px;
  }
  .stat > strong {
    font-size: 23px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat p {
    font-size: 8px;
  }
  .pace-banner {
    line-height: 1.7;
    flex-wrap: wrap;
  }
  .pace-banner .text-button {
    display: none;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    padding: 20px;
  }
  .transaction-row,
  .bill-row {
    gap: 9px;
  }
  .row-edit {
    width: 18px;
  }
  .category-icon {
    width: 29px;
    height: 29px;
  }
  .hero-amount {
    font-size: 40px;
  }
  .payday-date > span {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .settings-grid > div > .spaced {
    margin-top: 0;
  }
  .settings-buttons {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 27px;
  }
  .nav-item {
    font-size: 11px;
  }
  .page-heading .button {
    padding: 11px 12px;
  }
  h1 {
    font-size: 25px;
  }
  .card-label {
    font-size: 8px;
  }
  .status {
    font-size: 8px;
  }
  .balance-bottom strong {
    font-size: 21px;
  }
  .small-note {
    font-size: 8px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 76px;
    padding: 26px 10px 0;
  }
  .brand {
    font-size: 0;
    padding: 0 10px;
    gap: 0;
  }
  .brand-dot {
    display: none;
  }
  .brand-mark {
    font-size: 37px;
    flex-shrink: 0;
  }
  .workspace-label {
    font-size: 0;
    margin: 32px 0 12px;
  }
  .nav-item {
    padding: 0;
    justify-content: center;
  }
  .nav-item > span,
  .nav-item i,
  .privacy-card,
  .profile > span:not(.avatar),
  .profile .icon-button {
    display: none;
  }
  .sidebar-bottom {
    padding-top: 0;
  }
  .profile {
    justify-content: center;
    padding: 22px 0;
  }
  .main-shell {
    margin-left: 76px;
  }
  .sidebar .nav-item .icon {
    width: 20px;
    height: 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    max-width: 340px;
  }
  .hero-grid {
    gap: 14px;
  }
  .balance-card {
    padding: 22px;
  }
  .balance-card .status {
    font-size: 8px;
    padding: 4px 5px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat > strong {
    font-size: 22px;
  }
  .stat-label .icon {
    display: none;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .middle-grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .main-shell > footer {
    font-size: 8px;
  }
  #toast {
    left: calc(50% + 38px);
  }
  .hero-amount {
    font-size: 38px;
  }
  .balance-bottom {
    gap: 10px;
  }
  .small-note {
    display: none;
  }
  .category-layout {
    flex-direction: column;
  }
  .settings-grid > div {
    grid-template-columns: 1fr;
  }
  .settings-buttons {
    grid-template-columns: 1fr 1fr;
  }
  .card-label {
    letter-spacing: 0.7px;
  }
  .bill-row {
    padding: 16px 0;
  }
  .transaction-row {
    padding: 16px 0;
  }
  .bottom-grid .card {
    padding: 24px;
  }
}
@media (max-width: 650px) {
  :root {
    font-size: 14px;
  }
  .sidebar {
    display: none;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 10px;
  }
  .local-indicator {
    font-size: 8px;
  }
  .topbar-right {
    gap: 0;
  }
  .top-date {
    display: none;
  }
  main {
    padding: 25px 18px 15px;
  }
  .page-heading {
    margin-bottom: 22px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -1.1px;
  }
  .page-heading p {
    font-size: 11px;
    margin-top: 8px;
    max-width: 100%;
  }
  .heading-actions {
    gap: 8px;
  }
  .page-heading > .heading-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
  .page-heading > .heading-actions > .button {
    width: 100%;
    font-size: 12px;
    min-height: 44px;
  }
  .cycle-toolbar {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  .period-picker {
    padding: 2px;
    flex: 1;
    justify-content: space-between;
  }
  .period-picker .icon-button {
    width: 36px;
    height: 36px;
  }
  .period-picker > span {
    font-size: 11px;
    gap: 7px;
  }
  .cycle-caption {
    font-size: 9px;
    justify-content: space-between;
    width: 100%;
  }
  .demo-badge {
    font-size: 7px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 13px;
  }
  .balance-card {
    padding: 22px;
  }
  .balance-card .card-label {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .balance-card .status {
    font-size: 9px;
    padding: 5px 8px;
  }
  .hero-amount {
    font-size: 46px;
    margin-top: 15px;
  }
  .balance-caption {
    font-size: 11px;
  }
  .balance-bottom {
    margin-top: 22px;
    padding-top: 18px;
  }
  .balance-bottom strong {
    font-size: 24px;
  }
  .balance-bottom span {
    font-size: 11px;
  }
  .small-note {
    display: block;
    font-size: 9px;
  }
  .payday-card {
    padding: 19px 21px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .payday-card .card-top {
    grid-column: 1;
  }
  .payday-card .card-label {
    font-size: 9px;
  }
  .payday-card .icon-tile {
    display: none;
  }
  .countdown {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 34px;
    margin: 0;
  }
  .countdown span {
    font-size: 10px;
    margin-left: 6px;
  }
  .payday-date {
    grid-column: 1;
    grid-row: 2;
    margin-top: 7px;
    font-size: 10px;
  }
  .progress-track {
    grid-column: 1/-1;
    margin-top: 20px;
  }
  .progress-label {
    grid-column: 1/-1;
    font-size: 8px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }
  .stat {
    padding: 17px 15px;
  }
  .stat-label {
    font-size: 10px;
    line-height: 1.5;
  }
  .stat-label .icon {
    display: block;
    width: 12px;
    height: 12px;
  }
  .stat > strong {
    font-size: 25px;
    margin-top: 10px;
  }
  .stat p {
    font-size: 9px;
    line-height: 1.6;
  }
  .pace-banner {
    padding: 12px;
    gap: 10px;
    font-size: 10px;
    flex-wrap: nowrap;
    margin: 17px 0;
  }
  .pace-banner > div {
    line-height: 1.8;
  }
  .pace-banner strong {
    display: block;
  }
  .pace-icon .icon {
    width: 20px;
    height: 20px;
  }
  .middle-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  .card {
    padding: 21px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 22px;
  }
  h2 {
    font-size: 15px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .section-heading .text-button {
    font-size: 10px;
  }
  .trend-chart {
    margin-top: 18px;
  }
  .trend-chart svg {
    min-height: 0;
  }
  .chart-dates {
    font-size: 8px;
  }
  .chart-legend {
    font-size: 9px;
    margin-top: 20px;
  }
  .segmented button {
    font-size: 8px;
    padding: 6px 8px;
  }
  .category-layout {
    flex-direction: row;
    justify-content: flex-start;
    gap: 30px;
    margin-top: 25px;
  }
  .donut {
    width: 135px;
    height: 135px;
    padding: 15px;
  }
  .donut strong {
    font-size: 18px;
  }
  .category-legend {
    flex: 1;
    font-size: 10px;
  }
  .category-legend > div {
    margin: 14px 0;
  }
  .category-note {
    font-size: 10px;
    margin-top: 25px;
  }
  .bottom-grid .card {
    padding: 21px;
  }
  .transaction-row,
  .bill-row {
    padding: 15px 0;
    gap: 11px;
  }
  .category-icon {
    width: 35px;
    height: 35px;
  }
  .transaction-info > strong {
    font-size: 12px;
  }
  .transaction-info > span {
    font-size: 10px;
  }
  .transaction-amount {
    font-size: 12px;
  }
  .row-edit {
    width: 26px;
    min-height: 40px;
  }
  .bill-amount strong {
    font-size: 12px;
  }
  .bill-amount span {
    font-size: 9px;
  }
  .bill-foot {
    font-size: 9px;
    line-height: 1.6;
  }
  .overview-foot {
    padding: 5px 0 10px;
    gap: 10px;
  }
  .overview-foot .text-button {
    font-size: 9px;
    white-space: normal;
    text-align: left;
  }
  .main-shell > footer {
    padding: 15px 18px 100px;
    justify-content: center;
    font-size: 9px;
  }
  .main-shell > footer > span:last-child {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--sidebar);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    padding: 10px 5px calc(9px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 20px #0001;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
    min-width: 55px;
    min-height: 44px;
  }
  .mobile-nav .icon {
    width: 20px;
    height: 20px;
  }
  .mobile-nav a.active {
    color: var(--accent);
  }
  .three {
    grid-template-columns: 1fr;
  }
  .three .stat {
    padding: 18px 21px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .three .stat-label {
    font-size: 11px;
  }
  .three .stat-label .icon {
    display: none;
  }
  .three .stat > strong {
    font-size: 22px;
    margin: 0;
    grid-column: 2;
    grid-row: 1/3;
  }
  .three .stat p {
    font-size: 10px;
    margin: 0;
    grid-column: 1;
  }
  .cycle-toolbar > .heading-actions {
    width: 100%;
  }
  .cycle-toolbar > .heading-actions > .button {
    flex: 1;
  }
  .filters {
    flex-wrap: wrap;
    gap: 9px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
    width: 110px;
    font-size: 11px;
  }
  .bill-row .paid-toggle {
    width: 34px;
    height: 36px;
    padding: 7px;
    justify-content: center;
    margin-left: 0;
  }
  .paid-toggle span {
    display: none;
  }
  .bill-row .icon-button {
    width: 26px;
  }
  .bill-row .transaction-info > strong {
    font-size: 11px;
  }
  .bill-row .transaction-info > span {
    font-size: 9px;
  }
  .bill-row .bill-amount strong {
    font-size: 11px;
  }
  .settings-grid {
    gap: 16px;
  }
  .settings-grid > div {
    gap: 16px;
  }
  .form-grid {
    gap: 15px;
  }
  .form-grid label {
    font-size: 11px;
  }
  input,
  select {
    font-size: 16px;
    min-height: 44px;
  }
  .settings-buttons .button {
    font-size: 10px;
    min-height: 44px;
  }
  .inline-form input {
    font-size: 12px;
  }
  .period-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .period-icon {
    display: none;
  }
  .period-row h3 {
    font-size: 11px;
  }
  .period-row p {
    font-size: 10px;
  }
  .period-row > div:nth-child(2) {
    flex: 1;
    min-width: 200px;
  }
  .period-result {
    margin-left: 0;
    text-align: left;
    flex: 1;
  }
  .period-result strong {
    font-size: 23px;
  }
  .period-row > .icon-button {
    margin-left: auto;
  }
  .period-result small {
    font-size: 10px;
  }
  .import-card {
    padding: 18px;
  }
  .import-steps {
    gap: 12px;
    font-size: 9px;
    justify-content: space-between;
    line-height: 1.5;
  }
  .import-steps span {
    gap: 5px;
  }
  .file-drop {
    padding: 25px 12px;
  }
  .file-drop strong {
    font-size: 14px;
  }
  .file-drop span {
    font-size: 9px;
  }
  .file-drop input {
    font-size: 10px;
    min-height: 0;
  }
  .import-card .form-grid {
    grid-template-columns: 1fr;
  }
  .import-preview .button {
    width: 100%;
  }
  .table-scroll {
    margin-left: -5px;
    margin-right: -5px;
  }
  .split-metrics {
    gap: 30px;
  }
  .split-metrics strong {
    font-size: 23px;
  }
  .bar-chart {
    margin: 0 -5px;
  }
  dialog {
    padding: 24px 20px;
    max-height: calc(100dvh - 30px);
    border-radius: 13px;
  }
  dialog .form-grid {
    gap: 16px;
  }
  .modal-heading h2 {
    font-size: 23px;
  }
  .modal-heading p {
    font-size: 11px;
  }
  .modal-actions .button {
    font-size: 11px;
    min-height: 44px;
    padding: 10px 12px;
  }
  .scenario-result > strong {
    font-size: 35px;
  }
  #toast {
    bottom: 90px;
    left: 50%;
    font-size: 12px;
    width: max-content;
    max-width: calc(100% - 36px);
  }
  .alert {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.quick-add {
  display: none;
}
@media (max-width: 650px) {
  .quick-add {
    display: grid;
    place-items: center;
    position: fixed;
    bottom: calc(85px + env(safe-area-inset-bottom));
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-dark);
    border: 1px solid var(--accent);
    z-index: 19;
    box-shadow: 0 4px 22px #0005;
  }
  .quick-add .icon {
    width: 23px;
    height: 23px;
  }
}
/* Keep the daily allowance a first-class number alongside the weekly budget. */
.overview-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (min-width: 901px) and (max-width: 1200px) {
  .overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .overview-stats > .stat:nth-last-child(-n + 2) {
    grid-column: auto;
  }
}
@media (max-width: 900px) {
  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-stats > .stat:last-child {
    grid-column: 1/-1;
  }
}
