/* Finflow · Ink & lime. Presentation layer; layout primitives live in style.css. */
body {
  font-family: var(--font-ui);
  letter-spacing: -0.025em;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
.glyph {
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8caa61;
}
.brand-mark {
  background: var(--ink);
  color: var(--accent);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 4px;
  font-size: 0;
  letter-spacing: 0;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}
.brand {
  font-size: 27px;
  letter-spacing: -1.5px;
  font-weight: 600;
  gap: 11px;
}
.brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  padding: 4px;
}
.sidebar {
  background: #fafbf8;
  border-right-color: #e4e6de;
  padding: 36px 20px 25px;
}
.workspace {
  padding: 34px 13px 17px;
  color: #8e9188;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.nav {
  gap: 7px;
}
.nav button {
  min-height: 46px;
  padding: 13px 15px;
  border-radius: 13px;
  color: #777971;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  transition:
    background 0.22s,
    color 0.22s,
    transform 0.22s var(--ease-out);
}
.nav button .glyph {
  width: 21px;
  height: 21px;
}
.nav button:hover {
  background: #ecefe6;
  color: var(--ink);
  transform: translateX(2px);
}
.nav button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px #2928330b;
}
.nav button.active .glyph {
  color: var(--accent);
}
.local-status {
  gap: 11px;
  padding: 18px 12px 24px;
  font-size: 12px;
  color: #92958c;
  line-height: 1.65;
}
.local-status .glyph {
  color: #66864c;
  width: 20px;
  height: 20px;
}
.local-status strong {
  font-weight: 500;
}
.profile {
  padding-top: 23px;
}
.avatar {
  background: #e5ebd8;
  color: #58713d;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.profile strong {
  font-size: 13px;
  font-weight: 500;
}
.profile small {
  font-size: 11px;
}
.main {
  padding-top: 30px;
}
.topbar {
  margin-bottom: 35px;
}
.breadcrumb {
  font-size: 12px;
  color: #96988f;
  letter-spacing: 0;
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
  color: #b8bcb1;
}
.breadcrumb span {
  color: #777a70;
}
.top-actions {
  gap: 14px;
}
.pill {
  background: #ffffffb8;
  border: 1px solid #e6e8e0;
  border-radius: 24px;
  padding: 10px 14px;
  gap: 9px;
}
.pill > .glyph {
  width: 19px;
  height: 19px;
  color: #777d6e;
}
.top-actions .select-wrap {
  width: 65px;
}
.select-wrap select {
  font-weight: 500;
  font-size: 12px;
}
.top-actions > .icon-button {
  border: 1px solid #e1e4d9;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #fafbf6;
}
.icon-button {
  color: #85877f;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.icon-button .glyph {
  width: 19px;
  height: 19px;
}
.icon-button:hover {
  background: #e9eddf;
  color: var(--ink);
}
.icon-button:active {
  transform: scale(0.92);
}
.page-heading {
  margin-bottom: 24px;
  align-items: center;
}
.page-heading h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.7px;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 9px;
}
.page-heading p {
  color: #86887f;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.btn {
  min-height: 43px;
  border-radius: 12px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.22s var(--ease-out),
    box-shadow 0.2s;
}
.btn .glyph {
  width: 18px;
  height: 18px;
}
.btn-primary,
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 3px 10px #29283312;
}
.btn-primary:hover,
.btn-dark:hover {
  background: #40404b;
  box-shadow: 0 5px 16px #2928331a;
  transform: translateY(-1px);
}
.btn-primary:active,
.btn-dark:active {
  transform: translateY(0) scale(0.98);
}
.btn-light {
  border-color: #dfe3d7;
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: #f2f5eb;
}
.btn-soft {
  background: #eaf0df;
  color: #4b643a;
}
.btn-danger {
  background: #f7e9e3;
  color: #a95440;
}
.btn-small {
  border-radius: 9px;
  min-height: 32px;
  padding: 8px 11px;
  font-size: 12px;
}
.text-button {
  color: #57753c;
  font-size: 12px;
  font-weight: 500;
}
.text-button:hover {
  color: #2d4d15;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-banner {
  background: transparent;
  border: 1px dashed #d2d8c7;
  border-radius: 11px;
  padding: 10px 12px;
  gap: 11px;
  margin-bottom: 20px;
  color: #85897c;
  font-size: 11px;
}
.demo-label {
  flex: 0 !important;
  background: #e7ecdd;
  color: #748060;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.demo-banner button {
  color: #62784c;
  font-weight: 500;
  font-size: 11px;
}
.page-content {
  animation: page-reveal 0.45s var(--ease-out) both;
}
@keyframes page-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero {
  position: relative;
  background: var(--ink);
  border: 0;
  border-radius: 24px;
  min-height: 234px;
  padding: 33px 35px;
  gap: 34px;
  grid-template-columns: 1.15fr 1fr;
  color: #fff;
  box-shadow: 0 10px 25px #2928330b;
  overflow: hidden;
}
.hero-balance {
  min-width: 0;
}
.hero .eyebrow {
  color: #c2c2c9;
  font-size: 13px;
  gap: 10px;
  font-weight: 400;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  background: #ffffff10;
  border: 1px solid #ffffff10;
  color: #c2c5bc;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0;
}
.total-amount {
  font-family: var(--font-ui);
  font-size: 56px;
  letter-spacing: -2.7px;
  font-weight: 500;
  margin: 17px 0 18px;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.total-amount .currency {
  font-size: 38px;
  font-weight: 400;
  color: #aeb0aa;
  margin-right: 8px;
  letter-spacing: -1px;
}
.hero-meta {
  font-size: 11px;
  color: #a9aaa9;
  gap: 7px;
}
.hero-meta .glyph {
  width: 15px;
  height: 15px;
  color: #cbd4bb;
}
.hero-distribution {
  border-left-color: #ffffff17;
  padding-left: 32px;
}
.distribution-title {
  color: #a8aaa4;
  font-size: 12px;
  margin-bottom: 20px;
}
.distribution-title > span:last-child {
  color: #7d807a;
}
.distribution-bar {
  height: 11px;
  gap: 4px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.distribution-bar span {
  border-radius: 3px;
  transition: flex 0.7s var(--ease-out);
}
.distribution-legend {
  gap: 15px 23px;
}
.legend-item {
  color: #a9ada4;
  font-size: 11px;
  gap: 7px;
}
.legend-item strong {
  color: #ebeee5;
  font-size: 12px;
  font-weight: 400;
}
.dot {
  height: 6px;
  width: 6px;
}
.section-heading {
  margin: 28px 0 15px;
}
.section-heading h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.month-picker {
  background: #eaede4;
  padding: 3px 5px;
  border-radius: 20px;
  gap: 2px;
}
.month-picker strong {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  min-width: 105px;
}
.month-picker .icon-button {
  padding: 4px;
}
.month-picker .glyph {
  width: 14px;
  height: 14px;
}
.stats-grid {
  gap: 14px;
}
.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #e3e6dc;
  border-radius: 17px;
  padding: 21px 22px 19px;
  overflow: hidden;
}
.stat-top {
  color: #858a7b;
  font-size: 12px;
}
.stat-icon {
  background: #f2f4ee;
  color: #7a876c;
  height: 29px;
  width: 29px;
  border-radius: 50%;
}
.stat-icon .glyph {
  width: 18px;
  height: 18px;
}
.stat-value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 10px 0 8px;
}
.stat-bottom {
  color: #92988a;
  font-size: 11px;
}
.stat-card.accent {
  background: var(--accent);
  border-color: transparent;
}
.stat-card.accent .stat-top {
  color: #5a7048;
}
.stat-card.accent .stat-value {
  color: #2d3c24;
}
.stat-card.accent .stat-icon {
  color: #536f3c;
  background: #ffffff5c;
}
.stat-card.accent .stat-bottom {
  color: #6a8055;
}
.insight {
  padding: 13px 16px;
  border-color: #e6e5da;
  background: #eeeee4;
  border-radius: 12px;
  color: #7d7860;
  line-height: 1.7;
  font-size: 12px;
}
.insight > .glyph {
  width: 18px;
  height: 18px;
  color: #92855e;
  margin-top: 1px;
}
.insight strong {
  font-weight: 500;
  color: #6d6548;
}
.insight.good {
  background: #eaf0e2;
  border-color: #dde7d0;
  color: #61754e;
}
.insight.good strong {
  color: #4a6635;
}
.insight.neutral {
  background: #e9ece5;
  border-color: #e1e5da;
  color: #6a7461;
}
.account-grid {
  gap: 13px;
}
.account-card {
  background: #fff;
  border: 1px solid #e3e6dc;
  border-radius: 17px;
  padding: 17px 18px 16px;
  box-shadow: none;
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s,
    box-shadow 0.28s;
}
.account-card:hover {
  transform: translateY(-4px);
  border-color: #b7c7a1;
  box-shadow: 0 10px 24px #33402008;
}
.account-top {
  margin-bottom: 21px;
}
.bank-icon {
  background: #f0f3eb;
  color: #70835d;
  height: 33px;
  width: 33px;
  border-radius: 11px;
}
.bank-icon .glyph {
  height: 22px;
  width: 22px;
}
.bank-icon.dark,
.bank-icon.violet {
  color: #fff;
  background: var(--ink);
}
.bank-icon.yellow {
  color: #252729;
  background: #f8d95e;
}
.bank-icon.green {
  color: #537638;
  background: #e8f0de;
}
.bank-icon.bybit {
  width: 49px;
  background: transparent;
  border-radius: 0;
}
.bybit-wordmark {
  font-size: 11px;
  color: #292833;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.bybit-wordmark > span {
  color: #d3a336;
}
.tbank-mark {
  font-weight: 700;
  font-size: 22px;
  transform: scaleX(1.05);
}
.currency-badge {
  color: #858b7d;
  border: 1px solid #e5e9df;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.025em;
}
.account-name {
  color: #7c8176;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 6px;
}
.account-balance {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.account-balance small {
  color: #8e9387;
  font-size: 12px;
  letter-spacing: -0.1px;
  margin-left: 5px;
}
.account-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.account-equivalent {
  font-size: 11px;
  color: #a0a695;
  margin: 0;
}
.account-owner {
  color: #7e8773;
  font-size: 10px;
  background: #f2f5ec;
  padding: 3px 7px;
  border-radius: 10px;
}
.two-col {
  gap: 21px;
}
.panel {
  background: #fff;
  border-color: #e2e6da;
  border-radius: 18px;
}
.panel-head {
  border-color: #ecefe7;
  padding: 20px 21px;
}
.panel-head h2,
.panel-head h3 {
  font-weight: 500;
  font-size: 14px;
}
.panel-body {
  padding: 21px;
}
.plan-row {
  border-color: #eef1e8;
  padding-top: 17px;
  padding-bottom: 17px;
  gap: 13px;
}
.category-icon {
  border-radius: 50%;
  background: #f0f3ea;
  color: #839071;
  width: 36px;
  height: 36px;
}
.category-icon .glyph {
  width: 21px;
  height: 21px;
}
.category-icon.blue {
  background: #eff2e8;
  color: #83926e;
}
.category-icon.orange {
  background: #f6ede5;
  color: #b38c6f;
}
.category-icon.green {
  background: #eaf1df;
  color: #819a5e;
}
.category-icon.violet {
  background: #efedf3;
  color: #9790a4;
}
.row-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.row-subtitle {
  color: #a0a594;
  font-size: 11px;
  margin-top: 5px;
}
.row-money {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.03em;
}
.row-money small {
  color: #a2a797;
  font-size: 11px;
}
.empty {
  padding: 31px 24px;
  min-height: 205px;
}
.empty-icon {
  background: #f0f3e9;
  color: #a0af87;
  border-radius: 50%;
  height: 45px;
  width: 45px;
  margin-bottom: 15px;
}
.empty-icon .glyph {
  width: 25px;
  height: 25px;
}
.empty h3 {
  color: #6a725f;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}
.empty p {
  color: #a0a594;
  font-size: 12px;
  line-height: 1.7;
}
.empty .text-button {
  font-size: 12px;
}
.notice {
  border: 1px solid #e5e9dc;
  background: #ecefe6;
  border-radius: 13px;
  color: #929986;
  padding: 14px 17px;
  font-size: 12px;
  line-height: 1.8;
}
.notice strong {
  color: #626e53;
  font-weight: 500;
}
.footer {
  color: #a4a99b;
  font-size: 11px;
}
.footer > span {
  letter-spacing: 0.01em;
}
.footer button {
  color: #909a83;
  font-size: 11px;
}
.tag,
.tag.blue {
  background: #edf1e5;
  color: #7d9065;
  font-size: 10px;
  border-radius: 7px;
}
.tag.green {
  background: #e9f0df;
  color: #5b7a3c;
}
.tag.orange {
  background: #f6ede2;
  color: #ad8b60;
}
.segmented {
  background: #e7ecdf;
  border-radius: 24px;
  padding: 4px;
}
.segmented button {
  font-size: 12px;
  padding: 8px 16px;
  color: #8b967c;
  border-radius: 20px;
}
.segmented button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 5px #2932220a;
}
.budget-summary {
  background: #e1e5d9;
  border-color: #e1e5d9;
  border-radius: 17px;
}
.budget-summary > div {
  padding: 23px 21px;
}
.budget-summary > div:nth-child(3) {
  background: var(--accent);
}
.budget-summary span {
  color: #929a86;
  font-size: 12px;
}
.budget-summary > div:nth-child(3) span {
  color: #6a7d53;
}
.budget-summary strong {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 13px;
}
.group-heading h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.group-heading > span {
  color: #929a86;
}
.plan-group {
  margin-top: 30px;
}
.plan-table-head {
  color: #a0a890;
  background: #fbfcf9;
  border-color: #ecefe5;
  font-size: 11px;
}
.plan-table-row {
  border-color: #eef1e8;
}
.plan-cell {
  font-size: 14px;
}
.plan-cell small {
  color: #a0a793;
  font-size: 11px;
}
.progress {
  background: #eaf0e0;
  height: 3px;
  margin-top: 9px;
}
.progress span {
  background: #a9c57b;
}
.accounts-full {
  gap: 19px;
}
.accounts-full .account-card {
  padding: 25px;
}
.accounts-full .account-top {
  margin-bottom: 24px;
}
.accounts-full .account-balance {
  font-size: 34px;
  letter-spacing: -1.2px;
}
.accounts-full .account-name {
  font-size: 14px;
}
.accounts-full .account-equivalent {
  font-size: 12px;
  margin: 0;
}
.accounts-full .bank-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.accounts-full .bank-icon.bybit {
  width: 57px;
}
.accounts-full .bybit-wordmark {
  font-size: 13px;
}
.account-add {
  color: #9aa58b;
  border-color: #c9d3bc;
  border-radius: 18px;
  min-height: 215px;
  font-size: 13px;
}
.account-add:hover {
  background: #eaf0e0;
  color: #647c48;
}
.account-add .glyph {
  width: 28px;
  height: 28px;
}
.search-field input {
  background: #fff;
  border-color: #e0e5d7;
  border-radius: 12px;
  font-size: 13px;
  padding: 12px 15px 12px 40px;
}
.search-field .glyph {
  top: 12px;
  color: #a6af98;
}
.filters button {
  color: #909b81;
  font-size: 12px;
  border-radius: 20px;
  padding: 9px 13px;
}
.filters button.active {
  background: #e4edda;
  color: #5d7645;
}
.entry-group-title {
  background: #f9fbf5;
  border-color: #eaf0e0;
  color: #9ba68b;
  font-size: 12px;
}
.entry-row .row-title {
  font-size: 14px;
}
.settings-grid {
  gap: 21px;
}
.rate-item {
  background: #f1f5e9;
  border-radius: 12px;
  padding: 15px;
}
.rate-item span {
  color: #96a482;
  font-size: 11px;
}
.rate-item strong {
  color: #657650;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.rate-note {
  color: #9ca88d;
  line-height: 1.8;
}
.settings-row {
  border-color: #eaf0e0;
}
.settings-row h3 {
  font-weight: 500;
  font-size: 14px;
}
.settings-row p {
  color: #98a38a;
  font-size: 12px;
}
.modal-backdrop {
  background: #1f24294d;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.modal {
  border-radius: 24px;
  background: #fbfcf9;
  border: 1px solid #ffffff90;
  box-shadow: 0 28px 100px #20281a20;
  animation: sheet-reveal 0.35s var(--ease-out);
}
@keyframes sheet-reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-header {
  padding: 25px 26px 18px;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.9px;
}
.modal-body {
  padding: 0 26px 27px;
}
.modal-subtitle {
  font-size: 13px;
  line-height: 1.75;
  color: #969e88;
}
.form-type {
  background: #e9eedf;
  border: 1px solid #e1e8d7;
  border-radius: 24px;
  padding: 4px;
  margin-bottom: 21px;
}
.form-type button {
  font-weight: 400;
  font-size: 12px;
  border-radius: 22px;
  padding: 10px 5px;
  color: #89977a;
}
.form-type button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.big-input {
  margin-bottom: 22px;
}
.big-input label {
  color: #9ba78b;
  font-size: 12px;
}
.big-input input {
  color: var(--ink);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -2px;
  padding: 15px 10px;
}
.big-input input::placeholder {
  color: #b2bba7;
}
.field > label {
  color: #8c997d;
  font-size: 12px;
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  background: #fff;
  border-color: #dfe7d4;
  border-radius: 11px;
  font-size: 14px;
  padding: 12px;
  min-height: 45px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b2bba6;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #94ae70;
  background: #fff;
  box-shadow: 0 0 0 3px #a5bb7617;
}
.field input:disabled {
  color: #adb69e;
  background: #eff3e7;
}
.field small {
  color: #a3ae93;
}
.checkbox {
  color: #96a488;
  font-size: 12px;
}
.checkbox input {
  accent-color: #69844c;
}
.form-preview {
  border-color: #dce7cd;
  background: #edf4e1;
  color: #8b9d74;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
}
.form-preview strong {
  color: #627d44;
  font-weight: 500;
}
.form-actions {
  margin-top: 23px;
  gap: 10px;
}
.form-error {
  background: #faeae4;
  color: #ac6b52;
  border-radius: 11px;
  font-size: 12px;
}
.balance-breakdown {
  background: #edf3e3;
  color: #8b9b76;
  border-radius: 13px;
  padding: 17px;
  margin-bottom: 21px;
}
.balance-breakdown strong {
  color: #61744b;
  font-weight: 500;
  font-size: 21px;
  margin-top: 3px;
}
.confirm-message {
  color: #879775;
  font-size: 14px;
}
.delete-link {
  color: #b16e59;
}
#toast {
  background: #292833f2;
  color: #f3f6ec;
  border: 1px solid #ffffff10;
  border-radius: 15px;
  font-size: 13px;
  box-shadow: 0 8px 30px #29283322;
}
#toast.error {
  background: #955b4af2;
}
@media (min-width: 1600px) {
  .main {
    max-width: 1400px;
  }
}
@media (max-width: 1200px) {
  .hero {
    padding: 30px;
    gap: 24px;
  }
  .total-amount {
    font-size: 48px;
  }
  .hero-distribution {
    padding-left: 25px;
  }
  .stat-card {
    padding: 19px;
  }
  .stat-value {
    font-size: 27px;
  }
  .budget-summary > div {
    padding: 20px 16px;
  }
  .budget-summary strong {
    font-size: 24px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    padding: 30px 10px 24px;
  }
  .brand {
    padding: 0;
    gap: 0;
  }
  .nav button {
    padding: 14px 0;
  }
  .nav button:hover {
    transform: none;
  }
  .hero {
    padding: 27px;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .total-amount {
    font-size: 41px;
  }
  .total-amount .currency {
    font-size: 30px;
  }
  .hero-chip {
    display: none;
  }
  .hero-distribution {
    padding-left: 23px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-value {
    font-size: 24px;
  }
  .hero-meta {
    font-size: 10px;
  }
  .page-heading h1 {
    font-size: 36px;
  }
}
@media (max-width: 680px) {
  .main {
    padding: 20px 18px 118px;
  }
  .topbar {
    margin-bottom: 25px;
  }
  .mobile-brand {
    font-size: 23px;
    letter-spacing: -1.2px;
    gap: 8px;
    font-weight: 500;
  }
  .mobile-brand .brand-mark {
    width: 29px;
    height: 29px;
    padding: 3px;
    border-radius: 9px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .pill {
    padding: 8px 11px;
    border-radius: 20px;
  }
  .top-actions > .icon-button {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  .top-actions > .icon-button .glyph {
    width: 18px;
    height: 18px;
  }
  .page-heading {
    margin-bottom: 19px;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 35px;
    letter-spacing: -1.4px;
    margin-bottom: 7px;
  }
  .page-heading p {
    font-size: 12px;
    color: #9da594;
    max-width: 260px;
    line-height: 1.65;
  }
  .page-heading > .btn {
    font-size: 0;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 14px;
  }
  .page-heading > .btn .glyph {
    width: 21px;
    height: 21px;
  }
  .demo-banner {
    padding: 9px 10px;
    font-size: 10px;
    margin-bottom: 17px;
    gap: 8px;
    align-items: center;
    line-height: 1.6;
    border-radius: 10px;
  }
  .demo-label {
    font-size: 9px;
    padding: 3px 5px;
    align-self: flex-start;
    margin-top: 1px;
  }
  .demo-banner button {
    font-size: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 24px;
    gap: 25px;
    min-height: 0;
    margin-bottom: 23px;
    box-shadow: 0 9px 25px #2928330b;
  }
  .hero .eyebrow {
    font-size: 12px;
    gap: 9px;
  }
  .hero-chip {
    display: inline-flex;
    font-size: 9px;
    padding: 3px 7px;
  }
  .total-amount {
    font-size: 46px;
    letter-spacing: -2.3px;
    margin: 18px 0 16px;
  }
  .total-amount .currency {
    font-size: 31px;
    margin-right: 6px;
  }
  .hero-meta {
    font-size: 10px;
    color: #92988e;
  }
  .hero-distribution {
    border-left: 0;
    border-top-color: #ffffff12;
    padding: 19px 0 0;
  }
  .distribution-title {
    font-size: 10px;
    margin-bottom: 13px;
  }
  .distribution-title > span:last-child {
    display: none;
  }
  .distribution-bar {
    height: 8px;
    margin-bottom: 15px;
    gap: 4px;
  }
  .distribution-legend {
    gap: 11px 20px;
  }
  .legend-item {
    font-size: 10px;
    gap: 6px;
  }
  .legend-item strong {
    font-size: 11px;
  }
  .section-heading {
    margin: 25px 0 13px;
  }
  .section-heading h2 {
    font-size: 16px;
    letter-spacing: -0.5px;
  }
  .section-heading .text-button {
    font-size: 11px;
  }
  .month-picker {
    padding: 3px;
  }
  .month-picker strong {
    min-width: 91px;
    font-size: 10px;
  }
  .month-picker .icon-button {
    padding: 3px;
  }
  .month-picker .glyph {
    width: 13px;
    height: 13px;
  }
  .stats-grid {
    gap: 8px;
  }
  .stat-card {
    padding: 15px 12px;
    border-radius: 14px;
  }
  .stat-top {
    font-size: 11px;
    min-height: 29px;
    line-height: 1.4;
    align-items: flex-start;
  }
  .stat-icon {
    display: none;
  }
  .stat-value {
    font-size: 23px;
    letter-spacing: -1.1px;
    margin: 9px 0 9px;
  }
  .stat-bottom {
    font-size: 9px;
    line-height: 1.5;
  }
  .insight {
    padding: 12px;
    font-size: 11px;
    border-radius: 12px;
    gap: 9px;
    line-height: 1.75;
  }
  .insight > .glyph {
    height: 17px;
    width: 17px;
  }
  .account-grid {
    gap: 10px;
  }
  .account-card {
    border-radius: 15px;
    padding: 16px 15px;
  }
  .account-top {
    margin-bottom: 19px;
  }
  .bank-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }
  .bank-icon.bybit {
    width: 44px;
  }
  .bybit-wordmark {
    font-size: 10px;
  }
  .currency-badge {
    font-size: 9px;
    padding: 3px 5px;
  }
  .account-name {
    font-size: 11px;
  }
  .account-balance {
    font-size: 22px;
    letter-spacing: -0.8px;
  }
  .account-balance small {
    font-size: 10px;
    margin-left: 3px;
  }
  .account-footer {
    margin-top: 12px;
    gap: 5px;
  }
  .account-equivalent {
    font-size: 10px;
  }
  .account-owner {
    font-size: 9px;
    padding: 3px 6px;
  }
  .two-col {
    gap: 0;
  }
  .panel {
    border-radius: 16px;
  }
  .plan-row {
    padding: 17px;
    gap: 11px;
  }
  .row-title,
  .entry-row .row-title {
    font-size: 13px;
  }
  .row-subtitle {
    font-size: 10px;
  }
  .row-money {
    font-size: 13px;
  }
  .row-money small {
    font-size: 10px;
  }
  .category-icon {
    height: 34px;
    width: 34px;
  }
  .category-icon .glyph {
    width: 20px;
    height: 20px;
  }
  .empty {
    padding: 30px 21px;
  }
  .empty h3 {
    font-size: 13px;
  }
  .empty p {
    font-size: 11px;
  }
  .notice {
    padding: 14px;
    font-size: 11px;
  }
  .footer {
    font-size: 10px;
  }
  .footer button {
    font-size: 10px;
  }
  .sidebar {
    left: 15px;
    right: 15px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    height: 67px;
    padding: 7px 9px;
    background: #fbfcf5eb;
    border: 1px solid #ffffffd9;
    border-radius: 25px;
    box-shadow:
      0 7px 30px #29351b15,
      0 0 0 1px #dce3ce80;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
  .nav {
    gap: 4px;
    height: 100%;
  }
  .nav button {
    padding: 7px 0 5px;
    gap: 4px;
    border-radius: 19px;
    color: #99a38c;
    min-height: 0;
  }
  .nav button .glyph {
    width: 23px;
    height: 23px;
  }
  .nav span {
    font-size: 9px;
    font-weight: 400;
  }
  .nav button.active {
    background: var(--ink);
    color: #f3f8eb;
    box-shadow: 0 3px 7px #29351b12;
  }
  .nav button.active .glyph {
    color: var(--accent);
  }
  .nav button:hover {
    background: #e3ebd7;
    color: #6b8051;
  }
  .nav button.active:hover {
    background: var(--ink);
    color: #fff;
  }
  .budget-summary {
    border-radius: 15px;
  }
  .budget-summary > div {
    padding: 18px 15px;
  }
  .budget-summary span {
    font-size: 11px;
  }
  .budget-summary strong {
    font-size: 24px;
    margin-top: 11px;
  }
  .group-heading h2 {
    font-size: 15px;
  }
  .group-heading > span {
    font-size: 12px;
  }
  .plan-table-row {
    padding: 17px 15px;
  }
  .plan-table-row .row-title {
    font-size: 13px;
  }
  .plan-table-row .row-subtitle {
    font-size: 10px;
  }
  .plan-cell {
    font-size: 13px;
  }
  .plan-cell small {
    font-size: 10px;
  }
  .plan-table-row > .plan-cell.actual-cell {
    color: #9ca98a;
    font-size: 11px;
  }
  .accounts-full {
    gap: 15px;
  }
  .accounts-full .account-card {
    padding: 23px;
  }
  .accounts-full .account-balance {
    font-size: 33px;
  }
  .accounts-full .account-name {
    font-size: 13px;
  }
  .accounts-full .account-owner {
    font-size: 11px;
  }
  .account-add {
    min-height: 120px;
  }
  .history-toolbar {
    gap: 13px;
  }
  .filters {
    gap: 3px;
  }
  .filters button {
    font-size: 10px;
    padding: 9px 11px;
  }
  .entry-row {
    padding: 16px;
  }
  .entry-row .row-money {
    font-size: 12px;
  }
  .settings-grid {
    gap: 16px;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .rate-item {
    padding: 12px;
  }
  .rate-item strong {
    font-size: 17px;
  }
  .settings-row h3 {
    font-size: 13px;
  }
  .settings-row p {
    font-size: 11px;
  }
  .modal {
    border-radius: 25px 25px 0 0;
    border-bottom: 0;
  }
  .modal-header {
    padding: 23px 22px 17px;
  }
  .modal-header h2 {
    font-size: 25px;
  }
  .modal-body {
    padding: 0 22px 26px;
  }
  .field input,
  .field select,
  .field textarea {
    min-height: 46px;
    font-size: 16px;
  }
  .field > label {
    font-size: 12px;
  }
  .big-input input {
    font-size: 48px;
  }
  .form-actions .btn {
    min-height: 46px;
  }
  .form-preview {
    font-size: 11px;
  }
  #toast {
    bottom: calc(94px + env(safe-area-inset-bottom));
    font-size: 12px;
  }
}
/* Keep secondary information legible; accents remain reserved for actions and money. */
.big-input input {
  padding-top: 10px;
  padding-bottom: 10px;
}
.big-input {
  margin-bottom: 18px;
}
@media (max-width: 680px) {
  .field input[type="date"],
  .field input[type="month"] {
    font-size: 15px;
    padding-left: 9px;
    padding-right: 8px;
    letter-spacing: -0.04em;
  }
}
@media (max-width: 680px) {
  .total-amount {
    font-size: clamp(
      26px,
      calc((100vw - 108px) / var(--amount-length, 10) * 1.62),
      46px
    );
  }
  .stat-value {
    font-size: clamp(
      16px,
      calc((100vw - 95px) / 3 / var(--number-length, 5) * 1.7),
      23px
    );
  }
}
.page-heading p,
.stat-top,
.account-name,
.row-subtitle,
.account-equivalent,
.rate-item span,
.field > label,
.settings-row p,
.rate-note,
.modal-subtitle,
.notice,
.empty p,
.confirm-message {
  color: #737a69;
}
.stat-bottom,
.row-money small,
.plan-cell small,
.footer button {
  color: #7c8472;
}
.demo-banner {
  color: #747d67;
}
.field > label {
  font-size: 13px;
}
.row-subtitle {
  font-size: 12px;
}
.account-equivalent {
  font-size: 12px;
}
.hero-meta {
  color: #b3b8ac;
}
@media (max-width: 680px) {
  .stat-top {
    font-size: 12px;
    min-height: 34px;
  }
  .stat-bottom {
    font-size: 11px;
  }
  .demo-banner {
    font-size: 11px;
  }
  .row-subtitle,
  .plan-table-row .row-subtitle {
    font-size: 12px;
  }
  .row-money small {
    font-size: 11px;
  }
  .account-equivalent {
    font-size: 11px;
  }
  .field > label {
    font-size: 13px;
  }
  .notice {
    font-size: 12px;
  }
  .nav span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
