
.memory-timeline-modal {
  z-index: 30020;
}

.memory-timeline-dialog {
  width: min(326px, calc(100vw - 48px));
  max-width: 326px;
}

.memory-timeline-dialog .modal-content {
  gap: 12px;
}

.memory-timeline-modal-subtitle {
  margin: -2px 0 2px;
  color: rgba(70, 76, 86, 0.48);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.memory-timeline-dialog .memory-timeline-edit {
  min-height: 172px;
  max-height: min(42vh, 260px);
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(52, 56, 65, 0.14);
  background: rgba(250, 251, 252, 0.72);
  box-shadow: none;
  line-height: 1.72;
}

.memory-timeline-danger-actions {
  height: 44px;
}

.memory-timeline-danger-actions .btn-save {
  color: #B86969;
}

.memory-console .memory-timeline-panel {
  display: block;
}

.memory-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
  width: auto;
  padding: 24px;
  background: rgba(30, 30, 35, 0.40);
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

.memory-settings-dialog {
  border-radius: 22px;
  background: #FFFFFF;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-width: 318px;
  max-height: calc(var(--one-shell-lock-height, var(--one-layout-vh, 100svh)) - max(48px, calc(env(safe-area-inset-top) + env(safe-area-inset-bottom) + 36px)));
}

.memory-settings-dialog .modal-content {
  gap: 18px;
  max-height: calc(var(--one-shell-lock-height, var(--one-layout-vh, 100svh)) - max(98px, calc(env(safe-area-inset-top) + env(safe-area-inset-bottom) + 86px)));
  padding: 24px 20px max(24px, calc(var(--one-visual-bottom-gap, 0px) + 20px));
}

.memory-unified-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(74,78,89,0.08);
}

.memory-unified-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.memory-unified-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74,78,89,0.07);
}

.memory-unified-row strong {
  display: block;
  color: #3B4048;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.memory-unified-row span {
  display: block;
  margin-top: 4px;
  color: #8C95A3;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.memory-unified-badge {
  flex: 0 0 auto;
  min-width: 68px;
  padding: 5px 8px;
  border-radius: 0;
  background: rgba(246,247,248,0.88);
  color: #6E7682;
  font-size: 10.5px;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.memory-unified-badge.is-healthy {
  color: #52665E;
  background: rgba(243,248,245,0.86);
}

.memory-unified-badge.is-dirty {
  color: #786A4E;
  background: rgba(250,247,239,0.88);
}

.memory-unified-badge.is-rebuilding {
  color: #786A4E;
  background: rgba(250,247,239,0.88);
}

.memory-unified-badge.is-degraded {
  color: #7A4A4A;
  background: rgba(250,244,241,0.86);
}

.memory-unified-badge.is-failed {
  color: #7A4A4A;
  background: rgba(250,244,241,0.86);
}

.memory-unified-badge.is-empty {
  color: #8C95A3;
  background: rgba(247,248,249,0.82);
}

.memory-unified-detail {
  margin-top: 10px;
  color: #6C747F;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.035em;
  border-top: 1px solid rgba(74,78,89,0.06);
  word-break: break-word;
  padding: 10px 0 12px;
  max-height: min(32vh, 240px);
  overflow-y: auto;
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.memory-unified-actions {
  margin-top: 12px;
  grid-template-columns: 1fr;
}

.memory-settings-control-list {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  margin: 14px 0 18px;
}

.memory-setting-control {
  display: grid;
  gap: 9px;
  padding: 12px 2px 14px;
  border-bottom: 1px solid rgba(40, 46, 50, 0.08);
}

.memory-setting-control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.memory-setting-control-head b {
  color: rgba(30, 34, 37, 0.78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.memory-setting-control-head strong {
  line-height: 1;
  color: rgba(30, 34, 37, 0.78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.memory-setting-control-head em {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1;
  color: rgba(30, 34, 37, 0.42);
  font-style: italic;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.memory-setting-control small {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
  color: rgba(30, 34, 37, 0.42);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.memory-settings-range {
  width: 100%;
  accent-color: #AEB8BD;
}

.memory-action-strip .memory-danger-action {
  background: rgba(255,255,255,0.86);
  box-shadow: inset 0 0 0 1px rgba(158,93,93,0.10), 0 9px 20px rgba(48,49,55,0.035);
  color: rgba(96, 42, 42, 0.72);
}

html.one-force-fullscreen-root {
  width: 100%;
  height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  overflow: hidden;
  overscroll-behavior: none;
}

html.one-force-fullscreen-root body {
  width: 100%;
  height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  overflow: hidden;
  overscroll-behavior: none;
}

html.one-force-fullscreen-root body.one-force-fullscreen-body {
  position: fixed;
  inset: 0;
  min-width: var(--one-shell-lock-width, 100vw);
  max-width: var(--one-shell-lock-width, 100vw);
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

html.one-force-fullscreen-root.one-viewport-keyboard {
  height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

html.one-force-fullscreen-root.one-viewport-keyboard body {
  height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

html.one-force-fullscreen-root.one-viewport-keyboard body.one-force-fullscreen-body {
  height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

html.one-layout-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  scroll-behavior: auto;
}

html.one-layout-scroll-locked body {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  scroll-behavior: auto;
}

html.one-layout-scroll-locked body.one-force-fullscreen-body {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

html.one-layout-scroll-locked body.one-phone-app-open #desktop {
  visibility: hidden;
  pointer-events: none;
}

html.one-layout-scroll-locked body.one-chat-app-visible #desktop {
  visibility: hidden;
  pointer-events: none;
}

html.one-layout-scroll-locked.one-chat-app-visible body #desktop {
  visibility: hidden;
  pointer-events: none;
}

html.one-force-fullscreen-root #desktop {
  height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

html.one-force-fullscreen-root :where(.settings-app-page, .worldbook-app-page, .memory-app-page, .chat-app-page, .messages-app-page, .phone-app-page, .modal-overlay) {
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

html.one-force-fullscreen-root.one-viewport-keyboard :where(.settings-app-page, .worldbook-app-page, .memory-app-page, .messages-app-page, .phone-app-page, .modal-overlay) {
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

html.one-force-fullscreen-root.one-viewport-keyboard body:not(.show-phone-shell) .chat-app-page {
  top: 0;
  height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  min-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

html.one-force-fullscreen-root.one-viewport-keyboard body.show-phone-shell .chat-app-page {
  left: var(--one-shell-stage-center-x, 50%);
  top: var(--one-shell-stage-center-y, 50%);
  right: auto;
  bottom: auto;
  width: var(--one-shell-base-width, 390px);
  height: var(--one-shell-base-height, 912px);
  min-height: 0;
  max-height: var(--one-shell-base-height, 912px);
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
  transform-origin: center center;
}

html.one-force-fullscreen-root.one-viewport-keyboard .chat-thread-view.active .chat-thread-messages {
  padding-bottom: max(96px, calc(var(--one-visual-bottom-gap, 0px) + env(safe-area-inset-bottom) + 88px));
}

.one-statusbar-host {
  position: fixed;
  left: var(--one-statusbar-surface-left, 0px);
  top: var(--one-statusbar-surface-top, 0px);
  width: var(--one-statusbar-surface-width, 100vw);
  height: var(--one-statusbar-surface-height, var(--one-shell-lock-height, var(--one-layout-vh, 100svh)));
  z-index: 30040;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--one-statusbar-surface-radius, 0px);
  contain: layout paint style;
}

.one-statusbar-host::before {
  position: absolute;
  top: var(--one-statusbar-inner-top, max(12px, env(safe-area-inset-top)));
  height: var(--one-statusbar-inner-height, 24px);
  line-height: var(--one-statusbar-inner-height, 24px);
  color: rgba(34, 35, 38, 0.84);
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.74);
  content: var(--one-statusbar-time, "12:00");
  left: var(--one-statusbar-inner-left, 28px);
  font-size: var(--one-statusbar-font-size, 12.5px);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.one-statusbar-host::after {
  position: absolute;
  top: var(--one-statusbar-inner-top, max(12px, env(safe-area-inset-top)));
  line-height: var(--one-statusbar-inner-height, 24px);
  color: rgba(34, 35, 38, 0.84);
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.74);
  content: "";
  right: var(--one-statusbar-inner-right, 26px);
  width: var(--one-statusbar-icon-width, 82px);
  height: var(--one-statusbar-icon-height, 24px);
  background-image: var(--one-statusbar-icons);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}

body.show-phone-shell.one-statusbar-on .phone-shell-frame::before {
  opacity: 0.34;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-field-label {
  color: var(--appearance-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-switch-text span {
  color: var(--appearance-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-switch-text strong {
  color: var(--appearance-ink);
  font-size: 15px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-field-input {
  border: 0;
  border-bottom: 1px solid var(--appearance-line);
  border-radius: 0;
  background: transparent;
  color: var(--appearance-ink);
  padding: 10px 0 11px;
  box-shadow: none;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-field-select {
  border: 0;
  border-bottom: 1px solid var(--appearance-line);
  border-radius: 0;
  background: transparent;
  color: var(--appearance-ink);
  padding: 10px 0 11px;
  box-shadow: none;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-field-textarea {
  border: 0;
  border-bottom: 1px solid var(--appearance-line);
  border-radius: 0;
  background: transparent;
  color: var(--appearance-ink);
  padding: 10px 0 11px;
  box-shadow: none;
  min-height: 172px;
  line-height: 1.62;
  resize: vertical;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-field-input:focus {
  border-bottom-color: var(--appearance-line-strong);
  background: transparent;
  box-shadow: none;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-field-select:focus {
  border-bottom-color: var(--appearance-line-strong);
  background: transparent;
  box-shadow: none;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-field-textarea:focus {
  border-bottom-color: var(--appearance-line-strong);
  background: transparent;
  box-shadow: none;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-preview-box {
  border: 0;
  border-top: 1px solid rgba(117,124,135,0.16);
  border-bottom: 1px solid rgba(117,124,135,0.16);
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-font-preview {
  border: 0;
  border-top: 1px solid rgba(117,124,135,0.16);
  border-bottom: 1px solid rgba(117,124,135,0.16);
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) .settings-action-row {
  margin-top: 14px;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) :where(.settings-thin-button, .settings-ghost-button, .settings-primary-button) {
  border-radius: 0;
}

.settings-appearance-category:active {
  opacity: 0.72;
}

.one-chat-push-banner {
  position: fixed;
  z-index: 26000;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  width: min(420px, calc(100vw - 28px));
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(180, 185, 190, 0.32);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(248,249,249,0.86));
  box-shadow: 0 18px 42px rgba(92, 98, 105, 0.14), inset 0 1px 0 rgba(255,255,255,0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #3f444a;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-118% + var(--one-push-drag-y, 0px))) scale(0.985);
  transition: transform 220ms ease, opacity 180ms ease;
  touch-action: none;
  user-select: none;
}

.one-chat-push-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, var(--one-push-drag-y, 0px)) scale(1);
}

.one-chat-push-banner.is-dragging {
  transition: opacity 120ms ease;
}

.one-chat-push-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(246, 247, 247, 0.98);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(210, 214, 218, 0.72);
  color: #9a9fa5;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-style: italic;
}

.one-mini-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(246, 247, 247, 0.98);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(210, 214, 218, 0.72);
  color: #9a9fa5;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-style: italic;
}

.one-chat-push-avatar.has-image {
  color: transparent;
}

.one-mini-chat-avatar.has-image {
  color: transparent;
}

.one-chat-push-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.one-chat-push-copy strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
  color: #3b3f45;
}

.one-chat-push-copy span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(70, 75, 82, 0.72);
}

.one-chat-push-copy em {
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 126, 132, 0.62);
}

.one-chat-push-close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(235, 237, 239, 0.72);
  color: rgba(70, 75, 80, 0.62);
  font-size: 17px;
  line-height: 1;
}

.one-mini-chat-window {
  position: fixed;
  z-index: 25990;
  left: 50%;
  top: 86px;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 128px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(176, 182, 188, 0.34);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(248,250,250,0.9));
  box-shadow: 0 26px 70px rgba(80, 86, 92, 0.2), inset 0 1px 0 rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.96);
  transition: opacity 160ms ease, transform 180ms ease;
  resize: none;
  contain: layout paint style;
}

.one-mini-chat-window.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.one-mini-chat-window.show[style*="transform: none"] {
  transform: none;
}

.one-mini-chat-window.is-moving {
  transition: none;
  will-change: left, top, width, height;
}

.one-mini-chat-window.is-resizing {
  transition: none;
  will-change: left, top, width, height;
}

.one-mini-chat-window.is-resizing .one-mini-chat-messages {
  pointer-events: none;
}

.one-mini-chat-window.is-moving .one-mini-chat-messages {
  pointer-events: none;
}

.one-mini-chat-head {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 9px;
  border-bottom: 1px solid rgba(210, 214, 218, 0.38);
  cursor: grab;
  touch-action: none;
}

.one-mini-chat-window.is-moving .one-mini-chat-head {
  cursor: grabbing;
}

.one-mini-chat-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.one-mini-chat-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #3f444a;
}

.one-mini-chat-title span {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(128, 135, 142, 0.7);
  text-transform: uppercase;
}

.one-mini-chat-open {
  height: 28px;
  border: 1px solid rgba(198, 203, 208, 0.42);
  background: rgba(255,255,255,0.68);
  color: rgba(62, 68, 75, 0.72);
  font-size: 11px;
  border-radius: 999px;
  padding: 0 10px;
}

.one-mini-chat-close {
  height: 28px;
  border: 1px solid rgba(198, 203, 208, 0.42);
  background: rgba(255,255,255,0.68);
  color: rgba(62, 68, 75, 0.72);
  border-radius: 999px;
  width: 28px;
  padding: 0;
  font-size: 17px;
  line-height: 1;
}

.one-mini-chat-messages {
  --chat-bubble-me: #000;
  --chat-bubble-ta: #ffffff;
  --chat-text-me: #ffffff;
  --chat-text-ta: #000000;
  --chat-bubble-radius-ta: 18px;
  --chat-bubble-radius-me: 18px;
  --chat-thread-font-size: 12px;
  --chat-avatar-display-ta: none;
  --chat-avatar-display-me: none;
  --chat-avatar-frame-display: none;
  min-height: 0;
  overflow: auto;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.one-mini-chat-line.chat-thread-row {
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
}

.one-mini-chat-line.chat-thread-row.is-system {
  justify-content: center;
}

.one-mini-chat-messages .chat-thread-msg-stack {
  max-width: min(82%, calc(22em + 24px));
}

.one-mini-chat-messages .chat-thread-line {
  max-width: 100%;
}

.one-mini-chat-messages .chat-thread-bubble.is-text {
  max-width: 100%;
}

.one-mini-chat-messages .chat-thread-time {
  display: none;
}

.one-mini-chat-empty {
  margin: auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(120, 126, 132, 0.68);
}

.one-mini-chat-foot {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(210, 214, 218, 0.34);
  color: rgba(118, 125, 132, 0.7);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.one-mini-chat-composer {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid rgba(194, 200, 206, 0.36);
  border-radius: var(--chat-mini-input-radius, 22px);
  background: var(--chat-clear-glass-bg);
  color: var(--chat-mini-input-text, rgba(48, 53, 59, 0.92));
  box-shadow: var(--chat-clear-glass-inset);
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
}

.one-mini-chat-composer textarea {
  width: 100%;
  min-height: 36px;
  max-height: 82px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--chat-mini-input-text, rgba(48, 53, 59, 0.92));
  font-size: max(16px, var(--chat-thread-font-size, 12px));
  line-height: 1.42;
  padding: 9px 0 7px;
  overflow: hidden;
  user-select: text;
  -webkit-user-select: text;
}

.one-mini-chat-composer textarea::placeholder {
  color: var(--chat-mini-input-text, rgba(48, 53, 59, 0.92));
  opacity: 0.54;
}

.one-mini-chat-composer button {
  min-width: 52px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--chat-mini-input-send-bg, rgba(32, 35, 39, 0.92));
  color: var(--chat-mini-input-send-text, rgba(255,255,255,0.94));
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 0 12px;
}

.one-mini-chat-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 42px;
  min-height: 28px;
  padding: 9px 12px;
}

.one-mini-chat-typing-bubble span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.32;
  animation: one-mini-chat-dot 1.2s ease-in-out infinite;
}

.one-mini-chat-typing-bubble span:nth-child(2) {
  animation-delay: 0.16s;
}

.one-mini-chat-typing-bubble span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes one-mini-chat-dot {
0%, 72%, 100% { transform: translateY(0); opacity: 0.28; }
    36% { transform: translateY(-3px); opacity: 0.78; }
}

.one-mini-chat-resizer {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 22px;
  height: 22px;
  cursor: nwse-resize;
  touch-action: none;
}

.one-mini-chat-resizer::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 11px;
  height: 1px;
  background: rgba(150, 156, 162, 0.58);
  transform: rotate(-45deg);
  transform-origin: right center;
}

.one-mini-chat-resizer::after {
  content: "";
  position: absolute;
  right: 4px;
  height: 1px;
  background: rgba(150, 156, 162, 0.58);
  transform: rotate(-45deg);
  transform-origin: right center;
  width: 7px;
  bottom: 9px;
}

.chat-app-page.chat-style-open .chat-bottom-dock {
  display: none;
}

.chat-style-native-view.active ~ .chat-bottom-dock {
  display: none;
}

.chat-style-native-view {
  padding: 0;
  overflow-y: auto;
  background: #fff;
  --studio-ink: #1f2328;
  --studio-muted: rgba(31, 35, 40, 0.52);
  --studio-soft: rgba(31, 35, 40, 0.08);
  --studio-line: rgba(31, 35, 40, 0.12);
  --studio-paper: #fffefd;
  --chat-bubble-ta: #ffffff;
  --chat-text-ta: #1f1f1f;
  --chat-bubble-me: #111111;
  --chat-text-me: #ffffff;
  --chat-bubble-radius-ta: 16px;
  --chat-bubble-radius-me: 16px;
  --chat-thread-font-size: 12px;
  --chat-avatar-display-ta: inline-flex;
  --chat-avatar-display-me: inline-flex;
  --chat-avatar-frame-display: block;
  --chat-avatar-ta-scale: 1;
  --chat-avatar-ta-x: 0px;
  --chat-avatar-ta-y: 0px;
  --chat-avatar-ta-rotate: 0deg;
  --chat-avatar-me-scale: 1;
  --chat-avatar-me-x: 0px;
  --chat-avatar-me-y: 0px;
  --chat-avatar-me-rotate: 0deg;
}

.chat-style-native-view button {
  font: inherit;
}

.chat-style-native-view input {
  font: inherit;
}

.chat-style-native-view select {
  font: inherit;
}

.chat-style-native-view textarea {
  font: inherit;
}

.chat-style-native-view .chat-style-studio {
  min-height: 100%;
  padding: max(22px, env(safe-area-inset-top)) 18px max(32px, calc(env(safe-area-inset-bottom) + var(--one-visual-bottom-gap, 0px) + 20px));
  background: radial-gradient(circle at 18% 0%, rgba(230,235,235,.55), transparent 30%), linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  color: var(--studio-ink);
}

.chat-style-native-view .chat-style-topbar {
  display: grid;
  grid-template-columns: 68px 1fr 76px;
  align-items: start;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 18px;
}

.chat-style-native-view .chat-style-back {
  border: 0;
  background: transparent;
  color: #111;
  padding: 7px 0;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chat-style-native-view .chat-style-apply {
  border: 0;
  font-size: 11px;
  line-height: 1;
  text-underline-offset: 4px;
  justify-self: end;
  width: auto;
  min-width: 62px;
  height: 30px;
  padding: 0 12px;
  color: #fff;
  background: #111;
  text-decoration: none;
  letter-spacing: .08em;
}

.chat-style-native-view .chat-style-title-copy {
  text-align: center;
}

.chat-style-native-view .chat-style-preview-panel {
  max-width: 760px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 10px 0 12px;
  border-top: 1px solid var(--studio-line);
  border-bottom: 1px solid var(--studio-line);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,250,247,.94));
}

.chat-style-native-view .chat-style-preview {
  position: relative;
  height: 286px;
  overflow: hidden;
  background: rgba(250,249,246,.86);
  isolation: isolate;
}

.chat-style-native-view .chat-thread-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.chat-style-native-view .chat-style-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,247,244,.82));
  pointer-events: none;
}

.chat-style-native-view .chat-thread-messages {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 16px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}

.chat-style-native-view .chat-thread-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
}

.chat-style-native-view .chat-thread-row.is-me {
  justify-content: flex-start;
  flex-direction: row-reverse;
  padding-left: 8px;
  padding-right: 0;
  box-sizing: border-box;
}

.chat-style-native-view .chat-thread-row.is-ta {
  justify-content: flex-start;
  flex-direction: row;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.chat-style-native-view .chat-thread-message-avatar {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  box-sizing: border-box;
  border-radius: 50%;
  overflow: visible;
  background: #EEF1F3;
  color: rgba(52,57,65,.48);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 11px;
  font-style: italic;
  line-height: 1;
  box-shadow: none;
  border: 0;
  position: relative;
}

.chat-style-native-view .chat-thread-row.is-ta .chat-thread-message-avatar {
  display: var(--chat-avatar-display-ta);
}

.chat-style-native-view .chat-thread-row.is-me .chat-thread-message-avatar {
  display: var(--chat-avatar-display-me);
}

.chat-style-native-view .chat-thread-message-avatar.has-image {
  color: transparent;
}

.chat-style-native-view .chat-thread-message-avatar .avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transform-origin: center;
  pointer-events: none;
}

.chat-style-native-view .chat-thread-message-avatar.has-image .avatar-img {
  opacity: 1;
}

.chat-style-native-view .chat-thread-row.is-ta .chat-thread-message-avatar .avatar-img {
  transform-origin: left center;
  transform: translate(var(--chat-avatar-ta-x), var(--chat-avatar-ta-y)) scale(var(--chat-avatar-ta-scale)) rotate(var(--chat-avatar-ta-rotate));
}

.chat-style-native-view .chat-thread-row.is-me .chat-thread-message-avatar .avatar-img {
  transform-origin: right center;
  transform: translate(var(--chat-avatar-me-x), var(--chat-avatar-me-y)) scale(var(--chat-avatar-me-scale)) rotate(var(--chat-avatar-me-rotate));
}

.chat-style-native-view .chat-thread-message-avatar .avatar-fallback {
  position: relative;
  z-index: 1;
  color: rgba(52,57,65,.48);
}

.chat-style-native-view .chat-thread-message-avatar.has-image .avatar-fallback {
  opacity: 0;
}

.chat-style-native-view .chat-thread-message-avatar .avatar-frame {
  position: absolute;
  inset: -3px;
  z-index: 2;
  display: var(--chat-avatar-frame-display);
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.70);
}

.chat-style-native-view .chat-thread-message-avatar .avatar-frame.chat-avatar-frame--mist-film {
  inset: -4px;
  border-color: rgba(180,187,188,.48);
  box-shadow: 0 0 0 1px rgba(255,255,255,.82) inset;
}

.chat-style-native-view .chat-thread-message-avatar .avatar-frame.chat-avatar-frame--pearl-line {
  inset: -5px;
  border-color: rgba(238,232,220,.90);
  box-shadow: 0 0 0 1px rgba(173,165,152,.24);
}

.chat-style-native-view .chat-thread-message-avatar .avatar-frame.chat-avatar-frame--rain-glass {
  inset: -5px;
  border-color: rgba(166,177,183,.40);
  backdrop-filter: blur(1px);
}

.chat-style-native-view .chat-thread-message-avatar .avatar-frame.chat-avatar-frame--soft-lace {
  inset: -5px;
  border-style: dotted;
  border-color: rgba(196,188,178,.64);
}

.chat-style-native-view .chat-thread-message-avatar .avatar-frame.chat-avatar-frame--black-ribbon {
  inset: -4px;
  border-color: rgba(20,20,20,.74);
}

.chat-style-native-view .chat-thread-message-avatar .avatar-frame.chat-avatar-frame--black-ribbon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 11px;
  height: 5px;
  border-top: 1px solid rgba(20,20,20,.62);
  transform: translateX(-50%);
}

.chat-style-native-view .chat-thread-msg-stack {
  max-width: min(calc(100% - 52px), calc(22em + 24px));
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  min-width: 0;
}

.chat-style-native-view .chat-thread-row.is-me .chat-thread-msg-stack {
  align-items: flex-end;
}

.chat-style-native-view .chat-thread-row.is-ta .chat-thread-msg-stack {
  align-items: flex-start;
}

.chat-style-native-view .chat-thread-line {
  position: relative;
  max-width: min(100%, calc(22em + 24px));
  display: flex;
  align-items: flex-end;
  gap: 5px;
  overflow: visible;
}

.chat-style-native-view .chat-thread-row.is-me .chat-thread-line {
  justify-content: flex-end;
  flex-direction: row;
}

.chat-style-native-view .chat-thread-row.is-ta .chat-thread-line {
  justify-content: flex-start;
  flex-direction: row;
}

.chat-style-native-view .chat-thread-bubble {
  position: relative;
  max-width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--chat-bubble-radius-ta);
  font-size: var(--chat-thread-font-size);
  line-height: 1.55;
  letter-spacing: .01em;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: none;
}

.chat-style-native-view .chat-thread-row.is-ta .chat-thread-bubble {
  background: var(--chat-bubble-ta);
  color: var(--chat-text-ta);
  border-radius: var(--chat-bubble-radius-ta);
}

.chat-style-native-view .chat-thread-row.is-me .chat-thread-bubble {
  background: var(--chat-bubble-me);
  color: var(--chat-text-me);
  border-radius: var(--chat-bubble-radius-me);
}

.chat-style-native-view .chat-thread-bubble.is-schedule-forward-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.chat-style-native-view .chat-thread-bubble.is-diary-forward-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.chat-style-native-view .chat-thread-bubble.is-stock-inquiry-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.chat-style-native-view .chat-thread-bubble.is-transfer-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.chat-style-native-view .chat-thread-bubble.is-redpacket-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.chat-style-native-view .chat-thread-bubble.is-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.chat-style-native-view .chat-thread-bubble.is-schedule-forward-card::before {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-schedule-forward-card::after {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-diary-forward-card::before {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-diary-forward-card::after {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-stock-inquiry-card::before {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-stock-inquiry-card::after {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-transfer-card::before {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-transfer-card::after {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-redpacket-card::before {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-redpacket-card::after {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-card::before {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-bubble.is-card::after {
  content: none;
  display: none;
}

.chat-style-native-view .chat-thread-time {
  flex: 0 0 auto;
  color: rgba(31,35,40,.32);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .05em;
  padding: 0 1px 3px;
  pointer-events: none;
}

.chat-style-native-view .chat-style-preview-topbar {
  display: none;
}

.chat-style-native-view .chat-style-preview-messages {
  top: 0;
  bottom: 0;
}

.chat-style-native-view .chat-style-preview-composer {
  display: none;
}

.chat-style-native-view .chat-style-workbench {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 14px 0 28px;
}

.chat-style-native-view .chat-style-section[data-style-panel] {
  display: none;
}

.chat-style-native-view .chat-style-section[data-style-panel].active {
  display: block;
}

.chat-style-native-view .chat-style-section-head > span {
  color: rgba(31,35,40,.34);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.2;
}

.chat-style-native-view .chat-style-section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.12;
  font-style: italic;
  letter-spacing: -.02em;
}

.chat-style-native-view .chat-style-section-head p {
  margin: 5px 0 0;
  color: var(--studio-muted);
  font-size: 11px;
  line-height: 1.55;
}

.chat-style-native-view .chat-style-toggle-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chat-style-native-view .chat-style-avatar-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-style-native-view .chat-style-bubble-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-style-native-view .chat-style-bubble-grid article:last-child {
  grid-column: 1 / -1;
}

.chat-style-native-view .chat-style-person-panel {
  border: 1px solid var(--studio-line);
  background: rgba(255,255,255,.66);
  padding: 12px;
}

.chat-style-native-view .chat-style-bubble-grid article {
  border: 1px solid var(--studio-line);
  background: rgba(255,255,255,.66);
  padding: 12px;
}

.chat-style-native-view .chat-style-person-panel header {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
}

.chat-style-native-view .chat-style-bubble-grid header {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
}

.chat-style-native-view .chat-style-person-panel strong {
  font-size: 12px;
  letter-spacing: .04em;
}

.chat-style-native-view .chat-style-bubble-grid strong {
  font-size: 12px;
  letter-spacing: .04em;
}

.chat-style-native-view .chat-style-person-panel span {
  color: var(--studio-muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
}

.chat-style-native-view .chat-style-bubble-grid span {
  color: var(--studio-muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
}

.chat-style-native-view .chat-style-css-field span {
  color: var(--studio-muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
}

.chat-style-native-view .chat-style-css-field {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.chat-style-native-view .chat-style-bubble-grid input[type="color"] {
  height: 34px;
  padding: 0;
  border: 1px solid var(--studio-line);
  background: #fff;
}

.chat-style-native-view .chat-style-range-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.chat-style-native-view .chat-style-range-control span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chat-style-native-view .chat-style-range-control em {
  color: #111;
  font-style: normal;
}

.chat-style-native-view .chat-style-template-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.chat-style-native-view .chat-style-thin {
  min-height: 34px;
  border: 1px solid var(--studio-line);
  background: transparent;
  color: var(--studio-ink);
  font-size: 10px;
  letter-spacing: .08em;
}

.chat-style-native-view .chat-style-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + var(--one-visual-bottom-gap, 0px) + 16px));
  z-index: 40;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  min-width: 120px;
  max-width: min(78vw, 280px);
  padding: 9px 14px;
  background: rgba(20,20,20,.86);
  color: #fff;
  text-align: center;
  font-size: 11px;
  letter-spacing: .04em;
  transition: opacity .18s ease, transform .18s ease;
}

.chat-style-native-view .chat-style-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.memory-settings-intro {
  margin: 8px 0 14px;
  color: rgba(78, 84, 94, 0.72);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.memory-setting-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 78, 89, 0.07);
  cursor: pointer;
}

.memory-setting-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.memory-setting-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.memory-setting-switch i {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(217, 220, 224, 0.78);
  box-shadow: inset 0 0 0 1px rgba(92, 96, 103, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.memory-setting-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.memory-setting-switch input:checked + i {
  background: rgba(47, 51, 57, 0.86);
  box-shadow: inset 0 0 0 1px rgba(20, 22, 26, 0.08);
}

.memory-setting-switch input:checked + i::after {
  transform: translateX(16px);
}

.memory-setting-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.memory-setting-chip {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(248, 249, 250, 0.76);
  border: 1px solid rgba(70, 74, 82, 0.08);
  color: rgba(92, 99, 109, 0.74);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.memory-setting-chip input:checked + span {
  color: rgba(35, 39, 46, 0.92);
}

.memory-setting-chip:has(input:checked) {
  background: rgba(244, 245, 246, 0.96);
  border-color: rgba(42, 46, 52, 0.18);
}

.memory-setting-chip.is-wide {
  grid-column: 1 / -1;
}

.memory-setting-source-head {
  margin-top: 6px;
}

.memory-setting-chip-static {
  cursor: default;
  color: rgba(35, 39, 46, 0.88);
  background: rgba(244, 245, 246, 0.92);
  border-color: rgba(42, 46, 52, 0.14);
}

.memory-setting-chip-static span {
  color: rgba(35, 39, 46, 0.88);
}

.memory-source-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.memory-source-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(245, 246, 247, 0.92);
  color: rgba(54, 59, 68, 0.76);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.memory-source-pill.is-off {
  color: rgba(143, 148, 156, 0.74);
  background: rgba(245, 246, 247, 0.52);
}

.memory-unified-actions button[data-memory-unified-action="manual"] {
  color: rgba(23, 26, 31, 0.92);
  background: rgba(250, 250, 251, 0.9);
}

.memory-worldbook-link-row {
  display: grid;
  gap: 5px;
  padding: 12px 2px 14px;
  border-bottom: 1px solid rgba(40, 46, 50, 0.08);
}

.memory-worldbook-link-row strong {
  color: rgba(30,34,37,.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
}

.memory-worldbook-link-row span {
  color: rgba(30,34,37,.46);
  font-size: 11px;
  line-height: 1.58;
  letter-spacing: .03em;
}

.memory-entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 11px;
}

.memory-entry-actions button {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(48,49,55,.12);
  background: rgba(255,255,255,.62);
  color: rgba(45,49,56,.78);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .05em;
}

.memory-queue-actions button {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(48,49,55,.12);
  background: rgba(255,255,255,.62);
  color: rgba(45,49,56,.78);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .05em;
}

.memory-conflict-actions button {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(48,49,55,.12);
  background: rgba(255,255,255,.62);
  color: rgba(45,49,56,.78);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .05em;
}

.memory-entry-actions button:first-child {
  color: rgba(23,26,31,.92);
  background: rgba(250,250,251,.9);
}

.memory-conflict-actions button[data-memory-conflict-action="merge"] {
  color: rgba(23,26,31,.92);
  background: rgba(250,250,251,.9);
}

.memory-timeline-body em {
  display: block;
  margin-top: 8px;
  color: rgba(101,108,116,.62);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .04em;
  font-style: normal;
}

.memory-queue-item .memory-timeline-body strong {
  color: rgba(42,45,52,.88);
}

.memory-conflict-item .memory-timeline-body strong {
  color: rgba(42,45,52,.88);
}

.memory-group-tabs button {
  min-height: 26px;
  border: 0;
  padding: 0 3px;
  background: transparent;
  color: #96999A;
  line-height: 1;
  letter-spacing: 0.07em;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  font-size: 10.5px;
}

.memory-settings-advanced {
  padding: 10px 2px 0;
  border-top: 1px solid rgba(40, 46, 50, 0.06);
}

.memory-settings-advanced > summary {
  cursor: pointer;
  color: rgba(30, 34, 37, 0.52);
  font-size: 11px;
  letter-spacing: 0.08em;
  list-style: none;
}

.memory-settings-advanced > summary::-webkit-details-marker {
  display: none;
}

.memory-settings-advanced > summary::after {
  content: "展开";
  float: right;
  color: rgba(30, 34, 37, 0.34);
}

.memory-settings-advanced[open] > summary::after {
  content: "收起";
}

.memory-timeline-item .memory-timeline-body strong {
  word-break: keep-all;
}

.memory-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.memory-filter-row select {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 20, 20, 0.82);
  font-size: 16px;
  letter-spacing: .04em;
  padding: 0 10px;
  outline: none;
  backdrop-filter: blur(14px);
}

.memory-manual-select {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 20, 20, 0.82);
  font-size: 16px;
  letter-spacing: .04em;
  padding: 0 10px;
  outline: none;
  backdrop-filter: blur(14px);
}

.memory-manual-modal {
  align-items: center;
  justify-content: center;
}

.memory-manual-dialog {
  width: min(92vw, 430px);
}

.memory-manual-textarea {
  min-height: 120px;
  resize: vertical;
}

.memory-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.memory-manual-grid .memory-setting-control:first-child {
  grid-column: 1 / -1;
}

.memory-manual-switches {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 520px) {
  .one-chat-push-banner {
  width: calc(100vw - 24px);
  border-radius: 24px;
  }

  .one-mini-chat-window {
  width: calc(100vw - 28px);
  height: min(500px, calc(100vh - 116px));
  border-radius: 28px;
  }

  .chat-style-native-view .chat-style-toggle-row {
  grid-template-columns: 1fr;
  }

  .chat-style-native-view .chat-style-avatar-grid {
  grid-template-columns: 1fr;
  }

  .chat-style-native-view .chat-style-bubble-grid {
  grid-template-columns: 1fr;
  }

  .chat-style-native-view .chat-style-topbar {
  grid-template-columns: 56px 1fr 64px;
  }

  .chat-style-native-view .chat-style-preview {
  height: 286px;
  }

  .chat-style-native-view .chat-style-category-tabs {
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  overflow-x: auto;
  }

  .memory-filter-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-manual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wb-derived-rules {
  margin: 18px 0 22px;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(34,35,34,0.10);
  border-bottom: 1px solid rgba(34,35,34,0.08);
}

.wb-derived-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wb-derived-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wb-derived-rule-card {
  padding: 12px 2px 14px;
  border-top: 1px solid rgba(34,35,34,0.08);
}

.wb-derived-rule-card:first-child {
  border-top: 0;
}

.wb-derived-rule-card strong {
  display: block;
  margin-bottom: 7px;
  color: #282825;
  font-size: 15px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.wb-derived-rule-card p {
  margin: 0;
  color: #4D4A44;
  font-size: 13px;
  line-height: 1.68;
}

.wb-derived-rule-card em {
  display: block;
  margin-top: 8px;
  color: #8B867D;
  font-size: 11px;
  line-height: 1.45;
  font-style: normal;
  letter-spacing: 0.08em;
}

.wb-derived-empty {
  padding: 14px 2px 16px;
  color: #8B867D;
  font-size: 13px;
  line-height: 1.7;
}

.chat-avatar-setting-list {
  margin: -6px 0 0;
}

.chat-thread-row.is-me .chat-thread-message-avatar .avatar-frame {
  display: none;
}

.chat-message-row.is-me .chat-thread-message-avatar .avatar-frame {
  display: none;
}

.chat-style-native-view .chat-thread-row.is-me .chat-thread-message-avatar .avatar-frame {
  display: none;
}

.chat-style-native-view .chat-message-row.is-me .chat-thread-message-avatar .avatar-frame {
  display: none;
}

.chat-avatar-library-head {
  margin-bottom: 24px;
  position: relative;
  padding-right: 98px;
}

.chat-avatar-library-actions {
  position: absolute;
  top: 2px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar-library-icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  color: rgba(36,39,45,0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(47,51,58,0.055), 0 10px 24px rgba(47,51,58,0.075);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chat-avatar-library-icon-btn.is-managing {
  background: rgba(47,51,58,0.90);
  color: #fff;
  transform: translateY(1px);
}

.chat-avatar-library-icon-btn:active {
  background: rgba(47,51,58,0.90);
  color: #fff;
  transform: translateY(1px);
}

.chat-avatar-library-icon-btn[data-avatar-library-action="manage"] {
  font-size: 15px;
}

.chat-avatar-library-file-input {
  display: none;
}

.chat-avatar-library-tabs-block {
  padding-top: 10px;
  margin-bottom: 26px;
}

.chat-avatar-library-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(47, 51, 58, 0.045);
  box-shadow: inset 0 0 0 1px rgba(47, 51, 58, 0.055);
}

.chat-avatar-library-tabs button {
  border: 0;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  color: rgba(47,51,58,0.44);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.chat-avatar-library-tabs button.is-active {
  background: rgba(255,255,255,0.82);
  color: #30353C;
  box-shadow: 0 10px 24px rgba(47,51,58,0.07), inset 0 0 0 1px rgba(255,255,255,0.84);
}

.chat-avatar-library-panel {
  display: none;
}

.chat-avatar-library-panel.is-active {
  display: block;
}

.chat-avatar-library-editor-field {
  margin: 0 0 18px;
}

.chat-avatar-library-editor-field textarea {
  min-height: 88px;
}

.chat-avatar-mood-policy {
  display: grid;
  gap: 12px;
  margin: -2px 0 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.52);
  box-shadow: inset 0 0 0 1px rgba(47,51,58,0.055), 0 12px 28px rgba(60,55,48,0.045);
}

.chat-avatar-mood-policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-avatar-mood-policy-head strong {
  display: block;
  color: #30353C;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.chat-avatar-mood-policy-head span {
  display: block;
  margin-top: 4px;
  color: rgba(47,51,58,0.44);
  font-size: 11px;
  line-height: 1.55;
}

.chat-avatar-mood-range {
  margin: 0;
}

.chat-avatar-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  color: rgba(47,51,58,0.50);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.chat-avatar-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chat-avatar-card-tags i {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(47,51,58,0.055);
  color: rgba(47,51,58,0.48);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.05em;
}

.chat-avatar-library-managebar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(47,51,58,0.055);
  box-shadow: inset 0 0 0 1px rgba(47,51,58,0.045);
}

.chat-avatar-library-managebar.is-active {
  display: flex;
}

.chat-avatar-library-managebar span {
  color: rgba(47,51,58,0.56);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.chat-avatar-library-managebar button {
  border: 0;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(47,51,58,0.88);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chat-avatar-library-managebar button:disabled {
  opacity: 0.36;
}

.chat-avatar-library-summary {
  margin: 6px 0 14px;
  color: rgba(47,51,58,0.36);
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-avatar-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chat-avatar-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 13px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.34)),
        rgba(244, 242, 238, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.82), 0 12px 30px rgba(60,55,48,0.055);
  overflow: hidden;
}

.chat-avatar-card.is-manageable {
  cursor: pointer;
}

.chat-avatar-card.is-selected {
  box-shadow: inset 0 0 0 1.5px rgba(47,51,58,0.48), 0 14px 32px rgba(47,51,58,0.10);
}

.chat-avatar-card-select {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  box-shadow: inset 0 0 0 1px rgba(47,51,58,0.16);
  z-index: 2;
}

.chat-avatar-card.is-selected .chat-avatar-card-select {
  background: #25282E;
  box-shadow: none;
}

.chat-avatar-card.is-selected .chat-avatar-card-select::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

.chat-avatar-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 20px;
  height: 1px;
  background: rgba(47,51,58,0.12);
  transform: rotate(-12deg);
}

.chat-avatar-card-image {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(232,233,230,0.8) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.82), 0 10px 24px rgba(47,51,58,0.08);
}

.chat-avatar-couple-preview {
  display: grid;
  grid-template-columns: 68px minmax(24px, 1fr) 68px;
  align-items: center;
  gap: 4px;
  min-height: 78px;
}

.chat-avatar-couple-preview span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(232,233,230,0.8) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.82), 0 10px 24px rgba(47,51,58,0.08);
}

.chat-avatar-couple-preview span:last-child {
  justify-self: end;
}

.chat-avatar-couple-preview i {
  display: block;
  width: 100%;
  height: 24px;
  background: center / 100% 100% no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20120%2024%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M2%2012H43L47%2012L50%207L54%2017L58%2012L62%208L66%2016L70%2012L74%209L78%2015L81%2012H118%27%20stroke%3D%27%232f333a%27%20stroke-opacity%3D%27.26%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}

.chat-avatar-import-modal-box {
  width: min(560px, calc(100vw - 28px));
}

.chat-avatar-import-modal-content {
  display: grid;
  gap: 14px;
}

.chat-avatar-import-copy {
  line-height: 1.65;
}

.chat-avatar-import-batch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.chat-avatar-import-batch-field {
  display: grid;
  gap: 6px;
}

.chat-avatar-import-batch-field span {
  color: rgba(47,51,58,0.46);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.chat-avatar-import-desc-field span {
  color: rgba(47,51,58,0.46);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.chat-avatar-import-batch-apply {
  border: 0;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(47,51,58,0.88);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.chat-avatar-import-pair-list {
  display: grid;
  gap: 12px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 2px;
}

.chat-avatar-import-pair-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.42)), rgba(244,242,238,0.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.82), 0 12px 28px rgba(60,55,48,0.05);
}

.chat-avatar-import-pair-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-avatar-import-side-names {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-avatar-import-pair-head strong {
  color: #30353C;
  font-size: 13px;
}

.chat-avatar-import-pair-head span {
  color: rgba(47,51,58,0.4);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.chat-avatar-import-side-names span {
  color: rgba(47,51,58,0.4);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.chat-avatar-import-side-names span:last-child {
  text-align: right;
}

.chat-avatar-couple-preview.is-import {
  min-height: 74px;
}

.chat-avatar-import-role-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.chat-avatar-import-role-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(47,51,58,0.055);
  box-shadow: inset 0 0 0 1px rgba(47,51,58,0.045);
}

.chat-avatar-import-role-group button {
  border: 0;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  color: rgba(47,51,58,0.44);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chat-avatar-import-role-group button.is-active {
  background: rgba(47,51,58,0.88);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47,51,58,0.12);
}

.chat-avatar-import-desc-field {
  display: grid;
  gap: 6px;
}

.chat-avatar-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.chat-avatar-card-copy strong {
  color: #333941;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-avatar-card-copy span {
  color: rgba(47,51,58,0.38);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.07em;
}

.chat-avatar-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.chat-avatar-card-actions button {
  border: 0;
  min-width: 46px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47,51,58,0.88);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(47,51,58,0.12);
}

.chat-avatar-library-empty {
  margin-top: 14px;
  padding: 24px 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.46);
  color: rgba(47,51,58,0.42);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(47,51,58,0.05);
}

.chat-date-line {
  margin-top: 12px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.16em;
  color: var(--chat-muted);
  font-size: 10.5px;
  line-height: 1.62;
}

.chat-assets-subtitle {
  max-width: 236px;
  margin: 13px 0 0;
  color: #8A93A0;
  letter-spacing: 0.045em;
  font-size: 10.5px;
  line-height: 1.62;
}

.chat-sticker-subtitle {
  max-width: 226px;
  margin: 18px 0 0;
  color: var(--chat-muted);
  letter-spacing: 0.055em;
  opacity: 0.9;
  font-size: 10.5px;
  line-height: 1.62;
}

.chat-setting-head p {
  width: min(92%, 342px);
  margin: 0;
  color: rgba(47,51,58,0.44);
  letter-spacing: 0.02em;
  font-size: 10.5px;
  line-height: 1.62;
}

.chat-assets-kicker {
  margin-bottom: 9px;
  font-family: "Courier New", Courier, monospace;
  line-height: 1;
  color: #9AA2AD;
  text-transform: uppercase;
  font-size: 8.8px;
  letter-spacing: 0.18em;
}

.chat-sticker-kicker {
  color: var(--chat-muted);
  font-family: "Courier New", Courier, monospace;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 18px;
  white-space: nowrap;
  opacity: 0.86;
  font-size: 8.8px;
  letter-spacing: 0.18em;
}

.chat-ta-subpage-title span {
  display: block;
  font-family: "Courier New", Courier, monospace;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(52,57,65,0.42);
  font-style: normal;
  font-size: 8.8px;
  letter-spacing: 0.18em;
}

.chat-setting-title span {
  display: block;
  margin: 0 0 7px;
  color: rgba(47,51,58,0.30);
  font-family: "Courier New", monospace;
  line-height: 1;
  font-size: 8.8px;
  letter-spacing: 0.18em;
}

.chat-dyn-hero.has-custom-cover::before {
  content: none;
  display: none;
}

.chat-dyn-hero:has(.chat-dyn-hero-bg.has-image)::before {
  content: none;
  display: none;
}

.chat-pay-send-dialog {
  max-width: 320px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.chat-pay-status-dialog {
  max-width: 320px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.chat-pay-send-content {
  padding: 24px 20px 20px;
  gap: 16px;
}

.chat-pay-send-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-pay-send-field span {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: rgba(52, 56, 65, 0.48);
  text-transform: uppercase;
}

.chat-pay-send-input {
  background: #f6f4ef;
  user-select: text;
  -webkit-user-select: text;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background-color: #FAFBFC;
  color: #5d636e;
  font-size: 16px;
  outline: none;
  box-shadow: none;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.chat-pay-send-textarea {
  background: #f6f4ef;
  user-select: text;
  -webkit-user-select: text;
  min-height: 70px;
  resize: none;
  line-height: 1.58;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background-color: #FAFBFC;
  color: #5d636e;
  font-size: 16px;
  outline: none;
  box-shadow: none;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.chat-pay-send-input:focus {
  background-color: #ffffff;
  border-color: rgba(17, 17, 17, 0.42);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.055);
}

.chat-pay-send-textarea:focus {
  background-color: #ffffff;
  border-color: rgba(17, 17, 17, 0.42);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.055);
}

.chat-pay-method-select:focus {
  background-color: #ffffff;
  border-color: rgba(17, 17, 17, 0.42);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.055);
}

.chat-pay-method-select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background-color: #FAFBFC;
  color: #5d636e;
  font-size: 16px;
  outline: none;
  box-shadow: none;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #9aa0ab 50%), linear-gradient(135deg, #9aa0ab 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.chat-style-native-view .chat-style-category-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: flex;
  gap: 18px;
  border-bottom: 1px solid rgba(31, 35, 40, 0.10);
  padding: 0 2px 6px;
}

.chat-style-native-view .chat-style-category-tab {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  flex: 0 0 auto;
  min-height: 30px;
  border-bottom: 1px solid transparent;
  padding: 0 1px 7px;
  color: rgba(31, 35, 40, 0.45);
  letter-spacing: 0.12em;
}

.chat-style-native-view .chat-style-category-tab.active {
  color: #111111;
  border-bottom-color: #111111;
}

.chat-style-native-view .chat-style-section {
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
  padding: 0 0 14px;
}

.chat-style-native-view .chat-style-section-head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 14px;
  margin-bottom: 12px;
}

.chat-style-native-view .chat-style-section-head::after {
  content: "";
  display: block;
  grid-column: 2;
  width: 44px;
  height: 1px;
  margin-top: 9px;
  background: rgba(31, 35, 40, 0.12);
}

.chat-style-native-view .chat-style-toggle-row label {
  color: var(--studio-muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
  display: grid;
  gap: 7px;
}

.chat-style-native-view .chat-style-person-panel label {
  margin-top: 9px;
  display: grid;
  gap: 7px;
}

.chat-style-native-view .chat-style-bubble-grid label {
  margin-top: 9px;
  display: grid;
  gap: 7px;
}

.chat-style-native-view .chat-style-person-panel select {
  border: 0;
  border-bottom: 1px solid var(--studio-line);
  border-radius: 0;
  background: transparent;
  color: var(--studio-ink);
  padding: 7px 0;
  outline: 0;
  width: 100%;
  box-sizing: border-box;
}

.chat-style-native-view .chat-style-bubble-grid input {
  border: 0;
  border-bottom: 1px solid var(--studio-line);
  border-radius: 0;
  background: transparent;
  color: var(--studio-ink);
  padding: 7px 0;
  outline: 0;
  width: 100%;
  box-sizing: border-box;
}

.chat-style-native-view .chat-style-css-field textarea {
  border: 0;
  border-bottom: 1px solid var(--studio-line);
  border-radius: 0;
  background: transparent;
  color: var(--studio-ink);
  padding: 7px 0;
  outline: 0;
  min-height: 118px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.55;
  width: 100%;
  box-sizing: border-box;
}

.chat-style-native-view .chat-style-toggle-row select {
  width: 100%;
  box-sizing: border-box;
}

.chat-style-native-view .chat-style-frame-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 2px;
}

.chat-style-native-view .chat-style-frame-upload-row .chat-style-thin {
  min-height: 34px;
}

.chat-avatar-frame--none {
  display: none;
}

.avatar-frame.chat-avatar-frame--custom-image {
  inset: -9px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

.avatar-frame.chat-avatar-frame--custom-image::before {
  content: none;
  display: none;
}

.avatar-frame.chat-avatar-frame--custom-image::after {
  content: none;
  display: none;
}

.chat-avatar-frame--none::before {
  content: none;
  display: none;
}

.chat-avatar-frame--none::after {
  content: none;
  display: none;
}

.chat-thread-tool-icon .chat-tool-watch {
  width: 22px;
  height: 22px;
  display: block;
}

.chat-heart-modal {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(38, 42, 48, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.chat-heart-modal.is-diary-heart {
  padding: 0;
  background: rgba(245,243,240,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.chat-heart-dialog {
  color: #343941;
  position: relative;
  width: min(380px, calc(100vw - 28px));
  max-height: min(92vh, 760px);
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.chat-heart-modal.is-diary-heart .chat-heart-dialog {
  width: 100vw;
  max-width: 100vw;
  max-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.chat-heart-dialog::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(117,124,135,0.10);
  border-radius: 24px;
  pointer-events: none;
  z-index: 1;
  content: none;
  display: none;
}

.chat-heart-dialog::after {
  position: absolute;
  right: 24px;
  top: 22px;
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(52,57,65,0.30);
  pointer-events: none;
  z-index: 2;
  content: none;
  display: none;
}

.chat-heart-panel-mount {
  --page-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --text-main: #2D2D2D;
  --text-sub: #707070;
  --text-light: #9C9C9C;
  --sage-green: #5A5A5A;
  --divider-color: #E6E6E6;
  margin: 0 auto;
  padding: 40px 0 160px 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  font-family: -apple-system, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: visible;
}

.chat-heart-panel-mount .card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.chat-heart-panel-mount .aesthetic-card {
  width: min(340px, calc(100vw - 44px));
  background-color: var(--card-bg);
  border-radius: 35px;
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.chat-heart-panel-mount .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chat-heart-panel-mount .profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-heart-panel-mount .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120, 132, 112, 0.1);
  background-color: #FAF6EE;
  flex-shrink: 0;
}

.chat-heart-panel-mount .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-heart-panel-mount .meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-heart-panel-mount .user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 155px;
}

.chat-heart-panel-mount .project-tag {
  font-size: 10px;
  color: var(--text-sub);
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

.chat-heart-panel-mount .heart-rate-journal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.chat-heart-panel-mount .bpm-unit {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 11px;
  font-style: italic;
  color: var(--text-sub);
  margin-left: 2px;
}

.chat-heart-panel-mount .weather-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 4px;
  font-family: -apple-system, sans-serif;
  line-height: 1;
  white-space: nowrap;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-heart-panel-mount .weather-emoji {
  font-size: 11px;
  color: var(--text-main);
  display: inline-block;
  flex: 0 0 auto;
}

.chat-heart-panel-mount .weather-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-heart-panel-mount .quote-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.chat-heart-panel-mount .section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  width: 100%;
}

.chat-heart-panel-mount .section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--divider-color);
  opacity: 0.8;
}

.chat-heart-panel-mount .quote-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-main);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin: 0;
  text-align: justify;
  position: relative;
  z-index: 1;
}

.chat-heart-panel-mount .dark-text {
  color: var(--text-sub);
  font-style: italic;
}

.chat-heart-panel-mount .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  font-size: 10px;
  color: var(--text-sub);
  letter-spacing: 0.05em;
  gap: 12px;
}

.chat-heart-panel-mount .price-text {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-main);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.chat-heart-panel-mount .card-decor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-light);
  padding-bottom: 4px;
  margin-bottom: -16px;
}

.chat-heart-panel-mount .decor-sep {
  font-size: 8px;
  color: var(--text-light);
  opacity: 0.6;
}

.chat-heart-panel-mount .voice-section {
  position: relative;
}

.chat-heart-panel-mount .voice-section::before {
  content: "“";
  position: absolute;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 68px;
  color: var(--divider-color);
  opacity: 0.25;
  top: -24px;
  left: -24px;
  pointer-events: none;
  line-height: 1;
}

.chat-heart-panel-mount .shadow-section {
  position: relative;
}

.chat-heart-panel-mount .shadow-section::after {
  content: "”";
  position: absolute;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 68px;
  color: var(--divider-color);
  opacity: 0.25;
  bottom: -34px;
  right: -24px;
  pointer-events: none;
  line-height: 1;
}

.chat-heart-panel-mount .decor-barcode-section {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  min-width: 0;
}

.chat-heart-panel-mount .barcode-lines {
  display: flex;
  gap: 1.5px;
  height: 9px;
  align-items: center;
  flex: 0 0 auto;
}

.chat-heart-panel-mount .barcode-lines span {
  width: 1px;
  height: 100%;
  background-color: var(--text-light);
  display: inline-block;
}

.chat-heart-panel-mount .barcode-lines span:nth-child(2n) {
  width: 1.5px;
}

.chat-heart-panel-mount .barcode-lines span:nth-child(3n) {
  width: 0.5px;
}

.chat-heart-panel-mount .barcode-lines span:nth-child(5n) {
  width: 2px;
}

.chat-heart-panel-mount .barcode-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 7px;
  letter-spacing: 0.15em;
  color: var(--text-light);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-heart-panel-mount .exquisite-pendant {
  position: absolute;
  bottom: -130px;
  right: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: gentle-sway 4.5s ease-in-out infinite alternate;
  z-index: 1;
}

.chat-heart-panel-mount .pendant-string {
  width: 1px;
  height: 50px;
  background-color: var(--text-sub);
  opacity: 0.6;
}

.chat-heart-panel-mount .pendant-body {
  background-color: var(--card-bg);
  border: 1px solid var(--text-main);
  border-radius: 0;
  width: 32px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding: 8px 0;
}

.chat-heart-panel-mount .pendant-body:hover {
  transform: translateY(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chat-heart-panel-mount .pendant-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-main);
  writing-mode: vertical-rl;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(180deg);
}

.chat-heart-actions .chat-heart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  border: 1px solid rgba(112,112,112,0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: #FFFFFF;
  color: #5A5A5A;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  box-shadow: none;
}

.chat-heart-actions .chat-heart-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  border: 1px solid rgba(112,112,112,0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  box-shadow: none;
  color: #2D2D2D;
}

.chat-heart-history {
  display: grid;
  margin-top: 2px;
  gap: 8px;
  max-height: 130px;
  overflow-y: auto;
  margin: 0 16px 16px;
  padding-right: 2px;
  scrollbar-width: none;
}

.chat-heart-history::-webkit-scrollbar {
  display: none;
}

.chat-heart-history-item {
  border-radius: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 46px;
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(112,112,112,0.10);
  background: #FFFFFF;
  padding: 10px 11px;
}

.chat-heart-history-item span {
  display: block;
  margin-bottom: 4px;
  margin: 0;
  color: #9C9C9C;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
}

.chat-heart-history-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  margin: 0;
  color: #707070;
  line-height: 1.45;
  font-weight: 400;
}

.chat-heart-history-item p {
  margin: 0;
  grid-column: 2 / 3;
  color: #707070;
  font-size: 11px;
  line-height: 1.48;
}

.chat-heart-history-empty {
  margin: 0;
  grid-column: 2 / 3;
  color: #707070;
  font-size: 11px;
  line-height: 1.48;
}

.chat-heart-history-item em {
  color: #9C9C9C;
  font-style: normal;
  font-size: 10px;
  text-align: right;
}

@keyframes gentle-sway {
0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

@media (max-width: 360px) {
  .chat-avatar-library-grid {
  grid-template-columns: 1fr;
  }

  .chat-avatar-card-image {
  width: 72px;
  height: 72px;
  }

  .chat-heart-modal {
  padding-left: 12px;
  padding-right: 12px;
  }

  .chat-heart-panel-mount .aesthetic-card {
  padding: 28px 24px;
  gap: 32px;
  }

  .chat-heart-panel-mount .project-tag {
  max-width: 128px;
  }

  .chat-heart-panel-mount .user-name {
  max-width: 128px;
  }

  .chat-heart-panel-mount .weather-display {
  max-width: 102px;
  }

  .chat-heart-panel-mount .exquisite-pendant {
  right: 34px;
  }
}

.chat-thread-input {
  width: 100%;
  min-height: 44px;
  max-height: 92px;
  box-sizing: border-box;
  resize: none;
  overflow-y: hidden;
  border-radius: 999px;
  border: 0;
  background-color: rgba(255, 255, 255, 0.30);
  background-image: radial-gradient(circle at 24% 18%, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.38) 34%, rgba(255,255,255,0) 72%), linear-gradient(145deg, rgba(255,255,255,0.52), rgba(255,255,255,0.20));
  color: rgba(31, 36, 42, 0.88);
  --chat-clear-glass-shadow: 0 14px 34px rgba(22, 29, 36, 0.065);
  --chat-clear-glass-inset: inset 0 1px 0 rgba(255,255,255,0.54), inset 0 0 0 1px rgba(255,255,255,0.20);
  --chat-clear-glass-filter: blur(34px) saturate(1.24);
  box-shadow: var(--chat-clear-glass-shadow), var(--chat-clear-glass-inset);
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
  padding: 11px 18px;
  outline: none;
  font-size: 16px;
  line-height: 1.42;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
  scrollbar-width: none;
}

.chat-thread-input-glass {
  width: 100%;
  min-height: 44px;
  max-height: 92px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 0;
  background-color: rgba(255, 255, 255, 0.22);
  background-image: radial-gradient(circle at 24% 18%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.24) 34%, rgba(255,255,255,0) 72%), linear-gradient(145deg, rgba(255,255,255,0.36), rgba(255,255,255,0.10));
  color: rgba(31, 36, 42, 0.88);
  --chat-input-glass-shadow: 0 14px 34px rgba(22, 29, 36, 0.065);
  --chat-input-glass-inset: inset 0 1px 0 rgba(255,255,255,0.50), inset 0 0 0 1px rgba(255,255,255,0.18);
  --chat-input-glass-filter: blur(34px) saturate(1.24);
  box-shadow: var(--chat-input-glass-shadow), var(--chat-input-glass-inset);
  -webkit-backdrop-filter: var(--chat-input-glass-filter);
  backdrop-filter: var(--chat-input-glass-filter);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  pointer-events: auto;
  background-clip: padding-box;
  isolation: isolate;
}

.chat-thread-input-glass > .chat-thread-input {
  min-height: 44px;
  max-height: 92px;
  background: transparent;
  background-color: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.chat-thread-input-glass > .chat-thread-input.is-multiline {
  border-radius: 0;
}

.chat-thread-soft-card {
  width: min(92%, 320px);
  margin: 10px auto 12px;
  padding: 13px 14px;
  border-radius: 20px;
  border: 1px solid rgba(170, 176, 184, 0.22);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 30px rgba(88, 96, 106, 0.055), inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #5d646e;
}

.chat-thread-soft-card-copy {
  display: grid;
  gap: 5px;
  text-align: left;
}

.chat-thread-soft-card-copy strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #414851;
}

.chat-thread-soft-card-copy span {
  font-size: 11px;
  line-height: 1.6;
  color: #858c96;
}

.chat-thread-soft-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.chat-thread-soft-card-actions button {
  min-width: 64px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(236, 238, 241, 0.86);
  color: #737b86;
  font-size: 12px;
  letter-spacing: 0.02em;
  appearance: none;
  -webkit-appearance: none;
}

.chat-thread-soft-card-actions button.is-primary {
  background: rgba(34, 36, 40, 0.92);
  color: rgba(255,255,255,0.92);
}

.chat-thread-soft-card.chat-virtual-login-card {
  border-color: rgba(130, 140, 150, 0.24);
  background: rgba(248, 250, 251, 0.66);
}

.chat-thread-row.is-blocked-attempt .chat-thread-message-avatar {
  opacity: 0.64;
}

.chat-thread-row.is-system .chat-thread-bubble.is-system-text {
  max-width: 82%;
  opacity: 0.78;
}

.chat-thread-record-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 220px;
  height: 120px;
  padding: 14px 15px 12px;
  border: 1px solid rgba(88, 70, 62, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(239,232,224,0.58)),
        radial-gradient(circle at 88% 18%, rgba(129, 95, 79, 0.12), transparent 38%);
  box-shadow: 0 12px 28px rgba(46, 39, 34, 0.10), inset 0 1px 0 rgba(255,255,255,0.72);
  color: #3A332D;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.chat-thread-record-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(69, 56, 49, 0.10);
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
}

.chat-thread-record-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(58, 51, 45, 0.48);
  text-transform: uppercase;
}

.chat-thread-record-title {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.38;
  font-weight: 650;
  color: #2F2924;
}

.chat-thread-record-excerpt {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 164px;
  font-size: 12px;
  color: rgba(49, 43, 38, 0.62);
}

.chat-thread-record-foot {
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: rgba(49, 43, 38, 0.42);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chat-thread-bubble.is-account-impersonation-card .chat-thread-record-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.80), rgba(232,226,220,0.64)),
        radial-gradient(circle at 90% 15%, rgba(112, 72, 69, 0.15), transparent 40%);
}

.chat-record-detail-view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: radial-gradient(circle at 12% 4%, rgba(255,255,255,0.72), transparent 32%),
        linear-gradient(180deg, rgba(246,242,237,0.96), rgba(236,230,224,0.92));
  color: #292520;
  overflow: hidden;
}

.chat-record-detail-view.active {
  display: flex;
}

.chat-record-detail-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 18px 18px 10px;
  background: transparent;
  border-bottom: 0;
}

.chat-record-detail-back {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(39, 34, 30, 0.86);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.chat-record-detail-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  transform: translateX(-26px);
}

.chat-record-detail-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 28px;
  overflow-y: auto;
  scrollbar-width: none;
}

.chat-record-detail-body::-webkit-scrollbar {
  display: none;
}

.chat-record-detail-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid rgba(69, 58, 50, 0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.48);
  box-shadow: 0 10px 24px rgba(39, 33, 28, 0.06);
}

.chat-record-detail-summary span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(43, 37, 32, 0.42);
}

.chat-record-detail-summary strong {
  font-size: 15px;
  color: #2F2924;
}

.chat-record-detail-summary p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(47, 41, 36, 0.58);
}

.chat-record-detail-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.chat-record-detail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(62, 51, 44, 0.10);
  background: rgba(255,255,255,0.54);
  color: rgba(47, 41, 36, 0.48);
  font-size: 10px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.chat-record-detail-content {
  min-width: 0;
  padding: 10px 12px 11px;
  border-radius: 15px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(63, 53, 46, 0.08);
  box-shadow: 0 8px 20px rgba(39, 33, 28, 0.05);
}

.chat-record-detail-line.is-user .chat-record-detail-content {
  background: rgba(247, 242, 236, 0.74);
}

.chat-record-detail-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.chat-record-detail-meta strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #2F2924;
}

.chat-record-detail-meta span {
  flex: none;
  font-size: 10px;
  color: rgba(47, 41, 36, 0.38);
}

.chat-record-detail-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: rgba(37, 32, 28, 0.78);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-record-detail-empty {
  margin: auto;
  font-size: 13px;
  color: rgba(43, 37, 32, 0.45);
}

.chat-abnormal-login-panel {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(35, 31, 28, 0.18);
  opacity: 0;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.chat-abnormal-login-panel.show {
  opacity: 1;
}

.chat-abnormal-login-sheet {
  width: min(100%, 328px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(68, 57, 50, 0.12);
  background: rgba(247, 243, 238, 0.82);
  box-shadow: 0 24px 60px rgba(36, 30, 25, 0.18);
  transform: translateY(16px) scale(0.985);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.chat-abnormal-login-panel.show .chat-abnormal-login-sheet {
  transform: translateY(0) scale(1);
}

.chat-abnormal-login-eyebrow {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(45, 39, 34, 0.42);
}

.chat-abnormal-login-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 680;
  color: #2E2924;
}

.chat-abnormal-login-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(46, 40, 35, 0.64);
}

.chat-abnormal-login-identity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(61, 51, 44, 0.09);
  background: rgba(255, 255, 255, 0.46);
}

.chat-abnormal-login-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(54, 45, 39, 0.10);
  background: rgba(255,255,255,0.66);
  background-size: cover;
  background-position: center;
  color: rgba(46, 40, 35, 0.46);
  font-size: 11px;
}

.chat-abnormal-login-identity b {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #2E2924;
}

.chat-abnormal-login-identity span {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 11px;
  font-style: normal;
  color: rgba(46, 40, 35, 0.48);
}

.chat-abnormal-login-identity em {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 11px;
  font-style: normal;
  color: rgba(46, 40, 35, 0.48);
}

.chat-abnormal-login-warning {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(119, 70, 64, 0.08);
  color: rgba(91, 53, 48, 0.68);
}

.chat-abnormal-login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 2px;
}

.chat-abnormal-login-actions button {
  min-height: 42px;
  border: 1px solid rgba(55, 47, 42, 0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.52);
  color: rgba(43, 37, 32, 0.74);
  font-size: 14px;
  cursor: pointer;
}

.chat-abnormal-login-actions button.is-primary {
  background: rgba(39, 34, 30, 0.88);
  color: rgba(255, 252, 248, 0.94);
}

.chat-account-security-view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: radial-gradient(circle at 18% 0%, rgba(255,255,255,0.72), transparent 34%),
        linear-gradient(180deg, rgba(248,247,243,0.98) 0%, rgba(241,239,234,0.96) 52%, rgba(232,236,237,0.96) 100%);
  color: rgba(41, 37, 33, 0.92);
  overflow: hidden;
}

.chat-account-security-view.active {
  display: flex;
}

.chat-account-security-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top)) 22px 8px;
  background: transparent;
  border-bottom: 0;
}

.chat-account-security-back {
  justify-self: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(52, 47, 42, 0.76);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.chat-account-security-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--serif-font, Georgia, serif);
  font-size: 21px;
  font-style: italic;
  font-weight: 520;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgba(45, 40, 35, 0.9);
}

.chat-account-security-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 24px max(34px, env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none;
}

.chat-account-security-body::-webkit-scrollbar {
  display: none;
}

.chat-account-security-summary {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 0 21px;
  border-bottom: 1px solid rgba(70, 63, 56, 0.14);
}

.chat-account-security-summary span {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(65, 58, 51, 0.42);
}

.chat-account-security-summary strong {
  font-family: var(--serif-font, Georgia, serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 520;
  color: rgba(43, 38, 34, 0.9);
}

.chat-account-security-summary p {
  margin: 0;
  font-size: 12px;
  line-height: 1.72;
  color: rgba(56, 50, 44, 0.58);
}

.chat-account-security-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.72;
  color: rgba(56, 50, 44, 0.58);
}

.chat-account-security-empty {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 24px 0;
  border-bottom: 1px solid rgba(70, 63, 56, 0.10);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(63, 56, 50, 0.46);
  text-align: left;
}

.chat-account-security-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px 0 18px;
  border-bottom: 1px solid rgba(70, 63, 56, 0.11);
}

.chat-account-security-card.is-forced_success {
  background: transparent;
  border-color: rgba(116, 70, 63, 0.24);
}

.chat-account-security-card-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.chat-account-security-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(65, 58, 51, 0.12);
  background: rgba(255,255,255,0.38);
  background-size: cover;
  background-position: center;
  color: rgba(54, 49, 44, 0.44);
  font-size: 11px;
}

.chat-account-security-card-head strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
  color: rgba(43, 38, 34, 0.9);
}

.chat-account-security-card-head span {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(56, 50, 44, 0.44);
}

.chat-account-security-card-head em {
  padding: 0 0 3px;
  border-radius: 0;
  border-bottom: 1px solid rgba(63, 56, 50, 0.28);
  background: transparent;
  color: rgba(52, 46, 41, 0.64);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.chat-account-security-card.is-forced_success .chat-account-security-card-head em {
  background: transparent;
  border-color: rgba(116, 70, 63, 0.38);
  color: rgba(101, 54, 48, 0.76);
}

.chat-account-security-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.chat-account-security-meta span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(56, 50, 44, 0.42);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.chat-app-page.account-security-open .chat-bottom-dock {
  display: none;
}

.chat-account-security-view.active ~ .chat-bottom-dock {
  display: none;
}

.chat-heart-actions {
  gap: 8px;
  justify-content: center;
  padding: 0 16px 12px;
  display: none;
}

.chat-heart-refresh {
  align-self: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255,255,255,0.78);
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 26px rgba(31,41,55,0.12);
  display: none;
}

.chat-heart-close {
  display: none;
}

.chat-heart-modal.is-diary-heart .chat-heart-panel-mount {
  min-height: 100dvh;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.chat-heart-modal.is-diary-heart .chat-heart-panel-mount > * {
  width: 100vw;
  max-width: 100vw;
}

@media (max-width: 640px) {
  .chat-diary-heart-shell {
    padding: 0;
  }

  .chat-diary-heart-stage {
    width: 340px;
    height: 490px;
  }

  .chat-diary-heart-mainwrap,
  .chat-diary-heart-papercard,
  .chat-diary-heart-paperclip,
  .chat-diary-heart-darkcard {
    position: absolute;
    margin: 0;
  }
}

@media (max-width: 374px) {
  .chat-diary-heart-shell {
    --chat-diary-heart-scale: 0.94;
  }
}

@media (max-width: 340px) {
  .chat-diary-heart-shell {
    --chat-diary-heart-scale: 0.88;
  }
}


.chat-heart-history[hidden] {
  display: none;
}

.chat-heart-panel-mount .voice-history-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -24px 0 -18px;
  padding: 1px 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-heart-panel-mount .voice-history-tabs::-webkit-scrollbar {
  display: none;
}

.chat-heart-panel-mount .voice-history-tab {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--divider-color);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--text-light);
  font-size: 9px;
  line-height: 22px;
  letter-spacing: 0.12em;
  font-family: "Courier New", Courier, monospace;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.chat-heart-panel-mount .voice-history-tab.is-active {
  color: var(--text-main);
  border-color: rgba(45,45,45,0.34);
  background: #FFFFFF;
}

.chat-heart-panel-mount .voice-history-tab:active {
  transform: translateY(1px);
}

.chat-heart-panel-mount .chat-heart-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid var(--chat-line-strong, rgba(74,78,89,0.20));
  border-radius: 50%;
  background: rgba(255,255,255,0.72);
  color: #4A4E59;
  font-size: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.chat-heart-panel-mount .chat-heart-nav::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.7px solid currentColor;
  border-right: 1.7px solid currentColor;
}

.chat-heart-panel-mount .chat-heart-nav.is-prev {
  left: -18px;
}

.chat-heart-panel-mount .chat-heart-nav.is-next {
  right: -18px;
}

.chat-heart-panel-mount .chat-heart-nav.is-prev::before {
  transform: translateX(1px) rotate(-135deg);
}

.chat-heart-panel-mount .chat-heart-nav.is-next::before {
  transform: translateX(-1px) rotate(45deg);
}

.chat-heart-panel-mount .chat-heart-nav:active {
  transform: translateY(1px);
}

.chat-heart-panel-mount .chat-heart-nav:disabled {
  opacity: 0.34;
  cursor: default;
}

.chat-heart-panel-mount > .chat-heart-history-empty {
  min-width: 230px;
  padding: 18px 20px;
  border-radius: 24px;
  background: #FFFFFF;
  color: #707070;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.chat-assets-sub-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 18px;
  color: rgba(72, 80, 86, .68);
  font-size: 12px;
  letter-spacing: .08em;
}

.chat-assets-sub-balance strong {
  color: rgba(41, 48, 53, .82);
  font-weight: 600;
}

.chat-assets-sub-balance em {
  font-style: normal;
}

.chat-phone-recharge-view {
  min-height: 100%;
  padding: 18px 18px 26px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 50% -18%, rgba(210, 219, 219, .38), transparent 42%), rgba(246, 244, 239, .76);
}

.chat-travel-view {
  min-height: 100%;
  padding: 18px 18px 26px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 50% -18%, rgba(210, 219, 219, .38), transparent 42%), rgba(246, 244, 239, .76);
}

.chat-phone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.chat-phone-shell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 252, .52);
  border: 1px solid rgba(106, 116, 112, .12);
  box-shadow: 0 18px 42px rgba(66, 72, 72, .07);
  backdrop-filter: blur(18px);
}

.chat-phone-shell::before {
  content: "";
  position: absolute;
  inset: 0 22px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 122, 119, .2), transparent);
}

.chat-travel-empty-state::before {
  content: "";
  position: absolute;
  inset: 0 22px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 122, 119, .2), transparent);
}

.chat-phone-balance-panel {
  display: grid;
  gap: 8px;
  padding: 4px 2px 16px;
}

.chat-phone-balance-panel span {
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(72, 80, 86, .52);
  text-transform: uppercase;
}

.chat-phone-custom span {
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(72, 80, 86, .52);
  text-transform: uppercase;
}

.chat-phone-balance-panel strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  color: rgba(42, 48, 50, .88);
}

.chat-phone-balance-panel em {
  font-style: normal;
}

.chat-phone-balance-panel p {
  margin: 0;
  color: rgba(64, 70, 72, .58);
  font-size: 12px;
  line-height: 1.7;
}

.chat-phone-recipient-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 4px 0 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(126, 137, 132, .09);
}

.chat-phone-recipient {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(58, 65, 66, .6);
  font-size: 13px;
  padding: 9px 10px;
  cursor: pointer;
}

.chat-phone-recipient.is-active {
  background: rgba(255, 255, 252, .72);
  color: rgba(42, 49, 49, .86);
  box-shadow: inset 0 0 0 1px rgba(100, 112, 108, .1);
}

.chat-phone-char-picker {
  display: none;
  margin: -2px 0 16px;
}

.chat-phone-char-picker.show {
  display: block;
}

.chat-phone-char-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.chat-phone-char-list::-webkit-scrollbar {
  display: none;
}

.chat-phone-char-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 11px 8px 8px;
  background: rgba(255, 255, 252, .5);
  color: rgba(48, 55, 56, .74);
  box-shadow: inset 0 0 0 1px rgba(103, 113, 110, .12);
}

.chat-phone-char-chip.is-active {
  background: rgba(221, 226, 220, .54);
  color: rgba(35, 42, 43, .9);
}

.chat-phone-char-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(118, 128, 124, .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  overflow: hidden;
}

.chat-phone-char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-phone-char-empty {
  color: rgba(66, 72, 72, .52);
  font-size: 12px;
  padding: 8px 2px;
}

.chat-phone-record-empty {
  color: rgba(66, 72, 72, .52);
  font-size: 12px;
  padding: 8px 2px;
}

.chat-phone-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.chat-phone-amount-chip {
  border: 0;
  border-radius: 18px;
  padding: 12px 6px;
  background: rgba(255, 255, 252, .45);
  color: rgba(49, 56, 57, .65);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(100, 110, 106, .11);
}

.chat-phone-amount-chip::before {
  content: "¥";
  margin-right: 2px;
  color: rgba(88, 100, 98, .5);
}

.chat-phone-amount-chip.is-active {
  background: rgba(214, 221, 216, .58);
  color: rgba(35, 42, 43, .88);
}

.chat-phone-custom {
  display: grid;
  gap: 8px;
  margin: 4px 0 14px;
}

.chat-phone-custom input {
  width: 100%;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 252, .48);
  color: rgba(41, 48, 50, .88);
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(99, 111, 107, .12);
}

.chat-phone-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: rgba(54, 66, 67, .82);
  color: rgba(255, 255, 252, .94);
  font-size: 14px;
  letter-spacing: .08em;
}

.chat-phone-records {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 252, .52);
  border: 1px solid rgba(106, 116, 112, .12);
  box-shadow: 0 18px 42px rgba(66, 72, 72, .07);
  backdrop-filter: blur(18px);
  margin-top: 16px;
  padding: 16px;
}

.chat-phone-record-list {
  display: grid;
  gap: 10px;
}

.chat-phone-record {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(98, 109, 106, .1);
}

.chat-phone-record:last-child {
  border-bottom: 0;
}

.chat-phone-record strong {
  font-weight: 500;
  color: rgba(39, 47, 48, .86);
}

.chat-phone-record p {
  margin: 4px 0 0;
  color: rgba(65, 72, 73, .52);
  font-size: 12px;
  line-height: 1.55;
}

.chat-phone-record time {
  color: rgba(76, 85, 84, .42);
  font-size: 11px;
}

.chat-phone-record-amount {
  align-self: center;
  font-size: 14px;
  color: rgba(39, 47, 48, .78);
}

.chat-phone-record-amount.is-out {
  color: rgba(105, 71, 65, .78);
}

.chat-phone-record-amount.is-in {
  color: rgba(55, 84, 74, .78);
}

.chat-travel-empty-state {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 252, .52);
  border: 1px solid rgba(106, 116, 112, .12);
  box-shadow: 0 18px 42px rgba(66, 72, 72, .07);
  backdrop-filter: blur(18px);
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.chat-travel-empty-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(230, 234, 229, .58);
  color: rgba(53, 62, 62, .72);
}

.chat-travel-empty-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-travel-empty-state h3 {
  margin: 0;
  max-width: 240px;
  font-weight: 500;
  color: rgba(38, 47, 48, .88);
  line-height: 1.5;
}

.chat-travel-empty-state p {
  margin: 0;
  max-width: 270px;
  color: rgba(64, 72, 72, .56);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 420px) {
  .chat-phone-recharge-view {
  padding: 16px 14px 24px;
  }

  .chat-travel-view {
  padding: 16px 14px 24px;
  }

  .chat-phone-shell {
  border-radius: 24px;
  padding: 16px;
  }

  .chat-phone-records {
  border-radius: 24px;
  padding: 16px;
  }

  .chat-travel-empty-state {
  border-radius: 24px;
  padding: 16px;
  }

  .chat-phone-balance-panel strong {
  font-size: 30px;
  }

  .chat-phone-amount-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chat-online-search-modal {
  z-index: 13000;
}

.chat-online-verify-modal {
  z-index: 13000;
}

.chat-online-search-modal.show {
  display: flex;
  opacity: 1;
}

.chat-online-verify-modal.show {
  display: flex;
  opacity: 1;
}

.chat-online-search-dialog {
  width: 100%;
  max-width: 320px;
}

.chat-online-verify-dialog {
  width: 100%;
  max-width: 320px;
}

.chat-online-search-dialog::before {
  content: none;
}

.chat-online-verify-dialog::before {
  content: none;
}

.chat-online-search-dialog .modal-content {
  padding: 24px 20px 18px;
  gap: 14px;
}

.chat-online-verify-dialog .modal-content {
  padding: 24px 20px 18px;
  gap: 14px;
}

.chat-online-search-kicker {
  margin: 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: #a3abb3;
  text-transform: uppercase;
}

.chat-online-search-title {
  margin: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.15;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .04em;
  color: #454a53;
}

.chat-online-search-copy {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.72;
  color: #8f98a2;
}

.chat-online-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 2px 0 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(52, 56, 65, 0.12);
}

.chat-online-search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.chat-online-search-field span {
  font-size: 9.5px;
  letter-spacing: .16em;
  color: #a3abb3;
  text-transform: uppercase;
}

.chat-online-search-field input {
  width: 100%;
  height: 38px;
  border: 0;
  border-bottom: 1px solid rgba(154, 164, 174, .38);
  border-radius: 0;
  background: transparent;
  color: #343941;
  font-size: 14px;
  padding: 0 1px;
  outline: none;
  box-shadow: none;
}

.chat-online-search-field input:focus {
  border-color: rgba(84, 96, 108, .66);
  box-shadow: none;
}

.chat-online-search-submit {
  height: 38px;
  min-width: 46px;
  padding: 0 1px 2px;
  border: 0;
  border-bottom: 1px solid rgba(154, 164, 174, .44);
  border-radius: 0;
  background: transparent;
  color: #58626e;
  font-size: 10.5px;
  letter-spacing: .14em;
  font-weight: 400;
  text-transform: uppercase;
}

.chat-online-search-submit::before {
  content: none;
}

.chat-online-search-submit:disabled {
  opacity: .45;
}

.chat-online-search-result {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(42vh, 320px);
  overflow: auto;
  padding-right: 0;
  border-top: 1px solid #f0f2f5;
}

.chat-online-verify-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(42vh, 320px);
  overflow: auto;
  padding-right: 0;
  border-top: 1px solid #f0f2f5;
}

.chat-online-search-empty {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  border-radius: 0;
  background: transparent;
  color: #98a1aa;
  font-size: 12px;
  line-height: 1.7;
  padding: 14px 8px;
}

.chat-online-verify-empty {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  border-radius: 0;
  background: transparent;
  color: #98a1aa;
  font-size: 12px;
  line-height: 1.7;
  padding: 14px 8px;
}

.chat-online-account-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  border-radius: 0;
  background: transparent;
}

.chat-online-verify-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  border-radius: 0;
  background: transparent;
}

.chat-online-account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 235, 238, .72);
  color: #69737f;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
}

.chat-online-account-avatar::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(116, 136, 128, .72);
  box-shadow: 0 0 0 2px #fff;
}

.chat-online-account-main {
  min-width: 0;
}

.chat-online-verify-main {
  min-width: 0;
}

.chat-online-account-main strong {
  display: block;
  color: #343941;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-online-verify-main strong {
  display: block;
  color: #343941;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-online-account-main span {
  display: block;
  margin-top: 4px;
  color: #909aa4;
  font-size: 10.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-online-verify-main span {
  display: block;
  margin-top: 4px;
  color: #909aa4;
  font-size: 10.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-online-account-main small {
  display: block;
  margin-top: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #a8afb7;
  font-size: 9px;
  letter-spacing: .14em;
}

.chat-online-verify-main small {
  display: block;
  margin-top: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #a8afb7;
  font-size: 9px;
  letter-spacing: .14em;
}

.chat-online-account-add {
  height: 28px;
  min-width: 36px;
  padding: 0 1px 2px;
  border: 0;
  border-bottom: 1px solid rgba(154, 164, 174, .45);
  border-radius: 0;
  background: transparent;
  color: #58626e;
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.chat-online-verify-action {
  height: 28px;
  min-width: 36px;
  padding: 0 1px 2px;
  border: 0;
  border-bottom: 1px solid rgba(154, 164, 174, .45);
  border-radius: 0;
  background: transparent;
  color: #58626e;
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.chat-online-account-add::before {
  content: none;
}

.chat-online-account-add.is-added::before {
  content: none;
}

.chat-online-account-add.is-added {
  background: transparent;
  color: #9aa3ac;
  border-bottom-color: transparent;
}

.chat-online-verify-summary {
  text-align: center;
  font-size: 10px;
  letter-spacing: .14em;
  color: #9ba3ad;
  padding: 2px 0 8px;
  border-bottom: 1px solid #f0f2f5;
}

.chat-online-verify-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9aa3ac;
  font-size: 11px;
  white-space: nowrap;
}

.chat-online-verify-action.is-primary {
  color: #3f4b55;
  border-bottom-color: rgba(92, 108, 118, .58);
}

.chat-online-verify-action:active {
  opacity: .62;
  background: transparent;
  transform: none;
}

.chat-online-account-add:active {
  opacity: .62;
  background: transparent;
  transform: none;
}

.chat-online-search-submit:active {
  opacity: .62;
  background: transparent;
  transform: none;
}

.chat-refresh-btn.has-online-verify::after {
  content: attr(data-online-verify-count);
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 12px;
  height: 12px;
  padding: 0 3px;
  border-radius: 999px;
  background: rgba(174, 120, 112, .88);
  color: #fffdf9;
  font-size: 8px;
  line-height: 12px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .92);
}

.chat-contact-card[data-contact-type="online_account"] .chat-contact-avatar {
  color: #6c7a82;
}

.chat-contact-card[data-contact-type="online_account"] .chat-contact-group {
  color: #6f7d85;
}

@media (max-width: 380px) {
  .chat-heart-panel-mount .chat-heart-nav {
  width: 38px;
  height: 38px;
  margin-top: -19px;
  }

  .chat-heart-panel-mount .chat-heart-nav.is-prev {
  left: -9px;
  }

  .chat-heart-panel-mount .chat-heart-nav.is-next {
  right: -9px;
  }

  .chat-online-search-form {
  grid-template-columns: 1fr;
  gap: 8px;
  }

  .chat-online-search-submit {
  justify-self: end;
  }

  .chat-online-account-card {
  grid-template-columns: 34px minmax(0, 1fr);
  }

  .chat-online-verify-card {
  grid-template-columns: 34px minmax(0, 1fr);
  }

  .chat-online-account-add {
  grid-column: 2;
  justify-self: start;
  }

  .chat-online-verify-actions {
  grid-column: 2;
  justify-self: start;
  }
}

.chat-refresh-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: rgba(38, 45, 54, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  position: relative;
}

.chat-app-page.anonymous-open .chat-bottom-dock {
  display: none;
}

.chat-anonymous-view.active ~ .chat-bottom-dock {
  display: none;
}

.chat-anonymous-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-anonymous-send svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-anonymous-headcopy {
  min-width: 0;
}

.chat-anonymous-kicker {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.42);
}

.chat-anonymous-headcopy p {
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--anon-muted);
}

.chat-anonymous-avatar.has-image {
  color: transparent;
}

.chat-anonymous-mode-tabs button:last-child {
  border-right: 0;
}

.chat-anonymous-mode-tabs button i {
  font-style: normal;
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.58;
}

.chat-anonymous-alias-field {
  display: grid;
  gap: 6px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat-anonymous-alias-field span {
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(244,241,235,0.36);
}

.chat-anonymous-view:not(.is-custom-mode) .chat-anonymous-alias-field {
  opacity: 0.36;
}

.chat-anonymous-view:not(.is-custom-mode) .chat-anonymous-alias-field input {
  pointer-events: none;
}

.chat-anonymous-messages::-webkit-scrollbar {
  display: none;
}

.chat-anonymous-empty {
  margin: auto;
  max-width: 260px;
  text-align: center;
  color: rgba(244,241,235,0.42);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.chat-anonymous-row.is-me {
  justify-content: flex-end;
}

.chat-anonymous-row.is-ta {
  justify-content: flex-start;
}

.chat-anonymous-mini-avatar.has-image {
  color: transparent;
}

.chat-anonymous-row.is-me .chat-anonymous-stack {
  justify-items: end;
}

.chat-anonymous-sender {
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(244,241,235,0.34);
  text-transform: uppercase;
}

.chat-anonymous-time {
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(244,241,235,0.30);
}

.chat-anonymous-input::placeholder {
  color: rgba(244,241,235,0.30);
}

.chat-anonymous-alias-field input::placeholder {
  color: rgba(244,241,235,0.30);
}

.chat-anonymous-send:disabled {
  opacity: 0.36;
}

.chat-anonymous-send:active {
  opacity: 0.72;
  transform: translateY(1px);
}

.chat-anonymous-back:active {
  opacity: 0.72;
  transform: translateY(1px);
}

.chat-anonymous-mode-tabs button:active {
  opacity: 0.72;
  transform: translateY(1px);
}

.chat-thread-bubble.is-delivery-failed {
  position: relative;
  border: 1px solid rgba(176, 92, 86, 0.16);
  box-shadow: 0 10px 24px rgba(130, 84, 80, 0.04);
}

.chat-thread-failure-badge {
  position: absolute;
  top: -9px;
  right: -7px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: #c43f38;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.98);
  box-shadow: 0 0 0 2px rgba(196,63,56,0.14), 0 6px 16px rgba(150,50,45,0.18);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.chat-thread-bubble.is-delivery-failed .chat-thread-failure-badge {
  background: #c43f38;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.98);
  box-shadow: 0 0 0 2px rgba(196,63,56,0.14), 0 6px 16px rgba(150,50,45,0.18);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

body.one-phone-app-open #desktop {
  visibility: hidden;
  pointer-events: none;
}

body.one-phone-app-open.show-phone-shell #desktop {
  visibility: hidden;
}

html.one-viewport-keyboard body.show-phone-shell .chat-app-page.show {
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
}

html.one-viewport-keyboard body.show-phone-shell .settings-app-page.show {
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
}

html.one-viewport-keyboard body.show-phone-shell .worldbook-app-page.show {
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
}

html.one-viewport-keyboard body.show-phone-shell .messages-app-page.show {
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
}

html.one-viewport-keyboard body.show-phone-shell .phone-app-page.show {
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
}

html.one-viewport-keyboard body.show-phone-shell :where(#desktop, .settings-app-page, .worldbook-app-page, .memory-app-page, .chat-app-page, .messages-app-page, .phone-app-page, .phone-shell-frame) {
  left: var(--one-shell-stage-center-x, 50%);
  top: var(--one-shell-stage-center-y, 50%);
}

html.one-viewport-keyboard body.one-phone-app-open .chat-app-page.show {
  background-color: var(--chat-paper, #FCFBF7);
}

html.one-viewport-keyboard .chat-app-page.show {
  opacity: 1;
  pointer-events: auto;
  background-color: var(--chat-paper, #FCFBF7);
  background-image: radial-gradient(circle at 16% 14%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.24) 32%, transparent 58%),
        radial-gradient(circle at 92% 76%, rgba(226,236,242,0.84) 0%, rgba(226,236,242,0.22) 34%, transparent 62%),
        linear-gradient(138deg, #FCFBF7 0%, #F6F1EA 100%);
}

.chat-app-page.show.thread-open {
  background-color: var(--chat-paper, #FCFBF7);
  background-image: radial-gradient(circle at 16% 14%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.24) 32%, transparent 58%),
        radial-gradient(circle at 92% 76%, rgba(226,236,242,0.84) 0%, rgba(226,236,242,0.22) 34%, transparent 62%),
        linear-gradient(138deg, #FCFBF7 0%, #F6F1EA 100%);
}

html.one-viewport-keyboard .chat-thread-view.active {
  background: transparent;
  background-color: var(--chat-paper, #FCFBF7);
}

body.one-chat-output-rendering .chat-thread-view.active {
  background-color: var(--chat-paper, #FCFBF7);
}

.chat-app-page.show.thread-open .chat-thread-view.active {
  background-color: var(--chat-paper, #FCFBF7);
}

html.one-viewport-keyboard .chat-thread-view.active:not(.has-custom-bg)::before {
  background: radial-gradient(circle at 18% 12%, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.18) 36%, transparent 62%),
        radial-gradient(circle at 88% 82%, rgba(226,236,242,0.62) 0%, rgba(226,236,242,0.18) 36%, transparent 64%),
        linear-gradient(138deg, #FCFBF7 0%, #F6F1EA 100%);
  opacity: 1;
}

body.one-chat-output-rendering .chat-thread-view.active:not(.has-custom-bg)::before {
  background: radial-gradient(circle at 18% 12%, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.18) 36%, transparent 62%),
        radial-gradient(circle at 88% 82%, rgba(226,236,242,0.62) 0%, rgba(226,236,242,0.18) 36%, transparent 64%),
        linear-gradient(138deg, #FCFBF7 0%, #F6F1EA 100%);
  opacity: 1;
}

.chat-app-page.show.thread-open .chat-thread-view.active:not(.has-custom-bg)::before {
  background: radial-gradient(circle at 18% 12%, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.18) 36%, transparent 62%),
        radial-gradient(circle at 88% 82%, rgba(226,236,242,0.62) 0%, rgba(226,236,242,0.18) 36%, transparent 64%),
        linear-gradient(138deg, #FCFBF7 0%, #F6F1EA 100%);
  opacity: 1;
}

html.one-viewport-keyboard .chat-thread-view.active:not(.has-custom-bg) .chat-thread-bg {
  background-color: var(--chat-paper, #FCFBF7);
}

body.one-chat-output-rendering .chat-thread-view.active:not(.has-custom-bg) .chat-thread-bg {
  background-color: var(--chat-paper, #FCFBF7);
}

.chat-app-page.show.thread-open .chat-thread-view.active:not(.has-custom-bg) .chat-thread-bg {
  background-color: var(--chat-paper, #FCFBF7);
}

html.one-viewport-keyboard body.one-phone-app-open #desktop {
  visibility: hidden;
  pointer-events: none;
}

html.one-viewport-keyboard .chat-app-page.show.thread-open {
  opacity: 1;
  pointer-events: auto;
  z-index: 9200;
}

.chat-news-start-dialog {
  width: min(296px, calc(100vw - 48px));
  max-width: 296px;
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.chat-news-start-dialog .modal-content {
  padding: 24px 20px 18px;
  gap: 12px;
}

.chat-news-start-title {
  margin-top: 0;
  display: block;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.08;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #4a4e59;
  text-align: center;
}

.chat-news-start-kicker {
  margin-top: 3px;
  display: block;
  margin: 2px 0 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #a4abb5;
  text-align: center;
  text-transform: uppercase;
}

.chat-news-start-options {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 4px;
  gap: 0;
  width: 100%;
  margin: 2px 0 0;
}

.chat-news-start-card {
  border: 0;
  display: grid;
  align-items: center;
  text-align: left;
  color: #343941;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-top: 1px solid #f0f2f5;
  width: 100%;
  min-height: 48px;
  padding: 0 2px;
  appearance: none;
  -webkit-appearance: none;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
}

.chat-news-start-card:last-child {
  border-bottom: 1px solid #f0f2f5;
}

.chat-news-start-card:active {
  transform: none;
  background: #f8f9fb;
}

.chat-news-start-no {
  display: inline-flex;
  align-items: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #a6adb7;
  justify-content: flex-start;
  width: auto;
  border: 0;
  box-shadow: none;
  line-height: 1;
}

.chat-news-start-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.chat-news-start-copy strong {
  display: block;
  color: #343941;
  font-size: 14px;
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 3px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-news-start-copy em {
  display: block;
  line-height: 1;
  text-transform: uppercase;
  flex: 0 0 auto;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-style: italic;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(162, 170, 181, 0.68);
}

.chat-app-page :where(input, textarea, select) {
  font-size: max(16px, 1em);
}

.modal-overlay :where(input, textarea, select) {
  font-size: max(16px, 1em);
}

body.one-chat-app-visible #desktop {
  visibility: hidden;
  pointer-events: none;
}

html.one-chat-app-visible body #desktop {
  visibility: hidden;
  pointer-events: none;
}

html.one-editing .chat-app-page.show.thread-open .chat-bottom-dock {
  display: none;
}

html.one-viewport-keyboard .chat-app-page.show.thread-open .chat-bottom-dock {
  display: none;
}

body.one-chat-output-rendering .chat-app-page.show.thread-open .chat-bottom-dock {
  display: none;
}

html.one-editing .chat-app-page.show.anonymous-open .chat-bottom-dock {
  display: none;
}

html.one-viewport-keyboard .chat-app-page.show.anonymous-open .chat-bottom-dock {
  display: none;
}

body.one-chat-output-rendering .chat-app-page.show.anonymous-open .chat-bottom-dock {
  display: none;
}

.chat-app-page.show:not(.thread-open):not(.anonymous-open):not(.asset-open):not(.ta-profile-open):not(.preset-open):not(.sticker-open):not(.chat-style-open):not(.offline-open):not(.thread-settings-open):not(.chat-record-detail-open):not(.account-security-open) > .chat-bottom-dock {
  display: grid;
}

body.one-chat-output-rendering .chat-app-page.show {
  background-image: radial-gradient(circle at 16% 14%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.24) 32%, transparent 58%),
        radial-gradient(circle at 92% 76%, rgba(226,236,242,0.84) 0%, rgba(226,236,242,0.22) 34%, transparent 62%),
        linear-gradient(138deg, #FCFBF7 0%, #F6F1EA 100%);
  opacity: 1;
  pointer-events: auto;
  z-index: 9200;
  background-color: var(--chat-paper, #FCFBF7);
}

html.one-editing .chat-app-page.show {
  background-color: var(--chat-paper, #FCFBF7);
}

html.one-editing .chat-thread-view.active {
  background-color: var(--chat-paper, #FCFBF7);
}

html.one-chat-app-visible .chat-app-page.show {
  background-color: var(--chat-paper, #FCFBF7);
}

html.one-force-fullscreen-root.one-viewport-keyboard body.show-phone-shell .chat-app-page.show {
  left: var(--one-shell-stage-center-x, 50%);
  top: var(--one-shell-stage-center-y, 50%);
  right: auto;
  bottom: auto;
  width: var(--one-shell-base-width, 390px);
  height: var(--one-shell-base-height, 912px);
  min-height: 0;
  max-height: var(--one-shell-base-height, 912px);
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
  transform-origin: center center;
}

html.one-force-fullscreen-root.one-editing body.show-phone-shell .chat-app-page.show {
  left: var(--one-shell-stage-center-x, 50%);
  top: var(--one-shell-stage-center-y, 50%);
  right: auto;
  bottom: auto;
  width: var(--one-shell-base-width, 390px);
  height: var(--one-shell-base-height, 912px);
  min-height: 0;
  max-height: var(--one-shell-base-height, 912px);
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
  transform-origin: center center;
}

html.one-force-fullscreen-root.one-chat-app-visible body.show-phone-shell .chat-app-page.show {
  left: var(--one-shell-stage-center-x, 50%);
  top: var(--one-shell-stage-center-y, 50%);
  right: auto;
  bottom: auto;
  width: var(--one-shell-base-width, 390px);
  height: var(--one-shell-base-height, 912px);
  min-height: 0;
  max-height: var(--one-shell-base-height, 912px);
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
  transform-origin: center center;
}

html.one-force-fullscreen-root.one-layout-scroll-locked.one-viewport-keyboard body.show-phone-shell .chat-app-page.show {
  left: var(--one-shell-stage-center-x, 50%);
  top: var(--one-shell-stage-center-y, 50%);
  right: auto;
  bottom: auto;
  width: var(--one-shell-base-width, 390px);
  height: var(--one-shell-base-height, 912px);
  min-height: 0;
  max-height: var(--one-shell-base-height, 912px);
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
  transform-origin: center center;
  opacity: 1;
  pointer-events: auto;
}

html.one-force-fullscreen-root.one-layout-scroll-locked.one-editing body.show-phone-shell .chat-app-page.show {
  left: var(--one-shell-stage-center-x, 50%);
  top: var(--one-shell-stage-center-y, 50%);
  right: auto;
  bottom: auto;
  width: var(--one-shell-base-width, 390px);
  height: var(--one-shell-base-height, 912px);
  min-height: 0;
  max-height: var(--one-shell-base-height, 912px);
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
  transform-origin: center center;
  opacity: 1;
  pointer-events: auto;
}

html.one-force-fullscreen-root body.show-phone-shell.one-chat-output-rendering .chat-app-page.show {
  left: var(--one-shell-stage-center-x, 50%);
  top: var(--one-shell-stage-center-y, 50%);
  right: auto;
  bottom: auto;
  width: var(--one-shell-base-width, 390px);
  height: var(--one-shell-base-height, 912px);
  min-height: 0;
  max-height: var(--one-shell-base-height, 912px);
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
  transform-origin: center center;
  opacity: 1;
  pointer-events: auto;
}

.chat-thread-view .chat-glass-btn {
  background: var(--chat-clear-glass-bg);
  color: rgba(31, 36, 42, 0.88);
  border: 0;
  box-shadow: var(--chat-clear-glass-shadow), var(--chat-clear-glass-inset);
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
}

.chat-thread-view .chat-thread-actions .chat-glass-btn {
  background: var(--chat-clear-glass-bg);
  color: rgba(31, 36, 42, 0.88);
  border: 0;
  box-shadow: var(--chat-clear-glass-shadow), var(--chat-clear-glass-inset);
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
}

.chat-thread-view .chat-thread-back {
  background: var(--chat-clear-glass-bg);
  color: rgba(31, 36, 42, 0.88);
  border: 0;
  box-shadow: var(--chat-clear-glass-shadow), var(--chat-clear-glass-inset);
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
}

.chat-thread-view .chat-glass-btn:active {
  background: var(--chat-clear-glass-bg-strong);
}

.chat-thread-view .chat-thread-actions .chat-glass-btn:active {
  background: var(--chat-clear-glass-bg-strong);
}

.chat-thread-view .chat-thread-back:active {
  background: var(--chat-clear-glass-bg-strong);
}

.chat-quickbar {
  position: fixed;
  left: 12px;
  top: 120px;
  width: min(330px, calc(100vw - 16px));
  min-height: 64px;
  z-index: 18000;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 22px;
  background: var(--chat-clear-glass-bg);
  color: rgba(31, 36, 42, 0.88);
  box-shadow: var(--chat-clear-glass-shadow), var(--chat-clear-glass-inset);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
  border: 0;
}

.chat-quickbar-page button span {
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  color: rgba(52, 56, 65, .88);
  font-weight: 400;
  letter-spacing: 0.035em;
}

.chat-quickbar-page button em {
  line-height: 1;
  font-style: normal;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(52, 56, 65, .50);
  font-size: 7.8px;
  font-weight: 400;
  letter-spacing: 0.09em;
}

.chat-quickbar-nav {
  width: 30px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  font-weight: 300;
  color: rgba(52, 56, 65, .62);
}

.chat-anonymous-view {
  --anon-paper: rgba(18, 18, 20, 0.62);
  padding: 0;
  overflow: hidden;
  color: var(--anon-ink);
  isolation: isolate;
  --anon-ink: rgba(248, 245, 239, 0.95);
  --anon-muted: rgba(248, 245, 239, 0.50);
  --anon-line: rgba(248, 245, 239, 0.11);
  --anon-line-soft: rgba(248, 245, 239, 0.065);
  background: radial-gradient(circle at 16% 7%, rgba(130, 118, 126, 0.20), transparent 34%),
        radial-gradient(circle at 86% 82%, rgba(94, 72, 84, 0.19), transparent 42%),
        linear-gradient(155deg, #050506 0%, #101015 46%, #070708 100%);
}

.chat-anonymous-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.05) 0 0.55px, transparent 0.68px);
  background-size: 64px 64px, 64px 64px, 18px 18px;
  opacity: 0.32;
}

.chat-anonymous-back {
  border-radius: 50%;
  color: var(--anon-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 10px 24px rgba(0,0,0,0.12);
  width: 38px;
  height: 38px;
}

.chat-anonymous-avatar {
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,241,235,0.46);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  border: 0;
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 10px 24px rgba(0,0,0,0.12);
  width: 38px;
  height: 38px;
}

.chat-anonymous-identity {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 4;
  display: grid;
  top: max(92px, calc(env(safe-area-inset-top) + 86px));
  gap: 10px;
}

.chat-anonymous-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--anon-line-soft);
  border-bottom: 1px solid var(--anon-line-soft);
  backdrop-filter: blur(16px);
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.chat-anonymous-mode-tabs button {
  border: 0;
  background: transparent;
  color: rgba(244,241,235,0.56);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  appearance: none;
  -webkit-appearance: none;
  min-height: 38px;
  border-right: 0;
  border-radius: 999px;
}

.chat-anonymous-mode-tabs button span {
  letter-spacing: 0.08em;
  font-size: 12.5px;
  font-weight: 400;
}

.chat-anonymous-mode-tabs button.active {
  color: var(--anon-ink);
  background: rgba(248,245,239,0.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.chat-anonymous-alias-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--anon-line);
  border-radius: 0;
  background: transparent;
  color: var(--anon-ink);
  letter-spacing: 0.04em;
  outline: 0;
  height: 36px;
  border-bottom-color: rgba(248,245,239,0.14);
  font-size: 12.5px;
}

.chat-anonymous-messages {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  top: max(174px, calc(env(safe-area-inset-top) + 168px));
  bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px));
  padding: 8px 18px 20px;
  gap: 10px;
}

.chat-anonymous-mini-avatar {
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
  color: rgba(244,241,235,0.38);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: rgba(255,255,255,0.055);
}

.chat-anonymous-stack {
  display: grid;
  max-width: min(66vw, 276px);
  gap: 4px;
}

.chat-anonymous-bubble {
  position: relative;
  max-width: 100%;
  color: rgba(244,241,235,0.90);
  letter-spacing: 0.02em;
  word-break: break-word;
  padding: 8px 10px;
  border: 0;
  border-radius: 15px;
  background: rgba(255,255,255,0.060);
  font-size: 12.5px;
  line-height: 1.52;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.chat-anonymous-row.is-me .chat-anonymous-bubble {
  border-color: rgba(244,241,235,0.18);
  background: rgba(248,245,239,0.88);
  color: #101014;
}

.chat-anonymous-composer {
  position: absolute;
  z-index: 6;
  display: grid;
  align-items: end;
  left: 16px;
  right: 16px;
  bottom: max(12px, calc(env(safe-area-inset-bottom) + 10px));
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  padding: 8px 0 0;
  border-top: 0;
  background: linear-gradient(180deg, transparent, rgba(5,5,6,0.76) 28%, rgba(5,5,6,0.94));
}

.chat-anonymous-input {
  max-height: 108px;
  resize: none;
  border: 0;
  border-bottom: 1px solid var(--anon-line);
  border-radius: 0;
  background: transparent;
  color: var(--anon-ink);
  line-height: 1.42;
  outline: 0;
  min-height: 40px;
  padding: 10px 2px 9px;
  font-size: 13.5px;
  border-bottom-color: rgba(248,245,239,0.15);
}

.chat-anonymous-send {
  border-radius: 50%;
  color: var(--anon-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 10px 24px rgba(0,0,0,0.12);
  margin-bottom: 0;
  width: 40px;
  height: 40px;
}

.chat-heart-panel-mount .bpm-display {
  display: flex;
  align-items: baseline;
  color: var(--text-main);
  transform: scale(var(--live-heart-scale, 1));
  transform-origin: right bottom;
  transition: transform 260ms ease;
}

.chat-heart-panel-mount .bpm-val {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 39px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  transition: opacity 180ms ease;
}

.chat-style-native-view .chat-style-title-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-title-news {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--one-quality-soft-ink, #211F1C);
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-assets-title {
  margin: 0;
  display: inline-block;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--one-quality-soft-ink, #211F1C);
  cursor: pointer;
  -webkit-tap-highlight-color: var(--one-quality-soft-ink, #211F1C);
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-bankcard-title {
  margin: 0;
  display: inline-block;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--one-quality-soft-ink, #211F1C);
  cursor: pointer;
  -webkit-tap-highlight-color: var(--one-quality-soft-ink, #211F1C);
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-stock-title {
  margin: 0;
  display: inline-block;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--one-quality-soft-ink, #211F1C);
  cursor: pointer;
  -webkit-tap-highlight-color: var(--one-quality-soft-ink, #211F1C);
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-sticker-title {
  width: fit-content;
  max-width: 100%;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: normal;
  font-weight: 400;
  color: var(--one-quality-soft-ink, #211F1C);
  cursor: pointer;
  -webkit-tap-highlight-color: var(--one-quality-soft-ink, #211F1C);
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-mask-preset-title {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 400;
  color: var(--one-quality-soft-ink, #211F1C);
  cursor: pointer;
  -webkit-tap-highlight-color: var(--one-quality-soft-ink, #211F1C);
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-ta-subpage-title strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--one-quality-soft-ink, #211F1C);
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-setting-title strong {
  display: block;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--one-quality-soft-ink, #211F1C);
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-ta-form-title-copy h1 {
  margin: 0;
  color: var(--one-quality-ink, #111111);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.028em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-anonymous-headcopy h1 {
  margin: 4px 0 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--anon-ink);
  letter-spacing: -0.03em;
  font-size: 30px;
  line-height: 1.04;
}

.chat-style-native-view .chat-style-title-copy p {
  margin: 5px 0 0;
  color: var(--studio-muted);
  font-size: 10.5px;
  line-height: 1.62;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.chat-mask-preset-subtitle {
  margin: 0;
  max-width: 220px;
  color: var(--chat-muted);
  font-size: 10.5px;
  line-height: 1.62;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.chat-ta-form-title-copy p {
  margin: 8px 0 0;
  color: #9BA2AD;
  font-size: 10.5px;
  line-height: 1.62;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.settings-app-page::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(74, 78, 89, 0.032) 0 0.58px, transparent 0.68px),
            linear-gradient(rgba(120, 130, 140, 0.022) 1px, transparent 1px),
            linear-gradient(90deg, rgba(120, 130, 140, 0.016) 1px, transparent 1px);
  background-size: 12px 12px, 42px 42px, 42px 42px;
  opacity: 0.52;
  content: none;
  display: none;
}

.settings-app-page::after {
  position: absolute;
  right: -18px;
  top: max(108px, 14vh);
  z-index: 1;
  pointer-events: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 17vw, 74px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-style: italic;
  color: rgba(52, 57, 65, 0.052);
  transform: rotate(-6deg);
  white-space: nowrap;
  content: none;
  display: none;
}

.settings-app-page.is-detail::after {
  right: 13px;
  top: max(76px, 9vh);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(72px, 24vw, 116px);
  line-height: 0.82;
  letter-spacing: -0.12em;
  font-style: normal;
  color: rgba(52, 57, 65, 0.045);
  transform: rotate(0deg);
  content: none;
  display: none;
}

.settings-deco-layer {
  content: none;
  display: none;
}

.settings-app-head {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  padding: max(44px, calc(env(safe-area-inset-top) + 26px)) 28px 0;
}

.settings-head-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.settings-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.settings-content {
  background-color: #FCFBF7;
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 20px 28px max(96px, calc(env(safe-area-inset-bottom) + 80px));
}

.settings-app-page.is-detail .settings-content {
  padding-top: max(42px, calc(env(safe-area-inset-top) + 24px));
}

.settings-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8C95A3;
  line-height: 1.55;
  margin: 0 0 16px;
}

.settings-entry-list {
  border-top: 1px solid rgba(74,78,89,0.34);
  display: flex;
  flex-direction: column;
  border-top-color: rgba(74,78,89,0.16);
}

.settings-entry {
  position: relative;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(150,158,168,0.28);
  color: var(--settings-ink);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  min-height: 84px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0 21px;
  border-bottom-color: rgba(150,158,168,0.18);
  overflow: visible;
}

.settings-entry::after {
  position: absolute;
  inset: 8px 0;
  background: linear-gradient(90deg, rgba(150,150,150,0.04), transparent 62%);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
  content: none;
  display: none;
}

.settings-entry-arrow {
  justify-self: end;
  width: 10px;
  height: 10px;
  opacity: 0.34;
  transform: translateX(-2px) rotate(45deg);
  transition: opacity 0.22s ease, transform 0.22s ease;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  color: #000;
  font-size: 0;
  line-height: 0;
  position: relative;
  z-index: 1;
  content: none;
  display: none;
}

.settings-entry-title {
  display: block;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 20px;
  line-height: 1.14;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--settings-ink-deep);
  margin-bottom: 8px;
}

.settings-detail-panel {
  background-color: #FCFBF7;
  display: none;
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.settings-subpage-head {
  border-bottom: 1px solid rgba(150,158,168,0.24);
  padding-bottom: 34px;
  margin-bottom: 36px;
  border-bottom-color: rgba(150,158,168,0.16);
}

.settings-subpage-title {
  display: inline-flex;
  align-items: center;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 400;
  font-style: italic;
  cursor: pointer;
  text-shadow: none;
  font-size: clamp(24px, 6.8vw, 29px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--one-quality-soft-ink, #211F1C);
  margin-top: 18px;
}

.settings-form-stack {
  display: flex;
  flex-direction: column;
  counter-reset: settings-detail-item;
  gap: 34px;
}

.settings-form-stack > .settings-field {
  counter-increment: settings-detail-item;
  padding-left: 0;
}

.settings-form-stack > .settings-switch-line {
  counter-increment: settings-detail-item;
  padding-left: 0;
}

.settings-form-stack > .settings-storage-card {
  position: relative;
  counter-increment: settings-detail-item;
  padding-left: 0;
}

.settings-form-stack > .settings-github-box {
  position: relative;
  counter-increment: settings-detail-item;
  padding-left: 0;
}

.settings-form-stack > .settings-field::before {
  position: absolute;
  left: 0;
  top: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #9AA2AF;
  content: none;
  display: none;
}

.settings-form-stack > .settings-switch-line::before {
  position: absolute;
  left: 0;
  top: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #9AA2AF;
  content: none;
  display: none;
}

.settings-form-stack > .settings-storage-card::before {
  position: absolute;
  left: 0;
  top: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #9AA2AF;
  content: none;
  display: none;
}

.settings-form-stack > .settings-github-box::before {
  position: absolute;
  left: 0;
  top: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #9AA2AF;
  content: none;
  display: none;
}

.settings-field {
  position: relative;
  border-bottom: 1px solid rgba(150,158,168,0.25);
  padding-top: 0;
  padding-bottom: 26px;
  border-bottom-color: rgba(150,158,168,0.16);
}

.settings-field-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  color: #8C95A3;
  line-height: 1.55;
  margin-bottom: 16px;
}

.settings-inline-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-preset-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-two-col {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(150,158,168,0.24);
  border-bottom: 1px solid rgba(150,158,168,0.24);
  min-height: 64px;
  padding: 8px 0;
  border-top-color: rgba(150,158,168,0.16);
  border-bottom-color: rgba(150,158,168,0.16);
}

.settings-storage-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid rgba(150,158,168,0.25);
  padding-bottom: 30px;
  border-bottom-color: rgba(150,158,168,0.16);
}

.settings-github-box {
  border-top: 1px solid rgba(74,78,89,0.28);
  border-bottom: 1px solid rgba(150,158,168,0.26);
  padding: 22px 0 8px;
  padding-bottom: 30px;
  border-bottom-color: rgba(150,158,168,0.16);
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) {
  gap: 0;
  --appearance-ink: var(--chat-ink, #343941);
  --appearance-muted: var(--chat-muted, #8C95A3);
  --appearance-line: var(--chat-line, rgba(117,124,135,0.20));
  --appearance-line-strong: var(--chat-line-strong, rgba(74,78,89,0.34));
  counter-reset: appearance-section;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) > :where(.settings-field, .settings-switch-line, .settings-live-note) {
  border-top-color: rgba(117,124,135,0.14);
  counter-increment: appearance-section;
  position: relative;
  margin: 0;
  padding: 23px 0 25px;
  padding-left: 0;
  border: 0;
  border-top: 1px solid var(--appearance-line);
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.settings-form-stack:is([data-panel="appearance-catalog"], [data-panel^="appearance-"]) > :where(.settings-field, .settings-switch-line, .settings-live-note)::before {
  position: absolute;
  right: 0;
  top: 22px;
  left: auto;
  color: rgba(52,57,65,0.34);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  content: none;
  display: none;
}

.settings-appearance-category-list {
  display: grid;
  gap: 12px;
}

.settings-appearance-category-copy {
  display: grid;
  gap: 4px;
  padding-right: 54px;
}

.settings-appearance-category-copy em {
  font-size: 9px;
  font-style: normal;
  order: -1;
  color: var(--appearance-muted, #8C95A3);
  font-family: "Courier New", Courier, monospace;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.settings-appearance-category-copy small {
  max-width: 30em;
  font-size: 11px;
  color: #747D88;
  line-height: 1.74;
  letter-spacing: 0.03em;
}

.settings-appearance-back.settings-thin-button {
  flex: 0 0 auto;
  min-height: 0;
  align-self: flex-start;
  color: #5B606A;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: left;
  width: max-content;
  margin: 0 0 26px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(52,57,65,0.20);
  background: transparent;
  box-shadow: none;
}

.settings-appearance-back {
  margin-bottom: 2px;
  width: max-content;
  margin: 0 0 26px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(52,57,65,0.20);
  background: transparent;
  box-shadow: none;
}

.settings-form-stack[data-panel="appearance-icons"] .settings-app-editor-list {
  margin-top: 18px;
}

.settings-field-input::placeholder {
  color: #B0B6C0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.settings-field-textarea::placeholder {
  color: #B0B6C0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.settings-search-input::placeholder {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.settings-app-editor-main .settings-field-input::placeholder {
  color: #AAB0BA;
  opacity: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.settings-app-page input::placeholder {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.settings-app-page textarea::placeholder {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.settings-search-wrap {
  position: relative;
  margin-bottom: 12px;
  margin: 6px 0 28px;
}

.settings-search-wrap::after {
  content: "";
  position: absolute;
  left: 52px;
  right: 42px;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150,150,150,0.30), rgba(181,199,211,0.30), transparent);
  transform-origin: left center;
  pointer-events: none;
  display: block;
}

.settings-search-line {
  position: relative;
  z-index: 1;
  background: transparent;
  display: grid;
  align-items: center;
  min-height: 46px;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(74,78,89,0.12);
  border-bottom: 1px solid rgba(150,158,168,0.16);
  padding: 0;
}

.settings-online-dot {
  content: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(124,165,142,0.10);
  display: block;
  background: var(--settings-green, #7CA58E);
}

.settings-scan-rule {
  content: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(150,150,150,0.48), rgba(181,199,211,0.52));
  min-width: 48px;
  position: relative;
  overflow: hidden;
  display: block;
}

.settings-scan-rule::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -32%;
  width: 34%;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(252,251,247,0.72), transparent);
  animation: settings-scan 2.8s ease-in-out infinite;
}

.settings-search-state {
  text-transform: uppercase;
  content: none;
  display: inline;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(52,57,65,0.42);
  font-family: "Courier New", Courier, monospace;
  white-space: nowrap;
}

.settings-search-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  color: rgba(52,57,65,0.46);
  gap: 0;
  font-size: 0;
  letter-spacing: 0;
  justify-self: end;
  width: auto;
}

.settings-search-label svg {
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  width: 13px;
  height: 13px;
  display: block;
  opacity: 1;
}

.settings-search-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  caret-color: #000;
  font-size: 16px;
  z-index: 2;
  color: rgba(52,57,65,0.80);
  opacity: 1;
  padding: 0;
}

.settings-detail-label:empty {
  display: none;
}

.settings-appearance-category {
  border-top-color: rgba(117,124,135,0.14);
  width: 100%;
  display: grid;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #34363A;
  text-align: left;
  position: relative;
  grid-template-columns: minmax(0, 1fr) 22px;
  padding: 24px 0 24px;
  border-top: 1px solid var(--appearance-line, rgba(117,124,135,0.20));
  border-bottom: 0;
}

.settings-appearance-category::before {
  position: absolute;
  right: 0;
  top: 23px;
  color: rgba(52,57,65,0.34);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  content: none;
  display: none;
}

.settings-appearance-category-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: rgba(52, 54, 58, 0.28);
  font-style: italic;
  content: none;
  display: none;
}

.settings-appearance-category-arrow {
  justify-self: end;
  font-size: 16px;
  color: rgba(52,54,58,0.48);
  align-self: center;
  content: none;
  display: none;
}

.settings-appearance-category-copy strong {
  color: var(--appearance-ink, #343941);
  font-size: 15px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.settings-switch-text strong {
  display: block;
  font-size: 16px;
  color: #000;
  margin-bottom: 5px;
  font-weight: 400;
}

.settings-font-preview strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-style: italic;
  margin-bottom: 8px;
  font-weight: 400;
}

.settings-app-editor-main .settings-field-input {
  padding-bottom: 0;
  color: #424852;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.settings-global-css-preset-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.settings-detail-panel.is-appearance-subdetail .settings-subpage-head {
  padding-bottom: 24px;
  margin-bottom: 26px;
}

.settings-appearance-title-back {
  align-items: center;
  width: max-content;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-family: "Courier New", Courier, monospace;
  box-shadow: none;
  display: flex;
  margin-top: 14px;
  padding: 0;
  border-bottom: 0;
  color: rgba(52,57,65,0.50);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-decoration: none;
}

.settings-appearance-title-back[hidden] {
  display: none;
}

.settings-form-stack[data-panel="appearance-app-icons"] .settings-icon-style-field {
  padding-top: 0;
}

.settings-form-stack[data-panel="appearance-app-icons"] .settings-app-icons-field {
  padding-top: 34px;
}

.settings-app-editor-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 22px;
}

.settings-app-editor-row {
  display: grid;
  border-bottom: 1px solid rgba(150,158,168,0.22);
  align-items: start;
  padding: 18px 0;
  border-bottom-color: rgba(150,158,168,0.16);
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
}

.settings-app-editor-icon {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border: var(--one-app-icon-border, 1px solid rgba(255,255,255,0.54));
  background: rgba(255,255,255,0.30);
  backdrop-filter: var(--one-app-icon-backdrop, blur(10px));
  -webkit-backdrop-filter: var(--one-app-icon-backdrop, blur(10px));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--one-app-icon-radius, 17px);
  box-shadow: var(--one-app-icon-shadow, 0 6px 16px rgba(52,57,65,0.035));
}

.settings-app-editor-icon svg {
  width: 21px;
  height: 21px;
  max-width: 100%;
  max-height: 100%;
  fill: #111111;
  color: #111111;
}

.settings-app-editor-icon .icon-logo-frame {
  place-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-app-editor-icon .app-custom-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-position: center;
  object-fit: cover;
}

.settings-app-editor-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.settings-app-editor-actions .settings-thin-button {
  letter-spacing: 0.08em;
  width: auto;
  min-width: 42px;
  padding-left: 12px;
  padding-right: 12px;
}

.chat-anonymous-topbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: max(16px, calc(env(safe-area-inset-top) + 10px)) 18px 14px;
  background: linear-gradient(180deg, rgba(5,5,6,0.82), rgba(5,5,6,0.38) 74%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.chat-anonymous-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.chat-anonymous-set {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.74);
  border-radius: 0;
  background: transparent;
  color: rgba(248, 245, 239, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.14em;
  line-height: 1.1;
  padding: 2px 0 3px;
  cursor: pointer;
}

.chat-anonymous-set.active {
  color: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.98);
}

.chat-anonymous-sidebar-backdrop {
  position: absolute;
  inset: 0;
  z-index: 19;
  background: rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.chat-anonymous-view.is-anon-sidebar-open .chat-anonymous-sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.chat-anonymous-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: min(316px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: max(22px, calc(env(safe-area-inset-top) + 16px)) 18px max(22px, calc(env(safe-area-inset-bottom) + 18px));
  background: rgba(11, 11, 13, 0.96);
  border-left: 1px solid rgba(248, 245, 239, 0.12);
  color: rgba(248, 245, 239, 0.92);
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.32);
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.22, .9, .24, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-anonymous-view.is-anon-sidebar-open .chat-anonymous-sidebar {
  transform: translateX(0);
}

.chat-anonymous-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(248, 245, 239, 0.12);
}

.chat-anonymous-sidebar-head div {
  display: grid;
  gap: 3px;
}

.chat-anonymous-sidebar-head span {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.42);
}

.chat-anonymous-sidebar-section h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.42);
}

.chat-anonymous-identity-group {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.42);
}

.chat-anonymous-sidebar-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.035em;
}

.chat-anonymous-sidebar-close {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.56);
  border-radius: 0;
  background: transparent;
  color: rgba(248, 245, 239, 0.74);
  padding: 2px 0 3px;
  font-size: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.chat-anonymous-sidebar-section {
  display: grid;
  gap: 10px;
}

.chat-anonymous-sidebar-section p {
  margin: 0;
  color: rgba(248, 245, 239, 0.52);
  font-size: 11px;
  line-height: 1.62;
}

.chat-anonymous-identity-list {
  display: grid;
  gap: 8px;
}

.chat-anonymous-identity-option {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(248, 245, 239, 0.11);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 245, 239, 0.84);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "meta name" "meta desc";
  gap: 3px 10px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
}

.chat-anonymous-identity-option em {
  grid-area: meta;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(248, 245, 239, 0.10);
  color: rgba(248, 245, 239, 0.38);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.chat-anonymous-identity-option strong {
  grid-area: name;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  color: rgba(248, 245, 239, 0.92);
}

.chat-anonymous-identity-option span {
  grid-area: desc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(248, 245, 239, 0.48);
  font-size: 10px;
}

.chat-anonymous-identity-option.active {
  background: rgba(248, 245, 239, 0.11);
  border-color: rgba(248, 245, 239, 0.28);
}

.chat-anonymous-identity-empty {
  padding: 12px;
  border: 1px solid rgba(248, 245, 239, 0.08);
  color: rgba(248, 245, 239, 0.36);
  font-size: 11px;
  line-height: 1.55;
}

.chat-anonymous-memory-summary {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(248, 245, 239, 0.10);
  background: rgba(255, 255, 255, 0.026);
  color: rgba(248, 245, 239, 0.58);
}

.chat-anonymous-sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chat-anonymous-sidebar-actions button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.22);
  border-radius: 0;
  background: transparent;
  color: rgba(248, 245, 239, 0.74);
  padding: 9px 0;
  font-size: 12px;
}

.chat-anonymous-sidebar-section.is-danger-zone button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.22);
  border-radius: 0;
  background: transparent;
  padding: 9px 0;
  font-size: 12px;
  color: rgba(255, 196, 196, 0.82);
  border-bottom-color: rgba(255, 196, 196, 0.34);
}

.chat-anonymous-row.is-action-target::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -5px;
  bottom: -5px;
  border: 1px solid rgba(248, 245, 239, 0.20);
  background: rgba(248, 245, 239, 0.05);
  pointer-events: none;
}

.chat-anonymous-row.is-selected::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -5px;
  bottom: -5px;
  border: 1px solid rgba(248, 245, 239, 0.20);
  background: rgba(248, 245, 239, 0.05);
  pointer-events: none;
}

.chat-anonymous-row.is-selectable {
  cursor: pointer;
}

.chat-anonymous-select-mark {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 1px solid rgba(248, 245, 239, 0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 245, 239, 0.96);
  font-size: 12px;
  line-height: 1;
}

.chat-anonymous-actionbar {
  position: fixed;
  left: 12px;
  top: 120px;
  z-index: 18010;
  width: min(236px, calc(100vw - 20px));
  min-height: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 6px;
  background: #101114;
  color: rgba(248, 245, 239, 0.92);
  border: 1px solid rgba(248, 245, 239, 0.14);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(7px) scale(.98);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.chat-anonymous-actionbar.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-anonymous-actionbar button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.chat-anonymous-actionbar button span {
  font-size: 12px;
}

.chat-anonymous-actionbar button em {
  color: rgba(248, 245, 239, 0.36);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .18em;
}

.chat-anonymous-selectbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: max(86px, calc(env(safe-area-inset-bottom) + 76px));
  z-index: 14;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(248, 245, 239, 0.14);
  background: rgba(10, 10, 12, 0.92);
  color: rgba(248, 245, 239, 0.88);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.chat-anonymous-selectbar.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-anonymous-selectbar span {
  font-size: 12px;
  color: rgba(248, 245, 239, 0.56);
}

.chat-anonymous-selectbar button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.26);
  border-radius: 0;
  background: transparent;
  color: rgba(248, 245, 239, 0.86);
  padding: 5px 0;
  font-size: 12px;
}

.chat-anonymous-view.is-multi-selecting .chat-anonymous-composer {
  opacity: .38;
  pointer-events: none;
}

.chat-anonymous-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  position: relative;
}

.chat-anonymous-npc-editor {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(248, 245, 239, 0.09);
  background: rgba(255, 255, 255, 0.026);
}

.chat-anonymous-npc-editor.is-active-npc {
  border-color: rgba(248, 245, 239, 0.20);
  background: rgba(248, 245, 239, 0.045);
}

.chat-anonymous-npc-field {
  display: grid;
  gap: 5px;
}

.chat-anonymous-npc-field span {
  color: rgba(248, 245, 239, 0.38);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: .18em;
}

.chat-anonymous-npc-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.16);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: rgba(248, 245, 239, 0.86);
  font-size: 13px;
  line-height: 1.55;
  padding: 7px 0;
  resize: vertical;
}

.chat-anonymous-npc-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.16);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: rgba(248, 245, 239, 0.86);
  font-size: 13px;
  line-height: 1.55;
  padding: 7px 0;
  resize: vertical;
  min-height: 92px;
  max-height: 180px;
}

.chat-anonymous-npc-field input::placeholder {
  color: rgba(248, 245, 239, 0.30);
}

.chat-anonymous-npc-field textarea::placeholder {
  color: rgba(248, 245, 239, 0.30);
}

.chat-anonymous-npc-save {
  appearance: none;
  -webkit-appearance: none;
  width: max-content;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.34);
  border-radius: 0;
  background: transparent;
  color: rgba(248, 245, 239, 0.82);
  padding: 7px 0 4px;
  font-size: 12px;
}

.chat-anonymous-sidebar-section .chat-anonymous-npc-note {
  color: rgba(248, 245, 239, 0.38);
  font-size: 10px;
  line-height: 1.55;
}

