/* ========== 28打印壳样式（对齐 money/math 蓝色主题） ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:root {
  --iv-ink: #171717; --iv-muted: #6b7280; --iv-line: #f3f4f6; --iv-surface: #ffffff;
  --iv-bg: #f9fafb; --iv-accent: #2563eb; --iv-accent-2: #1d4ed8; --iv-accent-soft: #eff6ff;
  --iv-warn: #c2410c; --iv-ok: #15803d; --iv-bad: #b91c1c; --iv-card: #ffffff;
  --iv-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
[data-theme='dark'] {
  --iv-ink: #e5e7eb; --iv-muted: #9ca3af; --iv-line: #374151; --iv-surface: #111827;
  --iv-bg: #030712; --iv-accent: #60a5fa; --iv-accent-2: #93c5fd; --iv-accent-soft: #1e3a5f;
  --iv-card: #111827; --iv-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
  line-height: 1.6; color: var(--iv-ink); background: var(--iv-bg); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--iv-accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.min-h-screen { min-height: 100vh; display: flex; flex-direction: column; }
.bg-gray-50 { background-color: var(--iv-bg); }
.bg-white { background-color: var(--iv-surface); }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-x-2 { gap: 0.5rem; }
.space-x-6 { gap: 1.5rem; }
.h-16 { height: 4rem; }
.font-bold { font-weight: 700; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-gray-900 { color: var(--iv-ink); }
.text-gray-600 { color: var(--iv-muted); }
.text-gray-400 { color: #94a3b8; }
.text-blue-600 { color: var(--iv-accent); }
.mb-2 { margin-bottom: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
@media (min-width: 640px) { .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .sm\:text-sm { font-size: 0.875rem; } }
@media (min-width: 768px) { .md\:flex { display: flex; } .md\:hidden { display: none; } }
@media (min-width: 1024px) { .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; } }
header.site-header {
  background: var(--iv-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #f3f4f6; position: sticky; top: 0; z-index: 40;
}
header.site-header nav { max-width: 80rem; margin: 0 auto; padding: 0 1rem; position: relative; }
@media (min-width: 640px) { header.site-header nav { padding: 0 1.5rem; } }
@media (min-width: 1024px) { header.site-header nav { padding: 0 2rem; } }
.nav-link { color: #374151; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.nav-link:hover { color: #2563eb; background-color: #f3f4f6; }
.nav-link.active { color: #1d4ed8; font-weight: 600; background-color: #eff6ff; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem; border-radius: 0.375rem; color: #374151; }
.btn-icon:hover { background: #f3f4f6; color: #2563eb; }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--iv-surface); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); border-top: 1px solid var(--iv-line); z-index: 50; }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 1rem; color: #374151; border-bottom: 1px solid var(--iv-line); }
.mobile-menu a.active { color: #1d4ed8; background-color: #eff6ff; font-weight: 600; }
.breadcrumb { background: var(--iv-bg); border-bottom: 1px solid var(--iv-line); }
.breadcrumb ol { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; overflow-x: auto; list-style: none; }
@media (min-width: 640px) { .breadcrumb ol { font-size: 0.875rem; } }
.site-footer { margin-top: auto; border-top: 1px solid var(--iv-line); background: var(--iv-surface); padding: 1.25rem 1rem; text-align: center; color: var(--iv-muted); font-size: 0.8rem; }

/* ========== 雅思词汇通应用内样式 ========== */
.iv-main {
  flex: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 5rem;
}

@media (min-width: 640px) {
  .iv-main {
    padding: 1.5rem 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .iv-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.iv-app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  background: var(--iv-card);
  border: 1px solid var(--iv-line);
  border-radius: 0.75rem;
  box-shadow: var(--iv-shadow);
}

.iv-app-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--iv-muted);
  position: relative;
}

.iv-app-nav button:hover {
  background: var(--iv-accent-soft);
  color: var(--iv-accent);
}

.iv-app-nav button.active {
  background: var(--iv-accent);
  color: #fff;
}

.iv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
}

.iv-app-nav button:not(.active) .iv-badge {
  background: var(--iv-accent);
  color: #fff;
}

.iv-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #3b82f6 100%);
  border: none;
  margin-bottom: 1.25rem;
  color: #fff;
}

[data-theme='dark'] .iv-hero {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 55%, #2563eb 100%);
}

.iv-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: #fff;
}

.iv-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  max-width: 36rem;
}

.iv-hero .iv-btn {
  background: #fff;
  color: #2563eb;
}

.iv-hero .iv-btn:hover {
  background: #f8fafc;
  color: #1d4ed8;
}

.iv-hero .iv-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.iv-hero .iv-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.iv-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .iv-stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.iv-stat {
  background: var(--iv-card);
  border: 1px solid var(--iv-line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.iv-stat .n {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--iv-accent);
}

.iv-stat .l {
  font-size: 0.75rem;
  color: var(--iv-muted);
}

.iv-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .iv-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .iv-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .iv-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.iv-card {
  background: var(--iv-card);
  border: 1px solid var(--iv-line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--iv-shadow);
}

.iv-card h2,
.iv-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.iv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--iv-accent);
  color: #fff;
  transition: background 0.15s, transform 0.1s;
}

.iv-btn:hover {
  background: var(--iv-accent-2);
}

.iv-btn:active {
  transform: scale(0.98);
}

.iv-btn-ghost {
  background: transparent;
  color: var(--iv-accent);
  border: 1px solid var(--iv-line);
}

.iv-btn-ghost:hover {
  background: var(--iv-accent-soft);
  color: var(--iv-accent);
}

.iv-btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.iv-btn-block {
  width: 100%;
}

.iv-input,
.iv-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--iv-line);
  border-radius: 0.5rem;
  background: var(--iv-surface);
  color: var(--iv-ink);
  font-size: 0.875rem;
}

.iv-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--iv-muted);
  margin-bottom: 0.3rem;
}

.iv-field {
  margin-bottom: 0.85rem;
}

.iv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.iv-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--iv-line);
  background: var(--iv-surface);
  color: var(--iv-muted);
}

.iv-chip.active {
  background: var(--iv-accent);
  border-color: var(--iv-accent);
  color: #fff;
}

.iv-word-card {
  display: block;
  text-align: left;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--iv-line);
  border-radius: 0.75rem;
  background: var(--iv-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.iv-word-card:hover {
  border-color: var(--iv-accent);
  box-shadow: 0 0 0 3px var(--iv-accent-soft);
}

.iv-word-card .w {
  font-weight: 700;
  font-size: 1.05rem;
}

.iv-word-card .p {
  font-size: 0.75rem;
  color: var(--iv-muted);
}

.iv-word-card .t {
  font-size: 0.8rem;
  color: var(--iv-muted);
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iv-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.iv-flash {
  perspective: 1000px;
  max-width: 28rem;
  margin: 0 auto;
  min-height: 220px;
}

.iv-flash-inner {
  position: relative;
  width: 100%;
  min-height: 220px;
  transition: transform 0.45s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.iv-flash-inner.flipped {
  transform: rotateY(180deg);
}

.iv-flash-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 1rem;
  border: 1px solid var(--iv-line);
  background: var(--iv-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--iv-shadow);
}

.iv-flash-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--iv-accent-soft), var(--iv-card));
}

.iv-flash-face .word {
  font-size: 2rem;
  font-weight: 800;
}

.iv-flash-face .phon {
  color: var(--iv-muted);
  margin-top: 0.35rem;
}

.iv-options {
  display: grid;
  gap: 0.5rem;
}

.iv-option {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--iv-line);
  border-radius: 0.65rem;
  background: var(--iv-card);
  font-size: 0.9rem;
}

.iv-option:hover:not(:disabled) {
  border-color: var(--iv-accent);
}

.iv-option.correct {
  border-color: var(--iv-ok);
  background: #dcfce7;
  color: #14532d;
}

.iv-option.wrong {
  border-color: var(--iv-bad);
  background: #fee2e2;
  color: #7f1d1d;
}

[data-theme='dark'] .iv-option.correct {
  background: #14532d;
  color: #bbf7d0;
}

[data-theme='dark'] .iv-option.wrong {
  background: #7f1d1d;
  color: #fecaca;
}

.iv-progress {
  height: 0.4rem;
  background: var(--iv-line);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.iv-progress > span {
  display: block;
  height: 100%;
  background: var(--iv-accent);
  border-radius: 999px;
  transition: width 0.25s;
}

.iv-heatmap-container {
  position: relative;
  flex: 1;
  min-width: 0;
}
.iv-heat-tip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  transform: translate(-50%, -100%);
}
.iv-heat-tip-inner {
  background: var(--iv-card);
  border: 1px solid var(--iv-line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 0.4rem;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
  font-size: 0.7rem;
}
.iv-heat-tip-date {
  font-weight: 700;
  color: var(--iv-ink);
}
.iv-heat-tip-detail {
  color: var(--iv-muted);
  margin-top: 0.15rem;
}
.iv-heat-tip-arrow {
  width: 0;
  height: 0;
  margin: 0 auto;
  border: 5px solid transparent;
  border-top-color: var(--iv-card);
  filter: drop-shadow(0 1px 0 var(--iv-line));
}
.iv-heat-cell[data-heat-date] {
  cursor: pointer;
}
.iv-heat-cell[data-heat-date]:hover {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 1px;
  transform: scale(1.15);
}

.iv-heatmap-wrap {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.iv-heat-weekdays {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 1.25rem;
  flex-shrink: 0;
  font-size: 0.625rem;
  color: var(--iv-muted);
  line-height: 14px;
  padding-top: 0;
}
.iv-heat-weekdays span {
  height: 14px;
}
.iv-heatmap {
  display: flex;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.iv-heat-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.iv-heat-months {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
  margin-left: calc(1.25rem + 4px);
  font-size: 0.625rem;
  color: var(--iv-muted);
  overflow: hidden;
}
.iv-heat-months span {
  width: 14px;
  flex-shrink: 0;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
}
.iv-heat-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #e5e7eb;
  flex-shrink: 0;
  display: block;
}
.iv-heat-cell.empty {
  background: transparent;
}
.iv-heat-cell.today {
  outline: 2px solid var(--iv-accent);
  outline-offset: 1px;
}
.iv-heat-cell.l1 {
  background: #bfdbfe;
}
.iv-heat-cell.l2 {
  background: #93c5fd;
}
.iv-heat-cell.l3 {
  background: #3b82f6;
}
.iv-heat-cell.l4 {
  background: #1d4ed8;
}
.iv-heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 0.5rem;
  font-size: 0.625rem;
  color: var(--iv-muted);
}
.iv-heat-legend .iv-heat-cell {
  width: 12px;
  height: 12px;
}
[data-theme='dark'] .iv-heat-cell {
  background: #374151;
}
[data-theme='dark'] .iv-heat-cell.empty {
  background: transparent;
}
[data-theme='dark'] .iv-heat-cell.l1 {
  background: #1e3a8a;
}
[data-theme='dark'] .iv-heat-cell.l2 {
  background: #1d4ed8;
}
[data-theme='dark'] .iv-heat-cell.l3 {
  background: #3b82f6;
}
[data-theme='dark'] .iv-heat-cell.l4 {
  background: #60a5fa;
}

.iv-ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .iv-ach-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.iv-ach {
  padding: 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid var(--iv-line);
  font-size: 0.75rem;
  opacity: 0.45;
}

.iv-ach.on {
  opacity: 1;
  border-color: var(--iv-accent);
  background: var(--iv-accent-soft);
}

.iv-ach .t {
  font-weight: 700;
  display: block;
}

.iv-mobile-tab {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  background: var(--iv-surface);
  border-top: 1px solid var(--iv-line);
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
}

.iv-mobile-tab button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem;
  font-size: 0.65rem;
  color: var(--iv-muted);
  position: relative;
}

.iv-mobile-tab button.active {
  color: var(--iv-accent);
  font-weight: 700;
}

.iv-mobile-tab .iv-badge {
  position: absolute;
  top: 0.15rem;
  right: calc(50% - 1.4rem);
}

@media (min-width: 640px) {
  .iv-mobile-tab {
    display: none;
  }
  .iv-main {
    padding-bottom: 2rem;
  }
}

.iv-loading {
  position: fixed;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--iv-ink);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: none;
}

.iv-loading.show {
  display: block;
}

@media (min-width: 640px) {
  .iv-loading {
    bottom: 1.5rem;
  }
}

.iv-muted {
  color: var(--iv-muted);
  font-size: 0.85rem;
}

.iv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.iv-sentence {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: var(--iv-bg);
  border-radius: 0.5rem;
  border-left: 3px solid var(--iv-accent);
}

.iv-toast {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 60;
  background: var(--iv-accent);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: iv-slide 0.25s ease;
}

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

.iv-palette {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.iv-palette.open {
  display: flex;
}

.iv-palette-box {
  width: min(36rem, 92vw);
  background: var(--iv-card);
  border-radius: 0.85rem;
  border: 1px solid var(--iv-line);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.iv-palette-box input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--iv-line);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background: transparent;
  color: var(--iv-ink);
}

.iv-palette-list {
  max-height: 50vh;
  overflow: auto;
}

.iv-palette-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--iv-line);
  font-size: 0.875rem;
}

.iv-palette-item:hover {
  background: var(--iv-accent-soft);
}

.iv-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--iv-muted);
}

.iv-rating {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.iv-rating button {
  flex: 1;
  max-width: 7rem;
  padding: 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--iv-line);
}

.iv-rating .hard {
  color: var(--iv-bad);
}
.iv-rating .ok {
  color: #ca8a04;
}
.iv-rating .easy {
  color: var(--iv-ok);
}

.iv-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 23, 42, 0.4);
  display: none;
  align-items: flex-end;
}

.iv-more-sheet.open {
  display: flex;
}

.iv-more-panel {
  width: 100%;
  background: var(--iv-card);
  border-radius: 1rem 1rem 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.iv-more-panel button {
  display: flex;
  width: 100%;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--iv-line);
  font-size: 0.9rem;
  color: var(--iv-ink);
}

.iv-source-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.iv-source-bar .name {
  width: 4rem;
  text-align: right;
  font-size: 0.75rem;
  color: var(--iv-muted);
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iv-source-bar .track {
  flex: 1;
  height: 1.25rem;
  background: var(--iv-bg);
  border-radius: 0.25rem;
  position: relative;
  overflow: hidden;
}
.iv-source-bar .fill {
  height: 100%;
  border-radius: 0.25rem;
  transition: width 0.4s;
}
.iv-source-bar .fill.cambridge { background: rgba(244, 63, 94, 0.7); }
.iv-source-bar .fill.jijing { background: rgba(245, 158, 11, 0.7); }
.iv-source-bar .fill.other { background: rgba(14, 165, 233, 0.7); }
.iv-source-bar .cnt {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 600;
}
.iv-source-bar .pct {
  width: 2.5rem;
  font-size: 0.65rem;
  color: var(--iv-muted);
  flex-shrink: 0;
}
.iv-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.iv-dot.cambridge { background: #f43f5e; }
.iv-dot.jijing { background: #f59e0b; }
.iv-dot.other { background: #0ea5e9; }

.iv-assoc {
  position: relative;
  height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .iv-assoc { height: 20rem; }
}
.iv-assoc svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.iv-assoc-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}
.iv-assoc-center .node {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  min-width: 6rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.iv-assoc-center .node .w { font-weight: 800; font-size: 1rem; }
.iv-assoc-center .node .g { font-size: 0.6rem; opacity: 0.85; margin-top: 0.15rem; }
.iv-assoc-node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  background: var(--iv-card);
  border: 2px solid;
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--iv-shadow);
  max-width: 7rem;
}
.iv-assoc-node:hover {
  transform: translate(-50%, -55%) scale(1.05);
}
.iv-assoc-node .meta {
  font-size: 0.55rem;
  color: var(--iv-muted);
  font-weight: 500;
  margin-top: 0.1rem;
}
.iv-mastery-row {
  display: flex;
  gap: 0.35rem;
}
.iv-mastery-row button {
  flex: 1;
  height: 2rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--iv-bg);
  color: var(--iv-muted);
}
.iv-mastery-row button.on-0 { background: #e5e7eb; color: #4b5563; }
.iv-mastery-row button.on-low { background: #f43f5e; color: #fff; }
.iv-mastery-row button.on-mid { background: #f59e0b; color: #fff; }
.iv-mastery-row button.on-hi { background: #10b981; color: #fff; }
.iv-block {
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
}
.iv-block.zh { background: #eff6ff; }
.iv-block.en { background: var(--iv-bg); }
.iv-block.ex { background: #ecfdf5; }
.iv-block.mn { background: #fffbeb; }
[data-theme='dark'] .iv-block.zh { background: #1e3a5f; }
[data-theme='dark'] .iv-block.ex { background: #064e3b; }
[data-theme='dark'] .iv-block.mn { background: #78350f; }
.iv-word-hero {
  background: linear-gradient(135deg, #2563eb, #1d4ed8 55%, #3b82f6);
  color: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem 0.75rem 0 0;
  margin: -1.1rem -1.1rem 1rem;
}
.iv-word-hero h2 { font-size: 2rem; font-weight: 800; margin: 0; }
.iv-word-hero .phon { opacity: 0.9; font-family: ui-monospace, monospace; margin-left: 0.5rem; }
.iv-word-hero .badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.65rem; }
.iv-word-hero .badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
}
.iv-mic {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--iv-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.iv-mic.listening { background: #f43f5e; animation: iv-pulse 1s infinite; }
@keyframes iv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(244, 63, 94, 0); }
}
.iv-lb-item {
  border: 1px solid var(--iv-line);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
}
.iv-lb-item.top { border-color: #fcd34d; background: #fffbeb; }
[data-theme='dark'] .iv-lb-item.top { background: #451a03; border-color: #92400e; }
.iv-qs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.iv-qs-grid > div {
  text-align: center;
  padding: 0.65rem 0.35rem;
  border-radius: 0.5rem;
  background: var(--iv-bg);
}
.iv-qs-grid .n { font-size: 1.15rem; font-weight: 800; color: var(--iv-accent); }

.space-y > * + * {
  margin-top: 1rem;
}

/* 正确率趋势（对齐 quiz-trend-chart） */
.iv-trend-card {
  margin-top: 0;
}
.iv-trend-chart {
  position: relative;
  width: 100%;
  height: 160px;
}
.iv-trend-chart svg {
  display: block;
  width: 100%;
  height: 160px;
  overflow: visible;
}
.iv-trend-grid {
  stroke: var(--iv-line);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.7;
}
.iv-trend-pass {
  stroke: #f59e0b;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.55;
}
.iv-trend-axis {
  font-size: 10px;
  fill: var(--iv-muted);
}
.iv-trend-dot {
  fill: #2563eb;
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
}
.iv-trend-dot:hover {
  r: 5;
}
.iv-trend-tip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  transform: translate(-50%, -100%);
  background: var(--iv-card);
  border: 1px solid var(--iv-line);
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}
.iv-trend-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid;
}
.iv-trend-badge.up {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.iv-trend-badge.down {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
}

/* 首页布局 */
.iv-home-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .iv-home-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}
.iv-home-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.iv-home-side > .space-y,
.iv-home-side > * + * {
  margin-top: 0;
}
.iv-review-banner {
  cursor: pointer;
  border-color: #fecaca;
  background: linear-gradient(90deg, #fff1f2, #fff7ed);
}
.iv-review-banner:hover {
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.1);
}
[data-theme='dark'] .iv-review-banner {
  background: linear-gradient(90deg, #450a0a, #431407);
  border-color: #7f1d1d;
}
.iv-group-card {
  text-align: left;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--iv-line);
  border-radius: 0.75rem;
  background: var(--iv-card);
  border-left: 3px solid var(--iv-accent);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.iv-group-card:hover {
  border-color: var(--iv-accent);
  box-shadow: 0 0 0 3px var(--iv-accent-soft);
}
.iv-group-card .n {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.35rem 0;
}
.iv-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.iv-quick-actions .iv-btn {
  justify-content: flex-start;
}

/* 每日目标环 */
.iv-goal-done {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}
[data-theme='dark'] .iv-goal-done {
  background: linear-gradient(135deg, #064e3b, #134e4a);
  border-color: #065f46;
}
.iv-goal-body {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.iv-goal-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.iv-goal-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.iv-goal-ring-text .pct {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.iv-goal-ring-text .sub {
  font-size: 0.65rem;
  color: var(--iv-muted);
}
.iv-goal-meta {
  flex: 1;
  min-width: 0;
}
.iv-goal-meta .ok {
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.35rem;
}
.iv-goal-meta > * + * {
  margin-top: 0.35rem;
}

@media (min-width: 1024px) {
  .iv-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.iv-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #fff;
  margin-right: 0.25rem;
}

/* ========== 浏览词库（对齐 browse-view + word-card） ========== */
.iv-browse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.iv-browse-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}
.iv-browse-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.iv-browse-search {
  position: relative;
}
.iv-browse-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--iv-muted);
  font-size: 1rem;
  pointer-events: none;
}
.iv-browse-search .iv-input {
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}
.iv-browse-search-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  color: var(--iv-muted);
  font-size: 1.1rem;
  line-height: 1;
}
.iv-browse-search-clear:hover {
  background: var(--iv-bg);
  color: var(--iv-ink);
}
.iv-browse-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.iv-browse-label {
  font-size: 0.75rem;
  color: var(--iv-muted);
  padding-top: 0.35rem;
  flex-shrink: 0;
  min-width: 3rem;
}
.iv-chip-count {
  opacity: 0.7;
  margin-left: 0.15rem;
}
.iv-letter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.iv-letter {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  color: var(--iv-muted);
}
.iv-letter:hover {
  background: var(--iv-bg);
  color: var(--iv-ink);
}
.iv-letter.active {
  background: var(--iv-accent);
  color: #fff;
}
.iv-browse-sort {
  width: auto;
  min-width: 10rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}
.iv-browse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .iv-browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .iv-browse-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .iv-browse-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.iv-bword {
  position: relative;
  text-align: left;
  padding: 1rem;
  border: 1px solid var(--iv-line);
  border-radius: 0.75rem;
  background: var(--iv-card);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.iv-bword:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.iv-bword:hover .iv-bword-word {
  color: var(--iv-accent);
}
.iv-bword-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.iv-bword-main {
  min-width: 0;
  flex: 1;
}
.iv-bword-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.iv-bword-word {
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.15s;
}
.iv-bword-phon {
  font-size: 0.75rem;
  color: var(--iv-muted);
}
.iv-bword-trans {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--iv-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.iv-bword-endef {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--iv-muted);
  font-style: italic;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.iv-bword-fav {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1;
}
.iv-bword-fav:hover {
  background: var(--iv-bg);
}
.iv-bword-fav.on {
  color: #f59e0b;
}
.iv-bword-foot {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.iv-bword-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.iv-bbadge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--iv-bg);
  color: var(--iv-muted);
}
.iv-bbadge.outline {
  background: transparent;
  border: 1px solid var(--iv-line);
}
.iv-bbadge.g1 { background: #ffe4e6; color: #be123c; }
.iv-bbadge.g2 { background: #ffedd5; color: #c2410c; }
.iv-bbadge.g3 { background: #fef3c7; color: #b45309; }
.iv-bbadge.g4 { background: #d1fae5; color: #047857; }
.iv-bbadge.g5 { background: #ccfbf1; color: #0f766e; }
.iv-bbadge.learned { background: #d1fae5; color: #047857; }
.iv-bbadge.lv1 { background: #ffe4e6; color: #be123c; }
.iv-bbadge.lv2 { background: #ffedd5; color: #c2410c; }
.iv-bbadge.lv3 { background: #fef3c7; color: #b45309; }
.iv-bbadge.lv4 { background: #ecfccb; color: #4d7c0f; }
.iv-bbadge.lv5 { background: #d1fae5; color: #047857; }
.iv-bword-audio {
  font-size: 0.7rem;
  color: var(--iv-muted);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  flex-shrink: 0;
}
.iv-bword-audio:hover {
  background: var(--iv-accent-soft);
  color: var(--iv-accent);
}
[data-theme='dark'] .iv-bbadge.g1 { background: #4c0519; color: #fda4af; }
[data-theme='dark'] .iv-bbadge.g2 { background: #7c2d12; color: #fdba74; }
[data-theme='dark'] .iv-bbadge.g3 { background: #78350f; color: #fcd34d; }
[data-theme='dark'] .iv-bbadge.g4,
[data-theme='dark'] .iv-bbadge.learned,
[data-theme='dark'] .iv-bbadge.lv5 { background: #064e3b; color: #6ee7b7; }
[data-theme='dark'] .iv-bbadge.g5 { background: #134e4a; color: #5eead4; }

/* ========== Module views (Study/Quiz/Spell/Cloze/Review/Settings) ========== */
.iv-vhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.iv-vtitle {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--iv-ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.iv-vsub {
  font-size: 0.8125rem;
  color: var(--iv-muted);
  margin-top: 0.2rem;
}
.iv-vhead-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.iv-vhead-actions .iv-select {
  width: auto;
  min-width: 9rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
}
.star-amber { color: #f59e0b; }
.iv-label-inline {
  font-size: 0.8125rem;
  color: var(--iv-ink);
}
.iv-study-set-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.iv-mod-card {
  background: var(--iv-card);
  border: 1px solid var(--iv-line);
  border-radius: 0.85rem;
  padding: 1.25rem;
  box-shadow: var(--iv-shadow);
}
.iv-mod-narrow {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.iv-mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .iv-mode-grid { grid-template-columns: repeat(3, 1fr); }
  .iv-diff-grid { grid-template-columns: repeat(4, 1fr); }
}
.iv-mode-card {
  text-align: left;
  border: 2px solid var(--iv-line);
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: var(--iv-card);
  transition: border-color 0.15s, background 0.15s;
}
.iv-mode-card:hover { border-color: rgba(37, 99, 235, 0.4); }
.iv-mode-card.on {
  border-color: var(--iv-accent);
  background: var(--iv-accent-soft);
}
.iv-mode-card.compact { padding: 0.5rem; text-align: center; }
.iv-mode-card .t { font-size: 0.875rem; font-weight: 600; }
.iv-mode-card .d { font-size: 0.6875rem; color: var(--iv-muted); margin-top: 0.2rem; }
.iv-mode-card.on .diff-ad { color: var(--iv-accent); }
.iv-mode-card.on .diff-easy { color: #059669; }
.iv-mode-card.on .diff-mid { color: #d97706; }
.iv-mode-card.on .diff-hard { color: #e11d48; }
.iv-pill-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.iv-pill {
  flex: 1;
  min-width: 3.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--iv-line);
  background: var(--iv-card);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--iv-ink);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.iv-pill:hover { border-color: rgba(37, 99, 235, 0.4); }
.iv-pill.on {
  background: var(--iv-accent);
  border-color: var(--iv-accent);
  color: #fff;
}
.iv-pill.flex-1 { flex: 1; }
.iv-toggle-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 2px solid var(--iv-line);
  border-radius: 0.65rem;
  padding: 0.75rem;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.iv-toggle-row:hover { border-color: rgba(37, 99, 235, 0.4); }
.iv-toggle-row.on.rose {
  border-color: #fb7185;
  background: #fff1f2;
}
.iv-toggle-row.on.amber {
  border-color: #fbbf24;
  background: #fffbeb;
}
[data-theme='dark'] .iv-toggle-row.on.rose { background: rgba(136, 19, 55, 0.3); }
[data-theme='dark'] .iv-toggle-row.on.amber { background: rgba(120, 53, 15, 0.3); }
.iv-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.iv-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--iv-bg);
  font-size: 0.9rem;
}
.iv-toggle-row.on .iv-toggle-icon.rose { background: #f43f5e; color: #fff; }
.iv-toggle-row.on .iv-toggle-icon.amber { background: #f59e0b; color: #fff; }
.iv-toggle-row .t { font-size: 0.875rem; font-weight: 600; }
.iv-toggle-row .d { font-size: 0.6875rem; color: var(--iv-muted); }
.iv-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--iv-line);
  flex-shrink: 0;
  transition: background 0.2s;
}
.iv-switch span {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform 0.2s;
}
.iv-switch.on { background: var(--iv-accent); }
.iv-toggle-row.on.rose .iv-switch.on { background: #f43f5e; }
.iv-toggle-row.on.amber .iv-switch.on { background: #f59e0b; }
.iv-switch.on span { transform: translateX(1.25rem); }
.iv-switch-btn { padding: 0; }
.iv-prog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--iv-muted);
  margin-bottom: 0.4rem;
}
.iv-prog-bar {
  height: 0.375rem;
  background: var(--iv-line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.iv-prog-bar > span,
.iv-progress > span {
  display: block;
  height: 100%;
  background: var(--iv-accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.iv-fcard {
  position: relative;
  min-height: 420px;
  background: var(--iv-card);
  border: 1px solid var(--iv-line);
  border-radius: 0.85rem;
  box-shadow: var(--iv-shadow);
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.iv-fcard-front,
.iv-fcard-back {
  padding: 1.5rem;
  min-height: 420px;
}
.iv-fcard-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.iv-fcard-tl {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.iv-fcard-tr {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.iv-fcard-back .iv-fcard-tr { position: static; }
.iv-fcard-word {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .iv-fcard-word { font-size: 3rem; }
}
.iv-fcard-phon {
  margin-top: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--iv-muted);
  font-size: 1rem;
}
.iv-fcard-phon.sm { font-size: 0.75rem; margin-top: 0.15rem; }
.iv-fcard-audio {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
}
.iv-fcard-hint {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--iv-muted);
  animation: iv-pulse 2s ease-in-out infinite;
}
@keyframes iv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.iv-fcard-foot {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: var(--iv-muted);
  opacity: 0.7;
  white-space: nowrap;
}
.iv-fcard-back { overflow-y: auto; }
.iv-fcard-back-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.iv-fcard-back-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.iv-fcard-back-word {
  font-size: 1.5rem;
  font-weight: 800;
}
.iv-icon-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--iv-muted);
  font-size: 0.95rem;
}
.iv-icon-btn:hover { background: var(--iv-bg); }
.iv-icon-btn.star-on { color: #f59e0b; }
.iv-box-zh,
.iv-box-en,
.iv-box-ex,
.iv-box-mn {
  border-radius: 0.55rem;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
}
.iv-box-label {
  font-size: 0.625rem;
  color: var(--iv-muted);
  margin-bottom: 0.25rem;
}
.iv-box-zh { background: #fff1f2; }
.iv-box-en { background: rgba(107, 114, 128, 0.08); }
.iv-box-ex { background: #ecfdf5; }
.iv-box-mn { background: #fffbeb; }
[data-theme='dark'] .iv-box-zh { background: rgba(136, 19, 55, 0.3); }
[data-theme='dark'] .iv-box-en { background: rgba(55, 65, 81, 0.5); }
[data-theme='dark'] .iv-box-ex { background: rgba(6, 78, 59, 0.35); }
[data-theme='dark'] .iv-box-mn { background: rgba(120, 53, 15, 0.35); }
.iv-box-zh p,
.iv-box-en p,
.iv-box-ex p,
.iv-box-mn p {
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-line;
}
.iv-box-en .italic,
.italic { font-style: italic; }
.iv-link-btn {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--iv-accent);
  padding: 0;
  background: none;
}
.iv-link-btn:hover { text-decoration: underline; }
.iv-study-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .iv-study-actions { grid-template-columns: repeat(5, 1fr); }
  .iv-study-actions.cols-2 { grid-template-columns: 1fr 1fr; }
}
.iv-rate-hard {
  border-color: #fecdd3 !important;
  color: #e11d48 !important;
}
.iv-rate-hard:hover { background: #fff1f2 !important; }
.iv-rate-mid {
  border-color: #fde68a !important;
  color: #d97706 !important;
}
.iv-rate-mid:hover { background: #fffbeb !important; }
.iv-rate-easy {
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}
.iv-rate-easy:hover { background: #ecfdf5 !important; }
.iv-done-card {
  background: linear-gradient(90deg, #ecfdf5, #f0fdfa);
  border: 1px solid #6ee7b7;
  border-radius: 0.85rem;
  padding: 1.25rem;
  text-align: center;
}
[data-theme='dark'] .iv-done-card {
  background: linear-gradient(90deg, rgba(6,78,59,.4), rgba(19,78,74,.35));
  border-color: #065f46;
}
.iv-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.iv-done-icon.ok-soft { background: #d1fae5; color: #059669; box-shadow: none; width: 4rem; height: 4rem; font-size: 1.75rem; }
.iv-done-icon.amb-soft { background: #fef3c7; color: #d97706; box-shadow: none; width: 4rem; height: 4rem; }
.iv-done-icon.bad-soft { background: #ffe4e6; color: #e11d48; box-shadow: none; width: 4rem; height: 4rem; }
.iv-done-title {
  font-weight: 800;
  color: #047857;
  font-size: 1rem;
}
.iv-btn-ok { background: #10b981 !important; }
.iv-btn-ok:hover { background: #059669 !important; }
.iv-btn:disabled,
.iv-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.iv-badge-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.iv-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--iv-line);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--iv-card);
  color: var(--iv-ink);
}
.iv-chip-badge.ok { color: #059669; }
.iv-chip-badge.bad { color: #e11d48; }
.iv-chip-badge.amber {
  color: #d97706;
  border-color: #fcd34d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.iv-chip-badge.amber.hot,
.iv-chip-badge.hot {
  color: #e11d48;
  border-color: #fda4af;
}
.iv-chip-badge.ok-fill { background: #d1fae5; color: #047857; border-color: transparent; }
.iv-chip-badge.bad-fill { background: #ffe4e6; color: #be123c; border-color: transparent; }
.iv-quiz-prompt { text-align: center; margin-bottom: 1.5rem; }
.iv-quiz-mode-label {
  font-size: 0.6875rem;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.iv-quiz-q {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
@media (min-width: 640px) { .iv-quiz-q { font-size: 2.25rem; } }
.iv-quiz-sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--iv-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.iv-quiz-opts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .iv-quiz-opts { grid-template-columns: 1fr 1fr; }
}
.iv-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
  border: 2px solid var(--iv-line);
  border-radius: 0.65rem;
  padding: 0.85rem;
  background: var(--iv-card);
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.iv-quiz-opt:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.5);
  background: var(--iv-accent-soft);
}
.iv-quiz-opt .ltr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--iv-bg);
  color: var(--iv-muted);
}
.iv-quiz-opt .txt {
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
}
.iv-quiz-opt.correct {
  border-color: #10b981;
  background: #ecfdf5;
}
.iv-quiz-opt.correct .ltr { background: #10b981; color: #fff; }
.iv-quiz-opt.wrong {
  border-color: #f43f5e;
  background: #fff1f2;
}
.iv-quiz-opt.wrong .ltr { background: #f43f5e; color: #fff; }
.iv-quiz-opt.dim { opacity: 0.5; }
[data-theme='dark'] .iv-quiz-opt.correct { background: rgba(6, 78, 59, 0.4); }
[data-theme='dark'] .iv-quiz-opt.wrong { background: rgba(136, 19, 55, 0.35); }
.iv-quiz-explain {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--iv-line);
  background: rgba(107, 114, 128, 0.06);
}
.iv-explain-word { margin: 0.5rem 0 0.35rem; font-size: 0.9rem; }
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.font-bold { font-weight: 700; }
.flex-1 { flex: 1; }
.iv-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.iv-grade.s { background: linear-gradient(135deg, #fbbf24, #eab308); }
.iv-grade.a { background: linear-gradient(135deg, #34d399, #14b8a6); }
.iv-grade.b { background: linear-gradient(135deg, #38bdf8, #06b6d4); }
.iv-grade.c { background: linear-gradient(135deg, #fb923c, #f59e0b); }
.iv-grade.d { background: linear-gradient(135deg, #fb7185, #ef4444); }
.iv-result-card { text-align: center; padding: 2rem 1.5rem; }
.iv-result-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.iv-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.iv-rstat {
  border-radius: 0.55rem;
  padding: 0.75rem;
  text-align: center;
}
.iv-rstat .n { font-size: 1.5rem; font-weight: 800; }
.iv-rstat .l { font-size: 0.6875rem; color: var(--iv-muted); margin-top: 0.15rem; }
.iv-rstat.ok { background: #ecfdf5; }
.iv-rstat.ok .n { color: #059669; }
.iv-rstat.bad { background: #fff1f2; }
.iv-rstat.bad .n { color: #e11d48; }
.iv-rstat.amb { background: #fffbeb; }
.iv-rstat.amb .n { color: #d97706; }
[data-theme='dark'] .iv-rstat.ok { background: rgba(6, 78, 59, 0.35); }
[data-theme='dark'] .iv-rstat.bad { background: rgba(136, 19, 55, 0.3); }
[data-theme='dark'] .iv-rstat.amb { background: rgba(120, 53, 15, 0.3); }
.iv-timed-stats {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid #fde68a;
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}
[data-theme='dark'] .iv-timed-stats {
  background: linear-gradient(90deg, rgba(120,53,15,.3), rgba(154,52,18,.25));
  border-color: #92400e;
}
.iv-timed-item .n {
  font-size: 1.125rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #d97706;
}
.iv-timed-item .l { font-size: 0.625rem; color: var(--iv-muted); margin-top: 0.15rem; }
.iv-timed-sep { width: 1px; height: 2rem; background: #fde68a; }
.iv-review-h {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.iv-review-list {
  max-height: 20rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.25rem;
}
.iv-review-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  border: 1px solid var(--iv-line);
  border-radius: 0.55rem;
  padding: 0.6rem;
  font-size: 0.75rem;
}
.iv-review-mark {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.iv-review-mark.ok { background: #d1fae5; color: #047857; }
.iv-review-mark.bad { background: #ffe4e6; color: #be123c; }
.iv-review-body { min-width: 0; flex: 1; }
.iv-review-body .t { font-weight: 600; }
.iv-review-body .m { color: var(--iv-muted); margin-top: 0.15rem; }
.iv-review-body .bad { color: #e11d48; margin-top: 0.15rem; }
.iv-review-body .ok-txt { color: #059669; font-weight: 600; }
.iv-review-body .clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--iv-muted);
}
.iv-review-body .mt { margin-top: 0.35rem; }
.iv-spell-wrap { max-width: 28rem; margin: 0 auto; }
.iv-spell-prompt {
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}
.iv-spell-prompt.phon {
  font-size: 1.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--iv-muted);
}
.iv-letter-hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--iv-muted);
  text-align: center;
}
.iv-spell-input-wrap { position: relative; }
.iv-spell-input {
  width: 100%;
  height: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  border: 2px solid var(--iv-line);
  border-radius: 0.55rem;
  background: var(--iv-surface);
  color: var(--iv-ink);
  padding: 0 2.5rem;
}
.iv-spell-input:focus {
  outline: none;
  border-color: var(--iv-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.iv-spell-input.ok { border-color: #10b981; background: #ecfdf5; }
.iv-spell-input.bad { border-color: #f43f5e; background: #fff1f2; }
.iv-spell-mark {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 700;
}
.iv-spell-input.ok + .iv-spell-mark { color: #10b981; }
.iv-spell-input.bad + .iv-spell-mark { color: #f43f5e; }
.iv-hint-box {
  margin-top: 0.75rem;
  border-radius: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--iv-line);
  background: rgba(107, 114, 128, 0.06);
  text-align: center;
}
.iv-hint-box.amber { background: #fffbeb; border-color: transparent; padding: 0.65rem; }
.iv-hint-box.reveal { margin-top: 1rem; }
.iv-hint-box.ok-bg { background: #ecfdf5; border-color: transparent; }
.iv-hint-box.bad-bg { background: #fff1f2; border-color: transparent; }
[data-theme='dark'] .iv-hint-box.amber { background: rgba(120, 53, 15, 0.3); }
.iv-hint-box .tracking { letter-spacing: 0.15em; }
.iv-hint-lvl {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  color: var(--iv-muted);
}
.iv-hint-actions {
  margin-top: 0.75rem;
  text-align: center;
}
.iv-reveal-word {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-top: 0.35rem;
}
.iv-reveal-ex {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--iv-line);
}
.iv-tip-amber {
  border-radius: 0.55rem;
  padding: 0.75rem;
  background: #fffbeb;
  color: #b45309;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
[data-theme='dark'] .iv-tip-amber {
  background: rgba(120, 53, 15, 0.3);
  color: #fbbf24;
}
.iv-cloze-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.iv-cloze-sent {
  border-radius: 0.55rem;
  padding: 1rem;
  background: rgba(107, 114, 128, 0.06);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.iv-blank {
  display: inline-block;
  margin: 0 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  vertical-align: middle;
  background: var(--iv-accent-soft);
  color: var(--iv-accent);
}
.iv-blank.ok { background: #d1fae5; color: #047857; }
.iv-blank.bad { background: #ffe4e6; color: #be123c; }
.iv-review-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.iv-review-due-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e11d48;
}
.iv-ebbinghaus {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--iv-line);
}
.iv-ebox-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.iv-interval-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}
.iv-interval-cell {
  border-radius: 0.4rem;
  background: rgba(107, 114, 128, 0.08);
  padding: 0.45rem 0.2rem;
  text-align: center;
}
.iv-interval-cell .lv { font-size: 0.625rem; color: var(--iv-muted); }
.iv-interval-cell .val { font-size: 0.75rem; font-weight: 700; margin-top: 0.1rem; }
.iv-review-ask {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 2px dashed var(--iv-line);
  border-radius: 0.65rem;
  text-align: center;
}
.iv-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  max-width: 28rem;
  background: var(--iv-bg);
  border-radius: 0.55rem;
  padding: 0.25rem;
  margin-bottom: 0.75rem;
}
.iv-tab {
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--iv-muted);
  text-align: center;
}
.iv-tab.on {
  background: var(--iv-card);
  color: var(--iv-ink);
  box-shadow: var(--iv-shadow);
}
.iv-tag-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.iv-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--iv-bg);
  color: var(--iv-muted);
}
.iv-tag-pill.on {
  background: var(--iv-accent);
  color: #fff;
}
.iv-tag-pill .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  display: inline-block;
}
.iv-settings-wrap { max-width: 42rem; margin: 0 auto; }
.iv-set-card {
  background: var(--iv-card);
  border: 1px solid var(--iv-line);
  border-radius: 0.85rem;
  padding: 1.15rem;
  box-shadow: var(--iv-shadow);
  margin-bottom: 0.85rem;
}
.iv-set-h {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.iv-set-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  font-size: 0.85rem;
}
.iv-set-icon.violet { background: #ede9fe; color: #7c3aed; }
.iv-set-icon.emerald { background: #d1fae5; color: #059669; }
.iv-set-icon.rose { background: #ffe4e6; color: #e11d48; }
.iv-set-icon.sky { background: #e0f2fe; color: #0284c7; }
[data-theme='dark'] .iv-set-icon.violet { background: rgba(91, 33, 182, 0.35); color: #c4b5fd; }
[data-theme='dark'] .iv-set-icon.emerald { background: rgba(6, 78, 59, 0.4); color: #6ee7b7; }
[data-theme='dark'] .iv-set-icon.rose { background: rgba(136, 19, 55, 0.35); color: #fda4af; }
[data-theme='dark'] .iv-set-icon.sky { background: rgba(7, 89, 133, 0.4); color: #7dd3fc; }
.iv-set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.iv-set-row .t { font-size: 0.875rem; font-weight: 600; }
.iv-set-row .d { font-size: 0.75rem; color: var(--iv-muted); margin-top: 0.15rem; }
.iv-set-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.iv-set-stat {
  border-radius: 0.45rem;
  padding: 0.5rem 0.25rem;
  text-align: center;
  background: rgba(107, 114, 128, 0.08);
}
.iv-set-stat .n { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.iv-set-stat .l { font-size: 0.5625rem; color: var(--iv-muted); }
.iv-set-stat.ok { background: #ecfdf5; }
.iv-set-stat.ok .n { color: #059669; }
.iv-set-stat.amb { background: #fffbeb; }
.iv-set-stat.amb .n { color: #d97706; }
.iv-set-stat.vio { background: #ede9fe; }
.iv-set-stat.vio .n { color: #7c3aed; }
[data-theme='dark'] .iv-set-stat.ok { background: rgba(6, 78, 59, 0.35); }
[data-theme='dark'] .iv-set-stat.amb { background: rgba(120, 53, 15, 0.3); }
[data-theme='dark'] .iv-set-stat.vio { background: rgba(91, 33, 182, 0.3); }
.iv-btn-danger-outline {
  color: #e11d48 !important;
  border-color: #fecdd3 !important;
}
.iv-btn-danger-outline:hover {
  background: #fff1f2 !important;
  color: #be123c !important;
}
.bad { color: #e11d48; }
.text-xs { font-size: 0.75rem; }
