:root {
    --fmrr-sidebar: #020910;
    --fmrr-page: #fbfaf8;
    --fmrr-card: #fffefa;
    --fmrr-text: #0c0d10;
    --fmrr-muted: #172540;
    --fmrr-purple: #5b2ec7;
    --fmrr-purple-light: #efe9fb;
    --fmrr-blue: #1f73d8;
    --fmrr-blue-light: #e7f0fb;
    --fmrr-green: #45a426;
    --fmrr-green-light: #eaf6df;
    --fmrr-gold: #d89b00;
    --fmrr-gold-light: #fbf1d8;
    --fmrr-teal: #15958e;
    --fmrr-teal-light: #dff4f2;
    --fmrr-border: #8f8f8f;
}

.fmrr-shell,
.fmrr-shell * {
    box-sizing: border-box;
}

.fmrr-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.fmrr-records-room-page {
    margin: 0;
    overflow-x: hidden;
}

body.fmrr-records-room-page .site-header,
body.fmrr-records-room-page .site-footer,
body.fmrr-records-room-page .site-branding,
body.fmrr-records-room-page .main-navigation,
body.fmrr-records-room-page .primary-navigation,
body.fmrr-records-room-page .wp-block-template-part,
body.fmrr-records-room-page .wp-block-navigation,
body.fmrr-records-room-page .entry-header,
body.fmrr-records-room-page .page-header,
body.fmrr-records-room-page .entry-title,
body.fmrr-records-room-page .post-title,
body.fmrr-records-room-page .page-title,
body.fmrr-records-room-page .wp-block-post-title {
    display: none !important;
}

body.fmrr-records-room-page #page,
body.fmrr-records-room-page #content,
body.fmrr-records-room-page #primary,
body.fmrr-records-room-page #main,
body.fmrr-records-room-page .site,
body.fmrr-records-room-page .site-content,
body.fmrr-records-room-page .content-area,
body.fmrr-records-room-page .site-main,
body.fmrr-records-room-page .entry-content,
body.fmrr-records-room-page .wp-site-blocks,
body.fmrr-records-room-page .wp-block-group,
body.fmrr-records-room-page .wp-block-post-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.fmrr-records-room-page .entry-content > *,
body.fmrr-records-room-page .wp-block-post-content > * {
    max-width: none !important;
}

.fmrr-fullscreen-page {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--fmrr-page);
}

.fmrr-shell {
    min-height: 100vh;
    min-width: 1040px;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: grid;
    grid-template-columns: 356px minmax(0, 1fr);
    background: var(--fmrr-page);
    color: var(--fmrr-text);
    font-family: Arial, Helvetica, sans-serif;
}

.fmrr-sidebar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 18px 60px;
    background: radial-gradient(circle at 50% 0%, #101820 0%, var(--fmrr-sidebar) 55%);
    color: #fff;
}

.fmrr-logo {
    margin: 0 auto 44px;
    text-align: center;
    max-width: 306px;
}

.fmrr-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.fmrr-nav {
    display: grid;
    gap: 32px;
}

.fmrr-nav-item {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 74px;
    padding: 0 20px;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 26px;
    font-weight: 700;
}

.fmrr-nav-item.is-active {
    background: linear-gradient(135deg, #6d43dc 0%, #4e20b7 100%);
}

.fmrr-site-exit-wrap {
    margin-top: auto;
}

.fmrr-help-card[hidden] {
    display: none !important;
}

.fmrr-site-exit {
    width: 100%;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 9px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.fmrr-site-exit .fmrr-icon {
    width: 32px;
    height: 32px;
}

.fmrr-icon {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.fmrr-page {
    padding: 52px 38px 70px 48px;
}

.fmrr-header {
    display: grid;
    grid-template-columns: 1fr 338px;
    gap: 36px;
    align-items: start;
    margin-bottom: 58px;
}

.fmrr-header h1 {
    margin: 26px 0 0;
    color: #000;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 650;
}

.fmrr-logout {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 0 28px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    color: #3f14b6;
    text-decoration: none;
    font-size: 25px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.fmrr-logout .fmrr-icon {
    width: 30px;
    height: 30px;
}

.fmrr-main {
    max-width: 1064px;
}

.fmrr-dashboard h2 {
    margin: 0 0 18px;
    color: #050505;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
}

.fmrr-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
}

.fmrr-card {
    min-height: 274px;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 30px 24px 30px 18px;
    border: 3px solid var(--fmrr-border);
    border-radius: 13px;
    background: var(--fmrr-card);
    color: var(--fmrr-muted);
    text-decoration: none;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .12);
}

.fmrr-card-icon {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.fmrr-card-icon .fmrr-icon {
    width: 64px;
    height: 64px;
}

.fmrr-card-copy {
    display: grid;
    gap: 12px;
}

.fmrr-card-copy strong {
    color: #050505;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 650;
}

.fmrr-card-copy span {
    font-size: 20px;
    line-height: 1.45;
}

.fmrr-card-purple .fmrr-card-icon {
    background: var(--fmrr-purple-light);
    color: var(--fmrr-purple);
}

.fmrr-card-blue .fmrr-card-icon {
    background: var(--fmrr-blue-light);
    color: var(--fmrr-blue);
}

.fmrr-card-green .fmrr-card-icon {
    background: var(--fmrr-green-light);
    color: var(--fmrr-green);
}

.fmrr-card-gold .fmrr-card-icon {
    background: var(--fmrr-gold-light);
    color: var(--fmrr-gold);
}

.fmrr-card-teal .fmrr-card-icon {
    background: var(--fmrr-teal-light);
    color: var(--fmrr-teal);
}

.fmrr-search-page {
    display: grid;
    gap: 20px;
}

.fmrr-search-panel,
.fmrr-results-area {
    border: 3px solid var(--fmrr-border);
    border-radius: 13px;
    background: var(--fmrr-card);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .12);
}

.fmrr-search-panel {
    min-height: 274px;
    display: grid;
    align-content: center;
    gap: 22px;
    padding: 30px 24px 30px 18px;
}

.fmrr-search-intro {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.fmrr-search-icon,
.fmrr-results-icon {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--fmrr-purple-light);
    color: var(--fmrr-purple);
}

.fmrr-search-icon .fmrr-icon,
.fmrr-results-icon .fmrr-icon {
    width: 64px;
    height: 64px;
}

.fmrr-search-intro h2 {
    margin: 0 0 12px;
    color: #050505;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 650;
}

.fmrr-search-intro p,
.fmrr-results-area p {
    margin: 0;
    color: var(--fmrr-muted);
    font-size: 20px;
    line-height: 1.45;
}

.fmrr-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 188px;
    gap: 16px;
    align-items: center;
}

.fmrr-search-box {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    border: 3px solid var(--fmrr-purple);
    border-radius: 10px;
    background: #fff;
    color: var(--fmrr-muted);
    font-size: 20px;
    font-weight: 650;
    box-shadow: 0 0 0 5px var(--fmrr-purple-light), 0 10px 18px rgba(0, 0, 0, .08);
}

.fmrr-search-box .fmrr-icon {
    width: 38px;
    height: 38px;
    color: var(--fmrr-purple);
}

.fmrr-search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--fmrr-muted);
    font: inherit;
    outline: 0;
}

.fmrr-search-box input::placeholder {
    color: var(--fmrr-muted);
    opacity: 1;
}

.fmrr-search-button {
    min-height: 74px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #6d43dc 0%, #4e20b7 100%);
    color: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .12);
}

.fmrr-search-button:disabled {
    opacity: 1;
}

.fmrr-search-body {
    display: block;
}

.fmrr-results-area {
    min-height: 274px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 34px 42px;
    text-align: center;
}

.fmrr-message {
    display: grid;
    place-items: center;
    gap: 14px;
}

.fmrr-message-error {
    width: 100%;
    margin-bottom: 18px;
    padding: 18px;
    border: 3px solid #b42318;
    border-radius: 10px;
    background: #fff1f0;
}

.fmrr-result-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.fmrr-result-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 3px solid var(--fmrr-border);
    border-radius: 13px;
    background: var(--fmrr-card);
    color: #050505;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .1);
}

.fmrr-result-card:hover,
.fmrr-result-card:focus-visible {
    border-color: var(--fmrr-purple);
    outline: 4px solid var(--fmrr-purple-light);
    outline-offset: 2px;
}

.fmrr-result-preview {
    aspect-ratio: 8.5 / 11;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f2effb;
    color: var(--fmrr-purple);
}

.fmrr-result-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fmrr-result-preview .fmrr-icon {
    width: 72px;
    height: 72px;
}

.fmrr-results-area strong {
    color: #050505;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 650;
}

.fmrr-upload-page {
    min-width: 0;
    display: grid;
    gap: 22px;
}

.fmrr-upload-notice {
    max-width: 780px;
    margin: 0;
    color: var(--fmrr-muted);
    font-size: 18px;
    line-height: 1.5;
}

.fmrr-authoritative-upload {
    min-width: 0;
    display: grid;
    gap: 16px;
    color: var(--fmrr-muted);
}

.fmrr-authoritative-upload h2 {
    margin: 0;
    color: #050505;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.fmrr-authoritative-upload p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.fmrr-authoritative-upload form {
    min-width: 0;
    display: grid;
    gap: 16px;
    align-items: start;
    margin: 0;
}

.fmrr-authoritative-upload form br {
    display: none;
}

.fmrr-authoritative-upload input[type="file"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 9px;
    border: 2px solid var(--fmrr-purple);
    border-radius: 8px;
    background: #fff;
    color: var(--fmrr-muted);
    font-size: 14px;
}

.fmrr-authoritative-upload input[type="submit"],
.fmrr-authoritative-upload button[type="submit"] {
    width: 220px;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6d43dc 0%, #4e20b7 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .fmrr-shell {
        min-width: 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .fmrr-sidebar {
        padding: 20px 12px 26px;
    }

    .fmrr-logo {
        max-width: 174px;
        margin-bottom: 28px;
    }

    .fmrr-nav {
        gap: 14px;
    }

    .fmrr-nav-item {
        min-height: 58px;
        gap: 10px;
        padding: 8px 10px;
        font-size: 15px;
        white-space: nowrap;
    }

    .fmrr-nav-item .fmrr-icon {
        width: 26px;
        height: 26px;
    }

    .fmrr-site-exit-wrap {
        margin-top: auto;
    }

    .fmrr-site-exit {
        min-height: 58px;
        gap: 10px;
        padding: 0 10px;
        font-size: 15px;
    }

    .fmrr-site-exit .fmrr-icon {
        width: 26px;
        height: 26px;
    }

    .fmrr-page {
        min-width: 0;
        padding: 28px 24px 40px;
    }

    .fmrr-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fmrr-header {
        grid-template-columns: 1fr;
    }

    .fmrr-logout {
        justify-self: start;
        width: 338px;
    }

}

@media (max-width: 620px) {
    .fmrr-shell {
        display: block;
    }

    .fmrr-sidebar {
        min-height: 0;
        padding: 15px 14px;
    }

    .fmrr-logo {
        max-width: 168px;
        margin: 0 auto 14px;
    }

    .fmrr-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .fmrr-nav-item {
        min-width: 0;
        min-height: 48px;
        justify-content: center;
        gap: 5px;
        padding: 7px 4px;
        font-size: 11px;
        text-align: center;
    }

    .fmrr-nav-item .fmrr-icon {
        width: 18px;
        height: 18px;
    }

    .fmrr-site-exit-wrap {
        margin-top: 14px;
    }

    .fmrr-site-exit {
        min-height: 48px;
        justify-content: center;
        gap: 8px;
        padding: 0 10px;
        font-size: 15px;
    }

    .fmrr-site-exit .fmrr-icon {
        width: 22px;
        height: 22px;
    }

    .fmrr-page {
        padding: 22px 16px 34px;
    }

    .fmrr-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: start;
        margin-bottom: 22px;
    }

    .fmrr-header h1 {
        margin: 0;
        font-size: 29px;
    }

    .fmrr-logout {
        width: auto;
        min-height: 44px;
        justify-content: center;
        padding: 8px 10px;
        font-size: 13px;
    }

    .fmrr-logout .fmrr-icon {
        display: none;
    }

    .fmrr-main {
        max-width: none;
    }

    .fmrr-card-grid,
    .fmrr-search-controls,
    .fmrr-search-intro {
        grid-template-columns: 1fr;
    }

    .fmrr-upload-notice {
        font-size: 16px;
    }

    .fmrr-search-panel,
    .fmrr-results-area {
        padding: 24px 18px;
    }

    .fmrr-search-icon,
    .fmrr-results-icon {
        width: 84px;
        height: 84px;
    }

    .fmrr-search-controls {
        gap: 12px;
    }

    .fmrr-search-button {
        width: 100%;
    }

    .fmrr-authoritative-upload input[type="submit"],
    .fmrr-authoritative-upload button[type="submit"] {
        width: 100%;
    }
}
