
.mstb{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mstb>div{
    border-radius: 3px;
    padding: 0.75rem 0.2rem;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.1s;
    min-width: 0;
}

.night .mstb>div{
    background-color: #181a1b;
    border: 1px solid #444;
}

.mstb>div>div:first-child{
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #54738f;
    margin-bottom: 0.4rem;
}

.night .mstb>div>div:first-child{
    color:#aaa;
}

.mstb>div>div:nth-child(2){
    font-size: 1.4rem;
    line-height: 1.8;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mstb>div>div span{
    font-size: 0.9rem;
    font-weight: 400;
    color: #6f8da8;
}

.night .mstb>div>div span {
    color: #aaa;
}

/*************************************/

.fazhisetup{
    border: 1px solid #eee;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 3px;
    position: relative;
}

.night .fazhisetup{
    border: 1px solid #444;
    background-color: #181a1b;
}

.fazhisetup>div:first-child{
    height: 1.2rem;
    line-height: 1.2rem;
    margin-bottom: 0.5rem;
}

.fazhisetup>div:first-child span{
    font-size: 0.6rem;
    float: right;
}

.fazhisetup>div:last-child{
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
}

/*************************************/

.capture-area{
    border-radius: 3px;
    padding: 2rem 0.5rem;
    text-align: center;
    border: 2px dashed #b6d6f0;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s, border-color 0.1s;
    margin-bottom: 0.75rem;
}

.night .capture-area{
    border: 1px solid #444;
    background-color: #181a1b;
}

.hover-tip{
    background: #1e4f8a;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    display: inline-block;
    font-size: 0.7rem;
    margin-bottom: 0.6rem;
}

.prompt{
    display: block;
    font-size: 0.7rem;
    margin-top: 0.7rem;
    color: #5d8faf;
    font-weight: 400;
}

/*************************************/

.log-section{
    background: rgba(10, 20, 32, 0.9);
    border-radius: 6px;
    padding: 0.75rem 0.75rem;
    color: #e4edf5;
    border: 1px solid #2e4b62;
}

.log-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.log-header h3{
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    height: 1.3rem;
    line-height: 1.3rem;
}

.log-header button{
    background: none;
    border: 1px solid #55758b;
    color: #d2e3f0;
    padding: 0 0.75rem;
    height: 1.3rem;
    line-height: 1.3rem;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.log-container{
    background: #0a121e;
    border-radius: 6px;
    padding: 0.5rem 0.5rem;
    max-height: 7.5rem;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #2e4b62;
}

.log-container::-webkit-scrollbar {
    width: 4px;
}

.log-container::-webkit-scrollbar-track {
    background: transparent;
}

.log-container::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 6px;
}

.log-entry{
    padding: 0.3rem 0;
    color: #b3d6f0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.log-container.nowlists{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
    gap: 0.5rem;
}

.event-item {
    height: 3rem;
    display: flex;
    border: 1px solid #2f4b62;
    background-color: #222b36;
    flex-wrap: nowrap;
    align-content: center;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
}

.event-item.reds{
    background-color: #FF5722;
    border: 1px solid #FF9800;
}

.event-key{
    font-size: 0.8rem;
    padding: 0 0.5rem;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-interval{
    font-size: 0.5rem;
}

/*************************************/

@media screen and (max-width: 1020px){
    .mstb{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 886px){
    .mstb{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 600px){
    .mstb{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 300px){
    .mstb{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}