/* ============================================================
   Screens — 메인 탭 화면들 (Screens.jsx)
   ============================================================
   섹션 순서
     1) Shared list primitives — ToolbarChip, ListPill, ListStatTile,
        ListSectionHeader, SavedFilterNotice, common toolbar
     2) CenterModal / FilterModal / SortModal
     3) MapPanel
     4) CompareView (full-screen 비교 모달)
     5) PartyScreen / ClubScreen — 리스트 카드 
     6) CompareWrapRow (선택 오버레이)
     7) RouteScreen — 크롤 타임라인
     8) MeScreen — 프로필 / 갈곳·히스토리·저장
   ============================================================ */

/* ────────────────────────────────────────────────────
   1. Shared list primitives
   ──────────────────────────────────────────────────── */
.cp-toolbar-chip {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  flex-shrink: 0;
  padding: 0px 14px;
  border-radius: 14px;
  background: rgba(36, 36, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E5E7EB;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.cp-toolbar-chip[data-clickable="true"] { cursor: pointer; }
.cp-toolbar-chip[data-clickable="false"] { cursor: default; }
.cp-toolbar-chip__icon-slot {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.55);
}

.cp-list-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.cp-list-pill--blue  { background: rgba(59, 130, 246, 0.10); color: #60A5FA; border-color: rgba(59, 130, 246, 0.10); }
.cp-list-pill--green { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; border-color: rgba(16, 185, 129, 0.20); }
.cp-list-pill--cyan  { background: rgba(6, 182, 212, 0.15);  color: #67E8F9; border-color: rgba(6, 182, 212, 0.20); }
.cp-list-pill--pink  { background: rgba(236, 72, 153, 0.15); color: #F9A8D4; border-color: rgba(236, 72, 153, 0.20); }

.cp-stat-tile {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
}
.cp-stat-tile__label { margin: 0; font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.cp-stat-tile__value { margin: 4px 0 0; font-size: 11px; font-weight: 700; color: #fff; }

.cp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cp-section-header__body { min-width: 0; }
.cp-section-header__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.cp-section-header__sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}
.cp-section-header__count {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(36, 36, 46, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cp-saved-filter {
  padding: 12px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.cp-saved-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(36, 36, 46, 0.85);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
}
.cp-saved-filter__hint {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* Sticky toolbar (Party/Club 화면 공용) */
.cp-list-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(12px);
}
.cp-list-toolbar__chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cp-list-toolbar__hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.cp-list-toolbar__hint p { margin: 0; }

/* 작은 툴바 칩 안 카운트 뱃지 (활성 필터 수 표시) */
.cp-toolbar-chip__count {
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 16, 119, 0.20);
  color: #FFB8DA;
  font-size: 10px;
  font-weight: 800;
}
.cp-toolbar-chip__count--cmp {
  background: rgba(139, 92, 246, 0.15);
  color: #C4B5FD;
}
.cp-toolbar-chip__sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

/* ────────────────────────────────────────────────────
   2. CenterModal / FilterModal / SortModal
   ──────────────────────────────────────────────────── */
.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.cp-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.cp-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  background: #0E0E14;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.cp-fmodal__head {
  padding: 20px 16px 12px;
}
.cp-fmodal__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cp-fmodal__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.cp-fmodal__title {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.cp-fmodal__close {
  all: unset;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.cp-fmodal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}
.cp-fmodal__sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cp-fmodal__sec-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.cp-fmodal__chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cp-fmodal__chip {
  all: unset;
  cursor: pointer;
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(36, 36, 46, 0.6);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.cp-fmodal__chip[data-active="true"][data-variant="all"] {
  background: linear-gradient(135deg, #FF1077, #7B49FF);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 16, 119, 0.32);
}
.cp-fmodal__chip[data-active="true"][data-variant="opt"] {
  background: rgba(236, 72, 153, 0.15);
  color: #F9A8D4;
  border-color: rgba(236, 72, 153, 0.20);
}

.cp-fmodal__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 14, 20, 0.95);
  padding: 16px;
}
.cp-fmodal__foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.cp-fmodal__foot-btn {
  all: unset;
  cursor: pointer;
  text-align: center;
  padding: 12px 0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  box-sizing: border-box;
}
.cp-fmodal__foot-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(36, 36, 46, 0.6);
  color: rgba(255, 255, 255, 0.7);
}
.cp-fmodal__foot-btn--apply {
  background: linear-gradient(135deg, #FF1077, #7B49FF);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 16, 119, 0.32);
}

/* SortModal options */
.cp-sortmodal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-sortmodal__opt {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(36, 36, 46, 0.6);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
}
.cp-sortmodal__opt[data-active="true"] {
  border-color: #FF1077;
  background: rgba(255, 16, 119, 0.10);
  color: #fff;
}
.cp-sortmodal__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 14, 20, 0.95);
  padding: 16px;
}
.cp-sortmodal__close {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(36, 36, 46, 0.6);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  box-sizing: border-box;
}

/* ────────────────────────────────────────────────────
   3. MapPanel
   ──────────────────────────────────────────────────── */
.cp-mappanel {
  border-radius: 20px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 38%),
    linear-gradient(180deg, #171727 0%, #10101a 100%);
}
.cp-mappanel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cp-mappanel__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #67E8F9;
  text-transform: uppercase;
}
.cp-mappanel__title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.cp-mappanel__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}
.cp-mappanel__counter {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.20);
  padding: 6px 10px;
  text-align: right;
}
.cp-mappanel__counter-label { margin: 0; font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.cp-mappanel__counter-num { margin: 2px 0 0; font-size: 14px; font-weight: 800; color: #fff; }

.cp-mappanel__canvas-wrap {
  margin-top: 16px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.95) 0%, rgba(18, 28, 42, 0.92) 100%);
}
.cp-mappanel__canvas {
  position: relative;
  aspect-ratio: 0.96;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.10);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(12, 18, 28, 0.96) 0%, rgba(13, 22, 38, 0.96) 100%);
}
.cp-mappanel__canvas-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cp-mappanel__counter-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
}
.cp-mappanel__pin {
  all: unset;
  cursor: pointer;
  position: absolute;
  transform: translate(-50%, -50%);
}
.cp-mappanel__pin-num {
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #22D3EE;
  border: 1px solid rgba(165, 243, 252, 0.30);
  color: #0F172A;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-mappanel__list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-mappanel__item {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(36, 36, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-mappanel__item-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  flex-shrink: 0;
  background: rgba(34, 211, 238, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5F3FC;
  font-size: 12px;
  font-weight: 900;
}
.cp-mappanel__item-body { flex: 1; min-width: 0; }
.cp-mappanel__item-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-mappanel__item-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-mappanel__item-right {
  flex-shrink: 0;
  text-align: right;
}
.cp-mappanel__item-stat {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.cp-mappanel__empty {
  margin-top: 16px;
  padding: 20px 16px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(36, 36, 46, 0.6);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

/* ────────────────────────────────────────────────────
   4. CompareView (full-screen 비교 모달)
   ──────────────────────────────────────────────────── */
.cp-cmpview {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cp-cmpview__scrim { position: absolute; inset: 0; }
.cp-cmpview__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  background: #0E0E14;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}
.cp-cmpview__head {
  padding: 18px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cp-cmpview__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.cp-cmpview__sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.cp-cmpview__head-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cp-cmpview__clear {
  all: unset;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(36, 36, 46, 0.6);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
}
.cp-cmpview__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cp-cmpview__empty {
  padding: 28px 16px;
  text-align: center;
  border-radius: 16px;
  background: #15151E;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-cmpview__empty-title { margin: 0; font-size: 15px; font-weight: 800; color: #fff; }
.cp-cmpview__empty-sub   { margin: 6px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.cp-cmpview__empty-cta {
  all: unset;
  cursor: pointer;
  display: inline-block;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF1077, #7B49FF);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 16, 119, 0.32);
}

.cp-cmpview__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-cmpview__card {
  border-radius: 16px;
  overflow: hidden;
  background: #15151E;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-cmpview__card-media {
  position: relative;
  height: 128px;
}
.cp-cmpview__card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #07070A 0%, rgba(7, 7, 10, 0.45) 50%, transparent 100%);
}
.cp-cmpview__card-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.cp-cmpview__card-headline {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-cmpview__card-subline {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-cmpview__card-x {
  all: unset;
  cursor: pointer;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-cmpview__facts {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-cmpview__fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}
.cp-cmpview__fact-key { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.cp-cmpview__fact-val {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-cmpview__card-foot { padding: 0 14px 14px; }
.cp-cmpview__card-cta {
  all: unset;
  cursor: pointer;
  width: 100%;
  padding: 12px 0;
  border-radius: 14px;
  text-align: center;
  box-sizing: border-box;
  background: linear-gradient(135deg, #FF1077, #7B49FF);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 16, 119, 0.32);
}

/* ────────────────────────────────────────────────────
   5. PartyScreen / ClubScreen — list cards
   ──────────────────────────────────────────────────── */
.cp-screen { padding-bottom: 32px; }
.cp-screen__head { padding: 14px 16px 0; }

.cp-list-body {
  padding: 12px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-list-empty {
  padding: 40px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.cp-list-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-list-card {
  all: unset;
  cursor: pointer;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #15151E;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-list-card__top {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.cp-list-card__thumb {
  width: 112px;
  flex-shrink: 0;
  position: relative;
  min-height: 92px;
  background: #0E0E14;
  overflow: hidden;
}
.cp-list-card__live {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 16, 119, 0.92);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
}
.cp-list-card__body {
  flex: 1;
  padding: 12px 14px 12px 0;
  min-width: 0;
}
.cp-list-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cp-list-card__head-body { min-width: 0; }
.cp-list-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-list-card__sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.cp-list-card__sub--ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-list-card__price-wrap { flex-shrink: 0; text-align: right; }
.cp-list-card__price {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.cp-list-card__rating {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}
.cp-list-card__rating-num {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.cp-list-card__pills {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cp-list-card__bottom {
  padding: 10px 14px 12px;
}
.cp-list-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cp-list-card__meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}
.cp-list-card__meta-time { font-family: 'JetBrains Mono', monospace; }
.cp-list-card__meta-date { color: #FF7AB8; }

.cp-list-cmp-btn {
  all: unset;
  cursor: pointer;
  text-align: center;
  padding: 10px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(36, 36, 46, 0.6);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cp-list-cmp-btn[data-on="true"] {
  border-color: rgba(139, 92, 246, 0.20);
  background: rgba(139, 92, 246, 0.10);
  color: #C4B5FD;
}

/* ────────────────────────────────────────────────────
   6. CompareWrapRow — 비교 모드 체크 오버레이
   ──────────────────────────────────────────────────── */
.cp-cmp-wrap {
  position: relative;
  border-radius: 14px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 160ms ease;
}
.cp-cmp-wrap[data-selected="true"] {
  outline-color: #FF1077;
}
.cp-cmp-wrap__check {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
}
.cp-cmp-wrap[data-selected="true"] .cp-cmp-wrap__check {
  background: #FF1077;
  border-color: #FF1077;
  box-shadow: 0 0 12px rgba(255, 16, 119, 0.6);
}

/* ────────────────────────────────────────────────────
   7. RouteScreen
   ──────────────────────────────────────────────────── */
.cp-route__head {
  padding: 14px 16px 10px;
  position: relative;
}
.cp-route__head-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.cp-route__head-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cp-route__head-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: rgba(200, 255, 26, 0.85);
  letter-spacing: 0.12em;
  margin-left: 8px;
  text-transform: uppercase;
  vertical-align: middle;
}
.cp-route__head-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.cp-route__viz {
  margin: 0 16px 20px;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #15151E 0%, #1E1E2A 100%);
  border: 1px solid rgba(200, 255, 26, 0.25);
  display: flex;
  gap: 16px;
  align-items: center;
}
.cp-route__viz-body { flex: 1; }
.cp-route__viz-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(200, 255, 26, 0.9);
  text-transform: uppercase;
}
.cp-route__viz-total {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.cp-route__viz-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  margin-top: 4px;
}
.cp-route__viz-tag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(200, 255, 26, 0.16);
  color: #C8FF1A;
}

.cp-route__timeline {
  padding: 0 16px;
  position: relative;
}
.cp-route__line {
  position: absolute;
  left: 36px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, #FF1077 0%, #7B49FF 50%, #C8FF1A 100%);
  opacity: 0.5;
}
.cp-route__stop {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
}
.cp-route__pin-col {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cp-route__pin {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07070A;
  font-weight: 900;
  font-size: 16px;
  border: 2px solid #07070A;
  z-index: 1;
}
.cp-route__pin-time {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.cp-route__card {
  all: unset;
  cursor: pointer;
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  background: #15151E;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-route__card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cp-route__card-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}
.cp-route__card-title {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 3px;
}
.cp-route__card-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin-top: 4px;
}
.cp-route__card-rating {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.cp-route__hop {
  position: absolute;
  left: 56px;
  top: 60px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: #07070A;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cp-route__suggest {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}
.cp-route__suggest-pin-col {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.cp-route__suggest-pin {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
}
.cp-route__suggest-card {
  all: unset;
  cursor: pointer;
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.cp-route__suggest-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(31, 210, 255, 0.85);
  text-transform: uppercase;
}
.cp-route__suggest-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}
.cp-route__suggest-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-top: 4px;
}

.cp-route__cta-wrap { padding: 24px 16px 0; }
.cp-route__cta-text {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* ────────────────────────────────────────────────────
   8. MeScreen
   ──────────────────────────────────────────────────── */
.cp-me__profile {
  position: relative;
  padding: 20px 16px 16px;
}
.cp-me__profile-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
}
.cp-me__avatar-wrap { position: relative; }
.cp-me__avatar-online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2DE38E;
  border: 2px solid #07070A;
}
.cp-me__name {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
  letter-spacing: -0.02em;
}
.cp-me__handle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.cp-me__stats {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.cp-me__stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.cp-me__stat-num {
  font-size: 18px;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
}
.cp-me__stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
}

.cp-me__badges {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cp-me__badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 16, 119, 0.12);
  color: #FF7AB8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  border: 1px solid rgba(255, 16, 119, 0.25);
}

.cp-me__tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 8px;
}
.cp-me__tab {
  all: unset;
  cursor: pointer;
  flex: 1;
  padding: 9px 0;
  text-align: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}
.cp-me__tab[data-active="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cp-me__list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-me__ticket {
  all: unset;
  cursor: pointer;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #15151E;
  border: 1px solid rgba(45, 227, 142, 0.22);
  position: relative;
}
.cp-me__ticket-media {
  position: relative;
  height: 110px;
  background: #0E0E14;
  overflow: hidden;
}
.cp-me__ticket-overlay {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cp-me__ticket-pills { display: flex; gap: 6px; }
.cp-me__ticket-venue {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}
.cp-me__ticket-title {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.cp-me__ticket-foot {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cp-me__ticket-when-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}
.cp-me__ticket-when {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}
.cp-me__ticket-when-time {
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.6);
}
.cp-me__ticket-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 210, 255, 0.10);
  border: 1px solid rgba(31, 210, 255, 0.28);
  color: #9CF0FF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cp-me__notice {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}
.cp-me__notice-em { color: rgba(255, 255, 255, 0.7); font-weight: 700; }

.cp-me__history-row {
  padding: 12px;
  border-radius: 12px;
  background: #15151E;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cp-me__history-title { font-size: 13px; font-weight: 800; color: #fff; }
.cp-me__history-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.cp-me__history-date { font-family: 'JetBrains Mono', monospace; }

.cp-me__settings { padding: 24px 16px 0; }
.cp-me__settings-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cp-me__settings-list {
  border-radius: 14px;
  overflow: hidden;
  background: #15151E;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-me__settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-me__settings-row:last-child { border-bottom: none; }
.cp-me__settings-label { flex: 1; font-size: 13px; color: #fff; font-weight: 600; }
.cp-me__settings-meta  { font-size: 11px; color: rgba(255, 255, 255, 0.4); font-weight: 500; }

/* ============================================================
   루트 결과 요약 카드 (RouteResult — 스탑/입장료/이동 · 만남확률/칼로리/예산/택시)
   ============================================================ */
.cp-rt-summary {
  margin: 12px 16px 16px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #15151e 0%, #1e1e2a 100%);
  border: 1px solid rgba(200, 255, 26, 0.25);
}
.cp-rt-stats {
  display: grid;
  text-align: center;
}
.cp-rt-stats--3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cp-rt-stats--4 { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cp-rt-divider {
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, transparent, rgba(123, 73, 255, 0.3), transparent);
}
.cp-rt-stat__num {
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cp-rt-stat__num--big { font-size: 17px; }
.cp-rt-stat__num--sm { font-size: 13px; }
.cp-rt-stat__label {
  margin-top: 4px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.cp-rt-stat__label--big { font-size: 10px; }
.cp-rt-stat__label--sm { font-size: 9px; }

.cp-author-profile {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}
.cp-author-profile.is-clickable { cursor: pointer; }
.cp-author-profile:disabled { cursor: default; }
.cp-author-profile__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cp-profile-pop,
.cp-chat-modal {
  width: min(420px, 100%);
  box-sizing: border-box;
  border-radius: 18px;
  background: #15151e;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.cp-profile-pop {
  position: relative;
  padding: 26px 18px 18px;
  display: grid;
  justify-items: center;
  text-align: center;
}
.cp-profile-pop__close,
.cp-chat-close {
  all: unset;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.cp-profile-pop__close { position: absolute; top: 12px; right: 12px; }
.cp-profile-pop__name { margin-top: 12px; color: #fff; font-size: 20px; font-weight: 900; }
.cp-profile-pop__gender { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.78); font-size: 11px; font-weight: 900; }
.cp-profile-pop__handle { margin-top: 4px; color: rgba(255,255,255,0.48); font-size: 12px; font-weight: 700; }
.cp-profile-pop__chat {
  all: unset;
  cursor: pointer;
  margin-top: 18px;
  width: 100%;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg,#FF1077,#7B49FF);
  box-shadow: 0 10px 28px rgba(255,16,119,0.26);
}
.cp-chat-modal { overflow: hidden; display: flex; flex-direction: column; max-height: min(620px, 86vh); }
html.cp-chat-scroll-lock,
body.cp-chat-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.cp-chat-backdrop {
  position: fixed;
  inset: 0;
  height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: block;
  background: #07070A;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
.cp-chat-backdrop .cp-chat-modal {
  position: absolute;
  top: var(--cp-chat-vtop, 0px);
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100vw);
  height: var(--cp-chat-vh, 100dvh);
  max-height: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.cp-chat-head {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #15151e;
}
.cp-chat-head__copy { flex: 1; min-width: 0; }
.cp-chat-head__name { color: #fff; font-size: 15px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-chat-head__meta { margin-top: 3px; color: rgba(255,255,255,0.42); font-size: 10px; font-weight: 700; }
.cp-chat-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.cp-chat-empty { margin: auto; color: rgba(255,255,255,0.42); font-size: 12px; font-weight: 700; }
.cp-chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.cp-chat-msg.is-mine { align-self: flex-end; justify-content: flex-end; }
.cp-chat-msg__stack { display: grid; gap: 3px; justify-items: start; }
.cp-chat-msg.is-mine .cp-chat-msg__stack { justify-items: end; }
.cp-chat-bubble { padding: 9px 11px; border-radius: 13px; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.86); font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.cp-chat-msg.is-mine .cp-chat-bubble { background: linear-gradient(135deg,#FF1077,#7B49FF); color: #fff; }
.cp-chat-read { color: rgba(255,255,255,0.42); font-size: 10px; font-weight: 800; }
.cp-chat-typing { align-self: flex-start; padding: 7px 10px; border-radius: 999px; background: rgba(31,210,255,0.12); color: #9CF0FF; font-size: 11px; font-weight: 800; }
.cp-chat-inputrow { flex-shrink: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,0.08); background: #15151e; }
.cp-chat-inputrow input { min-width: 0; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.05); color: #fff; padding: 0 12px; outline: none; font-size: 13px; font-weight: 700; }
.cp-chat-inputrow button { border: 0; cursor: pointer; height: 40px; padding: 0 14px; border-radius: 12px; background: #C8FF1A; color: #07070A; font-size: 12px; font-weight: 900; }
.cp-chat-inputrow button:disabled { opacity: 0.45; cursor: default; }
.cp-chat-inputrow input:disabled { opacity: 0.62; cursor: not-allowed; }
.cp-chat-room-left { align-self: center; max-width: 90%; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.62); font-size: 11px; font-weight: 900; text-align: center; }
.cp-me-chatrow {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  text-align: left;
  font: inherit;
  gap: 11px;
  padding: 12px;
  border-radius: 14px;
  background: #15151E;
  border: 1px solid rgba(255,255,255,0.06);
}
.cp-me-chatrow__copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cp-me-chatrow__top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cp-me-chatrow__name { color: #fff; font-size: 13px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-me-chatrow__badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: #FF1077; color: #fff; font-size: 10px; font-weight: 900; }
.cp-me-chatrow__last { color: rgba(255,255,255,0.62); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-me-chatrow__meta { color: rgba(255,255,255,0.36); font-size: 10px; font-weight: 700; }
.cp-author-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.cp-author-line__avatar {
  flex: 0 0 auto;
}
.cp-author-line__avatar .cp-author-profile__text {
  display: none;
}
/* Chat room actions and message metadata */
.cp-chat-avatar-btn { all: unset; cursor: pointer; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 999px; }
.cp-chat-avatar-btn:focus-visible { outline: 2px solid rgba(31,210,255,0.8); outline-offset: 2px; }
.cp-chat-leave { border: 1px solid rgba(255,255,255,0.10); cursor: pointer; height: 32px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.78); font-size: 11px; font-weight: 900; white-space: nowrap; }
.cp-chat-leave:disabled { opacity: 0.45; cursor: default; }
.cp-chat-msg__meta { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.42); font-size: 10px; font-weight: 800; }
.cp-chat-photo-pop { position: relative; width: min(300px, calc(100vw - 48px)); border-radius: 24px; border: 1px solid rgba(255,255,255,0.12); background: #101018; box-shadow: 0 30px 80px rgba(0,0,0,0.72); padding: 30px 20px 22px; display: grid; justify-items: center; gap: 14px; }
.cp-chat-photo-pop__close { position: absolute; top: 12px; right: 12px; }
.cp-chat-photo-pop__name { color: #fff; font-size: 15px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kakao-style chat message layout */
.cp-chat-msg { align-items: flex-start; gap: 8px; max-width: 94%; }
.cp-chat-msg.is-mine { align-self: flex-end; max-width: 82%; }
.cp-chat-msg__stack { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cp-chat-msg__name { color: rgba(255,255,255,0.72); font-size: 11px; font-weight: 900; line-height: 1.2; padding-left: 2px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-chat-msg.is-mine .cp-chat-msg__stack { justify-items: end; }
.cp-chat-msg:not(.is-mine) .cp-chat-bubble { border-top-left-radius: 5px; margin-top: 1px; }
.cp-chat-msg.is-mine .cp-chat-bubble { border-top-right-radius: 5px; }
.cp-chat-msg:not(.is-mine) .cp-chat-msg__meta { padding-left: 2px; }

/* Chat photo attachments */
.cp-chat-inputrow { grid-template-columns: 40px 1fr auto; }
.cp-chat-inputrow .cp-chat-plus { width: 40px; padding: 0; display: inline-grid; place-items: center; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.08); }
.cp-chat-attach-img { display: block; width: min(220px, 62vw); max-height: 260px; object-fit: cover; border-radius: 10px; }
.cp-chat-bubble__text { margin-top: 7px; }
.cp-chat-bubble .cp-chat-attach-img:only-child { margin: -3px; }

/* Chat attachment image viewer */
.cp-chat-attach-btn { all: unset; cursor: zoom-in; display: block; border-radius: 10px; overflow: hidden; }
.cp-chat-image-pop { position: relative; width: min(92vw, 720px); max-height: 88vh; display: grid; place-items: center; }
.cp-chat-image-pop img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,0.78); background: #0E0E14; }
.cp-chat-image-pop__close { position: absolute; top: -14px; right: -14px; z-index: 2; }

.cp-chat-hidden-note { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 8px 11px; border-radius: 10px; border: 1px dashed rgba(255,255,255,0.22); color: rgba(255,255,255,0.56); background: rgba(255,255,255,0.05); font-size: 11px; font-weight: 900; }
.cp-chat-bubble__text.is-hidden { color: rgba(255,255,255,0.58); font-weight: 900; }
