:root {
  --ink: #18332a;
  --muted: #718078;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --line: #e9ede8;
  --lime: #d9f879;
  --peach: #ffb4a3;
  --violet: #ded4ff;
  --shadow: 0 8px 32px rgba(21, 49, 40, .07);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100dvh; max-width: 620px; margin: auto; padding: max(20px, env(safe-area-inset-top)) 20px calc(98px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.wordmark { letter-spacing: -.07em; font-weight: 900; font-size: 26px; }
.avatar-stack { display: flex; padding-right: 8px; }
.avatar { border: 2px solid var(--paper); width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; margin-right: -8px; }
.avatar.patryk { background: var(--lime); }.avatar.weronika { background: var(--peach); }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.hero { background: var(--ink); color: white; border-radius: 28px; padding: 28px 25px 23px; box-shadow: var(--shadow); }
.hero h1 { font-size: 17px; margin: 0; font-weight: 650; color: #dce7e0; }.balance { font-size: clamp(42px, 13vw, 62px); letter-spacing: -.075em; line-height: 1.1; font-weight: 850; margin: 10px 0 6px; }.balance-note { color: #bed0c6; margin: 0; font-size: 14px; }.settle-btn { width: 100%; border: 0; border-radius: 15px; padding: 15px; margin-top: 23px; font-weight: 850; color: var(--ink); background: var(--lime); }
.section { margin-top: 31px; }.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }.section-heading h2 { font-size: 18px; letter-spacing: -.04em; margin: 0; }.text-button { border: 0; background: transparent; color: var(--ink); padding: 6px 0; font-size: 13px; font-weight: 800; }
.expense-list, .history-list { display: grid; gap: 10px; }.expense-card { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; box-shadow: 0 2px 8px rgba(23,59,48,.025); }.expense-card button { text-align: left; border: 0; background: none; padding: 0; color: inherit; display: contents; }.category-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #f1f4ef; font-size: 21px; }.expense-name { font-weight: 800; font-size: 15px; }.expense-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }.expense-amount { font-weight: 850; letter-spacing: -.035em; font-size: 15px; white-space: nowrap; }
.empty { padding: 25px; border: 1px dashed #cad4cc; color: var(--muted); text-align: center; border-radius: 17px; font-size: 14px; }
.bottom-nav { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(620px, 100%); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 9px 19px max(12px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; }.nav-button { border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; padding: 8px 5px; display: grid; gap: 3px; place-items: center; }.nav-button.active { color: var(--ink); }.add-fab { width: 58px; height: 58px; border: 0; color: var(--ink); background: var(--lime); border-radius: 50%; box-shadow: 0 7px 16px rgba(69,88,31,.23); font-size: 29px; line-height: .6; display: grid; place-items: center; margin: -30px auto 0; }.nav-label { font-size: 11px; }
.page-title { margin: 7px 0 22px; font-size: 34px; letter-spacing: -.065em; }.history-day { font-size: 12px; font-weight: 850; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; margin: 21px 0 8px; }.settlement-card { padding: 14px 15px; border-radius: 17px; background: #eeebff; display: flex; gap: 11px; align-items: center; font-size: 14px; }.settlement-card strong { display: block; }.settlement-card span { color: #625d7d; font-size: 12px; }.manage-card { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 7px 16px; }.manage-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }.manage-row:last-child { border: 0; }.manage-row .category-icon { width: 34px; height: 34px; font-size: 17px; }.remove { margin-left: auto; border: 0; border-radius: 9px; padding: 6px 9px; color: #a94a43; background: #fff0ed; font-size: 12px; font-weight: 700; }.add-category { margin-top: 13px; width: 100%; border: 1px dashed #aebbb2; color: var(--ink); background: transparent; border-radius: 14px; padding: 13px; font-weight: 800; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; padding: 14px; background: rgba(18,42,34,.35); display: flex; align-items: end; justify-content: center; }.modal { max-width: 580px; width: 100%; max-height: calc(100dvh - 28px); overflow: auto; background: var(--paper); border-radius: 27px 27px 20px 20px; padding: 20px 20px max(22px, env(safe-area-inset-bottom)); animation: rise .2s ease-out; }.modal h2 { font-size: 25px; letter-spacing: -.055em; margin: 0 0 20px; }.modal-close { float: right; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #e9eee9; font-size: 20px; color: var(--ink); }.field { margin: 15px 0; }.field label, .field-title { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; }.field input, .field select { width: 100%; border: 1px solid #dbe2db; border-radius: 13px; background: white; padding: 13px; color: var(--ink); outline-color: #84a840; }.segmented { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding: 4px; background: #e9eee9; border-radius: 14px; }.segment { border: 0; background: transparent; padding: 10px 3px; font-size: 12px; border-radius: 10px; color: var(--muted); font-weight: 750; }.segment.active { color: var(--ink); background: white; box-shadow: 0 1px 3px rgba(0,0,0,.07); }.split-detail { margin-top: 10px; padding: 13px; background: #edf2ed; border-radius: 14px; }.split-row { display: grid; grid-template-columns: 1fr 86px; gap: 10px; align-items: center; margin: 7px 0; }.split-row input { width: 100%; border: 1px solid #dbe2db; border-radius: 9px; padding: 8px; }.primary { border: 0; width: 100%; border-radius: 14px; background: var(--ink); color: white; padding: 15px; margin-top: 20px; font-weight: 850; }.danger-link { margin-top: 15px; border: 0; background: transparent; color: #a94a43; width: 100%; padding: 9px; font-weight: 750; }.reconcile-amount { font-size: 45px; letter-spacing: -.07em; font-weight: 900; margin: 7px 0 3px; }.reconcile-person { color: var(--muted); margin: 0; }.hint { color: var(--muted); line-height: 1.45; font-size: 13px; margin: 18px 0 4px; } @keyframes rise { from { transform: translateY(30px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 700px) { .app-shell { padding-top: 35px; } .bottom-nav { border: 1px solid var(--line); border-radius: 18px 18px 0 0; } .modal-backdrop { align-items: center; } .modal { border-radius: 26px; } }
