:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --success: #10b981;
  --success-hover: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 禁止文字被长按或连续点击选中 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  /* 禁止双击缩放与手势缩放 */
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

/* 保持输入框和多行文本框正常可选中文本、复制粘贴 */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Header */
.app-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.logo-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  display: block;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  text-decoration: none;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nav-btn:hover {
  background: var(--border-light);
  color: var(--text-main);
  text-decoration: none;
}

.nav-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.db-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.db-badge.mysql {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.db-badge.sqlite {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Main Container */
.main-container {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

/* Statistics Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-info h4 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-info .stat-num {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-icon.due { background: #fee2e2; color: #dc2626; }
.stat-icon.new { background: #e0e7ff; color: #4338ca; }
.stat-icon.learn { background: #fef3c7; color: #d97706; }
.stat-icon.master { background: #d1fae5; color: #059669; }

/* Study Section */
.study-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}


.flashcard {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  min-height: 380px;
  box-shadow: var(--shadow-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.flashcard:hover {
  box-shadow: var(--shadow-lg);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.stage-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-weight: 600;
}

.card-center {
  text-align: center;
  padding: 1rem 0;
}

.word-pronounce-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
}

.word-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  line-height: 1.15;
}

.word-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 1.15rem;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", Geneva, Verdana, sans-serif;
}

.audio-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  transition: all 0.15s;
  flex-shrink: 0;
}

.audio-btn:hover {
  background: #e2e8f0;
  transform: scale(1.08);
}

#cardPhonetic {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", Geneva, Verdana, sans-serif;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* 遮罩音标严格适配音标自身实际长度，不显示多余文本 */
#cardPhonetic.is-masked {
  cursor: pointer;
  user-select: none;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  transition: all 0.2s ease;
}

#cardPhonetic.is-masked:hover {
  background: #e2e8f0;
  border-color: #64748b;
  transform: translateY(-1px);
}

#cardPhonetic.is-masked .phonetic-text {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  opacity: 0.25;
  user-select: none;
  pointer-events: none;
}

#cardPhonetic:not(.is-masked) {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.2rem 0;
  cursor: default;
}

#cardPhonetic:not(.is-masked) .phonetic-text {
  filter: none;
  opacity: 1;
  user-select: text;
  color: var(--text-muted);
}

.card-reveal-wrapper {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

.btn-reveal-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 0.55rem 1.6rem;
  border-radius: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-reveal-card:hover {
  background: #f1f5f9;
  color: var(--primary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.btn-reveal-card .shortcut-tag {
  font-size: 0.72rem;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* Card Revealed Details */
.card-details {
  margin-top: 1.5rem;
  border-top: 1px dashed var(--border);
  padding-top: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sense-item {
  margin-bottom: 1.2rem;
}

.sense-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.pos-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* 词性与释义整体打包遮罩与揭晓组件 */
.sense-def-box {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border-radius: 8px;
  max-width: 100%;
}

.sense-def-box.is-masked {
  cursor: pointer;
  user-select: none;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  padding: 0.3rem 0.75rem;
}

.sense-def-box.is-masked:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.sense-def-box.is-masked .pos-tag,
.sense-def-box.is-masked .definitions-text {
  filter: blur(5.5px);
  -webkit-filter: blur(5.5px);
  opacity: 0.25;
  user-select: none;
  pointer-events: none;
}

.sense-def-box.is-masked .def-mask-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  user-select: none;
  pointer-events: none;
  margin-left: 0.25rem;
}

.sense-def-box:not(.is-masked) {
  background: transparent;
  border: 1px solid transparent;
  padding: 0;
  cursor: default;
}

.sense-def-box:not(.is-masked) .def-mask-hint {
  display: none;
}

.sense-def-box:not(.is-masked) .pos-tag {
  filter: none;
  opacity: 1;
}

.sense-def-box:not(.is-masked) .definitions-text {
  filter: none;
  opacity: 1;
  user-select: text;
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 500;
}

.definitions {
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 500;
}

.definitions {
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 500;
}

.examples-list {
  margin-top: 0.4rem;
}

/* =======================================================
   例句盲听磨耳朵与打码遮罩组件
   ======================================================= */

.examples-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed #e2e8f0;
}

.examples-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.examples-badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

.examples-subtip {
  font-size: 0.78rem;
  color: #64748b;
}

.examples-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-sentence-speed,
.btn-examples-toggle-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sentence-speed:hover,
.btn-examples-toggle-all:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

.example-item-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
  transition: all 0.2s ease;
}

.example-item-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.example-item-box.is-real-exam {
  background: linear-gradient(135deg, #fff7ed 0%, #fdf4ff 100%) !important;
  border: 1.5px solid #ec4899 !important;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.12) !important;
  position: relative;
}

.badge-real-exam {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.35);
  letter-spacing: 0.02em;
  animation: pulse-real-exam 2.5s infinite;
}

@keyframes pulse-real-exam {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 2px 10px rgba(244, 63, 94, 0.5); }
}

.badge-word-real-exam {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}

.badge-table-exam {
  display: inline-flex;
  align-items: center;
  background: #fdf2f8;
  border: 1px solid #f472b6;
  color: #db2777;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}

.badge-real-exam-inline {
  display: inline-flex;
  align-items: center;
  background: #fce7f3;
  color: #be185d;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  border: 1px solid #fbcfe8;
}

.real-exam-tag-pill {
  display: inline-block;
  background: #8b5cf6;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}

.mask-badge-real-exam {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4) !important;
}

.example-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.btn-sentence-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-sentence-audio:hover {
  background: #dbeafe;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.18);
}

.btn-sentence-audio.is-playing {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  animation: pulseSentenceAudio 1.2s infinite ease-in-out;
}

@keyframes pulseSentenceAudio {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.btn-sentence-reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-sentence-reveal:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-sentence-reveal.is-revealed {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.example-listen-tip {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-left: auto;
  transition: color 0.2s ease;
}

.example-content-wrap {
  position: relative;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  transition: all 0.25s ease;
}

.example-content-wrap.is-masked {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  cursor: pointer;
}

.example-content-wrap.is-masked:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.example-content-wrap.is-masked .example-en,
.example-content-wrap.is-masked .example-zh {
  filter: blur(5.5px);
  -webkit-filter: blur(5.5px);
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.35;
  pointer-events: none;
}

.example-content-wrap.is-masked .example-mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mask-badge {
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.example-content-wrap.is-masked:hover .mask-badge {
  background: rgba(15, 23, 42, 0.92);
  transform: scale(1.03);
}

.example-content-wrap:not(.is-masked) {
  background: transparent;
  border: 1px solid transparent;
}

.example-content-wrap:not(.is-masked) .example-mask-overlay {
  display: none;
}

.example-content-wrap:not(.is-masked) .example-en {
  filter: none;
  opacity: 1;
  user-select: text;
  color: #1e293b;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.example-content-wrap:not(.is-masked) .example-zh {
  filter: none;
  opacity: 1;
  user-select: text;
  color: #64748b;
  font-size: 0.86rem;
  margin-top: 0.3rem;
  line-height: 1.45;
}

.example-item {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.example-en {
  color: #334155;
  font-style: italic;
}

.example-zh {
  color: #64748b;
  font-size: 0.85rem;
}

/* User Notes Area */
.user-notes-box {
  margin-top: 1.2rem;
  background: #fffdf5;
  border: 1px solid #fef08a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #854d0e;
  margin-bottom: 0.35rem;
}

.notes-content {
  font-size: 0.9rem;
  color: #713f12;
  white-space: pre-wrap;
}

.notes-edit-area {
  display: none;
  margin-top: 0.5rem;
}

.notes-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 60px;
}

/* Study Actions */
.study-actions-wrap {
  width: 100%;
  max-width: 680px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.study-actions {
  width: 100%;
  display: flex;
  gap: 0.85rem;
}

.study-actions .btn-action {
  flex: 1;
  padding: 0.75rem 0.6rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.study-actions .btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.study-actions .btn-action:active {
  transform: translateY(0);
}

.study-actions .btn-unknown {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.study-actions .btn-unknown:hover {
  background: #fecaca;
}

.study-actions .btn-fuzzy {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.study-actions .btn-fuzzy:hover {
  background: #fde68a;
}

.study-actions .btn-know {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}
.study-actions .btn-know:hover {
  background: #bbf7d0;
}

.study-actions .btn-title {
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.study-actions .btn-key {
  font-size: 0.75rem;
  opacity: 0.75;
  font-family: monospace;
  font-weight: normal;
}

.study-actions .btn-desc {
  font-size: 0.73rem;
  opacity: 0.85;
  font-weight: normal;
  white-space: nowrap;
}

.keyboard-tip {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.keyboard-tip code {
  background: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font-family: monospace;
  font-weight: 600;
  color: #1e293b;
}

.study-progress-tag {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  width: 100%;
  max-width: 680px;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-state-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* Vocabulary Management Tab */
.crud-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 350px;
}

.input-text {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.input-text:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.filter-group {
  display: flex;
  gap: 0.35rem;
}

.filter-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}

.filter-btn.active {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
}

.action-group {
  display: flex;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

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

.btn-secondary {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--border-light);
  border-color: #cbd5e1;
}

.btn-danger-outline {
  background: white;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-danger-outline:hover {
  background: #fee2e2;
}

/* Words Table */
.table-responsive {
  overflow-x: auto;
}

.words-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.words-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.words-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.words-table tr:hover {
  background: #f8fafc;
}

.word-cell-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
}

.word-cell-phonetic {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.word-cell-phonetic:hover {
  color: var(--primary);
  text-decoration: underline;
}

.table-senses {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}

.cell-actions {
  display: flex;
  gap: 0.4rem;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.icon-btn:hover {
  background: var(--border-light);
}

.icon-btn.delete:hover {
  background: #fee2e2;
  color: var(--danger);
  border-color: #fca5a5;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-controls {
  display: flex;
  gap: 0.4rem;
}

/* Batch Import Tab */
.import-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.import-box textarea {
  width: 100%;
  height: 220px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.95rem;
  margin: 1rem 0;
  outline: none;
}

.import-box textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.import-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.radio-group {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.progress-bar-container {
  margin: 1.5rem 0;
  display: none;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s;
}

.import-log {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 1rem;
  display: none;
}

/* Settings Tab */
.settings-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.settings-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: white;
  border-radius: 14px;
  max-width: 580px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
  font-size: 1.2rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Responsive */
/* PC端专属组件 */
.pc-only {
  display: inline-flex;
}

/* 移动端/窄屏自动彻底隐藏批量导入与设置 */
@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }
  .app-header {
    padding: 0.6rem 0.85rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
  }
  .nav-tabs {
    gap: 0.4rem;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-btn:not(.pc-only) {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    text-align: center;
    justify-content: center;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.88rem !important;
    font-weight: 600;
    white-space: nowrap !important;
  }
  .header-right {
    justify-content: space-between;
  }
  .main-container {
    padding: 0 0.75rem;
    margin: 1rem auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .stat-card {
    padding: 0.75rem 0.85rem;
  }
  .stat-info .stat-num {
    font-size: 1.35rem;
  }
  .flashcard {
    padding: 1.5rem 1rem;
    min-height: 320px;
    border-radius: 12px;
  }
  .word-title {
    font-size: 2.2rem;
  }
  .study-actions {
    flex-direction: row;
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }
  #decisionButtons {
    flex-direction: row;
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }
  .btn-action {
    flex: 1;
    padding: 0.85rem 0.35rem;
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }
  .settings-container {
    grid-template-columns: 1fr;
  }
  .crud-header {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
}

html.is-mobile-device .pc-only {
  display: none !important;
}

html.is-mobile-device .nav-tabs {
  gap: 0.35rem;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 3px 0 5px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.is-mobile-device .nav-tabs::-webkit-scrollbar {
  display: none;
}

html.is-mobile-device .nav-btn {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  text-align: center;
  justify-content: center;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.88rem !important;
  font-weight: 600;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .import-container {
    padding: 1.25rem 1rem !important;
  }
  .import-box textarea {
    height: 180px;
    font-size: 0.9rem;
    margin: 0.75rem 0;
  }
  .import-tag-options {
    padding: 0.85rem 1rem !important;
    margin-top: 0.75rem !important;
  }
  .import-actions button {
    width: 100%;
  }
}

/* ================= PTE Tier & Dictation Styles ================= */
.tier-study-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tier-tab-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tier-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Tier Badges */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tier-dictation {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.tier-collocation {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.tier-recognition {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 500;
  margin-left: 0.3rem;
  border: 1px solid #e2e8f0;
}

/* Dictation Mode Box */
.dictation-container {
  margin: 1.2rem auto 0.8rem auto;
  max-width: 520px;
  width: 100%;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dictation-prompt {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.dictation-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.dictation-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid #94a3b8;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  text-align: center;
  transition: all 0.2s ease;
}

.dictation-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dictation-input.input-correct {
  border-color: #10b981;
  background: #f0fdf4;
  color: #065f46;
}

.dictation-input.input-error {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.dictation-feedback {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  animation: fadeIn 0.2s ease-in-out;
}

.feedback-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.feedback-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  text-align: left;
}

.diff-wrong {
  color: #ef4444;
  text-decoration: line-through;
  font-weight: bold;
}

.diff-expected {
  color: #16a34a;
  font-weight: bold;
}

/* ================= Multi-User & Wordbook Styles ================= */
.header-user-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.btn-user-auth {
  padding: 0.45rem 0.95rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-user-auth:hover {
  background: var(--primary-dark);
}

.user-profile-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wordbook-selector-wrapper {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
}

.wb-select-icon {
  margin-right: 0.3rem;
  font-size: 0.9rem;
}

.header-wb-select {
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  outline: none;
  cursor: pointer;
  max-width: 140px;
}

.user-badge-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  user-select: none;
  transition: background 0.2s;
}

.user-badge-dropdown:hover {
  background: #e2e8f0;
}

.dropdown-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: 125%;
  right: 0;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 0;
  z-index: 1000;
}

.user-dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.dropdown-item.text-danger {
  color: #ef4444;
}

.dropdown-item.text-danger:hover {
  background: #fef2f2;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}

/* Wordbook list modal styles */
.wb-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
  max-height: 380px;
  overflow-y: auto;
  padding: 0.2rem;
}

.wb-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

.wb-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.wb-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wb-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0.8rem 0;
  min-height: 2em;
  line-height: 1.4;
}

.wb-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.6rem;
}

/* 单词本公开/私有动态切换按钮样式 */
.wb-privacy-btn {
  font-size: 0.73rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  user-select: none;
}

.wb-privacy-btn span.hover-tip {
  font-size: 0.68rem;
  opacity: 0.75;
  font-weight: normal;
}

.wb-privacy-btn.public {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.wb-privacy-btn.public:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.wb-privacy-btn.private {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.wb-privacy-btn.private:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.wb-privacy-readonly {
  font-size: 0.73rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: inline-flex;
  align-items: center;
}

.wb-privacy-badge-locked {
  font-size: 0.73rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
  background: #f1f5f9;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}

.auth-tab-group {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.7rem;
  text-align: center;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: #64748b;
  font-size: 0.95rem;
}

.auth-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 单词本学习状态与高亮卡片样式 */
.wb-card.current-study-wb {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.14);
}

.wb-card-title-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.wb-status-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  user-select: none;
}

.wb-status-badge.current {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

.wb-status-badge.completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
}

.wb-status-badge.learning {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.wb-status-badge.unstarted {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* 单词本卡片内置进度条 */
.wb-progress-section {
  margin: 0.5rem 0 0.7rem 0;
  background: #f8fafc;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #edf2f7;
}

.wb-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 5px;
}

.wb-progress-info strong {
  color: #0f172a;
  font-weight: 700;
}

.wb-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.wb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #3b82f6);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.wb-progress-fill.completed {
  background: linear-gradient(90deg, #10b981, #059669);
}

/* 收藏词本：考查级别卡片选择器 */
.fork-tier-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.fork-tier-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.fork-tier-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.fork-tier-card.selected {
  border-color: var(--primary);
  background: #f5f7ff;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.12);
}

.fork-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.fork-tier-badge {
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fork-tier-badge.dictation {
  color: #dc2626;
}

.fork-tier-badge.collocation {
  color: #d97706;
}

.fork-tier-badge.recognition {
  color: #16a34a;
}

.fork-tier-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  color: transparent;
  font-size: 0.75rem;
  font-weight: 900;
  transition: all 0.18s ease;
}

.fork-tier-card.selected .fork-tier-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.fork-tier-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.fork-tier-desc strong {
  color: #334155;
}




