:root {
  --ink: #201d2b;
  --muted: #817c91;
  --paper: #f8f6fb;
  --card: #ffffff;
  --line: #ebe7f1;
  --purple: #7258e7;
  --purple-dark: #5440bf;
  --lavender: #ece8ff;
  --coral: #ef765d;
  --green: #2f9d75;
  --sidebar: #171521;
  --shadow: 0 16px 45px rgba(39, 31, 69, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(174,151,255,.2), transparent 28%), radial-gradient(circle at 90% 80%, rgba(255,156,137,.18), transparent 30%), #171521; }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 25px; color: #fff; background: rgba(38,34,51,.92); box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 16px; letter-spacing: .08em; }
.login-brand small { margin-top: 3px; color: #8e879a; font-size: 8px; letter-spacing: .18em; }
.login-copy h1 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.login-copy > p:last-child { margin: 9px 0 25px; color: #9e97a8; font-size: 12px; }
.login-card label { display: grid; gap: 8px; margin-bottom: 15px; color: #c6c0cc; font-size: 10px; font-weight: 700; }
.login-card input:not([type="checkbox"]) { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #494254; border-radius: 11px; outline: 0; color: #fff; background: #211e2c; }
.login-card input:focus { border-color: #9f8bee; box-shadow: 0 0 0 3px rgba(159,139,238,.13); }
.login-card .remember-line { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; color: #8e879a; font-weight: 500; }
.remember-line input { accent-color: var(--purple); }
.login-button { width: 100%; min-height: 47px; margin-top: 7px; }
.login-error { min-height: 17px; margin: 12px 0 0; color: #ff9f8c; font-size: 10px; text-align: center; }
.login-footnote { display: block; margin-top: 27px; color: #706a7a; font-size: 9px; text-align: center; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 244px; display: flex; flex-direction: column; padding: 31px 22px; color: #fff; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 0 8px 34px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #211c39; background: linear-gradient(135deg, #c9bcff, #ffbcae); font-weight: 900; box-shadow: 0 7px 22px rgba(177, 157, 255, .25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: #787287; font-size: 8px; letter-spacing: .16em; }
.nav { display: grid; gap: 8px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 0; border-radius: 12px; color: #8f899b; background: transparent; text-align: left; transition: .2s ease; }
.nav-item span { width: 22px; font-size: 20px; text-align: center; }
.nav-item:hover, .nav-item.active { color: #fff; background: #292536; }
.nav-item.active { box-shadow: inset 3px 0 0 #a994ff; }
.sidebar-note { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid #322e3e; border-radius: 14px; background: #211e2c; }
.pulse-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: #66d4a6; box-shadow: 0 0 0 5px rgba(102,212,166,.1); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 11px; }
.sidebar-note small { margin-top: 4px; color: #7c7688; font-size: 9px; line-height: 1.5; }
.backup-link { margin-top: 13px; padding: 10px; color: #878191; font-size: 11px; text-align: center; text-decoration: none; }
.backup-link:hover { color: #fff; }

.main-content { grid-column: 2; width: 100%; max-width: 1500px; padding: 30px 42px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow, .section-kicker { margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.top-actions { display: flex; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 0 4px 0 10px; color: var(--muted); font-size: 10px; }
.user-chip span { color: #42ad82; font-size: 8px; }
.logout-button { align-self: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; font-weight: 700; font-size: 12px; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(44,36,72,.1); }
.btn-primary { color: #fff; border-color: var(--purple); background: var(--purple); box-shadow: 0 7px 20px rgba(114,88,231,.22); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost { background: #fff; }

.view { display: none; animation: reveal .28s ease; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.hero-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 35px; min-height: 190px; padding: 31px 34px; border-radius: 23px; color: #fff; background: linear-gradient(116deg, #252035 0%, #302841 58%, #463651 100%); box-shadow: var(--shadow); }
.hero-panel::after { content: ""; position: absolute; width: 230px; height: 230px; right: 20%; top: -150px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018); }
.hero-copy, .hero-actions { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 100px; color: #c9c0d1; font-size: 9px; letter-spacing: .08em; }
.hero-copy h2 { margin: 0; font-size: clamp(29px, 3vw, 43px); line-height: 1.13; letter-spacing: -.055em; }
.hero-copy h2 em { color: #bfaeff; font-style: normal; }
.hero-copy p { margin: 12px 0 0; color: #a6a0ae; font-size: 12px; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 390px; }
.hero-button { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 17px; border: 0; border-radius: 15px; color: #2b2541; text-align: left; }
.hero-button > span { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.65); font-size: 22px; }
.hero-button b { font-size: 13px; }
.hero-button small { margin-top: 3px; color: rgba(38,32,59,.6); font-size: 9px; }
.hero-button.lavender { background: #c8bbff; }
.hero-button.coral { background: #ffad9d; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.stat-card { position: relative; min-height: 132px; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 8px 28px rgba(50,42,76,.045); }
.stat-card.featured { color: #fff; border: 0; background: var(--purple); }
.stat-card p { margin: 0 0 11px; color: var(--muted); font-size: 10px; font-weight: 700; }
.stat-card.featured p, .stat-card.featured small { color: #d8d1ff; }
.stat-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 26px; letter-spacing: -.03em; }
.stat-card small { display: block; margin-top: 8px; color: #aaa5b3; font-size: 9px; }
.stat-icon { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--purple); background: #f0ecff; font-size: 13px; font-weight: 800; }
.featured .stat-icon { color: #fff; background: rgba(255,255,255,.14); }
.stat-icon.orange { color: #d8684e; background: #fff0ec; }
.stat-icon.blue { color: #497bc3; background: #edf4ff; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 8px 28px rgba(50,42,76,.04); }
.client-panel, .activity-panel { min-height: 304px; padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-heading h3 { margin: 0; font-size: 16px; }
.text-btn { border: 0; color: var(--purple); background: none; font-size: 10px; font-weight: 800; }
.client-preview, .activity-list { display: grid; gap: 8px; }
.client-row { display: grid; grid-template-columns: 40px minmax(110px, 1fr) repeat(3, minmax(80px, .55fr)) 26px; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 12px; transition: background .18s; cursor: pointer; }
.client-row:hover { background: #faf8fd; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #5d48bf; background: #eeeaff; font-size: 13px; font-weight: 900; }
.avatar.tone-1 { color: #b45845; background: #ffebe5; }
.avatar.tone-2 { color: #267b62; background: #e3f5ee; }
.client-main strong, .client-main small, .metric span, .metric b { display: block; }
.client-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.client-main small, .metric span { margin-top: 4px; color: #aaa5b3; font-size: 9px; }
.metric b { font-family: Georgia, serif; font-size: 13px; }
.metric.balance b { color: var(--purple); }
.row-arrow { color: #bbb5c4; font-size: 18px; }
.activity-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f2eff5; }
.activity-item:last-child { border: 0; }
.activity-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--green); background: #eaf7f2; font-size: 14px; }
.activity-icon.expense { color: var(--coral); background: #fff0ec; }
.activity-copy strong, .activity-copy small { display: block; }
.activity-copy strong { font-size: 11px; }
.activity-copy small { margin-top: 4px; color: #aaa5b3; font-size: 9px; }
.activity-amount { font-family: Georgia, serif; font-size: 13px; font-weight: 700; color: var(--green); }
.activity-amount.expense { color: var(--ink); }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 14px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #faf9fc; }
.search-box span { color: var(--muted); font-size: 20px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.toolbar select, .modal select, .modal input, .modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fbfafd; transition: border .18s, box-shadow .18s; }
.toolbar select { width: auto; min-height: 42px; padding: 0 36px 0 13px; }
.modal input, .modal select { height: 43px; padding: 0 12px; }
.modal textarea { padding: 11px 12px; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: #a99aec; box-shadow: 0 0 0 3px rgba(114,88,231,.09); }
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 28px rgba(50,42,76,.04); }
.project-card.inactive { opacity: .7; }
.project-card-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; }
.project-card-head strong, .project-card-head small { display: block; }
.project-card-head strong { font-size: 13px; }
.project-card-head small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.project-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--purple); background: var(--lavender); font-size: 23px; font-weight: 900; }
.status-pill { padding: 5px 8px; border-radius: 100px; color: var(--green); background: #eaf7f2; font-size: 8px; font-weight: 800; }
.status-pill.inactive { color: var(--muted); background: #f0edf3; }
.project-rate { display: flex; align-items: baseline; gap: 5px; margin-top: 22px; }
.project-rate strong { color: var(--purple-dark); font-family: Georgia, serif; font-size: 27px; }
.project-rate span { color: var(--muted); font-size: 9px; }
.project-card > p { min-height: 34px; margin: 11px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.project-stats { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.project-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.text-btn.danger { color: #cf594d; }
.client-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 28px rgba(50,42,76,.04); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.client-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.client-card-head { display: flex; align-items: center; gap: 12px; }
.client-card-head .avatar { width: 44px; height: 44px; }
.client-card-head strong, .client-card-head small { display: block; }
.client-card-head strong { font-size: 14px; }
.client-card-head small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.client-balance { margin: 20px 0 15px; padding: 16px; border-radius: 13px; background: #f7f4ff; }
.client-balance span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
.client-balance strong { display: block; margin-top: 6px; color: var(--purple-dark); font-family: Georgia, serif; font-size: 25px; }
.client-card-stats { display: grid; grid-template-columns: 1fr 1fr; }
.client-card-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.client-card-stats span, .client-card-stats b { display: block; }
.client-card-stats span { color: var(--muted); font-size: 9px; }
.client-card-stats b { margin-top: 5px; font-family: Georgia, serif; font-size: 13px; }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 18px; color: var(--muted); background: #faf9fc; font-size: 9px; letter-spacing: .08em; text-align: left; }
td { padding: 15px 18px; border-top: 1px solid var(--line); font-size: 11px; }
.transaction-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.amount-cell { text-align: right; }
.type-pill { display: inline-flex; padding: 5px 8px; border-radius: 100px; color: var(--green); background: #eaf7f2; font-size: 9px; font-weight: 800; }
.type-pill.expense { color: #cf664f; background: #fff0ec; }
.amount-positive { color: var(--green); font-family: Georgia, serif; font-weight: 800; }
.amount-negative { color: var(--ink); font-family: Georgia, serif; font-weight: 800; }
.delete-btn { border: 0; color: #b2acbb; background: none; font-size: 15px; }
.delete-btn:hover { color: #d2594c; }

.empty-state { display: grid; place-items: center; min-height: 190px; padding: 35px; color: var(--muted); text-align: center; }
.empty-state::before { content: "✦"; display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 10px; border-radius: 14px; color: var(--purple); background: var(--lavender); font-size: 19px; }
.empty-state strong, .empty-state small { display: block; }
.empty-state strong { color: var(--ink); font-size: 13px; }
.empty-state small { max-width: 300px; margin-top: 7px; font-size: 10px; line-height: 1.65; }
.empty-state.compact { min-height: 270px; }

.modal { width: min(540px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px rgba(24,20,36,.28); }
.modal::backdrop { background: rgba(21,18,31,.62); backdrop-filter: blur(4px); }
.modal form, .detail-modal > div { padding: 27px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.modal-heading h2 { margin: 0; font-size: 21px; }
.icon-btn { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 20px; }
.modal label { display: grid; gap: 7px; margin-bottom: 14px; color: #5e5968; font-size: 10px; font-weight: 700; }
.modal label > span { display: inline; color: var(--coral); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 18px; padding: 4px; border-radius: 11px; background: #f2eff6; }
.type-switch button { height: 36px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.type-switch button.active { color: var(--purple-dark); background: #fff; box-shadow: 0 3px 12px rgba(42,34,68,.08); }
.balance-hint { margin: -6px 0 14px; color: var(--purple); font-size: 9px; font-weight: 700; }
.pricing-hint { margin: -6px 0 14px; color: var(--purple); font-size: 9px; font-weight: 700; }
.project-fields-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; color: #5e5968; font-size: 10px; font-weight: 700; }
.transaction-items { display: grid; gap: 8px; margin-bottom: 13px; }
.transaction-item-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(125px, .52fr) auto; gap: 8px; align-items: center; }
.transaction-item-row select, .transaction-item-row input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fbfafd; }
.transaction-item-row select:focus, .transaction-item-row input:focus { border-color: #a99aec; box-shadow: 0 0 0 3px rgba(114,88,231,.09); }
.remove-item-btn { height: 34px; padding: 0 8px; border: 0; border-radius: 8px; color: #a15b54; background: #fff0ec; font-size: 9px; font-weight: 800; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.modal .check-line { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.modal .check-line input { width: 16px; height: 16px; accent-color: var(--purple); }
.detail-top { display: flex; align-items: center; gap: 13px; padding-right: 40px; }
.detail-top .avatar { width: 48px; height: 48px; }
.detail-top h2 { margin: 0; font-size: 19px; }
.detail-top p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.detail-close { position: absolute; right: 24px; top: 24px; }
.detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.detail-summary div { padding: 13px; border-radius: 11px; background: #f8f6fb; }
.detail-summary span, .detail-summary strong { display: block; }
.detail-summary span { color: var(--muted); font-size: 8px; }
.detail-summary strong { margin-top: 5px; font-family: Georgia, serif; font-size: 14px; }
.detail-note { padding: 13px; border-left: 3px solid #c8bbff; color: #696373; background: #faf9fc; font-size: 10px; line-height: 1.6; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.btn-danger { color: #cf594d; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 30px; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 10px; color: #fff; background: #231f2c; box-shadow: 0 12px 35px rgba(0,0,0,.25); font-size: 11px; opacity: 0; pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #bd4f44; }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { min-width: 340px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 20px 15px 92px; }
  .topbar { align-items: flex-start; }
  .top-actions .btn-ghost { display: none; }
  .user-chip { display: none; }
  .login-card { padding: 30px 23px; }
  .hero-panel { display: block; padding: 25px 21px; }
  .hero-copy p { line-height: 1.6; }
  .hero-actions { min-width: 0; margin-top: 22px; }
  .hero-button { grid-template-columns: 32px 1fr; padding: 13px 11px; }
  .hero-button > span { width: 31px; height: 31px; }
  .stats-grid { gap: 9px; margin: 10px 0; }
  .stat-card { min-height: 120px; padding: 17px; }
  .stat-card strong { font-size: 21px; }
  .dashboard-grid { gap: 10px; }
  .client-panel, .activity-panel { padding: 17px 13px; }
  .client-row { grid-template-columns: 38px 1fr auto; }
  .client-row .metric:not(.balance) { display: none; }
  .row-arrow { display: none; }
  .client-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .history-toolbar select { flex: 1; }
  .mobile-nav { position: fixed; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); inset: auto 12px 11px; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: rgba(24,21,33,.96); box-shadow: 0 16px 45px rgba(20,17,28,.28); backdrop-filter: blur(12px); }
  .mobile-nav button { display: grid; gap: 2px; place-items: center; height: 48px; border: 0; border-radius: 11px; color: #817b8d; background: transparent; font-size: 8px; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.active { color: #fff; background: #302b3d; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .transaction-item-row { grid-template-columns: 1fr; gap: 6px; }
  .remove-item-btn { justify-self: end; }
  .modal form, .detail-modal > div { padding: 22px; }
  .detail-summary { gap: 5px; }
  .detail-summary div { padding: 10px 8px; }
}
