.omni-public-brand.omni-exchangex-brand,
.omni-cabinet-brand.omni-exchangex-brand {
    --exchangex-brand-width: 56px;
    --exchangex-brand-height: var(--omni-ui-control-height, 44px);
    position: relative;
    inline-size: var(--exchangex-brand-width);
    block-size: var(--exchangex-brand-height);
}

.omni-exchangex-brand .omni-exchangex-brand__mark {
    inline-size: var(--exchangex-brand-width);
    block-size: var(--exchangex-brand-height);
    object-fit: cover;
}

:is(.omni-exchangex-brand, .omni-magnatus-brand) .omni-exchangex-brand__light,
:root[data-omni-theme="light"] :is(.omni-exchangex-brand, .omni-magnatus-brand) .omni-exchangex-brand__dark {
    display: none;
}

:root[data-omni-theme="light"] :is(.omni-exchangex-brand, .omni-magnatus-brand) .omni-exchangex-brand__light {
    display: block;
}

.omni-exchangex-brand__preview {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    z-index: 20;
    inline-size: min(304px, calc(100vw - 48px));
    overflow: hidden;
    border: 1px solid var(--omni-ui-line);
    border-radius: 12px;
    background: var(--omni-ui-surface);
    box-shadow: 0 10px 30px rgb(0 0 0 / 20%);
}

.omni-exchangex-brand__preview img {
    inline-size: 100%;
    block-size: auto;
    border-radius: 0;
}

:is(.omni-exchangex-brand, .omni-magnatus-brand):not([data-preview-dismissed]):focus-visible .omni-exchangex-brand__preview {
    display: block;
}

@media (hover: hover) {
    :is(.omni-exchangex-brand, .omni-magnatus-brand):not([data-preview-dismissed]):hover .omni-exchangex-brand__preview {
        display: block;
    }
}

.omni-public-brand.omni-magnatus-wordmark,
.omni-cabinet-brand.omni-magnatus-wordmark {
    inline-size: auto;
    font-weight: 700;
    color: inherit;
}

.omni-public-brand:is(.omni-magnatus-wordmark, .omni-magnatus-home),
.omni-cabinet-brand.omni-magnatus-home {
    box-sizing: border-box;
    padding-inline: 11px;
    border: 1px solid transparent;
    border-radius: var(--omni-ui-control-radius);
    color: var(--omni-ui-muted);
}

.omni-public-brand:is(.omni-magnatus-wordmark, .omni-magnatus-home):is([aria-current="page"], :hover, :focus-visible),
.omni-cabinet-brand.omni-magnatus-home:is(:hover, :focus-visible) {
    background: var(--omni-ui-selected);
    color: var(--omni-ui-accent);
}

.omni-public-brand.omni-magnatus-home {
    min-inline-size: 44px;
    min-block-size: 44px;
}

.omni-magnatus-home .omni-public-nav-icon {
    margin-inline-end: 0;
}

.omni-public-brand .omni-magnatus-wordmark__text {
    color: inherit;
    font: 600 13px/1.3 var(--public-font);
    white-space: nowrap;
}

.omni-magnatus-wordmark__initial {
    display: inline-block;
    block-size: 10px;
    aspect-ratio: 38 / 26;
    margin-inline-end: 0.25px;
    vertical-align: baseline;
    background-color: currentColor;
    mask: url("/assets/img/magnatus/wordmark-initial-mask.png") center / contain no-repeat;
}


.omni-magnatus-brand {
    position: relative;
}

.omni-magnatus-brand--footer .omni-exchangex-brand__preview {
    inset-block-start: auto;
    inset-block-end: 100%;
}

@media (max-width: 767px) {
    .omni-magnatus-brand .omni-exchangex-brand__preview {
        inline-size: min(304px, calc(100vw - 48px), 42svh);
    }

    .omni-public-brand.omni-exchangex-brand,
    .omni-cabinet-brand.omni-exchangex-brand {
        --exchangex-brand-width: 48px;
    }
}

.exchangex-sidebar-reserves {
    margin: 0;
}

.exchangex-sidebar-reserves > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.exchangex-sidebar-reserves dt {
    font-weight: 400;
    overflow-wrap: anywhere;
}

.exchangex-sidebar-reserves dd {
    margin: 0;
    text-align: end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
