:root {
  --teal-950: #052f35;
  --teal-900: #073f46;
  --teal-800: #07545a;
  --teal-700: #087069;
  --teal-600: #0a8b78;
  --emerald: #11a884;
  --emerald-soft: #e5f7f1;
  --gold: #e9b949;
  --gold-soft: #fff7df;
  --ink: #17272a;
  --muted: #738184;
  --line: #dfe9e7;
  --canvas: #f3f7f6;
  --white: #fff;
  --red: #d95266;
  --red-soft: #fff0f2;
  --shadow: 0 12px 35px rgba(13, 60, 64, .08);
}

* { box-sizing: border-box }
html { min-height: 100%; background: var(--canvas) }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit }
button { -webkit-tap-highlight-color: transparent }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden }

/* Вход */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 12% 12%, rgba(24, 196, 151, .24), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(233, 185, 73, .15), transparent 28%),
    linear-gradient(145deg, #032c34 0%, #07535b 52%, #073840 100%);
}
.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}
.login-page::before { width: 460px; height: 460px; left: -180px; bottom: -220px }
.login-page::after { width: 620px; height: 620px; right: -280px; top: -330px }
.login-card {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  padding: 26px 34px 28px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 35px 90px rgba(0, 21, 25, .35);
}
.login-brand { display: flex; align-items: center; gap: 13px; padding-bottom: 22px; border-bottom: 1px solid var(--line) }
.login-brand .logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(5, 68, 72, .24);
}
.login-brand div { display: flex; flex-direction: column; gap: 3px }
.login-brand span { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase }
.login-brand strong { font-size: 15px; color: var(--teal-900) }
.login-copy { padding: 26px 0 8px }
.eyebrow {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--teal-700);
  background: var(--emerald-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-card h1 { margin: 12px 0 7px; font-size: 32px; line-height: 1.12; letter-spacing: -.035em }
.login-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55 }
.login-card label, .field label {
  display: block;
  margin: 14px 0 7px;
  color: #435255;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.login-card input, .field input, .field select, .report-toolbar select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d3e0de;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fbfdfd;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.login-card input:focus, .field input:focus, .field select:focus, .report-toolbar select:focus {
  border-color: var(--emerald);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 168, 132, .11);
}
.login-card form > button, .primary {
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-700), var(--emerald));
  box-shadow: 0 10px 22px rgba(8, 112, 105, .2);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.login-card form > button:hover, .primary:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(8, 112, 105, .27) }
.login-card form > button span { margin-left: 8px; color: #ffe39b }
.login-foot { margin: 18px 0 0; color: #93a09f; text-align: center; font-size: 11px }
.form-error { min-height: 16px; margin-top: 10px; color: var(--red); font-size: 12px }

/* Каркас приложения */
.app { min-height: 100vh }
aside {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 258px;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(28, 192, 150, .25), transparent 35%),
    linear-gradient(170deg, #073f46 0%, #052f35 62%, #041f24 100%);
  box-shadow: 12px 0 35px rgba(2, 43, 48, .07);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 24px }
.brand > img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
}
.brand > div { min-width: 0; display: flex; flex-direction: column }
.brand b { font-size: 15px; letter-spacing: -.01em }
.brand small { margin-top: 4px; color: #99c7c1; font-size: 11px }
.brand > button { display: none }
.brand + nav { display: flex; flex-direction: column; gap: 5px }
.brand + nav button {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #a7c4c1;
  background: transparent;
  font-size: 14px;
  font-weight: 680;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.brand + nav button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand + nav button:hover { color: #fff; background: rgba(255, 255, 255, .06) }
.brand + nav button.active {
  color: #fff;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .085);
  box-shadow: none;
}
.brand + nav button.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 5px 5px 0;
  background: var(--gold);
}
.brand + nav button.active svg { color: #ffe095 }
.profile {
  margin-top: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
}
.profile-avatars { display: flex }
.profile i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--teal-950);
  border-radius: 50%;
  color: #fff;
  background: var(--emerald);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.profile i + i { margin-left: -7px; color: #553f09; background: var(--gold) }
.profile b { margin-top: 9px; font-size: 13px }
.profile small { margin-top: 3px; color: #8fb2ae; font-size: 10px }
.profile button { margin-top: 10px; padding: 0; border: 0; color: #b7cfcc; background: transparent; font-size: 11px; text-align: left; cursor: pointer }
.profile button:hover { color: #fff }

.workspace { min-height: 100vh; margin-left: 258px }
.workspace > header {
  position: sticky;
  z-index: 15;
  top: 0;
  height: 92px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(211, 225, 222, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}
.workspace header h1 { margin: 3px 0 0; font-size: 26px; letter-spacing: -.035em }
.workspace header > div:first-of-type > small {
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.actions { margin-left: auto; display: flex; gap: 9px }
.actions button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-700), var(--emerald));
  box-shadow: 0 8px 18px rgba(8, 112, 105, .15);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.actions button:hover { filter: brightness(1.03) }
.actions .icon {
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--teal-700);
  background: #fff;
  box-shadow: none;
  font-size: 17px;
}
.actions .icon.on { border-color: #b9e3d9; color: var(--emerald); background: var(--emerald-soft) }
.actions .transfer-action {
  border: 1px solid #b9e3d9;
  color: var(--teal-700);
  background: #fff;
  box-shadow: none;
}
.menu { display: none }
.workspace > main { width: 100%; max-width: 1450px; margin: auto; padding: 25px 30px 88px }

/* Карточки и данные */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.metric {
  position: relative;
  min-height: 122px;
  overflow: hidden;
}
.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), #69d8bd);
}
.metric:nth-child(2)::before { background: linear-gradient(90deg, var(--red), #ef93a2) }
.metric:nth-child(3)::before { background: linear-gradient(90deg, var(--gold), #f7da83) }
.metric:nth-child(4)::before { background: linear-gradient(90deg, var(--teal-800), var(--emerald)) }
.metric small { color: var(--muted); font-size: 12px; font-weight: 700 }
.metric b { display: block; margin-top: 16px; color: var(--teal-950); font-size: 27px; letter-spacing: -.03em }
.metric p { margin: 7px 0 0; color: #98a5a4; font-size: 11px; line-height: 1.45 }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr); gap: 16px; margin-top: 16px }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px }
.card-head h2 { margin: 0; font-size: 17px; letter-spacing: -.015em }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px }
.empty { min-height: 140px; display: grid; place-items: center; color: #91a09e; font-size: 13px; text-align: center }
.tx {
  display: grid;
  grid-template-columns: 39px 1fr auto auto;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f1;
}
.tx:last-child { border-bottom: 0 }
.tx-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #cb6e36;
  background: #fff1e8;
}
.tx-icon.income { color: var(--teal-700); background: var(--emerald-soft) }
.tx-icon.transfer { color: #846516; background: var(--gold-soft) }
.tx-main { min-width: 0; display: flex; flex-direction: column }
.tx-main b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap }
.tx-main small, .tx-amount small { margin-top: 4px; color: #8b9998; font-size: 10px }
.tx-amount { display: flex; flex-direction: column; color: var(--ink); font-size: 13px; font-weight: 800; text-align: right }
.tx-amount.expense { color: var(--red) }
.tx-amount.income { color: var(--teal-700) }
.tx-amount.transfer { color: var(--teal-800) }
.tx-actions { display: flex; align-items: center; gap: 4px }
.edit-entry {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--teal-700);
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
.edit-entry:hover { background: var(--emerald-soft) }
.trash {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #9ca9a8;
  background: transparent;
  cursor: pointer;
}
.trash:hover { color: var(--red); background: var(--red-soft) }

.progress { height: 7px; overflow: hidden; border-radius: 99px; background: #eaf0ef }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-700), var(--emerald)) }
.goal, .budget, .debt { position: relative; padding: 12px 0; border-bottom: 1px solid #edf2f1 }
.goal:last-child, .budget:last-child, .debt:last-child { border-bottom: 0 }
.goal > div, .budget > div { display: flex; justify-content: space-between; gap: 10px }
.goal b, .budget b, .debt b { font-size: 13px }
.goal small, .budget small, .debt small { color: var(--muted); font-size: 10px }
.goal .progress, .budget .progress, .debt .progress { margin: 9px 0 }
.budget.over { margin: 4px 0; padding: 12px; border: 1px solid #f2c3cb; border-radius: 12px; background: #fff8f9 }
.budget.over .progress i { background: var(--red) }
.budget .trash { position: absolute; right: 0; bottom: 6px }
.goal .goal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 11px;
}
.goal-add {
  height: 34px;
  padding: 0 13px;
  border: 1px solid #a9ddce;
  border-radius: 10px;
  color: var(--teal-700);
  background: var(--emerald-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.goal-add:hover { border-color: var(--emerald); background: #d9f3eb }
.goal-actions .trash { position: static; margin-left: auto }
.goal-done {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  color: #7a5b11;
  background: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
}
.goal-modal-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 17px;
  padding: 14px;
  border: 1px solid #cbece3;
  border-radius: 13px;
  background: #f2fbf8;
}
.goal-modal-summary span { color: var(--muted); font-size: 11px }
.debt-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px }
.debt-title > div { min-width: 0; display: flex; flex-direction: column; gap: 3px }
.debt-title > span { color: var(--teal-700); font-size: 12px; font-weight: 800 }
.debt-actions { display: flex; align-items: center; gap: 5px; margin-top: 11px }
.debt-pay {
  height: 34px;
  padding: 0 13px;
  border: 1px solid #a9ddce;
  border-radius: 10px;
  color: var(--teal-700);
  background: var(--emerald-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.debt-pay:hover { border-color: var(--emerald); background: #d9f3eb }
.debt-actions .edit-entry { margin-left: auto }
.debt-done {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  color: #7a5b11;
  background: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
}
.goal-modal-summary b { color: var(--teal-800); font-size: 15px }

/* Формы */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.field.full, .form-grid > .primary { grid-column: 1 / -1 }
.field label { margin-top: 0 }
.field input, .field select { height: 42px }
.primary { margin-top: 6px }

/* Счета, категории и графики */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.account {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 95% 0, rgba(233, 185, 73, .42), transparent 32%),
    linear-gradient(145deg, #08736c, #064148);
  box-shadow: 0 16px 32px rgba(5, 65, 70, .18);
}
.account::after {
  content: "₽";
  position: absolute;
  right: 16px;
  bottom: -20px;
  color: rgba(255, 255, 255, .07);
  font-size: 100px;
  font-weight: 900;
}
.account:nth-child(even) { background: radial-gradient(circle at 95% 0, rgba(21, 175, 139, .3), transparent 32%), linear-gradient(145deg, #263c40, #102a2e) }
.account small { display: block; margin-top: 38px; color: #b7d8d4; font-size: 10px }
.account b { font-size: 13px }
.account strong { display: block; margin-top: 12px; font-size: 24px; letter-spacing: -.025em }
.account .trash { position: absolute; z-index: 1; right: 10px; top: 10px; color: rgba(255, 255, 255, .7) }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.category-group { padding: 13px; border: 1px solid #e2ecea; border-radius: 14px; background: #fbfdfd }
.category-group h3 { margin: 2px 0 10px; color: var(--teal-700); font-size: 11px; letter-spacing: .08em; text-transform: uppercase }
.category-group p { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; margin: 8px 0; font-size: 12px }
.category-group small { color: #8e9b9a; font-size: 10px }
.bars { height: 210px; display: flex; align-items: flex-end; gap: 18px; padding: 15px }
.bar { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px }
.bar i { width: min(64px, 70%); min-height: 4px; border-radius: 10px 10px 3px 3px; background: linear-gradient(180deg, #20b48f, #087069) }
.bar:first-child i { background: linear-gradient(180deg, #f2cd69, #dfa931) }
.bar b { font-size: 12px }
.bar span { color: var(--muted); font-size: 10px }
.analysis p { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 12px 0; font-size: 12px }
.analysis p i { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 99px; background: #eaf0ef }
.analysis p i::after { content: ""; display: block; width: var(--w); height: 100%; border-radius: 99px; background: var(--c) }
.analysis em { display: block; margin-top: 3px; color: var(--red); font-size: 10px; font-style: normal }

/* Отчёты */
.report { display: grid; grid-template-columns: 1fr 120px 120px 120px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf2f1; font-size: 12px }
.report small { display: block; margin-top: 3px; color: var(--muted) }
.report span b { display: block }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px }
.report-toolbar h2 { margin: 0; font-size: 21px; letter-spacing: -.02em }
.report-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px }
.report-toolbar select { width: auto; min-width: 150px; background: #fff; text-transform: capitalize }
.advice .saving {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #cbece3;
  border-radius: 15px;
  background: linear-gradient(145deg, #e7f8f3, #f8fdfb);
}
.saving span, .saving small { color: #66807c; font-size: 11px }
.saving b { margin: 7px 0; color: var(--teal-700); font-size: 26px; letter-spacing: -.035em }
.advice ul { padding-left: 18px; color: #405452; font-size: 12px; line-height: 1.75 }
.advice-note { padding: 11px; border: 1px solid #f1d989; border-radius: 11px; color: #705516; background: var(--gold-soft); font-size: 11px }
.expense-review { margin-top: 16px }
.expense-review > .card-head > span { color: var(--muted); font-size: 10px }
.review-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid #edf2f1 }
.review-row > div:first-child { display: flex; flex-direction: column }
.review-row b { font-size: 12px }
.review-row small { margin-top: 4px; color: var(--muted); font-size: 10px }
.review-row > strong { font-size: 13px }
.review-buttons { display: flex; gap: 5px }
.review-buttons button { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #667573; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer }
.review-buttons button.active.essential { border-color: #a9ddce; color: #126e5b; background: var(--emerald-soft) }
.review-buttons button.active.optional { border-color: #f0b9c3; color: #b73850; background: var(--red-soft) }
.report-created { margin: 8px 2px; color: var(--muted); font-size: 10px; text-align: right }

/* Уведомления и модальные окна */
.notification-list p { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 0; border-bottom: 1px solid #edf2f1 }
.notification-list p > i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: var(--teal-700); background: var(--emerald-soft); font-style: normal }
.notification-list p span { display: flex; flex-direction: column }
.notification-list p b { font-size: 12px }
.notification-list p small { margin-top: 3px; color: var(--muted); font-size: 10px }
.notification-list button { width: 100%; height: 42px; margin-top: 10px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--teal-700), var(--emerald)); font-size: 12px; font-weight: 800; cursor: pointer }
.notification-list button.alt { border: 1px solid var(--line); color: #566866; background: #fff }
.modal { position: fixed; z-index: 50; inset: 0; display: none; place-items: center; padding: 18px; background: rgba(2, 28, 32, .64); backdrop-filter: blur(5px) }
.modal.open { display: grid }
.modal-box { position: relative; width: min(570px, 100%); max-height: 90vh; overflow: auto; padding: 27px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 21px; background: #fff; box-shadow: 0 30px 80px rgba(0, 28, 33, .28) }
.modal-close { position: absolute; right: 13px; top: 10px; width: 32px; height: 32px; border: 0; border-radius: 9px; color: #82908f; background: #f1f5f4; font-size: 21px; cursor: pointer }
.modal h2 { margin: 0 0 19px; padding-right: 34px; font-size: 18px; letter-spacing: -.02em }
.modal-note { margin: -8px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55 }
#message { font-size: 12px }
.toast { margin: 13px 30px 0; padding: 11px 14px; border: 1px solid #b9e3d7; border-radius: 12px; color: #126d59; background: #e8f8f3 }
.toast.error { border-color: #f0bcc5; color: #b7354d; background: var(--red-soft) }
.loading { padding: 70px; color: #849492; text-align: center }
.mobile-nav, #shade { display: none }

@media (max-width: 1080px) {
  aside { width: 220px }
  .workspace { margin-left: 220px }
  .metrics { grid-template-columns: 1fr 1fr }
  .grid-2 { grid-template-columns: 1fr }
}

@media (max-width: 720px) {
  .login-page { padding: 18px 13px }
  .login-card { padding: 21px 20px 23px; border-radius: 23px }
  .login-brand .logo { width: 52px; height: 52px; border-radius: 16px }
  .login-copy { padding-top: 22px }
  .login-card h1 { font-size: 27px }
  aside { width: min(290px, 86vw); transform: translateX(-100%); transition: transform .22s ease }
  aside.open { transform: none }
  .brand > button { display: block; margin-left: auto; border: 0; color: #fff; background: transparent; font-size: 23px }
  .workspace { margin-left: 0 }
  .workspace > header { height: 78px; padding: 0 13px }
  .menu { width: 39px; height: 39px; display: block; margin-right: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--teal-800); background: #fff }
  .workspace header h1 { font-size: 22px }
  .workspace header > div:first-of-type > small { display: none }
  .actions { gap: 5px }
  .actions button:not(.icon), .actions .icon { width: 39px; padding: 0; font-size: 0 }
  .actions .icon { font-size: 17px }
  .actions button:not(.icon) span { font-size: 19px }
  .tx { grid-template-columns: 39px minmax(0,1fr) auto }
  .tx-actions { grid-column: 2 / -1; justify-content: flex-end }
  .workspace > main { padding: 14px 12px 88px }
  .metrics { display: flex; overflow: auto; margin: 0 -12px; padding: 0 12px 5px; scrollbar-width: none }
  .metrics::-webkit-scrollbar { display: none }
  .metrics .card { min-width: 215px }
  .account-grid, .category-grid { grid-template-columns: 1fr }
  .form-grid { grid-template-columns: 1fr }
  .field.full, .form-grid > .primary { grid-column: auto }
  .report { grid-template-columns: 1fr auto }
  .report span:nth-of-type(-n+2) { display: none }
  .report-toolbar { align-items: flex-start }
  .report-toolbar select { max-width: 145px }
  .review-row { grid-template-columns: 1fr auto }
  .review-buttons { grid-column: 1 / -1 }
  .review-buttons button { flex: 1 }
  .expense-review { padding: 14px }
  .mobile-nav {
    position: fixed;
    z-index: 20;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 5px max(8px, env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 35px rgba(5, 47, 53, .16);
    backdrop-filter: blur(14px);
  }
  .mobile-nav button { border: 0; color: #8c9b99; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px }
  .mobile-nav button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
  .mobile-nav button span { font-size: 10px }
  .mobile-nav button.active { color: var(--teal-700) }
  #shade.open { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(2, 28, 32, .58); backdrop-filter: blur(2px) }
  .toast { margin: 10px 12px 0 }
}
