.topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:28px;
}

.subtitle{
    color:#888;
    margin-top:-8px;
}

.account-box{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.user-info{
    color:#ddd;
    background:#222;
    border:1px solid #333;
    border-radius:999px;
    padding:7px 10px;
    font-size:14px;
}

.hidden{
    display:none;
}

.user-form{
    display:grid;
    grid-template-columns: 1fr 1fr 160px auto;
    gap:10px;
    align-items:end;
    margin-bottom:16px;
}

.user-row{
    padding:10px 0;
    border-bottom:1px solid #2a2a2a;
}

.login-card{
    width:100%;
    max-width:420px;
}

@media (max-width: 900px){
    .topbar{
        flex-direction:column;
    }

    .account-box{
        justify-content:flex-start;
    }

    .user-form{
        grid-template-columns:1fr;
    }
}

.auth-switch{
    margin-top:18px;
    color:#aaa;
    font-size:14px;
}

.auth-switch a{
    color:#6ea8ff;
    text-decoration:none;
    font-weight:bold;
}

.auth-switch a:hover{
    text-decoration:underline;
}

.link-button{
    display:inline-block;
    background:#2f6eea;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    padding:8px 12px;
    font-weight:bold;
}

.link-button:hover{
    background:#3f7cff;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.75);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:999;
    padding:24px;
}

.modal.hidden{
    display:none;
}

.modal-box{
    width:min(1000px, 95vw);
    max-height:85vh;
    background:#181818;
    border:1px solid #333;
    border-radius:14px;
    padding:18px;
    box-shadow:0 20px 80px rgba(0,0,0,0.5);
}

.modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

#logsContent{
    background:#050505;
    color:#ddd;
    border:1px solid #333;
    border-radius:10px;
    padding:14px;
    max-height:65vh;
    overflow:auto;
    white-space:pre-wrap;
    font-family:monospace;
    font-size:13px;
}

.quota-input{
    width:90px;
    padding:7px 8px;
    font-size:13px;
}

.small-quota-input{
    width:60px;
}

.backup-row{
    padding:10px 0;
    border-bottom:1px solid #333;
}

.backup-row span{
    color:#aaa;
    font-size:13px;
}

.connection-info{
    margin-top:6px;
    color:#aaa;
    font-size:13px;
}

.connection-card{
    margin-top:8px;
    padding:8px 10px;
    border:1px solid #333;
    border-radius:8px;
    background:#111;
    max-width:520px;
}

.connection-title{
    font-weight:bold;
    margin-bottom:6px;
    color:#ddd;
}

.connection-row{
    display:flex;
    gap:10px;
    align-items:center;
    margin:4px 0;
    color:#aaa;
    font-size:13px;
}

.connection-row span{
    min-width:70px;
    color:#aaa;
}

.connection-row code{
    color:#fff;
    background:#050505;
    border:1px solid #333;
    padding:3px 6px;
    border-radius:5px;
}
