body {
    background: #24273a;
    color: #cad3f5;
    font-family: 'Verdana';
    margin: 0 30%;
}

h1 {
    text-align: center;
}

ul {
    list-style-type: none;
    padding-left: 1em;
}

.select-all {
    display: inline-block;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]+label::before {
    display: inline-block;
    width: .8em;
    height: .8em;
    border: 2px solid #cad3f5;
    border-radius: 4px;
    vertical-align: text-bottom;
    margin-right: .5em;
    transition: all .2s;
    content: "";
}

input[type="checkbox"]:checked+label::before {
    background: #a6da95;
    border: 2px solid #82ab75;
}

input[type="checkbox"]:indeterminate+label::before,
input[type="checkbox"][indeterminate]+label::before {
    border: 2px solid #82ab75;
    background: radial-gradient(circle at center, #a6da95 0, #a6da95 20%, transparent 30%);
}

label.file-input {
    display: flex;
    border: 1px solid #b7bdf8;
    padding: 1rem;
    margin: auto;
    border-radius: 8px;
    max-width: max-content;
    transition: all .2s;
}

label.file-input:hover {
    cursor: pointer;
    background: #363a4f;
}

label.file-input.loaded {
    color: #a6da95;
    border: 1px solid #a6da95;
}

label.file-input.error {
    color: #ed8796;
    border: 1px solid #ed8796;
}

label.file-input input {
    display: none;
}

li,
details {
    margin: .5rem 0;
}

details {
    position: relative;
}

summary,
label {
    user-select: none;
}

summary:hover {
    cursor: default;
}

summary::marker {
    content: '';
    display: none;
}

summary:after {
    content: "\25BC";
    scale: .6;
    margin-left: .5rem;
    display: inline-block;
    transform: rotate(-90deg);
    transition: transform .2s;
}

summary>label {
    font-size: 1rem;
}

details[open]>summary:after {
    transform: rotate(0deg);
}

details.root {
    background: #181926;
    margin: 1rem 0;
    padding: .5rem;
    border-radius: 8px;
    border: 1px solid #181926;
}

details.root>summary {
    font-size: 1.1rem;
}

details.root>ul {
    padding-left: 0;
}

details:not(.root)>ul {
    border-left: 2px solid #363a4f;
    margin-left: .5rem;
    margin-top: .2rem;
}

p.valid {
    color: red;
}

label.unknown {
    color: #939ab7;
}

.tips {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tips label {
    display: inline-block;
}

li>label:hover,
summary label:hover,
.actions>label:hover {
    cursor: pointer;
}

hr {
    color: #a6da95;
    margin: 2rem;
}

section.export .actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

button {
    font-size: 1rem;
    font-family: 'Verdana';
    display: flex;
    background: none;
    color: #cad3f5;
    border: 1px solid #b7bdf8;
    padding: .5rem 1rem;
    border-radius: 8px;
    max-width: max-content;
    transition: all .2s;
}

button:disabled {
    color: #979eb8;
    border: 1px solid #979eb8;
}

button:not(:disabled):hover {
    cursor: pointer;
    background: #363a4f;
}

textarea {
    resize: none;
    display: block;
    width: 100%;
    background: #181926;
    /* border: 1px solid #6e738d; */
    border: none;
    border-radius: 8px;
    min-height: 1vh;
    color: #cad3f5;
    margin: 1rem 0;
    padding: .3rem;
    box-sizing: border-box;
}

.hidden,
section.hidden {
    display: none;
}

.github {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.github>span {
    display: flex;
}

.card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #363a4f;
    border-radius: 8px;
    padding: 0 1rem;
    margin: 1rem 0;
}

.card.warning {
    border: 2px solid #f5a97f;
}

.card.warning b {
    color: #f5a97f;
}

.card>span {
    min-width: 22px;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

ul:not(.channels)>li {
    padding: .2rem;
    margin: 0;
    border-radius: 8px;
    transition: all .2s;
}

details li {
    display: flex;
    gap: 1rem;
    align-items: center;
}

ul:not(.channels)>li:hover span.actions {
    opacity: 1;
}

span.actions {
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .2s;
    border-radius: 8px;
    padding: .1rem;
}

span.actions:hover {
    background: #363a4f;
    cursor: pointer;
}

span.actions>span {
    max-width: 0;
    overflow: hidden;
    transition: all .5s .2s;
}

span.actions:hover>span {
    max-width: 20rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

svg {
    pointer-events: none;
}

dialog {
    position: fixed;
    transition: all .2s;
}

dialog.messages-popup {
    background: #24273a;
    color: #cad3f5;
    border: 1px solid #363a57;
    border-radius: 8px;
    padding-bottom: 0;
    word-wrap: break-word;

    /*  To Change Later    */
    width: 60vw;
    max-width: 60vw;
}

dialog.messages-popup::backdrop {
    background: #181926;
    opacity: .8;
}

dialog.messages-popup h3 {
    margin-top: 0;
    margin-right: 3rem;
}

dialog.messages-popup ul {
    padding: 0;
    line-height: 1.5;
    max-height: 50vh;
    overflow-y: scroll;
    background: #181926;
    border-radius: 8px;
}

dialog.messages-popup .close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    border: none;
}

dialog.messages-popup .close:hover {
    color: #ed8796;
}


dialog.messages-popup>p {
    color: #939ab7;
    text-align: center;
}

dialog:focus-visible {
    outline: none;
}

dialog.messages-popup li a {
    margin-left: .5rem;
}

dialog.messages-popup li .date+a,
dialog.messages-popup br+a {
    margin-left: 0;
}

dialog.messages-popup br {
    display: none;
}

a {
    color: #a6da95;
    transition: color .2s;
    text-decoration: none;
}

a:hover {
    color: #719865;
}

a:visited {
    color: #a6da95;
}

span.date {
    /*     font-style: italic; */
    color: #939ab7;
    font-size: .8rem;
    font-family: monospace;
    letter-spacing: -0.1em;
    margin-right: .5rem;
}

.error {
    color: #ed8796 !important;
}

.mobile {
    display: none;
}

progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    accent-color: #a6da95;
    background-color: #181926;
    border: none;
    border-radius: 8px;
}

progress::-moz-progress-bar {
    background-color: #a6da95 !important;
    border-radius: 8px !important;
}

progress::-webkit-progress-value {
    background-color: #a6da95 !important;
    border-radius: 8px !important;
}

progress::-webkit-progress-bar {
    background-color: #181926;
    border-radius: 8px;
}

.export-report {
    text-align: center;
}

b {
    color: #a6da95;
}

.root .search {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    height: 1.8rem;
    translate: -.2rem .3rem;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: end;
    transition: opacity .2s;
}

details[open] .search {
    opacity: 1;
    pointer-events: all;
}

.search input[type="text"] {
    position: absolute;
    background: #363a4f;
    border: none;
    border-radius: 6px;
    padding: 0;
    color: #cad3f5;
    inset: 0;
    padding-left: .5rem;
}

input[type="text"]:focus-visible {
    outline: none;
}

.search > svg {
    right: 0;
    top: 0;
    bottom: 0;
    height: 70%;
    scale: -1 1;
    color: #939ab7;
}

.excluded {
    display: none;
}

.nothing-found {
    color: #8087a2;
}

.filters fieldset {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-color: #363a4f;
}

.filters label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="date"] {
    background: #363a4f;
    border: none;
    border-radius: 4px;
    padding: .5rem;
    color: #cad3f5;
}

input[type="date"]:invalid {
    color: #d20f39;
}

input.applied {
    color: #a6da95;
}

@media only screen and (max-width: 1400px) {
    body {
        margin: 0 20%;
    }
}

@media only screen and (max-width: 1000px) {
    body {
        margin: 0 1rem;
    }

    .tips {
        flex-direction: column;
        align-items: baseline;
        gap: 1rem;
    }

    dialog.messages-popup {
        box-sizing: border-box;
        max-width: 100vw;
        width: 100vw;
    }

    dialog.messages-popup ul {
        max-height: 80svh;
    }

    dialog.messages-popup br {
        display: block;
    }

    ul:not(.channels)>li {
        padding: .5rem .2rem;
    }

    ul:not(.channels)>li:active,
    ul:not(.channels)>li:hover {
        background: #363a4f;
    }

    details.root > summary {
        font-size: 1rem;
    }

    .root .search {
        width: 38%;
    }
}

@media (hover: none) {
    .mobile {
        display: flex;
    }

    .desktop {
        display: none;
    }

    span.actions {
        display: none;
    }
}