#adminbar {
    direction: ltr;
    font-size: 1rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 32px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1001;
    background: #23282d;
    color: var(--text-color-bright);

    div.dev-site {
        position: absolute;
        top:0;
        right: 4.5rem;
        line-height: 1rem;
        font-size: .67rem;
        background-color: yellow;
        border-radius: .3rem;
    }

    div.dev-site::after {
        border-radius: .3rem;
        background-color: yellow;
        position: absolute;
        content: '🛠️';
    }

    .account {
        display: grid;
        justify-items: end;
        justify-content: end;
        gap: 0;

        img {
            display: block;
            width: 46px;
            height: 42px;
            border-radius: .25rem;
        }

        .display-name {
            font-size: .8rem;
            line-height: 1rem;
        }

        .menu-header {
            display: grid;
            grid-template-columns: 1fr 3fr;

            img {
                width: calc(46px - .3rem);
                height: calc(42px - .3rem);
                margin-block-start: .3rem;
                margin-inline: .3rem;
            }

            .display-name {
                background-color: rgb(15% 35% 45% / 1);
                border-radius: .5rem;
                margin: .25rem .25rem 0 0;
                padding: .2rem;
            }

            .dummy-close {
                position: absolute;
                display: block;
                top: 0;
                right: 0;

                i, svg {
                    height: 2rem;
                    opacity: 0.4;
                }
            }
        }

        #folding-user-menu.active {
            display: block;
        }

        #folding-user-menu {
            display: none;
            position: absolute;
            top: -.2rem;
            right: .65rem;
            border: 3px solid rgb(15% 35% 45% / 1);
            border-radius: 0.5rem;
            background-color: var(--section-title-darker-background-color);

            ul {
                display: grid;
                grid-auto-columns: 1fr;
                gap: .1rem;
                width: 12rem;
                margin: .25rem;

                li {
                    align-content: stretch;
                    box-shadow: unset;
                    box-sizing: border-box;
                    display: grid;
                    grid-template-columns: 1fr;
                    height: 3.5rem;
                    position: relative;
                    width: calc(100% - .2rem);

                    a {
                        align-content: stretch;
                        color: unset;
                        height: 100%;
                        display: grid;
                        justify-items: stretch;

                        button {
                            position: relative;
                            display: grid;
                            justify-content: start;
                            max-width: unset;
                            padding-inline-end: 2rem;
                            text-align: left;
                            font-size: 1.1rem;
                            line-height: 1.5rem;

                            i, svg {
                                position: absolute;
                                right: .5rem;
                                width: 2ch;
                                height: 100%;
                            }
                        }
                    }

                }

                hr {
                    width: calc(100% - .4rem);
                    border: 3px solid rgb(15% 35% 45% / 1);
                    border-radius: .25rem;
                    margin: .2rem 0;
                }
            }
        }
    }
}

#adminbar a,
#adminbar a img,
#adminbar a img:hover,
#adminbar a:hover {
    border: none;
    text-decoration: none;
    background: 0 0
}

#adminbar ul,
#adminbar ul li {
    background: 0 0;
    clear: none;
    list-style: none;
    margin: .1rem .1rem;
    padding: 0;
    display: flex;
    position: relative;
    z-index: 99;
}

#adminbar ul {
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    flex-direction: row;
    margin-right: .5rem;
}

#adminbar ul li {
    border-radius: .25rem;
    border-left: var(--border-color-bright-white);
    border-right: var(--border-color-bright-white);
    box-shadow: rgb(50% 90% 90% / .5) 0 0 5px;
    flex-direction: column;
    flex-wrap: wrap;
    flex-grow: 0;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    width: 46px;
    height: 51px;
}

#adminbar li>button {
    color: var(--icon-color);
    background-color: inherit;
    border: none;
}

#adminbar li.active {
    background-color: var(--button-background-color);
}

#adminbar ul li.ab-flex-spacer {
    flex-grow: 1;
    border: none;
    box-shadow: none;
}

#adminbar .ab-item {
    line-height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 0;
    color: var(--text-color-bright);
    text-overflow: clip;
}

/* client logo image */
#adminbar .ab-item>img.client-logo-tiny {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
}

#adminbar .ab-item>span {
    display: block;
    line-height: .67rem;
    font-size: .67rem;
}

#adminbar .ab-item.fas:before {
  font-family: system-ui, "Font Awesome 5 Free";
  font-weight:900;
}

#adminbar svg.svg-inline--fa {
    height: 40px;
    max-width: 30px;
}

#adminbar span.light-mode,
#adminbar span.dark-mode {
    height: 40px;
}

html[data-theme="light"] #adminbar span.dark-mode {
    display: none;
}
html[data-theme="dark"] #adminbar span.light-mode {
    display: none;
}

/* https://developer.wordpress.org/resource/dashicons/ */
@media screen and (max-width:400px) {
/*    #adminbar .ab-item>span:not(.persistent) {
        display: none;
    }
*/}

@media screen and (min-width:768px) {
    #adminbar * {
        font-size: 1.25rem;
    }
}

#dark-mode-help {
    position: absolute;
    justify-content: center;
    align-items: center;
    top: 65px;
    left: 40px;
    width: fit-content;
    height: 2rem;
    z-index: 1000;
    border: 3px solid yellow;
    border-radius: 1rem;
    font-size: 1rem;
    line-height: 1rem;
    padding: 0 .5rem;
    color: var(--help-box-color);
    background-color: var(--help-box-background-color);
    filter: drop-shadow(2px 4px 6px black);
    white-space: nowrap;
    transform-origin: left;
    transform: scale(1, 1);
    display: none;
}

#dark-mode-help.show {
    display: flex;
}

#dark-mode-help[hidden] {
    animation: slide-closed 1s normal forwards;
}

@keyframes slide-closed {
    from {
        transform: scale(1, 1);
    }
    to {
        transform: scale(0, 1);
    }
}

#dark-mode-help-arrow {
    transform: rotate(235deg);
    display: block;
    font-size: 3rem;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 1rem;
    color: yellow;
}

#dark-mode-help * {
  display: inline-block;
}

#dark-mode-help-close {
    height: 1.75rem;
    width: 2.5rem;
    text-align: right;
    line-height: 1.75rem;
    font-size: 1.75rem;
    font-weight: bold;
    border: none;
    color: yellow;
}
