@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;600;700&display=swap");
:root{--paper:#fffef7;--ink:#38463a;--muted:#687565;--line:#687565;--sage:#cee3c3;--blue:#deeaf0;--peach:#f3dfc8;font-family:"Comfortaa",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:#e8e9e2;display:flex;align-items:center;justify-content:center;gap:64px;min-height:100dvh;padding:24px;font-size:13px}button,input,textarea,select{font:inherit;color:inherit;touch-action:manipulation}button{background:var(--paper);border:.8px solid var(--line);border-radius:3px;padding:10px 12px;text-align:left;cursor:pointer;line-height:1.4}button:hover{background:#e8efdf}button:active{background:#dce8d1}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #739baa;outline-offset:3px}.primary{background:var(--sage)}.blue{background:var(--blue)}.peach{background:var(--peach)}.full{width:100%}.stack{display:grid;gap:9px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.muted,.sub{font-size:11px;line-height:1.55;color:var(--muted)}.sub{margin:4px 0 0}.tiny{font-size:10px}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:400;line-height:1.45}h2{font-size:16px;font-weight:400;line-height:1.4;margin-bottom:8px}h3{font-size:13px;font-weight:400;margin-bottom:5px}.phone{width:390px;height:min(844px,calc(100dvh - 48px));min-height:600px;display:flex;flex-direction:column;flex-shrink:0;background:var(--paper);border-radius:20px;overflow:hidden;box-shadow:0 10px 60px #38463a14}.status{height:28px;padding:8px 22px 0;flex-shrink:0;font-size:10px}header{margin:0 20px;padding:8px 0 12px;border-bottom:1px solid var(--ink);flex-shrink:0}.header-top{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative}.coins{border:0;padding:4px 0;font-size:10px;white-space:nowrap;align-self:center}.streak{display:flex;align-items:center;flex-direction:column;gap:2px;font-size:8px;position:absolute;left:50%;top:-13px;transform:translateX(-50%);white-space:nowrap}.streak svg{width:18px;height:23px}header>.sub{font-size:11px;color:var(--ink);margin-top:3px}
main{padding:16px 20px;flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:16px}main>section{flex-shrink:0}main>p{flex-shrink:0}.card,.card-button{border:.8px solid var(--line);border-radius:3px;padding:12px;background:transparent}.card-button{width:100%;display:block;margin-bottom:8px}.card-button strong{font-weight:400}.card-button .sub{display:block}.card p:last-child{margin-bottom:0}.buddy-card{position:relative;display:flex;align-items:center;gap:14px;background:var(--sage);min-height:112px;padding:12px}.buddy-card .plant{width:88px;height:82px;margin:0;flex-shrink:0;object-fit:contain}.buddy-card h2{font-size:17px;margin:0 0 5px}.buddy-card .sub{color:var(--ink);font-size:11px}.chat-corner{position:absolute;right:12px;top:12px;width:25px;height:25px}.plant{display:block;object-fit:contain;width:145px;height:130px;margin:auto}.plant-large{width:145px;height:140px}.progress-track{height:9px;border:.8px solid var(--line);background:#f6f2e7;overflow:hidden;border-radius:1px}.progress-fill{height:100%;background:#a5c985;transition:width .3s}.goal-label{margin-top:8px}.screen-note{font-size:10px;color:var(--muted);margin-top:auto;line-height:1.5}.date-label{font-size:10px;margin-bottom:10px}.today-screen .stack>h2{margin:0}.today-screen .card-button{margin:0}
nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:7px 10px 10px;gap:6px;border-top:1px solid var(--line);background:var(--paper);flex-shrink:0;position:relative;z-index:1}nav button{border-color:transparent;text-align:center;font-size:10px;padding:6px 3px;border-radius:2px}nav button.active{border-color:var(--ink);background:var(--sage)}.nav-icon{display:block;width:21px;height:22px;object-fit:contain;margin:0 auto 5px}.tabs{display:flex;border:.8px solid var(--line);border-radius:3px;overflow:hidden;margin-bottom:12px;flex-shrink:0}.tabs button{border:0;border-right:.8px solid var(--line);border-radius:0;flex:1;text-align:center;font-size:11px;padding:9px 2px}.tabs button:last-child{border-right:0}.tabs button.active{background:var(--blue)}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:12px 0 6px}.week button{font-size:9px;text-align:center;padding:7px 1px}.week b{display:block;margin-top:4px;font-size:10px;font-weight:400}.week button.active,.month button.active{background:var(--sage)}.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:10px 0}.month button{text-align:center;padding:5px 0;font-size:10px}.month .day-label{text-align:center;font-size:9px;padding:4px}.dot:after{content:"";display:block;margin:3px auto 0;background:#648160;width:3px;height:3px;border-radius:50%}.icon-button{border:0;padding:4px 7px}.planner-screen{gap:12px}.planner-screen h2{font-size:14px;margin-bottom:7px}.planner-screen>.stack{gap:6px}.planner-screen .row>.primary{font-size:10px;padding:6px 8px}.planner-screen .empty{font-size:11px;padding:8px}.planner-screen .empty p{margin-bottom:3px}.planner-screen .empty .sub{display:none}.planner-screen .card-button{padding:10px;margin-bottom:6px}.planner-footer{display:flex;justify-content:space-between;margin-top:auto;gap:10px}.completed-list{border-top:.8px solid #c5cebe;padding-top:8px;font-size:11px}.completed-list>summary{cursor:pointer}.completed-list .card-button{margin-top:8px}.empty{padding:14px;background:#f1f3e9;line-height:1.5}.text-button{border:0;background:transparent;padding:4px 0;font-size:11px;color:var(--ink)}.danger{color:#985348}.field{display:grid;gap:6px;margin-bottom:12px;font-size:11px;line-height:1.4}input,textarea,select{background:var(--paper);border:.8px solid var(--line);border-radius:3px;width:100%;min-width:0;padding:10px;line-height:1.4}input[type="datetime-local"]{background:var(--blue)}textarea{resize:vertical;min-height:70px}.task-select-row{display:flex;align-items:flex-end;gap:8px;margin-bottom:12px}.task-select-row>.field{flex:1;min-width:0;margin:0}.task-select-row>button{white-space:nowrap;font-size:10px;padding:10px 9px}.eyebrow{text-transform:none;font-size:10px}.task-screen{gap:12px}.task-screen #task-form>.row{margin-bottom:9px}.task-screen #save-state{font-size:9px;text-align:right}.task-screen .field{margin-bottom:9px}.task-screen .field input{padding:8px 10px;font-size:12px}.task-steps{margin:0}.task-steps .row{margin-bottom:8px}.task-steps h2{margin:0}.editable-step{display:flex;align-items:center;gap:6px;margin-bottom:6px}.step-check{display:flex;align-items:center;flex-shrink:0}.step-check input,.check-row input[type="checkbox"]{appearance:none;width:16px;height:16px;min-width:16px;padding:0;margin:0;border:1px solid var(--line);border-radius:0;background:var(--paper);position:relative}.step-check input:checked,.check-row input[type="checkbox"]:checked{background:var(--sage)}.step-check input:checked:after,.check-row input[type="checkbox"]:checked:after{content:"";position:absolute;width:5px;height:9px;border:solid var(--ink);border-width:0 1.3px 1.3px 0;transform:rotate(42deg);left:5px;top:1px}.step-name{flex:1;min-width:0;font-size:11px;padding:6px;border-color:transparent}.step-name:focus{border-color:var(--line)}.step-name.done{text-decoration:line-through;color:var(--muted)}.step-actions{display:flex;gap:0}.step-actions button{font-size:12px;padding:3px;min-width:19px;border:0}.task-screen .stack{gap:6px}.task-screen .stack button{padding:7px 10px;font-size:11px}.task-screen .chat-form{margin-top:6px}.check-row{display:flex;align-items:center;gap:8px;margin:9px 0;font-size:12px}.check-row>span{flex:1}
.timer-screen{gap:0;padding-top:14px}.timer-screen>section{margin:0}.timer-screen .task-select-row{margin-bottom:8px}.timer-screen .task-select-row>.field>select{padding:7px 9px}.timer-screen .task-select-row>.field{font-size:10px}.timer-screen .task-select-row>button{padding:8px 7px}.timer-screen .field{gap:4px;margin-bottom:8px;font-size:10px}.timer-screen .field select{padding:6px;font-size:11px}.timer-ring{width:224px;height:224px;margin:12px auto;border-radius:50%;border:.7px solid var(--ink);background:conic-gradient(#85d2ef var(--pct,0%),var(--blue) 0);padding:8px;flex-shrink:0}.timer-inner{border:.7px solid var(--ink);background:var(--paper);border-radius:50%;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:15px;position:relative}.timer-inner .plant{width:95px;height:87px;flex-shrink:0;margin:0;object-fit:contain}.time{font:400 30px/1.2 "Comfortaa",sans-serif;font-variant-numeric:tabular-nums;flex-shrink:0}#timer-label{font-size:11px;max-width:155px;line-height:1.4}.growth{display:flex;justify-content:space-between;font-size:9px}.growth-button{border:0;background:transparent;padding:7px 0 3px}.duration-field{display:flex;justify-content:center;align-items:center;gap:5px;margin:5px 0 10px;font-size:11px}.duration-field input{width:48px;font-size:11px;text-align:center;border-color:transparent;padding:3px;background:transparent}.duration-field input:focus{border-color:var(--line)}.timer-screen .stack{gap:6px}.timer-screen .stack button{padding:8px 10px;font-size:11px}.review-session{padding:6px 10px;font-size:10px;margin-bottom:7px}.complete-ring{margin:12px auto 14px}.water-drop{position:absolute;width:12px;height:26px;top:1px;left:calc(50% - 6px);animation:water .8s ease-out both}@keyframes water{from{transform:translateY(-4px);opacity:0}to{transform:translateY(13px);opacity:1}}
.progress-screen{gap:12px}.progress-screen section{margin:0}.progress-screen h2{font-size:15px}.chart{height:124px;display:flex;align-items:flex-end;gap:8px;padding-top:10px;margin:8px 0 12px}.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;text-align:center;font-size:9px;color:var(--ink);min-width:0}.chart-col span{display:block;width:100%;text-align:center}.bar{width:23px;min-height:2px;background:var(--blue);border:.7px solid var(--line);margin:4px 0 6px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stats .card{padding:9px}.stats strong{display:block;font-size:19px;font-weight:400}.progress-screen .card{padding:10px}.progress-screen .card h3{font-size:12px}.progress-screen .sub{font-size:10px}.progress-screen .session-list{font-size:10px}.progress-screen .session-list .row{padding:5px 0;border-bottom:.7px solid #d9dece}.progress-screen .stack{gap:6px}.progress-screen .stack button{padding:6px 10px;font-size:11px}
main.buddy-screen{display:flex;flex-direction:column;overflow:hidden;padding:12px 20px 10px;gap:0}.buddy-context{padding-bottom:10px;flex-shrink:0}.buddy-identity{display:flex;align-items:center;gap:10px;margin-bottom:8px;min-height:44px}.buddy-identity .plant{width:52px;height:47px;margin:0;flex-shrink:0}.buddy-identity>div{flex:1;min-width:0}.ai-status{font-size:10px;display:inline-flex;align-items:center;gap:5px}.ai-status:before{content:"";width:5px;height:5px;border-radius:50%;background:#6c9460}.ai-status.off:before{background:#b18a48}.buddy-identity .text-button{font-size:9px}.buddy-context .task-select-row{margin:0}.buddy-context .field{font-size:0}.buddy-context select{font-size:12px;padding:10px}.buddy-context .task-select-row>button{padding:11px 9px}#messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px 4px 16px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth}.bubble{flex-shrink:0;align-self:flex-start;background:var(--blue);border:0;border-radius:12px 12px 12px 3px;padding:12px 14px;width:auto;max-width:90%;font-size:12px;line-height:1.6;overflow-wrap:anywhere;position:relative}.bubble:after{content:"";position:absolute;left:0;bottom:-4px;width:9px;height:9px;background:var(--blue);clip-path:polygon(0 0,100% 0,0 100%)}.bubble.user{align-self:flex-end;background:var(--sage);border-radius:12px 12px 3px 12px;max-width:75%}.bubble.user:after{left:auto;right:0;background:var(--sage);clip-path:polygon(0 0,100% 0,100% 100%)}.bubble-text{white-space:pre-wrap}.bubble ol{margin:8px 0 0;padding-left:20px}.bubble li+li{margin-top:5px}.pending{opacity:.7}.buddy-compose{flex-shrink:0;padding-top:10px;background:var(--paper)}.quick-prompts{display:grid;grid-template-columns:1.2fr 1.1fr .8fr;gap:7px}.quick-prompts button{font-size:10px;text-align:center;padding:8px 3px;border-radius:5px;white-space:nowrap}.chat-form{display:flex;align-items:center;gap:8px;margin-top:8px}.chat-form input{flex:1;min-width:0;font-size:12px}.chat-form>button{width:46px;flex-shrink:0;padding:10px;text-align:center}.buddy-compose .chat-form input{background:var(--paper);border-radius:7px;height:44px}.buddy-compose .chat-form button{height:44px;border-radius:7px}.buddy-disclosure{font-size:9px;line-height:1.5;margin-top:8px}.buddy-disclosure .text-button{font-size:9px;padding:0;text-decoration:underline}.notice{background:#f1ebdb;padding:10px;font-size:11px;line-height:1.5;border-radius:4px;margin-bottom:4px;flex-shrink:0}.notice a{color:inherit}
.growth-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.growth-stage{border:.8px solid var(--line);padding:10px;text-align:left;min-width:0}.growth-stage .plant{width:100%;height:100px;object-fit:contain;margin-bottom:8px}.growth-stage .muted{font-size:10px}.growth-stage h3{font-size:13px}.current-stage{background:#edf3e6}.desktop-note{width:210px}.wordmark{display:block;font-size:36px;letter-spacing:-2px}.desktop-note>p{font-size:22px;line-height:1.6;margin:25px 0;color:#75836c}.note-small{display:block;font-size:10px;color:#7b8775;margin-top:20px}.center{text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;width:calc(100% - 32px);max-width:420px;padding:22px;max-height:88dvh;overflow-y:auto;box-shadow:0 20px 80px #20302033}dialog::backdrop{background:#26362666}dialog h2{font-size:21px;margin-bottom:12px}dialog h3{margin-top:12px}dialog .intro-copy{font-size:12px;line-height:1.7;margin-bottom:12px}dialog .stack{margin-top:14px}dialog .card-button{margin:0}.intro-copy{font-size:12px;line-height:1.7}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:10;background:#e3eddc;border:1px solid var(--line);color:var(--ink);padding:12px 16px;border-radius:5px;display:none;font-size:11px;line-height:1.5}.focus-mode .desktop-note{visibility:hidden}.focus-mode nav{opacity:.4}
@media(max-width:760px){body{padding:0;background:var(--paper)}.desktop-note{display:none}.phone{width:100%;max-width:460px;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}.status{height:calc(24px + env(safe-area-inset-top));padding-top:max(8px,env(safe-area-inset-top))}nav{padding-bottom:max(10px,env(safe-area-inset-bottom))}#toast{bottom:90px}dialog{max-height:85dvh}}
@media(max-height:760px){body{padding:0}.phone{height:100dvh}header{padding-top:3px;padding-bottom:8px}h1{font-size:25px}.status{height:22px;padding-top:5px}main{gap:11px;padding-top:12px;padding-bottom:10px}.buddy-card{min-height:98px}.buddy-card .plant{height:74px;width:76px}.timer-ring{width:204px;height:204px;margin:9px auto}.timer-inner .plant{width:85px;height:76px}.time{font-size:28px}.timer-screen .stack button{padding:6px 9px}.timer-screen .field{margin-bottom:6px}.task-screen .field{margin-bottom:7px}.task-screen .field input{padding:6px 9px}.task-screen .stack button{padding:5px 8px}.task-screen{gap:8px}.progress-screen{gap:9px}.progress-screen .card{padding:8px}.chart{height:108px;margin-bottom:9px}.buddy-context{padding-bottom:7px}.buddy-compose{padding-top:6px}nav{padding-top:5px;padding-bottom:7px}nav button{padding:4px 3px}}
@media(max-height:670px){header .sub{font-size:10px}.phone{min-height:0}.status{height:18px}main{gap:9px;padding:10px 16px}.buddy-card{min-height:85px}.buddy-card .plant{width:66px;height:64px}.today-screen .screen-note{display:none}.timer-screen .task-select-row>.field{font-size:0}.timer-ring{width:180px;height:180px;margin:7px auto}.timer-inner{gap:3px;padding:9px}.timer-inner .plant{width:73px;height:65px}.time{font-size:25px}#timer-label{font-size:10px}.timer-screen .stack{gap:4px}.timer-screen .stack button{padding:5px 9px}.timer-screen .tabs{margin-bottom:6px}.timer-screen .tabs button{padding:6px 2px}.task-screen .field{gap:3px;font-size:10px}.task-screen .field input{padding:5px 8px;font-size:11px}.task-screen .editable-step{margin-bottom:3px}.step-name{padding:4px}.task-screen .stack .text-button{padding:2px}.progress-screen .stats,.progress-screen .session-list{display:none}.progress-screen h2{font-size:13px}.progress-screen .card{padding:7px}.progress-screen .sub{font-size:9px}.buddy-identity .plant{width:44px;height:40px}.buddy-context select{padding:7px}.quick-prompts button{padding:6px 2px}.buddy-compose .chat-form input,.buddy-compose .chat-form button{height:39px}nav .nav-icon{height:19px;width:19px;margin-bottom:3px}nav button{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

.card.primary{background:var(--sage)}.card.blue{background:var(--blue)}.card.peach{background:var(--peach)}

/* Align controls by their input edges, independently of label spacing. */
.task-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.task-select-row>.field,.timer-screen .task-select-row>.field{margin:0;min-width:0}
.task-select-row>.field>select,.task-select-row>button,.timer-screen .task-select-row>.field>select,.timer-screen .task-select-row>button,.buddy-context .task-select-row>button{height:40px;padding:8px 10px;line-height:1.4}
.task-select-row>button{display:flex;align-items:center;justify-content:center;align-self:end}
.header-top h1{flex-shrink:0}.header-top>.coins{margin-left:auto}header>.sub{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.card-button strong{min-width:0;overflow-wrap:anywhere}.card-button .tiny{flex-shrink:0}.row>h2{margin-bottom:0}.card-button .row{align-items:flex-start}
.task-screen #task-form{flex-shrink:0}.task-screen>.stack{margin-top:auto}.task-screen .step-name{overflow:hidden;text-overflow:ellipsis}
.planner-footer{flex-shrink:0}.planner-screen .completed-list{padding:7px 10px;font-size:10px;text-align:center}
.chart-col>span:first-child{min-height:14px;line-height:14px}.chart-col>span:last-child{min-height:14px;line-height:14px}
.growth-gallery .plant{width:100%;height:115px;object-fit:contain}.growth-gallery h3{min-height:18px}.growth-stage{text-align:left}
@media(max-width:360px){main{padding-left:14px;padding-right:14px}header{margin-left:14px;margin-right:14px}.task-select-row>button{font-size:9px;padding-left:6px;padding-right:6px}.quick-prompts{gap:4px}.quick-prompts button{font-size:9px}}

.duration-field{display:flex;width:max-content;max-width:100%;margin:6px auto 10px;justify-content:center;gap:4px;white-space:nowrap;line-height:30px}
.duration-field input{appearance:textfield;-moz-appearance:textfield;flex:0 0 38px;width:38px;min-width:38px;height:30px;padding:3px 2px;border:.8px solid var(--line);border-radius:3px;font-variant-numeric:tabular-nums;background:var(--paper)}
.duration-field input::-webkit-inner-spin-button,.duration-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.duration-field input:disabled{background:#f1f3e9;color:var(--muted)}

.timer-screen .stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.timer-screen .stack>button{min-width:0;text-align:center;min-height:36px;padding:7px 8px}
.timer-screen .stack>.row{display:flex;align-items:center;justify-content:space-between;gap:6px}
.timer-screen .task-select-row>.field{font-size:0;gap:0}
.timer-screen .task-select-row>.field>select{font-size:11px}
.timer-screen .growth-button{line-height:16px}
.timer-screen .field>select{min-width:0;max-width:100%;text-overflow:ellipsis}
@media(max-height:760px){.timer-screen .timer-ring{width:180px;height:180px;margin:8px auto}.timer-screen .timer-inner .plant{width:75px;height:67px}.timer-screen .timer-inner{padding:10px;gap:4px}.timer-screen .duration-field{margin-top:3px;margin-bottom:6px}.timer-screen .stack>button{min-height:32px;padding:5px 7px}}

body{height:100dvh;min-height:0;overflow:hidden}.phone{min-height:0}

/* Buddy prompts share the same sage action palette. */
.quick-prompts button{background:var(--sage)}
button.primary:hover:not(:disabled),.quick-prompts button:hover:not(:disabled){background:#c2d9b6}
button.primary:active:not(:disabled),.quick-prompts button:active:not(:disabled){background:#b8d1ab}

.phone{padding-top:max(16px,env(safe-area-inset-top))}
