.term-original {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  color: var(--text-tertiary);
}
.term-original b {
  color: var(--text-secondary);
  font-weight: 600;
}
.term-def {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 30px;
}
.term-def p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.term-def p + p {
  margin-top: 10px;
}
.related-terms {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.related-terms .toc-title {
  margin-bottom: 12px;
}
.term-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.term-pills a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.term-pills a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.dict-doc .related-docs {
  margin-top: 26px;
  padding-top: 26px;
}
@media (max-width: 600px) {
  .term-def {
    padding: 16px 16px;
  }
  .term-def p {
    font-size: 0.9375rem;
  }
}
.letter-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.letter-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a.letter-cell:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.letter-cell.empty {
  background: var(--bg);
  border-style: dashed;
  color: var(--text-tertiary);
  font-weight: 600;
}
.term-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.term-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.term-list li:last-child {
  border-bottom: none;
}
.term-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}
.term-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.15s ease;
}
.term-link:hover {
  color: var(--accent);
}
.term-link .orig {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-tertiary);
}
.term-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--text-tertiary);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.term-go .svgi {
  width: 9px;
  height: 9px;
  vertical-align: 0;
}
.term-link:hover .term-go {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.term-brief {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.term-letter {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 700;
}
@media (max-width: 600px) {
  .letter-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }
  .letter-cell {
    height: 50px;
    font-size: 0.9375rem;
  }
  .term-brief {
    font-size: 0.875rem;
  }
}
