.rlsc-wrap {
    margin: 1.5rem 0;
}
.rlsc-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.rlsc-search {
    flex: 1 1 280px;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.rlsc-seg {
    display: flex;
    gap: 6px;
}
.rlsc-segbtn {
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}
.rlsc-segbtn.is-active {
    border-color: rgba(0, 0, 0, 0.35);
}

.rlsc-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px;
}
.rlsc-toc a {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
}

.rlsc-grid {
    /*display: grid;*/
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 900px) {
    .rlsc-grid {
        grid-template-columns: 1fr;
    }
}

.rlsc-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 14px;
}

.rlsc-cardhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.rlsc-cardhead h3 {
    margin: 0;
    font-size: 1.1rem;
}
.rlsc-count {
    opacity: 0.6;
    font-size: 0.95rem;
}

.rlsc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rlsc-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px; /* <-- skrót ma stałą szerokość */
  gap: 14px;
  align-items: center;
}
.rlsc-item:first-child {
    border-top: 0;
    padding-top: 0;
}


.rlsc-action{
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;          /* <-- kluczowe */
}
.rlsc-kbd{
  justify-self: end;
  width: 240px;           /* musi się zgadzać z gridem */
  text-align: center;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  border: 1px solid rgba(0,0,0,.22);
  border-radius: 12px;
  padding: 6px 10px;
  background: #fff;
}

.rlsc-kbd{
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rlsc-kbd[title]{ cursor: help; }
