:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#171923;background:#f3f4f6;font-size:16px;--ink:#171923;--muted:#777b8c;--card:#fff;--accent:#6965e8}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(145deg,#f8f8fb 0%,#eef0f5 100%)}button,input{font:inherit}.app{width:min(100%,760px);min-height:100vh;margin:auto;background:#f7f7fa;position:relative;padding-bottom:92px;box-shadow:0 0 50px #1f293714}header{display:flex;justify-content:space-between;align-items:center;padding:28px 24px 14px}.eyebrow,header p,.stats-title p,.calendar-head p,.dialog-head p{margin:0 0 3px;color:var(--muted);font-size:.84rem;letter-spacing:.04em}h1{font-size:2rem;margin:0;letter-spacing:-.06em}h2{margin:3px 0 0;font-size:1.4rem;letter-spacing:-.04em}h3{margin:0;font-size:1rem}.icon-btn{width:46px;height:46px;border:0;border-radius:50%;background:var(--ink);color:#fff;font-size:1.7rem;cursor:pointer}.icon-btn.subtle{background:#fff;color:var(--ink);box-shadow:0 4px 18px #1118270d}.view{display:none;padding:12px 24px}.view.active{display:block}.date-row{display:flex;align-items:flex-start;justify-content:space-between;margin:12px 0 22px}.date-row p{margin:0;color:var(--accent);font-weight:700;font-size:.86rem}.streak{background:#fff;padding:8px 11px;border-radius:12px;color:#e26b3b;font-size:.82rem;box-shadow:0 4px 16px #1118270b}.task-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.task-card{border:0;text-align:left;border-radius:22px;padding:18px;min-height:155px;position:relative;overflow:hidden;cursor:pointer;color:#222334;box-shadow:0 8px 26px #1f29370c;transition:.2s transform}.task-card:active{transform:scale(.97)}.task-card .emoji{font-size:1.7rem}.task-card h3{margin:24px 0 4px;font-size:1.07rem}.task-card p{margin:0;color:#5e6170;font-size:.82rem}.task-card .action{position:absolute;right:14px;top:14px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ffffffaa;font-weight:700}.task-card.running{outline:2px solid currentColor}.task-card.running .action{animation:pulse 1.5s infinite}.empty-card{border:1.5px dashed #cfd2dd;background:transparent;box-shadow:none;display:grid;place-items:center;color:#8d91a1}.section-head{display:flex;justify-content:space-between;align-items:center;margin:30px 0 12px}.section-head span{font-size:.8rem;color:var(--muted)}.timeline{display:grid;gap:9px}.log{background:#fff;border-radius:16px;padding:13px 14px;display:flex;align-items:center;gap:12px}.log .dot{width:10px;height:10px;border-radius:50%}.log .meta{flex:1}.log strong{font-size:.9rem}.log p{margin:2px 0 0;font-size:.76rem;color:var(--muted)}.log time{font-size:.78rem;color:#555968}.empty{padding:24px;text-align:center;color:#9699a7;background:#fff;border-radius:18px;font-size:.88rem}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin:6px 0 22px;text-align:center}.weekdays,.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekdays span{text-align:center;color:var(--muted);font-size:.75rem;padding:8px 0}.day{aspect-ratio:1;border:0;background:transparent;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#30323d;cursor:pointer}.day.muted{color:#b8bac3}.day.today{box-shadow:inset 0 0 0 1.5px var(--accent)}.day.selected{background:var(--ink);color:white}.marks{display:flex;gap:2px;height:4px}.marks i{width:4px;height:4px;border-radius:50%}.day-detail{margin-top:20px;background:#fff;border-radius:20px;padding:18px;min-height:100px}.day-detail h3{margin-bottom:12px}.detail-row{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid #f0f1f4;font-size:.86rem}.stats-title{margin:8px 0 20px}.stats-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{background:#fff;border-radius:20px;padding:18px}.stat strong{display:block;font-size:1.7rem;letter-spacing:-.05em}.stat span{color:var(--muted);font-size:.78rem}.panel{background:#fff;border-radius:22px;padding:18px;margin-top:12px}.week-chart{height:165px;display:flex;align-items:end;gap:8px;padding-top:18px}.bar-wrap{flex:1;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:6px}.bar{width:70%;min-height:4px;border-radius:8px;background:linear-gradient(#817df0,#5753c9)}.bar-wrap span{font-size:.68rem;color:var(--muted)}.task-stat{margin-top:15px}.task-stat div{display:flex;justify-content:space-between;font-size:.82rem}.track{height:7px;background:#eff0f4;border-radius:9px;margin-top:6px;overflow:hidden}.fill{height:100%;border-radius:9px}nav{position:fixed;z-index:5;bottom:0;width:min(100%,760px);height:76px;background:#fffffff2;backdrop-filter:blur(15px);display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #ececf1;padding-bottom:env(safe-area-inset-bottom)}.nav{border:0;background:transparent;color:#a0a3af;font-size:.74rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.nav span{font-size:1.1rem}.nav.active{color:var(--ink);font-weight:700}dialog{border:0;border-radius:26px;width:min(92%,440px);padding:0;box-shadow:0 28px 80px #11182745}dialog::backdrop{background:#17192388;backdrop-filter:blur(3px)}dialog form{padding:24px}.dialog-head{display:flex;justify-content:space-between}.close{border:0;background:#f0f1f4;border-radius:50%;width:38px;height:38px;font-size:1.4rem}label{display:block;margin-top:18px;font-size:.82rem;font-weight:700}input{display:block;width:100%;margin-top:7px;border:1px solid #e5e6eb;border-radius:13px;padding:13px;outline:none;font-size:1rem}.emoji-picker,.color-picker{display:flex;gap:8px;margin-top:8px}.pick{border:0;width:39px;height:39px;border-radius:11px;background:#f3f4f6;font-size:1.2rem}.pick.active{outline:2px solid var(--ink)}.color-picker .pick{height:30px}.mode-row{display:grid;grid-template-columns:1fr 1fr;background:#f1f2f5;padding:4px;border-radius:13px;margin:20px 0 12px}.mode{border:0;padding:10px;background:transparent;border-radius:10px}.mode.active{background:#fff;box-shadow:0 3px 10px #11182712}.primary{width:100%;border:0;border-radius:14px;background:var(--ink);color:white;padding:14px;font-weight:700}.toast{position:fixed;bottom:95px;left:50%;transform:translate(-50%,20px);background:#171923;color:#fff;border-radius:18px;padding:11px 17px;font-size:.82rem;opacity:0;pointer-events:none;transition:.25s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}@keyframes pulse{50%{transform:scale(.9);opacity:.65}}@media(min-width:620px){.task-grid{grid-template-columns:repeat(3,1fr)}.task-card{min-height:170px}}
.task-item{display:flex;flex-direction:column;min-width:0}.task-item .task-card{width:100%;flex:1}.task-calendar{border:0;border-radius:12px;background:#fff;color:#4944a6;font-weight:600;font-size:.875rem;min-height:44px;margin-top:6px;cursor:pointer}.task-calendar:focus-visible{outline:2px solid #6965e8}
.weight-panel{margin:12px 24px 8px;padding:18px;background:#fff;border-radius:22px}.app:has(.view.active:not(#todayView)) .weight-panel{display:none}.weight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}.weight-panel label{font-size:.875rem;margin-top:12px}.weight-panel .primary{margin-top:14px}.weight-results{margin-top:14px}.weight-results div{background:#f3f3fa;border-radius:12px;padding:10px;font-size:.875rem}.weight-results strong{display:block;margin-top:4px;font-size:1.15rem}.weight-basis{font-size:.82rem;color:#616578;margin:10px 0 0}
.weight-panel#weightPanel{margin:24px 0 0}.weight-recorded{background:#e7e5fb;color:#413c9d}.day:disabled{opacity:.4;cursor:default}
#weightCalendar{width:min(98%,650px)}#weightCalendar form{padding:16px 8px}#weightDates{gap:2px}#weightDates .day{aspect-ratio:auto;min-width:0;min-height:68px;gap:2px;padding:4px 0;border-radius:8px;font-variant-numeric:tabular-nums}.weight-reading{font-size:.75rem;line-height:1.25;white-space:nowrap}
.delete-record{border:0;border-radius:8px;background:#fff0ef;color:#9f3029;font-size:.875rem;min-height:36px;padding:4px 10px;cursor:pointer}.detail-row{align-items:center;gap:8px}
