:root{font-family:ui-rounded,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#24312b;background:#f5f4ed;font-synthesis:none;line-height:1.65;--ink:#24312b;--muted:#6b756e;--mint:#dceee3;--line:#dedfd5;--cream:#fffef9;--danger:#93432d}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.57}button,a,input,textarea,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #4c9072;outline-offset:4px}[hidden]{display:none!important}a{color:inherit}.app-shell{max-width:1000px;margin:auto;padding:0 36px}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:19px;font-weight:750;letter-spacing:.05em}.brand span{display:flex;gap:12px;align-items:baseline}.brand small{font-weight:400;font-size:12px;color:var(--muted);letter-spacing:.08em}.quiet-button,.text-button{border:0;background:none;color:var(--muted);padding:10px 8px;min-height:44px;font-size:14px}.text-button{color:#33684f;font-weight:650}.boot{min-height:60vh;display:flex;justify-content:center;align-items:center;gap:12px;color:var(--muted)}.loading-dot{width:11px;height:11px;border-radius:50%;background:#739c81;animation:pulse 1.5s infinite}h1,h2,p{margin:0}h1{font-size:36px;line-height:1.35;letter-spacing:-.045em;font-weight:750}h2{font-size:20px;font-weight:700}.eyebrow{font-size:12px;letter-spacing:.12em;color:#667b6b;font-weight:600;margin-bottom:12px}.muted{color:var(--muted);font-size:14px}.view-panel{padding:42px 0 22px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.welcome .muted{margin-top:12px}.welcome-pet{transform:rotate(5deg);border-radius:35px;flex:none}.route-strip{display:flex;align-items:center;gap:14px;margin-bottom:20px}.state-pill{display:inline-flex;align-items:center;gap:7px;font-size:12px;line-height:1.3;border-radius:30px;background:#e8e8e0;color:#6a7169;padding:8px 11px;max-width:100%;overflow-wrap:anywhere}.state-pill:before{content:"";height:6px;width:6px;flex:none;border-radius:50%;background:currentColor}.state-pill[data-tone=good]{background:#dceee3;color:#345f46}.state-pill[data-tone=busy]{background:#eee6cf;color:#79632d}.state-pill[data-tone=bad]{background:#f6e6df;color:#95452e}.route-arrow{color:#abb3a8}.composer{background:var(--cream);padding:24px;border:1px solid var(--line);border-radius:24px;box-shadow:0 8px 28px #263e2412}.composer label{display:block;font-size:15px;font-weight:650;margin-bottom:14px}textarea{display:block;width:100%;min-height:174px;resize:vertical;border:0;background:transparent;color:var(--ink);font-size:17px;line-height:1.9;padding:0}textarea::placeholder{color:#9a9f96}textarea:focus{outline:0}textarea:focus-visible{outline:2px solid #8cb59a;outline-offset:6px;border-radius:4px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}.composer-bottom p{font-size:12px;color:var(--muted)}.char-count{font-size:11px;color:#8a9188;white-space:nowrap}.primary-button{border:0;color:#fffef9;background:var(--ink);padding:14px 20px;border-radius:15px;min-height:52px;width:100%;display:flex;align-items:center;justify-content:center;gap:14px;font-weight:650;transition:background .2s,transform .2s}.primary-button:hover:not(:disabled){background:#3c5546;transform:translateY(-1px)}.primary-button span{font-size:21px;line-height:1}.secondary-button{background:var(--cream);border:1px solid #cfd6ca;color:var(--ink);border-radius:12px;padding:9px 14px;min-height:44px;font-size:13px;font-weight:600}.send-feedback{background:var(--mint);padding:16px 20px;margin-top:14px;border-radius:17px;font-size:14px}.send-feedback .secondary-button{margin-top:10px}.send-feedback[data-tone=bad]{background:#f6e6df;color:var(--danger)}.section-heading,.page-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.section-heading{margin:28px 0 12px}.empty-state{text-align:center;padding:34px 20px;border:1px dashed #d4d9cc;border-radius:20px;color:#798372}.empty-state>span{display:block;font-size:30px;margin-bottom:4px;color:#98ad96}.empty-state p{font-size:14px}.empty-state small{font-size:12px;display:block;margin-top:5px}.task-list{display:grid;gap:14px}.task-card{border:1px solid var(--line);background:var(--cream);border-radius:20px;overflow:hidden}.task-card summary{cursor:pointer;list-style:none;padding:19px 20px}.task-card summary::-webkit-details-marker{display:none}.task-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.task-time{font-size:11px;color:#8b9288;white-space:nowrap}.task-title{font-size:15px;line-height:1.7;overflow-wrap:anywhere;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.task-preview{font-size:13px;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.task-expand{font-size:12px;color:#558169;display:flex;justify-content:flex-end;margin-top:10px}.task-card[open] .task-expand:after{content:"收起 ↑"}.task-card:not([open]) .task-expand:after{content:"展开进展 ↓"}.task-body{padding:0 20px 20px;border-top:1px solid #eceee5}.task-body h3{font-size:12px;letter-spacing:.08em;color:#81917b;margin:18px 0 7px;font-weight:650}.task-body p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.task-reply{border-left:3px solid #b7d7c0;padding-left:13px}.task-body .task-note{font-size:12px;color:#7f857b;margin-top:10px}.task-body button{margin-top:15px}.task-id{font-size:10px!important;color:#9aa091;margin-top:16px!important;font-family:ui-monospace,monospace}.panel-description{margin:10px 0 25px}.inline-message{font-size:13px;color:var(--danger);min-height:0}.inline-message:not(:empty){margin:12px 0}.status-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.status-card{background:var(--cream);border:1px solid var(--line);padding:23px;border-radius:23px}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.status-symbol{width:44px;height:44px;display:grid;place-items:center;background:#edf1e7;border-radius:14px;font-size:24px}.status-card>p{font-size:12px;color:var(--muted);margin-top:5px}.status-card dl{margin:22px 0 0}.status-card dl>div{display:flex;justify-content:space-between;gap:16px;font-size:12px;padding:9px 0;border-top:1px solid #eceee5}.status-card dt{flex:none;color:var(--muted)}.status-card dd{margin:0;text-align:right;overflow-wrap:anywhere}.card-note{display:block;font-size:11px;color:#8a9186;margin-top:11px}.pet-status-card{grid-column:1/-1;background:#edf3e9}.status-footnote{font-size:12px;color:#8a9186;margin:20px 4px}.bottom-nav{display:flex;align-items:center;justify-content:center;gap:10px;border-top:1px solid var(--line);padding:14px 0}.bottom-nav button{display:flex;gap:9px;align-items:center;justify-content:center;color:#808a7c;background:none;border:0;min-height:48px;min-width:125px;border-radius:15px;font-size:14px}.bottom-nav button span{font-size:21px}.bottom-nav button[aria-current=page]{background:var(--mint);color:#32583e;font-weight:650}.page-footer{font-size:10px;letter-spacing:.15em;text-align:center;color:#9aa28f;padding:24px 0 32px}.connection-notice{margin-top:20px;border:1px solid #e0c7aa;background:#faf0df;color:#7d6038;border-radius:14px;padding:12px 16px;font-size:13px}.login-view{text-align:center;padding:48px 0 15px;max-width:410px;margin:auto}.pet-portrait{position:relative;display:grid;place-items:center;margin:0 0 28px}.floating-pet{position:relative;z-index:1;animation:float 5s ease-in-out infinite}.pet-shadow{width:95px;height:12px;border-radius:50%;background:#d9dfce;filter:blur(5px);margin-top:15px}.login-view .intro{font-size:14px;color:var(--muted);margin-top:16px;line-height:1.9}.login-card{margin-top:30px;text-align:left}.login-card label{display:block;font-size:13px;font-weight:600;margin:0 0 8px 3px}.login-card input{width:100%;font-size:16px;background:var(--cream);border:1px solid #d9ded1;border-radius:14px;padding:14px 16px;color:var(--ink)}.field-help{font-size:11px;color:#8a9385;margin:9px 3px 19px}.privacy-note{font-size:10px;color:#9aa28f;margin-top:23px}.skip-link{position:fixed;left:12px;top:-100px;padding:8px 14px;z-index:20;background:var(--cream)}.skip-link:focus{top:12px}@keyframes float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-8px) rotate(3deg)}}@keyframes pulse{50%{opacity:.3}}
@media(min-width:760px){.view-panel{max-width:740px;margin:auto}.login-view{padding-top:55px}.bottom-nav{max-width:740px;margin:auto}.composer{padding:28px}.status-card:nth-child(3) dl{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px}}
@media(max-width:600px){.app-shell{padding:0 20px}.topbar{height:79px}.brand{font-size:17px}.brand small{font-size:10px}.brand img{width:34px;height:34px}.brand span{gap:9px}.view-panel{padding-top:29px;padding-bottom:20px}h1{font-size:27px}.welcome{gap:8px;margin-bottom:22px}.welcome .eyebrow{font-size:10px;margin-bottom:10px;letter-spacing:.04em}.welcome .muted{font-size:12px;margin-top:10px}.welcome-pet{width:80px;height:80px;border-radius:24px}.composer{padding:20px;border-radius:21px}.composer-bottom{align-items:flex-start;gap:8px}.composer-bottom p{font-size:10px;max-width:195px}.char-count{font-size:10px}.composer textarea{font-size:16px;min-height:172px}.status-grid{grid-template-columns:1fr}.status-card{padding:20px}.pet-status-card{grid-column:auto}.bottom-nav{position:sticky;bottom:0;background:#f5f4edf5;backdrop-filter:blur(12px);margin:10px -20px 0;padding:9px 15px calc(9px + env(safe-area-inset-bottom));gap:6px;z-index:3}.bottom-nav button{min-width:0;flex:1;flex-direction:column;gap:0;min-height:52px;font-size:10px}.bottom-nav button span{font-size:21px;line-height:1.3}.page-footer{padding:20px 0 26px}.login-view{padding-top:34px}.floating-pet{width:146px;height:146px}.login-view h1{font-size:30px}.login-view .eyebrow{font-size:11px}.task-card summary{padding:17px}.task-body{padding:0 17px 17px}.task-time{font-size:10px}.task-meta{gap:7px}.section-heading h2{font-size:17px}.state-pill{font-size:11px}.status-footnote{margin-bottom:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Connection feedback remains readable alongside task progress on small screens. */
.route-strip{flex-wrap:wrap;gap:8px}.connection-notice{display:flex;align-items:center;justify-content:space-between;gap:14px}.connection-notice p{flex:1;min-width:0}.connection-notice button{flex:none}.connection-notice[data-tone=good]{background:#e6f2e9;border-color:#bfd8c6;color:#345f46}.connection-notice[data-tone=bad]{background:#f6e6df;border-color:#e5b9a9;color:#873d29}.task-body .task-warning{background:#faf0df;color:#795b2d;border-radius:10px;padding:11px 13px;margin-top:12px;font-size:13px}@media(max-width:600px){.connection-notice{align-items:stretch;flex-direction:column;gap:10px}.connection-notice button{align-self:flex-start}.task-preview{font-size:14px}.task-time{font-size:11px}.card-note,.status-footnote{font-size:12px}}
