.rq-curator-access-panel {
  position: absolute;
  z-index: 20;
  inset: 65px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 30px 30px;
  background: #15120e;
  color: #dfd1ba;
}

.rq-curator-access-panel.rq-curator-chat-panel {
  display: block;
  padding: 12px 14px 14px;
}

.rq-panel-form {
  width: 100%;
}

.rq-panel-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  color: rgba(223, 209, 186, 0.42);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.rq-panel-intro strong {
  color: #bd9149;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.rq-panel-field {
  margin-bottom: 10px;
}

.rq-panel-field label {
  display: block;
  margin-bottom: 7px;
  color: #9c7539;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.rq-panel-field input {
  width: 100%;
  height: 43px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(190, 143, 65, 0.28);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #e2d6c3;
  caret-color: #c79a4d;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 17px;
  transition: border-color 180ms ease;
}

.rq-panel-password-control {
  position: relative;
}

.rq-panel-password-control input {
  padding-right: 54px;
}

.rq-panel-password-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 43px;
  padding: 0 2px 0 12px;
  border: 0;
  background: transparent;
  color: rgba(199, 154, 77, 0.72);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.rq-panel-password-toggle:hover,
.rq-panel-password-toggle:focus-visible {
  color: #e1bd7b;
  outline: none;
}

.rq-panel-field input::placeholder {
  color: rgba(223, 209, 186, 0.22);
}

.rq-panel-field input:focus {
  border-color: #bd9149;
}

.rq-panel-field.rq-panel-has-error input {
  border-color: #a85243;
}

.rq-panel-field p,
.rq-panel-consent-error {
  min-height: 17px;
  margin: 5px 0 0;
  color: #b85e4b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.45;
}

.rq-panel-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  color: rgba(223, 209, 186, 0.48);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.rq-panel-consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: #bd9149;
}

.rq-panel-consent-error {
  margin-top: 4px;
}

.rq-panel-submit {
  display: flex;
  width: 100%;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  border: 1px solid rgba(190, 143, 65, 0.5);
  background: rgba(190, 143, 65, 0.04);
  color: #c79a4d;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.rq-panel-submit:hover,
.rq-panel-submit:focus-visible {
  border-color: #c79a4d;
  background: rgba(190, 143, 65, 0.1);
  color: #e1bd7b;
}

.rq-panel-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.rq-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rq-card-chat {
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr) auto auto 14px;
  gap: 8px;
  height: 100%;
  min-height: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
}

.rq-card-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(223, 209, 186, 0.48);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.rq-card-chat-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rq-card-chat-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8f6d36;
  box-shadow: 0 0 8px rgba(199, 154, 77, 0.35);
}

.rq-card-chat-state[data-mode="online"] i { background: #b8914d; }
.rq-card-chat-state[data-mode="error"] i { background: #a85243; box-shadow: none; }

.rq-card-sound {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
  color: #a77c3c;
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.rq-card-sound img {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.rq-card-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 3px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(190, 143, 65, 0.26) transparent;
}

.rq-card-message {
  display: flex;
  margin-bottom: 12px;
}

.rq-card-message-curator,
.rq-card-message-notice { justify-content: flex-start; }
.rq-card-message-visitor { justify-content: flex-end; }

.rq-card-message-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border: 1px solid rgba(190, 143, 65, 0.18);
  color: rgba(230, 219, 201, 0.84);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.06em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rq-card-message-curator .rq-card-message-bubble {
  border-radius: 2px 13px 13px 13px;
  background: #201c17;
}

.rq-card-message-visitor .rq-card-message-bubble {
  border-color: rgba(190, 143, 65, 0.32);
  border-radius: 13px 2px 13px 13px;
  background: #241d13;
  color: #d9bf91;
}

.rq-card-message-notice .rq-card-message-bubble {
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: rgba(223, 209, 186, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 10px;
}

.rq-card-message-bubble.rq-is-thinking {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(223, 209, 186, 0.44);
}

.rq-thinking-dots {
  display: inline-flex;
  height: 10px;
  align-items: center;
  gap: 3px;
}

.rq-thinking-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c79a4d;
  opacity: 0.28;
  animation: rq-thinking-dot 1.05s ease-in-out infinite;
}

.rq-thinking-dots i:nth-child(2) { animation-delay: 140ms; }
.rq-thinking-dots i:nth-child(3) { animation-delay: 280ms; }

@keyframes rq-thinking-dot {
  0%, 60%, 100% { opacity: 0.24; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.rq-card-topics {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.rq-card-topics::-webkit-scrollbar { display: none; }

.rq-card-topics button {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid rgba(190, 143, 65, 0.28);
  border-radius: 999px;
  background: transparent;
  color: rgba(199, 154, 77, 0.78);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
}

.rq-card-topics button:hover,
.rq-card-topics button:focus-visible {
  border-color: #c79a4d;
  color: #e1bd7b;
  outline: none;
}

.rq-card-composer {
  min-height: 48px;
  background: transparent;
}

.rq-card-text-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 54px;
  align-items: end;
  min-height: 48px;
  border: 1px solid rgba(190, 143, 65, 0.34);
  background: #11100d;
}

.rq-card-text-mode[hidden],
.rq-card-voice-mode[hidden],
.rq-card-voice-transcript[hidden],
.rq-card-voice-idle[hidden],
.rq-card-voice-actions[hidden] {
  display: none !important;
}

.rq-card-text-mode textarea {
  width: 100%;
  min-height: 46px;
  max-height: 78px;
  resize: none;
  padding: 13px 7px 9px 12px;
  border: 0;
  outline: none;
  background: transparent;
  color: #e2d6c3;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.rq-card-text-mode textarea::placeholder { color: rgba(223, 209, 186, 0.28); }

.rq-card-text-mode button {
  height: 46px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(190, 143, 65, 0.24);
  background: transparent;
  color: #bd9149;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.rq-card-text-mode .rq-card-voice-switch {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  align-self: center;
  justify-self: center;
  padding: 0;
  border-left: 0;
  border-radius: 50%;
  transition: background-color 180ms ease, transform 180ms ease;
}

.rq-card-text-mode .rq-card-voice-switch img {
  width: 17px;
  height: 17px;
}

.rq-card-text-mode .rq-card-voice-switch:hover,
.rq-card-text-mode .rq-card-voice-switch:focus-visible {
  background: rgba(199, 154, 77, 0.12);
  transform: translateY(-1px);
}

.rq-card-voice-mode {
  position: relative;
  display: flex;
  min-height: 144px;
  padding: 9px 10px 10px;
  border: 1px solid rgba(190, 143, 65, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(199, 154, 77, 0.08), transparent 58%),
    #11100d;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.rq-card-voice-transcript {
  display: flex;
  width: 100%;
  height: 86px;
  padding: 10px 12px 7px;
  border: 1px solid rgba(190, 143, 65, 0.3);
  background:
    linear-gradient(180deg, rgba(199, 154, 77, 0.055), rgba(13, 11, 8, 0.32)),
    rgba(25, 21, 16, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.rq-card-voice-transcript p {
  display: block;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 5px 0 1px;
  overflow-x: hidden;
  overflow-y: auto;
  color: rgba(235, 224, 206, 0.92);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.035em;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  scrollbar-color: rgba(199, 154, 77, 0.38) transparent;
  scrollbar-width: thin;
}

.rq-card-voice-transcript p::-webkit-scrollbar { width: 2px; }
.rq-card-voice-transcript p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(199, 154, 77, 0.42);
}

.rq-card-voice-wave {
  display: flex;
  width: 100%;
  height: 13px;
  padding-top: 4px;
  border-top: 1px solid rgba(190, 143, 65, 0.14);
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.rq-card-voice-wave i {
  width: 2px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to top, #9c7539, #d8b56a);
  opacity: 0.82;
  animation: rq-voice-wave 820ms ease-in-out infinite;
  animation-delay: calc(var(--rq-wave) * -74ms);
}

.rq-card-voice-wave i:nth-child(2n) { animation-duration: 970ms; }
.rq-card-voice-wave i:nth-child(3n) { animation-duration: 730ms; }

@keyframes rq-voice-wave {
  0%, 100% { height: 3px; opacity: 0.42; }
  50% { height: 13px; opacity: 1; }
}

.rq-card-voice-status {
  min-height: 16px;
  margin: 5px 0 3px;
  color: rgba(199, 154, 77, 0.68);
  font-size: 9px;
  line-height: 16px;
  letter-spacing: 0.09em;
  text-align: center;
}

.rq-card-voice-idle {
  position: relative;
  width: 100%;
  height: 48px;
}

.rq-card-voice-start,
.rq-card-keyboard-switch,
.rq-card-voice-actions button {
  border: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  cursor: pointer;
}

.rq-card-voice-start {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(216, 181, 106, 0.76);
  border-radius: 50%;
  background: linear-gradient(180deg, #d2a954, #a77c3c);
  place-items: center;
  transform: translateX(-50%);
  box-shadow: inset 0 1px 0 rgba(255, 235, 188, 0.34), 0 8px 24px rgba(81, 55, 16, 0.24);
  transition: transform 160ms ease, filter 160ms ease;
}

.rq-card-voice-start:hover,
.rq-card-voice-start:focus-visible {
  filter: brightness(1.08);
  outline: none;
  transform: translateX(-50%) translateY(-1px);
}

.rq-card-voice-start img {
  width: 20px;
  height: 20px;
}

.rq-card-keyboard-switch {
  position: absolute;
  right: 1px;
  bottom: 5px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(190, 143, 65, 0.24);
  border-radius: 50%;
  background: #1c1812;
  place-items: center;
}

.rq-card-keyboard-switch img {
  width: 15px;
  height: 15px;
  opacity: 0.78;
}

.rq-card-keyboard-switch:hover,
.rq-card-keyboard-switch:focus-visible {
  border-color: rgba(216, 181, 106, 0.68);
  background: #241d13;
  outline: none;
}

.rq-card-voice-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rq-card-voice-actions button {
  height: 34px;
  padding: 0;
  border: 1px solid rgba(190, 143, 65, 0.25);
  border-radius: 999px;
  background: #1b1813;
  color: rgba(223, 209, 186, 0.66);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.rq-card-voice-actions .rq-card-voice-send {
  border-color: rgba(199, 154, 77, 0.72);
  background: rgba(199, 154, 77, 0.16);
  color: #d8b56a;
}

.rq-card-voice-actions button:hover,
.rq-card-voice-actions button:focus-visible {
  background: #211a11;
  color: #e1bd7b;
  outline: none;
}

.rq-card-composer button:disabled,
.rq-card-composer textarea:disabled { opacity: 0.5; cursor: wait; }

.rq-card-composer.rq-is-voice-requesting .rq-card-voice-transcript {
  border-color: rgba(199, 154, 77, 0.38);
}

.rq-card-composer.rq-is-voice-requesting .rq-card-voice-wave i {
  animation-duration: 1.35s;
  opacity: 0.46;
}

.rq-card-composer.rq-is-voice-active .rq-card-voice-transcript {
  border-color: rgba(199, 154, 77, 0.5);
}

.rq-card-chat-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  color: rgba(223, 209, 186, 0.3);
  font-size: 9px;
  line-height: 14px;
  text-align: right;
  letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
  .rq-thinking-dots i,
  .rq-card-voice-wave i {
    animation: none;
  }

  .rq-card-voice-wave i { height: 7px; }
  .rq-thinking-dots i { opacity: 0.72; }
}

@media (max-width: 480px) {
  .rq-curator-access-panel {
    padding: 22px 22px 24px;
  }

  .rq-panel-intro {
    margin-bottom: 18px;
  }

  .rq-curator-access-panel.rq-curator-chat-panel {
    padding: 10px 12px 12px;
  }
}
