/* Pool (Wavepool) 탭 */

.pool__sticky { position: sticky; top: 0; z-index: 15; background: var(--app-bg); }
/* 헤더 바는 다른 탭의 .topbar 와 같은 높이·패딩입니다 — 탭마다 두께가 달라 보이지 않게. */
.pool__head   { background: var(--surface-header); height: var(--topbar-h); box-sizing: border-box; padding: 0 var(--pad-screen); display: flex; align-items: center; }
.pool__row    { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; }
.pool__left   { display: flex; align-items: center; gap: 7px; min-width: 0; }
/* 부제목은 헤더 바 밖으로 내렸습니다 — 바 안에 두면 이 탭만 두꺼워집니다. */
.pool__sub    { background: var(--surface-header); padding: 0 var(--pad-screen) 10px; font-size: 12.5px; color: var(--text-dim); font-weight: 500; }

.facility-badge {
  display: flex; align-items: center; gap: 3px;
  background: rgba(255, 255, 255, .07); border: none; border-radius: var(--r-pill);
  padding: 6px 10px; min-width: 0; max-width: 180px; cursor: pointer; min-height: 32px;
  color: var(--text-muted);
}
.facility-badge span {
  font-size: 12px; font-weight: 600; color: var(--text-quiet);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.facility-badge.is-muted { opacity: .4; pointer-events: none; }

.pool__ctrl { padding: 16px var(--pad-screen) 0; }

.wpdays { display: flex; gap: 4px; margin-bottom: 14px; }
.wpday {
  flex: 1; padding: 8px 0 10px; border-radius: 12px;
  border: 1.5px solid var(--line-10); background: var(--surface-header);
  cursor: pointer; text-align: center; min-height: 52px;
}
.wpday.is-on { border-color: var(--accent-forecast); background: rgba(94, 198, 240, .10); }
.wpday__wd { font-family: var(--font-num); font-size: 10px; font-weight: 400; letter-spacing: .2px; opacity: .8; margin-bottom: 3px; line-height: 1.25; }
.wpday__d  { font-size: 16px; font-weight: 700; color: var(--text-strong); line-height: 1.05; }

.pool__tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .04); border-radius: var(--r-pill); padding: 4px; margin-bottom: 10px; }
/* 활성/비활성 대비를 확실히 주기 위해 --text-muted 보다 더 어두운 회색을 씁니다
   (연한 회색이면 알약 배경과 아이콘이 둘 다 밝아 보여 구분이 잘 안 됐습니다) */
.pool__tab {
  flex: 1; padding: 9px 0; border: none; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: transparent; min-height: 44px;
  color: #55555a;
}
.pool__tab.is-on { background: rgba(255, 255, 255, .10); color: var(--text-strong); }

.pool__body { padding: 0 var(--pad-screen) 90px; }

/* 시간표 */
.wprow { background: var(--surface-header); border: 1px solid var(--line-10); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.wprow__head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.wprow__time { font-family: var(--font-num); font-weight: 800; font-size: 17px; color: var(--text-strong); }
.wprow__tag  { background: rgba(255, 255, 255, .08); color: var(--text-quiet); font-size: 13px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.wprow__coves { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-10); padding-top: 10px; }
.wprow__cove { padding-right: 12px; cursor: pointer; }
.wprow__cove--right { text-align: right; padding-right: 0; padding-left: 12px; }
.wprow__covehead { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.wprow__cove--right .wprow__covehead { justify-content: flex-end; }
.wprow__covename { font-size: 13px; color: var(--text-dim); }
.wprow__lesson   { font-size: 12.5px; color: #51871B; font-weight: 700; }
.wprow__empty    { font-size: 12px; color: #4a4a4d; font-weight: 500; }
.wprow__badges   { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wprow__cove--right .wprow__badges { justify-content: flex-end; }
.wprow__tickets  { border-top: 1px solid var(--line-10); margin-top: 10px; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

/* 글목록 */
.pool__filters { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line-08); }
.pool__cats    { display: flex; gap: 20px; }
.pool__sorts   { display: flex; gap: 10px; padding-bottom: 9px; margin-right: 6px; }
.pool__subs    { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }

.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .08); border-radius: var(--r-pill);
  padding: 7px 12px; margin-bottom: 10px; min-height: 34px;
}
.filter-chip span { font-size: 12.5px; font-weight: 600; color: var(--text-mid); }
.filter-chip button { background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; padding: 0 2px; }

.ppost {
  background: var(--surface-header); border: 1px solid var(--line-10);
  border-radius: 14px; padding: 14px 15px; margin-bottom: 10px; cursor: pointer; position: relative;
}
.ppost__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.ppost__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.ppost__meta { display: flex; align-items: center; gap: 8px; }
.ppost__fac  { font-size: 11px; color: var(--text-dim); }
.ppost__who  { font-size: 15.5px; }
.ppost__menu { background: none; border: none; color: var(--text-dim); font-size: 18px; font-weight: 700; cursor: pointer; padding: 0 4px; }
.ppost__title { font-size: 16px; font-weight: 700; color: var(--text-strong); margin-bottom: 4px; }
.ppost__sub   { font-size: 14.5px; color: #a3a3a6; margin-bottom: 6px; }
.ppost__memo  { font-size: 15.5px; color: #b0b0b4; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ppost__dir   { font-size: 15.5px; color: #b0b0b4; margin-bottom: 6px; line-height: 1.5; }
.ppost__thumbs { display: flex; gap: 6px; margin-top: 8px; }
.ppost__thumb  { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #2a3a33, #1c2621); }
.ppost__ctx {
  position: absolute; top: 40px; right: 15px;
  background: var(--app-bg); border: 1px solid var(--line-12);
  border-radius: 10px; overflow: hidden; z-index: 5; min-width: 130px;
}
.ppost__ctx button {
  display: block; width: 100%; text-align: left; padding: 12px 14px;
  background: none; border: none; color: var(--text-mid); font-size: 13.5px; cursor: pointer; min-height: 44px;
}
.ppost__ctx button + button { border-top: 1px solid var(--line-08); color: var(--dot-alert); }

.pool__disclaimer { font-size: 12px; color: var(--text-dim); line-height: 1.6; text-align: center; padding: 16px 8px 4px; }

/* FAB */
.fab-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 8px); max-width: var(--app-max-width); margin: 0 auto; pointer-events: none; z-index: 40; }
.fab {
  position: absolute; right: 16px; bottom: 0; width: 52px; height: 52px; border-radius: 50%;
  border: none; background: #9F9F9F; color: var(--surface-header);
  font-size: 26px; font-weight: 800; cursor: pointer; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .35);
}

/* 시설 목록 */
.fac-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  width: 100%; padding: 14px 4px; background: none; border: none;
  border-bottom: 1px solid var(--line-08); cursor: pointer; text-align: left; min-height: 52px;
}
.fac-row__name { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.fac-row__c    { font-size: 12.5px; color: var(--text-dim); }
.fac-row__d    { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fac-row.is-on .fac-row__name { color: var(--accent-forecast); }

/* 내 활동 */
.act-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; padding: 15px 4px; background: none; border: none;
  border-bottom: 1px solid var(--line-08); cursor: pointer; min-height: 52px;
}
.act-row__k { font-size: 15px; color: var(--text-mid); }
.act-row__v { font-size: 15px; color: var(--text-muted); font-weight: 700; }
.act-stats  { display: flex; gap: 10px; margin-top: 16px; }
.act-stat   { flex: 1; background: var(--surface-header); border: 1px solid var(--line-10); border-radius: 12px; padding: 14px 10px; text-align: center; }
.act-stat__n { font-size: 20px; font-weight: 800; color: var(--text-strong); }
.act-stat__k { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* 글쓰기 폼 */
.pf__label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.pf__field { margin-bottom: 18px; }
.pf__input {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1.5px solid var(--line-12); border-radius: 10px;
  font-size: 14.5px; color: var(--text-strong); background: var(--surface-card); outline: none;
}
.pf__opt {
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-12);
  background: var(--surface-header); color: var(--text-muted);
  font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 42px;
}
.pf__opt.is-on { border-color: var(--accent-forecast); background: rgba(94, 198, 240, .14); color: var(--accent-forecast); }
.pf__block { border: 1px solid var(--line-10); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.pf__block.is-off { opacity: .35; pointer-events: none; }
.pf__add {
  background: none; border: 1px dashed var(--line-12); border-radius: 10px;
  color: var(--text-muted); font-size: 13.5px; font-weight: 600;
  padding: 11px 14px; cursor: pointer; width: 100%; min-height: 44px;
}
.pf__err { font-size: 13px; color: #ffb9b0; margin-top: 10px; line-height: 1.5; }
.pf__slots { display: flex; gap: 6px; flex-wrap: wrap; }
.pf__slot  { width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(135deg, #2a3a33, #1c2621); border: 1px dashed var(--line-12); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 20px; cursor: pointer; }

/* 유형 선택 시트 */
.wtype { display: flex; gap: 12px; }
.wtype__card {
  flex: 1; background: var(--surface-header); border: 1px solid var(--line-10);
  border-radius: var(--r-mid); padding: 22px 16px; cursor: pointer; text-align: center;
}
.wtype__t { font-size: 16px; font-weight: 700; color: var(--text-strong); margin-top: 10px; }
.wtype__d { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
