/* Private conversations, visually part of the everyday-journey marketplace. */
.chat-panel { max-width: var(--content-width, 1320px); margin: 0 auto 36px; padding: 25px; scroll-margin-top: 20px; }
.chat-panel [hidden] { display: none !important; }
.chat-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 21px; }
.chat-heading h2 { font-size: 1.65rem; letter-spacing: -.035em; margin-bottom: 8px; }
.chat-heading .card-kicker { margin-bottom: 9px; }
.chat-heading > button { flex-shrink: 0; }
.chat-preferences { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 15px 17px; background: #f4f7ef; border: 1px solid var(--line); border-radius: 12px; }
.chat-email-label { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: .87rem; cursor: pointer; }
.chat-email-label input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--primary); }
.chat-help { color: var(--muted); font-size: .79rem; line-height: 1.5; margin: 0; }
.chat-status { font-size: .85rem; line-height: 1.5; margin: 12px 0; color: var(--muted); }
.chat-status:empty { display: none; }
.chat-status.is-error, .chat-help.is-error { color: var(--danger, #b42318); }
.chat-status.is-success { color: var(--primary); }
.chat-workspace { display: grid; grid-template-columns: minmax(240px, .82fr) minmax(0, 1.8fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 440px; }
.chat-inbox { padding: 20px 12px; background: #fbfcf8; border-right: 1px solid var(--line); min-width: 0; }
.chat-inbox > h3 { padding: 0 8px; margin-bottom: 16px; font-size: .85rem; }
.chat-conversations { padding: 0; margin: 0; list-style: none; max-height: 570px; overflow-y: auto; }
.chat-conversations li + li { margin-top: 5px; }
.chat-conversation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 10px; padding: 13px 12px; background: transparent; color: var(--text); min-width: 0; box-shadow: none; }
.chat-conversation:hover { background: #eef4e9; }
.chat-conversation[aria-current="true"] { background: var(--primary-soft, #eaf3e7); border-color: #c8d9c4; }
.chat-conversation-name { font-size: .91rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-conversation-route, .chat-conversation-preview { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; color: var(--muted); font-weight: 400; line-height: 1.4; }
.chat-conversation-route { color: #456352; }
.chat-unread, [data-chat-unread]:not([hidden]) { display: inline-flex; justify-content: center; align-items: center; min-width: 21px; height: 21px; padding: 1px 5px; border-radius: 20px; background: var(--primary); color: #fff; font-size: .67rem; font-weight: 750; vertical-align: middle; }
.chat-unread { grid-column: 2; grid-row: 1; }
.chat-thread { background: #fff; min-width: 0; }
.chat-thread-intro, .chat-signin { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 360px; padding: 30px; }
.chat-signin { min-height: 260px; background: #f7f9f2; border-radius: 14px; border: 1px dashed #cad8c4; }
.chat-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #e7f0df; color: var(--primary); font-size: 1.75rem; border-radius: 50%; margin-bottom: 18px; }
.chat-signin p, .chat-thread-intro p { font-size: .9rem; color: var(--muted); line-height: 1.6; max-width: 360px; }
.chat-thread-intro h3, .chat-signin h3 { line-height: 1.45; }
.chat-thread-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat-thread-header > div { min-width: 0; }
.chat-thread-header h3 { overflow-wrap: anywhere; margin-bottom: 4px; }
.chat-thread-route { overflow-wrap: anywhere; }
.chat-post-link { font-size: .78rem; flex-shrink: 0; }
.chat-back { display: none; }
.chat-history-wrap { padding: 15px 22px; height: 330px; overflow-y: auto; overscroll-behavior: contain; background: #fcfdf9; }
.chat-history { padding: 0; margin: 0; list-style: none; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 13px; }
.chat-message.is-mine { align-items: flex-end; }
.chat-message-bubble { max-width: min(85%, 550px); padding: 11px 14px; border-radius: 13px 13px 13px 3px; background: #edf1e9; }
.chat-message.is-mine .chat-message-bubble { background: var(--primary); color: #fff; border-radius: 13px 13px 3px 13px; }
.chat-message-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .89rem; line-height: 1.55; margin: 0; }
.chat-message-meta { display: block; margin-top: 6px; font-size: .67rem; color: var(--muted); }
.chat-message.is-mine .chat-message-meta { color: #dfede5; }
.chat-empty { margin: 12px 8px; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.chat-older { display: block; margin: 0 auto 16px; font-size: .78rem; }
.chat-thread > div > .chat-status, .chat-readonly { margin: 12px 22px; }
.chat-readonly { font-size: .83rem; line-height: 1.6; padding: 13px; background: #f5f6f0; border-radius: 9px; color: var(--muted); }
.chat-compose { padding: 17px 22px; border-top: 1px solid var(--line); }
.chat-compose > label { font-size: .82rem; margin-bottom: 8px; }
.chat-compose textarea { display: block; width: 100%; min-height: 85px; max-height: 220px; resize: vertical; font: inherit; font-size: .88rem; padding: 12px 13px; border: 1px solid #c9d7c7; border-radius: 9px; background: #fff; color: var(--text); line-height: 1.5; }
.chat-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 10px; }
.chat-compose-footer .chat-help { max-width: 310px; font-size: .73rem; }
.chat-compose-footer button { flex-shrink: 0; font-size: .81rem; min-height: 40px; }
.chat-panel button:focus-visible, .chat-panel a:focus-visible, .chat-panel textarea:focus-visible, .chat-panel input:focus-visible { outline: 3px solid #7eb28f; outline-offset: 3px; }
.chat-panel button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 1400px) { .chat-panel { margin-left: min(5vw, 64px); margin-right: min(5vw, 64px); } }
@media (max-width: 720px) {
  .chat-panel { padding: 18px; margin: 0 15px 28px; }
  .chat-heading { flex-wrap: wrap; gap: 12px; }
  .chat-heading h2 { font-size: 1.45rem; }
  .chat-heading .panel-note { font-size: .88rem; }
  .chat-preferences { padding: 13px; }
  .chat-workspace { display: block; min-height: 330px; }
  .chat-inbox { border-right: 0; min-height: 300px; }
  .chat-thread { display: none; }
  .chat-workspace.is-thread-open .chat-inbox { display: none; }
  .chat-workspace.is-thread-open .chat-thread { display: block; }
  .chat-thread-header { padding: 14px; gap: 10px; flex-wrap: wrap; }
  .chat-thread-header > div { flex: 1; }
  .chat-back { display: block; flex-basis: 100%; text-align: left; padding-left: 0; font-size: .8rem; }
  .chat-history-wrap { padding: 14px; height: min(45vh, 350px); min-height: 230px; }
  .chat-message-bubble { max-width: 92%; }
  .chat-compose { padding: 14px; }
  .chat-compose-footer { gap: 10px; align-items: flex-start; }
  .chat-compose-footer .chat-help { max-width: 180px; }
  .chat-thread > div > .chat-status, .chat-readonly { margin-left: 14px; margin-right: 14px; }
  .chat-signin { padding: 24px 15px; }
}
