
* {
    box-sizing: border-box;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
body {
    background:#222;
    color:white;
    font-family: "Arial";
    margin-bottom: 50px;
}
.admin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.admin textarea, .admin input[type=text] {
    width:50%;
    background:#343639;
    color:white;
    padding: 8px;
    resize: none;
    font-family: monospace;
    outline: none;
    border: 1px solid #999;
    border-radius: 5px;
    line-height: 14px;
    height: 32px;
}
.admin textarea:focus, .admin input[type=text]:focus {
    outline-offset: 0px;
    border: 1px solid #fff;
}
button {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}
.button {
    display:inline-block;
    background-color:#343639;
    border-radius: 5px;
    padding: 8px;
    border: 1px solid #999;
    color:white;
    position: relative;
    font-size: 13px;
    line-height: 14px;
    min-height: 32px;
}
.button:active {
    box-shadow: inset 0 3px 6px #000;
    background-color:#222;
}
.button:disabled {
    opacity: .3;
}
.button-label input {
    display: none;
}
select.button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 17px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20height%3D%2210%22%20width%3D%2215%22%3E%3Cpolyline%20points%3D%222%2C3%206.5%2C7%2011%2C3%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20fill%3D%22%230000%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-size: 15px 10px;
    background-position: right center;
    -webkit-background-clip: border-box;
    -moz-background-clip: border-box;
    background-clip: border-box;
}
select.button option {
    background-color: #343639;
    color: white;
}
input[type=checkbox]:checked + .button {
    box-shadow: inset 0 3px 6px #000;
    background-color:#222;
}
.button.active:after,
input[type=checkbox]:checked + .button:after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -5px;
    font-weight: 600;
    color: #00ff00;
    font-size: 15px;
}
.alert {
    position: fixed;
    background: #256425;
    border: 1px solid #0006;
    border-radius: 5px 0 0 5px;
    right: 0;
    top: 50px;
    padding: 15px 50px;
    transition: all .3s linear;
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    max-width: 450px;
}
.alert.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}
.alert .alert-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
}
.fixed {
    position: fixed;
    bottom: 0;
    right: 0;
    border-radius: 5px 0 0 0;
    background:#343639;
    padding: 5px 8px;
    font-size: 12px;
    font-family: monospace;
    box-shadow: 0 0 1px #000;
}
.fixed strong {
    white-space: nowrap;
}
.fixed .button {
    padding: 3px 6px;
    min-height: auto;
}
@media (max-width: 768px) {
    .admin {
        flex-wrap: wrap;
    }
    .admin textarea {
        width:100%;
        padding: 6px;
        font-size: 12px;
    }
    .button {
        padding: 6px;
        font-size: 12px;
        min-height: 28px;
    }
    .button-label {
        font-size: 12px;
    }
    .button-label .button {
        width: 100%;
        text-align: center;
    }
    .admin .button,
    .admin .button-label {
        flex: 1 0 0;
    }
    .fixed {
        width: 100%;
        border-radius: 0;
        text-align: center;
    }
    .alert {
        top: auto;
        bottom: 0;
        transform: translateY(100%);
        border-radius: 0;
        text-align: center;
        width: 100%;
        max-width: none;
        padding: 15px 40px;
    }
}