.radio-header-menu {
    position: relative;
    flex: 0 0 auto;
}

.radio-header-menu > summary {
    list-style: none;
    cursor: pointer;
}

.radio-header-menu > summary::-webkit-details-marker {
    display: none;
}

.radio-header-menu[open] > summary {
    color: var(--primary-contrast, #fff);
    border-color: rgba(129, 140, 248, .52);
    background: rgba(99, 102, 241, .2);
}

.radio-header-popover {
    position: absolute;
    z-index: 250;
    top: calc(100% + 12px);
    right: 0;
    display: block;
    width: min(390px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 105px));
    padding: 18px;
    overflow: auto;
    color: var(--text, #eef2ff);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    background: rgba(7, 15, 30, .98);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .58);
    backdrop-filter: blur(24px);
}

.radio-header-popover > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.radio-header-popover article {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
}

.radio-header-popover article:last-of-type {
    border-bottom: 0;
}

.radio-header-popover time,
.radio-header-popover small {
    color: var(--text-soft, #91a3bd);
    font-size: .78rem;
}

.radio-header-popover article span,
.radio-header-popover form,
.radio-header-popover label {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.radio-header-popover form {
    gap: 12px;
}

.radio-header-popover label > span {
    font-size: .82rem;
    font-weight: 700;
}

.radio-header-popover input,
.radio-header-popover textarea,
.radio-header-popover select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    color: var(--text, #fff);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 11px;
    outline: 0;
    background: rgba(13, 23, 41, .96);
}

.radio-header-popover input:focus,
.radio-header-popover textarea:focus,
.radio-header-popover select:focus {
    border-color: rgba(129, 140, 248, .75);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}

.radio-header-popover textarea {
    min-height: 82px;
    resize: vertical;
}

.radio-header-popover .button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 760px) {
    .radio-header-popover {
        position: fixed;
        top: 78px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 96px);
    }
}

html[data-theme="light"] .radio-header-popover,
body.theme-light .radio-header-popover {
    color: #172033;
    border-color: rgba(51, 65, 85, .16);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 25px 70px rgba(15, 23, 42, .22);
}

html[data-theme="light"] .radio-header-popover input,
html[data-theme="light"] .radio-header-popover textarea,
html[data-theme="light"] .radio-header-popover select,
body.theme-light .radio-header-popover input,
body.theme-light .radio-header-popover textarea,
body.theme-light .radio-header-popover select {
    color: #172033;
    border-color: rgba(51, 65, 85, .2);
    background: #f8fafc;
}
