/* 3duxinshu - 心理人格侧写 UI */
:root {
  --bg: #0f0f12;
  --surface: #18181c;
  --surface-2: #222228;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --border: #27272a;
  --success: #34d399;
  --warning: #fbbf24;
}

/* ===== 网站对齐小程序 · Phase 1A：AI 生成标识（常驻）===== */
.ai-disclaimer { padding: 8px 16px 14px; font-size: 11px; line-height: 1.5; color: var(--text-muted); text-align: center; }
.msg-ai-tag { display: inline-block; margin-left: 8px; font-size: 10px; color: var(--accent); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 8px; vertical-align: middle; font-weight: 400; }

/* ===== Phase 1B：登录协议勾选 ===== */
.login-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--text-muted); line-height: 1.6; text-align: left; cursor: pointer; }
.login-agree-cb { margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.login-link { color: var(--accent); text-decoration: none; }

/* ===== Phase 1D：举报 ===== */
.report-body { padding: 14px; overflow-y: auto; }
.report-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.report-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.report-req { color: #e05a5a; }
.report-quote { background: var(--surface-2); border-left: 3px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.report-reasons { display: flex; flex-direction: column; gap: 2px; }
.report-opt { display: flex; align-items: center; gap: 10px; padding: 9px 2px; font-size: 14px; cursor: pointer; }
.report-opt input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
#report-detail { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; color: var(--text); font-size: 13px; resize: none; font-family: inherit; }
.report-note { font-size: 11.5px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.msg-report-btn { background: none; border: none; color: var(--text-muted); font-size: 11px; cursor: pointer; padding: 2px 0; margin-top: 4px; opacity: 0.55; }
.msg-report-btn:hover { opacity: 1; color: var(--accent); }

/* ===== Phase 2A：杯充值 ===== */
#credits-cup-wrap { margin-top: 10px; }
.credits-option-cup { position: relative; width: 100%; flex-direction: column; align-items: flex-start; border-color: var(--accent); background: linear-gradient(135deg, rgba(167,139,250,.16), rgba(167,139,250,.05)); }
.credits-cup-badge { display: block; font-size: 11px; color: var(--accent); margin-bottom: 4px; font-weight: 600; }

/* ===== Phase 2B：朋友圈福利券 ===== */
.coupon-box { max-width: 420px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.coupon-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.coupon-subtitle { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }
.coupon-claim-btn { width: 100%; padding: 14px; font-size: 16px; }
.coupon-state-text { font-size: 14px; color: var(--accent); line-height: 1.7; margin: 18px 0; min-height: 22px; }
.coupon-go-btn { margin-top: 16px; }

/* ===== Phase 3A：测评中心 ===== */
.quiz-list { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.quiz-card { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; color: var(--text); }
.quiz-card:hover { border-color: var(--accent); }
.quiz-card-cover { font-size: 30px; flex-shrink: 0; }
.quiz-card-body { display: flex; flex-direction: column; gap: 4px; }
.quiz-card-title { font-size: 15px; font-weight: 600; }
.quiz-card-intro { font-size: 12.5px; color: var(--text-muted); }
.quiz-empty { padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }
.quiz-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.quiz-title-text { flex: 1; font-size: 15px; font-weight: 600; }
.quiz-progress { font-size: 13px; color: var(--text-muted); }
.quiz-progress-track { height: 3px; background: var(--surface-2); }
.quiz-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.quiz-body { padding: 24px 18px; max-width: 560px; margin: 0 auto; width: 100%; }
.quiz-q-title { font-size: 18px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; }
.quiz-q-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.quiz-opt { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 15px; color: var(--text); cursor: pointer; }
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.selected { border-color: var(--accent); background: rgba(167,139,250,.16); color: var(--accent); }
#quiz-text { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); font-size: 14px; resize: none; font-family: inherit; }
.quiz-nav { display: flex; gap: 12px; margin-top: 24px; }
.quiz-nav button { flex: 1; padding: 13px; }

/* ===== Phase 3B：成长足迹 ===== */
.growth-body { padding: 16px; overflow-y: auto; }
.growth-empty { padding: 50px 20px; text-align: center; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.growth-timeline { position: relative; }
.growth-item { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.growth-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 1px; background: var(--border); }
.growth-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 4px; z-index: 1; }
.growth-item-head { display: flex; align-items: center; gap: 10px; }
.growth-item-label { font-size: 14px; font-weight: 600; }
.growth-item-delta { font-size: 12px; color: var(--success); }
.growth-item-time { font-size: 11.5px; color: var(--text-muted); margin: 3px 0 5px; }
.growth-item-reason { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== 你身边的人（2026-07-28）：整行可点开编辑，不放小按钮 ===== */
.roster-body { padding: 16px; overflow-y: auto; max-width: 640px; margin: 0 auto; width: 100%; }
.roster-intro { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.roster-intro b { color: var(--text); font-weight: 600; }
.roster-tip { font-size: 12.5px; color: var(--accent-hover); background: rgba(167,139,250,.08); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; line-height: 1.6; }
.roster-empty { padding: 50px 20px; text-align: center; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.roster-row { display: flex; align-items: baseline; gap: 10px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.roster-row:hover { border-color: var(--accent); background: rgba(167,139,250,.05); }
.roster-name { font-size: 14.5px; font-weight: 600; flex-shrink: 0; }
.roster-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; word-break: break-all; }
.roster-row-unknown { border-style: dashed; }
.roster-row-unknown .roster-desc { color: var(--accent-hover); }
.roster-row-edit { display: block; cursor: default; border-color: var(--accent); background: rgba(167,139,250,.05); }
.roster-row-edit .roster-name { margin-bottom: 9px; }
.roster-input { width: 100%; box-sizing: border-box; padding: 9px 11px; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.roster-input:focus { outline: none; border-color: var(--accent); }
.roster-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.roster-actions .roster-save { padding: 7px 18px; font-size: 13.5px; }
.roster-actions .roster-del { margin-left: auto; color: var(--text-muted); font-size: 12.5px; }

/* ===== Phase 3C：灵魂透镜 ===== */
.soul-lens-body { padding: 18px; overflow-y: auto; max-width: 640px; margin: 0 auto; width: 100%; }
.soul-lens-content h1 { font-size: 20px; color: var(--accent); margin: 18px 0 10px; text-align: center; }
.soul-lens-content h2 { font-size: 16px; margin: 18px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.soul-lens-content h3 { font-size: 14.5px; margin: 14px 0 6px; }
.soul-lens-content p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin: 6px 0; }
.soul-lens-content blockquote { border-left: 3px solid var(--accent); background: rgba(167,139,250,.08); padding: 10px 14px; margin: 12px 0; color: var(--accent-hover); font-size: 14px; line-height: 1.7; }
.soul-lens-content hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.soul-lens-empty { padding: 30px 10px; text-align: center; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.soul-lens-gen { width: 100%; margin-top: 18px; }
.soul-lens-tip { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ===== Phase 3D：加载更早 ===== */
.chat-load-older { display: block; margin: 8px auto; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; padding: 6px 16px; border-radius: 14px; cursor: pointer; }
.chat-load-older:hover { color: var(--accent); border-color: var(--accent); }

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: var(--bg);
}
.login-box {
  width: 100%;
  max-width: 360px;
  padding: 2rem;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.login-title { font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--text); }
.login-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 1.5rem; }
.login-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
}
.login-btn { width: 100%; margin-top: 0.25rem; margin-bottom: 0.25rem; }
.login-btn:disabled,
.login-btn.login-btn-cooldown { background: var(--muted, #9ca3af); color: #1f2937; cursor: not-allowed; }
.login-error { color: #f87171; font-size: 0.85rem; margin-top: 0.75rem; }
.app-main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.app-main.hidden { display: none !important; }
.login-panel.hidden { display: none !important; }

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  padding-left: max(0.5rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
  padding-top: max(0.5rem, env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

.btn-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.btn-menu:hover { background: var(--surface-2); }
.btn-menu:active { opacity: 0.8; }

.app-title {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* 顶部右侧操作（仅手机端显示：新建、设置） */
.header-actions-mobile {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
#btn-life { flex-shrink: 0; min-height: 44px; white-space: nowrap; }
.btn-add-him-mobile {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}
.btn-add-him-mobile:hover {
  background: rgba(167, 139, 250, 0.15);
}
.header-actions-mobile .btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
}

/* 遮罩：移动端打开侧栏时显示 */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sidebar-backdrop.visible {
  opacity: 1;
}
.sidebar-backdrop.hidden {
  display: none !important;
}

.app-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  align-items: stretch;
}

/* 侧边栏：始终固定，不随页面滚动 */
#sidebar {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#btn-add-him {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

#btn-add-him:hover {
  background: rgba(167, 139, 250, 0.15);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--text);
  background: var(--surface-2);
}

.icon-gear {
  width: 20px;
  height: 20px;
}

.btn-sidebar-close {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.btn-sidebar-close:hover { color: var(--text); background: var(--surface-2); }

/* 圆形头像（主人格/他人格）：默认图或自定义图，仅显示中间圆形区域 */
.identity-avatar {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
}
.identity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.identity-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text);
}
.identity-avatar-btn {
  cursor: pointer;
  position: relative;
}
.identity-avatar-btn:hover {
  opacity: 0.9;
}
.identity-avatar-btn:active {
  opacity: 0.8;
}
#him-list li.active .identity-avatar,
#him-list li.active .identity-avatar-fallback,
.identity-chip.active .identity-avatar,
.identity-chip.active .identity-avatar-fallback {
  background: rgba(167, 139, 250, 0.35);
  color: var(--accent);
}

#him-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

#him-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
}

#him-list li:hover {
  background: var(--surface-2);
}

#him-list li.active {
  background: rgba(167, 139, 250, 0.2);
  color: var(--accent);
}

.him-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.him-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 0.5rem;
}

/* 顶部人格切换条（仅手机端显示） */
.top-identity-strip {
  display: none;
  flex-shrink: 0;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.top-identity-strip::-webkit-scrollbar {
  height: 0;
}
.identity-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  -webkit-tap-highlight-color: transparent;
}
.identity-chip:hover {
  background: var(--border);
}
.identity-chip.active {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.2);
  color: var(--accent);
}
.identity-chip .identity-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}
.identity-chip-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 主内容：居中，略放宽，避免左侧被裁切 */
#main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 2rem 1rem;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--bg);
}

.panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 780px;
  overflow: hidden;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.panel.hidden {
  display: none !important;
}

/* 首次进入主界面时的加载态，避免从欢迎页闪到对话 */
.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  color: var(--text-secondary, #666);
  font-size: 0.95rem;
}
.app-loading.hidden {
  display: none !important;
}

/* 欢迎：手机端内容多时允许整体滚动，避免「开始十题」按钮出视口 */
#welcome.panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.greeting {
  padding: 2rem 0;
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px) + 1rem);
}

.greeting p {
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* 设置：返回键在左侧 */
.settings-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.settings-header h2 {
  margin: 0;
  margin-left: auto;
  font-size: 1.25rem;
}

.settings-body {
  overflow-y: auto;
}

.settings-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: 8px;
}

.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.settings-avatar-row .identity-avatar {
  flex-shrink: 0;
}

.settings-item-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
}

.settings-him-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.settings-him-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.settings-him-list .settings-him-name {
  flex: 1;
  min-width: 0;
}
.settings-him-list .btn-text {
  flex-shrink: 0;
}

.settings-him-list li:last-child {
  border-bottom: none;
}

.settings-him-list .btn-danger {
  margin-top: 0;
}

/* 评估 */
.assess-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.assess-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.assess-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
  padding-left: 0.25rem;
}

.assess-body .question {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-right: 0.5rem;
  padding-left: 0;
  color: var(--text);
  word-wrap: break-word;
}

.assess-body textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  resize: vertical;
}

.assess-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.assess-nav button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.assess-nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 聊天：左侧栏固定，主区仅对话列表可向上滚动，输入框固定底部 */
#chat-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

.chat-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chat-soul-links {
  display: none;
}

.chat-soul-links .link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.chat-soul-links .link-btn:hover {
  text-decoration: underline;
}

.chat-soul-links .link-btn.hidden {
  display: none;
}

/* 右侧人格特质面板 */
.soul-side-panel {
  width: 320px;
  min-width: 320px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow: hidden;
}

.soul-side-panel.hidden {
  display: none !important;
}

.soul-panel-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.soul-panel-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.btn-close-panel {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.btn-close-panel:hover {
  color: var(--text);
}

.soul-panel-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: var(--text);
}

.soul-panel-content.loading {
  color: var(--text-muted);
}

.chat-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

#chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.6rem 0;
}

.chat-input-wrap {
  flex-shrink: 0;
}

#token-usage {
  flex-shrink: 0;
}

.msg {
  margin-bottom: 1.35rem;
  max-width: 100%;
}

.msg.user {
  background: rgba(167, 139, 250, 0.14);
  margin-left: auto;
  max-width: 82%;
  padding: 13px 17px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #d4d4d8;
}

.msg.assistant {
  background: var(--surface-2);
  max-width: 92%;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.8;
}

.msg-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.role-dash {
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.msg-draft {
  margin-top: 0.6rem;
  font-size: 12.5px;
  color: #52525b;
}
.msg-draft summary {
  cursor: pointer;
  user-select: none;
}
.msg-draft .draft-text {
  margin: 0.25rem 0 0;
  padding: 0.5rem;
  background: var(--surface-2);
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
}

.chat-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
  padding: 5px 5px 5px 16px;
  background: #1c1c21;
  border: 1px solid var(--border);
  border-radius: 16px;
}

#chat-input {
  flex: 1;
  padding: 0.65rem 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  resize: none;
  min-height: 44px;
  outline: none;
}
#btn-send {
  border-radius: 12px;
  padding: 11px 18px;
}

/* 思考中 */
.thinking-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.thinking-msg.hidden {
  display: none !important;
}
.thinking-icon {
  display: inline-block;
  animation: thinking-pulse 1s ease-in-out infinite;
  color: var(--accent);
}
@keyframes thinking-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.chat-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#credits-display {
  margin-top: 0.25rem;
  font-size: 12px;
  color: #71717a;
  cursor: pointer;
}
#credits-display:hover {
  color: var(--text);
}
#credits-display strong {
  color: var(--text);
}
.credits-exhausted {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.credits-exhausted a {
  color: var(--primary);
  text-decoration: underline;
}
#token-usage {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: none;
}
.footer-moon {
  display: none;
}

/* 积分充值面板：上方可滚动，分享区固定在视口底部 */
#credits-panel {
  display: flex;
  flex-direction: column;
  max-height: 100vh;
}
#credits-panel .credits-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  max-width: 400px;
}
#credits-panel .credits-header h2 { margin: 0; text-align: center; }
#credits-panel .credits-header #btn-credits-back { position: absolute; left: 0; }
#credits-panel .credits-body {
  max-width: 400px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#credits-panel .credits-body-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
#credits-panel .credits-share-sticky {
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 1rem);
  background: var(--surface);
}
#credits-panel .credits-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}
#credits-panel .credits-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
#credits-panel .credits-option {
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
}
#credits-panel .credits-option:hover {
  border-color: var(--primary);
  background: var(--surface);
}
#credits-panel .credits-option-recommend { border-color: var(--primary); }
#credits-panel .credits-option { color: var(--text); }
#credits-panel .credits-price { display: block; font-weight: 600; color: var(--text); }
#credits-panel .credits-points { font-size: 0.9rem; color: var(--text); opacity: 0.9; }
#credits-panel .credits-note { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1rem 0; }
#credits-panel .credits-divider { margin: 1.5rem 0; border: none; border-top: 1px solid var(--border); }
#credits-panel .credits-recharge-list-wrap { margin: 0.5rem 0 0 0; }
#credits-panel .credits-recharge-list { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--text); }
#credits-panel .credits-recharge-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
#credits-panel .credits-recharge-list li:last-child { border-bottom: none; }
#credits-panel .credits-recharge-empty { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0 0 0; }
#credits-panel .credits-referral {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
#credits-panel .credits-referral input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
#credits-panel .credits-referral .btn-primary { flex-shrink: 0; }
#credits-panel .credits-pay-title { margin: 0 0 1rem 0; font-size: 1rem; }
#credits-panel .credits-pay-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
#credits-panel #credits-qr-wrap { text-align: center; margin: 1rem 0; }
#credits-panel #credits-qr-img { max-width: 220px; height: auto; margin: 0.5rem 0; display: block; margin-left: auto; margin-right: auto; }
#credits-panel .credits-qr-tip { margin: 0 0 0.5rem 0; color: var(--text-muted); font-size: 0.9rem; }

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  margin: 1rem 0;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.modal-actions button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

/* 生成中特效 */
.generate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.generate-overlay.hidden {
  display: none !important;
}
.generate-overlay-content {
  text-align: center;
  padding: 2rem;
}
.generate-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--surface-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: generate-spin 0.9s linear infinite;
}
.generate-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.generate-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
@keyframes generate-spin {
  to { transform: rotate(360deg); }
}

/* Soul 展示 */
.soul-content {
  padding: 1rem 0;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-body p {
  margin-bottom: 0.75rem;
}

.markdown-body ul {
  margin-left: 1.5rem;
}

/* ========== 手机端全新 UI：紫色渐变 + 毛玻璃 ========== */
@media (max-width: 768px) {
  :root {
    --mobile-bg-start: #2d2640;
    --mobile-bg-end: #1a1625;
    --mobile-glass: rgba(255, 255, 255, 0.08);
    --mobile-glass-border: rgba(255, 255, 255, 0.12);
    --mobile-bubble-ai: rgba(60, 50, 80, 0.75);
    --mobile-bubble-user: rgba(100, 80, 140, 0.5);
    --mobile-glow: rgba(167, 139, 250, 0.5);
    --mobile-send-start: #a78bfa;
    --mobile-send-end: #ec4899;
  }

  body {
    overflow-x: hidden;
    background: #e8e4f0;
  }

  #app {
    height: 100vh;
    max-height: 100vh;
    margin: 0 auto;
    max-width: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: linear-gradient(180deg, var(--mobile-bg-start) 0%, var(--mobile-bg-end) 100%);
  }

  .app-header {
    background: var(--mobile-glass);
    border-bottom: 1px solid var(--mobile-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: max(0.3rem, env(safe-area-inset-top));
    padding-bottom: 0.3rem;
    min-height: 40px;
  }

  .app-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    font-weight: 600;
  }

  .header-actions-mobile .btn-icon {
    color: rgba(255, 255, 255, 0.8);
  }
  .btn-add-him-mobile {
    border-color: var(--mobile-glass-border);
    color: rgba(255, 255, 255, 0.9);
  }

  .top-identity-strip {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border-bottom: none;
  }

  .identity-chip {
    background: var(--mobile-glass);
    border: 1px solid var(--mobile-glass-border);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .identity-chip.active {
    border-color: var(--mobile-glow);
    box-shadow: 0 0 16px var(--mobile-glow);
    background: rgba(167, 139, 250, 0.25);
  }
  .identity-chip.active::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    margin-left: 0.35rem;
    vertical-align: middle;
  }

  /* 手机端：取消侧边栏 */
  .btn-menu { display: none !important; }
  #sidebar, .sidebar-backdrop { display: none !important; }
  .header-actions-mobile { display: flex; }

  #main {
    padding: 0.6rem 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    background: transparent;
  }

  .panel { padding: 0 0.5rem; max-width: 100%; }

  /* 聊天区：隐藏标题与人格链接，仅保留消息+输入 */
  #chat-section .chat-header {
    padding: 0;
    margin-bottom: 0;
  }
  #chat-section .chat-header h2,
  #chat-section .chat-header #current-him-label {
    display: none;
  }
  #chat-section .chat-soul-links {
    margin-bottom: 0.25rem;
  }
  #chat-section .chat-soul-links .link-btn {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
  }

  #chat-messages {
    padding: 0.5rem 0;
  }

  .msg {
    max-width: 100%;
  }
  .msg.assistant {
    background: var(--mobile-bubble-ai);
    border: 1px solid var(--mobile-glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 13px 16px;
    border-radius: 14px;
    max-width: 96%;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.8;
  }
  .msg.user {
    max-width: 82%;
    padding: 13px 17px;
    border-radius: 16px;
    border: 1px solid var(--mobile-glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--mobile-bubble-user);
    color: #fff;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
  }
  .msg-role {
    color: var(--accent-hover);
    font-size: 12.5px;
  }
  .msg-draft {
    margin-top: 0.6rem;
    font-size: 0.8rem;
  }
  .msg-draft summary {
    display: block;
    padding: 0.4rem 0.5rem;
    min-height: 44px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    -webkit-tap-highlight-color: transparent;
  }
  .msg-draft .draft-text {
    margin-top: 0.35rem;
    padding: 0.6rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--mobile-glass-border);
  }
  .thinking-msg {
    color: rgba(255, 255, 255, 0.65);
  }

  .chat-input-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--mobile-glass);
    border: 1px solid var(--mobile-glass-border);
    border-radius: 24px;
    padding: 6px 6px 6px 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  #chat-input {
    flex: 1;
    min-height: 44px;
    padding: 0.65rem 0;
    font-size: 16px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #fff;
  }
  #chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  #btn-send {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.65rem 1.1rem;
    border-radius: 22px;
    border: none;
    background: linear-gradient(135deg, var(--mobile-send-start), var(--mobile-send-end));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
    -webkit-tap-highlight-color: transparent;
  }

  .chat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
    margin-top: 0.25rem;
  }
  #credits-display, .credits-exhausted {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
  }
  .credits-exhausted a { color: rgba(255, 255, 255, 0.95); }
  #token-usage {
    display: none;
  }
  .footer-moon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
  }

  .greeting {
    padding: 1rem 0;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
  }
  .greeting p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
  .greeting .btn-primary { margin-top: 0.5rem; }
  .btn-primary, .btn-secondary, .assess-nav button {
    min-height: 44px;
    padding: 0.6rem 1rem;
    -webkit-tap-highlight-color: transparent;
  }
  .assess-body textarea {
    min-height: 120px;
    padding: 0.75rem;
    background: var(--mobile-glass);
    border: 1px solid var(--mobile-glass-border);
    color: #fff;
    border-radius: 12px;
  }
  .chat-layout { flex-direction: column; }

  .soul-side-panel {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; min-width: 0; max-width: none; z-index: 100;
    border-left: none;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    background: linear-gradient(180deg, var(--mobile-bg-start), var(--mobile-bg-end));
  }
  .soul-side-panel:not(.hidden) { transform: translateX(0); }
  .soul-panel-header { padding-left: max(1rem, env(safe-area-inset-left)); }
  .soul-panel-content { padding: 1rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }

  .modal-content {
    width: calc(100% - 2rem);
    max-width: none;
    margin: 1rem;
    margin-left: max(1rem, env(safe-area-inset-left));
    margin-right: max(1rem, env(safe-area-inset-right));
    background: var(--mobile-bubble-ai);
    border: 1px solid var(--mobile-glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
  }
  .settings-header, .assess-header { flex-wrap: wrap; gap: 0.5rem; }
  .assess-header h2 { font-size: 1rem; color: rgba(255,255,255,0.95); }
  .assess-body .question { color: rgba(255,255,255,0.9); }
  .assess-header span { color: rgba(255,255,255,0.7); }
  .settings-header h2, .settings-section h3 { color: rgba(255,255,255,0.95); }
  .settings-item-desc { color: rgba(255,255,255,0.65); }
}

@media (max-width: 430px) {
  .app-title { font-size: 1rem; }

  #main {
    padding: 0.5rem 0.4rem;
  }

  .panel {
    padding: 0 0.5rem;
  }

  #sidebar {
    width: min(280px, 90vw);
  }

  .him-empty {
    font-size: 0.8rem;
    padding: 1rem 0.25rem;
  }

  #token-usage {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }
}

/* ===== 对齐小程序 · 聊天发送失败重试 ===== */
.chat-retry { background: var(--surface-2); border: 1px solid var(--warning); }
.chat-retry-tip { font-size: 0.85rem; color: var(--warning); line-height: 1.5; margin-bottom: 0.5rem; }
.chat-retry-btn { background: none; border: 1px solid var(--accent); color: var(--accent); font-size: 0.8rem; padding: 4px 16px; border-radius: 14px; cursor: pointer; }
.chat-retry-btn:hover { background: rgba(167, 139, 250, 0.16); }

/* ===== 对齐小程序 · 初测十题 v2 单选 ===== */
.assess-progress-track { height: 3px; background: var(--surface-2); border-radius: 3px; margin-bottom: 1rem; }
.assess-progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .25s; }
.assess-hint { font-size: 0.82rem; color: var(--text-muted); margin: -0.5rem 0 1rem; }
.assess-options { display: flex; flex-direction: column; gap: 0.6rem; }
.assess-opt { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.95rem; color: var(--text); cursor: pointer; }
.assess-opt:hover { border-color: var(--accent); }
.assess-opt.selected { border-color: var(--accent); background: rgba(167, 139, 250, 0.16); color: var(--accent); }

/* ===== 对齐小程序 · 金句卡（小标 + 日签海报浮层）===== */
.jinju-mark { display: inline-flex; align-items: center; gap: 6px; margin-top: 0.5rem; background: none; border: none; padding: 2px 0; cursor: pointer; color: var(--text-muted); font-size: 0.85rem; line-height: 1.4; text-align: left; }
.jinju-mark:hover { color: var(--accent); }
.jinju-mark svg { flex-shrink: 0; }
.jinju-mark-text { word-break: break-word; }
.jinju-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.72); display: flex; align-items: center; justify-content: center; z-index: 1200; padding: 1rem; }
.jinju-modal.hidden { display: none !important; }
.jinju-modal-content { background: var(--surface); border-radius: 14px; padding: 1rem; width: 100%; max-width: 360px; max-height: 92vh; display: flex; flex-direction: column; gap: 0.85rem; }
.jinju-canvas-wrap { flex: 1; min-height: 0; overflow-y: auto; display: flex; justify-content: center; align-items: flex-start; }
.jinju-card-img { width: 100%; max-width: 320px; border-radius: 10px; display: block; }
.jinju-card-loading { color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 3rem 0; }
.jinju-modal-actions { display: flex; gap: 0.6rem; }
.jinju-modal-actions button { flex: 1; padding: 0.6rem; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.jinju-save-btn { background: var(--accent); border: none; color: #1a1a1f; font-weight: 600; }
.jinju-save-btn:hover { background: var(--accent-hover); }
.jinju-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.jinju-close-btn { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
