header.omm-site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    box-sizing: border-box;
    width: calc(100% - max(8vw, 32px));
    max-width: 1500px;
    min-height: 0;
    gap: 8px;
    margin: 14px auto 16px;
    padding: 0;
    border: 0;
}

header.omm-site-header > .omm-brand {
    display: grid;
    grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
    align-items: center;
    min-width: 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #131f17;
}

.omm-site-header .omm-brand-word {
    min-width: 0;
    padding: 18px clamp(13px, 2.5vw, 32px);
}

.omm-site-header .omm-brand-scene {
    min-width: 0;
}

.omm-site-header .omm-brand img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.omm-site-header .omm-brand-word img {
    width: min(100%, 410px);
}

.omm-site-header .omm-brand img[data-brand-theme="light"],
html[data-theme="light"] .omm-site-header .omm-brand img[data-brand-theme="dark"] {
    display: none;
}

html[data-theme="light"] .omm-site-header .omm-brand img[data-brand-theme="light"] {
    display: block;
}

html[data-theme="light"] .omm-site-header > .omm-brand {
    background: #fcf5e8;
}

@media (prefers-color-scheme: light) {
    html:not([data-theme]) .omm-site-header > .omm-brand {
        background: #fcf5e8;
    }

    html:not([data-theme]) .omm-site-header .omm-brand img[data-brand-theme="dark"] {
        display: none;
    }

    html:not([data-theme]) .omm-site-header .omm-brand img[data-brand-theme="light"] {
        display: block;
    }
}

header.omm-site-header > #globalSearch,
header.omm-site-header > #theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    header.omm-site-header {
        margin-top: 6px;
    }

    header.omm-site-header > .omm-brand {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: minmax(0, 1fr);
    }

    header.omm-site-header > #globalSearch {
        grid-row: 1;
        grid-column: 2;
    }

    header.omm-site-header > #theme {
        grid-row: 1;
        grid-column: 3;
    }

    .omm-site-header .omm-brand-word {
        padding: 12px 14px;
    }

    .omm-site-header .omm-brand-word img {
        width: min(100%, 224px);
    }
}
