.mr-registry {
    --mr-green: #286e28;
    --mr-green-dark: #1f571f;
    --mr-green-soft: #eef5ea;
    --mr-surface: #f7f7f7;
    --mr-surface-strong: #f1f4ef;
    --mr-border: #d9e3d1;
    --mr-text: #2f2f2f;
    --mr-muted: #565656;
    --mr-shadow: 0 10px 24px rgba(27, 45, 23, 0.08);
    color: var(--mr-text);
    font-family: "Montserrat", Arial, sans-serif;
    margin: 20px 0 36px;
}

.mr-registry__hero {
    background: linear-gradient(180deg, #f7faf5 0%, #f3f7f0 100%);
    border: 1px solid var(--mr-border);
    border-radius: 18px;
    margin-bottom: 16px;
    padding: 18px 20px;
}

.mr-registry__eyebrow {
    color: var(--mr-green);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.mr-registry h2 {
    color: var(--mr-green);
    font-size: clamp(1.9rem, 2.4vw, 2.7rem);
    font-weight: 500;
    line-height: 1.08;
    margin: 0 0 10px;
}

.mr-registry__hero p:last-child {
    color: var(--mr-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.mr-filters {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
}

.mr-filters label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.87rem;
    font-weight: 600;
}

.mr-filters input,
.mr-filters select {
    appearance: none;
    background: #fff;
    border: 1px solid var(--mr-border);
    border-radius: 10px;
    color: var(--mr-text);
    font-family: inherit;
    font-size: 0.9rem;
    min-height: 40px;
    padding: 0 12px;
}

.mr-filters input:focus,
.mr-filters select:focus {
    border-color: #9ec19a;
    box-shadow: 0 0 0 3px rgba(40, 110, 40, 0.12);
    outline: none;
}

.mr-toolbar {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mr-results-count,
.mr-pagination__status {
    color: var(--mr-muted);
    font-size: 0.88rem;
}

.mr-pagination {
    align-items: center;
    display: flex;
    gap: 8px;
}

.mr-pagination__button {
    background: #fff;
    border: 1px solid var(--mr-border);
    border-radius: 999px;
    color: var(--mr-green-dark);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    min-height: 34px;
    padding: 0 12px;
}

.mr-pagination__button:hover:not([disabled]) {
    background: var(--mr-green-soft);
}

.mr-pagination__button[disabled] {
    cursor: default;
    opacity: 0.45;
}

.mr-cards {
    display: grid;
    gap: 8px;
}

.mr-card {
    background: #fff;
    border: 1px solid var(--mr-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(21, 57, 21, 0.04);
    overflow: hidden;
}

.mr-card[hidden] {
    display: none;
}

.mr-card__summary {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.mr-card__summary:hover {
    background: rgba(40, 110, 40, 0.035);
}

.mr-card__title {
    color: var(--mr-green-dark);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.mr-card__meta {
    color: var(--mr-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.mr-overlay {
    inset: 0;
    position: fixed;
    z-index: 9999;
}

.mr-overlay[hidden] {
    display: none;
}

.mr-overlay__backdrop {
    background: rgba(17, 32, 18, 0.34);
    inset: 0;
    position: absolute;
    backdrop-filter: blur(2px);
}

.mr-panel {
    background: #fbfcfa;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.14);
    height: 100%;
    margin-left: auto;
    overflow: auto;
    padding: 14px;
    position: relative;
    width: min(640px, 92vw);
}

.mr-panel__close {
    background: #fff;
    border: 1px solid var(--mr-border);
    border-radius: 999px;
    color: var(--mr-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 34px;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 3;
}

.mr-panel__close:hover {
    background: var(--mr-surface);
}

.mr-panel__content {
    padding-top: 8px;
}

.mr-profile {
    display: grid;
    gap: 12px;
}

.mr-profile__header {
    align-items: start;
    background: #fff;
    border: 1px solid var(--mr-border);
    border-radius: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) 92px;
    padding: 14px;
}

.mr-profile__eyebrow {
    color: var(--mr-green);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.mr-profile__header h3 {
    color: var(--mr-green);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px;
}

.mr-profile__subline {
    color: var(--mr-muted);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0;
}

.mr-profile__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.mr-profile__chip {
    background: var(--mr-green-soft);
    border: 1px solid #d7e6d0;
    border-radius: 999px;
    color: var(--mr-green-dark);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    padding: 6px 10px;
}

.mr-profile__photo-wrap {
    align-self: start;
    justify-self: end;
}

.mr-panel__photo {
    aspect-ratio: 1 / 1.15;
    border: 1px solid var(--mr-border);
    border-radius: 12px;
    display: block;
    max-width: 92px;
    object-fit: cover;
    width: 100%;
}

.mr-profile__summary-card {
    background: #fff;
    border: 1px solid var(--mr-border);
    border-radius: 14px;
    padding: 10px;
}

.mr-profile__summary-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mr-detail-item,
.mr-detail-block {
    background: #fff;
    border: 1px solid var(--mr-border);
    border-radius: 14px;
}

.mr-detail-item {
    min-height: 68px;
    padding: 10px 11px;
}

.mr-detail-item span,
.mr-detail-block h4 {
    color: var(--mr-green);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
}

.mr-detail-item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.mr-detail-block {
    padding: 14px;
}

.mr-detail-block ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.mr-detail-block li {
    border-top: 1px solid #edf1ea;
    font-size: 0.86rem;
    line-height: 1.55;
    list-style: none;
    margin: 0;
    padding-top: 10px;
}

.mr-detail-block li:first-child {
    border-top: 0;
    padding-top: 0;
}

.mr-detail-block strong {
    color: var(--mr-text);
    font-weight: 700;
}

.mr-detail-block--accordion {
    padding: 0;
}

.mr-detail-block--accordion summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    padding: 14px;
}

.mr-detail-block--accordion summary::-webkit-details-marker {
    display: none;
}

.mr-detail-block--accordion summary span {
    color: var(--mr-green);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.mr-detail-block--accordion summary em {
    color: var(--mr-muted);
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.mr-detail-block--accordion[open] summary {
    border-bottom: 1px solid #edf1ea;
}

.mr-detail-block--accordion ul {
    gap: 8px;
    padding: 12px 14px 14px;
}

.mr-record-card {
    background: var(--mr-surface);
    border: 1px solid #e5ece0;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 10px 12px;
}

.mr-record-card__row {
    display: grid;
    gap: 3px;
}

.mr-record-card__row span {
    color: var(--mr-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
}

.mr-record-card__row strong {
    color: var(--mr-text);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
}

.mr-panel-open {
    overflow: hidden;
}

@media (max-width: 960px) {
    .mr-filters {
        grid-template-columns: 1fr;
    }

    .mr-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .mr-profile__facts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .mr-registry {
        margin: 16px 0 28px;
    }

    .mr-registry__hero {
        padding: 14px;
    }

    .mr-registry h2 {
        font-size: 1.6rem;
    }

    .mr-panel {
        padding: 10px;
        width: 100%;
    }

    .mr-profile__header {
        grid-template-columns: minmax(0, 1fr) 76px;
        padding: 12px;
    }

    .mr-panel__photo {
        max-width: 76px;
    }

    .mr-profile__summary-grid {
        grid-template-columns: 1fr;
    }

    .mr-detail-item {
        min-height: auto;
    }
}
