:root{color-scheme:light;--bg:#f6f7f2;--paper:#fff;--ink:#243b32;--muted:#738078;--green:#28634c;--green-soft:#edf4eb;--line:#e7ebe4;--orange:#b86337;--radius:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,textarea:focus-visible,.table-scroll:focus-visible{outline:3px solid #82ac86;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{display:none}[hidden]{display:none!important}.shell{max-width:1320px;margin:auto;padding:40px 44px 24px}.masthead{display:flex;align-items:center;justify-content:space-between;margin-bottom:38px}.brand{display:flex;gap:14px;align-items:center}.brandmark{background:var(--green);color:#e4efcc;width:48px;height:48px;display:grid;place-items:center;border-radius:16px}.brandmark svg{width:29px;height:29px}.brand h1{font-size:25px;letter-spacing:3px;line-height:1.2;margin:0}.brand h1 span{letter-spacing:1.8px;font-size:9px;font-weight:600;color:#7d8c80;margin-left:16px;vertical-align:middle}.brand p{margin:6px 0 0;font-size:12px;letter-spacing:1px;color:var(--muted)}.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:transparent}.icon-button:hover{background:#e8ede4}.masthead>.icon-button{border:1px solid #dce3d9;background:#fff8}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:10px}.section-label h2{font-size:16px;font-weight:600;margin:0}.section-label time{font-size:12px;color:var(--muted)}.actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:30px}.action-card{display:flex;align-items:center;gap:16px;padding:25px 22px;border-radius:20px;text-align:left;min-width:0;min-height:108px;transition:transform .15s,box-shadow .15s}.action-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #2233290d}.action-card:active{transform:scale(.985)}.weight-action{background:var(--green);color:#fff}.food-action{background:#eee8da;color:#66543b}.move-action{background:#e4ebf0;color:#465f73}.action-icon{width:46px;height:46px;border-radius:15px;background:#ffffff80;display:grid;place-items:center;flex-shrink:0}.weight-action .action-icon{background:#ffffff18;color:#d9e8c2}.action-icon svg{width:25px;height:25px}.action-copy{flex:1;min-width:0}.action-copy strong{display:block;font-size:18px;font-weight:600;letter-spacing:.4px}.action-copy small{display:block;margin-top:7px;font-size:11px;opacity:.75;line-height:1.6}.action-plus{opacity:.8;display:flex}.action-plus svg{width:19px;height:19px}.journal-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 30px #273f2f03}.journal-heading{display:flex;align-items:center;justify-content:space-between;padding:28px 30px 24px;gap:16px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#8b9689}.journal-heading h2{font-size:23px;letter-spacing:.5px;font-weight:600;margin:8px 0 0}.journal-heading h2 span{font-size:11px;letter-spacing:0;font-weight:500;display:inline-block;background:#f0f4ec;padding:5px 10px;border-radius:20px;margin-left:12px;vertical-align:middle;color:#64775e}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;padding:12px;font-size:12px;min-height:44px;border-radius:10px;color:var(--muted)}.text-button:hover{background:var(--green-soft);color:var(--green)}.text-button svg{width:17px;height:17px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 30px 24px;gap:24px}.metrics>div{border-right:1px solid var(--line);padding-right:16px;min-width:0}.metrics>div:last-child{border:0}.metrics>div>span{display:block;font-size:12px;color:var(--muted)}.metrics>div>span>small{font-size:10px;color:#a1aaa2;margin-left:5px}.metrics strong{font-weight:500;font-size:35px;letter-spacing:-1px;line-height:1.5;font-variant-numeric:tabular-nums;display:block;margin-top:7px}.metrics>div>small{font-size:10px;color:#8b9689;display:block;line-height:1.6}.metrics .down{color:var(--green)}.metrics .up{color:var(--orange)}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 30px;border-top:1px solid var(--line);font-size:11px;color:#8a948a}.table-toolbar>span{display:flex;align-items:center;gap:7px}.dot{height:5px;width:5px;background:#73985b;border-radius:50%}.scroll-hint{display:none!important}.table-scroll{overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c8d4c4 #f6f8f3;max-height:65vh;min-height:68px}table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:780px;font-size:13px}caption{text-align:left}.date-col{width:92px}.weight-col{width:100px}.delta-col{width:112px}.content-col{width:auto}thead th{background:#f2f5ef;text-align:left;padding:17px 15px;font-size:12px;color:#5e705f;font-weight:500;position:sticky;top:0;z-index:2;border-top:1px solid var(--line);border-bottom:1px solid #e1e7dc}thead th small{display:block;font-size:9px;color:#98a18f;font-weight:400;margin-top:5px}thead th svg{height:15px;width:15px;vertical-align:-3px;margin-right:6px}th:first-child,td:first-child{position:sticky;left:0;z-index:1;border-right:1px solid var(--line);padding-left:22px}thead th:first-child{z-index:3}tbody td{vertical-align:top;padding:20px 15px;border-bottom:1px solid var(--line);background:#fff}tbody tr:nth-child(even) td{background:#fbfcf9}tbody tr:last-child td{border-bottom:0}tbody tr.today td:first-child{background:#edf4e8}tbody tr:hover td{background:#f7faf4}.day-number{font-size:17px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.day-year{font-size:9px;color:#99a293;display:block;margin-top:4px}.day-name{display:inline-block;font-size:10px;margin-top:10px;color:#7e8b77}.today .day-name{background:#dce9cf;color:var(--green);padding:3px 8px;border-radius:5px}.weight-entry{display:flex;flex-direction:column;background:transparent;text-align:left;padding:0;min-height:44px;width:100%;border-radius:6px}.weight-entry strong{font-size:20px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.4px}.weight-entry strong small{font-size:9px;color:#97a08f;margin-left:3px;letter-spacing:0}.weight-entry time{font-size:10px;color:#8d9987;margin-top:7px;font-variant-numeric:tabular-nums}.missing{color:#b8c1b1;display:inline-block;padding-top:5px}.delta{display:inline-flex;align-items:center;white-space:nowrap;padding:6px 7px;border-radius:6px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}.delta.down{background:#edf5e8;color:#47713e}.delta.up{background:#fbefe5;color:#a66437}.delta.flat{background:#f0f2ed;color:#85907e}.delta small{font-size:8px;margin-right:4px}.entry-list{display:flex;flex-direction:column;gap:10px}.log-entry{display:flex;flex-direction:column;align-items:flex-start;gap:4px;border-radius:8px;padding:0 0 8px;background:transparent;text-align:left;width:100%;min-height:44px;border-bottom:1px dashed #e7ebe2;line-height:1.6}.log-entry:last-child{border-bottom:0;padding-bottom:0}.log-entry:hover,.weight-entry:hover{background:#eaf2e3}.log-entry time{font-size:9px;font-weight:600;letter-spacing:.5px;color:#a18a68;background:#f7f2e9;padding:1px 6px;border-radius:4px;font-variant-numeric:tabular-nums}.exercise-entry time{background:#edf2f6;color:#768fa3}.log-entry span{overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px}.table-foot{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--line);padding:17px 28px;font-size:10px;color:#8b9685;line-height:1.8}.table-foot>span:last-child{display:flex;align-items:center;white-space:nowrap;gap:4px}.table-foot svg{height:13px;width:13px}.page-foot{display:flex;justify-content:space-between;margin-top:22px;font-size:10px;letter-spacing:1px;color:#9aa393}.empty-state{text-align:center;padding:45px 20px 50px}.empty-icon{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:23px;background:#edf4e6;color:#74925e;transform:rotate(-8deg)}.empty-icon svg{width:33px;height:33px}.empty-state h3{font-size:17px;font-weight:500;margin:22px 0 10px}.empty-state p{font-size:12px;color:#8b9684;line-height:1.9;margin:0 0 22px}.primary-button{background:var(--green);color:white;display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:12px;min-height:48px;padding:13px 22px;font-size:14px}.primary-button:hover{background:#1e513d}.primary-button svg{width:18px;height:18px}dialog{border:1px solid #e4e9df;background:#fff;box-shadow:0 20px 100px #20362929;border-radius:26px;padding:26px 30px 30px;color:var(--ink);width:min(480px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto}dialog::backdrop{background:#17302365;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin:-8px -8px 8px 0}dialog h2{font-size:25px;font-weight:600;margin:4px 0 10px;letter-spacing:.4px}.dialog-subtitle{color:var(--muted);font-size:12px;line-height:1.8;margin:0 0 24px}label{display:block;font-size:12px;color:#64715e;margin-bottom:10px}.weight-input-wrap{background:#f5f8f0;border-radius:16px;padding:18px 22px;margin-bottom:22px}.weight-input-wrap>div{display:flex;align-items:baseline;gap:12px}.weight-input-wrap input{color:var(--green);width:100%;min-width:0;font-size:46px;font-weight:500;padding:0;border:0;outline:0;background:transparent;font-variant-numeric:tabular-nums}.weight-input-wrap input::placeholder{color:#b7c5ab}.weight-input-wrap>div>span{font-size:17px;color:#8d9e81}textarea,input[type=date],input[type=time]{border:1px solid #dde5d7;background:#fbfcf9;border-radius:11px;padding:12px;min-height:47px;width:100%;color:var(--ink);min-width:0}textarea{resize:vertical;line-height:1.8;font-size:15px}textarea::placeholder{color:#9ba694;font-size:13px}.char-count{display:block;text-align:right;font-size:10px;color:#99a58f;margin:5px 0 18px}.datetime-fields{display:grid;grid-template-columns:1.3fr 1fr;gap:12px}input:disabled{color:#78836e;opacity:1}.input-note{font-size:11px;line-height:1.8;color:#88987d;margin:16px 0 0}#form-error{color:#ae483b;font-size:12px;line-height:1.6;min-height:0;margin:12px 0}#form-error:empty{margin:0}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:24px}.dialog-actions>.primary-button{flex:1}.danger-button{background:transparent;color:#ad6854;font-size:12px;padding:12px 4px;min-height:44px}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#263c31;color:#fff;padding:14px 22px;border-radius:12px;font-size:13px;z-index:50;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;max-width:calc(100% - 32px);width:max-content;line-height:1.6}.toast.visible{opacity:1;transform:translate(-50%,0)}.settings-actions{display:flex;flex-direction:column;gap:10px}.settings-actions button{background:#f1f6eb;padding:17px;border-radius:12px;text-align:left;font-size:14px}.settings-actions span{display:block;font-size:11px;color:#819174;margin-top:7px;line-height:1.7}.explainer{margin-top:24px}.explainer h3{font-size:13px;margin:20px 0 6px;font-weight:600}.explainer p,#confirm-text{font-size:12px;line-height:1.9;color:#7f8b75;margin:0}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#confirm-dialog{width:min(410px,calc(100% - 32px))}#confirm-title{font-size:21px;margin-bottom:14px}
@media(min-width:1150px){.content-col{width:26%}.date-col{width:8%}.weight-col{width:11%}.delta-col{width:12%}}
@media(max-width:950px){.shell{padding:28px 24px 20px}.actions{gap:12px}.action-card{padding:20px 16px;gap:11px}.action-copy strong{font-size:16px}.action-copy small{font-size:10px}.action-icon{width:38px;height:38px;border-radius:12px}.action-plus{display:none}.journal-heading{padding:24px}.metrics{padding-left:24px;padding-right:24px}.scroll-hint{display:flex!important}.edit-hint{display:none!important}.table-toolbar{padding-left:24px;padding-right:24px}}
@media(max-width:600px){.shell{padding:23px 16px 20px}.masthead{margin-bottom:29px}.brand{gap:11px}.brandmark{height:42px;width:42px;border-radius:14px}.brand h1{font-size:23px}.brand h1 span{font-size:8px;margin-left:10px;letter-spacing:1.1px}.brand p{font-size:10px}.section-label{align-items:flex-start;margin-bottom:13px}.section-label h2{font-size:13px}.section-label time{font-size:10px;padding-top:1px}.actions{gap:9px;margin-bottom:24px}.action-card{display:flex;flex-direction:column;align-items:flex-start;padding:15px 12px 13px;gap:13px;border-radius:16px;min-height:124px}.action-icon{width:34px;height:34px;border-radius:11px}.action-icon svg{width:21px;height:21px}.action-copy strong{font-size:14px;letter-spacing:0;white-space:nowrap}.action-copy small{font-size:9px;line-height:1.6;margin-top:5px;min-height:28px}.journal-panel{border-radius:20px}.journal-heading{padding:23px 18px 20px;gap:3px}.journal-heading h2{font-size:18px;letter-spacing:0;margin-top:7px}.journal-heading h2 span{font-size:9px;margin-left:7px;padding:3px 7px}.eyebrow{font-size:8px;letter-spacing:1.5px}.journal-heading .text-button{padding:8px 0 8px 6px;font-size:10px;gap:4px}.journal-heading .text-button svg{width:14px;height:14px}.metrics{padding:0 18px 20px;gap:13px}.metrics>div{padding-right:8px}.metrics>div>span{font-size:9px;line-height:1.8}.metrics>div>span>small{font-size:8px;margin-left:1px}.metrics strong{font-size:27px;letter-spacing:-.7px;margin-top:5px}.metrics>div>small{font-size:8px;line-height:1.6}.table-toolbar{font-size:9px;padding:12px 16px;gap:8px}.table-scroll{max-height:60vh}table{min-width:780px}thead th{padding:15px 12px}th:first-child,td:first-child{padding-left:16px}.table-foot{padding:14px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;font-size:9px}.page-foot{font-size:9px;margin-top:18px}.empty-state{padding:35px 12px 40px}.empty-state h3{font-size:15px}.empty-state p{font-size:11px}.empty-state .primary-button{font-size:12px;min-height:44px}dialog{padding:24px;border-radius:22px}dialog h2{font-size:23px}.datetime-fields{gap:10px}.datetime-fields input{padding:11px 8px;font-size:14px}.toast{bottom:20px}}
@media(max-width:350px){.shell{padding-left:10px;padding-right:10px}.action-card{padding:13px 9px}.action-copy strong{font-size:13px}.brand h1 span{display:none}.metrics{gap:8px;padding-left:14px;padding-right:14px}.metrics strong{font-size:24px}.journal-heading{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
