.chat-images-page h2 { font-size: 22px; }
.chat-threads h2 { margin: 18px 0 10px; }
.chat-threads .v41-thread { display: grid; gap: 5px; overflow-wrap: anywhere; }
.chat-threads .v41-thread small { font-size: 13px; }
.chat-room-heading { border-bottom: 1px solid #dae1d6; margin-bottom: 14px; padding-bottom: 12px; }
.chat-room-heading p, .chat-load-feedback, .chat-privacy-note { font-size: 14px; line-height: 1.7; }
.chat-images-page .v41-chat-body { min-width: 0; }
.chat-images-page .v41-message-list { max-height: 58vh; min-height: 220px; overflow: auto; overscroll-behavior: contain; padding: 12px; background: #f2f6ee; border-radius: 16px; }
.chat-images-page .v41-message { max-width: 90%; margin: 0 auto 14px 0; overflow-wrap: anywhere; }
.chat-images-page .v41-message.is-mine { margin-left: auto; margin-right: 0; background: #e3f0dd; }
.chat-images-page .v41-message p { white-space: pre-wrap; }
.chat-images-page .v41-message strong { font-size: 13px; }
.chat-image-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 8px; margin: 10px 0; }
.chat-image-open { display: block; background: #fff; padding: 0; border: 1px solid #cbd8c7; border-radius: 12px; overflow: hidden; cursor: zoom-in; min-width: 0; }
.chat-image-open img { display: block; width: 100%; height: 165px; object-fit: contain; }
.chat-image-error { color: #8e3a23; }
.chat-composer { margin-top: 20px; }
.chat-attach-button { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; background: #edf4e5; border: 1px dashed #6d9368; border-radius: 12px; font-weight: 600; cursor: pointer; }
.chat-attach-button input { max-width: 100%; width: 100%; min-width: 0; font: inherit; }
.chat-selected-images { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.chat-selected-images > div { min-width: 0; display: grid; gap: 8px; }
.chat-selected-images img { width: 100%; height: 100px; object-fit: contain; border: 1px solid #d6dece; border-radius: 10px; }
.chat-selected-images button { border: 1px solid #a5baa0; border-radius: 8px; padding: 9px; color: #17372d; background: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.chat-photo-dialog { width: min(96vw,1000px); max-width: 96vw; max-height: 94dvh; border: 1px solid #bed0b7; border-radius: 18px; padding: 16px; background: #fffdf8; }
.chat-photo-dialog::backdrop { background: rgb(0 20 15 / 75%); }
.chat-photo-dialog > button { display: block; margin: 0 0 12px auto; font: inherit; padding: 10px 18px; border-radius: 10px; background: #17372d; color: white; cursor: pointer; }
.chat-photo-dialog > img { display: block; max-width: 100%; max-height: 76dvh; object-fit: contain; margin: auto; }
@media(max-width:700px) { .chat-images-page .v41-chat-layout { display: block; } .chat-threads { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #dbe3d5; } .chat-threads nav { max-height: 170px; overflow: auto; } .chat-images-page .v41-message { max-width: 95%; } .chat-image-open img { height: 130px; } .chat-selected-images { gap: 6px; } }
