:root {
  --bg: #f5f7f8;
  --surface: #fff;
  --ink: #172b32;
  --muted: #74818a;
  --line: #e6ebed;
  --accent: #0d6d60;
  --accent-light: #e8f4ef;
  --red: #c66556;
  --blue: #577fa2;
  --gold: #bd9452;
  --radius: 18px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #83b7a5;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 1.8rem;
  letter-spacing: -0.045em;
  font-weight: 650;
}
h2 {
  font-size: 1.08rem;
  font-weight: 650;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.caption {
  font-size: 0.8rem;
  color: var(--muted);
}
.mono,
.money {
  font-variant-numeric: tabular-nums;
}
.money {
  letter-spacing: -0.025em;
}
.positive {
  color: var(--accent);
}
.negative {
  color: var(--red);
}
.hidden {
  display: none !important;
}
.right {
  text-align: right;
}
.nowrap {
  white-space: nowrap;
}
.stack {
  display: grid;
  gap: 20px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wrap {
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.boot {
  height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.2rem;
}
.boot .brand-mark {
  margin: auto;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  z-index: 15;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px 40px;
}
.brand strong {
  font-size: 1.18rem;
  letter-spacing: 0.03em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 1px;
}
.nav-label {
  font-size: 0.75rem;
  color: #99a3a8;
  padding: 0 16px 12px;
  letter-spacing: 0.1em;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 11px;
  color: #6f7c84;
  font-size: 0.94rem;
  margin-bottom: 6px;
  transition: background 0.15s;
}
.nav-item:hover {
  background: #f5f7f8;
}
.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.nav-item .count {
  margin-left: auto;
  font-size: 0.75rem;
  min-width: 20px;
  text-align: center;
  border-radius: 5px;
  background: #d6eae1;
  padding: 1px 5px;
}
.sidebar-foot {
  margin-top: auto;
}
.private-tag {
  border-top: 1px solid var(--line);
  margin: 18px 8px 0;
  padding-top: 18px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #8d989f;
  font-size: 0.76rem;
}
.main {
  margin-left: 232px;
  min-height: 100vh;
}
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #ffffffad;
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 500;
  color: #394b53;
  margin-left: 8px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.today {
  font-size: 0.82rem;
  color: var(--muted);
}
.avatar {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #f5f8f7;
  color: var(--accent);
  font-size: 0.8rem;
}
.content {
  max-width: 1540px;
  margin: auto;
  padding: 36px 42px 50px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: nowrap;
  min-height: 40px;
}
.btn:hover {
  background: #f5f7f7;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 3px 5px #0d6d6010;
}
.btn.primary:hover {
  background: #085d51;
}
.btn.subtle {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn.subtle:hover {
  color: var(--accent);
  background: var(--accent-light);
}
.btn.danger {
  color: var(--red);
  border-color: #f0d8d3;
}
.btn.small {
  font-size: 0.8rem;
  padding: 6px 10px;
  min-height: 32px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input,
.toolbar select {
  width: auto;
  min-height: 38px;
  padding: 7px 11px;
  background: white;
  font-size: 0.875rem;
}
.toolbar .search {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  padding: 22px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-body {
  padding: 0 24px 24px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.kpi {
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}
.kpi-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f2f7f5;
  color: var(--accent);
  width: 32px;
  height: 32px;
}
.kpi .amount {
  font-size: 1.9rem;
  font-weight: 620;
  margin: 12px 0 5px;
  line-height: 1.2;
  white-space: nowrap;
}
.kpi .amount span {
  font-size: 1.1rem;
  margin-right: 4px;
  color: #9aa5aa;
  font-weight: 400;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.chart-wrap {
  height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 8px 4px 0;
  gap: 16px;
}
.bar-month {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
}
.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 172px;
  width: 100%;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.bar {
  width: 18px;
  max-width: 35%;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  background: #0d6d60;
}
.bar.expense {
  background: #b7d8cc;
}
.bar-label {
  font-size: 0.76rem;
  color: var(--muted);
}
.legend {
  font-size: 0.76rem;
  display: flex;
  gap: 16px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.legend .light {
  background: #b7d8cc;
}
.summary-strip {
  padding: 16px 0 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.list {
  display: grid;
  gap: 18px;
}
.mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f5f6;
  color: #7c909a;
}
.mini-item .details {
  flex: 1;
  min-width: 0;
}
.mini-item .details strong {
  font-size: 0.9rem;
  font-weight: 550;
}
.mini-item .details small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}
.mini-item .money {
  font-size: 0.95rem;
  font-weight: 550;
}
.empty {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  width: 56px;
  height: 56px;
  background: #f1f6f4;
  color: #7da798;
  margin-bottom: 15px;
}
.empty h3 {
  color: #50636b;
  font-size: 1rem;
  margin-bottom: 8px;
}
.empty p {
  font-size: 0.875rem;
  max-width: 380px;
  margin: 0 auto 20px;
}
.empty.compact {
  padding: 26px 16px;
}
.welcome {
  border: 1px solid #cfe4da;
  background: linear-gradient(110deg, #eff8f3, #fafdfb);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.welcome .welcome-icon {
  width: 56px;
  height: 56px;
  border: 1px solid #cee2d6;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #fff9;
}
.welcome h2 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.welcome p {
  color: #6b8377;
  font-size: 0.875rem;
}
.welcome .btn {
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th {
  text-align: left;
  background: #fafbfc;
  color: #8a969d;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f3f4;
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #fcfdfc;
}
.table td.right,
.table th.right {
  text-align: right;
}
.table .subtext {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 3px;
}
.table .table-amount {
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}
.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  padding: 3px 8px;
  background: #f0f4f5;
  color: #7a8991;
  font-size: 0.73rem;
  white-space: nowrap;
}
.badge.green {
  background: #eaf5ef;
  color: #3a886a;
}
.badge.orange {
  background: #fcf2e1;
  color: #ac8542;
}
.badge.red {
  background: #faece9;
  color: #b86b5b;
}
.badge.blue {
  background: #edf3f9;
  color: #6286a6;
}
.section-note {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.8;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.account-card {
  padding: 24px;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.account-card.credit {
  background: linear-gradient(120deg, #1b3f42, #183330);
  color: white;
  border-color: #214642;
}
.account-card.credit .muted,
.account-card.credit .caption {
  color: #a1beb5;
}
.account-card .account-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.account-card .account-label strong {
  font-weight: 550;
}
.account-card .balance-label {
  margin: 28px 0 5px;
  font-size: 0.8rem;
  color: var(--muted);
}
.account-card.credit .balance-label {
  color: #a1beb5;
}
.account-card .balance {
  font-size: 1.9rem;
  font-weight: 550;
  letter-spacing: -0.03em;
}
.account-card .account-meta {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}
.account-card.credit .account-meta {
  color: #a1beb5;
}
.account-card.credit .icon-btn {
  color: #b8cec6;
}
.account-card.credit .icon-btn:hover {
  background: #ffffff15;
}
.account-card .btn {
  margin-top: 15px;
}
.account-card.credit .btn {
  color: #123c34;
  background: #b7ead7;
  border-color: #b7ead7;
  font-weight: 600;
}
.account-card.credit .btn:hover {
  background: #d3f4e7;
  border-color: #d3f4e7;
}
.account-card.credit .btn:focus-visible {
  outline: 2px solid #b7ead7;
  outline-offset: 3px;
}
.progress {
  height: 6px;
  background: #edf2f0;
  overflow: hidden;
  border-radius: 10px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  max-width: 100%;
}
.progress.over i {
  background: var(--red);
}
.budget-card {
  padding: 24px;
}
.budget-card .budget-amount {
  font-size: 1.9rem;
  margin: 20px 0 12px;
}
.budget-card .budget-amount small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}
.budget-card .budget-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.cards-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.loan-card {
  padding: 24px;
}
.loan-card .loan-amount {
  font-size: 1.8rem;
  margin: 20px 0;
}
.loan-card footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.bills-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.bill-list {
  display: grid;
  gap: 14px;
}
.bill-item {
  text-align: left;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
}
.bill-item:hover {
  border-color: #b6cfc3;
}
.bill-item.selected {
  border: 1.5px solid #5b9b83;
  background: #f5fbf7;
  box-shadow: 0 2px 6px #0d6d6008;
}
.bill-item .bill-amount {
  font-size: 1.55rem;
  font-weight: 580;
  margin: 14px 0 10px;
}
.bill-item .bill-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}
.bill-detail .detail-head {
  padding: 25px;
  border-bottom: 1px solid var(--line);
}
.bill-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.bill-summary .value {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 5px;
}
.bill-summary small {
  font-size: 0.78rem;
  color: var(--muted);
}
.plan-meta {
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-meta select {
  width: auto;
  max-width: 260px;
  padding: 6px 10px;
  font-size: 0.8rem;
}
.schedule {
  padding: 0 25px 25px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.schedule-day {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 13px;
  background: #fff;
}
.schedule-day.current {
  background: var(--accent-light);
  border-color: #a8cbb9;
}
.schedule-day.past {
  background: #fff9f3;
  border-color: #efdac6;
}
.schedule-date {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.schedule-day .money {
  font-size: 1.16rem;
  font-weight: 570;
  margin-top: 9px;
  display: block;
}
.plan-foot {
  padding: 16px 25px;
  background: #fafcfb;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.callout {
  margin: 0 25px 20px;
  padding: 12px 15px;
  font-size: 0.83rem;
  border: 1px solid #eee0c9;
  background: #fffbf3;
  border-radius: 9px;
  color: #a27c41;
}
.category-list {
  display: grid;
  gap: 17px;
}
.category-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}
.category-line .dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}
.category-line .name {
  flex: 1;
}
.category-line .progress {
  width: 90px;
  height: 4px;
}
.category-line .money {
  width: 90px;
  text-align: right;
  font-weight: 500;
}
.filters-meta {
  padding: 13px 24px;
  background: #fafcfb;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.settings-section {
  padding: 24px;
}
.settings-section + .settings-section {
  border-top: 1px solid var(--line);
}
.settings-section p {
  margin: 8px 0 16px;
  max-width: 760px;
}
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-chips span {
  background: #f1f5f4;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
}
.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.token-value {
  display: block;
  word-break: break-all;
  border: 1px dashed #a7c7b8;
  border-radius: 8px;
  background: #eff8f3;
  padding: 15px;
  color: var(--accent);
  font-family: monospace;
  margin: 15px 0;
  user-select: all;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce4e6;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #79a68f;
  box-shadow: 0 0 0 3px #0d6d600d;
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23818f96'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
}
textarea {
  resize: vertical;
  min-height: 75px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  color: #52656e;
}
label.field small {
  font-size: 0.76rem;
  color: #8d989e;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: #60737c;
}
.check input {
  margin: 0;
}
.form-note {
  font-size: 0.8rem;
  line-height: 1.8;
  background: #f5f8f7;
  border-radius: 8px;
  padding: 12px 14px;
  color: #7a8d82;
}
.amount-input {
  font-size: 1.8rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  padding: 13px 15px;
}
.form-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 15px;
  min-height: 0;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  background: #f6f8f8;
  border-radius: 9px;
  padding: 4px;
  gap: 3px;
}
.segmented button {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  flex: 1;
  color: var(--muted);
}
.segmented button.active {
  background: white;
  box-shadow: 0 1px 3px #172b3210;
  color: var(--accent);
  font-weight: 550;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 25px 90px #172b3226;
  width: min(620px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 0;
  color: var(--ink);
  background: white;
  overflow: auto;
}
dialog::backdrop {
  background: #162d3b55;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 27px 0;
}
.dialog-head h2 {
  font-size: 1.15rem;
}
.dialog-body {
  padding: 24px 27px 27px;
}
.dialog-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.confirm-text {
  font-size: 0.94rem;
  line-height: 1.8;
  color: #697d86;
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}
.auth-art {
  background: #103f38;
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.auth-art .brand {
  padding: 0;
  color: white;
}
.auth-art .brand-mark {
  background: #ffffff15;
  border: 1px solid #ffffff25;
}
.auth-copy {
  max-width: 470px;
  position: relative;
  z-index: 1;
}
.auth-copy h1 {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.35;
}
.auth-copy p {
  font-size: 1rem;
  color: #a9c5b9;
  margin-top: 24px;
  line-height: 1.9;
}
.auth-art footer {
  color: #7ca392;
  font-size: 0.8rem;
}
.auth-shapes {
  position: absolute;
  right: -90px;
  top: 10%;
  width: 430px;
  height: 430px;
  border: 1px solid #598d7835;
  border-radius: 50%;
  box-shadow:
    0 0 0 60px #598d7810,
    0 0 0 120px #598d7807;
}
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 350px;
}
.auth-form h2 {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  margin-bottom: 9px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 30px;
}
.auth-form label {
  margin-bottom: 20px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 6px;
}
.auth-foot {
  font-size: 0.76rem;
  color: #a0a9ad;
  line-height: 1.8;
  margin-top: 28px;
}
.mobile-brand {
  display: none;
}
.page-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 24px;
}
.pagination {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: #1e3931;
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 30px #102d3120;
  font-size: 0.875rem;
  z-index: 100;
  transition:
    opacity 0.18s,
    transform 0.18s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .chart-wrap {
    height: 235px;
  }
  .bars {
    height: 197px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main {
    margin-left: 205px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .kpis {
    gap: 12px;
  }
  .kpi {
    padding: 18px;
  }
  .kpi .amount {
    font-size: 1.6rem;
  }
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bills-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table td,
  .table th {
    padding-left: 18px;
    padding-right: 18px;
  }
  .bills-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 180px;
  }
  .brand {
    padding-left: 8px;
  }
  .brand strong {
    font-size: 1.05rem;
  }
  .brand small {
    font-size: 0.65rem;
  }
  .nav-item {
    padding: 12px 13px;
    gap: 10px;
  }
  .main {
    margin-left: 180px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bills-layout {
    grid-template-columns: 1fr;
  }
  .bill-list {
    display: flex;
    overflow: auto;
    padding-bottom: 5px;
  }
  .bill-item {
    min-width: 240px;
    max-width: 300px;
  }
  .schedule {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards-two {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 40px;
  }
  .auth-copy h1 {
    font-size: 2.3rem;
  }
  .today {
    display: none;
  }
}
@media (max-width: 680px) {
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 74px;
    padding: 5px 8px max(5px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    flex-direction: row;
    overflow-x: auto;
    align-items: center;
    background: #fffffff5;
    backdrop-filter: blur(10px);
  }
  .sidebar .brand,
  .nav-label,
  .private-tag {
    display: none;
  }
  .sidebar nav {
    display: flex;
    flex: 1;
    justify-content: space-around;
    min-width: 360px;
  }
  .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 7px 9px;
    margin: 0;
    font-size: 0.68rem;
    min-width: 54px;
  }
  .nav-item svg {
    width: 19px;
    height: 19px;
  }
  .nav-item .count {
    display: none;
  }
  .sidebar-foot {
    margin: 0;
  }
  .sidebar-foot .nav-item {
    min-width: 50px;
  }
  .main {
    margin-left: 0;
    padding-bottom: 75px;
  }
  .topbar {
    height: 58px;
    padding: 0 20px;
  }
  .top-right {
    gap: 8px;
  }
  .topbar .btn {
    font-size: 0.8rem;
    min-height: 34px;
    padding: 7px 10px;
  }
  .avatar {
    display: none;
  }
  .content {
    padding: 23px 18px 30px;
  }
  .page-head {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 23px;
  }
  .page-head h1 {
    font-size: 1.5rem;
  }
  .page-head p {
    font-size: 0.8rem;
  }
  .page-head > .row {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .page-head .btn {
    font-size: 0.76rem;
    padding: 8px 10px;
    min-height: 34px;
  }
  .kpis {
    gap: 10px;
    margin-bottom: 18px;
  }
  .kpi {
    padding: 16px;
  }
  .kpi-top {
    font-size: 0.76rem;
  }
  .kpi .amount {
    font-size: 1.45rem;
    margin-top: 10px;
  }
  .kpi .caption {
    font-size: 0.7rem;
  }
  .kpi-icon {
    width: 27px;
    height: 27px;
  }
  .dashboard-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .panel-head {
    padding: 18px 18px 15px;
  }
  .panel-body {
    padding: 0 18px 20px;
  }
  .welcome {
    padding: 19px;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .welcome .welcome-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .welcome .welcome-icon svg {
    width: 20px;
  }
  .welcome h2 {
    font-size: 1rem;
  }
  .welcome p {
    font-size: 0.8rem;
  }
  .welcome .btn {
    margin-left: 50px;
  }
  .account-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .account-card {
    padding: 22px;
  }
  .account-card .balance-label {
    margin-top: 22px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar input,
  .toolbar select {
    font-size: 0.8rem;
    max-width: 100%;
  }
  .toolbar .search {
    flex-basis: 100%;
    max-width: 100%;
  }
  .table td,
  .table th {
    padding: 13px 15px;
  }
  .table {
    font-size: 0.8rem;
  }
  .table .table-amount {
    font-size: 0.85rem;
  }
  .table .optional {
    display: none;
  }
  .table .subtext {
    font-size: 0.7rem;
  }
  .table-actions .icon-btn {
    width: 28px;
    height: 28px;
  }
  .table .mini-icon {
    width: 30px;
    height: 30px;
  }
  .table .row {
    gap: 8px;
  }
  .bill-summary {
    padding: 18px;
    gap: 8px;
  }
  .bill-summary .value {
    font-size: 1.05rem;
  }
  .bill-summary small {
    font-size: 0.7rem;
  }
  .bill-detail .detail-head {
    padding: 18px;
  }
  .schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 18px 18px;
  }
  .plan-meta {
    padding: 18px;
  }
  .schedule-day {
    padding: 12px;
  }
  .plan-foot {
    padding: 15px 18px;
    font-size: 0.74rem;
  }
  .callout {
    margin-left: 18px;
    margin-right: 18px;
  }
  .chart-wrap {
    gap: 10px;
    height: 190px;
  }
  .bars {
    height: 152px;
  }
  .form-grid {
    gap: 16px;
  }
  .dialog-head {
    padding: 20px 21px 0;
  }
  .dialog-body {
    padding: 20px 21px;
  }
  .auth-shell {
    display: block;
  }
  .auth-art {
    display: none;
  }
  .auth-right {
    min-height: 100dvh;
    padding: 32px;
  }
  .mobile-brand {
    display: block;
    margin-bottom: 45px;
  }
  .settings-section {
    padding: 20px;
  }
  .category-line .progress {
    width: 65px;
  }
  .category-line .money {
    width: 80px;
  }
  #toast {
    bottom: 92px;
  }
  .table th.optional-mobile,
  .table td.optional-mobile {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.nav-mobile {
  display: none;
}
.schedule-date {
  font-size: 0.875rem;
}
label.field {
  font-size: 0.875rem;
}
@media (max-width: 680px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile {
    display: inline;
  }
  .sidebar nav {
    min-width: 0;
  }
  .nav-item {
    min-width: 44px;
    padding: 7px 5px;
  }
  .sidebar-foot .nav-item {
    min-width: 44px;
  }
  .table {
    font-size: 0.875rem;
  }
  .table .table-amount {
    font-size: 0.94rem;
  }
  .schedule-date {
    font-size: 0.8rem;
  }
}
