.progress-photos-entry{margin:18px 0}.progress-photos-entry p{font-size:13px;line-height:1.5;color:var(--muted)}.progress-photos-entry .nutrition-premium-tag{color:#6544c5;white-space:nowrap}html[data-theme=dark] .progress-photos-entry .nutrition-premium-tag{color:#d0b8ff}
.progress-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-inline-size:0;inline-size:min(100%,360px);margin:12px 0}.progress-date-range label{display:grid;gap:6px;min-inline-size:0;margin:0}.progress-date-range input[type=date]{inline-size:100%;min-inline-size:0;min-width:0;max-inline-size:100%;box-sizing:border-box;appearance:none;-webkit-appearance:none;margin:0}.progress-date-range input::-webkit-date-and-time-value{text-align:start;min-inline-size:0}
.photos-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--bg);color:var(--ink)}.photos-dialog::backdrop{background:#151020bb}.photos-dialog h2{margin:0 30px 12px 0;font-size:22px}.photos-dialog p{line-height:1.5}.photos-dialog [hidden]{display:none!important}.photos-add-actions,.photos-view-tabs,.photo-record-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.photos-view-tabs button[aria-pressed=true]{color:var(--blue);border-color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,transparent)}
.photos-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.photos-compare>section,.photos-compare label{min-inline-size:0}.photos-compare label{display:grid;gap:6px}.photos-compare select{inline-size:100%;min-inline-size:0;margin:0;box-sizing:border-box}.photos-pane{padding-top:10px}.photos-pane .photo-weight-note{font-size:12px;min-height:2.5em}.photo-comparison-image{display:block;inline-size:100%;aspect-ratio:3/4;object-fit:contain;background:#ebe6f2;border-radius:12px}.photo-empty{display:grid;place-items:center;text-align:center;min-block-size:200px;padding:12px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:13px}.photos-pane small{display:block;margin-top:6px;color:var(--muted);font-size:11px}.photo-record-actions{gap:8px}.photo-record-actions button{font-size:11px;padding:4px 0;white-space:normal}
.photo-camera-dialog{width:min(480px,calc(100vw - 20px))}.photo-camera-dialog>p{font-size:12px;margin:8px 0}.photo-stage{position:relative;aspect-ratio:3/4;width:min(100%,36.75dvh);margin:12px auto;border-radius:16px;overflow:hidden;background:#151020;isolation:isolate}.photo-stage video,.photo-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.photo-mirrored{transform:scaleX(-1)}.photo-outline{position:absolute;inset:4%;pointer-events:none}.photo-outline svg{width:100%;height:100%;fill:#b9ddff18;stroke:#dcefff;stroke-width:1.7;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #151020)}.photo-outline .photo-guide-line{fill:none;stroke:#dcefff88;stroke-width:.8;stroke-dasharray:4 5}.photo-countdown{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:64px;font-weight:700;text-shadow:0 2px 12px #000;pointer-events:none}.photo-countdown:empty{display:none}
.photo-camera-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.photo-camera-controls button{margin:0;padding:9px 12px;font-size:12px;white-space:normal}.photo-camera-controls>label:not(.photo-file-button){display:flex;gap:8px;align-items:center;margin:0}.photo-camera-controls select{min-width:0;width:auto;margin:0}.photo-file-button{display:block;width:100%;font-size:12px;margin:6px 0}.photo-file-button input{display:block;max-width:100%;box-sizing:border-box;margin-top:7px;padding:0;min-height:0;font-size:12px}.photo-consent{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:start;font-size:12px;margin:16px 0;line-height:1.5;color:inherit}.photo-consent input[type=checkbox]{width:20px;min-width:20px;height:20px;min-height:20px;margin:0;padding:0;accent-color:var(--blue)}#progress-photo-save{width:100%;margin:0}#photo-camera-status,#photos-status{color:var(--blue);font-size:13px}
html[data-theme=dark] .photos-dialog{background:#1b1926;color:#f1edf8}html[data-theme=dark] .photos-dialog .photo-consent{color:#e5d9f4}html[data-theme=dark] .photo-comparison-image{background:#252131}html[data-theme=dark] .photos-view-tabs button[aria-pressed=true]{background:#332844;color:#d0b8ff}
@media(max-width:480px){.photos-dialog{padding:16px}.photos-dialog h2{font-size:19px}.photos-compare{gap:10px}.photos-compare select{font-size:16px!important;padding:9px 6px}.photo-record-actions{display:grid;gap:3px}.photo-record-actions button{text-align:start}.photo-camera-controls{gap:8px}.progress-date-range{gap:12px;inline-size:100%}.photo-empty{min-block-size:150px}.photos-pane .photo-weight-note{min-height:3em}.photo-stage{width:min(100%,33dvh)}}

.photo-stage>img{object-fit:contain}

.card-heading:has(.progress-date-range){flex-wrap:wrap;gap:10px;align-items:end}.card-heading .progress-date-range{flex:1 1 260px;max-inline-size:100%}.photo-record-actions button{min-height:36px;padding:8px 0}
/* Current month first; comparisons are a separate, optional section. */
.photos-month-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0 20px}.photos-month-grid>section{min-inline-size:0}.photos-slot-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;min-height:44px}.photos-slot-heading h4{margin:0;font-size:15px}.photos-slot-heading button{font-size:12px;padding:6px 0;margin:0;white-space:normal;text-align:start;color:var(--blue)}.photo-source-dialog{max-width:420px}.photo-source-dialog>button{display:block;width:100%;margin-top:10px;white-space:normal}#photos-comparison{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}
/* Native-style camera surface; explanations and consent return after capture. */
html #photo-camera-dialog.is-shooting{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#08080b;color:white;box-shadow:none}
#photo-camera-dialog.is-shooting>h2,#photo-camera-dialog.is-shooting>p,#photo-camera-dialog.is-shooting>.photo-consent,#photo-camera-dialog.is-shooting>#progress-photo-save,#photo-camera-dialog.is-shooting .photo-file-button,#photo-camera-dialog.is-shooting #photo-camera-start,#photo-camera-dialog.is-shooting #photo-retake{display:none!important}
#photo-camera-dialog.is-shooting .photo-stage{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(100vw,calc((100dvh - 160px)*.75));height:auto;max-height:none;aspect-ratio:3/4;margin:0;border-radius:0}
#photo-camera-dialog.is-shooting #photo-camera-close{position:absolute;top:max(14px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:auto;z-index:3;margin:0;padding:0;width:44px;height:44px;border:1px solid #ffffff55;border-radius:50%;background:#15151b99;color:white;font-size:28px;line-height:1}
#photo-camera-dialog.is-shooting .photo-camera-controls{display:contents}
#photo-camera-dialog.is-shooting #photo-camera-switch{position:absolute;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:3;max-width:40vw;min-height:44px;border:1px solid #ffffff55;border-radius:24px;background:#15151b99;color:white;font-size:12px;padding:8px 12px}
#photo-camera-dialog.is-shooting .photo-camera-controls>label:not(.photo-file-button){position:absolute;top:max(14px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:3;display:block;color:white;font-size:12px}
#photo-camera-dialog.is-shooting .photo-camera-controls>label:not(.photo-file-button)>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#photo-camera-dialog.is-shooting #photo-timer{width:64px;min-height:44px;border:1px solid #ffffff55;border-radius:24px;background:#15151b99;color:white;padding:8px;font-size:16px!important}
#photo-camera-dialog.is-shooting #photo-timer option{background:#15151b;color:white}
#photo-camera-dialog.is-shooting #photo-take{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:3;width:70px;height:70px;padding:0;border:4px solid #ffffff;border-radius:50%;background:#ffffff;box-shadow:inset 0 0 0 4px #15151b;color:transparent;font-size:0}
#photo-camera-dialog.is-shooting #photo-take:disabled{opacity:.45}
#photo-camera-dialog.is-shooting .photo-outline{inset:2% 4%}.photo-outline svg{stroke-linecap:round}
@media(max-width:480px){.photos-month-grid{gap:12px}.photos-slot-heading{display:block}.photos-slot-heading button{display:block;min-height:36px}.photos-slot-heading h4{font-size:14px}}

.photos-slot-heading{display:grid;justify-content:start;gap:2px}.photos-slot-heading button{display:block;min-height:36px}.photo-outline .photo-pose-detail{fill:none;stroke-width:1.25}#photo-file[hidden]{display:none!important}
.chart-current .weight-point-date,.chart-current .weight-point-change{display:block;font-size:12px;font-weight:400;color:var(--muted);line-height:1.5}.chart-current .weight-point-change{color:var(--blue);margin-top:3px}.weight-chart-point{cursor:pointer;outline:none}.weight-chart-point:focus .weight-point-dot{stroke:var(--ink);stroke-width:3}.weight-point-guide{stroke:var(--blue);opacity:.35;stroke-dasharray:4 4}
/* Android time sheet: two scroll-snapped wheels, with no keyboard. */
.reminder-time-picker{box-sizing:border-box;width:min(360px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--bg);color:var(--ink);overflow:auto}.reminder-time-picker::backdrop{background:#151020bb}.reminder-time-picker h2{font-size:20px;margin:0 0 16px}.reminder-time-wheels{display:grid;grid-template-columns:1fr 1fr;gap:24px;position:relative;max-width:240px;margin:0 auto 20px}.reminder-time-wheels:before{content:'';position:absolute;top:88px;left:0;right:0;height:44px;background:color-mix(in srgb,var(--blue) 13%,transparent);border-block:1px solid var(--blue);border-radius:10px;pointer-events:none}.reminder-time-wheels:after{content:':';position:absolute;left:50%;top:98px;transform:translateX(-50%);font-weight:700;pointer-events:none}.reminder-time-wheel{height:220px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;padding-block:88px;scrollbar-width:none;touch-action:pan-y}.reminder-time-wheel::-webkit-scrollbar{display:none}.reminder-time-wheel button{display:block;box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;scroll-snap-align:center;background:transparent;color:var(--muted);font-size:22px;font-variant-numeric:tabular-nums;line-height:44px;box-shadow:none;touch-action:pan-y}.reminder-time-wheel button[aria-selected=true]{color:var(--blue);font-weight:750}.reminder-time-actions{display:flex;gap:12px}.reminder-time-actions button{flex:1;margin:0}html[data-theme=dark] .reminder-time-picker{background:#1b1926;color:#f1edf8}

#progress-photo-crop{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}#progress-photo-crop:active{cursor:grabbing}#progress-photo-crop-controls{font-size:12px;line-height:1.5}

/* The guide stays over the crop preview and is never included in the saved canvas. */
#photo-camera-dialog .photo-outline{z-index:2;pointer-events:none;inset:0}#photo-camera-dialog .photo-outline svg{filter:drop-shadow(0 1px 2px #000) drop-shadow(0 0 1px #000);stroke:#e9f5ff;fill:#b9ddff12}

#progress-photo-crop{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#progress-photo-crop:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* Compact, distinct front/side cards; archive and comparisons keep their layout. */
#photos-dialog .photos-purpose{font-size:13px;line-height:1.5;margin:0 0 8px}#photos-dialog .photos-today{font-size:15px;margin:14px 0 10px;color:var(--ink)}#photos-dialog .photos-month-grid{gap:12px;margin:10px 0 16px}#photos-dialog .photos-month-grid>section{padding:12px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--blue) 4%,transparent)}#photos-dialog .photos-slot-heading{min-height:0;gap:3px}#photos-dialog .photos-slot-heading button{font-size:12px;min-height:40px}#photos-dialog .photos-month-grid .photos-pane{padding-top:4px}#photos-dialog .photos-month-grid .photo-empty{min-block-size:64px;padding:8px;font-size:12px}#photos-dialog .photos-month-grid .photo-weight-note{min-height:0;margin:4px 0 8px;font-size:11px}#photos-dialog .photos-month-grid .photo-comparison-image{max-height:200px}html[data-theme=dark] #photos-dialog .photos-today{color:#f1edf8}@media(max-width:480px){#photos-dialog .photos-month-grid>section{padding:9px}#photos-dialog .photos-month-grid{gap:10px}}
