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

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

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

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

.night .msta>div>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;
}

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

.zone-div{
    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;
}

.zone-div:hover{
    border: 2px dashed #6c8fb0;
    background-color: #e9f2fa;
}

.night .zone-div{
    border: 2px dashed #444;
    background-color: #181a1b;
}

.night .zone-div:hover{
    border: 2px dashed #444;
    background-color: #1c1e1f;
}

.zone-label{
    color: #134f70;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.night .zone-label{
    color:#aaa;
}

.direction-indicator{
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.arrow{
    font-size: 2rem;
    line-height: 1;
    transition: all 0.1s ease;
    opacity: 0.2;
}

.arrow.act{
    opacity: 1;
}

.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.up{
    color: #4CAF50;
}

.log-dir.down{
    color: #FF9800;
}

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

@media screen and (max-width: 500px){
    .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);
    }
}