.mmd-directory {
    font-family: inherit;
    max-width: 100%;
}

/* Header instruction */
.mmd-header {
    margin-bottom: 16px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

/* Filters */
.mmd-filters {
    margin-bottom: 20px;
}

.mmd-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.mmd-filters select,
.mmd-filters input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

.mmd-filters select {
    flex: 1;
    min-width: 160px;
    cursor: pointer;
}

.mmd-filters input[type="text"] {
    width: 100%;
}

.mmd-search-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    background: #1565c0;
    color: #fff;
    cursor: pointer;
    text-align: center;
}

.mmd-search-btn:hover {
    background: #0d47a1;
}

.mmd-prompt {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
}

/* Stats bar */
.mmd-stats {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

/* Table */
.mmd-table-wrap {
    overflow-x: auto;
}

.mmd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mmd-table th,
.mmd-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mmd-table th {
    background: #f5f5f5;
    font-weight: 600;
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.mmd-table tbody tr:hover {
    background: #f9f9f9;
}

.mmd-table td:empty::after {
    content: "\2014";
    color: #ccc;
}

/* Registry badge */
.mmd-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.mmd-badge--member {
    background: #e3f2fd;
    color: #1565c0;
}

.mmd-badge--special {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Loading & messages */
.mmd-loading,
.mmd-no-results,
.mmd-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.mmd-error {
    color: #c62828;
}

.mmd-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: mmd-spin 0.6s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes mmd-spin {
    to { transform: rotate(360deg); }
}

/* Responsive: cards on mobile */
@media (max-width: 768px) {
    .mmd-filters-row {
        flex-direction: column;
    }

    .mmd-filters select {
        width: 100%;
        min-width: unset;
    }

    .mmd-table thead {
        display: none;
    }

    .mmd-table tbody tr {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 12px;
    }

    .mmd-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border: none;
    }

    .mmd-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
    }
}
