/* ===== Login Page ===== */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* ===== Background ===== */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #FFF9F3 0%, #FAF8F5 50%, #F5F1EC 100%);
  transition: background 1.2s ease;
}
body.pw-dawn .login-bg { background: linear-gradient(135deg, #FDEBD2 0%, #F6D9B8 50%, #E8C29A 100%); }
body.pw-dusk .login-bg { background: linear-gradient(135deg, #F7D9C4 0%, #EAB98F 50%, #C98B5E 100%); }
body.pw-night .login-bg { background: linear-gradient(135deg, #27344E 0%, #1E2940 50%, #141C30 100%); }
body.pw-night .login-bg::after { background: radial-gradient(ellipse 120% 90% at 50% 44%, rgba(10,16,30,0) 0%, rgba(10,16,30,0.18) 55%, rgba(8,12,24,0.5) 100%); }
body.pw-night .login-bg-orb { opacity: 0.16; filter: blur(70px) saturate(0.7); }
.login-life {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* ?????????????? */
.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 44%,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 252, 247, 0.16) 55%,
    rgba(250, 246, 240, 0.68) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .login-life {
    filter: saturate(0.92);
  }
}
.login-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}
.login-bg-orb-1 {
  width: 300px; height: 300px;
  background: var(--primary);
  top: -80px; right: -60px;
}
.login-bg-orb-2 {
  width: 250px; height: 250px;
  background: var(--accent);
  bottom: -60px; left: -40px;
}
.login-bg-orb-3 {
  width: 200px; height: 200px;
  background: #D4877B;
  top: 40%; left: 60%;
  opacity: 0.2;
}

/* ===== Card ===== */

.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(61, 50, 38, 0.12);
  border: 1px solid var(--border);
  padding: 40px 36px 28px;
}

/* ===== Logo ===== */
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  white-space: nowrap;
  line-height: 1;
  min-width: 0;
}
.login-logo svg {
  flex: 0 0 auto;
}
.login-tagline {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.login-era {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.login-era::before,
.login-era::after {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
}
.login-era::before {
  background: linear-gradient(90deg, transparent, rgba(150, 110, 70, 0.55));
}
.login-era::after {
  background: linear-gradient(90deg, rgba(150, 110, 70, 0.55), transparent);
}
.login-era .era-year {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 3px;
}
.login-era .era-date {
  letter-spacing: 1px;
}

/* ===== Language Toggle ===== */
.lang-toggle-bar {
  display: flex;
  gap: 8px;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.lang-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.lang-toggle-btn:hover {
  color: var(--text);
}
.lang-toggle-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ===== Auth Panels ===== */
.auth-panel.hidden {
  display: none;
}

/* ===== Tabs ===== */
.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.auth-tab:hover {
  color: var(--text-secondary);
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.auth-tab-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== QR Container (Meipian style) ===== */
.qr-card {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(61,50,38,0.06);
  overflow: hidden;
  position: relative;
}
.qr-container {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.qr-card { box-sizing: content-box; padding-bottom: 32px; }
.qr-logo[hidden] { display: none; }
.wechat-action { border: 0; border-radius: 10px; padding: 12px 18px; background: #07a653; color: #fff; font: inherit; cursor: pointer; }
.wechat-action:disabled { opacity: .6; cursor: wait; }
.wechat-refresh { position: absolute; bottom: 8px; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 13px; cursor: pointer; }
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
}
.qr-status {
  font-size: 13px;
  text-align: center;
}
.qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
}
.qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
}
/* 微信扫码 iframe 适配：WxLogin 固定 300x400，缩放铺进 200px 容器，避免被裁切 */
#wechatQrDiv {
  width: 200px;
  height: 200px;
  overflow: hidden;
}
#wechatQrDiv iframe {
  width: 300px;
  height: 400px;
  transform: translate(11px, 5px) scale(0.60);
  transform-origin: 0 0;
  border: 0;
}
.qr-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.qr-tip {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.qr-tip strong {
  color: #07C160;
}

.follow-only #cnPanel > .auth-tabs { display: none; }
.follow-only [hidden] { display: none !important; }
.follow-only .login-tagline { margin-bottom: 28px; }
.follow-help {
  display: block;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.follow-help:hover { text-decoration: underline; }
.follow-guide { text-align: center; }
.follow-guide img { display: block; width: 200px; max-width: 100%; margin: 20px auto 12px; }
.follow-guide .wechat-action { margin-top: 20px; }
.wechat-browser .qr-card {
  width: auto;
  height: auto;
  padding: 0;
  margin-bottom: 12px;
  border: 0;
  box-shadow: none;
  background: none;
}
.wechat-browser .qr-container { width: 100%; height: auto; min-height: 52px; }
.wechat-browser .qr-container > .wechat-action { width: 100%; }
.wechat-browser #qrTitle { display: none; }

/* ===== Forms ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input {
  /* photo wall input guard */
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 115, 62, 0.1);
}
.form-group input::placeholder {
  color: var(--text-tertiary);
}

.form-row {
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}
.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Buttons ===== */
.btn-send-code {
  white-space: nowrap;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  min-width: 100px;
}
.btn-send-code:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.btn-send-code:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-auth-submit {
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(196, 115, 62, 0.3);
}
.btn-auth-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(196, 115, 62, 0.35);
}
.btn-auth-submit:active {
  transform: translateY(0);
}

/* ===== Divider ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== Social Buttons ===== */
.social-buttons {
  display: flex;
  gap: 10px;
}
.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-social:hover {
  border-color: var(--text-tertiary);
  background: var(--surface-alt);
  transform: translateY(-1px);
}
.btn-google svg {
  flex-shrink: 0;
}

/* ===== Error Message ===== */
.auth-error {
  margin-top: 16px;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  color: #DC2626;
  font-size: 13px;
  text-align: center;
}
.auth-error.hidden {
  display: none;
}

/* ===== Footer ===== */
.login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}
.login-footer a {
  color: var(--text-tertiary);
  transition: var(--transition);
}
.login-footer a:hover {
  color: var(--primary);
}

/* ===== Success Animation ===== */
.login-success {
  text-align: center;
  padding: 40px 0;
}
.login-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.login-success-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.login-success-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== Slider Captcha ===== */
.slider-captcha {
  position: relative;
  width: 100%;
  height: 44px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  margin-top: 4px;
}
.slider-track {
  position: absolute;
  inset: 0;
  background: #F2F0EC;
  border-radius: 22px;
  overflow: hidden;
}
.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C6E4C5 0%, #B3D9B2 100%);
  border-radius: 22px;
  transition: width 0.05s linear;
}
.slider-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #B8B4AD;
  transition: color 0.3s;
}
.slider-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}
.slider-thumb:hover {
  color: var(--primary);
}
.slider-thumb svg.hidden {
  display: none;
}
/* 昵称输入区（首次登录显示） */
.nickname-group.hidden {
  display: none;
}
.nickname-group {
  animation: nicknameSlideIn 0.4s ease;
}
.nickname-hint {
  font-size: 0.78em;
  color: #8B7355;
  margin: 6px 0 0;
  line-height: 1.4;
}
@keyframes nicknameSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.slider-captcha.verified .slider-fill {
  width: 100% !important;
  background: linear-gradient(90deg, #C6E4C5 0%, #A8D4A6 100%);
}
.slider-captcha.verified .slider-text {
  color: #5B8C5A;
}
.slider-captcha.verified .slider-thumb {
  left: calc(100% - 42px) !important;
  color: #5B8C5A;
  cursor: default;
}

/* ===== Test Mode Slider ===== */
.slider-captcha.test-mode {
  cursor: pointer;
}
.slider-captcha.test-mode .slider-track {
  border: 2px dashed #D4A574;
  background: #FFF8F0;
}
.slider-captcha.test-mode .slider-text {
  color: #D4A574;
  font-weight: 500;
  font-size: 14px;
}
.slider-captcha.test-mode .slider-thumb {
  cursor: pointer;
}
.slider-captcha.test-mode .slider-thumb:hover {
  color: #C4733E;
}
.slider-captcha.test-mode .slider-fill {
  background: linear-gradient(90deg, #F0D5B8 0%, #E8C49A 100%);
}
.slider-captcha.test-mode.verified .slider-text {
  color: #C4733E;
}
.slider-captcha.test-mode.verified .slider-thumb {
  color: #C4733E;
}

/* ===== Test Mode Toggle Bar ===== */
.test-mode-bar {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #FAFAF8;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.test-mode-bar.active {
  background: #FFF8F0;
  border-color: #F0D5B8;
}
.test-mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.test-mode-toggle input[type="checkbox"] {
  display: none;
}
.test-mode-indicator {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #DDD;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.test-mode-indicator::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: left 0.25s ease;
}
.test-mode-toggle input:checked + .test-mode-indicator {
  background: #D4A574;
}
.test-mode-toggle input:checked + .test-mode-indicator::after {
  left: 18px;
}
.test-mode-label {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.test-mode-bar.active .test-mode-label {
  color: #C4733E;
  font-weight: 500;
}
.test-mode-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}
.test-mode-bar.active .test-mode-hint {
  color: #D4A574;
}

/* ===== Agreement Line ===== */
.agreement-line {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 16px 0 0;
}
.agreement-line a {
  color: var(--primary);
}
.agreement-line a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px 24px;
    border-radius: 20px;
  }
  .login-logo {
    font-size: 20px;
  }
  .login-era {
    font-size: 12px;
    gap: 8px;
    letter-spacing: 1px;
  }
  .login-era .era-year {
    font-size: 14px;
  }
}

/* 照片墙调测配置面板 */
.pw-config-panel { position: fixed; top: 14px; left: 14px; z-index: 60; width: 272px; background: rgba(255,250,240,0.97); border: 1px solid rgba(150,110,70,0.5); border-radius: 12px; box-shadow: 0 10px 30px rgba(90,60,30,0.28); font: 12px 'PingFang SC','Microsoft YaHei',sans-serif; color: #5A4030; user-select: none; }
.pw-config-panel.hidden { display: none; }
.pw-config-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid rgba(150,110,70,0.25); font-weight: 600; }
.pw-config-head button { border: none; background: none; font-size: 17px; line-height: 1; color: #8A6A4A; cursor: pointer; padding: 0 2px; }
.pw-config-body { padding: 8px 12px; max-height: 62vh; overflow-y: auto; }
.pw-config-body label { display: flex; align-items: center; gap: 6px; margin: 7px 0; }
.pw-config-body .pw-val { min-width: 36px; text-align: right; color: #8A6A4A; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-config-body input[type="range"] { flex: 1; min-width: 0; }
.pw-config-body .pw-select { flex: 1; min-width: 0; border: 1px solid rgba(150,110,70,0.4); border-radius: 8px; padding: 4px 6px; font: inherit; font-size: 12px; color: #6B4A32; background: #FFF9F0; }
.pw-config-body .pw-check { justify-content: flex-start; gap: 8px; cursor: pointer; }
.pw-config-body .pw-check input { width: auto; flex: none; }
.pw-config-body .pw-hint { margin: -2px 0 8px 2px; font-size: 11px; color: #A0845E; line-height: 1.45; }
.pw-config-foot { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid rgba(150,110,70,0.25); }
.pw-config-foot button { flex: 1; padding: 6px 0; border: 1px solid rgba(150,110,70,0.5); background: #FFF9F0; color: #6B4A32; border-radius: 8px; cursor: pointer; font: inherit; }
.pw-config-foot button:hover { background: #F3E5CF; }


/* ===== 点击头像：互动聊天卡片 ===== */
.pw-chat { position: fixed; z-index: 50; background: rgba(255,252,246,0.97); border: 1px solid rgba(150,110,70,0.45); border-radius: 14px; box-shadow: 0 14px 40px rgba(90,60,30,0.30); font: 13px 'PingFang SC','Microsoft YaHei',sans-serif; color: #5A4030; user-select: none; }
.pw-chat.hidden { display: none; }
.pw-chat::before, .pw-chat::after { content: ""; position: absolute; top: 28px; width: 0; height: 0; border: 8px solid transparent; }
.pw-chat.pw-chat-tl::before { left: -16px; border-right-color: rgba(150,110,70,0.45); }
.pw-chat.pw-chat-tl::after { left: -14px; border-right-color: #FFFCF6; }
.pw-chat.pw-chat-tr::before { right: -16px; border-left-color: rgba(150,110,70,0.45); }
.pw-chat.pw-chat-tr::after { right: -14px; border-left-color: #FFFCF6; }
.pw-chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; }
.pw-chat-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid rgba(150,110,70,0.35); background: #F3E5CF; }
.pw-chat-avatar canvas { display: block; width: 40px; height: 40px; }
.pw-chat-who { flex: 1; min-width: 0; }
.pw-chat-name { font-weight: 600; font-size: 14px; color: #6B4A32; }
.pw-chat-role { font-size: 11px; color: #A0826A; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-chat-close { border: none; background: none; font-size: 18px; line-height: 1; color: #A0826A; cursor: pointer; padding: 2px 5px; border-radius: 6px; }
.pw-chat-close:hover { background: #F3E5CF; color: #6B4A32; }
.pw-chat-body { padding: 4px 14px 8px; min-height: 52px; max-height: 150px; overflow-y: auto; }
.pw-chat-text { line-height: 1.75; font-size: 13px; color: #6B4A32; word-break: break-word; }
.pw-chat-cursor { display: inline-block; width: 2px; height: 14px; background: #C4733E; margin-left: 1px; vertical-align: -2px; animation: pw-blink 0.8s steps(1) infinite; }
@keyframes pw-blink { 50% { opacity: 0; } }
.pw-chat-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 10px; }
.pw-chat-btn { border: 1px solid rgba(150,110,70,0.5); background: #FFF9F0; color: #6B4A32; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.pw-chat-btn:hover { background: #F3E5CF; }
.pw-chat-bye { border-color: rgba(150,110,70,0.25); color: #A0826A; background: transparent; }
.pw-chat-input-row { display: flex; gap: 6px; padding: 2px 12px 12px; }
.pw-chat-input-row.hidden { display: none; }
.pw-chat-input { flex: 1; min-width: 0; border: 1px solid rgba(150,110,70,0.4); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; color: #5A4030; background: #FFFDF8; outline: none; }
.pw-chat-input:focus { border-color: #C4733E; }
.pw-chat-send { border: 1px solid rgba(150,110,70,0.5); background: #C4733E; color: #FFF9F0; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 12px; cursor: pointer; }
.pw-chat-send:hover { background: #B0632F; }
.pw-chat-in { animation: pw-pop 0.22s ease-out; }
.pw-chat-close:focus-visible, .pw-chat-btn:focus-visible, .pw-chat-send:focus-visible, .pw-chat-input:focus-visible, .pw-config-foot button:focus-visible { outline: 2px solid #C4733E; outline-offset: 1px; }
@keyframes pw-pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 480px) {
  .pw-chat { width: calc(100vw - 24px) !important; }
}
