/* ==========================================================================
   하루PT 디자인 토큰 (DESIGN.md 기준)
   ========================================================================== */
:root {
  /* colors */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --ink: #1d1d1f;
  --ink-muted-80: #333333;
  --ink-muted-48: #7a7a7a;
  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl: #fafafc;
  --success: #34c759;
  --star: #ffb300;
  --on-primary: #ffffff;

  /* typography */
  --font-display: "SF Pro Display", "Inter", system-ui, -apple-system, sans-serif;
  --font-text: "SF Pro Text", "Inter", system-ui, -apple-system, sans-serif;

  /* rounded */
  --rounded-sm: 8px;
  --rounded-md: 11px;
  --rounded-lg: 18px;
  --rounded-pill: 9999px;

  /* spacing */
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--canvas-parchment);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* 모바일 단일 컬럼, 641px 이상에서는 480px 고정 + 가운데 정렬 */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--canvas);
  position: relative;
}

/* ==========================================================================
   화면 전환
   ========================================================================== */
.screen {
  display: none;
  min-height: 100dvh;
  flex-direction: column;
}
.screen.active { display: flex; }

.screen-body {
  flex: 1;
  padding: var(--sp-lg) var(--sp-md);
}

.screen-footer {
  padding: var(--sp-md);
  padding-bottom: calc(var(--sp-md) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

/* ==========================================================================
   타이포그래피
   ========================================================================== */
.hero-display {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.28px;
}
.display-md {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.lead { font-size: 20px; font-weight: 400; line-height: 1.3; letter-spacing: 0; }
.body { font-size: 17px; font-weight: 400; }
.caption { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.224px; }
.caption-strong { font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.224px; }
.fine-print { font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: -0.12px; }
.muted { color: var(--ink-muted-48); }

/* ==========================================================================
   app-top-bar
   ========================================================================== */
.top-bar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-md);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-bar-back {
  width: 44px;
  height: 44px;
  margin-left: -12px;
  border: none;
  background: none;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--rounded-pill);
}
.top-bar-back:active { transform: scale(0.97); }
.top-bar-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
}
.top-bar-aside {
  width: 44px;
  text-align: right;
  font-size: 14px;
  color: var(--ink-muted-48);
  letter-spacing: -0.224px;
}

/* ==========================================================================
   버튼
   ========================================================================== */
.btn-primary {
  width: 100%;
  padding: 14px 22px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  border: none;
  border-radius: var(--rounded-pill);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }
.btn-primary:disabled {
  background: var(--divider-soft);
  color: var(--ink-muted-48);
  cursor: default;
  transform: none;
}

.btn-secondary {
  width: 100%;
  padding: 14px 22px;
  background: var(--canvas);
  color: var(--primary);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  border: 1px solid var(--primary);
  border-radius: var(--rounded-pill);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.btn-secondary:active { transform: scale(0.97); }

.text-link {
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font-text);
  font-size: 17px;
  letter-spacing: -0.374px;
  cursor: pointer;
  padding: var(--sp-xs);
  align-self: center;
}

/* ==========================================================================
   1. 스플래시 / 5. 신청 완료
   ========================================================================== */
.splash-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
  gap: var(--sp-md);
}
.splash-logo { font-size: 64px; }
.splash-tagline { color: var(--ink-muted-80); }

.complete-check {
  width: 72px;
  height: 72px;
  border-radius: var(--rounded-pill);
  background: var(--success);
  color: var(--on-primary);
  font-size: 40px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   2. 설문 — 진행 바 + 선택 칩
   ========================================================================== */
.progress-track {
  height: 4px;
  background: var(--divider-soft);
  border-radius: var(--rounded-pill);
  margin: var(--sp-sm) var(--sp-md) 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 20%;
  background: var(--primary);
  border-radius: var(--rounded-pill);
  transition: width 0.25s ease;
}

#survey-hint { margin-top: var(--sp-xs); min-height: 20px; }

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}
.chip {
  padding: 12px 16px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 14px;
  letter-spacing: -0.224px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  transition: transform 0.1s ease;
}
.chip:active { transform: scale(0.97); }
.chip.selected {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   3. 추천 결과 — trainer-card
   ========================================================================== */
#results-heading { margin-bottom: var(--sp-lg); }
#results-list { display: flex; flex-direction: column; gap: var(--sp-sm); }

.trainer-card {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  width: 100%;
  text-align: left;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--sp-md);
  cursor: pointer;
  font-family: var(--font-text);
  position: relative;
  transition: transform 0.1s ease;
}
.trainer-card:active { transform: scale(0.97); }

.trainer-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-pill);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--divider-soft);
}
.trainer-card-info { flex: 1; min-width: 0; }
.trainer-card-name { font-size: 17px; font-weight: 600; letter-spacing: -0.374px; }
.trainer-card-meta {
  font-size: 14px;
  color: var(--ink-muted-80);
  letter-spacing: -0.224px;
  margin-top: 2px;
}
.trainer-card-price {
  font-size: 14px;
  letter-spacing: -0.224px;
  margin-top: var(--sp-xxs);
}
.trainer-card-price strong { font-weight: 600; }

.score-badge {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
}

.star-inline { color: var(--star); }

.empty-state {
  text-align: center;
  padding: var(--sp-xxl) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-items: center;
  color: var(--ink-muted-48);
}

/* ==========================================================================
   8. 전체 트레이너 둘러보기 — 정렬 칩 + 필터 셀렉트
   ========================================================================== */
.browse-controls {
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 1px solid var(--divider-soft);
  background: var(--canvas);
  position: sticky;
  top: 52px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.sort-row {
  display: flex;
  gap: var(--sp-xs);
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-row::-webkit-scrollbar { display: none; }

.sort-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--canvas);
  color: var(--ink-muted-80);
  font-family: var(--font-text);
  font-size: 14px;
  letter-spacing: -0.224px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.sort-chip:active { transform: scale(0.97); }
.sort-chip.selected {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  font-weight: 600;
}

.filter-row {
  display: flex;
  gap: var(--sp-xs);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }

.filter-select {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 28px 8px 14px;
  background: var(--surface-pearl);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a7a7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--ink-muted-80);
  font-family: var(--font-text);
  font-size: 14px;
  letter-spacing: -0.224px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  cursor: pointer;
}
.filter-select.active {
  background-color: var(--canvas);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.filter-select:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 1px; }

#browse-list { display: flex; flex-direction: column; gap: var(--sp-sm); }

/* ==========================================================================
   4. 트레이너 상세
   ========================================================================== */
.detail-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-xs);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--divider-soft);
}
.detail-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--rounded-pill);
  object-fit: cover;
  background: var(--divider-soft);
}
.detail-name { font-size: 28px; font-weight: 600; letter-spacing: -0.3px; font-family: var(--font-display); }
.detail-sub { font-size: 14px; color: var(--ink-muted-80); letter-spacing: -0.224px; }

.info-section { padding: var(--sp-lg) 0 0; }
.info-row { margin-bottom: var(--sp-md); }
.info-row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted-80);
  letter-spacing: -0.224px;
  margin-bottom: 2px;
}
.info-row-value { font-size: 17px; }
.info-row-value.price { font-weight: 600; }

.review-section { padding-top: var(--sp-lg); border-top: 1px solid var(--divider-soft); }
.review-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted-80);
  letter-spacing: -0.224px;
  margin-bottom: var(--sp-sm);
}
.review-item {
  background: var(--surface-pearl);
  border-radius: var(--rounded-md);
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-xs);
}
.review-item-stars { color: var(--star); font-size: 14px; }
.review-item-stars .star-empty { color: var(--hairline); }
.review-item-content { font-size: 14px; letter-spacing: -0.224px; margin-top: 2px; }

/* ==========================================================================
   6. 리뷰 작성
   ========================================================================== */
.star-input {
  display: flex;
  justify-content: center;
  gap: var(--sp-xs);
  margin: var(--sp-lg) 0;
}
.star-input .star {
  font-size: 40px;
  background: none;
  border: none;
  color: var(--hairline);
  cursor: pointer;
  padding: var(--sp-xxs);
  line-height: 1;
  transition: transform 0.1s ease;
}
.star-input .star:active { transform: scale(0.97); }
.star-input .star.filled { color: var(--star); }

.text-input {
  width: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  letter-spacing: -0.374px;
  line-height: 1.47;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  resize: vertical;
}
.text-input:focus { outline: 2px solid var(--primary-focus); outline-offset: -1px; }
.text-input::placeholder { color: var(--ink-muted-48); }

/* ==========================================================================
   9~11. 로그인 / 회원가입 / 기본 정보 입력
   ========================================================================== */
.form-field { margin-top: var(--sp-md); display: flex; flex-direction: column; gap: var(--sp-xxs); flex: 1; }
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted-80);
  letter-spacing: -0.224px;
}
.form-row { display: flex; gap: var(--sp-sm); }
.form-error {
  color: #d70015;
  font-size: 14px;
  letter-spacing: -0.224px;
  margin-top: var(--sp-sm);
  min-height: 20px;
}
.splash-greeting { text-align: center; min-height: 0; }
.setup-region-grid { margin-top: var(--sp-xs); }

input.text-input { resize: none; }
/* number input 스피너 제거 */
input.text-input::-webkit-outer-spin-button,
input.text-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.text-input[type="number"] { -moz-appearance: textfield; }

.top-bar-action {
  width: 44px;
  background: none;
  border: none;
  text-align: right;
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--primary);
  letter-spacing: -0.224px;
  cursor: pointer;
  padding: var(--sp-xs) 0;
}

/* ==========================================================================
   12. 내 프로필
   ========================================================================== */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-xxs);
  background: var(--surface-pearl);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg) var(--sp-md);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--rounded-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-xs);
}
.profile-name { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; font-family: var(--font-display); }
.profile-sub { font-size: 14px; color: var(--ink-muted-80); letter-spacing: -0.224px; }
.profile-email { font-size: 12px; color: var(--ink-muted-48); letter-spacing: -0.12px; }

.record-section { margin-top: var(--sp-lg); }
.record-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted-80);
  letter-spacing: -0.224px;
  margin-bottom: var(--sp-xs);
}
.record-item {
  background: var(--surface-pearl);
  border-radius: var(--rounded-md);
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-xs);
  font-size: 14px;
  letter-spacing: -0.224px;
}
.record-item-title { font-weight: 600; font-size: 15px; }
.record-item-sub { color: var(--ink-muted-48); font-size: 12px; margin-top: 2px; }
.profile-intro {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-muted-80);
  line-height: 1.5;
}

/* 신청 항목: 좌측 정보 + 우측 액션 버튼 */
.record-item-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.record-item-main { flex: 1; min-width: 0; }
.record-item-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xxs);
  flex-shrink: 0;
}
.record-action-btn {
  padding: 6px 12px;
  border-radius: var(--rounded-pill);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  cursor: pointer;
  transition: transform 0.1s ease;
  white-space: nowrap;
}
.record-action-btn:active { transform: scale(0.95); }
.record-action-btn.chat {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--on-primary);
}
.record-action-btn.cancel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--ink-muted-80);
}

/* ── 채팅 화면 ─────────────────────────────────── */
#screen-chat.active { height: 100dvh; }
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  background: var(--canvas-parchment);
}
.chat-empty {
  margin: auto;
  color: var(--ink-muted-48);
  font-size: 14px;
  letter-spacing: -0.224px;
}
.chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-xxs);
  max-width: 80%;
}
.chat-bubble-row.me {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-bubble {
  background: var(--primary);
  color: var(--on-primary);
  padding: 9px 14px;
  border-radius: var(--rounded-lg);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.224px;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-bubble-row.me .chat-bubble {
  border-bottom-right-radius: 4px;
}
.chat-time {
  font-size: 11px;
  color: var(--ink-muted-48);
  letter-spacing: -0.12px;
  flex-shrink: 0;
}
.chat-input-bar {
  display: flex;
  gap: var(--sp-xs);
  padding: var(--sp-sm) var(--sp-md);
  padding-bottom: calc(var(--sp-sm) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
}
.chat-input {
  flex: 1;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  padding: 10px 16px;
  font-family: var(--font-text);
  font-size: 15px;
  letter-spacing: -0.224px;
  color: var(--ink);
  background: var(--canvas);
}
.chat-input:focus { outline: 2px solid var(--primary-focus); outline-offset: -1px; }
.chat-input::placeholder { color: var(--ink-muted-48); }
.chat-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--rounded-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.chat-send:active { transform: scale(0.92); }
.record-empty {
  color: var(--ink-muted-48);
  font-size: 14px;
  letter-spacing: -0.224px;
  padding: var(--sp-sm) 0;
}
.record-chips { display: flex; flex-wrap: wrap; gap: var(--sp-xxs); margin-top: var(--sp-xxs); }
.record-chip {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--primary);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  padding: 3px 10px;
}

/* ==========================================================================
   7. 피드백
   ========================================================================== */
.feedback-intro { color: var(--ink-muted-48); margin-bottom: var(--sp-lg); }
.feedback-card {
  background: var(--surface-pearl);
  border-radius: var(--rounded-lg);
  padding: var(--sp-md);
  margin-bottom: var(--sp-sm);
}
.feedback-card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted-80);
  letter-spacing: -0.224px;
  margin-bottom: var(--sp-xxs);
}
.feedback-card ul { list-style: none; }
.feedback-card li {
  font-size: 15px;
  letter-spacing: -0.224px;
  padding: var(--sp-xxs) 0;
}
.feedback-card li::before { content: "·"; margin-right: var(--sp-xs); color: var(--primary); font-weight: 600; }

/* ── 지역 선택 (시/구 2단계) ─────────────────────────────────── */

.region-city-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-sm);
}

.region-city-btn {
  padding: 8px 14px;
  border-radius: var(--rounded-pill);
  border: 1.5px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted-80);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.region-city-btn:active { transform: scale(0.97); }

.region-city-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.region-district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: var(--sp-sm);
}

.region-selected-badge {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xxs);
  margin-top: var(--sp-xs);
  animation: fadeIn 0.2s ease;
}

.region-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.setup-region-grid {
  display: block;
  margin-top: var(--sp-sm);
}

/* ── 시간 선택 피커 (요일/시간대 2단계) ─────────────────────────── */

.time-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted-80);
  margin-bottom: 10px;
  margin-top: 4px;
  font-family: var(--font-text);
}

/* 요일 행 */
.time-day-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.time-day-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted-80);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-day-btn:active { transform: scale(0.93); }

.time-day-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.time-day-btn.weekend {
  color: #e05c5c;
  border-color: #f5c0c0;
}

.time-day-btn.weekend.selected {
  background: #e05c5c;
  border-color: #e05c5c;
  color: var(--on-primary);
}

/* 빠른 선택 버튼 */
.time-quick-row {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.time-quick-btn {
  padding: 4px 12px;
  border-radius: var(--rounded-md);
  border: 1.5px solid var(--hairline);
  background: var(--surface-pearl);
  color: var(--ink-muted-80);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-quick-btn:active {
  background: rgba(0, 102, 204, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* 시간 칩 그리드 (1시간 단위, 중복 선택) */
.time-hour-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.time-hour-btn {
  padding: 9px 0;
  border-radius: var(--rounded-md);
  border: 1.5px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted-80);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.time-hour-btn:active { transform: scale(0.95); }

.time-hour-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* 선택 요약 배지 */
.time-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--rounded-pill);
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  animation: fadeIn 0.2s ease;
  margin-top: 2px;
}
