:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24322e;background:#f5f6f2;font-synthesis:none;--muted:#6c7770;--line:#dce1d9;--green:#315c49;--paper:#fffefa}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{outline-offset:3px}button{cursor:pointer}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}.hidden{display:none!important}.top{min-height:48px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:8px 24px;gap:20px;background:var(--paper)}.brand{font-size:19px;font-weight:650;letter-spacing:-.6px;color:#26392f;white-space:nowrap}.local{margin-left:auto;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px;white-space:nowrap}.local i{height:6px;width:6px;border-radius:50%;background:#739876}.export,.profile-summary{font-size:11px;border:1px solid var(--line);border-radius:5px;padding:6px 10px;background:var(--paper);color:var(--green)}.profile-summary{margin-left:auto;white-space:nowrap}.profile-summary:not(.hidden)~.local{margin-left:0}main{padding:0 24px}.intro{padding:20px 0 14px}h1{font-size:23px;font-weight:550;letter-spacing:-.5px;margin:0 0 6px}.intro p{font-size:12px;color:var(--muted);margin:0}.stats{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:20px;color:var(--muted);font-size:11px}.stat strong{font-weight:550;color:#354c3c;margin-right:5px;font-variant-numeric:tabular-nums}.toolbar{display:flex;align-items:end;gap:10px;margin-bottom:10px}.toolbar label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:4px}.toolbar input,.toolbar select{height:32px;border:1px solid #d6dcd3;background:var(--paper);border-radius:5px;font-size:12px;color:#354b3c;padding:0 9px}.toolbar .search{flex:1;max-width:420px;min-width:170px}.quiet{height:32px;border:0;background:none;color:var(--muted);font-size:11px;padding:0 8px}.table-heading{font-size:10px;color:var(--muted);margin:0 0 7px}.table-wrap{border:1px solid var(--line);border-radius:5px;background:var(--paper);min-width:760px;overflow:visible}table{border-collapse:collapse;width:100%;font-size:11px;table-layout:fixed}thead{position:sticky;top:0;z-index:2}th{text-align:left;color:var(--muted);font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;background:#e9ede4;padding:8px 10px;border-bottom:1px solid var(--line)}td{padding:5px 10px;vertical-align:middle;border-bottom:1px solid #e6e9e0;line-height:1.5}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbf6}.date-button,.item-button{background:none;border:0;padding:1px 0;text-align:left;color:inherit;font-size:11px;line-height:1.5}.date-button{color:#354c3c;white-space:nowrap}.date-button:hover,.item-button:hover{text-decoration:underline;text-underline-offset:3px}.item-button{margin-right:10px;max-width:100%;vertical-align:middle}.weight{font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap}.measurement{white-space:nowrap}.note-button,.workout-button{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.date-qualifier{font-size:10px;color:var(--muted)}.empty{color:#a7afa5}.photo-thumb{border:0;padding:0;background:transparent;display:inline-block;margin:1px 4px 1px 0;vertical-align:middle}.photo-thumb img{width:26px;height:31px;object-fit:cover;border-radius:3px;display:block}.badge{font-size:9px;color:var(--muted);margin-right:6px}.muted,.tiny{color:var(--muted)}.tiny{font-size:11px;line-height:1.5}.empty-state{text-align:center;color:var(--muted);padding:32px}footer{padding:12px 0;color:#8b958a;font-size:10px}
dialog{border:1px solid var(--line);border-radius:10px;padding:0;background:var(--paper);color:inherit;box-shadow:0 24px 100px #14251833;max-height:90vh;width:min(720px,94vw)}dialog::backdrop{background:#18251e55;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;background:var(--paper);position:sticky;top:0;border-bottom:1px solid var(--line);z-index:1;gap:12px}h2{font-size:20px;font-weight:550;margin:0}.close{border:0;background:none;font-size:26px;color:var(--muted);padding:4px 8px}#detail-body,#profile-body{padding:0 24px 22px}.record{padding:20px 0;border-bottom:1px solid var(--line)}.record:last-child{border:0}.record h3{font-size:17px;font-weight:550;margin:0 0 12px}.record-photo img{width:110px;height:auto;max-height:170px}.facts{margin:0;font-size:12px}.field{display:grid;grid-template-columns:115px 1fr;gap:15px;padding:5px 0;line-height:1.6}.field dt{color:var(--muted)}.field dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.record-note{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.record details{margin-top:12px;font-size:12px;line-height:1.6}.record summary{cursor:pointer;color:var(--green)}.detail-fields{padding-left:12px;border-left:1px solid var(--line);margin:8px 0}.detail-fields .field{grid-template-columns:135px 1fr;font-size:11px}.profile-height{font-size:19px;margin:18px 0 8px}#photo{background:#16201a;color:white;width:auto;max-width:94vw;border:0;padding:12px;text-align:center}#photo-image{max-width:88vw;max-height:77vh;object-fit:contain;display:block}#photo-caption{padding:12px 32px;font-size:12px;line-height:1.6}.photo-close{position:absolute;right:18px;top:17px;background:#16201acc;border:0;border-radius:50%;width:34px;height:34px;color:white;font-size:25px}.error-panel{color:#8c4734;padding:20px}
@media(max-width:700px){main{padding:0 14px}.top{padding:8px 14px;gap:10px;flex-wrap:wrap}.local{display:none}.brand{font-size:17px}.export,.profile-summary{font-size:10px;padding:5px 7px}.stats{gap:12px}.toolbar{flex-wrap:wrap}.toolbar .search{flex-basis:100%;max-width:none}.dialog-head,#detail-body,#profile-body{padding-left:18px;padding-right:18px}.field,.detail-fields .field{grid-template-columns:100px 1fr;gap:10px}}

.photo-thumb{position:relative}.video-thumb{min-width:26px;min-height:31px;background:#16201a;border-radius:3px}.play-badge{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:13px;text-shadow:0 1px 4px #000;pointer-events:none}.video-thumb:focus-visible{outline:2px solid var(--green);outline-offset:2px}
#photo-video{max-width:88vw;max-height:77vh;display:block;margin:auto;background:#000}#photo-image{margin:auto}#photo-video[hidden],#photo-image[hidden]{display:none}

.photo-close{z-index:2}

.column-unit{display:block;font-size:8px;font-weight:400;text-transform:none;letter-spacing:0;line-height:1.4}.table-wrap{min-width:880px}th:nth-child(1){width:12%}th:nth-child(2){width:8%}th:nth-child(3){width:7%}th:nth-child(4){width:8%}th:nth-child(5){width:20%}th:nth-child(6){width:11%}th:nth-child(7){width:14%}th:nth-child(8){width:20%}.intake-value{font-variant-numeric:tabular-nums}

/* Timeline: warm paper, charcoal type, a single copper thread through time. */
:root{--ink:#282c29;--muted:#81847c;--line:#e5e5dc;--paper:#fffefa;--accent:#b65e3c;--green:#3c5848;background:#f6f5f1;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif} [hidden]{display:none!important}button{transition:background .15s,color .15s,box-shadow .15s}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled{cursor:default;opacity:.5}.top{height:78px;max-width:1380px;margin:auto;padding:0 54px;background:none;border-bottom:1px solid var(--line);gap:36px}.brand{display:flex;align-items:center;gap:10px;font-size:17px;letter-spacing:-.6px;color:var(--ink)}.brand svg{width:28px;height:28px;fill:none;stroke:var(--accent);stroke-width:1.5}.view-switch{display:flex;gap:28px;margin-left:auto;height:100%;align-items:stretch}.view-switch button{font-size:12px;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);padding:0 2px}.view-switch button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--ink)}.view-switch span{margin-left:6px}.profile-summary{margin:0;background:#eaece4;border:0;border-radius:50px;padding:9px 14px;color:#50604f;font-size:11px}main{max-width:1272px;margin:auto;padding:0 44px}.intro{padding:48px 0 34px;display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:9px!important;letter-spacing:1.7px;font-weight:550;color:var(--muted);margin:0 0 12px!important}h1{font-family:Georgia,'Times New Roman',serif;font-size:40px;font-weight:400;letter-spacing:-1.6px;margin:0 0 12px}.intro p.subtitle,.subtitle{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.current-weight{min-width:150px;text-align:right}.current-weight>div{display:flex;align-items:baseline;justify-content:end;gap:9px}.current-weight #latest-weight{font-size:49px;letter-spacing:-2.5px;line-height:1.1;color:var(--ink);border:0;background:none;padding:0;font-weight:450}.current-weight #latest-weight:hover{color:var(--accent)}.current-weight #weight-unit{color:var(--muted);font-size:16px}.current-weight #latest-date{font-size:10px;margin-top:8px}.timeline-card{background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:0 4px 16px #2b2d2703;padding:28px 32px 16px}.chart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}.chart-heading{display:flex;align-items:center;gap:16px}.chart-heading h2{font-size:16px;font-weight:550;letter-spacing:-.3px}#period-change{font-size:10px;color:#787f71;border-left:1px solid var(--line);padding-left:16px}.range-switch{display:flex;border:1px solid var(--line);border-radius:7px;padding:3px;gap:2px;background:#f8f8f3}.range-switch button{background:none;border:0;border-radius:4px;min-width:35px;height:26px;font-size:10px;color:var(--muted)}.range-switch button[aria-pressed=true]{background:#fffefa;color:var(--ink);box-shadow:0 1px 5px #00000012;font-weight:600}.range-switch button:hover{background:#eeeee7}.chart-subhead{display:flex;align-items:center;justify-content:space-between;margin-top:12px;gap:12px}#range-label{font-size:10px;color:var(--muted);margin:0}.legend{display:flex;gap:18px;font-size:9px;color:var(--muted)}.legend>span{display:flex;align-items:center;gap:7px}.dot-key{width:5px;height:5px;background:#a9ada0;border-radius:50%}.line-key{width:17px;height:2px;background:var(--accent)}.weight-chart{position:relative;margin-top:12px;min-height:255px}#chart-svg{width:100%;display:block;overflow:visible}.gridline{stroke:#edede6;stroke-dasharray:3 5;stroke-width:1}.axis-label{font:10px -apple-system,BlinkMacSystemFont,sans-serif;fill:#999c91}.trend-line{stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;fill:none}.trend-fill{fill:#bd70490a}.weight-dot{fill:#fcfcf7;stroke:#929c8b;stroke-width:1.6;cursor:pointer;outline:none}.weight-dot:hover,.weight-dot:focus{stroke:var(--accent);stroke-width:3;fill:#f4dfd1}.average-dot{fill:var(--accent)}.spread-line{stroke:#abb29f;stroke-opacity:.45;stroke-width:1.2}.hover-guide{stroke:#bd70496b;stroke-dasharray:3 4}.chart-tooltip{position:absolute;pointer-events:none;z-index:3;background:#30362e;color:#fafaf4;border-radius:7px;box-shadow:0 4px 20px #0002;padding:12px 14px;width:180px;display:grid;gap:4px}.chart-tooltip strong{font-size:18px;font-weight:500}.chart-tooltip span{font-size:10px;color:#d6dccf}.chart-tooltip small{font-size:9px;color:#adb6a6}#chart-empty{position:absolute;top:60px;left:0;right:0;text-align:center;font-size:13px;color:var(--muted);line-height:2.5;background:#fffefae6;padding:22px}.memories{margin-top:14px;padding-top:20px;border-top:1px solid var(--line)}.lane-heading{display:flex;align-items:center;justify-content:space-between}.lane-heading .eyebrow{margin:0!important;font-size:8px!important}.lane-heading>span:last-child{font-size:9px;color:var(--muted)}.photo-lane{position:relative;height:156px;margin-top:14px}.moment-card{position:absolute;width:104px;height:137px;padding:0;background:none;border:0;text-align:left}.moment-card img{width:100%;height:112px;object-fit:cover;object-position:50% 35%;border-radius:7px;background:#eee;display:block;box-shadow:0 2px 6px #00000008;transition:transform .2s,box-shadow .2s}.moment-card:hover img{transform:translateY(-3px);box-shadow:0 7px 16px #0002}.moment-date{display:block;color:var(--muted);font-size:9px;margin-top:10px;text-align:center;white-space:nowrap}.moment-count{position:absolute;top:7px;right:7px;background:#fffefae8;backdrop-filter:blur(3px);border-radius:4px;padding:3px 5px;font-size:9px;color:var(--ink)}.moment-play{position:absolute;top:45px;left:45px;color:white;text-shadow:0 1px 10px black}.lane-empty{color:#a4a79a;font-size:11px;text-align:center;margin:0;padding:42px 0}.note-lane{position:relative;height:49px;border-top:1px solid #eeeee7}.note-lane .lane-empty{padding:16px 0;font-size:10px}.timeline-note{max-width:205px;position:absolute;top:13px;display:flex;align-items:center;gap:8px;border:0;background:#edf0e6;border-radius:5px;padding:7px 9px;color:#5d6853;font-size:9px}.timeline-note>span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.timeline-note:hover{background:#e1e7d6}.note-pin{display:block;width:5px;height:5px;min-width:5px;border-radius:50%;background:#7a8a68}.timeline-note small{font-size:9px}.navigator{margin-top:18px;border-top:1px solid var(--line);padding-top:17px}.navigator-heading{display:flex;justify-content:space-between;font-size:8px;color:#9b9e94;letter-spacing:1px;margin-bottom:8px}.navigator-heading>span:last-child{letter-spacing:0}#overview-svg{width:100%;height:52px;display:block;touch-action:none;cursor:crosshair}.overview-line{stroke:#a6ad9a;stroke-width:1;fill:none}.overview-shade{fill:#f5f5ed;fill-opacity:.7;pointer-events:none}.overview-window{fill:#b65e3c08;stroke:#b8826580;stroke-width:1;cursor:grab}.overview-handle{fill:#bd896c;cursor:ew-resize}.navigation-controls{display:flex;justify-content:space-between;align-items:center;padding-top:12px;gap:10px}.navigation-controls>div{display:flex;gap:6px}.navigation-controls>div button{border:1px solid var(--line);width:28px;height:25px;background:var(--paper);border-radius:5px;color:var(--muted);font-size:13px}.navigation-controls>div button:hover{color:var(--ink);background:#f0f0e9}.text-button{border:0;background:none;padding:4px 0;color:var(--muted);font-size:10px}.text-button:hover{color:var(--accent)}#custom-range{position:relative;color:var(--muted);font-size:9px}#custom-range summary{cursor:pointer;list-style:none}#range-form{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:var(--paper);border:1px solid var(--line);padding:16px;box-shadow:0 6px 25px #0001;border-radius:8px;width:310px}#range-form label{display:grid;gap:6px;font-size:10px}#range-form input{font:11px inherit;border:1px solid var(--line);padding:5px;border-radius:4px;color:var(--ink);width:130px}#range-form button{font-size:11px;border:0;background:var(--ink);color:var(--paper);padding:6px 12px;border-radius:4px}#range-error{color:#a54a35;margin:0;font-size:10px}.timeline-foot{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:5px 4px}.timeline-foot p{font-size:9px;line-height:1.6;color:#94988a}.timeline-foot button{font-size:9px;white-space:nowrap}footer{border-top:1px solid var(--line);margin:34px 0 0;padding:18px 0 24px;display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted)}footer .local{margin:0;font-size:10px;display:flex}footer .local i{width:5px;height:5px;background:#8d9e7d}footer a{color:var(--muted)}#app-status{font-size:11px;color:var(--green)}#app-status:empty{display:none}.data-intro{display:flex;align-items:center;justify-content:space-between;padding:42px 0 24px}.data-intro h1{font-size:32px}.stats{font-size:10px}.primary{background:var(--ink);border:0;border-radius:6px;color:#fff;padding:10px 15px;font-size:11px;white-space:nowrap}.primary:hover{background:#485043}.toolbar{margin-top:20px}.toolbar label{font-size:10px}.toolbar .search{max-width:none}.toolbar input,.toolbar select{height:35px}.toolbar .export{align-self:end;height:35px;display:flex;align-items:center}.table-wrap{margin-bottom:24px}th{background:#efefe7}.edit-link{display:block;border:1px solid var(--line);border-radius:5px;color:var(--green);background:none;margin-top:16px;padding:6px 10px;font-size:11px}.edit-link:hover{background:#eff0e8}.record-form{padding:24px}.record-form label{display:grid;gap:7px;margin-bottom:17px;font-size:11px;color:var(--muted)}.record-form input,.record-form select,.record-form textarea{width:100%;border:1px solid #d9dccf;border-radius:5px;background:#fffefa;padding:10px;color:var(--ink);font:13px -apple-system,BlinkMacSystemFont,sans-serif}.record-form textarea{resize:vertical;line-height:1.65}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}#edit-json{font:11px ui-monospace,monospace;line-height:1.7}.form-actions{display:flex;justify-content:end;align-items:center;gap:12px;margin-top:24px}.form-error{font-size:12px;color:#a84632;line-height:1.6}.danger{margin-right:auto;color:#a85643;background:none;border:0;font-size:11px}.media-arrow{position:absolute;top:45%;border:1px solid #ffffff55;border-radius:50%;width:36px;height:36px;background:#202820aa;color:white;font-size:17px;z-index:2}.media-arrow.previous{left:20px}.media-arrow.next{right:20px}#photo-details{color:#c1cbb9;margin:0 auto 8px}#photo{padding:16px;border-radius:12px}#photo-caption{font-size:11px}.photo-close{top:24px;right:24px}#detail .dialog-head{border-radius:10px 10px 0 0}.record h3{font-family:Georgia,serif;font-size:23px;font-weight:400}#profile-body{padding-top:12px}
@media(min-width:1500px){main{max-width:1340px}.top{max-width:1448px}.intro{padding-top:60px}}
@media(max-width:700px){.top{height:65px;padding:0 20px;gap:16px;flex-wrap:nowrap}.brand{font-size:15px;gap:7px}.brand svg{width:23px}.view-switch{gap:15px}.view-switch button{font-size:11px}.profile-summary{display:none}main{padding:0 18px}.intro{padding:30px 0 24px;gap:12px;align-items:end}h1{font-size:28px;letter-spacing:-1px}.intro .subtitle{font-size:10px;max-width:180px}.eyebrow{font-size:8px!important;letter-spacing:1.2px}.current-weight{min-width:94px}.current-weight #latest-weight{font-size:36px}.current-weight #weight-unit{font-size:12px}.current-weight #latest-date{font-size:9px}.current-weight .eyebrow{font-size:7px!important}.timeline-card{padding:19px 14px 12px;border-radius:10px}.chart-toolbar{gap:14px;flex-wrap:wrap}.chart-heading{width:100%;justify-content:space-between}.range-switch{width:100%}.range-switch button{flex:1}.chart-subhead{flex-wrap:wrap;gap:10px;margin-top:16px}.legend{font-size:8px;gap:14px}.photo-lane{height:150px}.moment-card{width:96px}.timeline-note{max-width:175px}.timeline-foot{flex-wrap:wrap;gap:0}.timeline-foot p{font-size:8px}.navigator-heading{font-size:7px;letter-spacing:.5px}.navigation-controls{gap:8px}.navigation-controls>div{gap:3px}.navigation-controls>div button{width:24px}.navigation-controls .text-button{font-size:8px}footer{font-size:9px;margin-top:24px}.local{font-size:9px!important}#range-form{left:0;transform:translateX(-55%);width:290px}.data-intro h1{font-size:27px}.data-intro .subtitle{max-width:200px}.data-intro{gap:15px}.toolbar{flex-wrap:wrap}.toolbar .export{margin-left:auto}.form-pair{gap:10px}.record-form{padding:20px}.table-wrap{min-width:860px}.record h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#overview-svg{overflow:visible}.overview-hit{cursor:grab}.moment-date{white-space:normal;line-height:1.3}

:root{--muted:#72776d}.axis-label{fill:#707668}.timeline-foot p{color:#73796c}

.trend-gap{stroke-dasharray:5 6;stroke-opacity:.48;stroke-width:2}.overview-gap{stroke-dasharray:3 4;stroke-opacity:.65}

/* One shared date rail ties photos and notes to the weight plot. */
.memories{position:relative;margin-top:0;padding-top:0;border-top:0}
.photo-lane,.note-lane{position:absolute;inset:0;height:auto;margin:0;border:0;pointer-events:none;z-index:2}
#memory-connectors{position:absolute;inset:0;width:100%;overflow:visible;pointer-events:none;z-index:1}
.memory-connector{fill:none;stroke:#bac2b1;stroke-width:.9;pointer-events:none}
.memory-connector.is-active{stroke:#81916f;stroke-width:1.2}
.date-marker{pointer-events:all;cursor:pointer;outline:none}
.date-hit{fill:transparent;stroke:none}
.date-dot{fill:var(--paper);stroke:#8e9d7e;stroke-width:1.2;pointer-events:none}
.date-marker.is-active .date-dot,.date-marker:focus-visible .date-dot{fill:#8e9d7e;stroke:var(--paper);stroke-width:1.5;r:4}
.moment-card{width:var(--photo-width);height:var(--photo-height);pointer-events:auto}
.moment-card img,.video-placeholder{height:var(--photo-height)}
.video-placeholder{display:grid;place-items:center;border-radius:7px;background:#dfe3d7;color:#737f68;font-size:20px}
.moment-play{top:50%;left:50%;transform:translate(-50%,-50%)}
.timeline-note{pointer-events:auto;white-space:nowrap;min-width:0;box-shadow:0 0 0 3px var(--paper)}
.timeline-note .note-pin,.timeline-note small{flex-shrink:0}
.moment-tooltip{width:220px;z-index:5}
.moment-tooltip strong{font-size:12px;line-height:1.5}
.moment-tooltip span{font-size:10px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.axis-label{paint-order:stroke;stroke:var(--paper);stroke-width:4px;stroke-linejoin:round}
.range-switch{display:grid;grid-template-columns:repeat(9,minmax(32px,1fr))}
.range-switch button{min-width:0}
@media(max-width:700px){.range-switch{grid-template-columns:repeat(9,minmax(0,1fr))}.range-switch button{font-size:9px;padding:0 3px}}

/* The main view opens with the latest measurement and one quiet sync action. */
.weight-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 4px 24px}
.weight-summary .current-weight{min-width:0;text-align:left}.weight-summary .current-weight>div{justify-content:start}.weight-summary .eyebrow{margin-bottom:7px!important}.weight-summary #latest-date{margin:6px 0 0;color:var(--muted)}
.withings-actions{display:flex;align-items:center;gap:14px}.refresh-button{display:grid;place-items:center;width:36px;height:36px;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--muted);padding:8px}.refresh-button:hover{color:var(--accent);background:var(--paper)}.refresh-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.refresh-button[aria-busy=true] svg{animation:refresh-spin 1.3s linear infinite}@keyframes refresh-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.refresh-button[aria-busy=true] svg{animation:none}}
#sync-hint{font-size:11px;line-height:1.5;color:#a54a35;margin:0 4px 16px}#sync-hint:empty{display:none}.timeline-foot{justify-content:flex-end}.timeline-foot:has(>.hidden){display:none}#visual-view{padding-bottom:28px}
@media(max-width:700px){.weight-summary{padding:22px 2px 20px}}


/* Timeline notes keep their reading preview alongside a compact edit control. */
.timeline-note,.note-marker{cursor:default}
.timeline-note:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.moment-tooltip{pointer-events:auto;overflow-y:auto;overscroll-behavior:contain}
.moment-tooltip .memory-date{color:#bac5ae;letter-spacing:.15px}
.note-tooltip{gap:10px;padding:16px 18px}
.hover-note+ .hover-note{border-top:1px solid #ffffff24;padding-top:12px;margin-top:2px}
.hover-note strong{display:block;font-size:13px;line-height:1.5;color:#fafaf4}
.hover-note .memory-date{display:block;margin-bottom:5px}
.note-body{margin:7px 0 0;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:#e2e6db}

/* Everyday entries live beside the timeline; detailed fields stay secondary. */
/* Reserve a shared action rail so add buttons never overlap dated content. */
.timeline-card{--action-rail:56px}.weight-chart,.memories{margin-right:var(--action-rail)}
.track-add{position:absolute;right:0;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e0e5d8;border-radius:50%;background:#f4f6ee;color:#738565;font-size:27px;font-weight:300;line-height:1;z-index:3}.track-add:hover{background:#e7eddf;border-color:#c9d4bc;color:#3c5848}.track-add:focus-visible{outline-offset:3px}
.weight-chart>.track-add,.memories>.track-add{right:calc(-1 * var(--action-rail))}.weight-chart>.track-add{top:calc(50% - 22px)}#add-note{top:22px}#add-photo{top:116px}#add-alcohol{top:36px}
.note-lane .lane-empty,.photo-lane .lane-empty{position:absolute;left:0;right:0;line-height:20px;padding:0;margin:0;font-size:10px;color:#959d8b}.note-lane .lane-empty{top:34px}.photo-lane .lane-empty{top:128px}

.timeline-note{padding:5px 6px 5px 9px}.timeline-note>span:nth-child(2){flex:1}.note-edit{display:grid;place-items:center;flex-shrink:0;width:23px;height:23px;border:0;border-radius:4px;background:transparent;color:#78856c;padding:4px}.note-edit svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.note-edit:hover,.note-edit:focus-visible{background:#d3ddc6;color:#34432c}.timeline-note:focus-within{background:#e1e7d6}
.alcohol-track{position:relative;margin:18px 0 0}.track-heading{display:flex;justify-content:space-between;align-items:center;color:#78816f;font-size:10px}.track-heading small{font-size:9px;color:#93998b;margin-left:6px}.alcohol-track svg{width:calc(100% - var(--action-rail));display:block;overflow:visible}.alcohol-baseline{stroke:#e6eadf;stroke-width:1}.alcohol-bar{fill:#899b74}.alcohol-zero{fill:var(--paper);stroke:#899b74;stroke-width:1.5}.alcohol-value{fill:#78876a;font:10px -apple-system,BlinkMacSystemFont,sans-serif;pointer-events:none}.alcohol-point{cursor:pointer;outline:none}.alcohol-point:hover .alcohol-bar,.alcohol-point:focus-visible .alcohol-bar{fill:#506a3b}.alcohol-point:focus-visible .alcohol-zero{stroke:#506a3b;stroke-width:3}.alcohol-point:focus-visible .alcohol-value{fill:#34432c;text-decoration:underline}.alcohol-guide{stroke:#8e9d7e;stroke-width:1;stroke-dasharray:3 4;stroke-opacity:.6;pointer-events:none}#alcohol-empty{position:absolute;top:40px;left:0;right:var(--action-rail);text-align:center;margin:0;font-size:10px;color:#979e8e;pointer-events:none}
#editor.quick-editor{width:min(430px,calc(100vw - 28px));border-radius:14px}.quick-editor .dialog-head{padding:20px 22px 14px;border-bottom:0}.quick-editor .dialog-head h2{font-size:21px;font-family:Georgia,serif;font-weight:400}.quick-editor .record-form{padding:6px 22px 22px}.quick-editor .form-pair{grid-template-columns:1fr}.quick-editor .record-form label{font-size:11px;margin-bottom:16px}.quick-editor .record-form input,.quick-editor .record-form textarea{background:#fffefa;border-radius:7px;padding:11px 12px}.quick-editor #edit-text{min-height:120px}.quick-editor .form-actions{margin-top:18px}.anchored-editor{position:fixed;margin:0}.date-shortcuts{display:flex;gap:10px}.date-shortcuts button{background:none;border:0;color:#7f8d6d;font-size:10px;padding:2px 0}.date-shortcuts button:hover{color:var(--accent)}.existing-entry{padding:12px;background:#f1f1e8;border-radius:6px;font-size:11px;margin:0 0 18px;line-height:1.7}.existing-entry button{display:block;border:0;background:none;padding:3px 0;color:var(--green);font-size:11px}.alcohol-entry-list{padding:14px 0}.alcohol-entry-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;border:0;border-bottom:1px solid var(--line);background:none;padding:16px 0;font-size:12px;color:var(--ink)}.alcohol-entry-row strong{font-weight:500;flex:1}.alcohol-entry-row:hover{color:var(--accent)}#photo-edit{color:#c1cbb9;margin:0 auto 8px}
@media(max-width:700px){.chart-heading{gap:10px}.chart-heading #period-change{margin-right:auto;padding-left:10px}.note-edit{width:25px;height:25px}.quick-editor .dialog-head{padding:18px 18px 12px}.quick-editor .record-form{padding:6px 18px 18px}.track-heading small{font-size:8px}}

/* Independent lanes share one calendar axis; card connectors stay below their own cards. */
.weight-chart{min-height:0}.timeline-lane{position:relative;border-top:1px solid var(--line);margin-top:12px;padding-top:14px}.timeline-lane .track-heading{font-size:10px;letter-spacing:.15px;margin-bottom:8px}.memory-lane{position:relative;margin-right:var(--action-rail);height:auto;inset:auto;border:0;pointer-events:auto;z-index:auto}.memory-lane>svg{position:absolute;inset:0;width:100%;overflow:visible;pointer-events:none}.memory-cards{position:absolute;inset:0;pointer-events:none}.memory-cards>.timeline-note,.memory-cards>.moment-card{pointer-events:auto}.memory-cards .lane-empty{position:absolute;left:0;right:0;top:10px!important;padding:0;margin:0;line-height:20px;font-size:10px;text-align:center;color:#959d8b}.photos-track .lane-empty{top:66px!important}.notes-track,.alcohol-track{padding-top:10px}.notes-track .track-heading,.alcohol-track .track-heading{margin-bottom:4px}
#add-note{top:26px}#add-photo{top:88px}#add-alcohol{top:24px}.alcohol-track{margin-top:12px}#alcohol-empty{top:41px}.shared-date-axis{margin:8px var(--action-rail) 0 0}.shared-date-axis svg{display:block;width:100%;overflow:visible}.time-gridline{stroke:#e8ebe2;stroke-width:.8;stroke-opacity:.7;stroke-dasharray:2 5;pointer-events:none}.lane-baseline{stroke:#edf0e8;stroke-width:1;pointer-events:none}.date-axis-line{stroke:#cfd6c5;stroke-width:1}.linked-date-guide{stroke:#87997a;stroke-opacity:.6;stroke-width:1;stroke-dasharray:3 4;pointer-events:none}.memory-connector{stroke:#aebba3;stroke-width:1;fill:none}.photos-track .memory-connector{stroke:#a1b5bc}.photos-track .date-dot{stroke:#829ea8}.photos-track .is-active{stroke:#597e8b}.date-dot{fill:var(--paper)}

/* One continuous calendar grid sits behind every lane and its separators. */
.timeline-body{position:relative}#calendar-grid{position:absolute;top:0;left:0;width:calc(100% - var(--action-rail));pointer-events:none;overflow:visible}.calendar-line{stroke:#dce2d4;stroke-width:.75;stroke-opacity:.5}.calendar-line.major{stroke:#c8d2be;stroke-opacity:.65;stroke-width:1}.timeline-body>.weight-chart,.timeline-body>.timeline-lane,.timeline-body>.shared-date-axis{position:relative}.shared-date-axis{margin-top:12px;margin-bottom:4px}.timeline-lane .track-heading{width:max-content;background:var(--paper);padding-right:10px}.lane-baseline,.alcohol-baseline{stroke-opacity:.5}

/* A daily cover opens into an accessible tray; every original stays in its day. */
.photo-stack{position:absolute;width:var(--photo-width);height:var(--photo-height);pointer-events:auto}
.stack-cover{inset:0;z-index:1}
.has-stack::before,.has-stack::after{content:'';position:absolute;inset:0;border:1px solid #ced6c5;border-radius:8px;background:#eef1e7;transform:translate(4px,-4px) rotate(2deg);pointer-events:none}
.has-stack::before{transform:translate(7px,-7px) rotate(4deg);background:#f6f7f0}
.photo-stack.is-open{z-index:8}
.photo-stack.is-open>.stack-cover,.photo-stack.is-open::before,.photo-stack.is-open::after{opacity:0;pointer-events:none}
.photo-stack-panel{position:absolute;top:-12px;padding:12px;border:1px solid #dfe3d8;border-radius:12px;background:var(--paper);box-shadow:0 10px 36px #26322229;z-index:2;max-height:min(390px,65vh);overflow-y:auto;overscroll-behavior:contain;animation:unfold-stack .16s ease-out;transform-origin:50% 45%}
.stack-date{font-size:10px;color:#78816f;margin:0 0 9px}
.grouped-days-panel{padding:0;overflow:hidden}
.grouped-day-covers{display:flex;gap:18px;padding:20px 16px 14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding:16px}
.day-cover{flex:0 0 var(--photo-width);scroll-snap-align:start}
.day-cover-image{position:relative;display:block;height:var(--photo-height)}
.day-cover-image>img,.day-cover-image>.video-placeholder{position:relative;z-index:1}
.day-cover-image>.moment-count,.day-cover-image>.moment-play{z-index:2}
.day-cover .stack-view{margin-top:10px;white-space:nowrap}
.stack-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:10px}
.stack-item{position:relative;min-width:0;border:0;padding:0;background:none;text-align:center;color:var(--muted);border-radius:7px}
.stack-item img,.stack-item .video-placeholder{width:100%;height:136px;object-fit:cover;object-position:50% 35%;border-radius:7px;display:block}
.stack-item:hover img{box-shadow:0 3px 12px #26322229}
.stack-view{display:block;margin-top:6px;font-size:10px}
.stack-item .moment-play{top:60px}
.photo-close{z-index:4}
.media-arrow{width:42px;height:42px;backdrop-filter:blur(4px)}
@keyframes unfold-stack{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.photo-stack-panel{animation:none}}

/* Every track owns its label and optional y-axis; outer rules match lane dividers. */
.timeline-body{margin-top:16px}.weight-track{margin-top:0;padding-top:10px}.weight-track .weight-chart{margin-top:0}.weight-track .track-heading{margin-bottom:4px}
.shared-date-axis{margin-right:0;border-top:1px solid var(--line)}.shared-date-axis svg{width:calc(100% - var(--action-rail))}

/* Numeric tracks share the plotting width and calendar, with their own y-axis. */
.waist-chart{position:relative;margin-right:var(--action-rail)}
#waist-svg{width:100%;display:block;overflow:visible}
.waist-chart>.track-add{right:calc(-1 * var(--action-rail));top:calc(50% - 22px)}
.waist-track{--accent:#5a817a}
.waist-track .trend-fill{fill:#5a817a0a}
.waist-track .weight-dot:hover,.waist-track .weight-dot:focus{fill:#e4eeea}

.metric-empty{position:absolute;left:0;right:0;top:55px;text-align:center;font-size:12px;color:var(--muted);background:#fffefae6;padding:14px}
.measurement-guide{font-size:12px;line-height:1.65;color:var(--muted);background:#eeefe8;border-radius:8px;padding:12px 14px;margin:0 0 18px}
.measurement-guide h3{color:var(--ink);font-size:12px;font-weight:500;margin:0}
.measurement-guide ol{padding-left:18px;margin:10px 0}
.measurement-guide li+li{margin-top:8px}
.measurement-guide p{margin:8px 0 0}
.quick-editor .measurement-values{grid-template-columns:1fr 90px}
th:nth-child(1){width:11%}th:nth-child(2){width:8%}th:nth-child(3){width:8%}th:nth-child(4){width:6%}th:nth-child(5){width:7%}th:nth-child(6){width:17%}th:nth-child(7){width:10%}th:nth-child(8){width:14%}th:nth-child(9){width:19%}

.inspection-point{fill:var(--paper);stroke:var(--accent);stroke-width:2.5;pointer-events:none}
.chart-tooltip.measurement-tooltip{pointer-events:auto;max-width:calc(100vw - 32px);overflow:auto;overscroll-behavior:contain}
.measurement-tooltip .measurement-note{font-size:11px;line-height:1.6;white-space:pre-wrap;margin:6px 0 0;color:#e2e6db}
#chart-svg:focus-visible,#waist-svg:focus-visible{outline:1px solid var(--line);outline-offset:3px}

.settings-button{border:0;background:none;color:var(--green);font-size:21px;min-width:36px;min-height:36px}.settings-content{padding:12px 24px 24px}.settings-content p{font-size:13px;line-height:1.6;color:var(--muted)}.settings-content h3{font-size:15px}#settings{max-width:460px}.sign-in-panel{max-width:380px;margin:18vh auto;text-align:center}.sign-in-panel h1{margin-bottom:30px}.sign-in-panel a{display:inline-block}#sign-out{display:block;margin-top:22px;font-size:13px}#sign-out[hidden]{display:none}
