body {
    background: #f6f1ea;
    color: #2f2722;
    font-family: Georgia, "Times New Roman", serif;
}

.mrh-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(181, 123, 71, 0.14), transparent 28%),
        linear-gradient(180deg, #fbf8f3 0%, #f4eee6 100%);
}

.mrh-eyebrow {
    color: #9a5d2f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mrh-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.mrh-header-aside {
    display: flex;
    align-items: center;
    min-height: 3rem;
}

.mrh-inline-message {
    margin: 0;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(62, 130, 87, 0.18);
    background: rgba(226, 245, 233, 0.92);
    color: #2f6b43;
    font-size: 0.92rem;
    font-weight: 700;
}

.mrh-card,
.mrh-photo-card,
.mrh-admin-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(104, 74, 47, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(74, 48, 25, 0.08);
}

.mrh-card {
    overflow: hidden;
    height: 100%;
}

.mrh-card-image {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    display: block;
    background: #e6ddd2;
}

.mrh-card-body {
    padding: 1.25rem;
}

.mrh-meta {
    color: #7b6d62;
    font-size: 0.92rem;
}

.mrh-category-grid,
.mrh-gallery-grid,
.mrh-photo-grid {
    display: grid;
    gap: 1.5rem;
}

.mrh-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mrh-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mrh-photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.mrh-category-tile {
    padding: 1.5rem;
    min-height: 220px;
    background: linear-gradient(140deg, rgba(157, 96, 45, 0.95), rgba(84, 53, 34, 0.95));
    color: #fff7f0;
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(72, 44, 21, 0.18);
}

.mrh-category-tile h2 {
    font-size: 1.7rem;
}

.mrh-category-tile a,
.mrh-category-tile a:hover {
    color: inherit;
    text-decoration: none;
}

.mrh-empty {
    padding: 2rem;
    text-align: center;
    color: #7a695b;
}

.mrh-gallery-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.mrh-gallery-hero img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    background: #eadfce;
}

.mrh-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    background: #eadfce;
}

.mrh-photo-card .body {
    padding: 1rem;
}

.mrh-admin-toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mrh-table td,
.mrh-table th {
    vertical-align: middle;
}

.mrh-help {
    color: #776456;
    font-size: 0.92rem;
}

.mrh-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    background: #eadfce;
}

.mrh-form-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mrh-upload-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mrh-upload-switch-buttons {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(154, 93, 47, 0.12);
}

.mrh-upload-switch-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    background: transparent;
    color: #6f563f;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mrh-upload-switch-btn.active {
    background: #ffffff;
    color: #8a5128;
    box-shadow: 0 8px 20px rgba(97, 60, 31, 0.12);
}

.mrh-upload-switch-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(154, 93, 47, 0.18);
}

.mrh-upload-panel + .mrh-upload-panel {
    margin-top: 0;
}

.mrh-upload-summary {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(104, 74, 47, 0.12);
    background: rgba(255, 255, 255, 0.82);
}

.mrh-upload-summary.is-success {
    border-color: rgba(56, 142, 96, 0.22);
    background: rgba(236, 248, 241, 0.92);
}

.mrh-upload-summary.is-failure {
    border-color: rgba(190, 72, 72, 0.22);
    background: rgba(252, 240, 240, 0.94);
}

.mrh-upload-summary-text {
    font-weight: 700;
    color: #5f4a39;
}

.mrh-upload-summary-list {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
    color: #6f563f;
}

.mrh-upload-summary-list li + li {
    margin-top: 0.3rem;
}

.mrh-uploader-shell {
    border: 2px dashed rgba(154, 93, 47, 0.35);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.9), rgba(249, 242, 233, 0.92));
    padding: 1.25rem;
}

.mrh-uploader-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.2fr 0.8fr;
}

.mrh-uploader-dropzone {
    border: 2px dashed rgba(154, 93, 47, 0.45);
    border-radius: 18px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mrh-uploader-dropzone.is-dragover {
    border-color: #9a5d2f;
    box-shadow: 0 16px 36px rgba(97, 60, 31, 0.14);
    transform: translateY(-1px);
}

.mrh-uploader-browse {
    color: #9a5d2f;
    font-weight: 700;
    cursor: pointer;
}

.mrh-uploader-list {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    max-height: 420px;
    overflow: auto;
    padding-right: 0.25rem;
}

.mrh-uploader-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(104, 74, 47, 0.12);
    border-radius: 16px;
}

.mrh-uploader-actions-inline {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
}

.mrh-uploader-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    object-position: top center;
    background: #eadfce;
}

.mrh-uploader-name {
    font-weight: 700;
    font-size: 0.96rem;
    word-break: break-word;
}

.mrh-uploader-status {
    font-size: 0.88rem;
    color: #776456;
}

.mrh-uploader-progress {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(120, 102, 85, 0.18);
    margin-top: 0.45rem;
}

.mrh-uploader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b86b35, #8b4c25);
    transition: width 0.2s ease;
}

.mrh-uploader-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.mrh-uploader-empty {
    padding: 1rem;
    color: #776456;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.mrh-uploader-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(154, 93, 47, 0.12);
    color: #8a5128;
}

@media (max-width: 991px) {
    .mrh-upload-switch {
        align-items: stretch;
    }

    .mrh-upload-switch-buttons {
        width: 100%;
    }

    .mrh-upload-switch-btn {
        flex: 1 1 0;
    }

    .mrh-uploader-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .mrh-gallery-hero {
        grid-template-columns: 1fr;
    }
}
