.fdc-chat-page-main {
  --fdc-chat-page-gap-top: clamp(14px, 2vw, 22px);
  --fdc-chat-page-gap-bottom: clamp(22px, 3vw, 36px);
  width: 100%;
  margin: 0;
  padding: var(--fdc-chat-page-gap-top) clamp(16px, 2.6vw, 28px) var(--fdc-chat-page-gap-bottom);
  flex: 1 1 auto;
  min-height: calc(100dvh - var(--fdc-header-offset, var(--fdc-header-height, 56px)) - var(--fdc-footer-reserved-height-compact, 144px));
  height: auto;
  max-height: none;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  overflow: visible;
}

.fdc-chat-page-main.is-auth-only {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  height: auto;
  max-height: none;
  overflow: visible;
}

body.chat-dm-page > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]),
body.trade-chat-list-page > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]),
body.trade-chat-room-page > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]),
body.shop-inquiry-chat-page > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]),
.fdc-chat-page-main.is-auth-only > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]) {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: calc(100dvh - var(--fdc-header-offset, var(--fdc-header-height, 56px)) - var(--fdc-footer-reserved-height-compact, 144px));
}

body.chat-dm-page > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]) + .fdc-chat-page-main,
body.trade-chat-list-page > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]) + .fdc-chat-page-main,
body.trade-chat-room-page > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]) + .fdc-chat-page-main,
body.shop-inquiry-chat-page > .fdc-centered-shell.fdc-centered-shell--centered:not([hidden]) + .fdc-chat-page-main {
  display: none;
}

.fdc-chat-workstation[hidden],
.fdc-chat-page-main[hidden],
.fdc-chat-sidebar-state[hidden],
.fdc-chat-stage-state[hidden],
.fdc-chat-thread-list[hidden],
.fdc-chat-room-card[hidden],
.fdc-chat-drawer[hidden],
.fdc-chat-compose-modal[hidden] {
  display: none !important;
}

body.chat-dm-page,
body.trade-chat-list-page,
body.trade-chat-room-page,
body.shop-inquiry-chat-page {
  --fdc-chat-primary: var(--fdc-shell-primary, var(--fdc-color-accent, #3b82f6));
  --fdc-chat-primary-strong: var(--fdc-color-accent-strong, #2563eb);
  --fdc-chat-font-family: var(--fdc-font-body, 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --fdc-chat-readable-font-family: var(--fdc-font-body, 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --fdc-chat-border: var(--fdc-color-border);
  --fdc-chat-border-strong: var(--fdc-color-border-strong);
  --fdc-chat-shell-bg: #ffffff;
  --fdc-chat-sidebar-bg: #fcfdff;
  --fdc-chat-sidebar-section-bg: rgba(255, 255, 255, 0.92);
  --fdc-chat-stage-bg: #ffffff;
  --fdc-chat-sidebar-head-padding: 16px 16px 12px;
  --fdc-chat-sidebar-head-gap: 10px;
  --fdc-chat-sidebar-head-position: sticky;
  --fdc-chat-sidebar-head-top: var(--fdc-header-offset, var(--fdc-header-height, 56px));
  --fdc-chat-sidebar-head-z: 3;
  --fdc-chat-sidebar-head-border-bottom: none;
  --fdc-chat-sidebar-head-backdrop: blur(16px);
  --fdc-chat-sidebar-state-padding: 10px 10px 16px;
  --fdc-chat-thread-list-padding: 12px 10px 16px;
  --fdc-chat-thread-row-margin-bottom: 6px;
  --fdc-chat-thread-row-padding: 12px 14px;
  --fdc-chat-thread-row-gap: 12px;
  --fdc-chat-thread-row-separator-inset: 14px;
  --fdc-chat-workstation-max-width: 1404px;
  --fdc-chat-stage-pane-max-width: 1040px;
  --fdc-status-card-footer-clearance: 0px;
  --fdc-status-shell-padding-top: 24px;
  --fdc-status-shell-padding-bottom: 24px;
  --fdc-status-shell-padding-top-mobile: 18px;
  --fdc-status-shell-padding-bottom-mobile: 18px;
  margin: 0;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  font-family: var(--fdc-chat-readable-font-family);
  background: #ffffff;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
  overflow-x: hidden;
  overflow-y: auto;
}

:root[data-theme='dark'] body.chat-dm-page,
:root[data-theme='dark'] body.trade-chat-list-page,
:root[data-theme='dark'] body.trade-chat-room-page,
:root[data-theme='dark'] body.shop-inquiry-chat-page {
  background: var(--fdc-status-page-bg);
  color: #eff3fb;
}

.trade-state-card {
  border: 1px dashed var(--fdc-chat-border-strong);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  min-height: 280px;
  padding: 32px 24px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
}

:root[data-theme='dark'] .trade-state-card {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(10, 18, 31, 0.94);
}

.trade-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--fdc-chat-primary-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

:root[data-theme='dark'] .trade-kicker {
  background: rgba(59, 130, 246, 0.18);
  color: var(--fdc-chat-primary);
}

.trade-state-title {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.trade-state-copy {
  margin: 0;
  max-width: 520px;
  color: #556173;
  line-height: 1.7;
}

:root[data-theme='dark'] .trade-state-copy {
  color: #b9c8dd;
}

.fdc-chat-workstation {
  display: grid;
  grid-template-columns: minmax(320px, 368px) minmax(0, 1fr);
  width: min(100%, var(--fdc-chat-workstation-max-width));
  max-width: var(--fdc-chat-workstation-max-width);
  flex: 0 0 auto;
  height: calc(100dvh - var(--fdc-header-offset, var(--fdc-header-height, 56px)) - var(--fdc-chat-page-gap-top, 0px) - var(--fdc-chat-page-gap-bottom, 0px));
  max-height: calc(100dvh - var(--fdc-header-offset, var(--fdc-header-height, 56px)) - var(--fdc-chat-page-gap-top, 0px) - var(--fdc-chat-page-gap-bottom, 0px));
  min-height: 0;
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--fdc-chat-border) 88%, transparent);
  border-radius: 18px;
  background: var(--fdc-chat-shell-bg);
  box-shadow: none;
  overflow: hidden;
}

:root[data-theme='dark'] .fdc-chat-workstation {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(8, 15, 26, 0.98);
  box-shadow: none;
}

.fdc-chat-sidebar,
.fdc-chat-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fdc-chat-sidebar {
  border-right: 1px solid var(--fdc-chat-border);
  background: var(--fdc-chat-sidebar-bg);
}

:root[data-theme='dark'] .fdc-chat-sidebar {
  --fdc-chat-sidebar-section-bg: rgba(13, 21, 36, 0.88);
  border-right-color: var(--fdc-chat-border);
  background: rgba(11, 18, 30, 0.98);
}

.fdc-chat-sidebar-head {
  padding: var(--fdc-chat-sidebar-head-padding);
  display: grid;
  gap: var(--fdc-chat-sidebar-head-gap);
  position: var(--fdc-chat-sidebar-head-position);
  top: var(--fdc-chat-sidebar-head-top);
  z-index: var(--fdc-chat-sidebar-head-z);
  background: var(--fdc-chat-sidebar-section-bg);
  backdrop-filter: var(--fdc-chat-sidebar-head-backdrop);
  border-bottom: var(--fdc-chat-sidebar-head-border-bottom);
}

.fdc-chat-sidebar-copy {
  display: grid;
  gap: 6px;
}

.fdc-chat-sidebar-copy h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--fdc-chat-primary);
}

.fdc-chat-sidebar-copy p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: #556173;
}

:root[data-theme='dark'] .fdc-chat-sidebar-copy p {
  color: #b9c8dd;
}

:root[data-theme='dark'] .fdc-chat-sidebar-head {
  background: var(--fdc-chat-sidebar-section-bg);
}

.fdc-chat-primary-action,
.fdc-chat-danger-action,
.fdc-chat-secondary-action,
.fdc-chat-soft-action,
.fdc-chat-room-action {
  appearance: none;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.fdc-chat-primary-action {
  background: var(--fdc-chat-primary);
  color: #ffffff;
}

.fdc-chat-danger-action {
  border-color: rgba(217, 45, 32, 0.28);
  background: rgba(217, 45, 32, 0.1);
  color: #d92d20;
}

.fdc-chat-secondary-action,
.fdc-chat-room-action {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
}

.fdc-chat-soft-action {
  border-color: var(--fdc-chat-border-strong);
  background: transparent;
  color: #556173;
}

.fdc-chat-floating-tooltip {
  position: fixed;
  z-index: 3200;
  max-width: min(220px, calc(100vw - 24px));
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.fdc-chat-floating-tooltip::after {
  content: none;
}

:root[data-theme='dark'] .fdc-chat-floating-tooltip {
  background: rgba(239, 243, 251, 0.96);
  color: #0f172a;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.28);
}

:root[data-theme='dark'] .fdc-chat-secondary-action,
:root[data-theme='dark'] .fdc-chat-room-action {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(15, 23, 42, 0.92);
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-danger-action {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(127, 29, 29, 0.34);
  color: #fca5a5;
}

:root[data-theme='dark'] .fdc-chat-soft-action {
  border-color: var(--fdc-chat-border-strong);
  color: #c2d1e6;
}

.fdc-chat-danger-action:hover,
.fdc-chat-danger-action:focus-visible,
.fdc-chat-danger-action:active {
  border-color: rgba(217, 45, 32, 0.36);
  background: rgba(217, 45, 32, 0.16);
  color: #c81e1e;
}

:root[data-theme='dark'] .fdc-chat-danger-action:hover,
:root[data-theme='dark'] .fdc-chat-danger-action:focus-visible,
:root[data-theme='dark'] .fdc-chat-danger-action:active {
  border-color: rgba(252, 165, 165, 0.48);
  background: rgba(127, 29, 29, 0.44);
  color: #fecaca;
}

.fdc-chat-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fdc-chat-page-heading-copy {
  min-width: 0;
}

.fdc-chat-page-title {
  margin: 0;
  color: var(--fdc-color-text-main, #0f172a);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.fdc-chat-page-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.fdc-chat-page-heading-actions .fdc-chat-secondary-action {
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.fdc-chat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fdc-chat-nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fdc-chat-nav-row .fdc-chat-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.fdc-chat-compact-action {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--fdc-chat-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.fdc-chat-compact-action .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.fdc-chat-nav-link {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #556173;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.fdc-chat-nav-link.is-active {
  border-color: color-mix(in srgb, var(--fdc-chat-primary) 22%, var(--fdc-chat-border));
  background: color-mix(in srgb, var(--fdc-chat-primary) 10%, white);
  color: var(--fdc-chat-primary);
  font-weight: 800;
}

:root[data-theme='dark'] .fdc-chat-nav-link {
  color: #b9c8dd;
}

:root[data-theme='dark'] .fdc-chat-nav-link.is-active {
  background: rgba(37, 99, 235, 0.24);
  color: #93c5fd;
}

.fdc-chat-search-shell {
  box-sizing: border-box;
  width: 100%;
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  --fdc-search-shell-height: 48px;
  --fdc-search-shell-radius: 12px;
  --fdc-search-shell-bg: color-mix(in srgb, #eef3f9 82%, #ffffff);
  --fdc-search-shell-hover-bg: color-mix(in srgb, #eef3f9 88%, #ffffff);
  --fdc-search-shell-input-size: 16px;
  --fdc-search-shell-input-weight: 700;
}

.fdc-chat-search-shell::before,
.fdc-chat-search-shell::after {
  content: none !important;
}

.fdc-chat-search-shell .fdc-search-shell__icon,
.fdc-chat-search-shell .material-symbols-outlined {
  color: #7b8798;
  font-size: 20px;
}

.fdc-chat-search-input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: calc(var(--fdc-search-shell-height) - 2px);
  box-sizing: border-box;
  font-family: var(--fdc-chat-readable-font-family);
  font-feature-settings: normal;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  line-height: var(--fdc-search-shell-input-line-height, 1.4);
}

.fdc-chat-search-shell .fdc-chat-search-input.fdc-search-shell__input {
  display: block;
  align-self: stretch;
  margin: 0;
  width: 100%;
  min-height: calc(var(--fdc-search-shell-height) - 2px);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  background-clip: padding-box;
  box-shadow: none !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.fdc-chat-search-shell .fdc-chat-search-input.fdc-search-shell__input::-webkit-search-decoration,
.fdc-chat-search-shell .fdc-chat-search-input.fdc-search-shell__input::-webkit-search-cancel-button,
.fdc-chat-search-shell .fdc-chat-search-input.fdc-search-shell__input::-webkit-search-results-button,
.fdc-chat-search-shell .fdc-chat-search-input.fdc-search-shell__input::-webkit-search-results-decoration {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

.fdc-chat-search-input:focus,
.fdc-chat-search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.fdc-chat-search-input::placeholder {
  color: #8a96a8;
  opacity: 1;
}

:root[data-theme='dark'] .fdc-chat-composer-input,
:root[data-theme='dark'] .fdc-chat-compose-input {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(15, 23, 42, 0.92);
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-search-input {
  background: transparent;
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-search-input::placeholder {
  color: #94a3b8;
}

:root[data-theme='dark'] .fdc-chat-search-shell {
  background: rgba(15, 23, 42, 0.92);
}

.fdc-chat-sidebar-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6a7688;
  font-size: 0.76rem;
  font-weight: 700;
}

:root[data-theme='dark'] .fdc-chat-sidebar-summary {
  color: #96a7be;
}

:root[data-theme='dark'] .fdc-chat-page-title {
  color: #f8fafc;
}

.fdc-chat-sidebar-state {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--fdc-chat-sidebar-state-padding);
  display: flex;
  box-sizing: border-box;
  background: var(--fdc-chat-sidebar-section-bg);
}

.fdc-chat-stage-state {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  display: flex;
}

.fdc-chat-workspace-state {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.fdc-chat-workspace-state-inner {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.fdc-chat-sidebar-state .fdc-chat-workspace-state-inner {
  width: min(248px, 100%);
}

.fdc-chat-sidebar-state .fdc-chat-workspace-state {
  padding: 24px 18px;
  background: transparent;
}

.fdc-chat-workspace-state-icon {
  color: var(--fdc-chat-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fdc-chat-workspace-state-icon .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
}

.fdc-chat-workspace-state-copy {
  display: grid;
  gap: 4px;
}

.fdc-chat-workspace-state-copy strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
}

.fdc-chat-workspace-state-copy span {
  display: block;
  color: #6a7688;
  font-size: 0.83rem;
  line-height: 1.52;
}

.fdc-chat-workspace-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fdc-chat-workspace-state.is-danger .fdc-chat-workspace-state-icon {
  color: #b91c1c;
}

:root[data-theme='dark'] .fdc-chat-workspace-state-icon {
  color: var(--fdc-chat-primary);
}

:root[data-theme='dark'] .fdc-chat-workspace-state-copy strong {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-workspace-state-copy span {
  color: #aabbd2;
}

:root[data-theme='dark'] .fdc-chat-sidebar-state {
  background: var(--fdc-chat-sidebar-section-bg);
}

:root[data-theme='dark'] .fdc-chat-workspace-state.is-danger .fdc-chat-workspace-state-icon {
  color: #fca5a5;
}

.fdc-chat-sidebar-state .trade-state-card,
.fdc-chat-stage-state .trade-state-card,
.fdc-chat-sidebar-state .fdc-status-card,
.fdc-chat-stage-state .fdc-status-card {
  min-height: 0;
  padding: 24px 18px;
  gap: 12px;
}

.fdc-chat-sidebar-state .fdc-status-card,
.fdc-chat-stage-state .fdc-status-card {
  width: 100%;
}

.fdc-chat-sidebar-state .fdc-loading-stack,
.fdc-chat-stage-state .fdc-loading-stack {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  align-content: center;
  justify-items: center;
}

.fdc-chat-thread-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: auto;
  padding: var(--fdc-chat-thread-list-padding);
}

.fdc-chat-thread-row {
  width: 100%;
  min-width: 0;
  margin-bottom: var(--fdc-chat-thread-row-margin-bottom);
  position: relative;
  box-sizing: border-box;
  padding: var(--fdc-chat-thread-row-padding);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--fdc-chat-thread-row-gap);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.fdc-chat-thread-row + .fdc-chat-thread-row::before {
  content: '';
  position: absolute;
  left: var(--fdc-chat-thread-row-separator-inset);
  right: var(--fdc-chat-thread-row-separator-inset);
  top: -3px;
  height: 1px;
  background: color-mix(in srgb, var(--fdc-chat-border) 82%, transparent);
  pointer-events: none;
}

.fdc-chat-thread-row:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fdc-chat-primary) 38%, transparent);
  outline-offset: -3px;
}

.fdc-chat-thread-avatar-link,
.fdc-chat-thread-title-link,
.fdc-chat-room-profile-link,
.fdc-chat-chip--identity-link {
  color: inherit;
  text-decoration: none;
}

.fdc-chat-thread-avatar-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.fdc-chat-thread-tools {
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-self: end;
  min-width: 36px;
  flex: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease;
}

.fdc-chat-thread-row:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: transparent;
}

.fdc-chat-thread-row.is-context-open {
  border-color: transparent;
  background: rgba(59, 130, 246, 0.18);
  box-shadow: none;
}

.fdc-chat-thread-row:hover .fdc-chat-thread-tools,
.fdc-chat-thread-row:focus-within .fdc-chat-thread-tools,
.fdc-chat-thread-row.is-active .fdc-chat-thread-tools,
.fdc-chat-inline-menu[open] {
  opacity: 1;
  visibility: visible;
}

.fdc-chat-thread-row.is-active {
  background: rgba(59, 130, 246, 0.14);
  border-color: transparent;
  box-shadow: none;
}

:root[data-theme='dark'] .fdc-chat-thread-row:hover {
  background: rgba(37, 99, 235, 0.2);
}

:root[data-theme='dark'] .fdc-chat-thread-row.is-context-open {
  background: rgba(37, 99, 235, 0.22);
  border-color: transparent;
}

:root[data-theme='dark'] .fdc-chat-thread-row.is-active {
  background: rgba(37, 99, 235, 0.2);
  border-color: transparent;
  box-shadow: none;
}

:root[data-theme='dark'] .fdc-chat-thread-row + .fdc-chat-thread-row::before {
  background: color-mix(in srgb, var(--fdc-chat-border-strong) 84%, transparent);
}

.fdc-chat-thread-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.fdc-chat-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fdc-chat-thread-main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}

.fdc-chat-thread-heading-stack {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fdc-chat-thread-kicker {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--fdc-chat-primary);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
}

.fdc-chat-thread-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.fdc-chat-thread-heading {
  min-width: 0;
  display: block;
}

.fdc-chat-thread-topline {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: start;
  gap: 4px;
}

.fdc-chat-thread-pin-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fdc-chat-primary);
}

.fdc-chat-thread-pin-icon .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}

.fdc-chat-thread-title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--fdc-chat-readable-font-family);
  font-feature-settings: normal;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: normal;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
}

.fdc-chat-thread-title-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.fdc-chat-inline-identity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
}

.fdc-chat-inline-identity .fdc-identity-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
}

.fdc-chat-inline-identity .fdc-identity-display__badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.fdc-chat-thread-title-link:hover,
.fdc-chat-thread-title-link:focus-visible,
.fdc-chat-room-profile-link:hover .fdc-chat-room-title,
.fdc-chat-room-profile-link:focus-visible .fdc-chat-room-title,
.fdc-chat-chip--identity-link:hover,
.fdc-chat-chip--identity-link:focus-visible {
  color: var(--fdc-chat-primary);
}

:root[data-theme='dark'] .fdc-chat-thread-title {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-thread-kicker {
  color: #93c5fd;
}

.fdc-chat-thread-time {
  flex-shrink: 0;
  color: #7b8798;
  font-size: 0.72rem;
  font-weight: 600;
}

.fdc-chat-thread-meta,
.fdc-chat-room-meta,
.fdc-chat-room-actions,
.fdc-chat-compose-actions,
.fdc-chat-room-context-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fdc-chat-thread-meta {
  justify-content: flex-end;
  justify-self: end;
}

.fdc-chat-thread-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fdc-chat-thread-preview-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fdc-chat-thread-preview-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.fdc-chat-thread-preview-prefix,
.fdc-chat-status-dot-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.fdc-chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.fdc-chat-status-dot.is-accent {
  background: var(--fdc-chat-primary);
}

.fdc-chat-status-dot.is-muted {
  background: #64748b;
}

.fdc-chat-status-dot.is-success {
  background: #15803d;
}

.fdc-chat-status-dot.is-info {
  background: #d97706;
}

.fdc-chat-status-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #556173;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.fdc-chat-status-meta.is-accent {
  color: var(--fdc-chat-primary-strong);
}

.fdc-chat-status-meta.is-muted {
  color: #64748b;
}

.fdc-chat-status-meta.is-success {
  color: #15803d;
}

.fdc-chat-status-meta.is-info {
  color: #d97706;
}

.fdc-chat-inline-menu {
  position: relative;
  flex: 0 0 auto;
}

.fdc-chat-inline-menu summary {
  list-style: none;
}

.fdc-chat-inline-menu summary::-webkit-details-marker {
  display: none;
}

.fdc-chat-menu-trigger {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #556173;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.fdc-chat-menu-trigger:hover,
.fdc-chat-menu-trigger:focus-visible {
  background: rgba(59, 130, 246, 0.1);
  color: var(--fdc-chat-primary);
  outline: none;
}

.fdc-chat-menu-trigger .material-symbols-outlined {
  font-size: 19px;
  line-height: 1;
}

.fdc-chat-inline-menu[open] .fdc-chat-menu-trigger {
  background: rgba(59, 130, 246, 0.08);
  color: var(--fdc-chat-primary);
}

.fdc-chat-inline-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  width: max-content;
  min-width: 0;
  max-width: min(220px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--fdc-color-border, var(--fdc-chat-border-strong));
  border-radius: 18px;
  background: var(--fdc-dropdown-panel-bg, rgba(255, 255, 255, 0.98));
  box-shadow: var(--fdc-dropdown-panel-shadow, 0 18px 40px rgba(15, 23, 42, 0.12));
  backdrop-filter: blur(16px);
  display: grid;
  gap: 4px;
}

.fdc-chat-inline-menu-item {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.fdc-chat-inline-menu-item:disabled {
  opacity: 0.5;
  cursor: default;
}

.fdc-chat-inline-menu-item:hover,
.fdc-chat-inline-menu-item:focus-visible {
  background: rgba(59, 130, 246, 0.08);
  color: var(--fdc-chat-primary);
  outline: none;
}

.fdc-chat-inline-menu-item .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.fdc-chat-inline-menu-item.is-danger {
  color: #b91c1c;
}

.fdc-chat-inline-menu-item.is-danger:hover,
.fdc-chat-inline-menu-item.is-danger:focus-visible {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.fdc-chat-chip,
.fdc-chat-unread-badge {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--fdc-chat-border-strong);
  background: rgba(255, 255, 255, 0.88);
  color: #556173;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.fdc-chat-icon-chip {
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #556173;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.fdc-chat-icon-chip .material-symbols-outlined {
  font-size: 15px;
  line-height: 1;
}

.fdc-chat-chip.is-accent {
  border-color: rgba(59, 130, 246, 0.16);
  background: rgba(59, 130, 246, 0.12);
  color: var(--fdc-chat-primary-strong);
}

.fdc-chat-chip.is-muted {
  border-color: rgba(148, 163, 184, 0.26);
  background: #f1f5f9;
  color: #64748b;
}

.fdc-chat-chip.is-success {
  border-color: rgba(34, 197, 94, 0.2);
  background: #dcfce7;
  color: #15803d;
}

.fdc-chat-chip.is-info {
  border-color: rgba(245, 158, 11, 0.24);
  background: #fffbeb;
  color: #d97706;
}

.fdc-chat-chip.is-danger {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
}

.fdc-chat-unread-badge {
  border-color: transparent;
  background: var(--fdc-chat-primary);
  color: #ffffff;
}

.fdc-chat-thread-preview-meta .fdc-chat-unread-badge {
  min-height: 18px;
  padding: 0 6px;
  font-size: 0.63rem;
}

:root[data-theme='dark'] .fdc-chat-chip,
:root[data-theme='dark'] .fdc-chat-unread-badge {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(15, 23, 42, 0.88);
  color: #d3deed;
}

:root[data-theme='dark'] .fdc-chat-icon-chip {
  background: transparent;
  color: #d3deed;
}

:root[data-theme='dark'] .fdc-chat-menu-trigger {
  background: transparent;
  color: #d3deed;
}

:root[data-theme='dark'] .fdc-chat-thread-pin-icon {
  color: #93c5fd;
}

:root[data-theme='dark'] .fdc-chat-menu-trigger:hover,
:root[data-theme='dark'] .fdc-chat-menu-trigger:focus-visible {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

:root[data-theme='dark'] .fdc-chat-inline-menu[open] .fdc-chat-menu-trigger {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

:root[data-theme='dark'] .fdc-chat-inline-menu-panel {
  border-color: rgba(59, 130, 246, 0.18);
  background: var(--fdc-dropdown-panel-bg, rgba(15, 23, 42, 0.96));
  color: #d3deed;
}

:root[data-theme='dark'] .fdc-chat-inline-menu-item {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-inline-menu-item:hover,
:root[data-theme='dark'] .fdc-chat-inline-menu-item:focus-visible {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

:root[data-theme='dark'] .fdc-chat-inline-menu-item.is-danger {
  color: #fca5a5;
}

:root[data-theme='dark'] .fdc-chat-inline-menu-item.is-danger:hover,
:root[data-theme='dark'] .fdc-chat-inline-menu-item.is-danger:focus-visible {
  background: rgba(127, 29, 29, 0.38);
  color: #fecaca;
}

:root[data-theme='dark'] .fdc-chat-chip.is-accent {
  background: rgba(59, 130, 246, 0.18);
  color: var(--fdc-chat-primary);
}

:root[data-theme='dark'] .fdc-chat-status-dot.is-muted {
  background: #cbd5e1;
}

:root[data-theme='dark'] .fdc-chat-status-dot.is-success {
  background: #86efac;
}

:root[data-theme='dark'] .fdc-chat-status-dot.is-info {
  background: #fbbf24;
}

:root[data-theme='dark'] .fdc-chat-status-meta.is-muted {
  color: #cbd5e1;
}

:root[data-theme='dark'] .fdc-chat-status-meta.is-info {
  color: #fbbf24;
}

:root[data-theme='dark'] .fdc-chat-chip.is-muted {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(51, 65, 85, 0.72);
  color: #cbd5e1;
}

:root[data-theme='dark'] .fdc-chat-chip.is-success {
  border-color: rgba(134, 239, 172, 0.28);
  background: rgba(20, 83, 45, 0.42);
  color: #86efac;
}

:root[data-theme='dark'] .fdc-chat-chip.is-info {
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(146, 64, 14, 0.34);
  color: #fbbf24;
}

:root[data-theme='dark'] .fdc-chat-chip.is-danger {
  background: rgba(127, 29, 29, 0.42);
  color: #fca5a5;
}

:root[data-theme='dark'] .fdc-chat-unread-badge {
  border-color: transparent;
  background: var(--fdc-chat-primary-strong);
  color: #ffffff;
}

.fdc-chat-thread-subtitle,
.fdc-chat-thread-preview {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--fdc-chat-readable-font-family);
  font-feature-settings: normal;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: #556173;
  line-height: 1.45;
  letter-spacing: normal;
}

.fdc-chat-thread-subtitle {
  font-size: 0.84rem;
  font-weight: 700;
}

.fdc-chat-thread-preview {
  font-size: 0.86rem;
  font-weight: 500;
}

.fdc-chat-thread-row.has-unread .fdc-chat-thread-title,
.fdc-chat-thread-row.has-unread .fdc-chat-thread-preview {
  color: var(--fdc-color-text-main, #0f172a);
  font-weight: 800;
}

.fdc-chat-chip--subject {
  max-width: min(100%, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdc-chat-room-product-link {
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.fdc-chat-room-product-link:hover,
.fdc-chat-room-product-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(219, 234, 254, 0.72);
  color: #1d4ed8;
}

:root[data-theme='dark'] .fdc-chat-room-product-link:hover,
:root[data-theme='dark'] .fdc-chat-room-product-link:focus-visible {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 58, 138, 0.32);
  color: #dbeafe;
}

:root[data-theme='dark'] .fdc-chat-thread-subtitle,
:root[data-theme='dark'] .fdc-chat-thread-preview {
  color: #b9c8dd;
}

.fdc-chat-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: var(--fdc-chat-stage-bg);
}

:root[data-theme='dark'] .fdc-chat-stage {
  background: var(--fdc-chat-stage-bg);
}

.fdc-chat-stage-state {
  padding: 24px;
}

.fdc-chat-room-card {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
}

.fdc-chat-room-head {
  padding: 10px 24px 6px;
  border-bottom: 1px solid var(--fdc-chat-border);
  box-shadow: none;
  background: var(--fdc-chat-stage-bg);
  display: grid;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 3;
}

:root[data-theme='dark'] .fdc-chat-room-head {
  background: var(--fdc-chat-stage-bg);
}

:root[data-theme='dark'] .fdc-chat-room-card {
  background: transparent;
}

.fdc-chat-room-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.fdc-chat-room-trade-strip {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.fdc-chat-room-trade-toggle {
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.fdc-chat-room-trade-toggle-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fdc-chat-room-trade-toggle-copy strong {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.fdc-chat-room-trade-toggle .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  color: #6f7c8f;
  transition: transform 0.16s ease;
}

.fdc-chat-room-trade-toggle[aria-expanded='true'] .material-symbols-outlined {
  transform: rotate(180deg);
}

.fdc-chat-room-trade-panel[hidden] {
  display: none !important;
}

.fdc-chat-room-head-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(540px);
  align-items: center;
  gap: 12px;
}

.fdc-chat-room-action.is-mobile-only {
  display: none;
}

.fdc-chat-room-action.is-icon {
  min-width: 44px;
  padding: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.fdc-chat-room-actions .fdc-chat-room-action.is-icon,
.fdc-chat-room-actions .fdc-chat-inline-menu .fdc-chat-menu-trigger {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #556173;
}

.fdc-chat-room-actions .fdc-chat-room-action.is-icon:hover,
.fdc-chat-room-actions .fdc-chat-room-action.is-icon:focus-visible,
.fdc-chat-room-actions .fdc-chat-inline-menu .fdc-chat-menu-trigger:hover,
.fdc-chat-room-actions .fdc-chat-inline-menu .fdc-chat-menu-trigger:focus-visible {
  background: color-mix(in srgb, var(--fdc-chat-primary, #3b82f6) 10%, #ffffff);
  color: var(--fdc-chat-primary, #3b82f6);
  outline: none;
}

.fdc-chat-room-actions .fdc-chat-room-action.is-icon .material-symbols-outlined,
.fdc-chat-room-actions .fdc-chat-inline-menu .fdc-chat-menu-trigger .material-symbols-outlined {
  font-size: 21px;
  line-height: 1;
}

:root[data-theme='dark'] .fdc-chat-room-actions .fdc-chat-room-action.is-icon,
:root[data-theme='dark'] .fdc-chat-room-actions .fdc-chat-inline-menu .fdc-chat-menu-trigger {
  background: transparent;
  color: #b9c8dd;
  border: none;
}

:root[data-theme='dark'] .fdc-chat-room-actions .fdc-chat-room-action.is-icon:hover,
:root[data-theme='dark'] .fdc-chat-room-actions .fdc-chat-room-action.is-icon:focus-visible,
:root[data-theme='dark'] .fdc-chat-room-actions .fdc-chat-inline-menu .fdc-chat-menu-trigger:hover,
:root[data-theme='dark'] .fdc-chat-room-actions .fdc-chat-inline-menu .fdc-chat-menu-trigger:focus-visible {
  background: color-mix(in srgb, var(--fdc-chat-primary, #60a5fa) 18%, rgba(15, 23, 42, 0.92));
  color: var(--fdc-chat-primary, #60a5fa);
  outline: none;
}

.fdc-chat-room-searchbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.fdc-chat-room-searchfield {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.fdc-chat-room-searchfield .material-symbols-outlined {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b8798;
  font-size: 20px;
  pointer-events: none;
}

.fdc-chat-room-searchfield input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px 0 42px;
  border-radius: 12px;
  border: 1px solid var(--fdc-chat-border-strong);
  background: rgba(248, 250, 252, 0.92);
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.fdc-chat-room-searchfield input:focus {
  border-color: color-mix(in srgb, var(--fdc-chat-primary) 68%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fdc-chat-primary) 12%, transparent);
}

.fdc-chat-room-searchcount {
  min-width: 56px;
  color: #6a7688;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

:root[data-theme='dark'] .fdc-chat-room-searchfield input {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(15, 23, 42, 0.92);
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-room-searchcount {
  color: #b9c8dd;
}

:root[data-theme='dark'] .fdc-chat-room-trade-toggle {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-room-trade-toggle .material-symbols-outlined {
  color: #b9c8dd;
}

.fdc-chat-room-profile,
.fdc-chat-room-context {
  min-width: 0;
  display: flex;
  gap: 14px;
}

.fdc-chat-room-trade-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--fdc-chat-border);
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.fdc-chat-room-trade-summary:hover,
.fdc-chat-room-trade-summary:focus-visible {
  border-color: color-mix(in srgb, var(--fdc-chat-primary) 28%, var(--fdc-chat-border));
  background: rgba(248, 251, 255, 0.96);
}

.fdc-chat-room-trade-summary-thumb-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fdc-chat-room-trade-summary .fdc-chat-room-post-thumb {
  width: 58px;
  height: 86px;
  border-radius: 10px;
}

.fdc-chat-room-trade-summary-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.fdc-chat-room-trade-summary-topline,
.fdc-chat-room-trade-summary-main,
.fdc-chat-room-trade-chip-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fdc-chat-room-trade-summary-topline,
.fdc-chat-room-trade-chip-row {
  flex-wrap: wrap;
}

.fdc-chat-room-trade-summary-topline .trade-market-status {
  min-height: 24px;
}

.trade-market-card-chip--type.is-sell {
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.trade-market-card-chip--type.is-buy {
  border-color: rgba(249, 115, 22, 0.18);
  background: rgba(255, 237, 213, 0.92);
  color: #c2410c;
}

.trade-market-card-chip--type.is-trade {
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(220, 252, 231, 0.9);
  color: #15803d;
}

.fdc-chat-room-trade-summary-main {
  justify-content: space-between;
}

.fdc-chat-room-trade-summary-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
}

.fdc-chat-room-trade-summary-main .trade-market-price {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fdc-chat-room-trade-summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8893a5;
}

.fdc-chat-room-trade-summary-arrow .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.fdc-chat-room-profile {
  flex: 1 1 auto;
}

.fdc-chat-room-context {
  width: min(100%, 540px);
  justify-self: end;
}

.fdc-chat-room-profile-link {
  min-width: 0;
  display: flex;
  gap: 14px;
  align-items: center;
}

.fdc-chat-room-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.fdc-chat-room-avatar img,
.fdc-chat-room-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fdc-chat-room-text,
.fdc-chat-room-context-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fdc-chat-room-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fdc-chat-room-text h2,
.fdc-chat-room-context-copy h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
}

.fdc-chat-room-text p,
.fdc-chat-room-context-copy p {
  margin: 0;
  color: #556173;
  font-family: var(--fdc-chat-readable-font-family);
  font-feature-settings: normal;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  line-height: 1.58;
  font-size: 0.9rem;
}

:root[data-theme='dark'] .fdc-chat-room-text h2,
:root[data-theme='dark'] .fdc-chat-room-context-copy h2 {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-room-text p,
:root[data-theme='dark'] .fdc-chat-room-context-copy p {
  color: #b9c8dd;
}

:root[data-theme='dark'] .fdc-chat-room-trade-summary {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme='dark'] .fdc-chat-room-trade-summary:hover,
:root[data-theme='dark'] .fdc-chat-room-trade-summary:focus-visible {
  border-color: color-mix(in srgb, #93c5fd 28%, var(--fdc-chat-border));
  background: rgba(17, 27, 44, 0.96);
}

:root[data-theme='dark'] .fdc-chat-room-trade-summary-title {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-room-trade-summary-arrow {
  color: #b9c8dd;
}

:root[data-theme='dark'] .trade-market-card-chip--type.is-sell {
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(30, 64, 175, 0.3);
  color: #bfdbfe;
}

:root[data-theme='dark'] .trade-market-card-chip--type.is-buy {
  border-color: rgba(251, 146, 60, 0.26);
  background: rgba(124, 45, 18, 0.34);
  color: #fdba74;
}

:root[data-theme='dark'] .trade-market-card-chip--type.is-trade {
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(20, 83, 45, 0.34);
  color: #86efac;
}

:root[data-theme='dark'] .fdc-chat-room-context-card {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme='dark'] .fdc-chat-room-context-card:hover,
:root[data-theme='dark'] .fdc-chat-room-context-card:focus-visible {
  border-color: color-mix(in srgb, #93c5fd 28%, var(--fdc-chat-border));
  background: rgba(17, 27, 44, 0.96);
}

.fdc-chat-thread-title .fdc-identity-display,
.fdc-chat-room-title .fdc-identity-display,
.fdc-chat-chip--identity .fdc-identity-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  vertical-align: top;
}

.fdc-chat-thread-title .fdc-identity-display__badges,
.fdc-chat-room-title .fdc-identity-display__badges,
.fdc-chat-chip--identity .fdc-identity-display__badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.fdc-chat-thread-title-text,
.fdc-chat-room-title-text,
.fdc-chat-chip-identity-text {
  min-width: 0;
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--fdc-chat-readable-font-family);
  font-feature-settings: normal;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.fdc-chat-chip--identity {
  max-width: 100%;
}

.fdc-chat-room-title {
  min-width: 0;
  flex: 1 1 auto;
}

.fdc-chat-room-context-card {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--fdc-chat-border);
  border-radius: 16px;
  background: rgba(246, 248, 253, 0.96);
  color: inherit;
  text-decoration: none;
  align-items: center;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.fdc-chat-room-context-card:hover,
.fdc-chat-room-context-card:focus-visible {
  border-color: color-mix(in srgb, var(--fdc-chat-primary) 28%, var(--fdc-chat-border));
  background: rgba(255, 255, 255, 0.98);
}

.fdc-chat-room-context-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fdc-chat-room-context-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdc-chat-room-context-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fdc-chat-room-context-chip-row {
  gap: 6px;
}

.fdc-chat-chip--identity-link {
  cursor: pointer;
}

.fdc-chat-chip--identity .fdc-identity-display {
  color: inherit;
}

.fdc-chat-chip--identity .fdc-chat-chip-identity-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdc-chat-room-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b8798;
}

.fdc-chat-room-legal {
  margin: 14px 24px 0;
  flex: 0 0 auto;
}

.fdc-chat-room-legal[hidden] {
  display: none !important;
}

.fdc-chat-room-legal .trade-intermediary-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
}

.fdc-chat-room-legal .trade-intermediary-notice-copy p {
  font-size: 0.78rem;
  line-height: 1.55;
}

.fdc-chat-room-status {
  color: #6f7c8f;
  font-size: 0.82rem;
  font-weight: 600;
}

.fdc-chat-room-meta-icon .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

:root[data-theme='dark'] .fdc-chat-room-meta-icon {
  color: #aabbd2;
}

:root[data-theme='dark'] .fdc-chat-room-status {
  color: #aabbd2;
}

.fdc-chat-room-post-thumb {
  width: 68px;
  height: 84px;
  border-radius: 0;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--fdc-chat-border);
  background: rgba(236, 237, 247, 0.96);
}

.fdc-chat-room-post-thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b8798;
}

.fdc-chat-room-post-thumb--placeholder .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

.fdc-chat-room-banner {
  margin: 12px 24px 0;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  background: transparent;
}

.fdc-chat-room-banner-notice {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(87, 223, 254, 0.24);
  background: rgba(87, 223, 254, 0.12);
  color: #006172;
  font-size: 0.86rem;
  font-weight: 700;
}

.fdc-chat-room-banner-pin {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.fdc-chat-room-banner-pin .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.fdc-chat-room-banner-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fdc-chat-room-banner-copy strong,
.fdc-chat-room-banner-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdc-chat-room-banner-copy strong {
  font-size: 0.8rem;
  font-weight: 800;
}

.fdc-chat-room-banner-copy span {
  font-size: 0.78rem;
  color: #1e40af;
  font-weight: 700;
}

.fdc-chat-room-banner-notice.is-danger {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(254, 226, 226, 0.88);
  color: #b91c1c;
}

.fdc-chat-room-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 24px 18px;
  display: grid;
  align-content: start;
  gap: 4px;
  background: rgba(247, 250, 252, 0.92);
  overscroll-behavior: auto;
}

.fdc-chat-room-stream-state {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  align-self: stretch;
  justify-self: stretch;
  text-align: center;
  padding: 24px 12px;
  box-sizing: border-box;
}

:root[data-theme='dark'] .fdc-chat-room-stream {
  background: rgba(8, 15, 26, 0.94);
}

:root[data-theme='dark'] .fdc-chat-room-banner {
  background: rgba(11, 18, 30, 0.92);
}

:root[data-theme='dark'] .fdc-chat-room-stream-state {
  color: #8ea2bf;
}

:root[data-theme='dark'] .fdc-chat-room-stream-state strong {
  color: #eff3fb;
}

.fdc-chat-message-day {
  justify-self: center;
  min-height: 24px;
  padding: 0 12px;
  margin: 2px 0;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.96);
  color: #6a7688;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fdc-chat-message-system {
  justify-self: center;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.fdc-chat-message-system span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: min(100%, 420px);
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.96);
  color: #6a7688;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}

.fdc-chat-message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: min(84%, 700px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  justify-self: start;
}

.fdc-chat-message-row.is-own {
  margin-left: auto;
  justify-content: flex-end;
  justify-self: end;
}

.fdc-chat-message-row.is-group-start {
  margin-top: 6px;
}

.fdc-chat-message-side {
  width: 32px;
  min-width: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.fdc-chat-message-avatar,
.fdc-chat-message-avatar-slot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.fdc-chat-message-avatar {
  overflow: hidden;
}

.fdc-chat-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fdc-chat-message-avatar-slot {
  visibility: hidden;
}

.fdc-chat-message-row.is-search-match .fdc-chat-message-bubble {
  border-color: rgba(59, 130, 246, 0.34);
}

.fdc-chat-message-row.is-context-open .fdc-chat-message-bubble {
  border-color: rgba(59, 130, 246, 0.5);
}

.fdc-chat-message-row.is-search-match-active .fdc-chat-message-bubble {
  border-color: rgba(59, 130, 246, 0.58);
}

.fdc-chat-search-hit {
  padding: 0 2px;
  border-radius: 4px;
  background: rgba(250, 204, 21, 0.42);
  color: inherit;
}

.fdc-chat-message-row.is-own .fdc-chat-search-hit {
  background: rgba(255, 255, 255, 0.3);
}

:root[data-theme='dark'] .fdc-chat-message-row.is-search-match .fdc-chat-message-bubble {
  border-color: rgba(96, 165, 250, 0.42);
}

:root[data-theme='dark'] .fdc-chat-message-row.is-context-open .fdc-chat-message-bubble {
  border-color: rgba(96, 165, 250, 0.68);
}

:root[data-theme='dark'] .fdc-chat-message-row.is-search-match-active .fdc-chat-message-bubble {
  border-color: rgba(96, 165, 250, 0.72);
}

:root[data-theme='dark'] .fdc-chat-search-hit {
  background: rgba(250, 204, 21, 0.3);
}

:root[data-theme='dark'] .fdc-chat-message-system span {
  background: rgba(22, 33, 52, 0.96);
  color: #aabbd2;
}

.fdc-chat-message-body {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-items: start;
}

.fdc-chat-message-row:not(.is-own) .fdc-chat-message-body {
  padding-top: 4px;
}

.fdc-chat-message-row.is-own .fdc-chat-message-body {
  justify-items: end;
}

.fdc-chat-message-content-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.fdc-chat-message-content-row.is-own {
  justify-content: flex-end;
}

.fdc-chat-message-author {
  color: #7b8798;
  font-size: 0.74rem;
  font-weight: 700;
  padding-left: 4px;
}

.fdc-chat-message-bubble {
  display: grid;
  align-items: start;
  gap: 8px;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 20px;
  border-top-left-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--fdc-chat-border);
  font-family: var(--fdc-chat-readable-font-family);
  font-feature-settings: normal;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
  line-height: 1.58;
  font-size: 0.92rem;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: none;
}

.fdc-chat-message-bubble > * {
  min-width: 0;
  max-width: 100%;
}

.fdc-chat-message-bubble > div,
.fdc-chat-message-bubble > p,
.fdc-chat-message-bubble > span {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fdc-chat-message-row.is-own .fdc-chat-message-bubble {
  border-top-left-radius: 20px;
  border-top-right-radius: 10px;
  background: var(--fdc-chat-primary);
  border-color: color-mix(in srgb, var(--fdc-chat-primary-strong) 38%, transparent);
  color: #ffffff;
  box-shadow: none;
}

:root[data-theme='dark'] .fdc-chat-message-bubble {
  background: rgba(18, 28, 46, 0.96);
  border-color: rgba(59, 130, 246, 0.16);
  color: #eff3fb;
}

.fdc-chat-message-bubble.has-media {
  padding: 8px;
  max-width: min(100%, 220px);
}

.fdc-chat-message-bubble.has-media.has-text {
  padding: 8px 8px 10px;
  max-width: min(100%, 248px);
}

.fdc-chat-message-media {
  display: block;
  width: min(100%, 196px);
  max-width: 196px;
  max-height: min(232px, 34vh);
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(226, 232, 240, 0.72);
}

.fdc-chat-message-bubble.is-image-only {
  padding: 8px;
  line-height: 0;
}

.fdc-chat-message-row.is-grouped .fdc-chat-message-bubble {
  border-top-left-radius: 20px;
}

.fdc-chat-message-row.is-own.is-grouped .fdc-chat-message-bubble {
  border-top-right-radius: 20px;
}

.fdc-chat-message-row:not(.is-group-end) .fdc-chat-message-bubble {
  border-bottom-left-radius: 20px;
}

.fdc-chat-message-row.is-own:not(.is-group-end) .fdc-chat-message-bubble {
  border-bottom-right-radius: 20px;
}

.fdc-chat-message-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--fdc-chat-readable-font-family);
  font-feature-settings: normal;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: #7b8798;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: normal;
  padding: 0 2px;
}

.fdc-chat-message-row.is-own .fdc-chat-message-meta {
  justify-content: flex-end;
}

.fdc-chat-message-receipt {
  color: var(--fdc-chat-primary-strong);
  font-weight: 700;
}

:root[data-theme='dark'] .fdc-chat-message-receipt {
  color: #8bb8ff;
}

:root[data-theme='dark'] .fdc-chat-message-media {
  background: rgba(15, 23, 42, 0.82);
}

.fdc-chat-room-footer {
  width: 100%;
  flex: 0 0 auto;
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px 24px 20px;
  border-top: none;
  background: transparent;
  backdrop-filter: none;
}

:root[data-theme='dark'] .fdc-chat-room-footer {
  background: transparent;
}

.fdc-chat-context-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.fdc-chat-context-menu[hidden] {
  display: none !important;
}

.fdc-chat-context-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: auto;
}

.fdc-chat-composer {
  display: block;
  width: 100%;
  max-width: min(100%, 980px);
  margin: 0 auto;
}

.fdc-chat-composer-shell {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  gap: 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-theme='dark'] .fdc-chat-composer-shell {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.fdc-chat-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  width: 100%;
  min-width: 0;
  order: 3;
}

.fdc-chat-composer-row.is-expanded {
  align-items: center;
}

.fdc-chat-composer-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  min-height: 56px;
  padding: 0 8px 0 10px;
  border: 1px solid color-mix(in srgb, var(--fdc-chat-border-strong) 92%, transparent);
  border-radius: 999px;
  background: rgba(248, 250, 255, 0.98);
  box-sizing: border-box;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.fdc-chat-composer-input-wrap.is-expanded {
  align-items: center;
}

.fdc-chat-attach-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #556173;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.fdc-chat-composer-row.is-expanded .fdc-chat-attach-button {
  align-self: center;
}

.fdc-chat-attach-button[aria-expanded='true'] {
  background: rgba(37, 99, 235, 0.12);
  color: var(--fdc-chat-primary-strong);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fdc-chat-primary) 22%, transparent),
    0 0 0 3px color-mix(in srgb, var(--fdc-chat-primary) 12%, transparent);
}

.fdc-chat-attach-button .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.fdc-chat-attach-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 8;
  width: min(320px, calc(100vw - 32px));
}

.fdc-chat-attach-menu[hidden] {
  display: none !important;
}

.fdc-chat-attach-menu__surface {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--fdc-chat-border-strong) 88%, transparent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.fdc-chat-attach-menu__surface::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid color-mix(in srgb, var(--fdc-chat-border-strong) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--fdc-chat-border-strong) 88%, transparent);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.fdc-chat-attach-menu__item,
.fdc-chat-attach-menu__policy {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
}

.fdc-chat-attach-menu__item {
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.fdc-chat-attach-menu__item:hover,
.fdc-chat-attach-menu__item:focus-visible {
  background: rgba(59, 130, 246, 0.1);
  color: var(--fdc-chat-primary-strong);
  outline: none;
}

.fdc-chat-attach-menu__policy {
  border: 1px solid color-mix(in srgb, var(--fdc-chat-border) 84%, transparent);
  background: color-mix(in srgb, #eff4fb 72%, #ffffff);
}

.fdc-chat-attach-menu__policy.is-static {
  background: color-mix(in srgb, #eef4fb 76%, #ffffff);
}

.fdc-chat-attach-menu__icon {
  width: 20px;
  min-width: 20px;
  margin-top: 1px;
  color: #6a7688;
  font-size: 20px;
  line-height: 1;
}

.fdc-chat-attach-menu__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.fdc-chat-attach-menu__copy strong {
  color: var(--fdc-color-text-main, #0f172a);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.32;
}

.fdc-chat-attach-menu__copy span {
  color: #6a7688;
  font-size: 0.76rem;
  line-height: 1.5;
}

.fdc-chat-composer-input,
.fdc-chat-compose-input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  max-height: 132px;
  padding: 10px 6px 10px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
  font-family: var(--fdc-chat-readable-font-family);
  font-feature-settings: normal;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  resize: none;
  outline: none;
  overflow-y: auto;
  box-sizing: border-box;
}

.fdc-chat-composer-input {
  width: 100%;
  min-width: 0;
}

.fdc-chat-composer-input::placeholder,
.fdc-chat-compose-input::placeholder {
  color: #8a94a5;
}

:root[data-theme='dark'] .fdc-chat-composer-input::placeholder,
:root[data-theme='dark'] .fdc-chat-compose-input::placeholder {
  color: #8ea2bf;
}

:root[data-theme='dark'] .fdc-chat-composer-input {
  background: transparent;
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-composer-input-wrap {
  border-color: color-mix(in srgb, var(--fdc-chat-border-strong) 92%, transparent);
  background: rgba(15, 23, 42, 0.92);
}

:root[data-theme='dark'] .fdc-chat-composer-input-wrap:focus-within {
  background: rgba(15, 23, 42, 0.92);
}

:root[data-theme='dark'] .fdc-chat-attach-button {
  color: #b9c8dd;
}

:root[data-theme='dark'] .fdc-chat-attach-button[aria-expanded='true'] {
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fdc-chat-primary) 26%, transparent),
    0 0 0 3px color-mix(in srgb, var(--fdc-chat-primary) 14%, transparent);
}

:root[data-theme='dark'] .fdc-chat-attach-menu__surface {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(10, 18, 31, 0.98);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.42);
}

:root[data-theme='dark'] .fdc-chat-attach-menu__surface::after {
  border-right-color: var(--fdc-chat-border-strong);
  border-bottom-color: var(--fdc-chat-border-strong);
  background: rgba(10, 18, 31, 0.98);
}

:root[data-theme='dark'] .fdc-chat-attach-menu__policy {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.92);
}

:root[data-theme='dark'] .fdc-chat-attach-menu__policy.is-static {
  background: rgba(17, 24, 39, 0.94);
}

:root[data-theme='dark'] .fdc-chat-attach-menu__icon {
  color: #aabbd2;
}

:root[data-theme='dark'] .fdc-chat-attach-menu__copy strong {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-attach-menu__copy span {
  color: #aabbd2;
}

.fdc-chat-composer-shell:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.fdc-chat-composer-input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--fdc-chat-primary) 62%, transparent);
  background: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fdc-chat-primary) 20%, transparent);
}

.fdc-chat-composer-input:focus,
.fdc-chat-compose-input:focus,
.fdc-chat-composer-input:focus-visible,
.fdc-chat-compose-input:focus-visible {
  outline: none !important;
  border-color: transparent;
  box-shadow: none !important;
}


.fdc-chat-compose-panel .fdc-chat-compose-input {
  min-height: 46px;
  max-height: none;
  padding: 0 14px;
  border: 1px solid var(--fdc-chat-border-strong);
  border-radius: 12px;
  background: rgba(249, 249, 255, 0.96);
}

:root[data-theme='dark'] .fdc-chat-compose-panel .fdc-chat-compose-input {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(15, 23, 42, 0.92);
}

.fdc-chat-composer-help {
  order: 2;
  margin-top: 0;
  margin-bottom: 6px;
  color: #7b8798;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 0 8px;
}

.fdc-chat-composer-help:empty {
  display: none;
}

.fdc-chat-composer-help.is-error,
.fdc-shared-chat-composer-help.is-error {
  color: #d14343;
}

.fdc-chat-composer-attachment {
  order: 1;
  margin-top: 0;
  margin-bottom: 10px;
}

.fdc-chat-composer-attachment[hidden] {
  display: none !important;
}

.fdc-chat-attachment-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--fdc-chat-border);
  border-radius: 14px;
  background: rgba(249, 250, 255, 0.98);
}

.fdc-chat-attachment-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--fdc-chat-border);
  background: rgba(236, 240, 248, 0.96);
}

.fdc-chat-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fdc-chat-attachment-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.fdc-chat-attachment-copy strong,
.fdc-chat-attachment-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdc-chat-attachment-copy strong {
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
  font-size: 0.82rem;
  font-weight: 800;
}

.fdc-chat-attachment-copy span {
  color: #6a7688;
  font-size: 0.72rem;
  font-weight: 700;
}

.fdc-chat-attachment-remove {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #7b8798;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fdc-chat-attachment-remove .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

:root[data-theme='dark'] .fdc-chat-attachment-chip {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.92);
}

:root[data-theme='dark'] .fdc-chat-attachment-thumb {
  border-color: var(--fdc-chat-border);
  background: rgba(22, 33, 52, 0.96);
}

:root[data-theme='dark'] .fdc-chat-attachment-copy strong {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-attachment-copy span,
:root[data-theme='dark'] .fdc-chat-attachment-remove {
  color: #aabbd2;
}

.fdc-chat-send-button {
  position: static;
  margin: 0;
  align-self: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: var(--fdc-chat-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  box-shadow: none;
}

.fdc-chat-send-button .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

:root[data-theme='dark'] .fdc-chat-send-button {
  background: var(--fdc-chat-primary);
  color: #ffffff;
}

.fdc-chat-send-button:disabled,
.fdc-chat-primary-action:disabled,
.fdc-chat-danger-action:disabled,
.fdc-chat-secondary-action:disabled,
.fdc-chat-room-action:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.fdc-chat-send-button:disabled {
  background: rgba(226, 232, 240, 0.92);
  color: #94a3b8;
  box-shadow: none;
}

.fdc-chat-send-button:not(:disabled):hover,
.fdc-chat-send-button:not(:disabled):focus-visible {
  background: var(--fdc-chat-primary);
  color: #ffffff;
}

.fdc-chat-attach-button:not(:disabled):hover,
.fdc-chat-attach-button:not(:disabled):focus-visible {
  outline: none;
  background: rgba(37, 99, 235, 0.12);
  color: var(--fdc-chat-primary-strong);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fdc-chat-primary) 22%, transparent),
    0 0 0 3px color-mix(in srgb, var(--fdc-chat-primary) 12%, transparent);
}

.fdc-chat-attach-button:not(:disabled):active {
  background: rgba(37, 99, 235, 0.16);
  color: var(--fdc-chat-primary-strong);
}

.fdc-chat-empty {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.fdc-chat-empty-card {
  width: min(480px, 100%);
  padding: 32px 28px;
  border-radius: 24px;
  border: 1px dashed var(--fdc-chat-border-strong);
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  display: grid;
  gap: 12px;
}

:root[data-theme='dark'] .fdc-chat-empty-card {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(15, 23, 42, 0.92);
}

.fdc-chat-empty-card h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.fdc-chat-empty-card .material-symbols-outlined {
  color: var(--fdc-chat-primary);
}

.fdc-chat-empty-card p {
  margin: 0;
  color: #556173;
  line-height: 1.68;
}

:root[data-theme='dark'] .fdc-chat-empty-card p {
  color: #b9c8dd;
}

.fdc-chat-compose-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
}

.fdc-chat-compose-modal.is-open {
  display: flex;
}

.fdc-chat-compose-panel {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--fdc-chat-border-strong);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 16px;
}

:root[data-theme='dark'] .fdc-chat-compose-panel {
  border-color: var(--fdc-chat-border-strong);
  background: rgba(10, 18, 31, 0.98);
}

.fdc-chat-compose-panel h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.fdc-chat-compose-panel p {
  margin: 0;
  color: #556173;
  line-height: 1.62;
  font-size: 0.9rem;
}

:root[data-theme='dark'] .fdc-chat-compose-panel p {
  color: #b9c8dd;
}

:root[data-theme='dark'] .fdc-chat-compose-close {
  color: #c2d1e6;
}

:root[data-theme='dark'] .fdc-chat-compose-close:hover,
:root[data-theme='dark'] .fdc-chat-compose-close:focus-visible,
:root[data-theme='dark'] .fdc-chat-compose-user:hover,
:root[data-theme='dark'] .fdc-chat-compose-user:focus-visible {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

:root[data-theme='dark'] .fdc-chat-compose-helper,
:root[data-theme='dark'] .fdc-chat-compose-section-head h3,
:root[data-theme='dark'] .fdc-chat-compose-user-handle,
:root[data-theme='dark'] .fdc-chat-compose-user-tag,
:root[data-theme='dark'] .fdc-chat-compose-empty-icon,
:root[data-theme='dark'] .fdc-chat-compose-empty-copy span {
  color: #aabbd2;
}

:root[data-theme='dark'] .fdc-chat-compose-empty-copy strong {
  color: #eff3fb;
}

.fdc-chat-compose-panel--directory {
  width: min(520px, 100%);
  max-height: min(680px, calc(100dvh - 48px));
  gap: 14px;
}

.fdc-chat-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fdc-chat-compose-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #556173;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.fdc-chat-compose-close:hover,
.fdc-chat-compose-close:focus-visible {
  background: rgba(59, 130, 246, 0.1);
  color: var(--fdc-chat-primary);
  outline: none;
}

.fdc-chat-compose-close .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.fdc-chat-compose-search-shell .fdc-chat-compose-input {
  min-height: 46px;
  max-height: none;
  padding: 0 14px 0 44px;
}

.fdc-chat-compose-body {
  min-height: 156px;
  max-height: min(420px, 52vh);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.fdc-chat-compose-helper {
  margin: 0;
  color: #7b8798;
  font-size: 0.8rem;
  line-height: 1.5;
}

.fdc-chat-compose-section {
  display: grid;
  gap: 8px;
}

.fdc-chat-compose-section-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #556173;
}

.fdc-chat-compose-user-list {
  display: grid;
  gap: 4px;
}

.fdc-chat-compose-user {
  width: 100%;
  min-width: 0;
  padding: 12px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.fdc-chat-compose-user:hover,
.fdc-chat-compose-user:focus-visible {
  background: rgba(59, 130, 246, 0.08);
  outline: none;
}

.fdc-chat-compose-user-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.fdc-chat-compose-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fdc-chat-compose-user-copy,
.fdc-chat-compose-user-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fdc-chat-compose-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdc-chat-compose-user-handle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7b8798;
  font-size: 0.76rem;
  line-height: 1.45;
}

.fdc-chat-compose-user-tag {
  flex: 0 0 auto;
  color: #7b8798;
  font-size: 0.72rem;
  font-weight: 700;
}

.fdc-chat-compose-empty {
  min-height: 128px;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 6px;
  padding: 4px 12px;
  text-align: center;
}

.fdc-chat-compose-empty-icon {
  color: #7b8798;
  font-size: 24px;
  line-height: 1;
}

.fdc-chat-compose-empty-copy {
  display: grid;
  gap: 6px;
}

.fdc-chat-compose-empty-copy strong {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fdc-color-text-neutral-strong, rgb(75, 83, 96));
}

.fdc-chat-compose-empty-copy span {
  color: #7b8798;
  font-size: 0.85rem;
  line-height: 1.58;
}

.fdc-chat-compose-loading {
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 4px 12px;
}

.fdc-chat-compose-loading .fdc-loading-stack {
  width: 100%;
  min-height: 0;
  gap: 10px;
}

.fdc-chat-compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fdc-chat-thread-skeleton-list {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 4px 0;
}

.fdc-chat-thread-skeleton-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.fdc-chat-thread-skeleton-avatar,
.fdc-chat-thread-skeleton-line,
.fdc-chat-stream-loading-avatar,
.fdc-chat-stream-loading-bubble {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.9) 0%, rgba(241, 245, 249, 1) 50%, rgba(226, 232, 240, 0.9) 100%);
  background-size: 200% 100%;
  animation: fdc-chat-skeleton 1.2s ease-in-out infinite;
}

.fdc-chat-thread-skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.fdc-chat-thread-skeleton-main {
  display: grid;
  gap: 8px;
}

.fdc-chat-thread-skeleton-line {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
}

.fdc-chat-thread-skeleton-line.is-title {
  width: 54%;
  height: 14px;
}

.fdc-chat-stream-loading {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.fdc-chat-stream-loading-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.fdc-chat-stream-loading-row.is-own {
  justify-content: flex-end;
}

.fdc-chat-stream-loading-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.fdc-chat-stream-loading-avatar.is-hidden {
  visibility: hidden;
}

.fdc-chat-stream-loading-bubble {
  display: block;
  width: min(320px, 72%);
  height: 44px;
  border-radius: 18px;
}

.fdc-chat-stream-loading-bubble.is-wide {
  width: min(360px, 78%);
}

.fdc-chat-stream-loading-bubble.is-own {
  width: min(280px, 64%);
}

.fdc-chat-drawer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}

.fdc-chat-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
}

.fdc-chat-drawer-panel {
  position: relative;
  width: min(360px, 100%);
  height: 100%;
  border-left: 1px solid var(--fdc-chat-border-strong);
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  pointer-events: auto;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
}

.fdc-chat-drawer[aria-hidden='false'] {
  pointer-events: auto;
}

.fdc-chat-drawer[aria-hidden='false'] .fdc-chat-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.fdc-chat-drawer[aria-hidden='false'] .fdc-chat-drawer-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.fdc-chat-drawer-head,
.fdc-chat-drawer-footer {
  padding: 18px 20px;
}

.fdc-chat-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: none;
}

.fdc-chat-drawer-head.is-compact {
  align-items: center;
  padding: 14px 20px 10px;
}

.fdc-chat-drawer-footer {
  border-top: 1px solid var(--fdc-chat-border);
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
}

.fdc-chat-drawer-topbar {
  padding: 14px 20px 0;
}

.fdc-chat-drawer-toolbar {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.fdc-chat-drawer-toolbar.is-search-open {
  gap: 10px;
}

.fdc-chat-drawer-toolbar-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-left: 0;
}

.fdc-chat-drawer-inline-search {
  flex: 1 1 auto;
  min-width: 0;
}

.fdc-chat-drawer-toolbar > .fdc-chat-drawer-quick-action:last-child {
  margin-left: auto;
}

.fdc-chat-drawer-title-wrap {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fdc-chat-drawer-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.fdc-chat-drawer-subtitle {
  margin: 0;
  color: #6f7c8f;
  font-size: 0.82rem;
  line-height: 1.5;
}

.fdc-chat-drawer-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #556173;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.fdc-chat-drawer-sections {
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px 20px;
  display: grid;
  align-content: start;
  gap: 20px;
}

.fdc-chat-drawer-section {
  display: grid;
  gap: 12px;
}

.fdc-chat-drawer-accordion {
  border: 1px solid var(--fdc-chat-border);
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.96);
  overflow: hidden;
}

.fdc-chat-drawer-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.fdc-chat-drawer-accordion-summary::-webkit-details-marker {
  display: none;
}

.fdc-chat-drawer-accordion-copy,
.fdc-chat-drawer-accordion-meta {
  display: inline-flex;
  align-items: center;
}

.fdc-chat-drawer-accordion-copy {
  min-width: 0;
  gap: 10px;
}

.fdc-chat-drawer-accordion-meta {
  flex: 0 0 auto;
  gap: 8px;
}

.fdc-chat-drawer-accordion-icon {
  color: #6f7c8f;
  font-size: 18px;
  line-height: 1;
}

.fdc-chat-drawer-accordion-title {
  min-width: 0;
  color: var(--fdc-color-text-main, #0f172a);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.fdc-chat-drawer-accordion-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.96);
  color: #556173;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.fdc-chat-drawer-accordion.has-items .fdc-chat-drawer-accordion-count {
  background: rgba(219, 234, 254, 0.9);
  color: var(--fdc-chat-primary);
}

.fdc-chat-drawer-accordion-caret {
  color: #7b8798;
  font-size: 18px;
  line-height: 1;
  transition: color 0.18s ease;
}

.fdc-chat-drawer-accordion-body {
  padding: 0 14px 14px;
}

.fdc-chat-drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}

.fdc-chat-drawer-section-head h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.fdc-chat-drawer-section-head span {
  color: #7b8798;
  font-size: 0.75rem;
  font-weight: 700;
}

.fdc-chat-drawer-empty {
  margin: 0;
  color: #7b8798;
  font-size: 0.84rem;
  line-height: 1.55;
}

.fdc-chat-drawer-empty.is-compact {
  font-size: 0.78rem;
  line-height: 1.45;
}

.fdc-chat-drawer-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fdc-chat-drawer-media-card {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 6px;
}

.fdc-chat-drawer-media-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: rgba(226, 232, 240, 0.7);
}

.fdc-chat-drawer-media-card span {
  color: #6f7c8f;
  font-size: 0.72rem;
  line-height: 1.4;
}

.fdc-chat-drawer-link-list,
.fdc-chat-drawer-participant-list {
  display: grid;
  gap: 10px;
}

.fdc-chat-drawer-pin-list {
  display: grid;
  gap: 10px;
}

.fdc-chat-drawer-info-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--fdc-chat-border);
}

.fdc-chat-drawer-info-row {
  display: grid;
  grid-template-columns: minmax(84px, 108px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--fdc-chat-border);
}

.fdc-chat-drawer-info-label {
  color: #7b8798;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
}

.fdc-chat-drawer-info-value {
  min-width: 0;
  color: var(--fdc-color-text-main, #0f172a);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.fdc-chat-drawer-link-card,
.fdc-chat-drawer-participant {
  color: inherit;
  text-decoration: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.fdc-chat-drawer-link-card {
  padding: 12px;
  border: 1px solid var(--fdc-chat-border);
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.96);
}

.fdc-chat-drawer-pin-card {
  padding: 12px 14px;
  border: 1px solid var(--fdc-chat-border);
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.96);
  display: grid;
  gap: 4px;
}

.fdc-chat-drawer-pin-card strong {
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.fdc-chat-drawer-pin-card span {
  color: #6f7c8f;
  font-size: 0.74rem;
  line-height: 1.45;
}

.fdc-chat-drawer-link-card .material-symbols-outlined {
  color: #6f7c8f;
  font-size: 18px;
}

.fdc-chat-drawer-link-copy,
.fdc-chat-drawer-participant-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fdc-chat-drawer-link-copy strong,
.fdc-chat-drawer-participant-copy strong {
  font-size: 0.88rem;
  line-height: 1.35;
}

.fdc-chat-drawer-participant-copy .fdc-chat-identity-verified-badge,
.fdc-chat-drawer-participant-copy .fdc-chat-identity-verified-badge .fdc-verified-badge,
.fdc-chat-drawer-participant-copy .fdc-chat-identity-verified-badge .fdc-verified-badge__icon {
  color: var(--fdc-chat-primary);
}

.fdc-chat-drawer-link-copy span,
.fdc-chat-drawer-participant-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6f7c8f;
  font-size: 0.76rem;
}

.fdc-chat-drawer-control-grid {
  display: grid;
  gap: 10px;
}

.fdc-chat-drawer-quick-action {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #556173;
  box-shadow: none;
}

.fdc-chat-drawer-quick-action:hover,
.fdc-chat-drawer-quick-action:focus-visible {
  background: rgba(239, 246, 255, 0.96);
  color: var(--fdc-chat-primary);
}

.fdc-chat-drawer-quick-action.is-active {
  background: rgba(219, 234, 254, 0.72);
  color: var(--fdc-chat-primary);
}

.fdc-chat-drawer-control-card {
  width: 100%;
  border: 1px solid var(--fdc-chat-border);
  background: rgba(248, 250, 255, 0.96);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.fdc-chat-drawer-control-card.is-danger {
  border-color: color-mix(in srgb, var(--fdc-color-danger, #dc2626) 24%, var(--fdc-chat-border-strong));
  background: color-mix(in srgb, var(--fdc-color-danger, #dc2626) 6%, #ffffff);
}

.fdc-chat-drawer-control-card.is-danger .material-symbols-outlined,
.fdc-chat-drawer-control-card.is-danger .fdc-chat-drawer-link-copy strong {
  color: #c81e1e;
}

.fdc-chat-drawer-control-card.is-danger .fdc-chat-drawer-link-copy span {
  color: #b4534b;
}

.fdc-chat-drawer-action-stack {
  display: grid;
  gap: 10px;
}

.fdc-chat-drawer-footer-stack {
  display: grid;
  gap: 10px;
}

.fdc-chat-drawer-footer-report {
  display: flex;
  justify-content: flex-start;
}

.fdc-chat-drawer-footer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fdc-chat-drawer-footer-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.fdc-chat-drawer-footer-button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--fdc-chat-border-strong);
  border-radius: 14px;
  background: #ffffff;
  color: var(--fdc-color-text-main, #0f172a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.fdc-chat-drawer-footer-button.is-compact {
  width: auto;
  min-width: 0;
  padding: 0 12px;
}

.fdc-chat-drawer-footer-button .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.fdc-chat-drawer-footer-button:hover,
.fdc-chat-drawer-footer-button:focus-visible {
  border-color: rgba(59, 130, 246, 0.32);
  background: rgba(239, 246, 255, 0.94);
  color: var(--fdc-chat-primary);
}

.fdc-chat-drawer-footer-button.is-danger {
  border-color: color-mix(in srgb, var(--fdc-color-danger, #dc2626) 28%, var(--fdc-chat-border-strong));
  background: color-mix(in srgb, var(--fdc-color-danger, #dc2626) 6%, #ffffff);
  color: #c81e1e;
}

.fdc-chat-drawer-footer-button.is-danger:hover,
.fdc-chat-drawer-footer-button.is-danger:focus-visible {
  border-color: color-mix(in srgb, var(--fdc-color-danger, #dc2626) 40%, var(--fdc-chat-border-strong));
  background: color-mix(in srgb, var(--fdc-color-danger, #dc2626) 10%, #ffffff);
  color: #b91c1c;
}

.fdc-chat-drawer-action-button {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.fdc-chat-drawer-action-button .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.fdc-chat-drawer-action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  justify-items: center;
}

.fdc-chat-drawer-action-copy strong {
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 800;
}

.fdc-chat-drawer-action-copy span {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #6f7c8f;
}

.fdc-chat-drawer-action-button.fdc-chat-danger-action {
  border-color: color-mix(in srgb, var(--fdc-color-danger, #dc2626) 28%, var(--fdc-chat-border-strong));
  background: color-mix(in srgb, var(--fdc-color-danger, #dc2626) 8%, #ffffff);
  color: #c81e1e;
}

.fdc-chat-drawer-action-button.fdc-chat-danger-action .fdc-chat-drawer-action-copy span {
  color: #b4534b;
}

.fdc-chat-drawer-participant-avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
}

.fdc-chat-drawer-participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes fdc-chat-skeleton {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

:root[data-theme='dark'] .fdc-chat-thread-skeleton-avatar,
:root[data-theme='dark'] .fdc-chat-thread-skeleton-line,
:root[data-theme='dark'] .fdc-chat-stream-loading-avatar,
:root[data-theme='dark'] .fdc-chat-stream-loading-bubble {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 1) 50%, rgba(30, 41, 59, 0.9) 100%);
}

:root[data-theme='dark'] .fdc-chat-drawer-panel {
  border-left-color: var(--fdc-chat-border-strong);
  background: rgba(10, 18, 31, 0.98);
}

:root[data-theme='dark'] .fdc-chat-drawer-head,
:root[data-theme='dark'] .fdc-chat-drawer-footer {
  border-color: var(--fdc-chat-border);
}

:root[data-theme='dark'] .fdc-chat-drawer-footer {
  background: rgba(10, 18, 31, 0.98);
}

:root[data-theme='dark'] .fdc-chat-drawer-subtitle,
:root[data-theme='dark'] .fdc-chat-drawer-empty,
:root[data-theme='dark'] .fdc-chat-drawer-section-head span,
:root[data-theme='dark'] .fdc-chat-drawer-info-label,
:root[data-theme='dark'] .fdc-chat-drawer-link-copy span,
:root[data-theme='dark'] .fdc-chat-drawer-pin-card span,
:root[data-theme='dark'] .fdc-chat-drawer-participant-copy span,
:root[data-theme='dark'] .fdc-chat-drawer-media-card span {
  color: #aabbd2;
}

:root[data-theme='dark'] .fdc-chat-room-banner-pin {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(30, 41, 59, 0.92);
  color: #bfdbfe;
}

:root[data-theme='dark'] .fdc-chat-room-banner-copy span {
  color: #bfdbfe;
}

:root[data-theme='dark'] .fdc-chat-drawer-close {
  color: #c2d1e6;
}

:root[data-theme='dark'] .fdc-chat-drawer-accordion {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme='dark'] .fdc-chat-drawer-accordion-title {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-drawer-accordion-icon,
:root[data-theme='dark'] .fdc-chat-drawer-accordion-caret {
  color: #9db0c8;
}

:root[data-theme='dark'] .fdc-chat-drawer-accordion-count {
  background: rgba(30, 41, 59, 0.94);
  color: #cbd5e1;
}

:root[data-theme='dark'] .fdc-chat-drawer-accordion.has-items .fdc-chat-drawer-accordion-count {
  background: rgba(30, 64, 175, 0.36);
  color: #bfdbfe;
}

:root[data-theme='dark'] .fdc-chat-drawer-link-card {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme='dark'] .fdc-chat-drawer-pin-card {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme='dark'] .fdc-chat-drawer-control-card {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme='dark'] .fdc-chat-drawer-quick-action {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.9);
  color: #dbe7fb;
}

:root[data-theme='dark'] .fdc-chat-drawer-quick-action:hover,
:root[data-theme='dark'] .fdc-chat-drawer-quick-action:focus-visible,
:root[data-theme='dark'] .fdc-chat-drawer-quick-action.is-active {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(30, 64, 175, 0.24);
  color: #dbeafe;
}

:root[data-theme='dark'] .fdc-chat-drawer-control-card.is-danger {
  border-color: color-mix(in srgb, var(--fdc-color-danger, #f87171) 28%, var(--fdc-chat-border-strong));
  background: color-mix(in srgb, var(--fdc-color-danger, #f87171) 12%, rgba(10, 18, 31, 0.98));
}

:root[data-theme='dark'] .fdc-chat-drawer-control-card.is-danger .material-symbols-outlined,
:root[data-theme='dark'] .fdc-chat-drawer-control-card.is-danger .fdc-chat-drawer-link-copy strong {
  color: #fecaca;
}

:root[data-theme='dark'] .fdc-chat-drawer-control-card.is-danger .fdc-chat-drawer-link-copy span {
  color: #fca5a5;
}

:root[data-theme='dark'] .fdc-chat-drawer-action-copy span {
  color: #aabbd2;
}

:root[data-theme='dark'] .fdc-chat-drawer-footer-button {
  border-color: var(--fdc-chat-border);
  background: rgba(15, 23, 42, 0.9);
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-drawer-footer-button:hover,
:root[data-theme='dark'] .fdc-chat-drawer-footer-button:focus-visible {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(30, 64, 175, 0.24);
  color: #dbeafe;
}

:root[data-theme='dark'] .fdc-chat-drawer-footer-button.is-danger {
  border-color: color-mix(in srgb, var(--fdc-color-danger, #f87171) 34%, var(--fdc-chat-border-strong));
  background: color-mix(in srgb, var(--fdc-color-danger, #f87171) 12%, rgba(10, 18, 31, 0.98));
  color: #fecaca;
}

:root[data-theme='dark'] .fdc-chat-drawer-footer-button.is-danger:hover,
:root[data-theme='dark'] .fdc-chat-drawer-footer-button.is-danger:focus-visible {
  border-color: color-mix(in srgb, var(--fdc-color-danger, #f87171) 42%, var(--fdc-chat-border-strong));
  background: color-mix(in srgb, var(--fdc-color-danger, #f87171) 18%, rgba(10, 18, 31, 0.98));
  color: #fee2e2;
}

:root[data-theme='dark'] .fdc-chat-drawer-action-button.fdc-chat-danger-action {
  border-color: color-mix(in srgb, var(--fdc-color-danger, #f87171) 34%, var(--fdc-chat-border-strong));
  background: color-mix(in srgb, var(--fdc-color-danger, #f87171) 16%, rgba(10, 18, 31, 0.98));
  color: #fecaca;
}

:root[data-theme='dark'] .fdc-chat-drawer-action-button.fdc-chat-danger-action .fdc-chat-drawer-action-copy span {
  color: #fca5a5;
}

:root[data-theme='dark'] .fdc-chat-drawer-info-list,
:root[data-theme='dark'] .fdc-chat-drawer-info-row {
  border-color: var(--fdc-chat-border);
}

:root[data-theme='dark'] .fdc-chat-drawer-info-value {
  color: #eff3fb;
}

:root[data-theme='dark'] .fdc-chat-status-meta {
  color: #d3deed;
}

:root[data-theme='dark'] .fdc-chat-status-meta.is-success {
  color: #86efac;
}

body.chat-dm-page .site-footer,
body.trade-chat-list-page .site-footer,
body.trade-chat-room-page .site-footer,
body.shop-inquiry-chat-page .site-footer {
  display: block !important;
}

@media (max-width: 1080px) {
  .fdc-chat-workstation {
    grid-template-columns: minmax(280px, 332px) minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  body.chat-dm-page,
  body.trade-chat-list-page,
  body.trade-chat-room-page,
  body.shop-inquiry-chat-page {
    --fdc-footer-reserved-height-compact: 0px;
  }

  body.chat-dm-page .site-footer,
  body.trade-chat-list-page .site-footer,
  body.trade-chat-room-page .site-footer,
  body.shop-inquiry-chat-page .site-footer {
    display: none !important;
  }

  .fdc-chat-workstation {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fdc-chat-workstation[data-mobile-view='list'] .fdc-chat-stage {
    display: none;
  }

  .fdc-chat-workstation[data-mobile-view='room'] .fdc-chat-sidebar {
    display: none;
  }

  .fdc-chat-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--fdc-chat-border);
  }

  :root[data-theme='dark'] .fdc-chat-sidebar {
    border-bottom-color: var(--fdc-chat-border);
  }

  .fdc-chat-room-head-top,
  .fdc-chat-room-context,
  .fdc-chat-room-trade-summary-main {
    flex-direction: column;
  }

  .fdc-chat-room-head-main {
    grid-template-columns: 1fr;
  }

  .fdc-chat-room-context,
  .fdc-chat-room-trade-summary {
    width: 100%;
    justify-self: stretch;
  }

  .fdc-chat-room-trade-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fdc-chat-room-trade-summary-arrow {
    display: none;
  }

  .fdc-chat-room-trade-summary-main {
    align-items: flex-start;
  }

  .fdc-chat-room-action.is-mobile-only {
    display: inline-flex;
  }

  .fdc-chat-room-searchcount {
    min-width: 0;
    margin-left: auto;
  }

  .fdc-chat-page-main {
    --fdc-chat-page-gap-top: 0px;
    --fdc-chat-page-gap-bottom: 0px;
    padding: 0;
  }

  .fdc-chat-attach-menu {
    position: fixed;
    inset: 0;
    width: auto;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: rgba(15, 23, 42, 0.16);
  }

  .fdc-chat-attach-menu__surface {
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: 20px;
  }

  .fdc-chat-attach-menu__surface::after {
    content: none;
  }
}

@media (max-width: 640px) {
  .fdc-chat-workstation {
    border-radius: 0;
  }

  .fdc-chat-sidebar-head,
  .fdc-chat-room-head,
  .fdc-chat-room-stream,
  .fdc-chat-room-footer {
    padding-inline: 18px;
  }

  .fdc-chat-room-banner {
    margin-inline: 18px;
  }

  .fdc-chat-room-legal {
    margin-inline: 18px;
  }

  .fdc-chat-message-row {
    width: 100%;
    max-width: 100%;
  }

  .fdc-chat-nav,
  .fdc-chat-nav-row {
    width: 100%;
  }

  .fdc-chat-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .fdc-chat-page-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .fdc-chat-nav-row {
    align-items: stretch;
  }

  .fdc-chat-nav-row .fdc-chat-nav {
    flex: 1 1 auto;
  }

  .fdc-chat-compact-action {
    width: 42px;
    min-width: 42px;
    align-self: stretch;
  }

  .fdc-chat-inline-menu {
    margin-left: auto;
  }

  .fdc-chat-room-searchfield {
    flex-basis: 100%;
  }

  .fdc-chat-room-searchcount {
    order: 2;
    text-align: left;
  }

  .fdc-chat-room-actions {
    width: auto;
    justify-content: flex-end;
  }

  .fdc-chat-nav-link {
    flex: 1 1 calc(50% - 4px);
  }

  .fdc-chat-room-searchbar .fdc-chat-room-action.is-icon {
    flex: 0 0 44px;
  }

  .fdc-chat-drawer-panel {
    width: min(100%, 360px);
  }
}

@media (max-width: 540px) {
  .fdc-chat-drawer-panel {
    width: 100%;
  }

  .fdc-chat-drawer-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
