:root {
  --ink: #17251f;
  --muted: #758078;
  --cream: #f7f4ed;
  --paper: #fffef9;
  --line: #e3e1d8;
  --green: #174e3a;
  --lime: #c7f35a;
  --orange: #f58a49;
  --shadow: 0 12px 32px rgba(31, 50, 41, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #deddd7; font-family: "DM Sans", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100%, 520px); min-height: 100vh; margin: auto; background: var(--cream); position: relative; padding-bottom: 94px; box-shadow: 0 0 70px rgba(0,0,0,.1); }
.topbar { min-height: 168px; padding: 18px 24px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 14px; }
.topbar h1 { font: 800 26px/1 "Manrope"; margin: 4px 0 0; }
.header-brand { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; text-align: center; }.header-brand > a { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; background: #edf3f7; border-radius: 15px; }.header-brand img { width: 48px; height: 48px; object-fit: contain; }.header-brand .eyebrow { display: none; }
.eyebrow, .label { color: var(--green); font-weight: 800; font-size: 10px; letter-spacing: .16em; margin: 0; }
.avatar { grid-column: 3; justify-self: end; align-self: start; margin-top: 8px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--green); color: white; font-weight: 800; }
main { padding: 0 20px; }
.screen { display: none; animation: enter .25s ease; }
.screen.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.date-row { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; margin: 4px 0 16px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--paper); border-radius: 13px; color: var(--ink); }
.date-picker-button { border: 0; background: transparent; display: grid; gap: 2px; font-weight: 700; }
.date-picker-button small { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.progress-card { background: var(--green); color: white; border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }
.progress-copy { display: flex; align-items: center; gap: 16px; }
.progress-copy .label { color: var(--lime); }
.progress-copy h2 { margin: 5px 0 2px; font: 700 19px "Manrope"; }
.progress-copy p:last-child { margin: 0; color: #cbd9d3; font-size: 13px; }
.progress-ring { --value: 0deg; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lime) var(--value), rgba(255,255,255,.14) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--green); }
.progress-ring strong { z-index: 1; font: 800 14px "Manrope"; }
.streak { display: inline-block; margin-top: 17px; padding: 7px 11px; background: rgba(255,255,255,.09); border-radius: 20px; font-size: 12px; color: #deebe5; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 28px 2px 14px; gap: 12px; }
.section-heading h2 { font: 800 21px "Manrope"; margin: 4px 0 0; }
.count-badge { font: 700 11px "DM Sans"; background: #e5e7df; padding: 4px 8px; border-radius: 10px; color: var(--muted); vertical-align: middle; }
.primary { border: 0; border-radius: 14px; background: var(--green); color: white; font-weight: 700; }
.primary.small { padding: 11px 14px; font-size: 12px; white-space: nowrap; }
.primary.full { width: 100%; padding: 15px; margin-top: 5px; }
.task-list { display: grid; gap: 12px; }
.task-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 5px 18px rgba(37,52,45,.04); }
.task-main { display: grid; grid-template-columns: 24px 30px 1fr auto; gap: 8px; align-items: center; padding: 17px 12px; }
.drag-handle { border: 0; background: transparent; color: #a2a8a3; font-size: 18px; padding: 8px 2px; cursor: grab; touch-action: none; }.drag-handle:active { cursor: grabbing; }.task-card.dragging { opacity: .52; transform: scale(.985); }.task-card.drag-over { box-shadow: 0 -3px 0 var(--orange), var(--shadow); }
.check { width: 26px; height: 26px; border: 2px solid #bac0ba; background: transparent; border-radius: 9px; color: white; font-weight: 900; }
.check.checked { background: var(--green); border-color: var(--green); }
.task-title { font-weight: 700; font-size: 15px; }
.task-move-row { border-top: 1px solid #eeece5; padding: 9px 14px 11px; text-align: right; }.task-move-row button { border: 0; background: transparent; color: var(--green); padding: 5px 2px; font-size: 11px; font-weight: 800; }
.task-title.done, .subtask-text.done { text-decoration: line-through; color: #9ba29d; }
.task-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.task-actions { display: flex; align-items: center; }.more-button { border: 0; background: transparent; color: var(--muted); font-size: 18px; padding: 7px; }.edit-button { font-size: 14px; color: var(--green); }
.subtasks { border-top: 1px solid #eeece5; padding: 8px 15px 13px 74px; display: grid; gap: 2px; }
.subtask-row { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: center; padding: 7px 0; }
.subtask-row .check { width: 20px; height: 20px; border-radius: 7px; font-size: 10px; }
.subtask-text { font-size: 13px; }
.carryover-banner { background: #fff0e4; color: #8b4e27; border: 1px solid #f4d2b9; border-radius: 15px; padding: 11px 13px; margin-bottom: 12px; font-size: 12px; }
.carry-tomorrow-button { width: 100%; border: 1px solid #cbd8cf; background: #eef4ef; color: var(--green); border-radius: 14px; padding: 11px 13px; margin: 0 0 12px; font-size: 11px; font-weight: 800; }
.hidden { display: none !important; }
.empty-state { text-align: center; padding: 38px 20px; color: var(--muted); }
.empty-state span { display: grid; place-items: center; margin: auto; width: 50px; height: 50px; border-radius: 50%; background: #e4ebdf; color: var(--green); font-size: 22px; }
.empty-state h3 { color: var(--ink); margin-bottom: 5px; }
.empty-state p { margin: 0; font-size: 13px; }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); height: 78px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,254,249,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-item { border: 0; background: transparent; color: #8f9691; display: grid; place-content: center; gap: 5px; }
.nav-item span { font-size: 20px; font-weight: 700; }
.nav-item small { font-size: 10px; font-weight: 700; }
.nav-item.active { color: var(--green); }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 16px; }
.calendar-head h2 { font: 800 20px "Manrope"; }
.calendar-card { background: var(--paper); border: 1px solid var(--line); padding: 16px 12px; border-radius: 22px; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.weekday-row { color: var(--muted); font-size: 9px; font-weight: 800; margin-bottom: 8px; }
.calendar-day { aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%; position: relative; color: var(--ink); font-size: 12px; }
.calendar-day.outside { color: #c5c8c4; }
.calendar-day.selected { background: var(--green); color: white; font-weight: 800; }
.calendar-day.today:not(.selected) { box-shadow: inset 0 0 0 1px var(--green); }
.calendar-day .mini-dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); bottom: 4px; left: calc(50% - 2px); }
.calendar-day.complete .mini-dot { background: var(--lime); }
.legend { display: flex; justify-content: center; gap: 18px; font-size: 10px; color: var(--muted); margin-top: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }.task-dot { background: var(--orange); }.done-dot { background: #82aa37; }
.compact-task-list { display: grid; gap: 8px; }
.compact-task { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; display: flex; justify-content: space-between; }
.balance-card { margin-top: 12px; background: linear-gradient(145deg, #184c3a, #0d3829); color: white; padding: 26px 23px; border-radius: 26px; box-shadow: var(--shadow); }
.balance-card span, .balance-card small { color: #c5d5ce; font-size: 12px; }
.balance-card h2 { margin: 8px 0 10px; font: 800 34px "Manrope"; }
.account-list, .reminder-list { display: grid; gap: 10px; }
.account-card, .reminder-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 15px; display: flex; align-items: center; gap: 13px; }.account-card { flex-wrap: wrap; cursor: pointer; }.account-card.dragging { opacity: .52; transform: scale(.985); }.account-card.drag-over { box-shadow: 0 -3px 0 var(--orange), var(--shadow); }.account-drag-handle { margin-left: -7px; flex: 0 0 20px; }.account-chevron { color: var(--muted); font-size: 12px; transition: .2s; }.account-card.expanded .account-chevron { transform: rotate(180deg); }.account-tools { width: 100%; display: flex; justify-content: flex-end; gap: 7px; margin-top: -3px; }.account-tool { border: 1px solid var(--line); background: #f8f7f2; color: var(--green); border-radius: 10px; padding: 7px 10px; font-size: 10px; font-weight: 700; }.transaction-ledger { width: calc(100% + 30px); margin: 0 -15px -15px; padding: 5px 15px 12px 55px; border-top: 1px solid var(--line); }.transaction-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 0; border-bottom: 1px solid #efeee8; }.transaction-row:last-child { border-bottom: 0; }.transaction-detail { font-size: 12px; font-weight: 600; }.transaction-date { font-size: 10px; color: var(--muted); }.transaction-amount { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 800 12px "Manrope"; }.transaction-amount.in { color: #268157; }.transaction-amount.out { color: #c8583e; }.ledger-empty { color: var(--muted); font-size: 11px; padding: 12px 0 4px; }
.account-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #e8efe8; color: var(--green); border-radius: 13px; font-weight: 800; }
.account-info, .reminder-info { flex: 1; }.account-info b, .reminder-info b { display: block; font-size: 13px; }.account-info small, .reminder-info small { color: var(--muted); font-size: 11px; }
.account-balance { font: 800 14px "Manrope"; }
.cash-note { display: flex; gap: 12px; background: #fff4d7; border-radius: 16px; padding: 13px; margin-top: 18px; color: #74613c; font-size: 11px; }.cash-note p { margin: 0; }
.reminder-hero { display: flex; align-items: center; gap: 16px; background: #e7efdf; border-radius: 22px; padding: 20px; margin-top: 12px; }.reminder-hero .bell { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; background: var(--lime); border-radius: 17px; font-size: 26px; }.reminder-hero h2 { margin: 0 0 4px; font: 800 19px "Manrope"; }.reminder-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.toggle { width: 42px; height: 24px; border: 0; border-radius: 20px; background: #d5d7d3; padding: 3px; }.toggle::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: white; transition: .2s; }.toggle.on { background: var(--green); }.toggle.on::before { transform: translateX(18px); }
.reminder-card.dragging { opacity: .52; transform: scale(.985); }.reminder-card.drag-over { box-shadow: 0 -3px 0 var(--orange), var(--shadow); }.reminder-drag-handle { margin-left: -7px; flex: 0 0 20px; }
.permission-note { text-align: center; color: var(--muted); font-size: 10px; padding: 18px; }
.venture-footer { margin: 34px 0 12px; padding: 22px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; }.venture-footer > a { width: 58px; height: 62px; display: grid; place-items: center; }.venture-footer img { width: 54px; height: 59px; object-fit: contain; }.venture-footer b { display: block; color: var(--ink); font: 700 12px "Manrope"; }.venture-footer small { display: block; margin-top: 3px; font-size: 9px; }.venture-footer p { text-align: center; margin: 5px 0 0; font-size: 8px; letter-spacing: .04em; }
dialog { width: min(calc(100% - 32px), 460px); border: 0; border-radius: 26px; padding: 0; color: var(--ink); box-shadow: 0 30px 80px rgba(20,35,28,.25); }dialog::backdrop { background: rgba(18,31,25,.54); backdrop-filter: blur(3px); }dialog form { padding: 24px; }.dialog-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 20px; }.dialog-head h2 { margin: 4px 0 0; font: 800 23px "Manrope"; }.close-button { border: 0; background: #f0f0ec; width: 36px; height: 36px; border-radius: 12px; font-size: 22px; }label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; margin-bottom: 15px; }label small { color: var(--muted); font-weight: 400; }input, textarea, select { width: 100%; border: 1px solid #d9d9d2; background: #faf9f5; border-radius: 13px; padding: 13px; outline: none; color: var(--ink); }input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,78,58,.1); }textarea { resize: vertical; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 92px; transform: translate(-50%, 20px); background: var(--ink); color: white; border-radius: 12px; padding: 10px 15px; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 700px) { body { padding: 24px 0; }.app-shell { min-height: calc(100vh - 48px); border-radius: 34px; overflow: hidden; }.bottom-nav { bottom: 24px; border-radius: 0 0 34px 34px; } }
@media (max-width: 390px) { .topbar { min-height: 162px; padding-inline: 16px; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 8px; }.header-brand { gap: 6px; }.header-brand > a { flex-basis: 54px; width: 54px; height: 54px; }.header-brand img { width: 44px; height: 44px; }.topbar h1 { font-size: 23px; }.cloud-status { max-width: 210px; overflow-wrap: anywhere; } }
.secondary { border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); font-weight: 700; }.secondary.full { width: 100%; padding: 14px; margin-top: 9px; }
.security-explainer { display: flex; gap: 13px; align-items: center; background: #eef3e9; padding: 15px; border-radius: 16px; font-size: 12px; color: var(--muted); }.security-explainer span { font-size: 25px; }.security-explainer p { margin: 0; }.security-explainer b { color: var(--ink); }.security-status { min-height: 18px; font-size: 11px; color: var(--muted); }
.lock-screen { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 32px; background: var(--green); color: white; }.lock-screen .lock-mark { width: 78px; height: 78px; display: grid; place-items: center; background: var(--lime); color: var(--green); border-radius: 24px; font: 800 25px "Manrope"; margin-bottom: 20px; }.lock-screen .eyebrow { color: var(--lime); }.lock-screen h2 { font: 800 26px "Manrope"; margin: 8px 0; }.lock-screen p:not(.eyebrow) { color: #cfddd7; max-width: 290px; margin: 0 0 24px; }.lock-screen .primary { background: var(--lime); color: var(--green); padding: 15px 20px; }.lock-screen small { margin-top: 15px; color: #f7b58c; max-width: 310px; }
.cloud-status { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.cloud-auth-screen { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; background: linear-gradient(150deg, #f8f4eb, #e9f2ea); }
.cloud-auth-screen.hidden { display: none; }
.cloud-auth-screen img { width: min(260px, 72vw); height: auto; margin-bottom: 10px; }
.cloud-auth-screen h2 { max-width: 420px; margin: 0; }
.cloud-auth-screen > p:not(.eyebrow), .cloud-auth-screen small { max-width: 440px; color: var(--muted); }
.cloud-auth-screen .primary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 220px; }
