@charset "UTF-8";
/* v0.10: one action hierarchy across navigation, forms and daily controls. */
:root { --action-primary: #326c51; --action-on-primary: #fff; --action-secondary: #eaf0e7; --action-secondary-ink: #36533e; --action-tool: #5d705f; --action-danger: #a33b37; --action-danger-soft: #fbece8; --action-disabled: #e2e7df; --action-disabled-ink: #5a685b; --action-focus: #9a7023; }
* { box-sizing: border-box; }
html { width: 100%; height: 100%; overflow: hidden; -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; margin: 0; overflow: hidden; background: #f6f7f3; color: #263b32; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; color: inherit; background: none; cursor: pointer; touch-action: manipulation; transition: filter .12s, background-color .12s, box-shadow .12s; }
button:enabled:not([aria-busy="true"]):active { filter: brightness(.92); }
button:disabled:not([aria-busy="true"]) { cursor: not-allowed; color: var(--action-disabled-ink); background: var(--action-disabled); opacity: 1; filter: none; box-shadow: none; }
button.btn:disabled:not([aria-busy="true"]), button.icon-button:disabled:not([aria-busy="true"]), button.companion-interact:disabled:not([aria-busy="true"]) { color: var(--action-disabled-ink); background: var(--action-disabled); border-color: transparent; opacity: 1; }
button[aria-busy="true"] { position: relative; cursor: progress; pointer-events: none; opacity: 1; filter: none; }
button[aria-busy="true"]::after { content: ""; position: absolute; left: 8%; bottom: 4px; width: 24%; height: 3px; border-radius: 3px; background: currentColor; opacity: .5; pointer-events: none; animation: action-pending 1s ease-in-out infinite alternate; }
@keyframes action-pending { from { transform: translateX(0); } to { transform: translateX(240%); } }
button:focus, a:focus, input:focus, textarea:focus, select:focus, summary:focus { outline: 3px solid var(--action-focus); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--action-focus); outline-offset: 2px; }
.manage-row:focus, .menu-row:focus, .task-open:focus { outline-offset: -3px; }
input, select, textarea { min-width: 0; max-width: 100%; font-size: 16px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong, b { font-weight: 650; }
h1 { font-size: 18px; letter-spacing: .3px; }
h2 { font-size: 23px; line-height: 1.4; letter-spacing: -.5px; }
h3 { font-size: 18px; }
small { font-size: 13px; }
em { font-style: normal; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 23px; height: 23px; flex-shrink: 0; vertical-align: middle; }
.full { width: 100%; }
.skip-link { position: fixed; z-index: 300; top: -100px; left: 16px; padding: 14px; border-radius: 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.loading-screen { padding: 30vh 24px 24px; text-align: center; }
.loading-mark { font-size: 28px; font-weight: 700; }
.loading-screen p { margin-top: 12px; color: #58675f; }
#app { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.app-shell { display: -webkit-flex; display: flex; flex-direction: column; height: 100vh; height: var(--app-height, 100vh); width: 100%; overflow: hidden; }
.app-header { display: flex; align-items: center; flex-shrink: 0; min-height: 74px; padding: 12px 28px; padding-top: calc(12px + constant(safe-area-inset-top)); padding-top: calc(12px + env(safe-area-inset-top)); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 11px; border-radius: 13px; background: #e4eddf; color: #456f4c; }
.brand-mark .icon { width: 22px; height: 22px; }
.app-title { flex: 1; min-width: 0; }
.date-label { display: block; margin-top: 1px; font-size: 12px; color: #5e6d63; }
.connection-state { margin-left: 8px; color: #99602d; font-size: 11px; white-space: nowrap; }
.header-tools { display: flex; align-items: center; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; min-width: 48px; height: 48px; padding: 0; border-radius: 15px; color: var(--action-tool); }
.header-tools .icon-button { background: #edf0e9; margin-left: 8px; }
.app-main { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.app-main:focus { outline: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; min-width: 48px; padding: 12px 20px; border-radius: 15px; background: var(--action-secondary); color: var(--action-secondary-ink); font-size: 16px; font-weight: 650; line-height: 1.4; text-align: center; }
.btn .icon { margin-right: 8px; }
.btn.primary, .btn.reminder-primary { color: var(--action-on-primary); background: var(--action-primary); font-weight: 700; box-shadow: 0 2px 5px rgba(42, 89, 66, .13); }
.btn.outline { border: 1px solid #cbd7c7; background: #fff; color: var(--action-secondary-ink); }
.btn.danger { border: 1px solid #ecc9c1; color: var(--action-danger); background: var(--action-danger-soft); }
.btn.danger-primary { color: #fff; background: var(--action-danger); font-weight: 700; box-shadow: 0 2px 5px rgba(133, 44, 39, .12); }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 10px 9px; border-radius: 12px; color: var(--action-tool); font-size: 14px; font-weight: 600; white-space: nowrap; }
.text-button .icon { width: 18px; height: 18px; margin-left: 3px; }
.text-button .icon:first-child { margin-left: 0; margin-right: 4px; }
.text-button.danger { color: var(--action-danger); }
.bottom-nav { display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 9px 24px 10px; padding-bottom: calc(10px + constant(safe-area-inset-bottom)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #dde4db; background: #fffefa; }
.main-tabs { display: flex; align-items: stretch; flex: 1; max-width: 480px; }
.nav-item { display: flex; align-items: center; justify-content: center; min-height: 56px; flex: 1; min-width: 0; padding: 10px 16px; border-radius: 17px; font-size: 17px; color: #5e6b64; font-weight: 650; }
.nav-item + .nav-item { margin-left: 8px; }
.nav-item .icon { margin-right: 9px; }
.nav-item.active { background: var(--action-secondary); color: var(--action-primary); }
.voice-entry { display: flex; align-items: center; justify-content: center; min-width: 140px; min-height: 52px; margin-left: 32px; padding: 10px 18px; border: 1px solid #d6ddd2; border-radius: 18px; background: #f8f8f4; font-size: 16px; font-weight: 600; }
.voice-entry .icon { margin-right: 8px; }
.points-screen { display: flex; align-items: flex-start; max-width: 1440px; margin: 0 auto; padding: 8px 28px 28px; }
.points-column { flex: 0 0 45%; min-width: 0; padding-right: 26px; }
.gifts-column { flex: 1; min-width: 0; padding: 1px 0 0 26px; border-left: 1px solid #dfe5da; }
.balance-block { padding: 23px 25px 24px; border: 1px solid #d7e3cf; border-radius: 27px; background: #e8f0e1; }
.balance-top { display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: #3b5646; }
.balance-top .text-button { min-height: 48px; margin: -12px -8px -12px 4px; font-size: 13px; }
.balance-top .icon { width: 15px; }
.balance-number { display: flex; align-items: baseline; line-height: 1.05; margin: 9px 0 7px; }
.balance-number strong { font-size: 88px; letter-spacing: -4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-number > span { margin-left: 13px; font-size: 20px; }
.balance-total { display: flex; align-items: center; color: #506452; font-size: 14px; }
.balance-total b { margin: 0 4px; }
.balance-total > span { margin-left: auto; font-size: 13px; }
.add-points-main { margin-top: 21px; width: 100%; min-height: 60px; font-size: 23px; border-radius: 18px; }
.balance-actions { display: flex; align-items: stretch; margin-top: 21px; }
.balance-actions .add-points-main { margin-top: 0; }
.reward-jump { display: none; }
.add-points-main .icon { width: 25px; height: 25px; margin-right: 10px; }
.common-section { margin-top: 19px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; min-height: 50px; margin-bottom: 10px; }
.section-heading h2 { font-size: 21px; }
.heading-actions { display: flex; align-items: center; margin-right: -9px; }
.behavior-grid { display: flex; flex-wrap: wrap; margin: -5px; }
.behavior-card { display: flex; align-items: center; width: calc(50% - 10px); min-height: 86px; padding: 13px 14px; margin: 5px; border: 1px solid #e0e5da; border-radius: 18px; background: #fffefa; text-align: left; }
.behavior-card > span { flex: 1; min-width: 0; }
.behavior-card b { display: block; font-size: 16px; }
.behavior-card small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 4px; color: #606c61; font-size: 12px; line-height: 1.5; }
.behavior-card > strong { align-self: flex-start; margin-left: 10px; color: #386449; font-size: 19px; line-height: 1.4; }
.recent-entry { margin-top: 16px; padding: 12px 3px 0; border-top: 1px solid #dfe5da; color: #5c6a60; font-size: 12px; }
.recent-entry > span { display: block; }
.recent-entry p { display: flex; align-items: center; margin-top: 4px; }
.recent-entry b { color: #394b40; font-size: 13px; }
.recent-entry small { margin-left: auto; font-size: 11px; }
.recent-entry em { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-tabs { display: flex; align-items: center; margin: 12px 0 17px; padding: 4px; background: #e9eee5; border-radius: 15px; }
.filter-tab { flex: 1; min-width: 0; min-height: 48px; padding: 9px 10px; border-radius: 12px; color: #516454; font-size: 14px; }
.filter-tab.active { color: var(--action-primary); background: #fff; box-shadow: 0 1px 4px rgba(37, 63, 37, .08); font-weight: 700; }
.rewards-grid { display: flex; flex-direction: column; }
.reward-card { display: flex; align-items: center; width: 100%; min-height: 94px; padding: 15px 16px; margin-bottom: 8px; border: 0; border-radius: 17px; background: #fff; text-align: left; }
.reward-symbol { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 62px; height: 62px; border-radius: 18px; background: #e7eee0; color: #5d7550; }
.reward-symbol.weekend { background: #f7e9d5; color: #946632; }
.reward-symbol.outing { background: #e7eaf6; color: #6574a0; }
.reward-symbol .icon { width: 30px; height: 30px; }
.reward-info { display: flex; flex-wrap: wrap; align-items: baseline; flex: 1; min-width: 0; margin: 0 12px 0 17px; }
.reward-info > strong { flex: 1; min-width: 100px; font-size: 18px; line-height: 1.4; }
.reward-cost { margin-left: 8px; font-size: 24px; font-weight: 650; color: #3d644a; }
.reward-cost small { font-size: 13px; font-weight: 500; }
.reward-rule { display: block; width: 100%; margin-top: 5px; font-size: 13px; color: #606f61; }
.reward-card > .icon { width: 17px; height: 17px; color: #7b897a; }
.request-strip { padding: 16px 17px; border: 1px solid #d8c592; border-radius: 20px; background: #fff4d8; }
.request-copy strong { display: block; margin-top: 4px; font-size: 18px; }
.request-copy em { margin-left: 14px; font-size: 17px; }
.request-copy small { font-size: 12px; color: #71613e; }
.status-label { display: block; color: #7c5e2c; font-size: 13px; font-weight: 650; }
.request-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.request-actions .btn { flex: 1; min-width: 48px; min-height: 49px; padding-right: 12px; padding-left: 12px; }
.empty-state { padding: 28px 12px; color: #5d6c63; text-align: center; font-size: 15px; }
/* Reminders use one blue accent; actions are always attached to their item. */
.view-reminders { background: #f4f6f8; }
.view-reminders .brand-mark { color: #3f6493; background: #e4ebf3; }
.view-reminders .header-tools .icon-button { background: #e7edf3; }
.reminders-screen { max-width: 1100px; margin: 0 auto; padding: 8px 30px 30px; }
.reminder-heading { display: flex; align-items: center; justify-content: space-between; margin: 7px 0 23px; }
.reminder-heading h2 { font-size: 29px; }
.reminder-heading p { margin-top: 5px; color: #5a6877; font-size: 14px; }
.reminder-heading > .icon-button { margin-left: 12px; border-radius: 50%; color: #35628c; background: #e5edf4; }
.reminder-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.day-tabs { display: flex; align-items: center; min-width: 0; padding: 4px; border-radius: 15px; background: #e7ece1; }
.day-tab { display: inline-flex; align-items: center; justify-content: center; flex: 1; min-width: 64px; min-height: 48px; padding: 10px 19px; border-radius: 11px; font-size: 16px; color: var(--action-tool); white-space: nowrap; }
.reminder-toolbar .day-tabs { flex-shrink: 0; }
.reminder-toolbar .day-tab { flex: 0 0 auto; }
.day-tab small { margin-left: 9px; font-size: 13px; opacity: .85; }
.day-tab.active { color: var(--action-primary); background: #fff; box-shadow: 0 1px 4px rgba(37, 63, 37, .08); font-weight: 700; }
.events-label { padding: 13px 18px; color: #355d8a; font-weight: 600; }
.reminder-toolbar > .text-button { margin-left: 8px; color: #466181; }
.task-row { display: flex; align-items: center; min-height: 78px; margin-bottom: 8px; padding: 6px 10px; border: 0; border-radius: 17px; background: #fff; }
.task-time { display: block; color: #4b6b8a; }
.task-time b { font-size: 14px; font-variant-numeric: tabular-nums; }
.task-time small { margin-left: 5px; color: #7a8997; font-size: 12px; }
.task-open { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 64px; padding: 8px 4px 8px 10px; border-radius: 12px; text-align: left; }
.task-open > .icon { flex-shrink: 0; width: 18px; height: 18px; margin-left: 10px; color: #9aabb8; }
.task-copy { flex: 1; min-width: 0; margin: 0; padding: 0; }
.task-copy strong { display: block; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.task-copy p, .task-copy .task-note { display: block; margin-top: 4px; color: #7a8997; font-size: 13px; overflow-wrap: anywhere; }
.task-copy small { display: block; color: #7a8997; font-size: 12px; }
.task-complete { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; border: 1px solid #dbe4eb; border-radius: 50%; color: #96a7b5; background: #f5f8fa; }
.task-complete .icon { width: 24px; height: 24px; margin: 0; }
.task-row.is-done .task-complete { color: #437354; }
.task-row.is-done { background: #edf2ed; }
.task-row.is-done .task-copy strong { text-decoration: line-through; color: #677583; }
.task-complete.done { background: #e4eaf0; color: #5c6f83; }
.advance-events { margin-top: 23px; padding-top: 12px; border-top: 1px solid #dbe3ed; }
.advance-events .section-heading { margin-bottom: 10px; }
.advance-events h3 { font-size: 18px; color: #3a5c82; }
.advance-events .section-heading > small { color: #5e7187; }
.completed-list { margin-top: 15px; }
.completed-list summary { min-height: 48px; padding: 12px 6px; color: #52677c; cursor: pointer; font-size: 15px; }
.list-footnote { padding-top: 15px; color: #5b6d7e; font-size: 12px; }
#reminder-slot { flex-shrink: 0; }
.reminder-banner { display: flex; align-items: center; justify-content: space-between; margin: 0 28px 13px; padding: 13px 17px; border: 1px solid #dcc78e; border-radius: 19px; background: #fff3d6; }
.reminder-banner-copy { display: flex; align-items: center; min-width: 0; margin-right: 16px; }
.reminder-banner-copy > .icon { margin-right: 12px; color: #896329; }
.reminder-banner-copy > div { min-width: 0; }
.reminder-banner-copy small { display: block; color: #7e6030; font-size: 12px; }
.reminder-banner-copy strong { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reminder-banner-actions { display: flex; align-items: center; flex-shrink: 0; }
.reminder-banner-actions .btn { min-height: 48px; padding: 10px 15px; border-radius: 12px; font-size: 14px; }
.reminder-banner-actions .btn + .btn { margin-left: 7px; }
/* Panel navigation stays fixed while the content scrolls. */
.sheet-overlay { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100vh; height: var(--app-height, 100vh); }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(24, 40, 31, .3); }
.sheet { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: 94%; min-height: 0; overflow: hidden; border-radius: 24px 24px 0 0; background: #f3f5ef; box-shadow: 0 -8px 40px rgba(29, 41, 33, .12); }
.sheet-grip { flex-shrink: 0; width: 32px; height: 4px; margin: 9px auto 3px; border-radius: 4px; background: #c9d2c5; }
.sheet-header { display: flex; align-items: center; flex-shrink: 0; min-height: 64px; padding: 4px 12px 8px; border-bottom: 1px solid #e1e7dc; }
.sheet-nav-start, .sheet-nav-actions { display: flex; align-items: center; flex-shrink: 0; min-height: 48px; }
.sheet-nav-start { width: 48px; }
.sheet-heading { flex: 1; min-width: 0; padding: 0 8px; }
.sheet-header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; line-height: 26px; letter-spacing: 0; }
.sheet-header p { margin-top: 1px; color: #6f7b6d; font-size: 11px; line-height: 16px; }
.sheet-nav-actions { gap: 2px; }
.sheet-header .icon-button { width: 48px; min-width: 48px; height: 48px; margin: 0; border-radius: 50%; color: var(--action-tool); background: transparent; }
.sheet-header .icon-button .icon { width: 22px; height: 22px; }
.icon-button.nav-add { border-radius: 14px; background: var(--action-primary); color: var(--action-on-primary); box-shadow: 0 2px 5px rgba(42, 89, 66, .13); }
.icon-button.nav-add .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.sheet-nav-actions .sheet-save { flex-shrink: 0; min-width: 72px; min-height: 48px; margin: 0; padding: 10px 14px; border-radius: 13px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.sheet-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; margin: 0; }
.sheet-body { flex: 1 1 auto; min-height: 0; padding: 16px 20px 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.sheet-footer { display: flex; align-items: center; flex-shrink: 0; padding: 12px 20px 16px; padding-bottom: calc(16px + constant(safe-area-inset-bottom)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: #f3f5ef; }
.sheet-footer > .btn { flex: 1; min-height: 48px; border-radius: 14px; }
.sheet-footer > .btn + .btn { margin-left: 10px; }
.sheet-footer > .outline { flex: 0 0 auto; min-width: 100px; border: 0; }
.field { display: block; min-width: 0; margin: 0 0 10px; padding: 11px 14px 3px; border-radius: 14px; background: #fff; }
.field > span { display: block; margin-bottom: 0; font-size: 12px; line-height: 18px; font-weight: 550; color: #71806e; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 7px; padding: 10px 0; background: transparent; color: #263b32; font-size: 16px; line-height: 1.5; -webkit-appearance: none; appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--action-focus); outline-offset: 1px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid var(--action-danger); background: #fff8f6; outline-color: var(--action-danger); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { padding-right: 10px; padding-left: 10px; }
.field input:disabled, .field select:disabled, .field textarea:disabled { color: var(--action-disabled-ink); -webkit-text-fill-color: var(--action-disabled-ink); opacity: 1; cursor: not-allowed; }
.field select { padding-right: 22px; -webkit-appearance: menulist; appearance: auto; }
.field input[type="date"], .field input[type="time"] { min-width: 0; width: 100%; min-height: 48px; text-align: left; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #8a9586; }
.field-pair { display: flex; align-items: stretch; gap: 1px; margin: 0 0 10px; border-radius: 14px; background: #e9ede4; }
.field-pair > .field { flex: 1; min-width: 0; width: 50%; margin: 0; padding: 11px 12px 3px; border-radius: 0; }
.field-pair > .field:first-child { border-radius: 14px 0 0 14px; }
.field-pair > .field:last-child { border-radius: 0 14px 14px 0; }
.field-group { margin-bottom: 16px; border-radius: 16px; background: #fff; }
.field-group > .field, .field-group > .field-pair { margin: 0; border-radius: 0; }
.field-group > .field + .field, .field-group > .field + .field-pair, .field-group > .field-pair + .field { border-top: 1px solid #edf0e8; }
.field-group > :first-child { border-radius: 16px 16px 0 0; }
.field-group > :last-child { border-radius: 0 0 16px 16px; }
.field-group > :only-child { border-radius: 16px; }
.form-error { margin-top: 15px; padding: 11px 14px; border-left: 3px solid var(--action-danger); border-radius: 10px; background: var(--action-danger-soft); color: #8b302b; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sheet-form > .form-error { flex: 0 0 auto; margin: 10px 16px 0; max-height: 96px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-form > .form-error:not([hidden]) + .sheet-body { padding-top: 12px; }
.form-type-toggle, .date-shortcuts { display: flex; align-items: center; margin-bottom: 20px; padding: 4px; border-radius: 14px; background: #edf1f3; }
.date-shortcuts .day-tab { min-height: 48px; }
.entry-summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; margin-bottom: 23px; border-radius: 19px; background: #e8f0e1; }
.entry-summary > span { font-size: 20px; }
.entry-summary > strong { font-size: 34px; color: #356747; }
.entry-summary small { font-size: 15px; }
.task-edit-actions { display: flex; flex-wrap: wrap; margin-top: 12px; }
.task-edit-actions > .btn { flex: 1; min-width: 125px; margin: 0 5px 8px 0; font-size: 14px; }
.task-edit-actions > .text-button { width: 100%; }
.redeem-preview { text-align: center; padding: 1px 0 20px; }
.redeem-preview .reward-symbol { width: 66px; height: 66px; border-radius: 21px; }
.redeem-preview h3 { margin-top: 12px; font-size: 21px; }
.redeem-preview > strong { display: block; margin-top: 3px; color: #3b6849; font-size: 34px; }
.redeem-preview > strong small { font-size: 15px; }
.redemption-math { display: flex; align-items: center; justify-content: space-around; padding: 14px 12px; margin-bottom: 19px; border-radius: 17px; background: #eff3e9; }
.redemption-math > div { text-align: center; }
.redemption-math > div span { display: block; color: #596b54; font-size: 13px; }
.redemption-math b { display: block; font-size: 26px; }
.redemption-math > span { color: #64765f; font-size: 21px; }
.availability-note { padding: 12px 14px; margin: 12px 0 20px; border-radius: 12px; color: #855c2c; background: #fbf0d7; font-size: 14px; }
.history-tabs { margin-bottom: 12px; }
.record-row { display: flex; align-items: center; justify-content: space-between; min-height: 94px; padding: 16px 2px; border-bottom: 1px solid #e1e7db; }
.record-row > div { flex: 1; min-width: 0; }
.record-row strong { font-size: 16px; }
.record-row p { margin-top: 4px; font-size: 13px; line-height: 1.6; color: #5f6d5d; }
.record-row small { font-size: 12px; color: #62715f; }
.record-number { margin-left: 15px; color: #38664a; font-size: 24px; white-space: nowrap; }
.record-number small { display: inline; color: inherit; font-size: 12px; }
.manage-list, .menu-group { overflow: hidden; margin: 0; border-radius: 17px; background: #fff; }
.manage-row { display: flex; align-items: center; width: 100%; min-height: 72px; padding: 13px 16px; border-bottom: 1px solid #eef1e9; text-align: left; }
.manage-row:last-child, .menu-row:last-child { border-bottom: 0; }
.manage-row > span { flex: 1; min-width: 0; }
.manage-row b { display: block; font-size: 16px; line-height: 23px; overflow-wrap: anywhere; }
.manage-row small { display: block; margin-top: 3px; color: #7b8774; font-size: 12px; }
.manage-row > .icon { width: 18px; height: 18px; margin-left: 12px; color: #9aa692; }
.menu-row { display: flex; align-items: center; width: 100%; min-height: 72px; padding: 12px 14px; border-bottom: 1px solid #eef1e9; text-align: left; }
.menu-symbol { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; margin-right: 12px; border-radius: 11px; color: #58714a; background: #edf3e5; }
.menu-row > span:nth-child(2) { flex: 1; min-width: 0; }
.menu-row b, .menu-row small { display: block; }
.menu-row b { font-size: 16px; }
.menu-row small { margin-top: 3px; font-size: 12px; color: #60705a; }
.menu-row > .icon { width: 18px; height: 18px; margin-left: 10px; color: #6b7c63; }
.sync-status { margin-top: 14px; color: #627357; font-size: 12px; text-align: center; }
.authorization-summary { display: flex; align-items: flex-start; margin-bottom: 22px; padding: 17px 16px; border-radius: 17px; background: #eaf1e2; }
.math-question { padding: 10px 0 19px; font-size: 30px; text-align: center; }
.voice-box { padding: 4px 0 20px; text-align: center; }
.voice-start { min-height: 58px; padding: 15px 25px; border-radius: 19px; background: var(--action-secondary); color: var(--action-secondary-ink); }
.voice-start .icon { width: 23px; height: 23px; margin-right: 9px; }
.voice-box p { margin-top: 12px; color: #5f6d5b; font-size: 13px; }
.assistant-answer { padding: 16px 17px; border: 1px solid #cadbbb; border-radius: 15px; background: #edf3e7; font-size: 16px; color: #365331; white-space: pre-line; }
.toast { position: fixed; z-index: 160; top: 80px; left: 50%; max-width: calc(100% - 36px); padding: 12px 18px; border-radius: 14px; background: #34493b; color: #fff; font-size: 14px; box-shadow: 0 5px 24px rgba(28, 43, 32, .12); opacity: 0; transform: translate(-50%, -8px); transition: opacity .2s, transform .2s; pointer-events: none; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1200px) {
  .app-header { padding-right: 44px; padding-left: 44px; }
  .points-screen { padding-right: 44px; padding-left: 44px; }
  .points-column { padding-right: 38px; }
  .gifts-column { padding-left: 38px; }
  .balance-block { padding: 27px 31px; }
  .add-points-main { min-height: 64px; }
  .rewards-grid { flex-direction: row; flex-wrap: wrap; margin: -6px; }
  .reward-card { width: calc(50% - 12px); margin: 6px; min-height: 174px; flex-wrap: wrap; align-content: flex-start; padding: 19px; }
  .reward-card > .reward-symbol { width: 48px; height: 48px; border-radius: 15px; }
  .reward-card > .reward-symbol .icon { width: 26px; height: 26px; }
  .reward-info { flex: 0 0 100%; margin: 11px 0 0; }
  .reward-info > strong { min-width: 100px; }
  .reward-card > .icon { display: none; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .points-screen { padding-right: 22px; padding-left: 22px; }
  .points-column { flex-basis: 48%; padding-right: 17px; }
  .gifts-column { padding-left: 17px; }
  .balance-block { padding: 22px 20px; }
  .balance-top { font-size: 14px; }
  .balance-top .text-button { font-size: 12px; }
  .balance-number strong { font-size: 80px; }
  .balance-total { flex-wrap: wrap; }
  .balance-total > span { width: 100%; margin-top: 3px; margin-left: 0; }
  .behavior-card { width: calc(100% - 10px); min-height: 82px; }
  .reward-card { padding: 16px 13px; min-height: 111px; }
  .reward-symbol { width: 48px; height: 48px; border-radius: 15px; }
  .reward-symbol .icon { width: 25px; height: 25px; }
  .reward-info { margin-left: 12px; margin-right: 7px; }
  .reward-info > strong { flex-basis: 100%; font-size: 16px; }
  .reward-cost { margin-left: 0; font-size: 22px; }
  .reward-rule { margin-top: 0; font-size: 12px; }
  .reward-card > .icon { display: none; }
  .section-heading h2 { font-size: 20px; }
  .heading-actions .text-button { padding-right: 7px; padding-left: 7px; }
}
@media (max-width: 699px) {
  .app-header { min-height: 68px; padding: 10px 18px; padding-top: calc(10px + constant(safe-area-inset-top)); padding-top: calc(10px + env(safe-area-inset-top)); }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; margin-right: 10px; }
  .brand-mark .icon { width: 20px; height: 20px; }
  h1 { font-size: 16px; }
  .date-label { font-size: 11px; }
  .header-tools .icon-button { width: 48px; height: 48px; min-width: 48px; margin-left: 5px; border-radius: 14px; background: transparent; }
  .points-screen { display: block; padding: 4px 18px 23px; }
  .points-column { width: 100%; padding: 0; }
  .gifts-column { padding: 22px 0 0; margin-top: 21px; border-left: 0; border-top: 1px solid #dce4d5; }
  .balance-block { border-radius: 25px; padding: 19px 21px 20px; }
  .balance-top { font-size: 14px; }
  .balance-top .text-button { min-height: 48px; font-size: 12px; margin-top: -13px; margin-bottom: -13px; }
  .balance-number { margin-top: 8px; margin-bottom: 5px; }
  .balance-number strong { font-size: 75px; line-height: 1.1; letter-spacing: -3px; }
  .balance-number > span { font-size: 17px; margin-left: 11px; }
  .balance-total { font-size: 13px; }
  .balance-total > span { font-size: 12px; }
  .add-points-main { min-height: 56px; margin-top: 16px; border-radius: 16px; font-size: 21px; }
  .balance-actions { margin-top: 16px; }
  .balance-actions .add-points-main { flex: 1; width: auto; min-width: 0; margin-top: 0; }
  .reward-jump { display: inline-flex; flex: 1; min-width: 0; min-height: 56px; margin-left: 10px; padding: 12px 10px; border: 1px solid #d5cba7; border-radius: 16px; background: #fff9e9; color: #705a2f; font-size: 16px; white-space: nowrap; }
  .reward-jump .icon { width: 21px; height: 21px; margin-right: 7px; }
  .common-section { margin-top: 16px; }
  .section-heading { min-height: 48px; margin-bottom: 7px; }
  .section-heading h2 { font-size: 20px; }
  .behavior-card { min-height: 82px; padding: 12px; border-radius: 17px; }
  .behavior-card b { font-size: 14px; }
  .behavior-card small { font-size: 11px; }
  .behavior-card > strong { font-size: 17px; margin-left: 6px; }
  .recent-entry { padding-top: 10px; margin-top: 11px; }
  .recent-entry p { margin-top: 3px; }
  .recent-entry em { display: none; }
  .filter-tabs { margin-top: 11px; margin-bottom: 13px; }
  .reward-card { padding: 15px; min-height: 99px; border-radius: 20px; }
  .reward-symbol { width: 54px; height: 54px; border-radius: 17px; }
  .reward-symbol .icon { width: 28px; height: 28px; }
  .reward-info { margin-left: 14px; margin-right: 7px; }
  .reward-info > strong { min-width: 90px; font-size: 16px; }
  .reward-cost { font-size: 22px; }
  .reward-rule { font-size: 12px; margin-top: 5px; }
  .bottom-nav { padding: 7px 13px 9px; padding-bottom: calc(9px + constant(safe-area-inset-bottom)); padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
  .nav-item { flex-direction: column; min-height: 55px; padding: 5px 10px; border-radius: 14px; font-size: 12px; line-height: 1.3; }
  .nav-item + .nav-item { margin-left: 5px; }
  .nav-item .icon { width: 22px; height: 22px; margin: 0 0 4px; }
  .voice-entry { min-width: 112px; min-height: 49px; padding: 10px 12px; margin-left: 19px; border-radius: 16px; font-size: 14px; }
  .voice-entry .icon { width: 21px; height: 21px; margin-right: 6px; }
  .reminders-screen { padding: 7px 17px 24px; }
  .reminder-heading { margin: 5px 0 20px; }
  .reminder-heading h2 { font-size: 27px; }
  .reminder-heading p { margin-top: 4px; font-size: 12px; }
  .reminder-toolbar { margin-bottom: 14px; }
  .day-tabs { padding: 3px; border-radius: 13px; }
  .day-tab { min-width: 53px; min-height: 48px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
  .day-tab small { display: none; }
  .reminder-toolbar > .text-button { margin-right: -6px; margin-left: 5px; padding-left: 7px; padding-right: 7px; font-size: 13px; }
  .task-row { min-height: 76px; padding: 5px 8px; border-radius: 16px; margin-bottom: 8px; }
  .task-copy strong { font-size: 16px; line-height: 1.45; }
  .task-copy p { margin-top: 4px; font-size: 12px; }
  .task-copy small { margin-top: 3px; font-size: 11px; }
  .list-footnote { padding-top: 12px; font-size: 11px; }
  .reminder-banner { display: block; margin: 0 17px 11px; padding: 12px; border-radius: 17px; }
  .reminder-banner-copy { margin-right: 0; }
  .reminder-banner-copy strong { font-size: 15px; }
  .reminder-banner-copy small { font-size: 11px; }
  .reminder-banner-copy > .icon { width: 20px; height: 20px; margin-right: 9px; }
  .reminder-banner-actions { margin-top: 9px; }
  .reminder-banner-actions .btn { flex: 1; padding: 10px 7px; font-size: 13px; }
  .sheet { max-height: calc(100% - 12px - env(safe-area-inset-top)); border-radius: 22px 22px 0 0; }
  .sheet-header { min-height: 60px; padding: 2px 8px 6px; }
  .sheet-header h2 { font-size: 18px; }
  .sheet-body { padding: 14px 16px 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .sheet-footer { padding: 10px 16px 12px; padding-bottom: calc(12px + constant(safe-area-inset-bottom)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sheet-footer > .btn { min-height: 48px; padding: 10px 14px; }
  .sheet-footer > .outline { min-width: 96px; }
  .entry-summary { padding: 13px 17px; margin-bottom: 20px; }
  .entry-summary > strong { font-size: 30px; }
  .entry-summary > span { font-size: 18px; }
  .authorization-summary { padding: 14px; }
  .toast { top: 69px; padding: 11px 15px; width: max-content; max-width: calc(100% - 34px); font-size: 13px; }
}
@media (max-width: 359px) {
  .app-header { padding-right: 13px; padding-left: 13px; }
  .points-screen { padding-right: 13px; padding-left: 13px; }
  .balance-block { padding-right: 17px; padding-left: 17px; }
  .balance-number strong { font-size: 69px; }
  .balance-total > span { font-size: 11px; }
  .behavior-card { min-height: 86px; padding: 11px; }
  .behavior-card b { font-size: 13px; }
  .behavior-card > strong { font-size: 16px; margin-left: 5px; }
  .reward-info > strong { min-width: 95px; }
  .reward-cost { margin-left: 0; font-size: 20px; }
  .voice-entry { min-width: 99px; margin-left: 10px; padding-right: 9px; padding-left: 9px; }
  .reminders-screen { padding-right: 12px; padding-left: 12px; }
  .reminder-heading p { font-size: 11px; }
  .day-tab { min-width: 49px; padding: 10px 9px; }
  .reminder-toolbar > .text-button { font-size: 12px; }
  .task-copy strong { font-size: 15px; }
  .task-copy p { font-size: 11px; }
  .task-open { padding-left: 7px; }
  .sheet-heading { padding: 0 4px; }
  .sheet-nav-actions { gap: 0; }
  .sheet-body { padding-right: 12px; padding-left: 12px; }
  .sheet-footer { padding-right: 17px; padding-left: 17px; }
  .sheet-footer > .btn { padding-right: 11px; padding-left: 11px; font-size: 14px; }
  .sheet-footer > .outline { min-width: 86px; }
  .sheet-footer > .btn + .btn { margin-left: 9px; }
  .reminder-banner { margin-right: 13px; margin-left: 13px; }
}
@media (max-height: 550px) {
  .app-header { min-height: 57px; padding-top: 5px; padding-bottom: 5px; }
  .brand-mark { width: 31px; height: 31px; }
  .date-label { font-size: 10px; }
  .sheet { max-height: 98%; }
  .sheet-grip { margin-top: 7px; }
  .sheet-header { padding-top: 2px; padding-bottom: 4px; min-height: 54px; }
  .sheet-body { padding-top: 16px; padding-bottom: 16px; }
  .sheet-form > .form-error { max-height: 72px; margin: 6px 12px 0; padding: 8px 11px; }
  .sheet-footer { padding-top: 9px; padding-bottom: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .sheet-footer > .btn { min-height: 48px; }
  .bottom-nav { padding-top: 5px; padding-bottom: 5px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); }
  .nav-item { min-height: 50px; }
}
/* v0.5: height is budgeted between real controls and the character, never a scrolling home. */
.view-points .app-header { height: 56px; height: calc(56px + env(safe-area-inset-top)); min-height: 56px; padding: 4px 12px; padding-top: calc(4px + env(safe-area-inset-top)); }
.home-profile { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 48px; padding: 0; text-align: left; }
.child-avatar { display: block; flex: 0 0 40px; width: 40px; height: 40px; margin-right: 9px; border-radius: 14px; overflow: hidden; border: 2px solid #fff; }
.avatar-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit; background: #efbd67; color: #60491f; font-size: 24px; font-weight: 700; }
.profile-avatar-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.child-profile-copy { display: block; min-width: 0; }
.child-profile-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; line-height: 22px; }
.child-profile-copy > small { display: block; color: #697768; font-size: 11px; line-height: 16px; }
.home-header .header-tools { flex-shrink: 0; margin-left: 5px; }
.home-header .header-tools .icon-button { margin-left: 4px; }
.home-inbox-button { display: flex; align-items: center; min-width: 48px; min-height: 48px; padding: 4px 8px; border-radius: 15px; background: #fff0cf; color: #86632a; }
.home-inbox-button .icon { width: 19px; height: 19px; margin-right: 5px; }
.home-inbox-button span { font-size: 12px; line-height: 16px; }
.home-inbox-button b { display: block; font-size: 15px; }
.view-points .app-main { overflow: visible; display: flex; min-height: 0; }
.view-points .bottom-nav { height: 64px; height: calc(64px + env(safe-area-inset-bottom)); min-height: 64px; padding: 7px 12px; padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
.view-points .main-tabs { flex: 2; min-width: 0; max-width: none; }
.view-points .nav-item { flex-direction: row; min-height: 48px; height: 48px; padding: 4px 8px; font-size: 14px; border-radius: 14px; }
.view-points .nav-item + .nav-item { margin-left: 6px; }
.view-points .nav-item .icon { width: 21px; height: 21px; margin: 0 6px 0 0; }
.view-points .voice-entry { flex: 1; min-width: 0; min-height: 48px; height: 48px; padding: 4px 7px; margin-left: 6px; font-size: 14px; border-radius: 14px; }
.view-points .voice-entry .icon { width: 20px; height: 20px; margin-right: 5px; }
.interaction-home { display: grid; width: 100%; height: 100%; min-height: 0; min-width: 0; max-width: none; margin: 0; padding: 6px 12px 8px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr) 104px; grid-template-areas: "wallet" "companion" "behaviors"; gap: 6px; }
.interaction-home .credit-card { grid-area: wallet; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-width: 0; min-height: 0; padding: 4px 10px; border: 1px solid #ead7b0; border-radius: 18px; background: #fff1d7; }
.credit-score { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 48px; min-height: 48px; height: 100%; padding: 0; text-align: left; border-radius: 12px; }
.credit-label { display: flex; align-items: center; color: #7c6d50; font-size: 12px; line-height: 16px; }
.credit-label .icon { width: 14px; height: 14px; margin-left: 5px; }
.credit-score > strong { font-size: 34px; line-height: 34px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.credit-score > strong.long-balance { font-size: 28px; }
.credit-actions { display: flex; align-items: center; min-width: 0; }
.credit-add { min-width: 96px; min-height: 48px; height: 48px; padding: 8px 14px; font-size: 19px; border-radius: 14px; }
.credit-add .icon { width: 21px; height: 21px; margin-right: 5px; }
.credit-rewards { display: flex; flex-direction: column; min-width: 48px; min-height: 48px; height: 48px; padding: 3px 7px; margin-left: 8px; border: 1px solid #e2cfa9; border-radius: 14px; background: #fffaf0; color: #806237; font-size: 11px; line-height: 16px; }
.credit-rewards .icon { width: 20px; height: 20px; margin: 0; }
.companion-card { position: relative; grid-area: companion; display: grid; min-width: 0; min-height: 0; height: 100%; grid-template-rows: 48px 3px minmax(0, 1fr) 48px; row-gap: 2px; padding: 4px 8px 6px; border: 1px solid #cfddbd; border-radius: 24px; background: linear-gradient(150deg, #f0f5df, #e5efdb); }
.companion-heading { display: flex; align-items: center; min-width: 0; min-height: 0; }
.pet-growth-entry { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; min-height: 48px; height: 48px; padding: 0 6px; text-align: left; border-radius: 12px; }
.pet-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; font-weight: 650; line-height: 23px; }
.pet-level { display: block; max-width: 100%; color: #6b8052; font-size: 11px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-level .icon { width: 12px; height: 12px; }
.companion-heading > .text-button { flex-shrink: 0; min-width: 64px; min-height: 48px; padding: 5px 7px; font-size: 12px; color: #567647; background: #ffffff70; border-radius: 13px; }
.growth-track { height: 3px; min-height: 0; margin: 0 6px; overflow: hidden; border-radius: 5px; background: #d6e2c6; }
.growth-track > div { height: 100%; border-radius: 5px; background: #86a763; }
.companion-scene { display: block; width: 100%; height: 100%; min-width: 48px; min-height: 0; padding: 0; margin: 0; border-radius: 16px; overflow: visible; }
#pet-art { display: block; width: 100%; height: 100%; min-height: 0; }
#pet-art > svg { display: block; width: 100%; height: 100%; }
.companion-loading { display: flex; align-items: center; justify-content: center; height: 100%; color: #678050; }
.pet-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.companion-interactions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; height: 48px; gap: 6px; margin: 0; }
.companion-interact { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; height: 48px; margin: 0; padding: 4px 5px; border: 1px solid #c9dab0; border-radius: 13px; background: #ffffffbd; color: #557343; font-size: 13px; font-weight: 600; white-space: nowrap; }
.companion-interact .icon { width: 18px; height: 18px; margin-right: 4px; }
.home-behaviors { grid-area: behaviors; display: grid; grid-template-rows: 48px minmax(0, 1fr); min-width: 0; min-height: 0; }
.home-behavior-heading { display: flex; align-items: center; justify-content: space-between; min-width: 0; }
.home-behavior-heading h2 { font-size: 15px; letter-spacing: 0; }
.home-behavior-heading .text-button { min-height: 48px; padding: 5px 1px 5px 8px; font-size: 13px; }
.home-behavior-heading small { margin-left: 5px; font-size: 12px; }
.home-behavior-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; gap: 8px; }
.home-behavior-buttons.count-1 > *, .home-behavior-buttons.count-0 > * { grid-column: 1 / -1; }
.interaction-home .behavior-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; position: relative; width: 100%; height: 100%; min-height: 48px; min-width: 0; margin: 0; padding: 6px 10px; border: 1px solid #dfe5d8; border-radius: 14px; background: #fffefa; text-align: left; }
.interaction-home .behavior-symbol { display: none; }
.interaction-home .behavior-copy { display: block; min-width: 0; padding: 0; }
.interaction-home .behavior-copy b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 19px; overflow-wrap: anywhere; }
.interaction-home .behavior-copy small { display: none; }
.interaction-home .behavior-card > strong { position: static; align-self: center; margin: 0 0 0 6px; color: #386c4c; font-size: 18px; line-height: 24px; white-space: nowrap; }
.empty-behaviors { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border: 1px dashed #cfd8c6; border-radius: 15px; color: #748164; font-size: 13px; }
.empty-behaviors .icon { width: 18px; height: 18px; margin-right: 6px; }
.home-wide { grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); grid-template-rows: minmax(142px, .4fr) minmax(176px, .6fr); grid-template-areas: "wallet companion" "behaviors companion"; padding: 10px 20px 14px; gap: 14px 20px; }
.home-wide .credit-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 60px; padding: 14px 20px 18px; border-radius: 27px; }
.home-wide .credit-score { align-items: flex-start; padding: 0 4px; }
.home-wide .credit-label { font-size: 16px; line-height: 24px; }
.home-wide .credit-label .icon { width: 18px; height: 18px; margin-left: 8px; }
.home-wide .credit-score > strong { font-size: clamp(52px, 6.5vw, 104px); line-height: 1.1; letter-spacing: -2px; }
.home-wide .credit-score > strong.long-balance { font-size: clamp(36px, 4vw, 70px); }
.home-wide .credit-actions { height: 60px; }
.home-wide .credit-add { flex: 1; height: 56px; min-height: 56px; font-size: 24px; }
.home-wide .credit-rewards { flex-direction: row; min-width: 88px; height: 56px; min-height: 56px; padding: 10px; margin-left: 12px; font-size: 15px; }
.home-wide .credit-rewards .icon { margin-right: 6px; }
.home-wide .companion-card { grid-template-rows: 48px 4px minmax(0, 1fr) 52px; row-gap: 6px; padding: 10px 18px 14px; border-radius: 30px; }
.home-wide .pet-name { font-size: 25px; line-height: 28px; }
.home-wide .pet-level { font-size: 12px; line-height: 18px; }
.home-wide .growth-track { height: 4px; }
.home-wide .companion-interactions, .home-wide .companion-interact { height: 52px; min-height: 52px; }
.home-wide .companion-interact { font-size: 16px; }
.home-wide .companion-interact .icon { width: 22px; height: 22px; margin-right: 7px; }
.home-wide .home-behavior-heading h2 { font-size: 20px; }
.home-wide .home-behavior-heading .text-button { font-size: 15px; }
.home-wide .home-behavior-buttons { grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-wide .home-behavior-buttons.count-0, .home-wide .home-behavior-buttons.count-1, .home-wide .home-behavior-buttons.count-2 { grid-template-rows: minmax(0, 1fr); }
.home-wide .home-behavior-buttons.count-3 > :last-child { grid-column: 1 / -1; }
.home-wide .home-behavior { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px; }
.home-wide .behavior-symbol { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 32px; margin-bottom: 9px; border-radius: 11px; background: #eaf2e1; color: #618844; }
.home-wide .behavior-symbol .icon { width: 21px; height: 21px; }
.home-wide .behavior-symbol-1 { background: #e9f0fb; color: #5c85b8; }
.home-wide .behavior-symbol-2 { background: #fff0cf; color: #b28a3d; }
.home-wide .behavior-symbol-3 { background: #fbe6df; color: #b47763; }
.home-wide .behavior-copy b { font-size: 17px; line-height: 23px; }
.home-wide .behavior-card > strong { position: absolute; top: 16px; right: 16px; margin: 0; font-size: 23px; }
.inbox-heading { margin: 6px 0 12px; font-size: 16px; }
.inbox-task { margin-bottom: 18px; padding: 14px; border: 1px solid #e7d29a; border-radius: 18px; background: #fff4d8; }
.inbox-task h3 { overflow-wrap: anywhere; font-size: 17px; }
.inbox-task > p { margin: 4px 0 10px; color: #8b7549; font-size: 12px; }
.inbox-task .reminder-banner-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.inbox-task .reminder-banner-actions .btn { min-width: 48px; min-height: 48px; padding: 9px 4px; margin: 0; font-size: 12px; }
.behavior-picker-sheet { width: 100%; max-width: 800px; height: auto; max-height: min(740px, calc(var(--app-height, 100vh) - 12px)); padding-bottom: env(safe-area-inset-bottom); }
.behavior-picker-sheet .sheet-header { min-height: 60px; padding: 2px 8px 6px; }
.behavior-picker-body { display: flex; flex-direction: column; flex: 0 1 auto; min-width: 0; min-height: 0; padding: 12px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.picker-tools { display: flex; align-items: center; flex-shrink: 0; min-width: 0; height: 48px; margin-bottom: 12px; }
.picker-search { position: relative; flex: 1; min-width: 0; }
.picker-search input { display: block; width: 100%; height: 48px; padding: 10px 48px 10px 14px; border: 0; border-radius: 13px; background: #e7ece1; font-size: 16px; -webkit-appearance: none; }
.picker-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.picker-search .icon-button { position: absolute; right: 0; top: 0; background: transparent; }
.picker-search .icon { width: 17px; height: 17px; }
.behavior-picker-results { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; }
.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 88px; align-content: start; flex: 0 0 auto; min-height: 0; min-width: 0; gap: 8px; }
@media (min-width: 700px) { .picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.picker-grid .behavior-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 22px; align-items: center; gap: 3px 8px; width: 100%; height: 100%; min-height: 48px; min-width: 0; margin: 0; padding: 10px 12px; border: 0; border-radius: 15px; background: #fff; text-align: left; }
.picker-grid .behavior-symbol { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; grid-column: 1; grid-row: 1; border-radius: 9px; background: #edf3e5; color: #60814d; }
.picker-grid .behavior-symbol .icon { width: 18px; height: 18px; }
.picker-grid .behavior-copy { display: block; min-width: 0; grid-column: 2; grid-row: 1; }
.picker-grid .behavior-copy b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; font-size: 15px; line-height: 20px; }
.picker-grid .behavior-card > strong { position: static; grid-column: 2; grid-row: 2; align-self: end; margin: 0; color: #386c4c; font-size: 18px; line-height: 22px; white-space: nowrap; }
.picker-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.picker-empty p { margin: 0; color: #7b876e; font-size: 14px; }
.picker-footer { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 8px 16px; }
.picker-footer > .icon-button { background: transparent; color: #456d42; }
.picker-page-label { display: flex; align-items: center; color: #73816a; font-size: 12px; white-space: nowrap; }
.picker-page-label input { width: 54px; height: 48px; padding: 7px 4px; margin: 0 6px; border: 0; border-radius: 11px; background: #fff; text-align: center; font-size: 16px; }
@media (min-width: 900px) and (orientation: landscape) {
  .view-points .app-header { height: 64px; height: calc(64px + env(safe-area-inset-top)); padding: 8px 20px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .child-profile-copy strong { font-size: 19px; }
  .view-points .bottom-nav { padding-right: 20px; padding-left: 20px; }
}
@media (min-width: 1500px) {
  .home-wide { grid-template-columns: minmax(0, .34fr) minmax(0, .66fr); padding: 12px 24px 18px; column-gap: 24px; }
  .home-wide .credit-card { padding: 25px 32px; }
  .home-wide .companion-card { padding: 18px 28px; }
  .home-wide .behavior-copy b { font-size: 22px; line-height: 29px; }
  .home-wide .behavior-symbol { width: 40px; height: 40px; min-height: 40px; margin-bottom: 16px; }
}
@media (max-height: 650px) and (min-width: 900px) {
  .home-wide { grid-template-rows: minmax(132px, .4fr) minmax(162px, .6fr); padding: 6px 16px 8px; gap: 8px 16px; }
  .home-wide .credit-card { grid-template-rows: minmax(0, 1fr) 48px; padding: 7px 12px 10px; }
  .home-wide .credit-label { font-size: 12px; line-height: 18px; }
  .home-wide .credit-score > strong { font-size: 42px; }
  .home-wide .credit-score > strong.long-balance { font-size: 34px; }
  .home-wide .credit-actions, .home-wide .credit-add, .home-wide .credit-rewards { min-height: 48px; height: 48px; }
  .home-wide .credit-add { font-size: 20px; }
  .home-wide .home-behavior { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 8px 10px; }
  .home-wide .behavior-symbol { display: none; }
  .home-wide .behavior-copy b { font-size: 14px; line-height: 20px; }
  .home-wide .behavior-card > strong { position: static; font-size: 20px; margin-left: 5px; }
  .home-wide .companion-card { grid-template-rows: 48px 3px minmax(0, 1fr) 48px; row-gap: 3px; padding: 5px 12px 8px; }
  .home-wide .companion-interactions, .home-wide .companion-interact { min-height: 48px; height: 48px; }
}
.rewards-sheet-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rewards-sheet-heading p { font-size: 14px; color: #67725e; }
.rewards-sheet-heading strong { margin: 0 4px; color: #345c42; font-size: 24px; }
.rewards-sheet-heading > div { display: flex; margin-right: -8px; }
.context-ai { margin-bottom: 14px; padding: 12px; border: 0; border-radius: 16px; background: #ece9f3; }
.context-ai-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.context-ai-heading > strong { display: flex; align-items: center; color: #655986; font-size: 15px; }
.context-ai-heading .icon { width: 19px; height: 19px; margin-right: 7px; }
.context-ai-heading > span { padding: 3px 7px; border-radius: 7px; background: #eae6f1; color: #84769b; font-size: 11px; overflow-wrap: anywhere; }
.context-ai-input { display: flex; align-items: flex-end; gap: 6px; }
.context-ai .field { flex: 1; min-width: 0; margin: 0; padding: 0; background: transparent; }
.context-ai .field > span { margin-bottom: 5px; font-size: 12px; color: #746987; }
.context-ai textarea { min-height: 50px; height: 50px; padding: 12px; border-color: #ddd7e8; border-radius: 12px; background: #fff; font-size: 16px; }
.context-ai-actions { display: flex; align-items: center; flex-shrink: 0; gap: 4px; }
.context-ai-actions > .icon-button { min-width: 48px; min-height: 50px; }
.ai-fill-button { min-width: 52px; min-height: 50px; padding: 10px; border-radius: 13px; font-size: 14px; }
.context-ai-status { color: #83778f; font-size: 13px; line-height: 1.6; white-space: pre-line; }
.context-ai-status:not(:empty) { margin-top: 8px; }
.context-voice-status { color: #83778f; font-size: 13px; }
.value-list { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.value-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #dfe5d8; }
.value-list dt { flex-shrink: 0; color: #647358; }
.value-list dd { margin: 0; min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; white-space: pre-wrap; }
.authorization-values { flex: 1; min-width: 0; margin: 0; font-size: 16px; }
.authorization-values > div:first-child { padding-top: 0; }
.authorization-values > div:last-child { padding-bottom: 0; border: 0; }
.capability-values { margin-top: 16px; }
.status-line { margin: 12px 0; font-size: 14px; }
.template-values { margin: 8px 0; }
.template-duplicate { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.profile-photo-editor { text-align: center; padding: 2px 0 22px; }
.profile-photo-preview { width: 124px; height: 124px; margin: 0 auto 17px; padding: 5px; border: 1px solid #e3d7bf; border-radius: 38px; background: #fff8e9; }
.profile-photo-preview .avatar-initial { font-size: 45px; }
.profile-photo-editor > div + div { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.profile-photo-editor .btn { min-width: 96px; min-height: 48px; padding: 10px 12px; }
.profile-photo-editor > p { max-width: 370px; margin: 12px auto 0; color: #7c775f; font-size: 12px; }
.file-picker { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.pet-choices { display: flex; margin: 0 -6px 22px; }
.pet-choice { flex: 1; min-width: 0; margin: 0 6px; padding: 9px 8px 16px; border: 1px solid #e2e4d8; border-radius: 22px; background: #f8f9f1; }
.pet-choice.selected { border: 2px solid var(--action-primary); padding: 8px 7px 15px; background: var(--action-secondary); }
.pet-choice > div { height: 130px; }
.pet-growth-portrait { display: block; width: 100%; height: 100%; object-fit: contain; }
.pet-choice strong, .pet-choice small { display: block; }
.pet-choice strong { margin-top: 6px; font-size: 16px; }
.pet-choice small { margin-top: 4px; color: #83926d; font-size: 11px; }
.journey-step { display: flex; align-items: center; min-height: 100px; padding: 10px 11px; margin-bottom: 9px; border: 1px solid #e4e7df; border-radius: 18px; background: #fafbf6; }
.journey-step.current { border-color: #b4c991; background: #f0f5e5; }
.journey-pet { flex: 0 0 116px; height: 74px; margin-right: 12px; }
.journey-step > div:nth-child(2) { flex: 1; min-width: 0; }
.journey-step span { color: #8b927f; font-size: 10px; }
.journey-step h3 { margin: 5px 0 3px; font-size: 17px; }
.journey-step small { color: #7c886e; font-size: 11px; }
.journey-badge { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 31px; height: 31px; margin-left: 8px; border-radius: 50%; background: #e5edd9; }
.journey-badge .icon { width: 16px; height: 16px; color: #7a9561; }
@media (max-width: 699px) {
  .context-ai { padding: 13px; margin-bottom: 20px; border-radius: 17px; }
  .context-ai-heading > strong { font-size: 14px; }
  .ai-fill-button { padding: 10px; font-size: 14px; }
  .pet-choice > div { height: 105px; }
  .pet-choice { padding: 8px 5px 13px; border-radius: 18px; }
  .pet-choice.selected { padding: 7px 4px 12px; }
  .pet-choice strong { font-size: 14px; }
  .journey-pet { flex-basis: 95px; height: 66px; margin-right: 9px; }
  .journey-step { min-height: 92px; padding: 9px 8px; }
  .journey-step h3 { font-size: 15px; }
  .journey-step span { font-size: 10px; }
  .journey-step small { font-size: 11px; }
  .journey-badge { width: 26px; height: 26px; margin-left: 5px; }
}
@media (max-width: 359px) {
  .pet-choice > div { height: 88px; }
  .context-ai-heading > span { padding: 3px 5px; font-size: 11px; }
  .ai-fill-button { padding-right: 8px; padding-left: 8px; }
  .journey-pet { flex-basis: 80px; margin-right: 7px; }
  .behavior-picker-body { padding-right: 12px; padding-left: 12px; }
  .picker-grid .behavior-card { padding: 8px; }
  .picker-grid .behavior-copy b { font-size: 14px; line-height: 20px; }
}
/* v0.6 keeps the homepage row budget; resource controls replace the old free actions. */
.pet-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex-shrink: 0; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 14px; background: #e7ece1; }
.mode-tab { min-width: 48px; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 11px; background: transparent; color: #718067; font-size: 14px; font-weight: 600; }
.mode-tab.active { background: #fff; color: var(--action-primary); font-weight: 700; box-shadow: 0 1px 3px rgba(45, 67, 36, .06); }
.template-toggle { display: flex; align-items: center; min-height: 48px; gap: 12px; margin: 8px 0; cursor: pointer; font-size: 16px; }
.template-toggle input { width: 24px; height: 24px; margin: 0 2px; accent-color: var(--action-primary); }
.template-save-preview { font-size: 13px; line-height: 1.7; }
.template-save-preview p { margin: 8px 0; }
.template-duplicate { padding: 10px 12px; border: 1px solid #e6c790; border-radius: 12px; background: #fff7e6; color: #77561e; }
.companion-heading > .pet-hub-entry { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 90px; min-width: 90px; padding: 3px 5px; }
.pet-hub-entry b { font-size: 12px; line-height: 19px; }
.pet-hub-entry small { font-size: 10px; line-height: 16px; white-space: nowrap; }
.pet-care-button, .pet-bag-use { flex-direction: column; gap: 1px; }
.pet-care-button { padding: 3px; }
.care-button-title { display: flex; justify-content: center; align-items: center; line-height: 20px; }
.care-source { display: block; font-size: 11px; line-height: 14px; font-weight: 500; white-space: nowrap; }
.pet-care-button[data-completed="true"] .care-button-title { color: #325e39; }
.pet-care-button .icon { width: 16px; height: 16px; margin-right: 4px; }
.pet-touch-echo { position: absolute; right: 12px; bottom: 8px; padding: 5px 9px; border-radius: 12px; background: #fff4e6; color: #995e54; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.pet-touched .pet-touch-echo { opacity: 1; }
.pet-resource-summary { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; padding: 14px; margin-bottom: 14px; border-radius: 17px; background: #edf3e3; }
.pet-resource-summary strong { font-size: 17px; }
.pet-resource-summary > span { font-size: 14px; }
.pet-resource-summary small { flex-basis: 100%; color: #68765b; font-size: 12px; }
.pet-daily-marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pet-daily-marks > span { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 9px 3px; border: 1px solid #dbe2d1; border-radius: 12px; font-size: 14px; }
.pet-daily-marks .icon { width: 16px; height: 16px; margin-right: 5px; }
.pet-daily-marks small { flex-basis: 100%; margin-top: 3px; text-align: center; font-size: 11px; }
.pet-daily-marks [data-completed="true"] { background: #e3efd8; border-color: #a6bc88; color: #3e6633; }
.pet-bonus-note, .pet-next-goal { margin: 10px 0 16px; font-size: 13px; line-height: 1.7; }
.pet-next-goal { font-weight: 600; }
.pet-supplies, .pet-scene-list { display: grid; gap: 10px; margin-bottom: 15px; }
.pet-supply-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 16px; background: #fff; }
.pet-item-art { display: block; flex-shrink: 0; width: 44px; height: 44px; }
.pet-item-art > svg { display: block; width: 100%; height: 100%; }
.pet-supply-card h3, .pet-buy-item h3 { font-size: 16px; line-height: 23px; }
.pet-supply-card p, .pet-buy-item p { margin-top: 4px; font-size: 12px; line-height: 18px; color: #69785e; }
.pet-supply-card small { font-size: 12px; }
.pet-supply-card > .btn { min-width: 76px; min-height: 48px; padding: 6px 9px; font-size: 14px; }
.pet-supply-card > .pet-bag-use { min-width: 94px; }
.pet-bag-use .care-source { font-size: 10px; }
.pet-buy-item { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 20px; border-radius: 16px; background: #edf3e3; }
.pet-buy-item .pet-item-art { width: 56px; height: 56px; }
.pet-purchase-price { margin: 8px 0 16px; font-size: 16px; line-height: 1.7; }
.pet-purchase-price strong { font-size: 22px; }
.pet-scene-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 80px; padding: 12px; border: 0; border-radius: 16px; background: #fff; }
.scene-badge { display: flex; align-items: center; justify-content: center; width: 38px; height: 42px; border: 1px solid #dbca9e; border-radius: 13px 13px 18px 18px; color: #917639; background: #fff6d7; }
.scene-badge .icon { width: 23px; height: 23px; }
.pet-scene-card.locked .scene-badge { color: #8b9484; background: #f1f3ec; border-color: #dce1d4; }
.pet-scene-card h3 { font-size: 16px; line-height: 23px; }
.pet-scene-card small { display: block; margin-top: 4px; font-size: 11px; line-height: 17px; }
.pet-scene-card .btn { min-width: 68px; min-height: 48px; padding: 6px 8px; font-size: 14px; }
.ledger-summary { display: flex; gap: 10px; padding: 15px 10px; margin-bottom: 12px; border-radius: 17px; background: #eef3e6; }
.ledger-summary span { flex: 1; min-width: 0; text-align: center; font-size: 12px; }
.ledger-summary b { display: block; margin-top: 6px; font-size: 23px; overflow-wrap: anywhere; }
.history-tabs .day-tab { flex: 1; min-width: 48px; padding: 8px 5px; font-size: 13px; }
@media (max-width: 359px) { .home-portrait .pet-name[data-feedback="true"] { font-size: 17px; } .pet-supply-card { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 7px; padding: 10px 8px; } .pet-supply-card .pet-item-art { width: 38px; height: 38px; } }
@media (max-height: 440px) { .behavior-picker-sheet .sheet-header { min-height: 48px; padding: 0 8px; } .behavior-picker-body { padding: 4px 12px; } .picker-tools { margin-bottom: 6px; } .picker-footer { min-height: 56px; padding: 4px 12px; } .picker-grid { grid-auto-rows: 64px; } .picker-grid .behavior-card { padding: 6px 10px; grid-template-rows: minmax(0, 1fr) 22px; } .picker-grid .behavior-copy b { display: block; white-space: nowrap; text-overflow: ellipsis; } .picker-grid .behavior-symbol { width: 25px; height: 25px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
