/* ============================================================
   此城可期 · ResortLux Design System
   风格：编辑式 · 衬线 · 克制优雅（金 / 藏蓝 / 象牙白）
   ============================================================ */

:root {
  /* ── ResortLux Palette ── */
  --gold: #B8860B;
  --gold-deep: #8a6508;
  --gold-soft: #d9b45c;
  --gold-light: #faf3e0;
  --navy: #0F172A;
  --navy-soft: #334155;
  --ivory: #FFFFF0;
  --ivory-deep: #f6f4e8;
  --surface: #FFFFFF;

  /* ── Semantic Tokens ── */
  --bg: var(--ivory);
  --bg-gradient: radial-gradient(ellipse 100% 70% at 50% -10%, #fdf8e7 0%, #FFFFF0 55%, #f6f1e4 100%);
  --card-bg: var(--surface);
  --card-border: #eae6d8;
  --text: #1f2733;
  --text-secondary: #5b6472;
  --text-muted: #9aa1ad;
  --primary: var(--gold);
  --primary-soft: var(--gold-soft);
  --primary-light: var(--gold-light);
  --accent: var(--navy);
  --border: #e7e3d5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 14px rgba(15, 23, 42, 0.05), 0 1px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 34px rgba(15, 23, 42, 0.09), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-focus: 0 0 0 4px rgba(184, 134, 11, 0.14);
  --success: #15803D;
  --warning: #CA8A04;
  --danger: #DC2626;
  --info: #0369A1;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Typography ── */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', 'Georgia', serif;
  --font-latin: 'Playfair Display', 'Georgia', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: var(--bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 700;
}

/* ── Progress Bar ── */
.progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(184, 134, 11, 0.1);
  z-index: 10001;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 0 999px 999px 0;
  transition: width 0.35s ease;
}

/* ── Container ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 28px 80px;
}
.container-home {
  padding: 16px 28px 80px;
}

/* ── 视图切换 ── */
.view { animation: view-fade 0.4s ease both; }
@keyframes view-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── 表单页顶部导航 ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px 24px;
  margin-bottom: 8px;
}
.topbar-brand {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.topbar-brand:hover { color: var(--gold-deep); }
.topbar-back {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.83rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.topbar-back:hover { border-color: var(--gold-soft); color: var(--gold-deep); background: var(--gold-light); }

/* ── Dashboard：表单区域统一居中单列（编辑式阅读） ── */
.dashboard {
  max-width: 760px;
  margin: 0 auto;
}
.main-column { min-width: 0; }

/* ── 单列卡片列表（去掉原 masonry 双列） ── */
.masonry-grid {
  padding-top: 4px;
}
.masonry-grid .card {
  margin-bottom: 22px;
  width: 100%;
}
.masonry-grid .card:hover {
  transform: translateY(-2px);
}

/* ── Hero（编辑式衬线版面） ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: 72px 8px 64px;
}
.hero-copy { max-width: 560px; }

.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 4px;
}
.hero-eyebrow-en {
  font-family: var(--font-latin);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.hero-title::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  margin: 12px 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-tip {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 照片展示区：北上广深港轮播（淡入淡出） */
.hero-visual {
  position: relative;
  min-height: 460px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  background: linear-gradient(165deg, #fdfaf0 0%, #f7f2e2 100%);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1.03);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 6s ease-out;
}
/* 底部渐变遮罩，让 caption/圆点可读 */
.hero-photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent);
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 7px;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: #fff;
  width: 22px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 4px 40px; }
  .hero-visual { min-height: 300px; }
}

/* ── 滚动浮现动画 ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { animation: hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-eyebrow { animation-delay: 0.05s; }
.hero-eyebrow-en { animation-delay: 0.15s; }
.hero-title { animation-delay: 0.25s; }
.hero-sub { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.45s; }
.hero-tip { animation-delay: 0.55s; }
.hero-visual { animation: hero-fade-up 1.1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Dashboard Layout ── */
.dashboard { display: block; }
.main-column { min-width: 0; }

/* ── Action Bar（普通元素，作为表单最后一块，浅金象牙底协调方案） ── */
.action-bar {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 40px 32px 44px;
  background:
    radial-gradient(ellipse 120% 100% at 50% 0%, rgba(217, 180, 92, 0.18), transparent 60%),
    linear-gradient(160deg, #fdf8e7 0%, #faf3e0 55%, #f4ecda 100%);
  border: 1px solid rgba(184, 134, 11, 0.28);
  color: var(--navy);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 30px rgba(184, 134, 11, 0.12);
}
.action-bar-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.action-bar-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
}
.action-bar-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.action-bar-btns .btn {
  width: auto;
  flex: none;
  padding: 14px 38px;
  font-size: 0.98rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .action-bar-btns { flex-direction: column; }
  .action-bar-btns .btn { width: 100%; }
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.card-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, var(--gold-light) 0%, #ffffff 100%);
}
.card-header .icon { font-size: 1.4rem; color: var(--gold); }
.card-header h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.card-header .badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-weight: 600;
  margin-left: auto;
}
.card-body { padding: 30px; }

/* Card accent variations */
#card-profile .card-header { border-top: 4px solid var(--gold); }
#card-city .card-header { border-top: 4px solid var(--info); }
#card-work .card-header { border-top: 4px solid var(--warning); }
#card-fun .card-header { border-top: 4px solid var(--navy); }
#card-city { background: linear-gradient(180deg, #ffffff 0%, #f2f8f6 100%); }
#card-work { background: linear-gradient(180deg, #ffffff 0%, #fdfaf0 100%); }
#card-fun { background: linear-gradient(180deg, #ffffff 0%, #faf6ec 100%); }

/* ── Form Sections ── */
.form-section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px dashed var(--border);
}
.form-section:last-child,
.form-section-noborder {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
}
.section-title::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* ── Grid Layouts ── */
.form-grid { display: grid; gap: 22px; }
.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-group-wide { grid-column: 1 / -1; }

@media (max-width: 700px) {
  .form-grid-2,
  .form-grid-3 { grid-template-columns: 1fr; }
}

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.form-label .unit { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
.form-label .required { color: var(--danger); margin-left: 2px; }

input[type="text"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: 13px 17px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: #fdfcf7;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  color: var(--text);
}
input:hover, select:hover, textarea:hover { border-color: #d8d2bf; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 96px; }
select { cursor: pointer; }

/* Disabled / readonly state */
input:disabled, select:disabled, input[readonly] {
  background: #f1eee2;
  border-color: #e7e2d0;
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}
.form-group.disabled .form-label { color: var(--text-muted); }
.form-group.disabled select { background: #f1eee2; border-color: #e7e2d0; }

/* ── Radio / Checkbox Group ── */
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group label {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--transition);
  background: #fdfcf7;
  user-select: none;
}
.radio-group label:hover {
  border-color: var(--gold-soft);
  background: var(--gold-light);
  color: var(--gold-deep);
}
.radio-group label:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold-deep);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.12);
}
.radio-group input[type="radio"],
.radio-group input[type="checkbox"] { accent-color: var(--gold); }

/* ── Legacy Row ── */
.row { display: flex; gap: 18px; }
.row > * { flex: 1; }
@media (max-width: 600px) { .row { flex-direction: column; } }

/* ── City Data Grid ── */
.city-data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.city-data-item {
  background: #faf7ee;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.city-data-item:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.08);
}
.city-data-item .label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.city-data-item .value { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.city-data-item .detail { font-size: 0.74rem; color: var(--text-secondary); margin-top: 2px; }

/* ── Score Display ── */
.score-display {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: var(--gold-light);
  border: 1px solid rgba(184, 134, 11, 0.18);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  flex-wrap: wrap;
}
.score-number { font-size: 1.5rem; font-weight: 800; color: var(--gold-deep); line-height: 1; }
.score-label { font-size: 0.85rem; color: var(--text-secondary); }

.risk-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.risk-极低 { background: #d1fae5; color: #065f46; }
.risk-低 { background: #e0f2fe; color: #075985; }
.risk-中低 { background: #fef3c7; color: #92400e; }
.risk-中高 { background: #fed7aa; color: #9a3412; }
.risk-高 { background: #fecaca; color: #991b1b; }
.risk-极高 { background: #fecaca; color: #7f1d1d; }

/* ── Fun Module ── */
.fun-result {
  padding: 16px 18px;
  background: linear-gradient(135deg, #fdf8e7, #f6f0df);
  border: 1px solid rgba(184, 134, 11, 0.18);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}
.fun-result h4 { font-size: 0.92rem; margin-bottom: 8px; font-weight: 700; color: var(--navy); }
.fun-result p { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 4px; }

/* ── Summary Card ── */
.summary-card {
  background: linear-gradient(135deg, #101a30 0%, #0F172A 55%, #243356 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
}
.summary-card h2 { font-size: 1.18rem; margin-bottom: 18px; font-weight: 700; color: #fff; }
.summary-card h3 { color: var(--gold-soft); }
.summary-score { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.summary-score .big-number { font-size: 3.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--gold-soft); }
.summary-score .big-label { font-size: 0.86rem; opacity: 0.8; line-height: 1.5; }
.summary-verdict {
  font-size: 1.22rem; font-weight: 700;
  padding: 10px 22px; border-radius: var(--radius-sm);
  display: inline-block;
  background: rgba(217, 180, 92, 0.22);
  color: #fff;
  margin-bottom: 16px;
}
.summary-detail { font-size: 0.88rem; opacity: 0.92; line-height: 1.8; }
.summary-detail li { margin-bottom: 6px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 650;
  cursor: pointer; border: none; font-family: inherit;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #a67b0a, #7a5707); box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--gold-deep); border: 1.5px solid var(--gold); }
.btn-skip { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); padding: 8px 18px; font-size: 0.83rem; font-weight: 500; }

/* hero 专属按钮 */
.btn-gold {
  background: var(--gold);
  color: #fff;
  padding: 15px 34px;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.28);
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(184, 134, 11, 0.36); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(15, 23, 42, 0.25);
  padding: 15px 30px;
  font-size: 0.95rem;
  font-weight: 500;
}
.btn-outline:hover { border-color: var(--navy); background: rgba(15, 23, 42, 0.04); transform: translateY(-2px); }

.btn-ai {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.32);
}
.btn-ai:hover { background: linear-gradient(135deg, #a67b0a, #7a5707); box-shadow: 0 8px 24px rgba(184, 134, 11, 0.42); transform: translateY(-1px); }
.btn-ai:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-group { display: flex; gap: 14px; }
.btn-group-vertical { flex-direction: column; }
.btn-group .btn { flex: 1; }
@media (max-width: 500px) { .btn-group { flex-direction: column; } }

/* ── Streaming ── */
.streaming-container { margin-top: 24px; display: none; }
.streaming-container.active { display: block; }
.streaming-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--gold-light);
  border: 1px solid rgba(184, 134, 11, 0.18);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-weight: 600; font-size: 0.87rem; color: var(--gold-deep);
}
.streaming-spinner {
  width: 16px; height: 16px;
  border: 2px solid #ead9ae; border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
/* 城市数据搜索加载指示器（与 streaming-spinner 同款，垂直对齐） */
.city-search-spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid #ead9ae; border-top-color: var(--gold);
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.streaming-content {
  padding: 22px;
  background: #fdfcf7;
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-height: 120px; max-height: 600px; overflow-y: auto;
  font-size: 0.9rem; line-height: 1.62;
  white-space: pre-wrap; word-break: break-word;
}
.streaming-content h1, .streaming-content h2, .streaming-content h3, .streaming-content h4 {
  margin: 14px 0 6px;
}
.streaming-content h3 { font-size: 1.02rem; }
.streaming-content h4 { font-size: 0.96rem; }
.streaming-content ul { margin: 4px 0; }
.streaming-content li { margin-bottom: 1px; }
.streaming-content strong { color: var(--navy); }
.streaming-content .cursor-blink::after { content: '\25cd'; animation: blink 0.8s step-end infinite; color: var(--gold); }
@keyframes blink { 50% { opacity: 0; } }

.ai-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  background: linear-gradient(135deg, var(--navy), #243356); color: #fff;
  margin-left: 8px; vertical-align: middle;
}

/* ── User Bar（已移除登录，保留样式占位） ── */
.user-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.user-bar .user-email { color: var(--text-secondary); font-weight: 500; }
.user-bar .logout-btn {
  padding: 5px 14px; background: transparent;
  color: var(--danger); border: 1px solid #fecaca;
  border-radius: 7px; font-size: 0.78rem; cursor: pointer;
  font-family: inherit; font-weight: 500;
  transition: all var(--transition);
}
.user-bar .logout-btn:hover { background: #fef2f2; border-color: #fca5a5; }

/* ── Misc ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.note { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.toggle-section { display: none; }
.toggle-section.active { display: block; }
.error-msg { color: var(--danger); font-size: 0.78rem; margin-top: 4px; display: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d9d2be; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c4bb9f; }

/* ── Selection ── */
::selection { background: rgba(184, 134, 11, 0.18); }
