:root {
  --bg: #fff;
  --paper: #fff;
  --ink: #202124;
  --body: #303438;
  --muted: #737780;
  --green: #03c75a;
  --green-dark: #008b40;
  --line: #e3e5e8;
  --mint: #effbf4;
  --orange: #c46a16;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--body);
  background: var(--bg);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; letter-spacing: -.35px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: none; transition: background .15s, border-color .15s, color .15s; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select, a { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #03a94d; }
input, textarea, select { min-width: 0; color: var(--ink); }
input[type=number] { appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=month], input[type=date] { color-scheme: light; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: 27px; line-height: 1.4; font-weight: 750; letter-spacing: -1px; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -.65px; }
h3 { font-size: 16px; }
.icon { width: 21px; height: 21px; flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -70px; background: var(--green-dark); color: #fff; padding: 12px 24px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.full-width { width: 100%; }

/* Search-centered portal header. */
.portal-header { background: #fff; border-bottom: 1px solid #eef0f2; padding: 0 24px 24px; }
.portal-utility { max-width: 1280px; height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 29px; font-weight: 850; letter-spacing: -1.8px; line-height: 1.3; color: var(--green); white-space: nowrap; }
.brand-symbol { display: inline-flex; width: 39px; height: 42px; align-items: center; justify-content: center; color: var(--green); flex: none; }
.brand-symbol .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.brand-dot { color: var(--green); }
.portal-utility-actions { display: flex; align-items: center; gap: 11px; }
.device-chip { display: inline-flex; align-items: center; gap: 5px; color: #626770; font-size: 12px; white-space: nowrap; }
.device-chip .icon { width: 16px; height: 16px; color: var(--green-dark); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 9px; border-radius: 50%; color: #555b63; flex: none; }
.icon-button > .icon { width: 26px; height: 26px; stroke-width: 1.9; }
.icon-button:hover { background: #f1f3f5; }
.avatar { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #f6f7f8; font-size: 13px; font-weight: 700; }
.portal-search-area { max-width: 720px; margin: 10px auto 24px; }
.portal-search-caption { text-align: center; margin-top: 10px; color: #92999a; font-size: 12px; }
.portal-search-caption strong { color: #079746; font-weight: 650; }
.portal-search { min-height: 62px; display: flex; align-items: center; gap: 15px; padding: 0 18px 0 23px; border: 2px solid var(--green); border-radius: 34px; background: #fff; }
.portal-search:focus-within { box-shadow: 0 0 0 3px #03c75a12; }
.portal-search-mark { display: flex; flex: none; color: var(--green); align-items: center; }
.portal-search-mark .icon, .portal-search > .icon { width: 31px; height: 31px; color: var(--green); stroke-width: 2.6; }
.portal-search input { width: 100%; flex: 1; border: 0; outline: 0; background: transparent; padding: 12px 0; font-size: 18px; font-weight: 500; }
.portal-search input::placeholder { color: #92979d; font-weight: 400; }
.portal-search-button { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--green); flex: none; padding: 6px; }
.portal-search-button .icon { width: 28px; height: 28px; stroke-width: 2.3; }
.portal-shortcuts { display: flex; align-items: flex-start; justify-content: center; gap: 12px; max-width: 940px; margin: 0 auto; }
.nav-item, .category-shortcut, .shortcut-settings { display: flex; align-items: center; flex-direction: column; justify-content: flex-start; gap: 8px; position: relative; padding: 0 3px; min-width: 70px; color: #33373e; font-size: 13px; text-align: center; white-space: nowrap; }
.portal-shortcuts .nav-item > .icon, .portal-shortcuts .category-shortcut > .icon, .shortcut-settings > .icon, .portal-shortcuts .category-icon { display: block; width: 60px; height: 60px; padding: 11px; border: 1px solid #e8ebed; background: #fff; border-radius: 18px; color: var(--green); box-shadow: 0 2px 3px #17232405; }
.portal-shortcuts .icon { stroke-width: 2; }
.portal-shortcuts .nav-item.active > .icon { border-color: #90e4b6; background: #effbf4; }
.portal-shortcuts .nav-item.active { font-weight: 700; color: #161c18; }
.portal-shortcuts .nav-item:hover > .icon, .category-shortcut:hover > .icon, .shortcut-settings:hover > .icon, .category-shortcut:hover .category-icon { background: #f7f9fa; border-color: #c9cfd5; }
.portal-shortcuts .nav-item[data-view=records] > .icon { color: #178ad5; }
.portal-shortcuts .nav-item[data-view=reminders] > .icon { color: #f09b22; }
.portal-shortcuts .nav-item[data-view=report] > .icon { color: #8b64d8; }
.portal-shortcuts .category-shortcut[data-category=cat] > .icon { color: #ef9644; }
.portal-shortcuts .category-shortcut[data-category=dog] > .icon { color: #4ca764; }
.portal-shortcuts .category-shortcut[data-category=clothes] > .icon { color: #ad69d0; }
.portal-shortcuts .category-shortcut[data-category=life] > .icon { color: #2b9db8; }
.shortcut-settings > .icon { color: #787f89; }
.portal-shortcuts .category-icon > .icon { width: 36px; height: 36px; }
.nav-count { position: absolute; top: -4px; right: 8px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; color: #fff; background: #eb644f; font-size: 11px; line-height: 1; font-weight: 700; }
.mobile-nav { display: none; }
.app-body { background: #fff; }
.main-content { max-width: 1328px; margin: 0 auto; padding: 24px 24px 0; }
.portal-page-tabs { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; padding: 0 0 13px; font-size: 15px; font-weight: 650; }
.portal-page-tabs button { padding: 2px 0; color: #737982; }
.portal-page-tabs button.active { color: var(--green-dark); }
.portal-page-tabs .nav-item { min-width: 0; flex-direction: row; }
.portal-page-tabs .nav-item > .icon { display: none; }
.portal-page-tabs .nav-count { position: static; margin-left: 2px; }
.demo-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 16px; margin-bottom: 24px; border: 1px solid #d7eadf; border-radius: 6px; background: #f6fcf8; color: #4d6656; font-size: 12px; }
.demo-tag { display: inline-block; padding: 1px 6px; margin-right: 8px; border-radius: 4px; color: #087e3d; background: #e2f6e9; font-size: 11px; font-weight: 700; }
.demo-banner button { display: flex; align-items: center; gap: 7px; color: #098841; font-size: 12px; font-weight: 700; white-space: nowrap; }
.demo-banner button .icon { width: 15px; height: 15px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow { font-size: 11px; color: #148748; font-weight: 700; letter-spacing: .9px; margin-bottom: 7px; }
.page-subtitle { color: #72767c; font-size: 14px; line-height: 1.8; margin-top: 6px; word-break: keep-all; }
.heading-spark { display: inline-block; color: var(--green); font-size: 23px; margin-left: 10px; font-weight: 500; }
.primary-button, .dark-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; border-radius: 6px; padding: 10px 17px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.primary-button, .dark-button { background: var(--green); color: #fff; }
.primary-button:hover, .dark-button:hover { background: #02b650; }
.secondary-button { border: 1px solid #d9dce1; background: #fff; color: #404750; }
.secondary-button:hover { background: #f6f8fa; border-color: #c6ccd2; }
.primary-button .icon, .dark-button .icon, .secondary-button .icon { width: 22px; height: 22px; }
.heading-add { margin-top: 5px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 24px; }
.main-column, .side-column { display: flex; flex-direction: column; min-width: 0; gap: 24px; }
.panel, .quick-card, .month-overview, .reminder-highlight { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: 22px; }
.quick-card { padding: 24px; position: relative; overflow: hidden; background: linear-gradient(105deg, #f6fcf8, #fff 77%); }
.quick-content { position: relative; z-index: 1; }
.section-kicker { display: flex; align-items: center; gap: 6px; color: #098b42; font-size: 12px; font-weight: 600; }
.section-kicker .icon { width: 16px; height: 16px; }
.quick-card h2 { font-size: 25px; margin: 10px 0 4px; font-weight: 750; letter-spacing: -.9px; }
.quick-card .quick-content > p { color: #737b76; font-size: 13px; }
.quick-card form { position: relative; margin-top: 22px; border: 1px solid #d5e2da; background: #fff; border-radius: 6px; overflow: hidden; }
.quick-card form:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.quick-card textarea { display: block; border: 0; outline: 0; resize: none; width: 100%; min-height: 80px; padding: 16px 16px 5px; background: transparent; font-size: 15px; line-height: 1.8; }
.quick-card textarea::placeholder { color: #8c9690; }
.quick-input-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px 12px 16px; }
.quick-input-footer > span { display: flex; align-items: center; gap: 4px; color: #747f78; font-size: 11px; }
.quick-input-footer > span > .icon { width: 13px; height: 13px; color: #19a358; }
.quick-input-footer .primary-button { min-height: 37px; padding: 8px 13px; font-size: 13px; }
.quick-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 13px; font-size: 11px; }
.quick-examples > span { color: #7b827c; margin-right: 3px; }
.quick-examples button { font-size: 11px; padding: 3px 8px; border: 1px solid #e0e9e3; border-radius: 4px; background: #fff; color: #576b5d; }
.quick-examples button:hover { background: #ebf8f0; }
.receipt-art { display: none; }
.month-overview { padding: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.soft-count { font-size: 12px; font-weight: 500; color: #078e41; background: #edfaf2; padding: 0 6px; border-radius: 4px; letter-spacing: 0; white-space: nowrap; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 0; font-size: 12px; color: #737982; white-space: nowrap; }
.text-button:hover { color: var(--green-dark); text-decoration: underline; }
.text-button .icon { width: 14px; height: 14px; }
.category-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.category-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; position: relative; min-width: 0; padding: 8px 14px; border-right: 1px solid #eef0f2; }
.category-card:first-child { padding-left: 0; }
.category-card:last-child { border-right: 0; padding-right: 0; }
.category-card:hover { background: #fafcfb; }
.category-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: #f2f4f6; color: #6b7480; }
.category-icon > .icon { width: 23px; height: 23px; }
.category-icon.cat { background: #fff2e3; color: #ce8131; }
.category-icon.dog { background: #ecf8e9; color: #479949; }
.category-icon.clothes { background: #f3edfc; color: #9d6bc5; }
.category-icon.life { background: #eaf5fd; color: #4097c4; }
.category-icon.other { background: #f1f3f5; color: #7a828b; }
.category-card .category-icon { width: 36px; height: 36px; border-radius: 9px; }
.category-card .category-icon > .icon { width: 22px; height: 22px; }
.category-card-label { margin: 10px 0 2px; font-size: 13px; color: #5b6268; }
.category-card strong { font-size: 23px; font-weight: 750; letter-spacing: -.8px; color: #242c27; max-width: 100%; overflow-wrap: anywhere; line-height: 1.5; }
.category-card strong small { font-size: 12px; margin-left: 2px; font-weight: 400; color: #7c8287; }
.category-card-count { display: flex; justify-content: space-between; align-items: center; width: 100%; color: #838a90; font-size: 11px; margin-top: 8px; }
.category-card-count .icon { width: 13px; height: 13px; }
.recent-panel { padding-bottom: 6px; }
.recent-panel .section-heading { margin-bottom: 3px; }
.purchase-row { display: flex; width: 100%; min-width: 0; align-items: center; text-align: left; gap: 13px; padding: 17px 0; border-bottom: 1px solid #eff1f3; }
.purchase-row:last-child { border-bottom: 0; }
.purchase-row:hover { background: #fafcfb; }
.purchase-info { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.purchase-info > strong { font-size: 14px; font-weight: 650; color: #31383e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.purchase-info > span { font-size: 12px; color: #82888d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.purchase-info i { font-style: normal; margin: 0 6px; color: #c5cad0; }
.purchase-amount { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex: none; white-space: nowrap; }
.purchase-amount > strong { font-size: 14px; color: #333a40; font-weight: 650; }
.purchase-amount small { font-size: 12px; font-weight: 400; margin-left: 2px; }
.purchase-amount > span { font-size: 11px; color: #92989e; }
.purchase-amount .no-price { font-size: 12px; color: #888f96; font-weight: 400; }
.row-chevron { width: 13px; height: 13px; color: #bcc2c8; margin-left: 2px; }
.device-panel { padding: 21px; }
.device-panel-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #222a25; }
.device-panel-title .icon { color: var(--green); width: 21px; height: 21px; }
.device-panel-title > span { margin-left: auto; font-size: 11px; color: #098e43; background: #ecfaf2; padding: 2px 7px; border-radius: 4px; }
.device-panel-copy { font-size: 13px; color: #70777e; line-height: 1.8; margin: 11px 0 17px; word-break: keep-all; }
.device-panel > .primary-button { width: 100%; }
.device-panel-footer { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; color: #8b9298; padding-top: 13px; }
.device-panel-footer button { font-size: 12px; padding: 0; color: #6c7670; }
.device-panel-footer span + span { border-left: 1px solid #dce1df; padding-left: 12px; }
.reminder-highlight { padding: 22px; background: #fff; }
.reminder-highlight .section-kicker { color: #424a43; font-size: 13px; }
.reminder-highlight .section-kicker > .icon { color: #f0a324; }
.live-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-left: auto; }
.reminder-hero-icon { position: relative; width: 60px; height: 60px; margin: 21px auto 15px; }
.reminder-hero-icon > .category-icon { width: 60px; height: 60px; border-radius: 17px; }
.reminder-hero-icon > .category-icon .icon { width: 33px; height: 33px; }
.small-clock { position: absolute; right: -7px; bottom: -3px; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ecfaf2; color: #15974b; }
.small-clock .icon { width: 16px; height: 16px; }
.reminder-highlight h2 { text-align: center; font-size: 22px; line-height: 1.6; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.reminder-highlight h2 > span { font-size: 19px; font-weight: 500; color: #434d46; }
.reminder-highlight > p { text-align: center; font-size: 12px; color: #848a85; line-height: 1.8; margin: 10px 0 20px; }
.reminder-highlight > .dark-button { min-height: 41px; font-size: 14px; }
.reminder-sub-actions { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0 0; }
.reminder-sub-actions button { flex: 1; font-size: 12px; color: #777f78; min-height: 31px; padding: 3px 0; }
.reminder-sub-actions button:hover { color: var(--green-dark); text-decoration: underline; }
.reminder-sub-actions > span { width: 1px; height: 12px; background: #e1e5e2; }
.reminder-sub-actions small { font-size: 11px; color: #3b995e; margin-left: 3px; }
.estimate-note { border-top: 1px solid #eff1ef; margin-top: 13px; padding-top: 12px; text-align: center; font-size: 11px; color: #8a908b; }
.upcoming-panel { padding-bottom: 0; }
.upcoming-panel .section-heading { margin-bottom: 8px; }
.upcoming-panel h2 { font-size: 16px; }
.round-count { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; font-size: 12px; background: #f0f3f1; color: #6e8074; }
.upcoming-item { display: flex; align-items: center; text-align: left; width: 100%; gap: 10px; padding: 13px 0; }
.upcoming-item + .upcoming-item { border-top: 1px solid #eff1f3; }
.upcoming-item > .category-icon { width: 36px; height: 36px; border-radius: 9px; }
.upcoming-item > .category-icon > .icon { width: 20px; height: 20px; }
.upcoming-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.upcoming-item strong { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #424c45; }
.upcoming-item small { font-size: 11px; color: #919893; }
.due-badge { background: #edf9f1; color: #358a50; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 4px 7px; white-space: nowrap; }
.due-badge.near { background: #fff3e3; color: #b47320; }
.upcoming-all { width: calc(100% + 44px); margin: 11px -22px 0; padding: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #68766d; }
.upcoming-all .icon { width: 14px; height: 14px; }
.upcoming-all:hover { background: #f7faf8; border-radius: 0 0 var(--radius) var(--radius); }
.quiet-empty { color: #89968d; font-size: 13px; text-align: center; padding: 18px 0; }
.memory-tip { display: flex; align-items: flex-start; gap: 10px; padding: 0 8px; }
.memory-tip > .icon { width: 22px; height: 22px; color: #71a686; margin-top: 2px; }
.memory-tip strong { font-size: 12px; font-weight: 600; color: #6f7d73; }
.memory-tip p { font-size: 11px; line-height: 1.8; color: #909b94; margin-top: 3px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 0 25px; color: #8b9095; font-size: 12px; }
.page-footer > span:last-child { font-size: 11px; letter-spacing: .7px; }
.error-banner { border: 1px solid #f0cabf; background: #fff3ef; border-radius: 6px; padding: 14px; margin-bottom: 20px; color: #b15135; font-size: 13px; overflow-wrap: anywhere; }

/* Record, reminder, and report pages. */
.records-panel { padding: 25px; }
.records-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.all-period-label { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 650; color: #34473b; white-space: nowrap; }
.all-period-label > .icon { width: 20px; height: 20px; color: #0e9d4b; }
.all-period-label .text-button { font-size: 12px; font-weight: 400; margin-left: 6px; color: #74847b; }
.month-control { display: flex; align-items: center; gap: 8px; }
.month-control input { border: 0; background: transparent; width: 155px; font-size: 17px; font-weight: 650; padding: 4px 2px; }
.month-control .icon-button { width: 44px; height: 44px; }
.month-control .icon { width: 26px; height: 26px; }
.rotate { transform: rotate(180deg); }
.search-field { display: flex; align-items: center; gap: 9px; border: 1px solid #dfe3e6; border-radius: 6px; background: #fff; padding: 10px 12px; width: 330px; }
.search-field > .icon { width: 18px; height: 18px; color: #7e8881; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-field input::placeholder { color: #9a9fa4; }
.search-field:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; min-height: 37px; border: 1px solid #e0e4e7; border-radius: 5px; background: #fff; color: #717a74; font-size: 13px; }
.filter-chip .icon { width: 16px; height: 16px; }
.filter-chip.selected { color: #078e40; border-color: #a8dfbd; background: #effbf4; font-weight: 650; }
.filter-chip:hover { background: #f4f9f6; }
.results-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e9ecee; margin-top: 25px; padding-bottom: 13px; font-size: 13px; color: #7b8480; }
.results-heading strong { color: #344d3d; font-weight: 650; margin-left: 5px; }
.records-list .purchase-row { padding: 20px 0; }
.records-list .purchase-info > strong, .records-list .purchase-amount > strong { font-size: 15px; }
.records-list .category-icon { width: 46px; height: 46px; }
.empty-state { text-align: center; max-width: 480px; padding: 48px 18px; margin: 0 auto; }
.empty-state > .icon { width: 40px; height: 40px; color: #9fb2a5; margin-bottom: 14px; stroke-width: 1.4; }
.empty-state h3 { font-size: 17px; font-weight: 650; color: #4c6153; }
.empty-state p { color: #839188; font-size: 13px; margin: 8px 0 20px; word-break: keep-all; }
.reminder-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.reminder-toolbar .secondary-button { font-size: 13px; padding: 8px 12px; min-height: 38px; }
.reminder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reminder-card { padding: 24px; }
.reminder-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.reminder-card h2 { font-size: 20px; overflow-wrap: anywhere; }
.reminder-card > p { font-size: 13px; color: #879088; margin-top: 5px; }
.reminder-card dl { margin: 22px 0; }
.reminder-card dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin: 8px 0; }
.reminder-card dt { color: #929b95; }
.reminder-card dd { margin: 0; color: #4e6255; }
.reminder-edit { width: 100%; justify-content: center; margin-top: 11px; font-size: 12px; }
.inline-info { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: #8b958e; margin-top: 26px; line-height: 1.9; }
.inline-info .icon { width: 16px; height: 16px; }
.report-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 22px; }
.report-summary { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 24px; }
.report-total { padding: 30px; border: 1px solid #ccefd9; border-radius: 8px; background: #effbf4; position: relative; overflow: hidden; }
.report-total > span, .report-count > span { font-size: 14px; color: #5f7b6a; }
.report-total > strong { display: block; font-size: 44px; color: #0c6932; font-weight: 750; letter-spacing: -1.5px; line-height: 1.4; margin: 8px 0; position: relative; z-index: 1; overflow-wrap: anywhere; }
.report-total > strong > small { font-size: 18px; font-weight: 400; margin-left: 5px; color: #659c7b; }
.report-total > p { font-size: 13px; color: #6e907b; position: relative; z-index: 1; }
.report-total b { color: #208c4b; font-weight: 650; }
.report-watermark { position: absolute; right: 28px; top: 35px; width: 112px; height: 112px; color: #d4f0df; stroke-width: 1.2; }
.report-count { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.report-count > strong { display: block; font-size: 40px; font-weight: 700; color: #35463b; margin: 8px 0; }
.report-count small { font-size: 18px; color: #8a9e91; font-weight: 400; margin-left: 5px; }
.report-count > p { font-size: 13px; color: #9aa59e; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.category-breakdown { padding-top: 10px; }
.breakdown-row { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.breakdown-row:last-child { margin-bottom: 0; }
.breakdown-row > .category-icon { width: 37px; height: 37px; border-radius: 9px; }
.breakdown-row .icon { width: 21px; height: 21px; }
.breakdown-row > div { flex: 1; min-width: 0; }
.breakdown-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #77887d; margin-bottom: 8px; }
.breakdown-label > strong { font-weight: 600; color: #4d6757; }
.bar-track { height: 6px; border-radius: 6px; background: #f0f3f1; overflow: hidden; }
.bar-fill { height: 100%; display: block; border-radius: 6px; background: #aab8af; }
.bar-fill.cat { background: #e7aa63; }
.bar-fill.dog { background: #8fcf8e; }
.bar-fill.clothes { background: #b394d8; }
.bar-fill.life { background: #7bb7d7; }
.weekly-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; height: 236px; border-bottom: 1px solid #e9eeeb; padding: 28px 5px 0; }
.week-column { height: 100%; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; font-size: 12px; color: #8da196; }
.week-bar-space { height: 150px; display: flex; align-items: flex-end; width: 100%; max-width: 44px; }
.week-bar { width: 100%; min-height: 3px; border-radius: 5px 5px 0 0; background: #c5eed5; }
.week-bar.peak { background: var(--green); }
.week-column > span:last-child { padding-bottom: 11px; }
.week-amount { font-size: 11px; color: #7a9785; }
.chart-note { text-align: center; font-size: 12px; color: #939f97; margin-top: 17px; }

/* Local vault, settings, and record forms. */
dialog { width: min(570px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #dce1de; border-radius: 12px; color: var(--body); background: #fff; box-shadow: 0 18px 70px #172a2133; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #1f30286b; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 25px 28px 21px; }
.dialog-heading .eyebrow { font-size: 11px; margin-bottom: 7px; }
.dialog-heading > div { min-width: 0; }
.dialog-heading h2 { overflow-wrap: anywhere; }
.dialog-heading h2 { font-size: 23px; font-weight: 750; }
.dialog-heading .icon-button { align-self: flex-start; background: #f4f6f5; }
.parse-notice { display: flex; align-items: center; gap: 7px; background: #effbf4; padding: 12px 27px; color: #3e8c58; font-size: 13px; }
.parse-notice .icon { width: 18px; height: 18px; }
.form-body { padding: 23px 28px 10px; }
.field { display: block; min-width: 0; color: #52685a; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.field > span { margin-left: 3px; color: #95a198; font-size: 11px; font-weight: 400; }
.field > input, .field > select, .field > textarea, .input-suffix { display: block; width: 100%; background: #fff; border: 1px solid #dce2de; border-radius: 6px; padding: 11px 12px; margin-top: 7px; color: #34483b; font-size: 14px; font-weight: 400; }
.field input::placeholder, .field textarea::placeholder { color: #a5afa8; }
.field textarea { resize: vertical; min-height: 76px; }
.form-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.input-suffix { display: flex; align-items: center; padding: 0; }
.input-suffix > input { padding: 11px 12px; width: 100%; border: 0; border-radius: 6px; background: none; font-size: 14px; }
.input-suffix > span { color: #95a198; font-size: 13px; padding-right: 13px; }
.cycle-field { display: flex; align-items: center; gap: 10px; padding: 15px 13px; background: #f2faf5; border: 1px solid #e3f1e8; border-radius: 6px; margin: 7px 0 21px; }
.cycle-icon { color: #51a46f; }
.cycle-icon .icon { width: 19px; height: 19px; }
.cycle-field label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cycle-field strong { font-size: 13px; font-weight: 650; color: #41875a; }
.cycle-field label span { font-size: 11px; color: #82a18c; }
.cycle-input { display: flex; align-items: center; gap: 6px; flex: none; }
.cycle-input input { width: 50px; height: 35px; border: 1px solid #cee5d6; border-radius: 5px; background: #fff; color: #41875a; font-size: 14px; text-align: center; }
.cycle-input > span { font-size: 12px; color: #73947e; }
.form-error { font-size: 13px; color: #b54a2b; line-height: 1.8; }
.form-error:empty { display: none; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e9eeeb; padding: 18px 28px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 20px 28px; border-top: 1px solid #e9eeeb; }
#confirm-dialog .settings-description { margin: 0 0 14px; font-size: 14px; }
.save-note { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #8a9e91; }
.save-note .icon { width: 14px; height: 14px; }
.delete-button { display: inline-flex; align-items: center; gap: 5px; color: #ba7460; font-size: 13px; padding: 6px 0; }
.delete-button .icon { width: 16px; height: 16px; }
.delete-button:hover { color: #a94025; }
.settings-body { padding: 0 28px 25px; }
.settings-intro { display: flex; align-items: center; gap: 13px; background: #f3fbf6; border: 1px solid #dfeee5; border-radius: 8px; padding: 17px; margin-bottom: 20px; }
.settings-intro strong { color: #35714a; font-size: 14px; font-weight: 650; }
.settings-intro p { color: #7e9a88; font-size: 12px; line-height: 1.8; margin-top: 4px; }
.settings-intro .brand-symbol { width: 33px; height: 36px; }
.settings-intro .brand-symbol .icon { width: 29px; height: 29px; }
.settings-body h3 { color: #3e6e4d; font-size: 15px; margin-top: 24px; }
.settings-description { font-size: 13px; color: #829389; line-height: 1.9; margin: 8px 0 13px; word-break: keep-all; }
.settings-body .secondary-button { font-size: 13px; }
.settings-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-buttons > button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.settings-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e9eeeb; margin-top: 25px; padding-top: 17px; }
.settings-bottom > span { font-size: 11px; color: #97a49b; }
.storage-facts { margin: 0 0 16px; padding: 16px; border: 1px solid #e7ece9; border-radius: 6px; background: #fafcfb; }
.storage-facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.storage-facts > div + div { margin-top: 11px; }
.storage-facts dt { color: #879a8e; }
.storage-facts dd { margin: 0; text-align: right; color: #518261; font-weight: 600; }
.vault-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100dvh; padding: 35px 20px; background: #fafcfb; }
.vault-brand { font-size: 32px; margin: 0 0 30px; gap: 7px; }
.vault-brand .brand-symbol { width: 36px; height: 39px; }
.vault-brand .icon { width: 33px; height: 33px; }
.vault-card { width: 100%; max-width: 480px; padding: 32px; border: 1px solid #dce5df; border-radius: 10px; background: #fff; text-align: center; }
.vault-emblem { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #daefe2; border-radius: 15px; background: #f0fcf5; color: var(--green); margin: 0 auto 21px; }
.vault-emblem .icon { width: 29px; height: 29px; stroke-width: 1.8; }
.vault-card .eyebrow { font-size: 11px; letter-spacing: 1px; }
.vault-card h1 { font-size: 24px; word-break: keep-all; letter-spacing: -.9px; }
.vault-description { font-size: 13px; color: #7d9184; line-height: 1.9; margin: 12px 0 23px; word-break: keep-all; }
.vault-card form { text-align: left; }
.vault-card .field { font-size: 13px; color: #527760; }
.vault-card .field > input { font-size: 15px; padding: 12px; }
.vault-recovery-note { font-size: 12px; color: #8a815e; background: #fcfaf1; border-radius: 6px; line-height: 1.8; padding: 12px 13px; margin: 0 0 18px; word-break: keep-all; }
.vault-card .primary-button, .vault-dialog-body .primary-button { margin-top: 9px; min-height: 46px; font-size: 14px; }
.vault-backup { margin-top: 18px; font-size: 12px; color: #688a74; }
.vault-location { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; border-top: 1px solid #e9eeeb; margin-top: 23px; padding-top: 16px; font-size: 11px; color: #84998b; }
.vault-location .icon { width: 15px; height: 15px; }
.vault-footnote { font-size: 12px; text-align: center; color: #93a197; line-height: 1.9; margin-top: 20px; }
.vault-dialog-body { padding: 0 28px 27px; }
.vault-dialog-body .vault-description { margin: 17px 0 22px; }
.device-note { display: flex; align-items: center; gap: 13px; border: 1px solid #daeee2; border-radius: 6px; background: #f2fbf6; padding: 16px; font-size: 14px; line-height: 1.8; color: #4e8a62; }
.device-note .icon { width: 28px; height: 28px; color: #35a761; }
.device-note > span { min-width: 0; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; width: max-content; max-width: calc(100% - 32px); border-radius: 8px; background: #243c2d; color: #f8fdf9; padding: 13px 20px; box-shadow: 0 5px 20px #17332420; z-index: 100; pointer-events: none; font-size: 13px; line-height: 1.8; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .portal-shortcuts { gap: 7px; }
  .dashboard-grid { grid-template-columns: minmax(0, 2fr) minmax(275px, 1fr); gap: 18px; }
  .main-column, .side-column { gap: 18px; }
  .panel, .month-overview, .quick-card, .reminder-highlight { padding: 20px; }
  .category-card { padding: 8px 10px; }
  .category-card strong { font-size: 21px; }
  .category-card-count { font-size: 11px; }
  .category-card-count .icon { display: none; }
  .recent-panel { padding-bottom: 5px; }
  .upcoming-panel { padding-bottom: 0; }
  .upcoming-all { width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
  .reminder-highlight h2 { font-size: 20px; }
  .reminder-highlight h2 > span { font-size: 18px; }
  .purchase-row { gap: 10px; }
  .row-chevron { display: none; }
  .reminder-grid { gap: 18px; }
  .page-heading h1 { font-size: 25px; }
  .page-subtitle { font-size: 13px; }
}

@media (min-width: 761px) and (max-width: 930px) {
  .portal-header { padding-left: 22px; padding-right: 22px; }
  .portal-search-area { max-width: 620px; }
  .portal-shortcuts { gap: 4px; }
  .nav-item, .category-shortcut, .shortcut-settings { min-width: 66px; font-size: 12px; }
  .main-content { padding-left: 22px; padding-right: 22px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 17px; }
  .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 15px; }
  .category-card:nth-child(2) { border-right: 0; }
  .category-card:nth-child(3) { padding-left: 0; }
  .category-card .category-icon { position: absolute; right: 13px; top: 10px; }
  .category-card-label { margin-top: 2px; padding-right: 30px; }
  .category-card strong { font-size: 23px; margin-top: 5px; }
  .quick-input-footer > span { max-width: 155px; font-size: 11px; }
  .quick-examples > span { display: none; }
  .section-heading h2 { font-size: 15px; }
  .heading-add { font-size: 13px; padding: 9px 12px; }
  .heading-spark { display: none; }
  .purchase-row > .category-icon { width: 35px; height: 35px; border-radius: 8px; }
  .purchase-info > strong, .purchase-amount > strong { font-size: 13px; }
  .purchase-info > span { font-size: 11px; }
  .reminder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .portal-header { padding: 0 18px 20px; }
  .portal-utility { height: auto; min-height: 63px; padding: 12px 0; gap: 9px; flex-wrap: wrap; }
  .brand { font-size: 26px; gap: 4px; }
  .brand-symbol { width: 31px; height: 35px; }
  .brand-symbol .icon { width: 29px; height: 29px; }
  .portal-utility-actions { gap: 3px; max-width: 100%; margin-left: auto; }
  .device-chip { font-size: 11px; gap: 4px; }
  .device-chip .icon { width: 14px; height: 14px; }
  .portal-utility-actions .icon-button { width: 44px; height: 44px; padding: 9px; }
  .portal-utility-actions .icon-button .icon { width: 26px; height: 26px; }
  .portal-search-area { margin: 5px auto 19px; }
  .portal-search-caption { font-size: 11px; margin-top: 9px; }
  .portal-search { min-height: 53px; border-width: 1.5px; gap: 10px; padding: 0 10px 0 16px; }
  .portal-search-mark .icon, .portal-search > .icon { width: 26px; height: 26px; }
  .portal-search input { font-size: 16px; padding: 12px 0; }
  .portal-search-button { width: 44px; height: 44px; padding: 7px; }
  .portal-search-button .icon { width: 30px; height: 30px; }
  .portal-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 4px; max-width: 430px; }
  .portal-shortcuts .nav-item, .portal-shortcuts .category-shortcut { min-width: 0; font-size: 12px; font-weight: 550; gap: 7px; }
  .portal-shortcuts .nav-item > .icon, .portal-shortcuts .category-shortcut > .icon, .portal-shortcuts .category-icon { width: 56px; height: 56px; border-radius: 16px; padding: 9px; }
  .portal-shortcuts .category-icon > .icon { width: 36px; height: 36px; }
  .portal-shortcuts .shortcut-settings { display: none; }
  .portal-shortcuts .nav-count { right: calc(50% - 33px); }
  .main-content { max-width: 660px; padding: 21px 18px calc(96px + env(safe-area-inset-bottom)); }
  .portal-page-tabs { gap: 19px; margin-bottom: 20px; font-size: 14px; overflow-x: auto; white-space: nowrap; }
  .demo-banner { padding: 10px 12px; gap: 12px; margin-bottom: 21px; font-size: 11px; }
  .demo-tag { font-size: 11px; margin-right: 5px; }
  .demo-banner button { font-size: 11px; gap: 3px; }
  .demo-banner button .icon { width: 13px; height: 13px; }
  .page-heading { display: block; margin-bottom: 21px; }
  .eyebrow { font-size: 11px; letter-spacing: .55px; margin-bottom: 6px; }
  .page-heading h1 { font-size: 25px; word-break: keep-all; letter-spacing: -.95px; }
  .heading-spark { font-size: 22px; margin-left: 5px; }
  .page-subtitle { font-size: 13px; margin-top: 7px; max-width: 410px; }
  .heading-add { min-height: 39px; margin-top: 15px; padding: 8px 14px; font-size: 13px; }
  .dashboard-grid { display: flex; flex-direction: column; gap: 18px; }
  .main-column, .side-column { display: contents; }
  .quick-card { order: 0; padding: 21px 18px 17px; }
  .device-panel { order: 1; }
  .month-overview { order: 3; }
  .recent-panel { order: 5; }
  .reminder-highlight { order: 2; }
  .upcoming-panel { order: 4; }
  .memory-tip { display: none; }
  .quick-card h2 { font-size: 24px; }
  .quick-card .quick-content > p { font-size: 13px; }
  .quick-card form { margin-top: 21px; }
  .quick-card textarea { font-size: 16px; padding: 14px 13px 4px; min-height: 82px; line-height: 1.8; }
  .quick-input-footer { padding: 8px 10px 10px 13px; gap: 7px; }
  .quick-input-footer > span { font-size: 11px; max-width: 155px; }
  .quick-input-footer .primary-button { min-height: 37px; font-size: 12px; padding: 8px 10px; }
  .quick-input-footer .primary-button .icon { width: 20px; height: 20px; }
  .quick-examples > span { display: none; }
  .quick-examples button { font-size: 11px; padding: 4px 7px; }
  .panel, .month-overview { padding: 19px 17px; }
  .section-heading { margin-bottom: 15px; }
  .section-heading { flex-wrap: wrap; }
  .section-heading h2 { min-width: 0; flex-wrap: wrap; }
  .section-heading h2 { font-size: 16px; }
  .text-button { font-size: 12px; }
  .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .category-card { padding: 5px 16px; min-height: 112px; }
  .category-card:nth-child(2) { border-right: 0; padding-right: 0; }
  .category-card:nth-child(3) { padding-left: 0; }
  .category-card .category-icon { position: absolute; top: 7px; right: 16px; width: 33px; height: 33px; border-radius: 8px; }
  .category-card:nth-child(even) .category-icon { right: 0; }
  .category-card-label { font-size: 12px; margin: 7px 0 10px; padding-right: 35px; }
  .category-card strong { font-size: 25px; }
  .category-card strong small { font-size: 12px; }
  .category-card-count { font-size: 11px; margin-top: 7px; }
  .category-card-count .icon { display: block; }
  .recent-panel { padding-bottom: 5px; }
  .purchase-row { gap: 10px; padding: 17px 0; }
  .purchase-info > strong { font-size: 13px; }
  .purchase-info > span { font-size: 11px; }
  .purchase-amount > strong { font-size: 13px; }
  .purchase-amount > span { font-size: 11px; }
  .purchase-row > .category-icon { width: 37px; height: 37px; border-radius: 9px; }
  .purchase-row > .category-icon > .icon { width: 22px; height: 22px; }
  .row-chevron { display: none; }
  .device-panel-title { font-size: 15px; }
  .device-panel-copy { font-size: 13px; margin: 10px 0 15px; }
  .device-panel-footer { padding-top: 11px; font-size: 11px; }
  .reminder-highlight { display: grid; grid-template-columns: 49px minmax(0, 1fr); column-gap: 15px; padding: 20px 18px 15px; align-items: center; }
  .reminder-highlight > .section-kicker { grid-column: 1 / -1; margin-bottom: 18px; font-size: 12px; }
  .reminder-hero-icon { grid-column: 1; grid-row: 2 / 4; margin: 0; width: 49px; height: 49px; align-self: center; }
  .reminder-hero-icon > .category-icon { width: 49px; height: 49px; border-radius: 14px; }
  .reminder-hero-icon > .category-icon .icon { width: 30px; height: 30px; }
  .small-clock { width: 22px; height: 22px; right: -5px; }
  .small-clock .icon { width: 13px; height: 13px; }
  .reminder-highlight h2 { grid-column: 2; text-align: left; font-size: 17px; line-height: 1.6; letter-spacing: -.5px; }
  .reminder-highlight h2 br { display: none; }
  .reminder-highlight h2 span { display: block; font-size: 16px; }
  .reminder-highlight > p { grid-column: 2; text-align: left; font-size: 11px; margin: 6px 0 17px; }
  .reminder-highlight > .dark-button { grid-column: 1 / -1; font-size: 13px; }
  .reminder-sub-actions { grid-column: 1 / -1; padding-top: 9px; }
  .reminder-sub-actions button { font-size: 12px; min-height: 32px; }
  .estimate-note { grid-column: 1 / -1; font-size: 11px; margin-top: 10px; padding-top: 10px; }
  .upcoming-panel { padding-bottom: 0; }
  .upcoming-panel h2 { font-size: 16px; }
  .upcoming-item { padding: 14px 0; gap: 11px; }
  .upcoming-item strong { font-size: 13px; }
  .upcoming-item small { font-size: 11px; }
  .upcoming-all { width: calc(100% + 34px); margin: 10px -17px 0; font-size: 12px; padding: 14px; }
  .page-footer { justify-content: center; font-size: 11px; margin-top: 25px; padding: 18px 0; }
  .page-footer > span:last-child { display: none; }
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; justify-content: space-around; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #e6eae7; background: #fffffffa; backdrop-filter: blur(10px); z-index: 20; }
  .mobile-nav .nav-item { width: 25%; min-width: 0; min-height: 56px; flex-direction: column; gap: 4px; padding: 3px 5px; font-size: 12px; color: #727d75; }
  .mobile-nav .nav-item > .icon { width: 28px; height: 28px; stroke-width: 1.9; }
  .mobile-nav .nav-item.active { color: #05a747; font-weight: 700; }
  .mobile-nav .nav-item.active > .icon { stroke-width: 2.2; }
  .mobile-nav .nav-count { top: -1px; right: calc(50% - 26px); font-size: 11px; }
  .toast { bottom: calc(98px + env(safe-area-inset-bottom)); font-size: 12px; padding: 12px 16px; }
  body:has(.vault-screen) .toast { bottom: 25px; }
  .records-panel { padding: 20px 16px; }
  .records-toolbar { flex-direction: column; align-items: stretch; gap: 17px; margin-bottom: 17px; }
  .all-period-label { justify-content: center; font-size: 16px; }
  .month-control { justify-content: center; gap: 6px; }
  .month-control input { font-size: 17px; text-align: center; width: 152px; }
  .month-control .icon-button { width: 44px; height: 44px; }
  .search-field { width: 100%; padding: 11px 12px; }
  .search-field input { font-size: 16px; }
  .filter-chips { flex-wrap: nowrap; gap: 7px; overflow-x: auto; padding: 1px 1px 7px; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { font-size: 12px; padding: 6px 10px; min-height: 34px; flex: none; white-space: nowrap; }
  .filter-chip .icon { width: 15px; height: 15px; }
  .results-heading { font-size: 12px; margin-top: 13px; flex-wrap: wrap; gap: 6px 12px; }
  .records-list .purchase-row { padding: 18px 0; }
  .records-list .purchase-info > strong, .records-list .purchase-amount > strong { font-size: 13px; }
  .records-list .category-icon { width: 35px; height: 35px; }
  .records-list .category-icon > .icon { width: 21px; height: 21px; }
  .empty-state { padding: 38px 4px; }
  .empty-state h3 { font-size: 16px; }
  .empty-state p { font-size: 12px; }
  .reminder-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .reminder-toolbar .filter-chips { max-width: 100%; padding-bottom: 0; }
  .reminder-toolbar .secondary-button { font-size: 12px; min-height: 36px; }
  .reminder-grid { grid-template-columns: 1fr; gap: 17px; }
  .reminder-card { padding: 22px; }
  .reminder-card h2 { font-size: 20px; }
  .reminder-card dl > div { font-size: 13px; margin: 9px 0; }
  .reminder-card > p { font-size: 12px; }
  .reminder-edit { font-size: 12px; }
  .inline-info { text-align: left; align-items: flex-start; font-size: 12px; line-height: 1.9; padding: 0 5px; margin-top: 21px; }
  .inline-info .icon { margin-top: 3px; }
  .report-toolbar { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .report-toolbar .month-control { gap: 2px; }
  .report-toolbar .month-control input { width: 141px; font-size: 16px; }
  .report-toolbar .month-control .icon-button { width: 44px; }
  .report-toolbar .text-button { font-size: 11px; }
  .report-summary { grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
  .report-total { padding: 24px; }
  .report-total > strong { font-size: 39px; }
  .report-total > span { font-size: 13px; }
  .report-total > p { font-size: 12px; }
  .report-watermark { width: 90px; height: 90px; right: 17px; top: 38px; }
  .report-count { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 19px 22px; }
  .report-count > strong { grid-row: 1 / 3; grid-column: 2; font-size: 29px; margin: 0; }
  .report-count > strong > small { font-size: 14px; }
  .report-count > span { font-size: 13px; }
  .report-count > p { font-size: 11px; margin-top: 3px; }
  .report-grid { grid-template-columns: 1fr; gap: 18px; }
  .weekly-chart { height: 225px; }
  .breakdown-label { font-size: 12px; }
  dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 10px; }
  .dialog-heading { padding: 21px 20px 18px; }
  .dialog-heading h2 { font-size: 21px; }
  .dialog-heading .eyebrow { font-size: 11px; }
  .form-body { padding: 20px 20px 8px; }
  .parse-notice { padding: 11px 20px; font-size: 12px; }
  .parse-notice .icon { width: 16px; height: 16px; }
  .field { font-size: 13px; margin-bottom: 15px; }
  .field > input, .field > select, .field > textarea { font-size: 16px; padding: 10px 11px; line-height: 1.5; }
  .input-suffix > input { font-size: 16px; padding: 10px 11px; }
  .form-two { gap: 12px; }
  .cycle-field { padding: 12px 10px; gap: 8px; }
  .cycle-field label span { font-size: 11px; word-break: keep-all; }
  .cycle-field strong { font-size: 12px; }
  .cycle-input input { font-size: 16px; width: 45px; }
  .cycle-icon { display: none; }
  .cycle-input > span { font-size: 11px; }
  .dialog-footer { padding: 16px 20px; gap: 8px; }
  .form-actions { padding: 16px 20px; gap: 8px; }
  #confirm-dialog .settings-description { font-size: 13px; }
  .dialog-footer .primary-button { font-size: 13px; padding: 10px 13px; }
  .save-note { font-size: 11px; max-width: 140px; }
  .settings-body { padding: 0 20px 20px; }
  .settings-intro { padding: 15px 13px; gap: 11px; }
  .settings-intro strong { font-size: 13px; }
  .settings-intro p { font-size: 12px; }
  .settings-bottom { flex-wrap: wrap; gap: 8px; }
  .settings-bottom > span { font-size: 11px; }
  .settings-bottom .delete-button { font-size: 12px; }
  .settings-description { font-size: 12px; }
  .settings-body h3 { font-size: 14px; }
  .settings-body .secondary-button { font-size: 12px; padding: 9px 10px; gap: 5px; }
  .settings-body .secondary-button .icon { width: 22px; height: 22px; }
  .storage-facts { padding: 14px 11px; }
  .storage-facts > div { font-size: 11px; gap: 9px; }
  .vault-screen { padding: 30px 18px; justify-content: flex-start; }
  .vault-brand { margin: 9px 0 27px; font-size: 31px; }
  .vault-card { padding: 27px 22px; border-radius: 9px; }
  .vault-card h1 { font-size: 22px; }
  .vault-card .field > input { font-size: 16px; }
  .vault-description { font-size: 12px; }
  .vault-description, .vault-recovery-note, .settings-description { overflow-wrap: anywhere; }
  .vault-card .primary-button, .vault-dialog-body .primary-button, .vault-backup { white-space: normal; }
  .vault-recovery-note { font-size: 12px; }
  .vault-location { font-size: 11px; line-height: 1.8; }
  .vault-footnote { font-size: 11px; }
  .vault-dialog-body { padding: 0 20px 24px; }
  .device-note { font-size: 13px; padding: 14px; gap: 10px; }
}

@media (max-width: 480px) {
  .form-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .settings-buttons { grid-template-columns: minmax(0, 1fr); }
  .dialog-footer { flex-wrap: wrap; }
  .dialog-footer .primary-button { margin-left: auto; }
}

@media (max-width: 380px) {
  .portal-header { padding-left: 14px; padding-right: 14px; }
  .portal-utility { gap: 5px; }
  .brand { font-size: 25px; }
  .portal-utility-actions { gap: 1px; }
  .device-chip { font-size: 11px; }
  .device-chip .icon { display: none; }
  .portal-utility-actions .icon-button { width: 44px; }
  .portal-search { gap: 8px; padding-left: 13px; }
  .portal-search input { font-size: 16px; }
  .main-content { padding-left: 14px; padding-right: 14px; }
  .page-heading h1 { font-size: 23px; }
  .heading-spark { display: none; }
  .page-subtitle { font-size: 12px; }
  .demo-banner { flex-wrap: wrap; gap: 5px; padding: 10px 12px; }
  .demo-banner button { margin-left: auto; }
  .quick-card { padding-left: 15px; padding-right: 15px; }
  .quick-card h2 { font-size: 23px; }
  .quick-input-footer > span { max-width: 123px; font-size: 11px; line-height: 1.65; }
  .quick-input-footer > span .icon { display: none; }
  .category-card strong { font-size: 23px; }
  .category-card { padding-right: 12px; padding-left: 12px; }
  .category-card .category-icon { width: 29px; height: 29px; right: 12px; }
  .category-card .category-icon .icon { width: 20px; height: 20px; }
  .category-card-label { padding-right: 29px; }
  .section-heading h2 { font-size: 15px; gap: 5px; }
  .section-heading .text-button { font-size: 11px; }
  .purchase-row { gap: 8px; }
  .purchase-row > .category-icon { width: 32px; height: 32px; }
  .purchase-info > strong, .purchase-amount > strong { font-size: 12px; }
  .purchase-amount small { font-size: 11px; }
  .purchase-amount .no-price { font-size: 11px; }
  .dialog-heading, .form-body, .dialog-footer { padding-left: 16px; padding-right: 16px; }
  .form-two { grid-template-columns: 1fr; gap: 0; }
  .settings-body, .vault-dialog-body { padding-left: 16px; padding-right: 16px; }
  .settings-buttons { grid-template-columns: 1fr; }
  .cycle-input > span { max-width: 22px; }
  .dialog-footer { flex-wrap: wrap; }
  .dialog-footer .primary-button { margin-left: auto; }
  .vault-card { padding-left: 18px; padding-right: 18px; }
  .vault-card h1 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
