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

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

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

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

.msta .status{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0.75rem;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.15s, box-shadow 0.15s;
}

.dot.red {
    background: #dc3545;
    box-shadow: 0 0 10px #dc3545aa;
}

.dot.green {
    background: #2ecc71;
    box-shadow: 0 0 12px #2ecc71cc;
}

.status-text {
    font-weight: 500;
    color: #1e3b4b;
    font-size: 1rem;
}

.night .status-text{
    color: #eee;
}

.badge {
    background: #1E4C66;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.badge.reds{
    background-color: #FF5722;
}

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

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

.night .msta .danqian div:first-child{
    color:#aaa;
}

.msta .danqian div:nth-child(2){
    font-size: 1.4rem;
    line-height: 1.8;
}

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

.night .msta .danqian div span {
    color: #aaa;
}

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

.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;
}

.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;
}

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

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

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

.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;
    border-bottom: 1px solid #1f3543;
    color: #b3d6f0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-dir{
    color: #FF9800;
}

.record-item{
    padding: 0.4rem 0 0.4rem 0.2rem;
    border-bottom: 1px solid #2d3a4f;
    color: #94a3b8;
}

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

@media screen and (max-width: 960px){
    .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: 650px){
    .msta .status {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 0.75rem;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: center;
        justify-content: center;
    }
    .mstb{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

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