/* R4: PT 설정 ~ 완료, 운동 기록 */
.pt-page{min-height:100%;display:flex;flex-direction:column;background:var(--c-bg)}
.pt-page__body{flex:1}
.scr-pt .screen-cta{flex:none}

/* ===== 설정 ===== */
.ps-band{padding-top:0}
.ps-band .header{margin:0 -8px}
.ps-tabs{margin-top:4px}
.ps-title{font-size:22px;font-weight:400;line-height:1.4;margin-top:14px}
.ps-title b{font-weight:700}
.ps-date{margin-top:6px;font-size:14px;color:var(--c-text-2)}
.ps-body{padding:0 var(--gutter);display:flex;flex-direction:column;gap:14px;flex:1}
.ps-card{padding:18px 18px 20px}
.ps-places{display:flex;gap:14px}
.ps-place{width:96px;height:96px;padding:4px}
.ps-parts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ps-part{padding:4px;gap:2px}
.ps-part .tile__label{font-size:12px}
.ps-time{margin-left:auto;font-size:15px;color:var(--c-text-2)}
.ps-time b{font-size:32px;font-weight:900;color:var(--c-text);line-height:1}
.ps-info{font-size:14px;line-height:1.6;color:var(--c-text-2);padding:4px 0 8px}
.ps-preset{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border:3px solid transparent;padding:18px}
.ps-preset.is-selected{border-color:var(--c-lime);box-shadow:var(--sh-glow)}
.ps-preset__t{font-size:17px;font-weight:700}
.ps-preset__d{font-size:13px;color:var(--c-text-3);margin-top:2px}
.ps-preset__chips{display:flex;gap:6px;margin-top:10px}
.ps-preset__min{font-size:13px;color:var(--c-text-3);white-space:nowrap}
.ps-preset__min b{font-size:28px;font-weight:900;color:var(--c-text);margin-right:2px}

/* ===== 확인 ===== */
.pc-time{font-size:15px;color:var(--c-text-2)}
.pc-time b{font-size:32px;font-weight:900;color:var(--c-text)}
.pc-tile{width:84px;height:84px;flex:none;padding:4px;gap:2px}
.pc-tile .tile__label{font-size:12px}
.pc-tiles{display:flex;gap:8px;overflow-x:auto;padding:2px}
.pc-list{display:flex;flex-direction:column;gap:12px}
.pc-item{display:flex;align-items:center;gap:10px}
.pc-item__no{width:18px;font-size:13px;color:var(--c-text-3);text-align:center;flex:none}
.pc-item__img{width:48px;height:48px;border-radius:10px;border:1px solid var(--c-line);background:#fff;object-fit:cover;flex:none}
.pc-item__txt{display:flex;flex-direction:column;min-width:0}
.pc-item__txt b{font-size:14.5px;font-weight:500;line-height:1.3}
.pc-item__txt span{font-size:12.5px;color:var(--c-text-3);margin-top:2px}
.pc .bubble--card{min-width:200px}

/* ===== 가이드 ===== */
.pg-head{padding:2px var(--gutter) 0}
.pg-head__label{font-size:13px;color:var(--c-text-3)}
.pg-head__name{font-size:22px;font-weight:700;margin-top:2px}
.pg-gif{display:flex;justify-content:center}
.pg-gif__img{width:180px;height:180px;max-width:180px;image-rendering:auto;border-radius:8px;background:#fff}
.pg-gif .img-fallback{width:180px;height:180px}
.pg .bubble{max-width:100%}
.pg-replay{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 0 24px;font-size:12px;color:var(--c-text-3)}
.pg-replay__btn{width:56px;height:56px;border-radius:50%;background:#fff;box-shadow:var(--sh-card);display:flex;align-items:center;justify-content:center}
.pg-replay__btn:active{transform:scale(.95)}
.pg-skip{text-align:center;padding:0 0 8px}
.pg-skip__btn{font-size:14px;color:var(--c-text-3);text-decoration:underline;padding:8px 16px}
.pg-panel{position:sticky;bottom:0;background:#fff;border-radius:28px 28px 0 0;box-shadow:0 -6px 20px rgba(60,64,30,.1);padding:8px var(--gutter) calc(20px + env(safe-area-inset-bottom));z-index:5;flex:none}
.pg-panel__handle{width:40px;height:4px;border-radius:2px;background:#D9D9D9;margin:0 auto 12px}
.pg-panel__row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pg-panel__k{font-size:13px;color:var(--c-text-3)}
.pg-panel__v{font-size:15px;color:var(--c-text-2);margin-top:2px}
.pg-panel__v b{font-size:24px;font-weight:900;color:var(--c-text)}
.pg-panel .btn{min-width:140px}

/* ===== 진행 ===== */
.pr-top{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);padding:0 12px;flex:none}
.pr-top__name{flex:1;text-align:center;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 6px}
.pr-top__right{display:flex;align-items:center;gap:2px}
.pr-slow{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 10px;border-radius:var(--r-pill);background:#fff;border:1px solid var(--c-line);font-size:12px;font-weight:500;color:var(--c-text-2)}
.pr-slow.is-on{background:var(--c-lime);border-color:var(--c-lime);color:#222;font-weight:700}
.pr-body{padding:6px var(--gutter) 24px;display:flex;flex-direction:column;gap:14px}
.pr-coach{padding:14px}
.pr-coach__row{display:flex;align-items:center;gap:10px}
.pr-bubble{flex:1;min-width:0;align-self:center;padding:10px 12px;font-size:14px;min-height:48px;display:flex;align-items:center}
.pr-gif{flex:none;width:120px;height:120px}
.pr-gif__img{width:120px;height:120px;border-radius:10px;background:#fff;image-rendering:auto}
.pr-gif .img-fallback{width:120px;height:120px}
.pr-ringcard{border-radius:28px;padding:24px 20px 20px;display:flex;flex-direction:column;align-items:center;gap:18px}
.pr-sets{width:100%;max-width:260px}
.pr-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-top:4px}
.pr-pause{width:64px;height:64px;border-radius:50%;background:var(--c-lime);display:flex;align-items:center;justify-content:center;box-shadow:var(--sh-fab);justify-self:center}
.pr-pause:active{transform:scale(.95)}
.pr-skip{justify-self:center;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:var(--c-text-3)}
.pr-skip__btn{width:48px;height:48px;border-radius:50%;background:#fff;box-shadow:var(--sh-card);display:flex;align-items:center;justify-content:center}
.pr-skip:active .pr-skip__btn{transform:scale(.95)}

/* ===== 완료 ===== */
.pcm-hero{position:relative;height:380px;flex:none;overflow:hidden}
.pcm-hero__circle{position:absolute;right:-40px;top:20px;width:280px;height:280px;border-radius:50%;background:var(--c-hero-blue)}
.pcm-hero__mascot{position:absolute;right:-20px;top:0;width:300px;height:300px;object-fit:contain}
.pcm-hero__mascot.img-fallback{background:transparent}
.pcm-hero__txt{position:absolute;left:var(--gutter);bottom:28px}
.pcm-hero__icon{width:64px;height:64px;border-radius:16px;margin-bottom:12px}
.pcm-hero__date{font-size:15px;color:var(--c-text-2)}
.pcm-hero__title{font-size:28px;font-weight:900;line-height:1.25}
.pcm-stamp{position:absolute;right:14px;bottom:10px;width:150px;height:150px;transform:rotate(-14deg);animation:stampIn .5s .4s var(--ease) both}
.pcm-stamp img{display:none;width:150px;height:150px}
.pcm-stamp.has-img img{display:block}
.pcm-stamp.has-img .pcm-stamp__css{display:none}
.pcm-stamp__css{width:150px;height:150px;border-radius:50%;border:5px double var(--c-stamp);color:var(--c-stamp);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:24px;font-weight:900;line-height:1.1;letter-spacing:1px;opacity:.9}
.pcm-body{padding:0 var(--gutter);display:flex;flex-direction:column;gap:14px;margin-top:-6px}
.pcm-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:18px 0}
.pcm-stat{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--c-text-3)}
.pcm-stat+.pcm-stat{border-left:1px solid var(--c-line)}
.pcm-stat div{font-size:13px;color:var(--c-text-2);margin-top:2px}
.pcm-stat b{font-size:20px;font-weight:900;color:var(--c-text)}
.pcm-list{position:relative;display:flex;flex-direction:column;gap:18px}
.pcm-list::before{content:"";position:absolute;left:4px;top:8px;bottom:8px;width:2px;background:var(--c-line)}
.pcm-row{position:relative;display:flex;align-items:center;gap:12px;padding-left:2px}
.pcm-row__dot{width:10px;height:10px;border-radius:50%;background:var(--c-lime-strong);flex:none;position:relative;z-index:1}
.pcm-row__thumb{width:64px;height:64px;border-radius:12px;border:1px solid var(--c-line);background:#fff;overflow:hidden;flex:none}
.pcm-row__thumb img,.pcm-row__thumb .img-fallback{width:64px;height:64px;object-fit:cover}
.pcm-row__txt{min-width:0}
.pcm-row__name{font-size:17px;font-weight:500;line-height:1.3}
.pcm-row__dur{font-size:13px;font-weight:700;color:var(--c-text-3);margin-top:1px}
.pcm-row__chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}

/* ===== 운동 기록 ===== */
.rec{padding:24px var(--gutter) 24px}
.rec-nav{display:flex;align-items:center;gap:4px}
.rec-nav__t{font-size:17px}
.rec-nav .icon-btn{width:32px;height:32px}
.rec-nav .icon-btn[disabled]{opacity:.25;pointer-events:none}
.rec-title{font-size:26px;font-weight:900;margin-top:6px}
.rec-sum{margin-top:10px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--c-text-3)}
.rec-sum>div{display:flex;align-items:center;gap:8px}
.rec-sum b{font-weight:700;color:var(--c-text)}
.rec-seg{margin-top:20px}
.rec-cal{margin:20px -20px 0}
.rec-dow{display:grid;grid-template-columns:repeat(7,1fr);background:var(--c-sage);padding:8px 0;text-align:center;font-size:13px;color:var(--c-text-2)}
.rec-dow .is-sat,.rec-cell__no.is-sat{color:var(--c-sat)}
.rec-dow .is-sun,.rec-cell__no.is-sun{color:var(--c-sun)}
.rec-grid{display:grid;grid-template-columns:repeat(7,1fr);background:#fff}
.rec-cell{height:70px;display:flex;flex-direction:column;align-items:center;gap:2px;padding-top:6px;border-bottom:1px solid var(--c-line);cursor:default}
.rec-cell.has-session{cursor:pointer}
.rec-cell__no{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1}
.rec-cell.is-today .rec-cell__no{background:var(--c-lime);color:#222;font-weight:700}
.rec-cell.is-future .rec-cell__no{color:var(--c-text-4)}
.rec-cell__stamps{position:relative;width:40px;height:36px}
.stamp{position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:#FFF6E0;border:2px solid #F5A623;color:#E08A00;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;line-height:1;transform:rotate(-8deg)}
.stamp--home{background:#EAF5FD;border-color:#6DB6EC;color:#1F3A8A;font-size:11px}
.rec-cell__stamps .stamp:nth-child(2){z-index:1}
.rec-sheet-head{display:flex;align-items:center;justify-content:space-between;font-size:18px;font-weight:700;padding:4px 0 12px}
.rec-sheet-head__stamps{position:relative;width:44px;height:38px}
.rec-detail{padding:6px 0 14px}
.rec-detail+.rec-detail{border-top:1px solid var(--c-line);padding-top:14px}
.rec-detail__no{font-size:13px;color:var(--c-text-3);margin-bottom:6px}
.rec-rings{display:flex;justify-content:space-between;gap:6px}
.rec-ring{display:flex;flex-direction:column;align-items:center;gap:4px}
.rec-ring em{font-size:12px;color:var(--c-text-3)}
.rec-ring .ring__center b{font-size:17px;font-weight:900}
.rec-ring .ring__center span{font-size:11px}
.rec-detail__parts{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:16px;padding-top:14px;border-top:1px solid var(--c-line)}
.rec-detail__more{font-size:12px;color:var(--c-text-3)}

/* polish */
.pc .chat__bubbles .bubble--card{align-self:stretch}
.pr-ringcard .ring__center b{line-height:1}
.pr-ringcard .ring__center span{margin-top:6px}
.stamp{width:38px;height:38px}
.rec-cell__stamps{height:38px}

/* --- P4: 날짜 시트 운동 목록 / 바디 보기 --- */
.rec-detail__meta{font-size:13px;color:var(--c-text-3);margin-bottom:10px}
.rec-ex{margin-top:16px}
.rec-ex__head{font-size:14px;font-weight:700}
.rec-ex__list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.rec-ex__row{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center}
.rec-ex__thumb{width:56px;height:56px;border-radius:12px;border:1px solid var(--c-line);background:#fff;overflow:hidden}
.rec-ex__thumb img,.rec-ex__thumb .img-fallback{width:56px;height:56px;max-width:56px;object-fit:cover;display:block}
.rec-ex__name{font-size:15px;font-weight:500}
.rec-ex__part{font-size:11px;color:var(--c-text-3)}
.rec-ex__chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.rec-ex__empty{font-size:13px;color:var(--c-text-3);margin-top:16px}
.rec-pday{padding:6px 0 12px}
.rec-pday+.rec-pday{border-top:1px solid var(--c-line);padding-top:14px}
.rec-pday__d{font-size:14px;font-weight:700}
.rec-pday .rec-ex__empty{margin-top:8px}
.rb{margin-top:20px;display:flex;flex-direction:column;gap:14px}
.rb-sum__t{font-size:17px;line-height:1.4}
.rb-sum__t b{font-weight:700}
.rb-sum__d{font-size:13px;color:var(--c-text-3);margin-top:4px}
.rb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.rb-tile{padding:4px;gap:1px}
.rb-tile .tile__label{font-size:12px}
.rb-tile.lv-1{background:#F1FBF8}
.rb-tile.lv-2{background:#DDF5EF}
.rb-tile.lv-3{background:#CDEFE6}
.rb-tile.lv-0{cursor:default}
.rb-tile__n{font-size:10.5px;color:var(--c-text-3);line-height:1.2;white-space:nowrap}
.rb-tile__rank{position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#222;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1;z-index:1}
.rb-legend{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:11px;color:var(--c-text-3);margin-top:-4px}
.rb-legend i{width:14px;height:14px;border-radius:4px;border:1px solid var(--c-line);background:#fff}
.rb-legend i.lv-1{background:#F1FBF8}
.rb-legend i.lv-2{background:#DDF5EF}
.rb-legend i.lv-3{background:#CDEFE6}
.rb-legend span:first-child{margin-right:2px}
.rb-legend span:last-child{margin-left:2px}
.rb-rank .card__title{margin-bottom:10px}
.rb-row{display:grid;grid-template-columns:20px 52px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 0}
.rb-row__no{font-size:13px;font-weight:700;color:var(--c-text-2);text-align:center}
.rb-row__l{font-size:14px}
.rb-row__bar{height:10px;border-radius:var(--r-pill);background:var(--c-track);overflow:hidden;display:block}
.rb-row__bar i{display:block;height:100%;border-radius:var(--r-pill);background:linear-gradient(90deg,var(--c-lime),#7CCB8A)}
.rb-row__n{font-size:12px;color:var(--c-text-3);white-space:nowrap}
.rb-rest .card__title{margin-bottom:10px}
.rb-rest__chips{display:flex;flex-wrap:wrap;gap:6px}
.rb-rest__t{font-size:14px;line-height:1.6;color:var(--c-text-2);margin:12px 0 14px}
.rb-rest .btn{margin-top:2px}
.rb-rest--all{display:flex;align-items:center;gap:12px}
.rb-rest--all .rb-rest__t{margin:0}
.rb-empty{display:flex;flex-direction:column;align-items:center;gap:14px;padding:40px 0;color:var(--c-text-2);font-size:15px}
