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

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

.mstasub{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    height: 5.5rem;
}

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

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

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

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

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

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

.chats{
    height: 5.5rem;
    border:1px solid #eee;
}

.night .chats{
    border:1px solid #444;
}

.chats canvas{
    width: 100%;
    height: 100%;
    background: #f6f7fa;
    border-radius: 3px;
    display: block;
}

.night .chats canvas{
    background: #181a1b;
}

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

.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: 1.5rem 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;
}

.key-hint {
    font-size: 48px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.7rem;
}

.night .key-hint{
    color:#eee;
}

.key-subhint {
    color: #64748b;
    font-size: 0.75rem;
}

.night .key-subhint{
    color:#aaa;
}

.listening{
    background: #eff6ff;
}

.night .listening{
    background: #222;
}

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

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

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

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

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

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

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