#app-bottom-nav{display:none}
@media(max-width:760px){
body.mobile-app{font-size:14px}.mobile-app [hidden]{display:none!important}
.mobile-app .app{margin-left:0}.mobile-app header{position:sticky;top:0;z-index:15;height:52px;padding:0 12px;background:#fff;gap:10px}.mobile-app header .menu{display:block;width:44px;height:44px;font-size:23px;padding:4px;border:0}.mobile-app .breadcrumb{font-size:0;flex:1}.mobile-app .breadcrumb span{display:none}.mobile-app .breadcrumb b{font-size:16px;font-weight:600}.mobile-app .header-right{gap:10px}.mobile-app #save-status{font-size:0}.mobile-app .avatar{width:36px;height:36px}.mobile-app main{padding:12px 14px 90px;min-height:calc(100dvh - 52px)}.mobile-app .page-head,.mobile-app footer{display:none}
.mobile-app .stats{gap:8px;margin-bottom:14px}.mobile-app .stat{padding:10px 12px;border-radius:12px}.mobile-app .stat strong{font-size:21px;margin:2px 0}.mobile-app .stat small,.mobile-app .stat-icon{display:none}.mobile-app .stat .label{font-size:11px}.mobile-app #main[data-mobile-page=daily]>.stats{display:none}
.mobile-app .grid{display:block}.mobile-app .stack{gap:12px}.mobile-app .card{padding:16px;border-radius:14px}.mobile-app .card-head{margin-bottom:12px;gap:8px}.mobile-app .card-head h2{font-size:16px}.mobile-app .card-head small{font-size:10px}.mobile-app .empty{padding:16px 6px}.mobile-app .section-gap{margin-top:16px;padding-top:14px}.mobile-app .tabs{flex-wrap:nowrap;overflow-x:auto;gap:4px;margin-bottom:14px;padding-bottom:8px}.mobile-app .tabs button{flex-shrink:0;min-height:44px}.mobile-app button{touch-action:manipulation}.mobile-app input,.mobile-app select,.mobile-app textarea{font-size:16px;min-height:44px}.mobile-app .mini{min-height:40px}.mobile-app .task .delete{opacity:1;min-width:36px;min-height:36px}.mobile-app .inline-add{margin-top:12px}.mobile-app .inline-add input{font-size:15px;min-width:0}.mobile-app .toolbar{gap:8px;margin-bottom:12px}.mobile-app .week{margin:10px 0}.mobile-app .day{min-height:48px;padding:6px 1px}.mobile-app .day i{display:none}.mobile-app .day b{font-size:16px}
.daily-mobile-lead{font-size:12px;line-height:1.7;color:#7e795e;margin:0 2px 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.daily-panel-tabs{display:flex;background:#edeedf;padding:4px;border-radius:12px;margin-bottom:12px;gap:3px}.daily-panel-tabs button{flex:1;padding:8px 2px;border:0;background:transparent;min-height:42px;font-size:13px;color:#827a68}.daily-panel-tabs button.selected{background:#fff;color:#5e7629;box-shadow:0 2px 6px #33191508;font-weight:600}.compact-date-picker{margin-bottom:12px;border-bottom:1px solid #eeeae1;padding-bottom:10px}.compact-date-picker summary{font-size:12px;color:#827a68;padding:5px 0;cursor:pointer}.compact-date-picker .toolbar input{max-width:100%;font-size:14px!important}.mobile-app #main[data-mobile-page=daily] .card-head>small{display:none}
.mobile-app #app-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:5px 8px calc(5px + env(safe-area-inset-bottom));height:calc(64px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e9e8dd;z-index:16;justify-content:space-around}.mobile-app #app-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;flex:1;border:0;background:transparent;padding:3px;font-size:11px;color:#8b8275}.mobile-app #app-bottom-nav button>span{font-size:22px;line-height:27px}.mobile-app #app-bottom-nav button.selected{color:#5e7629;background:#f2f5e9;border-radius:12px}
.mobile-app #sidebar{z-index:35;padding-top:18px;padding-bottom:20px;width:min(300px,86vw);height:100dvh}.mobile-app #shade{z-index:30}.mobile-app .brand{margin-bottom:16px}.mobile-app #nav button{min-height:44px}.mobile-app dialog{max-height:90dvh;overflow:auto;width:calc(100% - 24px);padding:20px}.mobile-app .anniversary-alert{padding:10px 12px;margin-bottom:12px;max-height:94px;overflow:auto;gap:6px;font-size:12px}.mobile-app .anniversary-alert a{font-size:12px}.mobile-app .focus-clock{font-size:42px}.mobile-app .tree-scene svg{height:115px}.mobile-app .body-section{min-height:105px;padding:12px}.mobile-app .body-section small{display:none}.mobile-app .body-sections{gap:8px;margin-bottom:14px}
}

.linked-todo-group{padding:16px 0;border-top:1px solid var(--line)}.linked-todo-group h3{font-size:14px;margin:0 0 12px}.linked-todo-group h3 small{font-size:11px;color:var(--muted);font-weight:400}.linked-todo-meta{display:block;font-size:11px;color:var(--muted);margin-top:5px;text-decoration:none}.linked-todo-group .task label{min-width:0;flex:1}.linked-todo-group .task .text{overflow-wrap:anywhere}.linked-todo-group .task>button{flex-shrink:0}.linked-todo-group .toolbar{margin-top:12px}

.task:has(.task-outcome){flex-wrap:wrap}.task:has(.task-outcome)>label{flex:1 1 65%;min-width:0}.task-outcome{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;order:5;padding:5px 0 10px}.task-outcome .outcome-reason{display:block;width:100%;font-size:12px;color:var(--muted);line-height:1.7}.task-outcome textarea{display:block;margin-top:7px;min-height:80px;font-size:16px}.task-outcome .outcome-missed[aria-pressed=true]{background:#fae9e5!important;color:#944b40!important;border-color:#e4bab1!important;box-shadow:none!important}.task-outcome .outcome-missed:hover{color:#944b40}.record>.task-outcome{margin-top:10px}.task-outcome.is-missed{border-left:3px solid #d5a297;padding-left:10px}

.schedule-category{margin-top:16px}.schedule-category h3{font-size:14px;color:var(--olive-dark)}.schedule-task{border:1px solid var(--line);border-radius:12px;padding:12px;margin:10px 0;background:var(--paper,#fff)}.schedule-task>.mini{font-size:11px}.daily-linked-schedule h2{font-size:16px}#schedule-day{max-width:220px}

/* Task cards: full-width reason on a dedicated row, across all themes. */
.task .task-outcome,.record .task-outcome{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;width:100%;min-width:0;padding:12px 0 0;margin-top:10px;border-top:1px solid var(--line)}
.task .task-outcome.is-missed,.record .task-outcome.is-missed{border-left:0;padding-left:0}
.task .task-outcome>button,.record .task-outcome>button{min-height:42px;font-size:13px;padding:9px 10px;border-radius:12px;white-space:normal;margin:0;box-shadow:none}
.task .task-outcome>button:only-child{justify-self:start;width:auto;min-width:125px}
.task .task-outcome>.outcome-reason,.linked-todo-group .task .task-outcome>.outcome-reason,.record .task-outcome>.outcome-reason{grid-column:1/-1;display:block;flex:none;width:100%;min-width:0;margin:4px 0 0;padding:0;color:var(--muted);font-size:12px}
.reason-heading{display:flex;align-items:center;justify-content:space-between;padding:0 2px 5px;gap:8px}.reason-heading small{font-size:10px;font-weight:400;color:var(--muted);opacity:.8}
.task .task-outcome textarea,.record .task-outcome textarea{width:100%;max-width:100%;min-width:0;min-height:136px;height:136px;display:block;margin:0;padding:14px 15px;font-size:16px;line-height:1.7;border-radius:14px;resize:vertical;box-sizing:border-box;background:var(--paper,#fff);border-color:var(--line)}
.task .task-outcome textarea::placeholder,.record .task-outcome textarea::placeholder{font-size:14px;color:var(--muted);opacity:.7}
.schedule-task{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:start;padding:16px!important;margin:12px 0;border-radius:18px!important;border:1px solid var(--line);box-shadow:0 2px 8px #33191503}
.schedule-task>label{grid-column:1;grid-row:1;display:flex;align-items:flex-start!important;gap:11px!important;min-width:0;line-height:1.6}
.schedule-task>label>input[type=checkbox]{margin-top:3px;width:21px;height:21px;min-height:21px}
.schedule-task .text{font-size:15px;font-weight:550;min-width:0;overflow-wrap:anywhere}.schedule-task .linked-todo-meta{font-size:10px;font-weight:400;line-height:1.6;margin-top:5px;color:var(--muted)}
.schedule-task>.mini{grid-column:2;font-size:11px;padding:7px 9px;min-height:34px!important;border:0;background:var(--soft)!important;border-radius:10px}.schedule-task>.danger{color:#996158}
.schedule-task>.task-outcome{grid-column:1/-1;margin-top:0}
@media(max-width:380px){.schedule-task{padding:13px!important;gap:8px}.task .task-outcome>button{font-size:12px}.task .task-outcome textarea{min-height:148px;height:148px}}
.task .task-outcome.compact-outcome,.record .task-outcome.compact-outcome{display:flex!important;flex-wrap:nowrap;align-items:center;gap:8px;border:0;padding:0;margin:6px 0;width:100%}
.compact-outcome .outcome-missed{flex:0 0 auto;min-height:40px;padding:8px 10px;font-size:13px;white-space:nowrap;border-radius:10px}
.compact-outcome .outcome-reason-line{flex:1;min-width:0;width:0;min-height:40px;height:40px;padding:8px 10px;font-size:14px;border-radius:10px}
.outcome-reason-line:disabled{background:#f6f6ef;color:#999}
.schedule-task.compact-plan{display:block!important;padding:14px!important}.compact-plan-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.compact-plan-head strong{font-size:15px}.plan-menu{position:relative}.plan-menu summary{list-style:none;padding:6px 12px;cursor:pointer}.plan-menu[open]{background:#fff;border-radius:10px}.plan-menu button{display:block}.plan-complete{display:flex;align-items:center;gap:10px;margin:10px 0 4px;font-size:14px;min-height:36px}.plan-complete input,.agenda-row input{width:19px;height:19px;min-height:0;flex:0 0 auto}.category-stats{background:#f6f7ef;padding:12px;border-radius:12px;margin:10px 0 14px}.stat-period{display:flex;gap:6px;justify-content:flex-end}.stat-period .mini{padding:5px 10px;min-height:30px}.plan-stat-numbers{display:flex;justify-content:space-between;gap:8px;margin:10px 0;font-size:12px}.plan-stat-numbers b{font-size:20px;color:#331915;margin-right:4px}.plan-ratio{height:7px;background:#e5cbc3;border-radius:9px;overflow:hidden}.plan-ratio i{display:block;height:100%;background:#8aa832}.category-stats .helper{font-size:11px;margin:7px 0}.reason-summary summary{font-size:12px;cursor:pointer}.reason-summary p{display:flex;justify-content:space-between;gap:12px;font-size:12px}.reason-summary span{overflow-wrap:anywhere}.reason-summary b{white-space:nowrap}.agenda-card .card-head input{width:140px;min-height:36px;font-size:12px;padding:6px}.agenda-group{margin:14px 0}.agenda-group .card-head{margin-bottom:4px}.agenda-group h3{font-size:14px}.agenda-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #eeeee5;font-size:14px}.agenda-row .done{text-decoration:line-through;color:#939880}.agenda-card .mini{min-height:30px;font-size:12px;padding:5px 9px}.record .checkline{margin-bottom:5px;min-height:36px}
.task .compact-outcome .outcome-missed,.record .compact-outcome .outcome-missed{font-size:11px!important;min-height:32px!important;padding:5px 8px!important}.task .compact-outcome .outcome-reason-line,.record .compact-outcome .outcome-reason-line{font-size:12px!important;height:32px!important;min-height:32px!important;padding:5px 8px!important}.plan-archive{border-top:1px solid #e1e5d6;padding-top:10px;margin-top:10px}.plan-archive>summary{font-size:12px;cursor:pointer}.plan-archive>input{margin:10px 0;min-height:36px;font-size:12px}.record .checkline,.plan-complete{font-size:12px!important}.record .checkline input,.plan-complete input{width:17px;height:17px;min-height:0}
.sound-control{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0;font-size:12px}.sound-control label{display:flex;gap:6px;align-items:center}.sound-control input{width:16px;height:16px;min-height:0}.living-tree{position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(#edf3e3,#fffdf0);padding:16px 10px}.living-tree svg{max-height:230px}.living-tree.growing svg>g{transform-box:fill-box;transform-origin:bottom;animation:tree-breathe 4s ease-in-out infinite}.tree-sky{display:flex;justify-content:space-around;color:#c4b56c;font-size:18px}.growing .tree-sky span{animation:star-glow 3s ease-in-out infinite alternate}.tree-sky span:nth-child(2){animation-delay:1s}.tree-ground{font-size:14px;letter-spacing:7px;margin-top:-8px}.growth-reward{padding:10px;border-radius:12px;background:#edf0d9;color:#718237;font-size:12px;animation:reward-enter .6s ease-out}.focus-celebrate .focus-display{animation:finish-glow 1s ease-in-out 3}.forest-landscape{margin-top:14px;padding:14px 12px;border-radius:18px;background:linear-gradient(#e8f0e3,#fbf9e9 60%,#e3eacb);text-align:center;overflow:hidden}.forest-cloud{color:#b1c1ad;font-size:20px;letter-spacing:16px}.forest-trees{display:flex;flex-wrap:wrap;justify-content:center;align-items:end;min-height:120px;gap:0}.forest-tree{width:48px;animation:reward-enter .6s ease-out both;animation-delay:var(--delay)}.forest-tree:nth-child(3n){width:58px}.forest-tree svg{width:100%;height:90px}.forest-floor{font-size:14px;letter-spacing:3px}.forest-landscape small{display:block;margin:10px 0 0;color:#77835d;font-size:11px}.forest-empty{font-size:32px;padding:24px}.forest-empty p{font-size:12px;color:#7b8662}@keyframes tree-breathe{0%,100%{rotate:-1deg}50%{rotate:1.5deg}}@keyframes star-glow{from{opacity:.3;scale:.8}to{opacity:1;scale:1.15}}@keyframes reward-enter{from{opacity:0;translate:0 12px;scale:.9}to{opacity:1;translate:0 0;scale:1}}@keyframes finish-glow{50%{box-shadow:0 0 30px #c9d993}}@media(prefers-reduced-motion:reduce){.living-tree.growing svg>g,.growing .tree-sky span,.forest-tree,.growth-reward,.focus-celebrate .focus-display{animation:none}}
.quick-note{border:1px solid var(--line,#e6e7d9);border-radius:14px;padding:12px 14px;margin:10px 0;background:var(--paper,#fffef8)}.quick-note>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;font-size:14px}.quick-note>summary small{flex:0 0 auto;font-size:10px;color:var(--muted)}.quick-note-title{overflow-wrap:anywhere}.quick-note[open]>summary{margin-bottom:12px}.quick-note textarea{min-height:150px;font-size:15px;line-height:1.7}.quick-note .field{margin-top:10px}.quick-note-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.quick-note-foot small,.notes-daily-phrase small{font-size:11px;color:var(--muted)}.notes-daily-phrase{margin-top:18px}.notes-daily-phrase p{margin:8px 0 0;font-size:14px;line-height:1.8}
.stat-action{display:block;min-width:0;width:100%;padding:0!important;margin:0;border:0!important;background:transparent!important;text-align:left;border-radius:16px;cursor:pointer}.stat-action .stat{height:100%;transition:background .2s,border-color .2s}.stat-action:hover .stat,.stat-action:focus-visible .stat{background:#f1f3e5;border-color:#8f9e65}.stat-action:active{transform:scale(.98)}.home-health-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.home-health-summary>div{display:flex;flex-direction:column;gap:8px;padding:14px;background:var(--cream,#f5f6ed);border-radius:14px}.home-health-summary>div>small{font-size:12px;color:var(--muted)}.home-health-summary strong{font-size:22px}.home-health-summary strong small{font-size:11px;font-weight:400}.home-health-summary button{align-self:start;font-size:11px;min-height:32px}.health-meal-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line,#e6e8db)}.health-meal-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.health-meal-row b{font-size:14px}.health-meal-row small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.health-meal-row strong{font-size:12px;white-space:nowrap}.health-meal-row .mini{padding:5px 8px;font-size:11px;min-height:32px}.daily-panel-tabs{overflow-x:auto;justify-content:flex-start}.daily-panel-tabs button{white-space:nowrap;flex:0 0 auto}
.hub-goal{padding:16px;border:1px solid #e1e5d2;border-radius:16px;margin:12px 0}.hub-goal small{color:#899177}.hub-goal h3{margin:8px 0}.hub-goal button{margin-top:10px}.hub-reward{background:linear-gradient(120deg,#edf1d9,#fff7dc);margin-bottom:16px}.hub-reward h2{font-size:22px}.card{margin-bottom:16px}#hub-goal-form .field,#hub-workout .field{margin:14px 0}
.today-jumps{display:flex;gap:8px;position:sticky;top:56px;z-index:8;background:#fafbf5;padding:10px 0;margin-bottom:10px}.today-jumps a{flex:1;text-align:center;padding:10px 4px;background:#eef1df;border-radius:12px;font-size:12px;color:#536337;text-decoration:none;transition:background .2s}.today-jumps a:hover{background:#e0e7c4}.home-reward-strip{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#f2efd7;padding:12px 14px;border-radius:14px;font-size:12px;margin-bottom:16px}.home-reward-strip a{color:#657733}#today-tasks,#today-health,#today-notes{scroll-margin-top:120px}.home-health{margin-bottom:16px}.hub-goal{padding:12px}.hub-goal h3{font-size:15px}.hub-goal p{font-size:12px}
.saving-stage{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px;overflow:hidden;background:linear-gradient(135deg,#fff8df,#e7efcf);margin-bottom:16px}.saving-stage h2{font-size:clamp(24px,6vw,38px);margin:8px 0;color:#51632c}.saving-stage p{font-size:12px}.saving-art{position:relative;flex:0 0 90px;height:105px}.saving-art b{position:absolute;bottom:0;inset-inline:0;border-radius:25px 25px 32px 32px;background:#a4b76c;border:3px solid #788d48;text-align:center;padding:14px;color:#fff8d2;font-size:30px}.saving-art i,.saving-burst i{position:absolute;border:2px solid #b68442;border-radius:6px;background:#ffe2a6;color:#855a2a;font-style:normal;text-align:center;width:48px;height:26px}.saving-art i:first-child{top:4px;left:8px;transform:rotate(-16deg)}.saving-art i:nth-child(2){top:14px;left:28px;transform:rotate(12deg)}.saving-burst{position:absolute;inset:0;pointer-events:none}.saving-burst strong{position:absolute;right:12px;top:8px;background:#536730;color:white;padding:6px 10px;border-radius:12px;z-index:2}.saving-burst i{right:30px;top:10px;animation:save-cash .8s ease-in both;animation-delay:calc(var(--i)*.11s)}@keyframes save-cash{0%{transform:translate(-75px,-36px) rotate(-24deg);opacity:0}25%{opacity:1}80%{opacity:1}100%{transform:translate(0,65px) rotate(14deg) scale(.35);opacity:0}}@media(prefers-reduced-motion:reduce){.saving-burst i{display:none}}
