.chat-active { background: #e9eff4; }
.chat-active .bar { min-height: 62px; padding: .55rem clamp(12px, 2vw, 30px); gap: .7rem; border-bottom-width: 2px; }
.chat-active .workspace-brand { font-size: .9rem; letter-spacing: .09em; }
.chat-active #identity { font-size: .85rem; color: #d7e4ec; }
.chat-active #navigation { gap: .4rem; }
.chat-active .bar button { background: #ffffff0c; border: 1px solid #ffffff38; border-radius: 8px; font-size: .82rem; }
.chat-active .bar button:hover { background: #ffffff24; }
.chat-active #sync, .chat-active #open-invites, .chat-active #open-sections,
.chat-active #open-history, .chat-active #refresh { display: none; }

#group-chat {
  --navy: #132e42;
  --blue: #1c526c;
  --teal: #12685d;
  --gold: #edc579;
  --ink-soft: #4f6576;
  --line: #dce5ec;
  --paper: #fff;
  --surface: #f4f7fa;
  flex: 1;
  min-height: 0;
  min-width: 0;
  margin: clamp(8px, 1.2vw, 18px);
  display: grid;
  grid-template-columns: clamp(285px, 27vw, 370px) minmax(0, 1fr);
  border: 1px solid #d7e3eb;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 32px #1a365213, 0 1px 3px #1a36520b;
  overflow: hidden;
}
#group-chat.chat-search-open { grid-template-columns: clamp(270px, 24vw, 330px) minmax(0, 1fr) clamp(240px, 25vw, 340px); }
.chat-sidebar, .chat-thread, #chat-search-panel { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.chat-sidebar { background: #fbfcfd; border-right: 1px solid var(--line); }
.chat-sidebar-header, .chat-thread-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem clamp(1rem, 2vw, 1.45rem);
  min-height: 78px;
  background: var(--paper);
}
.chat-sidebar-header { justify-content: space-between; background: transparent; }
.chat-sidebar h1 { font-size: clamp(1.48rem, 2.15vw, 1.85rem); font-weight: 790; letter-spacing: -.05em; color: var(--navy); }
.chat-primary, .chat-secondary, .chat-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .44rem;
  flex: 0 0 auto;
  padding: .58rem .82rem;
  min-height: 38px;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 700;
}
.chat-primary { background: var(--navy); color: #fff; }
.chat-primary:hover { background: #214763; }
.chat-primary:disabled { cursor: default; }
.chat-secondary, .chat-icon { background: #eaf0f4; color: var(--navy); }
.chat-secondary:hover, .chat-icon:hover, .chat-icon[aria-expanded="true"] { background: #dce8ef; }
.chat-icon { padding: 0; width: 40px; height: 40px; font-size: 1.2rem; }
.chat-icon.chat-primary { background: var(--navy); color: #fff; }
.ui-icon { position: relative; display: inline-block; width: 17px; height: 17px; flex: 0 0 17px; color: currentColor; }
.icon-plus::before, .icon-plus::after { content: ""; position: absolute; border-radius: 3px; background: currentColor; inset: 7px 2px 8px; }
.icon-plus::after { transform: rotate(90deg); }
.icon-search::before { content: ""; position: absolute; width: 9px; height: 9px; border: 1.6px solid currentColor; border-radius: 50%; top: 1px; left: 1px; }
.icon-search::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: currentColor; border-radius: 3px; top: 12px; left: 10px; transform: rotate(45deg); }
.icon-smile { border: 1.5px solid currentColor; border-radius: 50%; }
.icon-smile::before { content: ""; position: absolute; top: 4px; left: 3px; height: 2px; width: 2px; border-radius: 100%; background: currentColor; box-shadow: 5px 0 currentColor; }
.icon-smile::after { content: ""; position: absolute; inset: 6px 3px 3px; border-radius: 0 0 100% 100%; border-bottom: 1.5px solid currentColor; }

.chat-sidebar-controls { padding: 0 clamp(1rem, 2vw, 1.45rem); }
.chat-search-box {
  display: flex;
  align-items: center;
  gap: .58rem;
  margin: 0;
  padding: 0 .7rem;
  border: 1px solid #d6e1e9;
  border-radius: 10px;
  color: var(--ink-soft);
  background: #f2f6f9;
}
.chat-search-box:focus-within { border-color: #36738a; box-shadow: 0 0 0 2px #24718e26; }
.chat-search-box input {
  border: 0;
  background: transparent;
  padding: .57rem 0;
  outline: 0;
  color: var(--navy);
  min-height: 40px;
  font-size: .84rem;
}
.chat-search-box input::placeholder { color: #536b7d; opacity: 1; }
#chat-filters { display: flex; gap: .35rem; padding-block: .8rem .95rem; }
#chat-filters button {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid transparent;
  padding: .31rem .57rem;
  border-radius: 8px;
  min-height: 32px;
  font-size: .8rem;
  white-space: nowrap;
}
#chat-filters button:hover { background: #edf2f5; }
#chat-filters button[aria-pressed="true"] { background: #e7f0f4; color: #1b4c61; border-color: #d5e4eb; font-weight: 750; }
#chat-unread-total { font-weight: 750; margin-left: .12rem; }
.chat-list-status { color: var(--ink-soft); font-size: .86rem; margin: 1rem clamp(1rem, 2vw, 1.45rem) .4rem; }
.chat-list-status:empty, .chat-status:empty { display: none; }
#chat-rooms { border-top: 1px solid var(--line); padding: .55rem .64rem 1rem; overflow: auto; }
.chat-room {
  background: transparent;
  border: 1px solid transparent;
  color: var(--navy);
  border-radius: 11px;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
  gap: .65rem;
  padding: .65rem .55rem .65rem .67rem;
  margin-bottom: .15rem;
  position: relative;
}
.chat-room:hover { background: #f0f4f7; }
.chat-room[aria-current] { border-color: #cbdee8; background: #e8f1f6; }
.chat-room[aria-current]::before {
  content: ""; position: absolute; inset: .52rem auto .52rem 0;
  width: 3px; background: #235b76; border-radius: 4px;
}
.chat-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: #ebedf9;
  color: #384973;
  font-size: .82rem;
  font-weight: 810;
  letter-spacing: -.025em;
}
.chat-avatar[data-kind="general"] { background: var(--navy); color: var(--gold); }
.chat-avatar[data-kind="group"] { background: #e1efe8; color: #215e4e; }
.chat-room-text { display: grid; gap: .28rem; min-width: 0; }
.chat-room-text strong, .chat-room-text > span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.chat-room-text strong { font-size: .9rem; }
.chat-room-text > span { color: var(--ink-soft); font-size: .8rem; }
.chat-room-meta { display: grid; justify-items: end; align-self: stretch; align-content: center; gap: .22rem; min-width: 0; }
.chat-room-meta time { font-size: .66rem; color: var(--ink-soft); white-space: nowrap; }
.chat-unread {
  display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 4px; border-radius: 20px;
  color: white; background: var(--teal); font-size: .7rem; font-weight: 800;
}

.chat-thread-header { border-bottom: 1px solid var(--line); }
.chat-thread-label { flex: 1; min-width: 0; }
.chat-thread-header h2 { font-size: 1.09rem; overflow-wrap: anywhere; letter-spacing: -.017em; }
#chat-participants { padding: .05rem 0; font-size: .8rem; color: var(--ink-soft); }
.chat-thread-actions { display: flex; align-items: center; gap: .5rem; }
#chat-back, #new-chat-mobile { display: none; }
#chat-feed {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  background: radial-gradient(ellipse at 100% 0%, #f1f5f7 0%, transparent 64%), #f6f8fa;
  scrollbar-color: #b9cbd6 transparent;
}
.chat-feed-inner {
  min-height: 100%;
  max-width: 1040px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem clamp(1.3rem, 3.5vw, 3.8rem);
}
.chat-status { margin: 1.25rem auto; text-align: center; color: var(--ink-soft); font-size: .88rem; }
.chat-status:only-child { margin-block: auto; }
#chat-messages { display: flex; flex-direction: column; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.chat-date { align-self: center; padding: .25rem .7rem; border: 1px solid #dce5ed; border-radius: 24px; background: #edf3f7; color: #4d6378; font-size: .73rem; }
.chat-message {
  position: relative;
  align-self: flex-start;
  min-width: min(10rem, 65%);
  max-width: min(82%, 640px);
  padding: .7rem .8rem .4rem;
  border: 1px solid #dce6ee;
  border-radius: 4px 15px 15px 15px;
  background: #fff;
  box-shadow: 0 2px 4px #173a5511;
}
.chat-message:not(.chat-own) { margin-left: 2.1rem; }
.chat-message:not(.chat-own)::before {
  content: attr(data-initials); position: absolute; inset: 0 calc(100% + 8px) auto auto;
  display: grid; place-items: center; width: 25px; height: 25px;
  border-radius: 8px; background: #e0eaf0; color: #21516c; font-size: .62rem; font-weight: 800;
}
.chat-message.chat-own { align-self: flex-end; border-color: #cbdee8; border-radius: 15px 4px 15px 15px; background: #e4eff6; }
.chat-message:focus { outline: 2px solid var(--blue); outline-offset: 3px; }
.chat-author { display: block; color: #225c71; font-size: .78rem; }
.chat-body { margin: .3rem 0 .2rem; color: var(--navy); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.47; font-size: .96rem; }
.chat-message-footer { display: flex; gap: .52rem; justify-content: flex-end; align-items: center; color: var(--ink-soft); font-size: .71rem; }
.chat-text-button { color: var(--blue); background: transparent; padding: .2rem .25rem; font-weight: 700; }
.chat-text-button:hover { text-decoration: underline; }
#chat-older { display: block; margin: 0 auto .8rem; }

.chat-compose-area { position: relative; background: #fff; border-top: 1px solid var(--line); }
#chat-form { padding: .72rem clamp(.8rem, 3.5vw, 3.8rem) .82rem; background: #fff; }
.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: .55rem;
  max-width: 950px;
  margin-inline: auto;
  padding: .33rem;
  border: 1px solid #cddbe6;
  border-radius: 13px;
  background: #f9fbfc;
}
.chat-compose:focus-within { border-color: #54849a; }
#chat-draft { field-sizing: content; resize: none; min-width: 0; min-height: 40px; max-height: 7rem; padding: .56rem .25rem; border: 0; outline: 0; background: transparent; }
#chat-emoji-toggle { align-self: flex-end; background: transparent; color: #356078; }
#chat-emoji-toggle:hover, #chat-emoji-toggle[aria-expanded="true"] { background: #e2eef5; }
#chat-send { min-height: 40px; line-height: 1.1; padding-inline: 1.15rem; }
#chat-send:disabled { background: #dbe7ed; color: #536b7e; opacity: 1; }
#chat-error { color: #993434; font-size: .83rem; max-width: 950px; margin: .25rem auto 0; }
#chat-error:empty { display: none; }
#chat-latest { position: absolute; right: clamp(.8rem, 3.5vw, 3.8rem); bottom: calc(100% + .75rem); border: 1px solid #cfdde7; background: white; box-shadow: 0 3px 9px #173a5523; }
.chat-quote, .chat-reply {
  display: grid; gap: .17rem; border-left: 3px solid #41849a; background: #eff4f8;
  border-radius: .4rem; padding: .38rem .5rem; margin: .42rem 0; font-size: .81rem;
}
.chat-quote span, .chat-reply span { display: block; overflow-wrap: anywhere; color: var(--ink-soft); }
.chat-reply { grid-template-columns: minmax(0, 1fr) auto; align-items: center; max-width: 950px; margin: 0 auto .5rem; }
.chat-reply .chat-icon { width: 32px; height: 32px; }

#chat-search-panel { background: #fff; border-left: 1px solid var(--line); padding: 0 1rem; }
.chat-search-heading, .emoji-heading { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.chat-search-heading { min-height: 77px; }
.chat-search-heading h2 { font-size: 1.04rem; }
#chat-search-close, #emoji-close { width: 32px; height: 32px; }
#chat-search-status { flex: 0 0 auto; color: var(--ink-soft); font-size: .78rem; margin: .85rem 0 .35rem; }
#chat-search-results { min-height: 0; overflow-y: auto; margin: .4rem 0; padding: 0; list-style: none; }
#chat-search-results li { padding: .68rem .5rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.chat-result-meta { display: flex; justify-content: space-between; gap: .4rem; color: var(--ink-soft); font-size: .72rem; }
.chat-result-meta strong { color: var(--navy); }
#chat-search-results p { margin: .25rem 0; font-size: .88rem; white-space: pre-wrap; }

#chat-emoji-picker {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + .65rem);
  left: clamp(.8rem, 3.5vw, 3.8rem);
  width: min(400px, calc(100vw - 1.6rem));
  padding: .82rem;
  border: 1px solid #cad9e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px #162f4950;
}
.emoji-heading { margin-bottom: .58rem; }
.emoji-heading h3 { margin: 0; font-size: 1rem; }
.emoji-options { display: flex; align-items: center; gap: .75rem; margin-top: .55rem; }
#emoji-category { min-width: 0; width: 100%; padding: .35rem .42rem; border-color: #d6e1e9; border-radius: 8px; font-size: .8rem; }
.emoji-variants { display: flex; align-items: center; gap: .22rem; margin: 0; color: var(--ink-soft); font-size: .78rem; }
#emoji-status { color: var(--ink-soft); margin: .4rem 0; font-size: .8rem; }
#emoji-status:empty { display: none; }
#emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; max-height: min(250px, 30dvh); overflow-y: auto; margin-top: .5rem; }
.emoji-choice {
  min-width: 0; min-height: 36px; padding: .16rem 0; border-radius: 7px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.26rem; line-height: 1; background: transparent; color: var(--navy);
}
.emoji-choice:hover, .emoji-choice:focus-visible { background: #e7f0f5; }
#emoji-more { display: block; margin: .25rem auto 0; }

#chat-create, #chat-members { border-radius: 16px; padding: clamp(14px, 3vw, 23px); }
#chat-create { max-width: 510px; }
#chat-create fieldset { border: 1px solid #ccdadd; border-radius: .6rem; padding: .2rem .75rem .7rem; }
#chat-create input[type="radio"] { width: auto; }
#chat-people { max-height: 43vh; overflow: auto; }
#chat-people label { align-items: flex-start; }
#chat-people small { display: block; }
#chat-members { max-width: 420px; }
#chat-member-list { list-style: none; padding: 0; margin-bottom: 0; }
#chat-member-list li { border-top: 1px solid #dbe5e8; padding: .62rem .2rem; }
#chat-create-error { color: #993434; font-size: .9rem; }
.chat-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; white-space: nowrap; }
@media (max-width: 1000px) and (min-width: 721px) {
  #group-chat.chat-search-open { grid-template-columns: minmax(0, 1fr) minmax(240px, 34vw); }
  #group-chat.chat-search-open .chat-sidebar { display: none; }
}
@media (max-width: 720px) {
  .chat-active .bar { min-height: 50px; padding: 6px 10px; gap: .3rem; justify-content: space-between; }
  .chat-active .bar .workspace-brand { font-size: .78rem; letter-spacing: .035em; }
  .chat-active #identity { display: none; }
  .chat-active #navigation { width: auto; gap: .26rem; }
  .chat-active .bar button { padding: 6px 7px; font-size: .72rem; }
  #group-chat, #group-chat.chat-search-open { grid-template-columns: 1fr; border: 0; border-radius: 0; margin: 0; }
  #group-chat:not(.chat-list-open) .chat-sidebar, #group-chat.chat-list-open .chat-thread,
  #group-chat.chat-search-open .chat-sidebar, #group-chat.chat-search-open .chat-thread { display: none; }
  #chat-back, #new-chat-mobile { display: inline-flex; }
  .chat-sidebar-header, .chat-thread-header { min-height: 62px; padding: .55rem .75rem; gap: .55rem; }
  .chat-thread-header h2 { font-size: 1rem; }
  .chat-thread-actions { gap: .35rem; }
  .chat-avatar, .chat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .chat-icon { min-height: 36px; }
  .chat-room .chat-avatar { width: 44px; height: 44px; }
  .chat-feed-inner { padding: .85rem .75rem; }
  .chat-message { max-width: 83%; }
  .chat-message-footer { min-height: 25px; }
  #chat-form { padding: .52rem .56rem max(.56rem, env(safe-area-inset-bottom)); }
  #chat-send { padding-inline: .76rem; }
  #chat-draft, .chat-search-box input { font-size: 16px; }
  #chat-search-panel { border-left: 0; }
  .chat-search-heading { min-height: 62px; }
}

/* Les couleurs du salon reprennent le bleu nuit et le vert de S7VEN. */
.chat-active { background: #dfe9ec; }
#group-chat { border-color: #d1dfe4; box-shadow: 0 18px 45px #15364620; }
.chat-sidebar {
  --sidebar-text: #d5e4eb;
  --sidebar-border: #82a5b336;
  background: linear-gradient(158deg, #163a4b, #102b3e 70%);
  border-color: #244759;
  color: var(--sidebar-text);
}
.chat-sidebar h1 { color: #fff; }
.chat-sidebar .chat-primary { background: #f2d397; color: #162d3c; }
.chat-sidebar .chat-primary:hover { background: #f8dfa9; }
.chat-sidebar .chat-search-box { color: #bbd2dc; background: #ffffff0d; border-color: var(--sidebar-border); }
.chat-sidebar .chat-search-box input { color: #fff; }
.chat-sidebar .chat-search-box input::placeholder { color: #b6cdd8; }
.chat-sidebar #chat-filters button { color: var(--sidebar-text); }
.chat-sidebar #chat-filters button:hover { background: #ffffff0c; }
.chat-sidebar #chat-filters button[aria-pressed="true"] { background: #ffffff20; color: #fff; border-color: var(--sidebar-border); }
.chat-sidebar .chat-list-status { color: var(--sidebar-text); }
#chat-rooms { border-color: var(--sidebar-border); scrollbar-color: #789aa9 transparent; }
.chat-room { color: #f4fbff; }
.chat-room:hover { background: #ffffff12; }
.chat-room[aria-current] { background: #ffffff1c; border-color: var(--sidebar-border); }
.chat-room[aria-current]::before { background: #edc579; }
.chat-room-text > span, .chat-room-meta time { color: #c5d9e2; }
.chat-room .chat-avatar[data-kind="general"] { background: #ffffff20; }
.chat-room .chat-avatar[data-kind="group"] { background: #dceee5; }
.chat-room-new .chat-room-text strong { font-weight: 850; }
.chat-new-dot { background: #edc579; width: 8px; height: 8px; border-radius: 50%; }
#chat-feed {
  background-color: #f7fafa;
  background-image: radial-gradient(#829ba72b .7px, transparent .7px), linear-gradient(140deg, #f5f7f8, #eef5f2);
  background-size: 17px 17px, auto;
}
.chat-message.chat-own { background: #e1f0e9; border-color: #c8e1d6; }
.chat-receipt {
  padding: .16rem .24rem; background: transparent; color: #496371; line-height: 1;
  font-size: .96rem; font-weight: 820; min-height: 23px;
}
.chat-receipt:hover { background: #ffffff7a; }
.chat-receipt.receipt-seen { color: #09679e; letter-spacing: -.23em; padding-right: .46rem; }
.chat-receipt-detail {
  border-top: 1px solid #bdd8cc; padding-top: .38rem; margin: .2rem 0;
  color: #2b5770; font-size: .73rem; overflow-wrap: anywhere;
}
.icon-mic::before {
  content: ""; position: absolute; inset: 0 5px 5px; border: 1.5px solid currentColor; border-radius: 5px;
}
.icon-mic::after {
  content: ""; position: absolute; inset: 5px 2px 1px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 8px 8px;
}
.icon-video::before {
  content: ""; position: absolute; inset: 3px 5px 3px 0; border: 1.5px solid currentColor; border-radius: 3px;
}
.icon-video::after {
  content: ""; position: absolute; top: 5px; right: 1px; width: 5px; height: 7px;
  border: 1.5px solid currentColor; border-left: 0; border-radius: 1px 3px 3px 1px;
}
#chat-record { align-self: flex-end; background: transparent; color: #356078; }
#chat-record:hover, #chat-record:disabled { background: #e7f0ef; }
.chat-voice-draft { max-width: 950px; margin: 0 auto .55rem; padding: .55rem .65rem; border: 1px solid #cddfde; border-radius: 10px; background: #f3f8f7; }
.voice-draft-state { display: flex; align-items: center; gap: .5rem; padding: .14rem 0 .35rem; font-size: .84rem; color: #385367; }
.voice-dot { background: #138071; border-radius: 100%; width: 8px; height: 8px; }
.voice-recording .voice-dot { background: #b23d42; box-shadow: 0 0 0 4px #b23d4222; }
.voice-draft-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.voice-draft-actions button { min-height: 33px; }
#voice-preview { display: block; width: 100%; max-width: 370px; height: 36px; margin: .12rem 0 .42rem; }
.voice-message { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: .35rem 0 .18rem; width: min(282px, 54vw); }
.voice-message audio { width: 100%; height: 36px; }
.voice-play { display: grid; place-items: center; flex: 0 0 36px; height: 36px; padding: 0; border-radius: 50%; color: #fff; background: #22576b; }
.voice-wave {
  flex: 1; min-width: 40px; height: 19px;
  background: repeating-linear-gradient(90deg, #568477 0 2px, transparent 2px 6px);
  mask: radial-gradient(ellipse, #000 63%, transparent 66%) center / 100% 100%;
}
.voice-length, .voice-error { font-size: .72rem; color: #3d5f6e; }
.voice-error { flex: 1 0 100%; margin: 0; }
.voice-error:empty { display: none; }
.chat-call-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; padding: .42rem 0; font-size: .84rem;
}
.chat-call-card span { display: block; color: #4d6474; font-size: .76rem; }
.chat-call-card a { text-decoration: none; }
#chat-call { max-width: 520px; }
#chat-call p { color: #3b586b; }
#chat-call-error { color: #993434 !important; }
.call-options { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .6rem; }
.call-options button { background: #eaf0f4; }
@media (max-width: 720px) {
  .chat-thread-actions { gap: .24rem; }
  .chat-thread-actions .chat-icon { width: 32px; height: 34px; min-height: 34px; }
  .chat-compose { gap: .25rem; }
  #chat-record, #chat-emoji-toggle { width: 31px; }
  #group-chat .chat-sidebar { border: none; }
  .chat-receipt { min-height: 30px; }
}

#chat-attach { align-self: flex-end; background: transparent; color: #286379; }
#chat-attach:hover { background: #e2eef5; }
.suite-dialog { max-width: 550px; border-radius: 15px; }
.suite-dialog header h2 { font-size: 1.16rem; }
.suite-tabs, .suite-menu, .suite-reactions { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0; }
.suite-tabs button, .suite-menu button, .suite-reactions button, .suite-message-reactions button {
  background: #eaf1f3; color: #1a5062; border: 1px solid #dae7ea; font-weight: 690;
}
.suite-tabs button[aria-pressed="true"], .suite-reactions button[aria-pressed="true"],
.suite-message-reactions button[aria-pressed="true"] { background: #d7ebe2; border-color: #accfc2; }
.suite-reactions button { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.17rem; }
.suite-hint, .suite-feedback, #suite-share-status, #suite-action-status, #suite-favorites-status { font-size: .84rem; color: #4a6472; }
.suite-feedback:empty { display: none; }
#suite-poll-form fieldset { border: 1px solid #cbdde0; border-radius: 10px; }
#suite-poll-form input[name="answer"] { margin: .18rem 0; }
#suite-message-preview { overflow-wrap: anywhere; padding: .5rem .75rem; background: #f0f5f5; border-radius: 8px; color: #416274; }
.suite-link { background: transparent; color: #1b667b; padding: .35rem .5rem; font-weight: 720; }
.suite-link:hover { text-decoration: underline; }
.suite-more { min-width: 27px; min-height: 24px; font-size: 1rem; line-height: 1; }
.suite-message-reactions { display: flex; gap: .3rem; flex-wrap: wrap; margin: .45rem 0 0; }
.suite-message-reactions button { border-radius: 20px; padding: .18rem .42rem; font-size: .74rem; }
.suite-withdrawn .chat-body { font-style: italic; color: #56707c; }
.suite-edited, .suite-forwarded { color: #506c78; font-size: .72rem; }
.suite-forwarded { display: inline-block; margin-top: .22rem; }
.suite-starred { color: #805706; }
#suite-favorite-entries { list-style: none; padding: 0; }
#suite-favorite-entries li { padding: .5rem 0; border-top: 1px solid #dce7eb; overflow-wrap: anywhere; }
#suite-favorite-entries p { margin: .25rem 0; }
.suite-file-card, .suite-meeting { margin: .35rem 0 .1rem; background: #f6faf9; border: 1px solid #d4e4e3; border-radius: 9px; padding: .6rem; }
.suite-file-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .26rem .65rem; overflow-wrap: anywhere; }
.suite-file-card strong, .suite-file-card small { display: block; }
.suite-file-card p { flex: 1 0 100%; margin: 0; }
.suite-poll { min-width: min(240px, 54vw); display: grid; gap: .42rem; margin: .32rem 0; }
.suite-poll small { color: #4b6875; }
.suite-poll-option { display: grid; grid-template-columns: 1fr auto; gap: .3rem .5rem; text-align: left; color: #214f62; background: #f5faf9; border: 1px solid #d9e8e6; padding: .45rem; font-size: .8rem; }
.suite-poll-option[aria-pressed="true"] { border-color: #69a49b; background: #e1f0e9; }
.suite-poll-option progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: #2b7d72; }
.suite-agenda { white-space: pre-wrap; margin: .3rem 0; color: #48616d; }
.suite-meeting time { display: block; margin: .24rem 0; color: #416477; font-size: .78rem; }
.suite-meeting-controls { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
@media (max-width: 720px) {
  #chat-attach { width: 29px; }
  .chat-thread-actions .chat-icon { width: 28px; }
  .chat-thread-actions { gap: .18rem; }
}

.chat-receipt-detail span { display: block; margin-top: .25rem; }
#chat-filters { flex-wrap: wrap; }
.voice-message select { width: auto; padding: .35rem; margin: 0; }
#group-chat.chat-dark { background: #102632; color: #e6f3f3; color-scheme: dark; }
#group-chat.chat-dark :is(.chat-sidebar,.chat-sidebar-header,.chat-thread,.chat-thread-header,.chat-compose-area,#chat-search-panel) {
  background: #122d3a; color: #e6f3f3; border-color: #3a5462;
}
#group-chat.chat-dark :is(.chat-search-box,.chat-room,.chat-compose,#chat-emoji-picker) { background: #1a3543; color: #edf7f8; border-color: #3a5462; }
#group-chat.chat-dark .chat-room[aria-current="true"] { background: #285042; }
#group-chat.chat-dark :is(.chat-message,.chat-receipt-detail,.chat-date,.chat-secondary,.chat-icon) { background: #244653; color: #eff8f8; border-color: #43606a; }
#group-chat.chat-dark .chat-message.chat-own { background: #26584e; }
#group-chat.chat-dark :is(.chat-author,.chat-room-text,.chat-room-text span,.chat-room-meta,.chat-text-button,.chat-message-footer,.chat-receipt,.chat-status) { color: #d3ebed; }
#group-chat.chat-dark .chat-receipt.receipt-seen { color: #9dd3ff; }
