.eh-shortcuts__stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.eh-shortcuts__body {
  padding-top: 0;
}

.eh-shortcuts__toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.25rem;
}

.eh-shortcuts__search {
  position: relative;
  display: block;
}

.eh-shortcuts__search i {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: var(--eh-ink-soft);
}

.eh-shortcuts__search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.4rem;
  border: 1px solid var(--eh-border);
  border-radius: 999px;
  background: var(--eh-surface);
  color: var(--eh-ink);
  font: inherit;
}

.eh-shortcuts__search input:focus {
  outline: 2px solid var(--eh-green);
  outline-offset: 1px;
  border-color: transparent;
}

.eh-shortcuts__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.eh-shortcuts__topic {
  border: 0;
  cursor: pointer;
  background: var(--eh-surface-alt);
  color: var(--eh-ink-soft);
}

.eh-shortcuts__topic.is-active,
.eh-shortcuts__topic:hover {
  background: var(--eh-green-soft);
  color: var(--eh-green);
}

.eh-shortcuts__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.eh-shortcuts__letters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 6px;
  background: var(--eh-surface-alt);
  color: var(--eh-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.eh-shortcuts__letters a:hover {
  background: var(--eh-green);
  color: #fff;
}

.eh-shortcuts__group {
  margin: 0 0 1.5rem;
}

.eh-shortcuts__group.is-empty {
  display: none;
}

.eh-shortcuts__group h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.eh-shortcuts__table-wrap {
  padding: 0;
  overflow: hidden;
}

.eh-shortcuts__table {
  width: 100%;
  border-collapse: collapse;
}

.eh-shortcuts__table th,
.eh-shortcuts__table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--eh-border);
  vertical-align: middle;
}

.eh-shortcuts__table th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--eh-ink-soft);
  background: var(--eh-surface-alt);
}

.eh-shortcuts__table tr:last-child td {
  border-bottom: 0;
}

.eh-shortcuts__row.is-hidden {
  display: none;
}

.eh-shortcuts__table a {
  color: var(--eh-ink);
  font-weight: 700;
  text-decoration: none;
}

.eh-shortcuts__table a:hover {
  color: var(--eh-green);
}

.eh-shortcuts__table kbd {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: var(--eh-surface-alt);
  border: 1px solid var(--eh-border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--eh-ink);
}

@media (max-width: 900px) {
  .eh-shortcuts__stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .eh-shortcuts__table thead {
    display: none;
  }

  .eh-shortcuts__table,
  .eh-shortcuts__table tbody,
  .eh-shortcuts__table tr,
  .eh-shortcuts__table td {
    display: block;
    width: 100%;
  }

  .eh-shortcuts__table tr {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--eh-border);
  }

  .eh-shortcuts__table td {
    padding: 0.2rem 0;
    border: 0;
  }

  .eh-shortcuts__table td:nth-child(2)::before,
  .eh-shortcuts__table td:nth-child(3)::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 4.5rem;
    margin-right: 0.4rem;
    color: var(--eh-ink-soft);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
  }
}
