/* 커뮤니티(/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); }
/* 고른 카드는 위아래 5px 띄운다(2026-11-07, 사용자 요청 — 다른 카드는 2px 그대로) */
.comm-card.active { margin-top: 5px; margin-bottom: 5px; }
.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 }
/* 커뮤니티 머리 — 이름 아래 소개(2026-11-07) */
.comm-title-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25 }
.comm-title-row { display: flex; align-items: center; min-width: 0 }
.comm-title-text .comm-head-desc { margin: 2px 0 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* 채널 글 - 말풍선 */
.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) }

/* 미리보기 칸 여닫기 단추 - 상단 오른쪽 끝 */
/* 2026-11-11: 단추 모양 없이 서식 패널 아이콘(20px)만 — 켜면 테두리 선이 파랑으로 */
.comm-pv-toggle {
  margin-left: 8px; flex: none; width: 20px; height: 20px; padding: 0; border: 0; background: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: .8;
}
.comm-pv-toggle:hover { opacity: 1 }
.comm-pv-toggle.on { opacity: 1 }
.comm-pv-toggle.on svg rect { stroke: #2F6BFF }
.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 { display: flex; width: 20px; height: 20px; flex: none }
.comm-tpl-ico svg { display: block }
.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 }
/* 새 커뮤니티 창(2026-11-07, 참고 화면에 맞춤) - 너비 2배(340 → 680px), 템플릿 한 줄 여섯 칸, 제목은 왼쪽 칸,
   지침은 서식 편집기, 아이콘은 템플릿 · 도구줄 모두 16px */
.modal-box.comm-new-box { width: 680px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 28px 0 }
.comm-new-box .comm-tpl { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px }
.comm-new-box .comm-tpl-item { justify-content: center; gap: 6px; padding: 7px 6px; font-size: .8125rem; white-space: nowrap }
.comm-new-box .comm-tpl-name { overflow: hidden; text-overflow: ellipsis }
@media (max-width: 720px) { .comm-new-box .comm-tpl { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
:is(.comm-new-box, .comm-form-box) .field-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; column-gap: 12px; margin-bottom: 12px }
:is(.comm-new-box, .comm-form-box) .field-row > label { margin: 0; font-size: .8125rem; font-weight: 500; color: #475569 }
:is(.comm-new-box, .comm-form-box) .field-row.comm-guide-row { align-items: start }
:is(.comm-new-box, .comm-form-box) .field-row.comm-guide-row > label { padding-top: 6px }
.comm-new-box .comm-tpl-ch { margin: 4px 0 0; gap: 6px; font-size: .8125rem; color: #475569 }
.comm-new-box .comm-tpl-ch-label { margin-right: 0 }
.comm-new-box .comm-tpl-ch-item { padding: 0; background: none; color: #334155 }
:is(.comm-new-box, .comm-form-box) .modal-footer { margin: 20px -28px 0; padding: 14px 28px 18px; border-top: 1px solid var(--clr-border) }
.comm-guide-wrap { flex: 1; min-width: 0 }
.comm-guide-wrap .rte-toolbar { border: none; background: none; padding: 0 0 6px; gap: 4px }
.comm-guide-wrap .rte-btn { width: 30px; height: 28px; border-radius: 6px }
.comm-guide-wrap .rte-btn svg { display: block; width: 20px; height: 20px }
.comm-guide-wrap .rte-btn:hover { background: #eef2f7 }
.comm-guide-wrap .rte-btn.on { background: #dbe6ff }
.comm-guide-wrap .rte-toolbar + .comm-guide-edit { border-radius: 6px !important }
.comm-guide-edit { min-height: 160px; max-height: 360px; overflow-y: auto; padding: 10px 12px; line-height: 1.6; word-break: break-word; cursor: text }
.comm-guide-edit:empty::before { content: attr(data-placeholder); color: #9ca3af; pointer-events: none }
.comm-guide-edit ul, .comm-guide ul { margin: 2px 0; padding-left: 20px; list-style: disc }
.comm-guide-edit ol, .comm-guide ol { margin: 2px 0; padding-left: 22px; list-style: decimal }
.comm-guide-edit p, .comm-guide p { margin: 0 }
.comm-guide-edit a, .comm-guide a { color: #2F6BFF; text-decoration: underline }
#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 } }

/* 아이콘은 제 색(회색 선 + 파랑 강조)으로 그린다. 색 바탕 위에서만 글자색 한 색으로 */
.comm-sect.active svg [stroke], .comm-tb-btn.on svg [stroke], .basic-btn.primary svg [stroke], .comm-pick-check svg [stroke] { stroke: currentColor }
.comm-sect.active svg [fill]:not([fill="none"]), .comm-tb-btn.on svg [fill]:not([fill="none"]), .basic-btn.primary svg [fill]:not([fill="none"]) { fill: currentColor }
.comm-sect.active svg [fill="#FFFFFF"], .comm-sect.active svg [fill="#D6E2FF"], .comm-tb-btn.on svg [fill="#FFFFFF"], .comm-tb-btn.on svg [fill="#D6E2FF"], .basic-btn.primary svg [fill="#FFFFFF"], .basic-btn.primary svg [fill="#D6E2FF"] { fill: none }
.comm-act.on svg { fill: none; fill-opacity: 1 }
.comm-act.on svg [stroke] { stroke: currentColor }

/* ══ 메뉴 화면 짜임 — macOS YuniTeam 과 같게(2026-11-07) ══ */
.modal-box.comm-form-box { width: 640px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 28px 0 }
.comm-form-box .comm-guide-edit { min-height: 200px }
.comm-form-box .comm-retain { margin-top: 18px }
.comm-about-val { font-size: .8125rem; color: #334155; word-break: break-word }
.comm-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: #334155 }
.comm-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: inherit; font-size: inherit }

/* 갈래 머리줄 — 제목 · 개수 + 오른쪽 단추 */
.comm-sec-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--clr-border); background: #fff; flex: none; min-height: 60px }
.comm-sec-titles { min-width: 72px; flex: 1 1 auto }
.comm-sec-title { font-size: .9375rem; font-weight: 700; color: #1e293b; line-height: 1.3; white-space: nowrap }
.comm-sec-sub { font-size: .75rem; color: #64748b; margin-top: 2px; min-height: 1em; white-space: nowrap }
.comm-sec-acts { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 1 auto; min-width: 0 }
.comm-sec-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap }
.comm-sec-btn svg { flex: none; width: 20px; height: 20px }
.basic-btn.primary.comm-sec-btn svg path, .basic-btn.primary.comm-sec-btn svg rect, .basic-btn.primary.comm-sec-btn svg circle { stroke: currentColor }
.basic-btn.primary.comm-sec-btn svg [fill="#FFFFFF"], .basic-btn.primary.comm-sec-btn svg [fill="#D6E2FF"] { fill: none }
.comm-sec-select { width: auto; min-width: 120px; padding-top: 5px; padding-bottom: 5px }
.comm-sec-check { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: #334155; cursor: pointer; white-space: nowrap }
.comm-find { position: relative; display: inline-flex; align-items: center }
.comm-find svg { position: absolute; left: 9px; pointer-events: none }
.comm-find .comm-files-find { padding-left: 30px; width: 190px }

/* 아이콘만 있는 작은 단추 · «…» 메뉴 */
.comm-icon-btn { width: 30px; height: 30px; border: none; background: none; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0 }
.comm-icon-btn:hover { background: #eef2f7 }
.comm-icon-btn:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 1px }
.comm-icon-btn.comm-more { border: 1px solid var(--clr-border); background: #fff }
.comm-icon-btn.comm-more:hover { background: #f8fafc }
.comm-more-gap { width: 30px; flex: none }
.comm-menu-pop { position: fixed; z-index: 3000; min-width: 180px; background: #fff; border: 1px solid var(--clr-border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14); padding: 4px }
.comm-menu-pop[hidden] { display: none }
.comm-menu-pop button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 8px 12px; border-radius: 5px; font-size: .8125rem; color: #1e293b; cursor: pointer }
.comm-menu-pop button:hover, .comm-menu-pop button:focus { background: #eef2f7; outline: none }
.comm-menu-pop button.danger { color: #dc2626 }
.comm-menu-sep { height: 1px; background: var(--clr-border); margin: 4px 6px }

/* 전체 너비 칸(공지 · 멤버) */
.sub-main-body.comm-wide-on > .list-panel,
.sub-main-body.comm-wide-on > .editor-panel,
.sub-main-body.comm-wide-on > .preview-panel { display: none }
.comm-wide { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff }
.comm-wide[hidden] { display: none !important }
.comm-wide-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 24px }

/* 공지 카드 */
.comm-ncards { display: flex; flex-direction: column; gap: 10px }
.comm-ncard { border: 1px solid var(--clr-border); border-radius: 8px; padding: 14px 16px; background: #fff }
.comm-ncard.pinned { border-color: #2F6BFF; box-shadow: inset 0 0 0 1px #2F6BFF }
.comm-ncard-head { display: flex; align-items: center; gap: 8px; min-width: 0 }
.comm-ncard-pin { display: inline-flex; flex: none }
.comm-ncard-title { font-size: .9375rem; font-weight: 700; color: #1e293b; min-width: 0; word-break: break-word }
.comm-ncard-acts { margin-left: auto; display: flex; gap: 2px; flex: none }
.comm-ncard-meta { font-size: .75rem; color: #94a3b8; margin-top: 4px }
.comm-ncard-body { margin-top: 8px; font-size: .8125rem; color: #1e293b; line-height: 1.6; word-break: break-word }
.comm-rich ul { margin: 2px 0; padding-left: 20px; list-style: disc }
.comm-rich ol { margin: 2px 0; padding-left: 22px; list-style: decimal }
.comm-rich p { margin: 0 }
.comm-rich a { color: #2F6BFF; text-decoration: underline }
.comm-rich img { max-width: 100%; height: auto }

/* 줄 목록(자료 · 멤버) */
.comm-rows { border: 1px solid var(--clr-border); border-radius: 8px; overflow: hidden; background: #fff }
.comm-rows + .comm-rows-title, .comm-rows-title { font-size: .8125rem; font-weight: 700; color: #475569; margin: 18px 0 8px }
.comm-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px }
.comm-row + .comm-row { border-top: 1px solid #eef1f5 }
.comm-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px }
.comm-row-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .8125rem; color: #1e293b }
.comm-row-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-row-pos { font-size: .75rem; color: #94a3b8; white-space: nowrap }
.comm-row-sub { font-size: .75rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-row-ava.comm-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; font-size: .8125rem }
.comm-frow { cursor: pointer }
.comm-frow:hover { background: #f8fafc }
.comm-frow.sel { background: #eff4ff }
.comm-ftype { width: 38px; height: 26px; flex: none; border-radius: 5px; color: #fff; font-size: .625rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em }
.comm-row-open.basic-btn { flex: none; min-width: 64px; height: 30px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center }

/* 모임 — 작은 달력 + 카드 */
.comm-events { overflow: hidden }
.comm-ev-wrap { flex: 1; min-height: 0; display: flex }
.comm-mcal { flex: 0 0 300px; border-right: 1px solid var(--clr-border); padding: 16px; overflow-y: auto }
.comm-mcal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px }
.comm-mcal-title { font-size: .9375rem; font-weight: 700; color: #1e293b; margin-right: auto }
.comm-mcal-today { padding: 3px 12px; font-size: .75rem }
.comm-mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center }
.comm-mcal-dow { font-size: .6875rem; color: #94a3b8; padding: 4px 0 }
.comm-mcal-dow.sun { color: #dc2626 } .comm-mcal-dow.sat { color: #2563eb }
.comm-mcal-day { position: relative; border: none; background: none; height: 34px; width: 34px; margin: 0 auto; border-radius: 50%; font-size: .8125rem; color: #1e293b; cursor: pointer; font-variant-numeric: tabular-nums }
.comm-mcal-day:hover { background: #eef2f7 }
.comm-mcal-day.other { color: #cbd5e1 }
.comm-mcal-day.has::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #DB2777 }
.comm-mcal-day.today { background: var(--clr-primary); color: #fff; font-weight: 700 }
.comm-mcal-day.today.has::after { background: #fff }
.comm-mcal-day.sel { box-shadow: inset 0 0 0 2px #2F6BFF }
.comm-ev-list { flex: 1; min-width: 0; overflow-y: auto; padding: 4px 20px 24px }
.comm-ev-heading { display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 700; color: #475569; margin: 16px 0 8px }
.comm-ev-none { font-size: .8125rem; color: #94a3b8 }
.comm-ev-card { display: flex; gap: 14px; border: 1px solid var(--clr-border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; background: #fff }
.comm-ev-date { flex: 0 0 52px; height: 56px; border: 1px solid #fbcfe8; background: #fdf2f8; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center }
.comm-ev-date .m { font-size: .6875rem; font-weight: 700; color: #DB2777 }
.comm-ev-date .d { font-size: 1.25rem; font-weight: 700; color: #1e293b; line-height: 1.1 }
.comm-ev-card.past .comm-ev-date { border-color: var(--clr-border); background: #f8fafc }
.comm-ev-card.past .comm-ev-date .m { color: #94a3b8 }
.comm-ev-main { flex: 1; min-width: 0 }
.comm-ev-top { display: flex; align-items: center; gap: 8px; min-width: 0 }
.comm-ev-title { font-size: .9375rem; font-weight: 700; color: #1e293b; word-break: break-word }
.comm-ev-acts { margin-left: auto; display: flex; gap: 2px; flex: none }
.comm-ev-line { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: #334155; margin-top: 4px }
.comm-ev-line svg { flex: none }
.comm-ev-body { font-size: .8125rem; color: #1e293b; line-height: 1.6; margin-top: 6px; word-break: break-word }
.comm-ev-by { font-size: .75rem; color: #94a3b8; margin-top: 6px }
.comm-ev-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.comm-ev-foot .comm-rsvp { margin-right: auto }

/* 작업 — YuniTeam 칸 · 카드 */
.comm-tasks .comm-task-board { padding: 16px 20px; min-height: 0; align-items: stretch }
.comm-tasks .comm-task-col { min-height: 0; overflow-y: auto }
.comm-task-col > header i { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-right: 6px; display: inline-block }
.comm-task-col > header span { margin-left: 8px; padding: 0 7px; border-radius: 999px; background: #e9edf3; color: #475569; font-size: .6875rem; line-height: 18px }
.comm-task-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px }
.comm-badge.cat { background: #dcfce7; color: #15803d }
.comm-task-desc { font-size: .75rem; color: #475569; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.comm-task-card .comm-task-meta { justify-content: space-between; margin-top: 8px }
.comm-task-card.done .comm-task-title { color: #94a3b8 }
.comm-task-card .comm-task-acts { position: absolute; top: 6px; right: 6px; margin: 0; background: #fff; border-radius: 6px }

/* 채널 머리 — 이름 아래 주제 */
.comm-ch-name { display: block; font-weight: 700 }
.comm-ch-topic { display: block; font-size: .75rem; font-weight: 400; color: #94a3b8; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

@media (max-width: 900px) {
  .comm-mcal { flex-basis: 250px }
  .comm-sec-acts { max-width: 100% }
  .comm-sec-head { flex-wrap: wrap }
}

/* 답글에 답글(2026-11-07) — 줄기를 차례대로 펼쳐 들여 쓰고, 세 단계부터는 더 들이지 않는다(«↪ 이름» 으로 누구에게 단 답글인지 보인다) */
.comm-reply-row.d2 { margin-left: 22px; padding-left: 10px; border-left: 2px solid #eef2f7 }
.comm-reply-row.d3 { margin-left: 44px; padding-left: 10px; border-left: 2px solid #eef2f7 }
.comm-reply-to-who { font-size: .6875rem; color: #64748b; white-space: nowrap }
.comm-reply-to { font-size: .75rem; color: #64748b; margin: 0 0 4px }
.comm-post.is-reply .comm-post-acts [data-reply] { display: inline-flex }

/* 아이콘 16px 통일(2026-11-07) — 26px 글쓰기 단추의 기본 안쪽 여백이 아이콘을 14px 로 누르지 않게 */
.comm-tb-btn { padding: 0 }
.comm-tb-btn svg { flex: none }

/* 자료 폴더(2026-11-07) — 경로 · 폴더 줄 · 끌어다 놓기 · 옮기기 창 */
.comm-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: 0 0 10px; font-size: .8125rem; min-height: 28px }
.comm-crumb { border: none; background: none; padding: 4px 8px; border-radius: 6px; color: #475569; cursor: pointer; font: inherit; font-weight: 600 }
.comm-crumb:hover { background: #eef2f7; color: #1e293b }
.comm-crumb.on { color: #1e293b; cursor: default }
.comm-crumb.drop-on { background: #dbe6ff; box-shadow: inset 0 0 0 2px #2F6BFF }
.comm-crumb-sep { color: #cbd5e1; padding: 0 2px }
.comm-crumb-note { margin-left: 8px; font-size: .75rem; color: #94a3b8; font-weight: 400 }
.comm-ftype.folder { background: #fff7e6; border: 1px solid #fde7b0 }
.comm-ftype.folder svg { width: 18px; height: 18px }
.comm-folder-row .comm-row-name b { color: #1e293b }
.comm-frow.dragging { opacity: .45 }
.comm-folder-row.drop-on { background: #eff4ff; box-shadow: inset 0 0 0 2px #2F6BFF }
#cfGrid.drop-on { outline: 2px dashed #2F6BFF; outline-offset: -6px; border-radius: 10px }
.comm-move-list { max-height: 360px; overflow-y: auto; border: 1px solid var(--clr-border); border-radius: 8px; padding: 4px }
.comm-move-row { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: none; text-align: left; cursor: pointer;
  padding: 7px 10px 7px calc(10px + var(--d, 0) * 18px); border-radius: 6px; font-size: .8125rem; color: #1e293b }
.comm-move-row:hover:not([disabled]) { background: #eef2f7 }
.comm-move-row.on { background: #dbe6ff; font-weight: 600 }
.comm-move-row[disabled] { color: #cbd5e1; cursor: not-allowed }
.comm-move-row[disabled] svg { opacity: .4 }

/* 툴바로 옮긴 답글 첨부 단추(2026-11-11) — 편집기 툴바 단추와 같은 크기 */
.ye-toolbar .comm-reply-att { width: 30px; height: 30px }

/* +, × 는 8×8 로 통일(2026-11-11) — 단추 안 아이콘을 키우는 규칙보다 앞서게 */
.comm-sec-btn svg[width="8"] { width: 8px; height: 8px }

/* 공지 쓰기 첨부(2026-11-11) */
.comm-nm-att { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.comm-nm-att .comm-nm-att-list { padding: 0; }
#commNoticeModal .modal-box.comm-drop { outline: 1px dashed #2F6BFF; outline-offset: -6px; }
.comm-ncard .comm-post-files { margin-top: 10px; }
.field-row.comm-nm-att-row { align-items: flex-start; }
.field-row.comm-nm-att-row > label { padding-top: 8px; }
