/* Personal series: orange header, weekly calendar and three-week challenge. */
#streak-detail[hidden] {display:none!important;}
#streak-detail {position:fixed;inset:0;z-index:10050;display:flex;justify-content:center;background:#000;color:#f5f5f5;isolation:isolate;}
.v53-streak-surface {display:flex;flex-direction:column;width:100%;max-width:560px;height:100%;background:#000;transform:translateX(100%);transition:transform 260ms ease;}
#streak-detail.is-open .v53-streak-surface {transform:translateX(0);}
html.streak-open,body.streak-open {overflow:hidden!important;overscroll-behavior:none;}
#streak-detail .v53-streak-header {flex:none;padding:calc(12px + env(safe-area-inset-top,0px)) 20px 0;background:#b9601d;color:#fff;}
#streak-detail .v53-streak-back {display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#8c481a;color:#fff;font:inherit;}
#streak-detail .v53-streak-back span {font-size:32px;line-height:1;transform:translateY(-1px);}
#streak-detail .v53-streak-personal {margin:17px -20px 0;min-height:48px;display:grid;place-items:center;border-bottom:2px solid #fff;font-size:15px;font-weight:700;}
#streak-detail .v53-streak-scroll {flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));}
#streak-detail .v53-streak-hero {padding:27px 24px 24px;border-bottom:3px solid #303036;}
#streak-detail .v53-streak-count-row {display:flex;align-items:center;justify-content:space-between;gap:16px;}
#streak-detail .v53-streak-count {font-size:76px;line-height:1.12;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0;}
#streak-detail .v53-streak-flame {width:88px;height:100px;flex:0 0 88px;object-fit:contain;}
#streak-detail .v53-streak-zero {filter:grayscale(1);opacity:.55;}
#streak-detail h2 {margin:10px 0 16px;font-size:23px;line-height:1.3;font-weight:700;}
#streak-detail .v53-streak-message {display:flex;align-items:center;gap:18px;padding:18px;border-radius:19px;background:#1d1a20;}
#streak-detail .v53-streak-message img {width:28px;height:40px;flex:0 0 28px;}
#streak-detail .v53-streak-message p {margin:0;font-size:14px;line-height:1.65;overflow-wrap:anywhere;}
#streak-detail .v53-streak-calendar-section,#streak-detail .v53-streak-challenge {padding:22px 24px 0;}
#streak-detail h3 {margin:0 0 15px;font-size:20px;font-weight:650;}
#streak-detail .v53-streak-calendar {border:1px solid #36333b;border-radius:20px;padding:8px 12px 15px;}
#streak-detail .v53-streak-month-head {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;margin-bottom:5px;gap:4px;}
#streak-detail .v53-streak-month-head strong {font-size:17px;line-height:1.3;font-weight:600;text-align:center;overflow-wrap:anywhere;}
#streak-detail .v53-streak-month-head button {border:0;background:transparent;color:#b5b1b9;min-width:44px;min-height:44px;padding:0;font:inherit;font-size:29px;}
#streak-detail button:disabled {opacity:.3;cursor:default;}
#streak-detail .v53-streak-weekdays,#streak-detail .v53-streak-week {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;text-align:center;}
#streak-detail .v53-streak-weekdays {color:#b0acb4;font-size:12px;height:33px;}
#streak-detail .v53-streak-week {min-height:44px;margin:3px 0;border-radius:30px;}
#streak-detail .v53-qualified-week {background:#43260f;}
#streak-detail .v53-streak-day {display:grid;place-items:center;min-width:0;min-height:40px;color:#bdb9c1;font-size:14px;line-height:1;}
#streak-detail .v53-streak-day time {display:grid;place-items:center;width:35px;height:35px;max-width:100%;border-radius:50%;box-sizing:border-box;}
#streak-detail .v53-workout-day time {background:#d16e25;color:#fff;font-weight:700;}
#streak-detail .v53-future-day {color:#76727b;}
#streak-detail .v53-today:not(.v53-workout-day) time {border:1px solid #b9b4bd;color:#fff;}
#streak-detail .v53-streak-legend {color:#aaa5af;font-size:12px;line-height:1.5;margin:10px 2px 0;}
#streak-detail .v53-streak-goal {position:relative;display:flex;align-items:center;justify-content:space-around;height:74px;padding:0 14px;border:1px solid #36333b;border-radius:20px;}
#streak-detail .v53-streak-goal-track {position:absolute;left:24px;right:24px;top:33px;height:8px;background:#252227;border-radius:8px;overflow:hidden;}
#streak-detail .v53-streak-goal-track i {display:block;height:100%;background:#e57a27;border-radius:8px;}
#streak-detail .v53-streak-milestone {position:absolute;top:19px;transform:translateX(-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:10px;border:2px solid #e57a27;background:#fff;color:#c56420;font-size:23px;font-weight:700;}
#streak-detail .v53-streak-milestone[data-week="1"] {left:calc(33.333% + 8px);}
#streak-detail .v53-streak-milestone[data-week="2"] {left:calc(66.667% - 8px);}
#streak-detail .v53-streak-milestone[data-week="3"] {left:calc(100% - 24px);}
#streak-detail .v53-streak-milestone.is-complete {background:#f5862c;color:#fff;}
#streak-detail .v53-streak-goal-label {font-size:13px;line-height:1.5;color:#aaa5af;margin:12px 2px 0;}
#streak-detail .v53-streak-loading,#streak-detail .v53-streak-error {margin:28px 24px;font-size:15px;line-height:1.6;}
#streak-detail .v53-streak-retry {min-height:44px;border:1px solid #51404c;background:#241d23;color:#fff;padding:8px 18px;border-radius:22px;font:inherit;}
body.impulse button.v51-streak {border:0;background:transparent;padding:0;font:inherit;min-height:78px;min-width:44px;width:100%;}
body.impulse button.v51-streak .v51-flame img {width:38px;height:50px;object-fit:contain;display:block;}
body.impulse button.v51-streak strong {top:23px;}
@media(max-width:350px) {
  #streak-detail .v53-streak-hero {padding:22px 18px;}
  #streak-detail .v53-streak-calendar-section,#streak-detail .v53-streak-challenge {padding-left:18px;padding-right:18px;}
  #streak-detail .v53-streak-calendar {padding-left:8px;padding-right:8px;}
  #streak-detail .v53-streak-count {font-size:64px;}
  #streak-detail .v53-streak-flame {width:74px;height:88px;flex-basis:74px;}
  #streak-detail .v53-streak-month-head strong {font-size:15px;}
  #streak-detail .v53-streak-message {padding:15px;gap:12px;}
  #streak-detail .v53-streak-day time {width:30px;height:30px;}
}
@media(prefers-reduced-motion:reduce) {.v53-streak-surface {transition:none;}}
