:root {
  --progress-orange: #ff9b2f;
  --progress-orange-hot: #ff7a00;
  --progress-lime: #b7ff00;
  --progress-cyan: #55d8ff;
  --progress-violet: #ad8cff;
  --progress-ink: #071015;
}

.progress-screen-new {
  max-width: 920px !important;
  padding: 24px 16px 0 !important;
  color: #f8fbff;
}
.progress-screen-new .progress-header { align-items: center; margin-bottom: 16px; }
.progress-screen-new .progress-eyebrow { color: var(--progress-orange); font-size: 11px; letter-spacing: .18em; }
.progress-screen-new .progress-header h1 { margin: 5px 0 4px; font-size: clamp(32px, 7vw, 46px); letter-spacing: -.055em; }
.progress-screen-new .progress-header p { max-width: 580px; color: #9eb1b8; }
.progress-header-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,155,47,.6); border-radius: 16px; color: var(--progress-orange); background: rgba(255,155,47,.11); box-shadow: 0 0 28px rgba(255,138,0,.16), inset 0 1px 0 rgba(255,255,255,.15); }

.progress-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 142px; margin: 0 0 14px; padding: 22px 24px; overflow: hidden; border: 1px solid rgba(255,155,47,.55); border-radius: 26px; background: radial-gradient(circle at 85% 15%, rgba(183,255,0,.1), transparent 28%), linear-gradient(135deg, rgba(59,35,18,.98), rgba(12,22,27,.98) 72%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 42px rgba(255,122,0,.12); }
.progress-hero::before { position: absolute; width: 220px; height: 220px; right: -95px; bottom: -155px; content: ''; border-radius: 50%; background: var(--progress-orange); filter: blur(25px); opacity: .18; }
.progress-hero > div:first-child { position: relative; z-index: 1; }
.progress-hero span { color: #cfb6a2; font-size: 12px; }
.progress-hero strong { display: block; margin: 5px 0 5px; color: #fff; font-size: 46px; line-height: .9; letter-spacing: -.06em; }
.progress-hero strong small { margin-left: 3px; color: var(--progress-orange); font-size: 19px; letter-spacing: 0; }
.progress-hero p { max-width: 280px; margin: 0; color: #d0dcdf; font-size: 12px; line-height: 1.4; }

.progress-ring { position: relative; display: grid; place-items: center; flex: none; width: 92px; height: 92px; border-radius: 50%; background: none !important; }
.progress-ring::after { display: none !important; }
.progress-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.progress-ring circle { fill: none; stroke-width: 8; }
.progress-ring .ring-track { stroke: rgba(255,255,255,.12); }
.progress-ring .ring-value { stroke: var(--ring-color); stroke-linecap: round; filter: drop-shadow(0 0 5px var(--ring-color)); animation: progress-ring-in 1.1s cubic-bezier(.2,.8,.2,1) both; }
.progress-ring > div { position: relative; z-index: 1; display: grid; place-items: center; }
.progress-ring strong { margin: 0; color: #fff; font-size: 18px; line-height: 1; letter-spacing: -.04em; }
.progress-ring span { margin-top: 4px; color: #c1d0d4; font-size: 8px; line-height: 1; text-align: center; }
.progress-ring-large { width: 104px; height: 104px; }
.progress-ring-large strong { font-size: 20px; }

.progress-period { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 10px 13px; border: 1px solid rgba(255,155,47,.25); border-radius: 14px; color: #bccbd0; background: rgba(255,155,47,.055); font-size: 12px; }
.progress-period i { color: var(--progress-orange); }
.progress-period strong { margin-left: auto; color: var(--progress-orange); font-size: 11px; }

.progress-data-card { position: relative; min-width: 0; margin: 0 0 14px; padding: 18px; overflow: hidden; border: 1px solid rgba(255,155,47,.56); border-radius: 23px; background: linear-gradient(145deg, rgba(28,34,37,.98), rgba(11,19,24,.98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 15px 34px rgba(0,0,0,.25); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.progress-data-card::after { position: absolute; right: -38px; bottom: -62px; width: 130px; height: 130px; content: ''; border-radius: 50%; background: var(--card-accent, var(--progress-orange)); filter: blur(22px); opacity: .08; pointer-events: none; }
.progress-data-card:hover { transform: translateY(-3px); border-color: rgba(255,190,112,.82); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 20px 38px rgba(0,0,0,.31), 0 0 25px color-mix(in srgb, var(--card-accent, var(--progress-orange)) 10%, transparent); }
.progress-data-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.progress-data-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.progress-data-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: none; border: 1px solid color-mix(in srgb, var(--card-accent, var(--progress-orange)) 64%, white 8%); border-radius: 13px; color: var(--card-accent, var(--progress-orange)); background: color-mix(in srgb, var(--card-accent, var(--progress-orange)) 15%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--card-accent, var(--progress-orange)) 18%, transparent), inset 0 1px 0 rgba(255,255,255,.14); }
.progress-data-title h2 { margin: 0; color: #fff; font-size: 17px; line-height: 1.15; font-weight: 900; }
.progress-data-title p { margin: 4px 0 0; color: #8fa4ab; font-size: 11px; line-height: 1.35; }
.progress-card-spark { width: 31px; height: 15px; opacity: .7; background: linear-gradient(135deg, transparent 42%, var(--card-accent, var(--progress-orange)) 44% 54%, transparent 56%), linear-gradient(45deg, transparent 48%, var(--card-accent, var(--progress-orange)) 50% 58%, transparent 60%); }
.progress-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.progress-two-column > .progress-data-card { margin-bottom: 14px; }
.progress-feature-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 106px; }
.progress-feature-row > div:first-child { display: flex; align-items: baseline; gap: 7px; }
.progress-feature-row strong, .progress-stat-big strong { color: #fff; font-size: 34px; line-height: 1; letter-spacing: -.055em; }
.progress-feature-row span, .progress-stat-big span { color: #aebfc4; font-size: 11px; }
.progress-feature-row em { margin-left: 4px; color: var(--progress-lime); font-size: 12px; font-style: normal; font-weight: 800; }
.progress-feature-row em.is-alert { color: #ff806f; }
.progress-feature-row .progress-ring { width: 82px; height: 82px; }
.progress-feature-row .progress-ring strong { font-size: 17px; }
.progress-card-note { min-height: 16px; margin: 1px 0 12px; color: #9cafb5; font-size: 11px; line-height: 1.45; }
.progress-stat-big { display: flex; align-items: baseline; gap: 8px; min-height: 43px; margin-bottom: 6px; }
.progress-stat-big strong { color: var(--card-accent, var(--progress-orange)); font-size: 29px; }
.progress-no-value { margin: 6px 0 15px; color: #8fa3aa; font-size: 13px; }

.progress-line-chart { position: relative; padding-top: 2px; }
.progress-line-chart svg { display: block; width: 100%; height: 146px; overflow: visible; background: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(190,225,231,.12) 36px, transparent 37px); }
.progress-area { animation: progress-area-in .9s .2s ease-out both; }
.progress-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: progress-line-in 1.25s .1s cubic-bezier(.2,.8,.2,1) forwards; }
.progress-point { opacity: 0; animation: progress-point-in .25s ease-out forwards; }
.progress-point:nth-of-type(2) { animation-delay: .16s; } .progress-point:nth-of-type(3) { animation-delay: .24s; } .progress-point:nth-of-type(4) { animation-delay: .32s; } .progress-point:nth-of-type(5) { animation-delay: .4s; } .progress-point:nth-of-type(6) { animation-delay: .48s; } .progress-point:nth-of-type(7) { animation-delay: .56s; }
.progress-point:hover { r: 7; }
.progress-chart-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 8px; color: #7f949c; font-size: 9px; text-align: center; text-transform: capitalize; }
.progress-empty-chart { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 146px; border: 1px dashed rgba(255,155,47,.28); border-radius: 15px; color: #7f9299; background: rgba(0,0,0,.1); font-size: 12px; }
.progress-empty-chart i { color: color-mix(in srgb, var(--card-accent, var(--progress-orange)) 75%, white 0%); }

.progress-bar-chart { display: flex; align-items: flex-end; gap: 7px; height: 145px; padding: 0 2px; border-bottom: 1px solid rgba(255,255,255,.12); }
.progress-bar-day { display: flex; flex: 1; min-width: 0; height: 100%; align-items: flex-end; flex-direction: column; justify-content: flex-end; gap: 5px; }
.progress-bar-day > span { height: 14px; overflow: hidden; color: #dbe7e9; font-size: 9px; white-space: nowrap; }
.progress-bar-day i { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 106px; overflow: hidden; border-radius: 8px 8px 2px 2px; background: rgba(255,255,255,.055); }
.progress-bar-day em { display: block; width: 100%; min-height: 3px; border-radius: 8px 8px 0 0; box-shadow: 0 0 13px currentColor; animation: progress-bar-in .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.progress-bar-day:nth-child(2) em { animation-delay: .06s; } .progress-bar-day:nth-child(3) em { animation-delay: .12s; } .progress-bar-day:nth-child(4) em { animation-delay: .18s; } .progress-bar-day:nth-child(5) em { animation-delay: .24s; } .progress-bar-day:nth-child(6) em { animation-delay: .3s; } .progress-bar-day:nth-child(7) em { animation-delay: .36s; }
.progress-bar-day small { height: 15px; color: #7f949c; font-size: 9px; text-transform: capitalize; }
.progress-chart-unit { margin: 7px 0 0; color: #82969c; font-size: 10px; text-align: right; }

.progress-calories-in-card { --card-accent: var(--progress-orange); background: linear-gradient(145deg, rgba(63,39,21,.98), rgba(15,21,25,.98)); }
.progress-calories-out-card { --card-accent: var(--progress-violet); border-color: rgba(173,140,255,.55); background: linear-gradient(145deg, rgba(43,34,65,.98), rgba(15,19,26,.98)); }
.progress-steps-card { --card-accent: var(--progress-cyan); border-color: rgba(85,216,255,.5); }
.progress-workouts-card { --card-accent: var(--progress-lime); border-color: rgba(183,255,0,.47); }
.progress-hydration-card { --card-accent: var(--progress-cyan); border-color: rgba(85,216,255,.5); }
.progress-sleep-card { --card-accent: var(--progress-violet); border-color: rgba(173,140,255,.5); }
.progress-rewards-card { --card-accent: var(--progress-orange); }
.progress-calorie-row { min-height: 78px; }
.progress-calorie-row .progress-ring { width: 74px; height: 74px; }
.progress-calorie-row .progress-ring strong { font-size: 15px; }

.progress-workout-list { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.progress-workout-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.progress-row-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 10px; color: var(--progress-lime); background: rgba(183,255,0,.12); font-size: 12px; }
.progress-workout-row > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.progress-workout-row strong { overflow: hidden; color: #eaf3f4; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.progress-workout-row small { color: #8499a0; font-size: 10px; }
.progress-workout-row > b { color: var(--progress-lime); font-size: 10px; white-space: nowrap; }
.progress-empty-inline { display: flex; align-items: center; gap: 10px; min-height: 42px; color: #91a4aa; font-size: 12px; }
.progress-empty-inline i { width: 28px; color: var(--card-accent, var(--progress-orange)); font-size: 18px; text-align: center; }

.progress-rewards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.progress-reward { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid rgba(255,155,47,.3); border-radius: 14px; background: rgba(255,155,47,.07); transition: transform .2s ease, background .2s ease; }
.progress-reward:hover { transform: translateY(-2px); background: rgba(255,155,47,.13); }
.progress-reward > span { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 10px; color: var(--progress-orange); background: rgba(255,155,47,.16); }
.progress-reward div { display: flex; min-width: 0; flex-direction: column; }
.progress-reward strong { overflow: hidden; color: #f1f7f7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.progress-reward small { margin-top: 3px; color: #8ea2a8; font-size: 9px; }
.progress-active-challenge { display: flex; gap: 7px; margin: 0 0 10px; color: #bfcfd1; font-size: 11px; }
.progress-active-challenge i { color: var(--progress-orange); }
.progress-footnote { display: flex; align-items: flex-start; gap: 8px; margin: 2px 2px 0; color: #71858c; font-size: 10px; line-height: 1.45; }
.progress-footnote i { margin-top: 1px; color: var(--progress-orange); }
.progress-bottom-space { height: 96px; }

.progress-reveal { animation: progress-card-in .62s cubic-bezier(.2,.8,.2,1) both; }
.progress-delay-1 { animation-delay: .08s; } .progress-delay-2 { animation-delay: .16s; } .progress-delay-3 { animation-delay: .24s; } .progress-delay-4 { animation-delay: .32s; } .progress-delay-5 { animation-delay: .4s; }
.bottom-nav .nav-item.active[data-screen="progress"] { color: #1d1208 !important; background: linear-gradient(135deg, #ffd080, var(--progress-orange)) !important; border: 1px solid rgba(255,216,157,.58) !important; box-shadow: 0 10px 26px rgba(255,138,0,.32), inset 0 1px 0 rgba(255,255,255,.45) !important; }
.bottom-nav .nav-item.active[data-screen="progress"] i, .bottom-nav .nav-item.active[data-screen="progress"] span { color: #1d1208 !important; }
.bottom-nav .nav-item.active[data-screen="progress"]::after { display: none !important; }

@keyframes progress-card-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes progress-ring-in { from { stroke-dasharray: 0 276.5; } }
@keyframes progress-line-in { to { stroke-dashoffset: 0; } }
@keyframes progress-area-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress-point-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes progress-bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 640px) {
  .progress-screen-new { padding: 20px 12px 0 !important; }
  .progress-hero { padding: 19px; border-radius: 22px; }
  .progress-hero strong { font-size: 41px; }
  .progress-two-column { display: block; }
  .progress-data-card { padding: 15px; border-radius: 20px; }
  .progress-rewards-grid { grid-template-columns: 1fr; }
  .progress-line-chart svg { height: 137px; }
  .progress-bar-chart { height: 137px; }
  .progress-bar-day i { height: 98px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-reveal, .progress-ring .ring-value, .progress-line, .progress-area, .progress-point, .progress-bar-day em { animation: none; }
  .progress-data-card, .progress-reward { transition: none; }
}

/* Scroll-first reveal: cards stay quiet until the user reaches them. */
.progress-screen-new .progress-reveal {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  animation: none;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.progress-screen-new .progress-reveal.is-visible {
  opacity: 1;
  transform: none;
  animation: progress-card-in .62s cubic-bezier(.2,.8,.2,1) both;
}
.progress-screen-new .progress-reveal.is-visible.progress-delay-1 { animation-delay: .08s; }
.progress-screen-new .progress-reveal.is-visible.progress-delay-2 { animation-delay: .16s; }
.progress-screen-new .progress-reveal.is-visible.progress-delay-3 { animation-delay: .24s; }
.progress-screen-new .progress-reveal.is-visible.progress-delay-4 { animation-delay: .32s; }
.progress-screen-new .progress-reveal.is-visible.progress-delay-5 { animation-delay: .4s; }
.progress-screen-new .progress-ring .ring-value,
.progress-screen-new .progress-line,
.progress-screen-new .progress-area,
.progress-screen-new .progress-point,
.progress-screen-new .progress-bar-day em {
  animation-play-state: paused;
}
.progress-screen-new .progress-reveal.is-visible .ring-value,
.progress-screen-new .progress-reveal.is-visible .progress-line,
.progress-screen-new .progress-reveal.is-visible .progress-area,
.progress-screen-new .progress-reveal.is-visible .progress-point,
.progress-screen-new .progress-reveal.is-visible .progress-bar-day em {
  animation-play-state: running;
}

@media (max-width: 640px) {
  .progress-screen-new {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 12px 0 !important;
  }
  .progress-screen-new .progress-header {
    gap: 10px;
    margin-bottom: 13px;
  }
  .progress-screen-new .progress-header h1 {
    font-size: clamp(29px, 9vw, 36px);
    line-height: .98;
  }
  .progress-screen-new .progress-header p {
    max-width: 250px;
    font-size: 11px;
    line-height: 1.35;
  }
  .progress-header-mark { width: 43px; height: 43px; border-radius: 14px; }
  .progress-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
  }
  .progress-hero strong { font-size: clamp(36px, 12vw, 43px); }
  .progress-hero p { max-width: 210px; font-size: 11px; }
  .progress-ring-large { width: 86px; height: 86px; }
  .progress-period { margin-bottom: 12px; padding: 9px 11px; font-size: 11px; }
  .progress-data-card {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 18px;
  }
  .progress-data-head { align-items: flex-start; gap: 8px; margin-bottom: 11px; }
  .progress-data-title { align-items: flex-start; gap: 9px; }
  .progress-data-icon { width: 35px; height: 35px; border-radius: 11px; }
  .progress-data-title h2 { font-size: 15px; line-height: 1.18; }
  .progress-data-title p { margin-top: 3px; font-size: 10px; }
  .progress-card-spark { width: 25px; flex: none; }
  .progress-two-column { display: block; }
  .progress-two-column > .progress-data-card { margin-bottom: 12px; }
  .progress-feature-row { min-height: 84px; gap: 8px; }
  .progress-feature-row strong, .progress-stat-big strong { font-size: 29px; }
  .progress-feature-row .progress-ring { width: 70px; height: 70px; }
  .progress-feature-row .progress-ring strong { font-size: 15px; }
  .progress-line-chart svg { height: 122px; }
  .progress-chart-labels { margin-top: 6px; font-size: 8px; }
  .progress-bar-chart { height: 124px; gap: 5px; }
  .progress-bar-day i { height: 86px; border-radius: 7px 7px 2px 2px; }
  .progress-bar-day > span, .progress-bar-day small { font-size: 8px; }
  .progress-workout-list { margin-top: 11px; padding-top: 10px; }
  .progress-rewards-grid { grid-template-columns: 1fr; gap: 7px; }
  .progress-reward { padding: 9px; }
  .progress-bottom-space { height: 78px; }
}

@media (max-width: 360px) {
  .progress-screen-new { padding-left: 9px !important; padding-right: 9px !important; }
  .progress-hero { padding: 14px; }
  .progress-hero p { max-width: 175px; }
  .progress-ring-large { width: 78px; height: 78px; }
  .progress-data-card { padding: 12px; }
  .progress-data-title h2 { font-size: 14px; }
  .progress-data-title p { max-width: 175px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-screen-new .progress-reveal,
  .progress-screen-new .progress-reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .progress-screen-new .progress-ring .ring-value,
  .progress-screen-new .progress-line,
  .progress-screen-new .progress-area,
  .progress-screen-new .progress-point,
  .progress-screen-new .progress-bar-day em { animation: none; }
}

/* Final polish: clearer rhythm, richer charts and centered ring typography. */
.progress-screen-new > .progress-hero,
.progress-screen-new > .progress-period,
.progress-screen-new > .progress-photo-strip,
.progress-screen-new > .progress-reveal:not(.progress-header) { margin-bottom: 30px; }
.progress-screen-new > .progress-reveal:not(.progress-header) > .progress-data-card,
.progress-screen-new > .progress-two-column > .progress-data-card { margin-bottom: 0; }
.progress-screen-new > .progress-two-column { column-gap: 18px; row-gap: 30px; margin-bottom: 30px; }
.progress-ring > div { width: 100%; height: 100%; align-content: center; }
.progress-ring strong { position: relative; z-index: 1; transform: translateY(-3px); }
.progress-ring span { position: absolute; left: 50%; bottom: 13%; z-index: 1; margin: 0; transform: translateX(-50%); white-space: nowrap; }

/* A lively seven-color sequence keeps weekly charts easy to scan. */
.progress-bar-day:nth-child(1) em { background: linear-gradient(180deg, #ffc56d, #ff7a00) !important; color: #ff9b2f; }
.progress-bar-day:nth-child(2) em { background: linear-gradient(180deg, #dbff73, #7cce00) !important; color: #b7ff00; }
.progress-bar-day:nth-child(3) em { background: linear-gradient(180deg, #a5efff, #159bd0) !important; color: #55d8ff; }
.progress-bar-day:nth-child(4) em { background: linear-gradient(180deg, #d6c7ff, #7853dc) !important; color: #ad8cff; }
.progress-bar-day:nth-child(5) em { background: linear-gradient(180deg, #ffb7d8, #e84d91) !important; color: #ff7db7; }
.progress-bar-day:nth-child(6) em { background: linear-gradient(180deg, #b7f5d2, #23ae78) !important; color: #72e1ad; }
.progress-bar-day:nth-child(7) em { background: linear-gradient(180deg, #ffe8a8, #e49a17) !important; color: #ffd166; }
.progress-line-chart .progress-point:nth-of-type(1) { stroke: #ff9b2f !important; }
.progress-line-chart .progress-point:nth-of-type(2) { stroke: #b7ff00 !important; }
.progress-line-chart .progress-point:nth-of-type(3) { stroke: #55d8ff !important; }
.progress-line-chart .progress-point:nth-of-type(4) { stroke: #ad8cff !important; }
.progress-line-chart .progress-point:nth-of-type(5) { stroke: #ff7db7 !important; }
.progress-line-chart .progress-point:nth-of-type(6) { stroke: #72e1ad !important; }
.progress-line-chart .progress-point:nth-of-type(7) { stroke: #ffd166 !important; }

/* Editorial stock-photo strip between the summary and analytics. */
.progress-photo-strip { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 11px; min-height: 112px; }
.progress-photo-tile { position: relative; min-width: 0; min-height: 112px; margin: 0; overflow: hidden; border: 1px solid rgba(255,155,47,.32); border-radius: 20px; background: linear-gradient(145deg, #293239, #10191f); box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 12px 25px rgba(0,0,0,.2); }
.progress-photo-tile img { display: block; width: 100%; height: 100%; min-height: 112px; object-fit: cover; opacity: .88; filter: saturate(1.08) contrast(1.04); transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.progress-photo-tile:hover img { transform: scale(1.07); opacity: 1; }
.progress-photo-glow { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, rgba(255,155,47,.2), transparent 42%, rgba(7,16,21,.4)); }
.progress-photo-tile:nth-child(2) .progress-photo-glow { background: linear-gradient(145deg, rgba(183,255,0,.16), transparent 48%, rgba(7,16,21,.4)); }
.progress-photo-tile:nth-child(3) .progress-photo-glow { background: linear-gradient(145deg, rgba(85,216,255,.15), transparent 48%, rgba(7,16,21,.45)); }
.progress-photo-tile.is-unavailable { background: radial-gradient(circle at 70% 25%, rgba(183,255,0,.28), transparent 35%), linear-gradient(145deg, #243137, #10191f); }
.progress-photo-tile.is-unavailable img { display: none; }

@media (max-width: 640px) {
  .progress-screen-new > .progress-hero,
  .progress-screen-new > .progress-period,
  .progress-screen-new > .progress-photo-strip,
  .progress-screen-new > .progress-reveal:not(.progress-header),
  .progress-screen-new > .progress-two-column { margin-bottom: 34px; }
  .progress-screen-new > .progress-two-column > .progress-data-card { margin-bottom: 30px; }
  .progress-screen-new > .progress-two-column > .progress-data-card:last-child { margin-bottom: 0; }
  .progress-screen-new > .progress-reveal:not(.progress-header) > .progress-data-card { margin-bottom: 0; }
  .progress-screen-new > .progress-two-column { row-gap: 30px; }
  .progress-ring span { bottom: 12%; font-size: 7px; }
  .progress-photo-strip { gap: 8px; min-height: 92px; }
  .progress-photo-tile { min-height: 92px; border-radius: 16px; }
  .progress-photo-tile img { min-height: 92px; }
}

@media (max-width: 360px) {
  .progress-screen-new > .progress-hero,
  .progress-screen-new > .progress-period,
  .progress-screen-new > .progress-photo-strip,
  .progress-screen-new > .progress-reveal:not(.progress-header),
  .progress-screen-new > .progress-two-column { margin-bottom: 28px; }
  .progress-screen-new > .progress-two-column > .progress-data-card { margin-bottom: 24px; }
  .progress-photo-strip { gap: 6px; }
  .progress-photo-tile { min-height: 78px; border-radius: 13px; }
  .progress-photo-tile img { min-height: 78px; }
}

.progress-workout-row-rich {
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.progress-workout-row-rich:last-child { border-bottom: 0; }
.progress-workout-row-rich > span:nth-child(2) { gap: 2px; }
.progress-workout-row-rich .progress-workout-detail {
  overflow: hidden;
  color: #b8cbd0;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-workout-row-rich > b { margin-top: 2px; }

/* Keep the single-card wrappers as airy as the two-column groups. */
.progress-screen-new > div > .progress-data-card { margin-bottom: 22px; }
@media (max-width: 640px) {
  .progress-screen-new > div > .progress-data-card { margin-bottom: 24px; }
}
@media (max-width: 360px) {
  .progress-screen-new > div > .progress-data-card { margin-bottom: 20px; }
}

/* Mobile hero ring: keep the score inside its circle instead of inheriting
   the large headline typography from the text column. */
.progress-hero > .progress-ring {
  box-sizing: border-box;
  width: 92px;
  height: 92px;
  margin-inline: 2px 0;
  justify-self: end;
  align-self: center;
}
.progress-hero > .progress-ring strong {
  margin: 0;
  color: #fff;
  font-size: 20px !important;
  line-height: 1;
  letter-spacing: -.045em;
  transform: translateY(-3px);
}
.progress-hero > .progress-ring span {
  bottom: 13%;
  font-size: 7px;
  line-height: 1;
}

@media (max-width: 640px) {
  .progress-hero > .progress-ring {
    width: 88px;
    height: 88px;
    margin-inline: 0;
  }
  .progress-hero > .progress-ring strong {
    font-size: 19px !important;
  }
}

@media (max-width: 360px) {
  .progress-hero > .progress-ring {
    width: 82px;
    height: 82px;
  }
  .progress-hero > .progress-ring strong {
    font-size: 18px !important;
  }
  .progress-hero > .progress-ring span {
    font-size: 6px;
  }
}

.progress-momentum-card {
  --card-accent: var(--progress-lime);
  border-color: rgba(183,255,0,.48);
  background: radial-gradient(circle at 92% 8%, rgba(183,255,0,.13), transparent 30%), linear-gradient(145deg, rgba(35,48,28,.98), rgba(11,20,24,.98) 70%);
}
.progress-momentum-main { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 15px; }
.progress-momentum-main .progress-ring { width: 84px; height: 84px; }
.progress-momentum-main .progress-ring strong { font-size: 18px; }
.progress-momentum-copy { min-width: 0; }
.progress-momentum-copy > span { display: block; margin-bottom: 5px; color: var(--progress-lime); font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.progress-momentum-copy p { margin: 0; color: #d1e0d6; font-size: 12px; line-height: 1.45; }
.progress-momentum-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 17px 0 14px; padding: 11px 9px 9px; border: 1px solid rgba(183,255,0,.16); border-radius: 15px; background: rgba(0,0,0,.14); }
.progress-momentum-day { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.progress-momentum-day i { display: block; width: 100%; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 1px rgba(255,255,255,.08); }
.progress-momentum-day.is-started i { background: linear-gradient(90deg, #55d8ff, #ad8cff); box-shadow: 0 0 10px rgba(85,216,255,.28); }
.progress-momentum-day.is-strong i { background: linear-gradient(90deg, #ff9b2f, #b7ff00); box-shadow: 0 0 12px rgba(183,255,0,.32); }
.progress-momentum-day small { overflow: hidden; width: 100%; color: #91a6a9; font-size: 9px; text-align: center; text-transform: capitalize; }
.progress-momentum-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.progress-momentum-stats > div { display: grid; gap: 3px; padding: 9px 6px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.045); text-align: center; }
.progress-momentum-stats strong { color: #fff; font-size: 20px; line-height: 1; }
.progress-momentum-stats span { color: #9fb2b4; font-size: 9px; line-height: 1.2; }
.progress-momentum-action { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(183,255,0,.42); border-radius: 14px; color: #13200b; background: linear-gradient(135deg, #d8ff65, #8bdc00); box-shadow: 0 10px 22px rgba(183,255,0,.15), inset 0 1px 0 rgba(255,255,255,.5); font-size: 12px; font-weight: 900; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.progress-momentum-action i:last-child { margin-left: auto; }
.progress-momentum-action:hover, .progress-momentum-action:focus-visible { filter: brightness(1.08); box-shadow: 0 12px 26px rgba(183,255,0,.25), inset 0 1px 0 rgba(255,255,255,.6); outline: none; }
.progress-momentum-action:active { transform: scale(.985); }

@media (max-width: 640px) {
  .progress-momentum-card { padding: 15px; }
  .progress-momentum-main { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .progress-momentum-main .progress-ring { width: 76px; height: 76px; }
  .progress-momentum-main .progress-ring strong { font-size: 17px; }
  .progress-momentum-copy p { font-size: 11px; }
  .progress-momentum-week { gap: 4px; margin-top: 15px; }
  .progress-momentum-stats { gap: 6px; }
  .progress-momentum-stats > div { padding: 8px 4px; }
  .progress-momentum-stats strong { font-size: 18px; }
}

@media (max-width: 360px) {
  .progress-momentum-main { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
  .progress-momentum-main .progress-ring { width: 68px; height: 68px; }
  .progress-momentum-main .progress-ring strong { font-size: 15px; }
  .progress-momentum-copy > span { font-size: 10px; }
  .progress-momentum-copy p { font-size: 10px; }
  .progress-momentum-week { padding-inline: 6px; }
  .progress-momentum-day small { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-momentum-action { transition: none; }
}

/* The fixed bottom navigation already provides the safe landing area. Keep
   the final rhythm widget from leaving a second, oversized tail underneath. */
#screenContent:has(.progress-screen-new) {
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}
#screenContent:has(.progress-screen-new) .progress-momentum-slot,
#screenContent:has(.progress-screen-new) .progress-momentum-card {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  #screenContent:has(.progress-screen-new) {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  #screenContent:has(.progress-screen-new) {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
}

/* Larger ring blocks keep the value readable and place the metric label
   below the chart instead of inside the percentage. */
.progress-ring {
  display: flex;
  width: 126px;
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border-radius: 0;
}
.progress-ring-visual {
  position: relative;
  width: 112px;
  height: 112px;
  flex: none;
}
.progress-ring-visual > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
}
.progress-ring-visual strong {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.045em;
  transform: none;
}
.progress-ring > span {
  position: static;
  display: block;
  width: 100%;
  margin: 0;
  color: #c1d0d4;
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.progress-ring-large { width: 126px; height: auto; }
.progress-ring-large .progress-ring-visual { width: 112px; height: 112px; }
.progress-ring-large strong { font-size: 22px; }
.progress-hero > .progress-ring { width: 132px; margin-inline: 0; }
.progress-hero > .progress-ring .progress-ring-visual { width: 116px; height: 116px; }
.progress-hero > .progress-ring strong { font-size: 24px !important; }
.progress-feature-row .progress-ring,
.progress-calorie-row .progress-ring { width: 108px; height: auto; }
.progress-feature-row .progress-ring-visual,
.progress-calorie-row .progress-ring-visual { width: 88px; height: 88px; }
.progress-feature-row .progress-ring strong,
.progress-calorie-row .progress-ring strong { font-size: 18px; }
.progress-momentum-main .progress-ring { width: 110px; height: auto; }
.progress-momentum-main .progress-ring .progress-ring-visual { width: 94px; height: 94px; }
.progress-momentum-main .progress-ring strong { font-size: 20px; }

/* Give the progress cards more breathing room as their visual elements grow. */
.progress-data-card { padding: 20px; }
.progress-data-head { margin-bottom: 16px; }
.progress-data-icon { width: 42px; height: 42px; }
.progress-data-title h2 { font-size: 18px; }
.progress-feature-row { min-height: 116px; }
.progress-calorie-row { min-height: 102px; }
.progress-feature-row strong,
.progress-stat-big strong { font-size: 37px; }
.progress-momentum-main { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }

@media (max-width: 640px) {
  .progress-data-card { padding: 17px; }
  .progress-data-head { margin-bottom: 14px; }
  .progress-data-icon { width: 38px; height: 38px; }
  .progress-data-title h2 { font-size: 16px; }
  .progress-feature-row { min-height: 108px; }
  .progress-feature-row strong,
  .progress-stat-big strong { font-size: 33px; }
  .progress-feature-row .progress-ring,
  .progress-calorie-row .progress-ring { width: 104px; }
  .progress-feature-row .progress-ring-visual,
  .progress-calorie-row .progress-ring-visual { width: 86px; height: 86px; }
  .progress-feature-row .progress-ring strong,
  .progress-calorie-row .progress-ring strong { font-size: 18px; }
  .progress-hero > .progress-ring { width: 112px; }
  .progress-hero > .progress-ring .progress-ring-visual { width: 98px; height: 98px; }
  .progress-hero > .progress-ring strong { font-size: 21px !important; }
  .progress-momentum-card { padding: 17px; }
  .progress-momentum-main { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .progress-momentum-main .progress-ring { width: 100px; }
  .progress-momentum-main .progress-ring .progress-ring-visual { width: 88px; height: 88px; }
  .progress-momentum-main .progress-ring strong { font-size: 19px; }
  .progress-momentum-stats > div { padding: 11px 5px; }
}

@media (max-width: 360px) {
  .progress-data-card { padding: 15px; }
  .progress-feature-row { min-height: 100px; }
  .progress-feature-row .progress-ring,
  .progress-calorie-row .progress-ring { width: 98px; }
  .progress-feature-row .progress-ring-visual,
  .progress-calorie-row .progress-ring-visual { width: 80px; height: 80px; }
  .progress-hero > .progress-ring { width: 104px; }
  .progress-hero > .progress-ring .progress-ring-visual { width: 90px; height: 90px; }
  .progress-momentum-main { grid-template-columns: 92px minmax(0, 1fr); gap: 11px; }
  .progress-momentum-main .progress-ring { width: 92px; }
  .progress-momentum-main .progress-ring .progress-ring-visual { width: 82px; height: 82px; }
}

