.trends-page{flex-direction:column;gap:10px;margin-bottom:20px;padding:16px;display:flex}.trends-page>h2{margin:0;font-size:20px}.metric-control{scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;flex-wrap:nowrap;gap:6px;margin:-2px;padding:2px;display:flex;overflow-x:auto}.metric-control::-webkit-scrollbar{display:none}.metric-control button{scroll-snap-align:center;white-space:nowrap;border:1px solid var(--border);min-height:44px;font:inherit;cursor:pointer;background:#fff;border-radius:999px;flex:none;padding:0 16px}.period-control{flex-wrap:wrap;align-items:center;gap:6px 10px;display:flex}.period-chips{gap:6px;display:flex}.period-chip{border:1px solid var(--border);min-height:44px;font:inherit;cursor:pointer;white-space:nowrap;background:#fff;border-radius:999px;padding:0 14px}.trends-page [aria-pressed=true]{background:var(--soft);border-color:var(--primary);color:var(--primary);font-weight:600}.period-range{color:var(--muted)}.period-custom{flex-wrap:wrap;flex-basis:100%;align-items:end;gap:10px;display:flex}.period-custom label{flex-direction:column;flex:130px;gap:4px;min-width:0;display:flex}.period-custom input{min-width:0;font:inherit;border:1px solid var(--border);background:#fff;border-radius:10px;padding:10px}.trends-page .trend-goal{flex-flow:wrap;justify-content:space-between;align-items:center;gap:4px 12px;margin:0;padding:4px 10px;font-size:14px}.trends-page .goal-editor summary{color:var(--primary);cursor:pointer;font-size:14px}.trends-page .goal-editor{margin-left:auto}.trends-page .goal-editor[open]{flex-basis:100%}.trends-page .trend-summary{grid-template-columns:1.5fr 1fr 1fr;gap:6px;margin-block:0}.trends-page .trend-summary>div{gap:1px;padding:6px 8px;font-size:12px}.trends-page .trend-summary strong{white-space:nowrap;font-size:15px}.trends-page .trend-summary small{font-size:12px}.trends-page .trend-comparison,.trends-page [role=note]{margin:0;font-size:12px}.trends-page .nutrition-chart{margin:0}.trends-page .nutrition-chart svg{width:100%;height:auto;min-height:0;max-height:28vh;display:block}.trends-page .nutrition-chart figcaption{color:var(--muted);font-size:12px}.trends-empty{flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0;display:flex}.trends-details>summary{cursor:pointer;align-items:center;min-height:44px;display:flex}.trends-notes p{color:var(--muted);margin:6px 0;font-size:13px}.trends-page .progress-table-scroll{max-height:40vh;overflow:auto}@media (max-width:600px){.trends-page{gap:6px;margin-bottom:0;padding:10px}.trends-page .nutrition-chart svg{margin-bottom:-5.8%}.trends-page>h2{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}@media (max-width:850px){.trends-page{gap:8px;margin:8px 0 0;padding:12px}}@media (max-width:650px){.trends-page .nutrition-chart svg{width:100%;max-height:118px}.trends-page .nutrition-chart{margin:0}}.trends-subhead{margin:14px 0 6px;font-size:14px}.weekly-table td small{color:var(--muted);font-size:11px;display:block}.weekly-table{margin-bottom:6px}.progress-table-scroll+.field-hint{margin:8px 0 14px}.trends-column{grid-template-columns:minmax(0,1fr);align-items:start;gap:16px;display:grid}.trends-column>.page-heading{grid-column:1/-1;margin:0}.trends-column>.panel{min-width:0;margin:0}.trends-column .habit-month,.trends-column .habit-grid,.trends-column .habit-legend,.trends-column .habit-detail,.trends-column .habit-progress>.field-hint,.trends-column .habit-kpis,.trends-column .weekly-nav,.trends-column .weekly-goals,.trends-column .weekly-form,.trends-column .weekly-days,.trends-column .steps-progress,.trends-column .steps-chart,.trends-column .steps-form{max-width:none}@media (min-width:1000px){.app-shell .content.trends-column{grid-template-columns:repeat(2,minmax(0,1fr))}.trends-column>.habit-progress{grid-row:span 2}.trends-column>.nutrition-trends{grid-column:1/-1}}@media (max-width:850px){.app-shell .content.trends-column:not(.daily){gap:8px;padding:12px 6px 16px}.trends-column>.panel.trends-page{padding:6px}}
.habit-progress{flex-direction:column;gap:10px;margin-bottom:12px;padding:16px;display:flex}.habit-progress>h2{margin:0;font-size:20px}.habit-month,.habit-grid,.habit-legend,.habit-detail,.habit-progress>.field-hint{width:100%;max-width:440px}.habit-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:440px;display:grid}.habit-kpis>div{border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;gap:1px;min-width:0;padding:6px 8px;font-size:12px;display:flex}.habit-kpis span{color:var(--muted)}.habit-kpis strong{white-space:nowrap;font-size:16px}.habit-kpis small{color:var(--muted)}.habit-month{justify-content:space-between;align-items:center;gap:8px;display:flex}.habit-month strong{text-transform:capitalize}.habit-month .icon-button{min-width:44px;min-height:44px}.habit-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.habit-head{text-align:center;color:var(--muted);font-size:11px;font-weight:700}.habit-cell{aspect-ratio:1;border:1px solid var(--border);min-height:40px;color:var(--text);font:inherit;cursor:pointer;background:#fff;border-radius:8px;padding:0;font-size:12px;position:relative}.habit-cell i{font-size:13px;font-style:normal;line-height:1;position:absolute;bottom:1px;right:3px}.habit-cell b{font-size:10px;font-weight:700;line-height:1;position:absolute;bottom:1px;left:3px}.habit-cell.status-complete{background:var(--primary);border-color:var(--primary);color:#fff}.habit-cell.status-partial{background:var(--soft);border-color:var(--primary)}.habit-cell.status-missed{background:#f4efe6;border-style:dashed}.habit-cell.status-pending{background:#fff;border-style:dotted}.habit-cell.status-rest,.habit-cell.status-notTracked{color:var(--muted);background:#f6f7f5}.habit-cell[aria-pressed=true]{outline:3px solid var(--text);outline-offset:1px}.habit-cell:focus-visible,.habit-month .icon-button:focus-visible{outline:3px solid var(--primary);outline-offset:2px}.habit-legend{color:var(--muted);flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.habit-legend li{align-items:center;gap:6px;display:inline-flex}.habit-swatch{border:1px solid var(--border);border-radius:6px;place-items:center;width:20px;height:20px;font-size:11px;display:inline-grid}.habit-swatch.status-complete{background:var(--primary);border-color:var(--primary);color:#fff}.habit-swatch.status-partial{background:var(--soft);border-color:var(--primary);color:var(--text)}.habit-swatch.status-missed{color:var(--text);background:#f4efe6;border-style:dashed}.habit-swatch.status-pending{color:var(--text);border-style:dotted}.habit-detail{border:1px solid var(--border);background:#fff;border-radius:12px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.habit-detail h3,.habit-detail h4{margin:0;font-size:15px}.habit-detail h4{color:var(--muted);font-size:13px}.habit-detail p{margin:0}.habit-detail-scroll{flex-direction:column;gap:6px;max-height:30vh;display:flex;overflow:auto}.habit-meals{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.habit-meals li{justify-content:space-between;gap:10px;font-size:14px;display:flex}.habit-weights,.habit-weights-panel{width:100%;max-width:440px}.habit-weights-panel{border:1px solid var(--border);background:#fff;border-radius:12px;flex-direction:column;gap:8px;padding:10px;display:flex}.habit-weights-panel h3{margin:0;font-size:16px}.habit-weight-rows,.habit-weight-words{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.habit-weight-rows li{grid-template-columns:minmax(0,1fr) 44px 56px 44px;align-items:center;gap:4px;display:grid}.habit-weight-rows li small{color:var(--muted);grid-column:1/-1}.habit-weight-name{font-weight:600}.habit-weight-value{text-align:center;font-weight:700}.habit-weight-rows .icon-button{min-width:44px;min-height:44px}.habit-weight-words li{justify-content:space-between;gap:8px;display:flex}.habit-weight-bar{border:1px solid var(--border);background:#f6f7f5;border-radius:6px;height:22px;display:flex;overflow:hidden}.habit-weight-part{color:#fff;justify-content:center;align-items:center;min-width:0;font-size:11px;font-style:normal;font-weight:700;display:flex}.habit-weight-part.part-meals{background:#2f6f4e}.habit-weight-part.part-water{background:#2b6c8f}.habit-weight-part.part-steps{background:#7a5c1e}.habit-weight-part.part-supplements{background:#6b4a8a}.habit-weight-part.part-workout{background:#8a3b3b}.habit-weight-actions{flex-wrap:wrap;gap:8px;display:flex}
.steps-card{flex-direction:column;gap:10px;min-width:0;margin-bottom:12px;padding:16px;display:flex}.steps-card h2{align-items:center;gap:8px;margin:0;font-size:20px;display:flex}.steps-card h3{margin:6px 0 0;font-size:15px}.steps-today{margin:0}.steps-today strong{font-size:22px}.steps-progress{background:#e6ece8;border-radius:999px;max-width:440px;height:10px;overflow:hidden}.steps-progress>div{background:var(--primary);height:100%}.steps-chart{width:100%;max-width:440px;height:auto}.steps-chart rect{fill:#9fc5ae}.steps-chart rect.today{fill:var(--primary)}.steps-goal-line{stroke:var(--text);stroke-width:1px;stroke-dasharray:4 3}.steps-table{border-collapse:collapse;margin-top:6px;font-size:13px}.steps-table th,.steps-table td{text-align:left;border-bottom:1px solid #eff2ec;padding:2px 12px 2px 0}.steps-form{flex-wrap:wrap;align-items:flex-end;gap:8px;max-width:440px;display:flex}.steps-form h3{width:100%}.steps-form label,.steps-habit{flex-direction:column;gap:4px;min-width:0;font-size:13px;display:flex}.steps-habit{flex-direction:row;align-items:center;gap:8px}.steps-form input,.steps-form select{font:inherit;border:1px solid var(--border);background:#fff;border-radius:10px;width:140px;min-width:0;padding:8px 10px}.steps-form input[aria-invalid=true]{border-color:#a3231b}.steps-wide{width:100%}
