.fengxinlou-chat__main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fengxinlou-chat__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px 8px;
}

.fengxinlou-chat__time-separator {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.fengxinlou-chat__time-separator-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(23, 24, 26, 0.42);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.fengxinlou-message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.fengxinlou-message-row--self {
  justify-content: flex-end;
}

.fengxinlou-message-row--system {
  justify-content: center;
}

.fengxinlou-message-row--system .fengxinlou-message-row__main {
  flex: 1 1 100%;
  max-width: 100%;
  align-items: center;
}

.fengxinlou-message-row--system .fengxinlou-chat__time-separator {
  width: 100%;
}

.fengxinlou-message-row__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 1 calc(100% - 42px);
  max-width: calc(100% - 42px);
  min-width: 0;
}

.fengxinlou-message-row__main--self {
  align-items: flex-end;
}

.fengxinlou-message-row__main > .fengxinlou-message-bubble {
  max-width: 100%;
}

.fengxinlou-message-bubble {
  position: relative;
  max-width: calc(100% - 84px);
  padding: 10px 12px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(20, 22, 26, 0.04);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.fengxinlou-message-bubble--assistant {
  border: 1px solid rgba(20, 22, 26, 0.08);
  background: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 6px;
}

.fengxinlou-message-bubble--image,
.fengxinlou-message-bubble--emoji-image,
.fengxinlou-message-bubble--voice,
.fengxinlou-message-bubble--image .fengxinlou-message-bubble__media,
.fengxinlou-message-bubble--image .fengxinlou-message-bubble__image,
.fengxinlou-message-bubble--emoji-image .fengxinlou-message-bubble__media,
.fengxinlou-message-bubble--emoji-image .fengxinlou-message-bubble__image,
.fengxinlou-message-bubble--voice .fengxinlou-message-bubble__text,
.fengxinlou-message-bubble__text,
.fengxinlou-message-bubble__status {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.fengxinlou-message-bubble--image .fengxinlou-message-bubble__media,
.fengxinlou-message-bubble--image .fengxinlou-message-bubble__image,
.fengxinlou-message-bubble--emoji-image .fengxinlou-message-bubble__media,
.fengxinlou-message-bubble--emoji-image .fengxinlou-message-bubble__image {
  pointer-events: none;
}

.fengxinlou-message-bubble--image {
  --fengxinlou-fake-text-image-url: url("https://i.ibb.co/zhXSGqth/mmexport1773371562236.jpg");
}

.fengxinlou-message-bubble__image[src="https://i.ibb.co/zhXSGqth/mmexport1773371562236.jpg"] {
  content: var(--fengxinlou-fake-text-image-url);
}

.fengxinlou-message-bubble__media--fake-image-revealed {
  position: relative;
  box-sizing: border-box !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: inherit;
}

.fengxinlou-message-bubble__media--fake-image-revealed .fengxinlou-message-bubble__image {
  visibility: hidden;
}

.fengxinlou-message-bubble__fake-image-text {
  position: absolute;
  inset: 0;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 14px;
  border-radius: inherit;
  background: rgba(240, 242, 245, 0.88);
  color: #16181b;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto !important;
  pointer-events: none;
}

.fengxinlou-message-bubble--self .fengxinlou-message-bubble__fake-image-text {
  background: rgba(232, 235, 240, 0.92);
}

.fengxinlou-message-bubble::selection,
.fengxinlou-message-bubble *::selection,
.fengxinlou-message-bubble--image::selection,
.fengxinlou-message-bubble--image *::selection,
.fengxinlou-message-bubble--emoji-image::selection,
.fengxinlou-message-bubble--emoji-image *::selection,
.fengxinlou-message-bubble--voice::selection,
.fengxinlou-message-bubble--voice *::selection {
  background: transparent;
  color: inherit;
}

.fengxinlou-message-bubble--self {
  border: 1px solid rgba(64, 73, 85, 0.08);
  background: linear-gradient(180deg, #dfe3ea, #d4d9e2);
  border-bottom-right-radius: 6px;
}

.fengxinlou-message-bubble--emoji-image {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fengxinlou-message-bubble--assistant.fengxinlou-message-bubble--emoji-image,
.fengxinlou-message-bubble--self.fengxinlou-message-bubble--emoji-image {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fengxinlou-message-bubble--emoji-image .fengxinlou-message-bubble__media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fengxinlou-message-bubble--emoji-image .fengxinlou-message-bubble__image {
  width: auto;
  max-width: min(156px, 42vw);
  max-height: 156px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.fengxinlou-message-bubble__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: #16181b;
}

.fengxinlou-message-bubble__status {
  display: inline-flex;
  margin-top: 6px;
  font-size: 10px;
  color: rgba(23, 24, 26, 0.38);
}

.fengxinlou-message-row__time {
  margin: 4px 2px 0;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(23, 24, 26, 0.38);
}

.fengxinlou-message-row__time--self {
  text-align: right;
}

.fengxinlou-multi-select-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(22, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.fengxinlou-multi-select-bar__count {
  flex: 1;
  font-size: 13px;
  color: rgba(23, 24, 26, 0.72);
  font-weight: 500;
}

.fengxinlou-multi-select-bar__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(21, 24, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(23, 24, 26, 0.68);
  font-size: 12px;
  cursor: pointer;
}

.fengxinlou-multi-select-bar__btn--danger {
  border-color: rgba(200, 40, 40, 0.2);
  background: rgba(255, 240, 240, 0.72);
  color: #b33;
}

.fengxinlou-message-bubble--multi-selected::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #4a7ec4;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.fengxinlou-chat__bottom {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(22, 24, 28, 0.06);
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.fengxinlou-message-bubble--quoted {
  padding-top: 7px;
}

.fengxinlou-message-bubble__quote {
  display: block;
  margin-bottom: 6px;
  padding: 7px 10px;
  border-left: 2px solid rgba(70, 83, 101, 0.24);
  border-radius: 12px;
  background: rgba(28, 33, 40, 0.05);
}

.fengxinlou-message-bubble__quote-text {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(23, 24, 26, 0.7);
  word-break: break-word;
}

.fengxinlou-composer__quote {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 24, 26, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.fengxinlou-composer__quote-main {
  min-width: 0;
  flex: 1;
}

.fengxinlou-composer__quote-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(23, 24, 26, 0.7);
  word-break: break-word;
}

.fengxinlou-composer__quote-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 24, 26, 0.06);
  font-size: 16px;
  line-height: 1;
  color: rgba(23, 24, 26, 0.72);
  cursor: pointer;
}

.fengxinlou-composer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fengxinlou-composer__icon-button,
.fengxinlou-composer__emoji-button,
.fengxinlou-composer__send-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(21, 24, 28, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #17191d;
  outline: none;
  cursor: pointer;
}

.fengxinlou-composer__icon-button,
.fengxinlou-composer__emoji-button {
  width: 36px;
  font-size: 20px;
  line-height: 1;
}

.fengxinlou-composer__send-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 13px;
}

.fengxinlou-composer__send-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fengxinlou-composer__input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(21, 24, 28, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.fengxinlou-composer__input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #17181a;
}

.fengxinlou-composer__input::placeholder {
  color: rgba(23, 24, 26, 0.34);
}

.fengxinlou-composer__input-wrap:focus-within {
  border-color: rgba(75, 88, 110, 0.18);
  box-shadow: 0 0 0 3px rgba(160, 171, 189, 0.12);
}

.fengxinlou-composer-panel {
  position: relative;
  z-index: 9;
  margin-top: 10px;
  pointer-events: auto;
}

.fengxinlou-composer-menu,
.fengxinlou-emoji-panel {
  position: relative;
}

.fengxinlou-emoji-panel__toolbar {
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 4px;
}

.fengxinlou-emoji-panel__tab--plus {
  color: rgba(22, 24, 28, 0.55);
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
}

.fengxinlou-emoji-panel__tab--plus:hover {
  color: rgba(22, 24, 28, 0.8);
}

.fengxinlou-emoji-panel__tab--settings {
  color: rgba(22, 24, 28, 0.45);
  font-size: 12px;
}

.fengxinlou-emoji-panel__tab--settings:hover {
  color: rgba(22, 24, 28, 0.7);
}

.fengxinlou-composer-menu,
.fengxinlou-emoji-panel {
  z-index: 1;
  box-sizing: border-box;
  height: 214px;
  padding: 14px 12px 10px;
  border: 1px solid rgba(21, 24, 28, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  pointer-events: auto;
}

.fengxinlou-emoji-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fengxinlou-composer-menu__viewport {
  overflow: hidden;
  min-height: 132px;
  touch-action: pan-x;
}

.fengxinlou-composer-menu__track {
  display: flex;
  width: 100%;
  transition: transform 0.22s ease;
  will-change: transform;
}

.fengxinlou-composer-menu__page {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 132px;
}

.fengxinlou-composer-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-content: start;
  min-height: 132px;
  gap: 10px;
}

.fengxinlou-composer-menu__item {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 6px 4px 4px;
  border: 0;
  background: transparent;
  color: rgba(23, 24, 26, 0.56);
  cursor: pointer;
  pointer-events: auto;
}

.fengxinlou-composer-menu__item--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.fengxinlou-composer-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(22, 24, 28, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 250, 251, 0.92), rgba(237, 239, 242, 0.96));
  color: #50565f;
  font-size: 18px;
}

.fengxinlou-composer-menu__label {
  font-size: 12px;
  color: rgba(23, 24, 26, 0.52);
}

.fengxinlou-composer-menu__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.fengxinlou-composer-menu__nav {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 24, 26, 0.08);
  color: rgba(23, 24, 26, 0.72);
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
}

.fengxinlou-composer-menu__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.fengxinlou-composer-menu__dot {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 24, 26, 0.18);
  cursor: pointer;
  pointer-events: auto;
}

.fengxinlou-composer-menu__dot.is-active {
  width: 16px;
  background: rgba(23, 24, 26, 0.56);
}

.fengxinlou-emoji-panel__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(22, 24, 28, 0.06);
}

.fengxinlou-emoji-panel__add-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(22, 24, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: #454b54;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.fengxinlou-emoji-panel__tabs,
.fengxinlou-emoji-panel__tabs-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fengxinlou-emoji-panel__tabs::-webkit-scrollbar,
.fengxinlou-emoji-panel__tabs-scroll::-webkit-scrollbar {
  display: none;
}

.fengxinlou-emoji-panel__tab {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(23, 24, 26, 0.52);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.fengxinlou-emoji-panel__tab.is-active {
  background: rgba(22, 24, 28, 0.08);
  color: #17191d;
}

.fengxinlou-emoji-panel__add-cat-btn {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px dashed rgba(22, 24, 28, 0.2);
  border-radius: 6px;
  background: transparent;
  color: rgba(23, 24, 26, 0.4);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.fengxinlou-emoji-panel__settings-btn {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(23, 24, 26, 0.4);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.fengxinlou-emoji-panel__fixed-actions,
.fengxinlou-emoji-panel__toolbar-right {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.fengxinlou-emoji-panel__text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(22, 24, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(23, 24, 26, 0.58);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.fengxinlou-emoji-panel__text-btn.is-active {
  border-color: rgba(38, 88, 160, 0.2);
  background: rgba(82, 126, 190, 0.16);
  color: #243c62;
}

.fengxinlou-emoji-panel__multi-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -2px 0 10px;
  padding: 7px;
  border: 1px solid rgba(22, 24, 28, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  overflow-x: auto;
  scrollbar-width: none;
}

.fengxinlou-emoji-panel__multi-bar::-webkit-scrollbar {
  display: none;
}

.fengxinlou-emoji-panel__multi-count {
  flex: 0 0 auto;
  font-size: 11px;
  color: rgba(23, 24, 26, 0.5);
  white-space: nowrap;
}

.fengxinlou-emoji-panel__multi-move-select {
  flex: 0 0 auto;
  min-width: 86px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid rgba(22, 24, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(23, 24, 26, 0.62);
  font-size: 11px;
}

.fengxinlou-emoji-panel__multi-btn,
.fengxinlou-emoji-panel__multi-action,
.fengxinlou-emoji-panel__multi-cancel {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(22, 24, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(23, 24, 26, 0.62);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.fengxinlou-emoji-panel__multi-btn--danger,
.fengxinlou-emoji-panel__multi-action--danger {
  border-color: rgba(200, 40, 40, 0.18);
  background: rgba(255, 240, 240, 0.62);
  color: #b33;
}

.fengxinlou-emoji-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.fengxinlou-emoji-panel__sticker {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 6px 4px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.fengxinlou-emoji-panel__sticker:hover {
  background: rgba(255, 255, 255, 0.72);
}

.fengxinlou-emoji-panel__sticker.is-selectable {
  padding-top: 18px;
}

.fengxinlou-emoji-panel__sticker.is-selected {
  border-color: rgba(38, 88, 160, 0.28);
  background: rgba(82, 126, 190, 0.14);
}

.fengxinlou-emoji-panel__check,
.fengxinlou-emoji-panel__sticker-check {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(38, 88, 160, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #243c62;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.fengxinlou-emoji-panel__sticker-img,
.fengxinlou-emoji-panel__sticker-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
}

.fengxinlou-emoji-panel__sticker-name,
.fengxinlou-emoji-panel__label {
  font-size: 10px;
  line-height: 1.2;
  color: rgba(23, 24, 26, 0.52);
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.fengxinlou-emoji-panel__empty {
  grid-column: 1 / -1;
  padding: 20px 0;
  text-align: center;
  color: rgba(23, 24, 26, 0.36);
  font-size: 12px;
}

.fengxinlou-emoji-settings__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(22, 24, 28, 0.05);
}

.fengxinlou-emoji-settings__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(22, 24, 28, 0.06);
}

.fengxinlou-emoji-settings__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fengxinlou-emoji-settings__name {
  font-size: 12px;
  color: #17191d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fengxinlou-emoji-settings__cat {
  font-size: 10px;
  color: rgba(23, 24, 26, 0.42);
}

.fengxinlou-emoji-settings__move {
  padding: 3px 6px;
  border: 1px solid rgba(22, 24, 28, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  color: rgba(23, 24, 26, 0.62);
  cursor: pointer;
}

.fengxinlou-emoji-settings__delete,
.fengxinlou-emoji-settings__cat-delete {
  padding: 3px 8px;
  border: 1px solid rgba(200, 40, 40, 0.2);
  border-radius: 6px;
  background: rgba(255, 240, 240, 0.6);
  color: #b33;
  font-size: 11px;
  cursor: pointer;
}

.fengxinlou-emoji-settings__cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(22, 24, 28, 0.04);
}

.fengxinlou-emoji-settings__cat-name {
  font-size: 12px;
  color: #17191d;
}

.fengxinlou-emoji-settings__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.fengxinlou-emoji-settings__cat-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.fengxinlou-emoji-settings__cat-rename {
  padding: 3px 8px;
  border: 1px solid rgba(22, 24, 28, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: rgba(23, 24, 26, 0.62);
  font-size: 11px;
  cursor: pointer;
}

.fengxinlou-emoji-settings__empty {
  padding: 16px 0;
  text-align: center;
  color: rgba(23, 24, 26, 0.36);
  font-size: 12px;
}

.fengxinlou-composer-emoji-match {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-height: 74px;
  margin: 0 0 8px;
  padding: 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fengxinlou-composer-emoji-match::-webkit-scrollbar {
  display: none;
}

.fengxinlou-composer-emoji-match.is-empty {
  display: none;
}

.fengxinlou-composer-emoji-match__item {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 64px;
  min-height: 70px;
  padding: 6px 6px 5px;
  border: 1px solid rgba(22, 24, 28, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(20, 22, 26, 0.06);
  color: rgba(23, 24, 26, 0.72);
  cursor: pointer;
}

.fengxinlou-composer-emoji-match__image {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(246, 247, 249, 0.76);
}

.fengxinlou-composer-emoji-match__symbol {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(246, 247, 249, 0.76);
  font-size: 24px;
  line-height: 1;
}

.fengxinlou-composer-emoji-match__name {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
}

.fengxinlou-message-bubble__emoji-image {
  width: 72px;
  max-width: min(180px, 46vw);
  max-height: 120px;
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width: 420px) {
  .fengxinlou-message-bubble {
    max-width: calc(100% - 72px);
  }

  .fengxinlou-chat__messages {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fengxinlou-chat__bottom {
    padding-left: 8px;
    padding-right: 8px;
  }

  .fengxinlou-composer {
    gap: 6px;
  }

  .fengxinlou-composer-emoji-match {
    margin-right: 0;
    margin-left: 0;
  }

  .fengxinlou-composer-menu__grid,
  .fengxinlou-emoji-panel__grid {
    gap: 8px;
  }

  .fengxinlou-composer-menu__icon {
    width: 46px;
    height: 46px;
  }

  .fengxinlou-emoji-panel__sticker-img,
  .fengxinlou-emoji-panel__sticker-image {
    width: 42px;
    height: 42px;
  }
}
