:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b0b0b;--surface:#151515;--surface-2:#1d1d1d;--border:#262626;--text:#f4f4f5;--muted:#8b8b8b;--accent:#22c55e;--accent-soft:#22c55e24;--danger:#ef4444;--radius:16px;--nav-height:64px;--font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;min-height:100dvh;margin:0;padding:0}a{color:inherit;text-decoration:none}button,input{font:inherit;color:inherit}h1,h2,h3,p{margin:0}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.shell{flex-direction:column;min-height:100dvh;display:flex}.shell__header{z-index:10;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;display:flex;position:sticky;top:0}.brand{letter-spacing:-.01em;align-items:center;gap:10px;font-weight:700;display:flex}.brand__mark{border-radius:8px;width:28px;height:28px}.member{border:1px solid var(--border);background:var(--surface);border-radius:999px;align-items:center;gap:10px;padding:6px 6px 6px 12px;font-size:14px;display:flex}.member__name{color:var(--muted)}.member__logout{background:var(--surface-2);cursor:pointer;border:0;border-radius:999px;padding:6px 10px;font-size:13px}.member__logout:hover{background:var(--border)}.shell__main{width:100%;max-width:1100px;padding:20px 16px calc(var(--nav-height) + 24px + env(safe-area-inset-bottom));flex:1;margin:0 auto}.page__title{letter-spacing:-.02em;margin-bottom:4px;font-size:26px;font-weight:700}.page__subtitle{color:var(--muted);margin-bottom:20px;font-size:15px}.nav{inset-inline:0;z-index:10;height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb, var(--bg) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border);grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0}.nav__item{color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:11px;display:flex}.nav__item svg{width:24px;height:24px}.nav__item[aria-current=page]{color:var(--accent)}@media (min-width:768px){.shell{flex-direction:row}.shell__header{border-bottom:0;flex-direction:column;order:0;align-items:stretch;gap:20px;padding:20px 16px;position:static}.nav{top:0;inset-inline:auto;border-top:0;border-right:1px solid var(--border);background:var(--surface);flex-direction:column;flex-shrink:0;gap:4px;width:220px;height:100dvh;padding:20px 12px;display:flex;position:sticky;bottom:auto}.nav__brand{align-items:center;gap:10px;padding:8px 12px 20px;font-weight:700;display:flex}.nav__item{border-radius:10px;flex-direction:row;justify-content:flex-start;gap:12px;padding:10px 12px;font-size:15px}.nav__item[aria-current=page]{background:var(--accent-soft)}.nav__item svg{width:22px;height:22px}.shell__body{flex-direction:column;flex:1;min-width:0;display:flex}.shell__header .brand{display:none}.shell__header{flex-direction:row;justify-content:flex-end;padding:16px 24px 0}.shell__main{padding:8px 24px 40px}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.empty{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:40px 20px;display:flex}.empty__icon{width:48px;height:48px;color:var(--accent);margin-bottom:8px}.empty h2{font-size:18px;font-weight:600}.empty p{color:var(--muted);max-width:36ch;font-size:15px}.login{place-items:center;min-height:100dvh;padding:24px 16px;display:grid}.login__card{flex-direction:column;gap:20px;width:100%;max-width:380px;display:flex}.login__brand{text-align:center;flex-direction:column;align-items:center;gap:12px;display:flex}.login__brand img{border-radius:20px;width:72px;height:72px}.login__brand h1{letter-spacing:-.02em;font-size:22px;font-weight:700}.login__brand p{color:var(--muted);font-size:15px}.form{flex-direction:column;gap:14px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field label{color:var(--muted);font-size:13px}.field input{border:1px solid var(--border);background:var(--surface-2);border-radius:12px;outline:none;width:100%;padding:14px;font-size:16px}.field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.button{background:var(--accent);color:#06230f;cursor:pointer;border:0;border-radius:12px;padding:14px;font-size:16px;font-weight:700}.button:disabled{opacity:.6;cursor:progress}.form__error{color:var(--danger);background:#ef44441a;border-radius:10px;padding:10px 12px;font-size:14px}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.money--in{color:var(--accent)}.money--out{color:var(--text)}.kpis{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px;display:grid}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:4px;min-width:0;padding:14px;display:flex}.kpi__label{color:var(--muted);font-size:12px}.kpi__value{letter-spacing:-.02em;text-overflow:ellipsis;font-size:20px;font-weight:700;overflow:hidden}.kpi__hint{color:var(--muted);font-size:12px}@media (min-width:768px){.kpis{grid-template-columns:repeat(4,1fr)}}.section{margin-bottom:16px}.section__header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.section__header h2{font-size:16px;font-weight:600}.section__aside{color:var(--muted);font-size:13px}.section__aside a{color:var(--accent)}.section .empty{padding:20px 0 8px}.grid-2{grid-template-columns:1fr;gap:16px;display:grid}@media (min-width:900px){.grid-2{grid-template-columns:1fr 1fr;align-items:start}.grid-2>.section{margin-bottom:0}}.hero{background:linear-gradient(135deg, #16231a 0%, var(--surface) 60%)}.hero__insight{margin:6px 0 16px;font-size:17px;line-height:1.4}.hero__kpis{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.hero__kpis .kpi{background:color-mix(in srgb, var(--bg) 60%, transparent);padding:10px 12px}.hero__kpis .kpi__value{font-size:16px}.rows{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.row{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.row:first-child{border-top:0;padding-top:0}.row__main{flex-direction:column;gap:2px;min-width:0;display:flex}.row__title{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.row__meta{color:var(--muted);font-size:13px}.row__side{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:4px;display:flex}.chip{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;padding:5px 8px;font-size:11px;line-height:1;display:inline-block}.chip--accent{background:var(--accent-soft);color:var(--accent)}.chip--danger{color:var(--danger);background:#ef444424}.chip--warn{color:#f59e0b;background:#f59e0b24}.ledger__day{margin-bottom:18px}.ledger__day-header{color:var(--muted);border-bottom:1px solid var(--border);text-transform:capitalize;justify-content:space-between;padding-bottom:6px;font-size:13px;display:flex}.ledger__rows{margin:0;padding:0;list-style:none}.ledger__row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0;display:flex}.ledger__main{flex-direction:column;gap:3px;min-width:0;display:flex}.ledger__desc{font-weight:500}.ledger__meta{color:var(--muted);font-size:13px}.ledger__side{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:6px;display:flex}.ledger__chips{gap:4px;display:flex}.toolbar{flex-direction:column;gap:12px;margin-bottom:16px;display:flex}.month-nav{text-transform:capitalize;justify-content:space-between;align-items:center;gap:8px;font-weight:600;display:flex}.month-nav a{border:1px solid var(--border);background:var(--surface);border-radius:10px;place-items:center;width:36px;height:36px;font-size:20px;display:grid}.filters{grid-template-columns:1fr 1fr;gap:8px;display:grid}.filters input,.filters select{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);border-radius:10px;padding:10px 12px;font-size:15px}.filters .filters__search{grid-column:1/-1}.filters button{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;border-radius:10px;grid-column:1/-1;padding:10px}@media (min-width:768px){.toolbar{flex-direction:row;justify-content:space-between;align-items:center}.filters{grid-template-columns:2fr 1fr 1fr auto}.filters .filters__search,.filters button{grid-column:auto}}.pagination{color:var(--muted);justify-content:space-between;align-items:center;padding:12px 0;font-size:14px;display:flex}.pagination a{color:var(--accent)}.tabs{gap:6px;margin-bottom:16px;display:flex;overflow-x:auto}.tabs a{border:1px solid var(--border);background:var(--surface);white-space:nowrap;color:var(--muted);border-radius:999px;padding:8px 14px;font-size:14px}.tabs a[aria-current=page]{background:var(--accent-soft);color:var(--accent);border-color:#0000}.progress{background:var(--surface-2);border-radius:999px;height:8px;overflow:hidden}.progress__bar{background:var(--accent);border-radius:999px;height:100%}.progress__bar--danger{background:var(--danger)}.progress__bar--muted{background:var(--muted)}.progress-line{color:var(--muted);justify-content:space-between;margin-top:6px;font-size:13px;display:flex}.cards{grid-template-columns:1fr;gap:12px;display:grid}@media (min-width:768px){.cards{grid-template-columns:repeat(2,1fr)}}.bill-card{border:1px solid var(--border);background:var(--surface-2);border-radius:14px;flex-direction:column;gap:10px;padding:16px;display:flex}.bill-card__head{justify-content:space-between;align-items:center;gap:8px;display:flex}.bill-card__title{font-weight:600}.bill-card__total{letter-spacing:-.02em;font-size:24px;font-weight:700}.bill-card__meta{color:var(--muted);font-size:13px}.bars{grid-auto-columns:1fr;grid-auto-flow:column;align-items:end;gap:8px;height:140px;padding-top:8px;display:grid}.bars__item{height:100%;color:var(--muted);flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;font-size:11px;display:flex}.bars__value{color:var(--text);white-space:nowrap;font-size:11px}.bars__bar{background:var(--accent-soft);border-top:3px solid var(--accent);border-radius:8px 8px 4px 4px;width:100%;max-width:48px;min-height:3px}.bars__item--current .bars__bar{background:var(--accent)}.goal{border-top:1px solid var(--border);flex-direction:column;gap:10px;padding:14px 0;display:flex}.goal:first-child{border-top:0;padding-top:0}.goal__head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.goal__title{font-weight:600}.goal__actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.goal__actions form{align-items:center;gap:6px;display:flex}.input-sm{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;width:130px;padding:8px 10px;font-size:15px}.button-sm{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;border-radius:10px;padding:8px 12px;font-size:13px}.button-sm--accent{background:var(--accent-soft);color:var(--accent);border-color:#0000}.form--inline{grid-template-columns:1fr 1fr;gap:10px;display:grid}.form--inline .field--wide{grid-column:1/-1}.form--inline .button{grid-column:1/-1;padding:12px}@media (min-width:768px){.form--inline{grid-template-columns:2fr 1fr 1fr auto;align-items:end}.form--inline .field--wide,.form--inline .button{grid-column:auto}}.note{color:var(--muted);font-size:14px}.money--danger{color:var(--danger)}.member__link{color:var(--accent);padding-right:4px;font-size:13px}.actions{flex-wrap:wrap;gap:8px;display:flex}.notice{border:1px solid var(--border);background:var(--surface);border-radius:12px;margin-bottom:16px;padding:12px 14px;font-size:14px}.notice--ok{background:var(--accent-soft);color:var(--accent);border-color:#0000}.notice--warn{color:#f59e0b;background:#f59e0b24;border-color:#0000}.notice--error{color:var(--danger);background:#ef44441f;border-color:#0000}code{background:var(--surface-2);border-radius:6px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}.steps{flex-direction:column;gap:8px;margin:0;padding-left:20px;font-size:15px;line-height:1.45;display:flex}.page__head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.button--inline{white-space:nowrap;text-align:center;padding:10px 14px;font-size:14px;display:inline-block}.ledger__link{color:var(--text);text-decoration:underline;-webkit-text-decoration-color:var(--border);text-decoration-color:var(--border);text-underline-offset:3px}.ledger__link:hover{-webkit-text-decoration-color:var(--accent);text-decoration-color:var(--accent)}.ledger__note{color:var(--muted);font-size:13px;font-style:italic}.form-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.field select,.field textarea{border:1px solid var(--border);background:var(--surface-2);width:100%;color:var(--text);border-radius:12px;padding:12px;font-size:16px}.field input:disabled{opacity:.5}.segmented{border:0;grid-template-columns:1fr 1fr;gap:6px;margin:0;padding:0;display:grid}.segmented label{position:relative}.segmented input{opacity:0;position:absolute}.segmented span{text-align:center;border:1px solid var(--border);background:var(--surface-2);color:var(--muted);cursor:pointer;border-radius:10px;padding:10px;display:block}.segmented input:checked+span{background:var(--accent-soft);color:var(--accent);border-color:#0000;font-weight:600}.segmented input:focus-visible+span{outline:2px solid var(--accent)}.button-sm--danger{color:var(--danger);background:#ef44441f;border-color:#0000}a.button-sm{display:inline-block}.member{flex-wrap:wrap;justify-content:flex-end}.chat{flex-direction:column;gap:12px;min-height:calc(100dvh - 260px);display:flex}.chat__log{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;flex:1;gap:10px;min-height:240px;max-height:calc(100dvh - 300px);padding:16px;display:flex;overflow-y:auto}.chat__empty{flex-direction:column;gap:14px;margin:auto 0;display:flex}.chat__hello{font-size:17px}.chat__suggestions{flex-wrap:wrap;gap:8px;display:flex}.chip-button{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;border-radius:999px;padding:8px 12px;font-size:14px}.chip-button:hover{border-color:var(--accent)}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:16px;max-width:85%;padding:10px 14px;font-size:15px;line-height:1.45}.bubble--user{background:var(--accent-soft);color:var(--text);border-bottom-right-radius:4px;align-self:flex-end}.bubble--assistant{background:var(--surface-2);border-bottom-left-radius:4px;align-self:flex-start}.bubble--error{color:var(--danger);background:#ef44441f;align-self:flex-start}.bubble--thinking{color:var(--muted);font-style:italic;animation:1.4s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.45}}@media (prefers-reduced-motion:reduce){.bubble--thinking{animation:none}}.chat__composer{flex-direction:column;gap:8px;display:flex}.chat__composer textarea{border:1px solid var(--border);background:var(--surface-2);width:100%;color:var(--text);resize:vertical;border-radius:12px;padding:12px;font-size:16px}.chat__actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.chat__count{color:var(--muted);margin-right:auto;font-size:12px}.chat__count--over{color:var(--danger)}.bell{width:32px;height:32px;color:var(--text);border-radius:999px;place-items:center;display:inline-grid;position:relative}.bell svg{width:20px;height:20px}.bell:hover{background:var(--surface-2)}.bell__badge{background:var(--danger);color:#fff;text-align:center;border-radius:999px;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:700;line-height:18px;position:absolute;top:-2px;right:-4px}.notification{border-top:1px solid var(--border);flex-direction:column;gap:6px;padding:14px 0;display:flex}.notification:first-child{border-top:0;padding-top:0}.notification__head{align-items:center;gap:6px;display:flex}.notification__when{color:var(--muted);margin-left:auto;font-size:12px}.notification__title{font-weight:600}.notification__body{color:var(--muted);white-space:pre-wrap;font-size:14px;line-height:1.45}.notification form{margin-top:4px}.notification--read .notification__title{color:var(--muted);font-weight:500}.rule__pattern{letter-spacing:.02em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px}
