.gsy-app--lover-room {
  --gsy-lr-bg: #f7f8fa;
  --gsy-lr-surface: #ffffff;
  --gsy-lr-surface-soft: #fbfcfd;
  --gsy-lr-surface-muted: #f1f3f5;
  --gsy-lr-line: rgba(15, 23, 42, 0.08);
  --gsy-lr-line-strong: rgba(15, 23, 42, 0.13);
  --gsy-lr-text: #111827;
  --gsy-lr-text-soft: #374151;
  --gsy-lr-muted: #6b7280;
  --gsy-lr-faint: #9ca3af;
  --gsy-lr-accent: #5f7488;
  --gsy-lr-accent-soft: #eef3f7;
  --gsy-lr-accent-line: rgba(95, 116, 136, 0.22);
  --gsy-lr-danger: #343a40;
  --gsy-lr-danger-soft: #f1f2f3;
  --gsy-lr-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
  --gsy-lr-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.045);
  --gsy-lr-shadow-tiny: 0 6px 18px rgba(15, 23, 42, 0.035);
  --gsy-lr-radius-xl: 30px;
  --gsy-lr-radius-lg: 24px;
  --gsy-lr-radius-md: 18px;
  --gsy-lr-radius-sm: 14px;
  min-height: 100%;
  color: var(--gsy-lr-text);
  isolation: isolate;
  color-scheme: light;
}

.gsy-app--lover-room.gsy-app--zone {
  padding: 0;
  background: var(--gsy-lr-bg);
}

.gsy-app--lover-room *,
.gsy-app--lover-room *::before,
.gsy-app--lover-room *::after {
  box-sizing: border-box;
}

.gsy-zone-shell--lover-room,
.gsy-zone-shell--lover-room-workspace,
.gsy-zone-shell--lover-room-tavern {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: 18px;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--gsy-lr-bg);
}

.gsy-zone-shell--lover-room::before {
  display: none;
}

.gsy-zone-shell--lover-room::after {
  display: none;
}

.gsy-app--lover-room button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.gsy-app--lover-room button:active {
  transform: translateY(1px) scale(0.995);
}

.gsy-app--lover-room button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.gsy-app--lover-room button:focus-visible,
.gsy-app--lover-room input:focus-visible,
.gsy-app--lover-room textarea:focus-visible,
.gsy-app--lover-room select:focus-visible {
  outline: 2px solid rgba(95, 116, 136, 0.42);
  outline-offset: 3px;
}

.gsy-app--lover-room .gsy-primary-action,
.gsy-app--lover-room .gsy-chip,
.gsy-lover-room-chip,
.gsy-lover-room-topbar__back,
.gsy-lover-room-topbar__link,
.gsy-lover-room-workbench-header__pill--action,
.gsy-lover-room-session-card__delete,
.gsy-lover-room-top-tabs__item,
.gsy-lover-room-branch-pill,
.gsy-lover-room-member-pill {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.gsy-app--lover-room .gsy-primary-action {
  min-height: 46px;
  border: 1px solid #111827;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.02em;
  background: #111827;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.gsy-app--lover-room .gsy-primary-action--soft {
  color: #111827;
  border-color: var(--gsy-lr-line-strong);
  background: #ffffff;
  box-shadow: var(--gsy-lr-shadow-tiny);
}

.gsy-app--lover-room .gsy-primary-action--danger,
.gsy-app--lover-room .gsy-chip--danger {
  color: #ffffff;
  border-color: #2f3338;
  background: #2f3338;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.1);
}

.gsy-app--lover-room .gsy-chip,
.gsy-lover-room-chip {
  min-height: 34px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 999px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  color: var(--gsy-lr-text-soft);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.gsy-app--lover-room .gsy-chip:hover,
.gsy-app--lover-room .gsy-primary-action:hover,
.gsy-lover-room-workbench-header__pill--action:hover,
.gsy-lover-room-top-tabs__item:hover,
.gsy-lover-room-branch-pill:hover {
  transform: translateY(-1px);
  border-color: var(--gsy-lr-line-strong);
  box-shadow: var(--gsy-lr-shadow-tiny);
}

.gsy-app--lover-room .gsy-inline-input,
.gsy-app--lover-room .gsy-textarea,
.gsy-app--lover-room .gsy-select-field select {
  width: 100%;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 18px;
  color: var(--gsy-lr-text);
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}

.gsy-app--lover-room .gsy-inline-input,
.gsy-app--lover-room .gsy-select-field select {
  min-height: 48px;
  padding: 0 15px;
  font-size: 14px;
}

.gsy-app--lover-room .gsy-textarea {
  padding: 14px 15px;
  font-size: 14px;
  line-height: 1.78;
}

.gsy-app--lover-room .gsy-inline-input::placeholder,
.gsy-app--lover-room .gsy-textarea::placeholder {
  color: var(--gsy-lr-faint);
}

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

.gsy-lover-room-topbar__back,
.gsy-lover-room-topbar__link {
  min-height: 44px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 999px;
  padding: 0 17px;
  color: var(--gsy-lr-text);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--gsy-lr-shadow-tiny);
  backdrop-filter: blur(18px);
}

.gsy-lover-room-topbar__back::before {
  content: "‹ ";
  font-size: 18px;
  line-height: 0;
}

.gsy-lover-room-topbar__badge {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gsy-lr-text);
  font-size: 14px;
  font-weight: 860;
  background: #ffffff;
  box-shadow: var(--gsy-lr-shadow-tiny);
}

.gsy-lover-room-hero-card,
.gsy-lover-room-form-card,
.gsy-lover-room-empty-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gsy-lr-line);
  border-radius: var(--gsy-lr-radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--gsy-lr-shadow);
  backdrop-filter: blur(18px);
}

.gsy-lover-room-hero-card::before,
.gsy-lover-room-form-card::before {
  display: none;
}

.gsy-lover-room-hero-card {
  min-height: 230px;
  padding: 30px 24px;
  display: grid;
  align-content: end;
}

.gsy-lover-room-hero-card__eyebrow,
.gsy-lover-room-form-card__eyebrow,
.gsy-lover-room-workspace-hero__eyebrow {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 0 12px;
  border: 1px solid var(--gsy-lr-accent-line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--gsy-lr-accent);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.18em;
  background: var(--gsy-lr-accent-soft);
}

.gsy-lover-room-hero-card__title,
.gsy-lover-room-form-card__title,
.gsy-lover-room-workspace-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--gsy-lr-text);
  font-size: clamp(27px, 7vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.gsy-lover-room-hero-card__text,
.gsy-lover-room-form-card__text,
.gsy-lover-room-workspace-hero__text,
.gsy-lover-room-tip-box__text,
.gsy-lover-room-feature-card__text,
.gsy-lover-room-empty-card__text {
  position: relative;
  z-index: 1;
  margin: 13px 0 0;
  color: var(--gsy-lr-muted);
  font-size: 13px;
  line-height: 1.9;
}

.gsy-lover-room-form-card {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.gsy-lover-room-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.gsy-lover-room-field__label {
  color: var(--gsy-lr-muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.gsy-lover-room-field__value {
  min-height: 48px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 18px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  color: var(--gsy-lr-text-soft);
  font-size: 14px;
  background: #ffffff;
}

.gsy-lover-room-field__select {
  width: 100%;
}

.gsy-lover-room-empty-hint {
  margin: 0;
  border: 1px dashed var(--gsy-lr-line-strong);
  border-radius: 18px;
  padding: 14px 15px;
  color: var(--gsy-lr-muted);
  font-size: 13px;
  line-height: 1.75;
  background: var(--gsy-lr-surface-soft);
}

.gsy-lover-room-workbench,
.gsy-lover-room-workbench--single-column,
.gsy-lover-room-workbench-page,
.gsy-lover-room-workbench-page--chat {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
}

.gsy-lover-room-workbench--single-column {
  grid-template-columns: minmax(0, 1fr);
}

.gsy-lover-room-workbench-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  gap: 12px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 30px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.065);
  backdrop-filter: blur(22px);
}

.gsy-lover-room-workbench-header__main-row {
  display: grid;
  grid-template-columns: minmax(62px, auto) minmax(58px, auto) minmax(0, 1fr) minmax(58px, auto);
  gap: 8px;
  align-items: stretch;
}

.gsy-lover-room-workbench-header__pill {
  min-width: 0;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 21px;
  color: var(--gsy-lr-text);
  background: rgba(255, 255, 255, 0.88);
}

.gsy-lover-room-workbench-header__pill--action {
  min-height: 50px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-align: center;
}

.gsy-lover-room-workbench-header__pill--meta {
  min-height: 50px;
  padding: 9px 14px;
  display: grid;
  gap: 3px;
  align-content: center;
  background: var(--gsy-lr-surface-soft);
}

.gsy-lover-room-workbench-header__title {
  overflow: hidden;
  color: var(--gsy-lr-text);
  font-size: 15px;
  font-weight: 860;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsy-lover-room-workbench-header__subtitle {
  overflow: hidden;
  color: var(--gsy-lr-muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsy-lover-room-quick-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

.gsy-lover-room-quick-nav::-webkit-scrollbar {
  display: none;
}

.gsy-lover-room-quick-nav__item {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--gsy-lr-muted);
  font-size: 12px;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.76);
}

.gsy-lover-room-quick-nav__item.is-active {
  color: #ffffff;
  border-color: #111827;
  background: #111827;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.gsy-lover-room-top-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 0;
}

.gsy-lover-room-top-tabs::-webkit-scrollbar {
  display: none;
}

.gsy-lover-room-top-tabs__item {
  position: relative;
  width: auto;
  height: 52px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gsy-lr-muted);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.gsy-lover-room-top-tabs__item::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  max-width: 100%;
  color: currentColor;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
  opacity: 0.74;
  white-space: nowrap;
}

.gsy-lover-room-top-tabs__icon {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1;
}

.gsy-lover-room-top-tabs__item.is-active {
  color: var(--gsy-lr-text);
  border-color: var(--gsy-lr-line-strong);
  background: #ffffff;
  box-shadow: var(--gsy-lr-shadow-tiny);
}

.gsy-lover-room-top-tabs__item.is-active::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gsy-lr-accent);
}

.gsy-lover-room-panel,
.gsy-lover-room-panel--chat-main,
.gsy-lover-room-panel--summary,
.gsy-lover-room-empty-card,
.gsy-lover-room-chat-empty {
  border: 1px solid var(--gsy-lr-line);
  border-radius: var(--gsy-lr-radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--gsy-lr-shadow-soft);
  backdrop-filter: blur(18px);
}

.gsy-lover-room-panel,
.gsy-lover-room-panel--chat-main {
  padding: 18px;
}

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

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

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

.gsy-lover-room-panel__head--stage {
  align-items: flex-start;
  margin-bottom: 0;
}

.gsy-lover-room-panel__title,
.gsy-lover-room-tip-box__title,
.gsy-lover-room-empty-card__title,
.gsy-lover-room-chat-empty__title {
  margin: 0;
  color: var(--gsy-lr-text);
  font-size: 17px;
  font-weight: 860;
  letter-spacing: -0.03em;
}

.gsy-lover-room-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gsy-lover-room-summary-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 20px;
  padding: 13px;
  display: grid;
  gap: 6px;
  background: var(--gsy-lr-surface-soft);
}

.gsy-lover-room-summary-card__label {
  overflow: hidden;
  color: var(--gsy-lr-faint);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsy-lover-room-summary-card__value {
  overflow: hidden;
  color: var(--gsy-lr-text);
  font-size: 13px;
  font-weight: 840;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.gsy-lover-room-character-card,
.gsy-lover-room-session-card,
.gsy-lover-room-worldbook-card,
.gsy-lover-room-mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
}

.gsy-lover-room-character-card::before,
.gsy-lover-room-session-card::before,
.gsy-lover-room-worldbook-card::before,
.gsy-lover-room-mini-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--gsy-lr-accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gsy-lover-room-character-card.is-active,
.gsy-lover-room-session-card.is-active,
.gsy-lover-room-mini-card.is-active {
  border-color: var(--gsy-lr-accent-line);
  background: var(--gsy-lr-accent-soft);
  box-shadow: var(--gsy-lr-shadow-tiny);
}

.gsy-lover-room-character-card.is-active::before,
.gsy-lover-room-session-card.is-active::before,
.gsy-lover-room-mini-card.is-active::before {
  opacity: 1;
}

.gsy-lover-room-character-card,
.gsy-lover-room-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  padding: 10px;
}

.gsy-lover-room-worldbook-card,
.gsy-lover-room-mini-card {
  padding: 14px;
  display: grid;
  gap: 9px;
}

.gsy-lover-room-character-card__main,
.gsy-lover-room-session-card__main {
  min-width: 0;
  border: 0;
  padding: 3px 5px 3px 10px;
  display: grid;
  gap: 5px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.gsy-lover-room-character-card__title,
.gsy-lover-room-session-card__title,
.gsy-lover-room-mini-card__title,
.gsy-lover-room-worldbook-card__title {
  color: var(--gsy-lr-text);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.45;
}

.gsy-lover-room-character-card__meta,
.gsy-lover-room-character-card__preview,
.gsy-lover-room-mini-card__meta,
.gsy-lover-room-worldbook-card__keywords,
.gsy-lover-room-worldbook-card__content,
.gsy-lover-room-worldbook-card__memo,
.gsy-lover-room-session-card__time,
.gsy-lover-room-session-card__preview,
.gsy-lover-room-session-card__meta,
.gsy-lover-room-stage__subtitle,
.gsy-lover-room-runtime-error {
  color: var(--gsy-lr-muted);
  font-size: 12px;
  line-height: 1.72;
  word-break: break-word;
}

.gsy-lover-room-character-card__preview,
.gsy-lover-room-session-card__preview,
.gsy-lover-room-mini-card__meta,
.gsy-lover-room-worldbook-card__content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gsy-lover-room-session-card__delete {
  align-self: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 14px;
  color: var(--gsy-lr-muted);
  font-size: 12px;
  font-weight: 820;
  background: var(--gsy-lr-surface-muted);
}

.gsy-lover-room-worldbook-card.is-disabled {
  opacity: 0.58;
  filter: grayscale(1);
}

.gsy-lover-room-worldbook-card__head,
.gsy-lover-room-mini-card__actions,
.gsy-lover-room-worldbook-card__actions,
.gsy-lover-room-inline-actions,
.gsy-lover-room-message__actions,
.gsy-lover-room-chat-composer__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gsy-lover-room-worldbook-card__head {
  justify-content: space-between;
}

.gsy-lover-room-worldbook-card__status {
  border: 1px solid var(--gsy-lr-accent-line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--gsy-lr-accent);
  font-size: 11px;
  font-weight: 820;
  background: var(--gsy-lr-accent-soft);
}

.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 {
  appearance: none;
  min-height: 0;
  cursor: pointer;
  line-height: 1.2;
}

.gsy-lover-room-status-toggle:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.gsy-lover-room-worldbook-card__status-note {
  color: var(--gsy-lr-muted);
  font-size: 11px;
  font-weight: 760;
}

.gsy-lover-room-mini-card__content {
  display: grid;
  gap: 4px;
}

.gsy-lover-room-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gsy-lover-room-stage__title-group {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.gsy-lover-room-stage__subtitle {
  margin: 0;
  max-width: 68ch;
}

.gsy-lover-room-chip--pending {
  color: var(--gsy-lr-accent);
  border-color: var(--gsy-lr-accent-line);
  background: var(--gsy-lr-accent-soft);
}

.gsy-lover-room-group-bar,
.gsy-lover-room-branch-bar {
  border: 1px solid var(--gsy-lr-line);
  border-radius: 20px;
  background: var(--gsy-lr-surface-soft);
  box-shadow: none;
}

.gsy-lover-room-group-bar {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.gsy-lover-room-group-bar__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  color: var(--gsy-lr-muted);
  font-size: 12px;
}

.gsy-lover-room-group-bar__meta strong {
  color: var(--gsy-lr-text);
  font-size: 13px;
  font-weight: 820;
}

.gsy-lover-room-group-bar__members,
.gsy-lover-room-branch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gsy-lover-room-branch-bar {
  padding: 10px;
}

.gsy-lover-room-member-pill,
.gsy-lover-room-branch-pill {
  border: 1px solid var(--gsy-lr-line);
  border-radius: 999px;
  color: var(--gsy-lr-text-soft);
  font-size: 12px;
  font-weight: 740;
  background: #ffffff;
}

.gsy-lover-room-member-pill {
  padding: 6px 11px;
}

.gsy-lover-room-branch-pill {
  padding: 8px 12px;
}

.gsy-lover-room-branch-pill.is-active {
  color: #ffffff;
  border-color: #111827;
  background: #111827;
}

.gsy-lover-room-runtime-error {
  margin: 0;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 16px;
  padding: 11px 12px;
  color: #2f3338;
  background: var(--gsy-lr-danger-soft);
}

.gsy-lover-room-chat-empty {
  min-height: 240px;
  padding: 22px 16px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.gsy-lover-room-chat-empty__text {
  max-width: 34em;
  margin: 0;
  color: var(--gsy-lr-muted);
  font-size: 13px;
  line-height: 1.75;
}

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

.gsy-lover-room-message-list {
  display: grid;
  gap: 14px;
  min-height: 160px;
  overflow: visible;
  padding: 2px 0;
}

.gsy-lover-room-message {
  position: relative;
  width: min(100%, 90%);
  border: 1px solid var(--gsy-lr-line);
  border-radius: 22px;
  padding: 14px 15px 13px;
  justify-self: start;
  background: #ffffff;
  box-shadow: var(--gsy-lr-shadow-tiny);
}

.gsy-lover-room-message::before {
  display: none;
}

.gsy-lover-room-message.is-user {
  justify-self: end;
  border-color: var(--gsy-lr-accent-line);
  background: var(--gsy-lr-accent-soft);
}

.gsy-lover-room-message.is-system {
  width: 100%;
  justify-self: center;
  border-radius: 18px;
  border-style: dashed;
  border-color: var(--gsy-lr-line-strong);
  background: var(--gsy-lr-surface-soft);
  box-shadow: none;
}

.gsy-lover-room-message__head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.gsy-lover-room-message__avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 880;
  background: #111827;
}

.gsy-lover-room-message.is-user .gsy-lover-room-message__avatar {
  color: var(--gsy-lr-text);
  background: #ffffff;
}

.gsy-lover-room-message.is-system .gsy-lover-room-message__avatar {
  color: var(--gsy-lr-muted);
  background: var(--gsy-lr-surface-muted);
}

.gsy-lover-room-message__identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.gsy-lover-room-message__role {
  overflow: hidden;
  color: var(--gsy-lr-text);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsy-lover-room-message__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gsy-lr-faint);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.gsy-lover-room-message__time,
.gsy-lover-room-message__token {
  overflow: hidden;
  color: var(--gsy-lr-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsy-lover-room-message__token {
  flex: 0 0 auto;
}

.gsy-lover-room-message__head-edit {
  justify-self: end;
}

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

.gsy-lover-room-message__paragraph {
  margin: 0;
  color: var(--gsy-lr-text-soft);
  font-size: 14px;
  line-height: 1.92;
  word-break: break-word;
}

.gsy-lover-room-message__actions {
  margin-top: 12px;
  opacity: 0.9;
}

.gsy-lover-room-chat-shortcuts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 2px;
  scrollbar-width: none;
}

.gsy-lover-room-chat-shortcuts::-webkit-scrollbar {
  display: none;
}

.gsy-lover-room-chat-composer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  margin: 6px -4px -4px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 24px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(20px);
}

.gsy-lover-room-textarea {
  resize: vertical;
}

.gsy-lover-room-textarea--composer {
  min-height: 104px;
  border-radius: 20px;
}

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

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

.gsy-lover-room-chat-composer__actions {
  justify-content: space-between;
}

.gsy-lover-room-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--gsy-lr-line);
}

.gsy-lover-room-triple-grid,
.gsy-lover-room-double-grid {
  display: grid;
  gap: 10px;
}

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

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

.gsy-lover-room-toggle-field,
.gsy-lover-room-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--gsy-lr-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.gsy-lover-room-toggle-field {
  border: 1px solid var(--gsy-lr-line);
  border-radius: 18px;
  padding: 0 12px;
  background: var(--gsy-lr-surface-soft);
}

.gsy-lover-room-toggle-field input,
.gsy-lover-room-checkbox-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--gsy-lr-accent);
}

.gsy-lover-room-checkbox-list {
  display: grid;
  gap: 8px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 20px;
  padding: 8px 10px;
  background: var(--gsy-lr-surface-soft);
}

.gsy-lover-room-metric-list {
  display: grid;
  gap: 9px;
}

.gsy-lover-room-metric-row {
  border: 1px solid var(--gsy-lr-line);
  border-radius: 18px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--gsy-lr-muted);
  font-size: 13px;
  background: #ffffff;
}

.gsy-lover-room-metric-row strong {
  color: var(--gsy-lr-text);
  font-size: 14px;
  font-weight: 820;
}

.gsy-lover-room-tip-box {
  margin-top: 12px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 22px;
  padding: 14px;
  background: var(--gsy-lr-surface-soft);
}

.gsy-lover-room-section-label {
  margin: 18px 0 9px;
  color: var(--gsy-lr-faint);
  font-size: 11px;
  font-weight: 840;
  letter-spacing: 0.12em;
}

.gsy-lover-room-feature-center__hint {
  margin: 7px 0 0;
  color: var(--gsy-lr-muted);
  font-size: 13px;
  line-height: 1.72;
}

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

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

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

.gsy-lover-room-feature-tile {
  min-width: 0;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 22px;
  padding: 15px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--gsy-lr-text);
  text-align: left;
  background: #ffffff;
}

.gsy-lover-room-feature-tile--support {
  background: var(--gsy-lr-surface-soft);
}

.gsy-lover-room-feature-tile.is-active,
.gsy-lover-room-feature-tile:hover {
  border-color: var(--gsy-lr-accent-line);
  background: var(--gsy-lr-accent-soft);
  box-shadow: var(--gsy-lr-shadow-tiny);
}

.gsy-lover-room-feature-tile__icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gsy-lr-accent);
  font-size: 15px;
  background: #ffffff;
}

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

.gsy-lover-room-feature-tile__title {
  color: var(--gsy-lr-text);
  font-size: 14px;
  font-weight: 840;
  line-height: 1.35;
}

.gsy-lover-room-feature-tile__text {
  color: var(--gsy-lr-muted);
  font-size: 12px;
  line-height: 1.65;
}

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

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

.gsy-lover-room-bottom-tabs {
  display: none;
}

.gsy-app--lover-room {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.gsy-zone-shell--lover-room-workspace.gsy-zone-shell--lover-room-tavern {
  height: 100%;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  background: #ffffff;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench-header {
  position: relative;
  top: auto;
  z-index: 10;
  min-height: 58px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--gsy-lr-line);
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.gsy-lover-room-workbench-header__icon-button,
.gsy-lover-room-workbench-header__title-button {
  min-width: 0;
  border: 0;
  padding: 0;
  color: var(--gsy-lr-text);
  background: transparent;
  box-shadow: none;
}

.gsy-lover-room-workbench-header__icon-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 420;
  line-height: 1;
}

.gsy-lover-room-workbench-header__icon-button--menu {
  font-size: 23px;
}

.gsy-lover-room-workbench-header__title-button {
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench-header__title {
  max-width: 100%;
  font-size: 17px;
  font-weight: 860;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench-header__subtitle {
  max-width: 100%;
  margin-top: 2px;
  color: var(--gsy-lr-faint);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.1;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench-header__subtitle:empty {
  display: none;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench,
.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench-page,
.gsy-zone-shell--lover-room-tavern .gsy-lover-room-stage {
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench-page:not(.gsy-lover-room-workbench-page--chat) {
  overflow-y: auto;
  padding: 14px;
  gap: 14px;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench-page--chat {
  overflow: hidden;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-panel--chat-main {
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-panel__head--stage,
.gsy-zone-shell--lover-room-tavern .gsy-lover-room-group-bar,
.gsy-zone-shell--lover-room-tavern .gsy-lover-room-branch-bar {
  margin: 0 12px 8px;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-panel__head--stage {
  padding: 10px 0 0;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-stage__subtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-empty {
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message {
  width: min(100%, 92%);
  border-radius: 20px;
  box-shadow: none;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message.is-editing {
  border-color: rgba(17, 24, 39, 0.36);
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.06);
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message__actions {
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  opacity: 0.8;
}

.gsy-lover-room-message__icon-action {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gsy-lr-muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  background: rgba(255, 255, 255, 0.78);
}

.gsy-lover-room-message__icon-action--danger {
  color: #2f3338;
  background: var(--gsy-lr-danger-soft);
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-composer {
  position: relative;
  bottom: auto;
  z-index: 6;
  flex: 0 0 auto;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.045);
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-textarea--composer {
  min-height: 72px;
  max-height: 150px;
  resize: none;
  border-radius: 18px;
  line-height: 1.65;
}

.gsy-lover-room-editing-banner {
  min-height: 32px;
  border: 1px solid var(--gsy-lr-accent-line);
  border-radius: 999px;
  padding: 0 6px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gsy-lr-accent);
  font-size: 12px;
  font-weight: 760;
  background: var(--gsy-lr-accent-soft);
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-composer__actions {
  align-items: center;
  justify-content: space-between;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-inline-actions {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-inline-actions::-webkit-scrollbar {
  display: none;
}

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

.gsy-zone-shell--lover-room::-webkit-scrollbar-thumb,
.gsy-app--lover-room::-webkit-scrollbar-thumb,
.gsy-lover-room-message-list::-webkit-scrollbar-thumb,
.app-view-panel__body--gongshangyuan::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.28);
}

.gsy-zone-shell--lover-room::-webkit-scrollbar-track,
.gsy-app--lover-room::-webkit-scrollbar-track,
.gsy-lover-room-message-list::-webkit-scrollbar-track,
.app-view-panel__body--gongshangyuan::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 767px) {
  .gsy-zone-shell--lover-room,
  .gsy-zone-shell--lover-room-tavern {
    padding: 12px;
  }

  .gsy-lover-room-workbench-header {
    border-radius: 26px;
  }

  .gsy-lover-room-workbench-header__main-row {
    grid-template-columns: minmax(52px, auto) minmax(48px, auto) minmax(0, 1fr) minmax(52px, auto);
    gap: 7px;
  }

  .gsy-lover-room-workbench-header__pill--action {
    min-height: 48px;
    padding: 0 10px;
    font-size: 12px;
  }

  .gsy-lover-room-top-tabs {
    grid-template-columns: repeat(6, minmax(44px, 1fr));
    gap: 7px;
  }

  .gsy-lover-room-top-tabs__item {
    height: 49px;
    border-radius: 16px;
  }

  .gsy-lover-room-summary-grid,
  .gsy-lover-room-triple-grid,
  .gsy-lover-room-double-grid {
    grid-template-columns: 1fr;
  }

  .gsy-lover-room-summary-card__label,
  .gsy-lover-room-summary-card__value {
    white-space: normal;
  }

  .gsy-lover-room-panel,
  .gsy-lover-room-panel--chat-main {
    padding: 14px;
    border-radius: 26px;
  }

  .gsy-lover-room-message {
    width: min(100%, 96%);
  }

  .gsy-lover-room-chat-composer__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gsy-lover-room-chat-composer__actions > .gsy-primary-action,
  .gsy-lover-room-chat-composer__actions > .gsy-primary-action--danger {
    width: 100%;
  }

  .gsy-lover-room-inline-actions {
    width: 100%;
  }

  .gsy-lover-room-inline-actions .gsy-chip {
    flex: 1 1 auto;
  }

  .gsy-lover-room-feature-center__grid--main,
  .gsy-lover-room-feature-center__grid--support {
    grid-template-columns: 1fr;
  }

  .gsy-lover-room-feature-tile {
    border-radius: 20px;
    padding: 14px;
  }
}

@media (max-width: 390px) {
  .gsy-zone-shell--lover-room,
  .gsy-zone-shell--lover-room-tavern {
    padding: 10px;
  }

  .gsy-lover-room-workbench-header__main-row {
    grid-template-columns: 1fr 1fr 0.78fr;
  }

  .gsy-lover-room-workbench-header__pill--meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .gsy-lover-room-top-tabs__item {
    height: 48px;
  }

  .gsy-lover-room-hero-card {
    min-height: 196px;
  }
}

@media (min-width: 768px) {
  .gsy-zone-shell--lover-room,
  .gsy-zone-shell--lover-room-tavern {
    padding: 20px;
  }

  .gsy-lover-room-workbench,
  .gsy-lover-room-workbench--single-column,
  .gsy-lover-room-workbench-page,
  .gsy-lover-room-workbench-page--chat {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .gsy-lover-room-workbench-header__main-row {
    grid-template-columns: 82px 70px minmax(0, 1fr) 70px;
  }

  .gsy-lover-room-panel,
  .gsy-lover-room-panel--chat-main {
    padding: 20px;
  }

  .gsy-lover-room-message-list {
    gap: 16px;
  }
}

@media (min-width: 1100px) {
  .gsy-zone-shell--lover-room,
  .gsy-zone-shell--lover-room-tavern {
    padding: 24px;
  }

  .gsy-lover-room-workbench-page--chat {
    grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.46fr);
    align-items: start;
  }

  .gsy-lover-room-workbench-page--chat > .gsy-lover-room-panel--summary {
    grid-column: 1 / -1;
  }

  .gsy-lover-room-workbench-page:not(.gsy-lover-room-workbench-page--chat) {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    align-items: start;
  }

  .gsy-lover-room-workbench-page:not(.gsy-lover-room-workbench-page--chat) > .gsy-lover-room-panel--summary {
    grid-column: 1 / -1;
  }

  .gsy-lover-room-panel {
    min-width: 0;
  }

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

.gsy-zone-shell--lover-room-workspace.gsy-zone-shell--lover-room-tavern {
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f7f8fa !important;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-workbench-page--chat {
  overflow-y: auto;
  padding: 0;
  gap: 12px;
  background: #f7f8fa;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-panel--chat-main {
  gap: 12px;
  overflow: visible;
  background: transparent;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-panel__head--stage,
.gsy-zone-shell--lover-room-tavern .gsy-lover-room-group-bar,
.gsy-zone-shell--lover-room-tavern .gsy-lover-room-branch-bar {
  margin: 0;
}

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

.gsy-lover-room-command-card,
.gsy-lover-room-feature-card--selected,
.gsy-lover-room-panel--scene-overview,
.gsy-lover-room-current-reply-card {
  border: 1px solid var(--gsy-lr-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--gsy-lr-shadow-soft);
}

.gsy-lover-room-command-card {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.gsy-lover-room-command-card__nav,
.gsy-lover-room-selected-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gsy-lover-room-command-card__nav-button,
.gsy-lover-room-selected-tabs__item {
  min-height: 40px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--gsy-lr-text-soft);
  font-size: 13px;
  font-weight: 820;
  background: #ffffff;
}

.gsy-lover-room-command-card__nav-button.is-active,
.gsy-lover-room-selected-tabs__item.is-active {
  color: #ffffff;
  border-color: #111827;
  background: #111827;
}

.gsy-lover-room-command-card__metrics {
  min-height: 86px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 22px;
  padding: 12px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  background: var(--gsy-lr-surface-soft);
}

.gsy-lover-room-command-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: #111827;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

.gsy-lover-room-command-card__metric {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.gsy-lover-room-command-card__metric span {
  color: var(--gsy-lr-faint);
  font-size: 11px;
  font-weight: 760;
}

.gsy-lover-room-command-card__metric strong {
  overflow: hidden;
  color: var(--gsy-lr-text);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsy-lover-room-command-card__edit {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gsy-lr-text);
  font-size: 16px;
  background: #ffffff;
}

.gsy-lover-room-feature-card--selected {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.gsy-lover-room-feature-card__eyebrow {
  margin: 0;
  color: var(--gsy-lr-muted);
  font-size: 13px;
  font-weight: 840;
  letter-spacing: 0.04em;
}

.gsy-lover-room-selected-overview .gsy-lover-room-panel--summary {
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--gsy-lr-shadow-soft);
}

.gsy-lover-room-selected-overview .gsy-lover-room-summary-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.gsy-lover-room-selected-overview .gsy-lover-room-summary-card {
  min-height: 56px;
  border-radius: 18px;
  padding: 10px 12px;
}

.gsy-lover-room-panel--scene-overview {
  padding: 14px;
}

.gsy-lover-room-panel--scene-overview .gsy-lover-room-panel__head {
  margin-bottom: 12px;
}

.gsy-lover-room-panel--scene-overview .gsy-lover-room-field {
  margin-bottom: 12px;
}

.gsy-lover-room-panel--scene-overview .gsy-lover-room-session-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.gsy-lover-room-current-reply-card {
  padding: 14px;
}

.gsy-lover-room-current-reply-card__head {
  display: grid;
  gap: 6px;
}

.gsy-lover-room-current-reply-card__head span {
  color: var(--gsy-lr-muted);
  font-size: 12px;
  font-weight: 780;
}

.gsy-lover-room-current-reply-card__head strong {
  color: var(--gsy-lr-text);
  font-size: 15px;
  font-weight: 880;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message-list {
  flex: none;
  max-height: 280px;
  min-height: 120px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-composer {
  position: sticky;
  bottom: 0;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 24px;
  margin: 0 0 2px;
}

@media (max-width: 390px) {
  .gsy-lover-room-command-card__metrics {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 34px;
    gap: 8px;
    padding: 10px;
  }

  .gsy-lover-room-command-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .gsy-lover-room-command-card__metric strong {
    font-size: 16px;
  }
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-group-bar {
  display: none !important;
}

.gsy-lover-room-selected-overview--compact {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px;
  background: transparent;
}

.gsy-lover-room-selected-overview__top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.gsy-lover-room-selected-overview__avatar {
  width: 64px;
  height: 64px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: #111827;
}

.gsy-lover-room-selected-overview__stats {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  background: transparent;
}

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

.gsy-lover-room-selected-overview__stat span {
  color: var(--gsy-lr-faint);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.gsy-lover-room-selected-overview__stat strong {
  overflow: hidden;
  color: var(--gsy-lr-text);
  font-size: 13px;
  font-weight: 860;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsy-lover-room-selected-overview__edit {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gsy-lr-line);
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gsy-lr-text);
  font-size: 16px;
  background: #ffffff;
}

.gsy-lover-room-selected-overview__content {
  border: 0;
  border-radius: 0;
  padding: 12px 0 0;
  background: transparent;
}

.gsy-lover-room-selected-overview__content-text {
  margin: 0;
  color: var(--gsy-lr-text-soft);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.gsy-lover-room-selected-overview__content .gsy-lover-room-inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gsy-lover-room-selected-overview__content .gsy-lover-room-inline-actions > .gsy-chip,
.gsy-lover-room-selected-overview__content .gsy-lover-room-inline-actions > .gsy-primary-action {
  width: 100%;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-runtime-error,
.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-status {
  margin: 0 12px 8px;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message__actions {
  display: none !important;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message__head-edit {
  display: inline-flex !important;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-branch-bar {
  display: none !important;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message-list {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 10px 12px 12px;
  background: transparent;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-message {
  width: min(100%, 94%);
  border-radius: 18px;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-composer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--gsy-lr-line);
  border-radius: 0;
  margin: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-composer__bar {
  align-items: center;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-composer__menu-button {
  width: 34px;
  height: 34px;
  font-size: 22px;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-textarea--composer,
.gsy-zone-shell--lover-room-tavern .gsy-lover-room-textarea--composer-simple {
  min-height: 36px !important;
  max-height: 92px;
  padding: 8px 12px;
  border-radius: 18px;
  line-height: 1.45;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-chat-composer__send-button,
.gsy-zone-shell--lover-room-tavern .gsy-primary-action.gsy-lover-room-chat-composer__send-button {
  min-width: 54px;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
}

.gsy-lover-room-session-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.gsy-lover-room-session-toolbar__search {
  min-width: 0;
}

.gsy-lover-room-session-toolbar__button {
  min-width: 64px;
  min-height: 48px;
  white-space: nowrap;
}

.gsy-lover-room-character-switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.gsy-lover-room-character-switch-row__select {
  min-width: 0;
}

.gsy-lover-room-character-switch-row__button {
  flex: 0 0 auto;
  min-width: 96px;
  white-space: nowrap;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-character-switch-row__button {
  height: 48px;
  align-self: end;
}

.gsy-zone-shell--lover-room-tavern .gsy-lover-room-editing-banner {
  min-height: 28px;
  padding: 0 4px 0 10px;
  font-size: 11px;
}

@media (max-width: 390px) {
  .gsy-lover-room-session-toolbar {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .gsy-lover-room-session-toolbar__button {
    min-width: 58px;
    padding: 0 10px;
  }

  .gsy-lover-room-character-switch-row {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
  }

  .gsy-lover-room-character-switch-row__button {
    min-width: 86px;
    padding: 0 12px;
  }

  .gsy-lover-room-selected-overview__top {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .gsy-lover-room-selected-overview__avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
    border-radius: 16px;
  }

  .gsy-lover-room-selected-overview__stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    gap: 8px;
    padding: 9px 10px;
  }

  .gsy-lover-room-selected-overview__edit {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .gsy-lover-room-message__head {
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    gap: 8px;
  }

  .gsy-lover-room-message__avatar {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    font-size: 13px;
  }

  .gsy-lover-room-message__meta {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gsy-app--lover-room *,
  .gsy-app--lover-room *::before,
  .gsy-app--lover-room *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
