:root{--bg:#1f2a1d;--sheet:#f4efe6;--ink:#2b2620;--muted:#8a8174;--accent:#5f7f4a;color:var(--ink);-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{background:var(--bg);height:100%;margin:0}.app{flex-direction:column;max-width:480px;height:100dvh;margin:0 auto;display:flex}.world{touch-action:none;-webkit-user-select:none;user-select:none;min-height:0;padding-top:env(safe-area-inset-top);flex:55%;position:relative}.view-toggle{top:calc(env(safe-area-inset-top) + 12px);width:44px;height:44px;color:var(--ink);cursor:pointer;background:#f4efe6e0;border:none;border-radius:50%;place-items:center;display:grid;position:absolute;right:12px;box-shadow:0 2px 8px #0000002e}.sheet{background:var(--sheet);padding:8px 16px env(safe-area-inset-bottom);border-radius:20px 20px 0 0;flex-direction:column;flex:0 0 45%;display:flex;position:relative}.sheet-handle{background:#d6cec0;border-radius:2px;width:40px;height:4px;margin:0 auto 12px}.tabs{gap:4px;display:flex}.tab{color:var(--muted);font:inherit;background:0 0;border:none;border-radius:10px;flex:1;padding:8px 0;font-size:14px;font-weight:600}.tab.active{color:var(--ink);background:#e6ddcd}.sheet-body{flex:1;padding:16px 0;overflow-y:auto}.empty{color:var(--muted);text-align:center}.sheet{min-height:0;position:relative}.sheet-body{-webkit-overflow-scrolling:touch}input,select,textarea,button{font:inherit;color:inherit}input,select,textarea{background:#fffdf8;border:1px solid #d6cec0;border-radius:10px;min-width:0;padding:8px 10px;font-size:16px}button.primary{background:var(--accent);color:#fff;border:none;border-radius:10px;padding:8px 14px;font-weight:600}button.primary:disabled{opacity:.5}button.link{color:var(--accent);background:0 0;border:none;padding:0;font-weight:600}button.danger{color:#a4442f;background:0 0;border:none;padding:8px 0;font-weight:600}.error{color:#a4442f;margin:8px 0 0;font-size:14px}.add-row{gap:8px;margin-bottom:12px;display:flex}.add-row input{flex:1}.add-row select{flex:none;max-width:96px}.list{margin:0;padding:0;list-style:none}.row{border-bottom:1px solid #e6ddcd;align-items:center;gap:12px;min-height:52px;display:flex}.check{border:2px solid var(--accent);background:0 0;border-radius:50%;flex:none;width:28px;height:28px;padding:0}.check:active{background:var(--accent)}.row-main{text-align:left;background:0 0;border:none;flex-direction:column;flex:1;align-items:flex-start;gap:2px;min-width:0;padding:8px 0;display:flex}.row-title{font-weight:600}.row-meta{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:13px;overflow:hidden}.row-meta.overdue{color:#a4442f}.cond{border-radius:50%;flex:none;width:10px;height:10px}.cond-tidy{background:#6f9a52}.cond-fine{background:#c8b98f}.cond-messy{background:#d08a3c}.cond-neglected{background:#a4442f}.group h3{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:12px 0 0;font-size:13px}.editor,.auth form{flex-direction:column;gap:10px;padding:12px 0;display:flex}.editor label,.auth label{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;font-weight:600;display:flex}.editor .inline{color:var(--ink);align-items:center;gap:8px;font-size:15px;font-weight:400;display:flex}.editor .inline input{width:80px}.editor-actions{align-items:center;gap:8px;display:flex}.editor-actions button:not(.primary):not(.danger){background:0 0;border:none;padding:8px 10px;font-weight:600}.spacer{flex:1}.auth h2{margin:0;font-size:20px}.auth p{margin:0}.auth .link{margin-top:8px;display:block}.sheet-footer{color:var(--muted);text-align:center;margin-top:20px;font-size:13px}.sheet-footer .link{font-size:13px}.toast{left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));background:var(--ink);color:var(--sheet);border-radius:12px;justify-content:space-between;gap:12px;padding:12px 16px;font-size:14px;display:flex;position:absolute}.toast .link{color:#c7e0a8}.acorns{font-variant-numeric:tabular-nums;pointer-events:none;background:#f4efe6e0;border-radius:999px;padding:6px 12px;font-weight:600;position:absolute;top:-52px;left:12px;box-shadow:0 2px 8px #0000002e}.acorn-pop{color:#f4efe6;text-shadow:0 1px 3px #00000080;margin-left:4px;padding:6px 0;animation:1.4s ease-out forwards acorn-pop;position:absolute;top:0;left:100%}@keyframes acorn-pop{0%{opacity:0;transform:translateY(6px)scale(.8)}20%{opacity:1;transform:translateY(0)scale(1.15)}to{opacity:0;transform:translateY(-24px)scale(1)}}.shop-intro{color:var(--muted);margin:4px 0 8px;font-size:14px}.shop-btn{min-width:72px;min-height:36px;color:var(--ink);font:inherit;background:0 0;border:1px solid #d6cec0;border-radius:10px;flex:none;padding:6px 12px}.shop-btn:disabled{opacity:.5}.breakdown{padding:0 0 12px}.proposals{margin-top:8px}.proposal{background:#fbf8f2;border:1px solid #e6ddcd;border-radius:12px;flex-direction:column;gap:8px;margin-bottom:8px;padding:10px 12px;display:flex}.proposal-text{flex-direction:column;gap:2px;min-width:0;display:flex}.proposal-flavor{font-size:14px;font-style:italic}.proposal-actions{justify-content:flex-end;align-items:center;gap:16px;display:flex}.accept-all{margin-left:auto;display:block}button.proposal-text{text-align:left;cursor:pointer;background:0 0;border:none;padding:0}.proposal.focused{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.chat{flex-direction:column;min-height:100%;display:flex}.chat-who{border:none;gap:8px;min-width:0;margin:0 0 8px;padding:0;display:flex}.chip{color:var(--muted);background:#fffdf8;border:1px solid #d6cec0;border-radius:999px;padding:6px 14px;font-weight:600}.chip.active{border-color:var(--accent);background:var(--accent);color:#fff}.chat-unkept{color:var(--muted);margin:0 0 8px;font-size:.8rem}.chat-who .chip{align-items:center;gap:6px;padding-left:4px;display:inline-flex}.avatar{object-fit:cover;background:#efe6d6;border-radius:50%;width:24px;height:24px}.chat-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.chat-top .chat-who{margin-bottom:0}.chat-top .link{white-space:nowrap;margin-left:auto;padding-right:6px}.picker{background:#fffdf8;border:1px solid #e4dccd;border-radius:12px;margin-bottom:12px;padding:10px 12px}.picker-soon{color:var(--muted);margin:0 0 8px;font-size:.85rem}.picker-name{flex-direction:column;gap:4px;margin:0 0 10px;display:flex}.picker-name label{color:var(--muted);font-size:.8rem;font-weight:600}.picker-name-input{background:#fff;border:1px solid #e4dccd;border-radius:8px;min-width:0;padding:8px 10px;font-size:16px}.picker-name-input:disabled{opacity:.5}.picker-row{border:none;flex-wrap:wrap;gap:8px;min-width:0;margin:0 0 8px;padding:0;display:flex}.picker-row legend{float:left;width:100%;color:var(--muted);margin-bottom:4px;font-size:.8rem;font-weight:600}.picker-row:disabled{opacity:.5}.picker .character{background:#efe6d6;border:2px solid #0000;border-radius:10px;width:52px;height:52px;padding:2px}.picker .character img{width:100%;height:100%}.picker .swatch{border:2px solid #d6cec0;border-radius:50%;width:40px;height:40px}.picker .swatch.original{background:linear-gradient(135deg,#fffdf8 45%,#c9bfae 45% 55%,#fffdf8 55%)}.picker [aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.chat-intro{margin-bottom:8px}.chat-thread{flex-direction:column;flex:1;gap:8px;margin:0 0 8px;padding:0;list-style:none;display:flex}.bubble{overflow-wrap:anywhere;border-radius:14px;max-width:88%;padding:8px 12px}.bubble p{margin:0}.bubble.user{background:var(--accent);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}.bubble.villager{background:#e9e1d2;border-bottom-left-radius:4px;align-self:stretch;max-width:100%}.bubble.thinking p{color:var(--muted)}.bubble-name{color:var(--accent);font-size:13px;font-weight:700;display:block}.chat-input{background:var(--sheet);margin:0;padding:8px 0 4px;position:sticky;bottom:0}.row-wrap.focused{box-shadow:inset 3px 0 0 var(--accent)}.suggestion{margin-bottom:12px}.suggestion-line{background:#fff;border-radius:14px 14px 14px 4px;margin:0 0 6px;padding:8px 12px;font-size:.95rem}.suggestion-line .bubble-name{display:block}.journal{background:#fffaf0;border-left:4px solid #c9b48f;border-radius:6px 14px 14px 6px;margin-bottom:14px;padding:12px 14px 10px;position:relative;box-shadow:0 1px 3px #00000014}.journal-head{color:var(--muted);justify-content:space-between;gap:8px;margin-bottom:4px;font-size:.8rem;display:flex}.journal-title{color:#8a7350;font-weight:600}.journal-entry{margin:0;font-family:Georgia,Iowan Old Style,serif;font-style:italic;line-height:1.45}.journal-close{margin:6px 0 0 auto;display:block}.journal-entry{animation:.4s journal-in}@keyframes journal-in{0%{opacity:.2}}.check.checked{background:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M6 12.5l4 4 8-9%27 fill=%27none%27 stroke=%27%23fff%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:18px}.row.done .row-title{color:var(--muted);text-decoration:line-through}.progress{background:#e6ddcd;border-radius:3px;flex:none;width:64px;height:6px;overflow:hidden}.progress>span{background:var(--accent);height:100%;display:block}.project .back{padding:4px 0}.project-head{flex-direction:column;gap:4px;margin:4px 0 12px;display:flex}.project-head h2{margin:0;font-size:20px}.project-head .progress{width:100%}.project-notes{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;font-weight:600;display:flex}.steps-title{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:16px 0 8px;font-size:13px}.step-move{flex:none;display:flex}.move{width:36px;height:40px;color:var(--muted);background:0 0;border:none;padding:0;font-size:18px}.move:disabled{opacity:.25}.project-actions{margin-top:16px}.pet-tag{vertical-align:1px;background:#e6ddcd;border-radius:8px;margin-right:6px;padding:1px 7px;font-size:12px;font-weight:600;display:inline-block}button.primary.wide{width:100%;padding:10px 14px}.presets{border:none;flex-direction:column;gap:8px;margin:0;padding:0;display:flex}.presets legend{color:var(--muted);margin-bottom:4px;font-size:13px;font-weight:600}.editor .check-label{color:var(--ink);flex-direction:row;align-items:center;gap:10px;font-size:15px;font-weight:400}.editor .check-label input{flex:none;width:20px;height:20px}.hint{color:var(--muted);margin:0;font-size:13px}.home-card{background:#fffaf0;border:1px solid #e6d8bd;border-radius:14px;flex-direction:column;gap:10px;margin-bottom:14px;padding:12px 14px;display:flex}.home-card :where(p){margin:0}.home-card textarea{box-sizing:border-box;resize:vertical;width:100%}.home-label{font-weight:600}.home-actions{flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:8px;display:flex}.app.gate{justify-content:flex-end}.gate .sheet{flex:0 auto;min-height:45%}.splash{z-index:50;background:radial-gradient(circle at 50% 40%, #2f3e2c, var(--bg) 70%);color:var(--sheet);flex-direction:column;justify-content:center;align-items:center;gap:20px;display:flex;position:fixed;inset:0}.splash-name{letter-spacing:.04em;font-size:28px;font-weight:600}.splash-spinner{border:2px solid #f4efe640;border-top-color:#f4efe6cc;border-radius:50%;width:22px;height:22px;animation:.9s linear infinite splash-spin}.splash.leaving{pointer-events:none;animation:.5s .25s forwards splash-out}@keyframes splash-spin{to{transform:rotate(360deg)}}@keyframes splash-out{to{opacity:0}}@media (prefers-reduced-motion:reduce){.splash-spinner{animation-duration:2.5s}}.hover-tag{color:var(--sheet);white-space:nowrap;pointer-events:none;background:#2b2620d9;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:13px;display:flex;position:absolute;top:0;left:0}.sheet-content{display:contents}.panel-toggle{display:none}@media (width>=768px){.app:not(.gate){max-width:none}}@media (width>=1024px){html,body{overflow:hidden}.app.gate{background:radial-gradient(circle at 50% 40%, #2f3e2c, var(--bg) 70%);justify-content:center;align-items:center;max-width:none;padding:24px}.gate .sheet{border-radius:20px;flex:none;width:420px;min-height:0;max-height:100%;padding:28px 32px 24px;overflow-y:auto;box-shadow:0 12px 40px #00000059}.gate .sheet-handle{display:none}.app:not(.gate){flex-direction:row}.app:not(.gate) .world{cursor:grab;flex:auto;min-width:0}.app:not(.gate) .world:active{cursor:grabbing}.app:not(.gate) .sheet{border-radius:0;flex:0 0 400px;width:400px;height:100dvh;padding:16px 20px 0;transition:margin-right .25s;box-shadow:-4px 0 16px #00000026}.app:not(.gate) .sheet.folded{margin-right:-400px}.app:not(.gate) .sheet-handle{display:none}.app:not(.gate) .panel-toggle{background:var(--sheet);width:28px;height:48px;color:var(--ink);cursor:pointer;border:none;border-radius:10px 0 0 10px;place-items:center;padding:0;display:grid;position:absolute;top:72px;right:100%;box-shadow:-2px 2px 6px #00000026}.app:not(.gate) .acorns{white-space:nowrap;inset:auto calc(100% + 16px) 16px auto}.app:not(.gate) .toast{left:20px;right:20px}.tab,.row-main,.check,.chip,.shop-btn,button.link,button.primary{cursor:pointer}.tab:hover:not(.active){color:var(--ink)}.row-main:hover .row-title{color:var(--accent)}}
