:root {
  --bg-deep: #070a12;
  --bg-card: rgba(19, 24, 39, 0.72);
  --bg-card-active: rgba(34, 42, 68, 0.88);
  --border-soft: rgba(232, 220, 200, 0.12);
  --border-active: rgba(232, 200, 150, 0.45);
  --text-main: #e8e2d6;
  --text-muted: #989fb3;
  --text-dim: #676f84;
  --accent-warm: #e4c393;
  --accent-soft: rgba(228, 195, 147, 0.15);
  --orb-a: rgba(141, 130, 214, 0.36);
  --orb-b: rgba(228, 188, 134, 0.25);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(84, 72, 150, 0.18), transparent 45%),
    radial-gradient(circle at 82% 76%, rgba(182, 132, 82, 0.12), transparent 50%),
    linear-gradient(180deg, #060911 0%, #0b1020 100%);
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 470px;
  height: 100svh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(228, 195, 147, 0.2);
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand > div {
  min-width: 0;
}

.brand-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

#userAccountLabel {
  max-width: 7em;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 360px) {
  .topbar-actions .icon-btn {
    padding-inline: 8px;
  }

  #userAccountLabel {
    max-width: 5em;
  }
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.icon-btn:active {
  transform: scale(0.97);
}

.badge {
  background: var(--accent-soft);
  color: var(--accent-warm);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
}

.view {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
}

.view.active {
  display: flex;
}

#memoryFeedback:empty {
  display: none;
}

.memory-whisper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  margin-bottom: 12px;
  border: none;
  border-left: 2px solid rgba(228, 195, 147, 0.45);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(228, 195, 147, 0.06), transparent);
  font-size: 12.5px;
  color: #dfd2be;
  flex-shrink: 0;
  max-height: 60px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.memory-whisper p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.whisper-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-warm);
  margin-top: 6px;
  flex-shrink: 0;
  opacity: 0.85;
}

.block {
  margin-bottom: 13px;
  flex-shrink: 0;
}

.block-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* 紧凑型男女声分段切换 */
.companion-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(19, 24, 39, 0.72);
  border: 1px solid var(--border-soft);
}

.seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 10px;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.seg-btn.active {
  background: var(--bg-card-active);
  color: var(--accent-warm);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.avatar-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.avatar-dot.female {
  background: rgba(228, 180, 148, 0.28);
  color: #f6dec0;
}

.avatar-dot.male {
  background: rgba(105, 142, 198, 0.28);
  color: #d6e4ff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill-row.compact {
  gap: 6px;
}

.pill {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.12s;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.pill:active {
  transform: scale(0.97);
}

.pill.active {
  background: var(--accent-soft);
  border-color: var(--border-active);
  color: var(--accent-warm);
}

/* 固定两行高度，切换频道绝不顶动页面 */
.channel-desc {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--text-dim);
  min-height: 20px;
}

.input-wrap {
  position: relative;
}

/* 统一 >= 16px，彻底杜绝 iOS Safari 聚焦页面放大抖动 */
textarea,
input[type="text"],
input[type="password"],
select {
  width: 100%;
  background: rgba(12, 16, 28, 0.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--border-active);
}

textarea::placeholder,
input::placeholder {
  color: var(--text-dim);
  font-size: 14px;
}

.mic-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(228, 195, 147, 0.14);
  border: 1px solid rgba(228, 195, 147, 0.25);
  color: var(--accent-warm);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.mic-btn.recording {
  background: rgba(220, 95, 95, 0.25);
  border-color: rgba(220, 95, 95, 0.55);
  color: #ffb8b8;
}

/* 心事寄放微仪式动效 */
.ritual-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(12, 16, 28, 0.92);
  color: var(--accent-warm);
  font-size: 13.5px;
  text-align: center;
  pointer-events: none;
  animation: worryFloatUp 0.72s ease-out forwards;
}

.ritual-float[hidden] {
  display: none;
}

@keyframes worryFloatUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 4px, 0) scale(0.98);
  }
  35% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -18px, 0) scale(0.95);
  }
}

.pref-summary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  padding: 10px 13px;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.12s;
}

.pref-summary-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.pref-summary-btn:active {
  transform: scale(0.985);
}

.pref-caret {
  color: var(--accent-warm);
  font-size: 12px;
}

.cta-wrap {
  margin-top: auto;
  padding-top: 6px;
  flex-shrink: 0;
}

.primary-cta {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #d7b27f 0%, #b88d5a 100%);
  color: #120e08;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 28px rgba(215, 178, 127, 0.22);
  transition: transform 0.15s;
}

.primary-cta:active {
  transform: scale(0.985);
}

.cta-footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 24px;
}

.cta-tip {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
}

.inline-action-btn {
  background: transparent;
  border: none;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent-warm);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(228, 195, 147, 0.45);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.inline-action-btn:hover {
  background: rgba(228, 195, 147, 0.1);
}

.inline-action-btn[hidden] {
  display: none;
}

/* 会话催眠视图 */
.session-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.back-btn {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.back-btn:active {
  transform: scale(0.97);
}

/* 顶部非按键状态文字：无边框无底色，与可点击按键明确区分 */
.status-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  pointer-events: none;
  user-select: none;
}

.status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  opacity: 0.8;
}

.stage-meta-text {
  color: var(--accent-warm);
  letter-spacing: 0.02em;
}

.status-sep {
  color: var(--text-dim);
}

.channel-meta-text {
  color: var(--text-muted);
}

.orb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.breath-orb {
  width: clamp(96px, 16svh, 136px);
  height: clamp(96px, 16svh, 136px);
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orb-b) 0%, var(--orb-a) 55%, rgba(16, 20, 38, 0.05) 75%);
  display: grid;
  place-items: center;
  animation: sleepBreath 10s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 0 55px rgba(141, 130, 214, 0.2);
}

.breath-orb.paused {
  animation-play-state: paused;
  opacity: 0.55;
}

.orb-inner {
  width: 44%;
  height: 44%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 224, 194, 0.42), rgba(173, 158, 232, 0.14));
  filter: blur(2px);
}

@keyframes sleepBreath {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.72;
  }
  40% {
    transform: translate3d(0, 0, 0) scale(1.1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breath-orb {
    animation: none;
  }
}

.stage-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  min-height: 20px;
}

/* 固定高度字幕框：绝不推挤呼吸球或底部按钮 */
.subtitle-box {
  height: 92px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.subtitle-box.hidden-text {
  opacity: 0;
}

.subtitle-box.switching .subtitle-text {
  opacity: 0;
}

.subtitle-text {
  margin: 0;
  text-align: center;
  font-size: 14.5px;
  color: #dfd7c8;
  line-height: 1.6;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.interject-box {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 434px;
  z-index: 30;
  background: rgba(16, 21, 36, 0.96);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.interject-box[hidden] {
  display: none;
}

.interject-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.session-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
}

.ambient-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.ambient-mini input[type="range"] {
  flex: 1;
  accent-color: var(--accent-warm);
}

.ambient-mini select {
  width: auto;
  padding: 4px 8px;
  font-size: 14px;
}

.control-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-primary-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.control-secondary-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn,
.ghost-btn,
.soft-btn {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.ctrl-btn:hover,
.ghost-btn:hover,
.soft-btn:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.085);
}

.ctrl-btn:active,
.ghost-btn:active,
.soft-btn:active {
  transform: scale(0.98);
}

.ctrl-btn.ctrl-hero {
  flex: 1.65;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(228, 195, 147, 0.16), rgba(164, 134, 196, 0.1));
  border-color: rgba(228, 195, 147, 0.36);
  color: #f3dfc0;
}

.ctrl-btn.ctrl-medium {
  flex: 1;
  min-height: 48px;
  padding: 12px 12px;
  font-size: 13.5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.ctrl-btn.ctrl-compact {
  flex: 1.35;
  height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
}

.ctrl-btn.ctrl-mini {
  flex: 0.9;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--text-muted);
}

.soft-btn {
  background: var(--accent-soft);
  border-color: var(--border-active);
  color: var(--accent-warm);
}

.ctrl-btn.listening-on {
  border-color: var(--border-active);
  color: var(--accent-warm);
  background: rgba(228, 195, 147, 0.08);
}

.subtle-link-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(232, 224, 212, 0.28);
  cursor: pointer;
  align-self: center;
  transition: color 0.18s ease, background 0.18s ease;
}

.subtle-link-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.finish-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 10px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.finish-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text-main);
}

.finish-btn:active {
  transform: scale(0.985);
}

/* 偏好 Bottom Sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(3, 5, 10, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop[hidden] {
  display: none;
}

.sheet-card {
  width: 100%;
  max-width: 470px;
  background: #101524;
  border-top: 1px solid var(--border-soft);
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
}

.pref-drawer-inner {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pref-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pref-label {
  font-size: 12px;
  color: var(--text-muted);
}

.vol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--accent-warm);
}

.vol-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent-warm);
}

/* 极暗闭眼盲操遮罩 */
.blackout-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000000;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.blackout-overlay[hidden] {
  display: none;
}

.blackout-hint {
  text-align: center;
  color: rgba(232, 220, 200, 0.17);
  font-size: 13.5px;
  padding: 0 24px;
}

.blackout-hint span {
  font-size: 11.5px;
}

/* 弹窗 & 抽屉 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 5, 10, 0.8);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 84svh;
  overflow-y: auto;
  background: #101524;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
}

.close-x {
  background: transparent;
  border: none;
  color: var(--accent-warm);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
}

.modal-sub {
  margin: 6px 0 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.night-note-card {
  text-align: center;
  padding: 24px 20px;
}

.modal-title {
  font-size: 15px;
  color: var(--accent-warm);
  margin-bottom: 12px;
}

.night-note-quote {
  font-size: 16px;
  color: var(--text-main);
  margin: 0 0 10px;
}

.night-note-summary {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.manual-memory-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.manual-memory-row input {
  flex: 1;
}

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

.memory-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 11px 12px;
}

.memory-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--accent-warm);
  margin-bottom: 5px;
}

.memory-del-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
}

.memory-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-main);
}

.memory-hint {
  margin-top: 5px !important;
  font-size: 11.5px !important;
  color: var(--text-muted) !important;
}

/* 登录视图 */
.auth-center {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.auth-card {
  width: 100%;
  background: rgba(19, 24, 39, 0.78);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 24px 20px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.auth-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 10px 28px rgba(228, 195, 147, 0.22);
}

.auth-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.auth-sub {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(220, 95, 95, 0.14);
  border: 1px solid rgba(220, 95, 95, 0.35);
  color: #ffb8b8;
  font-size: 12.5px;
  text-align: center;
}

.auth-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
  pointer-events: none;
  user-select: none;
}

.account-info-box {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(228, 195, 147, 0.45);
}

.account-display {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.account-username {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}
