/* 레슨생 화면 전용 */
body { --page-max: 560px; }

/* 휴대폰에서도 로그인 칸이 첫 화면에 보이도록 사진 높이 제한 (얼굴 쪽을 남기고 아래를 자름) */
#guest-view .hero-photo { max-height: 36vh; object-fit: cover; object-position: center 15%; }
.guest { padding-top: 16px; }
.guest .brand { margin-bottom: 20px; }
.guest-foot { text-align: center; margin: 14px 0 0; }
.privacy { margin: 4px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.privacy details { margin: 8px 0 0 26px; font-size: 14px; }
.privacy summary { cursor: pointer; color: var(--maple); font-weight: 600; }
.privacy-terms { display: grid; grid-template-columns: 64px 1fr; gap: 4px 8px; margin: 8px 0 0; }
.privacy-terms dt { font-weight: 700; }
.privacy-terms dd { margin: 0; }
.nowrap { white-space: nowrap; }

.app-main { max-width: var(--page-max); margin: 0 auto; padding: 20px 16px 48px; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hello { margin: 0 0 10px; font-weight: 600; }
.section-head strong.num, .done strong.num { margin: 0 3px; font-weight: 400; }

/* 남은 횟수 */
.remain-card { display: grid; gap: 12px; padding: 20px 16px; }
.remain-label { font-weight: 600; color: var(--sub); }
.remain-big { display: flex; align-items: baseline; gap: 6px; margin-top: -8px; }
.remain-big .num { font-size: 3.5rem; line-height: 1; }
.remain-card .btn-blue { min-height: 52px; font-size: 16px; }

/* 다가오는 레슨 */
.upcoming { display: flex; align-items: center; gap: 12px; }
.up-date { font-weight: 700; }
.up-time { font-size: 1.15rem; }
.cancel-note { text-align: right; line-height: 1.4; white-space: nowrap; }

.product-line { display: flex; align-items: center; gap: 12px; }
.price { white-space: nowrap; font-size: 1.05rem; }
.rules { margin-top: 20px; }
.rules p { margin: 2px 0; }

/* 예약: 달력 */
.step { margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-size: 12px; font-weight: 600; color: var(--sub); padding-bottom: 2px; }
.cal-head.sat { color: #3B5BA9; }
.cal-head.sun { color: var(--danger); }
.cal-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 4px 0; border-radius: 8px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; line-height: 1.2;
}
.cal-cell.out { border: 0; background: none; cursor: default; }
.cal-cell:disabled { background: #EFEDE6; color: #9C9A92; border-color: transparent; cursor: not-allowed; }
.cal-cell.on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.cal-num { font-family: var(--f-num); font-size: 1.05rem; }
.cal-note { font-size: 11px; min-height: 13px; }
.cal-cell.on .cal-note { color: var(--maple-on-dark); }

/* 예약: 시간 */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; border-radius: var(--radius); border: 1px solid #C9C6BB; background: var(--white);
  cursor: pointer; line-height: 1.2;
}
.slot .num { font-size: 1.1rem; }
.slot:hover:not(:disabled) { border-color: var(--ball-blue); color: var(--ball-blue); }
.slot:disabled { opacity: 0.45; cursor: not-allowed; }                     /* 남은 횟수 0회: 비어 있지만 누를 수 없음 */
.slot.full { opacity: 1; background: #EFEDE6; color: #9C9A92; border-color: transparent; }
.slot.full .num { text-decoration: line-through; }                          /* 이미 마감된 시간 */
.slot-note { font-size: 11px; }

.confirm-when { font-size: 1.1rem; line-height: 1.5; }
.confirm-when .num { font-size: 1.4rem; }

/* 예약 완료 */
.done { text-align: center; padding: 28px 16px; }
.done-mark { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--ball-blue); color: #fff; font-size: 28px; line-height: 56px; font-weight: 700; }
.done .confirm-when { margin: 12px 0 8px; }
.done-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* 이용 내역 */
.history-item { display: flex; align-items: center; gap: 12px; }
.history-delta { white-space: nowrap; text-align: right; }
.history-delta .num { font-size: 1.15rem; }

/* 내 정보 */
.info { display: grid; grid-template-columns: 72px 1fr; gap: 6px 12px; margin: 0; }
.info dt { color: var(--sub); }
.info dd { margin: 0; }

@media (min-width: 700px) {
  .guest { padding-top: 28px; }
  .cal-cell { min-height: 60px; }
}
