.md-button {
    background: var(--md-default-bg-color, #fff);
    color: var(--md-primary-fg-color, #1976d2) !important;
    padding: 0.3em 0.6em;
    border: .1rem none !important;
    border-radius: 0.3rem !important;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin: 0.1rem;
    transition: all 0.2s ease;
    font-size: 0.64rem; 
    line-height: 1.3;
    box-shadow: none !important;
}

.md-button--primary {
    background: var(--md-primary-fg-color, #1976d2) !important;
    color: white !important;
    border-color: var(--md-primary-fg-color, #1976d2) !important;
    font-weight: 600;
}

.quest-guide-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; 
    margin-bottom: 1rem;
    padding: 0.5rem; 
    background: var(--md-default-bg-color);
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.3rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}
table tr:nth-child(2n+1) {
    background-color: rgba(0,0,0,0.12) !important;
}
table tr:nth-child(2n) {
    background-color: rgba(0,0,0,0.18) !important;
}

.race-selector, 
.version-selector, 
.level-selector, 
.content-type-selector {
    display: flex;
    align-items: center;
    gap: 0.2rem; 
    flex-wrap: wrap;
    font-size: 0.7rem; 
}

.version-selector span, 
.level-selector span, 
.race-selector span, 
.content-type-selector span {
    font-weight: 600;
    margin-right: 0.2rem;
    color: var(--md-default-fg-color, #333);
    font-size: 0.7rem;
    white-space: nowrap; 
}

@media screen and (max-width: 768px) {
    .quest-guide-controls {
        padding: 0.3rem;
        gap: 0.3rem;
    }
    
    .md-button {
        padding: 0.2em 0.4em;
        font-size: 0.6rem; 
    }
    
    @media screen and (max-width: 480px) {
        .quest-guide-controls {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .race-selector, 
        .version-selector, 
        .level-selector, 
        .content-type-selector {
            width: 100%;
            justify-content: space-between;
        }
    }
}

.race-selector, .content-type-selector {
    display: none;
}

.race-selector.active, .content-type-selector.active {
    display: flex;
}

.race-content, .content-type-section {
    margin-top: 1rem;
    padding: 0.8rem; 
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.3rem;
    background: var(--md-default-bg-color);
}

.race-content h3 {
    margin-top: 0;
    color: var(--md-primary-fg-color, #1976d2);
    font-size: 1.1rem;
}

.content-type-section table,
.race-content table {
    margin-left: auto !important;
    margin-right: auto !important;
    width: auto !important;
}

