:root {
  --bg: #f6fbf4;
  --bg-2: #eef8eb;
  --surface: #ffffff;
  --surface-2: #f1f8ee;
  --surface-3: #e8f6e4;
  --ink: #063d31;
  --ink-2: #07523f;
  --muted: #6c7d76;
  --line: #dfece1;
  --accent: #2fd34a;
  --accent-2: #0db63f;
  --accent-3: #a6f25b;
  --accent-soft: #e9fbe8;
  --yellow: #ffc51a;
  --yellow-soft: #fff6cf;
  --warning: #f6a90c;
  --danger: #e05252;
  --blue: #148d69;
  --shadow: 0 14px 36px rgba(5,83,61,.09);
  --shadow-strong: 0 22px 52px rgba(2,75,53,.18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at top, #fbfffa 0, var(--bg) 36%, #f3f9f1 100%); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { padding-bottom: env(safe-area-inset-bottom); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; max-width: 520px; margin: 0 auto; background: linear-gradient(180deg, rgba(250,255,249,.98), rgba(246,251,244,.98)); position: relative; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 10px; background: rgba(249,253,248,.9); border-bottom: 1px solid rgba(223,236,225,.72); backdrop-filter: blur(18px); }
.brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 46px; height: 46px; border-radius: 15px; overflow: hidden; flex: 0 0 auto; background: #00533d; box-shadow: 0 8px 20px rgba(4,83,61,.18); border: 1px solid rgba(255,255,255,.75); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-name { font-size: 21px; font-weight: 950; letter-spacing: -.8px; color: var(--ink); line-height: 1; }
.brand-name .brand-dot { color: var(--accent); }
.brand-subtitle { color: var(--muted); font-size: 10.5px; margin-top: 4px; font-weight: 650; letter-spacing: -.1px; }
.icon-button { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 6px 18px rgba(5,83,61,.07); font-size: 20px; display: grid; place-items: center; }
.notification-dot { position: absolute; right: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(6,61,49,.08); }
.hidden { display: none !important; }

.main-content { padding: 8px 16px 108px; }
.page-heading { margin: 13px 2px 15px; }
.page-heading h1 { margin: 0; font-size: 28px; line-height: 1.08; letter-spacing: -1px; color: var(--ink); font-weight: 930; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.hero { background: linear-gradient(145deg, #043d31 0%, #006445 58%, #0a7d4d 100%); color: #fff; border-radius: 30px; padding: 22px; box-shadow: var(--shadow-strong); overflow: hidden; position: relative; isolation: isolate; border: 1px solid rgba(255,255,255,.08); }
.hero::before { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, rgba(166,242,91,.28) 0%, rgba(47,211,74,.07) 48%, transparent 70%); right: -68px; top: -78px; z-index: -1; }
.hero::after { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, rgba(255,197,26,.26), rgba(255,197,26,0)); left: -24px; bottom: -35px; z-index: -1; }
.hero-brandmark { position: absolute; width: 86px; height: 86px; right: 14px; top: 13px; border-radius: 24px; opacity: .24; filter: saturate(1.12); transform: rotate(5deg); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.hero-label { font-size: 11.5px; color: #c9e7db; margin-bottom: 7px; font-weight: 700; max-width: calc(100% - 86px); }
.hero-value { font-size: 36px; font-weight: 950; letter-spacing: -1.8px; position: relative; z-index: 1; }
.hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; position: relative; z-index: 1; }
.hero-stat { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 12px; backdrop-filter: blur(8px); }
.hero-stat small { color: #d4eee3; display: block; margin-bottom: 5px; font-size: 10px; line-height: 1.25; }
.hero-stat strong { font-size: 15px; letter-spacing: -.3px; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0; }
.quick-action { border: 1px solid var(--line); background: rgba(255,255,255,.96); border-radius: 20px; padding: 14px 8px 13px; color: var(--ink); box-shadow: 0 7px 22px rgba(5,83,61,.05); text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.quick-action:active { transform: scale(.97); }
.quick-action .qa-icon { width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, #e6ffe2, #dff8dc); color: var(--ink-2); font-weight: 950; font-size: 17px; box-shadow: inset 0 0 0 1px rgba(47,211,74,.12); }
.quick-action:nth-child(2) .qa-icon { background: var(--yellow-soft); color: #9c6c00; box-shadow: inset 0 0 0 1px rgba(255,197,26,.16); }
.quick-action span:last-child { display: block; font-size: 11.5px; line-height: 1.25; font-weight: 850; }

.section { margin-top: 21px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0 2px; }
.section-title h2 { margin: 0; font-size: 17px; letter-spacing: -.45px; font-weight: 900; }
.section-title button, .link-btn { border: 0; background: transparent; color: var(--blue); font-weight: 850; font-size: 11.5px; padding: 4px; }

.card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 26px rgba(5,83,61,.045); }
.card + .card { margin-top: 10px; }
.empty-state { text-align: center; padding: 27px 18px; color: var(--muted); }
.empty-icon { width: 56px; height: 56px; border-radius: 19px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--surface-2); font-size: 23px; color: var(--ink); border: 1px solid var(--line); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 5px; }

.transaction { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.transaction + .transaction { border-top: 1px solid var(--line); }
.tx-icon { flex: 0 0 auto; width: 43px; height: 43px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, var(--surface-2), #f8fcf7); color: var(--ink-2); font-weight: 900; border: 1px solid var(--line); }
.tx-main { min-width: 0; flex: 1; }
.tx-title { font-size: 13.5px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { margin-top: 4px; color: var(--muted); font-size: 10.5px; display: flex; gap: 7px; flex-wrap: wrap; }
.tx-amount { text-align: right; font-weight: 900; font-size: 13.5px; color: var(--ink); }
.tx-status { display: inline-block; margin-top: 4px; padding: 3px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 900; background: var(--accent-soft); color: #087536; }
.tx-status.planned { background: var(--yellow-soft); color: #8c6200; }

.alert-card { display: flex; align-items: flex-start; gap: 10px; background: linear-gradient(145deg, #fff9e1, #fffdf3); border: 1px solid #f6e2a0; border-radius: 19px; padding: 13px; box-shadow: 0 7px 20px rgba(153,112,0,.04); }
.alert-card + .alert-card { margin-top: 8px; }
.alert-icon { width: 35px; height: 35px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: #664600; font-weight: 950; box-shadow: 0 6px 14px rgba(255,197,26,.18); }
.alert-card strong { font-size: 12.5px; }
.alert-card p { margin: 3px 0 0; font-size: 10.5px; line-height: 1.4; color: #766027; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 0; width: min(520px, 100%); padding: 7px 8px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); align-items: end; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(18px); box-shadow: 0 -8px 24px rgba(5,83,61,.04); }
.nav-item { border: 0; background: transparent; color: #899a91; min-height: 55px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; }
.nav-item span { line-height: 1; font-weight: 800; }
.nav-item small { font-size: 9px; font-weight: 850; }
.nav-item.active { color: var(--ink); }
.nav-item.active:not(.add-nav)::after { content: ""; position: absolute; bottom: 2px; width: 17px; height: 3px; border-radius: 999px; background: var(--accent); }
.nav-item.add-nav { position: relative; top: -12px; width: 60px; height: 60px; justify-self: center; border-radius: 20px; background: linear-gradient(145deg, #064b39, #006a46); color: #fff; box-shadow: 0 12px 24px rgba(0,92,63,.25); border: 2px solid rgba(255,255,255,.9); }
.nav-item.add-nav span { color: var(--yellow); }
.nav-item.add-nav.active { box-shadow: 0 12px 28px rgba(0,92,63,.34), 0 0 0 4px rgba(47,211,74,.12); }

.form-card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 25px; padding: 16px; box-shadow: 0 8px 26px rgba(5,83,61,.05); }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 10.5px; font-weight: 850; color: #45665a; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #fbfefb; color: var(--ink); border-radius: 15px; padding: 12px 13px; outline: none; transition: .2s; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #65d979; box-shadow: 0 0 0 4px rgba(47,211,74,.10); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-btn, .secondary-btn, .danger-btn { width: 100%; border: 0; border-radius: 16px; padding: 13px 15px; font-weight: 900; transition: transform .16s ease; }
.primary-btn:active, .secondary-btn:active, .danger-btn:active { transform: scale(.985); }
.primary-btn { background: linear-gradient(135deg, #064a39, #007348); color: #fff; box-shadow: 0 8px 20px rgba(0,95,65,.16); }
.primary-btn .accent { color: var(--yellow); }
.secondary-btn { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.danger-btn { background: #fff0f0; color: var(--danger); }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.segmented { display: grid; grid-template-columns: repeat(2,1fr); background: #eaf3e8; border: 1px solid var(--line); border-radius: 15px; padding: 4px; margin-bottom: 14px; }
.segmented.three { grid-template-columns: repeat(3,1fr); }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 11px; padding: 9px 5px; font-size: 10.5px; font-weight: 900; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(5,83,61,.07); }

.chat-shell { display: flex; flex-direction: column; min-height: calc(100vh - 190px); }
.chat-hint { background: linear-gradient(145deg, #e8fbe6, #f1fff0); color: #286247; border: 1px solid #d6efd2; border-radius: 18px; padding: 12px 14px; font-size: 11.5px; line-height: 1.45; margin-bottom: 12px; }
.chat-list { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-bottom: 98px; }
.message { max-width: 88%; padding: 11px 13px; border-radius: 18px; font-size: 12.5px; line-height: 1.5; white-space: pre-line; }
.message.user { margin-left: auto; background: linear-gradient(145deg, #064a39, #006844); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 7px 18px rgba(0,88,60,.11); }
.message.bot { margin-right: auto; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: 0 5px 16px rgba(5,83,61,.04); }
.message-time { display: block; margin-top: 5px; opacity: .55; font-size: 9px; }
.confirm-card { max-width: 94%; background: var(--surface); border: 1px solid #cfe8d1; border-radius: 20px; padding: 14px; box-shadow: 0 7px 22px rgba(5,83,61,.05); }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.confirm-item { background: var(--surface-2); border-radius: 13px; padding: 9px; border: 1px solid rgba(223,236,225,.7); }
.confirm-item small { display: block; color: var(--muted); font-size: 9px; }
.confirm-item strong { font-size: 11.5px; }
.chat-composer { position: fixed; z-index: 25; bottom: calc(70px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(488px, calc(100% - 32px)); display: flex; gap: 8px; background: linear-gradient(180deg, rgba(246,251,244,0), rgba(246,251,244,.96) 30%); padding: 12px 0 8px; backdrop-filter: blur(12px); }
.chat-composer input { flex: 1; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 13px 14px; outline: none; box-shadow: 0 6px 18px rgba(5,83,61,.05); }
.chat-composer input:focus { border-color: #65d979; box-shadow: 0 0 0 4px rgba(47,211,74,.09); }
.chat-composer button { width: 49px; border: 0; border-radius: 17px; background: linear-gradient(145deg, #064a39, #006a46); color: var(--yellow); font-size: 20px; box-shadow: 0 8px 18px rgba(0,87,59,.18); }

.upload-zone { border: 1.5px dashed #aad1b0; background: linear-gradient(145deg, #f8fff6, #f3fbf1); border-radius: 21px; padding: 26px 18px; text-align: center; }
.upload-zone input { display: none; }
.upload-zone label { cursor: pointer; }
.upload-icon { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; background: linear-gradient(145deg, #e3ffdf, #d8f6d4); color: var(--ink-2); margin: 0 auto 11px; font-size: 24px; border: 1px solid #cdebc9; }
.upload-zone strong { display: block; font-size: 14px; }
.upload-zone p { color: var(--muted); font-size: 10.5px; line-height: 1.45; margin: 5px 0 0; }
.ocr-preview { width: 100%; max-height: 240px; object-fit: contain; border-radius: 18px; margin-bottom: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.progress { height: 8px; background: #e2eee1; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); transition: width .25s; }

.plan-item { display: flex; gap: 10px; align-items: center; }
.plan-item + .plan-item { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.plan-date { width: 51px; height: 51px; border-radius: 16px; background: linear-gradient(145deg, #edf8ea, #f9fcf8); display: grid; place-items: center; text-align: center; flex: 0 0 auto; border: 1px solid var(--line); }
.plan-date strong { font-size: 17px; line-height: 1; color: var(--ink); }
.plan-date small { font-size: 8.5px; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.plan-main { min-width: 0; flex: 1; }
.plan-main strong { font-size: 12.5px; display: block; }
.plan-main span { font-size: 9.5px; color: var(--muted); }
.plan-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.plan-actions strong { font-size: 12.5px; }
.mini-btn { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); padding: 6px 8px; font-size: 8.5px; font-weight: 900; }

.report-total { text-align: center; padding: 20px 10px 14px; }
.report-total small { color: var(--muted); }
.report-total strong { display: block; font-size: 31px; letter-spacing: -1.2px; margin-top: 4px; color: var(--ink); }
.bar-row { margin-top: 14px; }
.bar-head { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; margin-bottom: 6px; }
.bar-head strong { font-size: 10.5px; }
.bar-track { height: 9px; border-radius: 999px; background: #e7efe5; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #087049, #35cf4d); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.insight { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 17px; background: #f4faf2; border: 1px solid var(--line); }
.insight + .insight { margin-top: 8px; }
.insight-icon { width: 33px; height: 33px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.insight strong { font-size: 11.5px; display: block; }
.insight p { margin: 3px 0 0; font-size: 9.8px; line-height: 1.4; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: 8.5px; font-weight: 900; color: #567167; }
.month-picker { border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 7px 9px; font-size: 10.5px; font-weight: 800; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 96px; transform: translate(-50%, 20px); max-width: calc(100% - 36px); background: linear-gradient(145deg, #043d31, #006644); color: #fff; border-radius: 15px; padding: 11px 14px; font-size: 10.5px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow-strong); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(2,52,39,.5); display: flex; align-items: flex-end; justify-content: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); backdrop-filter: blur(3px); }
.modal { width: min(500px,100%); max-height: 84vh; overflow: auto; border-radius: 26px; background: #fff; padding: 18px; box-shadow: 0 25px 70px rgba(2,49,37,.26); border: 1px solid rgba(255,255,255,.7); }
.modal-handle { width: 42px; height: 4px; border-radius: 999px; background: #d8e7d8; margin: 0 auto 15px; }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal p { margin: 0 0 14px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }

@media (min-width: 700px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 32px; overflow: hidden; box-shadow: 0 26px 90px rgba(3,71,52,.14); border: 1px solid rgba(223,236,225,.75); }
  .bottom-nav { bottom: 24px; border-radius: 0 0 32px 32px; }
  .chat-composer { bottom: 104px; }
}


/* Icon system — inline SVGs, no font dependency */
.app-icon, .top-icon, .nav-icon svg { width: 21px; height: 21px; display: block; }
.top-icon { width: 20px; height: 20px; }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; }
.nav-icon svg { width: 22px; height: 22px; }
.nav-item.add-nav .nav-icon svg { width: 27px; height: 27px; }
.qa-icon .app-icon { width: 19px; height: 19px; }
.tx-icon .app-icon { width: 20px; height: 20px; }
.alert-icon .app-icon { width: 18px; height: 18px; }
.empty-icon .app-icon { width: 25px; height: 25px; }
.insight-icon .app-icon { width: 17px; height: 17px; }
.upload-icon .app-icon { width: 27px; height: 27px; }
.btn-icon { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; margin-right: 5px; color: var(--yellow); }
.chat-composer button .app-icon { width: 20px; height: 20px; margin: auto; }

/* V1.3 — monthly commitments + reminder experience */
.nudge-stack { display: grid; gap: 9px; }
.nudge-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; align-items: center; border-radius: 21px; padding: 12px; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 22px rgba(5,83,61,.05); animation: nudgeIn .36s ease both; overflow: hidden; position: relative; }
.nudge-card::after { content:""; position:absolute; width:84px; height:84px; right:-42px; top:-48px; border-radius:50%; background:rgba(47,211,74,.08); pointer-events:none; }
.nudge-card:nth-child(2) { animation-delay: .06s; }
.nudge-card:nth-child(3) { animation-delay: .12s; }
.nudge-today { background: linear-gradient(145deg,#fff9df,#fffdf5); border-color:#f4df98; }
.nudge-soon { background: linear-gradient(145deg,#f5fff2,#fbfffa); }
.nudge-capture { background: linear-gradient(145deg,#f0fbf5,#fbfffd); }
.nudge-icon { width:42px; height:42px; border-radius:14px; display:grid; place-items:center; background:var(--surface-2); color:var(--ink-2); border:1px solid var(--line); }
.nudge-today .nudge-icon { background:var(--yellow); color:#654600; border-color:rgba(153,112,0,.12); animation: softPulse 2.4s ease-in-out infinite; }
.nudge-copy { min-width:0; }
.nudge-copy strong { display:block; font-size:12.4px; line-height:1.3; }
.nudge-copy p { margin:3px 0 0; color:var(--muted); font-size:9.8px; line-height:1.38; }
.nudge-action { border:0; background:var(--ink); color:#fff; border-radius:12px; padding:8px 9px; font-size:8.6px; font-weight:900; white-space:nowrap; position:relative; z-index:1; }
.nudge-today .nudge-action { background:#765500; }
@keyframes nudgeIn { from { opacity:0; transform:translateY(8px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes softPulse { 0%,100% { transform:scale(1); box-shadow:0 0 0 0 rgba(255,197,26,.18); } 50% { transform:scale(1.04); box-shadow:0 0 0 6px rgba(255,197,26,0); } }

.icon-button.has-reminder { animation: bellWake 4s ease-in-out infinite; transform-origin:50% 20%; }
@keyframes bellWake { 0%,88%,100% { transform:rotate(0); } 91% { transform:rotate(8deg); } 94% { transform:rotate(-7deg); } 97% { transform:rotate(4deg); } }

.planning-tabs { position:sticky; top:72px; z-index:12; margin:0 0 14px; box-shadow:0 7px 18px rgba(5,83,61,.04); }
.list-footnote { margin:9px 5px 0; color:var(--muted); font-size:9.8px; line-height:1.45; text-align:center; }
.monthly-list { display:grid; gap:9px; }
.monthly-card { width:100%; display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:11px; align-items:center; background:rgba(255,255,255,.97); border:1px solid var(--line); border-radius:20px; padding:12px; box-shadow:0 7px 22px rgba(5,83,61,.045); color:var(--ink); text-align:left; }
.monthly-card-button { appearance:none; font:inherit; cursor:pointer; transition:transform .16s ease, border-color .16s ease; }
.monthly-card-button:active { transform:scale(.985); }
.monthly-card-button:hover { border-color:#c6dfc9; }
.monthly-icon { width:46px; height:46px; border-radius:15px; display:grid; place-items:center; background:linear-gradient(145deg,#eef8eb,#fbfef9); border:1px solid var(--line); color:var(--ink-2); font-weight:950; }
.installment-badge { background:linear-gradient(145deg,#e5ffdf,#f6fff3); color:#08713a; font-size:15px; letter-spacing:-.5px; }
.installment-badge small { font-size:9px; color:var(--muted); margin-left:1px; }
.monthly-copy { min-width:0; }
.monthly-copy strong { display:block; font-size:12.8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.monthly-copy span { display:block; margin-top:4px; color:var(--muted); font-size:9.5px; line-height:1.35; }
.monthly-side { display:flex; min-width:72px; flex-direction:column; gap:5px; align-items:flex-end; }
.monthly-side strong { font-size:12.2px; white-space:nowrap; }
.mini-link { border:0; background:transparent; color:var(--muted); font-size:8.5px; font-weight:850; padding:2px; }
.monthly-chevron { width:18px; height:18px; color:#7b9288; }
.icon-mini { width:27px; height:27px; padding:5px; vertical-align:middle; }
.icon-mini .app-icon { width:14px; height:14px; }

.series-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.series-head h3 { margin-bottom:4px; }
.series-head p { margin:0; }
.series-progress { height:8px; border-radius:999px; overflow:hidden; background:#e5efe3; margin:14px 0; }
.series-progress > div { height:100%; border-radius:inherit; background:linear-gradient(90deg,#087049,#35cf4d); }
.series-list { display:grid; gap:8px; margin-bottom:14px; }
.series-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:9px; align-items:center; background:var(--surface-2); border:1px solid var(--line); border-radius:15px; padding:10px; }
.series-row > div { min-width:0; }
.series-row > div strong { display:block; font-size:10.8px; text-transform:capitalize; }
.series-row > div span { display:block; color:var(--muted); font-size:8.8px; margin-top:2px; }
.series-row > strong { font-size:10.8px; }

.reminder-modal-head { display:flex; gap:11px; align-items:center; margin-bottom:13px; }
.reminder-modal-head h3, .reminder-modal-head p { margin:0; }
.reminder-modal-head p { margin-top:3px; }
.reminder-logo { width:46px; height:46px; border-radius:15px; display:grid; place-items:center; background:linear-gradient(145deg,#fff2aa,#ffd95d); color:#685000; box-shadow:0 7px 18px rgba(255,197,26,.18); }
.reminder-preview { display:grid; gap:7px; margin-bottom:12px; }
.reminder-preview-row { display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:center; padding:9px 10px; border-radius:14px; background:#f7fbf5; border:1px solid var(--line); }
.reminder-preview-row > div { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:#fff; color:var(--ink-2); }
.reminder-preview-row strong { display:block; font-size:10.5px; }
.reminder-preview-row small { display:block; font-size:8.8px; color:var(--muted); line-height:1.35; margin-top:2px; }
.settings-card { border:1px solid var(--line); border-radius:18px; overflow:hidden; background:#fff; }
.setting-row { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px; }
.setting-row + .setting-row, .setting-inline + .setting-row, .setting-row + .setting-inline { border-top:1px solid var(--line); }
.setting-row span { min-width:0; }
.setting-row strong { display:block; font-size:10.8px; }
.setting-row small { display:block; color:var(--muted); font-size:8.8px; margin-top:3px; line-height:1.35; }
.setting-row input[type=checkbox] { appearance:none; width:42px; height:24px; flex:0 0 auto; border-radius:999px; background:#dbe6dc; position:relative; transition:.2s; }
.setting-row input[type=checkbox]::after { content:""; position:absolute; width:18px; height:18px; border-radius:50%; left:3px; top:3px; background:#fff; box-shadow:0 2px 7px rgba(0,0,0,.13); transition:.2s; }
.setting-row input[type=checkbox]:checked { background:var(--accent-2); }
.setting-row input[type=checkbox]:checked::after { transform:translateX(18px); }
.setting-inline { padding:9px 12px 11px; background:#fbfefb; }
.setting-inline label { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:9.5px; color:var(--muted); font-weight:800; }
.setting-inline select, .setting-inline input { border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); padding:7px 9px; font-size:9.5px; font-weight:800; }
.notification-note { margin:11px 1px; padding:10px 11px; border-radius:14px; background:#fff9df; color:#756024; border:1px solid #f4e5a8; font-size:8.9px; line-height:1.45; }
.reminder-buttons { margin-top:9px; }
.link-close { display:block; margin:10px auto 0; border:0; background:transparent; color:var(--muted); font-size:9.5px; font-weight:850; padding:5px 10px; }

@media (max-width:390px) {
  .nudge-card { grid-template-columns:40px minmax(0,1fr); }
  .nudge-action { grid-column:2; justify-self:start; margin-top:-3px; }
  .monthly-card { grid-template-columns:43px minmax(0,1fr) auto; gap:8px; padding:10px; }
  .monthly-icon { width:43px; height:43px; }
  .monthly-side { min-width:64px; }
}
