/* Conversation surfaces share a readable rhythm and retain each saved palette. */
.conversation,
.project-chat {
  --cv-accent: var(--chat-colour, #176a57);
  --cv-wash: var(--chat-wash, #e7f5ed);
  --cv-ink: #223b33;
  --cv-muted: #53675d;
  --cv-line: #dbe4dd;
  color: var(--cv-ink);
  min-width: 0;
}

/* Inbox */
.dashboard:has(.thread-list) { color: #263c35; }
.dashboard:has(.thread-list) .dashboard-heading { align-items: center; gap: 18px; margin-bottom: 22px; }
.dashboard:has(.thread-list) .dashboard-heading h2,
.conversation > h2,
#projectChat .chat-heading h2 { font: 650 clamp(23px, 2vw, 30px)/1.2 'DM Sans', Arial, sans-serif; letter-spacing: -.8px; color: #203c31; margin: 0 0 7px; }
.dashboard:has(.thread-list) .dashboard-heading .eyebrow { display: none; }
.dashboard:has(.thread-list) .dashboard-heading p { font-size: 13px; color: #55695e; margin: 6px 0; }
.dashboard:has(.thread-list) .workspace-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid #dedeea; border-radius: 19px; background: #efedf7; margin-bottom: 20px; }
.dashboard:has(.thread-list) .workspace-tabs button { border: 0; min-height: 42px; padding: 10px 17px; border-radius: 14px; font-size: 12px; color: #625976; background: transparent; }
.dashboard:has(.thread-list) .workspace-tabs button.active { background: #6f53b5; color: white; box-shadow: 0 3px 9px #66518c26; }
.dashboard .thread-list { display: grid; gap: 10px; }
.dashboard .thread-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 15px; align-items: center; border: 1px solid #e0e6df; border-radius: 21px; padding: 17px 19px; background: #fffefa; box-shadow: 0 3px 12px #29443005; min-width: 0; transition: background .18s, border-color .18s, transform .18s; }
.dashboard .thread-row:hover { background: #f4f0fd; border-color: #d0c1e9; transform: translateY(-1px); }
.dashboard .thread-row.has-unread { background: linear-gradient(110deg, #f0e8ff, #fffdf8 78%); border-color: #cdb9ef; border-left: 4px solid #7957bd; padding-left: 16px; }
.dashboard .thread-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #e9dcff, #d8c8f3); border: 1px solid #ffffffd9; color: #69439a; }
.dashboard .thread-icon .icon { width: 23px; height: 23px; }
.dashboard .thread-copy { min-width: 0; }
.dashboard .thread-copy strong { display: block; color: #253c32; font-size: 14px; line-height: 1.45; font-weight: 750; overflow-wrap: anywhere; }
.dashboard .thread-copy > span { display: block; color: #647264; font-size: 11px; line-height: 1.5; margin-top: 4px; }
.dashboard .thread-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; color: #4d6256; font-size: 12px; line-height: 1.6; margin: 7px 0 0; max-height: 3.2em; }
.dashboard .thread-copy .unread-label { display: inline-flex; align-items: center; background: #7652b4; color: white; font-size: 10px; line-height: 1.4; font-weight: 700; padding: 3px 8px; margin-left: 6px; border-radius: 10px; vertical-align: middle; }
.dashboard .thread-row .status { font-size: 10px; padding: 5px 9px; white-space: nowrap; text-transform: capitalize; border-radius: 11px; }
.dashboard:has(.thread-list) > .notice { background: #f3f4ed; border: 1px solid #e1e6d8; color: #53664c; padding: 14px 17px; border-radius: 16px; font-size: 12px; line-height: 1.7; margin-top: 20px; }
.dashboard:has(.thread-list) .email-settings { background: linear-gradient(115deg, #edf4dc, #f8faee); border: 1px solid #d9e4c4; border-radius: 19px; padding: 19px; }
.dashboard:has(.thread-list) .email-settings h3 { font: 700 15px/1.3 'DM Sans', Arial, sans-serif; color: #385734; margin-bottom: 11px; }
.dashboard:has(.thread-list) .email-settings label { color: #3f5737; font-size: 13px; line-height: 1.6; align-items: center; }
.dashboard:has(.thread-list) .email-settings p { color: #53664c; font-size: 12px; line-height: 1.7; }
.dashboard:has(.thread-list) .email-settings input { width: 19px; height: 19px; accent-color: #48733d; flex-shrink: 0; }

/* Direct conversation */
.conversation > .text-button { min-height: 40px; padding: 9px 0; font-size: 12px; color: #4a6757; }
.conversation > .eyebrow { font-size: 9px; line-height: 1.6; letter-spacing: 1px; margin: 16px 0 9px !important; color: #61705b; }
.conversation .connection-status,
.dashboard:has(.thread-list) .connection-status { color: #286a4f; font-size: 11px; line-height: 1.5; font-weight: 600; }
.conversation .connection-status.offline { color: #8b531d; }
.conversation .conversation-meta { display: flex; gap: 8px; flex-wrap: wrap; background: transparent; border: 0; padding: 0; margin: 18px 0 12px; }
.conversation .conversation-meta > span { border-radius: 11px; padding: 8px 11px; background: var(--cv-wash); border: 1px solid color-mix(in srgb, var(--cv-accent) 15%, white); color: #3e5b4b; font-size: 11px; line-height: 1.4; }
.conversation .conversation-meta > .status { text-transform: capitalize; font-weight: 700; }
.conversation .contact-note { font-size: 12px; line-height: 1.65; color: #52695c; overflow-wrap: anywhere; }
.conversation .status-control { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: #3e584b; margin: 12px 0; }
.conversation .status-control select { min-height: 42px; padding: 9px 12px; border: 1px solid #cddbcf; border-radius: 12px; background: #fffef9; color: #2b4a39; font: 12px 'DM Sans', Arial, sans-serif; }
.conversation :is(.share-project-button, .track-booking) { min-height: 42px; padding: 10px 15px; font-size: 12px; gap: 7px; margin: 7px 7px 7px 0; border-radius: 14px; }
.conversation .share-project-button { background: var(--cv-accent); color: white; }
.conversation .track-booking { background: #fffdf7; border-color: #cedbce; color: #3a5b43; }
.conversation .message-list { background: radial-gradient(ellipse at 85% 0, var(--cv-wash), transparent 70%), #f3f5ef; border: 1px solid #dee6dc; border-radius: 23px; padding: 22px; margin: 22px 0 18px; display: flex; flex-direction: column; gap: 15px; min-height: 170px; }
.conversation .message { max-width: 82%; min-width: min(240px, 100%); padding: 15px 17px; border: 1px solid #e1e7dd; border-radius: 6px 20px 20px; background: #fffefa; color: var(--cv-ink); box-shadow: 0 3px 10px #31493605; }
.conversation .message.mine { align-self: flex-end; background: var(--cv-accent); color: #fff; border-color: transparent; border-radius: 20px 20px 6px; box-shadow: 0 4px 13px color-mix(in srgb, var(--cv-accent) 15%, transparent); }
.conversation .message-by { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; font-size: 11px; font-weight: 750; line-height: 1.5; color: #395545; }
.conversation .message time { font-size: 10px; line-height: 1.5; color: #607465; font-weight: 500; }
.conversation .message p { font-size: 14px; line-height: 1.75; margin: 8px 0 0; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.conversation .message.mine :is(.message-by, time, p) { color: #fff; }
.conversation .message.mine time { opacity: .88; }
.conversation #replyForm { padding: 15px 0 0; border-top: 1px solid var(--cv-line); scroll-margin-block: 90px 125px; }
.conversation .reply-label { font-size: 12px; font-weight: 700; color: #3c5947; }
.conversation #replyForm textarea { display: block; width: 100%; min-height: 84px; max-height: 220px; resize: vertical; padding: 13px 15px; border: 1px solid #cbdace; border-radius: 17px; background: #fffef9; color: #253c32; font: 14px/1.7 'DM Sans', Arial, sans-serif; margin-top: 9px; }
.conversation #replyForm .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.conversation #replyForm .primary { min-height: 44px; border-radius: 15px; padding: 11px 18px; font-size: 12px; background: var(--cv-accent); }
.conversation #replyForm .text-button { min-height: 40px; font-size: 11px; padding: 9px 5px; color: #586c5a; }

/* Project group chat */
#projectChat.project-chat { padding: 25px; border: 1px solid #e0e6dd; border-radius: 27px; background: #fffdf8 !important; box-shadow: 0 8px 28px #23432b08; margin: 24px 0; }
#projectChat .chat-heading { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
#projectChat .chat-heading > div { flex: 1; min-width: 120px; }
#projectChat .chat-heading > .clay-icon { width: 47px; height: 47px; border-radius: 16px; background: var(--cv-wash); color: var(--cv-accent); border-color: #ffffff; box-shadow: inset 0 1px white, 0 4px 10px #254a3010; }
#projectChat .chat-heading h2 { font-size: 24px; margin: 0 0 5px; }
#projectChat .chat-heading p { font-size: 12px; line-height: 1.5; color: #52695a; margin: 0; }
#projectChat #chatConnection { max-width: 185px; margin-left: auto; color: #2d6d50; font-size: 10px; font-weight: 650; line-height: 1.6; }
#projectChat #chatConnection.offline { color: #955821; }
#projectChat .chat-privacy { background: #f1f3ed; border: 1px solid #e2e7dc; border-radius: 14px; color: #52664d; font-size: 11px; line-height: 1.7; padding: 11px 14px; margin: 15px 0 12px; }
#projectChat .chat-privacy .icon { width: 17px; height: 17px; flex-shrink: 0; }
#projectChat .group-messages { height: clamp(260px, 46dvh, 460px); min-height: 0; padding: 20px; margin: 14px 0; border: 1px solid #e0e7dd; border-radius: 22px; background: radial-gradient(ellipse at 95% 0, var(--cv-wash), transparent 80%), #f3f5ee; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9cbb9 transparent; }
#projectChat .group-message { display: flex; align-items: flex-start; gap: 9px; max-width: 85%; margin: 0 0 18px; min-width: 0; }
#projectChat .group-message:last-child { margin-bottom: 0; }
#projectChat .group-message > div { background: #fffefa; border: 1px solid #e0e6dd; border-radius: 6px 19px 19px; padding: 13px 15px 8px; min-width: 0; max-width: 100%; box-shadow: 0 3px 10px #24422f05; color: var(--cv-ink); }
#projectChat .group-message.mine { margin-left: auto; flex-direction: row-reverse; }
#projectChat .group-message.mine > div { background: var(--cv-accent); color: #fff; border-color: transparent; border-radius: 19px 19px 6px; box-shadow: 0 4px 13px color-mix(in srgb, var(--cv-accent) 15%, transparent); }
#projectChat .chat-avatar { width: 33px; height: 33px; border-radius: 12px; background: #e5dbf6; color: #69459b; border: 2px solid #fff; box-shadow: 0 2px 5px #213d2d0a; font-size: 12px; }
#projectChat .mine .chat-avatar { background: var(--cv-wash); color: var(--cv-accent); }
#projectChat .group-message-meta { align-items: baseline; justify-content: flex-start; gap: 4px 8px; margin-bottom: 8px; font-size: 11px; line-height: 1.5; color: #35533f; }
#projectChat .group-message-meta strong { font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
#projectChat .group-message-meta span { color: #4b6052; font-size: 9px; line-height: 1.4; border-radius: 7px; padding: 3px 6px; background: #edf1e8; text-transform: capitalize; }
#projectChat .group-message-meta time { font-size: 10px; font-weight: 500; color: #607465; line-height: 1.5; }
#projectChat .group-message.mine :is(.group-message-meta, .group-message-meta strong, .group-message-meta time) { color: #fff; }
#projectChat .group-message.mine .group-message-meta span { background: #ffffff21; color: #fff; }
#projectChat .group-message > div > p { padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; font-size: 14px; line-height: 1.7; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
#projectChat .chat-pin-button { min-height: 36px; padding: 9px 0 3px; font-size: 10px; font-weight: 600; color: #65547d; text-decoration: none; }
#projectChat .chat-pin-button:hover { text-decoration: underline; }
#projectChat .chat-pin-button[aria-pressed="true"] { font-weight: 750; }
#projectChat .group-message.mine .chat-pin-button { color: #fff; }
#projectChat .chat-empty { padding: 35px 12px; color: #50664f; }
#projectChat .chat-empty > span { width: 58px; height: 58px; border-radius: 20px; background: var(--cv-wash); color: var(--cv-accent); border: 1px solid #ffffff; }
#projectChat .chat-empty h3 { font: 650 20px/1.3 'DM Sans', Arial, sans-serif; letter-spacing: -.4px; color: #35543f; margin: 17px 0 8px; }
#projectChat .chat-empty p { font-size: 12px; line-height: 1.65; color: #52694f; }
#projectChat .chat-new { min-height: 42px; padding: 10px 16px; background: var(--cv-accent); color: white; border: 1px solid #ffffff80; box-shadow: 0 4px 12px #253b281c; font-size: 12px; font-weight: 700; }
#projectChat .chat-older { min-height: 40px; font-size: 11px; color: #4e6754; }

/* Pins and attachments */
#projectChat .chat-pins { background: linear-gradient(110deg, #fff0c9, #fff8e7); border: 1px solid #e9d6a5; border-radius: 15px; padding: 12px 14px; margin: 12px 0; color: #735321; }
#projectChat .chat-pins > .eyebrow { font-size: 9px; color: #7b5a23; letter-spacing: 1px; }
#projectChat .pin-empty { font-size: 11px; line-height: 1.6; color: #775923; }
#projectChat .pinned-update { border-top: 1px solid #e7d7b4; padding-top: 10px; margin-top: 10px; }
#projectChat .pinned-update summary { min-height: 34px; align-items: center; font-size: 12px; color: #6c5028; gap: 9px; }
#projectChat .pinned-update summary > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#projectChat .pinned-update summary strong { font-size: 11px; color: #674822; margin-bottom: 3px; }
#projectChat .pinned-update summary::after { content: '+'; font-size: 19px; line-height: 1; font-weight: 400; color: #8d6b39; }
#projectChat .pinned-update[open] summary::after { content: '−'; }
#projectChat .pinned-update > div { padding: 10px 0 0; }
#projectChat .pinned-update > div > p { font-size: 13px; line-height: 1.7; color: #5f4b2c; margin: 0 0 9px; overflow-wrap: anywhere; }
#projectChat .pinned-update .text-button { min-height: 40px; font-size: 11px; color: #735527; }
#projectChat .chat-attachments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; margin: 10px 0 5px; }
#projectChat .chat-file { width: 100%; max-width: 350px; min-width: 0; padding: 9px; border: 1px solid #dce5dc; border-radius: 13px; background: #fffefb; color: #2f493a; gap: 10px; text-decoration: none; }
#projectChat .chat-file:hover { background: #f5f2ff; border-color: #c3b5df; }
#projectChat .chat-file > img { width: 72px; height: 72px; border-radius: 9px; object-fit: cover; }
#projectChat .chat-file > .icon-wrap { display: grid; place-items: center; width: 38px; height: 44px; border-radius: 11px; background: #eee8f8; color: #7958a5; flex-shrink: 0; }
#projectChat .chat-file strong { color: #2d4838; font-size: 11px; line-height: 1.5; font-weight: 700; }
#projectChat .chat-file small { font-size: 10px; line-height: 1.5; color: #526d5a; margin-top: 4px; }
#projectChat .file-drafts { gap: 7px; margin: 10px 0; }
#projectChat .file-drafts > div { border: 1px solid #dbd0ec; background: #f0e9fb; color: #65488a; border-radius: 12px; padding: 5px 6px 5px 10px; gap: 7px; font-size: 11px; }
#projectChat .file-drafts > div > span { min-width: 0; overflow-wrap: anywhere; }
#projectChat .file-drafts button { width: 40px; height: 40px; min-width: 40px; border-radius: 9px; display: grid; place-items: center; color: #65458d; }
#projectChat .file-drafts button:hover { background: #e4d6f7; }

/* Composer and palette controls remain in normal page flow for mobile keyboards. */
#projectChatForm { border-top: 1px solid #dce6d9; padding-top: 15px; scroll-margin-block: 90px 125px; }
#projectChatForm > label { font-size: 12px; color: #3b5844; font-weight: 700; margin: 0 0 9px; }
#projectChatText { min-height: 76px; max-height: 220px; padding: 12px 14px; border: 1px solid #c7d8cb; background: #fffefa; border-radius: 17px; font: 14px/1.7 'DM Sans', Arial, sans-serif; color: #263f32; scroll-margin-bottom: 120px; }
#projectChat :is(textarea, select):focus-visible,
.conversation :is(textarea, select):focus-visible { outline: none; box-shadow: inset 0 -2px 0 #81786d88; border-color: #b8b0a5; }
#projectChat :is(button, a, summary):focus-visible,
.conversation :is(button, a, summary):focus-visible,
.dashboard:has(.thread-list) :is(button, a, input):focus-visible { outline: 3px solid #9d86cd; outline-offset: 3px; }
#projectChat .chat-file-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 10px; }
#projectChatForm .chat-file-upload .upload-label { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; border: 1px solid #d5c8ea; border-radius: 13px; background: #f0e9fb; color: #684694; font-size: 11px; font-weight: 700; padding: 9px 12px; margin: 0; }
#projectChat .chat-file-upload small { font-size: 10px; line-height: 1.5; color: #5f705d; }
#projectChat .chat-compose-footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
#projectChat .chat-compose-footer small { font-size: 10px; line-height: 1.6; color: #5e715d; }
#projectChat .chat-compose-footer .primary { min-height: 44px; padding: 11px 18px; border-radius: 15px; background: var(--cv-accent); color: white; font-size: 12px; gap: 8px; }
#projectChat .chat-compose-footer .primary:disabled,
.conversation #replyForm .primary:disabled { opacity: .58; cursor: default; }
.conversation .chat-palette,
#projectChat .chat-palette { margin: 10px 0 12px; }
.conversation .chat-palette > summary,
#projectChat .chat-palette > summary { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 9px 12px; border: 1px solid #dfd5ee; border-radius: 13px; background: #f2eafa; color: #704c9b; font-size: 11px; font-weight: 700; }
.conversation .chat-palette > div,
#projectChat .chat-palette > div { width: min(100%, 400px); padding: 15px; border: 1px solid #dacdeb; border-radius: 17px; background: #fffdf9; box-shadow: 0 8px 24px #4b306114; margin-top: 8px; color: #5c4b70; }
.conversation .chat-palette small,
#projectChat .chat-palette small { font-size: 11px; line-height: 1.6; color: #5f4f70; }
.conversation .chat-swatches,
#projectChat .chat-swatches { gap: 7px; margin-top: 10px; }
.conversation .chat-swatches button,
#projectChat .chat-swatches button { width: 43px; height: 43px; padding: 6px; }
.conversation .chat-palette [role="status"],
#projectChat .chat-palette [role="status"] { display: block; font-size: 11px; color: #4d6c50; margin-top: 7px; }

@media (max-width: 700px) {
  .dashboard:has(.thread-list) .dashboard-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .dashboard:has(.thread-list) .dashboard-heading > .outline { padding: 9px 13px; min-height: 40px; font-size: 11px; }
  .dashboard:has(.thread-list) .workspace-tabs { width: 100%; gap: 3px; }
  .dashboard:has(.thread-list) .workspace-tabs button { padding: 10px 12px; font-size: 11px; flex: 1; }
  .dashboard .thread-row { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 12px; gap: 10px; border-radius: 17px; }
  .dashboard .thread-row.has-unread { padding-left: 9px; }
  .dashboard .thread-icon { width: 36px; height: 39px; border-radius: 13px; align-self: start; }
  .dashboard .thread-icon .icon { width: 20px; height: 20px; }
  .dashboard .thread-copy strong { font-size: 13px; }
  .dashboard .thread-copy > span { font-size: 10px; }
  .dashboard .thread-copy p { font-size: 12px; margin-top: 5px; }
  .dashboard .thread-row > .status { grid-column: 2; justify-self: start; margin-top: -2px; font-size: 9px; }
  .dashboard .thread-copy .unread-label { font-size: 9px; margin-left: 4px; }
  .conversation .message-list { padding: 13px 11px; margin-top: 18px; border-radius: 18px; gap: 12px; }
  .conversation .message { max-width: 94%; min-width: 0; padding: 12px 14px; }
  .conversation .message p { font-size: 14px; line-height: 1.7; }
  .conversation .message-by { gap: 3px 12px; font-size: 11px; }
  .conversation .message time { font-size: 10px; margin-top: 0; }
  .conversation #replyForm textarea { font-size: 16px; min-height: 78px; }
  .conversation .status-control select { font-size: 16px; }
  .conversation #replyForm { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  #projectChat.project-chat { padding: 17px !important; border-radius: 22px; }
  #projectChat .chat-heading { gap: 10px; }
  #projectChat .chat-heading > .clay-icon { width: 41px; height: 41px; border-radius: 14px; }
  #projectChat .chat-heading h2 { font-size: 22px; }
  #projectChat .chat-heading p { font-size: 11px; }
  #projectChat #chatConnection { flex-basis: 100%; max-width: none; text-align: left; margin-left: 0; font-size: 10px; }
  #projectChat .chat-privacy { font-size: 11px; padding: 10px 12px; }
  #projectChat .group-messages { height: clamp(200px, 39dvh, 340px); min-height: 0; padding: 12px 9px; border-radius: 17px; }
  #projectChat .group-message { max-width: 100%; gap: 6px; margin-bottom: 14px; }
  #projectChat .group-message > div { padding: 11px 12px 7px; max-width: calc(100% - 34px); }
  #projectChat .chat-avatar { width: 28px; height: 28px; border-radius: 10px; font-size: 10px; }
  #projectChat .group-message-meta { gap: 4px 6px; }
  #projectChat .group-message-meta time { width: 100%; font-size: 10px; }
  #projectChat .group-message > div > p { font-size: 14px; line-height: 1.7; }
  #projectChat .chat-pin-button { min-height: 40px; }
  #projectChat .chat-pins { padding: 11px 12px; border-radius: 14px; }
  #projectChat .pinned-update summary { min-height: 40px; }
  #projectChat .chat-file { padding: 8px; gap: 8px; }
  #projectChat .chat-file > img { width: 58px; height: 64px; }
  #projectChat .chat-attachments { grid-template-columns: minmax(0, 1fr); }
  #projectChatText { font-size: 16px; min-height: 76px; }
  #projectChat .chat-compose-footer { align-items: center; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  #projectChat .chat-compose-footer small { max-width: 150px; font-size: 9px; }
  #projectChat .chat-compose-footer .primary { margin-left: auto; padding: 11px 15px; font-size: 12px; }
}

@media (max-width: 390px) {
  #projectChat.project-chat { padding: 13px !important; }
  #projectChat .group-messages { padding-inline: 7px; }
  #projectChat .group-message > div { padding-inline: 10px; }
  #projectChat .chat-avatar { display: none; }
  #projectChat .group-message > div { max-width: 100%; }
  #projectChat .chat-compose-footer small { max-width: 108px; }
  .conversation :is(.share-project-button, .track-booking) { font-size: 11px; padding-inline: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard .thread-row { transition: none; }
  .dashboard .thread-row:hover { transform: none; }
}

@media (forced-colors: active) {
  .conversation .message,
  #projectChat .group-message > div,
  .dashboard .thread-row,
  #projectChat .chat-file,
  #projectChat .chat-pins { border: 1px solid CanvasText; }
}
