.gsy-zone-shell--lover-room-workspace {
  gap: 12px;
}

.gsy-zone-shell--lover-room-paged {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.gsy-lover-room-page-header {
  padding: 0 2px;
}

.gsy-lover-room-page-header__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  color: #5c454b;
}

.gsy-lover-room-page-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

.gsy-lover-room-page {
  display: grid;
  gap: 12px;
}

.gsy-lover-room-page--chat,
.gsy-lover-room-workbench-page--rp-only {
  flex: 1;
  min-height: 0;
}

.gsy-lover-room-workbench--chat,
.gsy-lover-room-workbench--chat .gsy-lover-room-workbench-page--rp-only,
.gsy-lover-room-workbench--chat .gsy-lover-room-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.gsy-lover-room-workbench--chat .gsy-lover-room-panel--chat-main {
  min-height: calc(100vh - 190px);
}

.gsy-lover-room-workspace-hero__error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 233, 236, 0.92);
  color: #a35365;
  font-size: 13px;
  line-height: 1.7;
}

.gsy-lover-room-chip--pending {
  background: rgba(236, 219, 255, 0.9);
  color: #75569e;
}

.gsy-lover-room-panel--chat-simple {
  padding: 10px 0 0;
  gap: 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.gsy-lover-room-chat-status {
  display: flex;
  justify-content: center;
  padding: 0 14px;
}

.gsy-lover-room-chat-composer--simple {
  position: sticky;
  bottom: 0;
  z-index: 2;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  margin-top: auto;
  background: rgba(246, 239, 242, 0.94);
  border-top: 1px solid rgba(180, 145, 154, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gsy-lover-room-chat-composer__bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.gsy-lover-room-chat-composer__menu-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(176, 140, 150, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #7a5b64;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(124, 89, 102, 0.08);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.gsy-lover-room-chat-composer__menu-button[aria-expanded="true"] {
  transform: rotate(45deg);
  background: rgba(244, 220, 226, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(202, 151, 164, 0.24),
    0 10px 22px rgba(124, 89, 102, 0.12);
}

.gsy-lover-room-composer-menu {
  margin: 0 0 2px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(180, 145, 154, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(124, 89, 102, 0.12);
  animation: gsy-lover-room-composer-menu-in 0.18s ease both;
}

.gsy-lover-room-composer-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gsy-lover-room-composer-menu__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 74px;
  padding: 8px 4px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #6d535b;
}

.gsy-lover-room-composer-menu__item:not(:disabled):hover {
  background: rgba(248, 240, 242, 0.9);
}

.gsy-lover-room-composer-menu__item:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.gsy-lover-room-composer-menu__icon {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(249, 239, 242, 0.98), rgba(255, 255, 255, 0.96));
  color: #8c6872;
  font-size: 19px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(218, 190, 198, 0.34),
    0 8px 18px rgba(124, 89, 102, 0.08);
}

.gsy-lover-room-composer-menu__item--reroll .gsy-lover-room-composer-menu__icon {
  background: linear-gradient(145deg, rgba(244, 220, 226, 0.98), rgba(255, 247, 249, 1));
  color: #9d5c6b;
}

.gsy-lover-room-composer-menu__label {
  font-size: 12px;
  line-height: 1.2;
  color: #7b6268;
  white-space: nowrap;
}

@keyframes gsy-lover-room-composer-menu-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gsy-lover-room-textarea--composer-simple {
  flex: 1 1 auto;
  min-height: 38px;
  max-height: 108px;
  padding: 9px 14px;
  border-radius: 20px;
  resize: none;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.9);
}

.gsy-lover-room-chat-composer__send-button {
  flex: 0 0 auto;
  min-width: 60px;
  height: 38px;
  padding: 0 14px;
  border-radius: 18px;
}

.gsy-lover-room-panel--chat-main,
.gsy-lover-room-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 40px rgba(124, 89, 102, 0.12);
  backdrop-filter: blur(10px);
}

.gsy-lover-room-panel {
  padding: 16px;
}

.gsy-lover-room-panel--chat-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1;
}

.gsy-lover-room-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gsy-lover-room-panel__head--feature-center {
  align-items: flex-start;
}

.gsy-lover-room-panel__title {
  margin: 0;
  font-size: 18px;
  color: #5d464b;
}

.gsy-lover-room-chat-empty {
  min-height: 220px;
  border-radius: 20px;
  background: rgba(248, 240, 242, 0.9);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px 16px;
}

.gsy-lover-room-chat-empty--large {
  min-height: 420px;
}

.gsy-lover-room-chat-empty__title {
  margin: 0;
  font-size: 16px;
  color: #5d464b;
}

.gsy-lover-room-message-list {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 260px;
  max-height: 620px;
  overflow-y: auto;
  padding: 0 12px 4px;
}

.gsy-lover-room-message {
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: rgba(249, 242, 244, 0.96);
  box-shadow: inset 0 0 0 1px rgba(221, 194, 201, 0.42);
}

.gsy-lover-room-message.is-user {
  background: linear-gradient(145deg, rgba(244, 220, 226, 0.96), rgba(252, 240, 243, 0.98));
}

.gsy-lover-room-message.is-system {
  background: rgba(241, 238, 247, 0.96);
  box-shadow: inset 0 0 0 1px rgba(197, 184, 221, 0.4);
}

.gsy-lover-room-message__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gsy-lover-room-message__role {
  font-size: 13px;
  font-weight: 700;
  color: #62494f;
}

.gsy-lover-room-message__time {
  font-size: 11px;
  color: #9e7e87;
}

.gsy-lover-room-message__body {
  display: grid;
  gap: 10px;
}

.gsy-lover-room-message__paragraph {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #614b50;
  word-break: break-word;
}

.gsy-lover-room-chat-composer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.gsy-lover-room-textarea--composer {
  min-height: 116px;
  resize: vertical;
}

.gsy-lover-room-chat-composer__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gsy-lover-room-feature-center__hint {
  margin: 6px 0 0;
  color: #8c6d75;
  font-size: 13px;
  line-height: 1.7;
}

.gsy-lover-room-feature-center__grid {
  display: grid;
  gap: 10px;
}

.gsy-lover-room-feature-tile {
  border: 0;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(249, 239, 242, 0.94));
  color: #60494f;
  box-shadow: inset 0 0 0 1px rgba(218, 190, 198, 0.36);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.gsy-lover-room-feature-tile.is-active,
.gsy-lover-room-feature-tile:hover {
  background: linear-gradient(145deg, rgba(244, 220, 226, 0.98), rgba(255, 247, 249, 1));
  box-shadow:
    inset 0 0 0 1px rgba(202, 151, 164, 0.32),
    0 14px 28px rgba(127, 88, 102, 0.1);
}

.gsy-lover-room-feature-tile__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 216, 223, 0.9);
  color: #936b75;
  font-size: 18px;
  font-weight: 700;
}

.gsy-lover-room-feature-tile__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gsy-lover-room-feature-tile__title {
  font-size: 15px;
  color: #59434a;
}

.gsy-lover-room-feature-tile__text {
  font-size: 12px;
  line-height: 1.6;
  color: #896b73;
}

.gsy-lover-room-side-panel-section {
  display: grid;
  gap: 12px;
}

.gsy-lover-room-textarea--medium {
  min-height: 112px;
}

.gsy-lover-room-textarea--large {
  min-height: 188px;
}

.gsy-lover-room-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gsy-lover-room-worldbook-list {
  display: grid;
  gap: 10px;
}

.gsy-lover-room-worldbook-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(248, 240, 242, 0.96);
  display: grid;
  gap: 8px;
}

.gsy-lover-room-worldbook-card.is-disabled {
  opacity: 0.72;
}

.gsy-lover-room-worldbook-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gsy-lover-room-worldbook-card__title {
  font-size: 14px;
  color: #5f464b;
}

.gsy-lover-room-worldbook-card__status {
  font-size: 11px;
  color: #9e7882;
}

.gsy-lover-room-worldbook-card__status-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.gsy-lover-room-status-toggle {
  border: 0;
  cursor: pointer;
}

.gsy-lover-room-worldbook-card__status-note {
  font-size: 11px;
  color: #9e7882;
}

.gsy-lover-room-worldbook-card__keywords,
.gsy-lover-room-worldbook-card__content {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #82686f;
  word-break: break-word;
}

.gsy-lover-room-worldbook-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gsy-lover-room-regex-rule-list {
  margin-top: 4px;
}

.gsy-lover-room-regex-rule-card__actions {
  justify-content: flex-end;
}

.gsy-lover-room-regex-rule-list .gsy-lover-room-worldbook-card__keywords {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.gsy-lover-room-empty-card--compact {
  padding: 14px 12px;
}

.gsy-lover-room-toggle-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 4px;
  color: #735960;
  font-size: 13px;
}

.gsy-lover-room-toggle-field input {
  width: 16px;
  height: 16px;
}

.gsy-lover-room-bottom-tabs {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0 2px;
  background: linear-gradient(180deg, rgba(245, 231, 236, 0.2), rgba(245, 231, 236, 0.96));
  backdrop-filter: blur(10px);
}

.gsy-lover-room-bottom-tabs__item {
  border: 0;
  border-radius: 16px;
  min-height: 42px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.78);
  color: #86666f;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(126, 87, 104, 0.08);
}

.gsy-lover-room-bottom-tabs__item.is-active {
  background: linear-gradient(145deg, rgba(244, 220, 226, 0.98), rgba(255, 246, 248, 1));
  color: #5f464b;
  box-shadow: inset 0 0 0 1px rgba(205, 156, 169, 0.32);
}

.gsy-chip--danger,
.gsy-primary-action--danger {
  background: rgba(241, 196, 206, 0.9);
  color: #9d4f62;
}

.gsy-lover-room-message-list::-webkit-scrollbar,
.gsy-app--lover-room::-webkit-scrollbar,
.app-view-panel__body--gongshangyuan::-webkit-scrollbar {
  width: 6px;
}

.gsy-lover-room-message-list::-webkit-scrollbar-thumb,
.gsy-app--lover-room::-webkit-scrollbar-thumb,
.app-view-panel__body--gongshangyuan::-webkit-scrollbar-thumb {
  background: rgba(163, 121, 134, 0.28);
  border-radius: 999px;
}

@media (max-width: 767px) {
  .gsy-zone-shell--lover-room-paged {
    padding-bottom: 18px;
  }

  .gsy-lover-room-workbench-header__main-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .gsy-lover-room-workbench-header__pill--meta {
    min-width: 0;
  }

  .gsy-lover-room-workbench-header__pill--action {
    white-space: nowrap;
  }

  .gsy-lover-room-page-header__title {
    font-size: 24px;
  }

  .gsy-lover-room-bottom-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gsy-lover-room-panel--chat-main {
    min-height: 560px;
  }

  .gsy-lover-room-panel--chat-simple {
    min-height: 0;
  }

  .gsy-lover-room-message-list {
    max-height: none;
    min-height: 320px;
  }

  .gsy-lover-room-chat-composer__bar {
    align-items: flex-end;
  }

  .gsy-lover-room-composer-menu__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gsy-lover-room-composer-menu__item {
    min-height: 70px;
  }

  .gsy-lover-room-chat-composer__send-button {
    min-width: 54px;
  }
}

@media (min-width: 768px) {
  .gsy-zone-shell--lover-room-paged {
    padding-bottom: 28px;
  }

  .gsy-lover-room-feature-center__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gsy-lover-room-page {
    max-width: 860px;
  }

  .gsy-lover-room-bottom-tabs {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .gsy-lover-room-panel--chat-main {
    min-height: 720px;
  }

  .gsy-lover-room-panel--chat-simple {
    min-height: 0;
  }
}
