.dictionary-initials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 6px;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  background: #f5f9ff;
}
.dictionary-initials[hidden] { display: none; }
.dictionary-initials button {
  min-height: 40px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #30455f;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.dictionary-initials button:hover:not(:disabled),
.dictionary-initials button:focus-visible {
  border-color: #8eb9ee;
  color: #0752b7;
  outline-offset: 2px;
}
.dictionary-initials button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.dictionary-initials button:disabled { opacity: .42; cursor: default; }

.term-list { gap: 24px; }
.term-group { min-width: 0; }
.term-group > h3 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 2px solid #d9e8f9;
  color: var(--navy);
  font-size: 17px;
}
.term-group-cards { display: grid; gap: 10px; }
.term-card { padding: 18px 20px; box-shadow: 0 2px 8px rgba(22, 57, 104, .03); }
.term-card h3 { margin: 0 0 3px; color: var(--navy); font-size: 18px; line-height: 1.4; }
.term-card header p { font-size: 12px; line-height: 1.4; }
.term-description {
  margin: 12px 0 0;
  color: #263a54;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}
.term-verdict {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #0b63d8;
  border-radius: 0 8px 8px 0;
  background: #eef5ff;
  color: #15365f;
  font-weight: 700;
  white-space: normal;
}
.term-verdict strong { color: #0752b7; font-size: 13px; }
.term-extra { margin-top: 12px; border-top: 1px solid #e8eef6; }
.term-extra summary {
  width: fit-content;
  padding: 10px 2px 0;
  color: #0752b7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.term-extra summary:hover { text-decoration: underline; }
.term-extra .term-meta { margin-top: 10px; padding-top: 12px; border-top: 0; }
.term-extra .term-meta dd { line-height: 1.55; }

@media (max-width: 760px) {
  .dictionary-initials { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .term-card { padding: 16px; }
  .term-card header { gap: 8px; }
  .term-card h3 { font-size: 17px; }
  .term-description { font-size: 14px; }
}

.category-panel h2, .category-panel .category-list button { text-align: left; }
@media (max-width: 640px) {
  .category-panel h2, .category-panel .category-list button { text-align: center; }
}
