/* Lifeqora: one calm visual language across the household. */
:root {
  --bg: #f6f5f8;
  --paper: #ffffff;
  --ink: #34303e;
  --muted: #736a7d;
  --line: #ece8f0;
  --coral: #ed7d60;
  --purple: #a496c3;
  --green: #32765c;
  --sidebar: 236px;
  --lavender-light: #f1edf7;
  --peach-light: #fff0e9;
  --sage-light: #edf5ef;
  --shadow: 0 5px 24px #35264505;
}
body { font-size: 14px; letter-spacing: -.15px; }
button, input, select, textarea { touch-action: manipulation; }
.ui-icon { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.65; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #8971b4;
  outline-offset: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #a496c3;
  outline-offset: 2px;
}
.sidebar { padding: 31px 20px 22px; background: #fff; border-color: var(--line); }
.sidebar .brand-logo { width: 178px; }
.sidebar .workspace { background: #f8f6fb; padding: 13px 10px; border-color: var(--line); border-radius: 14px; margin: 32px 0 30px; }
.workspace strong { font-size: 12px; line-height: 1.45; }
.workspace small { color: var(--muted); font-size: 11px; }
.avatar, .profile { background: #eae3f4; color: #735c94; }
.nav-label { font-size: 10px; letter-spacing: 1.6px; color: var(--muted); margin-left: 13px; }
.sidebar .nav-item { display: flex; gap: 12px; min-height: 45px; padding: 11px 13px; margin: 3px 0; border-radius: 11px; font-size: 12px; color: #736a7d; }
.sidebar .nav-item.active { color: #ad503c; background: var(--peach-light); font-weight: 650; }
.sidebar .nav-item:hover { background: #f5f2f8; }
.sidebar .nav-item.active:hover { background: #fce8df; }
.nav-glyph { width: 20px; height: 20px; display: inline-flex; }
.sidebar .quote { background: #f7f4fb; border-radius: 17px; padding: 20px 16px; }
.sidebar .quote p { color: #6d5b85; line-height: 1.45; font-weight: 550; }
.sidebar .quote small { color: var(--muted); line-height: 1.65; }
.local-status { color: var(--muted); line-height: 1.6; }
.topbar { background: #ffffffc9; min-height: 76px; height: 76px; border-color: var(--line); padding: 0 40px; }
.breadcrumbs { color: var(--muted); font-size: 12px; gap: 12px; }
.breadcrumbs strong { color: var(--ink); font-weight: 550; }
.profile { width: 37px; height: 37px; border-radius: 13px; font-size: 14px; }
.top-actions { gap: 17px; }
main { padding: 34px 40px 30px; max-width: 1580px; }
.page-heading { margin-bottom: 28px; align-items: center; gap: 20px; }
.page-heading h1 { font-size: clamp(26px, 2.5vw, 35px); line-height: 1.2; letter-spacing: -1.2px; font-weight: 650; margin: 0 0 10px; }
.subtitle, .page-heading .subtitle { color: var(--muted); font-size: 13px; line-height: 1.8; }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 11px; min-height: 42px; padding: 11px 15px; font-size: 12px; font-weight: 550; line-height: 1.4; transition: background .18s, box-shadow .18s, transform .18s; }
.button.primary { color: #fff; background: #bb533d; border-color: #bb533d; box-shadow: 0 4px 10px #bb533d12; }
.button.primary:hover:not(:disabled) { background: #a64430; transform: translateY(-1px); box-shadow: 0 6px 14px #bb533d22; }
.button.ghost { color: #61536e; background: white; border: 1px solid #e4dfea; }
.button.ghost:hover:not(:disabled) { background: #f5f1f9; border-color: #cfc1df; }
.button.soft { color: #6d538e; background: #eee7f6; border: 1px solid #e2d8ed; }
.button:disabled { opacity: .62; }
.button .ui-icon { width: 16px; height: 16px; }
.text-button { color: #755b93; font-size: 11px; padding: 6px 0; line-height: 1.5; }
.text-button:hover { color: #4f396a; }
.icon-button { min-width: 38px; min-height: 38px; border-radius: 10px; background: #f6f3fa; color: #79648f; }
.card { border: 1px solid var(--line); border-radius: 19px; padding: 24px; background: #fff; box-shadow: var(--shadow); }
.card-header { gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.card-header h2 { font-size: 16px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; }
.card-header p { color: var(--muted); font-size: 11px; line-height: 1.75; margin-top: 5px; }
.card-header > .button { min-height: 34px; padding: 8px 10px; font-size: 10px; }
.eyebrow { font-size: 10px; line-height: 1.6; color: var(--muted); font-weight: 650; letter-spacing: 1.5px; }
.stack { gap: 20px; }
.empty { font-size: 12px; color: var(--muted); line-height: 1.8; padding: 24px 12px; }
.illustrated-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; min-height: 145px; }
.illustrated-empty > .ui-icon { width: 35px; height: 35px; color: #a395bc; margin: 4px 0; stroke-width: 1.25; }
.illustrated-empty strong { color: #6e5e7d; font-size: 13px; font-weight: 550; }
.illustrated-empty span { max-width: 290px; }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.5; }
.stat-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-icon { width: 34px; height: 34px; border-radius: 11px; background: #f4f1f8; color: #947aaf; display: inline-grid; place-items: center; flex-shrink: 0; }
.stat-icon .ui-icon { width: 17px; height: 17px; }
.budget-stat-value { font-size: clamp(24px, 2.3vw, 34px); font-weight: 650; line-height: 1.3; letter-spacing: -1px; font-variant-numeric: tabular-nums; margin: 19px 0 11px; overflow-wrap: anywhere; }
.metric-foot { color: var(--muted); font-size: 10px; line-height: 1.65; }
.stat-card.is-positive, .dashboard-metric.is-positive { background: var(--sage-light); border-color: #deebe2; }
.stat-card.is-negative, .dashboard-metric.is-negative { background: var(--peach-light); border-color: #f2d7cc; }
.is-positive .budget-stat-value { color: #2b6d52; }
.is-negative .budget-stat-value { color: #ad4934; }
.is-positive .stat-icon { background: #dcebe1; color: #32765c; }
.is-negative .stat-icon { background: #fadfd3; color: #ad4934; }

/* Personal dashboard, with stored ordering and sizes preserved. */
.dashboard-greeting { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0 32px; }
.greeting-date { margin: 0 0 13px; text-transform: uppercase; }
.dashboard-greeting h1 { font-size: clamp(29px, 3.4vw, 44px); font-weight: 600; letter-spacing: -1.7px; line-height: 1.2; margin: 0 0 11px; }
.greeting-dot { color: var(--coral); }
.greeting-copy .subtitle { margin: 0; }
.greeting-status { display: flex; gap: 18px; align-items: center; margin-top: 23px; flex-wrap: wrap; }
.greeting-status > span { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.greeting-status strong { font-weight: 650; color: #54465f; }
.greeting-status .ui-icon { color: #a58dbb; width: 16px; height: 16px; margin-right: 1px; }
.greeting-status > span:last-child .ui-icon { color: #b1864d; }
.greeting-side { display: flex; flex-direction: column; align-items: flex-end; gap: 19px; flex-shrink: 0; }
.greeting-flower { width: 80px; height: 80px; opacity: .7; transform: rotate(12deg); }
.personal-dashboard-grid { gap: 20px; }
.dashboard-widget { padding: 24px; }
.dashboard-widget .budget-stat-value { font-size: clamp(25px, 2.3vw, 34px); margin: 18px 0 10px; }
.dashboard-kind-points { background: #f0ebf7; border-color: #e7dff0; }
.dashboard-kind-points .stat-icon { background: #e4daef; color: #7c5c9f; }
.dashboard-kind-coupons .stat-icon { color: #b37854; background: #faeee4; }
.dashboard-kind-rewards { background: #fffaf6; border-color: #f1e7dd; }
.dashboard-widget .card-header > .button { flex-shrink: 0; }
.dashboard-widget .card-header .text-button { white-space: nowrap; }
.dashboard-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 0 -3px 15px; }
.week-day { background: #faf8fc; border: 1px solid transparent; border-radius: 12px; padding: 10px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.week-day span { font-size: 9px; color: var(--muted); }
.week-day strong { font-size: 13px; font-weight: 600; }
.week-day i { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.week-day.has-event i { background: #b097cc; }
.week-day.is-today { background: #fce8df; color: #a44c36; }
.week-day.is-today span { color: #a44c36; }
.week-day.is-today i { background: #cf785d; }
.week-day:hover { border-color: #d2bedf; }
.dashboard-reward-art { height: 105px; display: flex; align-items: center; justify-content: center; position: relative; margin: -3px 0 10px; background: radial-gradient(ellipse at center, #faeadb 0%, #fffaf6 70%); }
.dashboard-reward-art > .ui-icon:first-child { width: 65px; height: 65px; color: #c28e6d; stroke-width: 1.2; transform: rotate(-7deg); }
.dashboard-reward-art > .ui-icon:last-child { width: 26px; height: 26px; color: #bda2cd; position: absolute; top: 10px; left: 65%; }
.dashboard-goal-heading strong { font-size: 13px; font-weight: 550; }
.dashboard-goal-value { font-size: 26px; color: #77618f; margin: 18px 0 14px; }
.progress { background: #efebf4; border-radius: 10px; overflow: hidden; height: 7px; }
.progress > span { background: #a38cbe; border-radius: inherit; }
.dashboard-note p { color: var(--muted); font-size: 12px; }
.member-chip { font-size: 11px; color: #6e5984; border-radius: 9px; background: #f3eef8; padding: 9px 12px; }
.dashboard-widget-editing { padding: 0; }
.dashboard-widget-editing .dashboard-widget-content { padding: 23px; }
.dashboard-masonry-ready { column-gap: 20px; row-gap: 0; }

/* Budget: the active period and method are visible on every tab. */
.budget-context { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 18px 22px; margin-bottom: 22px; }
.budget-period-label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 190px; }
.context-icon { color: #89709f; background: #f1ecf7; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }
.budget-period-label .eyebrow { display: block; font-size: 8px; margin-bottom: 4px; }
.budget-period-label strong { font-size: 17px; font-weight: 600; text-transform: capitalize; }
.method-indicator { border: 0; background: #faf7f4; padding: 10px 13px; display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 11px; font-size: 11px; color: #815f51; }
.method-indicator small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.method-indicator > .ui-icon { width: 16px; height: 16px; color: #bd8b71; }
.method-indicator:hover { background: #f6ebe4; }
.method-indicator:disabled { cursor: wait; opacity: .65; }
.method-toggle { width: 27px; height: 16px; border-radius: 12px; background: #e5d9ce; position: relative; flex: 0 0 27px; }
.method-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: #fff; border-radius: 50%; transition: transform .18s; }
.method-toggle.is-fixed { background: #af95bf; }
.method-toggle.is-fixed::after { transform: translateX(11px); }
.month-navigation { display: flex; align-items: center; gap: 8px; }
.month-select { font-size: 9px; color: var(--muted); }
.month-select input { display: block; background: #faf8fc; border: 1px solid #e7e0ed; color: var(--ink); border-radius: 8px; padding: 7px 8px; margin-top: 4px; font-size: 12px; max-width: 170px; }
.budget-toolbar { margin-bottom: 22px; }
.budget-tabs { display: inline-flex; gap: 4px; padding: 5px; background: #eae6f0; border-radius: 12px; border: 0; }
.budget-tabs button { border-radius: 9px; padding: 11px 14px; font-size: 11px; font-weight: 550; color: #736780; min-height: 38px; }
.budget-tabs button.active { color: #6e518e; background: #fff; box-shadow: 0 2px 5px #31283e08; }
.budget-tabs button:not(.active):hover { background: #ffffff65; }
.budget-stats > .card { background: white; color: var(--ink); border: 1px solid var(--line); padding: 20px; }
.budget-stats > .card:first-child .metric-label, .budget-stats > .card:first-child .metric-foot { color: var(--muted); }
.budget-stats > .stat-card.is-positive { background: var(--sage-light); border-color: #deebe2; }
.budget-stats > .stat-card.is-negative { background: var(--peach-light); border-color: #f2d7cc; }
.budget-stats .metric-label { min-height: 0; }
.budget-info { display: block; background: #f0ecf6; border: 1px solid #e7dfef; border-radius: 12px; color: #756681; font-size: 11px; line-height: 1.85; padding: 16px 19px; margin-bottom: 22px; }
.budget-info > .ui-icon { width: 17px; height: 17px; margin-right: 4px; }
.budget-info .button { margin-left: 12px; }
.budget-table { font-size: 12px; width: 100%; border-collapse: collapse; }
.budget-table th { color: #7c7188; font-size: 10px; font-weight: 550; line-height: 1.7; padding: 12px 13px; border-bottom: 1px solid var(--line); background: #faf8fc; }
.budget-table td { padding: 15px 13px; border-bottom: 1px solid #f1edf4; color: #645a70; vertical-align: middle; }
.budget-table td strong { color: #44394e; font-weight: 550; }
.budget-table td.numeric { font-size: 12px; color: #4b4056; font-weight: 500; font-variant-numeric: tabular-nums; }
.budget-table tr:hover td { background: #fcfafd; }
.budget-table small { color: var(--muted); font-size: 10px; line-height: 1.65; margin-top: 5px; }
.budget-table .negative, .negative { color: #ad4934 !important; }
.budget-table .positive, .positive { color: #2d7456 !important; }
.budget-table .transfer-group th, .budget-table .transfer-group td { background: #f5f1f9; font-weight: 650; }
.table-scroll { scrollbar-width: thin; scrollbar-color: #d6cbe1 transparent; border-radius: 10px; }
.budget-table .actual-input { width: 120px; max-width: 120px; min-height: 35px; background: #faf8fc; border: 1px solid #e8e1ef; padding: 7px 0; border-radius: 8px; color: var(--ink); }
.budget-help { color: var(--muted); line-height: 1.8; font-size: 11px; }
.category-heading h3 { font-size: 12px; color: #755e89; font-weight: 600; }
.budget-category + .budget-category { margin-top: 26px; }
.transfer-method { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px 21px; margin-bottom: 22px; }
.transfer-method p { font-size: 11px; line-height: 1.85; color: var(--muted); }

/* Tasks: small, useful details and feedback only after a successful save. */
.household-scoreboard { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.point-person { padding: 17px 18px; border-color: var(--line); background: #fff; border-radius: 15px; gap: 11px; }
.point-person.selected { background: #f6f2fb; border-color: #d7c8e8; box-shadow: none; }
.point-avatar { width: 36px; height: 36px; border-radius: 12px; color: #7d629a; background: #eae1f3; }
.point-person-info strong { font-size: 12px; }
.point-person-info small, .point-balance small { color: var(--muted); font-size: 9px; }
.point-balance { font-size: 25px; color: #78608f; }
.point-help { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 12px 0 24px; }
.task-tabs { margin-bottom: 22px; }
.task-list-toolbar .tabs { gap: 4px; }
.tabs button { min-height: 34px; padding: 8px 10px; font-size: 10px; color: #7a6d86; border-radius: 8px; }
.tabs button.selected { background: #f0e9f7; color: #77558e; }
.task-scope { color: var(--muted); }
.task-scope select { padding: 10px; color: #6b587b; border-color: #e5dcec; }
.expanded-task { padding: 20px 0; border-bottom: 1px solid var(--line); }
.expanded-task:last-child { border-bottom: 0; }
.task-primary { gap: 13px; }
.task-check-target { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; margin: -5px -5px -5px -7px; cursor: pointer; }
.task-check-target .check { margin: 0; }
.check { width: 22px; height: 22px; accent-color: #9476ae; border-radius: 7px; flex-shrink: 0; cursor: pointer; }
.task-title-line { display: flex; gap: 8px; align-items: center; }
.task-title { font-size: 13px; font-weight: 550; color: #504458; line-height: 1.6; }
.task-category-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; color: #a48bb7; background: #f5f0f9; flex-shrink: 0; }
.task-category-icon .ui-icon { width: 15px; height: 15px; }
.task-meta { color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 5px; }
.task-badges { gap: 7px; margin-top: 9px; }
.point-tag { display: inline-flex; gap: 4px; align-items: center; background: #fbf1df; color: #906727; font-size: 10px; font-weight: 550; border-radius: 6px; padding: 4px 7px; }
.point-tag .ui-icon { width: 12px; height: 12px; }
.task-repeat { display: inline-flex; gap: 4px; align-items: center; color: #8b799c; font-size: 9px; }
.task-repeat .ui-icon { width: 12px; height: 12px; }
.task-area { color: var(--muted); font-size: 9px; }
.status-pill { display: inline-flex; gap: 4px; align-items: center; padding: 5px 8px; border-radius: 6px; font-size: 9px; line-height: 1.4; white-space: normal; }
.status-pill .ui-icon { width: 12px; height: 12px; }
.status-pill.complete { background: #e9f3ed; color: #32765c; }
.status-pill.waiting { background: #f2edf8; color: #7b6094; }
.status-pill.overdue { background: #fff0e9; color: #ae543b; }
.task-row-actions { max-width: 180px; gap: 6px 10px; }
.task-row-actions .text-button { font-size: 10px; }
.task-row-actions .button { min-height: 34px; padding: 8px 10px; font-size: 10px; }
.task-overdue .task-category-icon { background: #fdf0e9; color: #b98067; }
.task-done .task-category-icon { background: #edf4ee; color: #71927b; }
.task-done .task-title { color: #8a8292; }
.task-checklist { border-color: #eae1f2; }
.subtask { font-size: 12px; color: var(--muted); }
.task-checklist > small { color: var(--muted); font-size: 9px; }
.task-saving { opacity: .45; transition: opacity .2s; pointer-events: none; }
.persistent-task { border-color: #e9dfef; background: #fdfbff; border-radius: 14px; padding: 18px; }
.persistent-task .card-header { margin-bottom: 12px; }
.persistent-task .card-header h2 { font-size: 14px; }
.weekly-progress { background: #eee7f4; height: 5px; border-radius: 5px; overflow: hidden; margin: 12px 0 7px; }
.weekly-progress span { display: block; height: 100%; background: #ae99c6; border-radius: 5px; }
.completion-feedback { display: flex; gap: 12px; align-items: center; position: fixed; top: 90px; left: calc(50% + var(--sidebar) / 2); z-index: 60; transform: translate(-50%, -15px) scale(.95); opacity: 0; pointer-events: none; background: #fff; padding: 16px 25px; border: 1px solid #e7dfed; border-radius: 18px; box-shadow: 0 14px 60px #4b345122; transition: opacity .25s, transform .3s; }
.completion-feedback.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.completion-feedback > .ui-icon { width: 32px; height: 32px; color: #c49147; fill: #fcf0d9; }
.completion-feedback strong { display: block; font-size: 17px; color: #6f538a; }
.completion-feedback small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.toast { background: #4b3c5d; color: #fff; font-size: 12px; border-radius: 12px; padding: 14px 22px; box-shadow: 0 8px 32px #3e2d5320; }

/* A small reward shop and tickets saved for another day. */
.shop-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 29px 32px; border: 1px solid #e3d9ee; border-radius: 20px; background: #eee7f5; margin-bottom: 30px; }
.shop-banner .eyebrow { color: #806b96; margin: 0 0 10px; font-size: 9px; }
.shop-banner h2 { font-size: clamp(21px, 2.3vw, 29px); letter-spacing: -.8px; font-weight: 600; color: #654c7b; margin: 0; }
.shop-banner p:last-child { font-size: 12px; color: #7e6a92; line-height: 1.8; margin: 11px 0 0; max-width: 430px; }
.shop-balance { background: #ffffff70; border: 1px solid #ffffffb0; display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 9px; padding: 19px 24px; border-radius: 17px; flex-shrink: 0; }
.shop-balance .ui-icon { color: #ad854b; width: 23px; height: 23px; }
.shop-balance strong { font-size: 30px; font-weight: 650; color: #6e5387; font-variant-numeric: tabular-nums; }
.shop-balance span { grid-column: 2; font-size: 10px; color: #7d698e; }
.rewards-intro { margin: 0 0 21px; }
.rewards-intro h2 { font-size: 20px; letter-spacing: -.5px; color: #51415e; }
.rewards-intro p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.reward-grid { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reward-card { padding: 0; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.reward-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #4938540b; }
.reward-art { display: grid; place-items: center; height: 158px; background: #fcf0e4; position: relative; overflow: hidden; color: #b77f58; }
.reward-lavender .reward-art { background: #eee7f7; color: #9375b1; }
.reward-sage .reward-art { background: #eaf2e9; color: #73947c; }
.reward-art-orbit { width: 128px; height: 128px; border: 1px solid currentColor; opacity: .15; border-radius: 50%; position: absolute; transform: translate(26px, 4px); }
.reward-art::after { content: ""; position: absolute; width: 96px; height: 96px; background: white; opacity: .24; border-radius: 50%; transform: translate(-25px, -5px); }
.reward-art-icon { z-index: 1; transform: rotate(-8deg); }
.reward-art-icon .ui-icon { width: 68px; height: 68px; stroke-width: 1.2; }
.reward-art .reward-spark { position: absolute; top: 31px; right: 24%; width: 24px; height: 24px; opacity: .7; }
.reward-card-content { padding: 21px; display: flex; flex-direction: column; flex: 1; }
.reward-card-meta { display: flex; gap: 9px; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
.reward-type { color: var(--muted); font-size: 9px; margin: 0; line-height: 1.7; }
.stock-label { margin: 0; background: #f2edf8; color: #7c6590; border-radius: 5px; padding: 4px 6px; font-size: 9px; }
.stock-empty { background: #f3efee; color: #867e7b; }
.reward-card h2 { font-size: 18px; color: #4d3d5b; letter-spacing: -.4px; line-height: 1.5; margin: 0; }
.reward-description { color: var(--muted); font-size: 12px; line-height: 1.85; flex: 1; margin: 10px 0 14px; overflow-wrap: anywhere; }
.reward-recipient { display: inline-flex; align-items: center; gap: 6px; color: #85748f; font-size: 9px; line-height: 1.7; }
.reward-recipient .ui-icon { width: 13px; height: 13px; }
.reward-bottom { margin-top: 18px; padding-top: 18px; }
.reward-bottom strong { font-size: 25px; color: #74588c; font-variant-numeric: tabular-nums; }
.reward-bottom small { font-size: 10px; color: var(--muted); }
.reward-bottom .button { font-size: 10px; padding: 10px 12px; }
.reward-controls { margin-top: 14px; padding-top: 9px; justify-content: space-between; }
.reward-controls .text-button { font-size: 9px; }
.reward-sold-out .reward-art { filter: saturate(.3); }
.count-bubble { display: inline-grid; place-items: center; min-width: 23px; height: 23px; background: #eae0f2; color: #806494; font-size: 11px; padding: 0 6px; border-radius: 7px; vertical-align: middle; margin-left: 5px; }
.coupon { padding: 24px; border: 1px solid #dcd0e7; background: #fff; }
.coupon-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.coupon-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #f0e9f7; color: #9672ae; }
.coupon-icon .ui-icon { width: 25px; height: 25px; stroke-width: 1.5; }
.coupon h2 { margin-top: 9px; }
.coupon > p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 10px 0 21px; min-height: 0; }
.coupon-perforation { border-top: 1px dashed #d9cce4; display: flex; flex-direction: column; gap: 7px; margin: 0 -24px 17px; padding: 19px 24px 0; }
.coupon-code { color: #9a83af; letter-spacing: 3px; font-size: 14px; margin: 0; }
.coupon-perforation > span { color: var(--muted); font-size: 9px; }
.coupon .button { width: 100%; }
.coupon.used { opacity: .7; background: #faf9fc; }
.coupon-history { margin: 28px 0; }
.coupon-history summary { cursor: pointer; font-size: 13px; color: #796888; padding: 10px 0 18px; }

/* Calendar, inputs and secondary screens share the same finish. */
.calendar-head { margin-bottom: 24px; }
.calendar-head strong { font-size: 17px; font-weight: 600; text-transform: capitalize; }
.calendar-head > div { display: flex; gap: 6px; align-items: center; }
.calendar-head .button { min-height: 34px; padding: 8px 10px; font-size: 10px; }
.calendar .day-label { color: var(--muted); font-size: 10px; font-weight: 500; }
.big-calendar .day { border-radius: 11px; border-color: #efeaf3; min-height: 86px; padding: 10px 7px; font-size: 12px; color: #6b5b78; text-align: left; }
.big-calendar .day.today { color: #b35a3f; font-weight: 650; background: #fff5ed; }
.big-calendar .day.selected { background: #ede5f6; border-color: #d7c6e6; color: #725586; }
.big-calendar .day.out { opacity: .42; }
.event-chip { background: #e9e1f4; color: #7b5a91; padding: 4px 5px; border-radius: 5px; font-size: 8px; }
.event { padding: 17px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.event-time { background: #f3edf9; color: #8c70a1; border-radius: 9px; font-size: 11px; padding: 8px; min-width: 47px; text-align: center; }
.event-title { font-size: 12px; font-weight: 550; color: #57465f; line-height: 1.6; }
.event-place { font-size: 10px; line-height: 1.7; color: var(--muted); }
.habit { border-bottom-color: var(--line); padding: 15px 0; }
.field { color: #71627f; font-size: 12px; line-height: 1.7; }
.field input, .field select, .field textarea { background: #fbf9fd; border-color: #e6dfee; border-radius: 9px; padding: 12px 13px; color: var(--ink); font-size: 13px; min-height: 42px; }
.field input::placeholder, .field textarea::placeholder { color: #9c91a6; }
.form-error { color: #ad4934; font-size: 12px; }
.form-row { gap: 14px; }
.series-row p, .series-row small { color: var(--muted); line-height: 1.7; }
.series-row strong { font-size: 13px; color: #62506f; }
.notes-grid .note-preview { color: var(--muted); font-size: 12px; line-height: 1.8; }
.member-budget-row { font-size: 12px; padding: 17px 0; }
.category-chips button { color: #76598a; background: #f4eef9; border-color: #e8dff0; border-radius: 9px; min-height: 35px; font-size: 11px; }
footer { color: #8b8095; font-size: 10px; padding: 25px 40px; border-top: 1px solid var(--line); }
dialog { border-color: #e5ddeb; border-radius: 22px; width: min(520px, calc(100% - 30px)); padding: 28px; box-shadow: 0 25px 100px #30233d26; }
dialog::backdrop { background: #33253e55; backdrop-filter: blur(4px); }
.modal-heading h2 { font-size: 23px; color: #554161; letter-spacing: -.6px; }
.modal-actions { gap: 9px; padding-top: 13px; }
.auth-layout { background: radial-gradient(ellipse at 12% 70%, #efe7f750, transparent 55%); }
.auth-card { border-color: #e7e0ee; box-shadow: 0 20px 80px #46304e08; }
.auth-story > h1 { color: #52425f; }
.auth-story > p:not(.eyebrow) { color: var(--muted); }
.auth-card .subtitle { color: var(--muted); }
.auth-foot { color: var(--muted); font-size: 10px; }
.auth-links button { color: #876299; }

/* Four clear destinations on mobile; the rest lives in the More sheet. */
.mobile-navigation { display: none; }
.mobile-menu { max-height: 85dvh; overflow: auto; }
.mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.mobile-menu-heading .eyebrow { margin: 0 0 5px; }
.mobile-menu-heading h2 { font-size: 23px; margin: 0; color: #624d74; }
.mobile-menu-content { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu-link { display: flex; align-items: center; gap: 11px; background: #f8f5fb; border: 1px solid #ede5f3; color: #725885; padding: 15px; min-height: 57px; border-radius: 12px; font-size: 12px; text-align: left; }
.mobile-menu-link span { flex: 1; }
.mobile-menu-link > .ui-icon:last-child { width: 14px; color: #ad98be; }
.mobile-menu-link.active { background: #fceee6; border-color: #f1ddd0; color: #a55740; }
.auth-mode .mobile-navigation, .auth-mode .completion-feedback { display: none; }

@media (min-width: 1450px) {
  main { padding-inline: 48px; }
  .dashboard-widget { padding: 27px; }
}
@media (max-width: 1150px) {
  main { padding: 29px 27px; }
  .topbar { padding-inline: 27px; }
  .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-greeting h1 { font-size: 34px; }
  .greeting-flower { width: 62px; height: 62px; }
  .greeting-side .heading-actions { flex-direction: column; align-items: stretch; }
  .budget-context { gap: 16px; }
  .month-navigation { margin-left: auto; }
  .budget-stats .budget-stat-value { font-size: 25px; }
  .budget-stats > .card { padding: 17px; }
}
@media (min-width: 651px) and (max-width: 900px) {
  :root { --sidebar: 78px; }
  .sidebar { padding: 25px 12px; }
  .sidebar .brand { display: block; overflow: hidden; width: 38px; height: 40px; }
  .sidebar .brand-logo { width: 171px; max-width: none; }
  .sidebar .nav-item { padding: 12px 16px; width: 54px; min-height: 46px; justify-content: center; }
  .sidebar .nav-text { display: none; }
  .sidebar .local-status { display: none; }
  .dashboard-greeting h1 { font-size: 31px; }
  .greeting-flower { display: none; }
  .section-grid { display: grid; grid-template-columns: 1fr; }
  .calendar.big-calendar { min-height: 450px; }
}
@media (max-width: 700px) {
  .dashboard-span-3.dashboard-metric { grid-column: span 6; }
  .dashboard-greeting { gap: 16px; flex-wrap: wrap; padding-bottom: 24px; }
  .greeting-side { align-items: flex-start; width: 100%; }
  .greeting-side .heading-actions { flex-direction: row; width: 100%; }
  .greeting-flower { display: none; }
  .dashboard-widget { padding: 20px; }
  .dashboard-widget .budget-stat-value { font-size: 27px; }
  .dashboard-catalog .dashboard-catalog-option { min-height: 70px; }
  .budget-stats > .card { padding: 17px; }
  .stat-icon { width: 29px; height: 29px; border-radius: 9px; }
}
@media (max-width: 650px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  main { padding: 24px 17px 24px; }
  .topbar { height: 62px; min-height: 62px; padding-inline: 18px; }
  .breadcrumbs { font-size: 11px; gap: 8px; }
  .breadcrumbs > span:first-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-actions .text-button { font-size: 10px; min-height: 40px; }
  .top-actions { gap: 11px; }
  .profile { width: 32px; height: 32px; border-radius: 10px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 27px; letter-spacing: -1px; }
  .page-heading .subtitle { font-size: 12px; margin-bottom: 0; }
  .heading-actions .button, .button { min-height: 44px; }
  .card { padding: 20px; border-radius: 16px; }
  .card-header h2 { font-size: 15px; }
  .card-header .button { min-height: 36px; }
  .dashboard-greeting h1 { font-size: 32px; letter-spacing: -1.3px; }
  .greeting-date { font-size: 9px; margin-bottom: 12px; }
  .greeting-status { gap: 14px; margin-top: 18px; }
  .greeting-status > span { font-size: 11px; }
  .dashboard-greeting .subtitle { font-size: 12px; }
  .greeting-side .button { font-size: 11px; padding: 10px 13px; }
  .dashboard-widget .metric-label { font-size: 10px; }
  .dashboard-widget .budget-stat-value { font-size: 25px; margin-top: 17px; }
  .dashboard-widget .metric-foot { font-size: 9px; }
  .dashboard-metric { padding: 17px; }
  .dashboard-metric .stat-heading { align-items: flex-start; gap: 5px; }
  .dashboard-metric .stat-icon { width: 24px; height: 24px; border-radius: 7px; }
  .dashboard-metric .stat-icon .ui-icon { width: 14px; height: 14px; }
  .dashboard-widget-editing { padding: 0; }
  .dashboard-edit-banner { font-size: 12px; }
  .dashboard-week { gap: 7px; }
  .week-day { min-height: 70px; }
  .budget-context { padding: 16px; gap: 15px; border-radius: 14px; margin-bottom: 17px; }
  .budget-period-label { min-width: 0; }
  .budget-period-label strong { font-size: 16px; }
  .budget-period-label .eyebrow { font-size: 7px; }
  .method-indicator { order: 3; width: 100%; background: #faf6f2; min-height: 44px; }
  .method-indicator > span:not(.method-toggle) { flex: 1; }
  .month-navigation { gap: 3px; }
  .month-navigation > .icon-button { min-width: 32px; width: 32px; min-height: 44px; }
  .month-select { max-width: 126px; font-size: 8px; }
  .month-select input { padding: 6px; max-width: 126px; font-size: 11px; min-height: 35px; }
  .context-icon { display: none; }
  .budget-toolbar { display: block; margin-bottom: 18px; }
  .budget-tabs { display: flex; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 10px; padding: 5px; }
  .budget-tabs button, .task-tabs button { flex: 0 0 auto !important; min-height: 40px; white-space: nowrap; font-size: 10px; padding: 10px 13px; min-width: auto; }
  .budget-plan-views { width: auto; }
  .budget-plan-toolbar { gap: 14px; }
  .budget-stats { gap: 12px; }
  .budget-stats .budget-stat-value { font-size: 24px; letter-spacing: -.7px; }
  .budget-stats .metric-foot { font-size: 9px; }
  .budget-stats .metric-label { font-size: 10px; }
  .budget-info { font-size: 10px; padding: 14px 15px; margin-bottom: 19px; }
  .budget-info .button { margin: 10px 0 0; }
  .budget-table { font-size: 11px; }
  .budget-table th { padding: 11px; font-size: 9px; }
  .budget-table td { padding: 14px 11px; font-size: 11px; }
  .budget-table td.numeric { font-size: 11px; }
  .budget-table .actual-input { font-size: 16px; min-height: 44px; }
  .budget-help { font-size: 10px; }
  .household-scoreboard { display: flex; overflow-x: auto; gap: 10px; padding: 3px 2px 9px; scroll-snap-type: x proximity; }
  .household-scoreboard .point-person { flex: 0 0 245px; padding: 15px; scroll-snap-align: start; }
  .dashboard-widget .household-scoreboard { display: flex; overflow: visible; }
  .dashboard-widget .point-person { flex: auto; }
  .point-person-info strong { font-size: 12px; }
  .household-scoreboard .point-balance { font-size: 23px; }
  .point-help { font-size: 9px; margin-bottom: 18px; }
  .task-list-toolbar { gap: 15px; padding-bottom: 13px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
  .task-list-toolbar .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 2px 0 5px; }
  .tabs button { white-space: nowrap; flex-shrink: 0; min-height: 40px; }
  .task-scope select { min-height: 44px; font-size: 12px; }
  .task-primary { gap: 11px; }
  .task-check-target .check { width: 24px; height: 24px; }
  .task-title { font-size: 13px; }
  .task-category-icon { width: 24px; height: 24px; }
  .task-title-line { gap: 7px; }
  .task-meta { font-size: 10px; }
  .task-row-actions { max-width: none; gap: 8px; margin-left: 35px; width: calc(100% - 35px); }
  .task-row-actions .text-button { min-height: 40px; padding: 10px 6px; }
  .task-row-actions .button { min-height: 42px; }
  .task-row-actions .delete { min-height: 40px; min-width: 40px; }
  .task-checklist { margin-left: 35px; }
  .subtask { padding: 5px 0; min-height: 40px; }
  .subtask .check { width: 20px; height: 20px; }
  .persistent-task { padding: 15px; }
  .shop-banner { padding: 24px 20px; gap: 18px; align-items: flex-start; flex-wrap: wrap; border-radius: 17px; }
  .shop-banner h2 { font-size: 25px; }
  .shop-banner p:last-child { font-size: 11px; }
  .shop-balance { grid-template-columns: auto auto auto; padding: 10px 15px; gap: 10px; }
  .shop-balance strong { font-size: 24px; }
  .shop-balance span { grid-column: auto; }
  .rewards-intro { align-items: flex-start; gap: 15px; }
  .rewards-intro h2 { font-size: 18px; }
  .rewards-intro p { font-size: 11px; }
  .rewards-intro .button { min-height: 44px; flex-shrink: 0; }
  .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .reward-card { padding: 0; }
  .reward-art { height: 122px; }
  .reward-art-icon .ui-icon { width: 55px; height: 55px; }
  .reward-art .reward-spark { top: 21px; right: 16%; width: 20px; height: 20px; }
  .reward-card-content { padding: 15px; }
  .reward-card h2 { font-size: 15px; }
  .reward-description { font-size: 11px; line-height: 1.7; }
  .reward-recipient { font-size: 8px; }
  .reward-bottom { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; }
  .reward-bottom strong { font-size: 23px; }
  .reward-bottom .button { width: 100%; min-height: 44px; padding: 10px; }
  .reward-controls { flex-wrap: wrap; gap: 3px 10px; }
  .reward-controls .text-button { min-height: 40px; padding-block: 9px; }
  .coupon { padding: 20px; }
  .coupon-perforation { margin-inline: -20px; padding-inline: 20px; }
  .coupon .button { font-size: 11px; min-height: 44px; }
  .coupon .reward-type { font-size: 8px; }
  .coupon-heading { flex-wrap: wrap; gap: 11px; }
  .coupon-code { font-size: 12px; letter-spacing: 2px; }
  .calendar-head { gap: 10px; }
  .calendar-head strong { font-size: 15px; }
  .calendar-head .icon-button { min-width: 36px; min-height: 44px; }
  .calendar-head .button { min-height: 44px; }
  .big-calendar .day { min-height: 66px; padding: 8px 4px; font-size: 11px; }
  .event-chip { font-size: 7px; padding: 3px; }
  .calendar { gap: 4px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 46px; }
  .form-row { flex-wrap: wrap; }
  dialog { padding: 24px 21px; border-radius: 20px; }
  .mobile-navigation { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #ffffffed; backdrop-filter: blur(18px); padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #eae3ef; box-shadow: 0 -3px 20px #30233904; }
  .mobile-navigation button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 6px; min-height: 49px; border-radius: 11px; color: #8b7f98; font-size: 9px; font-weight: 500; }
  .mobile-navigation .ui-icon { width: 20px; height: 20px; }
  .mobile-navigation .active { color: #ad543e; background: #fcf0e9; }
  .mobile-menu { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 23px 23px 0 0; border: 0; padding: 27px 22px calc(27px + env(safe-area-inset-bottom)); }
  .mobile-menu-heading::before { content: ""; position: absolute; top: 10px; left: calc(50% - 18px); height: 4px; width: 36px; background: #e1d7e9; border-radius: 4px; }
  .mobile-menu-content { gap: 10px; }
  .mobile-menu-link { padding: 15px 12px; font-size: 11px; }
  .mobile-menu-link > .ui-icon:last-child { display: none; }
  .completion-feedback { top: 75px; width: max-content; max-width: calc(100% - 36px); }
  .toast { bottom: calc(91px + env(safe-area-inset-bottom)); max-width: calc(100% - 30px); width: max-content; padding: 13px 18px; font-size: 11px; }
  footer { margin-bottom: calc(76px + env(safe-area-inset-bottom)); padding: 20px 18px; font-size: 9px; }
  .auth-layout { padding: 30px 21px; }
}
@media (max-width: 370px) {
  .reward-grid { grid-template-columns: 1fr; }
  .greeting-status { gap: 9px; }
  .dashboard-greeting h1 { font-size: 29px; }
  .budget-stats .budget-stat-value { font-size: 21px; }
  .stat-heading { align-items: flex-start; }
  .budget-stats .stat-icon { display: none; }
  .budget-period-label strong { font-size: 14px; }
  .month-navigation { gap: 0; }
  .month-select input { max-width: 115px; }
  .budget-context { gap: 10px; }
  .reward-bottom { flex-direction: row; align-items: center; }
  .reward-bottom .button { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Reward quotas use server-calculated calendar windows. */
.reward-quota { padding: 11px 12px; margin-top: 15px; border-radius: 9px; background: #f5f1fa; color: #785e8d; }
.reward-quota > span { display: flex; align-items: flex-start; gap: 6px; }
.reward-quota strong { font-size: 10px; line-height: 1.6; font-weight: 550; }
.reward-quota .ui-icon { width: 13px; height: 13px; margin-top: 2px; }
.reward-quota small { display: block; font-size: 9px; line-height: 1.8; color: #81708f; margin: 5px 0 0; }
.reward-quota.quota-exhausted { background: #fcf0e9; color: #a65c45; }
.reward-limit-fields { background: #f8f5fb; padding: 17px; border: 1px solid #eae1f1; border-radius: 12px; margin: 18px 0; }
.reward-limit-fields h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #765b8e; margin: 0 0 15px; }
.reward-limit-fields h3 .ui-icon { width: 16px; height: 16px; }
.reward-limit-fields .form-row { display: grid; grid-template-columns: 1fr; }
.reward-limit-fields [hidden] { display: none; }
