/* 커뮤니티(/comm) 전용 - style.css 의 색 변수를 그대로 쓰고 짜임만 덧입힌다.
   목록·단추·배지 같은 공용 조각은 건드리지 않는다(다른 화면에 번지지 않게). */

/* ── 왼쪽: 커뮤니티 카드 ── */
.comm-nav-group {
  padding: 12px 14px 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  color: #94a3b8; text-transform: uppercase;
}
.comm-card {
  display: flex; align-items: center; gap: 9px; margin: 2px 8px; padding: 8px 10px;
  border-radius: 8px; cursor: pointer; transition: background .12s, box-shadow .12s;
}
.comm-card:hover { background: var(--nav-hover-bg); }
.comm-card.active { background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.10), 0 0 0 1px var(--clr-border); }
.comm-avatar {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 700; letter-spacing: -.02em;
}
.comm-card-text { min-width: 0; flex: 1; }
.comm-card-name {
  display: block;
  font-size: .8125rem; font-weight: 600; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comm-card.active .comm-card-name { color: var(--clr-primary); }
.comm-card-meta { display: block; font-size: .6875rem; color: #94a3b8; margin-top: 1px; }

/* 커뮤니티 밑의 갈래(채널/공지/모임/자료/멤버) */
.comm-sect {
  display: flex; align-items: center; gap: 8px; margin: 1px 8px 1px 20px; padding: 6px 10px;
  border-radius: 7px; cursor: pointer; font-size: .8125rem; color: #475569;
}
.comm-sect:hover { background: var(--nav-hover-bg); }
.comm-sect.active { background: var(--clr-primary); color: #fff; font-weight: 600; }
.comm-sect-icon { flex: 0 0 15px; opacity: .75; display: flex }
.comm-sect.active .comm-sect-icon { opacity: 1 }
.comm-sect-count {
  margin-left: auto; font-size: .6875rem; color: #94a3b8;
  background: #eef2f7; border-radius: 999px; padding: 1px 6px;
}
.comm-sect.active .comm-sect-count { background: rgba(255,255,255,.22); color: #fff; }

/* 받은 초대 */
.comm-invite {
  margin: 4px 8px; padding: 9px 10px; border-radius: 8px;
  background: #fffbeb; border: 1px solid #fde68a;
}
.comm-invite-name { font-size: .8125rem; font-weight: 600; color: #92400e; }
.comm-invite-from { font-size: .6875rem; color: #b45309; margin: 1px 0 6px; }
.comm-invite-btns { display: flex; gap: 5px; }
.comm-invite-btns .basic-btn { padding: 3px 9px; font-size: .6875rem; }

/* ── 가운데 목록 ── */
.comm-item { display: flex; gap: 10px; align-items: flex-start; }
.comm-item-icon {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: #eef2f7; color: #64748b; font-size: .8125rem; font-weight: 700;
}
.comm-item-body { min-width: 0; flex: 1 }
.comm-item-row { display: flex; align-items: center; gap: 6px }
.comm-item-row .list-item-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* 모임 날짜 조각 */
.comm-date {
  flex: 0 0 38px; width: 38px; border-radius: 8px; overflow: hidden; text-align: center;
  border: 1px solid var(--clr-border); background: #fff;
}
.comm-date-m { background: #ef4444; color: #fff; font-size: .625rem; font-weight: 700; padding: 1px 0 }
.comm-date-d { font-size: .9375rem; font-weight: 700; color: #1e293b; padding: 2px 0 3px }
.comm-date.past .comm-date-m { background: #94a3b8 }

/* 배지 */
.comm-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px;
  font-size: .6875rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.comm-badge.owner   { background: #ede9fe; color: #6d28d9 }
.comm-badge.manager { background: #dbeafe; color: #1d4ed8 }
.comm-badge.member  { background: #f1f5f9; color: #475569 }
.comm-badge.pending { background: #fef9c3; color: #a16207 }
.comm-badge.pin     { background: #fee2e2; color: #b91c1c }
.comm-badge.going   { background: #dcfce7; color: #15803d }
.comm-badge.notified{ background: #e0f2fe; color: #0369a1 }

/* ── 오른쪽: 자세히 ── */
.comm-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--clr-border-light);
}
.comm-head .comm-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; font-size: 1.0625rem }
.comm-head-name { font-size: 1rem; font-weight: 700; color: #1e293b }
.comm-head-desc { font-size: .75rem; color: #94a3b8; margin-top: 2px }

/* 채널 글 - 말풍선 */
.comm-posts { padding: 6px 2px }
.comm-post { display: flex; gap: 9px; padding: 7px 4px; border-radius: 8px }
.comm-post:hover { background: #fafbfc }
.comm-post:hover .comm-post-del { opacity: 1 }
.comm-post-avatar {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700;
}
.comm-post-main { min-width: 0; flex: 1 }
.comm-post-meta { display: flex; align-items: center; gap: 6px; font-size: .6875rem; color: #94a3b8 }
.comm-post-who { font-weight: 700; color: #334155; font-size: .75rem }
.comm-post-body {
  font-size: .8125rem; color: #1f2937; margin-top: 2px; line-height: 1.55;
  overflow-wrap: anywhere;
}
.comm-post-del {
  opacity: 0; margin-left: auto; border: none; background: none; cursor: pointer;
  color: #cbd5e1; font-size: .875rem; line-height: 1; padding: 0 3px; transition: opacity .12s, color .12s;
}
.comm-post-del:hover { color: var(--btn-danger-bg) }

/* 참석 여부 - 한 덩어리 단추 */
.comm-rsvp { display: inline-flex; border: 1px solid var(--clr-border); border-radius: 8px; overflow: hidden }
.comm-rsvp button {
  border: none; background: #fff; cursor: pointer; padding: 5px 13px;
  font-size: .75rem; color: #475569; border-right: 1px solid var(--clr-border);
}
.comm-rsvp button:last-child { border-right: none }
.comm-rsvp button:hover { background: var(--nav-hover-bg) }
.comm-rsvp button.on { background: var(--clr-primary); color: #fff; font-weight: 600 }

/* 소개·지침 */
.comm-guide {
  white-space: pre-wrap; font-size: .8125rem; color: #334155; line-height: 1.6;
  background: #f8fafc; border: 1px solid var(--clr-border-light);
  border-left: 3px solid var(--clr-primary); border-radius: 6px; padding: 10px 12px;
}

/* 빈 화면 */
.comm-empty { text-align: center; padding: 42px 20px; color: #94a3b8 }
.comm-empty-icon {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px;
  background: #f1f5f9; color: #cbd5e1; display: flex; align-items: center; justify-content: center;
}
.comm-empty-title { font-size: .8125rem; font-weight: 600; color: #64748b }
.comm-empty-sub { font-size: .75rem; margin-top: 3px }

/* 자세히 화면의 항목 줄 */
.comm-facts { display: grid; grid-template-columns: 76px 1fr; gap: 7px 12px; align-items: center; margin-bottom: 14px }
.comm-facts dt { font-size: .75rem; color: #94a3b8 }
.comm-facts dd { font-size: .8125rem; color: #334155; margin: 0 }

/* ── 채널 글쓰기(서식 + 첨부) ── */
.comm-composer { display: block; padding: 0; border-top: 1px solid var(--clr-border) }
.comm-composer-toolbar {
  display: flex; align-items: center; gap: 1px; padding: 5px 10px;
  border-bottom: 1px solid var(--clr-border-light); background: #fafbfc;
}
.comm-tb-btn {
  border: none; background: none; cursor: pointer; color: #64748b;
  width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.comm-tb-btn:hover { background: #eef2f7; color: #1e293b }
.comm-tb-btn.on { background: var(--clr-primary); color: #fff }
.comm-tb-sep { width: 1px; height: 16px; background: var(--clr-border); margin: 0 5px }
.comm-composer-box {
  min-height: 62px; max-height: 190px; overflow: auto; padding: 9px 12px;
  font-size: .8125rem; line-height: 1.55; color: #1f2937; outline: none;
}
.comm-composer-box:empty::before {
  content: attr(data-placeholder); color: #cbd5e1; pointer-events: none;
}
.comm-composer-box img { max-width: 100%; height: auto }
.comm-composer-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 10px 8px 12px;
}
.comm-composer-hint { font-size: .6875rem; color: #cbd5e1 }

/* 첨부 딱지 */
.comm-attach-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 6px }
.comm-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 260px;
  padding: 3px 8px; border-radius: 999px; background: #eef2f7;
  font-size: .6875rem; color: #475569;
}
.comm-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-chip-size { color: #94a3b8; flex: none }
.comm-chip-x {
  border: none; background: none; cursor: pointer; color: #94a3b8;
  font-size: .8125rem; line-height: 1; padding: 0; flex: none;
}
.comm-chip-x:hover { color: var(--btn-danger-bg) }
.comm-chip.loading { opacity: .55 }

/* 올라간 글 안의 서식·첨부 */
.comm-post-body p { margin: 0 0 6px }
.comm-post-body ul, .comm-post-body ol { margin: 4px 0; padding-left: 20px }
.comm-post-body a { color: var(--clr-primary-hover); text-decoration: underline }
.comm-post-body img { max-width: 320px; height: auto; border-radius: 6px; margin-top: 4px }
.comm-post-body blockquote {
  margin: 5px 0; padding: 3px 10px; border-left: 3px solid var(--clr-border); color: #64748b;
}
.comm-post-body pre {
  background: #f8fafc; border: 1px solid var(--clr-border-light); border-radius: 6px;
  padding: 8px 10px; overflow-x: auto; font-size: .75rem;
}
.comm-post-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px }
.comm-post-file {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid var(--clr-border); border-radius: 8px; background: #fff;
  font-size: .6875rem; color: #475569; cursor: pointer;
}
.comm-post-file:hover { background: var(--nav-hover-bg); border-color: #cbd5e1 }
.comm-post-file .ext { font-weight: 700; font-size: .5625rem; letter-spacing: .02em }

/* 상단 제목 - 아이콘·이름·소개를 한 줄에 (아바타가 display:flex 라 그냥 두면 줄이 나뉜다) */
#commTitle { display: flex; align-items: center; gap: 9px; min-width: 0 }
#commTitle .comm-avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; font-size: .8125rem }
#commTitle .comm-title-name { font-weight: 700 }
#commTitle .comm-head-desc {
  font-weight: 400; margin: 0; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* ── 멤버 부르기 상자 ── */
#commInviteModal .modal-box { width: 460px; max-width: 94vw }
.comm-invite-search { position: relative; margin-bottom: 10px }
.comm-invite-search input { width: 100%; padding-left: 30px }
.comm-invite-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8 }
.comm-pick-list {
  max-height: 270px; overflow: auto; border: 1px solid var(--clr-border); border-radius: 8px; background: #fff;
}
.comm-pick {
  display: flex; align-items: center; gap: 10px; padding: 7px 11px; cursor: pointer;
  border-bottom: 1px solid var(--clr-border-light);
}
.comm-pick:last-child { border-bottom: none }
.comm-pick:hover { background: var(--nav-hover-bg) }
.comm-pick.on { background: #eef2ff }
.comm-pick input { display: none }
.comm-pick .comm-avatar { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; font-size: .75rem }
.comm-pick-text { min-width: 0; flex: 1 }
.comm-pick-name { font-size: .8125rem; font-weight: 600; color: #1e293b }
.comm-pick-mail { font-size: .6875rem; color: #94a3b8 }
.comm-pick-check {
  flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #cbd5e1;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.comm-pick.on .comm-pick-check { background: var(--clr-primary); border-color: var(--clr-primary) }
.comm-invite-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 10px 0 2px; font-size: .75rem; color: #64748b;
}
.comm-invite-count b { color: var(--clr-primary) }
.comm-invite-ways { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px }
.comm-invite-way {
  display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: #475569; cursor: pointer;
}

/* 편집기에 파일을 끌어다 놓을 때 */
.comm-composer-box.drop-on {
  background: #eef2ff; outline: 2px dashed var(--clr-primary); outline-offset: -3px;
}
/* 음성 입력 중 */
.comm-tb-btn.on { background: #ef4444; color: #fff }

/* ── 오른쪽 미리보기 칸 ── */
.comm-preview {
  flex: 0 0 380px; min-width: 300px; display: flex; flex-direction: column;
  border-left: 1px solid var(--clr-border); background: #fff; min-height: 0;
}
@media (max-width: 1200px) { .comm-preview { flex-basis: 300px } }
.comm-preview .editor-panel-header { flex: none }
.comm-preview-body {
  flex: 1; min-height: 0; overflow: auto; padding: 12px;
  display: flex; align-items: flex-start; justify-content: center; background: #f8fafc;
}
.comm-preview-img {
  max-width: 100%; height: auto; border-radius: 6px; background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.12);
}
.comm-preview-load { color: #94a3b8; font-size: .75rem; padding: 24px 0 }
.comm-preview-foot {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px; border-top: 1px solid var(--clr-border-light);
}
.comm-preview-foot .basic-btn { padding: 2px 10px }

/* ── 첫 화면(모아보기) ── */
.sub-main-body.comm-home-on > .list-panel,
.sub-main-body.comm-home-on > .editor-panel,
.sub-main-body.comm-home-on > .preview-panel { display: none }
.comm-home { flex: 1; min-height: 0; overflow-y: auto; background: #f6f7f9; padding: 16px }
.comm-home-load { color: #94a3b8; font-size: 13px; padding: 24px; text-align: center }
.comm-home-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px; align-items: start;
}
.comm-home-card.wide { grid-column: 1 / -1 }
.comm-home-card {
  background: #fff; border: 1px solid var(--clr-border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.comm-home-card-head {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  font-size: .8125rem; font-weight: 700; color: #1e293b; border-bottom: 1px solid var(--clr-border-light);
}
.comm-home-ico { display: flex; color: var(--clr-primary) }
.comm-home-card-body { padding: 6px }
.comm-home-empty { color: #94a3b8; font-size: 13px; padding: 10px }

/* 내 커뮤니티 카드들 */
.comm-home-comms { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px }
.comm-home-comm {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; min-width: 210px;
  border: 1px solid var(--clr-border); border-radius: 10px; background: #fff; cursor: pointer;
  text-align: left; font: inherit;
}
.comm-home-comm:hover { border-color: var(--clr-primary); background: #f8faff }
.comm-home-comm-text { min-width: 0 }
.comm-home-new { border-style: dashed; color: #64748b }
.comm-home-plus {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; background: #eef2f7;
  display: flex; align-items: center; justify-content: center; font-size: 1.125rem; color: #64748b;
}

/* 줄 목록(글·모임·자료·공지 공용) */
.comm-home-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px;
  border: none; background: none; border-radius: 8px; cursor: pointer; text-align: left; font: inherit;
}
.comm-home-row:hover { background: var(--nav-hover-bg) }
.comm-home-row-text { min-width: 0; flex: 1 }
.comm-home-row-title {
  display: block; font-size: .8125rem; font-weight: 600; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comm-home-row-sub {
  display: block; font-size: .6875rem; color: #94a3b8; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── 채널 글(팀즈식) ── */
.comm-post { padding: 10px 6px }
.comm-post-ava { position: relative; flex: none; display: block; width: 32px; height: 32px; line-height: 0 }
.comm-post-avatar { width: 32px; height: 32px; font-size: .8125rem }
.comm-post-dot {
  position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
}
.comm-post-time { color: #94a3b8 }
.comm-badge.new { background: #ede9fe; color: #6d28d9 }

/* 첨부 카드 */
.comm-post-files { display: flex; flex-direction: column; gap: 6px; margin-top: 8px }
.comm-file-card {
  display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 9px 11px;
  border: 1px solid var(--clr-border); border-radius: 10px; background: #fff; cursor: pointer;
}
.comm-file-card:hover { border-color: var(--clr-primary); background: #f8faff }
.comm-file-ico {
  flex: none; width: 30px; height: 30px; border-radius: 8px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .5625rem; font-weight: 700;
}
.comm-file-text { min-width: 0; flex: 1 }
.comm-file-name {
  display: block; font-size: .8125rem; font-weight: 600; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comm-file-size { display: block; font-size: .6875rem; color: #94a3b8 }
.comm-file-open { flex: none; color: #94a3b8; display: flex }
.comm-file-card:hover .comm-file-open { color: var(--clr-primary) }

/* 미리보기 칸 여닫기 단추 - 상단 오른쪽 끝 */
.comm-pv-toggle {
  margin-left: 8px; flex: none; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--clr-border); background: #fff; color: #64748b;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.comm-pv-toggle:hover { background: var(--nav-hover-bg); color: #1e293b }
.comm-pv-toggle.on { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff }
.comm-pv-toggle[hidden] { display: none }

/* ── 자료(저장소 화면과 같은 카드 그리드) ── */
.sub-main-body.comm-files-on > .list-panel,
.sub-main-body.comm-files-on > .editor-panel { display: none }
.comm-files { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff }
.comm-files[hidden] { display: none }
.comm-files-bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--clr-border-light);
}
.comm-files-path {
  display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1;
  font-size: .8125rem; font-weight: 600; color: #1e293b;
}
.comm-files-path .comm-avatar { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; font-size: .625rem }
.comm-files-sep { color: #cbd5e1; font-weight: 400 }
.comm-files-actions { display: flex; gap: 6px; flex: none }
.comm-files-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px }
.comm-files-foot {
  flex: none; padding: 6px 16px; border-top: 1px solid var(--clr-border-light);
}

/* 카드 - 저장소의 .file-item 을 그대로 쓰되 삭제 단추만 얹는다 */
.comm-files .file-item { position: relative }
.comm-file-ico.big {
  width: 44px; height: 44px; border-radius: 10px; font-size: .75rem;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.comm-files .file-item-icon { height: 52px; overflow: hidden }
.comm-files .file-thumb-img {
  width: 100%; height: 52px; object-fit: cover; border-radius: 6px; display: block;
}
.comm-file-del {
  position: absolute; top: 4px; right: 4px; opacity: 0;
  border: none; background: rgba(255,255,255,.9); color: #94a3b8; cursor: pointer;
  width: 20px; height: 20px; border-radius: 6px; line-height: 1; font-size: .875rem;
}
.file-item:hover .comm-file-del { opacity: 1 }
.comm-file-del:hover { color: var(--btn-danger-bg); background: #fff }

/* hidden 속성이 실제로 먹게 한다 - .preview-panel 은 display:flex,
   .comm-composer 는 display:block 이라 그냥 두면 hidden 을 눌러 이긴다(둘 다 안 감춰졌었다). */
#commPreview[hidden] { display: none !important; }
#commPostFooter[hidden] { display: none !important; }
#commHome[hidden], #commFiles[hidden] { display: none !important; }

/* ── 모임 달력(일정 화면과 같은 결) ── */
.comm-cal-head {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  border-bottom: 1px solid var(--clr-border-light);
}
.comm-cal-head .basic-btn { padding: 3px 10px; font-size: .75rem }
.comm-cal-title { font-size: .875rem; font-weight: 700; color: #1e293b; margin: 0 4px }
.comm-cal {
  display: grid; grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(84px, auto); gap: 1px; background: var(--clr-border-light); padding: 1px;
}
.comm-cal-dow {
  background: #fafbfc; text-align: center; padding: 6px 0;
  font-size: .6875rem; font-weight: 700; color: #64748b;
}
.comm-cal-dow.sun { color: #dc2626 } .comm-cal-dow.sat { color: #2563eb }
.comm-cal-cell { background: #fff; padding: 4px 5px; cursor: pointer; overflow: hidden; min-width: 0 }
.comm-cal-cell:hover { background: #f8fafc }
.comm-cal-cell.out { background: #fbfcfd; color: #cbd5e1 }
.comm-cal-cell.out .comm-cal-date { color: #cbd5e1 }
.comm-cal-cell.today { box-shadow: inset 0 0 0 2px var(--clr-primary) }
.comm-cal-cell.picked { background: #eef2ff }
.comm-cal-date { font-size: .6875rem; font-weight: 600; color: #475569; margin-bottom: 3px }
.comm-cal-evt {
  font-size: .625rem; line-height: 1.5; padding: 1px 5px; margin-bottom: 2px; border-radius: 4px;
  background: #eef2ff; color: #3730a3; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comm-cal-evt.going { background: #dcfce7; color: #15803d }
.comm-cal-evt:hover { filter: brightness(.96) }
.comm-cal-more { font-size: .5625rem; color: #94a3b8; padding-left: 4px }

/* 자동 저장 안내 */
.comm-autosave { font-size: .6875rem; color: #94a3b8; margin-right: 8px; align-self: center }

/* 모임 - 일정 화면처럼 넓게(목록 칸을 접고 본문을 쓴다). 오른쪽 상세는 그대로 둔다. */
.sub-main-body.comm-events-on > .list-panel { display: none }
/* 모임을 고르기 전에는 달력이 전체를 쓴다 - 고르면 오른쪽 상세가 열린다(일정 화면과 같은 결) */
.sub-main-body.comm-events-on:not(.comm-event-picked) > .editor-panel { display: none }
.comm-events { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; overflow-y: auto }
.comm-events[hidden] { display: none !important }
.comm-events .comm-cal { flex: 1 }

/* ── 답글 · 반응 · 멘션 · 편집 (2026-09-11) ── */
.comm-posts .comm-post:hover { background: none }
.comm-post-content { margin: -3px -6px; padding: 3px 6px; border-radius: 8px; transition: background .12s }
.comm-post-content:hover { background: #fafbfc }
.comm-post-content.mentions-me { background: #fffbeb }
.comm-post-acts { margin-left: auto; display: inline-flex; gap: 2px; opacity: 0; transition: opacity .12s }
.comm-post-content:hover .comm-post-acts, .comm-post-content:focus-within .comm-post-acts { opacity: 1 }
.comm-act {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px;
  border: none; background: none; border-radius: 6px; color: #94a3b8; cursor: pointer; padding: 0;
}
.comm-act:hover { background: #eef2f7; color: #334155 }
.comm-act.danger:hover { color: var(--btn-danger-bg) }
.comm-edited { font-size: .6875rem; color: #94a3b8 }
.comm-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px }
.comm-reacts:empty { display: none }
.comm-react {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px;
  border: 1px solid var(--clr-border); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: .75rem; color: #475569; line-height: 1;
}
.comm-react:hover { border-color: #cbd5e1; background: #f8fafc }
.comm-react.mine { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; font-weight: 600 }
.comm-react .n { font-variant-numeric: tabular-nums }
.comm-react-pop {
  position: fixed; z-index: 60; display: flex; gap: 2px; padding: 4px;
  background: #fff; border: 1px solid var(--clr-border); border-radius: 999px; box-shadow: 0 6px 18px rgba(15,23,42,.14);
}
.comm-react-pop[hidden], .comm-mention-pop[hidden] { display: none !important }
.comm-react-pop button {
  width: 32px; height: 32px; border: none; background: none; border-radius: 50%; font-size: 1.05rem; cursor: pointer;
  transition: transform .1s, background .1s;
}
.comm-react-pop button:hover { background: #f1f5f9; transform: scale(1.18) }

.comm-thread { margin-top: 8px; padding-left: 12px; border-left: 2px solid #eef2f7; display: flex; flex-direction: column; gap: 2px }
.comm-thread[hidden] { display: none }
.comm-post.is-reply { padding: 6px 2px }
.comm-post.is-reply .comm-post-ava { width: 26px; height: 26px }
.comm-post.is-reply .comm-post-avatar { width: 26px; height: 26px; flex-basis: 26px; font-size: .6875rem }
.comm-more-replies { align-self: flex-start; border: none; background: none; color: var(--clr-primary-hover); font-size: .75rem; cursor: pointer; padding: 2px 0 4px }
.comm-more-replies:hover { text-decoration: underline }
.comm-thread-foot { margin-top: 4px }
.comm-reply-open {
  display: inline-flex; align-items: center; gap: 5px; border: none; background: none; cursor: pointer;
  color: #64748b; font-size: .75rem; padding: 3px 6px; border-radius: 6px; margin-left: -6px;
}
.comm-reply-open:hover { background: #f1f5f9; color: var(--clr-primary-hover) }
.comm-reply-box { display: flex; align-items: flex-end; gap: 6px; margin-top: 6px; padding-left: 12px }
.comm-reply-box .basic-btn { flex: none }
.comm-reply-input, .comm-edit-input {
  flex: 1; min-height: 34px; max-height: 200px; overflow-y: auto; box-sizing: border-box;
  border: 1px solid var(--clr-border); border-radius: 8px; padding: 6px 10px; background: #fff;
  font-size: .8125rem; line-height: 1.55; color: #1f2937; outline: none;
}
.comm-edit-input { min-height: 64px; width: 100% }
.comm-reply-input:focus, .comm-edit-input:focus { border-color: var(--clr-primary) }
.comm-reply-input:empty::before { content: attr(data-placeholder); color: #9ca3af; pointer-events: none }
.comm-edit-foot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px }
.comm-edit-hint { margin-right: auto; font-size: .6875rem; color: #94a3b8 }

.comm-mention { color: #1d4ed8; background: #eff6ff; border-radius: 4px; padding: 0 3px; font-weight: 600; white-space: nowrap }
.comm-mention.me { color: #92400e; background: #fde68a }
.comm-mention-pop {
  position: fixed; z-index: 60; min-width: 240px; max-width: 320px; max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid var(--clr-border); border-radius: 8px; box-shadow: 0 6px 18px rgba(15,23,42,.14); padding: 4px 0;
}
.comm-mention-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer }
.comm-mention-item.on, .comm-mention-item:hover { background: #f1f5f9 }
.comm-mention-item .comm-mention-ava {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .6875rem; font-weight: 700;
}
.comm-mention-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3 }
.comm-mention-txt b { font-size: .8125rem; color: #1e293b }
.comm-mention-txt small { font-size: .6875rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-mention-empty { padding: 10px 12px; font-size: .75rem; color: #94a3b8 }

/* ── 예약 · 고정 · 저장 · 보관 · 공개 링크 · 템플릿 · 답글 첨부 · 연락 (2026-09-11) ── */
.comm-act.on { color: var(--clr-primary) }
.comm-act.on svg { fill: currentColor; fill-opacity: .2 }
.comm-post.is-sched > .comm-post-main > .comm-post-content {
  background: repeating-linear-gradient(135deg, #fafbfc 0 8px, #f3f5f8 8px 16px); outline: 1px dashed #cbd5e1;
}
.comm-badge.sched { display: inline-flex; align-items: center; gap: 4px; background: #fff7ed; color: #c2410c }
.comm-badge.sched svg { width: 11px; height: 11px }
.comm-badge.archived { background: #f1f5f9; color: #64748b; margin-left: 8px; vertical-align: middle; font-size: .6875rem }
.comm-card.archived { opacity: .6 }
.comm-card.archived:hover, .comm-card.archived.active { opacity: 1 }
@keyframes commFlash { 0%, 45% { background: #fef3c7 } 100% { background: transparent } }
.comm-post.flash > .comm-post-main > .comm-post-content { animation: commFlash 1.6s ease-out }
@media (prefers-reduced-motion: reduce) { .comm-post.flash > .comm-post-main > .comm-post-content { animation: none; background: #fef3c7 } }

.comm-pinbar {
  position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px;
  padding: 7px 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; box-shadow: 0 2px 6px rgba(15,23,42,.05);
}
.comm-pinbar-ico { color: #b45309; flex: none; padding-top: 3px }
.comm-pinbar-list { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 }
.comm-pinbar-item {
  display: flex; gap: 6px; align-items: baseline; border: none; background: none; padding: 2px 4px; margin: 0 -4px;
  border-radius: 4px; cursor: pointer; text-align: left; font-size: .75rem; color: #78350f; min-width: 0;
}
.comm-pinbar-item:hover { background: #fef3c7 }
.comm-pinbar-item b { flex: none; font-weight: 700 }
.comm-pinbar-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0 }

.comm-composer-foot { gap: 6px }
.comm-composer-foot .comm-composer-hint { margin-right: auto }
.comm-sched-wrap { position: relative }
.comm-sched-btn { display: inline-flex; align-items: center; gap: 5px }
.comm-sched-pop {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 40; width: 280px; max-width: calc(100vw - 32px);
  padding: 12px; background: #fff; border: 1px solid var(--clr-border); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15,23,42,.16); display: flex; flex-direction: column; gap: 8px;
}
.comm-sched-pop[hidden] { display: none !important }
.comm-sched-head { font-size: .8125rem; font-weight: 700; color: #1e293b }
.comm-sched-quick { display: flex; flex-wrap: wrap; gap: 4px }
.comm-sched-quick button {
  border: 1px solid var(--clr-border); background: #f8fafc; border-radius: 999px; padding: 3px 9px;
  font-size: .6875rem; color: #475569; cursor: pointer;
}
.comm-sched-quick button:hover { border-color: var(--clr-primary); color: var(--clr-primary) }
.comm-sched-note { margin: 0; font-size: .6875rem; color: #94a3b8; line-height: 1.5 }
.comm-sched-pop .basic-btn.primary { align-self: flex-end }

.comm-reply-wrap { margin-top: 6px; padding-left: 12px; border-radius: 8px }
.comm-reply-wrap .comm-reply-box { margin-top: 0; padding-left: 0 }
.comm-reply-wrap.drop-on { outline: 2px dashed var(--clr-primary); outline-offset: 3px; background: #eff6ff }
.comm-reply-att { flex: none; width: 30px; height: 34px }
.comm-reply-files { margin-top: 6px }
.comm-reply-files[hidden] { display: none !important }

.comm-file-pin {
  position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 6px; background: rgba(255,255,255,.92); color: #94a3b8; cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0;
}
.file-item:hover .comm-file-pin, .comm-file-pin.on, .comm-file-pin:focus-visible { opacity: 1 }
.comm-file-pin.on { color: #b45309; background: #fef3c7 }
span.comm-file-pin { cursor: default }
.comm-file-linked {
  position: absolute; top: 8px; right: 30px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px;
  border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: .625rem; font-weight: 700;
}
.comm-file-linked svg { width: 11px; height: 11px }

#commPreview .preview-panel-footer { display: flex; gap: 6px; justify-content: flex-end }
#cpLink { display: inline-flex; align-items: center; gap: 5px }
#cpLinkSec[hidden] { display: none !important }
.comm-link-form {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; margin-bottom: 8px;
  background: #f8fafc; border: 1px solid var(--clr-border); border-radius: 8px;
}
.comm-link-form[hidden] { display: none !important }
.comm-link-field { display: flex; flex-direction: column; gap: 4px; font-size: .6875rem; color: #64748b }
.comm-link-form .basic-btn { align-self: flex-end }
.comm-link-row { padding: 8px 0; border-top: 1px solid #eef2f7 }
.comm-link-row:first-child { border-top: none; padding-top: 2px }
.comm-link-top { display: flex; gap: 6px }
.comm-link-url {
  flex: 1; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--clr-border); border-radius: 6px;
  background: #f8fafc; font-size: .6875rem; color: #334155; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.comm-link-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: .6875rem; color: #94a3b8 }
.comm-link-lock { display: inline-flex; align-items: center; gap: 3px; color: #b45309 }
.comm-link-lock svg { width: 11px; height: 11px }
.comm-link-revoke {
  margin-left: auto; border: none; background: none; color: var(--btn-danger-bg); font-size: .6875rem;
  cursor: pointer; padding: 2px 4px; border-radius: 4px;
}
.comm-link-revoke:hover { background: #fef2f2 }

.comm-reach { display: flex; flex-wrap: wrap; gap: 6px }
.comm-reach .basic-btn { display: inline-flex; align-items: center; gap: 6px }

.comm-tpl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px }
.comm-tpl-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--clr-border); border-radius: 8px;
  background: #fff; cursor: pointer; text-align: left; font-size: .75rem; color: #334155; min-width: 0;
}
.comm-tpl-item:hover { border-color: #cbd5e1; background: #f8fafc }
.comm-tpl-item.on { border-color: var(--clr-primary); background: #eff6ff; color: #1d4ed8; font-weight: 600; box-shadow: inset 0 0 0 1px var(--clr-primary) }
.comm-tpl-item:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 2px }
.comm-tpl-ico { font-size: 1rem; line-height: 1; flex: none }
.comm-tpl-name { min-width: 0; line-height: 1.3; word-break: keep-all }
.comm-tpl-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 6px; font-size: .6875rem; color: #64748b }
.comm-tpl-ch-label { margin-right: 4px }
.comm-tpl-ch-item { padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #475569 }
#cpLinkSec .comm-link-form, #cpLinks { margin-left: 16px; margin-right: 16px }

/* ── 자료 공동 편집 · 이전 판 (2026-09-12) ── */
#cpVerSec[hidden] { display: none !important }
#cpVerSec .comm-ver-row { padding: 8px 0; border-top: 1px solid #eef2f7 }
#cpVerSec .comm-ver-row:first-child { border-top: none; padding-top: 2px }
#cpVerSec, #cpVerRows { margin-left: 16px; margin-right: 16px }
#cpVerSec .preview-panel-sec-title { margin-left: -16px }
.comm-ver-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .75rem; color: #475569 }
.comm-ver-top b { font-weight: 600; color: #1e293b }
.comm-ver-who { color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-ver-acts { display: flex; gap: 6px; margin-top: 5px }
.comm-ver-acts button {
  border: 1px solid var(--clr-border); background: #fff; border-radius: 6px; padding: 3px 9px;
  font-size: .6875rem; color: #475569; cursor: pointer;
}
.comm-ver-acts button:hover { border-color: var(--clr-primary); color: var(--clr-primary) }
#cpEdit { display: inline-flex; align-items: center; gap: 5px }
.comm-file-edit {
  position: absolute; top: 6px; left: 34px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 6px; background: rgba(255,255,255,.92); color: #94a3b8; cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0;
}
.file-item:hover .comm-file-edit, .comm-file-edit:focus-visible { opacity: 1 }
.comm-file-edit:hover { color: var(--clr-primary); background: #eff6ff }
.comm-file-vers {
  position: absolute; bottom: 6px; right: 6px; min-width: 18px; padding: 1px 6px; border-radius: 999px;
  background: #f1f5f9; color: #64748b; font-size: .625rem; font-weight: 700; text-align: center;
}

/* ── 글 결재 · 작업 보드 (2026-09-12) ── */
.comm-apprs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px }
.comm-appr { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--clr-border); border-radius: 8px; background: #fff }
.comm-appr.pending { border-color: #fde68a; background: #fffbeb }
.comm-appr.approved { border-color: #bbf7d0; background: #f0fdf4 }
.comm-appr.rejected { border-color: #fecaca; background: #fef2f2 }
.comm-appr-ico { flex: none; padding-top: 1px; color: #94a3b8 }
.comm-appr.pending .comm-appr-ico { color: #b45309 }
.comm-appr.approved .comm-appr-ico { color: #15803d }
.comm-appr.rejected .comm-appr-ico { color: #b91c1c }
.comm-appr-main { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.comm-appr-title { font-size: .8125rem; font-weight: 600; color: #1e293b; word-break: break-word }
.comm-appr-sub { font-size: .6875rem; color: #64748b; margin-top: 2px; word-break: break-word }
.comm-appr-acts { display: flex; gap: 6px; flex: none }
.comm-appr-acts .basic-btn { height: 26px; padding: 0 10px; font-size: .6875rem }

.sub-main-body.comm-tasks-on > .list-panel,
.sub-main-body.comm-tasks-on > .editor-panel { display: none }
.comm-tasks { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.comm-tasks[hidden] { display: none !important }
.comm-task-board {
  flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding: 14px 16px; overflow-y: auto; align-items: start;
}
.comm-task-col { background: #f8fafc; border: 1px solid var(--clr-border); border-radius: 10px; display: flex; flex-direction: column }
.comm-task-col > header {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: .8125rem; font-weight: 700;
  color: #334155; border-bottom: 1px solid var(--clr-border);
}
.comm-task-col > header span { margin-left: auto; font-size: .6875rem; color: #94a3b8; font-variant-numeric: tabular-nums }
.comm-task-cards { display: flex; flex-direction: column; gap: 8px; padding: 10px }
.comm-task-card { position: relative; background: #fff; border: 1px solid var(--clr-border); border-radius: 8px; padding: 10px }
.comm-task-card.late { border-color: #fecaca }
.comm-task-title { font-size: .8125rem; color: #1e293b; line-height: 1.45; word-break: break-word }
.comm-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: .6875rem; color: #94a3b8 }
.comm-task-who { display: inline-flex; align-items: center; gap: 4px; color: #475569 }
.comm-task-who.none { color: #cbd5e1 }
.comm-task-ava { width: 18px; height: 18px; flex-basis: 18px; font-size: .5625rem }
.comm-task-card.late .comm-task-due { color: #dc2626; font-weight: 600 }
.comm-task-acts { display: flex; gap: 3px; margin-top: 8px; opacity: 0; transition: opacity .12s }
.comm-task-card:hover .comm-task-acts, .comm-task-card:focus-within .comm-task-acts { opacity: 1 }
.comm-task-acts button {
  display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 24px; padding: 0 6px;
  border: 1px solid var(--clr-border); background: #fff; border-radius: 6px; color: #64748b; cursor: pointer; font-size: .8125rem;
}
.comm-task-acts button:hover { border-color: var(--clr-primary); color: var(--clr-primary) }
.comm-task-acts button.danger:hover { border-color: var(--btn-danger-bg); color: var(--btn-danger-bg) }
.comm-task-empty { font-size: .75rem; color: #cbd5e1; padding: 6px 2px }
.comm-task-filters { display: inline-flex; gap: 4px; margin-right: 6px }
.comm-task-filters button {
  border: 1px solid var(--clr-border); background: #fff; border-radius: 999px; padding: 3px 10px;
  font-size: .6875rem; color: #64748b; cursor: pointer;
}
.comm-task-filters button.on { border-color: var(--clr-primary); background: #eff6ff; color: #1d4ed8; font-weight: 600 }
@media (max-width: 900px) { .comm-task-board { grid-template-columns: 1fr } }

/* ── 채널 머리 파일 · 링크 받는 사람/보기 전용 (2026-09-12) ── */
.comm-chfiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px }
.comm-chfile { display: inline-flex; align-items: center; background: #f8fafc; border: 1px solid var(--clr-border); border-radius: 999px; padding: 2px 4px 2px 2px }
.comm-chfile-open { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; cursor: pointer; padding: 2px 4px; max-width: 260px }
.comm-chfile-open .comm-file-ico { width: 22px; height: 22px; font-size: .5625rem; border-radius: 6px }
.comm-chfile-name { font-size: .75rem; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-chfile-open:hover .comm-chfile-name { color: var(--clr-primary) }
.comm-chfile-x { border: none; background: none; color: #cbd5e1; cursor: pointer; font-size: .875rem; line-height: 1; padding: 2px 4px; border-radius: 50% }
.comm-chfile-x:hover { color: var(--btn-danger-bg); background: #fef2f2 }
.comm-chpin-pop {
  position: fixed; z-index: 60; min-width: 200px; max-height: 260px; overflow-y: auto; padding: 4px;
  background: #fff; border: 1px solid var(--clr-border); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.16);
}
.comm-chpin-pop[hidden] { display: none !important }
.comm-chpin-head { padding: 6px 8px; font-size: .6875rem; color: #94a3b8 }
.comm-chpin-pop button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 7px 8px; border-radius: 6px; font-size: .8125rem; color: #334155; cursor: pointer }
.comm-chpin-pop button:hover { background: #f1f5f9; color: var(--clr-primary) }
.comm-chpin-empty { padding: 8px; font-size: .75rem; color: #94a3b8 }
#cpPinCh { display: inline-flex; align-items: center; gap: 5px }
.comm-link-check { display: flex; align-items: flex-start; gap: 6px; font-size: .6875rem; color: #64748b; line-height: 1.5 }
.comm-link-view { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-weight: 600 }
.comm-link-to { display: inline-flex; align-items: center; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569 }

/* ── 새 문서 · 봇 글 · 웹훅 · 보존 기간 (2026-09-12) ── */
.comm-doc-pop {
  position: fixed; z-index: 60; min-width: 190px; padding: 4px; background: #fff;
  border: 1px solid var(--clr-border); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.16);
}
.comm-doc-pop[hidden] { display: none !important }
.comm-doc-pop button {
  display: block; width: 100%; text-align: left; border: none; background: none; padding: 8px;
  border-radius: 6px; font-size: .8125rem; color: #334155; cursor: pointer;
}
.comm-doc-pop button:hover { background: #f1f5f9; color: var(--clr-primary) }
.comm-doc-pop small { color: #94a3b8; font-size: .6875rem }
.comm-badge.bot { background: #e0f2fe; color: #0369a1 }
.comm-post.is-bot .comm-post-avatar { border-radius: 8px }

.comm-hook-intro { margin: 0 0 14px; font-size: .75rem; color: #64748b; line-height: 1.6 }
.comm-hook-intro code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: .6875rem }
.comm-hook-row { padding: 10px 0; border-top: 1px solid #eef2f7 }
.comm-hook-top { display: flex; align-items: baseline; gap: 8px; font-size: .75rem; color: #94a3b8 }
.comm-hook-top b { font-size: .8125rem; color: #1e293b }
.comm-hook-del { margin-left: auto; border: none; background: none; color: var(--btn-danger-bg); font-size: .6875rem; cursor: pointer; padding: 2px 4px; border-radius: 4px }
.comm-hook-del:hover { background: #fef2f2 }
.comm-hook-url { display: flex; gap: 6px; margin-top: 6px }
.comm-hook-url input {
  flex: 1; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--clr-border); border-radius: 6px;
  background: #f8fafc; font-size: .6875rem; color: #334155; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.comm-hook-empty { padding: 12px 0; font-size: .75rem; color: #94a3b8 }

.comm-retain { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--clr-border) }
.comm-retain-title { font-size: .8125rem; font-weight: 700; color: #334155; margin-bottom: 10px }
.comm-retain-note { margin: 2px 0 10px; font-size: .6875rem; color: #94a3b8; line-height: 1.6 }

/* 채널 수신 주소(2026-09-12) */
.comm-hook-hint { margin: 6px 0 0; font-size: .6875rem; color: #94a3b8; line-height: 1.6 }
#hkAddrBox .comm-hook-top { flex-wrap: wrap; gap: 6px 10px }

/* 오프라인 동기화 안내(2026-09-12) */
.comm-sync-steps { margin: 12px 0 0; padding-left: 20px; font-size: .75rem; color: #475569; line-height: 1.9 }
.comm-sync-steps li { margin: 0 }
/* 주소는 끝까지 보여야 한다 — 한 줄 칸은 긴 주소를 잘라 먹으므로 줄바꿈되는 글상자로 쓴다. */
#commSyncModal .field-row { flex-direction: column; align-items: stretch; gap: 2px }
#commSyncModal .field-row label { width: auto }
.comm-sync-addr { display: flex; gap: 6px; align-items: flex-start; margin-top: 2px }
.comm-sync-addr code {
  flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--clr-border); border-radius: 6px;
  background: #f8fafc; font-size: .6875rem; color: #334155; line-height: 1.5; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: all;
}
.comm-sync-addr .basic-btn { flex: none }

/* 채널 회의 띠(2026-09-12) */
.comm-meet-bar {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 9px 12px;
  border: 1px solid #bae6fd; border-radius: 10px; background: #f0f9ff;
}
.comm-meet-dot { width: 8px; height: 8px; border-radius: 50%; background: #0ea5e9; flex: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .18) }
.comm-meet-txt { flex: 1; min-width: 0; font-size: .8125rem; color: #0c4a6e;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-meet-join { flex: none; padding: 4px 14px; font-size: .75rem }

/* 회의 녹화(2026-09-12) */
.comm-meet-bar.is-rec { border-color: #fecaca; background: #fef2f2 }
.comm-meet-bar.is-rec .comm-meet-dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18) }
.comm-meet-bar.is-rec .comm-meet-txt { color: #7f1d1d }
.comm-meet-rec { flex: none; padding: 4px 12px; font-size: .75rem }

/* 회의 손님 링크(2026-09-12) */
.comm-meet-guest { flex: none; padding: 4px 12px; font-size: .75rem }
#commGuestModal .comm-sync-addr { margin-top: 4px }

/* 회의 대기실(2026-09-12) */
.comm-wait-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--clr-border) }
.comm-wait-row:last-child { border-bottom: 0 }
.comm-wait-name { flex: 1; min-width: 0; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-wait-at { font-size: .6875rem; color: #94a3b8; flex: none }
.comm-wait-row .basic-btn { flex: none; padding: 3px 12px; font-size: .75rem }
.comm-meet-wait { flex: none; padding: 4px 12px; font-size: .75rem }
.comm-wait-inline { padding: 2px 10px; font-size: .6875rem; margin-left: 6px }
.comm-guest-opt { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .75rem; color: #475569 }

/* 자료 이름으로 찾기(2026-09-12) */
.comm-files-find {
  height: 28px; width: 180px; max-width: 40vw; padding: 0 10px; border: 1px solid var(--clr-border);
  border-radius: 7px; background: #fff; font-size: .75rem; color: #334155; font-family: inherit;
}
.comm-files-find:focus { outline: none; border-color: #94a3b8 }
@media (max-width: 640px) { .comm-files-find { width: 120px } }
