:root{font-family:system-ui,-apple-system,Segoe UI,Microsoft YaHei,sans-serif;color:#415247;background:#e9e9e1;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #748d69;outline-offset:3px}.phone{position:relative;width:100%;max-width:480px;margin:auto;min-height:100svh;background:#f7f5ef}header{display:flex;align-items:center;justify-content:space-between;padding:calc(15px + env(safe-area-inset-top)) 20px 12px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#919786}h1{font-size:23px;letter-spacing:-.04em;margin:3px 0 0;font-weight:600}#places-toggle{display:grid;justify-items:center;gap:0;background:#e8ecdf;border-radius:15px;width:48px;min-height:48px}#places-toggle span{font-size:23px;line-height:25px}#places-toggle small{font-size:10px}.stage{position:relative;height:calc(100svh - 167px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:370px;max-height:850px;overflow:hidden;background:#e6e3d9}canvas{display:block;width:100%;height:100%;touch-action:none}.location{position:absolute;left:16px;top:16px;display:flex;gap:7px;align-items:center;font-size:11px;background:#faf7eedd;border:1px solid #fff8;border-radius:20px;padding:8px 11px;pointer-events:none}.green-dot{width:5px;height:5px;border-radius:50%;background:#81976c}#places{position:absolute;right:12px;top:14px;width:80px;padding:6px;background:#f9f7efef;border:1px solid #ffffffb3;border-radius:20px;box-shadow:0 8px 26px #3b453518;animation:drawer-in .18s ease-out}#places button{display:grid;justify-items:center;gap:3px;width:100%;min-height:64px;background:transparent;border-radius:14px}#places button:active{background:#e4eada}#places span{font-size:23px;line-height:25px}#places small{font-size:10px}#toast{position:absolute;left:50%;bottom:76px;transform:translate(-50%);max-width:calc(100% - 30px);border-radius:20px;background:#faf7efe8;padding:11px 17px;font-size:12px;text-align:center;white-space:nowrap;pointer-events:none}#stop-walk{position:absolute;bottom:20px;left:50%;transform:translate(-50%);background:#f7f6eedf;border-radius:24px;padding:13px 23px;min-height:44px;font-size:12px;box-shadow:0 3px 18px #3332}.bottom{text-align:center;padding:12px 12px calc(10px + env(safe-area-inset-bottom))}.bottom p{font-size:12px;letter-spacing:.02em;margin:0 0 5px}.bottom span{font-size:10px;color:#929a8a}.info{border-top:1px solid #e8e9de;font-size:11px;color:#85907c;padding:0 20px}.info summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center;list-style:none}.info summary:after{content:"\2304";padding-left:8px}.info>div{padding:0 4px 20px;line-height:1.8}.info p{margin:6px 0 12px}.info label{display:flex;align-items:center;min-height:44px;gap:8px}.info input{accent-color:#7c956b;width:18px;height:18px}.info a{display:inline-block;min-height:44px;padding:12px 0;color:#536e49;text-underline-offset:4px}#loading,.loading-error{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:17px;font-size:12px;color:#829077;background:#ecece3}.loading-dot{width:24px;height:24px;border:2px solid #c7d0bd;border-top-color:#7e956c;border-radius:50%;animation:spin 1.1s linear infinite}.loading-error button{min-height:44px;border-radius:15px;padding:10px 24px;background:#dde7d2}[hidden]{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}@keyframes drawer-in{0%{opacity:0;transform:translate(20px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}@media(max-height:700px){header{padding-top:12px}.stage{height:calc(100svh - 154px);min-height:300px}}#cat-status{position:absolute;top:54px;left:17px;margin:0;font-size:10px;color:#607158;background:#faf7eedb;border-radius:12px;padding:7px 10px;max-width:calc(100% - 120px);pointer-events:none}.cat-actions{position:absolute;bottom:18px;left:50%;transform:translate(-50%);display:flex;gap:8px;white-space:nowrap}.cat-actions button{min-height:46px;border-radius:24px;padding:12px 22px;background:#f8f7efeb;font-size:12px;box-shadow:0 4px 18px #343c2d15}.cat-actions #cat-call{background:#e3ebd8;color:#49653e}.cat-actions #crouch[aria-pressed=true]{background:#e7ecdd}.cat-actions #cat-call{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;touch-action:manipulation}.cat-actions #cat-call small{font-size:9px;font-weight:400;color:#738366;line-height:1.3}.cat-actions button:disabled{color:#8c9584;cursor:wait}#stop-walk{bottom:77px;min-height:44px;padding:10px 20px}#toast{bottom:128px}.phone{height:100svh;display:flex;flex-direction:column}.phone>header,.phone>.bottom,.phone>.info{flex:0 0 auto}.phone>.stage{flex:1;min-height:260px;height:auto;max-height:none}.info[open]{max-height:38svh;overflow:auto}.cat-actions{gap:7px;max-width:calc(100% - 24px)}.cat-actions button{padding:12px 15px}.cat-actions #companion-toggle{background:#dce8d2;color:#49653e}.cat-actions #companion-toggle span{font-size:18px;vertical-align:-1px}.companion-panel{position:absolute;right:12px;bottom:82px;width:82px;padding:6px;background:#f9f7eff5;border:1px solid #fff9;border-radius:20px;box-shadow:0 8px 26px #3b45351c;animation:drawer-in .18s ease-out;max-height:calc(100% - 110px);overflow:auto}.companion-panel button{display:grid;justify-items:center;gap:4px;width:100%;min-height:64px;border-radius:14px;background:transparent}.companion-panel button:active{background:#e4eada}.companion-panel span{font-size:25px;line-height:26px}.companion-panel small{font-size:11px}.companion-panel p{margin:7px 0;text-align:center;font-size:10px;color:#8a927c}#touch-zones{position:absolute;right:12px;bottom:82px;width:124px;padding:6px;display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f9f7eff5;border:1px solid #fff9;border-radius:20px;box-shadow:0 8px 26px #3b45351c;animation:drawer-in .18s ease-out}#touch-zones button{min-height:61px;display:grid;justify-items:center;align-content:center;gap:4px;border-radius:14px;background:transparent}#touch-zones button:active{background:#e4eada}#touch-zones small{font-size:11px}#touch-zones svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}#cat-status{max-width:calc(100% - 34px);line-height:1.6;background:#faf7eee8}#toast{white-space:normal;min-width:180px;width:max-content;line-height:1.5;bottom:124px}#touch-feedback{position:absolute;width:32px;height:32px;border:1.5px solid #82976d;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;animation:touch-bloom .65s ease-out forwards}.bottom p{font-size:11px;line-height:1.6;min-height:18px}.bottom span{font-size:10px}@keyframes touch-bloom{0%{opacity:.8;scale:.65}to{opacity:0;scale:1.8}}html,body{height:100%;overflow:hidden;overscroll-behavior:none}.phone{height:100svh;height:100dvh;min-height:100svh;min-height:100dvh;overflow:hidden}.phone>.stage{min-height:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;pointer-events:none}.cat-actions{bottom:calc(18px + env(safe-area-inset-bottom))}#stop-walk{bottom:calc(77px + env(safe-area-inset-bottom))}#toast{bottom:calc(124px + env(safe-area-inset-bottom))}.companion-panel,#touch-zones{bottom:calc(82px + env(safe-area-inset-bottom))}#places{width:108px;max-height:calc(100% - 110px - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}#places .view-settings{border-top:1px solid #dce1d3;margin-top:4px;padding-top:4px}#places label{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;font-size:10px;white-space:nowrap}#places input{accent-color:#7c956b;width:16px;height:16px;margin:0}#places .license-link{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:10px;color:#738366;text-underline-offset:3px}.home-tools{display:flex;gap:6px;align-items:center}.home-tools button,.home-tools #places-toggle{display:grid;place-items:center;align-content:center;gap:1px;width:44px;min-height:48px;border-radius:14px;background:#e8ecdf}.home-tools small{font-size:10px}.home-tools svg,.life-drawer svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.home-tools button[aria-expanded=true]{background:#cfdec3}.life-drawer{position:absolute;z-index:4;right:10px;top:12px;bottom:85px;width:min(46%,174px);padding:8px;background:#faf8f2f5;border:1px solid #fffc;border-radius:21px;box-shadow:0 8px 26px #3b453524;overflow:auto;overscroll-behavior:contain;animation:drawer-in .18s ease-out;scrollbar-width:thin;scrollbar-color:#c5ceba transparent}.drawer-heading{display:flex;align-items:center;justify-content:space-between}.drawer-heading h2{font-size:13px;font-weight:600;margin:0 0 0 5px}.drawer-heading button{width:36px;min-height:44px;background:transparent;font-size:23px;color:#7c8775;border-radius:12px}.drawer-subtitle{font-size:10px;color:#839078;margin:0 5px 12px;line-height:1.5}.life-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.life-grid button{min-width:0;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:13px;background:#efeee4;padding:8px 2px}.life-grid small{font-size:11px;line-height:1.4}.life-grid em{font-size:9px;font-style:normal;color:#849079}.life-grid button[aria-pressed=true]{border-color:#91a77a;background:#e2ebd8;color:#49613e}.life-grid button:active{background:#dce8d1}.life-grid button:disabled{opacity:.5;cursor:wait}.categories{border-bottom:1px solid #e2e5d8;padding-bottom:12px}.categories button{min-height:56px;background:transparent;gap:2px}.categories svg{width:21px;height:21px}.decor-swatch{display:grid;place-items:center;width:43px;height:35px;border-radius:10px;background:var(--swatch);color:#5b644f}.drawer-note{font-size:10px;line-height:1.6;margin:12px 5px;color:#77876c}.drawer-wide{width:100%;min-height:44px;padding:9px 4px;border-radius:13px;background:#e0ead5;margin-top:8px;font-size:11px}.drawer-wide.subtle{background:#efeee6;color:#7c8672}.drawer-wide:disabled{opacity:.45;cursor:default}.drawer-footnote{font-size:9px;color:#929987;text-align:center;margin:13px 0 5px}.care-feelings{display:flex;gap:5px;justify-content:center;margin-bottom:10px}.care-feelings span{font-size:10px;background:#eeeadd;padding:6px;border-radius:12px}.daily-card{margin:15px 2px 0;padding-top:12px;border-top:1px solid #e0e5d5}.daily-card p{font-size:10px;line-height:1.6;margin:0 0 8px}.daily-card>div{display:flex;gap:6px;flex-wrap:wrap}.daily-card span{font-size:10px;color:#939b87}.daily-card [data-complete=true]{color:#5c7849}.stage:has(.life-drawer:not([hidden])) #cat-status{max-width:calc(54% - 25px)}.life-drawer{bottom:auto;max-height:calc(100% - 97px)}.drawer-heading{position:sticky;top:-8px;z-index:2;background:#faf8f2;border-radius:13px}.decor-sections{display:flex;gap:4px;padding:3px;margin-bottom:9px;background:#eceee4;border-radius:13px}.decor-sections button{flex:1;min-height:42px;border-radius:10px;background:transparent;font-size:11px}.decor-sections [aria-pressed=true]{background:#d8e3cd;color:#4e6643}#placement-bar{position:absolute;z-index:5;bottom:12px;left:12px;right:12px;padding:12px;background:#faf8f2f7;border:1px solid #fffc;box-shadow:0 6px 24px #3b453524;border-radius:20px}.placement-heading{display:flex;align-items:baseline;gap:10px}.placement-heading strong{font-size:13px;font-weight:600}.placement-heading span{font-size:10px;color:#87907f}#placement-message{font-size:11px;line-height:1.5;min-height:17px;margin:8px 0 10px;color:#718268}.placement-buttons{display:flex;gap:5px}.placement-buttons button{flex:1;min-width:0;min-height:44px;border-radius:12px;background:#ebece3;font-size:11px}#placement-confirm{background:#d3e3c5;color:#46603a}#placement-confirm:disabled{opacity:.43}.stage:has(#placement-bar:not([hidden])) #toast{bottom:151px}@media(max-width:370px){header{padding-left:14px;padding-right:14px}.home-tools{gap:4px}.home-tools button,.home-tools #places-toggle{width:41px}.life-drawer{right:8px;padding:7px}.life-grid small{font-size:10px}.care-feelings span{font-size:9px;padding:5px}}@media(prefers-reduced-motion:reduce){.life-drawer{animation:none}}
