/* Communication is a workspace, not a dashboard: one list, one conversation. */
.communication-page { max-width: 1440px; margin: 0 auto; }
.comm-page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.comm-kicker { color: #708079; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.comm-page-head h1 { margin: 7px 0 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.15; }
.comm-page-head > p { margin: 0 0 2px; color: #75817b; font-size: 13px; line-height: 1.55; }
.comm-tabs { display: flex; align-items: stretch; gap: 28px; border-bottom: 1px solid #dfe5e1; margin-bottom: 20px; }
.comm-tab { display: inline-flex; align-items: center; gap: 8px; padding: 0 1px 15px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #748077; font: inherit; font-size: 14px; font-weight: 550; white-space: nowrap; cursor: pointer; }
.comm-tab.is-active { color: #166347; border-bottom-color: #166347; }
.comm-count { display: inline-flex; justify-content: center; align-items: center; min-width: 21px; min-height: 21px; padding: 2px 6px; border-radius: 6px; background: #e9eeeb; color: #53685c; font-size: 10px; line-height: 1.2; font-weight: 650; }
.comm-tab.is-active .comm-count { background: #dcece2; color: #166347; }
.comm-count.is-unread { background: #1b7653; color: #fff; border-radius: 7px; flex: none; }
.comm-workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); height: clamp(400px, calc(100dvh - 290px), 820px); min-height: 0; overflow: hidden; border: 1px solid #dce3dd; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px #24392c04; }
.comm-inbox { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fbfcfa; border-right: 1px solid #e3e8e1; }
.comm-search { display: block; margin: 18px 16px 14px; }
.comm-search input { width: 100%; min-width: 0; height: 41px; padding: 10px 13px; border: 1px solid #e1e6df; border-radius: 9px; background: #fff; color: #24392c; font: inherit; font-size: 12px; box-shadow: none; }
.comm-search input::placeholder { color: #8a948e; }
.comm-search input:focus { outline: 2px solid #16795140; outline-offset: 1px; border-color: #639a7d; }
.comm-inbox-label { padding: 0 19px 11px; font-size: 9px; letter-spacing: .1em; font-weight: 650; color: #8a968e; }
.comm-conversation-list { flex: 1; min-height: 0; overflow: auto; padding: 0 8px 12px; scrollbar-width: thin; }
.comm-list-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 15px 11px; margin: 2px 0; border: 1px solid transparent; border-radius: 10px; text-align: left; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.comm-list-item:hover { background: #f0f4ee; }
.comm-list-item.is-selected { background: #eaf2e9; border-color: #d8e7d6; }
.comm-item-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.comm-item-copy strong { font-size: 12px; line-height: 1.45; font-weight: 650; }
.comm-item-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f7c71; font-size: 11px; line-height: 1.4; }
.comm-item-copy small { color: #879188; font-size: 10px; line-height: 1.45; }
.comm-avatar { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #e2e8df; color: #657955; font-size: 13px; letter-spacing: -.03em; font-weight: 600; overflow: hidden; }
.comm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comm-event-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: #f0eee5; color: #8a896e; }
.comm-event-mark svg { width: 20px; height: 20px; }
.comm-inbox-footer { padding: 15px 18px; border-top: 1px solid #e8ebe5; font-size: 10px; line-height: 1.55; color: #8c958d; }
.comm-detail { min-width: 0; min-height: 0; overflow: auto; }
.comm-detail.is-dialog { display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.comm-empty { margin: auto; padding: 44px 24px; text-align: center; max-width: 470px; }
.comm-detail > .comm-empty { padding-top: 105px; }
.comm-empty-icon { display: inline-flex; width: 49px; height: 49px; align-items: center; justify-content: center; margin-bottom: 15px; border-radius: 14px; background: #eff3eb; color: #8ca080; }
.comm-empty-icon svg { width: 25px; height: 25px; }
.comm-empty h2 { margin: 0 0 9px; font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.comm-empty p { margin: 0 0 20px; color: #8a938a; font-size: 12px; line-height: 1.7; }
.comm-inbox .comm-empty { padding: 40px 15px; }
.comm-inbox .comm-empty h2 { font-size: 15px; }
.comm-event-detail { padding: 40px; max-width: 840px; margin: 0 auto; }
.comm-event-detail > h2 { margin: 12px 0; max-width: 550px; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.25; font-weight: 550; letter-spacing: -.04em; }
.comm-detail-note { font-size: 12px; line-height: 1.8; color: #859084; }
.comm-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 35px 0 18px; }
.comm-preview-head h3 { margin: 0; font-size: 12px; font-weight: 600; color: #576951; }
.comm-preview-messages { border-top: 1px solid #e8ece4; }
.comm-preview-messages > div { padding: 17px 0; border-bottom: 1px solid #e8ece4; }
.comm-preview-messages strong { font-size: 11px; font-weight: 600; }
.comm-preview-messages time { float: right; color: #919a8d; font-size: 10px; }
.comm-preview-messages p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #6d7b65; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comm-event-detail > footer { margin-top: 24px; }
.comm-event-detail > footer p { margin: 0 0 15px; color: #929a8b; font-size: 11px; line-height: 1.6; }
.comm-dialog-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #e7ebe4; flex-shrink: 0; }
.comm-dialog-head > div:not(.comm-detail-mobile) { flex: 1; min-width: 0; }
.comm-dialog-head h2 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.comm-dialog-head p { margin: 0; font-size: 11px; color: #879180; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.comm-private { font-size: 10px; color: #8d9983; white-space: nowrap; }
.comm-meeting-context { flex: none; background: #fafbf7; border-bottom: 1px solid #e9ecdf; font-size: 11px; color: #8a937c; }
.comm-meeting-context summary { padding: 12px 24px; cursor: pointer; }
.comm-meeting-context summary > span { color: #65744e; font-weight: 550; margin-right: 8px; }
.comm-meeting-context > div { padding: 0 24px 15px; }
.comm-meeting-context p { line-height: 1.65; }
.comm-timeline { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; padding: 14px 28px 24px; scrollbar-width: thin; background: #fcfdfb; overscroll-behavior: contain; }
.comm-day { flex: none; text-align: center; padding: 10px 0 18px; color: #929b87; font-size: 10px; }
.comm-message { display: flex; flex-shrink: 0; margin: 3px 0; justify-content: flex-start; min-width: 0; }
.comm-message.is-own { justify-content: flex-end; }
.comm-bubble { min-width: 90px; max-width: min(84%, 580px); padding: 12px 15px 8px; border: 1px solid #e6eade; border-radius: 3px 14px 14px 14px; background: #fff; }
.is-own .comm-bubble { background: #eaf2e5; border-color: #e0eada; border-radius: 14px 3px 14px 14px; }
.comm-message-text { margin: 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.comm-bubble > footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 20px; margin-top: 3px; color: #95a18b; font-size: 9px; }
.comm-reply-button { border: 0; padding: 3px 0 3px 6px; color: #87987a; background: transparent; cursor: pointer; font: inherit; font-size: 9px; }
.comm-reply-button:hover { color: #32663f; text-decoration: underline; }
.comm-deleted-text { color: #788471; font-size: 12px; font-style: italic; }
.comm-peer-control { flex: none; border: 0; border-radius: 6px; background: transparent; padding: 7px; color: #65745d; font: inherit; font-size: 10px; cursor: pointer; }
.comm-peer-control:hover { background: #f0f4ea; color: #385d37; }
.comm-message-search { display: flex; gap: 6px; align-items: center; flex: none; padding: 8px 20px; border-bottom: 1px solid #e7ebe4; }
.comm-message-search input { flex: 1; min-width: 0; border: 1px solid #e1e6df; border-radius: 7px; padding: 8px 10px; font: inherit; font-size: 11px; background: #fcfdfb; color: #34472f; }
.comm-message-search input:focus { outline: 2px solid #16795140; outline-offset: 1px; }
.comm-message-search .button { padding: 7px; font-size: 10px; }
.comm-search-status { flex: none; padding: 9px 24px; background: #f3f7ed; color: #657b55; font-size: 11px; overflow-wrap: anywhere; }
.comm-report { flex: none; max-height: 55%; overflow: auto; margin: 10px 16px; padding: 16px; border: 1px solid #e2dbbf; border-radius: 9px; background: #fffdf6; }
.comm-report h3 { font-size: 13px; margin: 0 0 8px; }
.comm-report > p { font-size: 11px; line-height: 1.6; color: #7e785e; margin: 0 0 10px; }
.comm-report blockquote { margin: 0 0 10px; padding: 8px 11px; max-height: 75px; overflow: auto; border-left: 2px solid #bbb88e; color: #6c715d; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comm-report label { display: block; margin-bottom: 6px; font-size: 11px; }
.comm-report textarea { display: block; width: 100%; resize: vertical; min-height: 65px; max-height: 120px; border: 1px solid #dbdfd2; border-radius: 7px; padding: 9px; font: inherit; font-size: 12px; }
.comm-report footer { display: flex; gap: 8px; margin-top: 10px; }
.comm-bubble blockquote { margin: 0 0 9px; padding: 7px 10px; border-left: 2px solid #93ae7e; border-radius: 0 5px 5px 0; background: #d9e6ce55; font-size: 10px; }
.comm-bubble blockquote strong { color: #5d7950; }
.comm-bubble blockquote p { margin: 3px 0 0; color: #839178; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comm-attachments { display: grid; gap: 6px; }
.comm-message-text + .comm-attachments { margin-top: 9px; }
.comm-attachment { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 180px; text-align: left; padding: 10px; background: #ffffff91; border: 1px solid #dce4d8; border-radius: 8px; color: #53684b; font: inherit; cursor: pointer; }
.comm-attachment > span:nth-child(2) { flex: 1; min-width: 0; }
.comm-attachment strong { display: block; max-width: 240px; font-size: 11px; font-weight: 550; overflow-wrap: anywhere; }
.comm-attachment small { display: block; margin-top: 5px; color: #8a9780; font-size: 10px; }
.comm-file-kind { font-size: 9px; font-weight: 700; color: #7f996b; padding: 11px 7px; background: #eaf0e4; border-radius: 5px; }
.comm-attachment > svg { width: 16px; height: 16px; flex: none; color: #8aa576; }
.comm-compose { flex: none; padding: 14px 22px 12px; background: #fff; border-top: 1px solid #e5eadf; }
.comm-compose-row { display: flex; align-items: center; gap: 10px; }
.comm-compose textarea { flex: 1; min-width: 0; resize: vertical; min-height: 43px; max-height: 130px; padding: 11px 2px; border: 0; background: transparent; font: inherit; font-size: 13px; line-height: 1.6; color: #34472f; box-shadow: none; }
.comm-compose textarea:focus { outline: none; box-shadow: none; }
.comm-compose:focus-within { box-shadow: inset 0 2px #9ab986; }
.comm-compose textarea::placeholder { color: #a1aa98; }
.comm-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 7px; flex: none; border: 0; border-radius: 8px; background: transparent; color: #839277; cursor: pointer; font: inherit; }
.comm-icon-button svg { width: 21px; height: 21px; }
.comm-icon-button:hover { background: #f0f4ea; color: #45692f; }
.comm-send { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 11px; background: #266a46; color: #fff; cursor: pointer; }
.comm-send svg { width: 19px; height: 19px; }
.comm-send:disabled { opacity: .3; cursor: default; }
.comm-compose-hint { display: flex; align-items: center; justify-content: space-between; margin: 7px 3px 0 46px; font-size: 9px; line-height: 1.5; color: #a2ab98; }
.comm-compose-reply { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; margin-bottom: 10px; border-left: 2px solid #93ad7e; background: #f4f7ef; }
.comm-compose-reply > div { min-width: 0; }
.comm-compose-reply strong, .comm-compose-reply span { display: block; font-size: 11px; }
.comm-compose-reply span { margin-top: 3px; font-size: 10px; color: #8a977b; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.comm-selected-files { display: flex; gap: 7px; overflow: auto; padding-bottom: 10px; }
.comm-selected-files > span { display: flex; align-items: center; gap: 6px; flex: none; padding: 3px 5px 3px 10px; background: #f0f5e9; border-radius: 7px; font-size: 10px; }
.comm-selected-files strong { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.comm-selected-files small { color: #899977; }
.comm-selected-files .comm-icon-button { width: 25px; height: 25px; }
.comm-load-more { align-self: center; flex: none; }
.comm-readonly { padding: 17px 24px; background: #f8f7ef; border-top: 1px solid #e9e5d7; font-size: 11px; }
.comm-readonly p { margin: 6px 0 0; color: #928d75; line-height: 1.6; }
.comm-error, .comm-inline-error { padding: 12px 17px; background: #fff7ef; color: #9c643c; font-size: 11px; line-height: 1.6; flex: none; }
.comm-error { border-radius: 8px; margin-bottom: 14px; }
.comm-compose .comm-inline-error { margin: 9px 0 0; border-radius: 6px; }
.comm-detail-mobile { display: none; }
.comm-invitation-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.comm-invitation-tools nav { display: flex; gap: 4px; padding: 4px; background: #eaf0e6; border-radius: 9px; }
.comm-filter { padding: 9px 16px; border: 0; border-radius: 6px; font: inherit; font-size: 12px; background: transparent; color: #849677; cursor: pointer; }
.comm-filter.is-active { background: #fff; color: #3c6240; box-shadow: 0 1px 4px #223c2220; }
.comm-invitation-tools .comm-search { margin: 0; width: 280px; }
.comm-explainer { margin: 18px 0 23px; color: #8b9682; font-size: 12px; line-height: 1.7; }
.comm-invitation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 365px), 1fr)); gap: 18px; }
.comm-invitation { min-width: 0; padding: 22px; background: #fff; border: 1px solid #e0e6da; border-radius: 14px; }
.comm-invitation > header { display: flex; align-items: center; gap: 10px; }
.comm-invitation > header > div { flex: 1; min-width: 0; }
.comm-invitation h2 { font-size: 13px; line-height: 1.4; margin: 0 0 4px; font-weight: 600; }
.comm-invitation header p { margin: 0; color: #96a088; font-size: 10px; }
.comm-invitation header .badge { flex-shrink: 0; font-size: 9px; padding: 5px 7px; }
.comm-invitation h3 { font-size: 17px; font-weight: 550; line-height: 1.4; letter-spacing: -.02em; margin: 23px 0 19px; }
.comm-invitation dl { margin: 0 0 18px; display: grid; gap: 12px; }
.comm-invitation dt { font-size: 9px; color: #9aa58e; margin-bottom: 4px; }
.comm-invitation dd { font-size: 12px; color: #586d49; margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.comm-event-link { border: 0; padding: 0; background: none; text-align: left; color: #7d9763; font: inherit; font-size: 11px; line-height: 1.5; cursor: pointer; }
.comm-event-link:hover { color: #306742; text-decoration: underline; }
.comm-invitation > footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; padding-top: 17px; border-top: 1px solid #ebeee5; }
.communication-page button:focus-visible, .comm-timeline:focus-visible { outline: 2px solid #628c50; outline-offset: 3px; }
.communication-page button:disabled { cursor: default; }
.communication-page .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
/* Secondary copy remains readable; only decorative marks use the lighter palette. */
.comm-item-copy small, .comm-detail-note, .comm-empty p, .comm-inbox-footer,
.comm-preview-messages time, .comm-event-detail > footer p, .comm-dialog-head p,
.comm-private, .comm-meeting-context, .comm-day, .comm-bubble > footer,
.comm-reply-button, .comm-attachment small, .comm-compose-hint,
.comm-explainer, .comm-invitation header p, .comm-invitation dt { color: #687761; }
.comm-item-copy strong { font-size: 13px; }
.comm-item-copy > span, .comm-dialog-head p, .comm-invitation header p { font-size: 12px; }
.comm-item-copy small, .comm-inbox-footer, .comm-preview-messages strong,
.comm-day, .comm-bubble > footer, .comm-reply-button, .comm-compose-hint { font-size: 10px; }
.comm-message-text { font-size: 14px; }
.comm-attachment strong { font-size: 12px; }
@media (max-width: 1150px) { .comm-workspace { grid-template-columns: 270px minmax(0, 1fr); } .comm-event-detail { padding: 30px; } .comm-private { display: none; } .comm-timeline { padding-inline: 19px; } }
@media (max-width: 720px) {
  .comm-page-head { margin-bottom: 22px; } .comm-page-head > p { display: none; }
  .comm-tabs { gap: 20px; overflow-x: auto; margin-bottom: 14px; } .comm-tab { font-size: 12px; padding-bottom: 13px; gap: 5px; }
  .comm-workspace { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 300px); min-height: 430px; border-radius: 12px; }
  .comm-inbox { border: 0; } .comm-detail { display: none; } .comm-detail.is-dialog { display: none; }
  .comm-workspace.has-detail .comm-inbox { display: none; } .comm-workspace.has-detail .comm-detail { display: block; } .comm-workspace.has-detail .comm-detail.is-dialog { display: flex; }
  .comm-detail-mobile { display: block; } .comm-event-detail .comm-detail-mobile { margin: -8px 0 22px -10px; }
  .comm-event-detail { padding: 24px; } .comm-preview-head { margin-top: 25px; }
  .comm-dialog-head { padding: 13px 12px; gap: 8px; } .comm-dialog-head h2 { font-size: 12px; } .comm-dialog-head .comm-avatar { width: 34px; height: 34px; font-size: 11px; }
  .comm-peer-control { font-size: 9px; max-width: 95px; padding: 6px 2px; }
  .comm-message-search { padding: 7px 11px; flex-wrap: wrap; } .comm-message-search input { font-size: 12px; }
  .comm-report { margin: 7px 10px; padding: 12px; } .comm-report textarea { font-size: 16px; }
  .comm-meeting-context summary { padding: 11px 17px; font-size: 10px; } .comm-meeting-context > div { padding-inline: 17px; }
  .comm-timeline { padding: 10px 13px 20px; } .comm-bubble { max-width: 91%; padding: 10px 12px 7px; } .comm-message-text { font-size: 14px; }
  .comm-compose { padding: 10px 11px; } .comm-compose-row { gap: 5px; } .comm-compose textarea { font-size: 16px; } .comm-compose-hint { margin-left: 5px; font-size: 8px; }
  .comm-send { width: 37px; height: 37px; } .comm-attachment { min-width: 160px; gap: 7px; padding: 8px; }
  .comm-invitation-tools { align-items: stretch; flex-direction: column; gap: 14px; } .comm-invitation-tools .comm-search { width: 100%; }
  .comm-invitation-tools nav { justify-content: space-between; } .comm-filter { flex: 1; padding-inline: 8px; font-size: 11px; }
  .comm-explainer { font-size: 11px; margin-block: 16px; } .comm-invitation { padding: 18px; } .comm-invitation header { flex-wrap: wrap; }
  .comm-invitation header .badge { margin-left: 52px; } .comm-invitation h3 { margin-top: 18px; }
}
