.rejstrik-float {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    background: #f8f9fa;
    border: 2px solid #0073aa;
    padding: 12px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    line-height: 1.4;
}

.rejstrik-float h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.rejstrik-intro {
    margin: 0 0 12px;
    color: #555;
    font-size: 12px;
}

.rejstrik-terms {
    max-height: 58vh;
    overflow-y: auto;
    margin-bottom: 10px;
}

.rejstrik-term {
    border-bottom: 1px solid #d8dee4;
    padding: 8px 0;
}

.rejstrik-term:last-child {
    border-bottom: none;
}

.rejstrik-word {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 6px;
    color: #0073aa;
    font-weight: 700;
    cursor: pointer;
}

.rejstrik-word:hover,
.rejstrik-word.is-active {
    color: #005f8d;
    text-decoration: underline;
}

.rejstrik-local-count,
.rejstrik-remote-count {
    font-weight: 400;
    color: #666;
    font-size: 11px;
}

.rejstrik-crosslinks {
    list-style: none;
    margin: 0;
    padding: 0 0 0 10px;
}

.rejstrik-crosslinks li {
    margin: 0 0 4px;
}

.rejstrik-crosslinks a {
    color: #333;
    text-decoration: none;
}

.rejstrik-crosslinks a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.rejstrik-empty {
    color: #888;
    font-style: italic;
}

.rejstrik-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid #d8dee4;
    padding-top: 10px;
}

.rejstrik-nav button {
    padding: 4px 8px;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
}

.rejstrik-nav button:hover {
    background: #005f8d;
}

mark {
    background-color: #fffa8b;
    transition: background-color 0.3s ease;
}

@media (max-width: 1200px) {
    .rejstrik-float {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 24px;
    }

    .rejstrik-terms {
        max-height: none;
    }
}
