/* 生词本 ↔ 学习表 桥接样式 */

.nb-study-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin: 12px 0;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  font-size: 13px;
}

.nb-study-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #075985;
  user-select: none;
}
.nb-study-switch input { cursor: pointer; }

.nb-study-stat {
  margin-left: auto;
  font-size: 12.5px;
  color: #0369a1;
}

/* 卡片上的「加入学习」按钮 */
.nb-study-btn {
  transition: background .15s, color .15s;
}
.nb-study-btn.on {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-color: #86efac !important;
}

/* 深色模式 */
[data-theme="dark"] .nb-study-bar,
body.dark .nb-study-bar {
  background: #0c2a3e;
  border-color: #164e63;
}
[data-theme="dark"] .nb-study-switch,
body.dark .nb-study-switch { color: #7dd3fc; }
[data-theme="dark"] .nb-study-stat,
body.dark .nb-study-stat { color: #67e8f9; }
[data-theme="dark"] .nb-study-btn.on,
body.dark .nb-study-btn.on {
  background: #052e22 !important;
  color: #6ee7b7 !important;
  border-color: #065f46 !important;
}
