@charset "utf-8";

/**
 * 세부톡방 UI — 모바일 우선 · 카톡 오픈채팅 톤
 * 스코프: body.talkroom-ui (extend/eottae.extend.php 에서만 로드)
 * 기존 .talk-* 클래스 확장 — 사이트 공통 CSS와 분리
 */

body.talkroom-ui {
  --talkroom-bg: #f2f3f5;
  --talkroom-surface: #ffffff;
  --talkroom-line: #e8edf2;
  --talkroom-muted: #64748b;
  --talkroom-text: #0f172a;
  --talkroom-accent: #fee500;
  --talkroom-accent-dark: #fbbf24;
  --talkroom-accent-text: #422006;
  --talkroom-primary: var(--eottae-primary, #0ea5e9);
  --talkroom-radius-xl: 20px;
  --talkroom-radius-lg: 16px;
  --talkroom-radius-md: 12px;
  --talkroom-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  --talkroom-touch: 44px;
  --talkroom-mobile-bottom: calc(var(--eottae-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px));
  background: var(--talkroom-bg);
}

body.talkroom-ui #wrapper,
body.talkroom-ui #container,
body.talkroom-ui .eottae-page-main {
  background: transparent;
}

/* ── 공통 페이지 셸 ── */
body.talkroom-ui .mypage-subpage,
body.talkroom-ui .talk-page,
body.talkroom-ui .talk-apply-page,
body.talkroom-ui .talk-applies-page,
body.talkroom-ui .talk-room-detail-page,
body.talkroom-ui .talk-manage-page,
body.talkroom-ui .talk-my-page,
body.talkroom-ui .my-talk-page,
body.talkroom-ui .talk-reports-page,
body.talkroom-ui .talk-admin-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 14px calc(24px + env(safe-area-inset-bottom, 0px));
}

body.talkroom-ui .mypage-subpage__title,
body.talkroom-ui .talk-page__title {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

body.talkroom-ui .mypage-subpage__back a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  margin-left: -10px;
  border-radius: var(--talkroom-radius-pill, 999px);
  color: var(--talkroom-muted);
}

body.talkroom-ui .mypage-subpage__back a:hover {
  color: var(--talkroom-primary);
  background: rgba(14, 165, 233, 0.08);
}

/* ── 히어로 · 안내 ── */
body.talkroom-ui .talk-page__hero,
body.talkroom-ui .talk-apply-page > .mypage-subpage__title,
body.talkroom-ui .talk-applies-page > .mypage-subpage__title {
  position: relative;
}

body.talkroom-ui .talk-page__hero {
  margin-bottom: 16px;
  padding: 18px 16px;
  border-radius: var(--talkroom-radius-xl);
  background: linear-gradient(145deg, #fff 0%, #fffbeb 55%, #e0f2fe 100%);
  border: 1px solid rgba(254, 229, 0, 0.35);
  box-shadow: var(--talkroom-shadow);
}

body.talkroom-ui .talk-page__intro,
body.talkroom-ui .talk-apply-page__intro,
body.talkroom-ui .talk-applies-page__intro,
body.talkroom-ui .talk-my-page__intro,
body.talkroom-ui .talk-manage-page__intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--talkroom-muted);
}

/* ── 버튼 ── */
body.talkroom-ui .talk-page__btn {
  min-height: var(--talkroom-touch);
  padding: 0 18px;
  border-radius: var(--talkroom-radius-pill, 999px);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--talkroom-line);
  background: var(--talkroom-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

body.talkroom-ui .talk-page__btn:active {
  transform: scale(0.98);
}

body.talkroom-ui .talk-page__btn--primary {
  background: linear-gradient(135deg, var(--talkroom-accent) 0%, var(--talkroom-accent-dark) 100%);
  border-color: #facc15;
  color: var(--talkroom-accent-text);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
}

body.talkroom-ui .talk-page__btn--manage {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0369a1;
}

body.talkroom-ui .talk-page__actions,
body.talkroom-ui .talk-applies-page__actions,
body.talkroom-ui .talk-my-page__links,
body.talkroom-ui .talk-apply-form__actions,
body.talkroom-ui .talk-manage-form__actions {
  gap: 10px;
}

@media (max-width: 479px) {
  body.talkroom-ui .talk-page__actions .talk-page__btn,
  body.talkroom-ui .talk-applies-page__actions .talk-page__btn,
  body.talkroom-ui .talk-my-page__links .talk-page__btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
  }

  body.talkroom-ui .talk-page__actions .talk-page__btn--primary,
  body.talkroom-ui .talk-apply-form__submit {
    flex: 1 1 100%;
  }
}

/* ── 뱃지 ── */
body.talkroom-ui .talk-room-card__badge,
body.talkroom-ui .talk-apply-status,
body.talkroom-ui .talk-room-card__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.talkroom-ui .talk-room-card__badge--public {
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}

body.talkroom-ui .talk-room-card__badge--private {
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
}

body.talkroom-ui .talk-room-card__tag--owner,
body.talkroom-ui .talk-manage-member-list__main .talk-apply-status--approved {
  color: #854d0e;
  background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%);
  border: 1px solid #facc15;
}

body.talkroom-ui .talk-apply-status--pending {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

body.talkroom-ui .talk-apply-status--approved {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

body.talkroom-ui .talk-apply-status--rejected {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

body.talkroom-ui .talk-apply-status--closed {
  color: #475569;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

/* ── 톡방 카드 ── */
body.talkroom-ui .talk-room-grid,
body.talkroom-ui .talk-my-grid {
  gap: 14px;
}

body.talkroom-ui .talk-room-card {
  padding: 16px;
  border-radius: var(--talkroom-radius-xl);
  background: var(--talkroom-surface);
  border: 1px solid var(--talkroom-line);
  box-shadow: var(--talkroom-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.talkroom-ui .talk-room-card:active {
  transform: scale(0.995);
}

body.talkroom-ui .talk-room-card__avatar {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  font-size: 28px;
  border-radius: 18px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}

body.talkroom-ui .talk-room-card__title {
  font-size: 16px;
  min-width: 0;
  word-break: break-word;
}

body.talkroom-ui .talk-room-card__head {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
}

body.talkroom-ui .talk-room-card__body {
  min-width: 0;
}

body.talkroom-ui .talk-room-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

body.talkroom-ui .talk-room-card__stat {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--talkroom-radius-md);
  background: #f8fafc;
  border: 1px solid #eef2f6;
  font-size: 12px;
}

body.talkroom-ui .talk-room-card__stat-value {
  font-size: 15px;
  color: var(--talkroom-primary);
}

body.talkroom-ui .talk-room-card__stat--time {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: auto;
}

body.talkroom-ui .talk-room-card__enter {
  min-height: var(--talkroom-touch);
  margin-top: 0;
  border-radius: var(--talkroom-radius-pill, 999px);
  font-size: 15px;
  background: linear-gradient(135deg, var(--talkroom-primary) 0%, #38bdf8 100%);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
}

body.talkroom-ui .talk-room-card__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 2px;
}

body.talkroom-ui .talk-room-card__actions .talk-room-card__enter {
  flex: 1 1 auto;
  min-width: 0;
}

body.talkroom-ui .talk-room-card__delete {
  flex: 0 0 auto;
  min-height: var(--talkroom-touch);
  padding: 0 16px;
  border: 1px solid #fecaca;
  border-radius: var(--talkroom-radius-pill, 999px);
  background: #fff;
  color: #dc2626;
  font-size: 15px;
  font-weight: 800;
}

/* ── 신청 폼 ── */
body.talkroom-ui .talk-apply-form {
  padding: 16px;
  border-radius: var(--talkroom-radius-xl);
  background: var(--talkroom-surface);
  border: 1px solid var(--talkroom-line);
  box-shadow: var(--talkroom-shadow);
}

body.talkroom-ui .talk-apply-form__input,
body.talkroom-ui .talk-apply-form__select,
body.talkroom-ui .talk-apply-form__textarea {
  min-height: var(--talkroom-touch);
  border-radius: var(--talkroom-radius-md);
  border-color: var(--talkroom-line);
  font-size: 16px;
}

body.talkroom-ui .talk-apply-form__textarea {
  min-height: 120px;
}

body.talkroom-ui .talk-apply-form__fieldset {
  padding: 14px 16px;
  border-radius: var(--talkroom-radius-lg);
  border-color: var(--talkroom-line);
  background: #fafbfc;
}

body.talkroom-ui .talk-apply-form__radio {
  min-height: var(--talkroom-touch);
  padding: 0 12px;
  margin-top: 6px;
  border-radius: var(--talkroom-radius-md);
  background: #fff;
  border: 1px solid var(--talkroom-line);
}

body.talkroom-ui .talk-apply-form__radio:has(input:checked) {
  border-color: #facc15;
  background: #fffbeb;
}

body.talkroom-ui .talk-apply-form__submit {
  width: 100%;
}

/* ── 신청 현황 ── */
body.talkroom-ui .talk-applies-item {
  padding: 16px;
  border-radius: var(--talkroom-radius-xl);
  border-color: var(--talkroom-line);
  box-shadow: var(--talkroom-shadow);
}

body.talkroom-ui .talk-applies-item__head {
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "emoji status"
    "emoji title";
  gap: 8px 12px;
}

body.talkroom-ui .talk-applies-item__emoji {
  grid-area: emoji;
  width: 48px;
  height: 48px;
  font-size: 24px;
  border-radius: 16px;
}

body.talkroom-ui .talk-applies-item__title-wrap {
  grid-area: title;
}

body.talkroom-ui .talk-applies-item__head > .talk-apply-status {
  grid-area: status;
  justify-self: end;
  align-self: start;
}

body.talkroom-ui .talk-applies-item__meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--talkroom-line);
}

body.talkroom-ui .talk-applies-page__success {
  border-radius: var(--talkroom-radius-lg);
}

/* ── 톡방 상세 ── */
body.talkroom-ui .talk-room-detail__hero {
  padding: 18px 16px;
  border-radius: var(--talkroom-radius-xl);
  box-shadow: var(--talkroom-shadow);
}

body.talkroom-ui .talk-room-detail__head {
  flex: 1;
  min-width: 0;
}

body.talkroom-ui .talk-room-detail__avatar {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  font-size: 36px;
  border-radius: 22px;
}

body.talkroom-ui .talk-room-detail__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

body.talkroom-ui .talk-room-detail__stats div {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: var(--talkroom-radius-md);
  background: #f8fafc;
  border: 1px solid #eef2f6;
  text-align: center;
}

body.talkroom-ui .talk-room-detail__stats dd {
  font-size: 15px;
  color: var(--talkroom-primary);
}

body.talkroom-ui .talk-room-detail__section,
body.talkroom-ui .talk-room-detail__posts {
  border-radius: var(--talkroom-radius-xl);
  box-shadow: var(--talkroom-shadow);
}

body.talkroom-ui .talk-room-detail__banner {
  border-radius: var(--talkroom-radius-lg);
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

body.talkroom-ui .talk-invite-share {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--talkroom-radius-xl, 16px);
  background: #fff;
  border: 1px solid var(--talkroom-line, #e8edf2);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

body.talkroom-ui .talk-invite-share--compact {
  margin-bottom: 14px;
  padding: 14px 16px;
}

body.talkroom-ui .talk-invite-share__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--talkroom-text, #0f172a);
}

body.talkroom-ui .talk-invite-share__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--talkroom-muted, #64748b);
}

body.talkroom-ui .talk-invite-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.talkroom-ui .talk-invite-share__input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--talkroom-line, #e8edf2);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 13px;
  color: #334155;
}

body.talkroom-ui .talk-invite-share__copy {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--talkroom-accent) 0%, var(--talkroom-accent-dark) 100%);
  border-color: #facc15;
  color: var(--talkroom-accent-text, #0f172a);
}

body.talkroom-ui .talk-room-detail__actions {
  gap: 10px;
  padding: 12px 14px;
  margin: 0 -14px 16px;
  border-radius: var(--talkroom-radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--talkroom-line);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

@media (max-width: 639px) {
  body.talkroom-ui .talk-room-detail__actions {
    position: sticky;
    bottom: calc(8px + var(--talkroom-mobile-bottom));
    z-index: 20;
    margin-left: 0;
    margin-right: 0;
  }

  body.talkroom-ui .talk-room-detail__actions .talk-page__btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    min-width: 0;
  }

  body.talkroom-ui .talk-room-detail__actions .talk-page__btn--primary,
  body.talkroom-ui .talk-room-detail__actions .talk-page__btn--manage {
    flex: 1 1 100%;
  }
}

body.talkroom-ui .talk-room-detail__status {
  min-height: var(--talkroom-touch);
}

/* ── 게시글 목록 (톡방 상세) ── */
body.talkroom-ui .talk-room-post-list__item {
  border-top: 0;
  margin-bottom: 8px;
}

body.talkroom-ui .talk-room-post-list__link {
  padding: 14px 14px;
  border-radius: var(--talkroom-radius-lg);
  background: #f8fafc;
  border: 1px solid #eef2f6;
  transition: background 0.12s ease, border-color 0.12s ease;
}

body.talkroom-ui .talk-room-post-list__link:hover {
  background: #fff;
  border-color: #dbeafe;
}

body.talkroom-ui .talk-room-post-list__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 6px;
}

body.talkroom-ui .talk-room-post-list__meta {
  font-size: 12px;
}

/* ── 내 톡방 ── */
body.talkroom-ui .talk-my-section {
  margin-bottom: 22px;
}

body.talkroom-ui .talk-my-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

body.talkroom-ui .talk-my-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: var(--talkroom-radius-pill, 999px);
  font-size: 11px;
  font-weight: 800;
  color: var(--talkroom-accent-text);
  background: var(--talkroom-accent);
}

body.talkroom-ui .talk-my-section__empty {
  border-radius: var(--talkroom-radius-lg);
  border: 1px dashed #cbd5e1;
}

/* ── 방장 관리 · 참여자 · 강퇴 · 신고 ── */
body.talkroom-ui .talk-manage-panel,
body.talkroom-ui .talk-admin-page .promo-admin-panel {
  border-radius: var(--talkroom-radius-xl);
  border: 1px solid var(--talkroom-line);
  box-shadow: var(--talkroom-shadow);
  background: var(--talkroom-surface);
}

body.talkroom-ui .promo-admin-panel__title,
body.talkroom-ui .talk-manage-panel .promo-admin-panel__title {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

body.talkroom-ui .talk-manage-summary div {
  padding: 10px 12px;
  border-radius: var(--talkroom-radius-md);
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

body.talkroom-ui .talk-manage-member-list__item {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  border-radius: var(--talkroom-radius-lg);
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

body.talkroom-ui .talk-manage-member-list__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

body.talkroom-ui .talk-manage-member-list__main strong {
  font-size: 15px;
}

body.talkroom-ui .talk-manage-member-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.talkroom-ui .talk-manage-member-list__actions .promo-admin-btn,
body.talkroom-ui .talk-report-list__actions .promo-admin-btn {
  min-height: 38px;
  border-radius: var(--talkroom-radius-pill, 999px);
  font-weight: 700;
}

body.talkroom-ui .talk-manage-member-list__item--kicked {
  background: #fff5f5;
  border-color: #fecaca;
}

body.talkroom-ui .talk-manage-kicked-reason {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--talkroom-radius-md);
  background: #fff;
  border: 1px solid #fecaca;
  font-size: 13px;
  line-height: 1.5;
}

body.talkroom-ui .talk-report-list__item {
  padding: 14px;
  border-radius: var(--talkroom-radius-lg);
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

body.talkroom-ui .talk-report-list__head {
  flex-wrap: wrap;
  gap: 8px;
}

body.talkroom-ui .talk-reports-filter,
body.talkroom-ui .talk-admin-filter {
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.talkroom-ui .talk-reports-filter::-webkit-scrollbar,
body.talkroom-ui .talk-admin-filter::-webkit-scrollbar {
  display: none;
}

body.talkroom-ui .talk-admin-filter__item,
body.talkroom-ui .talk-reports-filter .talk-admin-filter__item {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.talkroom-ui .talk-admin-nav {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

body.talkroom-ui .talk-admin-nav__item {
  flex: 0 0 auto;
  min-height: var(--talkroom-touch);
}

/* ── 관리자 테이블 → 모바일 카드 ── */
@media (max-width: 767px) {
  body.talkroom-ui .talk-admin-table thead {
    display: none;
  }

  body.talkroom-ui .talk-admin-table,
  body.talkroom-ui .talk-admin-table tbody,
  body.talkroom-ui .talk-admin-table tr,
  body.talkroom-ui .talk-admin-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.talkroom-ui .talk-admin-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: var(--talkroom-radius-lg);
    background: var(--talkroom-surface);
    border: 1px solid var(--talkroom-line);
    box-shadow: var(--talkroom-shadow);
  }

  body.talkroom-ui .talk-admin-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  body.talkroom-ui .talk-admin-table td::before {
    content: attr(data-label) ": ";
    font-weight: 800;
    color: var(--talkroom-muted);
    font-size: 11px;
  }

  body.talkroom-ui .talk-admin-table td:last-child {
    padding-top: 10px;
  }

  body.talkroom-ui .talk-admin-table td:last-child .promo-admin-btn {
    margin-top: 4px;
    margin-right: 6px;
  }
}

body.talkroom-ui .talk-admin-page {
  max-width: 960px;
  padding-left: 14px;
  padding-right: 14px;
}

body.talkroom-ui .promo-admin-page__header {
  margin-bottom: 16px;
}

/* ── 톡방 게시판 (목록·보기·쓰기) ── */
body.talkroom-ui .board-wrap {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 14px calc(20px + env(safe-area-inset-bottom, 0px));
}

body.talkroom-ui .board-wrap .board-header {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--talkroom-radius-xl);
  border: 1px solid var(--talkroom-line);
  background: linear-gradient(145deg, #fff 0%, #fffbeb 100%);
  border-bottom: 1px solid rgba(254, 229, 0, 0.25);
}

body.talkroom-ui .board-wrap .board-header__title,
body.talkroom-ui .board-wrap .board-list__h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.talkroom-ui .board-wrap .board-actions__write,
body.talkroom-ui .board-wrap .btn_b01.btn {
  min-height: var(--talkroom-touch);
  border-radius: var(--talkroom-radius-pill, 999px);
  font-weight: 800;
}

body.talkroom-ui .board-wrap .board-actions__write {
  background: linear-gradient(135deg, var(--talkroom-accent) 0%, var(--talkroom-accent-dark) 100%);
  border-color: #facc15;
  color: var(--talkroom-accent-text);
}

body.talkroom-ui .board-wrap .board-list tbody tr {
  transition: background 0.12s ease;
}

body.talkroom-ui .board-wrap .board-list tbody tr:hover {
  background: #f8fafc;
}

@media (max-width: 639px) {
  body.talkroom-ui .board-wrap .board-list thead {
    display: none;
  }

  body.talkroom-ui .board-wrap .board-list table,
  body.talkroom-ui .board-wrap .board-list tbody,
  body.talkroom-ui .board-wrap .board-list tr,
  body.talkroom-ui .board-wrap .board-list td {
    display: block;
    width: 100%;
  }

  body.talkroom-ui .board-wrap .board-list tr {
    margin-bottom: 10px;
    padding: 14px;
    border-radius: var(--talkroom-radius-lg);
    background: var(--talkroom-surface);
    border: 1px solid var(--talkroom-line);
    box-shadow: var(--talkroom-shadow);
  }

  body.talkroom-ui .board-wrap .board-list td {
    padding: 4px 0;
    border: 0;
    text-align: left;
  }

  body.talkroom-ui .board-wrap .board-list .board-list__col-subject {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 6px;
  }

  body.talkroom-ui .board-wrap .board-list .board-list__col-subject a {
    color: var(--talkroom-text);
    text-decoration: none;
  }

  body.talkroom-ui .board-wrap .board-list .board-list__col-date,
  body.talkroom-ui .board-wrap .board-list .board-list__col-name {
    display: inline;
    font-size: 12px;
    color: var(--talkroom-muted);
  }

  body.talkroom-ui .board-wrap .board-list .board-list__col-date::after {
    content: " · ";
  }

  body.talkroom-ui .board-wrap .board-list .board-list__col-hit {
    font-size: 12px;
    color: var(--talkroom-muted);
  }
}

body.talkroom-ui .board-wrap #bo_v {
  padding: 16px;
  border-radius: var(--talkroom-radius-xl);
  background: var(--talkroom-surface);
  border: 1px solid var(--talkroom-line);
  box-shadow: var(--talkroom-shadow);
}

body.talkroom-ui .board-wrap #bo_v .board-view__title,
body.talkroom-ui .board-wrap #bo_v #bo_v_title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

body.talkroom-ui .board-wrap #bo_v .board-view__info,
body.talkroom-ui .board-wrap #bo_v .board-view__meta {
  font-size: 13px;
  color: var(--talkroom-muted);
}

body.talkroom-ui .board-wrap #bo_v .board-view__content,
body.talkroom-ui .board-wrap #bo_v #bo_v_con {
  font-size: 15px;
  line-height: 1.75;
  padding: 16px 0;
  border-top: 1px solid var(--talkroom-line);
  border-bottom: 1px solid var(--talkroom-line);
}

body.talkroom-ui .board-wrap .board-comment-wrap,
body.talkroom-ui .board-wrap #bo_vc {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--talkroom-radius-xl);
  background: #f8fafc;
  border: 1px solid var(--talkroom-line);
}

body.talkroom-ui .board-wrap .board-comment-item,
body.talkroom-ui .board-wrap .cmt_btn {
  border-radius: var(--talkroom-radius-md);
}

body.talkroom-ui .talk-report-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--talkroom-radius-pill, 999px);
  font-size: 12px;
  font-weight: 700;
}

body.talkroom-ui .talk-bookmark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

body.talkroom-ui .talk-bookmark-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--talkroom-radius-pill, 999px);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: #fff;
  color: var(--talkroom-primary, #0ea5e9);
  cursor: pointer;
}

body.talkroom-ui .talk-bookmark-btn--saved {
  border-color: rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #475569;
}

body.talkroom-ui .talk-bookmark-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.talkroom-ui .talk-report-actions--post + .talk-bookmark-actions--post {
  margin-top: 0;
}

body.talkroom-ui .talk-report-modal__panel {
  border-radius: var(--talkroom-radius-xl);
}

body.talkroom-ui .empty-state {
  padding: 28px 18px;
  border-radius: var(--talkroom-radius-xl);
  background: var(--talkroom-surface);
  border: 1px dashed #cbd5e1;
  text-align: center;
}

/* ── 데스크톱 ── */
@media (min-width: 768px) {
  body.talkroom-ui .mypage-subpage,
  body.talkroom-ui .talk-page,
  body.talkroom-ui .talk-apply-page,
  body.talkroom-ui .talk-applies-page,
  body.talkroom-ui .talk-room-detail-page,
  body.talkroom-ui .talk-manage-page,
  body.talkroom-ui .talk-my-page,
  body.talkroom-ui .talk-reports-page {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  body.talkroom-ui .talk-room-grid,
  body.talkroom-ui .talk-my-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.talkroom-ui .talk-room-detail__actions {
    position: static;
    margin: 0 0 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  body.talkroom-ui .talk-manage-member-list__item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  body.talkroom-ui .talk-applies-item__head {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: none;
    align-items: start;
  }

  body.talkroom-ui .talk-applies-item__emoji {
    grid-area: auto;
  }

  body.talkroom-ui .talk-applies-item__head > .talk-apply-status {
    grid-area: auto;
  }
}

@media (min-width: 1024px) {
  body.talkroom-ui .talk-room-grid,
  body.talkroom-ui .talk-my-grid {
    gap: 16px;
  }
}

body.talkroom-ui .talk-ai-settings__saved {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--talkroom-radius-md, 12px);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 600;
}

body.talkroom-ui .talk-ai-settings__notice--blocked {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--talkroom-radius-md, 12px);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

body.talkroom-ui .talk-ai-settings__hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--talkroom-muted, #64748b);
}

body.talkroom-ui .talk-ai-settings__limit-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--talkroom-muted, #64748b);
}

body.talkroom-ui .talk-ai-settings__features .talk-ai-settings__feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.talkroom-ui .talk-ai-settings__time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.talkroom-ui .talk-ai-settings__time-row input[type="time"] {
  min-width: 8.5rem;
}

/* ── AI 메시지 UI (톡방 · 게시판 · 설정) ── */
.talk-ai-msg__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0c4a6e;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  box-shadow: none;
}

.talk-ai-msg__badge--sm {
  font-size: 10px;
  padding: 2px 8px 2px 5px;
}

.talk-ai-msg__icon {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
}

.talk-ai-msg__badge--sm .talk-ai-msg__icon {
  font-size: 11px;
}

.talk-ai-msg__badge-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talk-ai-msg__title {
  color: #0f172a;
  letter-spacing: -0.02em;
}

.is-talk-ai-message .talk-ai-msg__title {
  font-weight: 800;
}

.talk-ai-msg__author-line {
  font-weight: 700;
  color: #0369a1;
}

.talk-ai-msg__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}

body.talkroom-ui #bo_v .community-view-page__article--ai,
body.talkroom-ui .community-view-page__article--ai {
  padding: 16px 14px;
  border-radius: var(--talkroom-radius-lg, 16px);
  background: linear-gradient(180deg, #fafcff 0%, #f0f9ff 100%);
  border: 1px solid #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.talkroom-ui #bo_v .community-view-page__ai-label,
body.talkroom-ui .community-view-page__ai-label {
  margin-bottom: 10px;
}

body.talkroom-ui #bo_v .talk-ai-msg__body--ai,
body.talkroom-ui .talk-ai-msg__body--ai {
  line-height: 1.75;
  font-size: 15px;
}

body.talkroom-ui #bo_list .community-post--ai .community-post__link,
body.talkroom-ui .community-post--ai .community-post__link {
  background: linear-gradient(180deg, #fafcff 0%, #f8fcff 100%);
  border-left: 3px solid #7dd3fc;
}

body.talkroom-ui #bo_vc .board-view__comment--ai,
body.talkroom-ui .board-view__comment--ai {
  padding: 12px 12px 10px;
  margin-bottom: 10px;
  border-radius: var(--talkroom-radius-md, 12px);
  background: #f8fcff;
  border: 1px solid #e0f2fe;
}

body.talkroom-ui #bo_vc .board-view__comment--ai .talk-ai-msg__comment-body p,
body.talkroom-ui .board-view__comment--ai .talk-ai-msg__comment-body p {
  line-height: 1.7;
  margin: 0;
}

body.talkroom-ui #bo_vc .board-view__comment--ai .talk-ai-msg__comment-head,
body.talkroom-ui .board-view__comment--ai .talk-ai-msg__comment-head {
  display: inline-flex;
  margin-bottom: 4px;
}

body.talkroom-ui .talk-room-post-list__item--ai .talk-room-post-list__link {
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: var(--talkroom-radius-md, 12px);
  background: linear-gradient(180deg, #fafcff 0%, #f0f9ff 100%);
  border: 1px solid #e0f2fe;
}

body.talkroom-ui .talk-room-post-list__ai-label {
  display: block;
  margin-bottom: 6px;
}

body.talkroom-ui .talk-ai-settings__intro {
  margin: 0 0 16px;
  padding: 14px 14px;
  border-radius: var(--talkroom-radius-md, 12px);
  font-size: 14px;
  line-height: 1.65;
  color: var(--talkroom-text, #0f172a);
  background: #f8fafc;
  border: 1px solid var(--talkroom-line, #e8edf2);
}

body.talkroom-ui .talk-ai-settings-form {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

body.talkroom-ui .talk-ai-settings-form__body {
  display: grid;
  gap: 14px;
}

body.talkroom-ui .talk-ai-settings__switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--talkroom-touch, 44px);
  padding: 8px 0;
  cursor: pointer;
}

body.talkroom-ui .talk-ai-settings__switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

body.talkroom-ui .talk-ai-settings__switch-ui {
  flex: 0 0 auto;
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

body.talkroom-ui .talk-ai-settings__switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

body.talkroom-ui .talk-ai-settings__switch-input:checked + .talk-ai-settings__switch-ui {
  background: var(--talkroom-primary, #0ea5e9);
}

body.talkroom-ui .talk-ai-settings__switch-input:checked + .talk-ai-settings__switch-ui::after {
  transform: translateX(18px);
}

body.talkroom-ui .talk-ai-settings__switch-input:focus-visible + .talk-ai-settings__switch-ui {
  outline: 2px solid var(--talkroom-primary, #0ea5e9);
  outline-offset: 2px;
}

body.talkroom-ui .talk-ai-settings__switch-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--talkroom-text, #0f172a);
}

body.talkroom-ui .talk-ai-settings__features {
  display: grid;
  gap: 2px;
}

body.talkroom-ui .talk-ai-settings__toggle-group,
body.talkroom-ui .talk-ai-settings__limits {
  padding: 14px;
  border-radius: var(--talkroom-radius-md, 12px);
  background: var(--talkroom-surface, #fff);
  border: 1px solid var(--talkroom-line, #e8edf2);
}

body.talkroom-ui .talk-ai-settings-form__actions--sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--talkroom-line, #e8edf2);
  backdrop-filter: blur(8px);
}

body.talkroom-ui .talk-ai-settings-form__submit {
  width: 100%;
  min-height: var(--talkroom-touch, 44px);
}

body.talkroom-ui .talk-admin-ai-logs-page .talk-ai-logs-filter__row {
  display: grid;
  gap: 10px;
}

body.talkroom-ui .talk-ai-logs-table__message {
  max-width: 280px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

body.talkroom-ui .talk-ai-logs-table tbody tr {
  vertical-align: top;
}

@media (min-width: 768px) {
  body.talkroom-ui .talk-ai-settings-form__actions--sticky {
    position: sticky;
    bottom: 0;
    max-width: 640px;
    margin: 16px auto 0;
    left: auto;
    right: auto;
    border-radius: var(--talkroom-radius-md, 12px);
    box-shadow: var(--talkroom-shadow, 0 2px 14px rgba(15, 23, 42, 0.06));
  }

  body.talkroom-ui .talk-ai-settings-form {
    padding-bottom: 24px;
  }

  body.talkroom-ui .talk-ai-settings-form__submit {
    width: auto;
    min-width: 160px;
  }

  body.talkroom-ui .talk-admin-ai-logs-page .talk-ai-logs-filter__row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    align-items: end;
  }
}

@media (max-width: 767px) {
  body.talkroom-ui .talk-admin-table-wrap {
    overflow-x: auto;
  }

  body.talkroom-ui .talk-ai-logs-table thead {
    display: none;
  }

  body.talkroom-ui .talk-ai-logs-table,
  body.talkroom-ui .talk-ai-logs-table tbody,
  body.talkroom-ui .talk-ai-logs-table tr,
  body.talkroom-ui .talk-ai-logs-table td {
    display: block;
    width: 100%;
  }

  body.talkroom-ui .talk-ai-logs-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: var(--talkroom-radius-md, 12px);
    background: var(--talkroom-surface, #fff);
    border: 1px solid var(--talkroom-line, #e8edf2);
  }

  body.talkroom-ui .talk-ai-logs-table td {
    padding: 4px 0;
    border: 0;
  }

  body.talkroom-ui .talk-ai-logs-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--talkroom-muted, #64748b);
  }

  body.talkroom-ui .talk-ai-logs-table__message {
    max-width: none;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fcff;
    border: 1px solid #e0f2fe;
  }
}

/* ── 세부톡방 관리자 페이지 (슬림 레이아웃) ── */
body.talk-admin-shell {
  background: #eef2f7;
}

body.talk-admin-shell #hd,
body.talk-admin-shell #container_title,
body.talk-admin-shell .mobile-bottom-nav--global,
body.talk-admin-shell #ft.site-footer-wrap {
  display: none !important;
}

body.talk-admin-shell #wrapper,
body.talk-admin-shell #container_wr,
body.talk-admin-shell #container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
  overflow: visible;
  height: auto;
  min-height: 0;
}

body.talk-admin-shell .talk-admin-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

body.talk-admin-shell .promo-admin-page__header {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.talk-admin-shell .promo-admin-page__header-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

body.talk-admin-shell .promo-admin-page__back {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
}

body.talk-admin-shell .promo-admin-page__back:hover {
  color: #0284c7;
  border-color: #bae6fd;
  background: #f0f9ff;
}

body.talk-admin-shell .promo-admin-page__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.talk-admin-shell .promo-admin-page__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

body.talk-admin-shell .talk-admin-page__pending {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

body.talk-admin-shell .talk-admin-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.talk-admin-shell .talk-admin-nav::-webkit-scrollbar {
  display: none;
}

body.talk-admin-shell .talk-admin-nav__item {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.talk-admin-shell .talk-admin-nav__item.is-active {
  color: #fff;
  background: #0284c7;
  border-color: #0284c7;
}

body.talk-admin-shell .talk-admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

body.talk-admin-shell .talk-admin-filter__item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
}

body.talk-admin-shell .talk-admin-filter__item.is-active {
  color: #0284c7;
  background: #f0f9ff;
  border-color: #7dd3fc;
}

body.talk-admin-shell .promo-admin-panel {
  padding: 0;
  overflow: visible;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.talk-admin-shell .talk-admin-applies__shell {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.talk-admin-shell .talk-admin-applies__filter {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 14px 18px;
  border-top: 0;
  border-bottom: 1px solid #eef2f6;
  background: #f8fafc;
}

body.talk-admin-shell .promo-admin-empty {
  margin: 0;
  padding: 48px 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

body.talk-admin-shell .talk-admin-table-wrap {
  overflow-x: auto;
}

body.talk-admin-shell .talk-admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

body.talk-admin-shell .talk-admin-table th,
body.talk-admin-shell .talk-admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: middle;
}

body.talk-admin-shell .talk-admin-table th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  white-space: nowrap;
}

body.talk-admin-shell .talk-admin-table tbody tr:hover {
  background: #fafcff;
}

/* ── 공개톡 AI 관리자 화면 ── */
body.talk-admin-shell .public-ai-admin-page {
  max-width: 1040px;
}

body.talk-admin-shell .public-ai-admin-page .promo-admin-page__header {
  padding: 24px 26px 22px;
}

body.talk-admin-shell .public-ai-admin-page .promo-admin-page__header-top {
  gap: 8px;
  margin-bottom: 14px;
}

body.talk-admin-shell .public-ai-admin-page .promo-admin-page__title {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.3vw, 1.95rem);
  line-height: 1.2;
}

body.talk-admin-shell .public-ai-admin-page .promo-admin-page__desc {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.75;
}

body.talk-admin-shell .public-ai-admin-page .talk-admin-nav {
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
}

body.talk-admin-shell .public-ai-admin-page .talk-admin-nav__item {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  letter-spacing: -0.02em;
}

body.talk-admin-shell .public-ai-admin-page .promo-admin-panel {
  margin-bottom: 18px;
  padding: 24px 26px;
}

body.talk-admin-shell .public-ai-admin-page .promo-admin-panel__title {
  margin: 0 0 18px;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #0f172a;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field,
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__fieldset,
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__actions,
body.talk-admin-shell .public-ai-admin-page .talk-ai-settings__hint {
  min-width: 0;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__fieldset,
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__actions,
body.talk-admin-shell .public-ai-admin-page .talk-ai-settings__hint {
  grid-column: 1 / -1;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field:has(textarea),
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field:has(#candidate_message),
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field:has(#candidate_action_url),
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field:has(#candidate_memo),
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field:has(#public_ai_persona),
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field:has(#public_ai_openai_key),
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field:has(#public_ai_openai_custom) {
  grid-column: 1 / -1;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field label,
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__fieldset legend {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #334155;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__input,
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__select,
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__textarea {
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 12px;
  border-color: #dbe3ef;
  font-size: 14px;
  line-height: 1.55;
  color: #0f172a;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__textarea,
body.talk-admin-shell .public-ai-admin-page textarea.talk-apply-form__input {
  min-height: 150px;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__input:focus,
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__select:focus,
body.talk-admin-shell .public-ai-admin-page .talk-apply-form__textarea:focus {
  outline: 0;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border-color: #e6edf5;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__fieldset legend {
  float: left;
  width: 100%;
  margin: 0 0 10px;
}

body.talk-admin-shell .public-ai-admin-page .talk-admin-form__check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #475569;
}

body.talk-admin-shell .public-ai-admin-page .talk-admin-form__check input {
  margin: 0;
  accent-color: #0284c7;
}

body.talk-admin-shell .public-ai-admin-page .talk-ai-settings__hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #64748b;
}

body.talk-admin-shell .public-ai-admin-page .talk-ai-settings__hint code {
  padding: 1px 5px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
}

body.talk-admin-shell .public-ai-admin-page .talk-apply-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
}

body.talk-admin-shell .public-ai-admin-page .promo-admin-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e2e8f0;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__metric {
  margin: 0;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__metric dt {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__metric dd {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.4;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__metric strong {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__muted {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__status-item {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__status-item.is-on {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__status-item.is-off {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-title {
  font-size: 13px;
  font-weight: 800;
  color: #5b21b6;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-summary {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-alert {
  font-size: 11px;
  font-weight: 800;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 2px 8px;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-item {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-label {
  font-weight: 800;
  color: #334155;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-time {
  color: #64748b;
  font-size: 11px;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-state {
  font-weight: 700;
  font-size: 11px;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-item.is-published {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-item.is-published .public-ai-admin-dashboard__slots-state {
  color: #15803d;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-item.is-missed {
  border-color: #fecaca;
  background: #fef2f2;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-item.is-missed .public-ai-admin-dashboard__slots-state {
  color: #b91c1c;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-item.is-active {
  border-color: #fde68a;
  background: #fffbeb;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-item.is-active .public-ai-admin-dashboard__slots-state {
  color: #b45309;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #64748b;
}

@media (max-width: 900px) {
  body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__slots-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.talk-admin-shell .public-ai-admin-page .public-ai-admin-dashboard__metrics {
    grid-template-columns: 1fr;
  }
}

body.talk-admin-shell .public-ai-admin-page .talk-admin-filter {
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 2px;
}

body.talk-admin-shell .public-ai-admin-page .talk-admin-filter__item {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

body.talk-admin-shell .public-ai-admin-page .talk-admin-table {
  font-size: 12.5px;
}

body.talk-admin-shell .public-ai-admin-page .talk-admin-table th,
body.talk-admin-shell .public-ai-admin-page .talk-admin-table td {
  padding: 13px 12px;
  vertical-align: top;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-candidates-table__message,
body.talk-admin-shell .public-ai-admin-page .public-ai-logs-table td[data-label="메시지"],
body.talk-admin-shell .public-ai-admin-page .public-ai-logs-table td[data-label="오류"] {
  line-height: 1.55;
  color: #334155;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-openai-test-actions {
  margin-bottom: 12px;
  padding-top: 0;
}

body.talk-admin-shell .public-ai-admin-page .public-ai-openai-test-result {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  font-size: 12.5px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  body.talk-admin-shell .public-ai-admin-page {
    padding-inline: 12px;
  }

  body.talk-admin-shell .public-ai-admin-page .promo-admin-page__header,
  body.talk-admin-shell .public-ai-admin-page .promo-admin-panel {
    padding: 18px 16px;
    border-radius: 16px;
  }

  body.talk-admin-shell .public-ai-admin-page .talk-apply-form {
    grid-template-columns: 1fr;
  }

  body.talk-admin-shell .public-ai-admin-page .talk-apply-form__field,
  body.talk-admin-shell .public-ai-admin-page .talk-apply-form__fieldset,
  body.talk-admin-shell .public-ai-admin-page .talk-apply-form__actions,
  body.talk-admin-shell .public-ai-admin-page .talk-ai-settings__hint {
    grid-column: 1;
  }

  body.talk-admin-shell .public-ai-admin-page .talk-admin-form__check {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }
}

body.talk-admin-shell .talk-admin-table__sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
}

body.talk-admin-shell .talk-admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.talk-admin-shell .promo-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: #334155;
  cursor: pointer;
}

body.talk-admin-shell .promo-admin-btn--primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

body.talk-admin-shell .promo-admin-btn--sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

body.talk-admin-shell .talk-apply-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

body.talk-admin-shell .talk-apply-status--pending {
  background: #fef3c7;
  color: #b45309;
}

body.talk-admin-shell .talk-apply-status--approved,
body.talk-admin-shell .talk-apply-status--active {
  background: #dcfce7;
  color: #166534;
}

body.talk-admin-shell .talk-apply-status--rejected {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 767px) {
  body.talk-admin-shell .talk-admin-page {
    padding: 12px 12px 24px;
  }

  body.talk-admin-shell .promo-admin-page__header {
    padding: 16px;
  }

  body.talk-admin-shell .promo-admin-page__title {
    font-size: 1.25rem;
  }

  body.talk-admin-shell .talk-admin-table thead {
    display: none;
  }

  body.talk-admin-shell .talk-admin-table,
  body.talk-admin-shell .talk-admin-table tbody,
  body.talk-admin-shell .talk-admin-table tr,
  body.talk-admin-shell .talk-admin-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.talk-admin-shell .talk-admin-table tr {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
  }

  body.talk-admin-shell .talk-admin-table td {
    padding: 6px 0;
    border: 0;
  }

  body.talk-admin-shell .talk-admin-table td::before {
    content: attr(data-label) ": ";
    display: inline-block;
    min-width: 72px;
    font-weight: 800;
    color: #64748b;
  }

  body.talk-admin-shell .talk-admin-table td:last-child::before {
    display: none;
  }

  body.talk-admin-shell .talk-admin-table td:last-child {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
  }

  body.talk-admin-shell .talk-admin-table td:last-child .promo-admin-btn {
    flex: 1 1 auto;
  }
}

/* ── 개설 신청 관리 ── */
body.talk-admin-shell .talk-admin-applies__header .promo-admin-page__desc {
  margin-bottom: 0;
}

body.talk-admin-shell #talk-admin-applies-panel,
body.talk-admin-shell .talk-admin-applies__panel,
body.talk-admin-shell .talk-admin-rooms__panel,
body.talk-admin-shell .talk-admin-page > section.promo-admin-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 180px;
  margin-top: 16px;
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 2;
  background: #fff;
}

body.talk-admin-shell .promo-admin-page__header {
  overflow: visible;
}

body.talk-admin-shell .talk-admin-applies__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 18px;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f6;
}

body.talk-admin-shell .talk-admin-applies__summary strong {
  color: #0f172a;
}

body.talk-admin-shell .talk-admin-applies__summary-pending {
  font-weight: 700;
  color: #b45309;
}

body.talk-admin-shell .talk-admin-applies__empty {
  padding: 28px 18px 32px;
  text-align: center;
}

body.talk-admin-shell .talk-admin-applies__empty-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #94a3b8;
}

body.talk-admin-shell .talk-admin-applies__room {
  font-weight: 700;
  color: #0f172a;
}

body.talk-admin-shell .talk-admin-applies__row.is-pending {
  background: #fffbeb;
}

body.talk-admin-shell .talk-admin-applies__row.is-pending:hover {
  background: #fef3c7;
}

body.talk-admin-shell .talk-admin-applies__table th:first-child,
body.talk-admin-shell .talk-admin-applies__table td:first-child {
  padding-left: 18px;
}

body.talk-admin-shell .talk-admin-applies__table th:last-child,
body.talk-admin-shell .talk-admin-applies__table td:last-child {
  padding-right: 18px;
}

/* ── 모바일 공통 (하단 탭 · overflow · 상세 레이아웃) ── */
@media (max-width: 767px) {
  body.talkroom-ui:not(.talk-admin-shell) {
    overflow-x: hidden;
  }

  body.talkroom-ui:not(.talk-admin-shell) #wrapper,
  body.talkroom-ui:not(.talk-admin-shell) #container,
  body.talkroom-ui:not(.talk-admin-shell) .eottae-page-main {
    overflow-x: hidden;
    max-width: 100%;
  }

  body.talkroom-ui:not(.talk-admin-shell) .mypage-subpage,
  body.talkroom-ui:not(.talk-admin-shell) .talk-page,
  body.talkroom-ui:not(.talk-admin-shell) .talk-apply-page,
  body.talkroom-ui:not(.talk-admin-shell) .talk-applies-page,
  body.talkroom-ui:not(.talk-admin-shell) .talk-room-detail-page,
  body.talkroom-ui:not(.talk-admin-shell) .talk-manage-page,
  body.talkroom-ui:not(.talk-admin-shell) .talk-my-page,
  body.talkroom-ui:not(.talk-admin-shell) .my-talk-page,
  body.talkroom-ui:not(.talk-admin-shell) .talk-reports-page {
    padding-bottom: calc(20px + var(--talkroom-mobile-bottom));
  }

  body.talkroom-ui:not(.talk-admin-shell) .talk-room-detail-page:not(.talk-room-detail-page--chat) {
    padding-bottom: calc(88px + var(--talkroom-mobile-bottom));
  }

  body.talkroom-ui .board-wrap {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: calc(20px + var(--talkroom-mobile-bottom));
  }

  body.talkroom-ui .talk-room-detail__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  body.talkroom-ui .talk-room-detail__head {
    width: 100%;
  }

  body.talkroom-ui .talk-room-detail__title {
    font-size: 1.15rem;
    line-height: 1.4;
    word-break: break-word;
  }

  body.talkroom-ui .talk-room-detail__desc {
    font-size: 13px;
  }

  body.talkroom-ui .talk-room-detail__tags {
    justify-content: center;
  }

  body.talkroom-ui .talk-room-detail__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.talkroom-ui .talk-room-detail__stats div {
    padding: 8px 6px;
    font-size: 11px;
  }

  body.talkroom-ui .talk-room-detail__stats dd {
    font-size: 13px;
    word-break: break-all;
  }

  body.talkroom-ui .talk-invite-share__row {
    flex-direction: column;
    align-items: stretch;
  }

  body.talkroom-ui .talk-invite-share__input,
  body.talkroom-ui .talk-invite-share__copy {
    flex: 1 1 auto;
    width: 100%;
  }

  body.talkroom-ui .talk-invite-share__copy {
    justify-content: center;
  }

  body.talkroom-ui .talk-applies-item__title {
    font-size: 15px;
    word-break: break-word;
  }

  body.talkroom-ui .talk-manage-summary {
    grid-template-columns: 1fr;
  }

  body.talkroom-ui .talk-manage-member-list__actions .promo-admin-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  body.talkroom-ui .talk-ai-settings-form__actions--sticky {
    bottom: var(--talkroom-mobile-bottom);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  body.talkroom-ui .talk-ai-settings-form {
    padding-bottom: calc(72px + var(--talkroom-mobile-bottom));
  }
}

@media (max-width: 399px) {
  body.talkroom-ui .talk-room-detail__stats {
    grid-template-columns: 1fr;
  }

  body.talkroom-ui .talk-room-card__stats {
    grid-template-columns: 1fr;
  }
}

/* ── 톡방 상세 — 카카오톡 스타일 채팅 ── */
body.talkroom-ui .talk-room-detail-page--chat {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  min-height: 0;
  padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

body.talkroom-ui .talk-room-detail-page--chat .mypage-subpage__back {
  flex: 0 0 auto;
  margin: 0 0 8px;
}

body.talkroom-ui .talk-room-detail__flash {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

body.talkroom-ui .talk-room-detail__drawer {
  flex: 0 0 auto;
  margin: 0 0 10px;
  border-radius: var(--talkroom-radius-lg);
  background: var(--talkroom-surface);
  border: 1px solid var(--talkroom-line);
  box-shadow: var(--talkroom-shadow);
  overflow: hidden;
}

body.talkroom-ui .talk-room-detail__drawer-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--talkroom-text);
}

body.talkroom-ui .talk-room-detail__drawer-summary::-webkit-details-marker {
  display: none;
}

body.talkroom-ui .talk-room-detail__drawer-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

body.talkroom-ui .talk-room-detail__drawer[open] .talk-room-detail__drawer-summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

body.talkroom-ui .talk-room-detail__drawer-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

body.talkroom-ui .talk-room-detail__drawer-label {
  font-size: 14px;
}

body.talkroom-ui .talk-room-detail__drawer-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--talkroom-muted);
}

body.talkroom-ui .talk-room-detail__drawer-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--talkroom-line);
}

body.talkroom-ui .talk-room-detail__hero--compact {
  padding: 12px 0 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.talkroom-ui .talk-room-detail__hero--compact .talk-room-detail__avatar {
  display: none;
}

body.talkroom-ui .talk-room-detail__section--inner {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--talkroom-radius-md);
  box-shadow: none;
  border: 1px solid #eef2f6;
}

body.talkroom-ui .talk-room-detail__actions--drawer {
  position: static;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.talkroom-ui .talk-room-detail-page--chat .talk-room-chat {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

body.talkroom-ui .talk-room-detail-page--chat .talk-room-chat .public-group-chat__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.talkroom-ui .talk-room-detail-page--chat .talk-room-chat .public-group-chat__head {
  flex: 0 0 auto;
  margin-bottom: 8px;
  padding: 0 2px;
}

body.talkroom-ui .talk-room-detail-page--chat .talk-room-chat .public-group-chat__panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.talkroom-ui .talk-room-detail-page--chat .talk-room-chat .talk-room-chat__messages,
body.talkroom-ui .talk-room-detail-page--chat .talk-room-chat .public-group-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.talkroom-ui .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer {
  flex: 0 0 auto;
}

@media (max-width: 639px) {
  body.talkroom-ui .talk-room-detail__drawer-meta {
    display: none;
  }
}

.public-group-chat__history-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
  margin-bottom: 4px;
  pointer-events: none;
}

.public-group-chat__history-top[hidden] {
  display: none !important;
}

.public-group-chat__history-spinner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.public-group-chat__messages--history-loading {
  scroll-behavior: auto;
}

@media (min-width: 768px) {
  html.talk-room-chat-page {
    height: 100%;
  }

  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #wrapper,
  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #container_wr,
  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 16px;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat {
    flex: 1 1 auto;
    min-height: 0;
    max-height: var(--talkroom-chat-height, calc(100vh - var(--eottae-header-h, 72px) - 120px));
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__inner,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__panel,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__messages {
    min-height: 0;
  }
}

/* ── 모바일 세부톡 — GNUBoard mobile.css #hd 충돌 해소 + GNB 컴팩트 ── */
@media (max-width: 767px) {
  body.talkroom-ui.eottae-page #hd {
    background: #f8fafc !important;
    min-height: 0;
  }

  body.talkroom-ui #container_title {
    display: none !important;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header {
    padding: 8px 10px;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__shell {
    border-radius: 18px;
    overflow: hidden;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__inner {
    min-height: 44px;
    padding: 4px 8px 4px 10px;
    gap: 8px;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__left {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__nav {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__logo,
  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__logo-img,
  body.talkroom-ui:not(.talk-admin-shell) #hd img[data-eottae-logo] {
    display: block;
    height: 28px !important;
    max-height: 28px !important;
    max-width: 104px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__btn--talk,
  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__btn--register,
  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__btn--text {
    display: none !important;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__mobile.site-header__mobile-nav:not(.is-open) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    pointer-events: none !important;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__mobile.site-header__mobile-nav.is-open {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: min(52vh, 420px) !important;
    padding: 12px 14px 14px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__mobile-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px;
  }

  body.talkroom-ui:not(.talk-admin-shell) #hd .eottae-gnb-header__mobile-link {
    display: block !important;
    width: 100%;
  }
}

/* ── 모바일 단톡방 상세 — 채팅 UI (카톡 톤 + 여백) ── */
@media (max-width: 767px) {
  html.talk-room-chat-page {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  body.talkroom-ui.talk-room-chat-active {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) .mobile-bottom-nav--global {
    display: none !important;
  }

  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) > hr {
    display: none !important;
  }

  /* 푸터가 flex 본문(#wrapper) 높이를 0으로 밀어내 채팅이 가려지는 문제 방지 */
  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #ft,
  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) .site-footer-wrap {
    display: none !important;
  }

  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #hd {
    flex: 0 0 auto;
  }

  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #wrapper,
  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #container_wr,
  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #container {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  body.talkroom-ui.talk-room-chat-active:not(.talk-admin-shell) #container {
    flex: 1 1 auto;
    padding-bottom: 0;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow: hidden;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .mypage-subpage__back {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .mypage-subpage__back a {
    font-size: 14px;
    font-weight: 700;
    color: var(--talkroom-muted);
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-detail__flash {
    flex: 0 0 auto;
    margin: 0;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-detail__drawer {
    flex: 0 0 auto;
    margin: 0;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-detail__drawer[open] .talk-room-detail__drawer-body {
    max-height: min(42svh, 300px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: var(--talkroom-chat-height, auto);
    max-height: var(--talkroom-chat-height, none);
    overflow: hidden;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__head {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    min-height: 44px;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__desc,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__ai-speak {
    display: none;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__title {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__head-actions {
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border-radius: var(--talkroom-radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--talkroom-shadow);
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__messages,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .talk-room-chat__messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 12px 10px 8px;
    background: var(--kakao-chat-bg, #bacee0);
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__empty {
    margin: 0;
    padding: 28px 16px;
    text-align: center;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat.public-group-chat--kakao .public-group-chat__message {
    margin-bottom: 10px;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat.public-group-chat--kakao .public-group-chat__bubble {
    max-width: min(82vw, 280px);
    padding: 9px 12px;
    border-radius: 18px;
    background: var(--kakao-bubble-other, #fff);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat.public-group-chat--kakao .public-group-chat__message--mine .public-group-chat__bubble {
    background: var(--kakao-bubble-mine, #fee500);
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer {
    flex: 0 0 auto;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--kakao-composer-bg, #fff);
    position: relative;
    z-index: 2;
  }

  /* 온오프 상담 챗봇 FAB과 겹치지 않도록 */
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer--login,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer--disabled,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer--join {
    margin-bottom: var(--talkroom-chat-fab-offset, 0px);
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer--login,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer--disabled,
  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer--join {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  body.talkroom-ui.talk-room-chat-active .talk-room-detail-page--chat .talk-room-chat .public-group-chat__action {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
  }
}

