/* ============================================
   华夏百家姓寻根系统 - 全局样式
   移动端优先 · 专业视觉设计 · 古典文化风
   ============================================ */

:root {
  --primary: #8B2500;
  --primary-light: #C04000;
  --primary-dark: #5C1A00;
  --gold: #D4A853;
  --gold-light: #F0D48A;
  --gold-dark: #A67C30;
  --bg-dark: #0A0A12;
  --bg-card: rgba(20, 18, 30, 0.92);
  --bg-glass: rgba(30, 28, 42, 0.85);
  --text-primary: #F5F0E8;
  --text-secondary: #B8A88A;
  --text-muted: #7A6E5A;
  --border: rgba(212, 168, 83, 0.2);
  --border-active: rgba(212, 168, 83, 0.5);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 20px rgba(212,168,83,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-cn: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', serif;
  --font-sans: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
}

/* 滚动条 */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* ====== 粒子背景 ====== */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ====== 加载动画 ====== */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}
#loading-screen.fade-out { opacity: 0; pointer-events: none; }

.loading-title {
  font-family: var(--font-cn);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3em;
  text-shadow: 0 0 30px rgba(212,168,83,0.3);
}
.loading-bar-wrap {
  width: 240px; height: 3px;
  background: rgba(212,168,83,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.loading-bar {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.loading-text {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ====== 顶部导航栏 ====== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  gap: 12px;
}

.nav-logo {
  font-family: var(--font-cn);
  font-size: 1.15rem;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.nav-logo i { margin-right: 6px; color: var(--primary-light); }

.nav-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.nav-search input {
  width: 100%;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 16px 0 36px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
  box-shadow: var(--shadow-gold);
}
.nav-search i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.nav-tab {
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
}
.nav-tab:hover { color: var(--gold); background: rgba(212,168,83,0.08); }
.nav-tab.active {
  color: var(--gold);
  background: rgba(212,168,83,0.12);
  border-color: var(--border-active);
}
.nav-tab i { margin-right: 4px; }

/* ====== 主体内容 ====== */
.main-container {
  padding-top: 56px;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ====== 地图面板 ====== */
.map-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
}
#china-map {
  width: 100%;
  height: 100%;
}
.map-controls {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}
.map-btn {
  width: 40px; height: 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.map-btn:hover, .map-btn.active {
  color: var(--gold);
  border-color: var(--border-active);
  background: rgba(212,168,83,0.12);
}

.map-breadcrumb {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  z-index: 100;
  color: var(--text-secondary);
  max-width: calc(100% - 80px);
  overflow-x: auto;
  white-space: nowrap;
}
.map-breadcrumb span { cursor: pointer; transition: var(--transition); }
.map-breadcrumb span:hover { color: var(--gold); }
.map-breadcrumb .active { color: var(--gold); font-weight: 600; }
.map-breadcrumb .sep { color: var(--text-muted); margin: 0 2px; }

.map-surname-selector {
  position: absolute;
  bottom: 16px; left: 12px; right: 12px;
  z-index: 100;
}
.surname-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.surname-pills::-webkit-scrollbar { display: none; }
.surname-pill {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-cn);
}
.surname-pill:hover { color: var(--gold); border-color: var(--border); }
.surname-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary-light);
  box-shadow: 0 2px 12px rgba(192,64,0,0.3);
}

.map-legend {
  position: absolute;
  bottom: 80px; right: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.75rem;
  z-index: 100;
  color: var(--text-secondary);
}
.map-legend-title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.legend-color {
  width: 14px; height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 迁徙年代图例 */
.era-legend {
  bottom: 80px;
  left: 12px;
  right: auto;
}
.era-legend .legend-item {
  margin-bottom: 2px;
}

/* ====== 内容面板（通用） ====== */
.content-section {
  display: none;
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.content-section.active { display: block; }

/* 地图面板特殊处理 - 全屏 */
.map-section.content-section {
  padding: 0;
  max-width: none;
}
.map-section.content-section.active {
  display: block;
}

/* 迁徙面板 - 较宽布局 */
.migration-section.content-section {
  max-width: 1000px;
}

/* ====== 卡片 ====== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-active); box-shadow: var(--shadow-gold); }

.card-title {
  font-family: var(--font-cn);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i { font-size: 0.95rem; color: var(--primary-light); }

/* ====== 姓氏详情面板 ====== */
.surname-detail-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.surname-detail-overlay.show { display: flex; }

.surname-detail-panel {
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  max-height: 85dvh;
  background: var(--bg-dark);
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  padding: 0;
  animation: slideUp 0.35s ease;
  -webkit-overflow-scrolling: touch;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.detail-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark) 80%, transparent);
  padding: 20px 20px 12px;
  z-index: 10;
}
.detail-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin: 0 auto 16px;
}
.detail-surname-big {
  font-family: var(--font-cn);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px rgba(212,168,83,0.3);
  float: left;
  margin-right: 16px;
}
.detail-meta {
  overflow: hidden;
  padding-top: 8px;
}
.detail-meta h2 {
  font-family: var(--font-cn);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.detail-meta .rank-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(212,168,83,0.15);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--gold);
  margin-right: 8px;
}
.detail-meta .pop-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detail-body { padding: 0 20px 24px; clear: both; }

.detail-section {
  margin-bottom: 20px;
}
.detail-section-title {
  font-family: var(--font-cn);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-section-title i {
  font-size: 0.85rem;
  color: var(--primary-light);
}
.detail-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-tag {
  padding: 3px 10px;
  background: rgba(212,168,83,0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* 迁徙时间线 */
.migration-timeline {
  position: relative;
  padding-left: 20px;
}
.migration-timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-dark), var(--primary), transparent);
}
.migration-item {
  position: relative;
  margin-bottom: 14px;
  padding-left: 12px;
}
.migration-item::before {
  content: '';
  position: absolute;
  left: -17px; top: 6px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212,168,83,0.4);
}
.migration-era {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
}
.migration-route {
  font-size: 0.85rem;
  color: var(--text-primary);
}
.migration-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 名人列表 */
.celebrity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.celebrity-item {
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.celebrity-item:hover { border-color: var(--border-active); }
.celebrity-name {
  font-family: var(--font-cn);
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
}
.celebrity-era {
  font-size: 0.72rem;
  color: var(--gold-dark);
}
.celebrity-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.detail-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.detail-close:hover { background: rgba(255,255,255,0.2); color: var(--text-primary); }

/* ====== 迁徙面板 ====== */
.migration-section .event-cards {
  display: grid;
  gap: 12px;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.event-card:hover, .event-card.active {
  border-color: var(--border-active);
  box-shadow: var(--shadow-gold);
}
.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.event-name {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  color: var(--gold);
}
.event-era-badge {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  color: #fff;
  background: var(--primary);
}
.event-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.event-surnames {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.event-surname-tag {
  padding: 2px 8px;
  background: rgba(212,168,83,0.1);
  border-radius: 10px;
  font-size: 0.72rem;
  color: var(--gold);
  font-family: var(--font-cn);
}
.event-impact {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.event-impact i { margin-right: 4px; color: var(--primary-light); }

/* ====== 寻根分析 ====== */
.analysis-section .analysis-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input, .form-select {
  width: 100%;
  height: 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B8A88A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.btn-primary {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-cn);
  letter-spacing: 0.1em;
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(192,64,0,0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* 分析结果 */
.analysis-result {
  display: none;
}
.analysis-result.show { display: block; }
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--primary));
}
.result-title {
  font-family: var(--font-cn);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 10px;
  padding-left: 12px;
}
.result-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 12px;
}
.result-content strong { color: var(--text-primary); }

/* ====== 文化面板 ====== */
.culture-timeline {
  position: relative;
  padding: 0;
}
.culture-era {
  margin-bottom: 20px;
}
.culture-era-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.era-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.era-name {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  color: var(--gold);
}
.era-range {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.culture-era-content {
  padding-left: 22px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== 搜索建议 ====== */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
  box-shadow: var(--shadow);
}
.search-suggestions.show { display: block; }
.search-suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover { background: rgba(212,168,83,0.08); }
.suggestion-surname {
  font-family: var(--font-cn);
  font-size: 1.2rem;
  color: var(--gold);
  width: 32px;
  text-align: center;
}
.suggestion-info {
  flex: 1;
}
.suggestion-rank {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.suggestion-origin {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ====== 迁徙地图专属 ====== */
#migration-map {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

/* ====== 文化大事件时间轴 ====== */
.era-events-list {
  display: grid;
  gap: 8px;
}
.era-event-item {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.era-event-title {
  font-family: var(--font-cn);
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.era-event-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ====== 底部安全区 ====== */
.safe-bottom {
  height: env(safe-area-inset-bottom, 0px);
}

/* ====== 响应式 ====== */
@media (min-width: 768px) {
  .surname-detail-overlay {
    align-items: center;
  }
  .surname-detail-panel {
    max-height: 80vh;
    border-radius: var(--radius);
    margin: 20px;
  }
  .celebrity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-search { max-width: 320px; }
  .content-section { padding: 24px; }
  .migration-section .event-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 1rem; }
  .nav-tab span { display: none; }
  .nav-tab i { margin-right: 0; font-size: 1rem; }
  .nav-tab { padding: 8px 12px; }
  .loading-title { font-size: 1.5rem; letter-spacing: 0.15em; }
  .detail-surname-big { font-size: 3rem; }
  .celebrity-grid { grid-template-columns: 1fr; }
  #migration-map { height: 45vh; min-height: 260px; }
  .map-legend:not(.era-legend) { display: none; }
  .era-legend {
    font-size: 0.68rem;
    padding: 6px 10px;
    bottom: 70px !important;
  }
  .search-suggestions {
    position: fixed;
    top: 56px; left: 0; right: 0;
    border-radius: 0;
    max-height: 50vh;
  }
  .map-breadcrumb { font-size: 0.75rem; padding: 4px 10px; }
}

@media (max-width: 360px) {
  .nav-logo span { display: none; }
  .nav-search input { font-size: 0.82rem; }
}

/* ====== 动画 ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s infinite; }

/* 触摸反馈 */
@media (hover: none) {
  .nav-tab:active, .surname-pill:active, .event-card:active, .map-btn:active {
    transform: scale(0.96);
    opacity: 0.8;
  }
}

/* ====== 无障碍 ====== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 迁徙面板地图切换 */
.migration-view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.toggle-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
}
.toggle-btn.active {
  color: var(--gold);
  background: rgba(212,168,83,0.12);
  border-color: var(--border-active);
}
