body .c76-page[data-chat-priority2] {
  --mkt-message-font: 13px;
  --mkt-message-small-font: 12px;
  --mkt-message-current-font: var(--mkt-message-font);
  --mkt-message-line-height: max(22px, calc(var(--mkt-message-current-font) * 1.6));
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 16px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-overlay[hidden] {
  display: none !important;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--mkt-legacy-background-7041ef3058d1,rgba(37, 25, 52, .32));
  backdrop-filter: blur(3px);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog {
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--mkt-legacy-border-aea59b6148db,#dfd5e7);
  border-radius: 24px;
  background: var(--mkt-legacy-background-cd4f35c69835,#fff);
  color: var(--mkt-legacy-text-65dbf9a94804,#34273d);
  box-shadow: 0 24px 70px var(--mkt-legacy-shadow-6ad0e2864ee8,rgba(35, 23, 48, .2));
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog--drawer {
  align-self: stretch;
  justify-self: end;
  width: min(440px, 100%);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-heading {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-heading h2 {
  margin: 0;
  color: var(--mkt-legacy-text-11753b675585,#30233a);
  font: 700 24px/1.2 Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-body {
  display: grid;
  flex: 1 1 auto;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-footer {
  flex: none;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--mkt-legacy-border-30e3e0e29c24,#eee7f4);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-footer[hidden] {
  display: none !important;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-footer button {
  padding-inline: 12px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog label {
  display: block;
  margin: 0 0 6px;
  color: var(--mkt-legacy-text-348f28867d72,#6f6079);
  font: 600 13px/1.4 Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--mkt-legacy-border-2bb94ba5fd05,#d8cde1);
  border-radius: 10px;
  background: var(--mkt-legacy-background-cd4f35c69835,#fff);
  color: var(--mkt-legacy-text-5a0935c75451,#3b2d45);
  font: 400 14px/1.45 Manrope, Arial, sans-serif;
  box-shadow: none;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog textarea {
  min-height: 100px;
  max-height: 220px;
  resize: vertical;
}

body .c76-page[data-chat-priority2] :is(.mkt-chat-p2-dialog button, .mkt-chat-p2-dialog [role="button"]) {
  box-sizing: border-box;
  min-height: 44px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mkt-legacy-text-25c57aa7514d,#8a7b94);
  cursor: pointer;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-icon:hover,
body .c76-page[data-chat-priority2] .mkt-chat-p2-icon:focus-visible {
  background: transparent;
  color: var(--mkt-legacy-text-c8cc788f9aee,#563a70);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-primary,
body .c76-page[data-chat-priority2] .mkt-chat-p2-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font: 700 14px/1 Manrope, Arial, sans-serif;
  cursor: pointer;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-primary {
  border: 1px solid var(--mkt-legacy-border-0531c21fb9f3,#7042aa);
  background: var(--mkt-legacy-background-0531c21fb9f3,#7042aa);
  color: var(--mkt-legacy-text-cd4f35c69835,#fff);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-primary:hover,
body .c76-page[data-chat-priority2] .mkt-chat-p2-primary:focus-visible {
  border-color: var(--mkt-legacy-border-344330dfeb04,#5f338f);
  background: var(--mkt-legacy-background-344330dfeb04,#5f338f);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-secondary {
  border: 1px solid var(--mkt-legacy-border-d9d14e3bbc5a,#d9cee3);
  background: transparent;
  color: var(--mkt-legacy-text-58c95ccb7d89,#6f5b7d);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-secondary:hover,
body .c76-page[data-chat-priority2] .mkt-chat-p2-secondary:focus-visible {
  border-color: var(--mkt-legacy-border-08d16468b32f,#b9a7c9);
  background: transparent;
  color: var(--mkt-legacy-text-2058337d7e31,#503864);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-result {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--mkt-legacy-background-251c00c06cc5,#f8f5fb);
  color: var(--mkt-legacy-text-aaacc60c7122,#44364e);
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-result:hover,
body .c76-page[data-chat-priority2] .mkt-chat-p2-result:focus-visible {
  background: var(--mkt-legacy-background-90ec56c14f9e,#f2edf7);
  color: var(--mkt-legacy-text-230e7a796f3e,#342441);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-result :is(b, strong) {
  display: block;
  color: inherit;
  font: 700 14px/20px Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-result p {
  margin: 3px 0 0;
  color: var(--mkt-legacy-text-348f28867d72,#6f6079);
  font: 400 13px/20px Manrope, Arial, sans-serif;
  overflow-wrap: anywhere;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-result :is(time, small) {
  display: block;
  margin-top: 4px;
  color: var(--mkt-legacy-text-bbcaee25b9f1,#95879f);
  font: 500 11px/16px Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-result-actions .mkt-chat-p2-result {
  flex: 1 1 auto;
  min-width: 0;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-result-actions .mkt-chat-p2-icon {
  flex: 0 0 44px;
}

/* Public pins use one quiet card per message, with separate navigation/actions. */
body .c76-page[data-chat-priority2] .c76-pinned-banner__actions [data-p2-action="pins"] {
  display: grid;
  place-items: center;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog[data-p2-kind="pins"] {
  display: flex;
  flex-direction: column;
}

body .c76-page[data-chat-priority2] [data-p2-kind="pins"] .mkt-chat-p2-heading {
  flex: none;
  align-items: center;
  margin-bottom: 8px;
}

body .c76-page[data-chat-priority2] [data-p2-kind="pins"] .mkt-chat-p2-heading h2 {
  font: 600 20px/28px Manrope, Arial, sans-serif;
}

/* Shared close control: restrained visual size, full usable hit target. */
body .c76-page[data-chat-priority2] .mkt-chat-p2-heading > .mkt-chat-p2-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0 !important;
  border-radius: 12px;
  box-shadow: none !important;
  background: var(--mkt-legacy-background-fbb6a36ffe94,#f6f2fa) !important;
  color: var(--mkt-legacy-text-d6cc1bf6d4db,#684b83) !important;
  font: 500 26px/1 Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-heading > .mkt-chat-p2-icon:is(:hover, :focus-visible) {
  background: var(--mkt-legacy-background-7f3abc557d0f,#eee6f6) !important;
  color: var(--mkt-legacy-text-2058337d7e31,#503864) !important;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog[data-p2-kind="date"] {
  width: min(400px, 100%);
  padding: 20px;
  border-radius: 20px;
}

body .c76-page[data-chat-priority2] [data-p2-kind="date"] .mkt-chat-p2-heading {
  margin-bottom: 16px;
}

body .c76-page[data-chat-priority2] [data-p2-kind="date"] .mkt-chat-p2-heading h2 {
  font: 600 20px/28px Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-date-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-date-field {
  min-width: 0;
}

@media (max-width: 479px) {
  body .c76-page[data-chat-priority2] .mkt-chat-p2-date-form {
    grid-template-columns: minmax(0, 1fr);
  }

  body .c76-page[data-chat-priority2] .mkt-chat-p2-footer {
    margin-top: 16px;
    padding-top: 12px;
  }
}

body .c76-page[data-chat-priority2] [data-p2-kind="pins"] .mkt-chat-p2-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-tools {
  display: flex;
  flex: none;
  justify-content: flex-end;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-list {
  display: grid;
  flex: none;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mkt-legacy-border-d9f28530924f,#e9e2f1);
  border-radius: 16px;
  background: var(--mkt-legacy-background-3da1eaaea9c2,#fcfaff);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-message {
  padding: 12px 14px;
  border-radius: 15px;
  background: transparent;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-message .mkt-chat-p2-pin-identity {
  display: block;
  padding-right: 34px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-identity b {
  color: var(--mkt-legacy-text-e5cf52e35a2c,#584365);
  font: 600 13px/20px Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-identity small {
  margin-top: 2px;
  color: var(--mkt-legacy-text-8b76ec86ccb5,#81738f);
  font: 500 11px/16px Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-message .mkt-chat-p2-pin-copy {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--mkt-legacy-text-ba7c43ecc0d3,#51435e);
  font: 400 13px/20px Manrope, Arial, sans-serif;
  white-space: pre-wrap;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-unpin {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
}

body .c76-page[data-chat-priority2] :is(.mkt-chat-p2-pin-unpin, .mkt-chat-p2-pin-refresh) > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-card:focus-within {
  border-color: var(--mkt-legacy-border-71f893b57563,#b59bd1);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-pin-empty {
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed var(--mkt-legacy-border-c8afa0054c84,#e2d8ed);
  border-radius: 16px;
  color: var(--mkt-legacy-text-8b76ec86ccb5,#81738f);
  font: 400 13px/21px Manrope, Arial, sans-serif;
  text-align: center;
}

body .c76-page[data-chat-priority2] .c76-chat-search__field {
  position: relative;
}

body .c76-page[data-chat-priority2] .c76-chat-search__field input {
  box-sizing: border-box;
  width: 100%;
  padding-right: 176px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-nav {
  position: absolute;
  inset: 0 44px auto auto;
  display: flex;
  align-items: center;
  height: 44px;
  color: var(--mkt-legacy-text-9c4651efd895,#85758f);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-nav [data-p2-search-count] {
  min-width: 42px;
  color: var(--mkt-legacy-text-f9edc94446b8,#8d8097);
  font: 500 11px/16px Manrope, Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-nav button {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mkt-legacy-text-1a3ee8ba922f,#92849d);
  cursor: pointer;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-nav button:hover,
body .c76-page[data-chat-priority2] .mkt-chat-p2-search-nav button:focus-visible {
  background: transparent;
  color: var(--mkt-legacy-text-fa14b84fcb0c,#5d4077);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-results {
  position: absolute;
  inset: var(--mkt-search-top, 140px) 0 var(--mkt-search-bottom, 120px);
  z-index: 900;
  box-sizing: border-box;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--mkt-legacy-border-ccad31e06cc7,#e8e1ee);
  background: var(--mkt-legacy-background-cd4f35c69835,#fff);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-results[hidden] {
  display: none !important;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-scope button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--mkt-legacy-text-a442b3c144bb,#7b6a87);
  font: 600 12px/16px Manrope, Arial, sans-serif;
  cursor: pointer;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-search-scope button:is([aria-pressed="true"], .is-selected) {
  border-color: var(--mkt-legacy-border-7923c90a7471,#ded4e7);
  background: var(--mkt-legacy-background-5b1bbfff1ae6,#f5f1f9);
  color: var(--mkt-legacy-text-b701b6990635,#593b73);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-history-bar {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--mkt-legacy-border-6ad8a5dbac1a,#eee8f3);
  color: var(--mkt-legacy-text-8d3400503af5,#7f718a);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-history-bar[hidden] {
  display: none !important;
}

/* Day boundaries match the reference chat: quiet rules and a centered date chip. */
body .c76-page[data-chat-priority2] .mkt-chat-p2-date {
  box-sizing: border-box;
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mkt-legacy-text-8b76ec86ccb5,#81738f);
  font: 500 11px/20px Manrope, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-date::before,
body .c76-page[data-chat-priority2] .mkt-chat-p2-date::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--mkt-legacy-background-a9f18c1295eb,#e7e0ef);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-date > span {
  flex: none;
  max-width: calc(100% - 40px);
  padding: 1px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--mkt-legacy-background-78f8242a43e1,#f2edf8);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-date:is(:hover, :focus-visible) > span {
  border-color: var(--mkt-legacy-border-2bdf55aa9982,#cfc0df);
  color: var(--mkt-legacy-text-6ca1eb197530,#684a88);
}

body.page-chatroom .c76-page[data-chat-priority2] .c76-messages .mkt-chat-p2-date:focus-visible {
  /* The shared control reset uses !important; keep focus on the chip below. */
  outline: 0 !important;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-date:focus-visible > span {
  outline: 2px solid var(--mkt-legacy-border-397bd85fd87c,#9871c4);
  outline-offset: 2px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-history-bar button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--mkt-legacy-text-2156566449b3,#7e6d89);
  font: 600 13px/18px Manrope, Arial, sans-serif;
  cursor: pointer;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-history-bar button:hover,
body .c76-page[data-chat-priority2] .mkt-chat-p2-history-bar button:focus-visible {
  background: transparent;
  color: var(--mkt-legacy-text-a2905250bb7b,#573c6c);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-typing {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 20px;
  align-items: center;
  min-height: 20px;
  padding: 0 18px;
  color: var(--mkt-legacy-text-7fcbb5665ced,#91839b);
  font: 500 12px/18px Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-typing > span[hidden] {
  display: inline !important;
  visibility: hidden;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-font-controls {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-font-controls :is(button, output, span) {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mkt-legacy-text-fc9b3d0f00b0,#776783);
  font: 600 12px/1 Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-font-controls button {
  cursor: pointer;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-font-controls button:hover,
body .c76-page[data-chat-priority2] .mkt-chat-p2-font-controls button:focus-visible {
  background: transparent;
  color: var(--mkt-legacy-text-3e252dac3503,#55396d);
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-chat-pin {
  display: inline-flex;
  width: 12px;
  height: 12px;
  margin-left: 5px;
  color: var(--mkt-legacy-text-d847aeb757c6,#94879e);
  vertical-align: middle;
}

body .c76-page[data-chat-priority2] .c76-attachment-preview__thumb > span {
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 5px;
  background: var(--mkt-legacy-background-9d10308abedc,#eee8f4);
  color: var(--mkt-legacy-text-d78bcfd43574,#7b6989);
  font: 700 9px/1 Manrope, Arial, sans-serif;
}

body .c76-page[data-chat-priority2] .c76-attachment-preview--audio {
  grid-template-columns: minmax(0, 1fr) 26px;
  width: 100%;
  flex: 1;
}

body .c76-page[data-chat-priority2] .c76-attachment-tray:has(.c76-attachment-preview--audio) {
  left: 16px;
  right: 16px;
  max-width: none;
}

body .c76-page[data-chat-priority2] .c76-attachment-preview--audio .c76-attachment-preview__info {
  grid-column: 1;
  grid-row: 1;
}

body .c76-page[data-chat-priority2] .c76-attachment-preview--audio .c76-attachment-preview__thumb {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 40px;
  overflow: visible;
}

body .c76-page[data-chat-priority2] .c76-attachment-preview--audio .c76-attachment-preview__remove {
  grid-column: 2;
  grid-row: 1 / 3;
}

body .c76-page[data-chat-priority2] .c76-attachment-preview--audio audio {
  display: block;
  width: 100%;
  height: 40px;
}

/* A selected attachment occupies a composer row instead of covering suggestions. */
body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-composer > .c76-attachment-tray {
  position: relative;
  inset: auto;
  z-index: auto;
  box-sizing: border-box;
  display: flex;
  flex: none;
  width: 100%;
  max-width: none;
  max-height: min(128px, 24dvh);
  overflow: auto;
  padding: 8px 12px;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-composer > .c76-attachment-tray[hidden] {
  display: none;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-composer:has(> .c76-attachment-tray:not([hidden])) > .c76-suggestions {
  display: none;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-attachment-tray .c76-attachment-preview {
  width: 100%;
  max-width: none;
  grid-template-columns: 36px minmax(0, 1fr) 44px;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-attachment-tray:has(.c76-attachment-preview--voice) {
  background: transparent;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-attachment-tray .c76-attachment-preview--voice {
  border-radius: 9px;
  box-sizing: border-box;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  padding: 1px 4px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-attachment-tray .c76-attachment-preview--voice .c76-attachment-preview__thumb {
  width: 32px;
  height: 32px;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-attachment-tray .c76-attachment-preview--voice .c76-attachment-preview__remove {
  /* Use the tray padding for the 44px target around the compact row. */
  margin-block: -6px;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-attachment-tray .c76-attachment-preview--audio {
  grid-template-columns: minmax(0, 1fr) 44px;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-attachment-tray .c76-attachment-preview--bundle {
  grid-template-columns: 52px minmax(0, 1fr) 44px;
}

body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-attachment-preview__remove {
  width: 44px;
  height: 44px;
}

@media (max-height: 550px) {
  /* Keep the full composer reachable when the viewport cannot fit every row. */
  body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-thread-panel {
    overflow-y: auto;
  }

  body.page-chatroom .c76-page[data-chatroom-layout][data-chat-priority2] .c76-composer {
    max-height: none;
  }
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-translation {
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: var(--mkt-message-current-font);
  line-height: var(--mkt-message-line-height);
  overflow-wrap: anywhere;
}

body .c76-page[data-chat-priority2] .mkt-chat-p2-translation__label {
  display: block;
  margin-bottom: 2px;
  color: var(--mkt-legacy-text-4fc7e3fbe60d,#92849c);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

body.page-chatroom .c76-page[data-chat-priority2] .c76-message {
  --message-line-height: var(--mkt-message-line-height);
  --message-first-line-center: calc(12px + var(--mkt-message-line-height) / 2);
}

body.page-chatroom .c76-page[data-chat-priority2] .c76-message .c76-message__body > p:not(.mkt-chat-notice):not(.mkt-chat-system) {
  font-size: var(--mkt-message-current-font);
  line-height: var(--mkt-message-line-height);
}

body.page-chatroom .c76-page[data-chat-priority2] .mkt-chat-quote {
  padding-top: 0;
  padding-bottom: 0;
  font-size: max(11px, calc(var(--mkt-message-current-font) - 2px));
  line-height: var(--mkt-message-line-height);
}

body.page-chatroom .c76-page[data-chat-priority2] .c76-message.c76-message--media {
  --message-first-line-center: calc(12px + var(--mkt-message-line-height) / 2);
}

body.page-chatroom .c76-page[data-chat-priority2] .c76-message:has(.mkt-chat-quote) {
  --message-first-line-center: calc(12px + var(--mkt-message-line-height) / 2);
}

body.page-chatroom .c76-page[data-chat-priority2] .c76-message.c76-message--media:has(.mkt-chat-quote) {
  --message-first-line-center: calc(10px + var(--mkt-message-line-height) / 2);
}

@media (max-width: 560px) {
  body .c76-page[data-chat-priority2] {
    --mkt-message-current-font: var(--mkt-message-small-font, 12px);
    --mkt-message-line-height: max(20px, calc(var(--mkt-message-current-font) * 1.6));
  }

  body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog {
    padding: 20px;
    border-radius: 20px;
  }

  body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog--drawer {
    width: 100%;
  }

  body .c76-page[data-chat-priority2] .mkt-chat-p2-heading h2 {
    font-size: 20px;
  }

  body.page-chatroom .c76-page[data-chat-priority2] .c76-message {
    --message-first-line-center: calc(10px + var(--mkt-message-line-height) / 2);
  }

  body.page-chatroom .c76-page[data-chat-priority2] .c76-message.c76-message--media {
    --message-first-line-center: calc(12px + var(--mkt-message-line-height) / 2);
  }

  body.page-chatroom .c76-page[data-chat-priority2] .c76-message:has(.mkt-chat-quote) {
    --message-first-line-center: calc(10px + var(--mkt-message-line-height) / 2);
  }

  body.page-chatroom .c76-page[data-chat-priority2] .c76-message.c76-message--media:has(.mkt-chat-quote) {
    --message-first-line-center: calc(10px + var(--mkt-message-line-height) / 2);
  }
}

@media (max-width: 340px) {
  body .c76-page[data-chat-priority2] .mkt-chat-p2-search-nav [data-p2-search-count] {
    display: none;
  }

  body .c76-page[data-chat-priority2] .c76-chat-search__field input {
    padding-right: 132px;
  }
}

/* Translation language prefix belongs inside the existing native select. */
body .c76-page[data-chat-priority2] .mkt-chat-p2-language-field { position:relative;min-width:0; }
body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog .mkt-chat-p2-language-label { position:absolute;inset-block:0;inset-inline-start:12px;display:flex;align-items:center;margin:0;color:var(--mkt-secondary);font:400 14px/22px Manrope,Arial,sans-serif;pointer-events:none; }
body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog .mkt-chat-p2-language-field select { padding-inline-start:52px; }
body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog .mkt-chat-p2-message-preview { box-sizing:border-box;min-width:0;max-width:100%;margin:0;padding:10px 12px;border:1px solid var(--mkt-divider);border-radius:10px;background:var(--mkt-soft);color:var(--mkt-secondary);font:400 13px/22px Manrope,Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }

body .c76-page[data-chat-priority2] .mkt-chat-p2-dialog .mkt-chat-p2-translation-form { display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;max-width:100%; }
