/* 고민 살롱 — 칩 줄 · 사연 상세/작성 팝업 · 답글. 색은 tokens.css 토큰만 쓴다(낮·밤 모두 같은 규칙). */

/* 고민 종류 칩: 줄 배경 없이 버튼만 놓는다. 좁은 화면에서는 줄바꿈으로 모두 보인다. */
.hb-salon .salon-cats-wrap { padding-top: 22px; }
.hb-salon .cat-scroll { overflow: visible; background: none; border: 0; box-shadow: none; }
.hb-salon .cat-row { width: auto; flex-wrap: wrap; justify-content: center; gap: 8px 6px; padding: 0; background: none; }
.hb-salon .cat-chip { font-family: inherit; padding: 8px 12px; }
.hb-salon .cat-chip:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 2px; }

.pp-cta.is-ghost {
  background: transparent; color: var(--text-pure); border: 2px solid var(--neon-pink); box-shadow: none; cursor: pointer; font-family: inherit;
}
.pp-cta.is-ghost:hover { background: color-mix(in srgb, var(--neon-pink) 16%, transparent); box-shadow: none; }

.hb-salon .story-card.is-erased { opacity: 0.8; border-style: dashed; }
.hb-salon .story-card:focus-visible, .hb-salon .cmt-card.is-link:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 3px; }
.hb-salon .cmt-card.is-link { cursor: pointer; }
.hb-salon .cmt-card.is-link:hover { border-color: var(--neon-pink); }
.salon-more-row { display: flex; justify-content: center; margin-top: 18px; }
.salon-more-row .btn-offer-no { flex: 0 0 auto; min-width: 180px; }
.salon-link { padding: 0; border: 0; background: none; color: var(--neon-cyan); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* API 통계의 실제 값만 표시한다. 빈 상태는 숫자나 꼬리표를 만들어 내지 않는다. */
.salon-stat-row { display: grid; grid-template-columns: minmax(92px, 1fr) minmax(48px, 2fr) auto; align-items: center; gap: 10px; width: 100%; font-size: 14px; }
.salon-stat-name { color: var(--text-sub); font-weight: 750; }
.salon-stat-track { display: block; height: 10px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--text-muted) 20%, transparent); }
.salon-stat-fill { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan)); }
.salon-stat-count { color: var(--text-pure); font-variant-numeric: tabular-nums; white-space: nowrap; }
.salon-stat-tag { display: inline-flex; align-items: center; margin: 4px; padding: 5px 10px; border: 1px solid var(--border-box-purple); border-radius: 999px; color: var(--text-sub); font-size: 14px; }
/* 키워드 칸은 상품 포스터의 176px 격자다. 격자 칸마다 한 줄로 쌓이면 제목 위로 넘친다. */
.hb-salon #salon-tags.pp-cut-viz {
  display: flex; flex-flow: row wrap; align-content: center; justify-content: center; align-items: center;
  gap: 8px; padding: 8px 6px; box-sizing: border-box; overflow: hidden;
}
.hb-salon #salon-tags .salon-stat-tag { margin: 0; white-space: nowrap; }
.salon-empty-note { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.salon-recent-reply { display: grid; align-content: start; gap: 9px; }
.salon-recent-reply .cm-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.salon-recent-title { margin: 0; color: var(--text-pure); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.salon-recent-body { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.salon-recent-reply .cm-like { color: var(--text-muted); font-size: 14px; }
.salon-ai-state[hidden] { display: none; }
.salon-ai-state { display: grid; justify-items: start; gap: 8px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--neon-cyan) 55%, var(--border-box-purple)); border-radius: 14px; background: color-mix(in srgb, var(--neon-cyan) 8%, var(--bg-card-inner)); }
.salon-ai-state-copy, .salon-ai-poll-note { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.7; }
.salon-ai-poll-note { color: var(--text-muted); }
.salon-act.is-ai-retry { border-color: var(--neon-cyan); color: var(--text-pure); }
.salon-act.is-ai-retry:hover { background: color-mix(in srgb, var(--neon-cyan) 12%, var(--bg-card-inner)); }

.salon-cta { text-align: center; }
.salon-cta-copy { font-size: 16px; color: var(--text-sub); line-height: 1.8; margin: 8px 0 16px; }
.salon-cta-btn { max-width: 280px; margin: 0 auto; display: block; width: 100%; }

/* 팝업 */
html.salon-lock { overflow: hidden; }
.salon-dialog {
  position: fixed; inset: 0; height: fit-content; width: min(680px, calc(100vw - 24px)); max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px); margin: auto; padding: 0; box-sizing: border-box;
  border: 1px solid var(--border-box-bright, var(--neon-cyan)); border-radius: 20px;
  background: var(--bg-card); color: var(--text-pure); font: 16px/1.7 var(--font-main); overflow: hidden;
  box-shadow: 0 24px 80px var(--shadow-deep, rgba(0, 0, 0, .6));
}
.salon-dialog[open] { display: flex; flex-direction: column; }
.salon-dialog::backdrop { background: rgba(10, 8, 24, .72); }
.salon-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-box-purple); flex: 0 0 auto; }
.salon-dlg-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.salon-dlg-close {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-box-purple);
  background: var(--bg-card-inner); color: var(--text-pure); font-size: 16px; cursor: pointer;
}
.salon-dlg-close:hover { border-color: var(--neon-pink); }
.salon-dlg-close:focus-visible, .salon-act:focus-visible, .salon-input:focus-visible, .salon-link:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 2px; }
.salon-dlg-scroll { padding: 20px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; }
.salon-dlg-title { margin: 0 0 6px; font-size: clamp(19px, 4vw, 24px); font-weight: 900; line-height: 1.45; color: var(--text-pure); overflow-wrap: anywhere; }
.salon-dialog > .salon-dlg-head > .salon-dlg-title { margin: 0; }
.salon-dlg-meta { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); }
.salon-dlg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.9; color: var(--text-sub); padding: 4px 0 16px; }
.salon-care { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--neon-cyan); background: color-mix(in srgb, var(--neon-cyan) 10%, transparent); font-size: 15px; line-height: 1.75; color: var(--text-pure); }
.salon-dlg-note { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-sub); }
.salon-dlg-note[data-kind="bad"] { color: var(--pink-ink, var(--neon-pink)); font-weight: 700; }
.salon-dlg-note[data-kind="ok"] { color: var(--neon-lime); font-weight: 700; }

.salon-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.salon-act {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-box-purple);
  background: var(--bg-card-inner); color: var(--text-sub); font: 700 15px/1.4 var(--font-main); cursor: pointer;
}
.salon-act:hover { border-color: var(--neon-pink); color: var(--text-pure); }
.salon-act.is-like[aria-pressed="true"] { border-color: var(--neon-pink); color: var(--pink-ink, var(--neon-pink)); }
.salon-act.is-danger { border-color: var(--neon-pink); }
.salon-act:disabled { opacity: .55; cursor: default; }
.salon-report { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.salon-report .salon-input { flex: 1 1 180px; }

.salon-replies { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border-hair); }
.salon-replies h3 { margin: 0 0 10px; font-size: 17px; font-weight: 900; color: var(--text-pure); }
.salon-reply-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.salon-reply { padding: 12px 14px; border-radius: 14px; background: var(--bg-card-inner); border: 1px solid var(--border-hair); }
.salon-reply-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.salon-reply-head b { color: var(--text-pure); font-size: 15px; }
.salon-reply-body { margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.75; color: var(--text-sub); }

/* 폼 */
.salon-form { display: grid; gap: 12px; }
.salon-field { display: grid; gap: 6px; font-size: 15px; font-weight: 800; color: var(--text-pure); }
.salon-input {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border-input, var(--border-box-purple));
  background: var(--bg-input, var(--bg-card-inner)); color: var(--text-pure); font: 500 16px/1.7 var(--font-main); resize: vertical;
}
.salon-input::placeholder { color: var(--text-muted); }
select.salon-input { min-height: 44px; }
.salon-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.salon-form-foot .btn-offer-yes { flex: 0 1 auto; }
.salon-count { font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.salon-rule { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.salon-gate { display: grid; justify-items: center; gap: 12px; padding: 18px 8px; text-align: center; color: var(--text-sub); }
.salon-gate p { margin: 0; }
.salon-gate .btn-offer-yes { flex: 0 0 auto; min-width: 200px; text-align: center; text-decoration: none; }

@media (max-width: 600px) {
  .salon-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .salon-dlg-scroll { padding: 16px; }
  .salon-form-foot .btn-offer-yes { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .salon-act, .hb-salon .cat-chip { transition: none; } }

/* 운영팀 글 표시 */
.sc-staff {
  padding: 2.5px 8px; border-radius: 999px; font-size: 14px; font-weight: 900;
  border: 1px solid var(--neon-cyan); color: var(--text-pure); background: color-mix(in srgb, var(--neon-cyan) 14%, transparent);
}
.sc-ai, .sc-member {
  padding: 2.5px 8px; border-radius: 999px; font-size: 14px; font-weight: 900;
}
.sc-ai { border: 1px solid var(--neon-pink); color: var(--text-pure); background: color-mix(in srgb, var(--neon-pink) 14%, transparent); }
.sc-member { border: 1px solid var(--border-box-purple); color: var(--text-sub); background: var(--bg-card-inner); }

@media (max-width: 600px) {
  .salon-stat-row { grid-template-columns: minmax(76px, 1fr) minmax(40px, 1.5fr) auto; gap: 7px; font-size: 13px; }
}
