dialog:modal {
    display: block;
    box-sizing: border-box;
    padding: 1.5em 2em;
    border: .1em solid #323232;
    border-radius: 1em;
    background: var(--dialog-background);
    box-shadow: 3px 3px 10px rgba(0 0 0 / 0.5);
    color: inherit;
    width: 40em;
}
#profile-selector::backdrop {
    background: #3B3B3BFF;
}
dialog h2{
    margin-bottom: 1em;
    padding: 1em 0;
    border-bottom: .1em solid #fff;
}
dialog fieldset{
    margin: 0 0 1em;
    padding: 0;
    border: none;
    border-radius: 0;
    /*border-bottom: .1em solid #696969;*/
}
dialog fieldset>label>img{
    display: block;
    box-sizing: border-box;
    float: left;
    margin: 0 .5em 1em 0;
    width: 4em;
    height: 4em;

    border-radius: 4em;
    border: .1em solid #efefef;
    background: url("../images/user.svg") no-repeat center center;
    background-size: contain;
}
dialog fieldset>label>input[type=file]{
    display: block;
    float: left;
    margin-top: 1.75em;
}
dialog fieldset>label{
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
dialog fieldset>label>span{
    display: block;
    margin: 0 0 1em;
}
dialog>form>section{
    display: none;
}
dialog>form>section>fieldset>label{
    /*color: var(--success);*/
}
dialog>form>section>fieldset>h3{
    margin: 0 0 .5em;
    color: var(--accent)
}
dialog>form>section>fieldset>label{
    margin: 0 0 1em;
}
dialog>form>input[type=radio]{
    display: none;
}
dialog>form>input[type=radio]:nth-of-type(1):checked~section:nth-of-type(1){
    display: block;
}
dialog>form>input[type=radio]:nth-of-type(2):checked~section:nth-of-type(2){
    display: block;
}
dialog>form>section>fieldset>input[type=checkbox]{
    display: block;
    float: right;
    width: 1em;
    height: 1em;
    margin: .15em 0 0;
}
dialog>form>section>fieldset>input[type=checkbox]+label{
    float: right;
    margin: 0 .5em 0 0;
    font-size: .9em;
    user-select: none;
}
dialog>form>section>fieldset>input[type=checkbox]:checked+label{
    color: var(--success);
}
dialog>form>section>fieldset>menu{
    display: block;
    overflow-y: auto;
    list-style: none;
    margin: 0 0 1em;
    padding: .5em .2em;
    width: 100%;
    max-height: 17.25em;
}
dialog>form>section>fieldset>menu:empty:before{
    display: inline;
    content: "\26A0";
    font-size: 1.25em;
    vertical-align: middle;
    margin: 0 .4em 0 0;
    color: var(--error);
}
dialog>form>section>fieldset>menu:empty:after{
    display: inline;
    content: "No profiles found!";
    vertical-align: middle;
}
dialog>form>section>fieldset>menu>li{
    display: block;
}
dialog>form>section>fieldset>menu>li:not(:last-of-type){
    margin: 0 0 1em;
}
dialog>form>section>fieldset>menu>li>button{
    display: block;
    overflow: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 1em 1.5em;
    width: 100%;
    /*height: 6em;*/
    background: #333;
    border: none;
    border-radius: .5em;
    text-align: left;
    line-height: 4em;
    color: inherit;
}
dialog>form>section>fieldset>menu>li>button:hover,
dialog>form>section>fieldset>menu>li>button:active,
dialog>form>section>fieldset>menu>li>button:focus{
    outline: .2em solid #3fe1bb;
}
dialog>form>section>fieldset>menu>li>button:active{
    background: #444;
}
dialog>form>section>fieldset>menu>li>button>picture{
    display: block;
    float: left;
    margin: 0 1em 0 0;
    width: 4em;
    height: 4em;
}
dialog>form>section>fieldset>menu>li>button>picture>img{
    display: block;
    width: 100%;
    height: 100%;
    background: var(--profile-img-url) no-repeat center center;
    background-size: contain;
    border: .1em solid #eee;
    border-radius: 4em;
}
dialog>form>section>fieldset>menu>li>button>span{
    font-size: 1.25em;
}
dialog>form>section>label,
dialog>form>section>button{
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 1em;
    border: 0;
    border-radius: .5em;
    color: inherit;
    font-size: 1em;
    line-height: 1em;
    font-family: inherit;
}
dialog>form>section>label>span,
dialog>form>section>button>span{
    font-size: .9em;
}
dialog>form>section>label+button{
    float: right;
    background: var(--success);
}
dialog>form>section>label:nth-of-type(1){
    float: left;
    background: var(--button);
}
dialog>form>section>label:nth-of-type(2){
    float: right;
    background: var(--success);
}

label.opt>span:nth-of-type(1):after{
    content: " (optional):";
    font-style: italic;
    font-size: .9em;
    font-weight: 300;
    color: var(--accent)
}
















dialog ul{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}
dialog>form>ul>li{
    box-sizing: border-box;
    overflow: auto;
    padding: .5em 0;
    border-bottom: .1em solid #323232;
}
dialog>form>ul>li>input{
    display: block;
    float: left;
    box-sizing: border-box;
    margin: 0;
    padding: .5em;
    font-size: 1em;
    background: none;
    border: none;
    color: inherit;
}
dialog>form>ul>li>input:nth-of-type(2){
    width: 76%;
    margin-right: 1em;
}
dialog>form>ul>li>input:nth-of-type(3){
    width: 20%;
}
dialog>form>ul>li>input:focus {
    background: #fff;
    color: #000;
}
dialog>form>ul>li>button{
    display: block;
    box-sizing: border-box;
    float: left;
    margin: 0;
    padding: 0;
    width: 2.75em;
    height: 2.75em;
    color: #fff;
    border: none;
    border-radius: .5em;
}
dialog>form>ul>li>button>span{
    font-size: 1.5em;
}
dialog>form>ul>li>button:nth-of-type(1){
    background: var(--success);
    margin-right: 1em;
}
dialog>form>ul>li>button:nth-of-type(2){
    background: var(--error);
}


/*dialog>form>input[type=radio]{*/
/*    display: none;*/
/*}*/

/*dialog>form>input[type=radio]~section{*/
/*    display: none;*/
/*}*/
/*dialog>form>input[type=radio]:nth-of-type(1):checked~section:nth-of-type(1){*/
/*    display: block;*/
/*}*/
/*dialog>form>input[type=radio]:nth-of-type(1):not(:checked)~section:nth-of-type(1){*/
/*    display: none;*/
/*}*/
/*dialog>form>input[type=radio]:nth-of-type(2):checked~section:nth-of-type(2){*/
/*    display: block;*/
/*}*/
