:root{--bg:#f6f4fa;--surface:#fff;--sunken:#f6f5fa;--ink:#1d1d26;--ink-2:#474757;--muted:#757588;--line:#ebebf2;--accent:#f2603f;--accent-ink:#fff;--accent-text:#cc4125;--accent-soft:#fdece7;--good:#1e8a47;--good-soft:#dff5e6;--warn:#b45309;--warn-soft:#fff3dc;--neutral-soft:#f4f2f8;--shadow:0 1px 2px #281e3c0a, 0 6px 20px #281e3c0d;--radius:22px;--radius-sm:14px;--max:720px;--tabs-h:64px;--font:-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;--mono:ui-monospace, Menlo, monospace;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--ink);font:15px/1.6 var(--font);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}[hidden]{display:none!important}.app{max-width:var(--max);padding:0 max(16px, env(safe-area-inset-right,0px)) calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-left,0px));margin:0 auto}.bar{z-index:5;padding:calc(14px + env(safe-area-inset-top,0px)) 0 12px;background:color-mix(in srgb, var(--bg) 90%, transparent);-webkit-backdrop-filter:saturate(1.4)blur(12px);backdrop-filter:saturate(1.4)blur(12px);align-items:flex-end;gap:12px;display:flex;position:sticky;top:0}.bar-text{flex:1;min-width:0}.bar-kicker{color:var(--muted);min-height:1px;font-size:13px;line-height:1.3}.bar-title{letter-spacing:-.01em;margin:0;font-size:28px;font-weight:750;line-height:1.2}.avatar{background:var(--ink);width:38px;height:38px;color:var(--bg);border-radius:50%;place-items:center;margin-bottom:2px;font-size:15px;font-weight:700;display:grid}.view{flex-direction:column;gap:16px;display:flex}.tabs{z-index:6;background:color-mix(in srgb, var(--surface) 94%, transparent);-webkit-backdrop-filter:saturate(1.4)blur(12px);backdrop-filter:saturate(1.4)blur(12px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);position:fixed;bottom:0;left:0;right:0}.tabs-inner{max-width:var(--max);height:var(--tabs-h);padding:0 max(8px, env(safe-area-inset-right,0px)) 0 max(8px, env(safe-area-inset-left,0px));grid-template-columns:repeat(4,1fr);margin:0 auto;display:grid}.tabs button{color:var(--muted);background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:500;display:flex}.tabs button.on{color:var(--ink);font-weight:650}.tabs button.on .tab-icon{color:var(--accent)}.tab-icon{place-items:center;height:24px;font-size:21px;line-height:1;display:grid}.section{flex-direction:column;gap:10px;display:flex}.section-head{justify-content:space-between;align-items:baseline;gap:12px;padding:0 2px;display:flex}.section-head h2{letter-spacing:-.005em;margin:0;font-size:18px;font-weight:700}.link{color:var(--accent);background:0 0;border:0;padding:0;font-size:14px;font-weight:600;text-decoration:none}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--line);flex-direction:column;gap:10px;min-width:0;padding:16px;display:flex}.muted{color:var(--muted);font-size:13px}.caption{color:var(--muted);font-size:12.5px;line-height:1.5}.lede{color:var(--ink-2);margin:0}p,h1,h2,h3,h4{margin:0}.chip{background:var(--neutral-soft);color:var(--ink-2);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:5px 9px;font-size:12px;font-weight:600;line-height:1;display:inline-flex}.chip.good{background:var(--good-soft);color:var(--good)}.btn{background:var(--accent);color:var(--accent-ink);border:0;border-radius:14px;justify-content:center;align-items:center;gap:6px;padding:12px 18px;font-weight:650;display:inline-flex}.btn.block{width:100%}.btn.ghost{background:var(--sunken);color:var(--ink);font-weight:600}.btn.quiet{color:var(--ink-2);background:0 0;font-weight:500}.btn.small{border-radius:12px;padding:8px 14px;font-size:14px}.btn:disabled{opacity:.45;cursor:default}.field{color:var(--ink-2);flex-direction:column;gap:6px;font-size:13px;display:flex}.input,.textarea,.select{border:1px solid var(--line);background:var(--surface);border-radius:12px;outline:none;width:100%;padding:11px 12px;font-size:15px}.input:focus,.textarea:focus,.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.textarea{resize:vertical;min-height:84px}.form-grid{gap:12px;display:grid}.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.error{color:var(--warn);background:var(--warn-soft);border-radius:12px;padding:10px 12px;font-size:13px}.empty{color:var(--muted);padding:8px 0;font-size:14px}.loading{color:var(--muted);text-align:center;padding:24px 0;font-size:14px}.chat-shell{flex-direction:column;gap:12px;min-height:calc(100dvh - 210px);display:flex}.chat-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.chat-head .title{font-size:15px;font-weight:650}.chat-list{flex-direction:column;gap:12px;padding:4px 0 10px;display:flex}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:18px;max-width:86%;padding:11px 14px;font-size:15px;line-height:1.55}.bubble.user{background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:6px;align-self:flex-end}.bubble.assistant{background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:6px;align-self:flex-start}.bubble.pending{color:var(--muted)}.chat-tool{color:var(--muted);align-self:flex-start;padding-left:6px;font-size:12px}.composer{bottom:calc(var(--tabs-h) + 8px);background:color-mix(in srgb, var(--bg) 92%, transparent);align-items:flex-end;gap:8px;padding:8px 0;display:flex;position:sticky}.composer .textarea{min-height:48px;max-height:140px}.composer .btn{flex:none;height:48px;padding:0 18px}.plan-title{font-size:20px;font-weight:750}.plan-summary{color:var(--ink-2);font-size:14px}.day-card{gap:8px}.day-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.day-name{font-size:15px;font-weight:700}.day-focus{color:var(--muted);font-size:13px}.exercise{border-top:1px solid var(--line);justify-content:space-between;gap:8px;padding:9px 0;font-size:14px;display:flex}.exercise:first-of-type{border-top:0}.exercise .meta{color:var(--muted);white-space:nowrap;font-size:13px}.workout-list{flex-direction:column;gap:10px;display:flex}.workout-item{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.workout-item .title{font-weight:600}.workout-item .meta{color:var(--muted);font-size:13px}.me-row{border-top:1px solid var(--line);justify-content:space-between;gap:12px;padding:10px 0;font-size:14px;display:flex}.me-row:first-of-type{border-top:0}.me-row .k{color:var(--muted)}.me-row .v{text-align:right;overflow-wrap:anywhere;font-weight:600}@media (min-width:760px){.app{padding-top:12px}.bar-title{font-size:30px}.tabs{border-left:1px solid var(--line);border-right:1px solid var(--line);max-width:var(--max);border-radius:20px 20px 0 0;margin:0 auto}.form-grid{grid-template-columns:1fr 1fr}}
