.topicindex-page .topicindex-panel {
    margin-bottom: 14px;
}

.topicindex-page .topicindex-az-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 6px;
    line-height: 1.8;
    text-align: center;
}

.topicindex-page .topicindex-letter {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.topicindex-page .topicindex-letter small {
    font-size: 0.68em;
    font-weight: 400;
    opacity: 0.7;
}

.topicindex-page .topicindex-letter.active {
    background: #4c5d77;
    color: #ffffff;
}

.topicindex-page .topicindex-letter:hover {
    text-decoration: underline;
}

.topicindex-page .topicindex-empty {
    padding: 10px;
}


.topicindex-page .topicindex-status-nav {
    margin-top: 8px;
    text-align: center;
    font-size: 0.95em;
}

.topicindex-page .topicindex-status-nav a,
.topicindex-page .topicindex-status-nav strong {
    display: inline-block;
    margin: 2px 4px;
}

.topicindex-page .topicindex-status-nav strong {
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.08);
}



.topicindex-page .topiclist dd.lastpost{width:220px;text-align:left;overflow:hidden;} .topicindex-page .topiclist dd.posts{width:90px;}

/* Compact, vertically centered result table */
.topicindex-page .topiclist li.header dl.row-item,
.topicindex-page .topiclist.topics li.row dl.row-item {
    display: flex;
    align-items: center;
}

.topicindex-page .topiclist li.header dl.row-item > dt,
.topicindex-page .topiclist.topics li.row dl.row-item > dt {
    float: none;
    flex: 1 1 auto;
    width: auto;
    margin-right: 0;
}

.topicindex-page .topiclist li.header dl.row-item > dd.lastpost,
.topicindex-page .topiclist.topics li.row dl.row-item > dd.lastpost {
    float: none;
    flex: 0 0 220px;
    width: 220px;
    display: flex;
    align-items: center;
    min-height: 0;
    box-sizing: border-box;
}

.topicindex-page .topiclist li.header dl.row-item > dd.posts,
.topicindex-page .topiclist.topics li.row dl.row-item > dd.posts {
    float: none;
    flex: 0 0 90px;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .topicindex-page .topiclist li.header dl.row-item > dd.lastpost,
    .topicindex-page .topiclist.topics li.row dl.row-item > dd.lastpost {
        flex-basis: 150px;
        width: 150px;
    }

    .topicindex-page .topiclist li.header dl.row-item > dd.posts,
    .topicindex-page .topiclist.topics li.row dl.row-item > dd.posts {
        flex-basis: 70px;
        width: 70px;
    }
}
