.shell-chats, .chats-view {
  --chat-panel: #192635;
  --chat-border: #2d3b46;
  --chat-soft: #263540;
  --chat-hover: #203344;
  --chat-selected: #1c354a;
  --chat-focus: #429fe0;
  --chat-muted: #a7b7c5;
  --chat-graphite: #1b2127;
}
.shell-chats {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.shell-chats .topbar {
  flex: none;
  gap: 12px;
  background: var(--chat-graphite);
  border-bottom-color: var(--chat-border);
}
.shell-chats .topbar-left { flex: 1; min-width: 0; display: flex; align-items: center; }
.shell-chats .topbar-right { flex: none; }
.shell-chats .breadcrumb { display: none; }
.shell-chats .main-content {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px clamp(10px, 1.1vw, 20px) 16px;
  background: #171e25;
}
.chats-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  color: var(--text);
}
.chats-view [hidden] { display: none !important; }
.chats-view button, .chats-view textarea, .chats-view input { font: inherit; }
.chats-view button:focus-visible, .chats-view a:focus-visible,
.chats-view textarea:focus-visible, .chats-view input:focus-visible {
  outline: 2px solid var(--chat-focus);
  outline-offset: -2px;
}
.chats-view .icon { width: 17px; height: 17px; }
.chats-heading {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0 0 14px;
}
.chats-heading h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.15px;
}
.shell-chats .chats-heading { flex: 1 1 0; margin: 0; }
.chats-geos {
  display: flex;
  align-items: center;
  margin-left: 20px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  scrollbar-color: #424950 transparent;
}
.chats-heading h1, .chats-geo { flex: none; }
.chats-geo + .chats-geo { margin-left: 6px; }
.chats-geo > span + span { margin-left: 6px; }
.chats-geo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  padding: 4px 9px;
  background: #1a252e;
  border: 1px solid var(--chat-border);
  border-radius: 6px;
  color: #e4e7eb;
  line-height: 1.2;
  text-align: left;
  font-weight: 500;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chats-geo:focus-visible { outline: 2px solid var(--chat-focus); outline-offset: -2px; }
.chats-geo[aria-pressed=true], .chats-geo[aria-selected=true] {
  background: #192c3b;
  border-color: var(--chat-focus);
  color: #f3f8fc;
}
.chats-geo > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chats-geo:hover { border-color: #627283; }
.chats-count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
  min-width: 20px;
  padding: 1px 5px;
  color: #c6ccd3;
  background: #253542;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.chats-count.has-unread, .chats-count[data-positive=true] { background: #64b5ef; color: #10202e; }
.chats-panels {
  display: grid;
  grid-template-columns: minmax(170px, 20.5fr) minmax(246px, 28.5fr) minmax(280px, 51fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--chat-border);
  border-radius: 9px;
  background: var(--chat-panel);
}
.chats-view ::-webkit-scrollbar { width: 6px; height: 5px; }
.chats-view ::-webkit-scrollbar-track { background: transparent; }
.chats-view ::-webkit-scrollbar-thumb { background: #424950; border-radius: 4px; }
.chats-folders, .chats-list-panel, .chats-thread { min-height: 0; min-width: 0; }
.chats-folders {
  overflow-y: auto;
  background: #1a2936;
  padding: 7px 6px 12px;
  scrollbar-width: thin;
}
.chats-folder {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  min-width: 0;
  min-height: 37px;
  padding: 6px 8px;
  background: transparent;
  color: #e7eaec;
  border: 1px solid transparent;
  border-radius: 6px;
  line-height: 1.22;
}
.chats-folder > svg { margin-right: 7px; flex: none; width: 16px; height: 16px; }
.chats-folder > .chats-count { margin-left: auto; }
.chats-folder .chats-total + .chats-count { margin-left: 3px; }
.chats-folder > span:not(.chats-count), .chats-folder small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chats-folder small { display: block; color: var(--chat-muted); font-size: 11px; }
.chats-folder:hover, .chats-card:hover { background: var(--chat-hover); }
.chats-folder[aria-pressed=true], .chats-folder[aria-current=true] {
  background: var(--chat-selected);
  border-color: #326085;
}
.chats-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 12px 0 7px;
  margin-top: 6px;
  border-top: 1px solid var(--chat-soft);
}
.chats-folder-caption { padding: 2px 3px 7px; color: #d1d4d7; font-size: 12px; }
.chats-folder-grid .chats-folder {
  min-height: 34px;
  padding: 5px 6px;
  background: #1b2a38;
  border-color: transparent;
}
.chats-folder-grid .chats-folder[aria-pressed=true], .chats-folder-grid .chats-folder[aria-current=true] {
  background: var(--chat-selected);
  border-color: #2d4b60;
  box-shadow: inset 2px 0 0 #279de9;
}
.chats-folder-grid .chats-folder > svg { margin-right: 4px; }
.chats-folder-grid .chats-count { min-width: 16px; font-size: 10px; padding: 0 4px; }
.chats-folder.chats-refused {
  border-color: var(--chat-border);
  margin-top: 6px;
}
.chats-folder.chats-refused > svg { color: var(--chat-muted); }
.chats-list-panel, .chats-thread {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--chat-border);
}
.chats-list-head, .chats-thread-head {
  flex: 0 0 auto;
  position: relative;
  min-width: 0;
  padding: 10px 13px;
}
.chats-list-head h2, .chats-thread-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}
.chats-list-head small, .chats-thread-head small { display: block; color: var(--chat-muted); font-size: 12px; }
.chats-list-head .chats-search { margin-top: 8px; }
.chats-search {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #41454a;
  border-radius: 7px;
  color: var(--chat-muted);
  background: #1a252e;
}
.chats-search svg { margin-right: 6px; }
.chats-search:focus-within { border-color: var(--chat-focus); }
.chats-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}
.chats-search input:focus-visible { outline: 0; }
.chats-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 7px 8px;
  scrollbar-width: thin;
}
.chats-card {
  position: relative;
  min-width: 0;
  border: 1px solid transparent;
  border-bottom-color: var(--chat-soft);
}
.chats-card[aria-selected=true], .chats-card.is-selected, .chats-card[data-selected=true] {
  background: var(--chat-selected);
  border-radius: 6px;
  border-color: #305375;
}
.chats-open {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 8px 10px;
  color: var(--text);
  background: transparent;
}
.chats-open > .chats-avatar { margin-right: 9px; }
.chats-card-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.chats-card-line, .chats-card-preview { display: flex; align-items: center; min-width: 0; }
.chats-card-line .chats-badges, .chats-card-line .chats-code, .chats-card-preview > * + * { margin-left: 4px; }
.chats-badges { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; }
.chats-badge {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  height: 19px;
  padding: 0 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid #53585c;
  border-radius: 4px;
  font-size: 11px;
  line-height: 17px;
  font-weight: 500;
  color: #dce1e6;
}
.chats-stage { margin-left: 4px; flex: none; color: #a9d6fb; border-color: #416581; }
.chats-card-name, .chats-snippet {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chats-card-name { flex: 0 1 auto; font-size: 14px; font-weight: 600; line-height: 1.25; }
.chats-snippet { flex: 1; color: #c3cfd9; font-size: 12px; }
.chats-snippet .icon { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; color: #9db6c8; }
.chats-card-line .chats-badges { flex: none; max-width: 34%; }
.chats-card-line .chats-badge { height: 16px; padding-inline: 4px; font-size: 10px; line-height: 14px; }
.chats-card-time { flex: none; display: inline-flex; align-items: center; margin-left: auto; padding-left: 2px; }
.chats-card-time .chats-dot { margin-left: 4px; }
.chats-card-time, .chats-message-time { font-size: 10px; color: #a9b1ba; font-weight: 400; white-space: nowrap; }
.chats-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  background: #57b6ff;
  border-radius: 50%;
}
.chats-claim, .chats-back, .chats-older, .chats-more, .chats-thread-head summary, .chats-compose button, .chats-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 9px;
  color: var(--text);
  border: 1px solid var(--chat-border);
  background: #242629;
  border-radius: 6px;
  line-height: 1.4;
}
.chats-view .chats-claim {
  flex: none;
  position: relative;
  z-index: 2;
  padding: 1px 6px;
  border-color: #345b7d;
  color: #cae9ff;
  background: #1c374b;
  font-size: 11px;
}
.chats-thread-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  border-bottom: 1px solid #3d4951;
  background: var(--chat-graphite);
}
.chats-thread-identity { display: flex; align-items: center; flex: 1; min-width: 0; }
.chats-thread-identity > * + * { margin-left: 6px; }
.chats-thread-identity h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
}
.chats-thread-identity .chats-badges { flex: none; max-width: 45%; }
.chats-thread-identity .chats-badge, .chats-thread-identity .chats-code {
  height: 21px;
  min-height: 21px;
  padding-inline: 6px;
  font-size: 12px;
  line-height: 19px;
  color: #dde8ef;
  border-color: #51616b;
  background: transparent;
}
.chats-thread-head summary {
  min-width: 30px;
  min-height: 30px;
  padding: 4px;
  border-color: transparent;
  background: transparent;
}
.chats-thread-head summary:hover { background: var(--chat-hover); }
.chats-menu { position: relative; }
.chats-menu summary { list-style: none; cursor: pointer; }
.chats-menu summary::-webkit-details-marker { display: none; }
.chats-menu { flex: none; z-index: 3; }
.chats-menu-items {
  position: absolute;
  z-index: 4;
  top: calc(100% + 3px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 175px;
  max-width: min(230px, calc(100vw - 40px));
  max-height: min(230px, 50dvh);
  overflow: auto;
  padding: 4px;
  border: 1px solid #44515b;
  border-radius: 8px;
  background: #252e37;
  box-shadow: 0 8px 24px #0006;
}
.chats-menu:not([open]) .chats-menu-items { display: none; }
.chats-menu button { justify-content: flex-start; gap: 9px; padding: 8px 9px; border: 0; background: transparent; }
.chats-menu button:hover:not(:disabled), .chats-menu button:focus-visible { background: #354452; }
.chats-menu .chats-refuse-action { color: #edb6b6; }
.chats-menu button:disabled { opacity: .5; }
.chats-thread { background: #132833; }
.chats-history {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  padding: 14px clamp(9px,1.2vw,22px) 12px;
  background: #132833;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.chats-day {
  position: relative;
  align-self: center;
  margin: 8px auto 13px;
  padding: 2px 10px;
  color: #d2dee2;
  background: #293b45;
  border: 1px solid var(--chat-soft);
  border-radius: 30px;
  font-size: 11px;
}
.chats-older, .chats-more { align-self: center; margin: 4px auto 10px; }
.chats-more { display: flex; }
.chats-message { align-self: flex-start; flex: 0 0 auto; margin-bottom: 7px; max-width: 87%; min-width: 0; }
.chats-message[data-direction=out] { align-self: flex-end; }
.chats-message[data-direction=system] { align-self: center; }
.chats-bubble {
  display: flow-root;
  background: #2a3c48;
  padding: 7px 10px;
  border: 0;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 1px 2px #0003;
  color: #f0f1f2;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chats-message[data-direction=out] .chats-bubble {
  display: flow-root;
  background: #214664;
  border-radius: 14px 14px 4px 14px;
}
.chats-message[data-direction=system] .chats-bubble {
  color: var(--chat-muted);
  border: 0;
  background: transparent;
  font-size: 12px;
}
.chats-message-text { line-height: 1.45; }
.chats-message-time { float: right; padding: 3px 0 0 10px; }
.chats-file {
  display: block;
  max-width: 100%;
  color: #afd9fa;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.chats-file .icon { width: 14px; height: 14px; margin-right: 4px; }
.chats-image { display: block; width: auto; max-width: 100%; min-width: 32px; min-height: 32px; max-height: 230px; border-radius: 5px; object-fit: contain; }
.chats-compose {
  flex: 0 0 auto;
  max-height: 55%;
  overflow: auto;
  padding: 9px 12px max(10px, env(safe-area-inset-bottom));
  background: #142832;
}
.chats-compose-line { display: flex; align-items: center; }
.chats-attachment:not(:empty) {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  color: #bbd8ed;
  font-size: 12px;
}
.chats-attachment > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chats-attachment button { padding: 3px 5px; }
.chats-status:not(:empty) { padding: 4px 8px; }
.chats-compose button { min-height: 33px; }
.chats-compose button:hover:not(:disabled), .chats-claim:hover:not(:disabled), .chats-back:hover { background: #30383f; }
.chats-compose button:disabled, .chats-claim:disabled { opacity: .5; }
.chats-paid svg { color: var(--green); }
.chats-wait svg { color: var(--amber); }
.chats-compose-line textarea {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  max-height: 92px;
  padding: 7px 10px;
  border: 1px solid #2c414e;
  border-inline-start: 0;
  border-radius: 0 7px 7px 0;
  background: #1d303d;
  color: var(--text);
  resize: none;
}
.chats-compose .chats-paperclip, .chats-compose .chats-paste, .chats-compose .chats-send {
  flex: none;
  width: 37px;
  height: 36px;
  padding: 4px;
}
.chats-compose .chats-paperclip, .chats-compose .chats-paste { color: #bed2df; background: #1d303d; border: 1px solid #2c414e; border-radius: 7px 0 0 7px; }
.chats-compose .chats-paste { border-inline-start: 0; border-radius: 0; }
.chats-compose .chats-send { margin-left: 8px; border-radius: 7px; color: white; background: #168de6; border-color: #299aea; }
.chats-compose .chats-send:hover:not(:disabled) { background: #3a9df2; }
.chats-empty, .chats-hint { margin: auto; padding: 18px 12px; text-align: center; color: var(--chat-muted); font-size: 13px; }
.chats-status { color: var(--chat-muted); font-size: 12px; }
.chats-status:empty { display: none; }
.chats-back { display: none; }
@media (max-width: 1190px) {
  .chats-list-head, .chats-thread-head { padding: 9px 10px; }
  .chats-folders { padding-left: 3px; padding-right: 3px; }
}
@media (max-width: 1024px) {
  .chats-panels { display: flex; flex-direction: column; }
  .chats-panels > [data-panel] { display: none; flex: 1 1 0; border-left: 0; }
  .chats-view[data-screen=folders] [data-panel=folders] { display: block; }
  .chats-view[data-screen=list] [data-panel=list],
  .chats-view[data-screen=thread] [data-panel=thread] { display: flex; }
  .chats-back { display: inline-flex; margin-bottom: 7px; }
  .chats-thread-head .chats-back { margin: 0; }
  .chats-folders { padding: 10px; }
  .chats-folder, .chats-folder-grid .chats-folder { min-height: 40px; }
  .chats-geo { min-height: 35px; }
}
@media (max-width: 820px) {
  .shell-chats .main-content { padding: 0; }
  .shell-chats .chats-panels { border: 0; border-radius: 0; }
  .chats-heading { margin-bottom: 10px; }
  .chats-geos { margin-left: 12px; }
  .chats-heading h1 { font-size: 17px; }
  .chats-bubble { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .chats-geos { margin-left: 8px; }
  .chats-geo { padding: 4px 6px; }
  .chats-geo > span + span { margin-left: 4px; }
  .chats-message { max-width: 93%; }
  .shell-chats .topbar { padding-inline: 10px; gap: 8px; }
  .shell-chats .profile-chip > div:last-child { display: none; }
  .chats-compose-line textarea, .chats-compose .chats-paperclip, .chats-compose .chats-paste, .chats-compose .chats-send { min-height: 40px; }
  .chats-thread-head { padding: 8px; gap: 4px; }
  .chats-thread-head .chats-back { flex: none; padding: 5px; }
}

.chats-assignee {
  flex: 0 1 auto;
  max-width: 32%;
  font-size: 11px;
  color: var(--chat-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chats-payment { width: min(360px, calc(100vw - 28px)); }
.chats-payment .field-help { margin: 0; }


.chats-total {
  flex: none;
  margin-left: auto;
  min-width: 1.4em;
  padding: 1px 3px;
  color: #b9c7d2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.chats-folder-grid .chats-total { font-size: 10px; }
.chats-folders { container-type: inline-size; }
@container (max-width: 240px) {
  .chats-folder-grid .chats-folder > svg { display: none; }
}
.chats-code {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 1px 4px;
  color: #94c9ed;
  border: 1px solid #4e697d;
  background: #243341;
  border-radius: 5px;
  font: 500 11px/1.2 ui-monospace, monospace !important;
  letter-spacing: .04em;
}
.chats-card-line .chats-code { height: 16px; min-height: 16px; padding: 0 4px; font-size: 10px !important; }
.chats-code:hover { background: #304d62; }
.chats-copy-source { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.chats-avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg,#37778c,#235267);
  color: #effaff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
}
.chats-avatar[data-hue="1"] { background: linear-gradient(145deg,#646399,#464873); }
.chats-avatar[data-hue="2"] { background: linear-gradient(145deg,#407d69,#305444); }
.chats-avatar[data-hue="3"] { background: linear-gradient(145deg,#84644d,#624b41); }
.chats-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  z-index: 1;
}
.chats-code { z-index: 2; }
.chats-pin {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aaebd;
}
.chats-pin .icon { width: 15px; height: 15px; }
.chats-pin:hover, .chats-pin:focus-visible { background: #304354; color: #c9e9ff; }
.chats-pin[aria-pressed=true] { background: #233e52; color: #91ceff; }
.chats-pin[aria-disabled=true] { opacity: .6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .chats-pin[aria-pressed=false] { opacity: 0; }
  .chats-card:hover .chats-pin, .chats-card:focus-within .chats-pin { opacity: 1; }
}
@media (pointer: coarse) {
  .chats-pin { width: 26px; height: 20px; }
}
.chats-match-folder { display: flex; align-items: center; gap: 5px; padding: 5px 9px 0; color: #a4c6de; }
.chats-match-folder .icon { width: 13px; height: 13px; }
.chats-menu summary, .chats-notes .chats-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #c3d3df;
}
.chats-tool:hover, .chats-menu summary:hover { background: #364451; }
.chats-notes { width: min(430px,calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.chats-notes[open] { display: flex; flex-direction: column; }
.chats-notes .dialog-header { flex: none; align-items: center; }
.chats-notes .dialog-header p { color: #b4c2cc; overflow-wrap: anywhere; }
.chats-notes .chats-tool { flex: none; font-size: 24px; }
.chats-notes-content { min-height: 0; max-height: 45vh; overflow: auto; padding: 0 16px; }
.chats-note { padding: 12px 0; border-bottom: 1px solid var(--chat-soft); }
.chats-note header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.chats-note strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.chats-note time { font-size: 11px; color: var(--chat-muted); }
.chats-note p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chats-note-editor { display: grid; flex: none; padding: 13px 16px; gap: 7px; }
.chats-note-editor label { font-weight: 500; }
.chats-note-editor textarea { width: 100%; border: 1px solid #475664; color: var(--text); background: #1e2b37; border-radius: 8px; padding: 8px; resize: none; }
.chats-note-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chats-note-footer small { color: var(--chat-muted); }
.chats-notes-status:not(:empty) { padding: 4px 16px 12px; color: #ced7df; }
.chats-notes [data-older-notes]:not([hidden]) { margin: 8px 0; }
.chats-msg-pin-bar {
  display: flex;
  align-items: center;
  flex: none;
  gap: 9px;
  position: relative;
  width: calc(100% - 24px);
  min-width: 0;
  margin: 6px 12px 0;
  padding: 6px 12px 6px 17px;
  text-align: left;
  color: #c3d3de;
  background: #1c3240;
  border: 0;
  border-radius: 5px;
}
.chats-msg-pin-bar::before {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 4px;
  width: 3px;
  border-radius: 2px;
  background: #249eed;
}
.chats-msg-pin-bar[hidden] { display: none; }
.chats-msg-pin-bar > .icon { width: 17px; height: 17px; color: #79bfe8; flex: none; }
.chats-msg-pin-bar > span { display: grid; gap: 1px; min-width: 0; }
.chats-msg-pin-bar small { color: #deecf0; font-size: 12px; }
.chats-msg-pin-bar > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.chats-message-meta { float:right; display:inline-flex; gap:5px; align-items:center; margin-inline-start:8px; vertical-align:bottom; }
.chats-message-meta .chats-message-time { float:none; padding:0; }
.chats-view .chats-message .chats-bubble.chats-text-bubble { display:grid; grid-template-columns:minmax(0,auto) auto; align-items:start; }
.chats-text-bubble .chats-message-text { grid-column:1; grid-row:1; }
.chats-text-bubble .chats-message-meta { grid-column:2; grid-row:1; justify-self:end; align-self:start; }
.chats-text-bubble .chats-translation { grid-column:1 / -1; grid-row:2; }
.chats-recall-line:not(:empty) { display:block; clear:both; margin-top:3px; }
.chats-recall-line:empty { display:none; }
.chats-text-bubble .chats-recall-line { grid-column:1 / -1; grid-row:3; }
.chats-receipt { display:inline-flex; align-items:center; color:#b8c7d1; }
.chats-receipt[data-delivered] { color:#92d4fb; }
.chats-receipt svg { display:block; width:17px; height:13px; }
.chats-msg-more { display:grid; place-items:center; width:24px; height:20px; border:0; border-radius:5px; padding:0; color:#c6d9e7; background:transparent; }
.chats-msg-more:hover,.chats-msg-more:focus-visible { background:#ffffff1c; }
.chats-msg-more .icon { width:16px; height:16px; }
.chats-msg-pin-mark { display:inline-flex; color:#a2d7fc; }
.chats-msg-pin-mark .icon { width:13px; height:13px; }
.chats-msg-recalled { font-size:12px; color:#ffa5a6; }
.chats-message:focus { outline:2px solid #82c9f4; outline-offset:2px; border-radius:12px; }
.chats-msg-dialog { box-sizing:border-box; width:min(370px,calc(100vw - 24px)); max-height:80vh; max-height:80dvh; padding:0; overflow:auto; border-radius:12px; }
.chats-msg-dialog .dialog-header { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.chats-msg-dialog .dialog-header h2 { margin:0; font-size:17px; }
.chats-msg-dialog .dialog-header button { border:0; background:transparent; color:#c9d9e5; font-size:23px; }
.chats-msg-dialog-body { display:grid; gap:3px; padding:5px 10px 12px; }
.chats-msg-dialog-body > button { display:flex; align-items:center; gap:9px; min-width:0; padding:9px 10px; text-align:left; border:0; border-radius:6px; background:transparent; color:inherit; }
.chats-msg-dialog-body > button:hover,.chats-msg-dialog-body > button:focus-visible { background:#35434e; }
.chats-msg-dialog-body .icon { width:16px; height:16px; flex:none; }
.chats-msg-dialog-body > .chats-msg-recall { color:#ffa5a6; }
@media (pointer:coarse) { .chats-msg-more { width:30px; height:26px; } }

@supports not (inset: 0) {
  .sidebar { top: 0; bottom: 0; left: 0; }
}
