:root {
  --ink: #17352e;
  --muted: #73817c;
  --line: #dce7e0;
  --paper: #f7faf8;
  --panel: #ffffff;
  --mint: #d7efe2;
  --mint-dark: #4b9b79;
  --coral: #f48d72;
  --gold: #e7b65d;
  --lavender: #b9aedf;
  --blue: #8fc2db;
  --shadow: 0 16px 45px rgba(30, 62, 52, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 244px; background: #edf5f0; border-right: 1px solid var(--line); padding: 30px 20px 24px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 18px; padding: 0 10px; }
.brand-mark { display: grid; place-items: center; color: white; background: var(--ink); width: 29px; height: 29px; border-radius: 10px; font-family: "DM Mono", monospace; font-size: 16px; transform: rotate(-8deg); }
.side-nav { margin-top: 65px; display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #7a8b83; padding: 12px 13px; border-radius: 12px; font-size: 13px; font-weight: 700; transition: .2s; }
.nav-item:hover, .nav-item.active { color: var(--ink); background: #d9ece1; }
.nav-icon { font-size: 18px; width: 19px; text-align: center; font-weight: 400; }
.sidebar-note { margin: auto 7px 25px; padding: 16px 13px; background: rgba(255,255,255,.65); border-radius: 14px; color: #6e8177; font-size: 11px; line-height: 1.6; }
.sidebar-note p { margin: 9px 0 0; }.sidebar-note strong { color: var(--ink); font-size: 12px; }.note-icon { color: var(--coral); font-size: 19px; }
.sidebar-footer { color: #94a39d; font-size: 10px; display: flex; gap: 7px; align-items: center; padding: 0 8px; }.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #72bb93; }
.main-content { width: min(1180px, calc(100% - 70px)); margin: 0 auto; padding: 43px 0 34px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 34px; }.eyebrow { font-family: "DM Mono", monospace; color: var(--mint-dark); font-size: 10px; letter-spacing: .12em; margin: 0 0 9px; font-weight: 500; }.topbar h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.06em; margin: 0; line-height: 1.12; }.wave { color: var(--coral); font-size: .65em; vertical-align: top; margin-left: 4px; }.subtitle { color: var(--muted); font-size: 13px; margin: 9px 0 0; }
.month-picker { display: flex; align-items: center; gap: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #50635b; font-size: 12px; font-weight: 700; white-space: nowrap; }.icon-button { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 4px; }.icon-button:hover { color: var(--ink); }
.summary-grid { display: grid; grid-template-columns: 1.28fr 1fr 1fr; gap: 15px; margin-bottom: 15px; }.summary-card, .panel { border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: var(--shadow); }.summary-card { padding: 22px 23px 19px; min-height: 160px; }.primary-card { background: var(--ink); color: #fff; border-color: var(--ink); }.card-heading { display: flex; justify-content: space-between; font-size: 11px; color: #92aaa0; font-weight: 700; }.primary-card .card-heading { color: #b6cdc2; }.card-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #eff7f2; color: var(--mint-dark); font-size: 14px; }.primary-card .card-icon { background: #325248; color: #c8e9d7; }.metric { font-family: "DM Mono", monospace; font-size: clamp(27px, 3.3vw, 37px); letter-spacing: -.08em; margin-top: 18px; }.trend, .card-caption { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; margin-top: 11px; color: var(--muted); }.trend.positive { color: #86c49f; }.sparkline { height: 25px; display: flex; align-items: end; gap: 5px; margin-top: 7px; }.sparkline span { width: 100%; background: #568b73; border-radius: 3px 3px 0 0; opacity: .7; }.sparkline span:nth-child(1){height:30%}.sparkline span:nth-child(2){height:50%}.sparkline span:nth-child(3){height:39%}.sparkline span:nth-child(4){height:67%}.sparkline span:nth-child(5){height:53%}.sparkline span:nth-child(6){height:82%}.sparkline span:nth-child(7){height:62%}.sparkline span:nth-child(8){height:94%;background:#9dd0b2}.budget-bar { height: 7px; background: #e8f0eb; border-radius: 10px; margin-top: 21px; overflow: hidden; }.budget-bar span { display: block; height: 100%; width: 0%; background: var(--mint-dark); border-radius: inherit; transition: width .4s; }.count-badge { color: var(--mint-dark); background: #e6f4eb; border-radius: 6px; padding: 3px 6px; margin-top: -3px; }
.content-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; margin-bottom: 15px; }.panel { padding: 24px; }.panel-header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }.panel h2 { margin: 0; font-size: 18px; letter-spacing: -.055em; }.text-button { border: 0; background: none; color: #91a098; font-size: 11px; padding: 3px 0; }.text-button:hover { color: var(--coral); }.category-content { display: flex; align-items: center; gap: 42px; min-height: 204px; }.donut-wrap { flex: 0 0 190px; display: grid; place-items: center; }.donut { width: 174px; height: 174px; border-radius: 50%; background: conic-gradient(var(--mint-dark) 0deg, #e8f1eb 0deg); position: relative; display: grid; place-items: center; transition: background .35s; }.donut::before { content: ""; width: 112px; height: 112px; background: #fff; border-radius: 50%; position: absolute; }.donut-center { position: relative; text-align: center; display: grid; gap: 3px; }.donut-center strong { font-family: "DM Mono", monospace; font-size: 23px; letter-spacing: -.09em; }.donut-center span { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-size: 8px; }.legend { flex: 1; display: grid; gap: 13px; }.legend-row { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; font-size: 11px; }.legend-dot { width: 8px; height: 8px; border-radius: 3px; }.legend-name { color: #63746d; }.legend-value { color: var(--ink); font-family: "DM Mono", monospace; font-size: 10px; }
.plus-badge { display: grid; place-items: center; background: var(--mint); color: var(--mint-dark); width: 29px; height: 29px; border-radius: 9px; font-size: 19px; }.add-panel form { margin-top: 21px; display: grid; gap: 13px; }.add-panel label { display: grid; gap: 6px; font-size: 10px; color: #74857d; font-weight: 700; }.add-panel input, .add-panel select, .search-box, .toolbar select { border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; color: var(--ink); padding: 10px 11px; outline: none; font-size: 12px; }.add-panel input:focus, .add-panel select:focus, .toolbar select:focus, .search-box:focus-within { border-color: var(--mint-dark); box-shadow: 0 0 0 3px #e1f2e8; }.form-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; }.input-prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; overflow: hidden; }.input-prefix:focus-within { border-color: var(--mint-dark); box-shadow: 0 0 0 3px #e1f2e8; }.input-prefix span { color: var(--muted); padding-left: 11px; font-family: "DM Mono", monospace; }.input-prefix input { border: 0; border-radius: 0; min-width: 0; background: none; padding-left: 5px; width: 100%; }.input-prefix input:focus { box-shadow: none; }.primary-button { border: 0; border-radius: 10px; background: var(--ink); color: #fff; padding: 12px 13px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; margin-top: 3px; transition: transform .2s, background .2s; }.primary-button:hover { transform: translateY(-1px); background: #285446; }
.transactions-panel { padding-bottom: 10px; }.transactions-heading { align-items: center; }.transaction-total { font-family: "DM Mono", monospace; font-size: 16px; }.toolbar { display: flex; gap: 9px; margin: 21px 0 10px; }.search-box { display: flex; align-items: center; gap: 8px; flex: 1; padding: 0 11px; }.search-box span { font-size: 20px; color: var(--muted); line-height: 1; }.search-box input { border: 0; outline: 0; background: none; width: 100%; padding: 10px 0; font-size: 11px; color: var(--ink); }.toolbar select { min-width: 150px; color: #677870; font-size: 11px; }.transaction-list { display: grid; }.transaction-row { display: grid; grid-template-columns: 38px 1fr auto auto 28px; gap: 12px; align-items: center; padding: 13px 3px; border-bottom: 1px solid #edf2ef; }.transaction-row:last-child { border-bottom: 0; }.transaction-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 16px; }.transaction-name { font-size: 12px; font-weight: 800; }.transaction-meta { color: var(--muted); font-size: 10px; margin-top: 3px; }.transaction-category { color: #688078; background: #f0f6f2; padding: 5px 8px; border-radius: 6px; font-size: 9px; }.transaction-amount { font-family: "DM Mono", monospace; font-size: 12px; white-space: nowrap; }.delete-button { color: #abbab3; border: 0; background: none; font-size: 16px; padding: 5px; opacity: 0; transition: .2s; }.transaction-row:hover .delete-button, .delete-button:focus { opacity: 1; }.delete-button:hover { color: var(--coral); }.empty-state { text-align: center; padding: 34px 10px 39px; color: var(--muted); }.empty-icon { display: grid; place-items: center; margin: auto; width: 42px; height: 42px; border-radius: 14px; background: #edf6f0; color: var(--mint-dark); font-size: 21px; }.empty-state h3 { color: var(--ink); font-size: 13px; margin: 12px 0 5px; }.empty-state p { font-size: 11px; margin: 0; }.page-footer { color: #a2b0aa; font-size: 10px; text-align: center; padding: 20px 0 0; }.page-footer span { margin: 0 7px; }.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .main-content { width: calc(100% - 48px); }.content-grid { grid-template-columns: 1fr; }.category-content { justify-content: center; } }
@media (max-width: 640px) { .app-shell { display: block; }.main-content { width: 100%; padding: 28px 16px; }.topbar { display: grid; gap: 18px; }.month-picker { justify-self: start; }.summary-grid { grid-template-columns: 1fr; }.summary-card { min-height: 140px; }.content-grid { display: flex; flex-direction: column; }.panel { padding: 19px; }.category-content { gap: 12px; flex-direction: column; padding-top: 18px; }.donut-wrap { flex-basis: auto; }.legend { width: 100%; }.transaction-row { grid-template-columns: 34px 1fr auto 25px; gap: 9px; }.transaction-category { display: none; }.form-row { grid-template-columns: 1fr; }.toolbar { flex-direction: column; } }
