:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#37352f;background:#ffffff;font-synthesis:none;--green:#37352f;--muted:#787774;--line:#e9e9e7;--soft:#f1f1ef}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:wait}main{max-width:760px;margin:auto;padding:36px 22px 115px}h1{font-size:30px;letter-spacing:-1px;margin:8px 0}h2{font-size:18px;margin:0}h3{font-size:15px;margin:0 0 12px}p{line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green);font-weight:700}.muted,small{color:var(--muted)}.sub{font-size:14px;margin:8px 0 24px;line-height:1.7}.topline,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.row.wrap{flex-wrap:wrap}.badge{font-size:11px;border:1px solid #e9e9e7;border-radius:4px;padding:6px 10px;color:var(--green);white-space:nowrap}.hero{background:#f7f7f5;border-radius:4px;padding:24px;margin-bottom:20px}.hero .big{font-size:46px;letter-spacing:-2px;font-weight:600;margin:10px 0}.hero .big span{font-size:16px;font-weight:400;letter-spacing:0}.hero p{font-size:13px;line-height:1.7;margin:0}.hero .row{align-items:start}.hero-side{text-align:right;font-size:12px;padding-top:17px;line-height:1.8}.hero-side strong{display:block;font-size:23px;font-weight:500}.primary{background:var(--green);color:white;border-radius:4px;padding:13px 18px;font-weight:600}.secondary{background:#f1f1ef;color:var(--green);border-radius:4px;padding:12px 16px}.textbtn{background:transparent;color:var(--green);padding:8px;font-size:13px}.danger{color:#aa443b;background:#fbe4e4}.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 24px}.action{border:1px solid var(--line);background:white;border-radius:4px;padding:18px;text-align:left;color:#37352f}.action b{display:block;font-size:16px;margin:10px 0 5px}.action span{font-size:12px;color:var(--muted)}.action svg{width:23px;height:23px;stroke:var(--green);fill:none;stroke-width:1.7}.section{margin:26px 0 14px}.card{background:white;border:1px solid var(--line);border-radius:4px;padding:20px;margin:12px 0}.empty{text-align:center;padding:30px 20px;color:var(--muted);font-size:14px;line-height:1.8}.entry{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:start}.entry .time{font-size:12px;color:var(--muted);padding-top:3px}.entry .title{font-size:15px;font-weight:600}.entry .desc{font-size:13px;line-height:1.8;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.pill{display:inline-block;padding:4px 8px;background:#f1f1ef;color:var(--green);border-radius:4px;font-size:11px;margin:4px 4px 0 0}.photos{display:flex;gap:8px;overflow:auto;margin-top:12px}.photos img{width:72px;height:72px;border-radius:4px;object-fit:cover;cursor:pointer}.photos img.expanded{width:min(100%,480px);height:auto;object-fit:contain}.photos:has(.expanded){flex-wrap:wrap}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:6px;background:#fffffff5;border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(16px);z-index:5}nav button{width:110px;background:none;color:var(--muted);font-size:11px;padding:5px;border-radius:4px}nav button.active{color:var(--green);background:#f7f7f5}nav svg{display:block;margin:0 auto 5px;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}.date{background:white;border:1px solid var(--line);border-radius:4px;padding:10px;color:#37352f;max-width:100%;min-width:0}.weekdays,.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekdays{font-size:11px;text-align:center;color:var(--muted);margin:18px 0 8px}.calendar button{background:transparent;color:#37352f;min-height:76px;border-radius:4px;padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:6px}.calendar button.recorded{background:#f1f1ef}.calendar button.selected{outline:2px solid var(--green);outline-offset:-2px}.calendar button.future{color:#b4b4b0}.day-weight{font-size:10px;color:var(--green)}.day-marks{font-size:9px;color:#787774}.notice{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 0}.inline-editor{background:white;border:1px solid var(--line);border-radius:4px;margin:20px 0;overflow:hidden;scroll-margin-top:16px}.inline-editor[hidden]{display:none}.formhead,.formfoot{padding:16px 20px;background:#f7f7f5}.formbody{padding:20px}.formfoot{display:flex;gap:10px;justify-content:end;border-top:1px solid var(--line)}.formfoot .primary{flex:1}.field{display:block;margin-bottom:18px;font-size:14px;font-weight:600}.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{width:100%;display:block;margin-top:8px;border:1px solid #dededb;background:white;border-radius:4px;padding:12px;color:#37352f;font-weight:400;min-width:0}.field small{display:block;font-weight:400;line-height:1.7;margin-top:7px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chip{font-weight:400;font-size:13px;background:white;border:1px solid var(--line);padding:10px 12px;border-radius:4px;display:inline-flex;align-items:center;gap:8px;line-height:1.6}.chip input{accent-color:var(--green);margin:0}.choices{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}.summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.summary .card{margin:0;text-align:left;width:100%;color:#37352f}.summary strong{font-size:25px;display:block;margin-top:8px;font-weight:500}.summary small{display:block;line-height:1.7;margin-top:4px}.progress{height:6px;background:#e9e9e7;border-radius:5px;margin-top:12px;overflow:hidden}.progress div{height:100%;background:#9b9a97}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.mini-grid div{font-size:12px;color:var(--muted);line-height:1.8}.mini-grid strong{display:block;font-size:17px;color:#37352f;font-weight:500}.plan-action{font-size:13px;margin:14px 0 0;padding-top:14px;border-top:1px solid var(--line)}.settinglink{background:none;color:var(--green);display:flex;align-items:center;gap:5px;font-size:12px;padding:6px}.settinglink svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}#toast{position:fixed;bottom:108px;left:50%;transform:translateX(-50%);background:#37352f;color:white;padding:12px 18px;border-radius:4px;display:none;z-index:20;font-size:14px;max-width:90%;width:max-content;line-height:1.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2383e2;outline-offset:3px}a{color:var(--green)}.segmented{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.segmented button{font-size:12px;background:#f1f1ef;color:var(--muted);padding:9px 14px;border-radius:4px}.segmented button.active{background:var(--green);color:white}.chart svg{width:100%;height:auto;display:block;margin:18px 0 0}.chart circle{cursor:pointer}.food-picker{background:#ffffff;border-radius:4px;padding:14px;margin:12px 0}.foodrow{display:flex;align-items:start;gap:10px;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px;line-height:1.7}.foodrow>div{flex:1}.foodrow:last-child{border:0}.item-source{font-size:11px;color:var(--muted)}.live-total{font-size:14px;padding:14px;background:#f1f1ef;border-radius:4px;margin:14px 0}.review-state{font-size:12px;color:#8d5b36;background:#fff4e8;border-radius:4px;padding:8px 10px;margin:12px 0}.tablewrap{overflow-x:auto;margin-top:16px}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th,td{text-align:left;border-bottom:1px solid var(--line);padding:10px 8px}th{font-weight:500;color:var(--muted)}details{margin:12px 0;font-size:13px;line-height:1.8}summary{cursor:pointer;color:var(--green)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 ui-monospace,monospace;background:#f7f7f5;padding:12px;border-radius:4px;max-height:350px;overflow:auto}.version{padding:15px 0;border-bottom:1px solid var(--line)}.version:last-child{border:0}.restore-review{background:#f7f7f5;padding:16px;border-radius:4px;margin-top:16px}.photoitem{position:relative}.photoitem button{position:absolute;right:0;top:0;border-radius:50%;background:#37352f;color:white;width:24px;height:24px}.error{color:#a44336;font-size:13px;line-height:1.8;margin:0 0 10px}.tag{font-size:11px;border:1px solid var(--line);border-radius:5px;padding:2px 5px;color:var(--muted)}.divider{height:1px;background:var(--line);margin:18px 0}.source-list{max-height:380px;overflow:auto}.install{font-size:12px;line-height:1.9;color:var(--muted)}@media(min-width:700px){main{padding-top:48px}.hero{padding:30px}}@media(max-width:420px){main{padding:28px 16px 112px}.card{padding:16px}.formbody{padding:16px}.formhead,.formfoot{padding:14px 16px}.entry{grid-template-columns:36px 1fr auto;gap:7px}.calendar{gap:3px}.calendar button{min-height:72px}.hero{padding:20px}.big{font-size:42px!important}.hero-side{max-width:112px}.summary strong{font-size:22px}.two{gap:10px}.food-picker{padding:10px}nav{gap:3px}}@media print{nav,#toast,.noprint{display:none!important}main{max-width:none;padding:0}body{background:white}.card{break-inside:avoid}.inline-editor{display:none}}
:root{--green:#37352f;--muted:#787774;--line:#e9e9e7;--soft:#f1f1ef;--hover:#efefed;font-size:14px}body{background:#fff}main{max-width:800px;padding:28px 24px 104px}h1{font-size:34px;line-height:1.25;letter-spacing:-.8px;margin:34px 0 10px;font-weight:700}h2{font-size:17px;font-weight:600;letter-spacing:-.2px}h3{font-size:14px;font-weight:600}p{line-height:1.65}.eyebrow{letter-spacing:0;font-size:13px;font-weight:400;color:var(--muted);display:flex;align-items:center;gap:8px}.eyebrow::before{content:'';width:14px;height:17px;border:1.4px solid #9b9a97;border-radius:2px;display:inline-block;background:linear-gradient(#b4b4b0,#b4b4b0) 3px 5px/6px 1px no-repeat,linear-gradient(#b4b4b0,#b4b4b0) 3px 9px/6px 1px no-repeat}.topline{min-height:30px}.sub{font-size:13px;margin:0 0 26px;color:var(--muted)}.settinglink{font-size:12px;color:var(--muted);padding:6px 8px;border-radius:4px}.settinglink:hover{background:var(--hover)}.settinglink svg{width:16px;height:16px}.badge{border:0;background:#f1f1ef;color:#787774;border-radius:3px;padding:4px 7px;line-height:1.5}.hero{padding:20px 22px;border:1px solid var(--line);border-radius:4px;background:#fafaf9;margin-bottom:18px}.hero .big{font-size:42px;letter-spacing:-1.2px;margin:8px 0 10px;font-weight:600;font-variant-numeric:tabular-nums}.hero p{font-size:12px;color:var(--muted)}.hero-side{padding-top:4px}.hero-side strong{font-size:22px;letter-spacing:-.5px;color:#37352f;margin:8px 0 3px}.hero .big span{font-size:14px;color:var(--muted)}.summary{gap:0;border:1px solid var(--line);border-radius:4px;overflow:hidden}.summary .card{border:0;border-radius:0;padding:16px 18px;background:white}.summary .card:nth-child(even){border-left:1px solid var(--line)}.summary .card:nth-child(n+3){border-top:1px solid var(--line)}.summary .card:hover{background:#fafaf9}.summary strong{font-size:24px;font-weight:500;letter-spacing:-.4px;font-variant-numeric:tabular-nums}.summary small{font-size:12px;margin-top:2px}.card{border-radius:4px;padding:18px 20px;margin:14px 0;border-color:var(--line);box-shadow:none}.actions{gap:8px;margin:18px 0 24px}.action{border-radius:4px;padding:13px 14px;display:grid;grid-template-columns:22px 1fr;column-gap:10px;row-gap:4px;align-items:center;background:#fff;transition:background .12s}.action:hover{background:#f7f7f5}.action svg{grid-row:1/3;width:20px;height:20px;stroke:#787774}.action b{margin:0;font-size:14px;font-weight:500}.action span{font-size:11px;margin:0}.chip{border:0;padding:6px 0;border-radius:3px;background:transparent;font-size:12px}.chip input{width:14px;height:14px;accent-color:#37352f}.section{margin:28px 0 10px;padding-bottom:8px;border-bottom:1px solid var(--line)}.textbtn{color:#787774;font-size:12px;border-radius:3px;padding:6px 8px;min-height:30px}.textbtn:hover{background:#efefed;color:#37352f}.primary{border-radius:4px;padding:10px 14px;font-size:13px;font-weight:500;background:#37352f;min-height:38px}.primary:hover{background:#252420}.secondary{border:1px solid #dededb;border-radius:4px;padding:9px 13px;font-size:13px;background:#fff;color:#37352f;min-height:38px}.secondary:hover{background:#f1f1ef}.danger{color:#b42323;background:#fff7f7}.danger:hover{background:#fbe4e4}.entry{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 0;margin:0;grid-template-columns:40px 1fr auto}.entry .title{font-size:14px;font-weight:500}.entry .desc{font-size:12px}.entry .time{font-size:11px}.mini-grid{gap:16px 20px;margin-top:18px}.mini-grid strong{font-size:16px;font-weight:500;margin-top:3px;font-variant-numeric:tabular-nums}.mini-grid div{font-size:12px}.plan-action{font-size:12px;color:#787774}.notice{font-size:12px;line-height:1.75}.empty{padding:24px 16px;font-size:13px}.calendar{gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line);margin-top:10px}.calendar>span{border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fafaf9}.calendar button{border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;min-height:76px;font-size:12px;padding:9px 3px;gap:7px}.calendar button:hover{background:#f1f1ef}.calendar button.recorded{background:#f7f7f5}.calendar button.selected{outline:1.5px solid #37352f;outline-offset:-2px;background:#f1f1ef}.calendar button.future{color:#b4b4b0}.day-weight{font-size:11px;color:#37352f}.day-marks{font-size:9px;color:#787774}.weekdays{gap:0;margin:18px 0 0;font-size:11px}.date{border-radius:4px;padding:8px 10px;font-size:12px;min-height:36px}.inline-editor{border-radius:4px;margin:18px 0;border-color:#dededb}.formhead{background:#f7f7f5;padding:14px 18px;border-bottom:1px solid var(--line)}.formhead h2{font-size:16px}.formbody{padding:20px}.formfoot{background:#fafaf9;padding:14px 18px}.field{font-size:12px;font-weight:500;margin-bottom:18px}.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{font-size:13px;border-radius:4px;padding:10px 11px;border-color:#dededb;line-height:1.5}.field small{font-size:11px}.food-picker{background:#f7f7f5;border:1px solid var(--line);border-radius:4px;padding:14px}.live-total{border:1px solid var(--line);border-radius:4px;background:#f7f7f5;font-size:13px}.segmented{gap:4px}.segmented button{border-radius:3px;background:transparent;font-size:12px;padding:7px 11px;color:#787774;border:1px solid transparent}.segmented button:hover{background:#f1f1ef}.segmented button.active{background:#f1f1ef;color:#37352f;border-color:#e9e9e7;font-weight:500}.tablewrap{border:1px solid var(--line);border-radius:3px}th{background:#f7f7f5}th,td{border-right:1px solid var(--line);padding:10px}th:last-child,td:last-child{border-right:0}tr:last-child td{border-bottom:0}details{font-size:12px}summary{color:#37352f;padding:3px 0}summary:hover{background:#f7f7f5}pre{background:#f7f7f5;border-radius:3px;font-size:11px}.restore-review{background:#f7f7f5;border:1px solid var(--line);border-radius:4px}.photos img{border-radius:4px}.pill,.tag{border-radius:3px}.progress{background:#e9e9e7}.progress div{background:#9b9a97}#toast{font-size:13px;border-radius:5px;background:#37352f;box-shadow:0 3px 12px #00000014;padding:10px 16px}.review-state{border-radius:3px}.install{font-size:12px}nav{background:#fffffff5;border-color:var(--line);padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:4px}nav button{border-radius:4px;font-size:11px;padding:7px 4px;color:#9b9a97;min-height:47px}nav button:hover{background:#f7f7f5}nav button.active{background:#f1f1ef;color:#37352f}nav svg{width:19px;height:19px;margin-bottom:4px;stroke-width:1.5}a{color:#37352f;text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #2383e2;outline-offset:2px}
@media(min-width:960px){nav{top:0;bottom:0;left:0;right:auto;width:216px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:4px;padding:30px 12px;border-top:0;border-right:1px solid var(--line);background:#f7f7f5;backdrop-filter:none}nav:before{content:'减重日记';font-size:15px;font-weight:600;padding:4px 12px 30px;color:#37352f}nav:after{content:'记录 · 回顾 · 调整';font-size:11px;color:#9b9a97;padding:16px 12px;margin-top:auto}nav button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;font-size:13px;text-align:left;min-height:38px;border-radius:4px}nav svg{margin:0;width:17px;height:17px}nav button.active{background:#eaeae7}main{max-width:860px;margin-left:calc(216px + (100vw - 216px - min(860px,100vw - 264px))/2);margin-right:24px;padding:25px 36px 80px}h1{font-size:40px;margin-top:45px}.sub{margin-bottom:32px}.hero{padding:24px}.hero .big{font-size:48px}.actions{grid-template-columns:repeat(4,1fr);gap:8px}.action{padding:14px 10px;grid-template-columns:20px 1fr;column-gap:8px}.action span{grid-column:1/3;margin-top:6px}.action svg{grid-row:auto}.mini-grid{grid-template-columns:repeat(3,1fr)}#toast{bottom:30px}.calendar button{min-height:90px}.setup-only{display:none}}
@media(max-width:420px){main{padding:22px 18px 102px}h1{font-size:32px;margin-top:28px}.hero{padding:16px}.hero .big{font-size:38px!important}.hero-side{max-width:110px}.hero-side strong{font-size:20px}.card{padding:16px}.summary .card{padding:14px}.summary strong{font-size:22px}.entry{padding:14px 0;grid-template-columns:34px 1fr auto;gap:6px}.actions{gap:7px}.action{padding:12px 10px;column-gap:8px}.calendar{gap:0}.calendar button{min-height:68px}.formbody{padding:16px}.formhead,.formfoot{padding:13px 16px}.two{gap:10px}.mini-grid{gap:14px 10px}.food-picker{padding:12px}nav{gap:3px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media print{nav{display:none!important}main{margin:0;max-width:none;padding:0}}

.countdown-section{margin:0 0 20px}.countdown-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.countdown-info{min-width:0}.countdown-title{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.countdown-info small{display:block;font-size:11px;margin-top:5px}.countdown-value{font-size:18px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.4px}.countdown-value.today{font-size:14px;background:#f1f1ef;padding:5px 7px;border-radius:3px}.countdown-value.overdue{font-size:14px;color:#a44336}.countdown-deleted{margin-bottom:0}@media(max-width:420px){.countdown-row{gap:6px}.countdown-value{font-size:16px}.countdown-row .textbtn{padding:6px}.countdown-value.overdue{font-size:12px}}

.progress-section{margin:0 0 20px}.progress-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;margin:20px 0}.progress-metrics>div{min-width:0}.progress-metrics small{display:block;font-size:11px;line-height:1.7}.progress-metrics strong{display:block;font-size:24px;font-weight:500;letter-spacing:-.4px;font-variant-numeric:tabular-nums;margin:5px 0;overflow-wrap:anywhere}.progress-caption{font-size:12px;color:var(--muted);padding-top:14px;border-top:1px solid var(--line)}.progress-caption strong{font-weight:500;color:#37352f}.progress-section .progress{margin-top:9px;height:7px}.progress-section .progress div{background:#37352f}.progress-history{max-height:360px;overflow:auto}.progress-history th{position:sticky;top:0;z-index:1}.progress-history td{font-variant-numeric:tabular-nums}.progress-history td:first-child{padding:4px}.progress-history .textbtn{font-size:11px}.progress-history~.notice{margin-top:10px}@media(min-width:700px){.progress-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.progress-metrics strong{font-size:22px}}

.quick-section{margin:18px 0 24px}.quick-section .actions{margin:0}.quick-panel{margin:8px 0 0;background:#fafaf9}.quick-panel[hidden]{display:none}.quick-panel h3{margin:0;font-size:13px}.quick-panel>.row{margin-bottom:16px}.action.quick-active{background:#f1f1ef;border-color:#b4b4b0}.quick-number{max-width:220px}.quick-panel .field{margin-bottom:12px}.quick-presets,.quick-slots{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.quick-presets .secondary{flex:1 1 130px;text-align:center}.quick-slots .secondary{font-size:12px;padding:8px 10px}.quick-selected{background:#37352f!important;color:white!important;border-color:#37352f!important}.quick-step-row{display:flex;align-items:end;gap:10px;margin-top:20px}.quick-step-row .field{flex:1;margin:0;min-width:0}.quick-step-row .primary{flex-shrink:0;margin-bottom:1px}.quick-footer{display:flex;align-items:center;flex-wrap:wrap;gap:6px;border-top:1px solid var(--line);padding-top:10px;margin-top:18px}.quick-footer span{font-size:11px}.quick-panel .two .field{min-width:0}

.today-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:8px 0 24px}.today-heading h1{margin:0;font-size:32px}.today-heading>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.dashboard{border:1px solid var(--line);border-radius:5px;overflow:hidden}.dashboard-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;background:#fafaf9;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);flex-wrap:wrap}.dashboard-top i{font-style:normal;padding:0 8px}.dashboard-top .textbtn{font-size:11px;padding:4px 7px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-module{min-width:0;padding:20px 22px;display:flex;flex-direction:column;align-items:stretch}.dashboard-module:nth-child(even){border-left:1px solid var(--line)}.dashboard-module:nth-child(n+3){border-top:1px solid var(--line)}.dashboard-module-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.dashboard-module h2{display:flex;align-items:center;gap:8px;font-size:14px}.dashboard-module h2 svg{width:17px;height:17px;stroke:#787774;fill:none;stroke-width:1.5}.dashboard-module .dashboard-add{border:1px solid var(--line);background:#fff;color:#37352f;padding:4px 10px}.dashboard-module .dashboard-add:hover{background:var(--soft)}.dashboard-value{font-size:34px;line-height:1.2;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.dashboard-value small{font-size:12px;font-weight:400;letter-spacing:0;margin-left:7px;white-space:nowrap}.dashboard-caption{font-size:11px;color:var(--muted);line-height:1.7;margin:8px 0 0}.dashboard-target{display:flex;gap:6px 16px;justify-content:space-between;flex-wrap:wrap;margin-top:16px;font-size:11px;color:#787774;line-height:1.7}.dashboard .progress{margin-top:9px;height:5px}.dashboard .progress div{background:#37352f}.dashboard-footnote{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:10px 0 0;line-height:1.7}.dashboard-footnote .textbtn{font-size:11px;padding:3px 0;min-height:24px}.dashboard-records:not(:empty){margin-top:10px;max-height:200px;overflow:auto}.dashboard-record{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.dashboard-record:last-child{border-bottom:0}.dashboard-record>div{min-width:0;flex:1}.dashboard-record span,.dashboard-record small{display:block;overflow-wrap:anywhere}.dashboard-record small{margin-top:3px;font-size:11px;line-height:1.6}.dashboard-record .textbtn{flex-shrink:0;font-size:11px;padding:4px}.dashboard-module .quick-panel{border:0;border-top:1px solid var(--line);border-radius:0;margin:16px 0 0;padding:16px 0 0;background:white}.dashboard-module .quick-footer span{display:none}.dashboard-module .quick-number{max-width:none}.dashboard-module .quick-presets .secondary{flex-basis:100px;font-size:12px;padding:8px}.dashboard-module .quick-panel>.row h3{font-size:12px}.dashboard-module .quick-step-row{flex-wrap:wrap}.dashboard-module .quick-step-row .field{flex-basis:130px}.dashboard-module .inline-editor{margin-bottom:0}.today-countdowns{border:1px solid var(--line);border-radius:4px;margin-top:14px}.today-countdowns>summary{padding:12px 16px;font-size:12px;list-style-position:inside}.today-countdowns>summary>span{float:right;color:var(--muted);font-size:11px}.today-countdowns .countdown-section{border:0;border-top:1px solid var(--line);border-radius:0;margin:0}.today-countdowns .countdown-section h2{font-size:14px}nav button{width:100px}
@media(min-width:960px){.today-heading{margin:16px 0 28px}.today-heading h1{font-size:36px}nav button{width:100%}}
@media(max-width:600px){.dashboard-module{padding:16px 14px}.dashboard-value{font-size:28px}.dashboard-module-head{margin-bottom:12px}.dashboard-target{gap:4px;margin-top:12px}.dashboard-caption{font-size:10px}.dashboard-module .quick-panel .two{grid-template-columns:1fr}.dashboard-module:has(.quick-panel:not([hidden])),.dashboard-module:has(.inline-editor:not([hidden])){grid-column:1/-1;border-left:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.dashboard-module:has(.quick-panel:not([hidden]))+.dashboard-module,.dashboard-module:has(.inline-editor:not([hidden]))+.dashboard-module{border-left:0}.dashboard-module:has(.quick-panel:not([hidden]))~.dashboard-module,.dashboard-module:has(.inline-editor:not([hidden]))~.dashboard-module{border-top:1px solid var(--line)}.dashboard-top{padding:10px 12px}.dashboard-top>span{font-size:11px}.today-heading{margin:6px 0 20px}.today-heading h1{font-size:30px}nav button{width:auto;flex:1;max-width:110px}.dashboard-module .quick-panel .two{grid-template-columns:1fr 1fr}}

/* Compact meal entry inside the existing dashboard module. */
.module-editing>:not(.dashboard-module-head):not(#editor){display:none}
.meal-editor{overflow:visible}
.dashboard-module .meal-editor{border:0;border-radius:0;margin:0}
.dashboard-module .meal-editor .formhead{display:none}
.meal-editor .formbody{padding:16px}
.dashboard-module .meal-editor .formbody{padding:0}
.meal-editor .field{font-size:12px;font-weight:400;margin-bottom:12px}
.meal-editor .field input,.meal-editor .field select,.meal-editor .field textarea{padding:10px;margin-top:6px;font-size:14px}
.meal-editor .formfoot{padding:12px 0 0;background:white;border:0}
.meal-editor:not(.dashboard-module .meal-editor) .formfoot{padding:12px 16px 16px}
.meal-meta{gap:10px}
.meal-templates{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.meal-templates .secondary{padding:6px 10px;font-size:12px}
.food-combobox{position:relative}
#foodResults{position:absolute;z-index:4;top:100%;margin-top:-6px;left:0;right:0;max-height:210px;overflow-y:auto;background:white;border:1px solid #dededb;border-radius:4px;box-shadow:0 4px 12px #0000000d;padding:4px;scroll-margin-bottom:100px}
#foodResults[hidden],.food-portion[hidden]{display:none}
#foodResults [role=option]{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;background:white;padding:10px 8px;border-radius:3px;font-size:13px;min-height:52px;color:var(--green)}
#foodResults [role=option]:hover,#foodResults [aria-selected=true]{background:var(--soft)}
#foodResults small{font-size:11px}
.food-no-results{padding:12px 8px;font-size:12px;line-height:1.7;color:var(--muted)}
.food-portion{display:flex;gap:8px;align-items:end;margin-bottom:12px}
.food-portion .field{margin:0;flex:1;min-width:0}
.food-portion .secondary{padding:10px 14px;min-height:40px;font-size:13px}
.meal-extras{margin-top:12px;font-size:12px;color:var(--muted)}
.meal-extras>summary{padding:6px 0;cursor:pointer}
.meal-extras[open]>summary{margin-bottom:10px}
.meal-editor .foodrow{padding:8px 0;font-size:13px}
.meal-editor .foodrow small{font-size:11px}
.meal-editor .foodrow .textbtn{font-size:11px;padding:6px}
.meal-editor #formError:empty{display:none}

.energy-panel{padding:20px 22px;border-top:1px solid var(--line)}
.energy-panel>div.row{gap:8px}
.energy-panel h2{font-size:14px;white-space:nowrap}
.energy-panel h2>small{font-size:11px;font-weight:400;margin-left:6px}
.energy-actions{display:flex;gap:4px;flex-wrap:wrap}
.energy-actions .textbtn{font-size:11px;padding:6px}
.energy-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.energy-metrics>div{min-width:0}
.energy-metrics>div>small{font-size:11px}
.energy-metrics strong{display:block;font-size:22px;font-weight:500;margin-top:7px;line-height:1.5;font-variant-numeric:tabular-nums}
.energy-metrics strong small{font-size:10px;font-weight:400;margin-left:4px}
.energy-metrics .energy-outcome strong{font-size:16px;line-height:1.8}
.energy-line{font-size:11px;color:var(--muted);line-height:1.9;margin:12px 0}
.energy-comparison{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:8px 12px;align-items:center;padding:12px 0;border-top:1px solid var(--line);font-size:11px}
.energy-comparison span{color:var(--muted)}
.energy-comparison strong{font-weight:500;font-size:13px;font-variant-numeric:tabular-nums}
.energy-yesterday{font-size:11px;color:var(--muted);padding:4px 0 12px;line-height:1.8}
.energy-details{font-size:12px;color:var(--muted)}
.energy-details>summary{padding:4px 0;cursor:pointer}
.energy-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;max-width:500px}
.energy-controls .field{font-size:12px;font-weight:400;margin:0}
.energy-controls .field input,.energy-controls .field select{font-size:13px;padding:9px}
.energy-breakdown{font-size:12px;line-height:1.8;padding-left:18px}
.energy-details .notice{font-size:11px}
.energy-week{display:flex;flex-direction:column;gap:6px;margin:16px 0;padding:12px 14px;background:#f7f7f5;font-size:12px;line-height:1.7}
.energy-week strong{font-weight:500}
.energy-week small{font-size:11px}
.energy-history table{min-width:800px}
.energy-history td{font-variant-numeric:tabular-nums}
.energy-history td:last-child{min-width:150px;max-width:240px;white-space:normal;font-size:11px}
@media(max-width:600px){.energy-panel{padding:16px 14px}.energy-metrics{grid-template-columns:1fr 1fr;gap:14px 18px}.energy-metrics strong{font-size:21px}.energy-comparison{grid-template-columns:1fr 1fr}.energy-controls{grid-template-columns:1fr}.energy-controls .field input,.energy-controls .field select{font-size:16px}}
