:root {
  --ink: #171d1a;
  --ink-2: #35413b;
  --muted: #68736d;
  --lime: #c6f135;
  --lime-a: #c6f135;
  --lime-strong: #8fc71f;
  --lime-soft: #f0fbd6;
  --lime-b: #8fc71f;
  --leaf: #4c7a14;
  --cream: #f6f9ee;
  --canvas: #f1f4ef;
  --surface: #ffffff;
  --line: #dfe5df;
  --warning: #b25a00;
  --warning-soft: #fff1da;
  --danger: #b3261e;
  --shadow: 0 18px 50px rgba(23, 29, 26, .09);
  --radius-lg: 24px;
  --radius-md: 18px;
  --tap: 48px;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 32px 24px; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 29px; font-weight: 760; letter-spacing: -.05em; }
.brand > span:last-child > span { color: var(--lime-strong); }
.lime-mark { width: 38px; height: 38px; flex-shrink: 0; }
.pronunciation { color: #9ba69f; font-size: 12px; line-height: 1.4; margin: 12px 0 28px 50px; }
.desktop-nav { display: grid; gap: 6px; }
.nav-button { width: 100%; min-height: var(--tap); border: 0; border-radius: 14px; padding: 0 14px; display: flex; align-items: center; gap: 12px; color: #aeb8b2; background: transparent; text-align: left; font-weight: 650; }
.nav-button:hover { background: #252d29; color: #fff; }
.nav-button.active { color: var(--ink); background: var(--lime); }
.sidebar-note { margin-top: auto; padding: 16px; border: 1px solid #37413b; border-radius: 16px; display: flex; gap: 10px; color: #aeb8b2; font-size: 12px; line-height: 1.5; }
.sidebar-note p { margin: 0; }.sidebar-note strong { color: #fff; }.lime-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(184,245,46,.12); flex: none; }

main { min-width: 0; }
.topbar { padding: 28px clamp(20px, 4vw, 56px) 18px; display: flex; align-items: center; justify-content: space-between; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; line-height: 1; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 16px; }
.icon-button { position: relative; width: var(--tap); height: var(--tap); display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
.icon-button:hover { border-color: var(--ink); }.icon-button:active, .primary-button:active, .secondary-button:active, .nav-button:active { opacity: .72; }
.notification-dot { position: absolute; top: 9px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-strong); border: 2px solid white; }
.page-content { max-width: 1180px; padding: 0 clamp(20px, 4vw, 56px) 60px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.spend-card { position: relative; min-height: 302px; padding: clamp(24px, 4vw, 40px); border-radius: 30px; color: white; background: var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.spend-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -68px; bottom: -78px; border-radius: 50%; background: conic-gradient(var(--lime) 0 62%, transparent 62% 65%, rgba(255,255,255,.11) 65% 100%); border: 1px solid rgba(255,255,255,.12); transform: rotate(-24deg); }
.spend-card > * { position: relative; z-index: 1; }
.spend-label { margin: 0; color: #bac3bd; font-size: 14px; font-weight: 650; }
.big-money { margin: 9px 0 6px; font-size: clamp(46px, 7vw, 76px); font-weight: 760; line-height: .95; letter-spacing: -.065em; }
.spend-caption { max-width: 420px; margin: 0; color: #d9dfdb; line-height: 1.45; }
.spend-meta { display: flex; gap: 24px; margin-top: 30px; }
.spend-meta div { display: grid; gap: 4px; }.spend-meta strong { font-size: 20px; }.spend-meta span { color: #9eaaa3; font-size: 12px; }
.ask-card { padding: 28px; border-radius: 30px; background: var(--lime); display: flex; flex-direction: column; justify-content: space-between; }
.ask-card h2 { max-width: none; margin-top: 26px; font-size: clamp(28px, 3vw, 36px); line-height: 1; overflow-wrap: normal; }
.ask-card p { color: #35431b; line-height: 1.4; }
.primary-button, .secondary-button { min-height: var(--tap); border-radius: 14px; border: 0; padding: 0 18px; font-weight: 760; }
.primary-button { background: var(--ink); color: white; }.secondary-button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.ask-card .primary-button { width: 100%; }

.section-heading { margin: 30px 0 14px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.text-button { min-height: 44px; border: 0; background: transparent; color: var(--ink-2); font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card, .panel, .list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.metric-card { padding: 18px; }
.metric-card span { color: var(--muted); font-size: 12px; }.metric-card strong { display: block; margin-top: 7px; font-size: 23px; letter-spacing: -.03em; }.metric-card small { display: block; margin-top: 6px; color: var(--muted); }
.metric-card.accent { background: var(--lime-soft); border-color: #d8f692; }
.lower-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }
.panel { padding: 22px; }
.timeline { display: grid; gap: 18px; margin-top: 20px; }
.timeline-row { display: grid; grid-template-columns: 54px 12px 1fr auto; align-items: center; gap: 10px; }
.timeline-date { color: var(--muted); font-size: 12px; }.timeline-node { width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); box-shadow: 0 0 0 4px var(--canvas); }.timeline-row:not(:last-child) .timeline-node::after { content: ""; display: block; width: 2px; height: 45px; margin: 8px 0 0 1px; background: var(--line); }
.timeline-row strong { font-size: 13px; }.timeline-row small { display: block; color: var(--muted); margin-top: 2px; }.negative { color: var(--danger); }.positive { color: #467000; }
.progress-list { display: grid; gap: 20px; margin-top: 20px; }.progress-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }.progress-track { height: 8px; margin-top: 8px; border-radius: 99px; background: #e9ede9; overflow: hidden; }.progress-fill { height: 100%; border-radius: inherit; background: var(--lime-strong); }

.stack { display: grid; gap: 12px; }.list-card { padding: 6px; }.list-row { min-height: 70px; padding: 10px 12px; display: grid; grid-template-columns: 44px 1fr auto 24px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }.list-row:last-child { border-bottom: 0; }.category-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--lime-soft); display: grid; place-items: center; font-size: 12px; font-weight: 800; }.list-row p { margin: 0; font-weight: 700; }.list-row small { color: var(--muted); }.list-row .amount { font-weight: 750; }
.empty-page { max-width: 740px; }.empty-page .panel { margin-top: 20px; }.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.feature-card { padding: 20px; min-height: 150px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }.feature-card strong { font-size: 26px; display: block; margin-top: 18px; }.feature-card p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }

.bottom-nav { display: none; }
.sheet { width: min(520px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 28px; box-shadow: var(--shadow); color: var(--ink); }
.sheet::backdrop { background: rgba(10,15,12,.62); backdrop-filter: blur(3px); }
.sheet form { padding: 26px; }.sheet-handle { display: none; }.sheet-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }.sheet label { display: block; margin: 18px 0 7px; color: var(--ink-2); font-size: 13px; font-weight: 700; }.sheet input { width: 100%; height: 52px; padding: 0 14px; color: var(--ink); border: 1px solid #bdc7c0; border-radius: 13px; outline: none; }.sheet input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(143,209,13,.3); }.money-input { position: relative; }.money-input span { position: absolute; left: 15px; top: 15px; font-weight: 800; }.money-input input { padding-left: 36px; font-size: 19px; font-weight: 750; }.sheet .primary-button { width: 100%; margin-top: 24px; }.result { padding: 20px; border-radius: 20px; background: var(--lime-soft); }.result-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 99px; background: var(--lime); font-size: 12px; font-weight: 800; }.result h3 { margin-top: 18px; font-size: 25px; }.result p { color: var(--ink-2); line-height: 1.5; }.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }.impact-grid div { padding: 13px; border-radius: 14px; background: white; }.impact-grid span { display: block; color: var(--muted); font-size: 11px; }.impact-grid strong { display: block; margin-top: 4px; }.result-actions { display: flex; gap: 10px; }.result-actions button { flex: 1; }

.sheet select { width: 100%; height: 52px; padding: 0 14px; color: var(--ink); background: var(--surface); border: 1px solid #bdc7c0; border-radius: 13px; outline: none; }
.sheet select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(143,209,13,.3); }

.public-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); }
.public-card { width: min(420px, 100%); background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow); }
.public-brand { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 760; letter-spacing: -.05em; color: var(--ink); }
.public-brand .lime-mark { width: 40px; height: 40px; }
.public-brand > span > span { color: var(--lime-strong); }
.public-tagline { margin: 16px 0 26px; color: var(--muted); line-height: 1.5; }
.public-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--canvas); border-radius: 14px; margin-bottom: 22px; }
.public-tab { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 700; }
.public-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(23,29,26,.08); }
.public-form label { display: block; margin: 14px 0 7px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.public-form label:first-child { margin-top: 0; }
.public-form input { width: 100%; height: 50px; padding: 0 14px; color: var(--ink); border: 1px solid #bdc7c0; border-radius: 13px; outline: none; }
.public-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(143,209,13,.3); }
.public-form .primary-button { width: 100%; margin-top: 22px; }
.public-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff1da; color: var(--warning); font-size: 13px; font-weight: 650; }
.public-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: var(--muted); font-size: 12px; }
.public-divider::before, .public-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.public-sso-button { width: 100%; }

:focus-visible { outline: 3px solid var(--lime-strong); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .page-content { animation: enter .28s ease-out; } @keyframes enter { from { opacity: 0; transform: translateY(6px); } } }
@media (max-width: 860px) {
  .app-shell { display: block; }.sidebar { display: none; }.topbar { padding-top: max(22px, env(safe-area-inset-top)); }.page-content { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }.bottom-nav { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); min-height: 68px; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: rgba(23,29,26,.96); display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: 0 16px 40px rgba(0,0,0,.24); }.bottom-nav .nav-button { min-width: 0; min-height: 56px; padding: 5px; justify-content: center; flex-direction: column; gap: 3px; font-size: 10px; border-radius: 16px; }.bottom-nav .nav-button svg { width: 20px; height: 20px; }.hero-grid { grid-template-columns: 1fr; }.ask-card { min-height: 220px; }.ask-card h2 { margin-top: 18px; }.metric-grid { grid-template-columns: 1fr 1fr; }.lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar, .page-content { padding-left: 16px; padding-right: 16px; }.topbar { padding-bottom: 14px; }.spend-card { min-height: 282px; padding: 24px; border-radius: 25px; }.spend-card::after { width: 200px; height: 200px; }.big-money { font-size: 52px; }.spend-meta { gap: 15px; }.ask-card { padding: 24px; border-radius: 25px; }.metric-card { padding: 15px; }.metric-card strong { font-size: 20px; }.feature-grid { grid-template-columns: 1fr; }.sheet { position: fixed; width: 100%; max-width: none; margin: auto 0 0; border-radius: 28px 28px 0 0; }.sheet form { padding: 12px 20px max(24px, env(safe-area-inset-bottom)); }.sheet-handle { display: block; width: 42px; height: 5px; margin: 0 auto 17px; border-radius: 99px; background: #c8ceca; }
}
@media (max-width: 375px) { .metric-grid { grid-template-columns: 1fr; }.spend-meta { flex-direction: column; gap: 10px; }.bottom-nav { left: 6px; right: 6px; }.bottom-nav .nav-button { font-size: 9px; } }
@media (orientation: landscape) and (max-height: 520px) { .bottom-nav { position: sticky; bottom: 0; }.page-content { padding-bottom: 28px; }.sheet { max-height: 96vh; overflow: auto; } }
