.weight-page,.weight-dock-anchor,.weight-import-dialog{--weight-bg: #fff;--weight-surface: #f5f5f7;--weight-text: #171b20;--weight-muted: #737889;--weight-border: #e7e9ed;--weight-green: #168638;--weight-tint: #eaf7ee;color:var(--weight-text);-webkit-tap-highlight-color:transparent}.main-container:has(.weight-dock-anchor){padding-bottom:112px}.weight-dock-anchor{position:fixed;z-index:20;right:max(16px,calc((100vw - 640px)/2));bottom:max(20px,env(safe-area-inset-bottom));transition:transform .18s ease-out}.weight-dock{position:relative;width:64px;height:64px;overflow:hidden;border-radius:34px;background:var(--weight-green);box-shadow:0 7px 22px #163c2226,0 1px 5px #163c2209;transition:width .42s cubic-bezier(.22,1,.36,1),height .42s cubic-bezier(.22,1,.36,1),background-color .25s ease,border-radius .35s ease}.weight-dock-choose{width:min(292px,calc(100vw - 32px));height:70px;background:var(--weight-bg);border-radius:38px}.weight-dock-entry{width:min(520px,calc(100vw - 32px));height:72px;background:var(--weight-bg);border-radius:38px}.weight-dock-trigger,.weight-dock-choices,form.weight-dock-entry{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .35s cubic-bezier(.22,1,.36,1)}.weight-dock-trigger{display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;transform:scale(.75)}.weight-dock-trigger svg{width:34px;height:34px}.weight-dock-closed>.weight-dock-trigger{opacity:1;pointer-events:auto;transform:scale(1)}.weight-dock-choices{display:flex;gap:6px;width:292px;max-width:calc(100vw - 32px);padding:6px;transform:translate(15px)}.weight-dock-choices>*{display:flex;flex:1;align-items:center;justify-content:center;gap:10px;min-width:0;border:0;border-radius:32px;background:var(--weight-tint);color:var(--weight-text);font:inherit;font-size:14px;line-height:1.3;text-align:left;text-decoration:none;cursor:pointer}.weight-dock-choices svg{width:30px;height:30px;color:var(--weight-green);flex-shrink:0}.weight-dock-choose>.weight-dock-choices,.weight-dock-entry>form.weight-dock-entry{opacity:1;pointer-events:auto;transform:translate(0);transition-delay:80ms}form.weight-dock-entry{display:flex;align-items:center;gap:10px;padding:8px;margin:0;transform:translate(20px)}.weight-dock-label{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:0 7px;border:0;background:transparent;color:var(--weight-text);font:inherit;text-align:left;cursor:pointer}.weight-dock-label svg{width:27px;height:27px;color:var(--weight-green)}.weight-dock-label span{font-size:14px}.weight-dock-label small{display:block;margin-top:3px;color:var(--weight-muted);font-size:10px}.weight-dock-entry input{flex:1;min-width:0;width:90px;height:46px;padding:5px 8px;border:1px solid #a9d5b5;border-radius:12px;background:var(--weight-bg);color:var(--weight-text);font:inherit;font-size:23px;text-align:center;caret-color:var(--weight-green)}.weight-dock-entry input:focus{outline:2px solid #16863820;border-color:var(--weight-green)}.weight-save{display:grid;flex:0 0 46px;place-items:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;color:#fff;background:var(--weight-green);cursor:pointer}.weight-save:disabled{opacity:.5;cursor:default}.weight-save svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.weight-entry-unit{flex-shrink:0;color:var(--weight-muted);font-size:14px}.weight-dock-notice{position:absolute;bottom:calc(100% + 12px);right:0;width:max-content;max-width:min(350px,calc(100vw - 32px));border-radius:14px;padding:10px 16px;background:var(--weight-bg);box-shadow:0 4px 18px #00000017;color:var(--weight-green);text-align:left;font-size:13px;animation:weight-fade-in .2s ease}.weight-dock-notice:empty{display:none}.weight-dock-notice[role=alert],.weight-error{color:#b1363e}.weight-spinner{width:20px;height:20px;border:2px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:weight-spin .8s linear infinite}.layout-container.with-weight{height:auto;min-height:100dvh;overflow:visible}.layout-container.with-weight>main{margin-top:0;padding:0 18px;max-width:676px;overflow:visible}.layout-container.with-weight .header{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;position:relative;width:100%;max-width:676px;min-height:76px;margin:0 auto;padding:16px 18px}.progress-selector{position:relative;display:flex;justify-self:center;width:min(270px,100%);padding:4px;border-radius:999px;background:var(--badge-bg)}.progress-selector a{position:relative;z-index:1;display:grid;place-items:center;flex:1;min-width:0;min-height:40px;border-radius:999px;color:var(--text-secondary);text-decoration:none;font-size:14px;font-weight:600;transition:color .2s}.progress-selector a[aria-current=page]{color:var(--text-primary)}.progress-selector a:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.progress-selector-highlight{position:absolute;inset:4px auto 4px 4px;width:calc((100% - 8px) / 3);border-radius:999px;background:#fff;box-shadow:0 1px 4px #10182012;transition:transform .3s cubic-bezier(.22,1,.36,1)}.progress-selector[data-view=calories] .progress-selector-highlight{transform:translate(100%)}.progress-selector[data-view=tdee] .progress-selector-highlight{transform:translate(200%)}@media(max-width:390px){.progress-selector a{font-size:12px}}@media(prefers-color-scheme:dark){.progress-selector-highlight{background:#282e38}}.weight-back{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--badge-border);border-radius:50%;background:var(--badge-bg);color:var(--text-primary)}.weight-back svg{width:23px;height:23px}.layout-container.with-weight>footer{display:none}.weight-page{width:100%;max-width:640px;margin:0 auto;padding:0 0 36px;animation:weight-fade-in .25s ease}.weight-page-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:8px 0 18px}.weight-ranges{position:relative;display:flex;flex:1;min-width:0;padding:4px;border-radius:24px;background:var(--weight-surface)}.weight-ranges button{flex:1;position:relative;z-index:1;padding:9px 2px;border:0;min-width:0;min-height:36px;border-radius:20px;background:transparent;color:var(--weight-muted);font:inherit;font-size:14px;cursor:pointer;transition:color .2s}.weight-ranges button[aria-pressed=true]{color:var(--weight-text);font-weight:600}.weight-range-highlight{position:absolute;inset:4px auto 4px 4px;width:calc((100% - 8px) / 6);border-radius:20px;background:var(--weight-bg);box-shadow:0 1px 4px #10182005;transition:transform .35s cubic-bezier(.22,1,.36,1)}.chart-period{margin:8px 0;color:var(--weight-muted);font-size:14px;text-align:center}.weight-summary{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);margin:28px 0 24px}.weight-summary>div{display:flex;flex-direction:column;gap:6px;align-items:center;padding:0 4px;text-align:center}.weight-summary>div+div{border-left:1px solid var(--weight-border)}.weight-summary strong{font-weight:650;font-size:clamp(18px,5vw,25px);white-space:nowrap;letter-spacing:-.7px}.weight-summary strong small{font-size:.8em}.weight-summary>div>span,.weight-summary>div>small{color:var(--weight-muted)}.weight-summary>div>span{font-size:14px;text-wrap:balance}.weight-summary>div>small{font-size:11px}.weight-summary .weight-change-down{color:var(--weight-green)}.weight-chart{margin:24px -4px 0}.weight-chart svg{width:100%;height:auto;display:block;overflow:visible}.weight-chart text{fill:var(--weight-muted);font:12px Inter,system-ui,sans-serif}.weight-chart-line{fill:none;stroke:var(--weight-green);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:opacity .3s}.weight-chart-dot{fill:var(--weight-bg);stroke:var(--weight-green);stroke-width:2.4;transition:cx .45s cubic-bezier(.22,1,.36,1),cy .45s cubic-bezier(.22,1,.36,1);animation:weight-fade-in .35s ease}.calorie-bars{fill:#d6eddc;opacity:0;transition:opacity .35s ease}.calorie-bars.visible{opacity:1}.calorie-bars rect{transition:x .45s cubic-bezier(.22,1,.36,1),y .45s cubic-bezier(.22,1,.36,1),width .45s cubic-bezier(.22,1,.36,1),height .45s cubic-bezier(.22,1,.36,1)}.calorie-axis{opacity:0;transition:opacity .3s}.calorie-axis.visible{opacity:1}.chart-date{animation:weight-fade-in .35s ease}.weight-chart-legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:22px;min-height:34px;font-size:12px;color:var(--weight-muted)}.weight-chart-legend>span{display:flex;align-items:center;gap:8px}.weight-chart-legend i{width:10px;height:10px;background:var(--weight-green);border-radius:50%}.weight-chart-legend .calorie-axis i{width:12px;height:14px;border-radius:3px;background:#d6eddc}.weight-chart+.weight-recent{margin-top:32px}.weight-recent h2{font-size:16px;font-weight:600;letter-spacing:-.3px;margin:0 0 12px}.weight-row{max-height:150px;opacity:1;overflow:hidden;transition:max-height .24s ease,opacity .2s ease}.weight-row.deleting{max-height:0;opacity:0;pointer-events:none}.weight-row-swipe{position:relative;overflow:hidden;border-radius:10px}.weight-row-content{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:57px;padding:16px 8px 16px 0;background:var(--weight-bg);cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none;transition:transform .2s ease}.weight-row-content.dragging{transition:none;cursor:grabbing}.weight-row-content time{color:var(--weight-muted);font-size:14px}.weight-row-content>span{font-size:16px;font-weight:550;white-space:nowrap}.weight-row-unit{font-weight:400}.weight-row-delete{position:absolute;right:0;top:0;bottom:0;width:80px;padding:0;border:0;border-radius:10px;background:#c83e45;color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;visibility:hidden}.weight-row.swiped .weight-row-delete{visibility:visible}.weight-error{font-size:13px;line-height:1.5;margin:8px 0}.weight-show-more,.weight-empty button,.weight-load-error button{padding:10px 18px;border:1px solid var(--weight-border);border-radius:22px;background:var(--weight-surface);color:var(--weight-text);font:inherit;font-size:13px;cursor:pointer}.weight-show-more{display:block;margin:16px auto 0}.weight-empty{padding:20px 0;text-align:center;font-size:14px;color:var(--weight-muted)}.weight-empty a{color:var(--weight-green)}.weight-load-error{padding:12px;margin-top:12px;background:var(--weight-tint);border-radius:12px;font-size:13px}.weight-loading{display:grid;gap:28px;margin:28px 0}.weight-loading>div{height:70px;border-radius:16px;background:var(--weight-surface);animation:weight-pulse 1.5s ease-in-out infinite}.weight-loading>div+div{height:270px}.weight-import-dialog{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--weight-border);border-radius:24px;background:var(--weight-bg);box-shadow:0 18px 60px #0003;font-family:Inter,system-ui,sans-serif;animation:weight-dialog-in .25s cubic-bezier(.22,1,.36,1)}.weight-import-dialog::backdrop{background:#10182065;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.weight-import-inner{padding:22px}.weight-import-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.weight-import-heading h2{margin:0;font-size:21px;letter-spacing:-.4px}.weight-import-heading button{width:36px;height:36px;border:0;border-radius:50%;background:var(--weight-surface);color:var(--weight-text);font:inherit;font-size:24px;cursor:pointer}.weight-import-inner p{font-size:13px;line-height:1.6}.weight-import-example{padding:14px;margin:14px 0 10px;background:var(--weight-surface);border-radius:12px;font-size:13px;line-height:1.8}.weight-template-link{color:var(--weight-green);font-size:12px}.weight-import-help{color:var(--weight-muted);font-size:12px!important}.weight-file-picker{display:block;position:relative;padding:12px;border:1px dashed #a9c9b1;border-radius:12px;background:var(--weight-tint);color:var(--weight-green);text-align:center;font-size:14px;cursor:pointer}.weight-file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.weight-file-picker:focus-within{outline:3px solid var(--focus-ring)}.weight-import-filename{overflow-wrap:anywhere;color:var(--weight-muted)}.weight-import-preview table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.weight-import-preview td,.weight-import-preview th{padding:8px 5px;border-bottom:1px solid var(--weight-border)}.weight-import-preview>small{display:block;margin-top:8px;color:var(--weight-muted)}.weight-primary-button{width:100%;margin-top:10px;padding:13px;border:0;border-radius:24px;background:var(--weight-green);color:#fff;font:inherit;font-size:14px;cursor:pointer}.weight-primary-button:disabled{opacity:.6;cursor:wait}.weight-import-success{color:var(--weight-green)}@keyframes weight-fade-in{0%{opacity:0}to{opacity:1}}@keyframes weight-dialog-in{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes weight-spin{to{transform:rotate(360deg)}}@keyframes weight-pulse{50%{opacity:.45}}@media(max-width:390px){.weight-page-controls{gap:8px}.weight-ranges button{font-size:12px}form.weight-dock-entry{gap:6px}.weight-dock-label{gap:4px;padding:0 3px}.weight-dock-label span{font-size:12px}.weight-dock-label small{font-size:9px}.weight-dock-label svg{width:23px}.weight-dock-entry input{font-size:21px;padding:5px}}@media(max-width:350px){.weight-dock-label span{display:none}}@media(min-width:700px){.weight-page-controls{margin-top:20px}.weight-summary{margin-top:32px}.weight-summary strong{font-size:28px}.weight-row-content{min-height:66px}}@media(prefers-color-scheme:dark){.weight-page,.weight-dock-anchor,.weight-import-dialog{--weight-bg: #050a11;--weight-surface: #10161e;--weight-text: #f3f4f6;--weight-muted: #a1a7b2;--weight-border: #282e38;--weight-green: #4bc66b;--weight-tint: #102d1b}.weight-dock{box-shadow:0 8px 26px #0008,0 0 0 1px #ffffff0d}.weight-dock-trigger,.weight-save,.weight-primary-button{color:#082310}.calorie-bars{fill:#204c30}.weight-chart-legend .calorie-axis i{background:#204c30}.weight-error,.weight-dock-notice[role=alert]{color:#ff9ca4}}.interactive-chart{position:relative}.interactive-chart>svg{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:crosshair}.chart-tooltip{position:absolute;z-index:2;top:0;transform:translate(-50%);display:flex;flex-direction:column;gap:4px;width:max-content;max-width:48%;padding:9px 12px;border:1px solid var(--weight-border, #e7e9ed);border-radius:10px;background:var(--weight-bg, #fff);color:var(--weight-text, #171b20);box-shadow:0 3px 12px #0000000d;font-size:12px;pointer-events:none}.chart-tooltip>span,.chart-tooltip>small{color:var(--weight-muted, #737889);font-size:11px}.chart-tooltip strong{font-size:14px;font-weight:600}.chart-selection{pointer-events:none}.chart-selection line{stroke:var(--weight-muted, #737889);stroke-dasharray:3 3;stroke-width:.8}.chart-selection circle{fill:var(--weight-green, #168638);stroke:var(--weight-bg, #fff);stroke-width:2}.chart-hint{margin:5px 0 0;color:var(--weight-muted, #737889);text-align:center;font-size:10px;line-height:1.5}
