/* v1.8: mobile-first journals, personal observations, and honest progress charts. */
.personal-observation{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:14px 0;min-width:0}
.personal-observation>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.personal-observation>div{display:flex;gap:8px;flex-wrap:wrap}
.personal-observation .btn{min-height:42px;padding:6px 8px}
.observation-check{width:40px;height:40px;flex-shrink:0;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--tx3);font:22px inherit;cursor:pointer}
.observation-check.on{border-color:var(--acc);color:var(--acc);background:#E9FF3215}
.personal-observations .ch{align-items:center;gap:12px}
#jImgs{grid-template-columns:repeat(auto-fill,minmax(125px,170px));gap:12px;padding:0 20px 20px}
.journal-shot-tile{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg2)}
#jImgs .journal-shot img{height:115px;object-fit:contain;background:#090d12}
.journal-photo-remove{width:100%;min-height:42px;font-size:12px;padding:9px}
.coach-custom-height{grid-column:1/-1}
.coach-custom-height[hidden]{display:none!important}
.coach-daily-overview{display:grid;gap:22px;margin-bottom:26px}
.coach-focus{padding:24px!important;margin:0!important;min-width:0}
.coach-focus-title{display:flex;align-items:center;gap:14px;margin-bottom:25px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.coach-focus-title>span{font:500 12px var(--font,system-ui);color:var(--acc);border:1px solid #E9FF3240;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}
.coach-focus-title>div{display:flex;align-items:center;gap:9px;min-width:0}
.coach-focus-title h3{font-size:21px;margin:0;letter-spacing:-.03em;overflow-wrap:normal}
.coach-focus-title svg{width:21px;height:21px;color:var(--acc);flex-shrink:0}
.coach-focus-title>small{margin-left:auto;color:var(--tx3);font-size:11px}
.coach-focus-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:30px}
.coach-today,.coach-progress{min-width:0}
.coach-today>h4{font-size:22px;margin:12px 0 7px}
.coach-today .btn{margin-top:10px;max-width:100%;white-space:normal;text-align:center}
.coach-today-description{font-size:14px;line-height:1.85;color:var(--tx2)}
.coach-today-exercises{list-style:none;padding:0;margin:17px 0}
.coach-today-exercises li{display:flex;gap:10px;justify-content:space-between;border-bottom:1px solid var(--line);padding:11px 0;font-size:12px;line-height:1.5}
.coach-today-exercises li span{max-width:60%}
.coach-today-exercises li b{font-size:11px;font-weight:500;color:var(--tx3);text-align:right}
.coach-today-status{padding:9px 12px;border-radius:8px;background:#E9FF320b;color:var(--acc);font-size:11px;margin:20px 0 5px}
.coach-today .coach-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.coach-today .coach-metrics div{min-width:0;padding:13px}
.coach-today .coach-metrics strong{font-size:25px;overflow-wrap:anywhere}
.coach-today .coach-metrics strong small{display:inline;margin-left:5px;font-size:11px}
.coach-today .coach-metrics span{font-size:11px;color:var(--tx2)}
.coach-today .coach-metrics small{font-size:10px}
.coach-progress{padding-left:25px;border-left:1px solid var(--line)}
.coach-progress-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.coach-progress-head p{margin:6px 0;font-size:11px;color:var(--tx3)}
.coach-progress-head .chart-toggle{display:flex;max-width:100%;flex-wrap:wrap}
.coach-progress-head .chart-toggle button{min-height:40px;padding:9px 10px;font-size:11px;white-space:nowrap}
.coach-progress .f>span{font-size:11px}
.coach-progress .inp{width:100%;min-width:0}
.progress-metric{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.progress-metric .btn{min-height:40px}
.progress-summary{margin:18px 0 2px}
.progress-summary>strong{display:block;font-size:29px;font-weight:600;color:var(--tx);font-variant-numeric:tabular-nums}
.progress-summary strong small{font-size:13px;color:var(--tx3);font-weight:400}
.progress-summary>span{display:block;font-size:11px;color:var(--tx3);margin:5px 0;line-height:1.7}
.progress-chart{min-width:0;width:100%;margin:12px 0}
.progress-chart svg{display:block;width:100%;height:auto;overflow:visible}
.progress-chart text{font:14px system-ui;fill:var(--tx3)}
.progress-grid{stroke:var(--line);stroke-width:1}
.progress-line{fill:none;stroke:var(--acc,#E9FF32);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.progress-dot{fill:var(--acc,#E9FF32);stroke:var(--bg2);stroke-width:1.5}
.progress-target{fill:none;stroke:#9eacbf;stroke-width:2;stroke-dasharray:6 5}
.progress-legend{display:flex;flex-wrap:wrap;gap:16px;color:var(--tx3);font-size:10px}
.progress-legend>span{display:flex;align-items:center;gap:7px}
.progress-legend i{width:18px;height:2px;background:var(--acc)}
.progress-legend i.target{background:none;border-top:2px dashed #9eacbf}
.progress-empty{padding:34px 16px;margin:18px 0;background:#ffffff02;border:1px dashed var(--line);border-radius:12px;text-align:center;line-height:1.7}
.progress-empty svg{width:26px;height:26px;color:var(--acc);margin-bottom:13px}
.progress-empty strong{display:block;font-size:14px;font-weight:500}
.progress-empty p{font-size:12px;color:var(--tx3);margin:7px 0 0}
.coach-plan-details{border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:24px}
.coach-plan-details>summary{font-size:14px;color:var(--tx2);cursor:pointer;line-height:1.6}
.coach-plan-details[open]>.coach-layout{margin-top:22px}
.life-journal-columns{align-items:start;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr)}
.life-journal-editor{min-width:0}
.life-journal-editor>.ch{gap:10px;flex-wrap:wrap}
.life-journal-areas{display:grid;gap:14px;margin-top:22px}
.life-journal-area{min-width:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#ffffff02}
.life-journal-area-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.life-journal-area-heading>svg{width:20px;height:20px;color:var(--acc)}
.life-journal-area-heading h4{font-size:15px;line-height:1.4;margin:0;flex:1}
.life-journal-area-heading .pill{font-size:9px}
.life-journal-records{font-size:11px;line-height:1.8;color:var(--tx2);margin:14px 0;overflow-wrap:anywhere}
.life-journal-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;color:var(--tx2)}
.life-journal-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:13px}
.life-journal-actions .btn{min-height:42px}
.life-journal-photo{width:110px;height:110px;padding:0;background:#090d12;border:1px solid var(--line);border-radius:10px;overflow:hidden;cursor:zoom-in;display:block;margin:14px 0}
.life-journal-photo img{width:100%;height:100%;object-fit:contain}
.life-progress-heading{margin:25px 0 5px}
.life-progress-heading h3{font-size:24px;margin:8px 0 22px;letter-spacing:-.03em}
.life-photo-picker{position:relative;display:inline-flex;margin-top:15px;cursor:pointer;min-height:44px}
.life-photo-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.life-photo-picker:focus-within{outline:2px solid var(--acc);outline-offset:3px}
#ljPhotoPreview{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.life-photo-draft{width:130px;height:130px;border:1px solid var(--line);border-radius:10px;object-fit:contain}
.running-workspace .run-controls .btn.pri{background:#E9FF32!important;border-color:#E9FF32!important;color:#11140A!important;box-shadow:0 5px 22px #E9FF3220}
.running-workspace .run-controls .btn.pri:hover{background:#E9FF32!important}
.running-week-chart{margin:24px 0 14px}
.nut-ring>div{padding:12px;box-sizing:border-box;min-width:0}
.nut-ring strong{max-width:100%;font-size:clamp(22px,4.5vw,30px);letter-spacing:-.6px;line-height:1.15}
.nut-ring span{display:block;font-size:10px;line-height:1.4;text-align:center;max-width:84px;margin:5px auto 0;white-space:normal;overflow-wrap:normal}
.nut-energy-detail{min-width:0;flex:1}
.nut-energy-detail .btn{white-space:normal;text-align:left;min-height:42px;line-height:1.4}
.nut-food-submit{position:sticky;bottom:0;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:var(--bg2,#13171c);z-index:2;border-top:1px solid var(--line)}
.nut-result-add{display:block!important;margin-top:8px;font-size:12px!important;color:var(--acc)!important}
.coach-focus .helper,.life-journal-editor .helper{line-height:1.75}
@media(max-width:1050px){.coach-focus-grid{grid-template-columns:1fr;gap:24px}.coach-progress{padding:24px 0 0;border-left:0;border-top:1px solid var(--line)}.coach-today .coach-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.life-journal-columns{grid-template-columns:1fr}.life-journal-editor{order:-1}.coach-focus{padding:18px!important}.coach-focus-title>small{width:100%;margin-left:48px;margin-top:-9px}.coach-focus-title{flex-wrap:wrap}.coach-today .coach-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.coach-progress-head .chart-toggle{margin-left:0}.life-journal-area{padding:15px}.coach-hero{padding:20px}.coach-plan-details{padding:16px}.personal-observation{gap:8px;flex-wrap:wrap}.personal-observation>span{flex-basis:calc(100% - 48px)}.personal-observation>div{margin-left:48px}.personal-observation>div .btn{padding-top:4px;padding-bottom:4px}.life-overview-intro{align-items:flex-start}}
@media(max-width:480px){#jImgs{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 16px;gap:10px}#jImgs .journal-shot img{height:100px}.coach-focus-title h3{font-size:20px}.coach-progress-head{align-items:flex-start}.coach-progress-head .chart-toggle{width:100%;justify-content:space-between}.coach-progress-head .chart-toggle button{flex:1}.progress-chart text{font-size:20px}.coach-focus .progress-chart text{font-size:21px}.coach-today-exercises li span{max-width:53%}.life-journal-actions{gap:8px}.life-journal-actions .btn{font-size:12px}.nut-energy-body{gap:12px}.nut-ring{width:122px;height:122px;padding:7px}.nut-ring strong{font-size:24px}.nut-ring span{font-size:9px;max-width:76px}.nut-ring>div{padding:10px}.nut-energy-detail>strong{font-size:23px}.nut-energy-detail>span{font-size:9px;letter-spacing:1px}.nut-energy-detail .btn{font-size:12px}.nut-energy-detail p{font-size:11px}.life-journal-editor>.ch h3{font-size:20px}}
